@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
|
@@ -1,79 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
declare const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
variant?: string | undefined;
|
|
19
|
-
} & ({
|
|
20
|
-
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 | {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
} | null | undefined)[] | {
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
} | null | undefined)[] | {
|
|
25
|
-
[x: string]: any;
|
|
26
|
-
} | null | undefined)[] | {
|
|
27
|
-
[x: string]: any;
|
|
28
|
-
} | null | undefined)[] | {
|
|
29
|
-
[x: string]: any;
|
|
30
|
-
} | null | undefined)[] | {
|
|
31
|
-
[x: string]: any;
|
|
32
|
-
} | null | undefined)[] | {
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
} | null | undefined)[] | {
|
|
35
|
-
[x: string]: any;
|
|
36
|
-
} | null | undefined)[] | {
|
|
37
|
-
[x: string]: any;
|
|
38
|
-
} | null | undefined)[] | {
|
|
39
|
-
[x: string]: any;
|
|
40
|
-
} | null | undefined)[] | {
|
|
41
|
-
[x: string]: any;
|
|
42
|
-
} | null | undefined)[] | {
|
|
43
|
-
[x: string]: any;
|
|
44
|
-
} | null | undefined;
|
|
45
|
-
className?: never;
|
|
46
|
-
} | {
|
|
47
|
-
class?: never;
|
|
48
|
-
className?: 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 | {
|
|
49
|
-
[x: string]: any;
|
|
50
|
-
} | null | undefined)[] | {
|
|
51
|
-
[x: string]: any;
|
|
52
|
-
} | null | undefined)[] | {
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
} | null | undefined)[] | {
|
|
55
|
-
[x: string]: any;
|
|
56
|
-
} | null | undefined)[] | {
|
|
57
|
-
[x: string]: any;
|
|
58
|
-
} | null | undefined)[] | {
|
|
59
|
-
[x: string]: any;
|
|
60
|
-
} | null | undefined)[] | {
|
|
61
|
-
[x: string]: any;
|
|
62
|
-
} | null | undefined)[] | {
|
|
63
|
-
[x: string]: any;
|
|
64
|
-
} | null | undefined)[] | {
|
|
65
|
-
[x: string]: any;
|
|
66
|
-
} | null | undefined)[] | {
|
|
67
|
-
[x: string]: any;
|
|
68
|
-
} | null | undefined)[] | {
|
|
69
|
-
[x: string]: any;
|
|
70
|
-
} | null | undefined)[] | {
|
|
71
|
-
[x: string]: any;
|
|
72
|
-
} | null | undefined;
|
|
73
|
-
})) | undefined) => string;
|
|
74
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
75
|
-
size: "xs" | "sm" | "md" | "full" | "xxs";
|
|
76
|
-
variant: string;
|
|
77
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
import type { ScalarIconButtonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Scalar icon button component
|
|
4
|
+
*
|
|
5
|
+
* Should be used in conjunction with an icon from `@scalar/icons`
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import { ScalarIconAcorn } from '@scalar/icons'
|
|
9
|
+
* ...
|
|
10
|
+
* <ScalarIconButton
|
|
11
|
+
* :icon="ScalarIconAcorn"
|
|
12
|
+
* label="It's an acorn"
|
|
13
|
+
* />
|
|
14
|
+
*/
|
|
15
|
+
declare const _default: import("vue").DefineComponent<ScalarIconButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScalarIconButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
16
|
+
ref: HTMLButtonElement;
|
|
17
|
+
}, any>;
|
|
78
18
|
export default _default;
|
|
79
19
|
//# sourceMappingURL=ScalarIconButton.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarIconButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarIconButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAKpD;;;;;;;;;;;;GAYG;;;;AACH,wBAoGC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBindCx as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as r, useTemplateRef as d, computed as o, createElementBlock as n, openBlock as a, mergeProps as c, unref as i, createVNode as f, createCommentVNode as m, toDisplayString as p } from "vue";
|
|
2
|
+
import { useBindCx as u } from "@scalar/use-hooks/useBindCx";
|
|
3
|
+
import { variants as h } from "./variants.js";
|
|
4
|
+
import { useTooltip as b } from "../ScalarTooltip/useTooltip.js";
|
|
5
|
+
import g from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
|
|
6
|
+
const v = ["aria-disabled"], k = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "sr-only"
|
|
9
|
+
}, y = {}, S = /* @__PURE__ */ r({
|
|
10
|
+
...y,
|
|
6
11
|
inheritAttrs: !1,
|
|
7
12
|
__name: "ScalarIconButton",
|
|
8
13
|
props: {
|
|
@@ -10,40 +15,34 @@ const h = ["ariaDisabled"], b = { class: "sr-only" }, y = /* @__PURE__ */ a({
|
|
|
10
15
|
icon: {},
|
|
11
16
|
disabled: { type: Boolean },
|
|
12
17
|
variant: { default: "ghost" },
|
|
13
|
-
size: {
|
|
18
|
+
size: {},
|
|
14
19
|
thickness: {},
|
|
15
|
-
weight: {}
|
|
20
|
+
weight: {},
|
|
21
|
+
tooltip: { type: Boolean }
|
|
16
22
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const { cx:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
true: "cursor-not-allowed shadow-none"
|
|
30
|
-
},
|
|
31
|
-
variant: m
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
return (e, v) => (n(), o("button", r({
|
|
35
|
-
ariaDisabled: e.disabled || void 0,
|
|
23
|
+
setup(t) {
|
|
24
|
+
const { cx: s } = u(), l = d("ref");
|
|
25
|
+
return b({
|
|
26
|
+
content: o(() => t.label),
|
|
27
|
+
offset: o(() => t.variant === "ghost" ? 0 : 4),
|
|
28
|
+
placement: o(
|
|
29
|
+
() => typeof t.tooltip == "boolean" ? void 0 : t.tooltip
|
|
30
|
+
),
|
|
31
|
+
targetRef: o(() => t.tooltip ? l.value : void 0)
|
|
32
|
+
}), (e, B) => (a(), n("button", c({
|
|
33
|
+
ref: "ref",
|
|
34
|
+
"aria-disabled": e.disabled,
|
|
36
35
|
type: "button"
|
|
37
|
-
}, s(i
|
|
38
|
-
|
|
36
|
+
}, i(s)(i(h)({ size: e.size, variant: e.variant, disabled: e.disabled }))), [
|
|
37
|
+
f(i(g), {
|
|
39
38
|
icon: e.icon,
|
|
40
39
|
thickness: e.thickness,
|
|
41
40
|
weight: e.weight
|
|
42
41
|
}, null, 8, ["icon", "thickness", "weight"]),
|
|
43
|
-
|
|
44
|
-
], 16,
|
|
42
|
+
e.tooltip ? m("", !0) : (a(), n("span", k, p(e.label), 1))
|
|
43
|
+
], 16, v));
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
S as default
|
|
49
48
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ScalarIconComponent, ScalarIconWeight } from '@scalar/icons/types';
|
|
2
|
+
import type { Variants } from './variants.js';
|
|
3
|
+
import type { Icon } from '../ScalarIcon';
|
|
4
|
+
import type { ScalarTooltipPlacement } from '../../components/ScalarTooltip';
|
|
5
|
+
export type ScalarIconButtonProps = {
|
|
6
|
+
/**
|
|
7
|
+
* An accessible label for the icon button
|
|
8
|
+
*
|
|
9
|
+
* If `tooltip` is true, this will be used as the tooltip content
|
|
10
|
+
*/
|
|
11
|
+
label: string;
|
|
12
|
+
/**
|
|
13
|
+
* The icon to display in the icon button
|
|
14
|
+
*
|
|
15
|
+
* Use a component from the `@scalar/icons` package to display
|
|
16
|
+
* an icon. String values are deprecated.
|
|
17
|
+
*/
|
|
18
|
+
icon: Icon | ScalarIconComponent;
|
|
19
|
+
/** Whether the icon button is disabled */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The variant of the icon button
|
|
23
|
+
*
|
|
24
|
+
* @default 'ghost'
|
|
25
|
+
* @see <ScalarButton>
|
|
26
|
+
*/
|
|
27
|
+
variant?: Variants['variant'];
|
|
28
|
+
/**
|
|
29
|
+
* The size of the icon button
|
|
30
|
+
*
|
|
31
|
+
* @default 'md'
|
|
32
|
+
*/
|
|
33
|
+
size?: Variants['size'];
|
|
34
|
+
/**
|
|
35
|
+
* The thickness of the icon
|
|
36
|
+
*
|
|
37
|
+
* @deprecated Use the `weight` prop instead
|
|
38
|
+
*/
|
|
39
|
+
thickness?: string;
|
|
40
|
+
/** The weight of the icon. */
|
|
41
|
+
weight?: ScalarIconWeight;
|
|
42
|
+
/**
|
|
43
|
+
* Whether to display a tooltip when hovering over the icon button
|
|
44
|
+
*
|
|
45
|
+
* If `true`, the `label` will be displayed when hovering over the
|
|
46
|
+
* icon button. Can also be a specific placement for the tooltip.
|
|
47
|
+
*/
|
|
48
|
+
tooltip?: boolean | ScalarTooltipPlacement;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEhF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAExE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,IAAI,EAAE,IAAI,GAAG,mBAAmB,CAAA;IAChC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAA;CAC3C,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { VariantProps } from 'cva';
|
|
2
|
+
export declare const variants: (props?: ({
|
|
3
|
+
size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
variant?: "solid" | "outlined" | "ghost" | "danger" | undefined;
|
|
6
|
+
} & ({
|
|
7
|
+
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 | {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
} | null | undefined)[] | {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
} | null | undefined)[] | {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
} | null | undefined)[] | {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
} | null | undefined)[] | {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
} | null | undefined)[] | {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
} | null | undefined)[] | {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
} | null | undefined)[] | {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
} | null | undefined)[] | {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
} | null | undefined)[] | {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
} | null | undefined)[] | {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
} | null | undefined)[] | {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
} | null | undefined;
|
|
32
|
+
className?: never;
|
|
33
|
+
} | {
|
|
34
|
+
class?: never;
|
|
35
|
+
className?: 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 | {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
} | null | undefined)[] | {
|
|
38
|
+
[x: string]: any;
|
|
39
|
+
} | null | undefined)[] | {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
} | null | undefined)[] | {
|
|
42
|
+
[x: string]: any;
|
|
43
|
+
} | null | undefined)[] | {
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
} | null | undefined)[] | {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
} | null | undefined)[] | {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
} | null | undefined)[] | {
|
|
50
|
+
[x: string]: any;
|
|
51
|
+
} | null | undefined)[] | {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
} | null | undefined)[] | {
|
|
54
|
+
[x: string]: any;
|
|
55
|
+
} | null | undefined)[] | {
|
|
56
|
+
[x: string]: any;
|
|
57
|
+
} | null | undefined)[] | {
|
|
58
|
+
[x: string]: any;
|
|
59
|
+
} | null | undefined;
|
|
60
|
+
})) | undefined) => string;
|
|
61
|
+
export type Variants = VariantProps<typeof variants>;
|
|
62
|
+
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/variants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA0BnB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { cva as s } from "@scalar/use-hooks/useBindCx";
|
|
2
|
+
import { styles as a } from "../ScalarButton/variants.js";
|
|
3
|
+
const o = s({
|
|
4
|
+
base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
xxs: "size-3.5 p-0.5",
|
|
8
|
+
xs: "size-5 p-1",
|
|
9
|
+
sm: "size-6 p-1",
|
|
10
|
+
md: "size-10 p-3",
|
|
11
|
+
full: "size-full"
|
|
12
|
+
},
|
|
13
|
+
disabled: {
|
|
14
|
+
true: "cursor-not-allowed shadow-none"
|
|
15
|
+
},
|
|
16
|
+
variant: a
|
|
17
|
+
},
|
|
18
|
+
compoundVariants: [
|
|
19
|
+
{
|
|
20
|
+
size: "md",
|
|
21
|
+
variant: "ghost",
|
|
22
|
+
class: "size-8 p-2 m-1 -outline-offset-2 rounded-lg"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
size: "md",
|
|
27
|
+
variant: "ghost"
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
o as variants
|
|
32
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarListbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListbox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarListbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListbox.vue"],"names":[],"mappings":"AAwGA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAIrC,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,EAAE,KAAK,GAAG,SAAS,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,QAAQ,EAAE,IAAI,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAClC,CAAA;AAkCD,iBAAS,cAAc;WA0HT,OAAO,IAA6B;;QA1IhD,4CAA4C;uBAC7B;YACb,yCAAyC;YACzC,IAAI,EAAE,OAAO,CAAA;SACd,GAAG,GAAG;;QAJP,4CAA4C;uBAC7B;YACb,yCAAyC;YACzC,IAAI,EAAE,OAAO,CAAA;SACd,GAAG,GAAG;;;;EA2IR;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aAhLR,MAAM,EAAE;SACZ,MAAM;YACH,MAAM;;aAFL,MAAM,EAAE;SACZ,MAAM;YACH,MAAM;;;;aAFL,MAAM,EAAE;SACZ,MAAM;YACH,MAAM;;aAFL,MAAM,EAAE;SACZ,MAAM;YACH,MAAM;;;kFAqLhB,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,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as c, createBlock as
|
|
1
|
+
import { defineComponent as c, createBlock as i, openBlock as o, unref as t, withCtx as l, createCommentVNode as n, createVNode as r, createTextVNode as y, toDisplayString as b, mergeProps as p, renderSlot as V, createElementBlock as d, createElementVNode as B, Fragment as _, renderList as g, normalizeStyle as k } from "vue";
|
|
2
2
|
import { Listbox as x, ListboxLabel as L, ListboxButton as h, ListboxOptions as $ } from "@headlessui/vue";
|
|
3
|
-
import { useBindCx as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const w = { class: "custom-scroll min-h-0 flex-1" },
|
|
3
|
+
import { useBindCx as S } from "@scalar/use-hooks/useBindCx";
|
|
4
|
+
import C from "./ScalarListboxItem.vue.js";
|
|
5
|
+
import N from "../ScalarFloating/ScalarFloating.vue.js";
|
|
6
|
+
import v from "../ScalarFloating/ScalarFloatingBackdrop.vue.js";
|
|
7
|
+
const w = { class: "custom-scroll min-h-0 flex-1" }, T = /* @__PURE__ */ c({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "ScalarListbox",
|
|
10
10
|
props: {
|
|
@@ -22,50 +22,49 @@ const w = { class: "custom-scroll min-h-0 flex-1" }, P = /* @__PURE__ */ c({
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
24
|
setup(z) {
|
|
25
|
-
const { cx:
|
|
26
|
-
return (e,
|
|
25
|
+
const { cx: u } = S();
|
|
26
|
+
return (e, m) => (o(), i(t(x), {
|
|
27
27
|
modelValue: e.modelValue,
|
|
28
28
|
multiple: e.multiple,
|
|
29
|
-
"onUpdate:modelValue":
|
|
29
|
+
"onUpdate:modelValue": m[0] || (m[0] = (a) => e.$emit("update:modelValue", a))
|
|
30
30
|
}, {
|
|
31
31
|
default: l(({ open: a }) => [
|
|
32
|
-
e.label ? (o(),
|
|
32
|
+
e.label ? (o(), i(t(L), {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "sr-only"
|
|
35
35
|
}, {
|
|
36
36
|
default: l(() => [
|
|
37
|
-
b(
|
|
37
|
+
y(b(e.label), 1)
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
|
-
})) :
|
|
41
|
-
|
|
40
|
+
})) : n("", !0),
|
|
41
|
+
r(t(N), p(e.$props, {
|
|
42
42
|
placement: e.placement ?? "bottom-start"
|
|
43
43
|
}), {
|
|
44
44
|
floating: l(({ width: f }) => [
|
|
45
|
-
a ? (o(),
|
|
45
|
+
a ? (o(), d("div", p({
|
|
46
46
|
key: 0,
|
|
47
47
|
style: { width: f }
|
|
48
|
-
}, t(
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
}, t(u)("relative flex max-h-[inherit] w-40 rounded text-sm")), [
|
|
49
|
+
B("div", w, [
|
|
50
|
+
r(t($), { class: "flex flex-col gap-0.75 p-0.75 -outline-offset-1" }, {
|
|
51
51
|
default: l(() => [
|
|
52
|
-
(o(!0),
|
|
53
|
-
key:
|
|
54
|
-
option:
|
|
52
|
+
(o(!0), d(_, null, g(e.options, (s) => (o(), i(C, {
|
|
53
|
+
key: s.id,
|
|
54
|
+
option: s,
|
|
55
55
|
style: k(e.multiple ? "checkbox" : "radio")
|
|
56
56
|
}, null, 8, ["option", "style"]))), 128))
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
})
|
|
60
60
|
]),
|
|
61
|
-
|
|
62
|
-
], 16)) :
|
|
61
|
+
r(t(v))
|
|
62
|
+
], 16)) : n("", !0)
|
|
63
63
|
]),
|
|
64
64
|
default: l(() => [
|
|
65
|
-
|
|
65
|
+
r(t(h), {
|
|
66
66
|
id: e.id,
|
|
67
|
-
as: "template"
|
|
68
|
-
class: "justify-start focus:outline-none focus-visible:ring-1 focus-visible:ring-c-accent"
|
|
67
|
+
as: "template"
|
|
69
68
|
}, {
|
|
70
69
|
default: l(() => [
|
|
71
70
|
V(e.$slots, "default", { open: a })
|
|
@@ -81,5 +80,5 @@ const w = { class: "custom-scroll min-h-0 flex-1" }, P = /* @__PURE__ */ c({
|
|
|
81
80
|
}
|
|
82
81
|
});
|
|
83
82
|
export {
|
|
84
|
-
|
|
83
|
+
T as default
|
|
85
84
|
};
|
|
@@ -38,7 +38,7 @@ declare const meta: {
|
|
|
38
38
|
type?: "button" | "submit" | "reset";
|
|
39
39
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
40
40
|
size: "sm" | "md";
|
|
41
|
-
variant:
|
|
41
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
42
42
|
fullWidth: boolean;
|
|
43
43
|
type: "button" | "submit" | "reset";
|
|
44
44
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -57,7 +57,7 @@ declare const meta: {
|
|
|
57
57
|
type?: "button" | "submit" | "reset";
|
|
58
58
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
59
59
|
size: "sm" | "md";
|
|
60
|
-
variant:
|
|
60
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
61
61
|
fullWidth: boolean;
|
|
62
62
|
type: "button" | "submit" | "reset";
|
|
63
63
|
}>;
|
|
@@ -73,7 +73,7 @@ declare const meta: {
|
|
|
73
73
|
type?: "button" | "submit" | "reset";
|
|
74
74
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
75
75
|
size: "sm" | "md";
|
|
76
|
-
variant:
|
|
76
|
+
variant: "solid" | "outlined" | "ghost" | "danger";
|
|
77
77
|
fullWidth: boolean;
|
|
78
78
|
type: "button" | "submit" | "reset";
|
|
79
79
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { ScalarIconComponent } from '@scalar/icons/types';
|
|
1
2
|
import type { Component } from 'vue';
|
|
2
3
|
import { type Icon } from '../ScalarIcon';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
is?: string | Component;
|
|
5
|
-
icon?: Icon |
|
|
6
|
+
icon?: Icon | ScalarIconComponent;
|
|
6
7
|
strong?: boolean;
|
|
7
8
|
};
|
|
8
9
|
declare function __VLS_template(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuLink.vue"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,eAAe,CAAA;AAIlE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,
|
|
1
|
+
{"version":3,"file":"ScalarMenuLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuLink.vue"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,eAAe,CAAA;AAIlE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,mBAAmB,CAAA;IACjC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AASF,iBAAS,cAAc;WAgET,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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,10 @@
|
|
|
1
|
+
import type { ScalarIconComponent } from '@scalar/icons/types';
|
|
1
2
|
import type { Component } from 'vue';
|
|
2
3
|
import type { Icon } from '../../index.js';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
is?: string | Component;
|
|
5
6
|
selected?: boolean;
|
|
6
|
-
icon: Icon |
|
|
7
|
+
icon: Icon | ScalarIconComponent;
|
|
7
8
|
};
|
|
8
9
|
declare function __VLS_template(): {
|
|
9
10
|
attrs: Partial<{}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuProduct.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProduct.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuProduct.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProduct.vue"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAG9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAKlC,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,IAAI,GAAG,mBAAmB,CAAA;CACjC,CAAC;AAsBF,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -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 () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScalarIconComponent } from '@scalar/icons/types';
|
|
2
2
|
import { type Icon } from '../ScalarIcon';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
icon?: Icon |
|
|
4
|
+
icon?: Icon | ScalarIconComponent;
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare function __VLS_template(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAG9D,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,eAAe,CAAA;AAIlE,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,mBAAmB,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAWF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;sBAXxB,GAAG;yBACA,GAAG;uBACL,GAAG;6BACG,GAAG;;;;EAanC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -77,7 +77,7 @@ declare const meta: {
|
|
|
77
77
|
});
|
|
78
78
|
ScalarSearchResultItem: {
|
|
79
79
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
80
|
-
icon?: import("../ScalarIcon/index.js").Icon | import("
|
|
80
|
+
icon?: import("../ScalarIcon/index.js").Icon | import("@scalar/icons/types").ScalarIconComponent;
|
|
81
81
|
selected?: boolean;
|
|
82
82
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
83
83
|
P: {};
|
|
@@ -87,14 +87,14 @@ declare const meta: {
|
|
|
87
87
|
M: {};
|
|
88
88
|
Defaults: {};
|
|
89
89
|
}, Readonly<{
|
|
90
|
-
icon?: import("../ScalarIcon/index.js").Icon | import("
|
|
90
|
+
icon?: import("../ScalarIcon/index.js").Icon | import("@scalar/icons/types").ScalarIconComponent;
|
|
91
91
|
selected?: boolean;
|
|
92
92
|
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
93
93
|
__isFragment?: never;
|
|
94
94
|
__isTeleport?: never;
|
|
95
95
|
__isSuspense?: never;
|
|
96
96
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
97
|
-
icon?: import("../ScalarIcon/index.js").Icon | import("
|
|
97
|
+
icon?: import("../ScalarIcon/index.js").Icon | import("@scalar/icons/types").ScalarIconComponent;
|
|
98
98
|
selected?: boolean;
|
|
99
99
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
100
100
|
$slots: {
|
|
@@ -3,9 +3,8 @@ declare const meta: Meta;
|
|
|
3
3
|
export default meta;
|
|
4
4
|
type Story = StoryObj<typeof meta>;
|
|
5
5
|
export declare const Base: Story;
|
|
6
|
-
export declare const WithNavItems: Story;
|
|
7
6
|
export declare const WithNestedGroups: Story;
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
7
|
+
export declare const WithSections: Story;
|
|
8
|
+
export declare const WithFooterContent: Story;
|
|
10
9
|
export declare const WithSearchButton: Story;
|
|
11
10
|
//# sourceMappingURL=ScalarSidebar.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebar.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"ScalarSidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebar.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAYrD,QAAA,MAAM,IAAI,EAAE,IA0BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,gBAAgB,EAAE,KAkE9B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAqD1B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAgB/B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAoB9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarButton.vue"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAI7E;;;;;;;;;;;;;;;;;;;;;GAqBG;;AACH,
|
|
1
|
+
{"version":3,"file":"ScalarSidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarButton.vue"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAI7E;;;;;;;;;;;;;;;;;;;;;GAqBG;;AACH,wBA+HC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|