@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,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,24 @@
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
+ selected: boolean;
11
+ }): any;
12
+ };
13
+ refs: {};
14
+ rootEl: HTMLButtonElement;
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, {}, HTMLButtonElement>;
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,7 @@
1
+ interface Props {
2
+ placeholder?: string;
3
+ }
4
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
5
+ placeholder: string;
6
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { InputProps } from '../../../variants/input';
3
+ interface Props {
4
+ label?: string;
5
+ empty?: boolean;
6
+ variant?: InputProps["variant"];
7
+ size?: InputProps["size"];
8
+ class?: HTMLAttributes["class"];
9
+ }
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
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
+ variant: "primary" | "contrast" | null;
21
+ size: "base" | "sm" | null;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, 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,13 @@
1
+ import { InjectionKey, Ref, ComputedRef } from 'vue';
2
+ export interface MultiSelectOption {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ export interface MultiSelectContext {
7
+ isSelected: (value: string) => boolean;
8
+ toggle: (value: string) => void;
9
+ query: Ref<string>;
10
+ searchable: ComputedRef<boolean>;
11
+ matchesQuery: (label: string) => boolean;
12
+ }
13
+ export declare const MultiSelectKey: InjectionKey<MultiSelectContext>;
@@ -0,0 +1,5 @@
1
+ export { default as MultiSelect } from './MultiSelect.vue';
2
+ export { default as MultiSelectTrigger } from './MultiSelectTrigger.vue';
3
+ export { default as MultiSelectContent } from './MultiSelectContent.vue';
4
+ export { default as MultiSelectSearch } from './MultiSelectSearch.vue';
5
+ export { default as MultiSelectItem } from './MultiSelectItem.vue';
@@ -0,0 +1,2 @@
1
+ import { MultiSelectContext } from './context';
2
+ export declare const useMultiSelectContext: (part: string) => MultiSelectContext;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ import { Placement } from '../../../core/placement';
2
+ interface Props {
3
+ modelValue: string;
4
+ searchable?: boolean;
5
+ placement?: Placement;
6
+ offset?: number;
7
+ class?: string;
8
+ }
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ default?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ "update:modelValue": (value: string) => any;
20
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
21
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
+ }>, {
23
+ searchable: boolean;
24
+ placement: Placement;
25
+ offset: number;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,28 @@
1
+ import { PopoverVariantsProps } from '../../../variants/popover';
2
+ interface Props {
3
+ /**
4
+ * Panel width. "full" (default) matches the trigger via CSS adaptive-width
5
+ * (both fill Float's relative box). Any size token gives a fixed width.
6
+ */
7
+ width?: PopoverVariantsProps["size"];
8
+ class?: string;
9
+ }
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
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
+ width: "lg" | "sm" | "xs" | "fit" | "full" | "3xs" | "2xs" | "md" | null;
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,34 @@
1
+ interface Props {
2
+ value: string;
3
+ /**
4
+ * Display label for this option. Provide it so a pre-filled select shows
5
+ * the correct label before any click. If omitted, falls back to the
6
+ * rendered slot text (only available after the item renders).
7
+ */
8
+ label?: string;
9
+ disabled?: boolean;
10
+ }
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {
15
+ active: any;
16
+ selected: any;
17
+ }): any;
18
+ };
19
+ refs: {
20
+ labelEl: HTMLSpanElement;
21
+ };
22
+ rootEl: any;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ 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, {
26
+ labelEl: HTMLSpanElement;
27
+ }, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ placeholder?: string;
3
+ }
4
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
5
+ placeholder: string;
6
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,31 @@
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 function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {
12
+ selected: string;
13
+ label: string;
14
+ }): any;
15
+ };
16
+ refs: {};
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<{}>, {
21
+ variant: "primary" | "contrast" | null;
22
+ size: "base" | "sm" | null;
23
+ placeholder: string;
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,32 @@
1
+ import { InjectionKey, Ref, ComputedRef } from 'vue';
2
+ export interface SelectOption {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ /**
7
+ * Shared state for the Select compound component. Select provides this; the
8
+ * parts (Trigger, Content, Search, Item) inject it. Typed via an InjectionKey
9
+ * so the contract is compile-time checked — no magic strings.
10
+ */
11
+ export interface SelectContext {
12
+ /** Currently selected value (single-select). */
13
+ selected: ComputedRef<string>;
14
+ /** Display label of the current selection, resolved from registered items. */
15
+ selectedLabel: ComputedRef<string>;
16
+ /** Set the selection. Called by SelectItem with its value and label. */
17
+ select: (value: string, label: string) => void;
18
+ /** Whether a given value is the current selection. */
19
+ isSelected: (value: string) => boolean;
20
+ /**
21
+ * Register an item's value→label mapping so the trigger can display the
22
+ * correct label for a pre-filled modelValue, before any click.
23
+ */
24
+ registerLabel: (value: string, label: string) => void;
25
+ /** Live search query (two-way, owned by Select, written by SelectSearch). */
26
+ query: Ref<string>;
27
+ /** Whether search is enabled for this select. */
28
+ searchable: ComputedRef<boolean>;
29
+ /** The accessible id base, for wiring label/listbox relationships. */
30
+ id: string;
31
+ }
32
+ export declare const SelectKey: InjectionKey<SelectContext>;
@@ -0,0 +1,6 @@
1
+ export { default as Select } from './Select.vue';
2
+ export { default as SelectTrigger } from './SelectTrigger.vue';
3
+ export { default as SelectContent } from './SelectContent.vue';
4
+ export { default as SelectSearch } from './SelectSearch.vue';
5
+ export { default as SelectItem } from './SelectItem.vue';
6
+ export type { SelectContext, SelectOption } from './context';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,49 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { ModalCloseReason } from './modal-context';
3
+ import { ModalVariantsProps } from '../../../variants/modal';
4
+ interface Props {
5
+ modelValue: boolean;
6
+ size?: ModalVariantsProps["size"];
7
+ closeOnBackdrop?: boolean;
8
+ persistent?: boolean;
9
+ /**
10
+ * Run before any close. Return false (or a Promise resolving false) to
11
+ * veto the close and keep the modal open — e.g. an "unsaved changes?"
12
+ * confirmation. Receives the reason the close was attempted.
13
+ */
14
+ beforeClose?: (reason: ModalCloseReason) => boolean | Promise<boolean>;
15
+ class?: HTMLAttributes["class"];
16
+ }
17
+ declare function __VLS_template(): {
18
+ attrs: Partial<{}>;
19
+ slots: {
20
+ default?(_: {
21
+ close: () => void;
22
+ }): any;
23
+ };
24
+ refs: {
25
+ dialogRef: HTMLDivElement;
26
+ };
27
+ rootEl: any;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ close: (reason: ModalCloseReason) => any;
32
+ "update:modelValue": (value: boolean) => any;
33
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
34
+ onClose?: ((reason: ModalCloseReason) => any) | undefined;
35
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
36
+ }>, {
37
+ size: "xl" | "lg" | "sm" | "5xl" | "4xl" | "3xl" | "2xl" | "full" | "md" | null;
38
+ closeOnBackdrop: boolean;
39
+ persistent: boolean;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
41
+ dialogRef: HTMLDivElement;
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,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: any;
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, {}, any>;
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: 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: 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: 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: HTMLHeadingElement;
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, {}, HTMLHeadingElement>;
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,7 @@
1
+ export { default as Modal } from './Modal.vue';
2
+ export { default as ModalHeader } from './ModalHeader.vue';
3
+ export { default as ModalTitle } from './ModalTitle.vue';
4
+ export { default as ModalDescription } from './ModalDescription.vue';
5
+ export { default as ModalContent } from './ModalContent.vue';
6
+ export { default as ModalFooter } from './ModalFooter.vue';
7
+ export { default as ModalClose } from './ModalClose.vue';
@@ -0,0 +1,17 @@
1
+ import { Ref } from 'vue';
2
+ export type ModalCloseReason = "escape" | "backdrop" | "close-button" | "programmatic";
3
+ export interface ModalContext {
4
+ /** Route a close through the modal's veto/reason funnel. */
5
+ attemptClose: (reason: ModalCloseReason) => void;
6
+ /**
7
+ * Convenience alias used by slot props: closes programmatically.
8
+ * Equivalent to attemptClose("programmatic").
9
+ */
10
+ close: () => void;
11
+ labelId: Ref<string | undefined>;
12
+ setLabelId: (id: string | undefined) => void;
13
+ descriptionId: Ref<string | undefined>;
14
+ setDescriptionId: (id: string | undefined) => void;
15
+ }
16
+ export declare const provideModalContext: (ctx: ModalContext) => void;
17
+ export declare const useModalContext: () => ModalContext;
@@ -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,27 @@
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?(_: {
11
+ close: any;
12
+ }): any;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
19
+ size: "lg" | "sm" | "xs" | "fit" | "full" | "3xs" | "2xs" | "md" | null;
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,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,3 @@
1
+ export { default as Popover } from './Popover.vue';
2
+ export { default as PopoverTrigger } from './PopoverTrigger.vue';
3
+ export { default as PopoverContent } from './PopoverContent.vue';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { AvatarProps } from '../../variants/avatar';
3
+ interface Props {
4
+ size?: AvatarProps["size"];
5
+ src?: string | null;
6
+ name?: string | null;
7
+ class?: HTMLAttributes["class"];
8
+ }
9
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
10
+ size: "xl" | "lg" | "base" | "sm" | "10xl" | "9xl" | "8xl" | "7xl" | "6xl" | "5xl" | "4xl" | "3xl" | "2xl" | "xs" | null;
11
+ src: string | null;
12
+ name: string | null;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};