@scalar/components 0.13.12 → 0.13.13
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/ScalarDropdown/ScalarDropdownButton.vue.d.ts +5 -6
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +19 -17
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +7 -7
- package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +1 -1
- package/dist/components/ScalarIcon/icons/UserSwitch.svg.js +20 -0
- 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-dart.svg.js +16 -0
- package/dist/components/ScalarIcon/utils/index.js +154 -150
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts +12 -13
- package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts +1 -2
- package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenu.vue.js +62 -59
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +15 -21
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts +3 -0
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +31 -19
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +3 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +20 -18
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +21 -12
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts +0 -1
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.js +9 -14
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts +9 -5
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +97 -43
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.d.ts +7 -0
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.d.ts.map +1 -0
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.js +39 -0
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue2.js +4 -0
- package/dist/components/ScalarMenu/index.d.ts +2 -0
- package/dist/components/ScalarMenu/index.d.ts.map +1 -1
- package/dist/components/ScalarMenu/types.d.ts +11 -4
- package/dist/components/ScalarMenu/types.d.ts.map +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.d.ts.map +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.js +11 -11
- package/dist/index.js +72 -70
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/vue3';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
component: {
|
|
4
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
5
5
|
P: {};
|
|
6
6
|
B: {};
|
|
7
7
|
D: {};
|
|
8
8
|
C: {};
|
|
9
9
|
M: {};
|
|
10
10
|
Defaults: {};
|
|
11
|
-
}, Readonly<
|
|
11
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
12
12
|
__isFragment?: never;
|
|
13
13
|
__isTeleport?: never;
|
|
14
14
|
__isSuspense?: never;
|
|
15
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
15
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
16
16
|
$slots: Readonly<{
|
|
17
17
|
button?: (p: import("./types").ScalarMenuButtonProps) => any;
|
|
18
18
|
products?: (p: import("./types").ScalarMenuSlotProps) => any;
|
|
@@ -39,18 +39,18 @@ declare const meta: {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
render: (args: import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
42
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<
|
|
42
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
43
43
|
P: {};
|
|
44
44
|
B: {};
|
|
45
45
|
D: {};
|
|
46
46
|
C: {};
|
|
47
47
|
M: {};
|
|
48
48
|
Defaults: {};
|
|
49
|
-
}, Readonly<
|
|
49
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
50
50
|
__isFragment?: never;
|
|
51
51
|
__isTeleport?: never;
|
|
52
52
|
__isSuspense?: never;
|
|
53
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
53
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & 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 () => {
|
|
54
54
|
$slots: Readonly<{
|
|
55
55
|
button?: (p: import("./types").ScalarMenuButtonProps) => any;
|
|
56
56
|
products?: (p: import("./types").ScalarMenuSlotProps) => any;
|
|
@@ -65,18 +65,18 @@ declare const meta: {
|
|
|
65
65
|
})>) => {
|
|
66
66
|
components: {
|
|
67
67
|
ScalarMenu: {
|
|
68
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<
|
|
68
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
69
69
|
P: {};
|
|
70
70
|
B: {};
|
|
71
71
|
D: {};
|
|
72
72
|
C: {};
|
|
73
73
|
M: {};
|
|
74
74
|
Defaults: {};
|
|
75
|
-
}, Readonly<
|
|
75
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
76
76
|
__isFragment?: never;
|
|
77
77
|
__isTeleport?: never;
|
|
78
78
|
__isSuspense?: never;
|
|
79
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
79
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & 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 () => {
|
|
80
80
|
$slots: Readonly<{
|
|
81
81
|
button?: (p: import("./types").ScalarMenuButtonProps) => any;
|
|
82
82
|
products?: (p: import("./types").ScalarMenuSlotProps) => any;
|
|
@@ -92,18 +92,18 @@ declare const meta: {
|
|
|
92
92
|
};
|
|
93
93
|
setup(this: void): {
|
|
94
94
|
args: import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
95
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<
|
|
95
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
96
96
|
P: {};
|
|
97
97
|
B: {};
|
|
98
98
|
D: {};
|
|
99
99
|
C: {};
|
|
100
100
|
M: {};
|
|
101
101
|
Defaults: {};
|
|
102
|
-
}, Readonly<
|
|
102
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
103
103
|
__isFragment?: never;
|
|
104
104
|
__isTeleport?: never;
|
|
105
105
|
__isSuspense?: never;
|
|
106
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
106
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & 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 () => {
|
|
107
107
|
$slots: Readonly<{
|
|
108
108
|
button?: (p: import("./types").ScalarMenuButtonProps) => any;
|
|
109
109
|
products?: (p: import("./types").ScalarMenuSlotProps) => any;
|
|
@@ -125,6 +125,5 @@ type Story = StoryObj<typeof meta>;
|
|
|
125
125
|
export declare const Base: Story;
|
|
126
126
|
export declare const TeamPicker: Story;
|
|
127
127
|
export declare const CustomLogo: Story;
|
|
128
|
-
export declare const CustomLogoAndTitle: Story;
|
|
129
128
|
export declare const CustomButton: Story;
|
|
130
129
|
//# sourceMappingURL=ScalarMenu.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"ScalarMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAcrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcyB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,UAAU,EAAE,KAiDxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAqB1B,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ScalarFloatingOptions } from '../ScalarFloating';
|
|
2
1
|
import type { ScalarMenuButtonProps, ScalarMenuButtonSlots, ScalarMenuSlotProps } from './types';
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
3
|
attrs: Partial<{}>;
|
|
@@ -25,7 +24,7 @@ declare function __VLS_template(): {
|
|
|
25
24
|
rootEl: any;
|
|
26
25
|
};
|
|
27
26
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
27
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
29
|
export default _default;
|
|
31
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.vue"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAgChB,iBAAS,cAAc;WA8FT,OAAO,IAA6B;;QAxH9C,uCAAuC;iBAC9B,CAAC,CAAC,EAAE,qBAAqB,KAAK,GAAG;QAC1C,kCAAkC;mBACvB,CAAC,CAAC,EAAE,mBAAmB,KAAK,GAAG;QAC1C,0DAA0D;kBAChD,CAAC,CAAC,EAAE,mBAAmB,KAAK,GAAG;QACzC,sCAAsC;mBAC3B,CAAC,CAAC,EAAE,mBAAmB,KAAK,GAAG;;QAP1C,uCAAuC;iBAC9B,CAAC,CAAC,EAAE,qBAAqB,KAAK,GAAG;QAC1C,kCAAkC;mBACvB,CAAC,CAAC,EAAE,mBAAmB,KAAK,GAAG;QAC1C,0DAA0D;kBAChD,CAAC,CAAC,EAAE,mBAAmB,KAAK,GAAG;QACzC,sCAAsC;mBAC3B,CAAC,CAAC,EAAE,mBAAmB,KAAK,GAAG;;;;EAsH7C;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,67 +1,70 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as i, ref as m, openBlock as u, createBlock as d, unref as n, withCtx as t, createVNode as l, renderSlot as e, createSlots as $, mergeProps as c } from "vue";
|
|
2
|
+
import { DropdownMenu as r } from "radix-vue/namespaced";
|
|
3
|
+
import _ from "./ScalarMenuButton.vue.js";
|
|
4
|
+
import g from "./ScalarMenuProducts.vue.js";
|
|
5
|
+
import v from "./ScalarMenuResources.vue.js";
|
|
6
|
+
import b from "../ScalarDropdown/ScalarDropdownMenu.vue.js";
|
|
7
|
+
const M = /* @__PURE__ */ i({
|
|
8
|
+
inheritAttrs: !1,
|
|
7
9
|
__name: "ScalarMenu",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
10
|
+
setup(k) {
|
|
11
|
+
const s = m(!1);
|
|
12
|
+
function a() {
|
|
13
|
+
s.value = !1;
|
|
14
|
+
}
|
|
15
|
+
return (o, f) => (u(), d(n(r).Root, {
|
|
16
|
+
open: s.value,
|
|
17
|
+
"onUpdate:open": f[0] || (f[0] = (p) => s.value = p)
|
|
18
|
+
}, {
|
|
19
|
+
default: t(() => [
|
|
20
|
+
l(n(r).Trigger, { asChild: "" }, {
|
|
21
|
+
default: t(() => [
|
|
22
|
+
e(o.$slots, "button", { open: s.value }, () => [
|
|
23
|
+
l(_, {
|
|
24
|
+
class: "min-w-0",
|
|
25
|
+
open: s.value
|
|
26
|
+
}, $({ _: 2 }, [
|
|
27
|
+
o.$slots.logo ? {
|
|
28
|
+
name: "logo",
|
|
29
|
+
fn: t(() => [
|
|
30
|
+
e(o.$slots, "logo")
|
|
31
|
+
]),
|
|
32
|
+
key: "0"
|
|
33
|
+
} : void 0,
|
|
34
|
+
o.$slots.label ? {
|
|
35
|
+
name: "label",
|
|
36
|
+
fn: t(() => [
|
|
37
|
+
e(o.$slots, "label")
|
|
38
|
+
]),
|
|
39
|
+
key: "1"
|
|
40
|
+
} : void 0
|
|
41
|
+
]), 1032, ["open"])
|
|
42
|
+
])
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
}),
|
|
46
|
+
l(n(r).Content, c({
|
|
47
|
+
align: "start",
|
|
48
|
+
as: n(b),
|
|
49
|
+
class: "max-h-radix-popper",
|
|
50
|
+
sideOffset: 5
|
|
51
|
+
}, o.$attrs), {
|
|
52
|
+
default: t(() => [
|
|
53
|
+
e(o.$slots, "products", { close: a }, () => [
|
|
54
|
+
l(g)
|
|
55
|
+
]),
|
|
56
|
+
e(o.$slots, "profile", { close: a }),
|
|
57
|
+
e(o.$slots, "sections", { close: a }, () => [
|
|
58
|
+
l(v)
|
|
59
|
+
])
|
|
54
60
|
]),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
t(d)
|
|
58
|
-
])
|
|
59
|
-
])
|
|
61
|
+
_: 3
|
|
62
|
+
}, 16, ["as"])
|
|
60
63
|
]),
|
|
61
64
|
_: 3
|
|
62
|
-
},
|
|
65
|
+
}, 8, ["open"]));
|
|
63
66
|
}
|
|
64
67
|
});
|
|
65
68
|
export {
|
|
66
|
-
|
|
69
|
+
M as default
|
|
67
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuButton.vue"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAA;AAiBtC,iBAAS,cAAc;WAiET,OAAO,IAA6B;;;;EAKjD;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sTAOnB,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,33 +1,27 @@
|
|
|
1
|
-
import { defineComponent as a, openBlock as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "ml-0.75 truncate"
|
|
7
|
-
}, C = { class: "sr-only" }, b = /* @__PURE__ */ a({
|
|
1
|
+
import { defineComponent as a, openBlock as l, createBlock as c, unref as e, withCtx as p, createElementVNode as n, renderSlot as t, createVNode as r, createTextVNode as i, toDisplayString as u } from "vue";
|
|
2
|
+
import m from "../ScalarHeader/ScalarHeaderButton.vue.js";
|
|
3
|
+
import s from "../ScalarIcon/ScalarIcon.vue.js";
|
|
4
|
+
const d = { class: "h-5 w-auto" }, _ = { class: "sr-only" }, B = /* @__PURE__ */ a({
|
|
8
5
|
__name: "ScalarMenuButton",
|
|
9
6
|
props: {
|
|
10
7
|
open: { type: Boolean }
|
|
11
8
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (
|
|
9
|
+
setup(f) {
|
|
10
|
+
return (o, h) => (l(), c(e(m), { class: "gap-0.5 px-2" }, {
|
|
14
11
|
default: p(() => [
|
|
15
|
-
|
|
16
|
-
t(
|
|
17
|
-
r(
|
|
12
|
+
n("div", d, [
|
|
13
|
+
t(o.$slots, "logo", {}, () => [
|
|
14
|
+
r(e(s), { icon: "Logo" })
|
|
18
15
|
])
|
|
19
16
|
]),
|
|
20
|
-
|
|
21
|
-
t(
|
|
22
|
-
|
|
23
|
-
s("span", C, [
|
|
24
|
-
t(e.$slots, "sr-label", {}, () => [
|
|
25
|
-
u(d(e.open ? "Close Menu" : "Open Menu"), 1)
|
|
17
|
+
n("span", _, [
|
|
18
|
+
t(o.$slots, "label", {}, () => [
|
|
19
|
+
i(u(o.open ? "Close Menu" : "Open Menu"), 1)
|
|
26
20
|
])
|
|
27
21
|
]),
|
|
28
|
-
r(
|
|
22
|
+
r(e(s), {
|
|
29
23
|
class: "shrink-0 text-c-3 group-hover/button:text-c-1",
|
|
30
|
-
icon:
|
|
24
|
+
icon: o.open ? "ChevronUp" : "ChevronDown",
|
|
31
25
|
size: "md"
|
|
32
26
|
}, null, 8, ["icon"])
|
|
33
27
|
]),
|
|
@@ -36,5 +30,5 @@ const h = { class: "h-5 w-auto" }, f = {
|
|
|
36
30
|
}
|
|
37
31
|
});
|
|
38
32
|
export {
|
|
39
|
-
|
|
33
|
+
B as default
|
|
40
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuLink.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuLink.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AASF,iBAAS,cAAc;WA0DT,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,28 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as r, openBlock as o, createBlock as n, unref as s, withCtx as a, normalizeClass as t, createElementBlock as i, createElementVNode as l, renderSlot as c } from "vue";
|
|
2
|
+
import { DropdownMenu as m } from "radix-vue/namespaced";
|
|
3
|
+
import f from "../ScalarDropdown/ScalarDropdownButton.vue.js";
|
|
4
|
+
import p from "../ScalarIcon/ScalarIcon.vue.js";
|
|
5
|
+
const d = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "size-3"
|
|
8
|
+
}, _ = /* @__PURE__ */ r({
|
|
5
9
|
__name: "ScalarMenuLink",
|
|
6
10
|
props: {
|
|
7
|
-
is: {}
|
|
11
|
+
is: { default: () => m.Item },
|
|
12
|
+
icon: {},
|
|
13
|
+
strong: { type: Boolean }
|
|
8
14
|
},
|
|
9
|
-
setup(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
setup(u) {
|
|
16
|
+
return (e, k) => (o(), n(s(f), {
|
|
17
|
+
is: e.is,
|
|
18
|
+
as: "a"
|
|
19
|
+
}, {
|
|
20
|
+
default: a(() => [
|
|
21
|
+
e.icon ? (o(), n(s(p), {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: t(e.strong ? "text-c-1" : "text-c-2"),
|
|
24
|
+
icon: e.icon,
|
|
25
|
+
size: "xs",
|
|
26
|
+
thickness: e.strong ? "2.5" : "2"
|
|
27
|
+
}, null, 8, ["class", "icon", "thickness"])) : (o(), i("div", d)),
|
|
28
|
+
l("div", {
|
|
29
|
+
class: t(["flex items-center flex-1", e.strong ? "font-medium" : "font-normal"])
|
|
30
|
+
}, [
|
|
31
|
+
c(e.$slots, "default")
|
|
32
|
+
], 2)
|
|
21
33
|
]),
|
|
22
34
|
_: 3
|
|
23
|
-
},
|
|
35
|
+
}, 8, ["is"]));
|
|
24
36
|
}
|
|
25
37
|
});
|
|
26
38
|
export {
|
|
27
|
-
|
|
39
|
+
_ as default
|
|
28
40
|
};
|
|
@@ -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":"AAuCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAOlC,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,IAAI,CAAA;CACX,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"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, openBlock as s, createBlock as a, unref as r, mergeProps as i, withCtx as c, renderSlot as l } from "vue";
|
|
2
2
|
import { cva as p } from "../../cva.js";
|
|
3
|
-
import { useBindCx as
|
|
4
|
-
import f from "
|
|
5
|
-
const
|
|
3
|
+
import { useBindCx as d } from "../../hooks/useBindCx.js";
|
|
4
|
+
import f from "./ScalarMenuLink.vue.js";
|
|
5
|
+
const h = /* @__PURE__ */ n({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "ScalarMenuProduct",
|
|
8
8
|
props: {
|
|
9
|
+
is: { default: "a" },
|
|
9
10
|
selected: { type: Boolean },
|
|
10
11
|
icon: {}
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const { cx:
|
|
14
|
-
base: "
|
|
13
|
+
setup(m) {
|
|
14
|
+
const { cx: o } = d(), t = p({
|
|
15
|
+
base: "gap-1.5",
|
|
15
16
|
variants: {
|
|
16
17
|
selected: {
|
|
17
18
|
true: "pointer-events-none bg-b-2 dark:bg-b-3",
|
|
@@ -19,18 +20,19 @@ const u = { class: "font-medium" }, x = /* @__PURE__ */ t({
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
|
-
return (e,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
])
|
|
31
|
-
|
|
23
|
+
return (e, u) => (s(), a(r(f), i({
|
|
24
|
+
is: e.is,
|
|
25
|
+
icon: e.icon,
|
|
26
|
+
strong: "",
|
|
27
|
+
target: "_blank"
|
|
28
|
+
}, r(o)(r(t)({ selected: e.selected }))), {
|
|
29
|
+
default: c(() => [
|
|
30
|
+
l(e.$slots, "default")
|
|
31
|
+
]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 16, ["is", "icon"]));
|
|
32
34
|
}
|
|
33
35
|
});
|
|
34
36
|
export {
|
|
35
|
-
|
|
37
|
+
h as default
|
|
36
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuResources.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuResources.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ScalarMenuResources.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuResources.vue"],"names":[],"mappings":";AAsHA,wBAMG"}
|
|
@@ -1,31 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, openBlock as l, createBlock as i, withCtx as o, createTextVNode as e, createVNode as r } from "vue";
|
|
2
2
|
import a from "./ScalarMenuLink.vue.js";
|
|
3
|
-
import
|
|
4
|
-
const d = /* @__PURE__ */
|
|
3
|
+
import s from "./ScalarMenuSection.vue.js";
|
|
4
|
+
const d = /* @__PURE__ */ n({
|
|
5
5
|
__name: "ScalarMenuResources",
|
|
6
6
|
setup(m) {
|
|
7
|
-
return (
|
|
8
|
-
title:
|
|
7
|
+
return (c, t) => (l(), i(s, null, {
|
|
8
|
+
title: o(() => t[0] || (t[0] = [
|
|
9
9
|
e("Resources")
|
|
10
10
|
])),
|
|
11
|
-
default:
|
|
12
|
-
|
|
11
|
+
default: o(() => [
|
|
12
|
+
r(a, {
|
|
13
13
|
href: "mailto:marc@scalar.com",
|
|
14
|
+
icon: "Email",
|
|
14
15
|
target: "_blank"
|
|
15
16
|
}, {
|
|
16
|
-
default:
|
|
17
|
+
default: o(() => t[1] || (t[1] = [
|
|
17
18
|
e(" Sales & Support ")
|
|
18
19
|
])),
|
|
19
20
|
_: 1
|
|
20
21
|
}),
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
r(a, {
|
|
23
|
+
href: "https://scalar.com/terms-and-conditions",
|
|
24
|
+
icon: "DocsPage",
|
|
25
|
+
target: "_blank"
|
|
26
|
+
}, {
|
|
27
|
+
default: o(() => t[2] || (t[2] = [
|
|
23
28
|
e(" Terms & Conditions ")
|
|
24
29
|
])),
|
|
25
30
|
_: 1
|
|
26
31
|
}),
|
|
27
|
-
|
|
28
|
-
|
|
32
|
+
r(a, {
|
|
33
|
+
href: "https://scalar.com/privacy-policy",
|
|
34
|
+
icon: "Changelog",
|
|
35
|
+
target: "_blank"
|
|
36
|
+
}, {
|
|
37
|
+
default: o(() => t[3] || (t[3] = [
|
|
29
38
|
e(" Privacy Policy ")
|
|
30
39
|
])),
|
|
31
40
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuSection.vue"],"names":[],"mappings":"AAsBA,iBAAS,cAAc;WAuCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, openBlock as t, createElementBlock as n, Fragment as o, createVNode as a, unref as l, renderSlot as c } from "vue";
|
|
2
|
+
import i from "../ScalarDropdown/ScalarDropdownDivider.vue.js";
|
|
3
|
+
const u = /* @__PURE__ */ r({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "ScalarMenuSection",
|
|
6
|
-
setup(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
]),
|
|
12
|
-
t("div", m, [
|
|
13
|
-
o(e.$slots, "default")
|
|
14
|
-
])
|
|
15
|
-
], 16));
|
|
6
|
+
setup(m) {
|
|
7
|
+
return (e, p) => (t(), n(o, null, [
|
|
8
|
+
a(l(i)),
|
|
9
|
+
c(e.$slots, "default")
|
|
10
|
+
], 64));
|
|
16
11
|
}
|
|
17
12
|
});
|
|
18
13
|
export {
|
|
19
|
-
|
|
14
|
+
u as default
|
|
20
15
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ScalarMenuTeamOption } from '.';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/** The currently selected team */
|
|
4
|
+
team?: ScalarMenuTeamOption | undefined;
|
|
5
|
+
/** The list of teams to choose from */
|
|
6
|
+
teams: ScalarMenuTeamOption[];
|
|
5
7
|
};
|
|
6
8
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
|
|
9
|
+
add: () => any;
|
|
10
|
+
"update:team": (value: ScalarMenuTeamOption | undefined) => any;
|
|
8
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
|
|
12
|
+
onAdd?: (() => any) | undefined;
|
|
13
|
+
"onUpdate:team"?: ((value: ScalarMenuTeamOption | undefined) => any) | undefined;
|
|
10
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
15
|
export default _default;
|
|
12
16
|
//# sourceMappingURL=ScalarMenuTeamPicker.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"AAkGA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,IAAI,CAAA;AAK9D,KAAK,WAAW,GAAG;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACvC,uCAAuC;IACvC,KAAK,EAAE,oBAAoB,EAAE,CAAA;CAC9B,CAAC;;;;;;;;AAwLF,wBAOG"}
|