@pantograph/vue 0.10.0 → 0.10.2
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 +79 -3
- package/dist/ActionButton/index.js.js +1 -1
- package/dist/ActionButton/index.umd.cjs.js +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-ClxZJxTh.js → ActionButton.vue_vue_type_script_setup_true_lang-B8F78aq-.js} +2 -3
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-DYj83ijm.js +1 -0
- package/dist/Avatar/Avatar.d.ts +14 -7
- package/dist/Avatar/index.js.js +1 -1
- package/dist/Avatar/index.umd.cjs.js +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BwkELI0y.js +1 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DheqjJPa.js +182 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +2 -5
- package/dist/AvatarGroup/index.js.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs.js +1 -1
- package/dist/Badge/Badge.d.ts +9 -2
- package/dist/Badge/index.js.js +1 -1
- package/dist/Badge/index.umd.cjs.js +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CfA3dSJr.js → Badge.vue_vue_type_script_setup_true_lang-CCIamdNB.js} +2 -3
- package/dist/Badge.vue_vue_type_script_setup_true_lang-ooDlpl8j.js +1 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +12 -7
- package/dist/Base/BaseButton/BaseButton.d.ts +14 -7
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BNs69VP4.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-MM6bsdzR.js → BaseBadge.vue_vue_type_style_index_0_lang-Bh1152XC.js} +46 -52
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CgEN8K4D.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D7irHU-6.js +153 -0
- package/dist/Button/Button.d.ts +79 -3
- package/dist/Button/index.js.js +1 -1
- package/dist/Button/index.umd.cjs.js +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-BA3bxjLD.js +1 -0
- package/dist/{Button.vue_vue_type_script_setup_true_lang-B8DWC8Du.js → Button.vue_vue_type_script_setup_true_lang-NKY7YYCC.js} +6 -7
- package/dist/ButtonGroup/ButtonGroup.d.ts +3 -5
- package/dist/ButtonGroup/index.js.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs.js +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CT_Kgpjf.js +47 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-D486_o-Z.js +1 -0
- package/dist/Checkbox/Checkbox.d.ts +12 -4
- package/dist/Checkbox/index.js.js +1 -1
- package/dist/Checkbox/index.umd.cjs.js +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-CSmeTeZh.js +209 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-D0sF0-hW.js +1 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -5
- package/dist/CheckboxGroup/index.js.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs.js +1 -1
- package/dist/ColorPicker/index.js.js +1 -1
- package/dist/ColorPicker/index.umd.cjs.js +1 -1
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-B1Rst4Q9.js +1 -0
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CEz3bIJG.js +541 -0
- package/dist/ColorSwatch/ColorSwatch.d.ts +11 -4
- package/dist/ColorSwatch/index.js.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs.js +1 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BH-NSALx.js +1 -0
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CL9dd69H.js +100 -0
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +17 -11
- package/dist/ColorSwatchGroup/index.js.js +3 -163
- package/dist/ColorSwatchGroup/index.umd.cjs.js +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CpgTgIuE.js +1 -0
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cwh2REmh.js +159 -0
- package/dist/ColorTrigger/ColorTrigger.d.ts +13 -5
- package/dist/ColorTrigger/index.js.js +4 -90
- package/dist/ColorTrigger/index.umd.cjs.js +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BNFu93Ns.js +86 -0
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-C8kPa338.js +1 -0
- package/dist/ConfigProvider/index.d.ts +6 -6
- package/dist/ConfigProvider/utils.d.ts +2 -2
- package/dist/Divider/Divider.d.ts +13 -8
- package/dist/Divider/index.js.js +1 -1
- package/dist/Divider/index.umd.cjs.js +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-BELWThBf.js +1 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-CRs1KEcj.js +34 -0
- package/dist/FloatButton/FloatButton.d.ts +79 -3
- package/dist/FloatButton/index.js.js +1 -1
- package/dist/FloatButton/index.umd.cjs.js +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-iElZdgSE.js → FloatButton.vue_vue_type_script_setup_true_lang-BAxKXFb0.js} +2 -3
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-C5hAAZZQ.js +1 -0
- package/dist/GraphicalObject/GraphicalObject.d.ts +9 -2
- package/dist/GraphicalObject/index.js.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs.js +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-Cc4PxUnd.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js} +2 -3
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CdO2zArd.js +1 -0
- package/dist/Icon/Icon.d.ts +11 -4
- package/dist/IconButton/IconButton.d.ts +79 -3
- package/dist/IconButton/index.js.js +1 -1
- package/dist/IconButton/index.umd.cjs.js +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-D1nK8pEU.js → IconButton.vue_vue_type_script_setup_true_lang-CchpvdkX.js} +2 -3
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-c16Xu6mm.js +1 -0
- package/dist/Image/Image.d.ts +16 -8
- package/dist/Image/index.js.js +1 -1
- package/dist/Image/index.umd.cjs.js +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-DbqKKOAs.js → Image.vue_vue_type_style_index_0_lang-Hg1jFz-L.js} +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-Cku5hiNE.js → Image.vue_vue_type_style_index_0_lang-pkzjPQyu.js} +2 -2
- package/dist/IndentLevel/IndentLevel.d.ts +14 -8
- package/dist/IndentLevel/index.js.js +1 -1
- package/dist/IndentLevel/index.umd.cjs.js +1 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DqqJTrDF.js +1 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-ZZ1uEhji.js +94 -0
- package/dist/Indicator/Indicator.d.ts +9 -2
- package/dist/Indicator/index.js.js +1 -1
- package/dist/Indicator/index.umd.cjs.js +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-DURlzRTQ.js → Indicator.vue_vue_type_script_setup_true_lang-B16OmZLF.js} +2 -3
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-BibzfVax.js +1 -0
- package/dist/Input/Input.d.ts +15 -7
- package/dist/Input/index.d.ts +2 -0
- package/dist/Input/index.js.js +7 -0
- package/dist/Input/index.umd.cjs.js +1 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-CcR6oCIR.js +407 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-DVN491cI.js +1 -0
- package/dist/Kbd/Kbd.d.ts +13 -9
- package/dist/Kbd/index.js.js +1 -1
- package/dist/Kbd/index.umd.cjs.js +1 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-CpDjSQqg.js +1 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-D1y-0kBN.js +47 -0
- package/dist/Menu/Menu.d.ts +9 -10
- package/dist/Menu/index.js.js +1 -1
- package/dist/Menu/index.umd.cjs.js +1 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-B64mJSxF.js +481 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-Sq_kFrSI.js +1 -0
- package/dist/MenuItem/MenuItem.d.ts +2 -2
- package/dist/MenuItem/index.js.js +1 -1
- package/dist/MenuItem/index.umd.cjs.js +1 -1
- package/dist/Popover/Popover.d.ts +82 -5
- package/dist/Popover/index.js.js +1 -1
- package/dist/Popover/index.umd.cjs.js +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-DkM_Ynrg.js → Popover.vue_vue_type_style_index_0_lang-C0IwnsU5.js} +2 -2
- package/dist/{Popover.vue_vue_type_style_index_0_lang-pSXmj4z1.js → Popover.vue_vue_type_style_index_0_lang-CM8qMFEi.js} +1 -1
- package/dist/RadioGroup/RadioGroup.d.ts +12 -5
- package/dist/RadioGroup/RadioGroupItem.d.ts +11 -3
- package/dist/RadioGroup/index.d.ts +1 -1
- package/dist/RadioGroup/index.js.js +3 -2
- package/dist/RadioGroup/index.umd.cjs.js +1 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-C8nd4TEI.js +100 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DjEHmvMo.js +1 -0
- package/dist/Shortcut/Shortcut.d.ts +1 -2
- package/dist/Shortcut/index.js.js +1 -1
- package/dist/Shortcut/index.umd.cjs.js +1 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-D4xo_UgO.js +32 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-D8_aLpYM.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +3 -7
- package/dist/Skeleton/index.js.js +1 -1
- package/dist/Skeleton/index.umd.cjs.js +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-C1I-p4Yn.js +1 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-IQEtEnZx.js +58 -0
- package/dist/Spinner/Spinner.d.ts +11 -6
- package/dist/Spinner/index.js.js +1 -1
- package/dist/Spinner/index.umd.cjs.js +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js +1 -0
- package/dist/Spinner.vue_vue_type_style_index_0_lang-BYqqSQAx.js +73 -0
- package/dist/Switch/Switch.d.ts +14 -3
- package/dist/Switch/index.js.js +1 -1
- package/dist/Switch/index.umd.cjs.js +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-CoXu3YJ-.js +1 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-CvWay8Wa.js +106 -0
- package/dist/Tree/Tree.d.ts +12 -3
- package/dist/Tree/TreeNode.d.ts +11 -2
- package/dist/Tree/index.js.js +1 -1
- package/dist/Tree/index.umd.cjs.js +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BCYjSwUH.js +545 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-CvskECfv.js +1 -0
- package/dist/_flatRest-CHX8vV1P.js +556 -0
- package/dist/_flatRest-R59G2N4m.js +1 -0
- package/dist/{cloneDeep-7ho7cOLj.js → cloneDeep-BMA7VTX1.js} +1 -1
- package/dist/cloneDeep-BcKVMzWC.js +1 -0
- package/dist/get-B4UJlXpC.js +1 -0
- package/dist/{get-CdoyK4GU.js → get-Q8GXlj-L.js} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js.js +123 -102
- package/dist/index.umd.cjs.js +1 -1
- package/dist/omit-BEkBWXra.js +212 -0
- package/dist/omit-BKPbELUG.js +1 -0
- package/dist/pick-C-ap2Lj0.js +1 -0
- package/dist/{pick-BHVX8oMF.js → pick-DLskPTKb.js} +1 -1
- package/dist/style/index.css +1 -1
- package/dist/useId-DvOSMFGX.js +9 -0
- package/dist/useId-Ku3O_8TK.js +1 -0
- package/dist/useInputDataStates-CZbdWpyp.js +26 -0
- package/dist/useInputDataStates-CbRgNQqU.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js.js +10 -6
- package/dist/utils/index.umd.cjs.js +1 -1
- package/dist/utils/useId.d.ts +1 -0
- package/dist/utils/useInputDataStates.d.ts +19 -0
- package/package.json +10 -3
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Db3ryil1.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-B538jct0.js +0 -188
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BSi0qbuq.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CKxCSXXL.js +0 -1
- package/dist/Base/Primitive.d.ts +0 -39
- package/dist/Base/Slot.d.ts +0 -6
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-OEeJw0Sy.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-gzePKYHN.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-s4G57j5o.js +0 -159
- package/dist/Button.vue_vue_type_script_setup_true_lang-BVCP3jP3.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js +0 -52
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Bm6sm_wm.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-maH6mbC5.js +0 -216
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CROQzfNe.js +0 -944
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-IZSWne-0.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Bf0glWPU.js +0 -102
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Dki5150Z.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js +0 -40
- package/dist/Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-DARsq4US.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Bouixpu2.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CufKPHFD.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-C9mNx1Zx.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CKJpRLV6.js +0 -104
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DpPAMjWw.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js +0 -60
- package/dist/Menu.vue_vue_type_style_index_0_lang-Danl_w4K.js +0 -480
- package/dist/Menu.vue_vue_type_style_index_0_lang-eKNVzfnz.js +0 -1
- package/dist/Primitive-BT1RjuGS.js +0 -1
- package/dist/Primitive-nOVjbfuc.js +0 -47
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-8BgnVYlc.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-NNLg5ogX.js +0 -100
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js +0 -41
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js +0 -66
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js +0 -85
- package/dist/Switch.vue_vue_type_style_index_0_lang-B9_IPFyg.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-_FIrRkI7.js +0 -103
- package/dist/Tree.vue_vue_type_style_index_0_lang-B3ZzwkLN.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-D9GBs86I.js +0 -547
- package/dist/cloneDeep-C6tiVz1k.js +0 -1
- package/dist/get-BULsy4gy.js +0 -1
- package/dist/omit-BHZMfUBv.js +0 -757
- package/dist/omit-DlH5U9Jc.js +0 -1
- package/dist/pick-DpwC5mlg.js +0 -1
|
@@ -2,6 +2,7 @@ import { PopoverContentProps, HoverCardRootProps, PopoverPortalProps } from 'rad
|
|
|
2
2
|
import { Class } from '../types';
|
|
3
3
|
import { PopoverPlacement, PopoverSize } from './Popover.model';
|
|
4
4
|
import { Direction } from '../ConfigProvider';
|
|
5
|
+
import { ComponentPublicInstance } from 'vue';
|
|
5
6
|
type getPopupContainer = (triggerNode?: HTMLElement) => HTMLElement;
|
|
6
7
|
export interface PopoverProps extends HoverCardRootProps, Omit<PopoverPortalProps, 'to'>, Partial<Pick<PopoverContentProps, 'sticky' | 'prioritizePosition' | 'sideOffset' | 'alignOffset' | 'collisionBoundary'>> {
|
|
7
8
|
class?: Class;
|
|
@@ -17,7 +18,82 @@ export interface PopoverSlots {
|
|
|
17
18
|
default?: () => never;
|
|
18
19
|
content?: () => never;
|
|
19
20
|
}
|
|
20
|
-
declare
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
slots: Readonly<PopoverSlots> & PopoverSlots;
|
|
23
|
+
refs: {
|
|
24
|
+
triggerRef: ({
|
|
25
|
+
$: import('vue').ComponentInternalInstance;
|
|
26
|
+
$data: {};
|
|
27
|
+
$props: Partial<{
|
|
28
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
29
|
+
}> & Omit<{
|
|
30
|
+
readonly as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
31
|
+
readonly asChild?: boolean | undefined;
|
|
32
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "as">;
|
|
33
|
+
$attrs: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
$refs: {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
$slots: Readonly<{
|
|
40
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
$root: ComponentPublicInstance | null;
|
|
43
|
+
$parent: ComponentPublicInstance | null;
|
|
44
|
+
$host: Element | null;
|
|
45
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
46
|
+
$el: any;
|
|
47
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
48
|
+
as: {
|
|
49
|
+
type: import('vue').PropType<import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
asChild: {
|
|
53
|
+
type: import('vue').PropType<boolean>;
|
|
54
|
+
};
|
|
55
|
+
}>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
56
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
57
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
58
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
59
|
+
created?: (() => void) | (() => void)[];
|
|
60
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
61
|
+
mounted?: (() => void) | (() => void)[];
|
|
62
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
63
|
+
updated?: (() => void) | (() => void)[];
|
|
64
|
+
activated?: (() => void) | (() => void)[];
|
|
65
|
+
deactivated?: (() => void) | (() => void)[];
|
|
66
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
67
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
68
|
+
destroyed?: (() => void) | (() => void)[];
|
|
69
|
+
unmounted?: (() => void) | (() => void)[];
|
|
70
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
71
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
72
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
73
|
+
};
|
|
74
|
+
$forceUpdate: () => void;
|
|
75
|
+
$nextTick: typeof import('vue').nextTick;
|
|
76
|
+
$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;
|
|
77
|
+
} & Readonly<{
|
|
78
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
79
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
80
|
+
as: {
|
|
81
|
+
type: import('vue').PropType<import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
asChild: {
|
|
85
|
+
type: import('vue').PropType<boolean>;
|
|
86
|
+
};
|
|
87
|
+
}>>, "as"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
88
|
+
$slots: {
|
|
89
|
+
default?(_: {}): any;
|
|
90
|
+
};
|
|
91
|
+
}) | null;
|
|
92
|
+
};
|
|
93
|
+
attrs: Partial<{}>;
|
|
94
|
+
};
|
|
95
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
96
|
+
declare const __VLS_component: import('vue').DefineComponent<PopoverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
97
|
"update:open": (value: boolean) => any;
|
|
22
98
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
23
99
|
pointerDownOutside: (event: import('../../../../node_modules/radix-vue/dist/DismissableLayer/utils.js', { with: { "resolution-mode": "import" } }).PointerDownOutsideEvent) => any;
|
|
@@ -34,13 +110,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Po
|
|
|
34
110
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
35
111
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
36
112
|
}>, {
|
|
37
|
-
size:
|
|
113
|
+
size: PopoverSize;
|
|
38
114
|
sticky: "partial" | "always";
|
|
39
115
|
prioritizePosition: boolean;
|
|
40
|
-
trigger: "
|
|
41
|
-
placement:
|
|
116
|
+
trigger: "hover" | "click";
|
|
117
|
+
placement: PopoverPlacement;
|
|
42
118
|
open: boolean;
|
|
43
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
119
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
120
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
121
|
export default _default;
|
|
45
122
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
123
|
new (): {
|
package/dist/Popover/index.js.js
CHANGED
|
@@ -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-CM8qMFEi.js");exports.Popover=e._sfc_main;exports.PopoverPlacements=e.PopoverPlacements;exports.PopoverSizes=e.PopoverSizes;exports.default=e._sfc_main;
|
|
@@ -5,8 +5,8 @@ import { useEmitAsProps as Y, HoverCardRoot as Z, PopoverRoot as x, HoverCardTri
|
|
|
5
5
|
import { f as ae, b as ie, a as le } from "./element-CddU1vUY.js";
|
|
6
6
|
import { g as pe } from "./options-JBqnVZUl.js";
|
|
7
7
|
import { injectConfigContext as ce } from "./ConfigProvider/index.js.js";
|
|
8
|
-
import { o as w } from "./omit-
|
|
9
|
-
import { p as z } from "./pick-
|
|
8
|
+
import { o as w } from "./omit-BEkBWXra.js";
|
|
9
|
+
import { p as z } from "./pick-DLskPTKb.js";
|
|
10
10
|
const ue = ["sm", "md", "lg"], Oe = [
|
|
11
11
|
"top",
|
|
12
12
|
"top-start",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),m=require("./class-CjZYGZDW.js"),T=require("class-variance-authority"),n=require("radix-vue"),v=require("./element-uBbpeYVo.js"),x=require("./options-B4iSAKol.js"),L=require("./ConfigProvider/index.umd.cjs.js"),D=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),m=require("./class-CjZYGZDW.js"),T=require("class-variance-authority"),n=require("radix-vue"),v=require("./element-uBbpeYVo.js"),x=require("./options-B4iSAKol.js"),L=require("./ConfigProvider/index.umd.cjs.js"),D=require("./omit-BKPbELUG.js"),B=require("./pick-C-ap2Lj0.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"],U=e.defineComponent({...x.getComponentOptions("Popover",!1),__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:w}){const b=w,P=n.useEmitAsProps(b),o=O,C=m.getBemBlock("popover"),q=m.getBemElement(C,"trigger"),y=m.getBemElement(C,"content"),z=T.cva(y,{variants:{size:m.generateVariantClassList(k,y)}}),f=e.useSlots(),h=e.computed(()=>{var r;const t=v.filterEmpty((r=f.default)==null?void 0:r.call(f))??null,s=t.length===1?t[0]:t;return s?v.isValidElement(s)&&!v.isFragment(s):!0}),S=e.computed(()=>({...B.pick(o,"open","defaultOpen"),...B.pick(P,"onUpdate:open")})),c=e.ref(),_=e.computed(()=>{var u,i,d,l,g;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 V=((d=(i=c.value)==null?void 0:i.$el)==null?void 0:d.nodeName)!=="#text"?(l=c.value)==null?void 0:l.$el:(g=c.value)==null?void 0:g.$el.nextSibling;p=t(V)}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),{...D.omit(P,"onUpdate:open"),...D.omit(o.containerProps,"class"),sticky:t,prioritizePosition:s,side:i,align:d,sideOffset:p,alignOffset:u}}),H=t=>{o.trigger==="hover"&&t.stopPropagation()};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(q),o.class],onPointerdown:H},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=U;
|
|
@@ -7,15 +7,22 @@ export interface RadioGroupProps extends RadioGroupRootProps {
|
|
|
7
7
|
size?: RadioGroupSize;
|
|
8
8
|
class?: Class;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<RadioGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
19
|
"update:modelValue": (payload: string) => any;
|
|
12
20
|
}, string, import('vue').PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
13
21
|
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
14
22
|
}>, {
|
|
15
|
-
size:
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
17
|
-
|
|
18
|
-
}>;
|
|
23
|
+
size: RadioGroupSize;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
26
|
export default _default;
|
|
20
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
28
|
new (): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RadioGroupItemProps as RadixRadioGroupItemProps
|
|
1
|
+
import { RadioGroupItemProps as RadixRadioGroupItemProps } from 'radix-vue';
|
|
2
2
|
import { Class } from '../types';
|
|
3
|
-
export interface RadioGroupItemProps extends Omit<
|
|
3
|
+
export interface RadioGroupItemProps extends Omit<RadixRadioGroupItemProps, 'asChild' | 'as'> {
|
|
4
4
|
class?: Class;
|
|
5
5
|
rootCls?: Class;
|
|
6
6
|
labelCls?: Class;
|
|
@@ -10,7 +10,15 @@ export declare const radioGroupPrefix: string;
|
|
|
10
10
|
export interface RadioGroupSlots {
|
|
11
11
|
label?: () => never;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
blur: (e: InputEvent) => any;
|
|
15
|
+
focus: (e: InputEvent) => any;
|
|
16
|
+
"update:modelValue": (payload: string) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
|
|
18
|
+
onBlur?: ((e: InputEvent) => any) | undefined;
|
|
19
|
+
onFocus?: ((e: InputEvent) => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<RadioGroupSlots> & RadioGroupSlots>;
|
|
14
22
|
export default _default;
|
|
15
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
24
|
new (): {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as RadioGroup, type RadioGroupProps } from './RadioGroup';
|
|
1
|
+
export { default as RadioGroup, type RadioGroupProps, default } from './RadioGroup';
|
|
2
2
|
export { default as RadioGroupItem, type RadioGroupItemProps } from './RadioGroupItem';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { _ as r, a as
|
|
1
|
+
import { _ as r, a as d, _ as e } from "../RadioGroup.vue_vue_type_script_setup_true_lang-C8nd4TEI.js";
|
|
2
2
|
export {
|
|
3
3
|
r as RadioGroup,
|
|
4
|
-
|
|
4
|
+
d as RadioGroupItem,
|
|
5
|
+
e as default
|
|
5
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../RadioGroup.vue_vue_type_script_setup_true_lang-DjEHmvMo.js");exports.RadioGroup=e._sfc_main;exports.RadioGroupItem=e._sfc_main$1;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { defineComponent as G, useSlots as P, computed as m, createElementBlock as g, openBlock as t, mergeProps as d, unref as e, createVNode as _, createCommentVNode as R, withCtx as V, normalizeClass as v, renderSlot as h, createTextVNode as S, toDisplayString as z, createBlock as y, Fragment as w, renderList as x } from "vue";
|
|
2
|
+
import { RadioGroupItem as D, RadioGroupIndicator as E, useForwardPropsEmits as L, RadioGroupRoot as N } from "radix-vue";
|
|
3
|
+
import { cva as $ } from "class-variance-authority";
|
|
4
|
+
import { o as k } from "./omit-BEkBWXra.js";
|
|
5
|
+
import { g as I } from "./options-JBqnVZUl.js";
|
|
6
|
+
import { u as q } from "./useId-DvOSMFGX.js";
|
|
7
|
+
import { U as F } from "./useInputDataStates-CZbdWpyp.js";
|
|
8
|
+
import { g as U, b as n, a as O } from "./class-DziTeW9B.js";
|
|
9
|
+
const T = ["for"], B = U("radio_group"), j = /* @__PURE__ */ G({
|
|
10
|
+
...I("RadioGroupItem"),
|
|
11
|
+
__name: "RadioGroupItem",
|
|
12
|
+
props: {
|
|
13
|
+
class: {},
|
|
14
|
+
rootCls: {},
|
|
15
|
+
labelCls: {},
|
|
16
|
+
label: {},
|
|
17
|
+
id: {},
|
|
18
|
+
value: {},
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
required: { type: Boolean },
|
|
21
|
+
name: {}
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:modelValue", "blur", "focus"],
|
|
24
|
+
setup(u, { emit: p }) {
|
|
25
|
+
const o = u, s = n(B, "item"), c = P(), f = p, l = m(() => o.id ?? q(s)), { rootBindings: a, inputBindings: C } = F({
|
|
26
|
+
getDisabled: () => o.disabled,
|
|
27
|
+
emit: f
|
|
28
|
+
}), r = m(() => ({
|
|
29
|
+
...k(o, "class", "id", "rootCls", "labelCls", "label"),
|
|
30
|
+
id: l.value,
|
|
31
|
+
...C.value
|
|
32
|
+
})), b = m(() => !!(c.label || o.label));
|
|
33
|
+
return (i, H) => (t(), g("div", d({
|
|
34
|
+
class: [e(n)(e(s), "root"), i.rootCls]
|
|
35
|
+
}, e(a)), [
|
|
36
|
+
_(e(D), d({
|
|
37
|
+
class: [e(s), o.class]
|
|
38
|
+
}, r.value), {
|
|
39
|
+
default: V(() => [
|
|
40
|
+
_(e(E), {
|
|
41
|
+
class: v(e(n)(e(s), "indicator"))
|
|
42
|
+
}, null, 8, ["class"])
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 16, ["class"]),
|
|
46
|
+
b.value ? (t(), g("label", {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: v([e(n)(e(s), "label"), i.labelCls]),
|
|
49
|
+
for: l.value
|
|
50
|
+
}, [
|
|
51
|
+
h(i.$slots, "label", {}, () => [
|
|
52
|
+
S(z(i.label), 1)
|
|
53
|
+
])
|
|
54
|
+
], 10, T)) : R("", !0)
|
|
55
|
+
], 16));
|
|
56
|
+
}
|
|
57
|
+
}), A = ["2xsm", "xsm"], ee = /* @__PURE__ */ G({
|
|
58
|
+
...I("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(u, { emit: p }) {
|
|
77
|
+
const o = u, s = p, c = m(() => k(o, "items", "class")), f = L(c, s), l = $(B, {
|
|
78
|
+
variants: {
|
|
79
|
+
size: O(A, B)
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return (a, C) => (t(), y(e(N), d(e(f), {
|
|
83
|
+
class: [e(l)(o), o.class]
|
|
84
|
+
}), {
|
|
85
|
+
default: V(() => [
|
|
86
|
+
h(a.$slots, "default", {}, () => {
|
|
87
|
+
var r;
|
|
88
|
+
return [
|
|
89
|
+
(r = a.items) != null && r.length ? (t(!0), g(w, { key: 0 }, x(a.items, (b) => (t(), y(j, d({ ref_for: !0 }, b), null, 16))), 256)) : R("", !0)
|
|
90
|
+
];
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 16, ["class"]));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
export {
|
|
98
|
+
ee as _,
|
|
99
|
+
j as a
|
|
100
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),i=require("radix-vue"),_=require("class-variance-authority"),g=require("./omit-BKPbELUG.js"),C=require("./options-B4iSAKol.js"),k=require("./useId-Ku3O_8TK.js"),V=require("./useInputDataStates-CbRgNQqU.js"),s=require("./class-CjZYGZDW.js"),v=["for"],f=s.getBemBlock("radio_group"),b=e.defineComponent({...C.getComponentOptions("RadioGroupItem"),__name:"RadioGroupItem",props:{class:{},rootCls:{},labelCls:{},label:{},id:{},value:{},disabled:{type:Boolean},required:{type:Boolean},name:{}},emits:["update:modelValue","blur","focus"],setup(u,{emit:c}){const o=u,t=s.getBemElement(f,"item"),d=e.useSlots(),m=c,a=e.computed(()=>o.id??k.usePCId(t)),{rootBindings:r,inputBindings:B}=V.UseInputDataStates({getDisabled:()=>o.disabled,emit:m}),l=e.computed(()=>({...g.omit(o,"class","id","rootCls","labelCls","label"),id:a.value,...B.value})),p=e.computed(()=>!!(d.label||o.label));return(n,h)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(s.getBemElement)(e.unref(t),"root"),n.rootCls]},e.unref(r)),[e.createVNode(e.unref(i.RadioGroupItem),e.mergeProps({class:[e.unref(t),o.class]},l.value),{default:e.withCtx(()=>[e.createVNode(e.unref(i.RadioGroupIndicator),{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"indicator"))},null,8,["class"])]),_:1},16,["class"]),p.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(t),"label"),n.labelCls]),for:a.value},[e.renderSlot(n.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])],10,v)):e.createCommentVNode("",!0)],16))}}),q=["2xsm","xsm"],y=e.defineComponent({...C.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(u,{emit:c}){const o=u,t=c,d=e.computed(()=>g.omit(o,"items","class")),m=i.useForwardPropsEmits(d,t),a=_.cva(f,{variants:{size:s.generateVariantClassList(q,f)}});return(r,B)=>(e.openBlock(),e.createBlock(e.unref(i.RadioGroupRoot),e.mergeProps(e.unref(m),{class:[e.unref(a)(o),o.class]}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>{var l;return[(l=r.items)!=null&&l.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.items,p=>(e.openBlock(),e.createBlock(b,e.mergeProps({ref_for:!0},p),null,16))),256)):e.createCommentVNode("",!0)]})]),_:3},16,["class"]))}});exports._sfc_main=y;exports._sfc_main$1=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-D8_aLpYM.js");exports.Shortcut=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as i, createElementBlock as r, openBlock as e, normalizeClass as p, unref as o, Fragment as s, renderList as u, createVNode as f, createBlock as _, createCommentVNode as g, mergeProps as d } from "vue";
|
|
2
|
+
import { g as h } from "./class-DziTeW9B.js";
|
|
3
|
+
import { g as B } from "./options-JBqnVZUl.js";
|
|
4
|
+
import { _ as k } from "./Kbd.vue_vue_type_style_index_0_lang-D1y-0kBN.js";
|
|
5
|
+
import { _ as C } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
6
|
+
const b = /* @__PURE__ */ i({
|
|
7
|
+
...B("Shortcut"),
|
|
8
|
+
__name: "Shortcut",
|
|
9
|
+
props: {
|
|
10
|
+
class: {},
|
|
11
|
+
items: {},
|
|
12
|
+
plus: { type: Boolean, default: !0 }
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
const m = n, a = h("shortcut");
|
|
16
|
+
return (t, y) => (e(), r("div", {
|
|
17
|
+
class: p([o(a), m.class])
|
|
18
|
+
}, [
|
|
19
|
+
(e(!0), r(s, null, u(t.items, (l, c) => (e(), r(s, null, [
|
|
20
|
+
f(o(k), d({ ref_for: !0 }, l), null, 16),
|
|
21
|
+
t.items.length > 1 && c < t.items.length - 1 ? (e(), _(C, {
|
|
22
|
+
key: 0,
|
|
23
|
+
icon: "tabler:plus",
|
|
24
|
+
size: "3xsm"
|
|
25
|
+
})) : g("", !0)
|
|
26
|
+
], 64))), 256))
|
|
27
|
+
], 2));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
b as _
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./class-CjZYGZDW.js"),u=require("./options-B4iSAKol.js"),a=require("./Kbd.vue_vue_type_style_index_0_lang-CpDjSQqg.js"),i=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),_=e.defineComponent({...u.getComponentOptions("Shortcut"),__name:"Shortcut",props:{class:{},items:{},plus:{type:Boolean,default:!0}},setup(n){const r=n,o=l.getBemBlock("shortcut");return(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o),r.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(a._sfc_main),e.mergeProps({ref_for:!0},s),null,16),t.items.length>1&&c<t.items.length-1?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,icon:"tabler:plus",size:"3xsm"})):e.createCommentVNode("",!0)],64))),256))],2))}});exports._sfc_main=_;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { PrimitiveProps } from 'radix-vue';
|
|
2
1
|
import { SkeletonSize, SkeletonType } from './Skeleton.model';
|
|
3
2
|
import { Class } from '../types';
|
|
4
|
-
export interface SkeletonProps
|
|
3
|
+
export interface SkeletonProps {
|
|
5
4
|
type?: SkeletonType;
|
|
6
5
|
size?: SkeletonSize;
|
|
7
|
-
childAs?: PrimitiveProps['as'];
|
|
8
6
|
inactive?: boolean;
|
|
9
7
|
class?: Class;
|
|
10
8
|
itemClass?: Class;
|
|
11
9
|
itemsCount?: number;
|
|
12
10
|
}
|
|
13
11
|
declare const _default: import('vue').DefineComponent<SkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
|
|
14
|
-
size:
|
|
15
|
-
type:
|
|
16
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
17
|
-
childAs: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
12
|
+
size: SkeletonSize;
|
|
13
|
+
type: SkeletonType;
|
|
18
14
|
inactive: boolean;
|
|
19
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
16
|
export default _default;
|
|
@@ -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-C1I-p4Yn.js");exports.Skeleton=e._sfc_main;exports.SkeletonSizes=e.SkeletonSizes;exports.SkeletonTypes=e.SkeletonTypes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("./class-CjZYGZDW.js"),m=require("class-variance-authority"),p=require("./options-B4iSAKol.js"),a=["avatar","input","button","paragraph","headline","list","base","custom","custom-items"],r=["2xsm","sm","md","lg"],k=e.defineComponent({...p.getComponentOptions("Skeleton"),__name:"Skeleton",props:{type:{default:"base"},size:{default:"md"},inactive:{type:Boolean,default:!1},class:{},itemClass:{},itemsCount:{}},setup(i){const s=n.getBemBlock("skeleton"),t=i,o=m.cva(s,{variants:{inactive:n.generateVariantClassList("inactive",s),size:n.generateVariantClassList(r,s),type:n.generateVariantClassList(a,s)}}),l=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(c,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o)(t),t.class])},[["paragraph","list","custom-items"].includes(c.type)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,u=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n.getBemElement)(e.unref(s),"item"),t.itemClass]),key:u},null,2))),128)):e.createCommentVNode("",!0)],2))}});exports.SkeletonSizes=r;exports.SkeletonTypes=a;exports._sfc_main=k;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as u, computed as d, createElementBlock as s, openBlock as a, normalizeClass as r, unref as n, createCommentVNode as f, Fragment as C, renderList as g } from "vue";
|
|
2
|
+
import { g as v, a as o, b as k } from "./class-DziTeW9B.js";
|
|
3
|
+
import { cva as y } from "class-variance-authority";
|
|
4
|
+
import { g as h } from "./options-JBqnVZUl.js";
|
|
5
|
+
const B = [
|
|
6
|
+
"avatar",
|
|
7
|
+
"input",
|
|
8
|
+
"button",
|
|
9
|
+
"paragraph",
|
|
10
|
+
"headline",
|
|
11
|
+
"list",
|
|
12
|
+
"base",
|
|
13
|
+
"custom",
|
|
14
|
+
"custom-items"
|
|
15
|
+
], S = ["2xsm", "sm", "md", "lg"], L = /* @__PURE__ */ u({
|
|
16
|
+
...h("Skeleton"),
|
|
17
|
+
__name: "Skeleton",
|
|
18
|
+
props: {
|
|
19
|
+
type: { default: "base" },
|
|
20
|
+
size: { default: "md" },
|
|
21
|
+
inactive: { type: Boolean, default: !1 },
|
|
22
|
+
class: {},
|
|
23
|
+
itemClass: {},
|
|
24
|
+
itemsCount: {}
|
|
25
|
+
},
|
|
26
|
+
setup(i) {
|
|
27
|
+
const t = v("skeleton"), e = i, m = y(t, {
|
|
28
|
+
variants: {
|
|
29
|
+
inactive: o("inactive", t),
|
|
30
|
+
size: o(S, t),
|
|
31
|
+
type: o(B, t)
|
|
32
|
+
}
|
|
33
|
+
}), l = d(() => {
|
|
34
|
+
if (e.type === "custom-items" && e.itemsCount) return e.itemsCount;
|
|
35
|
+
switch (e.type) {
|
|
36
|
+
case "paragraph":
|
|
37
|
+
return 4;
|
|
38
|
+
case "list":
|
|
39
|
+
return 2;
|
|
40
|
+
default:
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return (c, _) => (a(), s("div", {
|
|
45
|
+
class: r([n(m)(e), e.class])
|
|
46
|
+
}, [
|
|
47
|
+
["paragraph", "list", "custom-items"].includes(c.type) ? (a(!0), s(C, { key: 0 }, g(l.value, (p) => (a(), s("div", {
|
|
48
|
+
class: r([n(k)(n(t), "item"), e.itemClass]),
|
|
49
|
+
key: p
|
|
50
|
+
}, null, 2))), 128)) : f("", !0)
|
|
51
|
+
], 2));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
B as S,
|
|
56
|
+
L as _,
|
|
57
|
+
S as a
|
|
58
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { PrimitiveProps } from 'radix-vue';
|
|
2
1
|
import { Class } from '../types';
|
|
3
2
|
import { SpinnerSize } from './Spinner.model';
|
|
4
|
-
export interface SpinnerProps
|
|
3
|
+
export interface SpinnerProps {
|
|
5
4
|
size?: SpinnerSize;
|
|
6
5
|
class?: Class;
|
|
7
6
|
text?: string | boolean;
|
|
@@ -11,11 +10,17 @@ export interface SpinnerSlots {
|
|
|
11
10
|
default?: () => never;
|
|
12
11
|
icon?: () => never;
|
|
13
12
|
}
|
|
14
|
-
declare
|
|
15
|
-
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
slots: Readonly<SpinnerSlots> & SpinnerSlots;
|
|
15
|
+
refs: {};
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
|
|
20
|
+
size: SpinnerSize;
|
|
16
21
|
text: string | boolean;
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
24
|
export default _default;
|
|
20
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
26
|
new (): {
|
package/dist/Spinner/index.js.js
CHANGED
|
@@ -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-BP7P5xu8.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"),o=require("./class-CjZYGZDW.js"),C=require("class-variance-authority"),p=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),d=require("./options-B4iSAKol.js"),a=["3xsm","2xsm","sm"],f={key:0,width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},B=e.defineComponent({...d.getComponentOptions("Spinner"),__name:"Spinner",props:{size:{default:"sm"},class:{},text:{type:[String,Boolean],default:void 0},icon:{}},setup(l){const s=l,n=o.getBemBlock("spinner"),c=C.cva(n,{variants:{size:o.generateVariantClassList(a,n),icon:o.generateVariantClassList("icon",n)}}),i=e.useSlots(),u=e.computed(()=>!!s.text||!!i.default),m=e.computed(()=>s.text);return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)({size:t.size,icon:!!t.icon||!!i.icon}),s.class])},[e.createVNode(p._sfc_main,{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"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",f,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"]),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"text"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.value),1)])],2)):e.createCommentVNode("",!0)],2))}});exports.SpinnerSizes=a;exports._sfc_main=B;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as z, useSlots as S, computed as m, createElementBlock as n, openBlock as a, normalizeClass as i, unref as o, createVNode as x, createCommentVNode as c, withCtx as h, renderSlot as C, createElementVNode as p, createTextVNode as k, toDisplayString as y } from "vue";
|
|
2
|
+
import { g as N, a as u, b as d } from "./class-DziTeW9B.js";
|
|
3
|
+
import { cva as V } from "class-variance-authority";
|
|
4
|
+
import { _ as T } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
5
|
+
import { g as _ } from "./options-JBqnVZUl.js";
|
|
6
|
+
const w = ["3xsm", "2xsm", "sm"], E = {
|
|
7
|
+
key: 0,
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none"
|
|
12
|
+
}, O = /* @__PURE__ */ z({
|
|
13
|
+
..._("Spinner"),
|
|
14
|
+
__name: "Spinner",
|
|
15
|
+
props: {
|
|
16
|
+
size: { default: "sm" },
|
|
17
|
+
class: {},
|
|
18
|
+
text: { type: [String, Boolean], default: void 0 },
|
|
19
|
+
icon: {}
|
|
20
|
+
},
|
|
21
|
+
setup(f) {
|
|
22
|
+
const s = f, t = N("spinner"), g = V(t, {
|
|
23
|
+
variants: {
|
|
24
|
+
size: u(w, t),
|
|
25
|
+
icon: u("icon", t)
|
|
26
|
+
}
|
|
27
|
+
}), r = S(), v = m(() => !!s.text || !!r.default), B = m(() => s.text);
|
|
28
|
+
return (e, l) => (a(), n("div", {
|
|
29
|
+
class: i([
|
|
30
|
+
o(g)({ size: e.size, icon: !!e.icon || !!r.icon }),
|
|
31
|
+
s.class
|
|
32
|
+
])
|
|
33
|
+
}, [
|
|
34
|
+
x(T, {
|
|
35
|
+
class: i(o(d)(o(t), "icon")),
|
|
36
|
+
size: e.size,
|
|
37
|
+
icon: e.icon
|
|
38
|
+
}, {
|
|
39
|
+
default: h(() => [
|
|
40
|
+
C(e.$slots, "icon", {}, () => [
|
|
41
|
+
e.icon ? c("", !0) : (a(), n("svg", E, l[0] || (l[0] = [
|
|
42
|
+
p("path", {
|
|
43
|
+
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",
|
|
44
|
+
fill: "currentColor"
|
|
45
|
+
}, [
|
|
46
|
+
p("animateTransform", {
|
|
47
|
+
attributeName: "transform",
|
|
48
|
+
dur: "1s",
|
|
49
|
+
repeatCount: "indefinite",
|
|
50
|
+
type: "rotate",
|
|
51
|
+
values: "0 12 12;360 12 12"
|
|
52
|
+
})
|
|
53
|
+
], -1)
|
|
54
|
+
])))
|
|
55
|
+
])
|
|
56
|
+
]),
|
|
57
|
+
_: 3
|
|
58
|
+
}, 8, ["class", "size", "icon"]),
|
|
59
|
+
v.value ? (a(), n("div", {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: i(o(d)(o(t), "text"))
|
|
62
|
+
}, [
|
|
63
|
+
C(e.$slots, "default", {}, () => [
|
|
64
|
+
k(y(B.value), 1)
|
|
65
|
+
])
|
|
66
|
+
], 2)) : c("", !0)
|
|
67
|
+
], 2));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
w as S,
|
|
72
|
+
O as _
|
|
73
|
+
};
|