@scalar/components 0.12.62 → 0.12.64
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.vue.d.ts +21 -19
- package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.stories.d.ts +4 -4
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts +7 -9
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +14 -11
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +255 -19
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts +14 -12
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +4 -10
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts +62 -8
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.d.ts +16 -15
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +14 -10
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +28 -21
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts +13 -8
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts +34 -25
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.vue.js +39 -31
- package/dist/components/ScalarIcon/IconList.vue.d.ts +3 -4
- package/dist/components/ScalarIcon/IconList.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +8 -13
- package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +10 -16
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +14 -19
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +56 -50
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/ScalarMarkdown.stories.d.ts +4 -4
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts +4 -9
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarModal/ScalarModal.vue.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +84 -12
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts +13 -6
- package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts +4 -8
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts +16 -12
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts +13 -8
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
- package/dist/components/ScalarTextField/ScalarTextField.stories.d.ts +4 -4
- package/dist/components/ScalarTextField/ScalarTextField.vue.d.ts +17 -22
- package/dist/components/ScalarTextField/ScalarTextField.vue.d.ts.map +1 -1
- package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts +4 -4
- package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts +5 -10
- package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts +17 -22
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts.map +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.stories.d.ts +4 -4
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.d.ts +4 -14
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,66 @@
|
|
|
1
1
|
import { type FloatingOptions } from '../ScalarFloating';
|
|
2
|
+
type __VLS_Props = Omit<FloatingOptions, 'middleware'>;
|
|
2
3
|
declare function __VLS_template(): {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
popover?(_: {
|
|
8
|
+
close: any;
|
|
9
|
+
open: any;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
popoverButtonRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
as: {
|
|
15
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
type: BooleanConstructor[];
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
id: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
26
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
29
|
+
id: string;
|
|
30
|
+
as: string | Record<string, any>;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
33
|
+
P: {};
|
|
34
|
+
B: {};
|
|
35
|
+
D: {};
|
|
36
|
+
C: {};
|
|
37
|
+
M: {};
|
|
38
|
+
Defaults: {};
|
|
39
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
as: {
|
|
41
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: BooleanConstructor[];
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
id: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: null;
|
|
51
|
+
};
|
|
52
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}>, {}, {}, {}, {
|
|
55
|
+
id: string;
|
|
56
|
+
as: string | Record<string, any>;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
}> | null;
|
|
59
|
+
};
|
|
60
|
+
rootEl: any;
|
|
8
61
|
};
|
|
9
|
-
|
|
62
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
63
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
10
64
|
popoverButtonRef: import("vue").Ref<import("vue").DefineComponent<{
|
|
11
65
|
as: {
|
|
12
66
|
type: (ObjectConstructor | StringConstructor)[];
|
|
@@ -72,8 +126,8 @@ declare const __VLS_component: import("vue").DefineComponent<Omit<FloatingOption
|
|
|
72
126
|
as: string | Record<string, any>;
|
|
73
127
|
disabled: boolean;
|
|
74
128
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any> | null>;
|
|
75
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
76
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
129
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
130
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
77
131
|
export default _default;
|
|
78
132
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
79
133
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarComboboxPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxPopover.vue"],"names":[],"mappings":"AA4DA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"ScalarComboboxPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxPopover.vue"],"names":[],"mappings":"AA4DA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,mBAAmB,CAAA;AAIxE,KAAK,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;AAuBvD,iBAAS,cAAc;WAiHT,OAAO,IAA6B;;yBAVpB,GAAG;;;;YACH,GAAG;;;;;;;;;;;;;;;;0BAtIjC,KAvB2B,eAuB3B,KAtBa,uBAsBb,KApBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwKA;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;oBAnKrB,KAvB2B,eAuB3B,KAtBa,uBAsBb,KApBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oPA8LC,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,25 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_component: import("vue").DefineComponent<{
|
|
6
|
-
align?: "start" | "center" | "end";
|
|
7
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
8
|
-
sideOffset?: number;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
triggerClass?: string;
|
|
11
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
12
|
-
align?: "start" | "center" | "end";
|
|
13
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
align?: 'start' | 'center' | 'end';
|
|
3
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
14
4
|
sideOffset?: number;
|
|
15
5
|
disabled?: boolean;
|
|
16
6
|
triggerClass?: string;
|
|
17
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
trigger?(_: {}): any;
|
|
12
|
+
content?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: any;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
19
|
disabled: boolean;
|
|
19
20
|
align: "start" | "center" | "end";
|
|
20
21
|
side: "top" | "right" | "bottom" | "left";
|
|
21
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
24
|
export default _default;
|
|
24
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
26
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarContextMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarContextMenu/ScalarContextMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarContextMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarContextMenu/ScalarContextMenu.vue"],"names":[],"mappings":"AAwDA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;AAoBJ,iBAAS,cAAc;WA6ET,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAvHN,OAAO;WAHV,OAAO,GAAG,QAAQ,GAAG,KAAK;UAC3B,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;6EAiI5C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -152,7 +152,7 @@ declare const meta: {
|
|
|
152
152
|
default?(_: {}): any;
|
|
153
153
|
};
|
|
154
154
|
});
|
|
155
|
-
ScalarDropdownDivider: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
155
|
+
ScalarDropdownDivider: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
156
156
|
ScalarButton: {
|
|
157
157
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
158
158
|
disabled?: boolean;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { type FloatingOptions } from '../ScalarFloating';
|
|
2
|
-
|
|
3
|
-
default?(_: {}): any;
|
|
4
|
-
items?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<Omit<FloatingOptions, "middleware"> & {
|
|
7
|
-
static?: boolean;
|
|
8
|
-
staticOpen?: boolean;
|
|
9
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Omit<FloatingOptions, "middleware"> & {
|
|
2
|
+
type __VLS_Props = Omit<FloatingOptions, 'middleware'> & {
|
|
10
3
|
static?: boolean;
|
|
11
4
|
staticOpen?: boolean;
|
|
12
|
-
}
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
items?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
17
|
static: boolean;
|
|
14
18
|
staticOpen: boolean;
|
|
15
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
21
|
export default _default;
|
|
18
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
23
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.vue"],"names":[],"mappings":"AA0DA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,mBAAmB,CAAA;AAIxE,KAAK,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,GAAG;IACnD,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;AAgBN,iBAAS,cAAc;WAoGT,OAAO,IAA6B;;yBATpB,GAAG;uBACL,GAAG;;;;EAa9B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAzIN,OAAO;gBACH,OAAO;6EA+IxB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, openBlock as r, createBlock as n, unref as s, withCtx as t, createVNode as i, createElementVNode as a, mergeProps as p, renderSlot as f, createCommentVNode as u } from "vue";
|
|
2
2
|
import { Menu as c, MenuItems as g, MenuButton as y } from "@headlessui/vue";
|
|
3
3
|
import B from "../ScalarFloating/ScalarFloating.vue.js";
|
|
4
|
-
const
|
|
4
|
+
const b = { class: "custom-scroll min-h-0 flex-1" }, v = /* @__PURE__ */ d({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "ScalarDropdown",
|
|
7
7
|
props: {
|
|
@@ -13,35 +13,42 @@ const R = /* @__PURE__ */ f({
|
|
|
13
13
|
static: { type: Boolean, default: !1 },
|
|
14
14
|
staticOpen: { type: Boolean, default: !0 }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
return (e, l) => (
|
|
18
|
-
default: t(({ open:
|
|
19
|
-
|
|
20
|
-
isOpen: e.static ? e.staticOpen :
|
|
16
|
+
setup(h) {
|
|
17
|
+
return (e, l) => (r(), n(s(c), null, {
|
|
18
|
+
default: t(({ open: m }) => [
|
|
19
|
+
i(s(B), {
|
|
20
|
+
isOpen: e.static ? e.staticOpen : m ?? e.isOpen,
|
|
21
21
|
placement: e.placement ?? "bottom-start",
|
|
22
22
|
resize: e.resize,
|
|
23
23
|
targetRef: e.targetRef,
|
|
24
24
|
teleport: e.teleport
|
|
25
25
|
}, {
|
|
26
|
-
floating: t(({ width:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
style: { width:
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
floating: t(({ width: o }) => [
|
|
27
|
+
a("div", p(e.$attrs, {
|
|
28
|
+
class: "relative flex max-h-[inherit] w-56 rounded border",
|
|
29
|
+
style: { width: o }
|
|
30
|
+
}), [
|
|
31
|
+
a("div", b, [
|
|
32
|
+
i(s(g), p({ class: "flex flex-col p-0.75" }, e.$attrs, {
|
|
33
|
+
static: e.static,
|
|
34
|
+
style: { width: o }
|
|
35
|
+
}), {
|
|
36
|
+
default: t(() => [
|
|
37
|
+
f(e.$slots, "items")
|
|
38
|
+
]),
|
|
39
|
+
_: 2
|
|
40
|
+
}, 1040, ["static", "style"]),
|
|
41
|
+
l[0] || (l[0] = a("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1))
|
|
42
|
+
])
|
|
43
|
+
], 16)
|
|
37
44
|
]),
|
|
38
45
|
default: t(() => [
|
|
39
|
-
e.static ?
|
|
46
|
+
e.static ? u("", !0) : (r(), n(s(y), {
|
|
40
47
|
key: 0,
|
|
41
48
|
as: "template"
|
|
42
49
|
}, {
|
|
43
50
|
default: t(() => [
|
|
44
|
-
|
|
51
|
+
f(e.$slots, "default")
|
|
45
52
|
]),
|
|
46
53
|
_: 3
|
|
47
54
|
}))
|
|
@@ -54,5 +61,5 @@ const R = /* @__PURE__ */ f({
|
|
|
54
61
|
}
|
|
55
62
|
});
|
|
56
63
|
export {
|
|
57
|
-
|
|
64
|
+
v as default
|
|
58
65
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=ScalarDropdownDivider.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarDropdownDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdownDivider.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ScalarDropdownDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdownDivider.vue"],"names":[],"mappings":";AA4DA,wBAMG"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
};
|
|
1
4
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
3
11
|
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
14
|
click: (event: MouseEvent) => any;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<{
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}> & Readonly<{
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
16
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
12
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
19
|
export default _default;
|
|
15
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
21
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdownItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdownItem.vue"],"names":[],"mappings":"AAsDA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA6BF,iBAAS,cAAc;WAoDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,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,32 +1,41 @@
|
|
|
1
1
|
import { type MiddlewareData } from '@floating-ui/vue';
|
|
2
2
|
import type { FloatingOptions } from './types';
|
|
3
|
-
declare function __VLS_template():
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** The
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/** The
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
/** The reference element for the element in the #floating slot */
|
|
7
|
+
default(): any;
|
|
8
|
+
/** The floating element */
|
|
9
|
+
floating(props: {
|
|
10
|
+
/** The width of the reference element if `resize` is true and placement is on the y axis */
|
|
11
|
+
width?: string;
|
|
12
|
+
/** The height of the reference element if `resize` is true and placement is on the x axis */
|
|
13
|
+
height?: string;
|
|
14
|
+
/** The middleware data return by Floating UI */
|
|
15
|
+
data?: MiddlewareData;
|
|
16
|
+
}): any;
|
|
17
|
+
}> & {
|
|
18
|
+
/** The reference element for the element in the #floating slot */
|
|
19
|
+
default(): any;
|
|
20
|
+
/** The floating element */
|
|
21
|
+
floating(props: {
|
|
22
|
+
/** The width of the reference element if `resize` is true and placement is on the y axis */
|
|
23
|
+
width?: string;
|
|
24
|
+
/** The height of the reference element if `resize` is true and placement is on the x axis */
|
|
25
|
+
height?: string;
|
|
26
|
+
/** The middleware data return by Floating UI */
|
|
27
|
+
data?: MiddlewareData;
|
|
28
|
+
}): any;
|
|
29
|
+
};
|
|
30
|
+
refs: {
|
|
31
|
+
wrapperRef: HTMLDivElement;
|
|
32
|
+
floatingRef: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
rootEl: any;
|
|
27
35
|
};
|
|
36
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
37
|
declare const __VLS_component: import("vue").DefineComponent<FloatingOptions, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FloatingOptions> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
39
|
export default _default;
|
|
31
40
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
41
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarFloating.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarFloating.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.vue"],"names":[],"mappings":"AA4GA,OAAO,EACL,KAAK,cAAc,EAOpB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AA4E9C,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;QA1HhD,kEAAkE;mBACvD,GAAG;QACd,2BAA2B;wBACX;YACd,4FAA4F;YAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,6FAA6F;YAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,gDAAgD;YAChD,IAAI,CAAC,EAAE,cAAc,CAAA;SACtB,GAAG,GAAG;;QAVP,kEAAkE;mBACvD,GAAG;QACd,2BAA2B;wBACX;YACd,4FAA4F;YAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,6FAA6F;YAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,gDAAgD;YAChD,IAAI,CAAC,EAAE,cAAc,CAAA;SACtB,GAAG,GAAG;;;;;;;EAqHR;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAMnB,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,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, ref as p, computed as a, openBlock as d, createElementBlock as R, Fragment as b, createElementVNode as r, normalizeClass as S, renderSlot as m, createBlock as k, Teleport as B, normalizeStyle as $, unref as f, createCommentVNode as x } from "vue";
|
|
2
2
|
import { getSideAxis as c } from "@floating-ui/utils";
|
|
3
|
-
import { useFloating as
|
|
4
|
-
import { useResizeWithTarget as
|
|
5
|
-
const
|
|
3
|
+
import { useFloating as C, autoUpdate as E, offset as F, flip as M, shift as O, size as W } from "@floating-ui/vue";
|
|
4
|
+
import { useResizeWithTarget as _ } from "./useResizeWithTarget.js";
|
|
5
|
+
const A = { class: "scalar-app" }, j = /* @__PURE__ */ z({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "ScalarFloating",
|
|
8
8
|
props: {
|
|
@@ -13,59 +13,67 @@ const O = { class: "scalar-app" }, H = /* @__PURE__ */ w({
|
|
|
13
13
|
isOpen: { type: Boolean },
|
|
14
14
|
teleport: { type: [Boolean, String] }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const t =
|
|
16
|
+
setup(g) {
|
|
17
|
+
const t = g, i = p(null), l = p(null), n = a(
|
|
18
18
|
() => {
|
|
19
|
-
var e,
|
|
20
|
-
return (t.targetRef || ((
|
|
19
|
+
var e, o;
|
|
20
|
+
return (t.targetRef || ((o = (e = l.value) == null ? void 0 : e.children) == null ? void 0 : o[0]) || l.value) ?? void 0;
|
|
21
21
|
}
|
|
22
|
-
), s =
|
|
23
|
-
enabled:
|
|
24
|
-
}),
|
|
22
|
+
), s = _(n, {
|
|
23
|
+
enabled: a(() => t.resize)
|
|
24
|
+
}), u = a(
|
|
25
25
|
() => c(t.placement || "bottom") === "y" ? s.width.value : void 0
|
|
26
|
-
), h =
|
|
26
|
+
), h = a(
|
|
27
27
|
() => c(t.placement || "bottom") === "x" ? s.height.value : void 0
|
|
28
|
-
), { floatingStyles:
|
|
29
|
-
placement:
|
|
30
|
-
whileElementsMounted:
|
|
31
|
-
middleware:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
), { floatingStyles: y, middlewareData: v } = C(n, i, {
|
|
29
|
+
placement: a(() => t.placement),
|
|
30
|
+
whileElementsMounted: E,
|
|
31
|
+
middleware: a(() => [
|
|
32
|
+
F(5),
|
|
33
|
+
M(),
|
|
34
|
+
O(),
|
|
35
|
+
W({
|
|
36
|
+
apply({ availableWidth: e, availableHeight: o, elements: w }) {
|
|
37
|
+
Object.assign(w.floating.style, {
|
|
38
|
+
maxWidth: `${Math.max(0, e) - 25}px`,
|
|
39
|
+
maxHeight: `${Math.max(0, o) - 25}px`
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
35
43
|
...t.middleware ?? []
|
|
36
44
|
])
|
|
37
45
|
});
|
|
38
|
-
return (e,
|
|
46
|
+
return (e, o) => (d(), R(b, null, [
|
|
39
47
|
r("div", {
|
|
40
48
|
ref_key: "wrapperRef",
|
|
41
|
-
ref:
|
|
49
|
+
ref: l,
|
|
42
50
|
class: S({ contents: !!e.$slots.default })
|
|
43
51
|
}, [
|
|
44
|
-
|
|
52
|
+
m(e.$slots, "default")
|
|
45
53
|
], 2),
|
|
46
|
-
e.isOpen ? (
|
|
54
|
+
e.isOpen ? (d(), k(B, {
|
|
47
55
|
key: 0,
|
|
48
56
|
disabled: !e.teleport,
|
|
49
57
|
to: typeof e.teleport == "string" ? e.teleport : "body"
|
|
50
58
|
}, [
|
|
51
|
-
r("div",
|
|
59
|
+
r("div", A, [
|
|
52
60
|
r("div", {
|
|
53
61
|
ref_key: "floatingRef",
|
|
54
|
-
ref:
|
|
62
|
+
ref: i,
|
|
55
63
|
class: "relative z-overlay",
|
|
56
|
-
style:
|
|
64
|
+
style: $(f(y))
|
|
57
65
|
}, [
|
|
58
|
-
|
|
59
|
-
data:
|
|
66
|
+
m(e.$slots, "floating", {
|
|
67
|
+
data: f(v),
|
|
60
68
|
height: h.value,
|
|
61
|
-
width:
|
|
69
|
+
width: u.value
|
|
62
70
|
})
|
|
63
71
|
], 4)
|
|
64
72
|
])
|
|
65
|
-
], 8, ["disabled", "to"])) :
|
|
73
|
+
], 8, ["disabled", "to"])) : x("", !0)
|
|
66
74
|
], 64));
|
|
67
75
|
}
|
|
68
76
|
});
|
|
69
77
|
export {
|
|
70
|
-
|
|
78
|
+
j as default
|
|
71
79
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
thickness?: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
5
|
export default _default;
|
|
7
6
|
//# sourceMappingURL=IconList.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/IconList.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"IconList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/IconList.vue"],"names":[],"mappings":"AAqDA,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AAsIF,wBAMG"}
|
|
@@ -4,6 +4,13 @@ import { type Icon, type Logo } from './utils/index.js';
|
|
|
4
4
|
* Icon wrapper for all icons and logos
|
|
5
5
|
*/
|
|
6
6
|
type IconVariants = VariantProps<typeof iconProps>;
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
icon?: Icon;
|
|
9
|
+
logo?: Logo;
|
|
10
|
+
size?: IconVariants['size'];
|
|
11
|
+
thickness?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
};
|
|
7
14
|
declare const iconProps: (props?: ({
|
|
8
15
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
|
|
9
16
|
} & ({
|
|
@@ -61,18 +68,6 @@ declare const iconProps: (props?: ({
|
|
|
61
68
|
[x: string]: any;
|
|
62
69
|
} | null | undefined;
|
|
63
70
|
})) | undefined) => string;
|
|
64
|
-
declare const _default: import("vue").DefineComponent<{
|
|
65
|
-
icon?: Icon;
|
|
66
|
-
logo?: Logo;
|
|
67
|
-
size?: IconVariants["size"];
|
|
68
|
-
thickness?: string;
|
|
69
|
-
label?: string;
|
|
70
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
71
|
-
icon?: Icon;
|
|
72
|
-
logo?: Logo;
|
|
73
|
-
size?: IconVariants["size"];
|
|
74
|
-
thickness?: string;
|
|
75
|
-
label?: string;
|
|
76
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
71
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
77
72
|
export default _default;
|
|
78
73
|
//# sourceMappingURL=ScalarIcon.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAIvC,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,IAAI,EAAoB,MAAM,SAAS,CAAA;AAIhE;;GAEG;AAEH,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"ScalarIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAIvC,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,IAAI,EAAoB,MAAM,SAAS,CAAA;AAIhE;;GAEG;AAEH,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAA;AAElD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAGF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAgBb,CAAA;;AAqFF,wBAOG"}
|
|
@@ -17,7 +17,7 @@ declare const meta: {
|
|
|
17
17
|
}> & Readonly<{}>, {
|
|
18
18
|
size: "xs" | "sm" | "md" | "full" | "xxs";
|
|
19
19
|
variant: string;
|
|
20
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
21
21
|
tags: string[];
|
|
22
22
|
argTypes: {
|
|
23
23
|
icon: {
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { VariantProps } from 'cva';
|
|
2
2
|
import { type Icon } from '../ScalarIcon';
|
|
3
3
|
type Variants = VariantProps<typeof variants>;
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
label: string;
|
|
6
|
+
icon: Icon;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
variant?: Variants['variant'];
|
|
9
|
+
size?: Variants['size'];
|
|
10
|
+
thickness?: string;
|
|
11
|
+
};
|
|
4
12
|
declare const variants: (props?: ({
|
|
5
13
|
size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
|
|
6
14
|
disabled?: boolean | undefined;
|
|
@@ -60,23 +68,9 @@ declare const variants: (props?: ({
|
|
|
60
68
|
[x: string]: any;
|
|
61
69
|
} | null | undefined;
|
|
62
70
|
})) | undefined) => string;
|
|
63
|
-
declare const _default: import("vue").DefineComponent<{
|
|
64
|
-
label: string;
|
|
65
|
-
icon: Icon;
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
variant?: Variants["variant"];
|
|
68
|
-
size?: Variants["size"];
|
|
69
|
-
thickness?: string;
|
|
70
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
71
|
-
label: string;
|
|
72
|
-
icon: Icon;
|
|
73
|
-
disabled?: boolean;
|
|
74
|
-
variant?: Variants["variant"];
|
|
75
|
-
size?: Variants["size"];
|
|
76
|
-
thickness?: string;
|
|
77
|
-
}> & Readonly<{}>, {
|
|
71
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
78
72
|
size: "xs" | "sm" | "md" | "full" | "xxs";
|
|
79
73
|
variant: string;
|
|
80
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
74
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
81
75
|
export default _default;
|
|
82
76
|
//# sourceMappingURL=ScalarIconButton.vue.d.ts.map
|