@dlbcodes/ui 0.8.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 (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +70 -0
  3. package/dist/index.js +3252 -0
  4. package/dist/lib/components/form/Checkbox.test.d.ts +1 -0
  5. package/dist/lib/components/form/Checkbox.vue.d.ts +24 -0
  6. package/dist/lib/components/form/Input.test.d.ts +1 -0
  7. package/dist/lib/components/form/Input.vue.d.ts +49 -0
  8. package/dist/lib/components/form/Switch.test.d.ts +1 -0
  9. package/dist/lib/components/form/Switch.vue.d.ts +17 -0
  10. package/dist/lib/components/form/Textarea.test.d.ts +1 -0
  11. package/dist/lib/components/form/Textarea.vue.d.ts +52 -0
  12. package/dist/lib/components/form/_shared/SearchInput.vue.d.ts +15 -0
  13. package/dist/lib/components/form/combobox/Combobox.test.d.ts +1 -0
  14. package/dist/lib/components/form/combobox/Combobox.vue.d.ts +31 -0
  15. package/dist/lib/components/form/combobox/ComboboxContent.vue.d.ts +24 -0
  16. package/dist/lib/components/form/combobox/ComboboxEmpty.vue.d.ts +17 -0
  17. package/dist/lib/components/form/combobox/ComboboxInput.vue.d.ts +13 -0
  18. package/dist/lib/components/form/combobox/ComboboxItem.vue.d.ts +29 -0
  19. package/dist/lib/components/form/combobox/context.d.ts +18 -0
  20. package/dist/lib/components/form/combobox/index.d.ts +5 -0
  21. package/dist/lib/components/form/dropdown/Dropdown.test.d.ts +1 -0
  22. package/dist/lib/components/form/dropdown/Dropdown.vue.d.ts +27 -0
  23. package/dist/lib/components/form/dropdown/DropdownContent.vue.d.ts +25 -0
  24. package/dist/lib/components/form/dropdown/DropdownItem.vue.d.ts +28 -0
  25. package/dist/lib/components/form/dropdown/DropdownTrigger.vue.d.ts +24 -0
  26. package/dist/lib/components/form/dropdown/index.d.ts +4 -0
  27. package/dist/lib/components/form/field/Field.test.d.ts +1 -0
  28. package/dist/lib/components/form/field/Field.vue.d.ts +31 -0
  29. package/dist/lib/components/form/field/FieldContent.vue.d.ts +21 -0
  30. package/dist/lib/components/form/field/FieldDescription.vue.d.ts +21 -0
  31. package/dist/lib/components/form/field/FieldError.vue.d.ts +21 -0
  32. package/dist/lib/components/form/field/FieldLabel.vue.d.ts +22 -0
  33. package/dist/lib/components/form/field/index.d.ts +5 -0
  34. package/dist/lib/components/form/multiselect/MultiSelect.test.d.ts +1 -0
  35. package/dist/lib/components/form/multiselect/MultiSelect.vue.d.ts +51 -0
  36. package/dist/lib/components/form/multiselect/MultiSelectContent.vue.d.ts +25 -0
  37. package/dist/lib/components/form/multiselect/MultiSelectItem.vue.d.ts +24 -0
  38. package/dist/lib/components/form/multiselect/MultiSelectSearch.vue.d.ts +7 -0
  39. package/dist/lib/components/form/multiselect/MultiSelectTrigger.vue.d.ts +29 -0
  40. package/dist/lib/components/form/multiselect/context.d.ts +13 -0
  41. package/dist/lib/components/form/multiselect/index.d.ts +5 -0
  42. package/dist/lib/components/form/multiselect/use-context.d.ts +2 -0
  43. package/dist/lib/components/form/select/Select.test.d.ts +1 -0
  44. package/dist/lib/components/form/select/Select.vue.d.ts +33 -0
  45. package/dist/lib/components/form/select/SelectContent.vue.d.ts +28 -0
  46. package/dist/lib/components/form/select/SelectItem.vue.d.ts +34 -0
  47. package/dist/lib/components/form/select/SelectSearch.vue.d.ts +7 -0
  48. package/dist/lib/components/form/select/SelectTrigger.vue.d.ts +31 -0
  49. package/dist/lib/components/form/select/context.d.ts +32 -0
  50. package/dist/lib/components/form/select/index.d.ts +6 -0
  51. package/dist/lib/components/overlays/modal/Modal.test.d.ts +1 -0
  52. package/dist/lib/components/overlays/modal/Modal.vue.d.ts +49 -0
  53. package/dist/lib/components/overlays/modal/ModalClose.vue.d.ts +21 -0
  54. package/dist/lib/components/overlays/modal/ModalContent.vue.d.ts +21 -0
  55. package/dist/lib/components/overlays/modal/ModalDescription.vue.d.ts +21 -0
  56. package/dist/lib/components/overlays/modal/ModalFooter.vue.d.ts +21 -0
  57. package/dist/lib/components/overlays/modal/ModalHeader.vue.d.ts +21 -0
  58. package/dist/lib/components/overlays/modal/ModalTitle.vue.d.ts +21 -0
  59. package/dist/lib/components/overlays/modal/index.d.ts +7 -0
  60. package/dist/lib/components/overlays/modal/modal-context.d.ts +17 -0
  61. package/dist/lib/components/overlays/popover/Popover.test.d.ts +1 -0
  62. package/dist/lib/components/overlays/popover/Popover.vue.d.ts +27 -0
  63. package/dist/lib/components/overlays/popover/PopoverContent.vue.d.ts +27 -0
  64. package/dist/lib/components/overlays/popover/PopoverTrigger.vue.d.ts +24 -0
  65. package/dist/lib/components/overlays/popover/index.d.ts +3 -0
  66. package/dist/lib/components/primitives/Avatar.test.d.ts +1 -0
  67. package/dist/lib/components/primitives/Avatar.vue.d.ts +14 -0
  68. package/dist/lib/components/primitives/Badge.test.d.ts +1 -0
  69. package/dist/lib/components/primitives/Badge.vue.d.ts +25 -0
  70. package/dist/lib/components/primitives/Button.test.d.ts +1 -0
  71. package/dist/lib/components/primitives/Button.vue.d.ts +37 -0
  72. package/dist/lib/components/primitives/Kbd.test.d.ts +1 -0
  73. package/dist/lib/components/primitives/Kbd.vue.d.ts +21 -0
  74. package/dist/lib/components/primitives/KbdGroup.test.d.ts +1 -0
  75. package/dist/lib/components/primitives/KbdGroup.vue.d.ts +27 -0
  76. package/dist/lib/components/primitives/Label.test.d.ts +1 -0
  77. package/dist/lib/components/primitives/Label.vue.d.ts +23 -0
  78. package/dist/lib/components/primitives/Progress.test.d.ts +1 -0
  79. package/dist/lib/components/primitives/Progress.vue.d.ts +13 -0
  80. package/dist/lib/components/primitives/Separator.test.d.ts +1 -0
  81. package/dist/lib/components/primitives/Separator.vue.d.ts +12 -0
  82. package/dist/lib/components/primitives/Skeleton.test.d.ts +1 -0
  83. package/dist/lib/components/primitives/Skeleton.vue.d.ts +6 -0
  84. package/dist/lib/components/primitives/Spinner.test.d.ts +1 -0
  85. package/dist/lib/components/primitives/Spinner.vue.d.ts +9 -0
  86. package/dist/lib/components/primitives/alert/Alert.test.d.ts +1 -0
  87. package/dist/lib/components/primitives/alert/Alert.vue.d.ts +27 -0
  88. package/dist/lib/components/primitives/alert/AlertDescription.vue.d.ts +21 -0
  89. package/dist/lib/components/primitives/alert/AlertTitle.vue.d.ts +21 -0
  90. package/dist/lib/components/primitives/alert/index.d.ts +3 -0
  91. package/dist/lib/components/primitives/disclosure/Disclosure.test.d.ts +1 -0
  92. package/dist/lib/components/primitives/disclosure/Disclosure.vue.d.ts +27 -0
  93. package/dist/lib/components/primitives/disclosure/DisclosureContent.vue.d.ts +21 -0
  94. package/dist/lib/components/primitives/disclosure/DisclosureTrigger.vue.d.ts +23 -0
  95. package/dist/lib/components/primitives/disclosure/index.d.ts +3 -0
  96. package/dist/lib/components/primitives/empty/Empty.test.d.ts +1 -0
  97. package/dist/lib/components/primitives/empty/Empty.vue.d.ts +21 -0
  98. package/dist/lib/components/primitives/empty/EmptyContent.vue.d.ts +21 -0
  99. package/dist/lib/components/primitives/empty/EmptyDescription.vue.d.ts +21 -0
  100. package/dist/lib/components/primitives/empty/EmptyHeader.vue.d.ts +21 -0
  101. package/dist/lib/components/primitives/empty/EmptyMedia.vue.d.ts +25 -0
  102. package/dist/lib/components/primitives/empty/EmptyTitle.vue.d.ts +21 -0
  103. package/dist/lib/components/primitives/empty/index.d.ts +6 -0
  104. package/dist/lib/components/primitives/index.d.ts +16 -0
  105. package/dist/lib/components/primitives/panel/Panel.test.d.ts +1 -0
  106. package/dist/lib/components/primitives/panel/Panel.vue.d.ts +21 -0
  107. package/dist/lib/components/primitives/panel/PanelContent.vue.d.ts +21 -0
  108. package/dist/lib/components/primitives/panel/PanelFooter.vue.d.ts +21 -0
  109. package/dist/lib/components/primitives/panel/PanelHeader.vue.d.ts +21 -0
  110. package/dist/lib/components/primitives/panel/index.d.ts +4 -0
  111. package/dist/lib/components/primitives/sidebar/Sidebar.test.d.ts +1 -0
  112. package/dist/lib/components/primitives/sidebar/Sidebar.vue.d.ts +22 -0
  113. package/dist/lib/components/primitives/sidebar/SidebarContent.vue.d.ts +21 -0
  114. package/dist/lib/components/primitives/sidebar/SidebarFooter.vue.d.ts +21 -0
  115. package/dist/lib/components/primitives/sidebar/SidebarGroup.vue.d.ts +23 -0
  116. package/dist/lib/components/primitives/sidebar/SidebarHeader.vue.d.ts +21 -0
  117. package/dist/lib/components/primitives/sidebar/SidebarItem.vue.d.ts +34 -0
  118. package/dist/lib/components/primitives/sidebar/SidebarProvider.vue.d.ts +17 -0
  119. package/dist/lib/components/primitives/sidebar/SidebarTrigger.vue.d.ts +6 -0
  120. package/dist/lib/components/primitives/sidebar/context.d.ts +12 -0
  121. package/dist/lib/components/primitives/sidebar/index.d.ts +9 -0
  122. package/dist/lib/components/primitives/tabs/Tabs.test.d.ts +1 -0
  123. package/dist/lib/components/primitives/tabs/Tabs.vue.d.ts +34 -0
  124. package/dist/lib/components/primitives/tabs/TabsContent.vue.d.ts +21 -0
  125. package/dist/lib/components/primitives/tabs/TabsList.vue.d.ts +21 -0
  126. package/dist/lib/components/primitives/tabs/TabsPanels.vue.d.ts +21 -0
  127. package/dist/lib/components/primitives/tabs/TabsTrigger.vue.d.ts +24 -0
  128. package/dist/lib/components/primitives/tabs/index.d.ts +5 -0
  129. package/dist/lib/core/field-context.d.ts +24 -0
  130. package/dist/lib/core/placement.d.ts +1 -0
  131. package/dist/lib/core/transitions.d.ts +8 -0
  132. package/dist/lib/index.d.ts +19 -0
  133. package/dist/lib/styles/tokens.css +125 -0
  134. package/dist/lib/utils/cn.d.ts +2 -0
  135. package/dist/lib/variants/alert.d.ts +5 -0
  136. package/dist/lib/variants/avatar.d.ts +5 -0
  137. package/dist/lib/variants/badge.d.ts +5 -0
  138. package/dist/lib/variants/button.d.ts +6 -0
  139. package/dist/lib/variants/empty.d.ts +5 -0
  140. package/dist/lib/variants/input.d.ts +7 -0
  141. package/dist/lib/variants/menu-item.d.ts +5 -0
  142. package/dist/lib/variants/modal.d.ts +5 -0
  143. package/dist/lib/variants/popover.d.ts +5 -0
  144. package/dist/lib/variants/separator.d.ts +5 -0
  145. package/dist/lib/variants/sidebar.d.ts +5 -0
  146. package/dist/lib/variants/tabs.d.ts +6 -0
  147. package/package.json +68 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ id?: string;
4
+ modelValue?: boolean;
5
+ required?: boolean;
6
+ disabled?: boolean;
7
+ invalid?: boolean;
8
+ /**
9
+ * Visual-only: render just the box, no input/label. Use when the checkbox
10
+ * sits inside another interactive element (a menu row, an option button)
11
+ * where a nested real input would be invalid. Drive it with :model-value.
12
+ */
13
+ visual?: boolean;
14
+ class?: HTMLAttributes["class"];
15
+ }
16
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: boolean) => any;
18
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ }>, {
21
+ modelValue: boolean;
22
+ visual: boolean;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,49 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { InputProps } from '../../variants/input';
3
+ interface Props {
4
+ variant?: InputProps["variant"];
5
+ size?: InputProps["size"];
6
+ id?: string;
7
+ placeholder?: string;
8
+ type?: string;
9
+ required?: boolean;
10
+ disabled?: boolean;
11
+ invalid?: boolean;
12
+ class?: HTMLAttributes["class"];
13
+ }
14
+ type __VLS_Props = Props;
15
+ type __VLS_PublicProps = {
16
+ modelValue?: string | number | null;
17
+ } & __VLS_Props;
18
+ declare function __VLS_template(): {
19
+ attrs: Partial<{}>;
20
+ slots: {
21
+ default?(_: {}): any;
22
+ };
23
+ refs: {
24
+ inputRef: HTMLInputElement;
25
+ };
26
+ rootEl: any;
27
+ };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
+ "update:modelValue": (value: string | number | null) => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
+ "onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
33
+ }>, {
34
+ variant: "primary" | "contrast" | null;
35
+ size: "base" | "sm" | null;
36
+ type: string;
37
+ disabled: boolean;
38
+ invalid: boolean;
39
+ required: boolean;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
41
+ inputRef: HTMLInputElement;
42
+ }, any>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ modelValue: boolean;
4
+ id?: string;
5
+ disabled?: boolean;
6
+ /** Accessible name when there's no associated <Label>. */
7
+ ariaLabel?: string;
8
+ class?: HTMLAttributes["class"];
9
+ }
10
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:modelValue": (value: boolean) => any;
12
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
+ }>, {
15
+ disabled: boolean;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
17
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,52 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { InputProps } from '../../variants/input';
3
+ interface Props {
4
+ variant?: InputProps["variant"];
5
+ size?: InputProps["size"];
6
+ id?: string;
7
+ placeholder?: string;
8
+ rows?: number;
9
+ /** Grow with content up to a max height, then scroll. `rows` is the minimum. */
10
+ autosize?: boolean;
11
+ required?: boolean;
12
+ disabled?: boolean;
13
+ invalid?: boolean;
14
+ class?: HTMLAttributes["class"];
15
+ }
16
+ type __VLS_Props = Props;
17
+ type __VLS_PublicProps = {
18
+ modelValue?: string | number | null;
19
+ } & __VLS_Props;
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {
26
+ textareaEl: HTMLTextAreaElement;
27
+ };
28
+ rootEl: HTMLDivElement;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ "update:modelValue": (value: string | number | null) => any;
33
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
34
+ "onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
35
+ }>, {
36
+ variant: "primary" | "contrast" | null;
37
+ size: "base" | "sm" | null;
38
+ disabled: boolean;
39
+ invalid: boolean;
40
+ required: boolean;
41
+ rows: number;
42
+ autosize: boolean;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
44
+ textareaEl: HTMLTextAreaElement;
45
+ }, HTMLDivElement>;
46
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
+ export default _default;
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,15 @@
1
+ interface Props {
2
+ /** Two-way bound search query. */
3
+ modelValue: string;
4
+ placeholder?: string;
5
+ /** Background token, so it matches whichever panel it sits in. */
6
+ class?: string;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
+ }>, {
13
+ placeholder: string;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { Placement } from '../../../core/placement';
2
+ interface Props {
3
+ modelValue: string;
4
+ placement?: Placement;
5
+ offset?: number;
6
+ class?: string;
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (value: string) => any;
19
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
+ }>, {
22
+ placement: Placement;
23
+ offset: number;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,24 @@
1
+ import { PopoverVariantsProps } from '../../../variants/popover';
2
+ interface Props {
3
+ width?: PopoverVariantsProps["size"];
4
+ class?: string;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
16
+ width: "lg" | "sm" | "xs" | "fit" | "full" | "3xs" | "2xs" | "md" | null;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,13 @@
1
+ import { InputProps } from '../../../variants/input';
2
+ interface Props {
3
+ placeholder?: string;
4
+ variant?: InputProps["variant"];
5
+ size?: InputProps["size"];
6
+ class?: string;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
9
+ variant: "primary" | "contrast" | null;
10
+ size: "base" | "sm" | null;
11
+ placeholder: string;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,29 @@
1
+ interface Props {
2
+ value: string;
3
+ label?: string;
4
+ disabled?: boolean;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {
10
+ active: any;
11
+ selected: any;
12
+ }): any;
13
+ };
14
+ refs: {
15
+ labelEl: HTMLSpanElement;
16
+ };
17
+ rootEl: any;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ labelEl: HTMLSpanElement;
22
+ }, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,18 @@
1
+ import { InjectionKey, Ref, ComputedRef } from 'vue';
2
+ export interface ComboboxContext {
3
+ selected: ComputedRef<string>;
4
+ selectedLabel: ComputedRef<string>;
5
+ select: (value: string, label: string) => void;
6
+ isSelected: (value: string) => boolean;
7
+ registerLabel: (value: string, label: string) => void;
8
+ query: Ref<string>;
9
+ matchesQuery: (label: string) => boolean;
10
+ /** Items report their match state so ComboboxEmpty knows if any match. */
11
+ setItemVisible: (key: string, visible: boolean) => void;
12
+ /** How many items currently match the query. */
13
+ visibleCount: ComputedRef<number>;
14
+ /** Whether the user has typed a non-empty query. */
15
+ hasQuery: ComputedRef<boolean>;
16
+ id: string;
17
+ }
18
+ export declare const ComboboxKey: InjectionKey<ComboboxContext>;
@@ -0,0 +1,5 @@
1
+ export { default as Combobox } from './Combobox.vue';
2
+ export { default as ComboboxInput } from './ComboboxInput.vue';
3
+ export { default as ComboboxContent } from './ComboboxContent.vue';
4
+ export { default as ComboboxItem } from './ComboboxItem.vue';
5
+ export { default as ComboboxEmpty } from './ComboboxEmpty.vue';
@@ -0,0 +1,27 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { Placement } from '../../../core/placement';
3
+ interface Props {
4
+ placement?: Placement;
5
+ offset?: number;
6
+ class?: HTMLAttributes["class"];
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ placement: Placement;
19
+ offset: number;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,25 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PopoverVariantsProps } from '../../../variants/popover';
3
+ interface Props {
4
+ size?: PopoverVariantsProps["size"];
5
+ class?: HTMLAttributes["class"];
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
17
+ size: "lg" | "sm" | "xs" | "fit" | "full" | "3xs" | "2xs" | "md" | null;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,28 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ disabled?: boolean;
4
+ class?: HTMLAttributes["class"];
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {
10
+ active: any;
11
+ }): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ select: () => any;
19
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
20
+ onSelect?: (() => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,24 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ asChild?: boolean;
4
+ class?: HTMLAttributes["class"];
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {
10
+ open: any;
11
+ }): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,4 @@
1
+ export { default as Dropdown } from './Dropdown.vue';
2
+ export { default as DropdownTrigger } from './DropdownTrigger.vue';
3
+ export { default as DropdownContent } from './DropdownContent.vue';
4
+ export { default as DropdownItem } from './DropdownItem.vue';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,31 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ id?: string;
4
+ orientation?: "vertical" | "horizontal";
5
+ invalid?: boolean;
6
+ disabled?: boolean;
7
+ required?: boolean;
8
+ class?: HTMLAttributes["class"];
9
+ }
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: HTMLDivElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
20
+ disabled: boolean;
21
+ orientation: "vertical" | "horizontal";
22
+ invalid: boolean;
23
+ required: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,21 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ class?: HTMLAttributes["class"];
4
+ }
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,21 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ class?: HTMLAttributes["class"];
4
+ }
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLParagraphElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLParagraphElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,21 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ class?: HTMLAttributes["class"];
4
+ }
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLParagraphElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLParagraphElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ interface Props {
3
+ for?: string;
4
+ class?: HTMLAttributes["class"];
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLLabelElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,5 @@
1
+ export { default as Field } from './Field.vue';
2
+ export { default as FieldLabel } from './FieldLabel.vue';
3
+ export { default as FieldDescription } from './FieldDescription.vue';
4
+ export { default as FieldError } from './FieldError.vue';
5
+ export { default as FieldContent } from './FieldContent.vue';
@@ -0,0 +1,51 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { MultiSelectOption } from './context';
3
+ import { Placement } from '../../../core/placement';
4
+ interface Props {
5
+ options: MultiSelectOption[];
6
+ placeholder?: string;
7
+ searchable?: boolean;
8
+ placement?: Placement;
9
+ offset?: number;
10
+ summarize?: (count: number, total: number) => string;
11
+ class?: HTMLAttributes["class"];
12
+ }
13
+ type __VLS_Props = Props;
14
+ type __VLS_PublicProps = {
15
+ modelValue?: string[];
16
+ } & __VLS_Props;
17
+ declare function __VLS_template(): {
18
+ attrs: Partial<{}>;
19
+ slots: {
20
+ default?(_: {
21
+ label: string;
22
+ count: number;
23
+ empty: boolean;
24
+ allSelected: boolean;
25
+ visibleCount: number;
26
+ toggleAll: () => void;
27
+ clear: () => void;
28
+ }): any;
29
+ };
30
+ refs: {};
31
+ rootEl: any;
32
+ };
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ "update:modelValue": (value: string[]) => any;
36
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
38
+ }>, {
39
+ placeholder: string;
40
+ searchable: boolean;
41
+ placement: Placement;
42
+ offset: number;
43
+ summarize: (count: number, total: number) => string;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
+ export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };