@pantograph/vue 0.0.2 → 0.0.3
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 +21 -0
- package/dist/ActionButton/index.cjs.js +1 -0
- package/dist/ActionButton/index.d.ts +1 -0
- package/dist/ActionButton/index.es.js +5 -0
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Drb30rfG.js +39 -0
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-dxthnFw4.js +1 -0
- package/dist/Avatar/Avatar.d.ts +48 -0
- package/dist/Avatar/Avatar.model.d.ts +11 -0
- package/dist/Avatar/index.cjs.js +1 -0
- package/dist/Avatar/index.d.ts +2 -0
- package/dist/Avatar/index.es.js +9 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BB-v9NHG.js +1 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BWeEmazM.js +187 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +21 -0
- package/dist/AvatarGroup/index.cjs.js +1 -0
- package/dist/AvatarGroup/index.d.ts +1 -0
- package/dist/AvatarGroup/index.es.js +6 -0
- package/dist/Badge/Badge.d.ts +20 -0
- package/dist/Badge/index.cjs.js +1 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Badge/index.es.js +5 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CXfdGkKV.js +33 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-sx-dXgFD.js +1 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +36 -0
- package/dist/Base/BaseBadge/BaseBadge.model.d.ts +8 -0
- package/dist/Base/BaseButton/BaseButton.d.ts +45 -0
- package/dist/Base/BaseButton/BaseButton.model.d.ts +8 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-B-uDLmB_.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-F50Tg7IQ.js +151 -0
- package/dist/Button/Button.d.ts +17 -0
- package/dist/Button/index.cjs.js +1 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/index.es.js +5 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-Crhe5sHQ.js +1 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-XrPBGQq8.js +36 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +45 -0
- package/dist/ButtonGroup/index.cjs.js +1 -0
- package/dist/ButtonGroup/index.d.ts +1 -0
- package/dist/ButtonGroup/index.es.js +7 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-DmShg2d-.js +1 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-jtE0Gtp9.js +51 -0
- package/dist/Checkbox/Checkbox.d.ts +43 -0
- package/dist/Checkbox/Checkbox.model.d.ts +18 -0
- package/dist/Checkbox/index.cjs.js +1 -1
- package/dist/Checkbox/index.d.ts +2 -0
- package/dist/Checkbox/index.es.js +5 -3
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BRJhkPIY.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-OQRmH46S.js +194 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +38 -0
- package/dist/CheckboxGroup/index.cjs.js +1 -0
- package/dist/CheckboxGroup/index.d.ts +1 -0
- package/dist/CheckboxGroup/index.es.js +6 -0
- package/dist/FloatButton/FloatButton.d.ts +19 -0
- package/dist/FloatButton/index.cjs.js +1 -0
- package/dist/FloatButton/index.d.ts +1 -0
- package/dist/FloatButton/index.es.js +5 -0
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-Bu9Ndwxm.js +1 -0
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CCfZsUxy.js +34 -0
- package/dist/GraphicalObject/GraphicalObject.d.ts +19 -0
- package/dist/GraphicalObject/index.cjs.js +1 -0
- package/dist/GraphicalObject/index.d.ts +1 -0
- package/dist/GraphicalObject/index.es.js +5 -0
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BhMxC00o.js +1 -0
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CcI-aIS4.js +32 -0
- package/dist/Icon/Icon.d.ts +29 -0
- package/dist/Icon/Icon.model.d.ts +2 -0
- package/dist/Icon/index.cjs.js +1 -1
- package/dist/Icon/index.d.ts +5 -0
- package/dist/Icon/index.es.js +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CB4CYuWH.js +47 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-CV1YvIs-.js +1 -0
- package/dist/IconButton/IconButton.d.ts +17 -0
- package/dist/IconButton/index.cjs.js +1 -0
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/IconButton/index.es.js +5 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-BTG_oQuF.js +34 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-C93zhnQU.js +1 -0
- package/dist/Indicator/Indicator.d.ts +20 -0
- package/dist/Indicator/index.cjs.js +1 -0
- package/dist/Indicator/index.d.ts +1 -0
- package/dist/Indicator/index.es.js +5 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-Z02asVPa.js +1 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-qIUYIdkm.js +33 -0
- package/dist/Logotype-Dark.svg +3 -0
- package/dist/Logotype-Light.svg +3 -0
- package/dist/Popover/Popover.d.ts +122 -0
- package/dist/Popover/Popover.model.d.ts +4 -0
- package/dist/Popover/index.cjs.js +1 -0
- package/dist/Popover/index.d.ts +2 -0
- package/dist/Popover/index.es.js +7 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-Jf0LVKU_.js +127 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-VH8LnLG9.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +20 -0
- package/dist/Skeleton/Skeleton.model.d.ts +4 -0
- package/dist/Skeleton/index.cjs.js +1 -1
- package/dist/Skeleton/index.d.ts +2 -0
- package/dist/Skeleton/index.es.js +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-B6-i0F1w.js +1 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-C56TOumA.js +65 -0
- package/dist/Spinner/Spinner.d.ts +31 -0
- package/dist/Spinner/Spinner.model.d.ts +2 -0
- package/dist/Spinner/index.cjs.js +1 -0
- package/dist/Spinner/index.d.ts +2 -0
- package/dist/Spinner/index.es.js +6 -0
- package/dist/Spinner.vue_vue_type_style_index_0_lang-B5byV1za.js +75 -0
- package/dist/Spinner.vue_vue_type_style_index_0_lang-Baaz0Dxb.js +1 -0
- package/dist/Tabs/Tab.model.d.ts +2 -0
- package/dist/Tabs/index.cjs.js +1 -0
- package/dist/Tabs/index.d.ts +1 -0
- package/dist/Tabs/index.es.js +4 -0
- package/dist/Tag/Tag.model.d.ts +4 -0
- package/dist/Tag/index.cjs.js +1 -0
- package/dist/Tag/index.d.ts +1 -0
- package/dist/Tag/index.es.js +21 -0
- package/dist/element-BSTINJi_.js +1 -0
- package/dist/element-Cf07a63h.js +22 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.es.js +60 -10
- package/dist/logo.svg +4 -0
- package/dist/omit-B0hUroNu.js +1 -0
- package/dist/omit-DU39EwuA.js +851 -0
- package/dist/options-B8SF1auT.js +1 -0
- package/dist/options-B8rT2fg0.js +30 -0
- package/dist/style/index.css +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/element.d.ts +4 -0
- package/dist/utils/index.cjs.js +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.es.js +7 -0
- package/dist/utils/options.d.ts +6 -0
- package/package.json +117 -17
- package/dist/Checkbox/index.css +0 -1
- package/dist/Checkbox.d.ts +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BLvqKFXl.js +0 -3
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DxEbn-Bk.js +0 -474
- package/dist/Icon/index.css +0 -1
- package/dist/Icon.d.ts +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-EkZalwcR.js +0 -50
- package/dist/Icon.vue_vue_type_style_index_0_lang-wnLu7tWh.js +0 -1
- package/dist/Primitive-CSm3KbEm.js +0 -1
- package/dist/Primitive-DVdcdPSP.js +0 -50
- package/dist/Skeleton/index.css +0 -1
- package/dist/Skeleton.d.ts +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-CDohV4V1.js +0 -70
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-CY6NdYvf.js +0 -1
- package/dist/class-BGw-1EB2.js +0 -29
- package/dist/class-vyfpYITq.js +0 -1
- package/dist/styles/index.css +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PopoverSizes: readonly ["sm", "md", "lg"];
|
|
2
|
+
export type PopoverSize = (typeof PopoverSizes)[number];
|
|
3
|
+
export declare const PopoverPlacements: readonly ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "right", "right-start", "right-end", "left", "left-start", "left-end"];
|
|
4
|
+
export type PopoverPlacement = (typeof PopoverPlacements)[number];
|
|
@@ -0,0 +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-VH8LnLG9.js");exports.Popover=e._sfc_main;exports.PopoverPlacements=e.PopoverPlacements;exports.PopoverSizes=e.PopoverSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { defineComponent as L, useSlots as T, computed as s, ref as b, openBlock as c, createBlock as f, resolveDynamicComponent as d, withCtx as g, normalizeClass as V, unref as z, renderSlot as B, normalizeProps as K, guardReactiveProps as N, withDirectives as U, mergeProps as j, vShow as q } from "vue";
|
|
2
|
+
import { g as G, a as I, b as O, c as J } from "./options-B8rT2fg0.js";
|
|
3
|
+
import { cva as Q } from "class-variance-authority";
|
|
4
|
+
import { useEmitAsProps as W, HoverCardRoot as X, PopoverRoot as Y, HoverCardTrigger as Z, PopoverTrigger as ee, HoverCardPortal as te, PopoverPortal as oe, HoverCardContent as re, PopoverContent as se } from "radix-vue";
|
|
5
|
+
import { f as ne, b as ae, a as ie } from "./element-Cf07a63h.js";
|
|
6
|
+
const le = ["sm", "md", "lg"], ge = [
|
|
7
|
+
"top",
|
|
8
|
+
"top-start",
|
|
9
|
+
"top-end",
|
|
10
|
+
"bottom",
|
|
11
|
+
"bottom-start",
|
|
12
|
+
"bottom-end",
|
|
13
|
+
"right",
|
|
14
|
+
"right-start",
|
|
15
|
+
"right-end",
|
|
16
|
+
"left",
|
|
17
|
+
"left-start",
|
|
18
|
+
"left-end"
|
|
19
|
+
], me = /* @__PURE__ */ L({
|
|
20
|
+
...G("Popover"),
|
|
21
|
+
__name: "Popover",
|
|
22
|
+
props: {
|
|
23
|
+
class: {},
|
|
24
|
+
containerClass: {},
|
|
25
|
+
trigger: { default: "hover" },
|
|
26
|
+
size: { default: "md" },
|
|
27
|
+
placement: { default: "bottom" },
|
|
28
|
+
to: {},
|
|
29
|
+
open: { type: Boolean, default: void 0 },
|
|
30
|
+
openDelay: {},
|
|
31
|
+
closeDelay: {},
|
|
32
|
+
disabled: { type: Boolean },
|
|
33
|
+
forceMount: { type: Boolean },
|
|
34
|
+
sticky: { default: "always" },
|
|
35
|
+
prioritizePosition: { type: Boolean, default: !0 },
|
|
36
|
+
sideOffset: {},
|
|
37
|
+
alignOffset: {}
|
|
38
|
+
},
|
|
39
|
+
emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
40
|
+
setup(k, { emit: _ }) {
|
|
41
|
+
const C = _, w = W(C), t = k, P = J("popover"), R = O(P, "trigger"), y = O(P, "content"), S = Q(y, {
|
|
42
|
+
variants: {
|
|
43
|
+
size: I(le, y)
|
|
44
|
+
}
|
|
45
|
+
}), m = T(), h = s(() => {
|
|
46
|
+
var o;
|
|
47
|
+
let e = ne((o = m.default) == null ? void 0 : o.call(m)) ?? null;
|
|
48
|
+
return e = e.length === 1 ? e[0] : e, e ? ae(e) && !ie(e) : !0;
|
|
49
|
+
}), D = b(t.open ?? !1), v = s({
|
|
50
|
+
get: () => t.open === void 0 ? D.value : t.open,
|
|
51
|
+
set: (e) => {
|
|
52
|
+
t.open === void 0 ? D.value = e : C("update:open", e);
|
|
53
|
+
}
|
|
54
|
+
}), a = b(), $ = s(() => {
|
|
55
|
+
var l, p, u, n;
|
|
56
|
+
const { to: e, disabled: o, forceMount: r } = t;
|
|
57
|
+
let i = e;
|
|
58
|
+
if (e instanceof Function) {
|
|
59
|
+
const x = ((p = (l = a.value) == null ? void 0 : l.$el) == null ? void 0 : p.nodeName) !== "#text" ? (u = a.value) == null ? void 0 : u.$el : (n = a.value) == null ? void 0 : n.$el.nextSibling;
|
|
60
|
+
i = e(x);
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
to: i,
|
|
64
|
+
disabled: o,
|
|
65
|
+
forceMount: r
|
|
66
|
+
};
|
|
67
|
+
}), A = s(() => t.trigger === "hover" ? X : Y), E = s(() => t.trigger === "hover" ? Z : ee), F = s(() => t.trigger === "hover" ? te : oe), H = s(() => t.trigger === "hover" ? re : se), M = s(() => {
|
|
68
|
+
var n;
|
|
69
|
+
const { sticky: e, prioritizePosition: o, placement: r, sideOffset: i, alignOffset: l } = t, [
|
|
70
|
+
p = "bottom",
|
|
71
|
+
u = "center"
|
|
72
|
+
] = ((n = r == null ? void 0 : r.split) == null ? void 0 : n.call(r, "-")) || ["bottom", "center"];
|
|
73
|
+
return {
|
|
74
|
+
...w,
|
|
75
|
+
sticky: e,
|
|
76
|
+
prioritizePosition: o,
|
|
77
|
+
side: p,
|
|
78
|
+
align: u,
|
|
79
|
+
sideOffset: i,
|
|
80
|
+
alignOffset: l
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
return (e, o) => (c(), f(d(A.value), {
|
|
84
|
+
key: h.value,
|
|
85
|
+
open: v.value,
|
|
86
|
+
"onUpdate:open": o[0] || (o[0] = (r) => v.value = r),
|
|
87
|
+
openDelay: e.openDelay,
|
|
88
|
+
closeDelay: e.closeDelay
|
|
89
|
+
}, {
|
|
90
|
+
default: g(() => [
|
|
91
|
+
(c(), f(d(E.value), {
|
|
92
|
+
asChild: h.value,
|
|
93
|
+
as: "span",
|
|
94
|
+
class: V([z(R), t.class]),
|
|
95
|
+
ref_key: "triggerRef",
|
|
96
|
+
ref: a
|
|
97
|
+
}, {
|
|
98
|
+
default: g(() => [
|
|
99
|
+
B(e.$slots, "default")
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 8, ["asChild", "class"])),
|
|
103
|
+
(c(), f(d(F.value), K(N($.value)), {
|
|
104
|
+
default: g(() => [
|
|
105
|
+
U((c(), f(d(H.value), j(M.value, {
|
|
106
|
+
class: [z(S)({ size: e.size }), t.containerClass]
|
|
107
|
+
}), {
|
|
108
|
+
default: g(() => [
|
|
109
|
+
B(e.$slots, "content")
|
|
110
|
+
]),
|
|
111
|
+
_: 3
|
|
112
|
+
}, 16, ["class"])), [
|
|
113
|
+
[q, v.value]
|
|
114
|
+
])
|
|
115
|
+
]),
|
|
116
|
+
_: 3
|
|
117
|
+
}, 16))
|
|
118
|
+
]),
|
|
119
|
+
_: 3
|
|
120
|
+
}, 40, ["open", "openDelay", "closeDelay"]));
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
le as P,
|
|
125
|
+
me as _,
|
|
126
|
+
ge as a
|
|
127
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./options-B8SF1auT.js"),R=require("class-variance-authority"),s=require("radix-vue"),v=require("./element-BSTINJi_.js"),B=["sm","md","lg"],$=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],F=e.defineComponent({...a.getComponentOptions("Popover"),__name:"Popover",props:{class:{},containerClass:{},trigger:{default:"hover"},size:{default:"md"},placement:{default:"bottom"},to:{},open:{type:Boolean,default:void 0},openDelay:{},closeDelay:{},disabled:{type:Boolean},forceMount:{type:Boolean},sticky:{default:"always"},prioritizePosition:{type:Boolean,default:!0},sideOffset:{},alignOffset:{}},emits:["update:open","escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(D,{emit:k}){const g=k,z=s.useEmitAsProps(g),o=D,C=a.getBemBlock("popover"),b=a.getBemElement(C,"trigger"),y=a.getBemElement(C,"content"),w=R.cva(y,{variants:{size:a.generateVariantClassList(B,y)}}),m=e.useSlots(),P=e.computed(()=>{var r;let t=v.filterEmpty((r=m.default)==null?void 0:r.call(m))??null;return t=t.length===1?t[0]:t,t?v.isValidElement(t)&&!v.isFragment(t):!0}),h=e.ref(o.open??!1),f=e.computed({get:()=>o.open===void 0?h.value:o.open,set:t=>{o.open===void 0?h.value=t:g("update:open",t)}}),i=e.ref(),O=e.computed(()=>{var p,u,d,l;const{to:t,disabled:r,forceMount:n}=o;let c=t;if(t instanceof Function){const E=((u=(p=i.value)==null?void 0:p.$el)==null?void 0:u.nodeName)!=="#text"?(d=i.value)==null?void 0:d.$el:(l=i.value)==null?void 0:l.$el.nextSibling;c=t(E)}return{to:c,disabled:r,forceMount:n}}),_=e.computed(()=>o.trigger==="hover"?s.HoverCardRoot:s.PopoverRoot),S=e.computed(()=>o.trigger==="hover"?s.HoverCardTrigger:s.PopoverTrigger),q=e.computed(()=>o.trigger==="hover"?s.HoverCardPortal:s.PopoverPortal),x=e.computed(()=>o.trigger==="hover"?s.HoverCardContent:s.PopoverContent),A=e.computed(()=>{var l;const{sticky:t,prioritizePosition:r,placement:n,sideOffset:c,alignOffset:p}=o,[u="bottom",d="center"]=((l=n==null?void 0:n.split)==null?void 0:l.call(n,"-"))||["bottom","center"];return{...z,sticky:t,prioritizePosition:r,side:u,align:d,sideOffset:c,alignOffset:p}});return(t,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value),{key:P.value,open:f.value,"onUpdate:open":r[0]||(r[0]=n=>f.value=n),openDelay:t.openDelay,closeDelay:t.closeDelay},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value),{asChild:P.value,as:"span",class:e.normalizeClass([e.unref(b),o.class]),ref_key:"triggerRef",ref:i},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["asChild","class"])),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q.value),e.normalizeProps(e.guardReactiveProps(O.value)),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.value),e.mergeProps(A.value,{class:[e.unref(w)({size:t.size}),o.containerClass]}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:3},16,["class"])),[[e.vShow,f.value]])]),_:3},16))]),_:3},40,["open","openDelay","closeDelay"]))}});exports.PopoverPlacements=$;exports.PopoverSizes=B;exports._sfc_main=F;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PrimitiveProps } from 'radix-vue';
|
|
2
|
+
import { SkeletonSize, SkeletonType } from './Skeleton.model.ts';
|
|
3
|
+
import { Class } from '../types';
|
|
4
|
+
export interface SkeletonProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
5
|
+
type?: SkeletonType;
|
|
6
|
+
size?: SkeletonSize;
|
|
7
|
+
childAs?: PrimitiveProps['as'];
|
|
8
|
+
inactive?: boolean;
|
|
9
|
+
class?: Class;
|
|
10
|
+
itemClass?: Class;
|
|
11
|
+
itemsCount?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import('vue').DefineComponent<SkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
|
|
14
|
+
size: SkeletonSize;
|
|
15
|
+
type: SkeletonType;
|
|
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;
|
|
18
|
+
inactive: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SkeletonTypes: readonly ["avatar", "input", "button", "paragraph", "headline", "list", "base", "custom", "custom-items"];
|
|
2
|
+
export type SkeletonType = (typeof SkeletonTypes)[number];
|
|
3
|
+
export declare const SkeletonSizes: readonly ["2xsm", "sm", "md", "lg"];
|
|
4
|
+
export type SkeletonSize = (typeof SkeletonSizes)[number];
|
|
@@ -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-B6-i0F1w.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"),i=require("radix-vue"),s=require("./options-B8SF1auT.js"),p=require("class-variance-authority"),r=["avatar","input","button","paragraph","headline","list","base","custom","custom-items"],o=["2xsm","sm","md","lg"],d=e.defineComponent({...s.getComponentOptions("Skeleton"),__name:"Skeleton",props:{type:{default:"base"},size:{default:"md"},childAs:{default:"div"},inactive:{type:Boolean,default:!1},class:{},itemClass:{},itemsCount:{},as:{default:"div"}},setup(l){const a=s.getBemBlock("skeleton"),t=l,c=p.cva(a,{variants:{inactive:s.generateVariantClassList("inactive",a),size:s.generateVariantClassList(o,a),type:s.generateVariantClassList(r,a)}}),u=e.computed(()=>{if(t.type==="custom-items"&&t.itemsCount)return t.itemsCount;switch(t.type){case"paragraph":return 4;case"list":return 2;default:return 0}});return(n,f)=>(e.openBlock(),e.createBlock(e.unref(i.Primitive),{as:n.as,class:e.normalizeClass([e.unref(c)(t),t.class])},{default:e.withCtx(()=>[["paragraph","list","custom-items"].includes(n.type)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,m=>(e.openBlock(),e.createBlock(e.unref(i.Primitive),{as:n.childAs,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(a),"item"),t.itemClass]),key:m},null,8,["as","class"]))),128)):e.createCommentVNode("",!0)]),_:1},8,["as","class"]))}});exports.SkeletonSizes=o;exports.SkeletonTypes=r;exports._sfc_main=d;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as d, computed as f, openBlock as n, createBlock as o, unref as s, normalizeClass as r, withCtx as C, createElementBlock as v, Fragment as g, renderList as k, createCommentVNode as h } from "vue";
|
|
2
|
+
import { Primitive as l } from "radix-vue";
|
|
3
|
+
import { g as y, a as i, b as B, c as S } from "./options-B8rT2fg0.js";
|
|
4
|
+
import { cva as _ } from "class-variance-authority";
|
|
5
|
+
const b = [
|
|
6
|
+
"avatar",
|
|
7
|
+
"input",
|
|
8
|
+
"button",
|
|
9
|
+
"paragraph",
|
|
10
|
+
"headline",
|
|
11
|
+
"list",
|
|
12
|
+
"base",
|
|
13
|
+
"custom",
|
|
14
|
+
"custom-items"
|
|
15
|
+
], z = ["2xsm", "sm", "md", "lg"], V = /* @__PURE__ */ d({
|
|
16
|
+
...y("Skeleton"),
|
|
17
|
+
__name: "Skeleton",
|
|
18
|
+
props: {
|
|
19
|
+
type: { default: "base" },
|
|
20
|
+
size: { default: "md" },
|
|
21
|
+
childAs: { default: "div" },
|
|
22
|
+
inactive: { type: Boolean, default: !1 },
|
|
23
|
+
class: {},
|
|
24
|
+
itemClass: {},
|
|
25
|
+
itemsCount: {},
|
|
26
|
+
as: { default: "div" }
|
|
27
|
+
},
|
|
28
|
+
setup(m) {
|
|
29
|
+
const t = S("skeleton"), e = m, c = _(t, {
|
|
30
|
+
variants: {
|
|
31
|
+
inactive: i("inactive", t),
|
|
32
|
+
size: i(z, t),
|
|
33
|
+
type: i(b, t)
|
|
34
|
+
}
|
|
35
|
+
}), u = f(() => {
|
|
36
|
+
if (e.type === "custom-items" && e.itemsCount) return e.itemsCount;
|
|
37
|
+
switch (e.type) {
|
|
38
|
+
case "paragraph":
|
|
39
|
+
return 4;
|
|
40
|
+
case "list":
|
|
41
|
+
return 2;
|
|
42
|
+
default:
|
|
43
|
+
return 0;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
return (a, w) => (n(), o(s(l), {
|
|
47
|
+
as: a.as,
|
|
48
|
+
class: r([s(c)(e), e.class])
|
|
49
|
+
}, {
|
|
50
|
+
default: C(() => [
|
|
51
|
+
["paragraph", "list", "custom-items"].includes(a.type) ? (n(!0), v(g, { key: 0 }, k(u.value, (p) => (n(), o(s(l), {
|
|
52
|
+
as: a.childAs,
|
|
53
|
+
class: r([s(B)(s(t), "item"), e.itemClass]),
|
|
54
|
+
key: p
|
|
55
|
+
}, null, 8, ["as", "class"]))), 128)) : h("", !0)
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["as", "class"]));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
b as S,
|
|
63
|
+
V as _,
|
|
64
|
+
z as a
|
|
65
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SpinnerSize } from './Spinner.model';
|
|
2
|
+
import { PrimitiveProps } from 'radix-vue';
|
|
3
|
+
import { Class } from '../types';
|
|
4
|
+
export interface SpinnerProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
5
|
+
size?: SpinnerSize;
|
|
6
|
+
class?: Class;
|
|
7
|
+
text?: string | boolean;
|
|
8
|
+
icon?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
icon?(_: {}): any;
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
|
|
21
|
+
size: SpinnerSize;
|
|
22
|
+
text: string | boolean;
|
|
23
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +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-Baaz0Dxb.js");exports.Spinner=e._sfc_main;exports.SpinnerSizes=e.SpinnerSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as c, openBlock as n, createBlock as m, unref as s, normalizeClass as i, withCtx as r, createVNode as k, renderSlot as C, createElementBlock as x, createElementVNode as p, createCommentVNode as d, createTextVNode as y, toDisplayString as V } from "vue";
|
|
2
|
+
import { g as _, a as N, b as u, c as T } from "./options-B8rT2fg0.js";
|
|
3
|
+
import { cva as w } from "class-variance-authority";
|
|
4
|
+
import { _ as E } from "./Icon.vue_vue_type_style_index_0_lang-CB4CYuWH.js";
|
|
5
|
+
import { Primitive as f } from "radix-vue";
|
|
6
|
+
const O = ["3xsm", "2xsm", "sm"], $ = {
|
|
7
|
+
key: 0,
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none"
|
|
12
|
+
}, Z = /* @__PURE__ */ h({
|
|
13
|
+
..._("Spinner"),
|
|
14
|
+
__name: "Spinner",
|
|
15
|
+
props: {
|
|
16
|
+
size: { default: "sm" },
|
|
17
|
+
class: {},
|
|
18
|
+
text: { type: [String, Boolean], default: void 0 },
|
|
19
|
+
icon: {},
|
|
20
|
+
as: { default: "div" }
|
|
21
|
+
},
|
|
22
|
+
setup(g) {
|
|
23
|
+
const t = g, o = T("spinner"), v = w(o, {
|
|
24
|
+
variants: {
|
|
25
|
+
size: N(O, o)
|
|
26
|
+
}
|
|
27
|
+
}), S = B(), a = c(() => !!t.text || !!S.default), z = c(() => typeof t.text == "boolean" ? "TODO get from i18n" : t.text);
|
|
28
|
+
return (e, l) => (n(), m(s(f), {
|
|
29
|
+
class: i([s(v)({ size: e.size }), t.class]),
|
|
30
|
+
key: a.value,
|
|
31
|
+
"as-child": !a.value,
|
|
32
|
+
as: e.as
|
|
33
|
+
}, {
|
|
34
|
+
default: r(() => [
|
|
35
|
+
k(E, {
|
|
36
|
+
class: i(s(u)(s(o), "icon")),
|
|
37
|
+
size: e.size,
|
|
38
|
+
icon: e.icon
|
|
39
|
+
}, {
|
|
40
|
+
default: r(() => [
|
|
41
|
+
C(e.$slots, "icon", {}, () => [
|
|
42
|
+
e.icon ? d("", !0) : (n(), x("svg", $, l[0] || (l[0] = [
|
|
43
|
+
p("g", null, [
|
|
44
|
+
p("path", {
|
|
45
|
+
id: "SpinnerLoadingCircle",
|
|
46
|
+
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",
|
|
47
|
+
fill: "currentColor"
|
|
48
|
+
})
|
|
49
|
+
], -1)
|
|
50
|
+
])))
|
|
51
|
+
])
|
|
52
|
+
]),
|
|
53
|
+
_: 3
|
|
54
|
+
}, 8, ["class", "size", "icon"]),
|
|
55
|
+
a.value ? (n(), m(s(f), {
|
|
56
|
+
key: 0,
|
|
57
|
+
as: e.as,
|
|
58
|
+
class: i(s(u)(s(o), "text"))
|
|
59
|
+
}, {
|
|
60
|
+
default: r(() => [
|
|
61
|
+
C(e.$slots, "default", {}, () => [
|
|
62
|
+
y(V(z.value), 1)
|
|
63
|
+
])
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 8, ["as", "class"])) : d("", !0)
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["class", "as-child", "as"]));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
O as S,
|
|
74
|
+
Z as _
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),s=require("./options-B8SF1auT.js"),d=require("class-variance-authority"),p=require("./Icon.vue_vue_type_style_index_0_lang-CV1YvIs-.js"),a=require("radix-vue"),l=["3xsm","2xsm","sm"],f={key:0,width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},v=e.defineComponent({...s.getComponentOptions("Spinner"),__name:"Spinner",props:{size:{default:"sm"},class:{},text:{type:[String,Boolean],default:void 0},icon:{},as:{default:"div"}},setup(c){const n=c,o=s.getBemBlock("spinner"),u=d.cva(o,{variants:{size:s.generateVariantClassList(l,o)}}),C=e.useSlots(),i=e.computed(()=>!!n.text||!!C.default),m=e.computed(()=>typeof n.text=="boolean"?"TODO get from i18n":n.text);return(t,r)=>(e.openBlock(),e.createBlock(e.unref(a.Primitive),{class:e.normalizeClass([e.unref(u)({size:t.size}),n.class]),key:i.value,"as-child":!i.value,as:t.as},{default:e.withCtx(()=>[e.createVNode(p._sfc_main,{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(o),"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("g",null,[e.createElementVNode("path",{id:"SpinnerLoadingCircle",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"})],-1)])))])]),_:3},8,["class","size","icon"]),i.value?(e.openBlock(),e.createBlock(e.unref(a.Primitive),{key:0,as:t.as,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(o),"text"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.value),1)])]),_:3},8,["as","class"])):e.createCommentVNode("",!0)]),_:3},8,["class","as-child","as"]))}});exports.SpinnerSizes=l;exports._sfc_main=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["sm","md","lg"];exports.TabSizes=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tab.model.ts';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const TagSizes: readonly ["sm", "xsm", "md"];
|
|
2
|
+
export type TagSize = (typeof TagSizes)[number];
|
|
3
|
+
export declare const TagColors: readonly ["primary", "blue", "red", "orange", "yellow", "lime", "violet", "gray", "teal", "green", "sky", "cyan", "pink", "amber", "fuchsia"];
|
|
4
|
+
export type TagColor = (typeof TagColors)[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["sm","xsm","md"],a=["primary","blue","red","orange","yellow","lime","violet","gray","teal","green","sky","cyan","pink","amber","fuchsia"];exports.TagColors=a;exports.TagSizes=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag.model.ts';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const e = ["sm", "xsm", "md"], a = [
|
|
2
|
+
"primary",
|
|
3
|
+
"blue",
|
|
4
|
+
"red",
|
|
5
|
+
"orange",
|
|
6
|
+
"yellow",
|
|
7
|
+
"lime",
|
|
8
|
+
"violet",
|
|
9
|
+
"gray",
|
|
10
|
+
"teal",
|
|
11
|
+
"green",
|
|
12
|
+
"sky",
|
|
13
|
+
"cyan",
|
|
14
|
+
"pink",
|
|
15
|
+
"amber",
|
|
16
|
+
"fuchsia"
|
|
17
|
+
];
|
|
18
|
+
export {
|
|
19
|
+
a as TagColors,
|
|
20
|
+
e as TagSizes
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue");function s(t){return t&&(t.type===e.Comment||t.type===e.Fragment&&t.children.length===0||t.type===e.Text&&t.children.trim()==="")}function y(t){return t.length===1&&t[0].type===e.Fragment}function i(t=[]){const n=[];return t.forEach(r=>{Array.isArray(r)?n.push(...r):(r==null?void 0:r.type)===e.Fragment?n.push(...i(r.children)):n.push(r)}),n.filter(r=>!s(r))}function p(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&typeof t.type!="symbol"}exports.filterEmpty=i;exports.isEmptyElement=s;exports.isFragment=y;exports.isValidElement=p;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Comment as e, Fragment as s, Text as i } from "vue";
|
|
2
|
+
function p(r) {
|
|
3
|
+
return r && (r.type === e || r.type === s && r.children.length === 0 || r.type === i && r.children.trim() === "");
|
|
4
|
+
}
|
|
5
|
+
function f(r) {
|
|
6
|
+
return r.length === 1 && r[0].type === s;
|
|
7
|
+
}
|
|
8
|
+
function y(r = []) {
|
|
9
|
+
const n = [];
|
|
10
|
+
return r.forEach((t) => {
|
|
11
|
+
Array.isArray(t) ? n.push(...t) : (t == null ? void 0 : t.type) === s ? n.push(...y(t.children)) : n.push(t);
|
|
12
|
+
}), n.filter((t) => !p(t));
|
|
13
|
+
}
|
|
14
|
+
function o(r) {
|
|
15
|
+
return Array.isArray(r) && r.length === 1 && (r = r[0]), r && r.__v_isVNode && typeof r.type != "symbol";
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
f as a,
|
|
19
|
+
o as b,
|
|
20
|
+
y as f,
|
|
21
|
+
p as i
|
|
22
|
+
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./ActionButton.vue_vue_type_script_setup_true_lang-dxthnFw4.js"),e=require("./Avatar.vue_vue_type_style_index_0_lang-BB-v9NHG.js"),p=require("./Badge.vue_vue_type_script_setup_true_lang-sx-dXgFD.js"),n=require("./omit-B0hUroNu.js"),t=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-DmShg2d-.js"),c=require("./Button.vue_vue_type_script_setup_true_lang-Crhe5sHQ.js"),_=require("./Checkbox.vue_vue_type_style_index_0_lang-BRJhkPIY.js"),v=require("./FloatButton.vue_vue_type_script_setup_true_lang-Bu9Ndwxm.js"),l=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-BhMxC00o.js");require("@iconify/vue");const i=require("./Icon.vue_vue_type_style_index_0_lang-CV1YvIs-.js"),y=require("./IconButton.vue_vue_type_script_setup_true_lang-C93zhnQU.js"),B=require("./Indicator.vue_vue_type_script_setup_true_lang-Z02asVPa.js"),r=require("./Popover.vue_vue_type_style_index_0_lang-VH8LnLG9.js"),u=require("./Skeleton.vue_vue_type_style_index_0_lang-B6-i0F1w.js"),s=require("./Spinner.vue_vue_type_style_index_0_lang-Baaz0Dxb.js"),o=require("./element-BSTINJi_.js");exports.ActionButton=a._sfc_main;exports.Avatar=e._sfc_main;exports.AvatarGroup=e._sfc_main$1;exports.AvatarShapes=e.AvatarShapes;exports.AvatarSizes=e.AvatarSizes;exports.AvatarStrokes=e.AvatarStrokes;exports.injectAvatarGroupContext=e.injectAvatarGroupContext;exports.provideAvatarGroupContext=e.provideAvatarGroupContext;exports.Badge=p._sfc_main;exports.BadgeColors=n.BadgeColors;exports.BadgeModes=n.BadgeModes;exports.BadgeSizes=n.BadgeSizes;exports.BadgeTypes=n.BadgeTypes;exports.ButtonColors=t.ButtonColors;exports.ButtonGroup=t._sfc_main;exports.ButtonSizes=t.ButtonSizes;exports.ButtonTypes=t.ButtonTypes;exports.ButtonVariants=t.ButtonVariants;exports.injectButtonGroupContext=t.injectButtonGroupContext;exports.provideButtonGroupContext=t.provideButtonGroupContext;exports.Button=c._sfc_main;exports.Checkbox=_._sfc_main;exports.CheckboxGroup=_._sfc_main$1;exports.CheckboxSizes=_.CheckboxSizes;exports.injectCheckboxGroupContext=_.injectCheckboxGroupContext;exports.provideCheckboxGroupContext=_.provideCheckboxGroupContext;exports.FloatButton=v._sfc_main;exports.GraphicalObject=l._sfc_main;exports.Icon=i._sfc_main;exports.IconSizes=i.IconSizes;exports.IconButton=y._sfc_main;exports.Indicator=B._sfc_main;exports.Popover=r._sfc_main;exports.PopoverPlacements=r.PopoverPlacements;exports.PopoverSizes=r.PopoverSizes;exports.Skeleton=u._sfc_main;exports.SkeletonSizes=u.SkeletonSizes;exports.SkeletonTypes=u.SkeletonTypes;exports.Spinner=s._sfc_main;exports.SpinnerSizes=s.SpinnerSizes;exports.filterEmpty=o.filterEmpty;exports.isEmptyElement=o.isEmptyElement;exports.isFragment=o.isFragment;exports.isValidElement=o.isValidElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
export { }
|
|
1
|
+
export { ActionButton, type ActionButtonProps } from './ActionButton/index.ts';
|
|
2
|
+
export { Avatar, AvatarStrokes, AvatarSizes, AvatarShapes, type AvatarStroke, type AvatarSize, type AvatarProps, type AvatarShape, } from './Avatar/index.ts';
|
|
3
|
+
export { AvatarGroup, type AvatarGroupProps, provideAvatarGroupContext, injectAvatarGroupContext, } from './AvatarGroup/index.ts';
|
|
4
|
+
export { Badge, type BadgeProps } from './Badge/index.ts';
|
|
5
|
+
export type { BaseBadgeProps } from './Base/BaseBadge/BaseBadge';
|
|
6
|
+
export { BadgeSizes, BadgeTypes, BadgeColors, BadgeModes, type BadgeMode, type BadgeSize, type BadgeType, type BadgeColor, } from './Base/BaseBadge/BaseBadge.model.ts';
|
|
7
|
+
export type { BaseButtonProps } from './Base/BaseButton/BaseButton';
|
|
8
|
+
export { ButtonVariants, ButtonTypes, ButtonColors, ButtonSizes, type ButtonVariant, type ButtonType, type ButtonColor, type ButtonSize, } from './Base/BaseButton/BaseButton.model.ts';
|
|
9
|
+
export { Button, type ButtonProps } from './Button/index.ts';
|
|
10
|
+
export { ButtonGroup, provideButtonGroupContext, injectButtonGroupContext, type ButtonGroupProps, } from './ButtonGroup/index.ts';
|
|
11
|
+
export { Checkbox, CheckboxSizes, type CheckboxProps, type CheckboxSize } from './Checkbox/index.ts';
|
|
12
|
+
export { CheckboxGroup, type CheckboxGroupProps, provideCheckboxGroupContext, injectCheckboxGroupContext, } from './CheckboxGroup/index.ts';
|
|
13
|
+
export { FloatButton, type FloatButtonProps } from './FloatButton/index.ts';
|
|
14
|
+
export { GraphicalObject, type GraphicalObjectProps } from './GraphicalObject/index.ts';
|
|
15
|
+
export { Icon, IconSizes, type IconProps, type IconSize } from './Icon/index.ts';
|
|
16
|
+
export { IconButton, type IconButtonProps } from './IconButton/index.ts';
|
|
17
|
+
export { Indicator, type IndicatorProps } from './Indicator/index.ts';
|
|
18
|
+
export { Popover, type PopoverProps, PopoverSizes, type PopoverSize, type PopoverPlacement, PopoverPlacements, } from './Popover/index.ts';
|
|
19
|
+
export { Skeleton, SkeletonSizes, SkeletonTypes, type SkeletonType, type SkeletonProps, type SkeletonSize, } from './Skeleton/index.ts';
|
|
20
|
+
export { Spinner, SpinnerSizes, type SpinnerProps, type SpinnerSize } from './Spinner/index.ts';
|
|
21
|
+
export * from './types/index.ts';
|
|
22
|
+
export * from './utils/index.ts';
|
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,63 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as e } from "./ActionButton.vue_vue_type_script_setup_true_lang-Drb30rfG.js";
|
|
2
|
+
import { _ as s, d as p, b as n, A as i, a as x, i as m, p as u } from "./Avatar.vue_vue_type_style_index_0_lang-BWeEmazM.js";
|
|
3
|
+
import { _ as f } from "./Badge.vue_vue_type_script_setup_true_lang-CXfdGkKV.js";
|
|
4
|
+
import { b as S, c as C, B as _, a as v } from "./omit-DU39EwuA.js";
|
|
5
|
+
import { b as l, _ as b, c as G, a as k, B as A, i as z, p as h } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-jtE0Gtp9.js";
|
|
6
|
+
import { _ as y } from "./Button.vue_vue_type_script_setup_true_lang-XrPBGQq8.js";
|
|
7
|
+
import { _ as P, b as j, C as E, i as T, p as F } from "./Checkbox.vue_vue_type_style_index_0_lang-OQRmH46S.js";
|
|
8
|
+
import { _ as M } from "./FloatButton.vue_vue_type_script_setup_true_lang-CCfZsUxy.js";
|
|
9
|
+
import { _ as q } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-CcI-aIS4.js";
|
|
3
10
|
import "@iconify/vue";
|
|
4
|
-
import { _ as
|
|
11
|
+
import { _ as D, I as H } from "./Icon.vue_vue_type_style_index_0_lang-CB4CYuWH.js";
|
|
12
|
+
import { _ as K } from "./IconButton.vue_vue_type_script_setup_true_lang-BTG_oQuF.js";
|
|
13
|
+
import { _ as N } from "./Indicator.vue_vue_type_script_setup_true_lang-qIUYIdkm.js";
|
|
14
|
+
import { _ as R, a as U, P as W } from "./Popover.vue_vue_type_style_index_0_lang-Jf0LVKU_.js";
|
|
15
|
+
import { _ as Y, a as Z, S as $ } from "./Skeleton.vue_vue_type_style_index_0_lang-C56TOumA.js";
|
|
16
|
+
import { _ as ao, S as to } from "./Spinner.vue_vue_type_style_index_0_lang-B5byV1za.js";
|
|
17
|
+
import { f as ro, i as so, a as po, b as no } from "./element-Cf07a63h.js";
|
|
5
18
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
e as ActionButton,
|
|
20
|
+
s as Avatar,
|
|
21
|
+
p as AvatarGroup,
|
|
22
|
+
n as AvatarShapes,
|
|
23
|
+
i as AvatarSizes,
|
|
24
|
+
x as AvatarStrokes,
|
|
25
|
+
f as Badge,
|
|
26
|
+
S as BadgeColors,
|
|
27
|
+
C as BadgeModes,
|
|
28
|
+
_ as BadgeSizes,
|
|
29
|
+
v as BadgeTypes,
|
|
30
|
+
y as Button,
|
|
31
|
+
l as ButtonColors,
|
|
32
|
+
b as ButtonGroup,
|
|
33
|
+
G as ButtonSizes,
|
|
34
|
+
k as ButtonTypes,
|
|
35
|
+
A as ButtonVariants,
|
|
36
|
+
P as Checkbox,
|
|
37
|
+
j as CheckboxGroup,
|
|
38
|
+
E as CheckboxSizes,
|
|
39
|
+
M as FloatButton,
|
|
40
|
+
q as GraphicalObject,
|
|
41
|
+
D as Icon,
|
|
42
|
+
K as IconButton,
|
|
43
|
+
H as IconSizes,
|
|
44
|
+
N as Indicator,
|
|
45
|
+
R as Popover,
|
|
46
|
+
U as PopoverPlacements,
|
|
47
|
+
W as PopoverSizes,
|
|
48
|
+
Y as Skeleton,
|
|
49
|
+
Z as SkeletonSizes,
|
|
50
|
+
$ as SkeletonTypes,
|
|
51
|
+
ao as Spinner,
|
|
52
|
+
to as SpinnerSizes,
|
|
53
|
+
ro as filterEmpty,
|
|
54
|
+
m as injectAvatarGroupContext,
|
|
55
|
+
z as injectButtonGroupContext,
|
|
56
|
+
T as injectCheckboxGroupContext,
|
|
57
|
+
so as isEmptyElement,
|
|
58
|
+
po as isFragment,
|
|
59
|
+
no as isValidElement,
|
|
60
|
+
u as provideAvatarGroupContext,
|
|
61
|
+
h as provideButtonGroupContext,
|
|
62
|
+
F as provideCheckboxGroupContext
|
|
13
63
|
};
|
package/dist/logo.svg
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="24" height="24" rx="6" fill="#4564E3"/>
|
|
3
|
+
<path d="M13.168 4C14.8493 4 16.1407 4.43333 17.042 5.3C17.9607 6.14933 18.42 7.38 18.42 8.992C18.42 10.864 17.8393 12.346 16.678 13.438C15.534 14.53 13.9567 15.076 11.946 15.076H10.1V15.466L10.23 20.718H7.5L7.682 15.7L7.5 4.026L13.168 4ZM12.726 12.996C13.6793 12.8053 14.3987 12.398 14.884 11.774C15.3867 11.1327 15.638 10.2833 15.638 9.226C15.638 8.186 15.3693 7.41467 14.832 6.912C14.312 6.40933 13.5147 6.14067 12.44 6.106L10.23 6.184L10.126 12.944L12.726 12.996Z" fill="white"/>
|
|
4
|
+
</svg>
|