@pantograph/vue 0.6.5 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/ActionButton.d.ts +2 -150
- 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/Avatar.d.ts +10 -17
- 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 +10 -2
- 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 -10
- 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 +13 -12
- package/dist/Base/BaseButton/BaseButton.d.ts +16 -12
- package/dist/Base/Primitive.d.ts +2 -2
- 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 +2 -150
- 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 +2 -2
- 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-BY73A9jA.js +216 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BezXV-lY.js +1 -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 +8 -7
- 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 +5 -13
- 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 +2 -150
- 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 -10
- 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 +5 -13
- 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 +2 -150
- 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/Image.d.ts +8 -16
- package/dist/Image/index.d.ts +1 -1
- package/dist/Image/index.js.js +8 -0
- package/dist/Image/index.umd.cjs.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-C1KxnvZB.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-f4IzwLoA.js +117 -0
- package/dist/IndentLevel/IndentLevel.d.ts +7 -15
- 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 -10
- 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 +5 -13
- 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-CMub1sQn.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-Da97vR8P.js +513 -0
- package/dist/MenuItem/MenuItem.d.ts +30 -32
- package/dist/MenuItem/MenuItemContent.d.ts +56 -0
- package/dist/MenuItem/index.d.ts +2 -2
- package/dist/MenuItem/index.js.js +6 -0
- package/dist/MenuItem/index.umd.cjs.js +1 -0
- package/dist/Popover/Popover.d.ts +13 -11
- 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/RadioGroup.d.ts +5 -13
- package/dist/RadioGroup/RadioGroupItem.d.ts +4 -1
- package/dist/RadioGroup/index.js.js +5 -0
- package/dist/RadioGroup/index.umd.cjs.js +1 -0
- package/dist/{RadioGroup/index.es.js → RadioGroup.vue_vue_type_script_setup_true_lang-CLCQycnR.js} +22 -22
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CYjzOKgl.js +1 -0
- package/dist/Shortcut/index.js.js +5 -0
- package/dist/Shortcut/index.umd.cjs.js +1 -0
- package/dist/{Shortcut/index.es.js → Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js} +10 -11
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js +1 -0
- 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 +7 -6
- 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 +18 -6
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js.js +6 -0
- package/dist/Switch/index.umd.cjs.js +1 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-C2cAawMN.js +1 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-DCrwOHDJ.js +103 -0
- package/dist/Tree/Tree.d.ts +3 -15
- package/dist/Tree/Tree.model.d.ts +4 -4
- package/dist/Tree/TreeNode.d.ts +2 -14
- package/dist/Tree/index.d.ts +1 -1
- package/dist/Tree/index.js.js +9 -0
- package/dist/Tree/index.umd.cjs.js +1 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-BfqlnQLT.js +1 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-CjXY2DNC.js +574 -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 +33 -22
- package/dist/index.js.js +109 -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 +80 -80
- package/dist/Avatar.vue_vue_type_style_index_0_lang-eeAtrd5L.js +0 -188
- package/dist/Avatar.vue_vue_type_style_index_0_lang-tRhdiXHB.js +0 -1
- 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 -117
- 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 -244
- package/dist/Popover.vue_vue_type_style_index_0_lang-BSe2YFuh.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-W2dXxEo7.js +0 -135
- package/dist/RadioGroup/index.cjs.js +0 -1
- package/dist/Shortcut/index.cjs.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-DW5QRtWO.js +0 -1
- package/dist/Switch/index.cjs.js +0 -1
- package/dist/Switch/index.es.js +0 -104
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckboxRootProps } from 'radix-vue';
|
|
2
2
|
import { CheckboxSize } from './Checkbox.model';
|
|
3
3
|
import { Class } from '../types';
|
|
4
|
-
export interface CheckboxProps extends Omit<CheckboxRootProps, 'asChild'> {
|
|
4
|
+
export interface CheckboxProps extends Omit<CheckboxRootProps, 'asChild' | 'value'> {
|
|
5
5
|
size?: CheckboxSize;
|
|
6
6
|
class?: Class;
|
|
7
7
|
rootCls?: Class;
|
|
@@ -9,24 +9,25 @@ export interface CheckboxProps extends Omit<CheckboxRootProps, 'asChild'> {
|
|
|
9
9
|
indeterminateCls?: Class;
|
|
10
10
|
labelCls?: Class;
|
|
11
11
|
label?: string;
|
|
12
|
+
value?: string;
|
|
12
13
|
id?: string;
|
|
13
14
|
valueAsLabel?: boolean;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
export interface CheckboxSlots {
|
|
17
|
+
default?: (props: object) => never;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
20
|
change: (value: boolean | "indeterminate") => any;
|
|
19
21
|
"update:checked": (value: boolean) => any;
|
|
20
22
|
}, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
21
23
|
onChange?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
22
24
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
23
25
|
}>, {
|
|
24
|
-
size:
|
|
26
|
+
size: "2xsm" | "xsm";
|
|
25
27
|
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
26
28
|
checked: boolean | "indeterminate";
|
|
27
29
|
valueAsLabel: boolean;
|
|
28
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<CheckboxSlots> & CheckboxSlots>;
|
|
30
31
|
export default _default;
|
|
31
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
33
|
new (): {
|
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Checkbox, type CheckboxProps, default } from './Checkbox';
|
|
2
|
-
export * from './Checkbox.model
|
|
2
|
+
export * from './Checkbox.model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, C as s, _ as r, u as C, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as e, C as s, _ as r, u as C, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-BY73A9jA.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Checkbox,
|
|
4
4
|
s as CheckboxSizes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-BezXV-lY.js");exports.Checkbox=e._sfc_main;exports.CheckboxSizes=e.CheckboxSizes;exports.default=e._sfc_main;exports.useColoredPantographCheckbox=e.useColoredPantographCheckbox;exports.useColoredPantographCheckboxGroup=e.useColoredPantographCheckboxGroup;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { defineComponent as S, computed as l, ref as G, watch as P, createBlock as C, openBlock as u, unref as s, normalizeProps as R, guardReactiveProps as T, withCtx as k, renderSlot as V, createElementBlock as z, createCommentVNode as w, Fragment as j, renderList as D, mergeProps as y, useSlots as F, createVNode as L, normalizeClass as $, createTextVNode as U, toDisplayString as H } from "vue";
|
|
2
|
+
import { createContext as J, Primitive as q, useId as K, CheckboxRoot as M, CheckboxIndicator as Q } from "radix-vue";
|
|
3
|
+
import { prefixTokens as i } from "@pantograph/tokens";
|
|
4
|
+
import { g as W, a as X, b as f } from "./class-DziTeW9B.js";
|
|
5
|
+
import { cva as Y } from "class-variance-authority";
|
|
6
|
+
import { g as A } from "./options-JBqnVZUl.js";
|
|
7
|
+
import { o as Z } from "./omit-Cxaoa8oo.js";
|
|
8
|
+
import { _ as ee } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
9
|
+
import { p as ae } from "./pick-DKW6-a-5.js";
|
|
10
|
+
const te = ["2xsm", "xsm"], he = (t) => ({
|
|
11
|
+
"--ptc-checkbox-bg": `var(--${i}-${t}-5)`,
|
|
12
|
+
"--ptc-checkbox-bg-hover": `var(--${i}-${t}-4)`,
|
|
13
|
+
"--ptc-checkbox-bg-focus": `var(--${i}-${t}-6)`,
|
|
14
|
+
"--ptc-checkbox-br-focus": `var(--${i}-${t}-6)`,
|
|
15
|
+
"--ptc-checkbox-bg-active": `var(--${i}-${t}-7)`
|
|
16
|
+
}), fe = (t) => ({
|
|
17
|
+
"--ptc-group-checkbox-bg": `var(--${i}-${t}-5)`,
|
|
18
|
+
"--ptc-group-checkbox-bg-hover": `var(--${i}-${t}-4)`,
|
|
19
|
+
"--ptc-group-checkbox-bg-focus": `var(--${i}-${t}-6)`,
|
|
20
|
+
"--ptc-group-checkbox-br-focus": `var(--${i}-${t}-6)`,
|
|
21
|
+
"--ptc-group-checkbox-bg-active": `var(--${i}-${t}-7)`
|
|
22
|
+
}), [se, oe] = J("CheckboxGroup"), ke = /* @__PURE__ */ S({
|
|
23
|
+
...A("CheckboxGroup"),
|
|
24
|
+
__name: "CheckboxGroup",
|
|
25
|
+
props: {
|
|
26
|
+
asChild: { type: Boolean, default: !1 },
|
|
27
|
+
as: {},
|
|
28
|
+
value: {},
|
|
29
|
+
size: {},
|
|
30
|
+
disabled: { type: Boolean },
|
|
31
|
+
name: {},
|
|
32
|
+
options: {}
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:value", "change"],
|
|
35
|
+
setup(t, { emit: g }) {
|
|
36
|
+
const c = g, e = t, o = l(() => ae(e, "asChild", "as")), d = G(e.value ?? []);
|
|
37
|
+
P(
|
|
38
|
+
() => e.value,
|
|
39
|
+
() => {
|
|
40
|
+
d.value = e.value ?? [];
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const x = l({
|
|
44
|
+
get() {
|
|
45
|
+
return e.value ? e.value : d.value;
|
|
46
|
+
},
|
|
47
|
+
set(r) {
|
|
48
|
+
e.value || (d.value = r), c("update:value", r), c("change", r);
|
|
49
|
+
}
|
|
50
|
+
}), v = l(() => e.size), m = l(() => e.disabled ? !0 : void 0);
|
|
51
|
+
return oe({
|
|
52
|
+
model: x,
|
|
53
|
+
size: v,
|
|
54
|
+
disabled: m
|
|
55
|
+
}), (r, B) => (u(), C(s(q), R(T(o.value)), {
|
|
56
|
+
default: k(() => [
|
|
57
|
+
V(r.$slots, "default", {}, () => {
|
|
58
|
+
var b;
|
|
59
|
+
return [
|
|
60
|
+
(b = r.options) != null && b.length ? (u(!0), z(j, { key: 0 }, D(r.options, (n) => (u(), C(ce, y({
|
|
61
|
+
key: n.value,
|
|
62
|
+
ref_for: !0
|
|
63
|
+
}, n), null, 16))), 128)) : w("", !0)
|
|
64
|
+
];
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 16));
|
|
69
|
+
}
|
|
70
|
+
}), le = ["for"], ce = /* @__PURE__ */ S({
|
|
71
|
+
...A("Checkbox"),
|
|
72
|
+
__name: "Checkbox",
|
|
73
|
+
props: {
|
|
74
|
+
size: { default: "xsm" },
|
|
75
|
+
class: {},
|
|
76
|
+
rootCls: {},
|
|
77
|
+
indicatorCls: {},
|
|
78
|
+
indeterminateCls: {},
|
|
79
|
+
labelCls: {},
|
|
80
|
+
label: {},
|
|
81
|
+
value: {},
|
|
82
|
+
id: {},
|
|
83
|
+
valueAsLabel: { type: Boolean, default: !0 },
|
|
84
|
+
defaultChecked: { type: Boolean },
|
|
85
|
+
checked: { type: [Boolean, String], default: void 0 },
|
|
86
|
+
disabled: { type: Boolean },
|
|
87
|
+
required: { type: Boolean },
|
|
88
|
+
name: {},
|
|
89
|
+
as: { default: "div" }
|
|
90
|
+
},
|
|
91
|
+
emits: ["update:checked", "change"],
|
|
92
|
+
setup(t, { emit: g }) {
|
|
93
|
+
const c = W("checkbox"), e = t, o = se({}), d = g, x = F(), v = G(e.checked ?? !1);
|
|
94
|
+
P(
|
|
95
|
+
() => e.checked,
|
|
96
|
+
() => {
|
|
97
|
+
v.value = e.checked ?? !1;
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
const m = l({
|
|
101
|
+
get() {
|
|
102
|
+
var a;
|
|
103
|
+
return (a = o.model) != null && a.value ? e.value !== void 0 && o.model.value.includes(e.value) : e.checked !== void 0 ? e.checked : v.value;
|
|
104
|
+
},
|
|
105
|
+
set(a) {
|
|
106
|
+
var p;
|
|
107
|
+
if ((p = o.model) != null && p.value) {
|
|
108
|
+
if (e.value !== void 0) {
|
|
109
|
+
const h = o.model.value.indexOf(e.value);
|
|
110
|
+
a && h === -1 ? o.model.value = [...o.model.value, e.value] : !a && h !== -1 && (o.model.value = o.model.value.filter(
|
|
111
|
+
(O) => O !== e.value
|
|
112
|
+
));
|
|
113
|
+
}
|
|
114
|
+
} else
|
|
115
|
+
e.checked === void 0 && (v.value = a), d("update:checked", a), d("change", a);
|
|
116
|
+
}
|
|
117
|
+
}), r = l(() => e.id ?? K(void 0, c)), B = l(() => {
|
|
118
|
+
var a;
|
|
119
|
+
return {
|
|
120
|
+
disabled: ((a = o.disabled) == null ? void 0 : a.value) ?? e.disabled,
|
|
121
|
+
...Z(
|
|
122
|
+
e,
|
|
123
|
+
"size",
|
|
124
|
+
"class",
|
|
125
|
+
"label",
|
|
126
|
+
"as",
|
|
127
|
+
"disabled",
|
|
128
|
+
"checked",
|
|
129
|
+
"id",
|
|
130
|
+
"rootCls",
|
|
131
|
+
"indicatorCls",
|
|
132
|
+
"indeterminateCls",
|
|
133
|
+
"labelCls"
|
|
134
|
+
)
|
|
135
|
+
};
|
|
136
|
+
}), b = Y(c, {
|
|
137
|
+
variants: {
|
|
138
|
+
size: X(te, c)
|
|
139
|
+
}
|
|
140
|
+
}), n = l(() => e.label || x.default || e.value && e.valueAsLabel), N = l(() => {
|
|
141
|
+
if (e.label) return e.label;
|
|
142
|
+
if (e.value && e.valueAsLabel) return e.value;
|
|
143
|
+
}), E = l(() => ({
|
|
144
|
+
asChild: !n.value,
|
|
145
|
+
as: e.as
|
|
146
|
+
})), _ = l(() => {
|
|
147
|
+
var a;
|
|
148
|
+
return ((a = o.size) == null ? void 0 : a.value) ?? e.size;
|
|
149
|
+
}), I = l(() => {
|
|
150
|
+
switch (_.value) {
|
|
151
|
+
case "xsm":
|
|
152
|
+
return "2xsm";
|
|
153
|
+
case "2xsm":
|
|
154
|
+
default:
|
|
155
|
+
return "3xsm";
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
return (a, p) => (u(), C(s(q), y({
|
|
159
|
+
key: n.value
|
|
160
|
+
}, E.value, {
|
|
161
|
+
class: [{ [s(f)(s(c), "root")]: n.value }, n.value ? a.rootCls : void 0]
|
|
162
|
+
}), {
|
|
163
|
+
default: k(() => [
|
|
164
|
+
L(s(M), y(B.value, {
|
|
165
|
+
checked: m.value,
|
|
166
|
+
"onUpdate:checked": p[0] || (p[0] = (h) => m.value = h),
|
|
167
|
+
id: r.value,
|
|
168
|
+
class: [s(b)({ size: _.value }), e.class]
|
|
169
|
+
}), {
|
|
170
|
+
default: k(() => [
|
|
171
|
+
L(s(Q), {
|
|
172
|
+
class: $([s(f)(s(c), "indicator"), a.indicatorCls]),
|
|
173
|
+
asChild: ""
|
|
174
|
+
}, {
|
|
175
|
+
default: k(() => [
|
|
176
|
+
e.checked != "indeterminate" ? (u(), C(ee, {
|
|
177
|
+
key: 0,
|
|
178
|
+
icon: "tabler:check",
|
|
179
|
+
size: I.value
|
|
180
|
+
}, null, 8, ["size"])) : (u(), z("span", {
|
|
181
|
+
key: 1,
|
|
182
|
+
class: $([s(f)(s(c), "indeterminate"), a.indeterminateCls])
|
|
183
|
+
}, null, 2))
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}, 8, ["class"])
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 16, ["checked", "id", "class"]),
|
|
190
|
+
n.value ? (u(), z("label", {
|
|
191
|
+
key: 0,
|
|
192
|
+
for: r.value,
|
|
193
|
+
class: $([s(f)(s(c), "label"), a.labelCls])
|
|
194
|
+
}, [
|
|
195
|
+
V(a.$slots, "default", {
|
|
196
|
+
checked: a.checked,
|
|
197
|
+
disabled: a.disabled,
|
|
198
|
+
required: a.required
|
|
199
|
+
}, () => [
|
|
200
|
+
U(H(N.value), 1)
|
|
201
|
+
])
|
|
202
|
+
], 10, le)) : w("", !0)
|
|
203
|
+
]),
|
|
204
|
+
_: 3
|
|
205
|
+
}, 16, ["class"]));
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
export {
|
|
209
|
+
te as C,
|
|
210
|
+
ce as _,
|
|
211
|
+
fe as a,
|
|
212
|
+
ke as b,
|
|
213
|
+
se as i,
|
|
214
|
+
oe as p,
|
|
215
|
+
he as u
|
|
216
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("radix-vue"),n=require("@pantograph/tokens"),u=require("./class-CjZYGZDW.js"),G=require("class-variance-authority"),g=require("./options-B4iSAKol.js"),S=require("./omit-1sFJ_mId.js"),V=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),w=require("./pick-DojrVogK.js"),B=["2xsm","xsm"],E=a=>({"--ptc-checkbox-bg":`var(--${n.prefixTokens}-${a}-5)`,"--ptc-checkbox-bg-hover":`var(--${n.prefixTokens}-${a}-4)`,"--ptc-checkbox-bg-focus":`var(--${n.prefixTokens}-${a}-6)`,"--ptc-checkbox-br-focus":`var(--${n.prefixTokens}-${a}-6)`,"--ptc-checkbox-bg-active":`var(--${n.prefixTokens}-${a}-7)`}),L=a=>({"--ptc-group-checkbox-bg":`var(--${n.prefixTokens}-${a}-5)`,"--ptc-group-checkbox-bg-hover":`var(--${n.prefixTokens}-${a}-4)`,"--ptc-group-checkbox-bg-focus":`var(--${n.prefixTokens}-${a}-6)`,"--ptc-group-checkbox-br-focus":`var(--${n.prefixTokens}-${a}-6)`,"--ptc-group-checkbox-bg-active":`var(--${n.prefixTokens}-${a}-7)`}),[$,_]=d.createContext("CheckboxGroup"),N=e.defineComponent({...g.getComponentOptions("CheckboxGroup"),__name:"CheckboxGroup",props:{asChild:{type:Boolean,default:!1},as:{},value:{},size:{},disabled:{type:Boolean},name:{},options:{}},emits:["update:value","change"],setup(a,{emit:h}){const c=h,o=a,s=e.computed(()=>w.pick(o,"asChild","as")),i=e.ref(o.value??[]);e.watch(()=>o.value,()=>{i.value=o.value??[]});const b=e.computed({get(){return o.value?o.value:i.value},set(l){o.value||(i.value=l),c("update:value",l),c("change",l)}}),p=e.computed(()=>o.size),k=e.computed(()=>o.disabled?!0:void 0);return _({model:b,size:p,disabled:k}),(l,C)=>(e.openBlock(),e.createBlock(e.unref(d.Primitive),e.normalizeProps(e.guardReactiveProps(s.value)),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},()=>{var m;return[(m=l.options)!=null&&m.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.options,r=>(e.openBlock(),e.createBlock(z,e.mergeProps({key:r.value,ref_for:!0},r),null,16))),128)):e.createCommentVNode("",!0)]})]),_:3},16))}}),A=["for"],z=e.defineComponent({...g.getComponentOptions("Checkbox"),__name:"Checkbox",props:{size:{default:"xsm"},class:{},rootCls:{},indicatorCls:{},indeterminateCls:{},labelCls:{},label:{},value:{},id:{},valueAsLabel:{type:Boolean,default:!0},defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},as:{default:"div"}},emits:["update:checked","change"],setup(a,{emit:h}){const c=u.getBemBlock("checkbox"),o=a,s=$({}),i=h,b=e.useSlots(),p=e.ref(o.checked??!1);e.watch(()=>o.checked,()=>{p.value=o.checked??!1});const k=e.computed({get(){var t;return(t=s.model)!=null&&t.value?o.value!==void 0&&s.model.value.includes(o.value):o.checked!==void 0?o.checked:p.value},set(t){var v;if((v=s.model)!=null&&v.value){if(o.value!==void 0){const f=s.model.value.indexOf(o.value);t&&f===-1?s.model.value=[...s.model.value,o.value]:!t&&f!==-1&&(s.model.value=s.model.value.filter(T=>T!==o.value))}}else o.checked===void 0&&(p.value=t),i("update:checked",t),i("change",t)}}),l=e.computed(()=>o.id??d.useId(void 0,c)),C=e.computed(()=>{var t;return{disabled:((t=s.disabled)==null?void 0:t.value)??o.disabled,...S.omit(o,"size","class","label","as","disabled","checked","id","rootCls","indicatorCls","indeterminateCls","labelCls")}}),m=G.cva(c,{variants:{size:u.generateVariantClassList(B,c)}}),r=e.computed(()=>o.label||b.default||o.value&&o.valueAsLabel),y=e.computed(()=>{if(o.label)return o.label;if(o.value&&o.valueAsLabel)return o.value}),q=e.computed(()=>({asChild:!r.value,as:o.as})),x=e.computed(()=>{var t;return((t=s.size)==null?void 0:t.value)??o.size}),P=e.computed(()=>{switch(x.value){case"xsm":return"2xsm";case"2xsm":default:return"3xsm"}});return(t,v)=>(e.openBlock(),e.createBlock(e.unref(d.Primitive),e.mergeProps({key:r.value},q.value,{class:[{[e.unref(u.getBemElement)(e.unref(c),"root")]:r.value},r.value?t.rootCls:void 0]}),{default:e.withCtx(()=>[e.createVNode(e.unref(d.CheckboxRoot),e.mergeProps(C.value,{checked:k.value,"onUpdate:checked":v[0]||(v[0]=f=>k.value=f),id:l.value,class:[e.unref(m)({size:x.value}),o.class]}),{default:e.withCtx(()=>[e.createVNode(e.unref(d.CheckboxIndicator),{class:e.normalizeClass([e.unref(u.getBemElement)(e.unref(c),"indicator"),t.indicatorCls]),asChild:""},{default:e.withCtx(()=>[o.checked!="indeterminate"?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,icon:"tabler:check",size:P.value},null,8,["size"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([e.unref(u.getBemElement)(e.unref(c),"indeterminate"),t.indeterminateCls])},null,2))]),_:1},8,["class"])]),_:1},16,["checked","id","class"]),r.value?(e.openBlock(),e.createElementBlock("label",{key:0,for:l.value,class:e.normalizeClass([e.unref(u.getBemElement)(e.unref(c),"label"),t.labelCls])},[e.renderSlot(t.$slots,"default",{checked:t.checked,disabled:t.disabled,required:t.required},()=>[e.createTextVNode(e.toDisplayString(y.value),1)])],10,A)):e.createCommentVNode("",!0)]),_:3},16,["class"]))}});exports.CheckboxSizes=B;exports._sfc_main=z;exports._sfc_main$1=N;exports.injectCheckboxGroupContext=$;exports.provideCheckboxGroupContext=_;exports.useColoredPantographCheckbox=E;exports.useColoredPantographCheckboxGroup=L;
|
|
@@ -6,17 +6,18 @@ export interface CheckboxGroupOption {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
label?: string;
|
|
8
8
|
}
|
|
9
|
+
type Value = (number | string)[];
|
|
9
10
|
export type CheckboxGroupProps = PrimitiveProps & {
|
|
10
|
-
value?:
|
|
11
|
+
value?: Value;
|
|
11
12
|
size?: CheckboxSize;
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
name?: string;
|
|
14
15
|
options?: string[] | number[] | CheckboxGroupOption[];
|
|
15
16
|
};
|
|
16
17
|
interface Context {
|
|
17
|
-
model
|
|
18
|
-
size
|
|
19
|
-
disabled
|
|
18
|
+
model?: Ref<Value>;
|
|
19
|
+
size?: ComputedRef<CheckboxGroupProps['size']>;
|
|
20
|
+
disabled?: ComputedRef<CheckboxGroupProps['disabled']>;
|
|
20
21
|
}
|
|
21
22
|
export declare const injectCheckboxGroupContext: <T extends Context | null | undefined = Context>(fallback?: T | undefined) => T extends null ? Context | null : Context, provideCheckboxGroupContext: (contextValue: Context) => Context;
|
|
22
23
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-BezXV-lY.js");exports.CheckboxGroup=e._sfc_main$1;exports.injectCheckboxGroupContext=e.injectCheckboxGroupContext;exports.provideCheckboxGroupContext=e.provideCheckboxGroupContext;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Config } from '@pantograph/tokens';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
|
+
import { Direction } from './utils';
|
|
4
|
+
export { type Direction };
|
|
3
5
|
interface _Config extends Config {
|
|
4
6
|
init?: boolean;
|
|
5
7
|
}
|
|
@@ -9,7 +11,6 @@ export interface ConfigProviderProps {
|
|
|
9
11
|
changeAbleDirectionElement?: string | HTMLElement | Ref<string | HTMLElement>;
|
|
10
12
|
changeAbleDarkElement?: string | HTMLElement | Ref<string | HTMLElement>;
|
|
11
13
|
}
|
|
12
|
-
export type Direction = 'ltr' | 'rtl';
|
|
13
14
|
interface Context {
|
|
14
15
|
theme: ComputedRef<Config>;
|
|
15
16
|
dir: Ref<Direction>;
|
|
@@ -22,17 +23,17 @@ declare const provideConfigContext: (contextValue: Context) => Context;
|
|
|
22
23
|
declare const injectConfigContext: () => Context;
|
|
23
24
|
export { provideConfigContext, injectConfigContext };
|
|
24
25
|
export declare const ConfigProvider: import('vue').DefineComponent<{
|
|
25
|
-
locale?:
|
|
26
|
+
locale?: object | "fa" | "en" | undefined;
|
|
26
27
|
theme?: _Config | undefined;
|
|
27
|
-
changeAbleDirectionElement?:
|
|
28
|
-
changeAbleDarkElement?:
|
|
28
|
+
changeAbleDirectionElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
|
|
29
|
+
changeAbleDarkElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
|
|
29
30
|
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
30
31
|
[key: string]: any;
|
|
31
32
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
32
|
-
locale?:
|
|
33
|
+
locale?: object | "fa" | "en" | undefined;
|
|
33
34
|
theme?: _Config | undefined;
|
|
34
|
-
changeAbleDirectionElement?:
|
|
35
|
-
changeAbleDarkElement?:
|
|
35
|
+
changeAbleDirectionElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
|
|
36
|
+
changeAbleDarkElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
|
|
36
37
|
}> & Readonly<{}>, {
|
|
37
38
|
changeAbleDirectionElement: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement>;
|
|
38
39
|
changeAbleDarkElement: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("radix-vue");require("@pantograph/tokens");require("vue");const e=require("../index-BCJFpT7y.js");exports.ConfigProvider=e.ConfigProvider;exports.default=e.ConfigProvider;exports.injectConfigContext=e.injectConfigContext;exports.provideConfigContext=e.provideConfigContext;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export declare const
|
|
2
|
+
export type Element = string | HTMLElement | Ref<string | HTMLElement>;
|
|
3
|
+
export type Direction = 'ltr' | 'rtl';
|
|
4
|
+
export declare const useDir: (changeAbleDirectionElement?: Element) => [Ref<Direction, Direction>, (value?: Direction) => void];
|
|
5
|
+
export declare const useDark: (changeAbleDirectionElement?: Element) => [Ref<boolean, boolean>, (dark?: boolean) => void];
|
|
@@ -5,20 +5,12 @@ export interface DividerProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
|
5
5
|
type?: DividerType;
|
|
6
6
|
class?: Class;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
slots: {
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
18
|
-
type: DividerType;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
9
|
+
type: "horizontal" | "vertical";
|
|
19
10
|
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
20
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
21
|
-
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
22
14
|
export default _default;
|
|
23
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
16
|
new (): {
|
package/dist/Divider/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Divider, type DividerProps, default } from './Divider';
|
|
2
|
-
export * from './Divider.model
|
|
2
|
+
export * from './Divider.model';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
1
|
+
import { defineComponent as i, createBlock as n, openBlock as p, unref as t, normalizeClass as l, withCtx as m, renderSlot as c } from "vue";
|
|
2
2
|
import { Primitive as f } from "radix-vue";
|
|
3
|
-
import { g as d,
|
|
3
|
+
import { g as d, a as v } from "./class-DziTeW9B.js";
|
|
4
4
|
import { cva as u } from "class-variance-authority";
|
|
5
5
|
import { g as C } from "./options-JBqnVZUl.js";
|
|
6
6
|
const g = ["horizontal", "vertical"], z = /* @__PURE__ */ i({
|
|
@@ -12,13 +12,13 @@ const g = ["horizontal", "vertical"], z = /* @__PURE__ */ i({
|
|
|
12
12
|
as: { default: "div" }
|
|
13
13
|
},
|
|
14
14
|
setup(a) {
|
|
15
|
-
const r = a, s =
|
|
15
|
+
const r = a, s = d("divider"), o = u(s, {
|
|
16
16
|
variants: {
|
|
17
|
-
type:
|
|
17
|
+
type: v(g, s)
|
|
18
18
|
// hasChild: generateVariantClassList('has-child', prefix),
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
return (e, y) => (
|
|
21
|
+
return (e, y) => (p(), n(t(f), {
|
|
22
22
|
as: e.as,
|
|
23
23
|
class: l([
|
|
24
24
|
t(o)({
|
|
@@ -3,158 +3,10 @@ export type FloatButtonProps = Partial<Pick<BaseButtonProps, 'as' | 'class' | 'c
|
|
|
3
3
|
type?: 'fill' | 'outline';
|
|
4
4
|
};
|
|
5
5
|
type FloatButtonSlots = Omit<BaseButtonSlots, 'preIcon' | 'badge' | 'postIcon' | 'default'>;
|
|
6
|
-
declare
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: Readonly<FloatButtonSlots> & FloatButtonSlots;
|
|
9
|
-
refs: {
|
|
10
|
-
buttonRef: ({
|
|
11
|
-
$: import('vue').ComponentInternalInstance;
|
|
12
|
-
$data: {};
|
|
13
|
-
$props: {
|
|
14
|
-
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
15
|
-
readonly text?: (string | number) | undefined;
|
|
16
|
-
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
17
|
-
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
18
|
-
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
19
|
-
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
20
|
-
readonly loading?: boolean | undefined;
|
|
21
|
-
readonly action?: boolean | undefined;
|
|
22
|
-
readonly active?: boolean | undefined;
|
|
23
|
-
readonly badgeText?: string | undefined;
|
|
24
|
-
readonly badgeIcon?: string | undefined;
|
|
25
|
-
readonly icon?: string | undefined;
|
|
26
|
-
readonly preIcon?: string | undefined;
|
|
27
|
-
readonly postIcon?: string | undefined;
|
|
28
|
-
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
29
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
30
|
-
$attrs: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
|
-
};
|
|
33
|
-
$refs: any;
|
|
34
|
-
$slots: Readonly<{
|
|
35
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
36
|
-
}>;
|
|
37
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
38
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
39
|
-
$host: Element | null;
|
|
40
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
41
|
-
$el: any;
|
|
42
|
-
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
43
|
-
focus(): void;
|
|
44
|
-
blur(): void;
|
|
45
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
46
|
-
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
47
|
-
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
48
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
49
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
50
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
51
|
-
created?: (() => void) | (() => void)[];
|
|
52
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
53
|
-
mounted?: (() => void) | (() => void)[];
|
|
54
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
55
|
-
updated?: (() => void) | (() => void)[];
|
|
56
|
-
activated?: (() => void) | (() => void)[];
|
|
57
|
-
deactivated?: (() => void) | (() => void)[];
|
|
58
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
59
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
60
|
-
destroyed?: (() => void) | (() => void)[];
|
|
61
|
-
unmounted?: (() => void) | (() => void)[];
|
|
62
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
63
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
64
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
65
|
-
};
|
|
66
|
-
$forceUpdate: () => void;
|
|
67
|
-
$nextTick: typeof import('vue').nextTick;
|
|
68
|
-
$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;
|
|
69
|
-
} & Readonly<{
|
|
70
|
-
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
71
|
-
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
72
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
73
|
-
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
74
|
-
focus(): void;
|
|
75
|
-
blur(): void;
|
|
76
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
77
|
-
$slots: any;
|
|
78
|
-
}) | null;
|
|
79
|
-
};
|
|
80
|
-
rootEl: any;
|
|
81
|
-
};
|
|
82
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
83
|
-
declare const __VLS_component: import('vue').DefineComponent<FloatButtonProps, {
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<FloatButtonProps, {
|
|
84
7
|
focus(): void;
|
|
85
8
|
blur(): void;
|
|
86
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FloatButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
87
|
-
buttonRef: ({
|
|
88
|
-
$: import('vue').ComponentInternalInstance;
|
|
89
|
-
$data: {};
|
|
90
|
-
$props: {
|
|
91
|
-
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
92
|
-
readonly text?: (string | number) | undefined;
|
|
93
|
-
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
94
|
-
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
95
|
-
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
96
|
-
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
97
|
-
readonly loading?: boolean | undefined;
|
|
98
|
-
readonly action?: boolean | undefined;
|
|
99
|
-
readonly active?: boolean | undefined;
|
|
100
|
-
readonly badgeText?: string | undefined;
|
|
101
|
-
readonly badgeIcon?: string | undefined;
|
|
102
|
-
readonly icon?: string | undefined;
|
|
103
|
-
readonly preIcon?: string | undefined;
|
|
104
|
-
readonly postIcon?: string | undefined;
|
|
105
|
-
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
106
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
107
|
-
$attrs: {
|
|
108
|
-
[x: string]: unknown;
|
|
109
|
-
};
|
|
110
|
-
$refs: any;
|
|
111
|
-
$slots: Readonly<{
|
|
112
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
113
|
-
}>;
|
|
114
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
115
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
116
|
-
$host: Element | null;
|
|
117
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
118
|
-
$el: any;
|
|
119
|
-
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
120
|
-
focus(): void;
|
|
121
|
-
blur(): void;
|
|
122
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
123
|
-
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
124
|
-
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
125
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
126
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
127
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
128
|
-
created?: (() => void) | (() => void)[];
|
|
129
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
130
|
-
mounted?: (() => void) | (() => void)[];
|
|
131
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
132
|
-
updated?: (() => void) | (() => void)[];
|
|
133
|
-
activated?: (() => void) | (() => void)[];
|
|
134
|
-
deactivated?: (() => void) | (() => void)[];
|
|
135
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
136
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
137
|
-
destroyed?: (() => void) | (() => void)[];
|
|
138
|
-
unmounted?: (() => void) | (() => void)[];
|
|
139
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
140
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
141
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
142
|
-
};
|
|
143
|
-
$forceUpdate: () => void;
|
|
144
|
-
$nextTick: typeof import('vue').nextTick;
|
|
145
|
-
$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;
|
|
146
|
-
} & Readonly<{
|
|
147
|
-
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
148
|
-
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
149
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
150
|
-
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
151
|
-
focus(): void;
|
|
152
|
-
blur(): void;
|
|
153
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
154
|
-
$slots: any;
|
|
155
|
-
}) | null;
|
|
156
|
-
}, any>;
|
|
157
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FloatButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<FloatButtonSlots> & FloatButtonSlots>;
|
|
158
10
|
export default _default;
|
|
159
11
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
160
12
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../FloatButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../FloatButton.vue_vue_type_script_setup_true_lang-CtPvptQe.js");exports.FloatButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),l=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./omit-1sFJ_mId.js"),p=require("./BaseButton.vue_vue_type_style_index_0_lang-BaS_JGCX.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("FloatButton",!1),__name:"FloatButton",props:{as:{},class:{},color:{},loading:{type:Boolean},size:{},icon:{},type:{}},setup(s,{expose:r}){const a=s,c=e.useAttrs(),i=e.computed(()=>({...l.omit(c,"variant","text","preIcon","postIcon","action","active","badgeText"),...a})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(p._sfc_main,e.mergeProps(i.value,{variant:"float",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|