@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,14 +1,12 @@
1
1
  interface CListProps {
2
2
  /**
3
- * Show border arount the list items
4
- *
5
- * @seeded from csc-ui — verify
3
+ * Draw a 1px border with rounded corners around each item; an `active` item's
4
+ * border turns primary.
6
5
  */
7
6
  bordered?: boolean;
8
7
  /**
9
- * Disable the list
10
- *
11
- * @seeded from csc-ui — verify
8
+ * Disable every item, items added later included; clearing it re-enables only
9
+ * the items the list disabled.
12
10
  */
13
11
  disabled?: boolean;
14
12
  }
@@ -1,45 +1,40 @@
1
1
  interface CListItemProps {
2
2
  /**
3
- * Set the item active
4
- *
5
- * @seeded from csc-ui — verify
3
+ * Mark the item as the current one: a primary tint and ring, announced as
4
+ * current (`aria-current`).
6
5
  */
7
6
  active?: boolean;
8
7
  /**
9
- * Disable the item
10
- *
11
- * @seeded from csc-ui — verify
8
+ * Grey the item out, ignore the pointer and take it out of the Tab order; a
9
+ * link item stops being a link.
12
10
  */
13
11
  disabled?: boolean;
14
12
  /**
15
- * Disabled by the parent list
13
+ * Disabled by the parent `<c-list>`, which sets it from its own `disabled`.
16
14
  *
17
- * @seeded from csc-ui — verify
15
+ * @internal
18
16
  */
19
17
  disabledByParent?: boolean;
20
18
  /**
21
- * Display background color on hover
22
- *
23
- * @seeded from csc-ui — verify
19
+ * Add the hover tint alone, without a link or a ripple.
24
20
  */
25
21
  hoverable?: boolean;
26
22
  /**
27
- * Hyperlink url
23
+ * URL that turns the item's content box into a real link, with a hover tint
24
+ * on the row.
28
25
  *
29
- * @seeded from csc-ui — verify
30
26
  * @freeform any URL
31
27
  */
32
28
  href?: string;
33
29
  /**
34
- * Add ripple effect to the item
35
- *
36
- * @seeded from csc-ui — verify
30
+ * Add a pointer cursor, the hover tint and a ripple on press; an item without
31
+ * `href` also becomes a Tab stop that Enter and Space press, firing `click`.
37
32
  */
38
33
  ripple?: boolean;
39
34
  /**
40
- * Hyperlink target
35
+ * Where the `href` opens, as on a native `<a>`: the same tab unless set —
36
+ * `_blank` for a new one.
41
37
  *
42
- * @seeded from csc-ui — verify
43
38
  * @freeform any browsing-context name (e.g. _blank, _self)
44
39
  */
45
40
  target?: string;
@@ -54,9 +49,9 @@ type __VLS_Slots = {} & {
54
49
  };
55
50
  declare const __VLS_base: import("vue").DefineComponent<CListItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CListItemProps> & Readonly<{}>, {
56
51
  disabled: boolean;
57
- active: boolean;
58
52
  href: string;
59
53
  target: string;
54
+ active: boolean;
60
55
  disabledByParent: boolean;
61
56
  hoverable: boolean;
62
57
  ripple: boolean;
@@ -1,8 +1,9 @@
1
1
  interface CListItemTitleProps {
2
2
  /**
3
- * Set the title active
3
+ * Whether the item holding the title is active; the parent
4
+ * `<c-list-item>` sets it from its own `active`.
4
5
  *
5
- * @seeded from csc-ui — verify
6
+ * @internal
6
7
  */
7
8
  active?: boolean;
8
9
  }
@@ -1,34 +1,21 @@
1
1
  interface CLoaderProps {
2
2
  /**
3
- * Delay in seconds of showing the contents in the slot of the loader
4
- *
5
- * @seeded from csc-ui — verify
3
+ * Delay, in milliseconds, before the slotted message fades in once the
4
+ * loader shows.
6
5
  */
7
- contentdelay?: number;
6
+ contentDelay?: number;
8
7
  /**
9
- * Size of the loader
10
- *
11
- * @seeded from csc-ui — verify
8
+ * Hide the loader. Toggling it fades the loader in and out, so keep the
9
+ * element mounted and bind `hide` rather than using `v-if`, which would
10
+ * unmount it and skip the fade-out.
12
11
  */
13
- size?: number;
12
+ hide?: boolean;
14
13
  /**
15
- * Whether the loader is shown. Toggling this drives the fade-in / smooth
16
- * fade-out — keep the element mounted and bind `visible` rather than using
17
- * `v-if`, which would unmount it and skip the leave transition.
18
- *
19
- * For imperative control (non-Vue consumers holding an element ref) the
20
- * element also exposes `show()` / `hide()` methods. The prop is named
21
- * `visible` (not `show`) so it doesn't collide with the `show()` method —
22
- * mirroring native `<dialog>` (`open` property + `show()`/`close()` methods).
23
- *
24
- * NOTE: this replaces the original Stencil `hide` prop with its inverse, so
25
- * the default (`true` = shown) preserves the original default behaviour.
14
+ * The spinner's diameter in pixels.
26
15
  */
27
- visible?: boolean;
16
+ size?: number;
28
17
  /**
29
- * Width of the loader
30
- *
31
- * @seeded from csc-ui — verify
18
+ * The spinner's stroke width in pixels.
32
19
  */
33
20
  width?: number;
34
21
  }
@@ -36,14 +23,11 @@ declare var __VLS_6: {};
36
23
  type __VLS_Slots = {} & {
37
24
  default?: (props: typeof __VLS_6) => any;
38
25
  };
39
- declare const __VLS_base: import("vue").DefineComponent<CLoaderProps, {
40
- hide: () => void;
41
- show: () => void;
42
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoaderProps> & Readonly<{}>, {
26
+ declare const __VLS_base: import("vue").DefineComponent<CLoaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoaderProps> & Readonly<{}>, {
43
27
  width: number;
44
28
  size: number;
45
- contentdelay: number;
46
- visible: boolean;
29
+ contentDelay: number;
30
+ hide: boolean;
47
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
49
33
  declare const _default: typeof __VLS_export;
@@ -1,31 +1,31 @@
1
1
  interface CLoginButtonProps {
2
2
  /**
3
- * Alt description for logo
3
+ * Alternative text for the `src` logo, read before the provider's name.
4
+ * Leave it empty when the name already identifies the provider.
4
5
  *
5
- * @seeded from csc-ui — verify
6
6
  * @freeform any image alt text
7
7
  */
8
8
  alt?: string;
9
9
  /**
10
- * Login provider link. Do not set if using a javascript click handler
10
+ * The provider's sign-in URL, which makes the card a link. Without it the
11
+ * card is a button: handle its `click`.
11
12
  *
12
- * @seeded from csc-ui — verify
13
13
  * @freeform any URL
14
14
  */
15
15
  href?: string;
16
16
  /**
17
- * Login provider logo url
17
+ * URL of the provider's logo, shown above the name. The `image` slot
18
+ * replaces it.
18
19
  *
19
- * @seeded from csc-ui — verify
20
20
  * @freeform any image URL
21
21
  */
22
22
  src?: string;
23
23
  }
24
- declare var __VLS_1: {}, __VLS_3: {};
24
+ declare var __VLS_8: {}, __VLS_10: {};
25
25
  type __VLS_Slots = {} & {
26
- image?: (props: typeof __VLS_1) => any;
26
+ image?: (props: typeof __VLS_8) => any;
27
27
  } & {
28
- default?: (props: typeof __VLS_3) => any;
28
+ default?: (props: typeof __VLS_10) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<CLoginButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoginButtonProps> & Readonly<{}>, {
31
31
  href: string;
@@ -3,36 +3,31 @@
3
3
  * the background image when `overlay` is set.
4
4
  */
5
5
  export type CLoginCardBlendMode = 'color-burn' | 'color-dodge' | 'color' | 'darken' | 'difference' | 'exclusion' | 'hard-light' | 'hue' | 'lighten' | 'luminosity' | 'multiply' | 'normal' | 'overlay' | 'saturation' | 'screen' | 'soft-light';
6
- export interface CLoginCardProps {
6
+ interface CLoginCardProps {
7
7
  /**
8
- * Background position (css background-position)
8
+ * Which part of the `src` image shows: any CSS `background-position`
9
+ * value.
9
10
  *
10
- * @seeded from csc-ui — verify
11
11
  * @freeform any CSS background-position value
12
12
  */
13
13
  backgroundPosition?: string;
14
14
  /**
15
- * Mobile breakpoint in pixels
16
- *
17
- * @seeded from csc-ui — verify
15
+ * The card's own width, in pixels, at or below which it switches to its
16
+ * compact layout.
18
17
  */
19
18
  mobileBreakpoint?: number;
20
19
  /**
21
- * Add colored overlay to the background image
22
- *
23
- * @seeded from csc-ui — verify
20
+ * Tints the background image with the primary colour, blended through
21
+ * `overlay-blend-mode`.
24
22
  */
25
23
  overlay?: boolean;
26
- /**
27
- * Add colored overlay to the background image
28
- *
29
- * @seeded from csc-ui — verify
30
- */
24
+ /** How the `overlay` tint blends with the image: a CSS blend mode. */
31
25
  overlayBlendMode?: CLoginCardBlendMode;
32
26
  /**
33
- * Background image
27
+ * URL of the background image, shown below a curved edge: in the card's
28
+ * bottom-right corner, or along its bottom in the compact layout. Without
29
+ * it the content takes the card's full width.
34
30
  *
35
- * @seeded from csc-ui — verify
36
31
  * @freeform any image URL
37
32
  */
38
33
  src?: string;
@@ -7,17 +7,15 @@ export type CLoginCardActionsAlign = 'center' | 'end' | 'start';
7
7
  * grow to fill the row.
8
8
  */
9
9
  export type CLoginCardActionsJustify = 'center' | 'end' | 'space-around' | 'space-between' | 'start' | 'stretch';
10
- export interface CLoginCardActionsProps {
10
+ interface CLoginCardActionsProps {
11
11
  /**
12
- * Align the actions
13
- *
14
- * @seeded from csc-ui — verify
12
+ * Aligns the actions across the row: to its top (`start`), centre or
13
+ * bottom (`end`).
15
14
  */
16
15
  align?: CLoginCardActionsAlign;
17
16
  /**
18
- * Justify the actions
19
- *
20
- * @seeded from csc-ui — verify
17
+ * Distributes the actions along the row; `stretch` grows every action to
18
+ * share it.
21
19
  */
22
20
  justify?: CLoginCardActionsJustify;
23
21
  }
@@ -1,8 +1,18 @@
1
+ interface CLoginCardTitleProps {
2
+ /**
3
+ * The title's heading level, 1 to 6: pick the one that fits the card's
4
+ * place in the page's outline (2 under the page's `h1`, 3 inside a section
5
+ * with an `h2`).
6
+ */
7
+ headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
8
+ }
1
9
  declare var __VLS_1: {};
2
10
  type __VLS_Slots = {} & {
3
11
  default?: (props: typeof __VLS_1) => any;
4
12
  };
5
- declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
+ declare const __VLS_base: import("vue").DefineComponent<CLoginCardTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoginCardTitleProps> & Readonly<{}>, {
14
+ headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
17
  declare const _default: typeof __VLS_export;
8
18
  export default _default;
@@ -1,14 +1,21 @@
1
1
  interface CMainProps {
2
2
  /**
3
- * Disable the default dashboard layout
4
- *
5
- * @seeded from csc-ui — verify
3
+ * Turns off the dashboard layout: the slotted components stack in a plain
4
+ * column, still at least a viewport tall.
6
5
  */
7
6
  disableLayout?: boolean;
8
7
  }
9
- declare var __VLS_1: {};
8
+ declare var __VLS_1: {
9
+ class: string;
10
+ }, __VLS_3: {
11
+ class: string;
12
+ ref: string;
13
+ onSlotchange: () => void;
14
+ };
10
15
  type __VLS_Slots = {} & {
11
- default?: (props: typeof __VLS_1) => any;
16
+ banner?: (props: typeof __VLS_1) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_3) => any;
12
19
  };
13
20
  declare const __VLS_base: import("vue").DefineComponent<CMainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMainProps> & Readonly<{}>, {
14
21
  disableLayout: boolean;
@@ -1,11 +1,15 @@
1
- import type { CPlacement } from '../../types';
1
+ /**
2
+ * Preferred placement of the menu panel relative to its trigger: the side, and
3
+ * `-start`/`-end` to align their edges on the cross axis.
4
+ */
5
+ export type CMenuPosition = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
2
6
  interface CMenuProps {
3
7
  /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
4
- distance?: number | string;
8
+ distance?: number;
5
9
  /** Whether the menu is open. Two-way: emits `change:open`. */
6
10
  open?: boolean;
7
11
  /** Preferred placement of the panel relative to the trigger. */
8
- position?: CPlacement;
12
+ position?: CMenuPosition;
9
13
  /**
10
14
  * Designated trigger: an element elsewhere in the document that opens the
11
15
  * menu — its document ID, or the element itself. The same trigger concept
@@ -16,21 +20,18 @@ interface CMenuProps {
16
20
  */
17
21
  trigger?: HTMLElement | string;
18
22
  }
19
- declare var __VLS_1: {}, __VLS_3: {};
20
- type __VLS_Slots = {} & {
21
- trigger?: (props: typeof __VLS_1) => any;
22
- } & {
23
- default?: (props: typeof __VLS_3) => any;
24
- };
25
- declare const __VLS_base: import("vue").DefineComponent<CMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuProps> & Readonly<{}>, {
26
- open: boolean;
27
- distance: number | string;
28
- position: CPlacement;
29
- trigger: HTMLElement | string;
30
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
23
  declare const _default: typeof __VLS_export;
33
24
  export default _default;
25
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuProps> & Readonly<{}>, {
26
+ open: boolean;
27
+ distance: number;
28
+ position: CMenuPosition;
29
+ trigger: HTMLElement | string;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
31
+ trigger?: (props: {}) => any;
32
+ } & {
33
+ default?: (props: {}) => any;
34
+ }>;
34
35
  type __VLS_WithSlots<T, S> = T & {
35
36
  new (): {
36
37
  $slots: S;
@@ -1,31 +1,24 @@
1
+ /**
2
+ * What a menu item is: a plain `command`, or one `radio` choice of several
3
+ * (`role="menuitemradio"`, checked with `checked`).
4
+ */
5
+ export type CMenuItemType = 'command' | 'radio';
1
6
  interface CMenuItemProps {
2
7
  /**
3
- * Marks the item as the currently selected choice: renders the trailing
4
- * indicator icon and stamps `role="menuitemradio"` + `aria-checked`. Leave
5
- * unset for regular command items — only a true/false value marks the item
6
- * as a selectable choice. The state is consumer-owned: the menu emits
7
- * `select` as usual and never toggles this itself. Distinct from the
8
- * keyboard highlight (the `data-active` attribute the controlling menu
9
- * moves between rows).
8
+ * Whether a `radio` item is the checked choice: it shows a check mark and
9
+ * `aria-checked`. The state is yours: the menu fires `select` as usual and
10
+ * never checks an item itself.
10
11
  */
11
- active?: boolean;
12
- /**
13
- * SVG path for the trailing indicator shown while `active`; defaults to a
14
- * check mark.
15
- *
16
- * @freeform SVG path data
17
- */
18
- activeIcon?: string;
12
+ checked?: boolean;
19
13
  /** Marks the action as destructive (renders in the error colour). */
20
14
  danger?: boolean;
21
15
  /** Disables the item — it is skipped by keyboard nav and emits no select. */
22
16
  disabled?: boolean;
23
17
  /**
24
- * SVG path for a leading icon rendered before the item's content.
25
- *
26
- * @freeform SVG path data
18
+ * What the item is: a `command` (a plain menu item) or one `radio` choice
19
+ * of several, checked with `checked`.
27
20
  */
28
- icon?: string;
21
+ type?: CMenuItemType;
29
22
  /**
30
23
  * Value reported in the menu's `select` event when this item is chosen.
31
24
  *
@@ -33,26 +26,25 @@ interface CMenuItemProps {
33
26
  */
34
27
  value?: string;
35
28
  }
36
- declare var __VLS_6: {}, __VLS_13: {};
37
- type __VLS_Slots = {} & {
38
- default?: (props: typeof __VLS_6) => any;
39
- } & {
40
- submenu?: (props: typeof __VLS_13) => any;
41
- };
42
- declare const __VLS_base: import("vue").DefineComponent<CMenuItemProps, {
43
- closeSubmenu: () => void;
44
- openSubmenu: () => void;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CMenuItemProps, {
32
+ _closeSubmenu: () => void;
33
+ _isSubmenuOpen: () => boolean;
34
+ _openSubmenu: () => void;
45
35
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuItemProps> & Readonly<{}>, {
46
- icon: string;
47
36
  value: string;
37
+ type: CMenuItemType;
48
38
  disabled: boolean;
49
- active: boolean;
50
39
  danger: boolean;
51
- activeIcon: string;
52
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
54
- declare const _default: typeof __VLS_export;
55
- export default _default;
40
+ checked: boolean;
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
42
+ icon?: (props: {}) => any;
43
+ } & {
44
+ default?: (props: {}) => any;
45
+ } & {
46
+ submenu?: (props: {}) => any;
47
+ }>;
56
48
  type __VLS_WithSlots<T, S> = T & {
57
49
  new (): {
58
50
  $slots: S;
@@ -6,31 +6,21 @@ interface CMessageProps {
6
6
  */
7
7
  errorMessage?: string;
8
8
  /**
9
- * Hint text for the input
9
+ * Hint text, shown unless the error message replaces it
10
10
  *
11
- * @seeded from csc-ui — verify
12
11
  * @freeform
13
12
  */
14
13
  hint?: string;
15
14
  /**
16
- * Id of the related input element
17
- *
18
- * @seeded from csc-ui — verify
19
- * @freeform
20
- */
21
- inputId?: string;
22
- /**
23
- * Parent validíty
24
- *
25
- * @seeded from csc-ui — verify
15
+ * Show the `error-message`, when set, in place of the hint. Marking the
16
+ * control itself `aria-invalid` is up to the control.
26
17
  */
27
- valid?: boolean;
18
+ invalid?: boolean;
28
19
  }
29
20
  declare const __VLS_export: import("vue").DefineComponent<CMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMessageProps> & Readonly<{}>, {
21
+ invalid: boolean;
30
22
  errorMessage: string;
31
23
  hint: string;
32
- valid: boolean;
33
- inputId: string;
34
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
25
  declare const _default: typeof __VLS_export;
36
26
  export default _default;
@@ -4,9 +4,9 @@ interface CModalProps {
4
4
  */
5
5
  disableBackdropBlur?: boolean;
6
6
  /**
7
- * Dismissed when touching/clicking outside the content or pressing Escape.
8
- * A non-dismissable modal responds to either gesture with a nudge animation
9
- * instead of closing.
7
+ * Dismissed when touching/clicking outside the content. A non-dismissable
8
+ * modal responds to that with a nudge animation instead of closing. Escape
9
+ * closes every modal.
10
10
  */
11
11
  dismissable?: boolean;
12
12
  /**
@@ -1,3 +1,22 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ /**
2
+ * UI texts of `c-navigation-button`, shallow-merged over the English
3
+ * defaults.
4
+ */
5
+ export interface CNavigationButtonTexts {
6
+ /** Accessible name of the button. */
7
+ label?: string;
8
+ }
9
+ interface CNavigationButtonProps {
10
+ /**
11
+ * UI text overrides (i18n), merged over the English defaults. Objects have
12
+ * no attribute form — bind as a DOM property
13
+ *
14
+ * @defaultable {}
15
+ */
16
+ texts?: CNavigationButtonTexts;
17
+ }
2
18
  declare const _default: typeof __VLS_export;
3
19
  export default _default;
20
+ declare const __VLS_export: import("vue").DefineComponent<CNavigationButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CNavigationButtonProps> & Readonly<{}>, {
21
+ texts: CNavigationButtonTexts;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;