@scalar/components 0.14.12 → 0.14.14
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 +12 -12
- package/dist/components/ScalarButton/ScalarButton.vue.d.ts +1 -1
- package/dist/components/ScalarButton/variants.d.ts +7 -2
- package/dist/components/ScalarButton/variants.d.ts.map +1 -1
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +6 -2
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +58 -52
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +0 -1
- package/dist/components/ScalarContextMenu/ScalarContextMenu.stories.d.ts +3 -3
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +3 -3
- package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts +3 -4
- package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/utils/index.d.ts +2 -0
- package/dist/components/ScalarIcon/utils/index.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +8 -20
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +17 -77
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +30 -31
- package/dist/components/ScalarIconButton/types.d.ts +50 -0
- package/dist/components/ScalarIconButton/types.d.ts.map +1 -0
- package/dist/components/ScalarIconButton/variants.d.ts +62 -0
- package/dist/components/ScalarIconButton/variants.d.ts.map +1 -0
- package/dist/components/ScalarIconButton/variants.js +32 -0
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +25 -26
- package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +3 -3
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts +2 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +2 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +3 -3
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts +2 -2
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts +3 -3
- package/dist/components/ScalarSidebar/ScalarSidebar.stories.d.ts +2 -3
- package/dist/components/ScalarSidebar/ScalarSidebar.stories.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +22 -22
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts +3 -9
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +33 -26
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue3.js +5 -0
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts +3 -2
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.d.ts +4 -0
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.js +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue2.js +12 -11
- package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.js +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebarPlayground.vue.d.ts +30 -0
- package/dist/components/ScalarSidebar/ScalarSidebarPlayground.vue.d.ts.map +1 -0
- package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.js +6 -6
- package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.d.ts +37 -0
- package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.d.ts.map +1 -0
- package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.d.ts +18 -0
- package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.d.ts.map +1 -0
- package/dist/components/ScalarSidebar/types.d.ts +2 -1
- package/dist/components/ScalarSidebar/types.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts +15 -15
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts +21 -17
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.js +13 -11
- package/dist/components/ScalarTooltip/constants.d.ts +2 -0
- package/dist/components/ScalarTooltip/constants.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/constants.js +5 -4
- package/dist/components/ScalarTooltip/index.d.ts +2 -0
- package/dist/components/ScalarTooltip/index.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/types.d.ts +3 -2
- package/dist/components/ScalarTooltip/types.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/useTooltip.js +17 -17
- package/dist/components/ScalarTooltip/useTooltip.test.d.ts.map +1 -0
- package/dist/index.js +155 -152
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue2.js +0 -4
- package/dist/components/ScalarTooltip/__tests__/useTooltip.test.d.ts.map +0 -1
- /package/dist/components/ScalarTooltip/{__tests__/useTooltip.test.d.ts → useTooltip.test.d.ts} +0 -0
|
@@ -14,7 +14,7 @@ declare const meta: {
|
|
|
14
14
|
type?: "button" | "submit" | "reset";
|
|
15
15
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
16
16
|
size: "sm" | "md";
|
|
17
|
-
variant:
|
|
17
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
18
18
|
fullWidth: boolean;
|
|
19
19
|
type: "button" | "submit" | "reset";
|
|
20
20
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -33,7 +33,7 @@ declare const meta: {
|
|
|
33
33
|
type?: "button" | "submit" | "reset";
|
|
34
34
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
35
35
|
size: "sm" | "md";
|
|
36
|
-
variant:
|
|
36
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
37
37
|
fullWidth: boolean;
|
|
38
38
|
type: "button" | "submit" | "reset";
|
|
39
39
|
}>;
|
|
@@ -49,7 +49,7 @@ declare const meta: {
|
|
|
49
49
|
type?: "button" | "submit" | "reset";
|
|
50
50
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
51
51
|
size: "sm" | "md";
|
|
52
|
-
variant:
|
|
52
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
53
53
|
fullWidth: boolean;
|
|
54
54
|
type: "button" | "submit" | "reset";
|
|
55
55
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -87,7 +87,7 @@ declare const meta: {
|
|
|
87
87
|
type?: "button" | "submit" | "reset";
|
|
88
88
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
89
89
|
size: "sm" | "md";
|
|
90
|
-
variant:
|
|
90
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
91
91
|
fullWidth: boolean;
|
|
92
92
|
type: "button" | "submit" | "reset";
|
|
93
93
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -106,7 +106,7 @@ declare const meta: {
|
|
|
106
106
|
type?: "button" | "submit" | "reset";
|
|
107
107
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
108
108
|
size: "sm" | "md";
|
|
109
|
-
variant:
|
|
109
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
110
110
|
fullWidth: boolean;
|
|
111
111
|
type: "button" | "submit" | "reset";
|
|
112
112
|
}>;
|
|
@@ -122,7 +122,7 @@ declare const meta: {
|
|
|
122
122
|
type?: "button" | "submit" | "reset";
|
|
123
123
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
124
124
|
size: "sm" | "md";
|
|
125
|
-
variant:
|
|
125
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
126
126
|
fullWidth: boolean;
|
|
127
127
|
type: "button" | "submit" | "reset";
|
|
128
128
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -143,7 +143,7 @@ declare const meta: {
|
|
|
143
143
|
type?: "button" | "submit" | "reset";
|
|
144
144
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
145
145
|
size: "sm" | "md";
|
|
146
|
-
variant:
|
|
146
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
147
147
|
fullWidth: boolean;
|
|
148
148
|
type: "button" | "submit" | "reset";
|
|
149
149
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -162,7 +162,7 @@ declare const meta: {
|
|
|
162
162
|
type?: "button" | "submit" | "reset";
|
|
163
163
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
164
164
|
size: "sm" | "md";
|
|
165
|
-
variant:
|
|
165
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
166
166
|
fullWidth: boolean;
|
|
167
167
|
type: "button" | "submit" | "reset";
|
|
168
168
|
}>;
|
|
@@ -178,7 +178,7 @@ declare const meta: {
|
|
|
178
178
|
type?: "button" | "submit" | "reset";
|
|
179
179
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
180
180
|
size: "sm" | "md";
|
|
181
|
-
variant:
|
|
181
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
182
182
|
fullWidth: boolean;
|
|
183
183
|
type: "button" | "submit" | "reset";
|
|
184
184
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -200,7 +200,7 @@ declare const meta: {
|
|
|
200
200
|
type?: "button" | "submit" | "reset";
|
|
201
201
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
202
202
|
size: "sm" | "md";
|
|
203
|
-
variant:
|
|
203
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
204
204
|
fullWidth: boolean;
|
|
205
205
|
type: "button" | "submit" | "reset";
|
|
206
206
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -219,7 +219,7 @@ declare const meta: {
|
|
|
219
219
|
type?: "button" | "submit" | "reset";
|
|
220
220
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
221
221
|
size: "sm" | "md";
|
|
222
|
-
variant:
|
|
222
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
223
223
|
fullWidth: boolean;
|
|
224
224
|
type: "button" | "submit" | "reset";
|
|
225
225
|
}>;
|
|
@@ -235,7 +235,7 @@ declare const meta: {
|
|
|
235
235
|
type?: "button" | "submit" | "reset";
|
|
236
236
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
237
237
|
size: "sm" | "md";
|
|
238
|
-
variant:
|
|
238
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
239
239
|
fullWidth: boolean;
|
|
240
240
|
type: "button" | "submit" | "reset";
|
|
241
241
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -24,7 +24,7 @@ declare function __VLS_template(): {
|
|
|
24
24
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
25
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
26
|
size: "sm" | "md";
|
|
27
|
-
variant:
|
|
27
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
28
28
|
fullWidth: boolean;
|
|
29
29
|
type: "button" | "submit" | "reset";
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { VariantProps } from 'cva';
|
|
2
|
-
export declare const styles:
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
readonly solid: readonly ["scalar-button-solid", "bg-b-btn text-c-btn shadow-sm focus-visible:border-c-btn active:bg-b-btn active:shadow-none hover:bg-h-btn outline-offset-1"];
|
|
4
|
+
readonly outlined: readonly ["scalar-button-outlined", "active:bg-btn-1 border border-solid border-border bg-b-1 text-c-1 hover:bg-b-2 shadow"];
|
|
5
|
+
readonly ghost: readonly ["scalar-button-ghost", "bg-transparent text-c-3 active:text-c-1 hover:text-c-1"];
|
|
6
|
+
readonly danger: readonly ["scalar-button-danger", "bg-c-danger text-white active:brightness-90 hover:brightness-90"];
|
|
7
|
+
};
|
|
3
8
|
export declare const variants: (props?: ({
|
|
4
9
|
disabled?: boolean | undefined;
|
|
5
10
|
fullWidth?: boolean | undefined;
|
|
6
11
|
size?: "sm" | "md" | undefined;
|
|
7
|
-
variant?:
|
|
12
|
+
variant?: "solid" | "outlined" | "ghost" | "danger" | undefined;
|
|
8
13
|
} & ({
|
|
9
14
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
10
15
|
[x: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarButton/variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarButton/variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,MAAM;;;;;CAWT,CAAA;AAEV,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAgBnB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarCodeBlock.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCodeBlock/ScalarCodeBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarCodeBlock.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCodeBlock/ScalarCodeBlock.vue"],"names":[],"mappings":"AA8IA;;GAEG;AACH,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACnC,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;;UAJO,MAAM;iBACC,OAAO;UAEd,OAAO;;AA4HlB,wBAQG"}
|
|
@@ -9,7 +9,9 @@ type __VLS_Props = {
|
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
10
|
attrs: Partial<{}>;
|
|
11
11
|
slots: Readonly<Omit<ComboboxSlots, "default">> & Omit<ComboboxSlots, "default">;
|
|
12
|
-
refs: {
|
|
12
|
+
refs: {
|
|
13
|
+
input: HTMLInputElement;
|
|
14
|
+
};
|
|
13
15
|
rootEl: any;
|
|
14
16
|
};
|
|
15
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -19,7 +21,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
19
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
22
|
onDelete?: ((option: Option) => any) | undefined;
|
|
21
23
|
"onUpdate:modelValue"?: ((v: Option[]) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
25
|
+
input: HTMLInputElement;
|
|
26
|
+
}, any>;
|
|
23
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
28
|
export default _default;
|
|
25
29
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"AA4NA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,WAAW,EAEjB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AA4HF,iBAAS,cAAc;WA0KT,OAAO,IAA6B;;;;;;EAKjD;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;OAQnB,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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconMagnifyingGlass as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as O, useId as q, computed as b, ref as C, onMounted as F, watch as R, useTemplateRef as U, nextTick as j, createElementBlock as y, openBlock as c, Fragment as $, createElementVNode as g, withDirectives as M, createVNode as H, unref as J, withKeys as h, withModifiers as x, vModelText as P, renderSlot as B, renderList as S, createBlock as T, withCtx as w, createCommentVNode as Q, normalizeStyle as W, createTextVNode as E, toDisplayString as N, vShow as X } from "vue";
|
|
2
|
+
import { ScalarIconMagnifyingGlass as Y } from "@scalar/icons";
|
|
3
|
+
import Z from "./ScalarComboboxOption.vue.js";
|
|
4
|
+
import _ from "./ScalarComboboxOptionGroup.vue.js";
|
|
5
5
|
import { isGroups as L } from "./types.js";
|
|
6
|
-
const
|
|
6
|
+
const ee = { class: "relative flex" }, te = ["aria-activedescendant", "placeholder"], le = ["aria-multiselectable"], re = /* @__PURE__ */ O({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "ScalarComboboxOptions",
|
|
9
9
|
props: {
|
|
@@ -14,54 +14,60 @@ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder
|
|
|
14
14
|
isDeletable: { type: Boolean }
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue", "delete"],
|
|
17
|
-
setup(
|
|
18
|
-
var
|
|
19
|
-
const a =
|
|
17
|
+
setup(z, { emit: A }) {
|
|
18
|
+
var D;
|
|
19
|
+
const a = z, G = A, m = `scalar-combobox-items-${q()}`;
|
|
20
20
|
function p(e) {
|
|
21
21
|
return `${m}-${e.id}`;
|
|
22
22
|
}
|
|
23
23
|
const f = b(
|
|
24
24
|
() => L(a.options) ? a.options.flatMap((e) => e.options) : a.options
|
|
25
|
-
),
|
|
25
|
+
), K = b(
|
|
26
26
|
() => L(a.options) ? a.options : [{ label: "", options: a.options }]
|
|
27
|
-
), r =
|
|
28
|
-
((
|
|
27
|
+
), r = C(""), o = C(
|
|
28
|
+
((D = a.modelValue) == null ? void 0 : D[0]) ?? f.value[0]
|
|
29
29
|
);
|
|
30
|
-
|
|
30
|
+
F(async () => {
|
|
31
31
|
var e;
|
|
32
32
|
r.value = "", o.value = ((e = a.modelValue) == null ? void 0 : e[0]) ?? f.value[0], s.value.length !== 0 && setTimeout(() => {
|
|
33
33
|
var t;
|
|
34
34
|
(t = document == null ? void 0 : document.getElementById(p(s.value[0]))) == null || t.scrollIntoView({ block: "nearest" });
|
|
35
35
|
}, 10);
|
|
36
|
-
}),
|
|
36
|
+
}), R(
|
|
37
37
|
() => r.value,
|
|
38
|
-
() => o.value =
|
|
38
|
+
() => o.value = v.value[0]
|
|
39
39
|
);
|
|
40
|
-
const
|
|
40
|
+
const v = b(
|
|
41
41
|
() => r.value === "" ? f.value : f.value.filter((e) => e.label.toLowerCase().includes(r.value.toLowerCase()))
|
|
42
42
|
), s = b({
|
|
43
43
|
get: () => a.modelValue ?? [],
|
|
44
|
-
set: (e) => e &&
|
|
44
|
+
set: (e) => e && G("update:modelValue", e)
|
|
45
45
|
});
|
|
46
|
-
function
|
|
46
|
+
function k(e) {
|
|
47
47
|
a.multiselect ? s.value.some((t) => t.id === e.id) ? s.value = s.value.filter((t) => t.id !== e.id) : s.value = [...s.value, e] : s.value = [e];
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function V(e) {
|
|
50
50
|
var l;
|
|
51
|
-
const t =
|
|
51
|
+
const t = v.value, u = t.findIndex((d) => {
|
|
52
52
|
var i;
|
|
53
|
-
return
|
|
53
|
+
return d.id === ((i = o.value) == null ? void 0 : i.id);
|
|
54
54
|
}) + e;
|
|
55
|
-
|
|
55
|
+
u < 0 || u > t.length - 1 || (o.value = t[u], (l = document == null ? void 0 : document.getElementById(p(o.value))) == null || l.scrollIntoView({
|
|
56
56
|
behavior: "smooth",
|
|
57
57
|
block: "nearest"
|
|
58
58
|
}));
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
const I = U("input");
|
|
61
|
+
return j(() => {
|
|
62
|
+
var e;
|
|
63
|
+
return (e = I.value) == null ? void 0 : e.focus();
|
|
64
|
+
}), (e, t) => (c(), y($, null, [
|
|
65
|
+
g("div", ee, [
|
|
66
|
+
H(J(Y), { class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3 size-4" }),
|
|
67
|
+
M(g("input", {
|
|
64
68
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => r.value = n),
|
|
69
|
+
ref_key: "input",
|
|
70
|
+
ref: I,
|
|
65
71
|
"aria-activedescendant": o.value ? p(o.value) : void 0,
|
|
66
72
|
"aria-autocomplete": "list",
|
|
67
73
|
"aria-controls": m,
|
|
@@ -72,70 +78,70 @@ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder
|
|
|
72
78
|
tabindex: "0",
|
|
73
79
|
type: "text",
|
|
74
80
|
onKeydown: [
|
|
75
|
-
t[1] || (t[1] =
|
|
76
|
-
t[2] || (t[2] =
|
|
77
|
-
t[3] || (t[3] =
|
|
81
|
+
t[1] || (t[1] = h(x((n) => V(1), ["prevent"]), ["down"])),
|
|
82
|
+
t[2] || (t[2] = h(x((n) => o.value && k(o.value), ["prevent"]), ["enter"])),
|
|
83
|
+
t[3] || (t[3] = h(x((n) => V(-1), ["prevent"]), ["up"]))
|
|
78
84
|
]
|
|
79
|
-
}, null, 40,
|
|
80
|
-
[
|
|
85
|
+
}, null, 40, te), [
|
|
86
|
+
[P, r.value]
|
|
81
87
|
])
|
|
82
88
|
]),
|
|
83
|
-
|
|
89
|
+
M(g("ul", {
|
|
84
90
|
id: m,
|
|
85
91
|
"aria-multiselectable": e.multiselect,
|
|
86
92
|
class: "border-t p-0.75 custom-scroll overscroll-contain flex-1 min-h-0",
|
|
87
93
|
role: "listbox",
|
|
88
94
|
tabindex: "-1"
|
|
89
95
|
}, [
|
|
90
|
-
|
|
91
|
-
(
|
|
92
|
-
id: `${m}-group-${
|
|
93
|
-
key:
|
|
96
|
+
B(e.$slots, "before"),
|
|
97
|
+
(c(!0), y($, null, S(K.value, (n, u) => (c(), T(_, {
|
|
98
|
+
id: `${m}-group-${u}`,
|
|
99
|
+
key: u,
|
|
94
100
|
hidden: (
|
|
95
101
|
// Only show the group label if there are some results
|
|
96
|
-
!n.options.some((l) =>
|
|
102
|
+
!n.options.some((l) => v.value.some((d) => d.id === l.id)) || // And it has a label
|
|
97
103
|
!n.label
|
|
98
104
|
)
|
|
99
105
|
}, {
|
|
100
|
-
label:
|
|
106
|
+
label: w(() => [
|
|
101
107
|
E(N(n.label), 1)
|
|
102
108
|
]),
|
|
103
|
-
default:
|
|
104
|
-
(
|
|
105
|
-
var
|
|
106
|
-
return
|
|
109
|
+
default: w(() => [
|
|
110
|
+
(c(!0), y($, null, S(v.value, (l) => {
|
|
111
|
+
var d;
|
|
112
|
+
return c(), y($, {
|
|
107
113
|
key: l.id
|
|
108
114
|
}, [
|
|
109
|
-
n.options.some((i) => i.id === l.id) ? (
|
|
115
|
+
n.options.some((i) => i.id === l.id) ? (c(), T(Z, {
|
|
110
116
|
key: 0,
|
|
111
117
|
id: p(l),
|
|
112
|
-
active: ((
|
|
118
|
+
active: ((d = o.value) == null ? void 0 : d.id) === l.id,
|
|
113
119
|
isDeletable: l.isDeletable ?? e.isDeletable,
|
|
114
120
|
selected: s.value.some((i) => i.id === l.id),
|
|
115
|
-
style:
|
|
116
|
-
onClick: (i) =>
|
|
121
|
+
style: W(e.multiselect ? "checkbox" : "radio"),
|
|
122
|
+
onClick: (i) => k(l),
|
|
117
123
|
onDelete: (i) => e.$emit("delete", l),
|
|
118
|
-
onMousedown: t[4] || (t[4] =
|
|
124
|
+
onMousedown: t[4] || (t[4] = x(() => {
|
|
119
125
|
}, ["prevent"])),
|
|
120
126
|
onMouseenter: (i) => o.value = l
|
|
121
127
|
}, {
|
|
122
|
-
default:
|
|
128
|
+
default: w(() => [
|
|
123
129
|
E(N(l.label), 1)
|
|
124
130
|
]),
|
|
125
131
|
_: 2
|
|
126
|
-
}, 1032, ["id", "active", "isDeletable", "selected", "style", "onClick", "onDelete", "onMouseenter"])) :
|
|
132
|
+
}, 1032, ["id", "active", "isDeletable", "selected", "style", "onClick", "onDelete", "onMouseenter"])) : Q("", !0)
|
|
127
133
|
], 64);
|
|
128
134
|
}), 128))
|
|
129
135
|
]),
|
|
130
136
|
_: 2
|
|
131
137
|
}, 1032, ["id", "hidden"]))), 128)),
|
|
132
|
-
|
|
133
|
-
], 8,
|
|
134
|
-
[
|
|
138
|
+
B(e.$slots, "after")
|
|
139
|
+
], 8, le), [
|
|
140
|
+
[X, v.value.length || e.$slots.before || e.$slots.after]
|
|
135
141
|
])
|
|
136
142
|
], 64));
|
|
137
143
|
}
|
|
138
144
|
});
|
|
139
145
|
export {
|
|
140
|
-
|
|
146
|
+
re as default
|
|
141
147
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarComboboxPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxPopover.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarComboboxPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxPopover.vue"],"names":[],"mappings":"AAqEA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAgC1D,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;;;;;;;;;;;;;;;0BAnJlD,KA3BG,eA2BH,KA1BE,uBA0BF,KA1B8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkL7B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;oBAzKrB,KA3BG,eA2BH,KA1BE,uBA0BF,KA1B8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8PA0M5B,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"}
|
|
@@ -168,7 +168,7 @@ declare const meta: {
|
|
|
168
168
|
type?: "button" | "submit" | "reset";
|
|
169
169
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
170
170
|
size: "sm" | "md";
|
|
171
|
-
variant:
|
|
171
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
172
172
|
fullWidth: boolean;
|
|
173
173
|
type: "button" | "submit" | "reset";
|
|
174
174
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -187,7 +187,7 @@ declare const meta: {
|
|
|
187
187
|
type?: "button" | "submit" | "reset";
|
|
188
188
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
189
189
|
size: "sm" | "md";
|
|
190
|
-
variant:
|
|
190
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
191
191
|
fullWidth: boolean;
|
|
192
192
|
type: "button" | "submit" | "reset";
|
|
193
193
|
}>;
|
|
@@ -203,7 +203,7 @@ declare const meta: {
|
|
|
203
203
|
type?: "button" | "submit" | "reset";
|
|
204
204
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
205
205
|
size: "sm" | "md";
|
|
206
|
-
variant:
|
|
206
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
207
207
|
fullWidth: boolean;
|
|
208
208
|
type: "button" | "submit" | "reset";
|
|
209
209
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -145,7 +145,7 @@ declare const meta: {
|
|
|
145
145
|
type?: "button" | "submit" | "reset";
|
|
146
146
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
147
147
|
size: "sm" | "md";
|
|
148
|
-
variant:
|
|
148
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
149
149
|
fullWidth: boolean;
|
|
150
150
|
type: "button" | "submit" | "reset";
|
|
151
151
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -164,7 +164,7 @@ declare const meta: {
|
|
|
164
164
|
type?: "button" | "submit" | "reset";
|
|
165
165
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
166
166
|
size: "sm" | "md";
|
|
167
|
-
variant:
|
|
167
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
168
168
|
fullWidth: boolean;
|
|
169
169
|
type: "button" | "submit" | "reset";
|
|
170
170
|
}>;
|
|
@@ -180,7 +180,7 @@ declare const meta: {
|
|
|
180
180
|
type?: "button" | "submit" | "reset";
|
|
181
181
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
182
182
|
size: "sm" | "md";
|
|
183
|
-
variant:
|
|
183
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
184
184
|
fullWidth: boolean;
|
|
185
185
|
type: "button" | "submit" | "reset";
|
|
186
186
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ScalarIconProps } from '@scalar/icons/types';
|
|
2
|
-
import type { Component } from 'vue';
|
|
1
|
+
import type { ScalarIconComponent, ScalarIconProps } from '@scalar/icons/types';
|
|
3
2
|
import type { ScalarIconProps as LegacyScalarIconProps } from './types';
|
|
4
3
|
import type { Icon } from './utils/index.js';
|
|
5
4
|
/**
|
|
@@ -10,9 +9,9 @@ import type { Icon } from './utils/index.js';
|
|
|
10
9
|
* while staying backwards compatible with the legacy ScalarIcon component
|
|
11
10
|
*/
|
|
12
11
|
declare const _default: import("vue").DefineComponent<{
|
|
13
|
-
icon: Icon |
|
|
12
|
+
icon: Icon | ScalarIconComponent;
|
|
14
13
|
} & ScalarIconProps & Omit<LegacyScalarIconProps, "icon">, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
15
|
-
icon: Icon |
|
|
14
|
+
icon: Icon | ScalarIconComponent;
|
|
16
15
|
} & ScalarIconProps & Omit<LegacyScalarIconProps, "icon">> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
16
|
export default _default;
|
|
18
17
|
//# sourceMappingURL=ScalarIconLegacyAdapter.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarIconLegacyAdapter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIconLegacyAdapter.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarIconLegacyAdapter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIconLegacyAdapter.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAI/E,OAAO,KAAK,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAKnC;;;;;;GAMG;;UAQO,IAAI,GAAG,mBAAmB;;UAA1B,IAAI,GAAG,mBAAmB;;AAPpC,wBA2FC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ICONS } from '../icons';
|
|
2
2
|
import type { LOGOS } from '../logos';
|
|
3
|
+
/** @deprecated Use the icons from the `@scalar/icons` package instead. */
|
|
3
4
|
export type Icon = (typeof ICONS)[number];
|
|
5
|
+
/** @deprecated Use the icons from the `@scalar/icons` package instead. */
|
|
4
6
|
export type Logo = (typeof LOGOS)[number];
|
|
5
7
|
/**
|
|
6
8
|
* Generate a Vue component from the icon SVGs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScalarIcon/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScalarIcon/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAErC,0EAA0E;AAC1E,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzC,0EAA0E;AAC1E,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAYzC;;;;GAIG;AACH,eAAO,MAAM,OAAO,SAAU,IAAI,sBASjC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,SAAU,IAAI,sBAQjC,CAAA"}
|
|
@@ -3,26 +3,9 @@ import type { StoryObj } from '@storybook/vue3';
|
|
|
3
3
|
* A helper wrapper around the icon only ScalarButton
|
|
4
4
|
*/
|
|
5
5
|
declare const meta: {
|
|
6
|
-
component: import("vue").DefineComponent<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
variant?: string | undefined;
|
|
11
|
-
size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
|
|
12
|
-
thickness?: string;
|
|
13
|
-
weight?: import("@scalar/icons/types").ScalarIconWeight;
|
|
14
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
15
|
-
label: string;
|
|
16
|
-
icon: import("../ScalarIcon").Icon | import("vue").Component;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
variant?: string | undefined;
|
|
19
|
-
size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
|
|
20
|
-
thickness?: string;
|
|
21
|
-
weight?: import("@scalar/icons/types").ScalarIconWeight;
|
|
22
|
-
}> & Readonly<{}>, {
|
|
23
|
-
size: "xs" | "sm" | "md" | "full" | "xxs";
|
|
24
|
-
variant: string;
|
|
25
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
component: import("vue").DefineComponent<import("./types").ScalarIconButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./types").ScalarIconButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
7
|
+
ref: HTMLButtonElement;
|
|
8
|
+
}, any>;
|
|
26
9
|
tags: string[];
|
|
27
10
|
argTypes: {
|
|
28
11
|
icon: {
|
|
@@ -43,6 +26,10 @@ declare const meta: {
|
|
|
43
26
|
disabled: {
|
|
44
27
|
control: "boolean";
|
|
45
28
|
};
|
|
29
|
+
tooltip: {
|
|
30
|
+
control: "select";
|
|
31
|
+
options: import("@floating-ui/utils").Placement[];
|
|
32
|
+
};
|
|
46
33
|
class: {
|
|
47
34
|
control: "text";
|
|
48
35
|
};
|
|
@@ -52,5 +39,6 @@ export default meta;
|
|
|
52
39
|
type Story = StoryObj<typeof meta>;
|
|
53
40
|
export declare const Base: Story;
|
|
54
41
|
export declare const Disabled: Story;
|
|
42
|
+
export declare const WithTooltip: Story;
|
|
55
43
|
export declare const CustomClasses: Story;
|
|
56
44
|
//# sourceMappingURL=ScalarIconButton.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarIconButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"ScalarIconButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe+B,CAAA;AAEzC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA"}
|