@octans/ui 1.0.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 (283) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -0
  3. package/bin/octans-icons.mjs +208 -0
  4. package/dist/components/ActionList/ActionList.vue.d.ts +77 -0
  5. package/dist/components/ActionList/ActionListButton.vue.d.ts +85 -0
  6. package/dist/components/ActionList/ActionListMenu.vue.d.ts +18 -0
  7. package/dist/components/ActionList/index.d.ts +1 -0
  8. package/dist/components/AppFrame/AppFrame.vue.d.ts +26 -0
  9. package/dist/components/AppFrame/context.d.ts +40 -0
  10. package/dist/components/AppFrame/index.d.ts +3 -0
  11. package/dist/components/AppFrame/types.d.ts +52 -0
  12. package/dist/components/Badge/Badge.vue.d.ts +125 -0
  13. package/dist/components/Badge/index.d.ts +1 -0
  14. package/dist/components/Banner/Banner.vue.d.ts +239 -0
  15. package/dist/components/Banner/index.d.ts +1 -0
  16. package/dist/components/Button/Button.vue.d.ts +284 -0
  17. package/dist/components/Button/ButtonGroup.vue.d.ts +44 -0
  18. package/dist/components/Button/ButtonGroupItem.vue.d.ts +5 -0
  19. package/dist/components/Button/index.d.ts +3 -0
  20. package/dist/components/Calendar/Calendar.vue.d.ts +15 -0
  21. package/dist/components/Calendar/index.d.ts +2 -0
  22. package/dist/components/Calendar/types.d.ts +39 -0
  23. package/dist/components/CalendarHeatmap/CalendarHeatmap.vue.d.ts +21 -0
  24. package/dist/components/CalendarHeatmap/index.d.ts +2 -0
  25. package/dist/components/CalendarHeatmap/types.d.ts +168 -0
  26. package/dist/components/Caption/Caption.vue.d.ts +5 -0
  27. package/dist/components/Caption/index.d.ts +1 -0
  28. package/dist/components/Card/Card.vue.d.ts +82 -0
  29. package/dist/components/Card/CardSection.vue.d.ts +89 -0
  30. package/dist/components/Card/index.d.ts +2 -0
  31. package/dist/components/Card/utils.d.ts +4 -0
  32. package/dist/components/Checkbox/Checkbox.vue.d.ts +171 -0
  33. package/dist/components/Checkbox/CheckboxControl.vue.d.ts +59 -0
  34. package/dist/components/Checkbox/index.d.ts +2 -0
  35. package/dist/components/Choice/Choice.vue.d.ts +102 -0
  36. package/dist/components/Choice/index.d.ts +1 -0
  37. package/dist/components/ChoiceList/ChoiceList.vue.d.ts +199 -0
  38. package/dist/components/ChoiceList/index.d.ts +2 -0
  39. package/dist/components/ChoiceList/types.d.ts +31 -0
  40. package/dist/components/ColorPicker/ColorPicker.vue.d.ts +18 -0
  41. package/dist/components/ColorPicker/index.d.ts +2 -0
  42. package/dist/components/ColorPicker/types.d.ts +62 -0
  43. package/dist/components/ColorSelector/ColorSelector.vue.d.ts +34 -0
  44. package/dist/components/ColorSelector/index.d.ts +2 -0
  45. package/dist/components/ColorSelector/types.d.ts +143 -0
  46. package/dist/components/DataTable/BulkActions.vue.d.ts +282 -0
  47. package/dist/components/DataTable/DataTable.vue.d.ts +40 -0
  48. package/dist/components/DataTable/DataTableFooter.vue.d.ts +22 -0
  49. package/dist/components/DataTable/index.d.ts +2 -0
  50. package/dist/components/DataTable/types.d.ts +249 -0
  51. package/dist/components/DatePicker/DatePicker.vue.d.ts +17 -0
  52. package/dist/components/DatePicker/index.d.ts +4 -0
  53. package/dist/components/DatePicker/types.d.ts +57 -0
  54. package/dist/components/Divider/Divider.vue.d.ts +20 -0
  55. package/dist/components/Divider/index.d.ts +2 -0
  56. package/dist/components/Divider/types.d.ts +76 -0
  57. package/dist/components/EventDelegator/EventDelegator.vue.d.ts +18 -0
  58. package/dist/components/EventDelegator/index.d.ts +1 -0
  59. package/dist/components/EventDelegator/utils.d.ts +25 -0
  60. package/dist/components/FileInput/DropZone.vue.d.ts +67 -0
  61. package/dist/components/FileInput/FileInput.vue.d.ts +422 -0
  62. package/dist/components/FileInput/ItemList.vue.d.ts +109 -0
  63. package/dist/components/FileInput/index.d.ts +1 -0
  64. package/dist/components/FileInput/utils.d.ts +15 -0
  65. package/dist/components/Filters/FilterActions.vue.d.ts +236 -0
  66. package/dist/components/Filters/FilterItem.vue.d.ts +813 -0
  67. package/dist/components/Filters/Filters.vue.d.ts +1627 -0
  68. package/dist/components/Filters/index.d.ts +1 -0
  69. package/dist/components/Filters/utils.d.ts +1 -0
  70. package/dist/components/FooterHelp/FooterHelp.vue.d.ts +16 -0
  71. package/dist/components/FooterHelp/index.d.ts +1 -0
  72. package/dist/components/FormLayout/FormLayout.vue.d.ts +5 -0
  73. package/dist/components/FormLayout/FormLayoutGroup.vue.d.ts +17 -0
  74. package/dist/components/FormLayout/index.d.ts +2 -0
  75. package/dist/components/Formatter/Formatter.vue.d.ts +42 -0
  76. package/dist/components/Formatter/index.d.ts +1 -0
  77. package/dist/components/GlobalNav/GlobalNav.vue.d.ts +33 -0
  78. package/dist/components/GlobalNav/index.d.ts +2 -0
  79. package/dist/components/GlobalNav/types.d.ts +64 -0
  80. package/dist/components/GradientPicker/GradientPicker.vue.d.ts +20 -0
  81. package/dist/components/GradientPicker/index.d.ts +2 -0
  82. package/dist/components/GradientPicker/types.d.ts +74 -0
  83. package/dist/components/Heading/Heading.vue.d.ts +18 -0
  84. package/dist/components/Heading/index.d.ts +1 -0
  85. package/dist/components/Icon/Icon.vue.d.ts +112 -0
  86. package/dist/components/Icon/iconBundle.d.ts +1 -0
  87. package/dist/components/Icon/index.d.ts +1 -0
  88. package/dist/components/InlineError/InlineError.vue.d.ts +6 -0
  89. package/dist/components/InlineError/index.d.ts +1 -0
  90. package/dist/components/Labelled/Labelled.vue.d.ts +110 -0
  91. package/dist/components/Labelled/index.d.ts +1 -0
  92. package/dist/components/Layout/Layout.vue.d.ts +13 -0
  93. package/dist/components/Layout/LayoutSection.vue.d.ts +16 -0
  94. package/dist/components/Layout/LayoutSectionAnnotated.vue.d.ts +34 -0
  95. package/dist/components/Layout/index.d.ts +3 -0
  96. package/dist/components/LineClamper/LineClamper.vue.d.ts +16 -0
  97. package/dist/components/LineClamper/index.d.ts +2 -0
  98. package/dist/components/LineClamper/types.d.ts +7 -0
  99. package/dist/components/Link/Link.vue.d.ts +19 -0
  100. package/dist/components/Link/index.d.ts +1 -0
  101. package/dist/components/List/List.vue.d.ts +15 -0
  102. package/dist/components/List/ListItem.vue.d.ts +16 -0
  103. package/dist/components/List/index.d.ts +3 -0
  104. package/dist/components/List/types.d.ts +51 -0
  105. package/dist/components/LoaderOverlay/LoaderOverlay.vue.d.ts +18 -0
  106. package/dist/components/LoaderOverlay/host.d.ts +6 -0
  107. package/dist/components/LoaderOverlay/index.d.ts +26 -0
  108. package/dist/components/LoaderOverlay/store.d.ts +7 -0
  109. package/dist/components/LoaderOverlay/types.d.ts +24 -0
  110. package/dist/components/LoadingBar/LoadingBar.vue.d.ts +7 -0
  111. package/dist/components/LoadingBar/host.d.ts +6 -0
  112. package/dist/components/LoadingBar/index.d.ts +28 -0
  113. package/dist/components/LoadingBar/store.d.ts +6 -0
  114. package/dist/components/LoadingBar/types.d.ts +16 -0
  115. package/dist/components/MaybeMountingPortal/MaybeMountingPortal.vue.d.ts +53 -0
  116. package/dist/components/MaybeMountingPortal/index.d.ts +1 -0
  117. package/dist/components/MaybeRouterLink/MaybeRouterLink.vue.d.ts +34 -0
  118. package/dist/components/MaybeRouterLink/index.d.ts +2 -0
  119. package/dist/components/MaybeRouterLink/types.d.ts +49 -0
  120. package/dist/components/Modal/Modal.vue.d.ts +28 -0
  121. package/dist/components/Modal/ModalBackdrop.vue.d.ts +12 -0
  122. package/dist/components/Modal/ModalHost.vue.d.ts +3 -0
  123. package/dist/components/Modal/ModalStackItem.vue.d.ts +14 -0
  124. package/dist/components/Modal/api/AlertModal.vue.d.ts +10 -0
  125. package/dist/components/Modal/api/Base.d.ts +12 -0
  126. package/dist/components/Modal/api/ConfirmModal.vue.d.ts +10 -0
  127. package/dist/components/Modal/api/GenericModal.vue.d.ts +10 -0
  128. package/dist/components/Modal/api/PromptModal.vue.d.ts +10 -0
  129. package/dist/components/Modal/api/types.d.ts +110 -0
  130. package/dist/components/Modal/host.d.ts +2 -0
  131. package/dist/components/Modal/index.d.ts +10 -0
  132. package/dist/components/Modal/manager.d.ts +80 -0
  133. package/dist/components/Modal/types.d.ts +49 -0
  134. package/dist/components/NavField/NavField.vue.d.ts +223 -0
  135. package/dist/components/NavField/index.d.ts +1 -0
  136. package/dist/components/Navigation/Navigation.vue.d.ts +47 -0
  137. package/dist/components/Navigation/components/Item.vue.d.ts +10 -0
  138. package/dist/components/Navigation/components/Section.vue.d.ts +13 -0
  139. package/dist/components/Navigation/index.d.ts +2 -0
  140. package/dist/components/Navigation/types.d.ts +117 -0
  141. package/dist/components/OtpInput/OtpInput.vue.d.ts +21 -0
  142. package/dist/components/OtpInput/index.d.ts +2 -0
  143. package/dist/components/OtpInput/types.d.ts +87 -0
  144. package/dist/components/Page/Page.vue.d.ts +34 -0
  145. package/dist/components/Page/index.d.ts +2 -0
  146. package/dist/components/Page/types.d.ts +75 -0
  147. package/dist/components/PageActions/PageActions.vue.d.ts +6 -0
  148. package/dist/components/PageActions/index.d.ts +2 -0
  149. package/dist/components/PageActions/types.d.ts +17 -0
  150. package/dist/components/Pagination/Pagination.vue.d.ts +22 -0
  151. package/dist/components/Pagination/index.d.ts +1 -0
  152. package/dist/components/Popper/Popper.vue.d.ts +45 -0
  153. package/dist/components/Popper/index.d.ts +2 -0
  154. package/dist/components/Popper/types.d.ts +29 -0
  155. package/dist/components/PreventAutoComplete/PreventAutoComplete.vue.d.ts +24 -0
  156. package/dist/components/PreventAutoComplete/index.d.ts +1 -0
  157. package/dist/components/ProgressBar/ProgressBar.vue.d.ts +48 -0
  158. package/dist/components/ProgressBar/index.d.ts +2 -0
  159. package/dist/components/RadioButton/RadioButton.vue.d.ts +143 -0
  160. package/dist/components/RadioButton/RadioButtonControl.vue.d.ts +50 -0
  161. package/dist/components/RadioButton/index.d.ts +2 -0
  162. package/dist/components/RangeSlider/RangeSlider.vue.d.ts +303 -0
  163. package/dist/components/RangeSlider/index.d.ts +1 -0
  164. package/dist/components/Rating/Rating.vue.d.ts +20 -0
  165. package/dist/components/Rating/index.d.ts +2 -0
  166. package/dist/components/Rating/types.d.ts +78 -0
  167. package/dist/components/ResourceList/ResourceItem.vue.d.ts +17 -0
  168. package/dist/components/ResourceList/ResourceList.vue.d.ts +19 -0
  169. package/dist/components/ResourceList/index.d.ts +3 -0
  170. package/dist/components/ResourceList/types.d.ts +19 -0
  171. package/dist/components/SaveBar/SaveBar.vue.d.ts +15 -0
  172. package/dist/components/SaveBar/index.d.ts +4 -0
  173. package/dist/components/SaveBar/store.d.ts +56 -0
  174. package/dist/components/SaveBar/types.d.ts +42 -0
  175. package/dist/components/SaveBarController/SaveBarController.vue.d.ts +40 -0
  176. package/dist/components/SaveBarController/index.d.ts +1 -0
  177. package/dist/components/ScrollPane/ScrollPane.vue.d.ts +24 -0
  178. package/dist/components/ScrollPane/index.d.ts +2 -0
  179. package/dist/components/ScrollPane/types.d.ts +64 -0
  180. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +39 -0
  181. package/dist/components/SegmentedControl/index.d.ts +2 -0
  182. package/dist/components/SegmentedControl/types.d.ts +119 -0
  183. package/dist/components/Select/Select.vue.d.ts +901 -0
  184. package/dist/components/Select/index.d.ts +3 -0
  185. package/dist/components/Sheet/Sheet.vue.d.ts +41 -0
  186. package/dist/components/Sheet/index.d.ts +2 -0
  187. package/dist/components/Sheet/manager.d.ts +34 -0
  188. package/dist/components/Sheet/types.d.ts +92 -0
  189. package/dist/components/SkeletonBodyText/SkeletonBodyText.vue.d.ts +17 -0
  190. package/dist/components/SkeletonBodyText/index.d.ts +1 -0
  191. package/dist/components/SkeletonCard/SkeletonCard.vue.d.ts +34 -0
  192. package/dist/components/SkeletonCard/index.d.ts +1 -0
  193. package/dist/components/SkeletonDisplayText/SkeletonDisplayText.vue.d.ts +17 -0
  194. package/dist/components/SkeletonDisplayText/index.d.ts +1 -0
  195. package/dist/components/Spinner/Spinner.vue.d.ts +52 -0
  196. package/dist/components/Spinner/index.d.ts +1 -0
  197. package/dist/components/Splitter/Splitter.vue.d.ts +60 -0
  198. package/dist/components/Splitter/index.d.ts +2 -0
  199. package/dist/components/Splitter/types.d.ts +177 -0
  200. package/dist/components/Stack/Stack.vue.d.ts +130 -0
  201. package/dist/components/Stack/StackItem.vue.d.ts +23 -0
  202. package/dist/components/Stack/index.d.ts +2 -0
  203. package/dist/components/StatGroup/Stat.vue.d.ts +16 -0
  204. package/dist/components/StatGroup/StatGroup.vue.d.ts +17 -0
  205. package/dist/components/StatGroup/index.d.ts +3 -0
  206. package/dist/components/StatGroup/types.d.ts +42 -0
  207. package/dist/components/Sticky/Sticky.vue.d.ts +27 -0
  208. package/dist/components/Sticky/index.d.ts +2 -0
  209. package/dist/components/Sticky/types.d.ts +24 -0
  210. package/dist/components/SyntaxHighlighter/SyntaxHighlighter.vue.d.ts +12 -0
  211. package/dist/components/SyntaxHighlighter/index.d.ts +2 -0
  212. package/dist/components/SyntaxHighlighter/types.d.ts +10 -0
  213. package/dist/components/Tabs/Tabs.vue.d.ts +23 -0
  214. package/dist/components/Tabs/index.d.ts +2 -0
  215. package/dist/components/Tabs/types.d.ts +19 -0
  216. package/dist/components/Tag/Tag.vue.d.ts +29 -0
  217. package/dist/components/Tag/index.d.ts +1 -0
  218. package/dist/components/TextContainer/TextContainer.vue.d.ts +13 -0
  219. package/dist/components/TextContainer/index.d.ts +1 -0
  220. package/dist/components/TextField/TextField.vue.d.ts +38 -0
  221. package/dist/components/TextField/index.d.ts +2 -0
  222. package/dist/components/TextField/types.d.ts +130 -0
  223. package/dist/components/TextStyle/TextStyle.vue.d.ts +15 -0
  224. package/dist/components/TextStyle/index.d.ts +1 -0
  225. package/dist/components/Thumbnail/Thumbnail.vue.d.ts +17 -0
  226. package/dist/components/Thumbnail/index.d.ts +2 -0
  227. package/dist/components/Thumbnail/types.d.ts +32 -0
  228. package/dist/components/TimePicker/TimePicker.vue.d.ts +25 -0
  229. package/dist/components/TimePicker/index.d.ts +2 -0
  230. package/dist/components/TimePicker/types.d.ts +90 -0
  231. package/dist/components/TimezonePicker/TimezonePicker.vue.d.ts +15 -0
  232. package/dist/components/TimezonePicker/index.d.ts +2 -0
  233. package/dist/components/TimezonePicker/types.d.ts +50 -0
  234. package/dist/components/TimezonePicker/zoneCountries.d.ts +2 -0
  235. package/dist/components/ToastManager/ProgressBar.vue.d.ts +8 -0
  236. package/dist/components/ToastManager/Toast.vue.d.ts +14 -0
  237. package/dist/components/ToastManager/ToastManager.vue.d.ts +19 -0
  238. package/dist/components/ToastManager/host.d.ts +14 -0
  239. package/dist/components/ToastManager/index.d.ts +24 -0
  240. package/dist/components/ToastManager/manager.d.ts +45 -0
  241. package/dist/components/ToastManager/types.d.ts +44 -0
  242. package/dist/components/ToggleSwitch/ToggleSwitch.vue.d.ts +35 -0
  243. package/dist/components/ToggleSwitch/index.d.ts +2 -0
  244. package/dist/components/ToggleSwitch/types.d.ts +84 -0
  245. package/dist/components/Tooltip/Tooltip.vue.d.ts +20 -0
  246. package/dist/components/Tooltip/index.d.ts +1 -0
  247. package/dist/components/UiProvider/UiProvider.vue.d.ts +16 -0
  248. package/dist/components/UiProvider/index.d.ts +2 -0
  249. package/dist/components/UiProvider/types.d.ts +2 -0
  250. package/dist/components/UiProvider/utils.d.ts +5 -0
  251. package/dist/components/UnstyledLink/UnstyledLink.vue.d.ts +5 -0
  252. package/dist/components/UnstyledLink/index.d.ts +1 -0
  253. package/dist/components/all.d.ts +92 -0
  254. package/dist/components/types.d.ts +74 -0
  255. package/dist/globalExtensions.d.ts +7 -0
  256. package/dist/i18n/en.json.d.ts +60 -0
  257. package/dist/lib.d.ts +67 -0
  258. package/dist/lib.umd.d.ts +1 -0
  259. package/dist/style.css +2 -0
  260. package/dist/test/setup.d.ts +1 -0
  261. package/dist/ui.js +20051 -0
  262. package/dist/ui.umd.js +10 -0
  263. package/dist/utils/autoHost.d.ts +27 -0
  264. package/dist/utils/color.d.ts +112 -0
  265. package/dist/utils/colorRamp.d.ts +51 -0
  266. package/dist/utils/createTheme.d.ts +52 -0
  267. package/dist/utils/customTheme.d.ts +73 -0
  268. package/dist/utils/date.d.ts +4 -0
  269. package/dist/utils/debounce.d.ts +3 -0
  270. package/dist/utils/deferredPromise.d.ts +6 -0
  271. package/dist/utils/format.d.ts +9 -0
  272. package/dist/utils/fuzzy.d.ts +33 -0
  273. package/dist/utils/gradient.d.ts +83 -0
  274. package/dist/utils/index.d.ts +31 -0
  275. package/dist/utils/loader.d.ts +1 -0
  276. package/dist/utils/positionPanel.d.ts +32 -0
  277. package/dist/utils/radix.d.ts +6 -0
  278. package/dist/utils/theme.d.ts +42 -0
  279. package/dist/utils/timezone.d.ts +66 -0
  280. package/dist/utils/tokens.d.ts +62 -0
  281. package/dist/utils/translate.d.ts +27 -0
  282. package/dist/zoneCountries-CWZGMHyp.js +353 -0
  283. package/package.json +120 -0
