Skip to content

Commit 69f7428

Browse files
committed
UI Component tweaks
- Removed dedicated "UI Components" section - Added "UI Components" link under "Vue Components" section - Updated redirects - Updated Storybook searchable to handle upcoming changes to structure of Storybook docs - Removed the UI Components Overview page, as it is being moved into Storybook. Related: statamic/cms#13383
1 parent cf7fdcf commit 69f7428

File tree

8 files changed

+9
-181
lines changed

8 files changed

+9
-181
lines changed

app/Search/Storybook/StorybookSearchable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static function from(array $component)
1818
$instance = new static();
1919

2020
$instance->id = $component['id'];
21-
$instance->title = Str::after($component['title'], 'Components/');
21+
$instance->title = Str::after($component['title'], '/');
2222

2323
return $instance;
2424
}

content/collections/pages/all-ui-components.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

content/collections/pages/overview.9.md

Lines changed: 0 additions & 118 deletions
This file was deleted.

content/collections/pages/publish-forms.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -189,31 +189,7 @@ You may customize the layout of the form by providing slot content.
189189
</PublishContainer>
190190
```
191191

192-
The `PublishContainer` component accepts various props and emits various events:
193-
194-
| Prop | Type | Description |
195-
|-----------------------------|---------|-----------------------------------------------------------------------------------------------------|
196-
| `reference` | string | Reference of the item being edited. eg. `entry::the-entry-id` |
197-
| `blueprint` | object | **Required.** The blueprint's publish array. |
198-
| `modelValue` | object | Publish form values. |
199-
| `extraValues` | object | Extra values to be made available to field conditions. |
200-
| `meta` | object | **Required.** Fieldtype metadata |
201-
| `originValues` | object | Publish form values from the origin localization. |
202-
| `originMeta` | object | Fieldtype metadata from the origin localization. |
203-
| `errors` | object | Validation errors. |
204-
| `site` | string | The site handle of the active localization. |
205-
| `modifiedFields` | array | Array of field handles, indicating which fields have changed. |
206-
| `trackDirtyState` | boolean | Determines whether dirty state tracking is enabled. Defaults to `true` |
207-
| `syncFieldConfirmationText` | string | Confirmation text when syncing a localized field with the origin value. Defaults to `Are you sure?` |
208-
| `readOnly` | boolean | Marks the publish form as read-only. Defaults to `false` |
209-
| `asConfig` | boolean | Marks it as a "config" form, which renders slightly differently. Defaults to `false` |
210-
| `rememberTab` | boolean | Determines whether the active tab is remembered in the URL hash. Defaults to `false` |
211-
212-
| Event | Description |
213-
|-------------------------|---------------------------------------------------------------------------------------------------------|
214-
| `update:modelValue` | Emits the publish form's values when they're updated. |
215-
| `update:visibleValues` | Emits the form's "visible values" when fields are updated (values from fields not hidden by conditions) |
216-
| `update:modifiedFields` | Emits the `modifiedFields` state when a field's value is changed for the first time. |
192+
Please see our [UI Component docs](https://statamic.dev/?path=/docs/components-publishcontainer--docs&args=icon:hr) for full information on the available props and events.
217193

218194

219195
### Handling the form submission
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
id: f38a3e52-10ba-4bfa-9298-0c95b324c662
33
title: 'UI Components'
4+
nav_title: 'UI Components'
45
blueprint: link
56
redirect:
6-
url: '@child'
7+
url: 'https://ui.statamic.dev'
78
status: 301
89
---

content/trees/collections/pages.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,6 @@ tree:
296296
entry: c51a5de8-4b02-4240-8195-3ff7987c43cf
297297
-
298298
entry: 512cbb65-0091-47e2-a3b6-c42aae64349e
299-
-
300-
entry: f38a3e52-10ba-4bfa-9298-0c95b324c662
301-
children:
302-
-
303-
entry: ae0d8e5a-3e14-4766-827b-38f3e9a36c85
304-
-
305-
entry: f3c9d186-14a6-416d-89e7-28569adb2cfe
306299
-
307300
entry: 9ca16d8c-a5cf-4fdb-8252-898626e2390b
308301
children:
@@ -327,6 +320,8 @@ tree:
327320
children:
328321
-
329322
entry: b80820bb-c2e8-475f-98bd-8ea0ef9f5339
323+
-
324+
entry: f38a3e52-10ba-4bfa-9298-0c95b324c662
330325
-
331326
entry: d84613d5-2b2b-465d-8f02-c71b6d2aadf1
332327
-

resources/views/partials/nav_contents.antlers.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<a
5959
href="{{ url }}"
6060
{{ if is_current || is_parent }}class="o-current-menu-item"{{ /if }}
61+
{{ if url | is_external_url }} target="_blank" {{ /if }}
6162
>
6263
{{ nav_title ?? title }}
6364
</a>

0 commit comments

Comments
 (0)