@scalar/components 0.12.76 → 0.13.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.
- package/dist/components/ScalarButton/ScalarButton.stories.d.ts +3 -0
- package/dist/components/ScalarButton/ScalarButton.stories.d.ts.map +1 -1
- package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarButton/ScalarButton.vue.js +29 -32
- package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts +30 -5
- package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +24 -7
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +34 -18
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +16 -82
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +23 -22
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts +7 -2
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +23 -28
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +25 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +58 -56
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts +5 -11
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +43 -43
- package/dist/components/ScalarCombobox/types.d.ts +4 -2
- package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/types.js +8 -3
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +73 -105
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +40 -22
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +32 -42
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts +35 -0
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts.map +1 -0
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +7 -0
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +37 -0
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts +17 -1
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +7 -6
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue2.js +4 -0
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts +18 -15
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +19 -29
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts +32 -0
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts.map +1 -0
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.js +28 -0
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue2.js +4 -0
- package/dist/components/ScalarDropdown/index.d.ts +2 -0
- package/dist/components/ScalarDropdown/index.d.ts.map +1 -1
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.spec.d.ts +2 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.spec.d.ts.map +1 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.stories.d.ts +6 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.stories.d.ts.map +1 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts +18 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts.map +1 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.js +23 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue2.js +4 -0
- package/dist/components/ScalarErrorBoundary/index.d.ts +2 -0
- package/dist/components/ScalarErrorBoundary/index.d.ts.map +1 -0
- package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts +4 -0
- package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts +5 -4
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.vue.js +32 -29
- package/dist/components/ScalarFloating/index.d.ts +1 -1
- package/dist/components/ScalarFloating/index.d.ts.map +1 -1
- package/dist/components/ScalarFloating/types.d.ts +15 -7
- package/dist/components/ScalarFloating/types.d.ts.map +1 -1
- package/dist/components/ScalarFloating/useResizeWithTarget.d.ts +3 -0
- package/dist/components/ScalarFloating/useResizeWithTarget.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +1 -0
- package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.vue.js +2 -2
- package/dist/components/ScalarIcon/ScalarIcon.vue2.js +18 -15
- package/dist/components/ScalarIcon/icons/Hide.svg.js +10 -9
- package/dist/components/ScalarIcon/icons/Show.svg.js +7 -8
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +10 -7
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +19 -21
- package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +52 -25
- package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +41 -22
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +46 -85
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts +8 -0
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts.map +1 -0
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +26 -0
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue2.js +4 -0
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts +8 -0
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts.map +1 -0
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +53 -0
- package/dist/components/ScalarListbox/ScalarListboxItem.vue2.js +4 -0
- package/dist/components/ScalarListbox/index.d.ts +3 -1
- package/dist/components/ScalarListbox/index.d.ts.map +1 -1
- package/dist/components/ScalarListbox/types.d.ts +1 -0
- package/dist/components/ScalarListbox/types.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +28 -6
- package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +2 -2
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.vue.js +3 -3
- package/dist/components/ScalarLoading/ScalarLoading.vue2.js +29 -30
- package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts +133 -108
- package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts +34 -18
- package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenu.vue.js +22 -20
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts +2 -2
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +25 -17
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +17 -10
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +2 -2
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +22 -16
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +25 -22
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +3 -3
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts +2 -2
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.js +18 -15
- package/dist/components/ScalarMenu/ScalarMenuSection.vue2.js +4 -0
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +18 -16
- package/dist/components/ScalarModal/ScalarModal.stories.d.ts +3 -3
- package/dist/components/ScalarModal/ScalarModal.vue.d.ts +2 -2
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +20 -116
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts +4 -11
- package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.vue.js +23 -24
- package/dist/components/ScalarPopover/index.d.ts +1 -0
- package/dist/components/ScalarPopover/index.d.ts.map +1 -1
- package/dist/components/ScalarPopover/types.d.ts +15 -0
- package/dist/components/ScalarPopover/types.d.ts.map +1 -0
- package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts +6 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts.map +1 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +3 -3
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +10 -10
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +31 -35
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +12 -18
- package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts +26 -39
- package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts.map +1 -1
- package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts +3 -5
- package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts.map +1 -1
- package/dist/components/ScalarToggle/ScalarToggle.vue.js +24 -35
- package/dist/hooks/useBindCx.d.ts +51 -0
- package/dist/hooks/useBindCx.d.ts.map +1 -0
- package/dist/hooks/useBindCx.js +34 -0
- package/dist/hooks/useBindCx.stories.d.ts +430 -0
- package/dist/hooks/useBindCx.stories.d.ts.map +1 -0
- package/dist/hooks/useBindCx.test.d.ts +2 -0
- package/dist/hooks/useBindCx.test.d.ts.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -68
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ declare const meta: {
|
|
|
11
11
|
bodyClass?: string;
|
|
12
12
|
maxWidth?: string;
|
|
13
13
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
14
|
-
variant?: "form" | "search" | "
|
|
14
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
15
15
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
16
16
|
size: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs";
|
|
17
17
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -27,7 +27,7 @@ declare const meta: {
|
|
|
27
27
|
bodyClass?: string;
|
|
28
28
|
maxWidth?: string;
|
|
29
29
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
30
|
-
variant?: "form" | "search" | "
|
|
30
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
31
31
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
32
32
|
size: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs";
|
|
33
33
|
}>;
|
|
@@ -40,7 +40,7 @@ declare const meta: {
|
|
|
40
40
|
bodyClass?: string;
|
|
41
41
|
maxWidth?: string;
|
|
42
42
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
43
|
-
variant?: "form" | "search" | "
|
|
43
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
44
44
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
45
45
|
size: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs";
|
|
46
46
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -10,14 +10,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
bodyClass?: string;
|
|
11
11
|
maxWidth?: string;
|
|
12
12
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
13
|
-
variant?: "form" | "search" | "
|
|
13
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
14
14
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
15
15
|
state: ReturnType<typeof useModal>;
|
|
16
16
|
title?: string;
|
|
17
17
|
bodyClass?: string;
|
|
18
18
|
maxWidth?: string;
|
|
19
19
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
20
|
-
variant?: "form" | "search" | "
|
|
20
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
21
21
|
}> & Readonly<{}>, {
|
|
22
22
|
size: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs";
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1,44 +1,19 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/vue3';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
component: {
|
|
4
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
5
|
-
resize?: boolean | undefined;
|
|
6
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
7
|
-
targetRef?: HTMLElement | undefined;
|
|
8
|
-
isOpen?: boolean | undefined;
|
|
9
|
-
teleport?: (boolean | string) | undefined;
|
|
10
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
11
5
|
P: {};
|
|
12
6
|
B: {};
|
|
13
7
|
D: {};
|
|
14
8
|
C: {};
|
|
15
9
|
M: {};
|
|
16
10
|
Defaults: {};
|
|
17
|
-
}, Readonly<{
|
|
18
|
-
resize?: boolean | undefined;
|
|
19
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
20
|
-
targetRef?: HTMLElement | undefined;
|
|
21
|
-
isOpen?: boolean | undefined;
|
|
22
|
-
teleport?: (boolean | string) | undefined;
|
|
23
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
+
}, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
24
12
|
__isFragment?: never;
|
|
25
13
|
__isTeleport?: never;
|
|
26
14
|
__isSuspense?: never;
|
|
27
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
28
|
-
|
|
29
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
30
|
-
targetRef?: HTMLElement | undefined;
|
|
31
|
-
isOpen?: boolean | undefined;
|
|
32
|
-
teleport?: (boolean | string) | undefined;
|
|
33
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
34
|
-
$slots: {
|
|
35
|
-
default?(_: {
|
|
36
|
-
open: any;
|
|
37
|
-
}): any;
|
|
38
|
-
popover?(_: {
|
|
39
|
-
close: () => any;
|
|
40
|
-
}): any;
|
|
41
|
-
};
|
|
15
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
16
|
+
$slots: Readonly<import("./types").Slots> & import("./types").Slots;
|
|
42
17
|
});
|
|
43
18
|
tags: string[];
|
|
44
19
|
argTypes: {
|
|
@@ -49,87 +24,40 @@ declare const meta: {
|
|
|
49
24
|
control: "select";
|
|
50
25
|
options: import("@floating-ui/utils").Placement[];
|
|
51
26
|
};
|
|
27
|
+
class: {
|
|
28
|
+
control: "text";
|
|
29
|
+
};
|
|
52
30
|
};
|
|
53
31
|
render: (args: import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
54
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
55
|
-
resize?: boolean | undefined;
|
|
56
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
57
|
-
targetRef?: HTMLElement | undefined;
|
|
58
|
-
isOpen?: boolean | undefined;
|
|
59
|
-
teleport?: (boolean | string) | undefined;
|
|
60
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
32
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
61
33
|
P: {};
|
|
62
34
|
B: {};
|
|
63
35
|
D: {};
|
|
64
36
|
C: {};
|
|
65
37
|
M: {};
|
|
66
38
|
Defaults: {};
|
|
67
|
-
}, Readonly<{
|
|
68
|
-
resize?: boolean | undefined;
|
|
69
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
70
|
-
targetRef?: HTMLElement | undefined;
|
|
71
|
-
isOpen?: boolean | undefined;
|
|
72
|
-
teleport?: (boolean | string) | undefined;
|
|
73
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
39
|
+
}, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
74
40
|
__isFragment?: never;
|
|
75
41
|
__isTeleport?: never;
|
|
76
42
|
__isSuspense?: never;
|
|
77
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
78
|
-
|
|
79
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
80
|
-
targetRef?: HTMLElement | undefined;
|
|
81
|
-
isOpen?: boolean | undefined;
|
|
82
|
-
teleport?: (boolean | string) | undefined;
|
|
83
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
84
|
-
$slots: {
|
|
85
|
-
default?(_: {
|
|
86
|
-
open: any;
|
|
87
|
-
}): any;
|
|
88
|
-
popover?(_: {
|
|
89
|
-
close: () => any;
|
|
90
|
-
}): any;
|
|
91
|
-
};
|
|
43
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
|
+
$slots: Readonly<import("./types").Slots> & import("./types").Slots;
|
|
92
45
|
})>) => {
|
|
93
46
|
components: {
|
|
94
47
|
ScalarPopover: {
|
|
95
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
96
|
-
resize?: boolean | undefined;
|
|
97
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
98
|
-
targetRef?: HTMLElement | undefined;
|
|
99
|
-
isOpen?: boolean | undefined;
|
|
100
|
-
teleport?: (boolean | string) | undefined;
|
|
101
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
48
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
102
49
|
P: {};
|
|
103
50
|
B: {};
|
|
104
51
|
D: {};
|
|
105
52
|
C: {};
|
|
106
53
|
M: {};
|
|
107
54
|
Defaults: {};
|
|
108
|
-
}, Readonly<{
|
|
109
|
-
resize?: boolean | undefined;
|
|
110
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
111
|
-
targetRef?: HTMLElement | undefined;
|
|
112
|
-
isOpen?: boolean | undefined;
|
|
113
|
-
teleport?: (boolean | string) | undefined;
|
|
114
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
55
|
+
}, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
115
56
|
__isFragment?: never;
|
|
116
57
|
__isTeleport?: never;
|
|
117
58
|
__isSuspense?: never;
|
|
118
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
119
|
-
|
|
120
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
121
|
-
targetRef?: HTMLElement | undefined;
|
|
122
|
-
isOpen?: boolean | undefined;
|
|
123
|
-
teleport?: (boolean | string) | undefined;
|
|
124
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
125
|
-
$slots: {
|
|
126
|
-
default?(_: {
|
|
127
|
-
open: any;
|
|
128
|
-
}): any;
|
|
129
|
-
popover?(_: {
|
|
130
|
-
close: () => any;
|
|
131
|
-
}): any;
|
|
132
|
-
};
|
|
59
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
60
|
+
$slots: Readonly<import("./types").Slots> & import("./types").Slots;
|
|
133
61
|
});
|
|
134
62
|
ScalarButton: {
|
|
135
63
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -189,44 +117,19 @@ declare const meta: {
|
|
|
189
117
|
};
|
|
190
118
|
setup(this: void): {
|
|
191
119
|
args: import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
192
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
193
|
-
resize?: boolean | undefined;
|
|
194
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
195
|
-
targetRef?: HTMLElement | undefined;
|
|
196
|
-
isOpen?: boolean | undefined;
|
|
197
|
-
teleport?: (boolean | string) | undefined;
|
|
198
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
120
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
199
121
|
P: {};
|
|
200
122
|
B: {};
|
|
201
123
|
D: {};
|
|
202
124
|
C: {};
|
|
203
125
|
M: {};
|
|
204
126
|
Defaults: {};
|
|
205
|
-
}, Readonly<{
|
|
206
|
-
resize?: boolean | undefined;
|
|
207
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
208
|
-
targetRef?: HTMLElement | undefined;
|
|
209
|
-
isOpen?: boolean | undefined;
|
|
210
|
-
teleport?: (boolean | string) | undefined;
|
|
211
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
127
|
+
}, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
212
128
|
__isFragment?: never;
|
|
213
129
|
__isTeleport?: never;
|
|
214
130
|
__isSuspense?: never;
|
|
215
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
216
|
-
|
|
217
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
218
|
-
targetRef?: HTMLElement | undefined;
|
|
219
|
-
isOpen?: boolean | undefined;
|
|
220
|
-
teleport?: (boolean | string) | undefined;
|
|
221
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
222
|
-
$slots: {
|
|
223
|
-
default?(_: {
|
|
224
|
-
open: any;
|
|
225
|
-
}): any;
|
|
226
|
-
popover?(_: {
|
|
227
|
-
close: () => any;
|
|
228
|
-
}): any;
|
|
229
|
-
};
|
|
131
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
132
|
+
$slots: Readonly<import("./types").Slots> & import("./types").Slots;
|
|
230
133
|
})>;
|
|
231
134
|
};
|
|
232
135
|
template: string;
|
|
@@ -235,4 +138,5 @@ declare const meta: {
|
|
|
235
138
|
export default meta;
|
|
236
139
|
type Story = StoryObj<typeof meta>;
|
|
237
140
|
export declare const Base: Story;
|
|
141
|
+
export declare const CustomClasses: Story;
|
|
238
142
|
//# sourceMappingURL=ScalarPopover.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarPopover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ScalarPopover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
type
|
|
1
|
+
import { type ScalarFloatingOptions } from '../ScalarFloating';
|
|
2
|
+
import type { Slots } from './types';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
5
|
-
slots:
|
|
6
|
-
default?(_: {
|
|
7
|
-
open: any;
|
|
8
|
-
}): any;
|
|
9
|
-
popover?(_: {
|
|
10
|
-
close: () => any;
|
|
11
|
-
}): any;
|
|
12
|
-
};
|
|
5
|
+
slots: Readonly<Slots> & Slots;
|
|
13
6
|
refs: {};
|
|
14
7
|
rootEl: any;
|
|
15
8
|
};
|
|
16
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<ScalarFloatingOptions, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
11
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
12
|
export default _default;
|
|
20
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.vue"],"names":[],"mappings":"AA2CA,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAiBpC,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;;;EAKjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sTAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as f, openBlock as m, createBlock as u, unref as e, withCtx as t, createVNode as r, normalizeProps as c, guardReactiveProps as _, mergeProps as g, renderSlot as s, createElementVNode as v } from "vue";
|
|
2
|
+
import { Popover as P, PopoverPanel as B, PopoverButton as b } from "@headlessui/vue";
|
|
3
|
+
import { useBindCx as x } from "../../hooks/useBindCx.js";
|
|
4
|
+
import y from "../ScalarFloating/ScalarFloating.vue.js";
|
|
5
|
+
const S = /* @__PURE__ */ f({
|
|
5
6
|
inheritAttrs: !1,
|
|
6
7
|
__name: "ScalarPopover",
|
|
7
8
|
props: {
|
|
8
9
|
placement: {},
|
|
9
10
|
resize: { type: Boolean },
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
target: {},
|
|
12
|
+
middleware: {},
|
|
12
13
|
teleport: { type: [Boolean, String] }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
teleport: e.teleport
|
|
20
|
-
}), {
|
|
15
|
+
setup($) {
|
|
16
|
+
const { cx: p } = x();
|
|
17
|
+
return (o, l) => (m(), u(e(P), { as: "template" }, {
|
|
18
|
+
default: t(({ open: a }) => [
|
|
19
|
+
r(e(y), c(_(o.$props)), {
|
|
21
20
|
floating: t(({ width: n, height: i }) => [
|
|
22
|
-
r(
|
|
23
|
-
class: "relative flex flex-col p-0.75",
|
|
21
|
+
r(e(B), g({
|
|
24
22
|
style: { width: n, height: i }
|
|
25
|
-
}, e
|
|
26
|
-
default: t(({ close:
|
|
27
|
-
|
|
28
|
-
close: () =>
|
|
23
|
+
}, e(p)("relative flex flex-col p-0.75")), {
|
|
24
|
+
default: t(({ close: d }) => [
|
|
25
|
+
s(o.$slots, "popover", {
|
|
26
|
+
close: () => d(),
|
|
27
|
+
open: a
|
|
29
28
|
}),
|
|
30
|
-
l[0] || (l[0] =
|
|
29
|
+
l[0] || (l[0] = v("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1))
|
|
31
30
|
]),
|
|
32
31
|
_: 2
|
|
33
32
|
}, 1040, ["style"])
|
|
34
33
|
]),
|
|
35
34
|
default: t(() => [
|
|
36
|
-
r(
|
|
35
|
+
r(e(b), { as: "template" }, {
|
|
37
36
|
default: t(() => [
|
|
38
|
-
|
|
37
|
+
s(o.$slots, "default", { open: a })
|
|
39
38
|
]),
|
|
40
39
|
_: 2
|
|
41
40
|
}, 1024)
|
|
42
41
|
]),
|
|
43
42
|
_: 2
|
|
44
|
-
}, 1040
|
|
43
|
+
}, 1040)
|
|
45
44
|
]),
|
|
46
45
|
_: 3
|
|
47
46
|
}));
|
|
48
47
|
}
|
|
49
48
|
});
|
|
50
49
|
export {
|
|
51
|
-
|
|
50
|
+
S as default
|
|
52
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAE9D,YAAY,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
export type Slots = {
|
|
3
|
+
default(props: {
|
|
4
|
+
/** Whether or not the popover is open */
|
|
5
|
+
open: boolean;
|
|
6
|
+
}): Slot;
|
|
7
|
+
/** The popover contents */
|
|
8
|
+
popover(props: {
|
|
9
|
+
/** Whether or not the popover is open */
|
|
10
|
+
open: boolean;
|
|
11
|
+
/** A callback to close the popover */
|
|
12
|
+
close: () => void;
|
|
13
|
+
}): Slot;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,CAAC,KAAK,EAAE;QACb,yCAAyC;QACzC,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,IAAI,CAAA;IACR,2BAA2B;IAC3B,OAAO,CAAC,KAAK,EAAE;QACb,yCAAyC;QACzC,IAAI,EAAE,OAAO,CAAA;QACb,sCAAsC;QACtC,KAAK,EAAE,MAAM,IAAI,CAAA;KAClB,GAAG,IAAI,CAAA;CACT,CAAA"}
|
|
@@ -19,7 +19,11 @@ declare const meta: {
|
|
|
19
19
|
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
tags: string[];
|
|
22
|
-
argTypes: {
|
|
22
|
+
argTypes: {
|
|
23
|
+
class: {
|
|
24
|
+
control: "text";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
23
27
|
render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
|
|
24
28
|
loading?: import("../ScalarLoading").LoadingState;
|
|
25
29
|
modelValue?: string;
|
|
@@ -86,4 +90,5 @@ export default meta;
|
|
|
86
90
|
type Story = StoryObj<typeof meta>;
|
|
87
91
|
export declare const Base: Story;
|
|
88
92
|
export declare const Loading: Story;
|
|
93
|
+
export declare const CustomClasses: Story;
|
|
89
94
|
//# sourceMappingURL=ScalarSearchInput.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSearchInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchInput/ScalarSearchInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ScalarSearchInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchInput/ScalarSearchInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcgC,CAAA;AAE1C,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./ScalarSearchInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const c = /* @__PURE__ */ o
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5b435217"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as b, ref as h, computed as g, useAttrs as k, openBlock as s, createElementBlock as v, normalizeClass as i, unref as a, createBlock as o, createCommentVNode as u, createElementVNode as S, mergeProps as V } from "vue";
|
|
2
2
|
import { cva as y, cx as c } from "../../cva.js";
|
|
3
3
|
import C from "../ScalarIcon/ScalarIcon.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
4
|
+
import z from "../ScalarLoading/ScalarLoading.vue.js";
|
|
5
|
+
import B from "../ScalarIconButton/ScalarIconButton.vue.js";
|
|
6
|
+
const I = ["aria-label", "value"], q = /* @__PURE__ */ b({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "ScalarSearchInput",
|
|
9
9
|
props: {
|
|
@@ -13,14 +13,14 @@ const B = ["aria-label", "value"], q = /* @__PURE__ */ b({
|
|
|
13
13
|
label: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue"],
|
|
16
|
-
setup(
|
|
16
|
+
setup(E, { expose: d, emit: m }) {
|
|
17
17
|
const t = m, r = h(null);
|
|
18
18
|
function p(e) {
|
|
19
19
|
t("update:modelValue", e.target.value);
|
|
20
20
|
}
|
|
21
21
|
const n = g(() => {
|
|
22
22
|
const { class: e, ...l } = k();
|
|
23
|
-
return {
|
|
23
|
+
return { class: e || "", rest: l };
|
|
24
24
|
}), f = y({
|
|
25
25
|
base: "search-background flex items-center rounded border text-sm font-medium has-[:focus-visible]:bg-b-1 has-[:focus-visible]:outline",
|
|
26
26
|
variants: {
|
|
@@ -40,7 +40,7 @@ const B = ["aria-label", "value"], q = /* @__PURE__ */ b({
|
|
|
40
40
|
(e = r.value) == null || e.blur();
|
|
41
41
|
}
|
|
42
42
|
}), (e, l) => (s(), v("label", {
|
|
43
|
-
class: i(a(c)(a(f)({ sidebar: e.sidebar }), n.value.
|
|
43
|
+
class: i(a(c)(a(f)({ sidebar: e.sidebar }), n.value.class))
|
|
44
44
|
}, [
|
|
45
45
|
e.sidebar ? (s(), o(a(C), {
|
|
46
46
|
key: 0,
|
|
@@ -63,19 +63,19 @@ const B = ["aria-label", "value"], q = /* @__PURE__ */ b({
|
|
|
63
63
|
type: "search",
|
|
64
64
|
value: e.modelValue,
|
|
65
65
|
onInput: p
|
|
66
|
-
}), null, 16,
|
|
67
|
-
e.loading && e.loading.isLoading ? (s(), o(a(
|
|
66
|
+
}), null, 16, I),
|
|
67
|
+
e.loading && e.loading.isLoading ? (s(), o(a(z), {
|
|
68
68
|
key: 1,
|
|
69
69
|
class: "mr-3 self-center",
|
|
70
70
|
loadingState: e.loading,
|
|
71
71
|
size: "md"
|
|
72
|
-
}, null, 8, ["loadingState"])) : e.modelValue ? (s(), o(a(
|
|
72
|
+
}, null, 8, ["loadingState"])) : e.modelValue ? (s(), o(a(B), {
|
|
73
73
|
key: 2,
|
|
74
74
|
class: i(a(c)("p-0", e.sidebar ? "h-4 w-4" : "h-5 w-5")),
|
|
75
75
|
icon: "Close",
|
|
76
76
|
label: "Clear Search",
|
|
77
77
|
thickness: e.sidebar ? "1.75" : "1.5",
|
|
78
|
-
onClick: l[0] || (l[0] = (
|
|
78
|
+
onClick: l[0] || (l[0] = (N) => t("update:modelValue", ""))
|
|
79
79
|
}, null, 8, ["class", "thickness"])) : u("", !0)
|
|
80
80
|
], 2));
|
|
81
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AA6DA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAWF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;sBAXxB,GAAG;yBACA,GAAG;uBACL,GAAG;6BACG,GAAG;;;;EAanC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,67 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as a, openBlock as t, createElementBlock as s, createElementVNode as o, normalizeProps as d, guardReactiveProps as m, unref as l, renderSlot as n, createBlock as p, createCommentVNode as r } from "vue";
|
|
2
|
+
import { useBindCx as u } from "../../hooks/useBindCx.js";
|
|
3
|
+
import f from "../ScalarIcon/ScalarIcon.vue.js";
|
|
4
4
|
const h = {
|
|
5
5
|
class: "contents",
|
|
6
6
|
role: "option"
|
|
7
|
-
},
|
|
7
|
+
}, v = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "flex h-fit items-center text-sm font-medium text-c-3 group-hover:text-c-1"
|
|
10
|
-
}, x = { class: "flex min-w-0 flex-1 flex-col gap-0.75" },
|
|
10
|
+
}, x = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, _ = { class: "flex items-center gap-1" }, g = { class: "flex-1 truncate text-sm font-medium" }, k = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "text-sm text-c-2"
|
|
13
|
-
},
|
|
13
|
+
}, y = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "truncate text-sm text-c-2"
|
|
16
|
-
},
|
|
16
|
+
}, C = /* @__PURE__ */ a({
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "ScalarSearchResultItem",
|
|
19
19
|
props: {
|
|
20
20
|
icon: {},
|
|
21
21
|
active: { type: Boolean }
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const c =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return (e, o) => (t(), n("li", h, [
|
|
29
|
-
s("a", u(c.value.rest, {
|
|
30
|
-
class: a(f)(
|
|
23
|
+
setup($) {
|
|
24
|
+
const { cx: c } = u();
|
|
25
|
+
return (e, i) => (t(), s("li", h, [
|
|
26
|
+
o("a", d(m(
|
|
27
|
+
l(c)(
|
|
31
28
|
"group flex cursor-pointer gap-2.5 rounded px-3 py-1.5 no-underline hover:bg-b-2",
|
|
32
29
|
{
|
|
33
30
|
"bg-b-2": e.active
|
|
34
|
-
}
|
|
35
|
-
c.value.className
|
|
31
|
+
}
|
|
36
32
|
)
|
|
37
|
-
|
|
38
|
-
e.icon ? (t(),
|
|
39
|
-
|
|
40
|
-
e.icon ? (t(), p(
|
|
33
|
+
)), [
|
|
34
|
+
e.icon ? (t(), s("div", v, [
|
|
35
|
+
n(e.$slots, "icon", {}, () => [
|
|
36
|
+
e.icon ? (t(), p(l(f), {
|
|
41
37
|
key: 0,
|
|
42
38
|
icon: e.icon,
|
|
43
39
|
size: "sm"
|
|
44
|
-
}, null, 8, ["icon"])) :
|
|
40
|
+
}, null, 8, ["icon"])) : r("", !0)
|
|
45
41
|
]),
|
|
46
|
-
|
|
47
|
-
])) :
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
i[0] || (i[0] = o("span", null, " ", -1))
|
|
43
|
+
])) : r("", !0),
|
|
44
|
+
o("div", x, [
|
|
45
|
+
o("div", _, [
|
|
46
|
+
o("div", g, [
|
|
47
|
+
n(e.$slots, "default")
|
|
52
48
|
]),
|
|
53
|
-
e.$slots.addon ? (t(),
|
|
54
|
-
|
|
55
|
-
])) :
|
|
49
|
+
e.$slots.addon ? (t(), s("div", k, [
|
|
50
|
+
n(e.$slots, "addon")
|
|
51
|
+
])) : r("", !0)
|
|
56
52
|
]),
|
|
57
|
-
e.$slots.description ? (t(),
|
|
58
|
-
|
|
59
|
-
])) :
|
|
53
|
+
e.$slots.description ? (t(), s("div", y, [
|
|
54
|
+
n(e.$slots, "description")
|
|
55
|
+
])) : r("", !0)
|
|
60
56
|
])
|
|
61
57
|
], 16)
|
|
62
58
|
]));
|
|
63
59
|
}
|
|
64
60
|
});
|
|
65
61
|
export {
|
|
66
|
-
|
|
62
|
+
C as default
|
|
67
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSearchResultList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSearchResultList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultList.vue"],"names":[],"mappings":"AA+BA,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAWF,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;2BATnB,GAAG;yBACL,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|