tandd-ui 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/LICENSE +21 -0
  3. package/README.md +96 -2
  4. package/dist/components/_shared/direction.d.ts +6 -0
  5. package/dist/components/_shared/escapeLayers.d.ts +21 -0
  6. package/dist/components/_shared/formatLabel.d.ts +5 -0
  7. package/dist/components/_shared/useDismissiblePopup.d.ts +4 -0
  8. package/dist/components/_shared/useFieldValidation.d.ts +34 -0
  9. package/dist/components/_shared/useFocusTrap.d.ts +16 -0
  10. package/dist/components/_shared/useMessages.d.ts +18 -0
  11. package/dist/components/_shared/usePopover.d.ts +122 -0
  12. package/dist/components/_shared/useRipple.d.ts +37 -0
  13. package/dist/components/_shared/useRovingFocus.d.ts +25 -0
  14. package/dist/components/accordion/DTAccordion.vue.d.ts +42 -0
  15. package/dist/components/accordion/DTAccordionItem.vue.d.ts +34 -0
  16. package/dist/components/accordion/accordionContext.d.ts +13 -0
  17. package/dist/components/alert/DTAlert.vue.d.ts +57 -0
  18. package/dist/components/anchor/DTAnchor.vue.d.ts +48 -0
  19. package/dist/components/anchor/DTAnchorLink.vue.d.ts +21 -0
  20. package/dist/components/anchor/anchorContext.d.ts +10 -0
  21. package/dist/components/app-bar/DTAppBar.vue.d.ts +56 -0
  22. package/dist/components/autocomplete/DTAutocomplete.vue.d.ts +131 -0
  23. package/dist/components/avatar/DTAvatar.vue.d.ts +37 -0
  24. package/dist/components/avatar/DTAvatarGroup.vue.d.ts +18 -0
  25. package/dist/components/badge/DTBadge.vue.d.ts +47 -0
  26. package/dist/components/badge/index.d.ts +2 -0
  27. package/dist/components/border-beam/DTBorderBeam.vue.d.ts +47 -0
  28. package/dist/components/breadcrumb/DTBreadcrumb.vue.d.ts +46 -0
  29. package/dist/components/button/DTButton.vue.d.ts +60 -0
  30. package/dist/components/button-group/DTButtonGroup.vue.d.ts +56 -0
  31. package/dist/components/button-group/buttonGroupContext.d.ts +16 -0
  32. package/dist/components/card/DTCard.vue.d.ts +38 -0
  33. package/dist/components/card/DTCardBody.vue.d.ts +13 -0
  34. package/dist/components/card/DTCardFooter.vue.d.ts +13 -0
  35. package/dist/components/card/DTCardHeader.vue.d.ts +17 -0
  36. package/dist/components/card/DTCardMedia.vue.d.ts +24 -0
  37. package/dist/components/card/DTCardSubtitle.vue.d.ts +13 -0
  38. package/dist/components/card/DTCardText.vue.d.ts +13 -0
  39. package/dist/components/card/DTCardTitle.vue.d.ts +24 -0
  40. package/dist/components/card/context.d.ts +6 -0
  41. package/dist/components/card/index.d.ts +2 -0
  42. package/dist/components/carousel/DTCarousel.vue.d.ts +69 -0
  43. package/dist/components/carousel/DTCarouselItem.vue.d.ts +21 -0
  44. package/dist/components/carousel/carouselContext.d.ts +22 -0
  45. package/dist/components/checkbox/DTCheckbox.vue.d.ts +50 -0
  46. package/dist/components/chip/DTChip.vue.d.ts +62 -0
  47. package/dist/components/chip/DTChipGroup.vue.d.ts +36 -0
  48. package/dist/components/chip/chipGroupContext.d.ts +9 -0
  49. package/dist/components/code/DTCode.vue.d.ts +13 -0
  50. package/dist/components/col/DTCol.vue.d.ts +55 -0
  51. package/dist/components/color-input/DTColorInput.vue.d.ts +89 -0
  52. package/dist/components/color-input/colorMath.d.ts +36 -0
  53. package/dist/components/color-picker/DTColorPicker.vue.d.ts +66 -0
  54. package/dist/components/color-picker/context.d.ts +9 -0
  55. package/dist/components/combobox/DTCombobox.vue.d.ts +106 -0
  56. package/dist/components/container/DTContainer.vue.d.ts +29 -0
  57. package/dist/components/data-table/DTDataTable.vue.d.ts +112 -0
  58. package/dist/components/data-table/types.d.ts +70 -0
  59. package/dist/components/date-picker/DTDateInput.vue.d.ts +98 -0
  60. package/dist/components/date-picker/DTDatePicker.vue.d.ts +106 -0
  61. package/dist/components/date-picker/DTDateShortcuts.vue.d.ts +15 -0
  62. package/dist/components/date-picker/isoDate.d.ts +38 -0
  63. package/dist/components/date-picker/shortcuts.d.ts +11 -0
  64. package/dist/components/date-time-picker/DTDateTimeInput.vue.d.ts +107 -0
  65. package/dist/components/date-time-picker/DTDateTimePicker.vue.d.ts +94 -0
  66. package/dist/components/date-time-picker/isoDateTime.d.ts +30 -0
  67. package/dist/components/divider/DTDivider.vue.d.ts +19 -0
  68. package/dist/components/empty-state/DTEmptyState.vue.d.ts +51 -0
  69. package/dist/components/field/DTField.vue.d.ts +36 -0
  70. package/dist/components/field/fieldContext.d.ts +14 -0
  71. package/dist/components/field-control/DTFieldControl.vue.d.ts +135 -0
  72. package/dist/components/field-control/index.d.ts +1 -0
  73. package/dist/components/file-input/DTFileInput.vue.d.ts +142 -0
  74. package/dist/components/file-upload/DTFileUpload.vue.d.ts +132 -0
  75. package/dist/components/file-upload/icons.d.ts +1 -0
  76. package/dist/components/file-upload/types.d.ts +47 -0
  77. package/dist/components/grid/DTGrid.vue.d.ts +44 -0
  78. package/dist/components/grid/DTGridItem.vue.d.ts +42 -0
  79. package/dist/components/heading/DTHeading.vue.d.ts +31 -0
  80. package/dist/components/icon/DTIcon.vue.d.ts +43 -0
  81. package/dist/components/icon/play.d.ts +6 -0
  82. package/dist/components/icon/registry.d.ts +16 -0
  83. package/dist/components/infinite-scroll/DTInfiniteScroll.vue.d.ts +67 -0
  84. package/dist/components/infinite-scroll/icons.d.ts +1 -0
  85. package/dist/components/inline/DTInline.vue.d.ts +26 -0
  86. package/dist/components/kbd/DTKbd.vue.d.ts +13 -0
  87. package/dist/components/layout-app/DTLayout.vue.d.ts +18 -0
  88. package/dist/components/layout-app/DTMain.vue.d.ts +21 -0
  89. package/dist/components/layout-app/layoutContext.d.ts +33 -0
  90. package/dist/components/link/DTLink.vue.d.ts +26 -0
  91. package/dist/components/list/DTList.vue.d.ts +53 -0
  92. package/dist/components/list/DTListItem.vue.d.ts +61 -0
  93. package/dist/components/list/DTListSubheader.vue.d.ts +24 -0
  94. package/dist/components/list/listContext.d.ts +16 -0
  95. package/dist/components/mention/DTMention.vue.d.ts +93 -0
  96. package/dist/components/mention/caret.d.ts +7 -0
  97. package/dist/components/menu/DTMenu.vue.d.ts +66 -0
  98. package/dist/components/menu/DTMenuItem.vue.d.ts +45 -0
  99. package/dist/components/menu/DTMenuLabel.vue.d.ts +13 -0
  100. package/dist/components/menu/DTMenuSeparator.vue.d.ts +3 -0
  101. package/dist/components/menu/menuContext.d.ts +38 -0
  102. package/dist/components/modal/DTModal.vue.d.ts +52 -0
  103. package/dist/components/modal/modalStack.d.ts +20 -0
  104. package/dist/components/navigation-drawer/DTNavigationDrawer.vue.d.ts +93 -0
  105. package/dist/components/number-input/DTNumberInput.vue.d.ts +66 -0
  106. package/dist/components/otp-input/DTOtpInput.vue.d.ts +71 -0
  107. package/dist/components/pagination/DTPagination.vue.d.ts +55 -0
  108. package/dist/components/popover/DTPopover.vue.d.ts +67 -0
  109. package/dist/components/progress/DTProgress.vue.d.ts +48 -0
  110. package/dist/components/pull-refresh/DTPullRefresh.vue.d.ts +69 -0
  111. package/dist/components/radio/DTRadio.vue.d.ts +41 -0
  112. package/dist/components/radio/DTRadioGroup.vue.d.ts +35 -0
  113. package/dist/components/radio/radioGroupContext.d.ts +12 -0
  114. package/dist/components/rating/DTRating.vue.d.ts +65 -0
  115. package/dist/components/row/DTRow.vue.d.ts +38 -0
  116. package/dist/components/select/DTSelect.vue.d.ts +140 -0
  117. package/dist/components/sheet/DTSheet.vue.d.ts +57 -0
  118. package/dist/components/skeleton/DTSkeleton.vue.d.ts +34 -0
  119. package/dist/components/skip-link/DTSkipLink.vue.d.ts +33 -0
  120. package/dist/components/slider/DTSlider.vue.d.ts +88 -0
  121. package/dist/components/spinner/DTSpinner.vue.d.ts +34 -0
  122. package/dist/components/stack/DTStack.vue.d.ts +24 -0
  123. package/dist/components/statistic/DTCountdown.vue.d.ts +49 -0
  124. package/dist/components/statistic/DTStatistic.vue.d.ts +49 -0
  125. package/dist/components/statistic/format.d.ts +39 -0
  126. package/dist/components/stepper/DTStep.vue.d.ts +41 -0
  127. package/dist/components/stepper/DTStepHeader.vue.d.ts +8 -0
  128. package/dist/components/stepper/DTStepper.vue.d.ts +46 -0
  129. package/dist/components/stepper/stepperContext.d.ts +39 -0
  130. package/dist/components/surface/DTSurface.vue.d.ts +43 -0
  131. package/dist/components/surface/index.d.ts +2 -0
  132. package/dist/components/switch/DTSwitch.vue.d.ts +59 -0
  133. package/dist/components/table/DTTable.vue.d.ts +55 -0
  134. package/dist/components/table/DTTableScrollbars.vue.d.ts +9 -0
  135. package/dist/components/tabs/DTTab.vue.d.ts +23 -0
  136. package/dist/components/tabs/DTTabs.vue.d.ts +45 -0
  137. package/dist/components/tabs/tabsContext.d.ts +19 -0
  138. package/dist/components/text/DTText.vue.d.ts +32 -0
  139. package/dist/components/text-field/DTFieldShell.vue.d.ts +59 -0
  140. package/dist/components/text-field/DTInput.vue.d.ts +70 -0
  141. package/dist/components/text-field/fieldShared.d.ts +87 -0
  142. package/dist/components/textarea/DTTextarea.vue.d.ts +56 -0
  143. package/dist/components/time-picker/DTTimeInput.vue.d.ts +71 -0
  144. package/dist/components/time-picker/DTTimePicker.vue.d.ts +52 -0
  145. package/dist/components/time-picker/isoTime.d.ts +21 -0
  146. package/dist/components/timeline/DTTimeline.vue.d.ts +36 -0
  147. package/dist/components/timeline/DTTimelineItem.vue.d.ts +46 -0
  148. package/dist/components/timeline/timelineContext.d.ts +13 -0
  149. package/dist/components/toast/DTToastRegion.vue.d.ts +18 -0
  150. package/dist/components/toast/toastStore.d.ts +77 -0
  151. package/dist/components/tooltip/DTTooltip.vue.d.ts +45 -0
  152. package/dist/components/tour/DTTour.vue.d.ts +62 -0
  153. package/dist/components/tour/DTTourStep.vue.d.ts +31 -0
  154. package/dist/components/tour/tourContext.d.ts +20 -0
  155. package/dist/components/tree-select/DTTreeSelect.vue.d.ts +86 -0
  156. package/dist/components/treeview/DTTreeview.vue.d.ts +92 -0
  157. package/dist/components/watermark/DTWatermark.vue.d.ts +48 -0
  158. package/dist/config.d.ts +58 -0
  159. package/dist/index.d.ts +183 -0
  160. package/dist/locale/en.d.ts +311 -0
  161. package/dist/locale/en.js +192 -0
  162. package/dist/locale/messages.d.ts +295 -0
  163. package/dist/locale/vi.d.ts +309 -0
  164. package/dist/locale/vi.js +192 -0
  165. package/dist/plugin.d.ts +26 -0
  166. package/dist/tandd-ui.css +11585 -0
  167. package/dist/tandd-ui.js +13039 -0
  168. package/dist/theme/cssVariables.d.ts +14 -0
  169. package/dist/theme/defaultTheme.d.ts +5 -0
  170. package/dist/theme/index.d.ts +34 -0
  171. package/dist/useLocale.d.ts +15 -0
  172. package/dist/useTheme.d.ts +9 -0
  173. package/package.json +112 -4
  174. package/src/components/_index.scss +73 -0
  175. package/src/components/accordion/DTAccordion.scss +123 -0
  176. package/src/components/alert/DTAlert.scss +222 -0
  177. package/src/components/anchor/DTAnchor.scss +137 -0
  178. package/src/components/app-bar/DTAppBar.scss +151 -0
  179. package/src/components/autocomplete/DTAutocomplete.scss +89 -0
  180. package/src/components/avatar/DTAvatar.scss +67 -0
  181. package/src/components/badge/DTBadge.scss +218 -0
  182. package/src/components/border-beam/DTBorderBeam.scss +67 -0
  183. package/src/components/breadcrumb/DTBreadcrumb.scss +58 -0
  184. package/src/components/button/DTButton.scss +252 -0
  185. package/src/components/button-group/DTButtonGroup.scss +103 -0
  186. package/src/components/card/DTCard.scss +183 -0
  187. package/src/components/carousel/DTCarousel.scss +228 -0
  188. package/src/components/checkbox/DTChoice.scss +351 -0
  189. package/src/components/chip/DTChip.scss +280 -0
  190. package/src/components/code/DTCode.scss +10 -0
  191. package/src/components/col/DTCol.scss +124 -0
  192. package/src/components/color-input/DTColorInput.scss +118 -0
  193. package/src/components/color-picker/DTColorPicker.scss +334 -0
  194. package/src/components/container/DTContainer.scss +24 -0
  195. package/src/components/data-table/DTDataTable.scss +274 -0
  196. package/src/components/date-picker/DTDatePicker.scss +474 -0
  197. package/src/components/date-time-picker/DTDateTimePicker.scss +144 -0
  198. package/src/components/divider/DTDivider.scss +67 -0
  199. package/src/components/empty-state/DTEmptyState.scss +106 -0
  200. package/src/components/field/DTField.scss +69 -0
  201. package/src/components/field-control/DTFieldControl.scss +221 -0
  202. package/src/components/file-input/DTFileInput.scss +98 -0
  203. package/src/components/file-upload/DTFileUpload.scss +185 -0
  204. package/src/components/grid/DTGrid.scss +135 -0
  205. package/src/components/heading/DTHeading.scss +9 -0
  206. package/src/components/icon/DTIcon.scss +64 -0
  207. package/src/components/infinite-scroll/DTInfiniteScroll.scss +67 -0
  208. package/src/components/inline/DTInline.scss +19 -0
  209. package/src/components/kbd/DTKbd.scss +17 -0
  210. package/src/components/layout-app/DTLayout.scss +69 -0
  211. package/src/components/link/DTLink.scss +35 -0
  212. package/src/components/list/DTList.scss +261 -0
  213. package/src/components/mention/DTMention.scss +24 -0
  214. package/src/components/menu/DTMenu.scss +282 -0
  215. package/src/components/modal/DTModal.scss +178 -0
  216. package/src/components/navigation-drawer/DTNavigationDrawer.scss +172 -0
  217. package/src/components/number-input/DTNumberInput.scss +124 -0
  218. package/src/components/otp-input/DTOtpInput.scss +121 -0
  219. package/src/components/pagination/DTPagination.scss +115 -0
  220. package/src/components/popover/DTPopover.scss +119 -0
  221. package/src/components/progress/DTProgress.scss +227 -0
  222. package/src/components/pull-refresh/DTPullRefresh.scss +83 -0
  223. package/src/components/rating/DTRating.scss +153 -0
  224. package/src/components/row/DTRow.scss +73 -0
  225. package/src/components/select/DTSelect.scss +347 -0
  226. package/src/components/sheet/DTSheet.scss +256 -0
  227. package/src/components/skeleton/DTSkeleton.scss +74 -0
  228. package/src/components/skip-link/DTSkipLink.scss +76 -0
  229. package/src/components/slider/DTSlider.scss +652 -0
  230. package/src/components/spinner/DTSpinner.scss +123 -0
  231. package/src/components/stack/DTStack.scss +8 -0
  232. package/src/components/statistic/DTStatistic.scss +44 -0
  233. package/src/components/stepper/DTStepper.scss +268 -0
  234. package/src/components/surface/DTSurface.scss +99 -0
  235. package/src/components/switch/DTSwitch.scss +306 -0
  236. package/src/components/table/DTTable.scss +287 -0
  237. package/src/components/tabs/DTTabs.scss +402 -0
  238. package/src/components/text/DTText.scss +9 -0
  239. package/src/components/text-field/DTTextField.scss +452 -0
  240. package/src/components/time-picker/DTTimePicker.scss +131 -0
  241. package/src/components/timeline/DTTimeline.scss +322 -0
  242. package/src/components/toast/DTToast.scss +297 -0
  243. package/src/components/tooltip/DTTooltip.scss +168 -0
  244. package/src/components/tour/DTTour.scss +173 -0
  245. package/src/components/tree-select/DTTreeSelect.scss +60 -0
  246. package/src/components/treeview/DTTreeview.scss +205 -0
  247. package/src/components/watermark/DTWatermark.scss +8 -0
  248. package/src/styles/foundation/_direction.scss +6 -0
  249. package/src/styles/foundation/_focus.scss +12 -0
  250. package/src/styles/foundation/_forced-colors.scss +9 -0
  251. package/src/styles/foundation/_motion.scss +10 -0
  252. package/src/styles/foundation/_reset.scss +39 -0
  253. package/src/styles/foundation/_root.scss +112 -0
  254. package/src/styles/foundation/_state.scss +29 -0
  255. package/src/styles/foundation/_typography.scss +81 -0
  256. package/src/styles/foundation/_visually-hidden.scss +21 -0
  257. package/src/styles/index.scss +9 -0
  258. package/src/styles/tokens/_border.scss +2 -0
  259. package/src/styles/tokens/_breakpoint.scss +15 -0
  260. package/src/styles/tokens/_color.scss +56 -0
  261. package/src/styles/tokens/_index.scss +11 -0
  262. package/src/styles/tokens/_motion.scss +13 -0
  263. package/src/styles/tokens/_radius.scss +13 -0
  264. package/src/styles/tokens/_shadow.scss +18 -0
  265. package/src/styles/tokens/_spacing.scss +21 -0
  266. package/src/styles/tokens/_state.scss +30 -0
  267. package/src/styles/tokens/_surface.scss +33 -0
  268. package/src/styles/tokens/_typography.scss +40 -0
  269. package/src/styles/tokens/_z-index.scss +11 -0
