@pantograph/vue 0.6.4 → 0.6.6
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/ActionButton/ActionButton.d.ts +100 -22
- package/dist/ActionButton/{index.es.js → index.js.js} +1 -1
- package/dist/ActionButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BRYxIFQL.js → ActionButton.vue_vue_type_script_setup_true_lang-BbIIyV6t.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-9sHS6TT0.js → ActionButton.vue_vue_type_script_setup_true_lang-OA7L3d0i.js} +4 -4
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/{index.es.js → index.js.js} +1 -1
- package/dist/Avatar/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BmH5aQJ1.js +188 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DO7InR4k.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +11 -3
- package/dist/AvatarGroup/{index.es.js → index.js.js} +1 -1
- package/dist/AvatarGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Badge/Badge.d.ts +2 -2
- package/dist/Badge/{index.es.js → index.js.js} +1 -1
- package/dist/Badge/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-LwccxMER.js → Badge.vue_vue_type_script_setup_true_lang-DrLIHHCe.js} +4 -4
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DzkeQwzH.js → Badge.vue_vue_type_script_setup_true_lang-zP7Q3GsL.js} +1 -1
- package/dist/Base/BaseBadge/BaseBadge.d.ts +14 -5
- package/dist/Base/BaseButton/BaseButton.d.ts +94 -8
- package/dist/Base/Primitive.d.ts +39 -0
- package/dist/Base/Slot.d.ts +6 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-Cr9n5QQC.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-CHhhflIH.js → BaseBadge.vue_vue_type_style_index_0_lang-DBW85mbj.js} +33 -32
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BaS_JGCX.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1NHQaTM.js +159 -0
- package/dist/Button/Button.d.ts +108 -30
- package/dist/Button/{index.es.js → index.js.js} +1 -1
- package/dist/Button/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DNpM6F5j.js → Button.vue_vue_type_script_setup_true_lang-BjTrpQi-.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DMOtqE4k.js → Button.vue_vue_type_script_setup_true_lang-CVePGLAE.js} +4 -4
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/{index.es.js → index.js.js} +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DBq7tYaO.js → ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js} +3 -3
- package/dist/Checkbox/Checkbox.d.ts +8 -7
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Checkbox/{index.es.js → index.js.js} +1 -1
- package/dist/Checkbox/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DsMbQaMY.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-GqiihInu.js +218 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +5 -4
- package/dist/CheckboxGroup/{index.es.js → index.js.js} +1 -1
- package/dist/CheckboxGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/ConfigProvider/index.d.ts +4 -3
- package/dist/ConfigProvider/index.js.js +10 -0
- package/dist/ConfigProvider/index.umd.cjs.js +1 -0
- package/dist/ConfigProvider/utils.d.ts +4 -3
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/{index.es.js → index.js.js} +1 -1
- package/dist/{Divider.vue_vue_type_style_index_0_lang-SBMg48di.js → Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js} +5 -5
- package/dist/FloatButton/FloatButton.d.ts +108 -30
- package/dist/FloatButton/{index.es.js → index.js.js} +1 -1
- package/dist/FloatButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BD8KDs-3.js → FloatButton.vue_vue_type_script_setup_true_lang-CtPvptQe.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CLL_AR_I.js → FloatButton.vue_vue_type_script_setup_true_lang-Mq9SbxDf.js} +4 -4
- package/dist/GraphicalObject/GraphicalObject.d.ts +2 -2
- package/dist/GraphicalObject/{index.es.js → index.js.js} +1 -1
- package/dist/GraphicalObject/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DqfDSUXz.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CIVx-hL6.js} +4 -4
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BKYCNg9l.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DnyJeR9h.js} +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/index.d.ts +1 -1
- package/dist/Icon/{index.es.js → index.js.js} +1 -1
- package/dist/Icon/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js +48 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js +1 -0
- package/dist/IconButton/IconButton.d.ts +108 -30
- package/dist/IconButton/{index.es.js → index.js.js} +1 -1
- package/dist/IconButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DVbz9uji.js → IconButton.vue_vue_type_script_setup_true_lang-CuxyU51W.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DCrUZOP9.js → IconButton.vue_vue_type_script_setup_true_lang-PHB94Ft0.js} +4 -4
- package/dist/Image/index.d.ts +1 -1
- package/dist/Image/index.js.js +118 -0
- package/dist/Image/index.umd.cjs.js +1 -0
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.d.ts +1 -1
- package/dist/IndentLevel/{index.es.js → index.js.js} +1 -1
- package/dist/IndentLevel/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-BjBc3Lu1.js +104 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-D5yeMZLa.js +1 -0
- package/dist/Indicator/Indicator.d.ts +2 -2
- package/dist/Indicator/{index.es.js → index.js.js} +1 -1
- package/dist/Indicator/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-ODS_K3jA.js +34 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-nav_IgdR.js +1 -0
- package/dist/Kbd/Kbd.d.ts +1 -1
- package/dist/Kbd/{index.es.js → index.js.js} +1 -1
- package/dist/Kbd/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-Br1eygIf.js → Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-D5D9tTsQ.js → Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js} +13 -13
- package/dist/Menu/Menu.d.ts +83 -0
- package/dist/Menu/Menu.model.d.ts +2 -0
- package/dist/Menu/index.d.ts +2 -0
- package/dist/Menu/index.js.js +8 -0
- package/dist/Menu/index.umd.cjs.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-CSEBoubK.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-DvZS9q1c.js +477 -0
- package/dist/MenuItem/MenuItem.d.ts +40 -0
- package/dist/MenuItem/MenuItemContent.d.ts +50 -0
- package/dist/MenuItem/index.d.ts +2 -1
- package/dist/MenuItem/index.js.js +6 -0
- package/dist/MenuItem/index.umd.cjs.js +1 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/{index.es.js → index.js.js} +1 -1
- package/dist/Popover/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CjdTaqQ6.js +138 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-RXHBSX6d.js +1 -0
- package/dist/RadioGroup/RadioGroupItem.d.ts +4 -1
- package/dist/RadioGroup/{index.es.js → index.js.js} +7 -7
- package/dist/RadioGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Shortcut/{index.es.js → index.js.js} +7 -7
- package/dist/Shortcut/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Skeleton/Skeleton.d.ts +3 -3
- package/dist/Skeleton/index.d.ts +1 -1
- package/dist/Skeleton/{index.es.js → index.js.js} +1 -1
- package/dist/{Skeleton.vue_vue_type_style_index_0_lang-BgVkwMj4.js → Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js} +6 -6
- package/dist/Spinner/Spinner.d.ts +11 -2
- package/dist/Spinner/index.d.ts +1 -1
- package/dist/Spinner/{index.es.js → index.js.js} +1 -1
- package/dist/Spinner/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js +1 -0
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BOXr-RUw.js → Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js} +10 -10
- package/dist/Switch/Switch.d.ts +21 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/{index.es.js → index.js.js} +33 -33
- package/dist/Switch/index.umd.cjs.js +1 -0
- package/dist/Tree/Tree.model.d.ts +4 -4
- package/dist/Tree/index.d.ts +1 -1
- package/dist/Tree/index.js.js +575 -0
- package/dist/Tree/index.umd.cjs.js +1 -0
- package/dist/{class-DyU-Ox8D.js → class-DziTeW9B.js} +3 -3
- package/dist/cloneDeep-mcJFBKk6.js +1 -0
- package/dist/cloneDeep-v62P9_F-.js +8 -0
- package/dist/element-CddU1vUY.js +23 -0
- package/dist/element-uBbpeYVo.js +1 -0
- package/dist/index-BCJFpT7y.js +1 -0
- package/dist/index-DgVKQuPc.js +124 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js.js +71 -0
- package/dist/index.umd.cjs.js +1 -0
- package/dist/isArray-B7z6QoM5.js +1 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/isNumber-DlKYWCo3.js +8 -0
- package/dist/isNumber-eaDdxhkG.js +1 -0
- package/dist/isObjectLike-BatpeCIi.js +29 -0
- package/dist/isObjectLike-kO9e4B7g.js +1 -0
- package/dist/omit-1sFJ_mId.js +1 -0
- package/dist/omit-Cxaoa8oo.js +747 -0
- package/dist/pick-DKW6-a-5.js +52 -0
- package/dist/pick-DojrVogK.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/utils/element.d.ts +8 -4
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/{index.es.js → index.js.js} +1 -1
- package/dist/utils/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/package.json +78 -78
- package/dist/Avatar/Avatar.d.ts +0 -48
- package/dist/Avatar.vue_vue_type_style_index_0_lang-D72SN0zC.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-RziDt5Qs.js +0 -188
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-B1Va5X21.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js +0 -151
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BQeNpCYy.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-gsOfYgHe.js +0 -245
- package/dist/ConfigProvider/index.cjs.js +0 -1
- package/dist/ConfigProvider/index.es.js +0 -112
- package/dist/Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-W7sippxn.js +0 -48
- package/dist/Image/index.cjs.js +0 -1
- package/dist/Image/index.es.js +0 -117
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B_x8tshB.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-jaoDj9GA.js +0 -103
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-D2iFmRna.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-jv3IND51.js +0 -34
- package/dist/MenuItem/index.cjs.js +0 -1
- package/dist/MenuItem/index.es.js +0 -1
- package/dist/Popover/Popover.d.ts +0 -45
- package/dist/Popover.vue_vue_type_style_index_0_lang-BZMSPrfB.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-DTr33v9y.js +0 -129
- package/dist/Spinner.vue_vue_type_style_index_0_lang-DW5QRtWO.js +0 -1
- package/dist/Switch/index.cjs.js +0 -1
- package/dist/Tabs/Tab.model.d.ts +0 -2
- package/dist/Tabs/index.cjs.js +0 -1
- package/dist/Tabs/index.d.ts +0 -1
- package/dist/Tabs/index.es.js +0 -4
- package/dist/Tag/Tag.model.d.ts +0 -4
- package/dist/Tag/index.cjs.js +0 -1
- package/dist/Tag/index.d.ts +0 -1
- package/dist/Tag/index.es.js +0 -21
- package/dist/Tree/index.cjs.js +0 -1
- package/dist/Tree/index.es.js +0 -458
- package/dist/element-BSTINJi_.js +0 -1
- package/dist/element-Cf07a63h.js +0 -22
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -66
- package/dist/omit-C_ZXwm9T.js +0 -1
- package/dist/omit-DtumnYm5.js +0 -760
- /package/dist/ButtonGroup/{index.cjs.js → index.umd.cjs.js} +0 -0
- /package/dist/Divider/{index.cjs.js → index.umd.cjs.js} +0 -0
- /package/dist/Skeleton/{index.cjs.js → index.umd.cjs.js} +0 -0
|
@@ -9,12 +9,12 @@ declare function __VLS_template(): {
|
|
|
9
9
|
$: import('vue').ComponentInternalInstance;
|
|
10
10
|
$data: {};
|
|
11
11
|
$props: {
|
|
12
|
-
readonly class?: import('
|
|
12
|
+
readonly class?: import('..').Class | undefined;
|
|
13
13
|
readonly text?: (string | number) | undefined;
|
|
14
|
-
readonly size?: import('
|
|
15
|
-
readonly color?: import('
|
|
16
|
-
readonly type?: import('
|
|
17
|
-
readonly variant?: import('
|
|
14
|
+
readonly size?: import('..').ButtonSize | undefined;
|
|
15
|
+
readonly color?: import('..').ButtonColor | undefined;
|
|
16
|
+
readonly type?: import('..').ButtonType | undefined;
|
|
17
|
+
readonly variant?: import('..').ButtonVariant | undefined;
|
|
18
18
|
readonly loading?: boolean | undefined;
|
|
19
19
|
readonly action?: boolean | undefined;
|
|
20
20
|
readonly active?: boolean | undefined;
|
|
@@ -23,12 +23,51 @@ declare function __VLS_template(): {
|
|
|
23
23
|
readonly icon?: string | undefined;
|
|
24
24
|
readonly preIcon?: string | undefined;
|
|
25
25
|
readonly postIcon?: string | undefined;
|
|
26
|
-
readonly as?: (import('radix-vue'
|
|
26
|
+
readonly as?: (import('radix-vue').AsTag | import('vue').Component) | undefined;
|
|
27
27
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
28
28
|
$attrs: {
|
|
29
29
|
[x: string]: unknown;
|
|
30
30
|
};
|
|
31
|
-
$refs:
|
|
31
|
+
$refs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
} & {
|
|
34
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
asChild: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
as: {
|
|
40
|
+
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
46
|
+
asChild: boolean;
|
|
47
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
48
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
49
|
+
P: {};
|
|
50
|
+
B: {};
|
|
51
|
+
D: {};
|
|
52
|
+
C: {};
|
|
53
|
+
M: {};
|
|
54
|
+
Defaults: {};
|
|
55
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
56
|
+
asChild: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
as: {
|
|
61
|
+
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
}>, {}, {}, {}, {
|
|
67
|
+
asChild: boolean;
|
|
68
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
69
|
+
}> | null;
|
|
70
|
+
};
|
|
32
71
|
$slots: Readonly<{
|
|
33
72
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
34
73
|
}>;
|
|
@@ -41,9 +80,9 @@ declare function __VLS_template(): {
|
|
|
41
80
|
focus(): void;
|
|
42
81
|
blur(): void;
|
|
43
82
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
44
|
-
type: import('
|
|
45
|
-
color: import('
|
|
46
|
-
as: import('radix-vue'
|
|
83
|
+
type: import('..').ButtonType;
|
|
84
|
+
color: import('..').ButtonColor;
|
|
85
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
47
86
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
48
87
|
beforeCreate?: (() => void) | (() => void)[];
|
|
49
88
|
created?: (() => void) | (() => void)[];
|
|
@@ -65,14 +104,14 @@ declare function __VLS_template(): {
|
|
|
65
104
|
$nextTick: typeof import('vue').nextTick;
|
|
66
105
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
67
106
|
} & Readonly<{
|
|
68
|
-
type: import('
|
|
69
|
-
color: import('
|
|
70
|
-
as: import('radix-vue'
|
|
71
|
-
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "
|
|
107
|
+
type: import('..').ButtonType;
|
|
108
|
+
color: import('..').ButtonColor;
|
|
109
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
110
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "focus" | "blur" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
72
111
|
focus(): void;
|
|
73
112
|
blur(): void;
|
|
74
113
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
75
|
-
$slots:
|
|
114
|
+
$slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
76
115
|
}) | null;
|
|
77
116
|
};
|
|
78
117
|
rootEl: any;
|
|
@@ -86,12 +125,12 @@ declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseBu
|
|
|
86
125
|
$: import('vue').ComponentInternalInstance;
|
|
87
126
|
$data: {};
|
|
88
127
|
$props: {
|
|
89
|
-
readonly class?: import('
|
|
128
|
+
readonly class?: import('..').Class | undefined;
|
|
90
129
|
readonly text?: (string | number) | undefined;
|
|
91
|
-
readonly size?: import('
|
|
92
|
-
readonly color?: import('
|
|
93
|
-
readonly type?: import('
|
|
94
|
-
readonly variant?: import('
|
|
130
|
+
readonly size?: import('..').ButtonSize | undefined;
|
|
131
|
+
readonly color?: import('..').ButtonColor | undefined;
|
|
132
|
+
readonly type?: import('..').ButtonType | undefined;
|
|
133
|
+
readonly variant?: import('..').ButtonVariant | undefined;
|
|
95
134
|
readonly loading?: boolean | undefined;
|
|
96
135
|
readonly action?: boolean | undefined;
|
|
97
136
|
readonly active?: boolean | undefined;
|
|
@@ -100,12 +139,51 @@ declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseBu
|
|
|
100
139
|
readonly icon?: string | undefined;
|
|
101
140
|
readonly preIcon?: string | undefined;
|
|
102
141
|
readonly postIcon?: string | undefined;
|
|
103
|
-
readonly as?: (import('radix-vue'
|
|
142
|
+
readonly as?: (import('radix-vue').AsTag | import('vue').Component) | undefined;
|
|
104
143
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
105
144
|
$attrs: {
|
|
106
145
|
[x: string]: unknown;
|
|
107
146
|
};
|
|
108
|
-
$refs:
|
|
147
|
+
$refs: {
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
} & {
|
|
150
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
151
|
+
asChild: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
as: {
|
|
156
|
+
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
160
|
+
[key: string]: any;
|
|
161
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
162
|
+
asChild: boolean;
|
|
163
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
164
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
165
|
+
P: {};
|
|
166
|
+
B: {};
|
|
167
|
+
D: {};
|
|
168
|
+
C: {};
|
|
169
|
+
M: {};
|
|
170
|
+
Defaults: {};
|
|
171
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
172
|
+
asChild: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
as: {
|
|
177
|
+
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
181
|
+
[key: string]: any;
|
|
182
|
+
}>, {}, {}, {}, {
|
|
183
|
+
asChild: boolean;
|
|
184
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
185
|
+
}> | null;
|
|
186
|
+
};
|
|
109
187
|
$slots: Readonly<{
|
|
110
188
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
111
189
|
}>;
|
|
@@ -118,9 +196,9 @@ declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseBu
|
|
|
118
196
|
focus(): void;
|
|
119
197
|
blur(): void;
|
|
120
198
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
121
|
-
type: import('
|
|
122
|
-
color: import('
|
|
123
|
-
as: import('radix-vue'
|
|
199
|
+
type: import('..').ButtonType;
|
|
200
|
+
color: import('..').ButtonColor;
|
|
201
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
124
202
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
125
203
|
beforeCreate?: (() => void) | (() => void)[];
|
|
126
204
|
created?: (() => void) | (() => void)[];
|
|
@@ -142,14 +220,14 @@ declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseBu
|
|
|
142
220
|
$nextTick: typeof import('vue').nextTick;
|
|
143
221
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
144
222
|
} & Readonly<{
|
|
145
|
-
type: import('
|
|
146
|
-
color: import('
|
|
147
|
-
as: import('radix-vue'
|
|
148
|
-
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "
|
|
223
|
+
type: import('..').ButtonType;
|
|
224
|
+
color: import('..').ButtonColor;
|
|
225
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
226
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "focus" | "blur" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
149
227
|
focus(): void;
|
|
150
228
|
blur(): void;
|
|
151
229
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
152
|
-
$slots:
|
|
230
|
+
$slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
153
231
|
}) | null;
|
|
154
232
|
}, any>;
|
|
155
233
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-CuxyU51W.js");exports.IconButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-1sFJ_mId.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-BaS_JGCX.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"IconButton",props:{as:{},class:{},type:{},color:{},loading:{type:Boolean},icon:{},size:{}},setup(s,{expose:r}){const c=s,a=e.useAttrs(),i=e.computed(()=>({...p.omit(a,"variant","preIcon","postIcon","text","action","active","badgeText"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(i.value,{variant:"icon",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as p, useAttrs as m, computed as u, ref as f,
|
|
2
|
-
import { o as y } from "./omit-
|
|
3
|
-
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { defineComponent as p, useAttrs as m, computed as u, ref as f, createBlock as l, openBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
|
+
import { o as y } from "./omit-Cxaoa8oo.js";
|
|
3
|
+
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-D1NHQaTM.js";
|
|
4
4
|
import { g as C } from "./options-JBqnVZUl.js";
|
|
5
5
|
const O = /* @__PURE__ */ p({
|
|
6
6
|
...C("IconButton", !1),
|
|
@@ -28,7 +28,7 @@ const O = /* @__PURE__ */ p({
|
|
|
28
28
|
var o;
|
|
29
29
|
(o = e.value) == null || o.blur();
|
|
30
30
|
}
|
|
31
|
-
}), (o, P) => (
|
|
31
|
+
}), (o, P) => (_(), l(I, d(c.value, {
|
|
32
32
|
variant: "icon",
|
|
33
33
|
ref_key: "buttonRef",
|
|
34
34
|
ref: e
|
package/dist/Image/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { type ImageProps, default as Image, default } from './Image';
|
|
2
|
-
export * from './Image.model
|
|
2
|
+
export * from './Image.model';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as V, useSlots as D, ref as v, toRef as z, watch as _, computed as d, createElementBlock as f, openBlock as m, normalizeStyle as w, normalizeClass as o, unref as t, createBlock as P, createCommentVNode as R, renderSlot as C, createVNode as T, createElementVNode as A, toDisplayString as O } from "vue";
|
|
2
|
+
import { g as W, a as c, b as i } from "../class-DziTeW9B.js";
|
|
3
|
+
import { cva as q } from "class-variance-authority";
|
|
4
|
+
import { i as G } from "../isNumber-DlKYWCo3.js";
|
|
5
|
+
import { _ as H } from "../Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js";
|
|
6
|
+
import { _ as J } from "../Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
7
|
+
import { g as K } from "../options-JBqnVZUl.js";
|
|
8
|
+
const M = ["xsm", "sm", "md", "lg"], Q = ["1:1", "4:3", "3:2", "16:9", "2:1"], S = ["vertical", "horizontal"], U = ["alt", "src"], se = /* @__PURE__ */ V({
|
|
9
|
+
...K("Image", !1),
|
|
10
|
+
__name: "Image",
|
|
11
|
+
props: {
|
|
12
|
+
src: { default: "" },
|
|
13
|
+
fallback: {},
|
|
14
|
+
width: {},
|
|
15
|
+
hovered: { type: Boolean },
|
|
16
|
+
alt: {},
|
|
17
|
+
class: {},
|
|
18
|
+
imageCls: {},
|
|
19
|
+
hoverCls: {},
|
|
20
|
+
sizeRange: {},
|
|
21
|
+
aspectRatio: {},
|
|
22
|
+
type: { default: "horizontal" },
|
|
23
|
+
objectFit: { default: "cover" },
|
|
24
|
+
objectPosition: { default: "center" },
|
|
25
|
+
fallbackDescription: { default: "This image couldn't be loaded." }
|
|
26
|
+
},
|
|
27
|
+
emits: ["load", "error"],
|
|
28
|
+
setup($, { emit: j }) {
|
|
29
|
+
const e = $, p = j, l = W("image"), B = q(l, {
|
|
30
|
+
variants: {
|
|
31
|
+
type: c(S, l),
|
|
32
|
+
aspectRatio: c(Q, l),
|
|
33
|
+
sizeRange: c(M, l),
|
|
34
|
+
hovered: c("hovered", l),
|
|
35
|
+
loaded: c("loaded", l),
|
|
36
|
+
"fallback-content": c("fallback-content", l)
|
|
37
|
+
}
|
|
38
|
+
}), g = D(), s = v(!1), r = v(!1), n = v(!1), b = z(() => e.src);
|
|
39
|
+
_(b, () => {
|
|
40
|
+
r.value = !1, n.value = !1, s.value = !1;
|
|
41
|
+
});
|
|
42
|
+
const u = z(() => e.fallback);
|
|
43
|
+
_(u, () => {
|
|
44
|
+
n.value && (n.value = !1, s.value = !1);
|
|
45
|
+
});
|
|
46
|
+
const h = d(() => r.value && !g.fallback && u.value ? "fallback" : "src"), E = d(() => h.value === "src" ? b.value : u.value), x = () => {
|
|
47
|
+
s.value = !0, p("load");
|
|
48
|
+
}, I = () => {
|
|
49
|
+
h.value === "fallback" ? (n.value = !0, s.value = !0) : (r.value = !0, s.value = !0), p("error");
|
|
50
|
+
}, L = d(() => {
|
|
51
|
+
const a = typeof e.width;
|
|
52
|
+
if (["string", "number"].includes(a))
|
|
53
|
+
return a === "number" ? `${e.width}px` : e.width;
|
|
54
|
+
}), N = d(() => {
|
|
55
|
+
const a = String(e.width).replace("px", ""), k = /^\d+(?:\.\d+)?$/, y = e.width && k.test(a) ? Number(a) : e.width;
|
|
56
|
+
return e.sizeRange === "xsm" || G(y) && y < 100 ? "3xsm" : "sm";
|
|
57
|
+
}), F = d(() => {
|
|
58
|
+
let a = `filter: ${s ? "none" : "blur(30px)"}`;
|
|
59
|
+
return e.objectFit && (a += `;object-fit: ${e.objectFit}`), e.objectPosition && (a += `;object-position: ${e.objectPosition}`), a;
|
|
60
|
+
});
|
|
61
|
+
return (a, k) => (m(), f("div", {
|
|
62
|
+
class: o([
|
|
63
|
+
t(B)({
|
|
64
|
+
sizeRange: e.sizeRange,
|
|
65
|
+
type: !e.type || !t(S).includes(e.type) ? "vertical" : e.type,
|
|
66
|
+
aspectRatio: e.aspectRatio,
|
|
67
|
+
hovered: e.hovered,
|
|
68
|
+
loaded: s.value,
|
|
69
|
+
"fallback-content": r.value && (!u.value || n.value)
|
|
70
|
+
}),
|
|
71
|
+
e.class
|
|
72
|
+
]),
|
|
73
|
+
style: w({ width: L.value })
|
|
74
|
+
}, [
|
|
75
|
+
r.value && (!u.value || n.value) ? (m(), f("div", {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: o(t(i)(t(l), "fallback"))
|
|
78
|
+
}, [
|
|
79
|
+
C(a.$slots, "fallback", {}, () => [
|
|
80
|
+
T(J, {
|
|
81
|
+
size: "sm",
|
|
82
|
+
icon: "tabler:photo-exclamation",
|
|
83
|
+
class: o(t(i)(t(l), "fallback__icon"))
|
|
84
|
+
}, null, 8, ["class"]),
|
|
85
|
+
A("div", {
|
|
86
|
+
class: o(t(i)(t(l), "fallback__text"))
|
|
87
|
+
}, O(a.fallbackDescription), 3)
|
|
88
|
+
])
|
|
89
|
+
], 2)) : (m(), f("img", {
|
|
90
|
+
key: 1,
|
|
91
|
+
alt: a.alt,
|
|
92
|
+
style: w(F.value),
|
|
93
|
+
src: E.value,
|
|
94
|
+
class: o([t(i)(t(l), "img"), a.imageCls]),
|
|
95
|
+
onLoad: x,
|
|
96
|
+
onError: I
|
|
97
|
+
}, null, 46, U)),
|
|
98
|
+
s.value ? R("", !0) : (m(), P(H, {
|
|
99
|
+
key: 2,
|
|
100
|
+
class: o(t(i)(t(l), "loading")),
|
|
101
|
+
size: N.value
|
|
102
|
+
}, null, 8, ["class", "size"])),
|
|
103
|
+
s.value && !r.value && (a.hovered || t(g).actions) ? (m(), f("div", {
|
|
104
|
+
key: 3,
|
|
105
|
+
class: o([t(i)(t(l), "hover_actions"), "pantograph-tokens dark", e.hoverCls])
|
|
106
|
+
}, [
|
|
107
|
+
C(a.$slots, "actions")
|
|
108
|
+
], 2)) : R("", !0)
|
|
109
|
+
], 6));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export {
|
|
113
|
+
se as Image,
|
|
114
|
+
Q as ImageAspectRatios,
|
|
115
|
+
M as ImageSizeRanges,
|
|
116
|
+
S as ImageTypes,
|
|
117
|
+
se as default
|
|
118
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../class-CjZYGZDW.js"),w=require("class-variance-authority"),L=require("../isNumber-eaDdxhkG.js"),V=require("../Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js"),I=require("../Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),j=require("../options-B4iSAKol.js"),g=["xsm","sm","md","lg"],b=["1:1","4:3","3:2","16:9","2:1"],i=["vertical","horizontal"],q=["alt","src"],k=e.defineComponent({...j.getComponentOptions("Image",!1),__name:"Image",props:{src:{default:""},fallback:{},width:{},hovered:{type:Boolean},alt:{},class:{},imageCls:{},hoverCls:{},sizeRange:{},aspectRatio:{},type:{default:"horizontal"},objectFit:{default:"cover"},objectPosition:{default:"center"},fallbackDescription:{default:"This image couldn't be loaded."}},emits:["load","error"],setup(h,{emit:_}){const t=h,u=_,l=s.getBemBlock("image"),y=w.cva(l,{variants:{type:s.generateVariantClassList(i,l),aspectRatio:s.generateVariantClassList(b,l),sizeRange:s.generateVariantClassList(g,l),hovered:s.generateVariantClassList("hovered",l),loaded:s.generateVariantClassList("loaded",l),"fallback-content":s.generateVariantClassList("fallback-content",l)}}),m=e.useSlots(),n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),d=e.toRef(()=>t.src);e.watch(d,()=>{o.value=!1,r.value=!1,n.value=!1});const c=e.toRef(()=>t.fallback);e.watch(c,()=>{r.value&&(r.value=!1,n.value=!1)});const f=e.computed(()=>o.value&&!m.fallback&&c.value?"fallback":"src"),z=e.computed(()=>f.value==="src"?d.value:c.value),C=()=>{n.value=!0,u("load")},B=()=>{f.value==="fallback"?(r.value=!0,n.value=!0):(o.value=!0,n.value=!0),u("error")},E=e.computed(()=>{const a=typeof t.width;if(["string","number"].includes(a))return a==="number"?`${t.width}px`:t.width}),R=e.computed(()=>{const a=String(t.width).replace("px",""),v=/^\d+(?:\.\d+)?$/,p=t.width&&v.test(a)?Number(a):t.width;return t.sizeRange==="xsm"||L.isNumber(p)&&p<100?"3xsm":"sm"}),S=e.computed(()=>{let a=`filter: ${n?"none":"blur(30px)"}`;return t.objectFit&&(a+=`;object-fit: ${t.objectFit}`),t.objectPosition&&(a+=`;object-position: ${t.objectPosition}`),a});return(a,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(y)({sizeRange:t.sizeRange,type:!t.type||!e.unref(i).includes(t.type)?"vertical":t.type,aspectRatio:t.aspectRatio,hovered:t.hovered,loaded:n.value,"fallback-content":o.value&&(!c.value||r.value)}),t.class]),style:e.normalizeStyle({width:E.value})},[o.value&&(!c.value||r.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback"))},[e.renderSlot(a.$slots,"fallback",{},()=>[e.createVNode(I._sfc_main,{size:"sm",icon:"tabler:photo-exclamation",class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback__icon"))},null,8,["class"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback__text"))},e.toDisplayString(a.fallbackDescription),3)])],2)):(e.openBlock(),e.createElementBlock("img",{key:1,alt:a.alt,style:e.normalizeStyle(S.value),src:z.value,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(l),"img"),a.imageCls]),onLoad:C,onError:B},null,46,q)),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V._sfc_main,{key:2,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"loading")),size:R.value},null,8,["class","size"])),n.value&&!o.value&&(a.hovered||e.unref(m).actions)?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(l),"hover_actions"),"pantograph-tokens dark",t.hoverCls])},[e.renderSlot(a.$slots,"actions")],2)):e.createCommentVNode("",!0)],6))}});exports.Image=k;exports.ImageAspectRatios=b;exports.ImageSizeRanges=g;exports.ImageTypes=i;exports.default=k;
|
|
@@ -3,7 +3,7 @@ import { Class } from '../types';
|
|
|
3
3
|
import { IndentLevelShowLine, IndentLevelSize } from './IndentLevel.model.js';
|
|
4
4
|
export interface IndentLevelProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
5
5
|
size?: IndentLevelSize;
|
|
6
|
-
showLine?: IndentLevelShowLine | number;
|
|
6
|
+
showLine?: IndentLevelShowLine | number | false;
|
|
7
7
|
children?: boolean;
|
|
8
8
|
level?: number | string;
|
|
9
9
|
expanded?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as IndentLevel, type IndentLevelProps, default } from './IndentLevel';
|
|
2
|
-
export * from './IndentLevel.model
|
|
2
|
+
export * from './IndentLevel.model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, a as s, I as t, _ as d } from "../IndentLevel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as a, a as s, I as t, _ as d } from "../IndentLevel.vue_vue_type_style_index_0_lang-BjBc3Lu1.js";
|
|
2
2
|
export {
|
|
3
3
|
a as IndentLevel,
|
|
4
4
|
s as IndentLevelShowLines,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IndentLevel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IndentLevel.vue_vue_type_style_index_0_lang-D5yeMZLa.js");exports.IndentLevel=e._sfc_main;exports.IndentLevelShowLines=e.IndentLevelShowLines;exports.IndentLevelSizes=e.IndentLevelSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent as C, computed as g, createBlock as l, openBlock as s, unref as a, normalizeClass as f, withCtx as p, createElementBlock as i, Fragment as m, renderList as N, createCommentVNode as c, createVNode as S, renderSlot as $ } from "vue";
|
|
2
|
+
import { g as R, a as r, b as L, c as D } from "./class-DziTeW9B.js";
|
|
3
|
+
import { Primitive as b } from "radix-vue";
|
|
4
|
+
import { cva as E } from "class-variance-authority";
|
|
5
|
+
import { g as V } from "./options-JBqnVZUl.js";
|
|
6
|
+
import { _ as y } from "./Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js";
|
|
7
|
+
import { _ } from "./Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js";
|
|
8
|
+
import { _ as M } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-CIVx-hL6.js";
|
|
9
|
+
import { i as F } from "./isNumber-DlKYWCo3.js";
|
|
10
|
+
const O = ["2xsm", "xsm", "sm"], U = ["last", "all", "before", "self"], P = { key: 0 }, W = /* @__PURE__ */ C({
|
|
11
|
+
...V("IndentLevel"),
|
|
12
|
+
__name: "IndentLevel",
|
|
13
|
+
props: {
|
|
14
|
+
size: { default: "xsm" },
|
|
15
|
+
showLine: { type: [Number, Boolean] },
|
|
16
|
+
children: { type: Boolean },
|
|
17
|
+
level: { default: 1 },
|
|
18
|
+
expanded: { type: Boolean },
|
|
19
|
+
loading: { type: Boolean },
|
|
20
|
+
class: {},
|
|
21
|
+
branchIcon: { default: "tabler:chevron-right" },
|
|
22
|
+
noRotateBranch: { type: Boolean },
|
|
23
|
+
as: {}
|
|
24
|
+
},
|
|
25
|
+
setup(B) {
|
|
26
|
+
const n = B, o = R("indent_level"), h = L(o, "item"), k = L(h, "branch"), w = E(o, {
|
|
27
|
+
variants: {
|
|
28
|
+
size: r(O, o),
|
|
29
|
+
expanded: r("expanded", o),
|
|
30
|
+
branchSlot: r("branch-slot", o),
|
|
31
|
+
selfDivider: r("self-divider", o),
|
|
32
|
+
noRotateBranch: r("no-rotate-branch", o),
|
|
33
|
+
loading: r("loading", o)
|
|
34
|
+
}
|
|
35
|
+
}), d = g(() => {
|
|
36
|
+
const e = Number(n.level);
|
|
37
|
+
return e < 1 ? 1 : e % 10 === 0 ? e : Math.floor(e);
|
|
38
|
+
}), u = g(() => {
|
|
39
|
+
if (n.showLine)
|
|
40
|
+
return typeof n.showLine == "string" ? ["all", "self"].includes(n.showLine) : F(n.showLine) && n.showLine <= Number(n.level);
|
|
41
|
+
}), z = (e) => typeof n.showLine == "number" ? n.showLine <= Number(e) : !1;
|
|
42
|
+
return (e, v) => (s(), l(a(b), {
|
|
43
|
+
as: e.as,
|
|
44
|
+
class: f([
|
|
45
|
+
a(w)({
|
|
46
|
+
size: e.size,
|
|
47
|
+
expanded: e.expanded,
|
|
48
|
+
noRotateBranch: e.noRotateBranch,
|
|
49
|
+
branchSlot: e.$slots.default,
|
|
50
|
+
selfDivider: u.value,
|
|
51
|
+
loading: e.loading
|
|
52
|
+
}),
|
|
53
|
+
n.class
|
|
54
|
+
])
|
|
55
|
+
}, {
|
|
56
|
+
default: p(() => [
|
|
57
|
+
(s(!0), i(m, null, N(d.value, (t) => (s(), l(a(b), {
|
|
58
|
+
as: e.as,
|
|
59
|
+
class: f([a(h), { [a(D)(a(o), "expand")]: t === d.value }]),
|
|
60
|
+
key: t
|
|
61
|
+
}, {
|
|
62
|
+
default: p(() => [
|
|
63
|
+
t === d.value ? (s(), i(m, { key: 0 }, [
|
|
64
|
+
e.children ? (s(), i(m, { key: 0 }, [
|
|
65
|
+
e.loading ? (s(), l(_, {
|
|
66
|
+
key: 1,
|
|
67
|
+
size: e.size
|
|
68
|
+
}, null, 8, ["size"])) : (s(), i(m, { key: 0 }, [
|
|
69
|
+
e.expanded && u.value ? (s(), i("div", P)) : c("", !0),
|
|
70
|
+
S(M, {
|
|
71
|
+
size: e.size,
|
|
72
|
+
icon: e.branchIcon,
|
|
73
|
+
color: "none",
|
|
74
|
+
class: f(a(k)),
|
|
75
|
+
onClick: v[0] || (v[0] = (I) => e.$emit("toggleExpand", I))
|
|
76
|
+
}, {
|
|
77
|
+
icon: p(() => [
|
|
78
|
+
$(e.$slots, "default")
|
|
79
|
+
]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 8, ["size", "icon", "class"]),
|
|
82
|
+
e.expanded && u.value ? (s(), l(y, {
|
|
83
|
+
key: 1,
|
|
84
|
+
type: "vertical"
|
|
85
|
+
})) : c("", !0)
|
|
86
|
+
], 64))
|
|
87
|
+
], 64)) : c("", !0)
|
|
88
|
+
], 64)) : ["all", "before"].includes(e.showLine) || e.showLine === "last" && t === d.value - 1 || z(t) ? (s(), l(y, {
|
|
89
|
+
key: 1,
|
|
90
|
+
type: "vertical"
|
|
91
|
+
})) : c("", !0)
|
|
92
|
+
]),
|
|
93
|
+
_: 2
|
|
94
|
+
}, 1032, ["as", "class"]))), 128))
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
}, 8, ["as", "class"]));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
O as I,
|
|
102
|
+
W as _,
|
|
103
|
+
U as a
|
|
104
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./class-CjZYGZDW.js"),u=require("radix-vue"),k=require("class-variance-authority"),g=require("./options-B4iSAKol.js"),d=require("./Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js"),L=require("./Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js"),_=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-DnyJeR9h.js"),y=require("./isNumber-eaDdxhkG.js"),m=["2xsm","xsm","sm"],C=["last","all","before","self"],b={key:0},w=e.defineComponent({...g.getComponentOptions("IndentLevel"),__name:"IndentLevel",props:{size:{default:"xsm"},showLine:{type:[Number,Boolean]},children:{type:Boolean},level:{default:1},expanded:{type:Boolean},loading:{type:Boolean},class:{},branchIcon:{default:"tabler:chevron-right"},noRotateBranch:{type:Boolean},as:{}},setup(p){const t=p,s=a.getBemBlock("indent_level"),i=a.getBemElement(s,"item"),f=a.getBemElement(i,"branch"),v=k.cva(s,{variants:{size:a.generateVariantClassList(m,s),expanded:a.generateVariantClassList("expanded",s),branchSlot:a.generateVariantClassList("branch-slot",s),selfDivider:a.generateVariantClassList("self-divider",s),noRotateBranch:a.generateVariantClassList("no-rotate-branch",s),loading:a.generateVariantClassList("loading",s)}}),r=e.computed(()=>{const n=Number(t.level);return n<1?1:n%10===0?n:Math.floor(n)}),l=e.computed(()=>{if(t.showLine)return typeof t.showLine=="string"?["all","self"].includes(t.showLine):y.isNumber(t.showLine)&&t.showLine<=Number(t.level)}),h=n=>typeof t.showLine=="number"?t.showLine<=Number(n):!1;return(n,c)=>(e.openBlock(),e.createBlock(e.unref(u.Primitive),{as:n.as,class:e.normalizeClass([e.unref(v)({size:n.size,expanded:n.expanded,noRotateBranch:n.noRotateBranch,branchSlot:n.$slots.default,selfDivider:l.value,loading:n.loading}),t.class])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,o=>(e.openBlock(),e.createBlock(e.unref(u.Primitive),{as:n.as,class:e.normalizeClass([e.unref(i),{[e.unref(a.getBemModifier)(e.unref(s),"expand")]:o===r.value}]),key:o},{default:e.withCtx(()=>[o===r.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.children?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.loading?(e.openBlock(),e.createBlock(L._sfc_main,{key:1,size:n.size},null,8,["size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.expanded&&l.value?(e.openBlock(),e.createElementBlock("div",b)):e.createCommentVNode("",!0),e.createVNode(_._sfc_main,{size:n.size,icon:n.branchIcon,color:"none",class:e.normalizeClass(e.unref(f)),onClick:c[0]||(c[0]=B=>n.$emit("toggleExpand",B))},{icon:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["size","icon","class"]),n.expanded&&l.value?(e.openBlock(),e.createBlock(d._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)],64)):["all","before"].includes(n.showLine)||n.showLine==="last"&&o===r.value-1||h(o)?(e.openBlock(),e.createBlock(d._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)]),_:2},1032,["as","class"]))),128))]),_:3},8,["as","class"]))}});exports.IndentLevelShowLines=C;exports.IndentLevelSizes=m;exports._sfc_main=w;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
|
|
1
|
+
import { BaseBadgeSlots, BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
|
|
2
2
|
export type IndicatorProps = Partial<Pick<BaseBadgeProps, 'as' | 'class'>> & {
|
|
3
3
|
size?: 'tiny' | 'tinier';
|
|
4
4
|
color?: Exclude<BaseBadgeProps['color'], 'none'>;
|
|
5
5
|
};
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
7
|
attrs: Partial<{}>;
|
|
8
|
-
slots:
|
|
8
|
+
slots: Readonly<BaseBadgeSlots> & BaseBadgeSlots;
|
|
9
9
|
refs: {};
|
|
10
10
|
rootEl: any;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Indicator.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Indicator.vue_vue_type_script_setup_true_lang-nav_IgdR.js");exports.Indicator=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as i, useAttrs as m, computed as p, useSlots as l, createBlock as d, openBlock as f, mergeProps as _, createSlots as u, renderList as g, withCtx as y, renderSlot as b, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
|
+
import { o as C } from "./omit-Cxaoa8oo.js";
|
|
3
|
+
import { _ as P } from "./BaseBadge.vue_vue_type_style_index_0_lang-DBW85mbj.js";
|
|
4
|
+
import { g as S } from "./options-JBqnVZUl.js";
|
|
5
|
+
const O = /* @__PURE__ */ i({
|
|
6
|
+
...S("Indicator", !1),
|
|
7
|
+
__name: "Indicator",
|
|
8
|
+
props: {
|
|
9
|
+
as: {},
|
|
10
|
+
class: {},
|
|
11
|
+
size: {},
|
|
12
|
+
color: {}
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
const e = t, s = m(), r = p(() => ({
|
|
16
|
+
...C(s, "type", "text", "icon", "mode"),
|
|
17
|
+
...e
|
|
18
|
+
})), n = l();
|
|
19
|
+
return (a, h) => (f(), d(P, _(r.value, {
|
|
20
|
+
type: "minify",
|
|
21
|
+
mode: "bold"
|
|
22
|
+
}), u({ _: 2 }, [
|
|
23
|
+
g(Object.keys(n), (o) => ({
|
|
24
|
+
name: o,
|
|
25
|
+
fn: y((c) => [
|
|
26
|
+
b(a.$slots, o, k(x(c)))
|
|
27
|
+
])
|
|
28
|
+
}))
|
|
29
|
+
]), 1040));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
O as _
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-1sFJ_mId.js"),u=require("./BaseBadge.vue_vue_type_style_index_0_lang-Cr9n5QQC.js"),_=require("./options-B4iSAKol.js"),m=e.defineComponent({..._.getComponentOptions("Indicator",!1),__name:"Indicator",props:{as:{},class:{},size:{},color:{}},setup(s){const o=s,n=e.useAttrs(),r=e.computed(()=>({...p.omit(n,"type","text","icon","mode"),...o})),c=e.useSlots();return(i,l)=>(e.openBlock(),e.createBlock(u._sfc_main,e.mergeProps(r.value,{type:"minify",mode:"bold"}),e.createSlots({_:2},[e.renderList(Object.keys(c),t=>({name:t,fn:e.withCtx(a=>[e.renderSlot(i.$slots,t,e.normalizeProps(e.guardReactiveProps(a)))])}))]),1040))}});exports._sfc_main=m;
|
package/dist/Kbd/Kbd.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare function __VLS_template(): {
|
|
|
20
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
21
|
declare const __VLS_component: import('vue').DefineComponent<KbdProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KbdProps> & Readonly<{}>, {
|
|
22
22
|
text: string;
|
|
23
|
-
as: import('radix-vue'
|
|
23
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
26
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Kbd.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js");exports.Kbd=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./class-CjZYGZDW.js"),r=require("class-variance-authority"),i=require("radix-vue"),l=require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./class-CjZYGZDW.js"),r=require("class-variance-authority"),i=require("radix-vue"),l=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),u=require("./options-B4iSAKol.js"),d=e.defineComponent({...u.getComponentOptions("Kbd"),__name:"Kbd",props:{iconOnly:{type:Boolean},class:{},containerCls:{},containerAs:{},text:{default:void 0},icon:{},as:{default:"div"}},setup(a){const s=a,o=t.getBemBlock("kbd"),c=r.cva(o,{variants:{iconOnly:t.generateVariantClassList("icon-only",o)}});return(n,y)=>(e.openBlock(),e.createBlock(e.unref(i.Primitive),{class:e.normalizeClass([e.unref(c)({iconOnly:s.iconOnly}),s.class]),key:s.as,as:n.as},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.unref(i.Primitive),{class:e.normalizeClass([e.unref(t.getBemElement)(e.unref(o),"container"),s.containerCls]),key:n.iconOnly,as:n.containerAs,"as-child":n.iconOnly},{default:e.withCtx(()=>[n.iconOnly?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,icon:n.icon,size:"2xsm"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"icon")]),_:3},8,["icon"])):e.renderSlot(n.$slots,"text",{key:1},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])]),_:3},8,["class","as","as-child"]))]),_:3},8,["class","as"]))}});exports._sfc_main=d;
|