@cscfi/csc-ui 4.0.0-alpha.9 → 4.0.0-rc.2

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.
Files changed (203) hide show
  1. package/README.md +36 -2
  2. package/dist/csc-ui.js +22771 -14908
  3. package/dist/custom-elements.json +8943 -5632
  4. package/dist/docs/c-accordion/usage.md +60 -0
  5. package/dist/docs/c-accordion-item/usage.md +1 -0
  6. package/dist/docs/c-alert/usage.md +5 -5
  7. package/dist/docs/c-autocomplete/usage.md +156 -0
  8. package/dist/docs/c-badge/usage.md +50 -0
  9. package/dist/docs/c-breadcrumb/usage.md +104 -0
  10. package/dist/docs/c-breadcrumb-item/usage.md +1 -0
  11. package/dist/docs/c-button/usage.md +13 -0
  12. package/dist/docs/c-button-group/usage.md +16 -2
  13. package/dist/docs/c-card/usage.md +55 -0
  14. package/dist/docs/c-card-actions/usage.md +1 -0
  15. package/dist/docs/c-card-content/usage.md +1 -0
  16. package/dist/docs/c-card-title/usage.md +3 -0
  17. package/dist/docs/c-checkbox/usage.md +37 -5
  18. package/dist/docs/c-color-picker/usage.md +160 -0
  19. package/dist/docs/c-csc-logo/usage.md +25 -0
  20. package/dist/docs/c-data-table/usage.md +180 -0
  21. package/dist/docs/c-date-picker/usage.md +224 -0
  22. package/dist/docs/c-divider/usage.md +36 -0
  23. package/dist/docs/c-file-upload/usage.md +189 -0
  24. package/dist/docs/c-icon/usage.md +51 -0
  25. package/dist/docs/c-icon-button/usage.md +80 -0
  26. package/dist/docs/c-link/usage.md +45 -1
  27. package/dist/docs/c-list/usage.md +50 -0
  28. package/dist/docs/c-list-item/usage.md +1 -0
  29. package/dist/docs/c-list-item-title/usage.md +1 -0
  30. package/dist/docs/c-loader/usage.md +52 -1
  31. package/dist/docs/c-login-button/usage.md +1 -0
  32. package/dist/docs/c-login-buttons/usage.md +48 -0
  33. package/dist/docs/c-login-card/usage.md +45 -0
  34. package/dist/docs/c-login-card-actions/usage.md +1 -0
  35. package/dist/docs/c-login-card-content/usage.md +1 -0
  36. package/dist/docs/c-login-card-title/usage.md +3 -0
  37. package/dist/docs/c-main/usage.md +21 -1
  38. package/dist/docs/c-menu/usage.md +15 -0
  39. package/dist/docs/c-menu-item/usage.md +11 -0
  40. package/dist/docs/c-message/usage.md +56 -0
  41. package/dist/docs/c-modal/usage.md +18 -12
  42. package/dist/docs/c-navigation-button/usage.md +32 -0
  43. package/dist/docs/c-number-field/usage.md +114 -0
  44. package/dist/docs/c-option/usage.md +1 -0
  45. package/dist/docs/c-option-value/usage.md +1 -0
  46. package/dist/docs/c-otp-input/usage.md +95 -0
  47. package/dist/docs/c-page/usage.md +44 -0
  48. package/dist/docs/c-pagination/usage.md +69 -0
  49. package/dist/docs/c-popover/usage.md +1 -1
  50. package/dist/docs/c-progress-bar/usage.md +1 -1
  51. package/dist/docs/c-progress-circle/usage.md +1 -1
  52. package/dist/docs/c-radio/usage.md +9 -6
  53. package/dist/docs/c-radio-group/usage.md +5 -6
  54. package/dist/docs/c-select/usage.md +131 -0
  55. package/dist/docs/c-side-navigation/usage.md +70 -0
  56. package/dist/docs/c-side-navigation-item/usage.md +1 -0
  57. package/dist/docs/c-side-navigation-title/usage.md +1 -0
  58. package/dist/docs/c-slider/usage.md +78 -0
  59. package/dist/docs/c-spinner/usage.md +1 -1
  60. package/dist/docs/c-status/usage.md +46 -0
  61. package/dist/docs/c-step/usage.md +1 -0
  62. package/dist/docs/c-steps/usage.md +35 -0
  63. package/dist/docs/c-sub-navigation-item/usage.md +1 -0
  64. package/dist/docs/c-switch/usage.md +10 -3
  65. package/dist/docs/c-tab/usage.md +1 -0
  66. package/dist/docs/c-tab-buttons/usage.md +15 -0
  67. package/dist/docs/c-tab-item/usage.md +1 -0
  68. package/dist/docs/c-tab-items/usage.md +1 -0
  69. package/dist/docs/c-table/usage.md +1 -1
  70. package/dist/docs/c-tabs/usage.md +77 -0
  71. package/dist/docs/c-tag/usage.md +1 -0
  72. package/dist/docs/c-tags/usage.md +85 -0
  73. package/dist/docs/c-text-field/usage.md +109 -0
  74. package/dist/docs/c-time-picker/usage.md +170 -0
  75. package/dist/docs/c-toasts/usage.md +27 -3
  76. package/dist/docs/c-toolbar/usage.md +17 -0
  77. package/dist/docs/c-tree-select/usage.md +156 -0
  78. package/dist/floating-ui.dom-DvzxEaDJ.js +1292 -0
  79. package/dist/styles/css/tailwind-theme.css +2 -1
  80. package/dist/styles/css/tokens.css +609 -178
  81. package/dist/vscode.css-custom-data.json +556 -99
  82. package/dist/vscode.html-custom-data.json +1050 -480
  83. package/dist/web-types.json +3303 -1707
  84. package/dist-types/components/c-accordion/CAccordion.vue.d.ts +21 -25
  85. package/dist-types/components/c-accordion-item/CAccordionItem.vue.d.ts +13 -12
  86. package/dist-types/components/c-alert/CAlert.vue.d.ts +12 -17
  87. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +124 -31
  88. package/dist-types/components/c-breadcrumb/CBreadcrumb.vue.d.ts +35 -0
  89. package/dist-types/components/c-breadcrumb/fit.d.ts +29 -0
  90. package/dist-types/components/c-breadcrumb-item/CBreadcrumbItem.vue.d.ts +31 -0
  91. package/dist-types/components/c-button/CButton.vue.d.ts +52 -63
  92. package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +16 -14
  93. package/dist-types/components/c-card/CCard.vue.d.ts +2 -3
  94. package/dist-types/components/c-card-actions/CCardActions.vue.d.ts +5 -7
  95. package/dist-types/components/c-card-title/CCardTitle.vue.d.ts +11 -1
  96. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +33 -52
  97. package/dist-types/components/c-color-picker/CColorPicker.vue.d.ts +189 -0
  98. package/dist-types/components/c-color-picker/colors.d.ts +66 -0
  99. package/dist-types/components/c-csc-logo/CCscLogo.vue.d.ts +1 -3
  100. package/dist-types/components/c-data-table/CDataTable.vue.d.ts +75 -51
  101. package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +277 -0
  102. package/dist-types/components/c-date-picker/dates.d.ts +119 -0
  103. package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +51 -8
  104. package/dist-types/components/c-file-upload/CFileUpload.vue.d.ts +204 -0
  105. package/dist-types/components/c-file-upload/files.d.ts +99 -0
  106. package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +23 -36
  107. package/dist-types/components/c-input/CInput.vue.d.ts +21 -43
  108. package/dist-types/components/c-link/CLink.vue.d.ts +6 -14
  109. package/dist-types/components/c-list/CList.vue.d.ts +4 -6
  110. package/dist-types/components/c-list-item/CListItem.vue.d.ts +14 -19
  111. package/dist-types/components/c-list-item-title/CListItemTitle.vue.d.ts +3 -2
  112. package/dist-types/components/c-loader/CLoader.vue.d.ts +13 -29
  113. package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +9 -9
  114. package/dist-types/components/c-login-card/CLoginCard.vue.d.ts +11 -16
  115. package/dist-types/components/c-login-card-actions/CLoginCardActions.vue.d.ts +5 -7
  116. package/dist-types/components/c-login-card-title/CLoginCardTitle.vue.d.ts +11 -1
  117. package/dist-types/components/c-main/CMain.vue.d.ts +12 -5
  118. package/dist-types/components/c-menu/CMenu.vue.d.ts +17 -16
  119. package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +27 -35
  120. package/dist-types/components/c-message/CMessage.vue.d.ts +5 -15
  121. package/dist-types/components/c-modal/CModal.vue.d.ts +3 -3
  122. package/dist-types/components/c-navigation-button/CNavigationButton.vue.d.ts +20 -1
  123. package/dist-types/components/c-number-field/CNumberField.vue.d.ts +169 -0
  124. package/dist-types/components/c-number-field/numbers.d.ts +58 -0
  125. package/dist-types/components/c-option/COption.vue.d.ts +1 -1
  126. package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +16 -30
  127. package/dist-types/components/c-page/CPage.vue.d.ts +2 -3
  128. package/dist-types/components/c-pagination/CPagination.vue.d.ts +56 -26
  129. package/dist-types/components/c-popover/CPopover.vue.d.ts +11 -7
  130. package/dist-types/components/c-progress-bar/CProgressBar.vue.d.ts +10 -14
  131. package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +7 -7
  132. package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +11 -8
  133. package/dist-types/components/c-select/CSelect.vue.d.ts +119 -35
  134. package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +10 -18
  135. package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +22 -14
  136. package/dist-types/components/c-slider/CSlider.vue.d.ts +29 -73
  137. package/dist-types/components/c-spinner/CSpinner.vue.d.ts +4 -8
  138. package/dist-types/components/c-status/CStatus.vue.d.ts +8 -9
  139. package/dist-types/components/c-step/CStep.vue.d.ts +6 -4
  140. package/dist-types/components/c-steps/CSteps.vue.d.ts +3 -7
  141. package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +23 -17
  142. package/dist-types/components/c-switch/CSwitch.vue.d.ts +17 -30
  143. package/dist-types/components/c-tab/CTab.vue.d.ts +11 -28
  144. package/dist-types/components/c-tab-buttons/CTabButtons.vue.d.ts +11 -13
  145. package/dist-types/components/c-tab-item/CTabItem.vue.d.ts +4 -5
  146. package/dist-types/components/c-tab-items/CTabItems.vue.d.ts +5 -4
  147. package/dist-types/components/c-table/CTable.vue.d.ts +7 -7
  148. package/dist-types/components/c-tabs/CTabs.vue.d.ts +13 -20
  149. package/dist-types/components/c-tag/CTag.vue.d.ts +22 -21
  150. package/dist-types/components/c-tags/CTags.vue.d.ts +9 -10
  151. package/dist-types/components/c-text-field/CTextField.vue.d.ts +74 -77
  152. package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +205 -0
  153. package/dist-types/components/c-time-picker/times.d.ts +82 -0
  154. package/dist-types/components/c-toast/CToast.vue.d.ts +3 -4
  155. package/dist-types/components/c-toast/swipe.d.ts +40 -0
  156. package/dist-types/components/c-toasts/CToasts.vue.d.ts +14 -16
  157. package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +10 -1
  158. package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +12 -8
  159. package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +257 -0
  160. package/dist-types/index.d.ts +41 -32
  161. package/dist-types/registry.d.ts +9 -0
  162. package/dist-types/shared/FieldMessage.vue.d.ts +8 -5
  163. package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
  164. package/dist-types/shared/SelectionIndicator.vue.d.ts +21 -0
  165. package/dist-types/shared/TypedField.vue.d.ts +48 -0
  166. package/dist-types/shared/appDefaults.d.ts +75 -0
  167. package/dist-types/shared/defineElement.d.ts +1 -0
  168. package/dist-types/shared/inputMask.d.ts +106 -0
  169. package/dist-types/shared/lightDismiss.d.ts +35 -0
  170. package/dist-types/shared/modalStack.d.ts +4 -3
  171. package/dist-types/shared/navigationDrawer.d.ts +4 -0
  172. package/dist-types/shared/optionLabel.d.ts +18 -0
  173. package/dist-types/shared/pageLock.d.ts +26 -0
  174. package/dist-types/shared/peekCap.d.ts +35 -0
  175. package/dist-types/shared/popoverChain.d.ts +13 -10
  176. package/dist-types/shared/positionArea.d.ts +9 -4
  177. package/dist-types/shared/reducedMotion.d.ts +10 -0
  178. package/dist-types/shared/selectAll.d.ts +29 -0
  179. package/dist-types/shared/splitMatches.d.ts +18 -0
  180. package/dist-types/shared/useAnchoredPanel.d.ts +107 -0
  181. package/dist-types/shared/useControlAttrs.d.ts +8 -0
  182. package/dist-types/shared/useDesignatedTrigger.d.ts +5 -4
  183. package/dist-types/shared/useFallbackPosition.d.ts +71 -0
  184. package/dist-types/shared/useHostEmit.d.ts +38 -0
  185. package/dist-types/shared/useIdReferences.d.ts +39 -0
  186. package/dist-types/shared/useKeyboardModality.d.ts +7 -0
  187. package/dist-types/shared/useNarrowViewport.d.ts +19 -0
  188. package/dist-types/shared/useScrollStrip.d.ts +39 -0
  189. package/dist-types/shared/useStatusAnnouncer.d.ts +33 -0
  190. package/dist-types/shared/useTypedField.d.ts +108 -0
  191. package/dist-types/shared/valueEvents.d.ts +41 -0
  192. package/dist-types/shared/visualViewport.d.ts +51 -0
  193. package/dist-types/tag-name-map.d.ts +1572 -672
  194. package/dist-types/theme/applyTheme.d.ts +6 -6
  195. package/dist-types/theme/chart-data.d.ts +51 -0
  196. package/dist-types/theme/ramp.d.ts +38 -0
  197. package/dist-types/theme/themeMode.d.ts +51 -0
  198. package/dist-types/types.d.ts +7 -11
  199. package/package.json +32 -21
  200. package/dist/css-anchor-positioning-fn-RTxo68pt.js +0 -6447
  201. package/dist/docs/c-toast/usage.md +0 -1
  202. package/dist-types/shared/anchorPolyfill.d.ts +0 -24
  203. package/dist-types/shared/emitModelValue.d.ts +0 -37
