@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,3 @@
1
+ export { default as Select } from './Select.vue';
2
+ export { type SelectOptionType } from './Select.vue';
3
+ export { type SelectOptionGroupType } from './Select.vue';
@@ -0,0 +1,41 @@
1
+ import { SheetProps } from './types';
2
+ declare var __VLS_7: {}, __VLS_38: {}, __VLS_60: {};
3
+ type __VLS_Slots = {} & {
4
+ external?: (props: typeof __VLS_7) => any;
5
+ } & {
6
+ actions?: (props: typeof __VLS_38) => any;
7
+ } & {
8
+ default?: (props: typeof __VLS_60) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<SheetProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ close: () => any;
12
+ update: (v: boolean) => any;
13
+ "before-open": () => any;
14
+ "after-open": () => any;
15
+ "before-close": () => any;
16
+ "after-close": () => any;
17
+ }, string, import('vue').PublicProps, Readonly<SheetProps> & Readonly<{
18
+ onClose?: (() => any) | undefined;
19
+ onUpdate?: ((v: boolean) => any) | undefined;
20
+ "onBefore-open"?: (() => any) | undefined;
21
+ "onAfter-open"?: (() => any) | undefined;
22
+ "onBefore-close"?: (() => any) | undefined;
23
+ "onAfter-close"?: (() => any) | undefined;
24
+ }>, {
25
+ visible: boolean;
26
+ size: number;
27
+ loading: boolean;
28
+ peek: number;
29
+ edge: import('./types').SheetEdgeType;
30
+ animateInDuration: number;
31
+ animateOutDuration: number;
32
+ minIndex: number;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Sheet } from './Sheet.vue';
2
+ export * from './types';
@@ -0,0 +1,34 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * TODO: This used to be accomplished by passing around the
4
+ * actual Vue component instance, but I thought this could make
5
+ * more sense and maybe be simpler?
6
+ *
7
+ * The manager is deliberately axis-agnostic: `peek` and `offset` are distances
8
+ * along whichever axis the sheet slides on, and each sheet turns its own offset
9
+ * into a transform. That is what lets a top sheet and a right sheet share one
10
+ * stack.
11
+ */
12
+ export declare class SheetInstance {
13
+ isActive: Ref<boolean>;
14
+ /** How much of this sheet stays visible when it is covered by another. */
15
+ peek: number;
16
+ /** Distance this sheet is pushed toward the centre while in the background. */
17
+ offset: Ref<number>;
18
+ index: Ref<number>;
19
+ constructor(opts: {
20
+ isActive: Ref<boolean>;
21
+ peek: number;
22
+ offset: Ref<number>;
23
+ index: Ref<number>;
24
+ });
25
+ }
26
+ export declare function createSheetManager(): {
27
+ stack: SheetInstance[];
28
+ add(vm: SheetInstance): void;
29
+ beforeRemove(vm: SheetInstance): void;
30
+ remove(vm: SheetInstance): void;
31
+ getNextZIndex(): number;
32
+ handleOverflow(): void;
33
+ setOverflowClass(name: string): void;
34
+ };
@@ -0,0 +1,92 @@
1
+ import { ActionType } from '../types';
2
+ export type SheetEdgeType = 'right' | 'left' | 'top' | 'bottom';
3
+ export interface SheetProps {
4
+ /**
5
+ * Title shown in the sheet header.
6
+ */
7
+ title?: string;
8
+ /**
9
+ * Whether the sheet is open. Toggle this to show or hide the sheet.
10
+ *
11
+ * @default false
12
+ */
13
+ visible?: boolean;
14
+ /**
15
+ * Which edge the sheet slides in from.
16
+ *
17
+ * `"left"` and `"right"` size the sheet by width and stretch it full height;
18
+ * `"top"` and `"bottom"` size it by height and stretch it full width.
19
+ *
20
+ * @default 'right'
21
+ */
22
+ edge?: SheetEdgeType;
23
+ /**
24
+ * Size of the sheet along the axis it slides on, in pixels — its width for a
25
+ * left or right sheet, its height for a top or bottom one. Clamped to the
26
+ * screen when the sheet becomes the active (foreground) sheet.
27
+ *
28
+ * @default 700
29
+ */
30
+ size?: number;
31
+ /**
32
+ * How many pixels of a background sheet remain visible (peek out) from
33
+ * behind the sheets stacked on top of it.
34
+ *
35
+ * @default 100
36
+ */
37
+ peek?: number;
38
+ /**
39
+ * Adds padding around the sheet content and constrains it to a comfortable
40
+ * reading width.
41
+ */
42
+ padded?: boolean;
43
+ /**
44
+ * Duration of the open (slide/fade-in) animation in milliseconds.
45
+ * Set to `0` to open instantly with no animation.
46
+ *
47
+ * @default 700
48
+ */
49
+ animateInDuration?: number;
50
+ /**
51
+ * Duration of the close (slide/fade-out) animation in milliseconds.
52
+ * Set to `0` to close instantly with no animation.
53
+ *
54
+ * @default 700
55
+ */
56
+ animateOutDuration?: number;
57
+ /**
58
+ * Minimum `z-index` used for the sheet. Stacked sheets increment from here.
59
+ *
60
+ * @default 1000
61
+ */
62
+ minIndex?: number;
63
+ /**
64
+ * Accent color for the sheet, shown as a strip along the top of the header.
65
+ * Accepts any CSS color value, e.g. `"red"`, `"#2196F3"`, `"rgb(0,0,0)"`.
66
+ */
67
+ color?: string;
68
+ /**
69
+ * Classes to add to the sheet element.
70
+ */
71
+ containerClass?: Record<string, string> | string;
72
+ /**
73
+ * Classes to add to the sheet content element.
74
+ */
75
+ contentClass?: Record<string, string> | string;
76
+ /**
77
+ * Shows a spinner over the whole sheet and prevents closing.
78
+ *
79
+ * @default false
80
+ */
81
+ loading?: boolean;
82
+ /**
83
+ * The main sheet action, displayed at the upper right corner
84
+ * of the sheet
85
+ */
86
+ primaryAction?: ActionType;
87
+ /**
88
+ * Optional secondary actions. These actions and the action groups are
89
+ * displayed left of the primary action button
90
+ */
91
+ secondaryActions?: ActionType[];
92
+ }
@@ -0,0 +1,17 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ lines: {
5
+ type: NumberConstructor;
6
+ default: number;
7
+ };
8
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
+ [key: string]: any;
10
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ lines: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ }>> & Readonly<{}>, {
16
+ lines: number;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export { default as SkeletonBodyText } from './SkeletonBodyText.vue';
@@ -0,0 +1,34 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ title: {
5
+ type: StringConstructor;
6
+ };
7
+ subdued: {
8
+ type: BooleanConstructor;
9
+ };
10
+ /**
11
+ * Number of sections to show.
12
+ */
13
+ sections: {
14
+ type: NumberConstructor;
15
+ default: number;
16
+ };
17
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
+ title: {
19
+ type: StringConstructor;
20
+ };
21
+ subdued: {
22
+ type: BooleanConstructor;
23
+ };
24
+ /**
25
+ * Number of sections to show.
26
+ */
27
+ sections: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ }>> & Readonly<{}>, {
32
+ subdued: boolean;
33
+ sections: number;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export { default as SkeletonCard } from './SkeletonCard.vue';
@@ -0,0 +1,17 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ size: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
+ [key: string]: any;
10
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ size: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>> & Readonly<{}>, {
16
+ size: string;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export { default as SkeletonDisplayText } from './SkeletonDisplayText.vue';
@@ -0,0 +1,52 @@
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 color of the spinner:
6
+ *
7
+ * - white
8
+ * - blue
9
+ * - teal
10
+ */
11
+ color: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ /**
16
+ * The size of the spinner:
17
+ *
18
+ * - small
19
+ * - large
20
+ * - relative
21
+ */
22
+ size: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
27
+ /**
28
+ * The color of the spinner:
29
+ *
30
+ * - white
31
+ * - blue
32
+ * - teal
33
+ */
34
+ color: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ /**
39
+ * The size of the spinner:
40
+ *
41
+ * - small
42
+ * - large
43
+ * - relative
44
+ */
45
+ size: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ }>> & Readonly<{}>, {
50
+ size: string;
51
+ color: string;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export { default as Spinner } from './Spinner.vue';
@@ -0,0 +1,60 @@
1
+ import { SplitterProps, SplitterResizeType, SplitterSizeType } from './types';
2
+ declare function measure(): void;
3
+ declare function toggle(): void;
4
+ declare function onDblclick(): void;
5
+ declare var __VLS_1: {
6
+ collapsed: boolean;
7
+ }, __VLS_3: {
8
+ collapsed: boolean;
9
+ dragging: boolean;
10
+ }, __VLS_5: {
11
+ collapsed: boolean;
12
+ };
13
+ type __VLS_Slots = {} & {
14
+ start?: (props: typeof __VLS_1) => any;
15
+ } & {
16
+ handle?: (props: typeof __VLS_3) => any;
17
+ } & {
18
+ end?: (props: typeof __VLS_5) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<SplitterProps, {
21
+ /** Re-reads the geometry. For containers that resize without a resize event. */
22
+ measure: typeof measure;
23
+ /** Returns the split to the size it was given on mount. */
24
+ reset: typeof onDblclick;
25
+ /** Shuts or reopens the start pane, when `collapsible`. */
26
+ toggle: typeof toggle;
27
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
+ resize: (detail: SplitterResizeType) => any;
29
+ "update:size": (size: SplitterSizeType) => any;
30
+ "update:collapsed": (collapsed: boolean) => any;
31
+ }, string, import('vue').PublicProps, Readonly<SplitterProps> & Readonly<{
32
+ onResize?: ((detail: SplitterResizeType) => any) | undefined;
33
+ "onUpdate:size"?: ((size: SplitterSizeType) => any) | undefined;
34
+ "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
35
+ }>, {
36
+ disabled: boolean;
37
+ size: SplitterSizeType;
38
+ label: string;
39
+ min: SplitterSizeType;
40
+ max: SplitterSizeType;
41
+ step: number;
42
+ direction: import('./types').SplitterDirectionType;
43
+ collapsible: boolean;
44
+ collapsed: boolean;
45
+ snap: number;
46
+ deferred: boolean;
47
+ storageKey: string;
48
+ snapTo: number | string;
49
+ handle: import('./types').SplitterHandleType;
50
+ hitArea: number | string;
51
+ resetOnDoubleClick: boolean;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
53
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
54
+ declare const _default: typeof __VLS_export;
55
+ export default _default;
56
+ type __VLS_WithSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Splitter } from './Splitter.vue';
2
+ export type { SplitterProps, SplitterDirectionType, SplitterHandleType, SplitterSizeType, SplitterResizeType } from './types';
@@ -0,0 +1,177 @@
1
+ export type SplitterDirectionType = 'horizontal' | 'vertical';
2
+ /**
3
+ * What the gutter draws by default.
4
+ *
5
+ * - `"line"` — a hairline down the middle of the gutter
6
+ * - `"grip"` — the hairline plus a centred grab bar, for gutters people are
7
+ * meant to notice and reach for
8
+ * - `"none"` — nothing at all, still draggable; for a gutter you are styling
9
+ * from the pane edges instead
10
+ *
11
+ * The `handle` slot replaces whichever of these is chosen.
12
+ */
13
+ export type SplitterHandleType = 'line' | 'grip' | 'none';
14
+ /**
15
+ * A pane size: a number of pixels, or any CSS length as a string.
16
+ *
17
+ * Pixels and percentages survive a drag — hand it `240` and it stays a number
18
+ * of pixels, hand it `"30%"` and it keeps expressing itself as a percentage of
19
+ * the container, so the layout stays responsive. Other units (`"20rem"`,
20
+ * `"calc(…)"`, `"var(…)"`) work as a starting size, but the model emits pixels
21
+ * once dragged: converting 500px back into rem means assuming a font size that
22
+ * can change underneath us, and a wrong assumption is worse than a plain
23
+ * number.
24
+ *
25
+ * The `resize` event always carries both units, whatever this is.
26
+ */
27
+ export type SplitterSizeType = number | string;
28
+ /** What `resize` reports, in both units, every time the split moves. */
29
+ export interface SplitterResizeType {
30
+ /** The start pane's size along the split axis, in pixels. */
31
+ px: number;
32
+ /** The same size as a percentage of the container, `0`–`100`. */
33
+ percent: number;
34
+ /** Whether the start pane is currently collapsed. */
35
+ collapsed: boolean;
36
+ }
37
+ export interface SplitterProps {
38
+ /**
39
+ * The size of the START pane — the end pane takes whatever is left, so only
40
+ * one of the two is ever stated. Two-way bindable with `v-model:size`.
41
+ *
42
+ * @default '50%'
43
+ */
44
+ size?: SplitterSizeType;
45
+ /**
46
+ * Which way the panes sit.
47
+ *
48
+ * - `"horizontal"` — side by side, split by a vertical gutter (default)
49
+ * - `"vertical"` — stacked, split by a horizontal gutter
50
+ *
51
+ * For three panes or more, nest a Splitter inside a pane of another. The
52
+ * inner ratio then stays put when the outer one is dragged, which is what
53
+ * you want for a sidebar beside a split editor.
54
+ *
55
+ * @default 'horizontal'
56
+ */
57
+ direction?: SplitterDirectionType;
58
+ /**
59
+ * The smallest the start pane may be dragged to, as a number of pixels or a
60
+ * CSS length. Applied as real CSS, so the browser resolves the unit and the
61
+ * pane cannot render smaller than this even if the container shrinks.
62
+ *
63
+ * Percentages and absolute lengths both work. `calc()` is applied but not
64
+ * understood by the drag clamp, so avoid it here.
65
+ *
66
+ * @default 0
67
+ */
68
+ min?: SplitterSizeType;
69
+ /**
70
+ * The largest the start pane may be dragged to. Same units as `min`.
71
+ *
72
+ * @default the container, less the gutter
73
+ */
74
+ max?: SplitterSizeType;
75
+ /**
76
+ * Stops the gutter being dragged or focused, and greys it out. The panes
77
+ * hold their current sizes.
78
+ */
79
+ disabled?: boolean;
80
+ /**
81
+ * Lets the start pane be shut completely by dragging past its minimum, by
82
+ * pressing Enter on the gutter, or by binding `collapsed`.
83
+ *
84
+ * The gutter stays put and stays grabbable when the pane is shut, so there
85
+ * is always something to pull it back out with.
86
+ */
87
+ collapsible?: boolean;
88
+ /**
89
+ * Whether the start pane is currently shut. Two-way bindable with
90
+ * `v-model:collapsed`. Only meaningful alongside `collapsible`.
91
+ */
92
+ collapsed?: boolean;
93
+ /**
94
+ * How far past its minimum the gutter must be dragged before the pane snaps
95
+ * shut, in pixels. Also how far it must be dragged back out to reopen.
96
+ *
97
+ * The gap exists so a pane with a `min` of 200 does not sit at 200 and then
98
+ * vanish the moment the pointer crosses 199.
99
+ *
100
+ * @default 40
101
+ */
102
+ snap?: number;
103
+ /**
104
+ * Reflows the panes only when the drag ends. While dragging, a line follows
105
+ * the pointer to show where the split will land.
106
+ *
107
+ * For panes whose content is expensive to lay out — a wide DataTable, a
108
+ * chart, an embedded map — where reflowing every frame stutters.
109
+ */
110
+ deferred?: boolean;
111
+ /**
112
+ * Remembers the size and collapsed state under this key in `localStorage`,
113
+ * and restores them on mount.
114
+ *
115
+ * Storage being unavailable (private browsing, a full quota, an embedded
116
+ * context) is not treated as an error: the splitter works for this session
117
+ * and forgets afterwards.
118
+ */
119
+ storageKey?: string;
120
+ /**
121
+ * How far each arrow-key press moves the gutter, in pixels. Holding Shift
122
+ * moves five times as far.
123
+ *
124
+ * Deliberately independent of `snapTo`: the keyboard is the precise
125
+ * instrument, so a coarse drag grid does not have to make the arrows coarse
126
+ * too. Set both to the same value where you want them to agree.
127
+ *
128
+ * @default 10
129
+ */
130
+ step?: number;
131
+ /**
132
+ * Quantises DRAGGING to fixed increments — a number of pixels, or a
133
+ * percentage of the container as a string. The gutter then lands only on
134
+ * multiples of it.
135
+ *
136
+ * Unset, dragging is continuous. It does not affect the keyboard (see
137
+ * `step`), nor `Home` and `End`, which go to the exact bounds, nor a
138
+ * double-click reset, which goes to the exact `size` given.
139
+ *
140
+ * Not to be confused with `snap`, which is the distance a pane must be
141
+ * dragged past its minimum before it shuts.
142
+ */
143
+ snapTo?: number | string;
144
+ /**
145
+ * What the gutter draws when the `handle` slot is not used.
146
+ *
147
+ * @default 'line'
148
+ */
149
+ handle?: SplitterHandleType;
150
+ /**
151
+ * How thick the grabbable band is, as a number of pixels or a CSS length.
152
+ * The gutter still takes only its own width in the layout — this widens the
153
+ * hit target over the panes on either side without moving anything.
154
+ *
155
+ * Worth raising for touch, where a nine-pixel target is a poor one. The cost
156
+ * is that the pane content immediately either side of the gutter stops being
157
+ * clickable, so do not overdo it next to interactive edges.
158
+ *
159
+ * @default the gutter's own width, i.e. no overhang
160
+ */
161
+ hitArea?: number | string;
162
+ /**
163
+ * Whether double-clicking the gutter returns it to the `size` it was given
164
+ * on mount, reopening the pane if it was shut.
165
+ *
166
+ * @default true
167
+ */
168
+ resetOnDoubleClick?: boolean;
169
+ /**
170
+ * The accessible name of the gutter, which is a focusable control in its own
171
+ * right. Name it after what it resizes — "Resize the sidebar" — wherever
172
+ * more than one splitter shares a screen.
173
+ *
174
+ * @default 'Resize panes'
175
+ */
176
+ label?: string;
177
+ }
@@ -0,0 +1,130 @@
1
+ import { PropType } from 'vue';
2
+ type StackAlignmentType = 'leading' | 'trailing' | 'center' | 'fill' | 'baseline';
3
+ type StackDistributionType = 'equalSpacing' | 'leading' | 'trailing' | 'center' | 'fill' | 'fillEvenly';
4
+ type StackSpacingType = 'extraTight' | 'tight' | 'loose' | 'extraLoose' | 'none';
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ /**
9
+ * Aligns items along the stack's cross axis.
10
+ *
11
+ * - leading
12
+ * - trailing
13
+ * - center
14
+ * - fill
15
+ * - baseline
16
+ */
17
+ alignment: {
18
+ type: PropType<StackAlignmentType>;
19
+ };
20
+ /**
21
+ * Aligns items along the stack's main axis.
22
+ *
23
+ * - equalSpacing
24
+ * - leading
25
+ * - trailing
26
+ * - center
27
+ * - fill
28
+ * - fillEvenly
29
+ */
30
+ distribution: {
31
+ type: PropType<StackDistributionType>;
32
+ };
33
+ /**
34
+ * The margin to add between items.
35
+ *
36
+ * - extraTight
37
+ * - tight
38
+ * - loose
39
+ * - extraLoose
40
+ * - none
41
+ */
42
+ spacing: {
43
+ type: PropType<StackSpacingType>;
44
+ };
45
+ /**
46
+ * An exact gap between items — a number of pixels or any CSS length —
47
+ * when none of the `spacing` presets fits. Wins over `spacing`.
48
+ */
49
+ gap: {
50
+ type: (StringConstructor | NumberConstructor)[];
51
+ };
52
+ /**
53
+ * Flip the main axis so that items are rendered vertically.
54
+ */
55
+ vertical: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ /**
60
+ * Prevent items from wrapping when there is limited space.
61
+ */
62
+ wrap: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
67
+ [key: string]: any;
68
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
69
+ /**
70
+ * Aligns items along the stack's cross axis.
71
+ *
72
+ * - leading
73
+ * - trailing
74
+ * - center
75
+ * - fill
76
+ * - baseline
77
+ */
78
+ alignment: {
79
+ type: PropType<StackAlignmentType>;
80
+ };
81
+ /**
82
+ * Aligns items along the stack's main axis.
83
+ *
84
+ * - equalSpacing
85
+ * - leading
86
+ * - trailing
87
+ * - center
88
+ * - fill
89
+ * - fillEvenly
90
+ */
91
+ distribution: {
92
+ type: PropType<StackDistributionType>;
93
+ };
94
+ /**
95
+ * The margin to add between items.
96
+ *
97
+ * - extraTight
98
+ * - tight
99
+ * - loose
100
+ * - extraLoose
101
+ * - none
102
+ */
103
+ spacing: {
104
+ type: PropType<StackSpacingType>;
105
+ };
106
+ /**
107
+ * An exact gap between items — a number of pixels or any CSS length —
108
+ * when none of the `spacing` presets fits. Wins over `spacing`.
109
+ */
110
+ gap: {
111
+ type: (StringConstructor | NumberConstructor)[];
112
+ };
113
+ /**
114
+ * Flip the main axis so that items are rendered vertically.
115
+ */
116
+ vertical: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ /**
121
+ * Prevent items from wrapping when there is limited space.
122
+ */
123
+ wrap: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ }>> & Readonly<{}>, {
128
+ wrap: boolean;
129
+ vertical: boolean;
130
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;