@@ -0,0 +1,284 @@
1
+ import { PropType, VNode } from 'vue';
2
+ import { ActionColorType, ActionTooltipPositionType, ActionTypeType, IconBadgeStatusType, IconBadgeType } from '../types';
3
+ /**
4
+ * Buttons are used primarily for actions, such as “Add”, “Close”, “Cancel”, or
5
+ * “Save”. Plain buttons, which look similar to links, are used for less
6
+ * important or less commonly used actions, such as “view more details”.
7
+ */
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ /**
12
+ * The type of button:
13
+ *
14
+ * - default
15
+ * - primary - Extra visual weight and identifies the button as the
16
+ * primary action.
17
+ * - secondary - The tonal button: a tinted, borderless fill. Use where a
18
+ * button should read as a real action but not compete with the
19
+ * primary one.
20
+ * - destructive - Indicates a dangerous or potentially negative action.
21
+ * - outline - Gives the button a subtle alternative to the default button
22
+ * styling, appropriate for certain backdrops.
23
+ * - plain - A text button: normal button box, no fill or outline.
24
+ * - link - Hugs its content like an inline link — no button box at all —
25
+ * while still supporting icons, badges and the dropdown caret.
26
+ */
27
+ type: {
28
+ type: PropType<ActionTypeType>;
29
+ default: string;
30
+ };
31
+ /**
32
+ * An Iconify name (`mdi:plus`).
33
+ * @see [Icon](/#/Components/Icon) for more details.
34
+ */
35
+ icon: {
36
+ type: StringConstructor;
37
+ };
38
+ /**
39
+ * A badge to overlay on the button. Either:
40
+ *
41
+ * - a status — `badge="warning"` — drawn as a small glyph on the icon
42
+ * - some text — `badge="3"` — drawn as a pill on the top-right corner,
43
+ * coloured by `badgeStatus`
44
+ * - an object — `:badge="{ text: '3', status: 'error' }"` — for full
45
+ * control, including a custom `icon` or `color`
46
+ */
47
+ badge: {
48
+ type: PropType<string | number | IconBadgeType>;
49
+ };
50
+ /**
51
+ * Colours a text badge. Ignored when `badge` is given as an object.
52
+ */
53
+ badgeStatus: {
54
+ type: PropType<IconBadgeStatusType>;
55
+ };
56
+ /**
57
+ * Disables the button, preventing all interaction.
58
+ */
59
+ disabled: {
60
+ type: BooleanConstructor;
61
+ };
62
+ /**
63
+ * Tooltip to show when hovering the button.
64
+ */
65
+ tooltip: {
66
+ type: StringConstructor;
67
+ };
68
+ /**
69
+ * Tooltip position, "top", "bottom", "right" or "left".
70
+ */
71
+ tooltipPosition: {
72
+ type: PropType<ActionTooltipPositionType>;
73
+ default: string;
74
+ };
75
+ /**
76
+ * Shortcut to append a dropdown icon to the button.
77
+ */
78
+ dropdown: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ /**
83
+ * Allows the button to grow to the width of its container.
84
+ */
85
+ fullWidth: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ /**
90
+ * Changes the size of the button, giving it more or less paadding.
91
+ *
92
+ * Sizes:
93
+ *
94
+ * - small
95
+ * - medium
96
+ * - large
97
+ */
98
+ size: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ /**
103
+ * If provided the button will be rendered as a link and this value will be
104
+ * used as the href attribute.
105
+ */
106
+ url: {
107
+ type: StringConstructor;
108
+ };
109
+ /**
110
+ * When used with `url` it forces the link to open in a new tab.
111
+ */
112
+ external: {
113
+ type: BooleanConstructor;
114
+ };
115
+ /**
116
+ * This makes the button such that the color is applied to the text and outline instead of the body of the button.
117
+ */
118
+ invert: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ /**
123
+ * The colour role the button draws from, keeping its type's structure:
124
+ * `type="primary" color="secondary"` is a solid secondary fill,
125
+ * `type="secondary" color="tertiary"` a tonal tertiary,
126
+ * `type="outline" color="tertiary"` a tertiary-inked outline, and so on.
127
+ * TYPE sets the weight, COLOR sets the hue — the two never fight.
128
+ */
129
+ color: {
130
+ type: PropType<ActionColorType>;
131
+ };
132
+ /**
133
+ * Shorthand for `color="error"` — a dangerous or destructive action in
134
+ * whatever weight the type gives it. `type="destructive"` likewise remains
135
+ * the shorthand for the solid error fill.
136
+ */
137
+ destructive: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
142
+ [key: string]: any;
143
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
144
+ /**
145
+ * The type of button:
146
+ *
147
+ * - default
148
+ * - primary - Extra visual weight and identifies the button as the
149
+ * primary action.
150
+ * - secondary - The tonal button: a tinted, borderless fill. Use where a
151
+ * button should read as a real action but not compete with the
152
+ * primary one.
153
+ * - destructive - Indicates a dangerous or potentially negative action.
154
+ * - outline - Gives the button a subtle alternative to the default button
155
+ * styling, appropriate for certain backdrops.
156
+ * - plain - A text button: normal button box, no fill or outline.
157
+ * - link - Hugs its content like an inline link — no button box at all —
158
+ * while still supporting icons, badges and the dropdown caret.
159
+ */
160
+ type: {
161
+ type: PropType<ActionTypeType>;
162
+ default: string;
163
+ };
164
+ /**
165
+ * An Iconify name (`mdi:plus`).
166
+ * @see [Icon](/#/Components/Icon) for more details.
167
+ */
168
+ icon: {
169
+ type: StringConstructor;
170
+ };
171
+ /**
172
+ * A badge to overlay on the button. Either:
173
+ *
174
+ * - a status — `badge="warning"` — drawn as a small glyph on the icon
175
+ * - some text — `badge="3"` — drawn as a pill on the top-right corner,
176
+ * coloured by `badgeStatus`
177
+ * - an object — `:badge="{ text: '3', status: 'error' }"` — for full
178
+ * control, including a custom `icon` or `color`
179
+ */
180
+ badge: {
181
+ type: PropType<string | number | IconBadgeType>;
182
+ };
183
+ /**
184
+ * Colours a text badge. Ignored when `badge` is given as an object.
185
+ */
186
+ badgeStatus: {
187
+ type: PropType<IconBadgeStatusType>;
188
+ };
189
+ /**
190
+ * Disables the button, preventing all interaction.
191
+ */
192
+ disabled: {
193
+ type: BooleanConstructor;
194
+ };
195
+ /**
196
+ * Tooltip to show when hovering the button.
197
+ */
198
+ tooltip: {
199
+ type: StringConstructor;
200
+ };
201
+ /**
202
+ * Tooltip position, "top", "bottom", "right" or "left".
203
+ */
204
+ tooltipPosition: {
205
+ type: PropType<ActionTooltipPositionType>;
206
+ default: string;
207
+ };
208
+ /**
209
+ * Shortcut to append a dropdown icon to the button.
210
+ */
211
+ dropdown: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ /**
216
+ * Allows the button to grow to the width of its container.
217
+ */
218
+ fullWidth: {
219
+ type: BooleanConstructor;
220
+ default: boolean;
221
+ };
222
+ /**
223
+ * Changes the size of the button, giving it more or less paadding.
224
+ *
225
+ * Sizes:
226
+ *
227
+ * - small
228
+ * - medium
229
+ * - large
230
+ */
231
+ size: {
232
+ type: StringConstructor;
233
+ default: string;
234
+ };
235
+ /**
236
+ * If provided the button will be rendered as a link and this value will be
237
+ * used as the href attribute.
238
+ */
239
+ url: {
240
+ type: StringConstructor;
241
+ };
242
+ /**
243
+ * When used with `url` it forces the link to open in a new tab.
244
+ */
245
+ external: {
246
+ type: BooleanConstructor;
247
+ };
248
+ /**
249
+ * This makes the button such that the color is applied to the text and outline instead of the body of the button.
250
+ */
251
+ invert: {
252
+ type: BooleanConstructor;
253
+ default: boolean;
254
+ };
255
+ /**
256
+ * The colour role the button draws from, keeping its type's structure:
257
+ * `type="primary" color="secondary"` is a solid secondary fill,
258
+ * `type="secondary" color="tertiary"` a tonal tertiary,
259
+ * `type="outline" color="tertiary"` a tertiary-inked outline, and so on.
260
+ * TYPE sets the weight, COLOR sets the hue — the two never fight.
261
+ */
262
+ color: {
263
+ type: PropType<ActionColorType>;
264
+ };
265
+ /**
266
+ * Shorthand for `color="error"` — a dangerous or destructive action in
267
+ * whatever weight the type gives it. `type="destructive"` likewise remains
268
+ * the shorthand for the solid error fill.
269
+ */
270
+ destructive: {
271
+ type: BooleanConstructor;
272
+ default: boolean;
273
+ };
274
+ }>> & Readonly<{}>, {
275
+ disabled: boolean;
276
+ size: string;
277
+ type: ActionTypeType;
278
+ destructive: boolean;
279
+ tooltipPosition: ActionTooltipPositionType;
280
+ external: boolean;
281
+ dropdown: boolean;
282
+ fullWidth: boolean;
283
+ invert: boolean;
284
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Button group displays multiple related actions stacked or in a horizontal row
3
+ * to help with arrangement and spacing.
4
+ */
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ /**
9
+ * Join buttons as segmented group.
10
+ */
11
+ segmented: {
12
+ type: BooleanConstructor;
13
+ };
14
+ /**
15
+ * Renders the background area of the button group to visually connect the
16
+ * gaps between buttons. To be used in conjunction with the `segmented`
17
+ * option.
18
+ */
19
+ fill: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
24
+ [key: string]: any;
25
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
+ /**
27
+ * Join buttons as segmented group.
28
+ */
29
+ segmented: {
30
+ type: BooleanConstructor;
31
+ };
32
+ /**
33
+ * Renders the background area of the button group to visually connect the
34
+ * gaps between buttons. To be used in conjunction with the `segmented`
35
+ * option.
36
+ */
37
+ fill: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ }>> & Readonly<{}>, {
42
+ fill: boolean;
43
+ segmented: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,5 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
4
+ [key: string]: any;
5
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,3 @@
1
+ export { default as Button } from './Button.vue';
2
+ export { default as ButtonGroup } from './ButtonGroup.vue';
3
+ export { default as ButtonGroupItem } from './ButtonGroupItem.vue';
@@ -0,0 +1,15 @@
1
+ import { CalendarProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<CalendarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ close: () => any;
4
+ "update:modelValue": (v: string) => any;
5
+ }, string, import('vue').PublicProps, Readonly<CalendarProps> & Readonly<{
6
+ onClose?: (() => any) | undefined;
7
+ "onUpdate:modelValue"?: ((v: string) => any) | undefined;
8
+ }>, {
9
+ type: "datetime" | "date" | "month" | "year";
10
+ modelFormat: string;
11
+ minTime: string;
12
+ maxTime: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Calendar } from './Calendar.vue';
2
+ export * from './types';
@@ -0,0 +1,39 @@
1
+ import { Dayjs } from 'dayjs';
2
+ export interface CalendarCellType {
3
+ value: string;
4
+ label?: string;
5
+ isSelected?: boolean;
6
+ isCurrent?: boolean;
7
+ isOtherPeriod?: boolean;
8
+ isDisabled?: boolean;
9
+ }
10
+ export interface CalendarProps {
11
+ /**
12
+ * The type of picker:
13
+ */
14
+ type?: 'datetime' | 'date' | 'month' | 'year';
15
+ /**
16
+ * The model date value formatted according to `modelFormat`. Parts of the
17
+ * date may be truncated depending on the `type` being used.
18
+ */
19
+ modelValue?: string;
20
+ /**
21
+ * Format of the underling value.
22
+ *
23
+ * @see https://day.js.org/docs/en/display/format
24
+ */
25
+ modelFormat?: string;
26
+ /**
27
+ * Provide a filter function to disable specific dates. The function is
28
+ * passed a Dayjs instance.
29
+ */
30
+ disableDate?: (d: Dayjs) => boolean;
31
+ /**
32
+ * Restricts the minimum time that can be selected.
33
+ */
34
+ minTime?: string;
35
+ /**
36
+ * Restricts the maximum time that can be selected.
37
+ */
38
+ maxTime?: string;
39
+ }
@@ -0,0 +1,21 @@
1
+ import { CalendarHeatmapProps, CalendarHeatmapSeries } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<CalendarHeatmapProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CalendarHeatmapProps> & Readonly<{}>, {
3
+ data: import('./types').CalendarHeatmapDataPoint[];
4
+ tooltip: boolean;
5
+ series: CalendarHeatmapSeries[];
6
+ weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
7
+ emptyColor: string;
8
+ cellSize: number;
9
+ cellGap: number;
10
+ contiguousHover: boolean;
11
+ cellRadius: number;
12
+ dividerColor: string;
13
+ showMonths: boolean;
14
+ monthLabels: "all" | "range";
15
+ monthSeparators: boolean;
16
+ monthSeparatorColor: string;
17
+ showWeekdays: boolean;
18
+ showLegend: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as CalendarHeatmap } from './CalendarHeatmap.vue';
2
+ export { type CalendarHeatmapProps, type CalendarHeatmapSeries, type CalendarHeatmapDataPoint } from './types';
@@ -0,0 +1,168 @@
1
+ /**
2
+ * A single colour ramp / metric shown on the heat map. Up to four series can
3
+ * share one calendar, with each cell divided by series count: 2 → diagonal
4
+ * split, 3 → vertical stripes, 4 → 2×2 quadrants.
5
+ */
6
+ export interface CalendarHeatmapSeries {
7
+ /**
8
+ * Key used to look up this series' value in each data point's `values`.
9
+ */
10
+ key: string;
11
+ /**
12
+ * Human-readable name shown in the legend and tooltip.
13
+ */
14
+ label?: string;
15
+ /**
16
+ * The colour ramp from lowest to highest intensity, e.g.
17
+ * `['#c6e48b', '#7bc96f', '#239a3b', '#196127']`.
18
+ */
19
+ colors: string[];
20
+ /**
21
+ * Bucket boundaries used to map a value to a colour. Should be one shorter
22
+ * than `colors` — a value `<= thresholds[i]` uses `colors[i]`, anything above
23
+ * the last threshold uses the last colour. When omitted, thresholds are
24
+ * derived evenly from the maximum value in the data.
25
+ */
26
+ thresholds?: number[];
27
+ }
28
+ /**
29
+ * One day of data.
30
+ */
31
+ export interface CalendarHeatmapDataPoint {
32
+ /**
33
+ * The day this point represents, as `YYYY-MM-DD`.
34
+ */
35
+ date: string;
36
+ /**
37
+ * Value per series, keyed by `CalendarHeatmapSeries.key`. Missing or `<= 0` values
38
+ * render as empty.
39
+ */
40
+ values?: Record<string, number>;
41
+ /**
42
+ * Convenience shorthand for single-series heat maps — used as the value for
43
+ * the first series when `values` is not provided.
44
+ */
45
+ value?: number;
46
+ }
47
+ export interface CalendarHeatmapProps {
48
+ /**
49
+ * Label to display above the heat map.
50
+ */
51
+ label?: string | false;
52
+ /**
53
+ * Error text to show below the control.
54
+ */
55
+ error?: string | false | null;
56
+ /**
57
+ * Help text to show below the control.
58
+ */
59
+ helpText?: string | false;
60
+ /**
61
+ * Renders help text as raw HTML. Use with caution.
62
+ */
63
+ helpTextHtml?: string | false;
64
+ /**
65
+ * Renders a help icon next to the label which links to an external page.
66
+ */
67
+ helpLink?: string | false;
68
+ /**
69
+ * The data to plot, one entry per day.
70
+ *
71
+ * Defaults to empty, which draws the calendar grid in `emptyColor` — the
72
+ * right thing to show while a fetch is in flight, and better than an error.
73
+ */
74
+ data?: CalendarHeatmapDataPoint[];
75
+ /**
76
+ * One to four colour ramps / metrics to display. Each cell is divided by the
77
+ * number of series: 2 → diagonal split, 3 → vertical stripes, 4 → 2×2
78
+ * quadrants. Beyond four, the first four are used.
79
+ *
80
+ * Defaults to empty, which draws an empty grid.
81
+ */
82
+ series?: CalendarHeatmapSeries[];
83
+ /**
84
+ * First day to show, as `YYYY-MM-DD`. Defaults to one year before `endDate`.
85
+ */
86
+ startDate?: string;
87
+ /**
88
+ * Last day to show, as `YYYY-MM-DD`. Defaults to the latest date in `data`,
89
+ * or today.
90
+ */
91
+ endDate?: string;
92
+ /**
93
+ * Day the week starts on — `0` Sunday (default) through `6` Saturday.
94
+ */
95
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
96
+ /**
97
+ * Colour used for days with no value.
98
+ */
99
+ emptyColor?: string;
100
+ /**
101
+ * Width / height of each cell in px.
102
+ */
103
+ cellSize?: number;
104
+ /**
105
+ * Gap between cells in px. Set to `0` for a solid grid with no gaps at all.
106
+ */
107
+ cellGap?: number;
108
+ /**
109
+ * Whether each cell's hover / tooltip target extends halfway into the
110
+ * surrounding gap, so the targets tile with no dead space between them.
111
+ * Defaults to `true`.
112
+ *
113
+ * The cells still *look* the same — only the hit area grows. Without this,
114
+ * dragging the pointer across the calendar makes the tooltip flicker off
115
+ * every time it crosses a gap, which is the more annoying default.
116
+ *
117
+ * Has no effect when `cellGap` is `0`.
118
+ */
119
+ contiguousHover?: boolean;
120
+ /**
121
+ * Corner radius of each cell in px.
122
+ */
123
+ cellRadius?: number;
124
+ /**
125
+ * Colour of the thin divider line between the two triangles when two series
126
+ * are shown.
127
+ */
128
+ dividerColor?: string;
129
+ /**
130
+ * Show the month labels along the top.
131
+ */
132
+ showMonths?: boolean;
133
+ /**
134
+ * How the top labels are displayed when `showMonths` is on.
135
+ *
136
+ * - `"all"` — a label above each month (default)
137
+ * - `"range"` — only the start and end month / year, at each end
138
+ */
139
+ monthLabels?: 'all' | 'range';
140
+ /**
141
+ * Draw a thin vertical separator line between months.
142
+ */
143
+ monthSeparators?: boolean;
144
+ /**
145
+ * Colour of the month separator lines.
146
+ */
147
+ monthSeparatorColor?: string;
148
+ /**
149
+ * Show the weekday labels down the left.
150
+ */
151
+ showWeekdays?: boolean;
152
+ /**
153
+ * Show the legend(s) below the grid.
154
+ */
155
+ showLegend?: boolean;
156
+ /**
157
+ * Show a tooltip on each cell (via the global `data-ui-tooltip` style).
158
+ */
159
+ tooltip?: boolean;
160
+ /**
161
+ * Build the tooltip text for a day. Receives the date and the resolved values
162
+ * for every series.
163
+ */
164
+ tooltipFormatter?: (args: {
165
+ date: string;
166
+ values: Record<string, number>;
167
+ }) => string;
168
+ }
@@ -0,0 +1,5 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
4
+ [key: string]: any;
5
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export { default as Caption } from './Caption.vue';
@@ -0,0 +1,82 @@
1
+ import { PropType } from 'vue';
2
+ import { ActionType } from '../types';
3
+ /**
4
+ * Cards are used to group similar concepts and tasks together to make screens
5
+ * easier for users to scan, read, and get things done.
6
+ *
7
+ * @requires ./CardSection.vue
8
+ */
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ /**
13
+ * The title heading of the card.
14
+ */
15
+ title: {
16
+ type: StringConstructor;
17
+ };
18
+ /**
19
+ * An array of action objects:
20
+ *
21
+ * ```ts
22
+ * interface Action {
23
+ * label: string
24
+ * icon: string
25
+ * disabled: boolean
26
+ * url: string
27
+ * external: boolean
28
+ * onAction(): void
29
+ * }
30
+ * ```
31
+ */
32
+ actions: {
33
+ type: PropType<ActionType[]>;
34
+ };
35
+ collapseActions: {
36
+ type: BooleanConstructor;
37
+ };
38
+ /**
39
+ * Renders the card with a subtle background color.
40
+ */
41
+ subdued: {
42
+ type: BooleanConstructor;
43
+ };
44
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
45
+ [key: string]: any;
46
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
47
+ /**
48
+ * The title heading of the card.
49
+ */
50
+ title: {
51
+ type: StringConstructor;
52
+ };
53
+ /**
54
+ * An array of action objects:
55
+ *
56
+ * ```ts
57
+ * interface Action {
58
+ * label: string
59
+ * icon: string
60
+ * disabled: boolean
61
+ * url: string
62
+ * external: boolean
63
+ * onAction(): void
64
+ * }
65
+ * ```
66
+ */
67
+ actions: {
68
+ type: PropType<ActionType[]>;
69
+ };
70
+ collapseActions: {
71
+ type: BooleanConstructor;
72
+ };
73
+ /**
74
+ * Renders the card with a subtle background color.
75
+ */
76
+ subdued: {
77
+ type: BooleanConstructor;
78
+ };
79
+ }>> & Readonly<{}>, {
80
+ subdued: boolean;
81
+ collapseActions: boolean;
82
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;