@pantograph/vue 0.0.3 → 0.5.0
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 +148 -5
- package/dist/ActionButton/index.cjs.js +1 -1
- package/dist/ActionButton/index.es.js +1 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-9sHS6TT0.js +52 -0
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BRYxIFQL.js +1 -0
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/index.cjs.js +1 -1
- package/dist/Avatar/index.es.js +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-D72SN0zC.js +1 -0
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BWeEmazM.js → Avatar.vue_vue_type_style_index_0_lang-RziDt5Qs.js} +19 -18
- package/dist/AvatarGroup/index.cjs.js +1 -1
- package/dist/AvatarGroup/index.es.js +1 -1
- package/dist/Badge/Badge.d.ts +3 -3
- package/dist/Badge/index.cjs.js +1 -1
- package/dist/Badge/index.es.js +1 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DzkeQwzH.js +1 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-LwccxMER.js +34 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +6 -10
- package/dist/Base/BaseButton/BaseButton.d.ts +13 -15
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-B1Va5X21.js +1 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-CHhhflIH.js +107 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js +151 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js +1 -0
- package/dist/Button/Button.d.ts +149 -5
- package/dist/Button/index.cjs.js +1 -1
- package/dist/Button/index.es.js +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-DMOtqE4k.js +49 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-DNpM6F5j.js +1 -0
- package/dist/ButtonGroup/index.cjs.js +1 -1
- package/dist/ButtonGroup/index.es.js +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js +1 -0
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-jtE0Gtp9.js → ButtonGroup.vue_vue_type_script_setup_true_lang-DBq7tYaO.js} +11 -10
- package/dist/Checkbox/Checkbox.d.ts +6 -14
- package/dist/Checkbox/Checkbox.model.d.ts +0 -2
- package/dist/Checkbox/index.cjs.js +1 -1
- package/dist/Checkbox/index.es.js +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BQeNpCYy.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-gsOfYgHe.js +245 -0
- package/dist/CheckboxGroup/index.cjs.js +1 -1
- package/dist/CheckboxGroup/index.es.js +1 -1
- package/dist/ConfigProvider/index.cjs.js +1 -0
- package/dist/ConfigProvider/index.d.ts +40 -0
- package/dist/ConfigProvider/index.es.js +112 -0
- package/dist/ConfigProvider/utils.d.ts +4 -0
- package/dist/Divider/Divider.d.ts +27 -0
- package/dist/Divider/Divider.model.d.ts +2 -0
- package/dist/Divider/index.cjs.js +1 -0
- package/dist/Divider/index.d.ts +2 -0
- package/dist/Divider/index.es.js +6 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js +1 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-SBMg48di.js +40 -0
- package/dist/FloatButton/FloatButton.d.ts +149 -5
- package/dist/FloatButton/index.cjs.js +1 -1
- package/dist/FloatButton/index.es.js +1 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BD8KDs-3.js +1 -0
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CLL_AR_I.js +47 -0
- package/dist/GraphicalObject/GraphicalObject.d.ts +3 -3
- package/dist/GraphicalObject/index.cjs.js +1 -1
- package/dist/GraphicalObject/index.es.js +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BKYCNg9l.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CcI-aIS4.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DqfDSUXz.js} +7 -6
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/index.cjs.js +1 -1
- package/dist/Icon/index.es.js +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js +1 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-W7sippxn.js +48 -0
- package/dist/IconButton/IconButton.d.ts +149 -5
- package/dist/IconButton/index.cjs.js +1 -1
- package/dist/IconButton/index.es.js +1 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DCrUZOP9.js +47 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DVbz9uji.js +1 -0
- package/dist/Image/Image.d.ts +48 -0
- package/dist/Image/Image.model.d.ts +6 -0
- package/dist/Image/index.cjs.js +1 -0
- package/dist/Image/index.d.ts +2 -0
- package/dist/Image/index.es.js +117 -0
- package/dist/IndentLevel/IndentLevel.d.ts +35 -0
- package/dist/IndentLevel/IndentLevel.model.d.ts +4 -0
- package/dist/IndentLevel/index.cjs.js +1 -0
- package/dist/IndentLevel/index.d.ts +2 -0
- package/dist/IndentLevel/index.es.js +7 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B_x8tshB.js +1 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-jaoDj9GA.js +103 -0
- package/dist/Indicator/Indicator.d.ts +1 -1
- package/dist/Indicator/index.cjs.js +1 -1
- package/dist/Indicator/index.es.js +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-D2iFmRna.js +1 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-jv3IND51.js +34 -0
- package/dist/Kbd/Kbd.d.ts +31 -0
- package/dist/Kbd/index.cjs.js +1 -0
- package/dist/Kbd/index.d.ts +1 -0
- package/dist/Kbd/index.es.js +5 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-Br1eygIf.js +1 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-D5D9tTsQ.js +60 -0
- package/dist/MenuItem/MenuItem.model.d.ts +2 -0
- package/dist/MenuItem/index.cjs.js +1 -0
- package/dist/MenuItem/index.d.ts +1 -0
- package/dist/MenuItem/index.es.js +1 -0
- package/dist/Popover/Popover.d.ts +6 -83
- package/dist/Popover/index.cjs.js +1 -1
- package/dist/Popover/index.es.js +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-BZMSPrfB.js +1 -0
- package/dist/{Popover.vue_vue_type_style_index_0_lang-Jf0LVKU_.js → Popover.vue_vue_type_style_index_0_lang-DTr33v9y.js} +31 -29
- package/dist/RadioGroup/RadioGroup.d.ts +32 -0
- package/dist/RadioGroup/RadioGroup.model.d.ts +2 -0
- package/dist/RadioGroup/RadioGroupItem.d.ts +16 -0
- package/dist/RadioGroup/index.cjs.js +1 -0
- package/dist/RadioGroup/index.d.ts +2 -0
- package/dist/RadioGroup/index.es.js +100 -0
- package/dist/Shortcut/Shortcut.d.ts +12 -0
- package/dist/Shortcut/index.cjs.js +1 -0
- package/dist/Shortcut/index.d.ts +1 -0
- package/dist/Shortcut/index.es.js +42 -0
- package/dist/Skeleton/index.cjs.js +1 -1
- package/dist/Skeleton/index.es.js +1 -1
- package/dist/{Skeleton.vue_vue_type_style_index_0_lang-C56TOumA.js → Skeleton.vue_vue_type_style_index_0_lang-BgVkwMj4.js} +10 -9
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js +1 -0
- package/dist/Spinner/Spinner.d.ts +2 -10
- package/dist/Spinner/index.cjs.js +1 -1
- package/dist/Spinner/index.es.js +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-BOXr-RUw.js +85 -0
- package/dist/Spinner.vue_vue_type_style_index_0_lang-DW5QRtWO.js +1 -0
- package/dist/Switch/Switch.d.ts +29 -0
- package/dist/Switch/Switch.model.d.ts +2 -0
- package/dist/Switch/index.cjs.js +1 -0
- package/dist/Switch/index.d.ts +2 -0
- package/dist/Switch/index.es.js +104 -0
- package/dist/Tree/Tree.d.ts +66 -0
- package/dist/Tree/Tree.model.d.ts +71 -0
- package/dist/Tree/TreeNode.d.ts +33 -0
- package/dist/Tree/index.cjs.js +1 -0
- package/dist/Tree/index.d.ts +2 -0
- package/dist/Tree/index.es.js +456 -0
- package/dist/class-CjZYGZDW.js +1 -0
- package/dist/class-DyU-Ox8D.js +24 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +27 -24
- package/dist/omit-C_ZXwm9T.js +1 -0
- package/dist/omit-DtumnYm5.js +760 -0
- package/dist/options-B4iSAKol.js +1 -0
- package/dist/options-JBqnVZUl.js +9 -0
- package/dist/style/index.css +1 -1
- package/dist/utils/element.d.ts +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.es.js +7 -4
- package/package.json +61 -16
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Drb30rfG.js +0 -39
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-dxthnFw4.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BB-v9NHG.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CXfdGkKV.js +0 -33
- package/dist/Badge.vue_vue_type_script_setup_true_lang-sx-dXgFD.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-B-uDLmB_.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-F50Tg7IQ.js +0 -151
- package/dist/Button.vue_vue_type_script_setup_true_lang-Crhe5sHQ.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-XrPBGQq8.js +0 -36
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-DmShg2d-.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BRJhkPIY.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-OQRmH46S.js +0 -194
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-Bu9Ndwxm.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CCfZsUxy.js +0 -34
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BhMxC00o.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CB4CYuWH.js +0 -47
- package/dist/Icon.vue_vue_type_style_index_0_lang-CV1YvIs-.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-BTG_oQuF.js +0 -34
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-C93zhnQU.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-Z02asVPa.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-qIUYIdkm.js +0 -33
- package/dist/Logotype-Dark.svg +0 -3
- package/dist/Logotype-Light.svg +0 -3
- package/dist/Popover.vue_vue_type_style_index_0_lang-VH8LnLG9.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-B6-i0F1w.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-B5byV1za.js +0 -75
- package/dist/Spinner.vue_vue_type_style_index_0_lang-Baaz0Dxb.js +0 -1
- package/dist/logo.svg +0 -4
- package/dist/omit-B0hUroNu.js +0 -1
- package/dist/omit-DU39EwuA.js +0 -851
- package/dist/options-B8SF1auT.js +0 -1
- package/dist/options-B8rT2fg0.js +0 -30
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Class } from '../types';
|
|
2
1
|
import { PopoverContentProps, HoverCardRootProps, PopoverPortalProps } from 'radix-vue';
|
|
3
|
-
import {
|
|
2
|
+
import { Class } from '../types';
|
|
3
|
+
import { PopoverPlacement, PopoverSize } from './Popover.model';
|
|
4
4
|
type getPopupContainer = (triggerNode?: HTMLElement) => HTMLElement;
|
|
5
|
-
export interface PopoverProps extends Omit<HoverCardRootProps, 'defaultOpen'>, Omit<PopoverPortalProps, 'to'>, Pick<PopoverContentProps, 'sticky' | 'prioritizePosition' | 'sideOffset' | 'alignOffset'
|
|
5
|
+
export interface PopoverProps extends Omit<HoverCardRootProps, 'defaultOpen'>, Omit<PopoverPortalProps, 'to'>, Partial<Pick<PopoverContentProps, 'sticky' | 'prioritizePosition' | 'sideOffset' | 'alignOffset' | 'collisionBoundary'>> {
|
|
6
6
|
class?: Class;
|
|
7
7
|
containerClass?: Class;
|
|
8
8
|
trigger?: 'hover' | 'click';
|
|
@@ -10,84 +10,7 @@ export interface PopoverProps extends Omit<HoverCardRootProps, 'defaultOpen'>, O
|
|
|
10
10
|
placement?: PopoverPlacement;
|
|
11
11
|
to?: string | HTMLElement | getPopupContainer;
|
|
12
12
|
}
|
|
13
|
-
declare function __VLS_template():
|
|
14
|
-
attrs: Partial<{}>;
|
|
15
|
-
slots: {
|
|
16
|
-
default?(_: {}): any;
|
|
17
|
-
content?(_: {}): any;
|
|
18
|
-
};
|
|
19
|
-
refs: {
|
|
20
|
-
triggerRef: ({
|
|
21
|
-
$: import('vue').ComponentInternalInstance;
|
|
22
|
-
$data: {};
|
|
23
|
-
$props: Partial<{
|
|
24
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
25
|
-
}> & Omit<{
|
|
26
|
-
readonly as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
27
|
-
readonly asChild?: boolean | undefined;
|
|
28
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "as">;
|
|
29
|
-
$attrs: {
|
|
30
|
-
[x: string]: unknown;
|
|
31
|
-
};
|
|
32
|
-
$refs: {
|
|
33
|
-
[x: string]: unknown;
|
|
34
|
-
};
|
|
35
|
-
$slots: Readonly<{
|
|
36
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
39
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
40
|
-
$host: Element | null;
|
|
41
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
42
|
-
$el: any;
|
|
43
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
-
asChild: {
|
|
45
|
-
type: import('vue').PropType<boolean>;
|
|
46
|
-
};
|
|
47
|
-
as: {
|
|
48
|
-
type: import('vue').PropType<import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component>;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
}>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
52
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
53
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
54
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
55
|
-
created?: (() => void) | (() => void)[];
|
|
56
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
57
|
-
mounted?: (() => void) | (() => void)[];
|
|
58
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
59
|
-
updated?: (() => void) | (() => void)[];
|
|
60
|
-
activated?: (() => void) | (() => void)[];
|
|
61
|
-
deactivated?: (() => void) | (() => void)[];
|
|
62
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
63
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
64
|
-
destroyed?: (() => void) | (() => void)[];
|
|
65
|
-
unmounted?: (() => void) | (() => void)[];
|
|
66
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
67
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
68
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
69
|
-
};
|
|
70
|
-
$forceUpdate: () => void;
|
|
71
|
-
$nextTick: typeof import('vue').nextTick;
|
|
72
|
-
$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;
|
|
73
|
-
} & Readonly<{
|
|
74
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
75
|
-
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
76
|
-
asChild: {
|
|
77
|
-
type: import('vue').PropType<boolean>;
|
|
78
|
-
};
|
|
79
|
-
as: {
|
|
80
|
-
type: import('vue').PropType<import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component>;
|
|
81
|
-
default: string;
|
|
82
|
-
};
|
|
83
|
-
}>>, "as"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
84
|
-
$slots: {
|
|
85
|
-
default?(_: {}): any;
|
|
86
|
-
};
|
|
87
|
-
}) | null;
|
|
88
|
-
};
|
|
89
|
-
rootEl: any;
|
|
90
|
-
};
|
|
13
|
+
declare function __VLS_template(): any;
|
|
91
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
92
15
|
declare const __VLS_component: import('vue').DefineComponent<PopoverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
93
16
|
"update:open": (value: boolean) => any;
|
|
@@ -106,13 +29,13 @@ declare const __VLS_component: import('vue').DefineComponent<PopoverProps, {}, {
|
|
|
106
29
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
107
30
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
108
31
|
}>, {
|
|
109
|
-
size:
|
|
32
|
+
size: PopoverSize;
|
|
110
33
|
open: boolean;
|
|
111
34
|
sticky: "partial" | "always";
|
|
112
35
|
prioritizePosition: boolean;
|
|
113
36
|
trigger: "hover" | "click";
|
|
114
37
|
placement: PopoverPlacement;
|
|
115
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false,
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
116
39
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
117
40
|
export default _default;
|
|
118
41
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Popover.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Popover.vue_vue_type_style_index_0_lang-BZMSPrfB.js");exports.Popover=e._sfc_main;exports.PopoverPlacements=e.PopoverPlacements;exports.PopoverSizes=e.PopoverSizes;exports.default=e._sfc_main;
|
package/dist/Popover/index.es.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./class-CjZYGZDW.js"),R=require("class-variance-authority"),s=require("radix-vue"),v=require("./element-BSTINJi_.js"),$=require("./options-B4iSAKol.js"),B=["sm","md","lg"],F=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],H=e.defineComponent({...$.getComponentOptions("Popover"),__name:"Popover",props:{class:{},containerClass:{},trigger:{default:"hover"},size:{default:"md"},placement:{default:"bottom"},to:{},open:{type:Boolean,default:void 0},openDelay:{},closeDelay:{},disabled:{type:Boolean},forceMount:{type:Boolean},sticky:{default:"always"},prioritizePosition:{type:Boolean,default:!0},sideOffset:{},alignOffset:{},collisionBoundary:{}},emits:["update:open","escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(D,{emit:k}){const g=k,z=s.useEmitAsProps(g),o=D,C=d.getBemBlock("popover"),b=d.getBemElement(C,"trigger"),y=d.getBemElement(C,"content"),w=R.cva(y,{variants:{size:d.generateVariantClassList(B,y)}}),f=e.useSlots(),P=e.computed(()=>{var r;let t=v.filterEmpty((r=f.default)==null?void 0:r.call(f))??null;return t=t.length===1?t[0]:t,t?v.isValidElement(t)&&!v.isFragment(t):!0}),h=e.ref(o.open??!1),m=e.computed({get:()=>o.open===void 0?h.value:o.open,set:t=>{o.open===void 0?h.value=t:g("update:open",t)}}),i=e.ref(),_=e.computed(()=>{var c,u,p,l;const{to:t,disabled:r,forceMount:n}=o;let a=t;if(t instanceof Function){const E=((u=(c=i.value)==null?void 0:c.$el)==null?void 0:u.nodeName)!=="#text"?(p=i.value)==null?void 0:p.$el:(l=i.value)==null?void 0:l.$el.nextSibling;a=t(E)}return{to:a,disabled:r,forceMount:n}}),O=e.computed(()=>o.trigger==="hover"?s.HoverCardRoot:s.PopoverRoot),S=e.computed(()=>o.trigger==="hover"?s.HoverCardTrigger:s.PopoverTrigger),q=e.computed(()=>o.trigger==="hover"?s.HoverCardPortal:s.PopoverPortal),x=e.computed(()=>o.trigger==="hover"?s.HoverCardContent:s.PopoverContent),A=e.computed(()=>{var l;const{sticky:t,prioritizePosition:r,placement:n,sideOffset:a,alignOffset:c}=o,[u="bottom",p="center"]=((l=n==null?void 0:n.split)==null?void 0:l.call(n,"-"))||["bottom","center"];return{...z,sticky:t,prioritizePosition:r,side:u,align:p,sideOffset:a,alignOffset:c}});return(t,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(O.value),{key:P.value,open:m.value,"onUpdate:open":r[0]||(r[0]=n=>m.value=n),openDelay:t.openDelay,closeDelay:t.closeDelay},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value),{asChild:P.value,as:"span",class:e.normalizeClass([e.unref(b),o.class]),ref_key:"triggerRef",ref:i},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["asChild","class"])),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q.value),e.normalizeProps(e.guardReactiveProps(_.value)),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.value),e.mergeProps(A.value,{class:[e.unref(w)({size:t.size}),o.containerClass]}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:3},16,["class"])),[[e.vShow,m.value]])]),_:3},16))]),_:3},40,["open","openDelay","closeDelay"]))}});exports.PopoverPlacements=F;exports.PopoverSizes=B;exports._sfc_main=H;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as L, useSlots as T, computed as
|
|
2
|
-
import { g as G, a as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useEmitAsProps as
|
|
5
|
-
import { f as ne, b as
|
|
1
|
+
import { defineComponent as L, useSlots as T, computed as n, ref as b, openBlock as c, createBlock as f, resolveDynamicComponent as d, withCtx as m, normalizeClass as V, unref as B, renderSlot as z, normalizeProps as K, guardReactiveProps as N, withDirectives as U, mergeProps as j, vShow as q } from "vue";
|
|
2
|
+
import { g as G, a as O, b as I } from "./class-DyU-Ox8D.js";
|
|
3
|
+
import { cva as J } from "class-variance-authority";
|
|
4
|
+
import { useEmitAsProps as Q, HoverCardRoot as W, PopoverRoot as X, HoverCardTrigger as Y, PopoverTrigger as Z, HoverCardPortal as ee, PopoverPortal as te, HoverCardContent as oe, PopoverContent as re } from "radix-vue";
|
|
5
|
+
import { f as ne, b as se, a as ae } from "./element-Cf07a63h.js";
|
|
6
|
+
import { g as ie } from "./options-JBqnVZUl.js";
|
|
6
7
|
const le = ["sm", "md", "lg"], ge = [
|
|
7
8
|
"top",
|
|
8
9
|
"top-start",
|
|
@@ -16,8 +17,8 @@ const le = ["sm", "md", "lg"], ge = [
|
|
|
16
17
|
"left",
|
|
17
18
|
"left-start",
|
|
18
19
|
"left-end"
|
|
19
|
-
],
|
|
20
|
-
...
|
|
20
|
+
], ve = /* @__PURE__ */ L({
|
|
21
|
+
...ie("Popover"),
|
|
21
22
|
__name: "Popover",
|
|
22
23
|
props: {
|
|
23
24
|
class: {},
|
|
@@ -34,29 +35,30 @@ const le = ["sm", "md", "lg"], ge = [
|
|
|
34
35
|
sticky: { default: "always" },
|
|
35
36
|
prioritizePosition: { type: Boolean, default: !0 },
|
|
36
37
|
sideOffset: {},
|
|
37
|
-
alignOffset: {}
|
|
38
|
+
alignOffset: {},
|
|
39
|
+
collisionBoundary: {}
|
|
38
40
|
},
|
|
39
41
|
emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
40
42
|
setup(k, { emit: _ }) {
|
|
41
|
-
const C = _, w =
|
|
43
|
+
const C = _, w = Q(C), t = k, P = I("popover"), R = O(P, "trigger"), y = O(P, "content"), S = J(y, {
|
|
42
44
|
variants: {
|
|
43
|
-
size:
|
|
45
|
+
size: G(le, y)
|
|
44
46
|
}
|
|
45
|
-
}),
|
|
47
|
+
}), g = T(), h = n(() => {
|
|
46
48
|
var o;
|
|
47
|
-
let e = ne((o =
|
|
48
|
-
return e = e.length === 1 ? e[0] : e, e ?
|
|
49
|
-
}), D = b(t.open ?? !1), v =
|
|
49
|
+
let e = ne((o = g.default) == null ? void 0 : o.call(g)) ?? null;
|
|
50
|
+
return e = e.length === 1 ? e[0] : e, e ? se(e) && !ae(e) : !0;
|
|
51
|
+
}), D = b(t.open ?? !1), v = n({
|
|
50
52
|
get: () => t.open === void 0 ? D.value : t.open,
|
|
51
53
|
set: (e) => {
|
|
52
54
|
t.open === void 0 ? D.value = e : C("update:open", e);
|
|
53
55
|
}
|
|
54
|
-
}), a = b(), $ =
|
|
55
|
-
var l, p, u,
|
|
56
|
+
}), a = b(), $ = n(() => {
|
|
57
|
+
var l, p, u, s;
|
|
56
58
|
const { to: e, disabled: o, forceMount: r } = t;
|
|
57
59
|
let i = e;
|
|
58
60
|
if (e instanceof Function) {
|
|
59
|
-
const x = ((p = (l = a.value) == null ? void 0 : l.$el) == null ? void 0 : p.nodeName) !== "#text" ? (u = a.value) == null ? void 0 : u.$el : (
|
|
61
|
+
const x = ((p = (l = a.value) == null ? void 0 : l.$el) == null ? void 0 : p.nodeName) !== "#text" ? (u = a.value) == null ? void 0 : u.$el : (s = a.value) == null ? void 0 : s.$el.nextSibling;
|
|
60
62
|
i = e(x);
|
|
61
63
|
}
|
|
62
64
|
return {
|
|
@@ -64,12 +66,12 @@ const le = ["sm", "md", "lg"], ge = [
|
|
|
64
66
|
disabled: o,
|
|
65
67
|
forceMount: r
|
|
66
68
|
};
|
|
67
|
-
}), A =
|
|
68
|
-
var
|
|
69
|
+
}), A = n(() => t.trigger === "hover" ? W : X), E = n(() => t.trigger === "hover" ? Y : Z), F = n(() => t.trigger === "hover" ? ee : te), H = n(() => t.trigger === "hover" ? oe : re), M = n(() => {
|
|
70
|
+
var s;
|
|
69
71
|
const { sticky: e, prioritizePosition: o, placement: r, sideOffset: i, alignOffset: l } = t, [
|
|
70
72
|
p = "bottom",
|
|
71
73
|
u = "center"
|
|
72
|
-
] = ((
|
|
74
|
+
] = ((s = r == null ? void 0 : r.split) == null ? void 0 : s.call(r, "-")) || ["bottom", "center"];
|
|
73
75
|
return {
|
|
74
76
|
...w,
|
|
75
77
|
sticky: e,
|
|
@@ -87,26 +89,26 @@ const le = ["sm", "md", "lg"], ge = [
|
|
|
87
89
|
openDelay: e.openDelay,
|
|
88
90
|
closeDelay: e.closeDelay
|
|
89
91
|
}, {
|
|
90
|
-
default:
|
|
92
|
+
default: m(() => [
|
|
91
93
|
(c(), f(d(E.value), {
|
|
92
94
|
asChild: h.value,
|
|
93
95
|
as: "span",
|
|
94
|
-
class: V([
|
|
96
|
+
class: V([B(R), t.class]),
|
|
95
97
|
ref_key: "triggerRef",
|
|
96
98
|
ref: a
|
|
97
99
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
|
|
100
|
+
default: m(() => [
|
|
101
|
+
z(e.$slots, "default")
|
|
100
102
|
]),
|
|
101
103
|
_: 3
|
|
102
104
|
}, 8, ["asChild", "class"])),
|
|
103
105
|
(c(), f(d(F.value), K(N($.value)), {
|
|
104
|
-
default:
|
|
106
|
+
default: m(() => [
|
|
105
107
|
U((c(), f(d(H.value), j(M.value, {
|
|
106
|
-
class: [
|
|
108
|
+
class: [B(S)({ size: e.size }), t.containerClass]
|
|
107
109
|
}), {
|
|
108
|
-
default:
|
|
109
|
-
|
|
110
|
+
default: m(() => [
|
|
111
|
+
z(e.$slots, "content")
|
|
110
112
|
]),
|
|
111
113
|
_: 3
|
|
112
114
|
}, 16, ["class"])), [
|
|
@@ -122,6 +124,6 @@ const le = ["sm", "md", "lg"], ge = [
|
|
|
122
124
|
});
|
|
123
125
|
export {
|
|
124
126
|
le as P,
|
|
125
|
-
|
|
127
|
+
ve as _,
|
|
126
128
|
ge as a
|
|
127
129
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { RadioGroupRootProps } from 'radix-vue';
|
|
2
|
+
import { RadioGroupItemProps } from './RadioGroupItem';
|
|
3
|
+
import { RadioGroupSize } from './RadioGroup.model';
|
|
4
|
+
import { Class } from '../types';
|
|
5
|
+
export interface RadioGroupProps extends RadioGroupRootProps {
|
|
6
|
+
items?: RadioGroupItemProps[];
|
|
7
|
+
size?: RadioGroupSize;
|
|
8
|
+
class?: Class;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<RadioGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (payload: string) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
size: RadioGroupSize;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RadioGroupItemProps as RadixRadioGroupItemProps, PrimitiveProps } from 'radix-vue';
|
|
2
|
+
import { Class } from '../types';
|
|
3
|
+
export interface RadioGroupItemProps extends Omit<PrimitiveProps, 'asChild'>, Omit<RadixRadioGroupItemProps, 'asChild'> {
|
|
4
|
+
class?: Class;
|
|
5
|
+
rootCls?: Class;
|
|
6
|
+
labelCls?: Class;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const radioGroupPrefix: string;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RadioGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("radix-vue"),b=require("class-variance-authority"),p=require("../omit-C_ZXwm9T.js"),f=require("../options-B4iSAKol.js"),l=require("../class-CjZYGZDW.js"),v=["for"],d=l.getBemBlock("radio_group"),B=e.defineComponent({...f.getComponentOptions("RadioGroupItem"),__name:"RadioGroupItem",props:{class:{},rootCls:{},labelCls:{},label:{},as:{},id:{},value:{},disabled:{type:Boolean},required:{type:Boolean},name:{}},setup(i){const s=i,o=l.getBemElement(d,"item"),u=e.useSlots(),n=e.computed(()=>s.id??r.useId(void 0,o)),c=e.computed(()=>({...p.omit(s,"class","id","rootCls","labelCls","label"),id:n.value})),a=e.computed(()=>!!(u.label||s.label));return(t,C)=>(e.openBlock(),e.createBlock(e.unref(r.Primitive),{as:t.as,asChild:!a.value,key:a.value,class:e.normalizeClass([{[e.unref(l.getBemElement)(e.unref(o),"root")]:a.value},a.value?s.rootCls:void 0])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.RadioGroupItem),e.mergeProps({class:[e.unref(o),s.class]},c.value),{default:e.withCtx(()=>[e.createVNode(e.unref(r.RadioGroupIndicator),{class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(o),"indicator"))},null,8,["class"])]),_:1},16,["class"]),a.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(l.getBemElement)(e.unref(o),"label"),t.labelCls]),for:n.value},[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],10,v)):e.createCommentVNode("",!0)]),_:3},8,["as","asChild","class"]))}}),k=["2xsm","xsm"],y=e.defineComponent({...f.getComponentOptions("RadioGroup"),__name:"RadioGroup",props:{items:{},size:{default:"xsm"},class:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},name:{},required:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(i,{emit:s}){const o=i,u=s,n=e.computed(()=>p.omit(o,"items","class")),c=r.useForwardPropsEmits(n,u),a=b.cva(d,{variants:{size:l.generateVariantClassList(k,d)}});return(t,C)=>(e.openBlock(),e.createBlock(e.unref(r.RadioGroupRoot),e.mergeProps(e.unref(c),{class:[e.unref(a)(o),o.class]}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>{var m;return[(m=t.items)!=null&&m.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.items,g=>(e.openBlock(),e.createBlock(B,e.mergeProps({ref_for:!0},g),null,16))),256)):e.createCommentVNode("",!0)]})]),_:3},16,["class"]))}});exports.RadioGroup=y;exports.RadioGroupItem=B;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { defineComponent as g, useSlots as I, computed as n, openBlock as l, createBlock as c, unref as e, normalizeClass as p, withCtx as f, createVNode as B, mergeProps as C, createElementBlock as _, renderSlot as G, createTextVNode as P, toDisplayString as z, createCommentVNode as R, Fragment as S, renderList as w } from "vue";
|
|
2
|
+
import { useId as x, Primitive as E, RadioGroupItem as L, RadioGroupIndicator as N, useForwardPropsEmits as $, RadioGroupRoot as q } from "radix-vue";
|
|
3
|
+
import { cva as F } from "class-variance-authority";
|
|
4
|
+
import { o as y } from "../omit-DtumnYm5.js";
|
|
5
|
+
import { g as h } from "../options-JBqnVZUl.js";
|
|
6
|
+
import { a as i, b as D, g as O } from "../class-DyU-Ox8D.js";
|
|
7
|
+
const T = ["for"], b = D("radio_group"), j = /* @__PURE__ */ g({
|
|
8
|
+
...h("RadioGroupItem"),
|
|
9
|
+
__name: "RadioGroupItem",
|
|
10
|
+
props: {
|
|
11
|
+
class: {},
|
|
12
|
+
rootCls: {},
|
|
13
|
+
labelCls: {},
|
|
14
|
+
label: {},
|
|
15
|
+
as: {},
|
|
16
|
+
id: {},
|
|
17
|
+
value: {},
|
|
18
|
+
disabled: { type: Boolean },
|
|
19
|
+
required: { type: Boolean },
|
|
20
|
+
name: {}
|
|
21
|
+
},
|
|
22
|
+
setup(d) {
|
|
23
|
+
const a = d, o = i(b, "item"), u = I(), r = n(() => a.id ?? x(void 0, o)), m = n(() => ({
|
|
24
|
+
...y(a, "class", "id", "rootCls", "labelCls", "label"),
|
|
25
|
+
id: r.value
|
|
26
|
+
})), t = n(() => !!(u.label || a.label));
|
|
27
|
+
return (s, k) => (l(), c(e(E), {
|
|
28
|
+
as: s.as,
|
|
29
|
+
asChild: !t.value,
|
|
30
|
+
key: t.value,
|
|
31
|
+
class: p([{ [e(i)(e(o), "root")]: t.value }, t.value ? a.rootCls : void 0])
|
|
32
|
+
}, {
|
|
33
|
+
default: f(() => [
|
|
34
|
+
B(e(L), C({
|
|
35
|
+
class: [e(o), a.class]
|
|
36
|
+
}, m.value), {
|
|
37
|
+
default: f(() => [
|
|
38
|
+
B(e(N), {
|
|
39
|
+
class: p(e(i)(e(o), "indicator"))
|
|
40
|
+
}, null, 8, ["class"])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 16, ["class"]),
|
|
44
|
+
t.value ? (l(), _("label", {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: p([e(i)(e(o), "label"), s.labelCls]),
|
|
47
|
+
for: r.value
|
|
48
|
+
}, [
|
|
49
|
+
G(s.$slots, "label", {}, () => [
|
|
50
|
+
P(z(s.label), 1)
|
|
51
|
+
])
|
|
52
|
+
], 10, T)) : R("", !0)
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["as", "asChild", "class"]));
|
|
56
|
+
}
|
|
57
|
+
}), A = ["2xsm", "xsm"], W = /* @__PURE__ */ g({
|
|
58
|
+
...h("RadioGroup"),
|
|
59
|
+
__name: "RadioGroup",
|
|
60
|
+
props: {
|
|
61
|
+
items: {},
|
|
62
|
+
size: { default: "xsm" },
|
|
63
|
+
class: {},
|
|
64
|
+
modelValue: {},
|
|
65
|
+
defaultValue: {},
|
|
66
|
+
disabled: { type: Boolean },
|
|
67
|
+
name: {},
|
|
68
|
+
required: { type: Boolean },
|
|
69
|
+
orientation: {},
|
|
70
|
+
dir: {},
|
|
71
|
+
loop: { type: Boolean },
|
|
72
|
+
asChild: { type: Boolean },
|
|
73
|
+
as: {}
|
|
74
|
+
},
|
|
75
|
+
emits: ["update:modelValue"],
|
|
76
|
+
setup(d, { emit: a }) {
|
|
77
|
+
const o = d, u = a, r = n(() => y(o, "items", "class")), m = $(r, u), t = F(b, {
|
|
78
|
+
variants: {
|
|
79
|
+
size: O(A, b)
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return (s, k) => (l(), c(e(q), C(e(m), {
|
|
83
|
+
class: [e(t)(o), o.class]
|
|
84
|
+
}), {
|
|
85
|
+
default: f(() => [
|
|
86
|
+
G(s.$slots, "default", {}, () => {
|
|
87
|
+
var v;
|
|
88
|
+
return [
|
|
89
|
+
(v = s.items) != null && v.length ? (l(!0), _(S, { key: 0 }, w(s.items, (V) => (l(), c(j, C({ ref_for: !0 }, V), null, 16))), 256)) : R("", !0)
|
|
90
|
+
];
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 16, ["class"]));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
export {
|
|
98
|
+
W as RadioGroup,
|
|
99
|
+
j as RadioGroupItem
|
|
100
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PrimitiveProps } from 'radix-vue';
|
|
2
|
+
import { Class } from '../types';
|
|
3
|
+
import { KbdProps } from '../Kbd';
|
|
4
|
+
export interface ShortcutProps extends PrimitiveProps {
|
|
5
|
+
class?: Class;
|
|
6
|
+
items: KbdProps[];
|
|
7
|
+
plus?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<ShortcutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ShortcutProps> & Readonly<{}>, {
|
|
10
|
+
plus: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../class-CjZYGZDW.js"),c=require("radix-vue"),i=require("../options-B4iSAKol.js"),_=require("../Kbd.vue_vue_type_style_index_0_lang-Br1eygIf.js"),m=require("../Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js"),r=e.defineComponent({...i.getComponentOptions("Shortcut"),__name:"Shortcut",props:{class:{},items:{},plus:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(n){const s=n,o=u.getBemBlock("shortcut");return(t,p)=>(e.openBlock(),e.createBlock(e.unref(c.Primitive),{class:e.normalizeClass([e.unref(o),s.class]),key:s.as&&s.asChild,as:t.as,asChild:t.asChild},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(_._sfc_main),e.mergeProps({ref_for:!0},l),null,16),t.items.length>1&&a<t.items.length-1?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,icon:"tabler:plus",size:"3xsm"})):e.createCommentVNode("",!0)],64))),256))]),_:1},8,["class","as","asChild"]))}});exports.Shortcut=r;exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Shortcut, type ShortcutProps, default } from './Shortcut';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as c, openBlock as t, createBlock as o, unref as r, normalizeClass as u, withCtx as f, createElementBlock as a, Fragment as l, renderList as h, createVNode as d, mergeProps as C, createCommentVNode as _ } from "vue";
|
|
2
|
+
import { b as g } from "../class-DyU-Ox8D.js";
|
|
3
|
+
import { Primitive as B } from "radix-vue";
|
|
4
|
+
import { g as k } from "../options-JBqnVZUl.js";
|
|
5
|
+
import { _ as y } from "../Kbd.vue_vue_type_style_index_0_lang-D5D9tTsQ.js";
|
|
6
|
+
import { _ as S } from "../Icon.vue_vue_type_style_index_0_lang-W7sippxn.js";
|
|
7
|
+
const w = /* @__PURE__ */ c({
|
|
8
|
+
...k("Shortcut"),
|
|
9
|
+
__name: "Shortcut",
|
|
10
|
+
props: {
|
|
11
|
+
class: {},
|
|
12
|
+
items: {},
|
|
13
|
+
plus: { type: Boolean, default: !0 },
|
|
14
|
+
asChild: { type: Boolean },
|
|
15
|
+
as: {}
|
|
16
|
+
},
|
|
17
|
+
setup(m) {
|
|
18
|
+
const s = m, n = g("shortcut");
|
|
19
|
+
return (e, b) => (t(), o(r(B), {
|
|
20
|
+
class: u([r(n), s.class]),
|
|
21
|
+
key: s.as && s.asChild,
|
|
22
|
+
as: e.as,
|
|
23
|
+
asChild: e.asChild
|
|
24
|
+
}, {
|
|
25
|
+
default: f(() => [
|
|
26
|
+
(t(!0), a(l, null, h(e.items, (i, p) => (t(), a(l, null, [
|
|
27
|
+
d(r(y), C({ ref_for: !0 }, i), null, 16),
|
|
28
|
+
e.items.length > 1 && p < e.items.length - 1 ? (t(), o(S, {
|
|
29
|
+
key: 0,
|
|
30
|
+
icon: "tabler:plus",
|
|
31
|
+
size: "3xsm"
|
|
32
|
+
})) : _("", !0)
|
|
33
|
+
], 64))), 256))
|
|
34
|
+
]),
|
|
35
|
+
_: 1
|
|
36
|
+
}, 8, ["class", "as", "asChild"]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
w as Shortcut,
|
|
41
|
+
w as default
|
|
42
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Skeleton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js");exports.Skeleton=e._sfc_main;exports.SkeletonSizes=e.SkeletonSizes;exports.SkeletonTypes=e.SkeletonTypes;exports.default=e._sfc_main;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as d, computed as f, openBlock as n, createBlock as o, unref as s, normalizeClass as r, withCtx as C, createElementBlock as
|
|
1
|
+
import { defineComponent as d, computed as f, openBlock as n, createBlock as o, unref as s, normalizeClass as r, withCtx as C, createElementBlock as g, Fragment as v, renderList as k, createCommentVNode as h } from "vue";
|
|
2
2
|
import { Primitive as l } from "radix-vue";
|
|
3
|
-
import { g as
|
|
4
|
-
import { cva as
|
|
3
|
+
import { g as i, a as y, b as B } from "./class-DyU-Ox8D.js";
|
|
4
|
+
import { cva as S } from "class-variance-authority";
|
|
5
|
+
import { g as _ } from "./options-JBqnVZUl.js";
|
|
5
6
|
const b = [
|
|
6
7
|
"avatar",
|
|
7
8
|
"input",
|
|
@@ -12,8 +13,8 @@ const b = [
|
|
|
12
13
|
"base",
|
|
13
14
|
"custom",
|
|
14
15
|
"custom-items"
|
|
15
|
-
], z = ["2xsm", "sm", "md", "lg"],
|
|
16
|
-
...
|
|
16
|
+
], z = ["2xsm", "sm", "md", "lg"], F = /* @__PURE__ */ d({
|
|
17
|
+
..._("Skeleton"),
|
|
17
18
|
__name: "Skeleton",
|
|
18
19
|
props: {
|
|
19
20
|
type: { default: "base" },
|
|
@@ -26,7 +27,7 @@ const b = [
|
|
|
26
27
|
as: { default: "div" }
|
|
27
28
|
},
|
|
28
29
|
setup(m) {
|
|
29
|
-
const t =
|
|
30
|
+
const t = B("skeleton"), e = m, c = S(t, {
|
|
30
31
|
variants: {
|
|
31
32
|
inactive: i("inactive", t),
|
|
32
33
|
size: i(z, t),
|
|
@@ -48,9 +49,9 @@ const b = [
|
|
|
48
49
|
class: r([s(c)(e), e.class])
|
|
49
50
|
}, {
|
|
50
51
|
default: C(() => [
|
|
51
|
-
["paragraph", "list", "custom-items"].includes(a.type) ? (n(!0), v
|
|
52
|
+
["paragraph", "list", "custom-items"].includes(a.type) ? (n(!0), g(v, { key: 0 }, k(u.value, (p) => (n(), o(s(l), {
|
|
52
53
|
as: a.childAs,
|
|
53
|
-
class: r([s(
|
|
54
|
+
class: r([s(y)(s(t), "item"), e.itemClass]),
|
|
54
55
|
key: p
|
|
55
56
|
}, null, 8, ["as", "class"]))), 128)) : h("", !0)
|
|
56
57
|
]),
|
|
@@ -60,6 +61,6 @@ const b = [
|
|
|
60
61
|
});
|
|
61
62
|
export {
|
|
62
63
|
b as S,
|
|
63
|
-
|
|
64
|
+
F as _,
|
|
64
65
|
z as a
|
|
65
66
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),i=require("radix-vue"),a=require("./class-CjZYGZDW.js"),p=require("class-variance-authority"),d=require("./options-B4iSAKol.js"),r=["avatar","input","button","paragraph","headline","list","base","custom","custom-items"],o=["2xsm","sm","md","lg"],f=e.defineComponent({...d.getComponentOptions("Skeleton"),__name:"Skeleton",props:{type:{default:"base"},size:{default:"md"},childAs:{default:"div"},inactive:{type:Boolean,default:!1},class:{},itemClass:{},itemsCount:{},as:{default:"div"}},setup(l){const s=a.getBemBlock("skeleton"),t=l,c=p.cva(s,{variants:{inactive:a.generateVariantClassList("inactive",s),size:a.generateVariantClassList(o,s),type:a.generateVariantClassList(r,s)}}),u=e.computed(()=>{if(t.type==="custom-items"&&t.itemsCount)return t.itemsCount;switch(t.type){case"paragraph":return 4;case"list":return 2;default:return 0}});return(n,C)=>(e.openBlock(),e.createBlock(e.unref(i.Primitive),{as:n.as,class:e.normalizeClass([e.unref(c)(t),t.class])},{default:e.withCtx(()=>[["paragraph","list","custom-items"].includes(n.type)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,m=>(e.openBlock(),e.createBlock(e.unref(i.Primitive),{as:n.childAs,class:e.normalizeClass([e.unref(a.getBemElement)(e.unref(s),"item"),t.itemClass]),key:m},null,8,["as","class"]))),128)):e.createCommentVNode("",!0)]),_:1},8,["as","class"]))}});exports.SkeletonSizes=o;exports.SkeletonTypes=r;exports._sfc_main=f;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import { SpinnerSize } from './Spinner.model';
|
|
2
1
|
import { PrimitiveProps } from 'radix-vue';
|
|
3
2
|
import { Class } from '../types';
|
|
3
|
+
import { SpinnerSize } from './Spinner.model';
|
|
4
4
|
export interface SpinnerProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
5
5
|
size?: SpinnerSize;
|
|
6
6
|
class?: Class;
|
|
7
7
|
text?: string | boolean;
|
|
8
8
|
icon?: string;
|
|
9
9
|
}
|
|
10
|
-
declare function __VLS_template():
|
|
11
|
-
attrs: Partial<{}>;
|
|
12
|
-
slots: {
|
|
13
|
-
icon?(_: {}): any;
|
|
14
|
-
default?(_: {}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
rootEl: any;
|
|
18
|
-
};
|
|
10
|
+
declare function __VLS_template(): any;
|
|
19
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
12
|
declare const __VLS_component: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
|
|
21
13
|
size: SpinnerSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-DW5QRtWO.js");exports.Spinner=e._sfc_main;exports.SpinnerSizes=e.SpinnerSizes;exports.default=e._sfc_main;
|
package/dist/Spinner/index.es.js
CHANGED