@scalar/components 0.14.13 → 0.14.16
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 +3 -1
- 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/ScalarIcon.stories.d.ts +1 -1
- 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/icons/index.d.ts +1 -1
- package/dist/components/ScalarIcon/icons/index.d.ts.map +1 -1
- package/dist/components/ScalarIcon/icons/programming-language-rust.svg.js +19 -0
- package/dist/components/ScalarIcon/utils/index.d.ts +2 -0
- package/dist/components/ScalarIcon/utils/index.d.ts.map +1 -1
- package/dist/components/ScalarIcon/utils/index.js +68 -66
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +9 -21
- 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/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/ScalarSearchInput/ScalarSearchInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +27 -27
- 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/ScalarSearchResultItem.vue.js +13 -14
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +11 -12
- package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts +3 -3
- 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/ScalarSidebarSearchButton.vue.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/useTooltip.js +25 -25
- package/dist/components/ScalarTooltip/useTooltip.test.d.ts.map +1 -0
- package/dist/index.js +23 -21
- package/dist/style.css +1 -1
- package/package.json +11 -11
- 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>;
|
|
@@ -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":"AA4MA,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;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,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 g, onMounted as F, watch as U, nextTick as j, createElementBlock as y, openBlock as c, Fragment as $, createElementVNode as h, withDirectives as M, createVNode as H, unref as J, withKeys as w, withModifiers as x, vModelText as P, renderSlot as B, renderList as S, createBlock as E, withCtx as k, createCommentVNode as Q, normalizeStyle as R, createTextVNode as N, toDisplayString as T, vShow as W } from "vue";
|
|
2
|
+
import { ScalarIconMagnifyingGlass as X } from "@scalar/icons";
|
|
3
|
+
import Y from "./ScalarComboboxOption.vue.js";
|
|
4
|
+
import Z from "./ScalarComboboxOptionGroup.vue.js";
|
|
5
5
|
import { isGroups as L } from "./types.js";
|
|
6
|
-
const
|
|
6
|
+
const _ = { class: "relative flex" }, ee = ["aria-activedescendant", "placeholder"], te = ["aria-multiselectable"], ie = /* @__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 C;
|
|
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 = g(""), o = g(
|
|
28
|
+
((C = a.modelValue) == null ? void 0 : C[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
|
+
}), U(
|
|
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
46
|
function V(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 I(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 D = g(null);
|
|
61
|
+
return j(() => {
|
|
62
|
+
var e;
|
|
63
|
+
return (e = D.value) == null ? void 0 : e.focus();
|
|
64
|
+
}), (e, t) => (c(), y($, null, [
|
|
65
|
+
h("div", _, [
|
|
66
|
+
H(J(X), { class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3 size-4" }),
|
|
67
|
+
M(h("input", {
|
|
64
68
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => r.value = n),
|
|
69
|
+
ref_key: "input",
|
|
70
|
+
ref: D,
|
|
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] = w(
|
|
76
|
-
t[2] || (t[2] = w(
|
|
77
|
-
t[3] || (t[3] = w(
|
|
81
|
+
t[1] || (t[1] = w(x((n) => I(1), ["prevent"]), ["down"])),
|
|
82
|
+
t[2] || (t[2] = w(x((n) => o.value && V(o.value), ["prevent"]), ["enter"])),
|
|
83
|
+
t[3] || (t[3] = w(x((n) => I(-1), ["prevent"]), ["up"]))
|
|
78
84
|
]
|
|
79
|
-
}, null, 40,
|
|
80
|
-
[
|
|
85
|
+
}, null, 40, ee), [
|
|
86
|
+
[P, r.value]
|
|
81
87
|
])
|
|
82
88
|
]),
|
|
83
|
-
|
|
89
|
+
M(h("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(), E(Z, {
|
|
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:
|
|
101
|
-
|
|
106
|
+
label: k(() => [
|
|
107
|
+
N(T(n.label), 1)
|
|
102
108
|
]),
|
|
103
|
-
default:
|
|
104
|
-
(
|
|
105
|
-
var
|
|
106
|
-
return
|
|
109
|
+
default: k(() => [
|
|
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(), E(Y, {
|
|
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:
|
|
121
|
+
style: R(e.multiselect ? "checkbox" : "radio"),
|
|
116
122
|
onClick: (i) => V(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:
|
|
123
|
-
|
|
128
|
+
default: k(() => [
|
|
129
|
+
N(T(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, te), [
|
|
140
|
+
[W, v.value.length || e.$slots.before || e.$slots.after]
|
|
135
141
|
])
|
|
136
142
|
], 64));
|
|
137
143
|
}
|
|
138
144
|
});
|
|
139
145
|
export {
|
|
140
|
-
|
|
146
|
+
ie 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 () => {
|
|
@@ -5,7 +5,7 @@ declare const meta: {
|
|
|
5
5
|
argTypes: {
|
|
6
6
|
icon: {
|
|
7
7
|
control: "select";
|
|
8
|
-
options: readonly ["Add", "AddTab", "Alert", "ArrowLeft", "ArrowRight", "Brackets", "Branch", "Changelog", "Checkmark", "ChevronDown", "ChevronLeft", "ChevronRight", "ChevronUp", "Clipboard", "Close", "CloseTab", "CloseTabs", "Cloud", "CodeFolder", "Cog", "Collection", "Cookie", "DarkMode", "Delete", "Discord", "DocsPage", "Download", "Duplicate", "Edit", "Ellipses", "Email", "Error", "Example", "ExternalLink", "FilterList", "Folder", "GitHub", "GitHubLine", "Globe", "Google", "Help", "Hide", "History", "House", "Import", "Info", "Key", "Leave", "LightDarkModeToggle", "LightMode", "Link", "Lock", "Logo", "Magic", "Markdown", "Menu", "NotAllowed", "Page", "Pencil", "Play", "Refresh", "Roadmap", "Scribble", "Search", "Server", "Settings", "Show", "Sort", "Terminal", "Trash", "Unlock", "Unwatch", "Upload", "User", "UserSwitch", "Users", "Versions", "Wallet", "Watch", "Workspace", "programming-framework-angular", "programming-framework-astro", "programming-framework-laravel", "programming-framework-nextdotjs", "programming-framework-react", "programming-framework-vuedotjs", "programming-language-c", "programming-language-clojure", "programming-language-csharp", "programming-language-css3", "programming-language-dart", "programming-language-go", "programming-language-html5", "programming-language-http", "programming-language-java", "programming-language-javascript", "programming-language-json", "programming-language-kotlin", "programming-language-node", "programming-language-objc", "programming-language-ocaml", "programming-language-php", "programming-language-powershell", "programming-language-python", "programming-language-r", "programming-language-ruby", "programming-language-scala", "programming-language-shell", "programming-language-swift", "programming-language-typescript", "programming-script-code", "programming-tool-git", "programming-tool-tailwindcss"];
|
|
8
|
+
options: readonly ["Add", "AddTab", "Alert", "ArrowLeft", "ArrowRight", "Brackets", "Branch", "Changelog", "Checkmark", "ChevronDown", "ChevronLeft", "ChevronRight", "ChevronUp", "Clipboard", "Close", "CloseTab", "CloseTabs", "Cloud", "CodeFolder", "Cog", "Collection", "Cookie", "DarkMode", "Delete", "Discord", "DocsPage", "Download", "Duplicate", "Edit", "Ellipses", "Email", "Error", "Example", "ExternalLink", "FilterList", "Folder", "GitHub", "GitHubLine", "Globe", "Google", "Help", "Hide", "History", "House", "Import", "Info", "Key", "Leave", "LightDarkModeToggle", "LightMode", "Link", "Lock", "Logo", "Magic", "Markdown", "Menu", "NotAllowed", "Page", "Pencil", "Play", "Refresh", "Roadmap", "Scribble", "Search", "Server", "Settings", "Show", "Sort", "Terminal", "Trash", "Unlock", "Unwatch", "Upload", "User", "UserSwitch", "Users", "Versions", "Wallet", "Watch", "Workspace", "programming-framework-angular", "programming-framework-astro", "programming-framework-laravel", "programming-framework-nextdotjs", "programming-framework-react", "programming-framework-vuedotjs", "programming-language-c", "programming-language-clojure", "programming-language-csharp", "programming-language-css3", "programming-language-dart", "programming-language-go", "programming-language-html5", "programming-language-http", "programming-language-java", "programming-language-javascript", "programming-language-json", "programming-language-kotlin", "programming-language-node", "programming-language-objc", "programming-language-ocaml", "programming-language-php", "programming-language-powershell", "programming-language-python", "programming-language-r", "programming-language-ruby", "programming-language-rust", "programming-language-scala", "programming-language-shell", "programming-language-swift", "programming-language-typescript", "programming-script-code", "programming-tool-git", "programming-tool-tailwindcss"];
|
|
9
9
|
};
|
|
10
10
|
size: {
|
|
11
11
|
control: "select";
|
|
@@ -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,2 +1,2 @@
|
|
|
1
|
-
export declare const ICONS: readonly ["Add", "AddTab", "Alert", "ArrowLeft", "ArrowRight", "Brackets", "Branch", "Changelog", "Checkmark", "ChevronDown", "ChevronLeft", "ChevronRight", "ChevronUp", "Clipboard", "Close", "CloseTab", "CloseTabs", "Cloud", "CodeFolder", "Cog", "Collection", "Cookie", "DarkMode", "Delete", "Discord", "DocsPage", "Download", "Duplicate", "Edit", "Ellipses", "Email", "Error", "Example", "ExternalLink", "FilterList", "Folder", "GitHub", "GitHubLine", "Globe", "Google", "Help", "Hide", "History", "House", "Import", "Info", "Key", "Leave", "LightDarkModeToggle", "LightMode", "Link", "Lock", "Logo", "Magic", "Markdown", "Menu", "NotAllowed", "Page", "Pencil", "Play", "Refresh", "Roadmap", "Scribble", "Search", "Server", "Settings", "Show", "Sort", "Terminal", "Trash", "Unlock", "Unwatch", "Upload", "User", "UserSwitch", "Users", "Versions", "Wallet", "Watch", "Workspace", "programming-framework-angular", "programming-framework-astro", "programming-framework-laravel", "programming-framework-nextdotjs", "programming-framework-react", "programming-framework-vuedotjs", "programming-language-c", "programming-language-clojure", "programming-language-csharp", "programming-language-css3", "programming-language-dart", "programming-language-go", "programming-language-html5", "programming-language-http", "programming-language-java", "programming-language-javascript", "programming-language-json", "programming-language-kotlin", "programming-language-node", "programming-language-objc", "programming-language-ocaml", "programming-language-php", "programming-language-powershell", "programming-language-python", "programming-language-r", "programming-language-ruby", "programming-language-scala", "programming-language-shell", "programming-language-swift", "programming-language-typescript", "programming-script-code", "programming-tool-git", "programming-tool-tailwindcss"];
|
|
1
|
+
export declare const ICONS: readonly ["Add", "AddTab", "Alert", "ArrowLeft", "ArrowRight", "Brackets", "Branch", "Changelog", "Checkmark", "ChevronDown", "ChevronLeft", "ChevronRight", "ChevronUp", "Clipboard", "Close", "CloseTab", "CloseTabs", "Cloud", "CodeFolder", "Cog", "Collection", "Cookie", "DarkMode", "Delete", "Discord", "DocsPage", "Download", "Duplicate", "Edit", "Ellipses", "Email", "Error", "Example", "ExternalLink", "FilterList", "Folder", "GitHub", "GitHubLine", "Globe", "Google", "Help", "Hide", "History", "House", "Import", "Info", "Key", "Leave", "LightDarkModeToggle", "LightMode", "Link", "Lock", "Logo", "Magic", "Markdown", "Menu", "NotAllowed", "Page", "Pencil", "Play", "Refresh", "Roadmap", "Scribble", "Search", "Server", "Settings", "Show", "Sort", "Terminal", "Trash", "Unlock", "Unwatch", "Upload", "User", "UserSwitch", "Users", "Versions", "Wallet", "Watch", "Workspace", "programming-framework-angular", "programming-framework-astro", "programming-framework-laravel", "programming-framework-nextdotjs", "programming-framework-react", "programming-framework-vuedotjs", "programming-language-c", "programming-language-clojure", "programming-language-csharp", "programming-language-css3", "programming-language-dart", "programming-language-go", "programming-language-html5", "programming-language-http", "programming-language-java", "programming-language-javascript", "programming-language-json", "programming-language-kotlin", "programming-language-node", "programming-language-objc", "programming-language-ocaml", "programming-language-php", "programming-language-powershell", "programming-language-python", "programming-language-r", "programming-language-ruby", "programming-language-rust", "programming-language-scala", "programming-language-shell", "programming-language-swift", "programming-language-typescript", "programming-script-code", "programming-tool-git", "programming-tool-tailwindcss"];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScalarIcon/icons/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScalarIcon/icons/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,s3DAmHR,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createElementBlock as a, openBlock as e, createElementVNode as t } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 24 24"
|
|
6
|
+
};
|
|
7
|
+
function o(r, l) {
|
|
8
|
+
return e(), a("svg", n, l[0] || (l[0] = [
|
|
9
|
+
t("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "m21.863 11.755-.839-.52-.024-.244.722-.673a.288.288 0 0 0-.096-.482l-.923-.345-.072-.239.575-.799a.288.288 0 0 0-.187-.455l-.973-.158-.117-.218.409-.897a.286.286 0 0 0-.273-.409l-.987.034-.157-.188.228-.962a.287.287 0 0 0-.348-.348l-.96.227-.19-.157.034-.986a.287.287 0 0 0-.409-.273l-.897.409-.218-.118-.158-.972a.288.288 0 0 0-.454-.189l-.8.575-.238-.071-.345-.923a.288.288 0 0 0-.482-.096L13.01 3l-.245-.023-.52-.84a.29.29 0 0 0-.49 0l-.52.84q-.123.01-.245.023l-.673-.722a.29.29 0 0 0-.482.096l-.345.923q-.12.034-.237.072l-.8-.576a.288.288 0 0 0-.455.188l-.158.973q-.11.057-.22.118l-.895-.41a.287.287 0 0 0-.409.273l.034.988-.19.156-.96-.227a.29.29 0 0 0-.348.348l.227.962-.157.188-.987-.034a.288.288 0 0 0-.273.409l.409.897a7 7 0 0 0-.117.22l-.972.156a.288.288 0 0 0-.189.455l.575.8-.071.237-.923.346a.29.29 0 0 0-.096.482L3 10.99l-.024.244-.84.52a.29.29 0 0 0 0 .492l.84.519q.01.123.025.245l-.723.673a.29.29 0 0 0 .096.482l.922.345q.035.12.073.237l-.576.8a.29.29 0 0 0 .188.454l.973.158q.056.11.117.22l-.41.896a.288.288 0 0 0 .274.409l.987-.035q.076.096.156.19l-.227.961a.287.287 0 0 0 .348.347l.961-.226.19.156-.035.987a.288.288 0 0 0 .41.273l.896-.41q.108.06.219.119l.158.971a.288.288 0 0 0 .455.19l.799-.577q.118.038.237.072l.345.923a.287.287 0 0 0 .482.096L10.99 21q.121.014.244.025l.52.839a.29.29 0 0 0 .492 0l.519-.84q.123-.01.245-.024l.674.722a.287.287 0 0 0 .48-.096l.346-.923q.12-.034.238-.072l.8.576a.29.29 0 0 0 .454-.189l.158-.972.219-.117.896.409a.288.288 0 0 0 .41-.273l-.035-.988a7 7 0 0 0 .19-.155l.96.226a.287.287 0 0 0 .348-.347l-.226-.961.155-.19.988.035a.29.29 0 0 0 .272-.41l-.409-.896q.06-.108.117-.219l.973-.158a.287.287 0 0 0 .188-.454l-.575-.8.072-.237.922-.345a.286.286 0 0 0 .096-.482L21 13.011l.025-.245.839-.52a.29.29 0 0 0 0-.49Zm-5.619 6.965a.595.595 0 0 1 .25-1.163.595.595 0 0 1-.25 1.163m-.286-1.93a.54.54 0 0 0-.642.417l-.299 1.391a7.3 7.3 0 0 1-3.017.65c-1.1 0-2.144-.243-3.08-.679l-.299-1.39a.54.54 0 0 0-.643-.417l-1.228.263a7 7 0 0 1-.635-.748h5.976c.068 0 .113-.012.113-.074V14.09c0-.062-.046-.074-.113-.074h-1.747v-1.34h1.89c.172 0 .922.049 1.162 1.007.075.295.24 1.254.352 1.561.113.344.57 1.032 1.059 1.032h2.977a1 1 0 0 0 .108-.01q-.31.421-.677.794l-1.256-.27Zm-8.265 1.9a.594.594 0 1 1-.014-1.17.594.594 0 0 1 .014 1.171ZM5.427 9.5a.594.594 0 1 1-1.086.481.594.594 0 0 1 1.086-.481m-.697 1.65 1.28-.569a.543.543 0 0 0 .274-.715l-.263-.597h1.036v4.672h-2.09a7.3 7.3 0 0 1-.237-2.792Zm5.614-.454V9.32h2.468c.128 0 .9.148.9.725 0 .48-.592.652-1.08.652zm8.969 1.24q0 .273-.02.542h-.75c-.076 0-.106.05-.106.123v.345c0 .81-.457.987-.858 1.032-.381.043-.805-.16-.857-.394-.225-1.265-.6-1.536-1.192-2.003.735-.467 1.5-1.155 1.5-2.077 0-.996-.683-1.623-1.148-1.93-.652-.43-1.375-.517-1.57-.517h-7.76a7.3 7.3 0 0 1 4.091-2.308l.915.959a.54.54 0 0 0 .765.018l1.024-.98a7.32 7.32 0 0 1 5.006 3.566l-.7 1.583a.543.543 0 0 0 .275.715l1.35.6q.034.357.035.726m-7.754-8.004a.595.595 0 1 1 .82.86.595.595 0 0 1-.82-.86m6.951 5.595a.594.594 0 1 1 1.086.481.594.594 0 0 1-1.086-.481"
|
|
12
|
+
}, null, -1)
|
|
13
|
+
]));
|
|
14
|
+
}
|
|
15
|
+
const q = { render: o };
|
|
16
|
+
export {
|
|
17
|
+
q as default,
|
|
18
|
+
o as render
|
|
19
|
+
};
|
|
@@ -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"}
|