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,33 @@
1
+ import { ComputedRef, InjectionKey, Ref } from 'vue';
2
+ export type DTLayoutEdge = "top" | "bottom" | "start" | "end";
3
+ /** One bar or drawer, as DTLayout reads it. Getters, so the layout follows prop changes. */
4
+ export interface DTLayoutItem {
5
+ edge: () => DTLayoutEdge;
6
+ /** CSS length of the item across its edge (a bar's height, a drawer's width). */
7
+ size: () => string;
8
+ /** False while the item takes no room (a drawer shown as a temporary sheet). */
9
+ active: () => boolean;
10
+ /**
11
+ * True while the item has slid out of view (a bar with scroll-behavior "hide"): later items move
12
+ * into its room, but DTMain keeps its padding (its scroll box runs under the bar anyway).
13
+ */
14
+ collapsed?: () => boolean;
15
+ }
16
+ export interface DTLayoutRegistration {
17
+ /** Inline position of the item inside the layout box (empty while it is not active). */
18
+ style: ComputedRef<Record<string, string>>;
19
+ unregister: () => void;
20
+ }
21
+ export interface DTLayoutContext {
22
+ register: (item: DTLayoutItem) => DTLayoutRegistration;
23
+ /** DTMain's scroll box, when DTMain is `scrollable`; bars with a scroll behaviour listen to it. */
24
+ scroller: Ref<HTMLElement | null>;
25
+ setScroller: (element: HTMLElement | null) => void;
26
+ /** DTMain's root element: the default target of a DTSkipLink in the layout (D37). */
27
+ main: Ref<HTMLElement | null>;
28
+ setMain: (element: HTMLElement | null) => void;
29
+ /** The layout fills the viewport (`full-height`): a DTSkipLink in it is fixed to the viewport. */
30
+ fullHeight: () => boolean;
31
+ }
32
+ export declare const DTLayoutKey: InjectionKey<DTLayoutContext>;
33
+ export declare const useDTLayout: () => DTLayoutContext | null;
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ href?: string;
3
+ target?: string;
4
+ rel?: string;
5
+ underline?: boolean;
6
+ muted?: boolean;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ muted: boolean;
14
+ href: string;
15
+ target: string;
16
+ rel: string;
17
+ underline: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,53 @@
1
+ import { DTListDensity, DTListLines, DTListSelectable } from './listContext';
2
+ type __VLS_Props = {
3
+ density?: DTListDensity;
4
+ /** Subtitle lines: "two" and "three" clamp it to 1 and 2 lines. */
5
+ lines?: DTListLines;
6
+ /** A rule between rows. */
7
+ dividers?: boolean;
8
+ /** Side navigation: inset, rounded rows, and a <nav> root named by `label`. */
9
+ nav?: boolean;
10
+ /** Turn the list into a listbox: one value ("single") or an array ("multiple") in `v-model:selected`. */
11
+ selectable?: DTListSelectable;
12
+ /** The selected value, or an array with selectable="multiple". */
13
+ selected?: unknown;
14
+ /** selectable="single": keep one item selected. */
15
+ mandatory?: boolean;
16
+ disabled?: boolean;
17
+ /** Accessible name of the listbox or the nav. */
18
+ label?: string;
19
+ /** Root element of a plain list. */
20
+ as?: string;
21
+ };
22
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_12: {};
23
+ type __VLS_Slots = {} & {
24
+ default?: (props: typeof __VLS_1) => any;
25
+ } & {
26
+ default?: (props: typeof __VLS_3) => any;
27
+ } & {
28
+ default?: (props: typeof __VLS_12) => any;
29
+ };
30
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ "update:selected": (value: unknown) => any;
32
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
33
+ "onUpdate:selected"?: ((value: unknown) => any) | undefined;
34
+ }>, {
35
+ label: string;
36
+ nav: boolean;
37
+ as: string;
38
+ disabled: boolean;
39
+ density: DTListDensity;
40
+ lines: DTListLines;
41
+ selected: undefined;
42
+ mandatory: boolean;
43
+ dividers: boolean;
44
+ selectable: DTListSelectable;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;
49
+ type __VLS_WithSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,61 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ subtitle?: string;
4
+ /** Selection value inside a selectable list; defaults to the title. */
5
+ value?: unknown;
6
+ prependIcon?: string;
7
+ appendIcon?: string;
8
+ /** Render the row as a link. */
9
+ href?: string;
10
+ target?: string;
11
+ /** Highlighted; aria-current="page" on a nav link. */
12
+ active?: boolean;
13
+ disabled?: boolean;
14
+ rounded?: boolean;
15
+ };
16
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {}, __VLS_34: {}, __VLS_41: {}, __VLS_43: {}, __VLS_45: {}, __VLS_47: {};
17
+ type __VLS_Slots = {} & {
18
+ prepend?: (props: typeof __VLS_1) => any;
19
+ } & {
20
+ default?: (props: typeof __VLS_8) => any;
21
+ } & {
22
+ title?: (props: typeof __VLS_10) => any;
23
+ } & {
24
+ subtitle?: (props: typeof __VLS_12) => any;
25
+ } & {
26
+ append?: (props: typeof __VLS_14) => any;
27
+ } & {
28
+ prepend?: (props: typeof __VLS_34) => any;
29
+ } & {
30
+ default?: (props: typeof __VLS_41) => any;
31
+ } & {
32
+ title?: (props: typeof __VLS_43) => any;
33
+ } & {
34
+ subtitle?: (props: typeof __VLS_45) => any;
35
+ } & {
36
+ append?: (props: typeof __VLS_47) => any;
37
+ };
38
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
+ click: (event: MouseEvent | KeyboardEvent) => any;
40
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
41
+ onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
42
+ }>, {
43
+ value: undefined;
44
+ rounded: boolean;
45
+ title: string;
46
+ disabled: boolean;
47
+ active: boolean;
48
+ href: string;
49
+ target: string;
50
+ prependIcon: string;
51
+ appendIcon: string;
52
+ subtitle: string;
53
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
55
+ declare const _default: typeof __VLS_export;
56
+ export default _default;
57
+ type __VLS_WithSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };
@@ -0,0 +1,24 @@
1
+ type __VLS_Props = {
2
+ /** Indent to line up with titles that follow a prepend icon or avatar. */
3
+ inset?: boolean;
4
+ /** Stick to the top while a scrolling list scrolls under it. */
5
+ sticky?: boolean;
6
+ };
7
+ declare var __VLS_1: {}, __VLS_3: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_1) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_3) => any;
12
+ };
13
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ sticky: boolean;
15
+ inset: boolean;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,16 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ export type DTListDensity = "default" | "compact";
3
+ export type DTListLines = "one" | "two" | "three";
4
+ export type DTListSelectable = false | "single" | "multiple";
5
+ export interface DTListContext {
6
+ /** "single" / "multiple" when the list is a listbox, otherwise false. */
7
+ selectable: ComputedRef<DTListSelectable>;
8
+ nav: ComputedRef<boolean>;
9
+ disabled: ComputedRef<boolean>;
10
+ isSelected: (value: unknown) => boolean;
11
+ toggle: (value: unknown) => void;
12
+ }
13
+ export declare const DTListKey: InjectionKey<DTListContext>;
14
+ export declare const useDTList: () => DTListContext | null;
15
+ /** Options of this list only: a nested list owns its own options. */
16
+ export declare const LIST_OPTION_SELECTOR = "[role='option']:not(:scope [role='listbox'] *)";
@@ -0,0 +1,93 @@
1
+ import { DTTextFieldBaseProps } from '../text-field/fieldShared';
2
+ export interface DTMentionOption {
3
+ /** Inserted after the prefix when chosen. */
4
+ value: string;
5
+ /** Shown in the list; default the value. */
6
+ label?: string;
7
+ disabled?: boolean;
8
+ [key: string]: unknown;
9
+ }
10
+ /** Return true to keep the option for the typed text after the prefix. */
11
+ export type DTMentionFilter = (pattern: string, option: DTMentionOption) => boolean;
12
+ interface DTMentionProps extends Omit<DTTextFieldBaseProps, "modelValue" | "prependIcon" | "appendIcon" | "prependIconLabel" | "prependInnerIconLabel" | "appendIconLabel" | "appendInnerIconLabel"> {
13
+ modelValue?: string;
14
+ options?: readonly DTMentionOption[];
15
+ /** The character(s) that start a mention: one string, or several. */
16
+ prefix?: string | readonly string[];
17
+ /** Separates a mention from the text around it; inserted after a chosen value. */
18
+ split?: string;
19
+ /** Shows a loading row and an indeterminate bar while suggestions are fetched. */
20
+ loading?: boolean;
21
+ /** Custom matching, or `false` to show `options` as given (filter on the server in `search`). */
22
+ filterOption?: DTMentionFilter | false;
23
+ /** Backspace right after a mention deletes the whole mention. */
24
+ whole?: boolean;
25
+ /** With `whole`, decides whether the text before the caret is a mention. Default: it is one of the option values. */
26
+ checkIsWhole?: (pattern: string, prefix: string) => boolean;
27
+ /** A textarea instead of a one-line input. */
28
+ multiline?: boolean;
29
+ /** Rows of the textarea with `multiline`. */
30
+ rows?: number;
31
+ /** Shown when nothing matches. */
32
+ noDataText?: string;
33
+ /** Shown and announced while `loading`. */
34
+ loadingText?: string;
35
+ /** Announced when the list opens or changes; `{0}` is the number of suggestions. */
36
+ resultsText?: string;
37
+ /** Announced for exactly one suggestion. */
38
+ resultsTextOne?: string;
39
+ }
40
+ declare var __VLS_10: string, __VLS_11: any, __VLS_26: {
41
+ option: DTMentionOption;
42
+ index: number;
43
+ active: boolean;
44
+ };
45
+ type __VLS_Slots = {} & {
46
+ [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
47
+ } & {
48
+ item?: (props: typeof __VLS_26) => any;
49
+ };
50
+ declare const __VLS_base: import('vue').DefineComponent<DTMentionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
+ search: (pattern: string, prefix: string) => any;
52
+ select: (option: DTMentionOption, prefix: string) => any;
53
+ "update:modelValue": (value: string) => any;
54
+ }, string, import('vue').PublicProps, Readonly<DTMentionProps> & Readonly<{
55
+ onSearch?: ((pattern: string, prefix: string) => any) | undefined;
56
+ onSelect?: ((option: DTMentionOption, prefix: string) => any) | undefined;
57
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
58
+ }>, {
59
+ error: boolean | string;
60
+ variant: import('../..').DTFieldVariant;
61
+ size: import('../..').DTFieldSize;
62
+ split: string;
63
+ label: string;
64
+ multiline: boolean;
65
+ noDataText: string;
66
+ loadingText: string;
67
+ resultsText: string;
68
+ resultsTextOne: string;
69
+ placeholder: string;
70
+ id: string;
71
+ required: boolean;
72
+ disabled: boolean;
73
+ readonly: boolean;
74
+ loading: boolean;
75
+ modelValue: string;
76
+ helper: string;
77
+ prependInnerIcon: string;
78
+ appendInnerIcon: string;
79
+ prefix: string | readonly string[];
80
+ rows: number;
81
+ options: readonly DTMentionOption[];
82
+ filterOption: DTMentionFilter | false;
83
+ whole: boolean;
84
+ checkIsWhole: (pattern: string, prefix: string) => boolean;
85
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
86
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
87
+ declare const _default: typeof __VLS_export;
88
+ export default _default;
89
+ type __VLS_WithSlots<T, S> = T & {
90
+ new (): {
91
+ $slots: S;
92
+ };
93
+ };
@@ -0,0 +1,7 @@
1
+ import { DTPopoverRect } from '../_shared/usePopover';
2
+ /**
3
+ * The viewport box of the caret at `position` in an input or textarea: zero width, one line tall.
4
+ * A single-line input reports only the caret's horizontal position; its top and bottom are the
5
+ * `box` element's (the field box), so a panel opens under the field, at the caret.
6
+ */
7
+ export declare function caretRect(control: HTMLInputElement | HTMLTextAreaElement, position: number, box?: HTMLElement | null): DTPopoverRect;
@@ -0,0 +1,66 @@
1
+ export type DTMenuPlacement = "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
2
+ type __VLS_Props = {
3
+ /** Open state, for `v-model:open`. */
4
+ open?: boolean;
5
+ /** Preferred side and alignment; the panel flips to the opposite side when it does not fit. */
6
+ placement?: DTMenuPlacement;
7
+ /** Accessible name of the menu panel. */
8
+ label?: string;
9
+ /**
10
+ * Whether choosing an item closes the menu. Unset, actions close it and checkbox/radio items
11
+ * keep it open (so several can be toggled). `true` closes on every choice, for single-pick
12
+ * menus such as a status or assignee picker; `false` keeps it open even for actions.
13
+ */
14
+ closeOnSelect?: boolean;
15
+ /**
16
+ * Also open when the pointer rests on the trigger, and close when it leaves both trigger and
17
+ * panel. Click and keyboard still work; a click or keyboard use keeps the menu open.
18
+ */
19
+ openOnHover?: boolean;
20
+ /**
21
+ * Context-menu mode: the `trigger` slot is a target area that opens the menu at the pointer on
22
+ * right-click, or below the focused element on Shift+F10 / the ContextMenu key.
23
+ */
24
+ context?: boolean;
25
+ };
26
+ declare var __VLS_1: {
27
+ props: {
28
+ onContextmenu: (event: MouseEvent) => void;
29
+ onKeydown: (event: KeyboardEvent) => void;
30
+ onPointerdown: (event: PointerEvent) => void;
31
+ } | {
32
+ "aria-haspopup": "menu";
33
+ "aria-expanded": "true" | "false";
34
+ "aria-controls": string | undefined;
35
+ onClick: (event: MouseEvent) => void;
36
+ onKeydown: (event: KeyboardEvent) => void;
37
+ };
38
+ open: boolean;
39
+ }, __VLS_3: {}, __VLS_5: {};
40
+ type __VLS_Slots = {} & {
41
+ trigger?: (props: typeof __VLS_1) => any;
42
+ } & {
43
+ header?: (props: typeof __VLS_3) => any;
44
+ } & {
45
+ default?: (props: typeof __VLS_5) => any;
46
+ };
47
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ "update:open": (value: boolean) => any;
49
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
50
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
51
+ }>, {
52
+ label: string;
53
+ placement: DTMenuPlacement;
54
+ open: boolean;
55
+ closeOnSelect: boolean;
56
+ openOnHover: boolean;
57
+ context: boolean;
58
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
59
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
60
+ declare const _default: typeof __VLS_export;
61
+ export default _default;
62
+ type __VLS_WithSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
@@ -0,0 +1,45 @@
1
+ export type DTMenuItemType = "action" | "checkbox" | "radio";
2
+ type __VLS_Props = {
3
+ type?: DTMenuItemType;
4
+ /** Checked state for checkbox and radio items. */
5
+ checked?: boolean;
6
+ icon?: string;
7
+ shortcut?: string;
8
+ description?: string;
9
+ danger?: boolean;
10
+ disabled?: boolean;
11
+ /** Overrides the menu's `close-on-select` for this item. */
12
+ closeOnSelect?: boolean;
13
+ };
14
+ declare var __VLS_11: {}, __VLS_13: {}, __VLS_20: {};
15
+ type __VLS_Slots = {} & {
16
+ default?: (props: typeof __VLS_11) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_13) => any;
19
+ } & {
20
+ submenu?: (props: typeof __VLS_20) => any;
21
+ };
22
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ select: () => any;
24
+ "update:checked": (value: boolean) => any;
25
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onSelect?: (() => any) | undefined;
27
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
28
+ }>, {
29
+ danger: boolean;
30
+ description: string;
31
+ type: DTMenuItemType;
32
+ disabled: boolean;
33
+ icon: string;
34
+ checked: boolean;
35
+ closeOnSelect: boolean;
36
+ shortcut: string;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
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>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,3 @@
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>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import { InjectionKey, ShallowRef } from 'vue';
2
+ /** A submenu item that is currently open within one menu level. */
3
+ export interface DTMenuSubmenuHandle {
4
+ close: (options?: {
5
+ returnFocus?: boolean;
6
+ }) => void;
7
+ }
8
+ export interface DTMenuContext {
9
+ /** Close the whole menu chain and return focus to the trigger (or the context-menu target). */
10
+ close: () => void;
11
+ /** The menu's `closeOnSelect`; `undefined` means each item type keeps its own default. */
12
+ closeOnSelect: () => boolean | undefined;
13
+ /** The open submenu of this level, so opening or focusing a sibling closes it (one per level). */
14
+ openSubmenu: ShallowRef<DTMenuSubmenuHandle | null>;
15
+ }
16
+ export declare const DTMenuKey: InjectionKey<DTMenuContext>;
17
+ export declare const useDTMenu: () => DTMenuContext | null;
18
+ /** Items of one menu level only: nested submenu panels own their own items. */
19
+ export declare const MENU_ITEM_SELECTOR = "[role^='menuitem']:not(:scope [role='menu'] *)";
20
+ /** Whether a key event comes from an item of this panel rather than from a nested submenu. */
21
+ export declare const isOwnLevel: (panel: HTMLElement | null | undefined, event: Event) => boolean;
22
+ export declare const HOVER_OPEN_DELAY = 150;
23
+ export declare const HOVER_CLOSE_DELAY = 300;
24
+ /**
25
+ * Hover intent for a trigger and its panel, attached to an element that contains both. Opens after
26
+ * a short delay; leaving starts a grace period, so a diagonal move across a gap into the panel
27
+ * (which re-enters the container) cancels the close. Touch is ignored: a tap is a click.
28
+ */
29
+ export declare function useMenuHover(options: {
30
+ enabled: () => boolean;
31
+ isOpen: () => boolean;
32
+ open: () => void;
33
+ close: () => void;
34
+ }): {
35
+ onPointerenter: (event: PointerEvent) => void;
36
+ onPointerleave: (event: PointerEvent) => void;
37
+ cancel: () => void;
38
+ };
@@ -0,0 +1,52 @@
1
+ export type DTModalSize = "sm" | "md" | "lg";
2
+ /** `true` always; a breakpoint name means "below that breakpoint" (sm 640, md 768, lg 1024 px). */
3
+ export type DTModalFullscreen = boolean | "sm" | "md" | "lg";
4
+ type __VLS_Props = {
5
+ /** Open state, for `v-model:open`. */
6
+ open?: boolean;
7
+ title?: string;
8
+ size?: DTModalSize;
9
+ /** Fills the viewport: no radius or max width, the body scrolls, header and footer stay put. */
10
+ fullscreen?: DTModalFullscreen;
11
+ /** Backdrop click and Escape do not close it; use for confirmations that need an answer. */
12
+ persistent?: boolean;
13
+ /** Shows the close button in the header. */
14
+ closable?: boolean;
15
+ /** `alertdialog` for destructive confirmations. */
16
+ role?: "dialog" | "alertdialog";
17
+ closeLabel?: string;
18
+ };
19
+ declare var __VLS_15: {}, __VLS_22: {}, __VLS_24: {
20
+ close: () => void;
21
+ };
22
+ type __VLS_Slots = {} & {
23
+ title?: (props: typeof __VLS_15) => any;
24
+ } & {
25
+ default?: (props: typeof __VLS_22) => any;
26
+ } & {
27
+ footer?: (props: typeof __VLS_24) => any;
28
+ };
29
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
+ close: () => any;
31
+ "update:open": (value: boolean) => any;
32
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
33
+ onClose?: (() => any) | undefined;
34
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
35
+ }>, {
36
+ size: DTModalSize;
37
+ role: "dialog" | "alertdialog";
38
+ title: string;
39
+ closeLabel: string;
40
+ open: boolean;
41
+ closable: boolean;
42
+ persistent: boolean;
43
+ fullscreen: DTModalFullscreen;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Open DTModals, oldest first. A modal opened from inside another sits above it: only the topmost
3
+ * one handles Escape, and page scroll stays locked until the last modal in a document closes.
4
+ * (Focus trapping uses the matching stack in useFocusTrap, so only the topmost dialog traps Tab.)
5
+ *
6
+ * Everything outside the topmost modal is also made `inert`: `aria-modal` alone is not honoured
7
+ * consistently by browsers and screen readers, so without it the outer dialog's fields and the page
8
+ * behind stayed in the accessibility tree while a nested dialog was open (WAI-ARIA APG dialog).
9
+ */
10
+ interface ModalEntry {
11
+ doc: Document;
12
+ /** The modal's own teleported backdrop, a direct child of <body>. */
13
+ root: HTMLElement | null;
14
+ }
15
+ /** Adds a modal to the top of the stack, locks its document's scroll, and makes the rest inert. */
16
+ export declare const pushModal: (doc: Document, root?: HTMLElement | null) => ModalEntry;
17
+ /** Removes a modal (wherever it is in the stack); restores scroll and interactivity as needed. */
18
+ export declare const removeModal: (entry: ModalEntry) => void;
19
+ export declare const isTopModal: (entry: ModalEntry | null) => boolean;
20
+ export type { ModalEntry };
@@ -0,0 +1,93 @@
1
+ import { DTIconPlay } from '../icon/play';
2
+ export type DTNavigationDrawerMode = "permanent" | "rail" | "temporary";
3
+ type __VLS_Props = {
4
+ /** Open state of a temporary drawer, for `v-model:open`. */
5
+ open?: boolean;
6
+ mode?: DTNavigationDrawerMode;
7
+ /** Rail state, for `v-model:rail`: collapses a permanent drawer to its icons. */
8
+ rail?: boolean;
9
+ location?: "start" | "end";
10
+ /** Width when expanded (a length or a number of px). */
11
+ width?: number | string;
12
+ railWidth?: number | string;
13
+ /** A rail expands over the page while hovered or focused. */
14
+ expandOnHover?: boolean;
15
+ /** Below this width (px, or sm/md/lg) the drawer is temporary. */
16
+ breakpoint?: number | "sm" | "md" | "lg";
17
+ /** Names the temporary drawer's dialog. Name the navigation itself on the DTList nav inside. */
18
+ label?: string;
19
+ /** A border on the inner edge. */
20
+ border?: boolean;
21
+ /**
22
+ * Icons inside play their tandd-icon effect when their row is hovered or focused (a home's door
23
+ * nudges, a gear turns). Any DTIcon `play` value; `false` turns it off.
24
+ */
25
+ iconPlay?: DTIconPlay;
26
+ };
27
+ declare var __VLS_10: {
28
+ rail: boolean;
29
+ close: () => void;
30
+ toggleRail: () => void;
31
+ }, __VLS_12: {
32
+ rail: boolean;
33
+ close: () => void;
34
+ toggleRail: () => void;
35
+ }, __VLS_14: {
36
+ rail: boolean;
37
+ close: () => void;
38
+ toggleRail: () => void;
39
+ }, __VLS_16: {
40
+ rail: boolean;
41
+ close: () => void;
42
+ toggleRail: () => void;
43
+ }, __VLS_18: {
44
+ rail: boolean;
45
+ close: () => void;
46
+ toggleRail: () => void;
47
+ }, __VLS_20: {
48
+ rail: boolean;
49
+ close: () => void;
50
+ toggleRail: () => void;
51
+ };
52
+ type __VLS_Slots = {} & {
53
+ prepend?: (props: typeof __VLS_10) => any;
54
+ } & {
55
+ default?: (props: typeof __VLS_12) => any;
56
+ } & {
57
+ append?: (props: typeof __VLS_14) => any;
58
+ } & {
59
+ prepend?: (props: typeof __VLS_16) => any;
60
+ } & {
61
+ default?: (props: typeof __VLS_18) => any;
62
+ } & {
63
+ append?: (props: typeof __VLS_20) => any;
64
+ };
65
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
66
+ "update:open": (value: boolean) => any;
67
+ "update:rail": (value: boolean) => any;
68
+ "change:mode": (mode: DTNavigationDrawerMode) => any;
69
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
70
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
71
+ "onUpdate:rail"?: ((value: boolean) => any) | undefined;
72
+ "onChange:mode"?: ((mode: DTNavigationDrawerMode) => any) | undefined;
73
+ }>, {
74
+ border: boolean;
75
+ label: string;
76
+ width: number | string;
77
+ mode: DTNavigationDrawerMode;
78
+ open: boolean;
79
+ location: "start" | "end";
80
+ rail: boolean;
81
+ railWidth: number | string;
82
+ expandOnHover: boolean;
83
+ breakpoint: number | "sm" | "md" | "lg";
84
+ iconPlay: DTIconPlay;
85
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
86
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
87
+ declare const _default: typeof __VLS_export;
88
+ export default _default;
89
+ type __VLS_WithSlots<T, S> = T & {
90
+ new (): {
91
+ $slots: S;
92
+ };
93
+ };