@khsura/sui 1.18.3 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/components/cards/sCardText.vue.d.ts +2 -2
- package/@types/components/datePicker/sDatePickerSwitch.vue.d.ts +2 -0
- package/@types/components/form/index.d.ts +1 -0
- package/@types/components/form/radio/sRadio.vue.d.ts +3 -0
- package/@types/components/form/sFormRow.vue.d.ts +18 -0
- package/@types/components/form/sInput.vue.d.ts +1 -0
- package/@types/components/form/sSelect.vue.d.ts +2 -0
- package/@types/components/layout/sNavigationDrawer.vue.d.ts +6 -6
- package/@types/components/progress/sProgressCircular.vue.d.ts +1 -0
- package/@types/components/progress/sProgressLinear.vue.d.ts +1 -0
- package/@types/components/sAutocomplete.vue.d.ts +3 -0
- package/@types/components/slideGroup/sSlideGroup.vue.d.ts +4 -1
- package/@types/components/table/sTable.vue.d.ts +17 -96
- package/@types/components/tabs/sTabs.vue.d.ts +2 -2
- package/@types/configs/app.d.ts +4 -0
- package/@types/configs/i18n.d.ts +3 -0
- package/@types/configs/provider.d.ts +1 -0
- package/@types/constants/color.d.ts +15 -0
- package/@types/constants/cssVariables.d.ts +4 -0
- package/@types/constants/datePicker.d.ts +7 -0
- package/@types/constants/i18n.d.ts +3 -0
- package/@types/constants/index.d.ts +3 -0
- package/@types/constants/keyboard.d.ts +12 -0
- package/@types/constants/listbox.d.ts +1 -0
- package/@types/constants/overlay.d.ts +5 -0
- package/@types/constants/tabs.d.ts +4 -0
- package/@types/definitions/props/core/propsLink.d.ts +2 -2
- package/@types/definitions/props/propsAutocomplete.d.ts +6 -0
- package/@types/definitions/props/propsInput.d.ts +1 -0
- package/@types/definitions/props/propsLink.d.ts +2 -2
- package/@types/definitions/props/propsProgressCircular.d.ts +2 -0
- package/@types/definitions/props/propsProgressLinear.d.ts +2 -0
- package/@types/definitions/props/propsSelect.d.ts +4 -0
- package/@types/definitions/props/propsSlideGroup.d.ts +4 -0
- package/@types/definitions/props/propsTable.d.ts +1 -0
- package/@types/definitions/props/propsTextarea.d.ts +3 -0
- package/@types/helpers/colorHelpers.d.ts +1 -1
- package/@types/helpers/createAppStore.d.ts +4 -0
- package/@types/lib/color.d.ts +21 -2
- package/@types/lib/index.d.ts +4 -0
- package/@types/lib/linkLocation.d.ts +9 -0
- package/@types/lib/overlayPlacement.d.ts +11 -0
- package/@types/lib/revealInScroller.d.ts +11 -0
- package/@types/lib/safeArea.d.ts +3 -0
- package/@types/playwright.visual.config.d.ts +3 -0
- package/@types/services/backgroundScrollService.d.ts +8 -2
- package/@types/services/datePicker/datePickerItemDateService.d.ts +1 -0
- package/@types/services/dialogService.d.ts +4 -8
- package/@types/services/fieldLayoutService.d.ts +19 -0
- package/@types/services/formInputService.d.ts +6 -0
- package/@types/services/index.d.ts +7 -0
- package/@types/services/linkService.d.ts +11 -1
- package/@types/services/listboxNavigationService.d.ts +20 -0
- package/@types/services/menuService.d.ts +2 -0
- package/@types/services/overlayFocusService.d.ts +10 -0
- package/@types/services/routerLinkService.d.ts +19 -0
- package/@types/services/scrollableFocusService.d.ts +10 -0
- package/@types/services/surfaceTextColorService.d.ts +8 -0
- package/@types/services/tabsService.d.ts +9 -0
- package/@types/store/index.d.ts +1 -0
- package/@types/store/scrollLockStore.d.ts +1 -0
- package/@types/tests/visual/constants/a11yAudit.d.ts +4 -0
- package/@types/tests/visual/constants/index.d.ts +4 -0
- package/@types/tests/visual/constants/resizeScroll.d.ts +10 -0
- package/@types/tests/visual/constants/storyRender.d.ts +5 -0
- package/@types/tests/visual/constants/visualMatrix.d.ts +20 -0
- package/@types/tests/visual/schemas/index.d.ts +1 -0
- package/@types/tests/visual/schemas/storyIndex.d.ts +17 -0
- package/@types/tests/visual/types/a11yAudit.d.ts +2 -0
- package/@types/tests/visual/types/index.d.ts +2 -0
- package/@types/tests/visual/types/visualStory.d.ts +8 -0
- package/@types/types/app.d.ts +2 -0
- package/@types/types/breadcrumbs.d.ts +2 -2
- package/@types/types/index.d.ts +2 -0
- package/@types/types/link.d.ts +20 -0
- package/@types/types/menu.d.ts +17 -0
- package/@types/types/safeArea.d.ts +1 -0
- package/@types/types/table.d.ts +45 -0
- package/@types/vite.config.d.ts +1 -0
- package/README.md +22 -31
- package/dist/base.css.map +1 -1
- package/dist/s-ui.css +1 -1
- package/dist/s-ui.js +3122 -2478
- package/dist/s-ui.umd.cjs +1 -1
- package/dist/styles/components/button/mixins.scss +5 -0
- package/dist/styles/components/form/_variables.scss +11 -0
- package/dist/styles/components/form/index.scss +1 -0
- package/dist/styles/components/index.scss +1 -0
- package/dist/styles/mixins/_app.scss +7 -0
- package/dist/styles/tools/_safeArea.scss +8 -0
- package/dist/styles/tools/index.scss +1 -0
- package/dist/sui-api.json +10128 -0
- package/package.json +30 -6
- package/sui-plugin/.claude-plugin/plugin.json +2 -2
- package/sui-plugin/README.md +24 -1
- package/sui-plugin/skills/sui-component/SKILL.md +13 -3
- package/sui-plugin/skills/sui-component/references/alert.md +30 -14
- package/sui-plugin/skills/sui-component/references/autocomplete.md +96 -34
- package/sui-plugin/skills/sui-component/references/badge.md +55 -29
- package/sui-plugin/skills/sui-component/references/breadcrumbs.md +33 -19
- package/sui-plugin/skills/sui-component/references/button.md +76 -37
- package/sui-plugin/skills/sui-component/references/calendar.md +64 -34
- package/sui-plugin/skills/sui-component/references/cards.md +142 -25
- package/sui-plugin/skills/sui-component/references/carousel.md +107 -42
- package/sui-plugin/skills/sui-component/references/chip.md +52 -28
- package/sui-plugin/skills/sui-component/references/date-picker.md +148 -61
- package/sui-plugin/skills/sui-component/references/dialog.md +60 -21
- package/sui-plugin/skills/sui-component/references/divider.md +15 -6
- package/sui-plugin/skills/sui-component/references/droppable.md +36 -16
- package/sui-plugin/skills/sui-component/references/expansion-panels.md +107 -30
- package/sui-plugin/skills/sui-component/references/form.md +483 -35
- package/sui-plugin/skills/sui-component/references/icon.md +30 -11
- package/sui-plugin/skills/sui-component/references/image.md +39 -17
- package/sui-plugin/skills/sui-component/references/layout.md +456 -69
- package/sui-plugin/skills/sui-component/references/list.md +223 -52
- package/sui-plugin/skills/sui-component/references/menu.md +64 -28
- package/sui-plugin/skills/sui-component/references/overlay.md +35 -16
- package/sui-plugin/skills/sui-component/references/progress.md +76 -26
- package/sui-plugin/skills/sui-component/references/sheet.md +46 -23
- package/sui-plugin/skills/sui-component/references/slide-group.md +77 -38
- package/sui-plugin/skills/sui-component/references/snackbar.md +48 -17
- package/sui-plugin/skills/sui-component/references/split-view.md +51 -12
- package/sui-plugin/skills/sui-component/references/stepper.md +58 -23
- package/sui-plugin/skills/sui-component/references/table.md +123 -55
- package/sui-plugin/skills/sui-component/references/tabs.md +78 -30
- package/sui-plugin/skills/sui-component/references/toggle-button-group.md +85 -39
- package/sui-plugin/skills/sui-component/references/toolbar.md +92 -33
- package/sui-plugin/skills/sui-component/references/tooltip.md +58 -20
- package/sui-plugin/skills/sui-component/references/window.md +89 -29
- package/sui-plugin/skills/sui-form/SKILL.md +23 -16
- package/sui-plugin/skills/sui-getting-started/SKILL.md +60 -44
- package/sui-plugin/skills/sui-layout/SKILL.md +3 -1
- package/sui-plugin/skills/sui-utilities/docs/classes.md +1 -1
|
@@ -10,53 +10,130 @@ Types: `node_modules/@khsura/sui/@types/definitions/props/propsExpansionPanels.d
|
|
|
10
10
|
|
|
11
11
|
## SExpansionPanels
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
<!-- generated:api:start SExpansionPanels -->
|
|
14
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|------|------|---------|-------------|
|
|
17
|
-
| `modelValue` | `number[] \| null` | `[]` | `index` values of open panels (use `v-model`) |
|
|
18
|
-
| `multiple` | `boolean` | `false` | Allow several panels open at once |
|
|
19
|
-
| `mandatory` | `boolean` | `false` | Keep at least one panel open. Opens the first one if the model is empty |
|
|
20
|
-
| `expandIcon` | `MaterialDesignIcon` | `'mdi-chevron-down'` | Header toggle icon |
|
|
21
|
-
| `expandIconSize` | `SizePropertyType` | `undefined` | Toggle icon size |
|
|
16
|
+
**SExpansionPanels props**
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
| Prop | Type | Default | Required | Values |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| `expandIcon` | `string` | — | no | — |
|
|
21
|
+
| `expandIconSize` | `SizePropertyType` | — | no | `default`, `extra`, `large`, `mini`, `small` |
|
|
22
|
+
| `mandatory` | `boolean` | — | no | — |
|
|
23
|
+
| `modelValue` | `(number[] & GroupItemValue[])` | `[]` | no | — |
|
|
24
|
+
| `multiple` | `boolean` | — | no | — |
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|------|-------------|
|
|
27
|
-
| `default` | `SExpansionPanel` components |
|
|
26
|
+
**SExpansionPanels slots**
|
|
28
27
|
|
|
29
|
-
|
|
|
30
|
-
|
|
31
|
-
| `
|
|
28
|
+
| Slot | Slot props |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `default` | `{}` |
|
|
31
|
+
|
|
32
|
+
**SExpansionPanels events**
|
|
33
|
+
|
|
34
|
+
| Event | Payload |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| `update:modelValue` | `[value: GroupItemValue[]]` |
|
|
37
|
+
|
|
38
|
+
<!-- generated:api:end SExpansionPanels -->
|
|
39
|
+
|
|
40
|
+
**SExpansionPanels notes**
|
|
41
|
+
|
|
42
|
+
- `modelValue`: `index` values of open panels (use `v-model`)
|
|
43
|
+
- `multiple`: Allow several panels open at once
|
|
44
|
+
- `mandatory`: Keep at least one panel open. Opens the first one if the model is empty
|
|
45
|
+
- `expandIcon`: Header toggle icon (default: `'mdi-chevron-down'`)
|
|
46
|
+
- `expandIconSize`: Toggle icon size
|
|
47
|
+
- `default` (slot): `SExpansionPanel` components
|
|
48
|
+
- `update:modelValue` (event): Open panels changed
|
|
32
49
|
|
|
33
50
|
---
|
|
34
51
|
|
|
35
52
|
## SExpansionPanel
|
|
36
53
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
54
|
+
<!-- generated:api:start SExpansionPanel -->
|
|
55
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
56
|
+
|
|
57
|
+
**SExpansionPanel props**
|
|
58
|
+
|
|
59
|
+
| Prop | Type | Default | Required | Values |
|
|
60
|
+
| --- | --- | --- | --- | --- |
|
|
61
|
+
| `activeClass` | `string \| null` | — | no | — |
|
|
62
|
+
| `disabled` | `boolean` | — | no | — |
|
|
63
|
+
| `index` | `number \| null` | — | no | — |
|
|
64
|
+
|
|
65
|
+
**SExpansionPanel slots**
|
|
40
66
|
|
|
41
|
-
| Slot |
|
|
42
|
-
|
|
43
|
-
| `default` | `{ isExpanded }` |
|
|
67
|
+
| Slot | Slot props |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| `default` | `{ isExpanded: boolean; }` |
|
|
70
|
+
|
|
71
|
+
**SExpansionPanel events**
|
|
72
|
+
|
|
73
|
+
None.
|
|
74
|
+
|
|
75
|
+
<!-- generated:api:end SExpansionPanel -->
|
|
76
|
+
|
|
77
|
+
**SExpansionPanel notes**
|
|
78
|
+
|
|
79
|
+
- `index`: Panel identity, the value stored in the `v-model` array (default: vnode `key`, else an auto id)
|
|
80
|
+
- `default` (slot): `SExpansionPanelHeader` + `SExpansionPanelContent`
|
|
44
81
|
|
|
45
82
|
## SExpansionPanelHeader
|
|
46
83
|
|
|
47
|
-
Clickable row that toggles its panel.
|
|
84
|
+
Clickable row that toggles its panel. Its text starts at the same 16px inset as `SExpansionPanelContent`, and the chevron sits 16px from the right edge, so header and content line up without extra padding classes. (Older versions indented the header text 8px more than the content.)
|
|
85
|
+
|
|
86
|
+
<!-- generated:api:start SExpansionPanelHeader -->
|
|
87
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
88
|
+
|
|
89
|
+
**SExpansionPanelHeader props**
|
|
90
|
+
|
|
91
|
+
None.
|
|
48
92
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
| `
|
|
93
|
+
**SExpansionPanelHeader slots**
|
|
94
|
+
|
|
95
|
+
| Slot | Slot props |
|
|
96
|
+
| --- | --- |
|
|
97
|
+
| `actions` | `{ isExpanded: boolean \| null; }` |
|
|
98
|
+
| `default` | `{ open: boolean \| null; }` |
|
|
99
|
+
| `top` | `{}` |
|
|
100
|
+
|
|
101
|
+
**SExpansionPanelHeader events**
|
|
102
|
+
|
|
103
|
+
None.
|
|
104
|
+
|
|
105
|
+
<!-- generated:api:end SExpansionPanelHeader -->
|
|
106
|
+
|
|
107
|
+
**SExpansionPanelHeader notes**
|
|
108
|
+
|
|
109
|
+
- `default` (slot): Header label
|
|
110
|
+
- `actions` (slot): Replaces the expand icon
|
|
111
|
+
- `top` (slot): Content above the header row
|
|
54
112
|
|
|
55
113
|
## SExpansionPanelContent
|
|
56
114
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
115
|
+
<!-- generated:api:start SExpansionPanelContent -->
|
|
116
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
117
|
+
|
|
118
|
+
**SExpansionPanelContent props**
|
|
119
|
+
|
|
120
|
+
None.
|
|
121
|
+
|
|
122
|
+
**SExpansionPanelContent slots**
|
|
123
|
+
|
|
124
|
+
| Slot | Slot props |
|
|
125
|
+
| --- | --- |
|
|
126
|
+
| `default` | `{ isExpanded: boolean \| null; }` |
|
|
127
|
+
|
|
128
|
+
**SExpansionPanelContent events**
|
|
129
|
+
|
|
130
|
+
None.
|
|
131
|
+
|
|
132
|
+
<!-- generated:api:end SExpansionPanelContent -->
|
|
133
|
+
|
|
134
|
+
**SExpansionPanelContent notes**
|
|
135
|
+
|
|
136
|
+
- `default` (slot): Collapsible body
|
|
60
137
|
|
|
61
138
|
---
|
|
62
139
|
|