@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,89 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ /**
5
+ * The title heading of the section.
6
+ */
7
+ title: {
8
+ type: StringConstructor;
9
+ };
10
+ /**
11
+ * Renders the section with a subtle background color.
12
+ */
13
+ subdued: {
14
+ type: BooleanConstructor;
15
+ };
16
+ /**
17
+ * An array of action objects:
18
+ *
19
+ * ```ts
20
+ * interface Action {
21
+ * label: string
22
+ * icon: string
23
+ * disabled: boolean
24
+ * url: string
25
+ * external: boolean
26
+ * onAction(): void
27
+ * }
28
+ * ```
29
+ */
30
+ actions: {
31
+ type: ArrayConstructor;
32
+ };
33
+ collapseActions: {
34
+ type: BooleanConstructor;
35
+ };
36
+ /**
37
+ * By default padding is included in the section. Use this to disable it.
38
+ */
39
+ padded: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
44
+ [key: string]: any;
45
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
46
+ /**
47
+ * The title heading of the section.
48
+ */
49
+ title: {
50
+ type: StringConstructor;
51
+ };
52
+ /**
53
+ * Renders the section with a subtle background color.
54
+ */
55
+ subdued: {
56
+ type: BooleanConstructor;
57
+ };
58
+ /**
59
+ * An array of action objects:
60
+ *
61
+ * ```ts
62
+ * interface Action {
63
+ * label: string
64
+ * icon: string
65
+ * disabled: boolean
66
+ * url: string
67
+ * external: boolean
68
+ * onAction(): void
69
+ * }
70
+ * ```
71
+ */
72
+ actions: {
73
+ type: ArrayConstructor;
74
+ };
75
+ collapseActions: {
76
+ type: BooleanConstructor;
77
+ };
78
+ /**
79
+ * By default padding is included in the section. Use this to disable it.
80
+ */
81
+ padded: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ }>> & Readonly<{}>, {
86
+ subdued: boolean;
87
+ collapseActions: boolean;
88
+ padded: boolean;
89
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,2 @@
1
+ export { default as Card } from './Card.vue';
2
+ export { default as CardSection } from './CardSection.vue';
@@ -0,0 +1,4 @@
1
+ import { VNode } from 'vue';
2
+ export declare function renderHeader(data: any, $styles: Record<string, string>, scopedSlots?: any): VNode<import('vue').RendererNode, import('vue').RendererElement, {
3
+ [key: string]: any;
4
+ }> | undefined;
@@ -0,0 +1,171 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ label: {
6
+ type: PropType<string | false | null>;
7
+ };
8
+ error: {
9
+ type: PropType<string | false | null>;
10
+ };
11
+ helpText: {
12
+ type: PropType<string | false | null>;
13
+ required: false;
14
+ };
15
+ /**
16
+ * Renders a help icon next to the label which links to an external page.
17
+ */
18
+ helpLink: {
19
+ type: PropType<string | false | null>;
20
+ required: false;
21
+ };
22
+ name: {
23
+ type: StringConstructor;
24
+ };
25
+ /**
26
+ * The bound value / v-model.
27
+ */
28
+ modelValue: {
29
+ type: null;
30
+ };
31
+ /**
32
+ * The model value to use when checked.
33
+ */
34
+ trueValue: {
35
+ type: null;
36
+ default: boolean;
37
+ };
38
+ /**
39
+ * The model value to use when not checked.
40
+ */
41
+ falseValue: {
42
+ type: null;
43
+ default: boolean;
44
+ };
45
+ /**
46
+ * When `true` the checkbox will be checked. This is an alternative
47
+ * to assigning `value` to be `trueValue`.
48
+ */
49
+ checked: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ /**
54
+ * Renders the checkbox in the indeterminate state.
55
+ */
56
+ indeterminate: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ disabled: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ readonly: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ /**
69
+ * Tooltip to show when hovering the button.
70
+ */
71
+ tooltip: {
72
+ type: StringConstructor;
73
+ };
74
+ /**
75
+ * Tooltip position, "top", "bottom", "right" or "left".
76
+ */
77
+ tooltipPosition: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
82
+ [key: string]: any;
83
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
84
+ label: {
85
+ type: PropType<string | false | null>;
86
+ };
87
+ error: {
88
+ type: PropType<string | false | null>;
89
+ };
90
+ helpText: {
91
+ type: PropType<string | false | null>;
92
+ required: false;
93
+ };
94
+ /**
95
+ * Renders a help icon next to the label which links to an external page.
96
+ */
97
+ helpLink: {
98
+ type: PropType<string | false | null>;
99
+ required: false;
100
+ };
101
+ name: {
102
+ type: StringConstructor;
103
+ };
104
+ /**
105
+ * The bound value / v-model.
106
+ */
107
+ modelValue: {
108
+ type: null;
109
+ };
110
+ /**
111
+ * The model value to use when checked.
112
+ */
113
+ trueValue: {
114
+ type: null;
115
+ default: boolean;
116
+ };
117
+ /**
118
+ * The model value to use when not checked.
119
+ */
120
+ falseValue: {
121
+ type: null;
122
+ default: boolean;
123
+ };
124
+ /**
125
+ * When `true` the checkbox will be checked. This is an alternative
126
+ * to assigning `value` to be `trueValue`.
127
+ */
128
+ checked: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ /**
133
+ * Renders the checkbox in the indeterminate state.
134
+ */
135
+ indeterminate: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
139
+ disabled: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ readonly: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
147
+ /**
148
+ * Tooltip to show when hovering the button.
149
+ */
150
+ tooltip: {
151
+ type: StringConstructor;
152
+ };
153
+ /**
154
+ * Tooltip position, "top", "bottom", "right" or "left".
155
+ */
156
+ tooltipPosition: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
160
+ }>> & Readonly<{
161
+ onChange?: ((...args: any[]) => any) | undefined;
162
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
163
+ }>, {
164
+ disabled: boolean;
165
+ tooltipPosition: string;
166
+ readonly: boolean;
167
+ checked: boolean;
168
+ indeterminate: boolean;
169
+ trueValue: any;
170
+ falseValue: any;
171
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,59 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ name: {
5
+ type: StringConstructor;
6
+ };
7
+ checked: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ disabled: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ readonly: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ error: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ indeterminate: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
28
+ [key: string]: any;
29
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
+ name: {
31
+ type: StringConstructor;
32
+ };
33
+ checked: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ disabled: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ readonly: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ error: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ indeterminate: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ }>> & Readonly<{}>, {
54
+ disabled: boolean;
55
+ error: boolean;
56
+ readonly: boolean;
57
+ checked: boolean;
58
+ indeterminate: boolean;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,2 @@
1
+ export { default as Checkbox } from './Checkbox.vue';
2
+ export { default as CheckboxControl } from './CheckboxControl.vue';
@@ -0,0 +1,102 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ label: {
6
+ type: PropType<string | false | null>;
7
+ };
8
+ helpText: {
9
+ type: PropType<string | false | null>;
10
+ };
11
+ /**
12
+ * Renders a help icon next to the label which links to an external page.
13
+ */
14
+ helpLink: {
15
+ type: PropType<string | false | null>;
16
+ };
17
+ error: {
18
+ type: PropType<string | false | null>;
19
+ };
20
+ type: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ disabled: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ readonly: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ value: {
33
+ type: null;
34
+ default: undefined;
35
+ };
36
+ /**
37
+ * Tooltip to show when hovering the button.
38
+ */
39
+ tooltip: {
40
+ type: StringConstructor;
41
+ };
42
+ /**
43
+ * Tooltip position, "top", "bottom", "right" or "left".
44
+ */
45
+ tooltipPosition: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
50
+ [key: string]: any;
51
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
52
+ label: {
53
+ type: PropType<string | false | null>;
54
+ };
55
+ helpText: {
56
+ type: PropType<string | false | null>;
57
+ };
58
+ /**
59
+ * Renders a help icon next to the label which links to an external page.
60
+ */
61
+ helpLink: {
62
+ type: PropType<string | false | null>;
63
+ };
64
+ error: {
65
+ type: PropType<string | false | null>;
66
+ };
67
+ type: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ disabled: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ readonly: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ value: {
80
+ type: null;
81
+ default: undefined;
82
+ };
83
+ /**
84
+ * Tooltip to show when hovering the button.
85
+ */
86
+ tooltip: {
87
+ type: StringConstructor;
88
+ };
89
+ /**
90
+ * Tooltip position, "top", "bottom", "right" or "left".
91
+ */
92
+ tooltipPosition: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ }>> & Readonly<{}>, {
97
+ disabled: boolean;
98
+ type: string;
99
+ tooltipPosition: string;
100
+ value: any;
101
+ readonly: boolean;
102
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export { default as Choice } from './Choice.vue';
@@ -0,0 +1,199 @@
1
+ import { PropType } from 'vue';
2
+ import { ChoiceListAppearanceType, ChoiceListOptionType } from './types';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ label: {
7
+ type: PropType<string | false | null>;
8
+ };
9
+ error: {
10
+ type: PropType<string | false | null>;
11
+ };
12
+ helpText: {
13
+ type: PropType<string | false | null>;
14
+ };
15
+ /**
16
+ * Renders a help icon next to the label which links to an external page.
17
+ */
18
+ helpLink: {
19
+ type: StringConstructor;
20
+ };
21
+ /**
22
+ * The choices to render. See `ChoiceListOptionType`, which is exported.
23
+ *
24
+ * ```ts
25
+ * interface ChoiceListOptionType {
26
+ * label: string
27
+ * value: any
28
+ * helpText?: string
29
+ * helpLink?: string
30
+ * disabled?: boolean
31
+ * readonly?: boolean
32
+ * // shown only while this choice is selected
33
+ * revealedContent?: string | VNode
34
+ * }
35
+ * ```
36
+ */
37
+ options: {
38
+ type: PropType<ChoiceListOptionType[]>;
39
+ default: () => never[];
40
+ };
41
+ /**
42
+ * How the choices are drawn.
43
+ *
44
+ * - `list` — one control per line, which is what most questions want.
45
+ * - `segmented` — a joined row of segments, for two to five short labels
46
+ * where showing them all at once is worth the width.
47
+ *
48
+ * `segmented` is the same radio group underneath, so the model and the
49
+ * events are unchanged. It has no room for `helpLink` or per-choice
50
+ * `readonly`, and per-choice `helpText` becomes a tooltip. For icons in
51
+ * the segments, reach for `SegmentedControl` directly.
52
+ */
53
+ appearance: {
54
+ type: PropType<ChoiceListAppearanceType>;
55
+ default: string;
56
+ };
57
+ /**
58
+ * If `true`, renders using a list of checkboxes and expects `value` to
59
+ * be an array.
60
+ *
61
+ * Ignored by `appearance="segmented"`, which is a radio group and can only
62
+ * hold one answer — it falls back to the list and warns.
63
+ */
64
+ multiple: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ /**
69
+ * The `name` shared by the radios this renders, so they behave as one
70
+ * group. Generated when unset; only worth setting to submit the value with
71
+ * a plain HTML form. Unused by `multiple`, whose checkboxes are unrelated
72
+ * to each other.
73
+ */
74
+ name: {
75
+ type: StringConstructor;
76
+ };
77
+ /**
78
+ * Disable all the options.
79
+ */
80
+ disabled: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ /**
85
+ * Makes all options readonly.
86
+ */
87
+ readonly: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ /**
92
+ * An array if using `multiple`, otherwise any value.
93
+ */
94
+ modelValue: {
95
+ type: null;
96
+ };
97
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
98
+ [key: string]: any;
99
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
100
+ label: {
101
+ type: PropType<string | false | null>;
102
+ };
103
+ error: {
104
+ type: PropType<string | false | null>;
105
+ };
106
+ helpText: {
107
+ type: PropType<string | false | null>;
108
+ };
109
+ /**
110
+ * Renders a help icon next to the label which links to an external page.
111
+ */
112
+ helpLink: {
113
+ type: StringConstructor;
114
+ };
115
+ /**
116
+ * The choices to render. See `ChoiceListOptionType`, which is exported.
117
+ *
118
+ * ```ts
119
+ * interface ChoiceListOptionType {
120
+ * label: string
121
+ * value: any
122
+ * helpText?: string
123
+ * helpLink?: string
124
+ * disabled?: boolean
125
+ * readonly?: boolean
126
+ * // shown only while this choice is selected
127
+ * revealedContent?: string | VNode
128
+ * }
129
+ * ```
130
+ */
131
+ options: {
132
+ type: PropType<ChoiceListOptionType[]>;
133
+ default: () => never[];
134
+ };
135
+ /**
136
+ * How the choices are drawn.
137
+ *
138
+ * - `list` — one control per line, which is what most questions want.
139
+ * - `segmented` — a joined row of segments, for two to five short labels
140
+ * where showing them all at once is worth the width.
141
+ *
142
+ * `segmented` is the same radio group underneath, so the model and the
143
+ * events are unchanged. It has no room for `helpLink` or per-choice
144
+ * `readonly`, and per-choice `helpText` becomes a tooltip. For icons in
145
+ * the segments, reach for `SegmentedControl` directly.
146
+ */
147
+ appearance: {
148
+ type: PropType<ChoiceListAppearanceType>;
149
+ default: string;
150
+ };
151
+ /**
152
+ * If `true`, renders using a list of checkboxes and expects `value` to
153
+ * be an array.
154
+ *
155
+ * Ignored by `appearance="segmented"`, which is a radio group and can only
156
+ * hold one answer — it falls back to the list and warns.
157
+ */
158
+ multiple: {
159
+ type: BooleanConstructor;
160
+ default: boolean;
161
+ };
162
+ /**
163
+ * The `name` shared by the radios this renders, so they behave as one
164
+ * group. Generated when unset; only worth setting to submit the value with
165
+ * a plain HTML form. Unused by `multiple`, whose checkboxes are unrelated
166
+ * to each other.
167
+ */
168
+ name: {
169
+ type: StringConstructor;
170
+ };
171
+ /**
172
+ * Disable all the options.
173
+ */
174
+ disabled: {
175
+ type: BooleanConstructor;
176
+ default: boolean;
177
+ };
178
+ /**
179
+ * Makes all options readonly.
180
+ */
181
+ readonly: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ /**
186
+ * An array if using `multiple`, otherwise any value.
187
+ */
188
+ modelValue: {
189
+ type: null;
190
+ };
191
+ }>> & Readonly<{
192
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
193
+ }>, {
194
+ disabled: boolean;
195
+ readonly: boolean;
196
+ multiple: boolean;
197
+ options: ChoiceListOptionType[];
198
+ appearance: ChoiceListAppearanceType;
199
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,2 @@
1
+ export { default as ChoiceList } from './ChoiceList.vue';
2
+ export * from './types';
@@ -0,0 +1,31 @@
1
+ import { VNode } from 'vue';
2
+ /**
3
+ * How a `ChoiceList` draws its choices — one per line, or joined into a row of
4
+ * segments. Both are the same radio group underneath.
5
+ */
6
+ export type ChoiceListAppearanceType = 'list' | 'segmented';
7
+ /**
8
+ * One choice in a `ChoiceList`.
9
+ */
10
+ export interface ChoiceListOptionType {
11
+ label: string;
12
+ value: any;
13
+ /**
14
+ * Secondary text shown beneath the label, always visible.
15
+ */
16
+ helpText?: string;
17
+ /**
18
+ * Renders a help icon next to the label which links to an external page.
19
+ */
20
+ helpLink?: string;
21
+ disabled?: boolean;
22
+ readonly?: boolean;
23
+ /**
24
+ * Extra content revealed beneath this choice **only while it is selected** —
25
+ * the follow-up question a choice opens up ("Other: ___", a date range once
26
+ * "Scheduled" is picked). Not a description; that is `helpText`.
27
+ *
28
+ * A string, or a VNode for anything richer.
29
+ */
30
+ revealedContent?: string | VNode;
31
+ }
@@ -0,0 +1,18 @@
1
+ import { ColorPickerProps } from './types';
2
+ declare function commit(): void;
3
+ declare const __VLS_export: import('vue').DefineComponent<ColorPickerProps, {
4
+ commit: typeof commit;
5
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: string) => any;
7
+ }, string, import('vue').PublicProps, Readonly<ColorPickerProps> & Readonly<{
8
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
9
+ }>, {
10
+ disabled: boolean;
11
+ alpha: boolean;
12
+ swatchShape: import('./types').ColorSwatchShape;
13
+ eyedropper: boolean;
14
+ systemPicker: boolean;
15
+ hideInput: boolean;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as ColorPicker } from './ColorPicker.vue';
2
+ export { type ColorPickerProps, type ColorSwatchShape } from './types';