@@ -1,4 +1,40 @@
1
1
  import type { CFieldSize, CSelectItem } from '../../types';
2
+ /**
3
+ * UI texts of `c-select`, shallow-merged over the English defaults. Static
4
+ * labels are strings; count- or label-interpolated ones are functions.
5
+ */
6
+ export interface CSelectTexts {
7
+ /** Accessible label of the clear button. */
8
+ clearSelection?: string;
9
+ /** Accessible label of the close button in the fullscreen panel (narrow viewports). */
10
+ closePanel?: string;
11
+ /**
12
+ * Text of the overflow tag when `max-tags` folds the selection; receives the
13
+ * number of hidden tags.
14
+ */
15
+ more?: (count: number) => string;
16
+ /** Accessible label of a tag's remove button; receives the option label. */
17
+ remove?: (label: string) => string;
18
+ /**
19
+ * Label of the select-all row; receives the number of enabled options
20
+ * listed.
21
+ */
22
+ selectAll?: (count: number) => string;
23
+ /**
24
+ * Field text when `max-tags="0"` shows no tags; receives the selection
25
+ * count.
26
+ */
27
+ selected?: (count: number) => string;
28
+ /** Accessible label of the chevron button that opens and closes the list. */
29
+ toggleOptions?: string;
30
+ }
31
+ /**
32
+ * Selection value of `c-select`: the picked option's value — or the whole
33
+ * `{ name, value }` item with `return-object` — and `null` when nothing is
34
+ * selected. In `multiple` mode an array of them in the order they were
35
+ * picked, `[]` when empty.
36
+ */
37
+ export type CSelectValue = (number | string)[] | CSelectItem | CSelectItem[] | null | number | string;
2
38
  interface CSelectProps {
3
39
  /** Make the selected value clearable */
4
40
  clearable?: boolean;
@@ -10,7 +46,11 @@ interface CSelectProps {
10
46
  * @freeform
11
47
  */
12
48
  errorMessage?: string;
13
- /** Hide the hint and error messages */
49
+ /**
50
+ * Hide the hint and error messages
51
+ *
52
+ * @defaultable false
53
+ */
14
54
  hideDetails?: boolean;
15
55
  /**
16
56
  * Hint text for the input
@@ -19,14 +59,17 @@ interface CSelectProps {
19
59
  */
20
60
  hint?: string;
21
61
  /**
22
- * Id of the element
23
- *
24
- * @freeform
62
+ * Show the control as invalid: its `error-message`, when set, replaces the
63
+ * hint, and the control is marked `aria-invalid`.
25
64
  */
26
- hostId?: string;
65
+ invalid?: boolean;
27
66
  /** Dropdown items (when not using <c-option> elements) */
28
67
  items?: CSelectItem[];
29
- /** Items per page before adding scroll */
68
+ /**
69
+ * Items per page before adding scroll
70
+ *
71
+ * @defaultable 6
72
+ */
30
73
  itemsPerPage?: number;
31
74
  /**
32
75
  * Element label
@@ -34,10 +77,28 @@ interface CSelectProps {
34
77
  * @freeform
35
78
  */
36
79
  label?: string;
37
- /** Label on top of the input */
80
+ /**
81
+ * Label on top of the input
82
+ *
83
+ * @defaultable false
84
+ */
38
85
  labelOnTop?: boolean;
39
86
  /** Show loading state */
40
87
  loading?: boolean;
88
+ /**
89
+ * In `multiple` mode, show at most this many selected-value tags and fold
90
+ * the rest into one "+N more" tag; `0` shows no tags and reads "N selected"
91
+ * instead; unset shows every tag
92
+ */
93
+ maxTags?: number;
94
+ /**
95
+ * Allow selecting several options: rows toggle and the list stays open,
96
+ * `value` becomes an array of the selected values (items with
97
+ * `return-object`) in the order they were picked, and the picks show as
98
+ * tags inside the field. `option-as-selection` is ignored in this mode.
99
+ * Arrays have no attribute form — bind `value` as a DOM property
100
+ */
101
+ multiple?: boolean;
41
102
  /**
42
103
  * Input field name
43
104
  *
@@ -56,50 +117,73 @@ interface CSelectProps {
56
117
  required?: boolean;
57
118
  /** Return object instead of value */
58
119
  returnObject?: boolean;
59
- /** Shadow variant */
120
+ /**
121
+ * In `multiple` mode, pin a select-all row at the top of the list. Its
122
+ * checkbox shows whether none, some or all enabled options are selected;
123
+ * activating it selects every enabled option — or, when all are selected,
124
+ * unselects them. Ignored in single mode
125
+ */
126
+ selectAll?: boolean;
127
+ /**
128
+ * Shadow variant
129
+ *
130
+ * @defaultable false
131
+ */
60
132
  shadow?: boolean;
61
- /** Field height: the 44px default or the 36px `small` box */
133
+ /**
134
+ * Field height: the 52px default (the shared control height) or the 36px `small` box
135
+ *
136
+ * @defaultable 'default'
137
+ */
62
138
  size?: CFieldSize;
63
- /** Set the validity of the input */
64
- valid?: boolean;
65
- /** Selected value (scalar, or object when return-object is set) */
66
- value?: CSelectItem | null | number | string;
139
+ /**
140
+ * UI text overrides (i18n), merged over the English defaults. Objects have
141
+ * no attribute form — bind as a DOM property (`:texts.prop` in Vue)
142
+ *
143
+ * @defaultable {}
144
+ */
145
+ texts?: CSelectTexts;
146
+ /**
147
+ * Selected value: the option's value, or the whole item with
148
+ * `return-object`; an array of them in `multiple` mode
149
+ */
150
+ value?: CSelectValue;
67
151
  }
68
- declare var __VLS_19: {}, __VLS_54: {}, __VLS_56: {};
69
- type __VLS_Slots = {} & {
70
- pre?: (props: typeof __VLS_19) => any;
71
- } & {
72
- default?: (props: typeof __VLS_54) => any;
73
- } & {
74
- post?: (props: typeof __VLS_56) => any;
75
- };
76
- declare const __VLS_base: import("vue").DefineComponent<CSelectProps, {
77
- reset: () => void;
152
+ declare const _default: typeof __VLS_export;
153
+ export default _default;
154
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CSelectProps, {
155
+ focus: (options?: FocusOptions) => void;
78
156
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSelectProps> & Readonly<{}>, {
79
157
  label: string;
80
- value: CSelectItem | null | number | string;
158
+ invalid: boolean;
81
159
  name: string;
160
+ value: CSelectValue;
161
+ multiple: boolean;
162
+ itemsPerPage: number;
163
+ size: CFieldSize;
164
+ texts: CSelectTexts;
165
+ hideDetails: boolean;
166
+ labelOnTop: boolean;
167
+ shadow: boolean;
82
168
  clearable: boolean;
83
169
  disabled: boolean;
84
170
  errorMessage: string;
85
- hideDetails: boolean;
86
171
  hint: string;
87
- hostId: string;
88
172
  items: CSelectItem[];
89
- itemsPerPage: number;
90
- labelOnTop: boolean;
91
173
  loading: boolean;
174
+ maxTags: number;
92
175
  placeholder: string;
93
176
  required: boolean;
94
177
  returnObject: boolean;
95
- shadow: boolean;
96
- size: CFieldSize;
97
- valid: boolean;
178
+ selectAll: boolean;
98
179
  optionAsSelection: boolean;
99
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
100
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
101
- declare const _default: typeof __VLS_export;
102
- export default _default;
180
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
181
+ pre?: (props: {}) => any;
182
+ } & {
183
+ default?: (props: {}) => any;
184
+ } & {
185
+ post?: (props: {}) => any;
186
+ }>;
103
187
  type __VLS_WithSlots<T, S> = T & {
104
188
  new (): {
105
189
  $slots: S;
@@ -1,33 +1,25 @@
1
1
  interface CSideNavigationProps {
2
2
  /**
3
- * Mobile version menu visibility
4
- *
5
- * @seeded from csc-ui — verify
6
- */
7
- menuVisible?: boolean;
8
- /**
9
- * Mobile version
10
- *
11
- * @seeded from csc-ui — verify
3
+ * Render the drawer as a panel that slides in from the right over a backdrop,
4
+ * opened and closed by `open` or a `c-navigation-button`; while open it is a
5
+ * modal dialog.
12
6
  */
13
7
  mobile?: boolean;
14
8
  /**
15
- * Background styles
16
- *
17
- * @seeded from csc-ui — verify
9
+ * Whether the `mobile` drawer is open. A `c-navigation-button` anywhere on
10
+ * the page toggles it.
18
11
  */
19
- styles?: null | Record<string, string>;
12
+ open?: boolean;
20
13
  }
21
- declare var __VLS_14: {}, __VLS_16: {};
14
+ declare var __VLS_16: {}, __VLS_18: {};
22
15
  type __VLS_Slots = {} & {
23
- default?: (props: typeof __VLS_14) => any;
16
+ default?: (props: typeof __VLS_16) => any;
24
17
  } & {
25
- bottom?: (props: typeof __VLS_16) => any;
18
+ bottom?: (props: typeof __VLS_18) => any;
26
19
  };
27
20
  declare const __VLS_base: import("vue").DefineComponent<CSideNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSideNavigationProps> & Readonly<{}>, {
21
+ open: boolean;
28
22
  mobile: boolean;
29
- menuVisible: boolean;
30
- styles: null | Record<string, string>;
31
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
25
  declare const _default: typeof __VLS_export;
@@ -1,32 +1,39 @@
1
1
  interface CSideNavigationItemProps {
2
2
  /**
3
- * Indicate active state
4
- *
5
- * @seeded from csc-ui — verify
3
+ * On an item without sub-items, mark the current page
4
+ * (`aria-current="page"`); on a parent, expand its sub-items.
6
5
  */
7
6
  active?: boolean;
8
- /** Whether the item is in the keyboard tab order — a parent item sets this to false on its collapsed sub-items so hidden items aren't Tab-reachable */
9
- focusable?: boolean;
10
7
  /**
11
- * Hyperlink url
8
+ * Whether the item sits under a collapsed parent item, which sets it so
9
+ * hidden items are not Tab-reachable.
10
+ *
11
+ * @internal
12
+ */
13
+ collapsed?: boolean;
14
+ /**
15
+ * URL that makes the item a real link; without it the item is a button.
12
16
  *
13
- * @seeded from csc-ui — verify
14
17
  * @freeform any URL
15
18
  */
16
19
  href?: string;
17
20
  /**
18
- * Loading state
19
- *
20
- * @seeded from csc-ui — verify
21
+ * Cover the item with a loading overlay: a translucent scrim and a spinner.
21
22
  */
22
23
  loading?: boolean;
23
24
  /**
24
- * Hyperlink target
25
+ * Where the `href` opens, as on a native `<a>`: the same tab unless set —
26
+ * `_blank` for a new one.
25
27
  *
26
- * @seeded from csc-ui — verify
27
28
  * @freeform any browsing-context name (e.g. _blank, _self)
28
29
  */
29
30
  target?: string;
31
+ /**
32
+ * Value reported in the `select` event when the item is activated
33
+ *
34
+ * @freeform
35
+ */
36
+ value?: string;
30
37
  }
31
38
  declare var __VLS_14: {}, __VLS_16: {};
32
39
  type __VLS_Slots = {} & {
@@ -35,11 +42,12 @@ type __VLS_Slots = {} & {
35
42
  'sub-item'?: (props: typeof __VLS_16) => any;
36
43
  };
37
44
  declare const __VLS_base: import("vue").DefineComponent<CSideNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSideNavigationItemProps> & Readonly<{}>, {
45
+ value: string;
38
46
  loading: boolean;
39
- active: boolean;
40
47
  href: string;
41
48
  target: string;
42
- focusable: boolean;
49
+ active: boolean;
50
+ collapsed: boolean;
43
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
52
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
53
  declare const _default: typeof __VLS_export;
@@ -1,107 +1,63 @@
1
1
  interface CSliderProps {
2
- /**
3
- * Aria label
4
- *
5
- * @seeded from csc-ui — verify
6
- * @freeform
7
- */
8
- ariaLabelInternal?: string;
9
2
  /**
10
3
  * Disable the slider
11
- *
12
- * @seeded from csc-ui — verify
13
4
  */
14
5
  disabled?: boolean;
15
6
  /**
16
- * Disable tooltip
17
- *
18
- * @seeded from csc-ui — verify
7
+ * Turn off the value bubble shown above the thumb while the slider is
8
+ * hovered, pressed or focused
19
9
  */
20
10
  disableTooltip?: boolean;
21
- /**
22
- * Id of the element
23
- *
24
- * @seeded from csc-ui — verify
25
- * @freeform
26
- */
27
- hostId?: string;
28
- /**
29
- * Id of the element
30
- *
31
- * @seeded from csc-ui — verify
32
- * @freeform
33
- */
34
- hostName?: string;
35
11
  /**
36
12
  * Label of the slider
37
13
  *
38
- * @seeded from csc-ui — verify
39
14
  * @freeform
40
15
  */
41
16
  label?: string;
42
17
  /**
43
- * Show tick labels
44
- *
45
- * @seeded from csc-ui — verify
18
+ * Write a number under the track at each tick mark position, `segments`
19
+ * apart, formatted like the value bubble's; shown with or without `ticks`
46
20
  */
47
21
  labels?: boolean;
22
+ /** The largest value. */
23
+ max?: number;
24
+ /** The smallest value. */
25
+ min?: number;
48
26
  /**
49
- * Max value
27
+ * `name` of the inner range input. The component is not
28
+ * form-associated, so it does not submit with a `<form>`.
50
29
  *
51
- * @seeded from csc-ui — verify
52
- */
53
- max?: number | string;
54
- /**
55
- * Min value
56
- *
57
- * @seeded from csc-ui — verify
58
- */
59
- min?: number | string;
60
- /**
61
- * Segment count
62
- *
63
- * @seeded from csc-ui — verify
64
- */
65
- segments?: number | string;
66
- /**
67
- * Step
68
- *
69
- * @seeded from csc-ui — verify
70
- */
71
- step?: number | string;
72
- /**
73
- * Thow ticks
74
- *
75
- * @seeded from csc-ui — verify
30
+ * @freeform
76
31
  */
32
+ name?: string;
33
+ /** Number of segments the tick marks divide the track into. */
34
+ segments?: number;
35
+ /** Step between values. */
36
+ step?: number;
37
+ /** Draw tick marks along the track, `segments` apart. */
77
38
  ticks?: boolean;
78
39
  /**
79
- * Unit
40
+ * Unit shown after the value in the tooltip and read with it, e.g. `%`.
80
41
  *
81
- * @seeded from csc-ui — verify
82
42
  * @freeform
83
43
  */
84
44
  unit?: string;
85
- /**
86
- * Value
87
- *
88
- * @seeded from csc-ui — verify
89
- */
90
- value?: number | string;
45
+ /** The value, a number between `min` and `max`. */
46
+ value?: number;
91
47
  }
92
- declare const __VLS_export: import("vue").DefineComponent<CSliderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSliderProps> & Readonly<{}>, {
48
+ declare const __VLS_export: import("vue").DefineComponent<CSliderProps, {
49
+ focus: (options?: FocusOptions) => void;
50
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSliderProps> & Readonly<{}>, {
93
51
  label: string;
94
- value: number | string;
52
+ name: string;
53
+ value: number;
54
+ step: number;
95
55
  disabled: boolean;
96
- hostId: string;
97
- hostName: string;
98
- ariaLabelInternal: string;
56
+ max: number;
57
+ min: number;
99
58
  disableTooltip: boolean;
100
59
  labels: boolean;
101
- max: number | string;
102
- min: number | string;
103
- segments: number | string;
104
- step: number | string;
60
+ segments: number;
105
61
  ticks: boolean;
106
62
  unit: string;
107
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,21 +1,17 @@
1
1
  interface CSpinnerProps {
2
2
  /**
3
- * Color of the spinner
3
+ * Stroke colour, the primary role by default; `currentColor` follows the
4
+ * surrounding text colour.
4
5
  *
5
- * @seeded from csc-ui — verify
6
6
  * @freeform any CSS color value
7
7
  */
8
8
  color?: string;
9
9
  /**
10
- * Size of the spinner
11
- *
12
- * @seeded from csc-ui — verify
10
+ * Diameter in pixels.
13
11
  */
14
12
  size?: number;
15
13
  /**
16
- * Width of the spinner
17
- *
18
- * @seeded from csc-ui — verify
14
+ * Stroke width in pixels.
19
15
  */
20
16
  width?: number;
21
17
  }
@@ -1,16 +1,15 @@
1
- export interface CStatusProps {
2
- /**
3
- * Status type
4
- *
5
- * @seeded from csc-ui — verify
6
- */
7
- type?: CStatusType;
8
- }
9
1
  /**
10
2
  * Status type of the pill. Each value paints the matching semantic status
11
- * colours; omitting the attribute renders the neutral primary pill.
3
+ * colours; omitting the attribute renders the neutral grey pill.
12
4
  */
13
5
  export type CStatusType = 'error' | 'info' | 'success' | 'warning';
6
+ interface CStatusProps {
7
+ /**
8
+ * The status family whose tint and ink paint the pill; without it the
9
+ * pill is neutral grey.
10
+ */
11
+ type?: CStatusType;
12
+ }
14
13
  declare const _default: typeof __VLS_export;
15
14
  export default _default;
16
15
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CStatusProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CStatusProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -1,14 +1,16 @@
1
1
  interface CStepProps {
2
2
  /**
3
- * Mark step as complete
3
+ * Whether the step comes before the current one; the parent `<c-steps>`
4
+ * sets it from its `value`.
4
5
  *
5
- * @seeded from csc-ui — verify
6
+ * @internal
6
7
  */
7
8
  complete?: boolean;
8
9
  /**
9
- * Mark step as current
10
+ * Whether this is the current step; the parent `<c-steps>` sets it from its
11
+ * `value`.
10
12
  *
11
- * @seeded from csc-ui — verify
13
+ * @internal
12
14
  */
13
15
  current?: boolean;
14
16
  }
@@ -1,17 +1,13 @@
1
1
  interface CStepsProps {
2
- /**
3
- * Value of the accordion (current step number)
4
- *
5
- * @seeded from csc-ui — verify
6
- */
7
- value?: number | string;
2
+ /** Number of the current step, counting from 1. */
3
+ value?: number;
8
4
  }
9
5
  declare var __VLS_1: {};
10
6
  type __VLS_Slots = {} & {
11
7
  default?: (props: typeof __VLS_1) => any;
12
8
  };
13
9
  declare const __VLS_base: import("vue").DefineComponent<CStepsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CStepsProps> & Readonly<{}>, {
14
- value: number | string;
10
+ value: number;
15
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
13
  declare const _default: typeof __VLS_export;
@@ -1,47 +1,53 @@
1
1
  interface CSubNavigationItemProps {
2
2
  /**
3
- * Active state
4
- *
5
- * @seeded from csc-ui — verify
3
+ * Mark the sub-item as the current page (`aria-current="page"`); set `active`
4
+ * on its parent item too, so the parent is expanded.
6
5
  */
7
6
  active?: boolean;
8
7
  /**
9
- * Element is visible and focusable
8
+ * Whether the item sits under a collapsed `<c-side-navigation-item>`,
9
+ * which sets it so hidden items are not Tab-reachable.
10
10
  *
11
- * @seeded from csc-ui — verify
11
+ * @internal
12
12
  */
13
- focusable?: boolean;
13
+ collapsed?: boolean;
14
14
  /**
15
- * Link url
15
+ * URL that makes the sub-item a real link; without it the sub-item is a
16
+ * button.
16
17
  *
17
- * @seeded from csc-ui — verify
18
18
  * @freeform any URL
19
19
  */
20
20
  href?: string;
21
21
  /**
22
- * Loading state
23
- *
24
- * @seeded from csc-ui — verify
22
+ * Cover the sub-item with a loading overlay: a translucent scrim and a
23
+ * spinner.
25
24
  */
26
25
  loading?: boolean;
27
26
  /**
28
- * Link target
27
+ * Where the `href` opens, as on a native `<a>`: the same tab unless set —
28
+ * `_blank` for a new one.
29
29
  *
30
- * @seeded from csc-ui — verify
31
30
  * @freeform any browsing-context name (e.g. _blank, _self)
32
31
  */
33
32
  target?: string;
33
+ /**
34
+ * Value reported in the `select` event when the item is activated
35
+ *
36
+ * @freeform
37
+ */
38
+ value?: string;
34
39
  }
35
- declare var __VLS_1: {};
40
+ declare var __VLS_7: {};
36
41
  type __VLS_Slots = {} & {
37
- default?: (props: typeof __VLS_1) => any;
42
+ default?: (props: typeof __VLS_7) => any;
38
43
  };
39
44
  declare const __VLS_base: import("vue").DefineComponent<CSubNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSubNavigationItemProps> & Readonly<{}>, {
45
+ value: string;
40
46
  loading: boolean;
41
- active: boolean;
42
47
  href: string;
43
48
  target: string;
44
- focusable: boolean;
49
+ active: boolean;
50
+ collapsed: boolean;
45
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
52
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
53
  declare const _default: typeof __VLS_export;