@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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { MenuItemContentSlots, MenuItemContentProps } from './MenuItemContent';
|
|
3
|
+
export interface MenuItemProps extends Omit<MenuItemContentProps, 'hasChildren'> {
|
|
4
|
+
subMenuCloseDelay?: number;
|
|
5
|
+
subMenuOpenDelay?: number;
|
|
6
|
+
triggerSubMenuAction?: 'hover' | 'click';
|
|
7
|
+
submenuTriggerCls?: string;
|
|
8
|
+
submenuCls?: string;
|
|
9
|
+
forceMountSubmenu?: boolean;
|
|
10
|
+
items?: (MenuItemProps & {
|
|
11
|
+
key: string | number;
|
|
12
|
+
})[];
|
|
13
|
+
}
|
|
14
|
+
export interface MenuItemSlots extends MenuItemContentSlots {
|
|
15
|
+
items?: (props: MenuItemProps) => never;
|
|
16
|
+
}
|
|
17
|
+
export interface Context {
|
|
18
|
+
parentKeys?: ComputedRef<(string | number)[]>;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<MenuItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MenuItemProps> & Readonly<{}>, {
|
|
21
|
+
size: import('./MenuItem.model.js').MenuItemSize;
|
|
22
|
+
danger: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
branchIcon: string;
|
|
25
|
+
hoverTrailing: boolean;
|
|
26
|
+
selected: boolean;
|
|
27
|
+
unFocusable: boolean;
|
|
28
|
+
leadingCenter: boolean;
|
|
29
|
+
subMenuCloseDelay: number;
|
|
30
|
+
subMenuOpenDelay: number;
|
|
31
|
+
forceMountSubmenu: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
33
|
+
root: HTMLDivElement;
|
|
34
|
+
}, any>, Readonly<MenuItemSlots> & MenuItemSlots>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { MenuItemSize } from './MenuItem.model';
|
|
2
|
+
import { Class } from '../types';
|
|
3
|
+
import { AvatarSize } from '../Avatar/Avatar.model';
|
|
4
|
+
import { IconSize } from '../Icon/Icon.model';
|
|
5
|
+
export interface MenuItemContentProps {
|
|
6
|
+
size?: MenuItemSize;
|
|
7
|
+
title?: string;
|
|
8
|
+
leading?: string;
|
|
9
|
+
trailing?: string;
|
|
10
|
+
hoverTrailing?: boolean;
|
|
11
|
+
description?: string;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
unFocusable?: boolean;
|
|
14
|
+
danger?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
class?: Class;
|
|
17
|
+
leadingCls?: Class;
|
|
18
|
+
contentCls?: Class;
|
|
19
|
+
titleCls?: Class;
|
|
20
|
+
descriptionCls?: Class;
|
|
21
|
+
leadingCenter?: boolean;
|
|
22
|
+
trailingCls?: Class;
|
|
23
|
+
branchCls?: Class;
|
|
24
|
+
branchIcon?: string;
|
|
25
|
+
hasChildren?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface MenuItemContentSlots {
|
|
28
|
+
title?: (props: MenuItemContentProps) => never;
|
|
29
|
+
description?: (props: MenuItemContentProps) => never;
|
|
30
|
+
leading?: (props: MenuItemContentProps & {
|
|
31
|
+
iconSize?: IconSize;
|
|
32
|
+
avatarSize?: AvatarSize;
|
|
33
|
+
}) => never;
|
|
34
|
+
trailing?: (props: MenuItemContentProps & {
|
|
35
|
+
iconSize?: IconSize;
|
|
36
|
+
avatarSize?: AvatarSize;
|
|
37
|
+
}) => never;
|
|
38
|
+
branchIcon?: (props: MenuItemContentProps & {
|
|
39
|
+
iconSize?: IconSize;
|
|
40
|
+
avatarSize?: AvatarSize;
|
|
41
|
+
}) => never;
|
|
42
|
+
}
|
|
43
|
+
export declare const MenuItemPrefix: string;
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<MenuItemContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MenuItemContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<MenuItemContentSlots> & MenuItemContentSlots>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
package/dist/MenuItem/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { default as MenuItem, type MenuItemProps, type MenuItemSlots, default, } from './MenuItem';
|
|
2
|
+
export * from './MenuItem.model';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Menu.vue_vue_type_style_index_0_lang-CSEBoubK.js");exports.MenuItem=e._sfc_main$1;exports.MenuItemSizes=e.MenuItemSizes;exports.default=e._sfc_main$1;
|
package/dist/Popover/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Popover, type PopoverProps, default } from './Popover';
|
|
2
|
-
export * from './Popover.model
|
|
2
|
+
export * from './Popover.model';
|
|
@@ -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-RXHBSX6d.js");exports.Popover=e._sfc_main;exports.PopoverPlacements=e.PopoverPlacements;exports.PopoverSizes=e.PopoverSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { defineComponent as V, useSlots as j, computed as s, ref as K, unref as f, createBlock as m, openBlock as d, resolveDynamicComponent as g, mergeProps as C, withCtx as v, renderSlot as B, normalizeProps as N, guardReactiveProps as q, withDirectives as G, vShow as I } from "vue";
|
|
2
|
+
import { b as k, a as J, g as Q } from "./class-DziTeW9B.js";
|
|
3
|
+
import { cva as W } from "class-variance-authority";
|
|
4
|
+
import { useEmitAsProps as X, HoverCardRoot as Y, PopoverRoot as Z, HoverCardTrigger as x, PopoverTrigger as ee, HoverCardPortal as te, PopoverPortal as oe, HoverCardContent as re, PopoverContent as se } from "radix-vue";
|
|
5
|
+
import { f as ne, b as ae, a as ie } from "./element-CddU1vUY.js";
|
|
6
|
+
import { g as le } from "./options-JBqnVZUl.js";
|
|
7
|
+
import { i as pe } from "./index-DgVKQuPc.js";
|
|
8
|
+
import { o as z } from "./omit-Cxaoa8oo.js";
|
|
9
|
+
import { p as S } from "./pick-DKW6-a-5.js";
|
|
10
|
+
const ce = ["sm", "md", "lg"], De = [
|
|
11
|
+
"top",
|
|
12
|
+
"top-start",
|
|
13
|
+
"top-end",
|
|
14
|
+
"bottom",
|
|
15
|
+
"bottom-start",
|
|
16
|
+
"bottom-end",
|
|
17
|
+
"right",
|
|
18
|
+
"right-start",
|
|
19
|
+
"right-end",
|
|
20
|
+
"left",
|
|
21
|
+
"left-start",
|
|
22
|
+
"left-end"
|
|
23
|
+
], Oe = /* @__PURE__ */ V({
|
|
24
|
+
...le("Popover"),
|
|
25
|
+
__name: "Popover",
|
|
26
|
+
props: {
|
|
27
|
+
class: {},
|
|
28
|
+
containerClass: {},
|
|
29
|
+
containerProps: {},
|
|
30
|
+
trigger: { default: "hover" },
|
|
31
|
+
size: { default: "md" },
|
|
32
|
+
placement: { default: "bottom" },
|
|
33
|
+
to: {},
|
|
34
|
+
reversePlacementOnDir: {},
|
|
35
|
+
defaultOpen: { type: Boolean },
|
|
36
|
+
open: { type: Boolean, default: void 0 },
|
|
37
|
+
openDelay: {},
|
|
38
|
+
closeDelay: {},
|
|
39
|
+
disabled: { type: Boolean },
|
|
40
|
+
forceMount: { type: Boolean },
|
|
41
|
+
sticky: { default: "always" },
|
|
42
|
+
prioritizePosition: { type: Boolean, default: !0 },
|
|
43
|
+
sideOffset: {},
|
|
44
|
+
alignOffset: {},
|
|
45
|
+
collisionBoundary: {}
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
48
|
+
setup(_, { emit: $ }) {
|
|
49
|
+
const h = X($), t = _, D = Q("popover"), w = k(D, "trigger"), O = k(D, "content"), R = W(O, {
|
|
50
|
+
variants: {
|
|
51
|
+
size: J(ce, O)
|
|
52
|
+
}
|
|
53
|
+
}), P = j(), b = s(() => {
|
|
54
|
+
var o;
|
|
55
|
+
const e = ne((o = P.default) == null ? void 0 : o.call(P)) ?? null, r = e.length === 1 ? e[0] : e;
|
|
56
|
+
return r ? ae(r) && !ie(r) : !0;
|
|
57
|
+
}), A = s(() => ({
|
|
58
|
+
...S(t, "open", "defaultOpen"),
|
|
59
|
+
...S(h, "onUpdate:open")
|
|
60
|
+
})), l = K(), E = s(() => {
|
|
61
|
+
var c, n, u, i, y;
|
|
62
|
+
const { to: e, disabled: r, forceMount: o } = t;
|
|
63
|
+
let p = ((c = f(e)) == null ? void 0 : c.$el) ?? f(e);
|
|
64
|
+
if (e instanceof Function) {
|
|
65
|
+
const U = ((u = (n = l.value) == null ? void 0 : n.$el) == null ? void 0 : u.nodeName) !== "#text" ? (i = l.value) == null ? void 0 : i.$el : (y = l.value) == null ? void 0 : y.$el.nextSibling;
|
|
66
|
+
p = e(U);
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
to: p,
|
|
70
|
+
disabled: r,
|
|
71
|
+
forceMount: o
|
|
72
|
+
};
|
|
73
|
+
}), F = s(() => t.trigger === "hover" ? Y : Z), H = s(() => t.trigger === "hover" ? x : ee), L = s(() => t.trigger === "hover" ? te : oe), M = s(() => t.trigger === "hover" ? re : se), a = pe(), T = s(() => {
|
|
74
|
+
var i;
|
|
75
|
+
const { sticky: e, prioritizePosition: r, placement: o, sideOffset: p, alignOffset: c } = t;
|
|
76
|
+
let [
|
|
77
|
+
n = "bottom",
|
|
78
|
+
u = "center"
|
|
79
|
+
] = ((i = o == null ? void 0 : o.split) == null ? void 0 : i.call(o, "-")) || ["bottom", "center"];
|
|
80
|
+
return t.reversePlacementOnDir && (a != null && a.dir.value) && (a == null ? void 0 : a.dir.value) === t.reversePlacementOnDir && (n = {
|
|
81
|
+
right: "left",
|
|
82
|
+
left: "right"
|
|
83
|
+
}[n] ?? n), {
|
|
84
|
+
...z(h, "onUpdate:open"),
|
|
85
|
+
...z(t.containerProps, "class"),
|
|
86
|
+
sticky: e,
|
|
87
|
+
prioritizePosition: r,
|
|
88
|
+
side: n,
|
|
89
|
+
align: u,
|
|
90
|
+
sideOffset: p,
|
|
91
|
+
alignOffset: c
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
return (e, r) => (d(), m(g(F.value), C({
|
|
95
|
+
key: b.value
|
|
96
|
+
}, A.value, {
|
|
97
|
+
openDelay: e.openDelay,
|
|
98
|
+
closeDelay: e.closeDelay
|
|
99
|
+
}), {
|
|
100
|
+
default: v(({ open: o }) => [
|
|
101
|
+
(d(), m(g(H.value), C({
|
|
102
|
+
asChild: b.value,
|
|
103
|
+
as: "span",
|
|
104
|
+
class: [f(w), t.class]
|
|
105
|
+
}, e.$attrs, {
|
|
106
|
+
ref_key: "triggerRef",
|
|
107
|
+
ref: l
|
|
108
|
+
}), {
|
|
109
|
+
default: v(() => [
|
|
110
|
+
B(e.$slots, "default")
|
|
111
|
+
]),
|
|
112
|
+
_: 3
|
|
113
|
+
}, 16, ["asChild", "class"])),
|
|
114
|
+
(d(), m(g(L.value), N(q(E.value)), {
|
|
115
|
+
default: v(() => [
|
|
116
|
+
G((d(), m(g(M.value), C(T.value, {
|
|
117
|
+
class: [f(R)({ size: e.size }), t.containerClass]
|
|
118
|
+
}), {
|
|
119
|
+
default: v(() => [
|
|
120
|
+
B(e.$slots, "content")
|
|
121
|
+
]),
|
|
122
|
+
_: 2
|
|
123
|
+
}, 1040, ["class"])), [
|
|
124
|
+
[I, o]
|
|
125
|
+
])
|
|
126
|
+
]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, 1040))
|
|
129
|
+
]),
|
|
130
|
+
_: 3
|
|
131
|
+
}, 16, ["openDelay", "closeDelay"]));
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
ce as P,
|
|
136
|
+
Oe as _,
|
|
137
|
+
De as a
|
|
138
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),m=require("./class-CjZYGZDW.js"),V=require("class-variance-authority"),n=require("radix-vue"),g=require("./element-uBbpeYVo.js"),x=require("./options-B4iSAKol.js"),L=require("./index-BCJFpT7y.js"),B=require("./omit-1sFJ_mId.js"),D=require("./pick-DojrVogK.js"),k=["sm","md","lg"],M=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],T=e.defineComponent({...x.getComponentOptions("Popover"),__name:"Popover",props:{class:{},containerClass:{},containerProps:{},trigger:{default:"hover"},size:{default:"md"},placement:{default:"bottom"},to:{},reversePlacementOnDir:{},defaultOpen:{type:Boolean},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(O,{emit:b}){const q=b,P=n.useEmitAsProps(q),o=O,C=m.getBemBlock("popover"),w=m.getBemElement(C,"trigger"),y=m.getBemElement(C,"content"),z=V.cva(y,{variants:{size:m.generateVariantClassList(k,y)}}),f=e.useSlots(),h=e.computed(()=>{var r;const t=g.filterEmpty((r=f.default)==null?void 0:r.call(f))??null,s=t.length===1?t[0]:t;return s?g.isValidElement(s)&&!g.isFragment(s):!0}),S=e.computed(()=>({...D.pick(o,"open","defaultOpen"),...D.pick(P,"onUpdate:open")})),c=e.ref(),_=e.computed(()=>{var u,i,d,l,v;const{to:t,disabled:s,forceMount:r}=o;let p=((u=e.unref(t))==null?void 0:u.$el)??e.unref(t);if(t instanceof Function){const H=((d=(i=c.value)==null?void 0:i.$el)==null?void 0:d.nodeName)!=="#text"?(l=c.value)==null?void 0:l.$el:(v=c.value)==null?void 0:v.$el.nextSibling;p=t(H)}return{to:p,disabled:s,forceMount:r}}),$=e.computed(()=>o.trigger==="hover"?n.HoverCardRoot:n.PopoverRoot),A=e.computed(()=>o.trigger==="hover"?n.HoverCardTrigger:n.PopoverTrigger),E=e.computed(()=>o.trigger==="hover"?n.HoverCardPortal:n.PopoverPortal),R=e.computed(()=>o.trigger==="hover"?n.HoverCardContent:n.PopoverContent),a=L.injectConfigContext(),F=e.computed(()=>{var l;const{sticky:t,prioritizePosition:s,placement:r,sideOffset:p,alignOffset:u}=o;let[i="bottom",d="center"]=((l=r==null?void 0:r.split)==null?void 0:l.call(r,"-"))||["bottom","center"];return o.reversePlacementOnDir&&(a!=null&&a.dir.value)&&(a==null?void 0:a.dir.value)===o.reversePlacementOnDir&&(i={right:"left",left:"right"}[i]??i),{...B.omit(P,"onUpdate:open"),...B.omit(o.containerProps,"class"),sticky:t,prioritizePosition:s,side:i,align:d,sideOffset:p,alignOffset:u}});return(t,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent($.value),e.mergeProps({key:h.value},S.value,{openDelay:t.openDelay,closeDelay:t.closeDelay}),{default:e.withCtx(({open:r})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A.value),e.mergeProps({asChild:h.value,as:"span",class:[e.unref(w),o.class]},t.$attrs,{ref_key:"triggerRef",ref:c}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["asChild","class"])),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.value),e.normalizeProps(e.guardReactiveProps(_.value)),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(R.value),e.mergeProps(F.value,{class:[e.unref(z)({size:t.size}),o.containerClass]}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:2},1040,["class"])),[[e.vShow,r]])]),_:2},1040))]),_:3},16,["openDelay","closeDelay"]))}});exports.PopoverPlacements=M;exports.PopoverSizes=k;exports._sfc_main=T;
|
|
@@ -7,7 +7,10 @@ export interface RadioGroupItemProps extends Omit<PrimitiveProps, 'asChild'>, Om
|
|
|
7
7
|
label?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const radioGroupPrefix: string;
|
|
10
|
-
|
|
10
|
+
export interface RadioGroupSlots {
|
|
11
|
+
label?: () => never;
|
|
12
|
+
}
|
|
13
|
+
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>, Readonly<RadioGroupSlots> & RadioGroupSlots>;
|
|
11
14
|
export default _default;
|
|
12
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
16
|
new (): {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as g, useSlots as I, computed as n,
|
|
1
|
+
import { defineComponent as g, useSlots as I, computed as n, createBlock as c, openBlock as l, unref as e, normalizeClass as p, withCtx as f, createVNode as B, createElementBlock as _, createCommentVNode as G, mergeProps as C, renderSlot as R, createTextVNode as P, toDisplayString as z, Fragment as S, renderList as w } from "vue";
|
|
2
2
|
import { useId as x, Primitive as E, RadioGroupItem as L, RadioGroupIndicator as N, useForwardPropsEmits as $, RadioGroupRoot as q } from "radix-vue";
|
|
3
3
|
import { cva as F } from "class-variance-authority";
|
|
4
|
-
import { o as y } from "../omit-
|
|
4
|
+
import { o as y } from "../omit-Cxaoa8oo.js";
|
|
5
5
|
import { g as h } from "../options-JBqnVZUl.js";
|
|
6
|
-
import {
|
|
6
|
+
import { g as D, b as i, a as O } from "../class-DziTeW9B.js";
|
|
7
7
|
const T = ["for"], b = D("radio_group"), j = /* @__PURE__ */ g({
|
|
8
8
|
...h("RadioGroupItem"),
|
|
9
9
|
__name: "RadioGroupItem",
|
|
@@ -46,10 +46,10 @@ const T = ["for"], b = D("radio_group"), j = /* @__PURE__ */ g({
|
|
|
46
46
|
class: p([e(i)(e(o), "label"), s.labelCls]),
|
|
47
47
|
for: r.value
|
|
48
48
|
}, [
|
|
49
|
-
|
|
49
|
+
R(s.$slots, "label", {}, () => [
|
|
50
50
|
P(z(s.label), 1)
|
|
51
51
|
])
|
|
52
|
-
], 10, T)) :
|
|
52
|
+
], 10, T)) : G("", !0)
|
|
53
53
|
]),
|
|
54
54
|
_: 3
|
|
55
55
|
}, 8, ["as", "asChild", "class"]));
|
|
@@ -83,10 +83,10 @@ const T = ["for"], b = D("radio_group"), j = /* @__PURE__ */ g({
|
|
|
83
83
|
class: [e(t)(o), o.class]
|
|
84
84
|
}), {
|
|
85
85
|
default: f(() => [
|
|
86
|
-
|
|
86
|
+
R(s.$slots, "default", {}, () => {
|
|
87
87
|
var v;
|
|
88
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)) :
|
|
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)) : G("", !0)
|
|
90
90
|
];
|
|
91
91
|
})
|
|
92
92
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("radix-vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("radix-vue"),v=require("class-variance-authority"),p=require("../omit-1sFJ_mId.js"),f=require("../options-B4iSAKol.js"),l=require("../class-CjZYGZDW.js"),b=["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,b)):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=v.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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as c,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as c, createBlock as o, openBlock as t, unref as r, normalizeClass as u, withCtx as f, createElementBlock as a, Fragment as l, renderList as h, createVNode as d, createCommentVNode as C, mergeProps as _ } from "vue";
|
|
2
|
+
import { g } from "../class-DziTeW9B.js";
|
|
3
3
|
import { Primitive as B } from "radix-vue";
|
|
4
4
|
import { g as k } from "../options-JBqnVZUl.js";
|
|
5
|
-
import { _ as y } from "../Kbd.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as S } from "../Icon.vue_vue_type_style_index_0_lang-
|
|
5
|
+
import { _ as y } from "../Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js";
|
|
6
|
+
import { _ as S } from "../Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
7
7
|
const w = /* @__PURE__ */ c({
|
|
8
8
|
...k("Shortcut"),
|
|
9
9
|
__name: "Shortcut",
|
|
@@ -16,7 +16,7 @@ const w = /* @__PURE__ */ c({
|
|
|
16
16
|
},
|
|
17
17
|
setup(m) {
|
|
18
18
|
const s = m, n = g("shortcut");
|
|
19
|
-
return (e,
|
|
19
|
+
return (e, z) => (t(), o(r(B), {
|
|
20
20
|
class: u([r(n), s.class]),
|
|
21
21
|
key: s.as && s.asChild,
|
|
22
22
|
as: e.as,
|
|
@@ -24,12 +24,12 @@ const w = /* @__PURE__ */ c({
|
|
|
24
24
|
}, {
|
|
25
25
|
default: f(() => [
|
|
26
26
|
(t(!0), a(l, null, h(e.items, (i, p) => (t(), a(l, null, [
|
|
27
|
-
d(r(y),
|
|
27
|
+
d(r(y), _({ ref_for: !0 }, i), null, 16),
|
|
28
28
|
e.items.length > 1 && p < e.items.length - 1 ? (t(), o(S, {
|
|
29
29
|
key: 0,
|
|
30
30
|
icon: "tabler:plus",
|
|
31
31
|
size: "3xsm"
|
|
32
|
-
})) :
|
|
32
|
+
})) : C("", !0)
|
|
33
33
|
], 64))), 256))
|
|
34
34
|
]),
|
|
35
35
|
_: 1
|
|
@@ -1 +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-
|
|
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-BqEaW_kJ.js"),m=require("../Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PrimitiveProps } from 'radix-vue';
|
|
2
|
-
import { SkeletonSize, SkeletonType } from './Skeleton.model
|
|
2
|
+
import { SkeletonSize, SkeletonType } from './Skeleton.model';
|
|
3
3
|
import { Class } from '../types';
|
|
4
4
|
export interface SkeletonProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
5
5
|
type?: SkeletonType;
|
|
@@ -13,8 +13,8 @@ export interface SkeletonProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
|
13
13
|
declare const _default: import('vue').DefineComponent<SkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
|
|
14
14
|
size: SkeletonSize;
|
|
15
15
|
type: SkeletonType;
|
|
16
|
-
as: import('radix-vue'
|
|
17
|
-
childAs: import('radix-vue'
|
|
16
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
17
|
+
childAs: import('radix-vue').AsTag | import('vue').Component;
|
|
18
18
|
inactive: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
export default _default;
|
package/dist/Skeleton/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Skeleton, type SkeletonProps, default } from './Skeleton';
|
|
2
|
-
export * from './Skeleton.model
|
|
2
|
+
export * from './Skeleton.model';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as d, computed as f,
|
|
1
|
+
import { defineComponent as d, computed as f, createBlock as o, openBlock as n, unref as s, normalizeClass as r, withCtx as C, createElementBlock as g, createCommentVNode as v, Fragment as k, renderList as h } from "vue";
|
|
2
2
|
import { Primitive as l } from "radix-vue";
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as y, a as i, b as B } from "./class-DziTeW9B.js";
|
|
4
4
|
import { cva as S } from "class-variance-authority";
|
|
5
5
|
import { g as _ } from "./options-JBqnVZUl.js";
|
|
6
6
|
const b = [
|
|
@@ -27,7 +27,7 @@ const b = [
|
|
|
27
27
|
as: { default: "div" }
|
|
28
28
|
},
|
|
29
29
|
setup(m) {
|
|
30
|
-
const t =
|
|
30
|
+
const t = y("skeleton"), e = m, c = S(t, {
|
|
31
31
|
variants: {
|
|
32
32
|
inactive: i("inactive", t),
|
|
33
33
|
size: i(z, t),
|
|
@@ -49,11 +49,11 @@ const b = [
|
|
|
49
49
|
class: r([s(c)(e), e.class])
|
|
50
50
|
}, {
|
|
51
51
|
default: C(() => [
|
|
52
|
-
["paragraph", "list", "custom-items"].includes(a.type) ? (n(!0), g(
|
|
52
|
+
["paragraph", "list", "custom-items"].includes(a.type) ? (n(!0), g(k, { key: 0 }, h(u.value, (p) => (n(), o(s(l), {
|
|
53
53
|
as: a.childAs,
|
|
54
|
-
class: r([s(
|
|
54
|
+
class: r([s(B)(s(t), "item"), e.itemClass]),
|
|
55
55
|
key: p
|
|
56
|
-
}, null, 8, ["as", "class"]))), 128)) :
|
|
56
|
+
}, null, 8, ["as", "class"]))), 128)) : v("", !0)
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
}, 8, ["as", "class"]));
|
|
@@ -7,12 +7,21 @@ export interface SpinnerProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
|
7
7
|
text?: string | boolean;
|
|
8
8
|
icon?: string;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
export interface SpinnerSlots {
|
|
11
|
+
default?: () => never;
|
|
12
|
+
icon?: () => never;
|
|
13
|
+
}
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: Readonly<SpinnerSlots> & SpinnerSlots;
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: any;
|
|
19
|
+
};
|
|
11
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
21
|
declare const __VLS_component: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
|
|
13
22
|
size: SpinnerSize;
|
|
14
23
|
text: string | boolean;
|
|
15
|
-
as: import('radix-vue'
|
|
24
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
16
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
27
|
export default _default;
|
package/dist/Spinner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Spinner, type SpinnerProps, default } from './Spinner';
|
|
2
|
-
export * from './Spinner.model
|
|
2
|
+
export * from './Spinner.model';
|
|
@@ -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-CxNO28J7.js");exports.Spinner=e._sfc_main;exports.SpinnerSizes=e.SpinnerSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("./class-CjZYGZDW.js"),d=require("class-variance-authority"),l=require("radix-vue"),p=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),f=require("./options-B4iSAKol.js"),c=["3xsm","2xsm","sm"],v={key:0,width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},B=e.defineComponent({...f.getComponentOptions("Spinner"),__name:"Spinner",props:{size:{default:"sm"},class:{},text:{type:[String,Boolean],default:void 0},icon:{},as:{default:"div"}},setup(u){const o=u,s=n.getBemBlock("spinner"),m=d.cva(s,{variants:{size:n.generateVariantClassList(c,s),icon:n.generateVariantClassList("icon",s)}}),i=e.useSlots(),a=e.computed(()=>!!o.text||!!i.default),C=e.computed(()=>o.text);return(t,r)=>(e.openBlock(),e.createBlock(e.unref(l.Primitive),{class:e.normalizeClass([e.unref(m)({size:t.size,icon:!!t.icon||!!i.icon}),o.class]),key:a.value,"as-child":!a.value,as:t.as},{default:e.withCtx(()=>[e.createVNode(p._sfc_main,{class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(s),"icon")),size:t.size,icon:t.icon},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},()=>[t.icon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",v,r[0]||(r[0]=[e.createElementVNode("path",{d:"M22.5 12C23.3284 12 24.0097 12.6742 23.9064 13.4961C23.6748 15.3394 23.0173 17.1109 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C6.88913 0.982696 8.66064 0.32524 10.5039 0.0936235C11.3258 -0.0096629 12 0.671573 12 1.5C12 2.32843 11.3239 2.98727 10.5069 3.12471C9.2582 3.33479 8.06207 3.80703 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.193 15.9379 20.6652 14.7418 20.8753 13.4931C21.0127 12.6761 21.6716 12 22.5 12Z",fill:"currentColor"},[e.createElementVNode("animateTransform",{attributeName:"transform",dur:"1s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})],-1)])))])]),_:3},8,["class","size","icon"]),a.value?(e.openBlock(),e.createBlock(e.unref(l.Primitive),{key:0,as:t.as,class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(s),"text"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(C.value),1)])]),_:3},8,["as","class"])):e.createCommentVNode("",!0)]),_:3},8,["class","as-child","as"]))}});exports.SpinnerSizes=c;exports._sfc_main=B;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as k, computed as c,
|
|
2
|
-
import { g as
|
|
1
|
+
import { defineComponent as h, useSlots as k, computed as c, createBlock as C, openBlock as n, unref as s, normalizeClass as i, withCtx as r, createVNode as y, createCommentVNode as p, renderSlot as u, createElementBlock as x, createElementVNode as d, createTextVNode as N, toDisplayString as V } from "vue";
|
|
2
|
+
import { g as T, a as f, b as v } from "./class-DziTeW9B.js";
|
|
3
3
|
import { cva as _ } from "class-variance-authority";
|
|
4
4
|
import { Primitive as B } from "radix-vue";
|
|
5
|
-
import { _ as w } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
5
|
+
import { _ as w } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
6
6
|
import { g as E } from "./options-JBqnVZUl.js";
|
|
7
7
|
const $ = ["3xsm", "2xsm", "sm"], b = {
|
|
8
8
|
key: 0,
|
|
@@ -29,7 +29,7 @@ const $ = ["3xsm", "2xsm", "sm"], b = {
|
|
|
29
29
|
}), l = k(), a = c(() => !!o.text || !!l.default), S = c(() => o.text);
|
|
30
30
|
return (e, m) => (n(), C(s(B), {
|
|
31
31
|
class: i([
|
|
32
|
-
s(z)({ size: e.size, icon: !!e.icon || !!
|
|
32
|
+
s(z)({ size: e.size, icon: !!e.icon || !!l.icon }),
|
|
33
33
|
o.class
|
|
34
34
|
]),
|
|
35
35
|
key: a.value,
|
|
@@ -43,13 +43,13 @@ const $ = ["3xsm", "2xsm", "sm"], b = {
|
|
|
43
43
|
icon: e.icon
|
|
44
44
|
}, {
|
|
45
45
|
default: r(() => [
|
|
46
|
-
|
|
47
|
-
e.icon ?
|
|
48
|
-
|
|
46
|
+
u(e.$slots, "icon", {}, () => [
|
|
47
|
+
e.icon ? p("", !0) : (n(), x("svg", b, m[0] || (m[0] = [
|
|
48
|
+
d("path", {
|
|
49
49
|
d: "M22.5 12C23.3284 12 24.0097 12.6742 23.9064 13.4961C23.6748 15.3394 23.0173 17.1109 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C6.88913 0.982696 8.66064 0.32524 10.5039 0.0936235C11.3258 -0.0096629 12 0.671573 12 1.5C12 2.32843 11.3239 2.98727 10.5069 3.12471C9.2582 3.33479 8.06207 3.80703 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.193 15.9379 20.6652 14.7418 20.8753 13.4931C21.0127 12.6761 21.6716 12 22.5 12Z",
|
|
50
50
|
fill: "currentColor"
|
|
51
51
|
}, [
|
|
52
|
-
|
|
52
|
+
d("animateTransform", {
|
|
53
53
|
attributeName: "transform",
|
|
54
54
|
dur: "1s",
|
|
55
55
|
repeatCount: "indefinite",
|
|
@@ -68,12 +68,12 @@ const $ = ["3xsm", "2xsm", "sm"], b = {
|
|
|
68
68
|
class: i(s(v)(s(t), "text"))
|
|
69
69
|
}, {
|
|
70
70
|
default: r(() => [
|
|
71
|
-
|
|
71
|
+
u(e.$slots, "default", {}, () => [
|
|
72
72
|
N(V(S.value), 1)
|
|
73
73
|
])
|
|
74
74
|
]),
|
|
75
75
|
_: 3
|
|
76
|
-
}, 8, ["as", "class"])) :
|
|
76
|
+
}, 8, ["as", "class"])) : p("", !0)
|
|
77
77
|
]),
|
|
78
78
|
_: 3
|
|
79
79
|
}, 8, ["class", "as-child", "as"]));
|
package/dist/Switch/Switch.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SwitchRootProps } from 'radix-vue';
|
|
2
2
|
import { Class } from '../types';
|
|
3
3
|
import { SwitchSize } from './Switch.model';
|
|
4
|
+
import { IconSize } from '../Icon';
|
|
4
5
|
export interface SwitchProps extends Omit<SwitchRootProps, 'asChild'> {
|
|
5
6
|
size?: SwitchSize;
|
|
6
7
|
class?: Class;
|
|
@@ -8,7 +9,26 @@ export interface SwitchProps extends Omit<SwitchRootProps, 'asChild'> {
|
|
|
8
9
|
labelCls?: Class;
|
|
9
10
|
label?: string;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
export interface SwitchSlots {
|
|
13
|
+
checkedText?: () => never;
|
|
14
|
+
uncheckedText?: () => never;
|
|
15
|
+
label?: () => never;
|
|
16
|
+
uncheckedIcon?: (props?: {
|
|
17
|
+
size: IconSize;
|
|
18
|
+
}) => never;
|
|
19
|
+
thumb?: (props?: {
|
|
20
|
+
size: IconSize;
|
|
21
|
+
}) => never;
|
|
22
|
+
checkedIcon?: (props?: {
|
|
23
|
+
size: IconSize;
|
|
24
|
+
}) => never;
|
|
25
|
+
}
|
|
26
|
+
declare function __VLS_template(): {
|
|
27
|
+
attrs: Partial<{}>;
|
|
28
|
+
slots: Readonly<SwitchSlots> & SwitchSlots;
|
|
29
|
+
refs: {};
|
|
30
|
+
rootEl: any;
|
|
31
|
+
};
|
|
12
32
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
33
|
declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
34
|
"update:checked": (payload: boolean) => any;
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Switch, type SwitchProps, default } from './Switch';
|
|
2
|
-
export * from './Switch.model
|
|
2
|
+
export * from './Switch.model';
|