@@ -0,0 +1,13 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ export interface DTAccordionContext {
3
+ baseId: string;
4
+ headingLevel: ComputedRef<number>;
5
+ isOpen: (value: unknown) => boolean;
6
+ toggle: (value: unknown) => void;
7
+ register: () => number;
8
+ readonly: ComputedRef<boolean>;
9
+ expandIcon: ComputedRef<string | undefined>;
10
+ collapseIcon: ComputedRef<string | undefined>;
11
+ }
12
+ export declare const DTAccordionKey: InjectionKey<DTAccordionContext>;
13
+ export declare const useDTAccordion: () => DTAccordionContext | null;
@@ -0,0 +1,57 @@
1
+ export type DTAlertTone = "info" | "success" | "warning" | "danger";
2
+ export type DTAlertVariant = "tonal" | "outlined" | "solid";
3
+ export type DTAlertDensity = "default" | "comfortable" | "compact";
4
+ export type DTAlertBorder = "start" | "top";
5
+ type __VLS_Props = {
6
+ tone?: DTAlertTone;
7
+ title?: string;
8
+ /** Shows a dismiss button; dismissing emits `update:open` and `close`. */
9
+ closable?: boolean;
10
+ /** Visibility, for `v-model:open`. */
11
+ open?: boolean;
12
+ /** Replaces the tone icon; `false` hides it. */
13
+ icon?: string | false;
14
+ closeLabel?: string;
15
+ /** `tonal` is the reference tinted gradient; `outlined` a tone border on the surface; `solid` a full tone fill. */
16
+ variant?: DTAlertVariant;
17
+ /** Padding and gap: `comfortable` and `compact` tighten the default spacing. */
18
+ density?: DTAlertDensity;
19
+ /** A thicker tone-coloured edge on the start (inline-start) or top side. */
20
+ border?: DTAlertBorder | false;
21
+ /** A larger icon tile, title, and padding for important notices. */
22
+ prominent?: boolean;
23
+ };
24
+ declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {};
25
+ type __VLS_Slots = {} & {
26
+ title?: (props: typeof __VLS_6) => any;
27
+ } & {
28
+ default?: (props: typeof __VLS_8) => any;
29
+ } & {
30
+ action?: (props: typeof __VLS_10) => any;
31
+ };
32
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
+ close: () => any;
34
+ "update:open": (value: boolean) => any;
35
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ onClose?: (() => any) | undefined;
37
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
38
+ }>, {
39
+ variant: DTAlertVariant;
40
+ border: DTAlertBorder | false;
41
+ title: string;
42
+ closeLabel: string;
43
+ density: DTAlertDensity;
44
+ tone: DTAlertTone;
45
+ icon: string | false;
46
+ open: boolean;
47
+ closable: boolean;
48
+ prominent: boolean;
49
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
50
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
51
+ declare const _default: typeof __VLS_export;
52
+ export default _default;
53
+ type __VLS_WithSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,48 @@
1
+ import { DTAnchorDirection } from './anchorContext';
2
+ type __VLS_Props = {
3
+ /** The active link's href (`v-model`). Setting it from outside scrolls to that section. */
4
+ modelValue?: string;
5
+ /** The scroll area: a CSS selector, an element, or `window` (the default). */
6
+ container?: string | HTMLElement | Window | null;
7
+ /** Space kept above a section when scrolling to it, e.g. the height of a sticky header (px). */
8
+ offset?: number;
9
+ /** Extra px below `offset` at which a section becomes active. */
10
+ bound?: number;
11
+ /** Vertical list, or a horizontal row of links (no nested links). */
12
+ direction?: DTAnchorDirection;
13
+ /** The moving marker beside (vertical) or under (horizontal) the active link. */
14
+ marker?: boolean;
15
+ /** Names the navigation landmark. */
16
+ label?: string;
17
+ };
18
+ declare var __VLS_1: {};
19
+ type __VLS_Slots = {} & {
20
+ default?: (props: typeof __VLS_1) => any;
21
+ };
22
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
23
+ scrollTo: (href: string) => void;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ click: (event: MouseEvent, href: string) => any;
26
+ "update:modelValue": (href: string) => any;
27
+ change: (href: string) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ onClick?: ((event: MouseEvent, href: string) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((href: string) => any) | undefined;
31
+ onChange?: ((href: string) => any) | undefined;
32
+ }>, {
33
+ label: string;
34
+ marker: boolean;
35
+ offset: number;
36
+ modelValue: string;
37
+ direction: DTAnchorDirection;
38
+ container: string | HTMLElement | Window | null;
39
+ bound: number;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
42
+ declare const _default: typeof __VLS_export;
43
+ export default _default;
44
+ type __VLS_WithSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,21 @@
1
+ type __VLS_Props = {
2
+ /** The section's fragment, such as "#pricing". */
3
+ href: string;
4
+ /** Link text; the default slot takes rich content. */
5
+ title?: string;
6
+ };
7
+ type __VLS_Slots = {
8
+ default(): unknown;
9
+ "sub-link"(): unknown;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ title: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,10 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ export type DTAnchorDirection = "vertical" | "horizontal";
3
+ export interface DTAnchorContext {
4
+ active: ComputedRef<string | undefined>;
5
+ direction: ComputedRef<DTAnchorDirection>;
6
+ /** A link mounted or unmounted; the anchor re-reads its links. Returns the unregister function. */
7
+ register: () => () => void;
8
+ onLinkClick: (event: MouseEvent, href: string) => void;
9
+ }
10
+ export declare const DTAnchorKey: InjectionKey<DTAnchorContext>;
@@ -0,0 +1,56 @@
1
+ export type DTAppBarDensity = "default" | "comfortable" | "compact";
2
+ export type DTAppBarPosition = "static" | "sticky" | "fixed";
3
+ export type DTAppBarScrollBehavior = "none" | "elevate" | "hide";
4
+ type __VLS_Props = {
5
+ /** Shown in the title area when the default slot is empty. Plain text, not a heading. */
6
+ title?: string;
7
+ /** Toolbar row height: 64, 56, or 48 px. */
8
+ density?: DTAppBarDensity;
9
+ color?: "surface" | "primary";
10
+ /** No shadow and no bottom border. */
11
+ flat?: boolean;
12
+ /** A bottom border (ignored with `flat`). */
13
+ border?: boolean;
14
+ /** Outside a DTLayout. Inside one the layout places the bar. */
15
+ position?: DTAppBarPosition;
16
+ scrollBehavior?: DTAppBarScrollBehavior;
17
+ /** What `elevate` and `hide` listen to: a selector or an element. Default: a scrollable DTMain in the same layout, else the window. */
18
+ scrollTarget?: string | HTMLElement;
19
+ /** Shows the extension row, also when the extension slot is empty. */
20
+ extended?: boolean;
21
+ /** Height of the extension row (px or a CSS length). */
22
+ extensionHeight?: number | string;
23
+ /** `header` is the page banner when it is not inside another sectioning element. */
24
+ as?: "header" | "div";
25
+ };
26
+ type __VLS_Slots = {
27
+ /** Before the title: the navigation icon. */
28
+ prepend?: () => unknown;
29
+ /** The title area; replaces `title`. */
30
+ default?: () => unknown;
31
+ /** After the title: actions. */
32
+ append?: () => unknown;
33
+ /** A second row under the toolbar: tabs, a search field. */
34
+ extension?: () => unknown;
35
+ };
36
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
37
+ border: boolean;
38
+ title: string;
39
+ as: "header" | "div";
40
+ flat: boolean;
41
+ density: DTAppBarDensity;
42
+ color: "surface" | "primary";
43
+ position: DTAppBarPosition;
44
+ scrollBehavior: DTAppBarScrollBehavior;
45
+ scrollTarget: string | HTMLElement;
46
+ extended: boolean;
47
+ extensionHeight: number | string;
48
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
49
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
50
+ declare const _default: typeof __VLS_export;
51
+ export default _default;
52
+ type __VLS_WithSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
@@ -0,0 +1,131 @@
1
+ import { DTSelectItem, DTSelectMenuProps } from '../select/DTSelect.vue';
2
+ import { DTTextFieldBaseProps } from '../text-field/fieldShared';
3
+ export type DTAutocompleteItem = DTSelectItem;
4
+ interface DTAutocompleteProps extends Omit<DTTextFieldBaseProps, "modelValue" | "prependIcon" | "appendIcon" | "appendInnerIcon" | "prependIconLabel" | "prependInnerIconLabel" | "appendIconLabel" | "appendInnerIconLabel"> {
5
+ /** The chosen value, or an array with `multiple`. */
6
+ modelValue?: unknown;
7
+ /** The typed text (`v-model:search`). */
8
+ search?: string;
9
+ items?: readonly DTAutocompleteItem[];
10
+ /** Key of the label in object items. */
11
+ itemTitle?: string;
12
+ /** Key of the value in object items. */
13
+ itemValue?: string;
14
+ multiple?: boolean;
15
+ /** With `multiple`, show the chosen values as removable chips under the field. */
16
+ chips?: boolean;
17
+ /** A clear button while there is a value or a query. */
18
+ clearable?: boolean;
19
+ /** Accessible name of the clear button (D32). */
20
+ clearLabel?: string;
21
+ /** Accessible name of each chip's remove button; `{0}` is the item's title (D32). */
22
+ removeLabel?: string;
23
+ /** Replaces the built-in matching. Return true to keep the item. */
24
+ customFilter?: (item: DTAutocompleteItem, query: string, title: string) => boolean;
25
+ /** Object fields to match the query against; default the title field. */
26
+ filterKeys?: readonly string[];
27
+ /** Do not filter: the parent narrows `items` itself (server search). */
28
+ noFilter?: boolean;
29
+ /** The first match becomes active, so Enter picks it. */
30
+ autoSelectFirst?: boolean;
31
+ /** Chosen items leave the list. */
32
+ hideSelected?: boolean;
33
+ /** An indeterminate bar under the field and `aria-busy`, for a search in progress. */
34
+ loading?: boolean;
35
+ /** Milliseconds to wait after typing before `update:search`. */
36
+ debounce?: number;
37
+ noDataText?: string;
38
+ /** Shown and announced while `loading` and nothing is listed yet (D36b). */
39
+ loadingText?: string;
40
+ /** Announced as the matches change; `{0}` is the count (D36b). */
41
+ resultsText?: string;
42
+ /** Announced when one item matches (D36b). */
43
+ resultsTextOne?: string;
44
+ /** Keep the panel closed when nothing matches. */
45
+ hideNoData?: boolean;
46
+ menuProps?: DTSelectMenuProps;
47
+ /** Icon inside the field before the text; "" for none. */
48
+ prependInnerIcon?: string;
49
+ }
50
+ declare var __VLS_10: string, __VLS_11: any, __VLS_19: {}, __VLS_21: {}, __VLS_23: {
51
+ item: DTSelectItem;
52
+ title: string;
53
+ value: unknown;
54
+ selected: boolean;
55
+ query: string;
56
+ }, __VLS_30: {}, __VLS_32: {}, __VLS_35: {
57
+ item: DTSelectItem;
58
+ title: string;
59
+ value: unknown;
60
+ index: number;
61
+ remove: () => void;
62
+ };
63
+ type __VLS_Slots = {} & {
64
+ [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
65
+ } & {
66
+ 'append-inner'?: (props: typeof __VLS_19) => any;
67
+ } & {
68
+ 'prepend-item'?: (props: typeof __VLS_21) => any;
69
+ } & {
70
+ item?: (props: typeof __VLS_23) => any;
71
+ } & {
72
+ 'no-data'?: (props: typeof __VLS_30) => any;
73
+ } & {
74
+ 'append-item'?: (props: typeof __VLS_32) => any;
75
+ } & {
76
+ chip?: (props: typeof __VLS_35) => any;
77
+ };
78
+ declare const __VLS_base: import('vue').DefineComponent<DTAutocompleteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
79
+ "update:modelValue": (value: unknown) => any;
80
+ "update:search": (value: string) => any;
81
+ "update:menu": (open: boolean) => any;
82
+ }, string, import('vue').PublicProps, Readonly<DTAutocompleteProps> & Readonly<{
83
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
84
+ "onUpdate:search"?: ((value: string) => any) | undefined;
85
+ "onUpdate:menu"?: ((open: boolean) => any) | undefined;
86
+ }>, {
87
+ error: boolean | string;
88
+ search: string;
89
+ variant: import('../..').DTFieldVariant;
90
+ size: import('../..').DTFieldSize;
91
+ label: string;
92
+ clearLabel: string;
93
+ removeLabel: string;
94
+ noDataText: string;
95
+ loadingText: string;
96
+ resultsText: string;
97
+ resultsTextOne: string;
98
+ placeholder: string;
99
+ id: string;
100
+ required: boolean;
101
+ disabled: boolean;
102
+ readonly: boolean;
103
+ loading: boolean;
104
+ clearable: boolean;
105
+ modelValue: undefined;
106
+ helper: string;
107
+ prependInnerIcon: string;
108
+ delimiters: readonly string[];
109
+ items: readonly DTAutocompleteItem[];
110
+ itemTitle: string;
111
+ itemValue: string;
112
+ multiple: boolean;
113
+ chips: boolean;
114
+ menuProps: DTSelectMenuProps;
115
+ hideNoData: boolean;
116
+ customFilter: (item: DTAutocompleteItem, query: string, title: string) => boolean;
117
+ filterKeys: readonly string[];
118
+ noFilter: boolean;
119
+ autoSelectFirst: boolean;
120
+ hideSelected: boolean;
121
+ debounce: number;
122
+ freeText: boolean;
123
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
124
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
125
+ declare const _default: typeof __VLS_export;
126
+ export default _default;
127
+ type __VLS_WithSlots<T, S> = T & {
128
+ new (): {
129
+ $slots: S;
130
+ };
131
+ };
@@ -0,0 +1,37 @@
1
+ export type DTAvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
2
+ export type DTAvatarTone = "primary" | "info" | "success" | "warning" | "neutral";
3
+ /** Corner shape: `full` is the reference circle, `md` a rounded square, `none` a square. */
4
+ export type DTAvatarRounded = "full" | "md" | "none";
5
+ type __VLS_Props = {
6
+ src?: string;
7
+ /** Required with `src`; also the accessible name of initials avatars. */
8
+ alt?: string;
9
+ /** Shown when there is no image or it fails to load. Derived from `alt` when omitted. */
10
+ initials?: string;
11
+ size?: DTAvatarSize;
12
+ tone?: DTAvatarTone;
13
+ rounded?: DTAvatarRounded;
14
+ /** Icon name for an icon avatar. Wins over initials; an image or the default slot wins over it. */
15
+ icon?: string;
16
+ };
17
+ declare var __VLS_1: {};
18
+ type __VLS_Slots = {} & {
19
+ default?: (props: typeof __VLS_1) => any;
20
+ };
21
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
+ size: DTAvatarSize;
23
+ rounded: DTAvatarRounded;
24
+ src: string;
25
+ alt: string;
26
+ initials: string;
27
+ tone: DTAvatarTone;
28
+ icon: string;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,18 @@
1
+ import { DTAvatarSize } from './DTAvatar.vue';
2
+ type __VLS_Props = {
3
+ /** Show at most this many avatars, then a "+n" avatar for the rest. */
4
+ max?: number;
5
+ size?: DTAvatarSize;
6
+ /** Accessible name of the group, e.g. "6 members". */
7
+ label?: string;
8
+ /** Accessible name of the "+n" avatar; `{0}` is the number hidden (D36b). */
9
+ moreLabel?: string;
10
+ };
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ size: DTAvatarSize;
13
+ label: string;
14
+ moreLabel: string;
15
+ max: number;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,47 @@
1
+ export type DTBadgeTone = "neutral" | "primary" | "info" | "success" | "warning" | "danger";
2
+ export type DTBadgeVariant = "soft" | "solid" | "outline";
3
+ export type DTBadgeSize = "sm" | "md" | "lg";
4
+ export type DTBadgeLocation = "top-start" | "top" | "top-end" | "start" | "end" | "bottom-start" | "bottom" | "bottom-end";
5
+ export interface DTBadgeProps {
6
+ /** Defaults to `neutral` for label badges and `danger` for markers (as in the design reference). */
7
+ tone?: DTBadgeTone;
8
+ variant?: DTBadgeVariant;
9
+ size?: DTBadgeSize;
10
+ /** Leading status dot in a label badge; with an element-only slot, a dot-only marker. */
11
+ dot?: boolean;
12
+ /** Number shown in the marker (marker mode) or as a trailing counter (label mode). */
13
+ count?: number;
14
+ /** Counts above `max` show as `max+`. */
15
+ max?: number;
16
+ /** Short marker text, e.g. "New". Marker mode only. */
17
+ content?: string;
18
+ /** Marker corner or edge. Marker mode only. */
19
+ location?: DTBadgeLocation;
20
+ /** Accessible text for the marker, e.g. "3 unread messages". Without it the marker is decorative. */
21
+ label?: string;
22
+ }
23
+ declare var __VLS_1: {}, __VLS_3: {};
24
+ type __VLS_Slots = {} & {
25
+ default?: (props: typeof __VLS_1) => any;
26
+ } & {
27
+ default?: (props: typeof __VLS_3) => any;
28
+ };
29
+ declare const __VLS_base: import('vue').DefineComponent<DTBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DTBadgeProps> & Readonly<{}>, {
30
+ variant: DTBadgeVariant;
31
+ size: DTBadgeSize;
32
+ label: string;
33
+ tone: DTBadgeTone;
34
+ max: number;
35
+ count: number;
36
+ location: DTBadgeLocation;
37
+ dot: boolean;
38
+ content: string;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from './DTBadge.vue';
2
+ export type { DTBadgeLocation, DTBadgeProps, DTBadgeTone } from './DTBadge.vue';
@@ -0,0 +1,47 @@
1
+ export type DTBorderBeamState = "running" | "paused" | "off";
2
+ type __VLS_Props = {
3
+ as?: string;
4
+ /** Beam colour; defaults to the primary colour. */
5
+ color?: string;
6
+ /** Stroke width in px. */
7
+ width?: number;
8
+ /** Comet length: a percentage of the perimeter ("25%") or a px length ("80px"). */
9
+ size?: string;
10
+ /** Number of beams sharing the perimeter. */
11
+ count?: number;
12
+ /** Seconds per lap. Ignored when `speed` is set. */
13
+ duration?: number;
14
+ /** Pixels per second; overrides `duration` so every element moves at the same speed. */
15
+ speed?: number;
16
+ reverse?: boolean;
17
+ state?: DTBorderBeamState;
18
+ /** Layers in the comet gradient (1–64); more is smoother. */
19
+ steps?: number;
20
+ /** Offset from the padding box in px; -1 draws on a 1px border. */
21
+ inset?: number;
22
+ };
23
+ declare var __VLS_9: {};
24
+ type __VLS_Slots = {} & {
25
+ default?: (props: typeof __VLS_9) => any;
26
+ };
27
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
28
+ size: string;
29
+ as: string;
30
+ reverse: boolean;
31
+ inset: number;
32
+ width: number;
33
+ color: string;
34
+ speed: number;
35
+ count: number;
36
+ duration: number;
37
+ state: DTBorderBeamState;
38
+ steps: number;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,46 @@
1
+ export interface DTBreadcrumbItem {
2
+ title: string;
3
+ href?: string;
4
+ disabled?: boolean;
5
+ }
6
+ type __VLS_Props = {
7
+ items: readonly DTBreadcrumbItem[];
8
+ /** Accessible name of the navigation landmark. */
9
+ label?: string;
10
+ /** Separator icon name. */
11
+ separator?: string;
12
+ };
13
+ declare var __VLS_1: {}, __VLS_8: {
14
+ item: DTBreadcrumbItem;
15
+ index: number;
16
+ current: boolean;
17
+ }, __VLS_10: {
18
+ item: DTBreadcrumbItem;
19
+ index: number;
20
+ current: boolean;
21
+ }, __VLS_12: {
22
+ item: DTBreadcrumbItem;
23
+ index: number;
24
+ current: boolean;
25
+ };
26
+ type __VLS_Slots = {} & {
27
+ separator?: (props: typeof __VLS_1) => any;
28
+ } & {
29
+ item?: (props: typeof __VLS_8) => any;
30
+ } & {
31
+ item?: (props: typeof __VLS_10) => any;
32
+ } & {
33
+ item?: (props: typeof __VLS_12) => any;
34
+ };
35
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
36
+ label: string;
37
+ separator: string;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
39
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
40
+ declare const _default: typeof __VLS_export;
41
+ export default _default;
42
+ type __VLS_WithSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,60 @@
1
+ import { DTButtonRounded, DTButtonSize, DTButtonType, DTButtonVariant } from '../../config';
2
+ import { DTButtonDensity } from '../button-group/buttonGroupContext';
3
+ type __VLS_Props = {
4
+ variant?: DTButtonVariant;
5
+ size?: DTButtonSize;
6
+ /** Corner radius: `none` gives square corners, `pill` fully rounded ends. Default `sm`. */
7
+ rounded?: DTButtonRounded;
8
+ /** Icon-only square button. Give it an `aria-label`. */
9
+ icon?: string;
10
+ prependIcon?: string;
11
+ appendIcon?: string;
12
+ loading?: boolean;
13
+ disabled?: boolean;
14
+ block?: boolean;
15
+ type?: DTButtonType;
16
+ /** Renders a link styled as a button. */
17
+ href?: string;
18
+ ripple?: boolean;
19
+ /** Vertical compactness: `comfortable` is 4 px and `compact` 8 px shorter than the size. */
20
+ density?: DTButtonDensity;
21
+ /** Keeps the current look but cannot be activated; stays focusable. */
22
+ readonly?: boolean;
23
+ /** Identifies the button inside a DTButtonGroup, which makes it a toggle button. Outside a group it is the native `value`. */
24
+ value?: unknown;
25
+ };
26
+ declare var __VLS_19: {}, __VLS_26: {}, __VLS_28: {}, __VLS_35: {};
27
+ type __VLS_Slots = {} & {
28
+ prepend?: (props: typeof __VLS_19) => any;
29
+ } & {
30
+ default?: (props: typeof __VLS_26) => any;
31
+ } & {
32
+ append?: (props: typeof __VLS_28) => any;
33
+ } & {
34
+ loader?: (props: typeof __VLS_35) => any;
35
+ };
36
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
37
+ value: undefined;
38
+ ripple: boolean;
39
+ variant: DTButtonVariant;
40
+ size: DTButtonSize;
41
+ rounded: DTButtonRounded;
42
+ type: DTButtonType;
43
+ disabled: boolean;
44
+ readonly: boolean;
45
+ density: DTButtonDensity;
46
+ loading: boolean;
47
+ href: string;
48
+ icon: string;
49
+ block: boolean;
50
+ prependIcon: string;
51
+ appendIcon: 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;
56
+ type __VLS_WithSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,56 @@
1
+ import { DTButtonRounded, DTButtonSize, DTButtonVariant } from '../../config';
2
+ import { DTButtonDensity } from './buttonGroupContext';
3
+ export type { DTButtonDensity } from './buttonGroupContext';
4
+ type __VLS_Props = {
5
+ /** Selected button value, or an array of values with `multiple`. Buttons take part when they have a `value`. */
6
+ modelValue?: unknown;
7
+ /** Several buttons can be selected; `v-model` is an array. */
8
+ multiple?: boolean;
9
+ /** The last selected button cannot be deselected. */
10
+ mandatory?: boolean;
11
+ /** Default variant of the buttons inside. */
12
+ variant?: DTButtonVariant;
13
+ /** Default size of the buttons inside. */
14
+ size?: DTButtonSize;
15
+ /** Default density of the buttons inside. */
16
+ density?: DTButtonDensity;
17
+ /** Corner radius of the group's outer corners; inner corners are always square. */
18
+ rounded?: DTButtonRounded;
19
+ /** Disables every button. */
20
+ disabled?: boolean;
21
+ /** Every button keeps its state visible but cannot be activated. */
22
+ readonly?: boolean;
23
+ /** Fills the container width; the buttons share it equally. */
24
+ block?: boolean;
25
+ /** Accessible name of the group. */
26
+ label?: string;
27
+ };
28
+ declare var __VLS_1: {};
29
+ type __VLS_Slots = {} & {
30
+ default?: (props: typeof __VLS_1) => any;
31
+ };
32
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
+ "update:modelValue": (value: unknown) => any;
34
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
36
+ }>, {
37
+ variant: DTButtonVariant;
38
+ size: DTButtonSize;
39
+ rounded: DTButtonRounded;
40
+ label: string;
41
+ disabled: boolean;
42
+ readonly: boolean;
43
+ density: DTButtonDensity;
44
+ modelValue: undefined;
45
+ block: boolean;
46
+ multiple: boolean;
47
+ mandatory: boolean;
48
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
49
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
50
+ declare const _default: typeof __VLS_export;
51
+ export default _default;
52
+ type __VLS_WithSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };