@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,8 +1,9 @@
1
1
  interface CSwitchProps {
2
2
  /**
3
- * If `true`, the checkbox is selected.
4
- *
5
- * @seeded from csc-ui — verify
3
+ * Whether the switch is on: the boolean view of `value`. Setting it sets
4
+ * `value` to `trueValue` or `falseValue`; reading it reports whether
5
+ * `value` equals `trueValue`. As an attribute it sets the initial state when
6
+ * no `value` is bound.
6
7
  */
7
8
  checked?: boolean;
8
9
  /**
@@ -10,18 +11,9 @@ interface CSwitchProps {
10
11
  */
11
12
  disabled?: boolean;
12
13
  /**
13
- * The value when the checkbox is unchecked
14
- *
15
- * @seeded from csc-ui — verify
14
+ * The value when the switch is off
16
15
  */
17
16
  falseValue?: boolean | number | string;
18
- /**
19
- * Id for the element
20
- *
21
- * @seeded from csc-ui — verify
22
- * @freeform
23
- */
24
- hostId?: string;
25
17
  /**
26
18
  * Label of the switch, shown beside the toggle. Falls back to the default
27
19
  * slot content when not set.
@@ -30,40 +22,35 @@ interface CSwitchProps {
30
22
  */
31
23
  label?: string;
32
24
  /**
33
- * Loading state
34
- *
35
- * @seeded from csc-ui — verify
25
+ * Show a spinner in place of the handle, such as while the change is
26
+ * saved. The switch ignores toggles meanwhile and is announced as busy
36
27
  */
37
28
  loading?: boolean;
38
29
  /**
39
- * Set as required
40
- *
41
- * @seeded from csc-ui — verify
30
+ * Set as required — shows the required marker on the label
42
31
  */
43
32
  required?: boolean;
44
33
  /**
45
- * The value when the checkbox is checked
46
- *
47
- * @seeded from csc-ui — verify
34
+ * The value when the switch is on
48
35
  */
49
36
  trueValue?: boolean | number | string;
50
37
  /**
51
- * The input value
52
- * - Only used when the checkbox participates in a native `<form>`
53
- *
54
- * @seeded from csc-ui — verify
38
+ * The switch's state: `trueValue` while it is on, `falseValue` while it is
39
+ * off. A bound value wins over a `checked` attribute; any other value,
40
+ * `''` included, reads as off.
55
41
  */
56
- value?: boolean | number | string;
42
+ value?: string | number | boolean;
57
43
  }
58
44
  declare var __VLS_12: {};
59
45
  type __VLS_Slots = {} & {
60
46
  default?: (props: typeof __VLS_12) => any;
61
47
  };
62
- declare const __VLS_base: import("vue").DefineComponent<CSwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSwitchProps> & Readonly<{}>, {
48
+ declare const __VLS_base: import("vue").DefineComponent<CSwitchProps, {
49
+ focus: (options?: FocusOptions) => void;
50
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSwitchProps> & Readonly<{}>, {
63
51
  label: string;
64
- value: boolean | number | string;
52
+ value: string | number | boolean;
65
53
  disabled: boolean;
66
- hostId: string;
67
54
  loading: boolean;
68
55
  required: boolean;
69
56
  checked: boolean;
@@ -1,40 +1,25 @@
1
1
  interface CTabProps {
2
2
  /**
3
- * Mark tab as active
3
+ * Whether this is the selected tab; the parent `<c-tabs>` sets it.
4
4
  *
5
- * @seeded from csc-ui — verify
5
+ * @internal
6
6
  */
7
7
  active?: boolean;
8
8
  /**
9
- * Mark tab as disabled
10
- *
11
- * @seeded from csc-ui — verify
9
+ * Grey the tab out and keep it from being selected by pointer or keyboard;
10
+ * the arrow keys skip it.
12
11
  */
13
12
  disabled?: boolean;
14
13
  /**
15
- * Id of the tab
16
- *
17
- * @seeded from csc-ui — verify
18
- * @freeform
19
- */
20
- hostId?: string;
21
- /**
22
- * Position in the set
14
+ * Whether the tab is the row's Tab stop though not active: no tab matches
15
+ * the value; the parent `<c-tabs>` sets it.
23
16
  *
24
- * @seeded from csc-ui — verify
17
+ * @internal
25
18
  */
26
- position?: number;
19
+ tabStop?: boolean;
27
20
  /**
28
- * Size of the set
29
- *
30
- * @seeded from csc-ui — verify
31
- */
32
- setsize?: number;
33
- /**
34
- * Value for the tab
35
- * - for use in c-tabs
36
- *
37
- * @seeded from csc-ui — verify
21
+ * Value of the tab, matching the `value` of the `c-tab-item` panel it shows;
22
+ * `c-tabs` holds it as its `value` while this tab is active.
38
23
  */
39
24
  value?: number | string;
40
25
  }
@@ -45,10 +30,8 @@ type __VLS_Slots = {} & {
45
30
  declare const __VLS_base: import("vue").DefineComponent<CTabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTabProps> & Readonly<{}>, {
46
31
  value: number | string;
47
32
  disabled: boolean;
48
- hostId: string;
49
33
  active: boolean;
50
- position: number;
51
- setsize: number;
34
+ tabStop: boolean;
52
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
54
37
  declare const _default: typeof __VLS_export;
@@ -1,31 +1,29 @@
1
- export interface CTabButtonsProps {
1
+ /**
2
+ * Size of the tab strip. `small` renders a more compact control; the size is
3
+ * also propagated to every slotted `<c-button>`. Omitting the attribute
4
+ * renders the default size.
5
+ */
6
+ export type CTabButtonsSize = 'default' | 'small';
7
+ interface CTabButtonsProps {
2
8
  /** Disable the whole tab strip — every slotted c-button is disabled and the selection can no longer be changed. */
3
9
  disabled?: boolean;
4
10
  /**
5
- * Size of the buttons
6
- *
7
- * @seeded from csc-ui — verify
11
+ * Size of the buttons: `default`, or the more compact `small`.
8
12
  */
9
13
  size?: CTabButtonsSize;
10
14
  /**
11
- * Value of the active tab — pushed down by the parent c-tabs.
15
+ * Value of the active tab; the parent `<c-tabs>` sets it.
12
16
  *
13
- * @seeded from csc-ui — verify
17
+ * @internal
14
18
  */
15
19
  value?: number | string;
16
20
  }
17
- /**
18
- * Size of the tab strip. `small` renders a more compact control; the size is
19
- * also propagated to every slotted `<c-button>`. Omitting the attribute
20
- * renders the default size.
21
- */
22
- export type CTabButtonsSize = 'default' | 'small';
23
21
  declare const _default: typeof __VLS_export;
24
22
  export default _default;
25
23
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTabButtonsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTabButtonsProps> & Readonly<{}>, {
26
24
  value: number | string;
27
- disabled: boolean;
28
25
  size: CTabButtonsSize;
26
+ disabled: boolean;
29
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
30
28
  default?: (props: {}) => any;
31
29
  }>;
@@ -1,14 +1,13 @@
1
1
  interface CTabItemProps {
2
2
  /**
3
- * Active
3
+ * Whether this is the shown panel; the parent `<c-tabs>` sets it.
4
4
  *
5
- * @seeded from csc-ui — verify
5
+ * @internal
6
6
  */
7
7
  active?: boolean;
8
8
  /**
9
- * Tab value
10
- *
11
- * @seeded from csc-ui — verify
9
+ * Value of the panel, the same as its `c-tab`'s; the panel shows while the
10
+ * `value` of `c-tabs` equals it.
12
11
  */
13
12
  value?: number | string;
14
13
  }
@@ -1,14 +1,15 @@
1
1
  interface CTabItemsProps {
2
2
  /**
3
- * Disable animation
3
+ * Switch panels without the slide; the parent `<c-tabs>` sets it from its
4
+ * own `disable-animation`.
4
5
  *
5
- * @seeded from csc-ui — verify
6
+ * @internal
6
7
  */
7
8
  disableAnimation?: boolean;
8
9
  /**
9
- * Currently active tab
10
+ * Value of the shown panel; the parent `<c-tabs>` sets it.
10
11
  *
11
- * @seeded from csc-ui — verify
12
+ * @internal
12
13
  */
13
14
  value?: number | string;
14
15
  }
@@ -1,14 +1,12 @@
1
1
  interface CTableProps {
2
2
  /**
3
- * Mobile breakpoint in pixels
4
- *
5
- * @seeded from csc-ui — verify
3
+ * The table's width, in pixels, at or below which a `responsive` table
4
+ * stacks its rows into cards.
6
5
  */
7
6
  mobileBreakpoint?: number;
8
7
  /**
9
- * Should the table be responsive
10
- *
11
- * @seeded from csc-ui — verify
8
+ * Stacks the rows into cards, each cell labelled with its column header,
9
+ * while the table is no wider than `mobile-breakpoint`.
12
10
  */
13
11
  responsive?: boolean;
14
12
  }
@@ -16,7 +14,9 @@ declare var __VLS_1: {};
16
14
  type __VLS_Slots = {} & {
17
15
  default?: (props: typeof __VLS_1) => any;
18
16
  };
19
- declare const __VLS_base: import("vue").DefineComponent<CTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTableProps> & Readonly<{}>, {
17
+ declare const __VLS_base: import("vue").DefineComponent<CTableProps, {
18
+ updateMobileLabels: () => void;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTableProps> & Readonly<{}>, {
20
20
  mobileBreakpoint: number;
21
21
  responsive: boolean;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -3,42 +3,35 @@
3
3
  * tabs to fill the full row width.
4
4
  */
5
5
  export type CTabsJustify = 'center' | 'end' | 'start' | 'stretch';
6
- export interface CTabsProps {
6
+ interface CTabsProps {
7
7
  /**
8
- * Disable the bottom border
9
- *
10
- * @seeded from csc-ui — verify
8
+ * Remove the line along the tab row.
11
9
  */
12
10
  borderless?: boolean;
13
11
  /**
14
- * Disable animation
15
- *
16
- * @seeded from csc-ui — verify
12
+ * Switch off the underline's glide and the panels' slide; both also stop
13
+ * under the reduced-motion preference.
17
14
  */
18
15
  disableAnimation?: boolean;
19
16
  /**
20
- * Justification of the children
21
- *
22
- * @seeded from csc-ui — verify
17
+ * Placement of the tabs along the row: `stretch` grows them to fill it;
18
+ * `start`, `center` and `end` keep each tab at its own width. No effect on
19
+ * `vertical` tabs.
23
20
  */
24
21
  justify?: CTabsJustify;
25
22
  /**
26
- * Mobile breakpoint in pixels
27
- * - affects the content stacking with the vertical tabs
28
- *
29
- * @seeded from csc-ui — verify
23
+ * Width in pixels of the `c-tabs` element (not the viewport) below which
24
+ * `vertical` tabs move above the panels. No effect on horizontal tabs.
30
25
  */
31
26
  mobileBreakpoint?: number;
32
27
  /**
33
- * Currently active tab
34
- *
35
- * @seeded from csc-ui — verify
28
+ * Value of the active tab: the `c-tab` and the `c-tab-item` with the same
29
+ * `value` are shown. With no match, no tab is active and no panel is shown.
36
30
  */
37
31
  value?: number | string;
38
32
  /**
39
- * Vertical tabs
40
- *
41
- * @seeded from csc-ui — verify
33
+ * Stack the tabs in a column beside the panels, which slide vertically; below
34
+ * `mobile-breakpoint` the column moves above the panels.
42
35
  */
43
36
  vertical?: boolean;
44
37
  }
@@ -1,48 +1,49 @@
1
- export interface CTagProps {
1
+ /**
2
+ * Size of the tag. `small` renders a more compact pill; omitting the
3
+ * attribute renders the default size.
4
+ */
5
+ export type CTagSize = 'default' | 'small';
6
+ interface CTagProps {
2
7
  /**
3
- * Mark tag as active
4
- *
5
- * @seeded from csc-ui — verify
8
+ * Paint the filled, selected look, announced as the pressed state of a
9
+ * plain tag. The tag never sets it itself: toggle it on `click`
6
10
  */
7
11
  active?: boolean;
8
12
  /**
9
- * Display an optional badge at the start of the tag
10
- *
11
- * @seeded from csc-ui — verify
13
+ * A number or short text shown in a small pill at the start of the tag
12
14
  */
13
15
  badge?: null | number | string;
14
16
  /**
15
- * Mark tag as closeable
16
- *
17
- * @seeded from csc-ui — verify
17
+ * Add a close button that fires `close`; removing the tag stays your job.
18
+ * The button, not the tag, is then the Tab stop
18
19
  */
19
20
  closeable?: boolean;
20
21
  /**
21
- * Remove the hover effect
22
+ * Accessible name of the close button rendered when `closeable`
22
23
  *
23
- * @seeded from csc-ui — verify
24
+ * @freeform
25
+ */
26
+ closeLabel?: string;
27
+ /**
28
+ * Make the tag a plain label: no hover effect, not a button, and out of
29
+ * the Tab order
24
30
  */
25
31
  flat?: boolean;
26
32
  /**
27
- * Size of the tag
28
- *
29
- * @seeded from csc-ui — verify
33
+ * Size of the tag: `small` renders a compact pill. Inside `c-tags`, the
34
+ * group's `size` overrides it
30
35
  */
31
36
  size?: CTagSize;
32
37
  }
33
- /**
34
- * Size of the tag. `small` renders a more compact pill; omitting the
35
- * attribute renders the default size.
36
- */
37
- export type CTagSize = 'default' | 'small';
38
38
  declare const _default: typeof __VLS_export;
39
39
  export default _default;
40
40
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTagProps> & Readonly<{}>, {
41
41
  flat: boolean;
42
+ closeable: boolean;
42
43
  size: CTagSize;
43
44
  active: boolean;
44
45
  badge: null | number | string;
45
- closeable: boolean;
46
+ closeLabel: string;
46
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
47
48
  default?: (props: {}) => any;
48
49
  }>;
@@ -1,4 +1,9 @@
1
- export interface CTagsProps {
1
+ /**
2
+ * Size propagated to every slotted `<c-tag>`. `small` renders compact tags;
3
+ * omitting the attribute leaves the tags at their default size.
4
+ */
5
+ export type CTagsSize = 'default' | 'small';
6
+ interface CTagsProps {
2
7
  /**
3
8
  * Label of the tag group, shown above the tags
4
9
  *
@@ -10,23 +15,17 @@ export interface CTagsProps {
10
15
  */
11
16
  required?: boolean;
12
17
  /**
13
- * Size of the tags
14
- *
15
- * @seeded from csc-ui — verify
18
+ * Size of every tag in the group: `small` renders them compact. Overrides
19
+ * each tag's own `size`
16
20
  */
17
21
  size?: CTagsSize;
18
22
  }
19
- /**
20
- * Size propagated to every slotted `<c-tag>`. `small` renders compact tags;
21
- * omitting the attribute leaves the tags at their default size.
22
- */
23
- export type CTagsSize = 'default' | 'small';
24
23
  declare const _default: typeof __VLS_export;
25
24
  export default _default;
26
25
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTagsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTagsProps> & Readonly<{}>, {
27
26
  label: string;
28
- required: boolean;
29
27
  size: CTagsSize;
28
+ required: boolean;
30
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
31
30
  default?: (props: {}) => any;
32
31
  }>;