@pantograph/vue 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +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-BLvqKFXl.js");exports.Checkbox=e._sfc_main;exports.CheckboxSizes=e.CheckboxSizes;exports.default=e._sfc_main;
@@ -0,0 +1 @@
1
+ .pc_checkbox{display:flex;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;outline-width:var(--pt-stroke-0, 0px);border-width:var(--pt-stroke-10, 1px);border-radius:var(--pt-roundness-sm, 4px);border-style:solid;padding:var(--pt-dimension-0, 0px);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:all}.pc_checkbox__root{--ptc-checkbox-bg: var(--pt-primary-fill);--ptc-checkbox-bg-hover: var(--pt-primary-fill-target);--ptc-checkbox-bg-focus: var(--pt-primary-fill-target);--ptc-checkbox-br-focus: var(--pt-primary-br-target);--ptc-checkbox-bg-active: var(--pt-primary-fill-trigger);--ptc-checkbox-shadow: var(--pt-focus-ring);display:flex;align-items:center}.pc_checkbox:focus{--pt-shadow-color: var(--ptc-checkbox-shadow);--ptu-shadow:0 0 0 var(--pt-stroke-30) var(--ptu-shadow-color, var(--pt-shadow-color, var(--pt-focus-ring)));box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow)}.pc_checkbox:disabled{cursor:not-allowed}.pc_checkbox:disabled~.pc_checkbox__label{cursor:not-allowed;color:var(--pt-gray-4, hsl(219 8% 73%))}.pc_checkbox[data-state=unchecked]{border-color:var(--pt-gray-2, hsl(220 6% 93%));background-color:var(--pt-gray-0, hsl(0 0 100%))}.pc_checkbox[data-state=unchecked]:not(:disabled):hover{border-color:var(--pt-gray-3, hsl(219 10% 86%));background-color:var(--pt-gray-1, hsl(240 7% 96%))}.pc_checkbox[data-state=unchecked]:not(:disabled):focus{background-color:var(--pt-gray-0, hsl(0 0 100%));border-color:var(--ptc-checkbox-br-focus)}.pc_checkbox[data-state=unchecked]:not(:disabled):active{border-color:var(--pt-gray-4, hsl(219 8% 73%));background-color:var(--pt-gray-2, hsl(220 6% 93%))}.pc_checkbox[data-state=checked]{color:var(--ptc-checkbox-bg);border-color:currentColor;background-color:currentColor}.pc_checkbox[data-state=checked] .pc_checkbox__indicator{color:var(--pt-primary-oncolor, hsl(0 0 100%))}.pc_checkbox[data-state=checked]:disabled{color:var(--pt-gray-2, hsl(220 6% 93%))}.pc_checkbox[data-state=checked]:disabled .pc_checkbox__indicator{color:var(--pt-gray-4, hsl(219 8% 73%))}.pc_checkbox[data-state=checked]:not(:disabled):hover{color:var(--ptc-checkbox-bg-hover)}.pc_checkbox[data-state=checked]:not(:disabled):hover .pc_checkbox__indicator{color:var(--pt-primary-oncolor, hsl(0 0 100%))}.pc_checkbox[data-state=checked]:not(:disabled):focus{color:var(--ptc-checkbox-bg-focus);border-color:var(--ptc-checkbox-br-focus)}.pc_checkbox[data-state=checked]:not(:disabled):focus .pc_checkbox__indicator{color:var(--pt-primary-oncolor, hsl(0 0 100%))}.pc_checkbox[data-state=checked]:not(:disabled):active{color:var(--ptc-checkbox-bg-active)}.pc_checkbox[data-state=checked]:not(:disabled):active .pc_checkbox__indicator{color:var(--pt-primary-oncolor, hsl(0 0 100%))}.pc_checkbox[data-state=indeterminate]{border-color:var(--pt-gray-2, hsl(220 6% 93%));background-color:transparent}.pc_checkbox[data-state=indeterminate]:not(:disabled) .pc_checkbox__indeterminate{background:var(--ptc-checkbox-bg)}.pc_checkbox[data-state=indeterminate]:not(:disabled):hover{border-color:var(--pt-gray-3, hsl(219 10% 86%))}.pc_checkbox[data-state=indeterminate]:not(:disabled):hover .pc_checkbox__indicator{background:var(--ptc-checkbox-bg-hover)}.pc_checkbox[data-state=indeterminate]:not(:disabled):focus{border-color:var(--ptc-checkbox-br-focus)}.pc_checkbox[data-state=indeterminate]:not(:disabled):focus .pc_checkbox__indicator{background:var(--ptc-checkbox-bg-focus)}.pc_checkbox[data-state=indeterminate]:not(:disabled):active{border-color:var(--pt-gray-4, hsl(219 8% 73%))}.pc_checkbox[data-state=indeterminate]:not(:disabled):active .pc_checkbox__indicator{background:var(--ptc-checkbox-bg-active)}.pc_checkbox[data-state=indeterminate]:disabled{border-color:var(--pt-gray-1, hsl(240 7% 96%))}.pc_checkbox[data-state=indeterminate]:disabled .pc_checkbox__indeterminate{background-color:var(--pt-gray-2, hsl(220 6% 93%))}.pc_checkbox__label{flex:1 1 0%;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pt-gray-8, hsl(219 4% 24%));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_checkbox__indeterminate{border-radius:2px}.pc_checkbox--xsm{width:var(--pt-size-xsm, 20px);height:var(--pt-size-xsm, 20px)}.pc_checkbox--xsm~.pc_checkbox__label{margin-inline-start:var(--pt-dimension-300, 6px)}.pc_checkbox--xsm .pc_checkbox__indeterminate{width:var(--pt-dimension-600, 12px);height:var(--pt-dimension-600, 12px)}.pc_checkbox--2xsm{width:var(--pt-size-2xsm, 16px);height:var(--pt-size-2xsm, 16px)}.pc_checkbox--2xsm~.pc_checkbox__label{margin-inline-start:var(--pt-dimension-200, 4px)}.pc_checkbox--2xsm .pc_checkbox__indeterminate{width:var(--pt-dimension-400, 8px);height:var(--pt-dimension-400, 8px)}
@@ -0,0 +1,6 @@
1
+ import { _ as o, C as s, _ as x } from "../Checkbox.vue_vue_type_style_index_0_lang-DxEbn-Bk.js";
2
+ export {
3
+ o as Checkbox,
4
+ s as CheckboxSizes,
5
+ x as default
6
+ };
@@ -0,0 +1 @@
1
+ export { }
@@ -0,0 +1,3 @@
1
+ "use strict";const e=require("vue"),I=require("./Icon.vue_vue_type_style_index_0_lang-wnLu7tWh.js"),k=require("./class-vyfpYITq.js"),T=require("class-variance-authority"),A=require("./Primitive-CSm3KbEm.js");function j(n,t){const a=`${n}Context`,r=Symbol(a);return[o=>{const i=e.inject(r,o);if(i||i===null)return i;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(n)?`one of the following components: ${n.join(", ")}`:`\`${n}\``}`)},o=>(e.provide(r,o),o)]}function S(n){return typeof n=="function"?n():e.unref(n)}const N=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const V=n=>typeof n<"u";function _(n){var t;const a=S(n);return(t=a==null?void 0:a.$el)!=null?t:a}const z=N?window:void 0;function q(n){return JSON.parse(JSON.stringify(n))}function F(n,t,a,r={}){var l,s,o;const{clone:i=!1,passive:h=!1,eventName:v,deep:u=!1,defaultValue:c,shouldEmit:y}=r,m=e.getCurrentInstance(),x=a||(m==null?void 0:m.emit)||((l=m==null?void 0:m.$emit)==null?void 0:l.bind(m))||((o=(s=m==null?void 0:m.proxy)==null?void 0:s.$emit)==null?void 0:o.bind(m==null?void 0:m.proxy));let E=v;E=E||`update:${t.toString()}`;const w=p=>i?typeof i=="function"?i(p):q(p):p,d=()=>V(n[t])?w(n[t]):c,f=p=>{y?y(p)&&x(E,p):x(E,p)};if(h){const p=d(),g=e.ref(p);let C=!1;return e.watch(()=>n[t],b=>{C||(C=!0,g.value=w(b),e.nextTick(()=>C=!1))}),e.watch(g,b=>{!C&&(b!==n[t]||u)&&f(b)},{deep:u}),g}else return e.computed({get(){return d()},set(p){f(p)}})}function R(n){const t=e.getCurrentInstance(),a=t==null?void 0:t.type.emits,r={};return a!=null&&a.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),a==null||a.forEach(l=>{r[e.toHandlerKey(e.camelize(l))]=(...s)=>n(l,...s)}),r}function U(n){return e.computed(()=>{var t;return S(n)?!!((t=_(n))!=null&&t.closest("form")):!0})}function D(n){const t=e.getCurrentInstance(),a=Object.keys((t==null?void 0:t.type.props)??{}).reduce((l,s)=>{const o=(t==null?void 0:t.type.props[s]).default;return o!==void 0&&(l[s]=o),l},{}),r=e.toRef(n);return e.computed(()=>{const l={},s=(t==null?void 0:t.vnode.props)??{};return Object.keys(s).forEach(o=>{l[e.camelize(o)]=s[o]}),Object.keys({...a,...l}).reduce((o,i)=>(r.value[i]!==void 0&&(o[i]=r.value[i]),o),{})})}function L(n,t){const a=D(n),r=t?R(t):{};return e.computed(()=>({...a.value,...r}))}function $(){const n=e.getCurrentInstance(),t=e.ref(),a=e.computed(()=>{var o,i;return["#text","#comment"].includes((o=t.value)==null?void 0:o.$el.nodeName)?(i=t.value)==null?void 0:i.$el.nextElementSibling:_(t)}),r=Object.assign({},n.exposed),l={};for(const o in n.props)Object.defineProperty(l,o,{enumerable:!0,configurable:!0,get:()=>n.props[o]});if(Object.keys(r).length>0)for(const o in r)Object.defineProperty(l,o,{enumerable:!0,configurable:!0,get:()=>r[o]});Object.defineProperty(l,"$el",{enumerable:!0,configurable:!0,get:()=>n.vnode.el}),n.exposed=l;function s(o){t.value=o,!(o instanceof Element||!o)&&(Object.defineProperty(l,"$el",{enumerable:!0,configurable:!0,get:()=>o.$el}),n.exposed=l)}return{forwardRef:s,currentRef:t,currentElement:a}}function K(n,t){const a=e.ref(n);function r(s){return t[a.value][s]??a.value}return{state:a,dispatch:s=>{a.value=r(s)}}}function P(n){return n==="indeterminate"}function O(n){return P(n)?"indeterminate":n?"checked":"unchecked"}const J=["value","checked","name","disabled","required"],[G,H]=j("CheckboxRoot"),W=e.defineComponent({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(n,{emit:t}){const a=n,r=t,{disabled:l}=e.toRefs(a),s=F(a,"checked",r,{defaultValue:a.defaultChecked,passive:a.checked===void 0}),{forwardRef:o,currentElement:i}=$(),h=U(i),v=e.computed(()=>{var u;return a.id&&i.value?(u=document.querySelector(`[for="${a.id}"]`))==null?void 0:u.innerText:void 0});return H({disabled:l,state:s}),(u,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(A.Primitive),e.mergeProps(u.$attrs,{id:u.id,ref:e.unref(o),role:"checkbox","as-child":a.asChild,as:u.as,type:u.as==="button"?"button":void 0,"aria-checked":e.unref(P)(e.unref(s))?"mixed":e.unref(s),"aria-required":!1,"aria-label":u.$attrs["aria-label"]||v.value,"data-state":e.unref(O)(e.unref(s)),"data-disabled":e.unref(l)?"":void 0,disabled:e.unref(l),onKeydown:e.withKeys(e.withModifiers(()=>{},["prevent"]),["enter"]),onClick:c[0]||(c[0]=y=>s.value=e.unref(P)(e.unref(s))?!0:!e.unref(s))}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default",{checked:e.unref(s)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-label","data-state","data-disabled","disabled","onKeydown"]),e.unref(h)?(e.openBlock(),e.createElementBlock("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:u.value,checked:!!e.unref(s),name:a.name,disabled:a.disabled,required:a.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,J)):e.createCommentVNode("",!0)],64))}});function X(n,t){var w;const a=e.ref({}),r=e.ref("none"),l=e.ref(n),s=n.value?"mounted":"unmounted";let o;const i=((w=t.value)==null?void 0:w.ownerDocument.defaultView)??z,{state:h,dispatch:v}=K(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=d=>{var f;if(N){const p=new CustomEvent(d,{bubbles:!1,cancelable:!1});(f=t.value)==null||f.dispatchEvent(p)}};e.watch(n,async(d,f)=>{var g;const p=f!==d;if(await e.nextTick(),p){const C=r.value,b=B(t.value);d?(v("MOUNT"),u("enter"),b==="none"&&u("after-enter")):b==="none"||((g=a.value)==null?void 0:g.display)==="none"?(v("UNMOUNT"),u("leave"),u("after-leave")):f&&C!==b?(v("ANIMATION_OUT"),u("leave")):(v("UNMOUNT"),u("after-leave"))}},{immediate:!0});const c=d=>{const f=B(t.value),p=f.includes(d.animationName),g=h.value==="mounted"?"enter":"leave";if(d.target===t.value&&p&&(u(`after-${g}`),v("ANIMATION_END"),!l.value)){const C=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=i==null?void 0:i.setTimeout(()=>{var b;((b=t.value)==null?void 0:b.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=C)})}d.target===t.value&&f==="none"&&v("ANIMATION_END")},y=d=>{d.target===t.value&&(r.value=B(t.value))},m=e.watch(t,(d,f)=>{d?(a.value=getComputedStyle(d),d.addEventListener("animationstart",y),d.addEventListener("animationcancel",c),d.addEventListener("animationend",c)):(v("ANIMATION_END"),i==null||i.clearTimeout(o),f==null||f.removeEventListener("animationstart",y),f==null||f.removeEventListener("animationcancel",c),f==null||f.removeEventListener("animationend",c))},{immediate:!0}),x=e.watch(h,()=>{const d=B(t.value);r.value=h.value==="mounted"?d:"none"});return e.onUnmounted(()=>{m(),x()}),{isPresent:e.computed(()=>["mounted","unmountSuspended"].includes(h.value))}}function B(n){return n&&getComputedStyle(n).animationName||"none"}const Y=e.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(n,{slots:t,expose:a}){var v;const{present:r,forceMount:l}=e.toRefs(n),s=e.ref(),{isPresent:o}=X(r,s);a({present:o});let i=t.default({present:o});i=A.renderSlotFragments(i||[]);const h=e.getCurrentInstance();if(i&&(i==null?void 0:i.length)>1){const u=(v=h==null?void 0:h.parent)!=null&&v.type.name?`<${h.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(c=>` - ${c}`).join(`
2
+ `)].join(`
3
+ `))}return()=>l.value||r.value||o.value?e.h(t.default({present:o})[0],{ref:u=>{const c=_(u);return typeof(c==null?void 0:c.hasAttribute)>"u"||(c!=null&&c.hasAttribute("data-radix-popper-content-wrapper")?s.value=c.firstElementChild:s.value=c),c}}):null}}),Q=e.defineComponent({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(n){const{forwardRef:t}=$(),a=G();return(r,l)=>(e.openBlock(),e.createBlock(e.unref(Y),{present:r.forceMount||e.unref(P)(e.unref(a).state.value)||e.unref(a).state.value===!0},{default:e.withCtx(()=>[e.createVNode(e.unref(A.Primitive),e.mergeProps({ref:e.unref(t),"data-state":e.unref(O)(e.unref(a).state.value),"data-disabled":e.unref(a).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":r.asChild,as:r.as},r.$attrs),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),M=["2xsm","xsm"],Z=e.defineComponent({__name:"Checkbox",props:{size:{default:"xsm"},class:{},labelAs:{default:"span"},label:{},color:{},defaultChecked:{type:Boolean},checked:{type:[Boolean,String]},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},id:{},as:{default:"label"}},emits:["update:checked"],setup(n,{emit:t}){const a=k.getBemBlock("checkbox"),r=n,l=t,s=e.useSlots(),o=e.computed(()=>{const{size:m,class:x,labelAs:E,label:w,color:d,as:f,...p}=r;return p}),i=L(o,l),h=T.cva(a,{variants:{size:k.generateVariantClassList(M,a)}}),v=e.computed(()=>r.label||s.default),u=e.computed(()=>({asChild:!v.value,as:r.labelAs})),c=e.computed(()=>({asChild:!v.value,as:r.as})),y=e.computed(()=>{switch(r.size){case"xsm":return"2xsm";case"2xsm":default:return"3xsm"}});return(m,x)=>(e.openBlock(),e.createBlock(e.unref(A.Primitive),e.mergeProps(c.value,{class:e.unref(k.normCls)(e.unref(k.getBemElement)(e.unref(a),"root"),r.class)}),{default:e.withCtx(()=>[e.createVNode(e.unref(W),e.mergeProps(e.unref(i),{class:e.unref(h)({size:m.size}),style:{color:m.color}}),{default:e.withCtx(()=>[e.createVNode(e.unref(Q),{class:e.normalizeClass(e.unref(k.getBemElement)(e.unref(a),"indicator")),asChild:""},{default:e.withCtx(()=>[r.checked!="indeterminate"?(e.openBlock(),e.createBlock(I._sfc_main,{key:0,icon:"tabler:check",class:e.normalizeClass(e.unref(k.getBemElement)(e.unref(a),"icon")),"flip-on-dir":"rtl",size:y.value},null,8,["class","size"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(k.getBemElement)(e.unref(a),"indeterminate"))},null,2))]),_:1},8,["class"])]),_:1},16,["class","style"]),e.createVNode(e.unref(A.Primitive),e.mergeProps(u.value,{class:e.unref(k.getBemElement)(e.unref(a),"label")}),{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{checked:m.checked,disabled:m.disabled,required:m.required},()=>[e.createTextVNode(e.toDisplayString(m.label),1)])]),_:3},16,["class"])]),_:3},16,["class"]))}});exports.CheckboxSizes=M;exports._sfc_main=Z;
@@ -0,0 +1,474 @@
1
+ import { inject as W, provide as X, unref as s, getCurrentInstance as M, ref as x, watch as N, nextTick as q, computed as b, toHandlerKey as Y, camelize as D, toRef as Q, defineComponent as I, toRefs as L, openBlock as w, createElementBlock as R, Fragment as Z, createVNode as O, mergeProps as _, withKeys as ee, withModifiers as te, withCtx as E, renderSlot as z, createCommentVNode as ne, onUnmounted as ae, h as oe, createBlock as U, useSlots as se, normalizeClass as F, createTextVNode as ie, toDisplayString as re } from "vue";
2
+ import { _ as le } from "./Icon.vue_vue_type_style_index_0_lang-EkZalwcR.js";
3
+ import { g as ce, n as ue, c as P, a as de } from "./class-BGw-1EB2.js";
4
+ import { cva as fe } from "class-variance-authority";
5
+ import { P as T, r as me } from "./Primitive-DVdcdPSP.js";
6
+ function pe(t, e) {
7
+ const n = `${t}Context`, o = Symbol(n);
8
+ return [(a) => {
9
+ const r = W(o, a);
10
+ if (r || r === null)
11
+ return r;
12
+ throw new Error(
13
+ `Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(t) ? `one of the following components: ${t.join(
14
+ ", "
15
+ )}` : `\`${t}\``}`
16
+ );
17
+ }, (a) => (X(o, a), a)];
18
+ }
19
+ function K(t) {
20
+ return typeof t == "function" ? t() : s(t);
21
+ }
22
+ const J = typeof window < "u" && typeof document < "u";
23
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
24
+ const ve = (t) => typeof t < "u";
25
+ function V(t) {
26
+ var e;
27
+ const n = K(t);
28
+ return (e = n == null ? void 0 : n.$el) != null ? e : n;
29
+ }
30
+ const he = J ? window : void 0;
31
+ function be(t) {
32
+ return JSON.parse(JSON.stringify(t));
33
+ }
34
+ function ye(t, e, n, o = {}) {
35
+ var l, i, a;
36
+ const {
37
+ clone: r = !1,
38
+ passive: h = !1,
39
+ eventName: v,
40
+ deep: c = !1,
41
+ defaultValue: u,
42
+ shouldEmit: g
43
+ } = o, m = M(), A = n || (m == null ? void 0 : m.emit) || ((l = m == null ? void 0 : m.$emit) == null ? void 0 : l.bind(m)) || ((a = (i = m == null ? void 0 : m.proxy) == null ? void 0 : i.$emit) == null ? void 0 : a.bind(m == null ? void 0 : m.proxy));
44
+ let S = v;
45
+ S = S || `update:${e.toString()}`;
46
+ const $ = (p) => r ? typeof r == "function" ? r(p) : be(p) : p, d = () => ve(t[e]) ? $(t[e]) : u, f = (p) => {
47
+ g ? g(p) && A(S, p) : A(S, p);
48
+ };
49
+ if (h) {
50
+ const p = d(), k = x(p);
51
+ let C = !1;
52
+ return N(
53
+ () => t[e],
54
+ (y) => {
55
+ C || (C = !0, k.value = $(y), q(() => C = !1));
56
+ }
57
+ ), N(
58
+ k,
59
+ (y) => {
60
+ !C && (y !== t[e] || c) && f(y);
61
+ },
62
+ { deep: c }
63
+ ), k;
64
+ } else
65
+ return b({
66
+ get() {
67
+ return d();
68
+ },
69
+ set(p) {
70
+ f(p);
71
+ }
72
+ });
73
+ }
74
+ function ge(t) {
75
+ const e = M(), n = e == null ? void 0 : e.type.emits, o = {};
76
+ return n != null && n.length || console.warn(
77
+ `No emitted event found. Please check component: ${e == null ? void 0 : e.type.__name}`
78
+ ), n == null || n.forEach((l) => {
79
+ o[Y(D(l))] = (...i) => t(l, ...i);
80
+ }), o;
81
+ }
82
+ function ke(t) {
83
+ return b(() => {
84
+ var e;
85
+ return K(t) ? !!((e = V(t)) != null && e.closest("form")) : !0;
86
+ });
87
+ }
88
+ function Ce(t) {
89
+ const e = M(), n = Object.keys((e == null ? void 0 : e.type.props) ?? {}).reduce((l, i) => {
90
+ const a = (e == null ? void 0 : e.type.props[i]).default;
91
+ return a !== void 0 && (l[i] = a), l;
92
+ }, {}), o = Q(t);
93
+ return b(() => {
94
+ const l = {}, i = (e == null ? void 0 : e.vnode.props) ?? {};
95
+ return Object.keys(i).forEach((a) => {
96
+ l[D(a)] = i[a];
97
+ }), Object.keys({ ...n, ...l }).reduce((a, r) => (o.value[r] !== void 0 && (a[r] = o.value[r]), a), {});
98
+ });
99
+ }
100
+ function Ee(t, e) {
101
+ const n = Ce(t), o = e ? ge(e) : {};
102
+ return b(() => ({
103
+ ...n.value,
104
+ ...o
105
+ }));
106
+ }
107
+ function G() {
108
+ const t = M(), e = x(), n = b(() => {
109
+ var a, r;
110
+ return ["#text", "#comment"].includes((a = e.value) == null ? void 0 : a.$el.nodeName) ? (r = e.value) == null ? void 0 : r.$el.nextElementSibling : V(e);
111
+ }), o = Object.assign({}, t.exposed), l = {};
112
+ for (const a in t.props)
113
+ Object.defineProperty(l, a, {
114
+ enumerable: !0,
115
+ configurable: !0,
116
+ get: () => t.props[a]
117
+ });
118
+ if (Object.keys(o).length > 0)
119
+ for (const a in o)
120
+ Object.defineProperty(l, a, {
121
+ enumerable: !0,
122
+ configurable: !0,
123
+ get: () => o[a]
124
+ });
125
+ Object.defineProperty(l, "$el", {
126
+ enumerable: !0,
127
+ configurable: !0,
128
+ get: () => t.vnode.el
129
+ }), t.exposed = l;
130
+ function i(a) {
131
+ e.value = a, !(a instanceof Element || !a) && (Object.defineProperty(l, "$el", {
132
+ enumerable: !0,
133
+ configurable: !0,
134
+ get: () => a.$el
135
+ }), t.exposed = l);
136
+ }
137
+ return { forwardRef: i, currentRef: e, currentElement: n };
138
+ }
139
+ function xe(t, e) {
140
+ const n = x(t);
141
+ function o(i) {
142
+ return e[n.value][i] ?? n.value;
143
+ }
144
+ return {
145
+ state: n,
146
+ dispatch: (i) => {
147
+ n.value = o(i);
148
+ }
149
+ };
150
+ }
151
+ function j(t) {
152
+ return t === "indeterminate";
153
+ }
154
+ function H(t) {
155
+ return j(t) ? "indeterminate" : t ? "checked" : "unchecked";
156
+ }
157
+ const Ae = ["value", "checked", "name", "disabled", "required"], [Se, $e] = pe("CheckboxRoot"), we = /* @__PURE__ */ I({
158
+ inheritAttrs: !1,
159
+ __name: "CheckboxRoot",
160
+ props: {
161
+ defaultChecked: { type: Boolean },
162
+ checked: { type: [Boolean, String], default: void 0 },
163
+ disabled: { type: Boolean },
164
+ required: { type: Boolean },
165
+ name: {},
166
+ value: { default: "on" },
167
+ id: {},
168
+ asChild: { type: Boolean },
169
+ as: { default: "button" }
170
+ },
171
+ emits: ["update:checked"],
172
+ setup(t, { emit: e }) {
173
+ const n = t, o = e, { disabled: l } = L(n), i = ye(n, "checked", o, {
174
+ defaultValue: n.defaultChecked,
175
+ passive: n.checked === void 0
176
+ }), { forwardRef: a, currentElement: r } = G(), h = ke(r), v = b(() => {
177
+ var c;
178
+ return n.id && r.value ? (c = document.querySelector(`[for="${n.id}"]`)) == null ? void 0 : c.innerText : void 0;
179
+ });
180
+ return $e({
181
+ disabled: l,
182
+ state: i
183
+ }), (c, u) => (w(), R(Z, null, [
184
+ O(s(T), _(c.$attrs, {
185
+ id: c.id,
186
+ ref: s(a),
187
+ role: "checkbox",
188
+ "as-child": n.asChild,
189
+ as: c.as,
190
+ type: c.as === "button" ? "button" : void 0,
191
+ "aria-checked": s(j)(s(i)) ? "mixed" : s(i),
192
+ "aria-required": !1,
193
+ "aria-label": c.$attrs["aria-label"] || v.value,
194
+ "data-state": s(H)(s(i)),
195
+ "data-disabled": s(l) ? "" : void 0,
196
+ disabled: s(l),
197
+ onKeydown: ee(te(() => {
198
+ }, ["prevent"]), ["enter"]),
199
+ onClick: u[0] || (u[0] = (g) => i.value = s(j)(s(i)) ? !0 : !s(i))
200
+ }), {
201
+ default: E(() => [
202
+ z(c.$slots, "default", { checked: s(i) })
203
+ ]),
204
+ _: 3
205
+ }, 16, ["id", "as-child", "as", "type", "aria-checked", "aria-label", "data-state", "data-disabled", "disabled", "onKeydown"]),
206
+ s(h) ? (w(), R("input", {
207
+ key: 0,
208
+ type: "checkbox",
209
+ tabindex: "-1",
210
+ "aria-hidden": "true",
211
+ value: c.value,
212
+ checked: !!s(i),
213
+ name: n.name,
214
+ disabled: n.disabled,
215
+ required: n.required,
216
+ style: {
217
+ transform: "translateX(-100%)",
218
+ position: "absolute",
219
+ pointerEvents: "none",
220
+ opacity: 0,
221
+ margin: 0
222
+ }
223
+ }, null, 8, Ae)) : ne("", !0)
224
+ ], 64));
225
+ }
226
+ });
227
+ function Pe(t, e) {
228
+ var $;
229
+ const n = x({}), o = x("none"), l = x(t), i = t.value ? "mounted" : "unmounted";
230
+ let a;
231
+ const r = (($ = e.value) == null ? void 0 : $.ownerDocument.defaultView) ?? he, { state: h, dispatch: v } = xe(i, {
232
+ mounted: {
233
+ UNMOUNT: "unmounted",
234
+ ANIMATION_OUT: "unmountSuspended"
235
+ },
236
+ unmountSuspended: {
237
+ MOUNT: "mounted",
238
+ ANIMATION_END: "unmounted"
239
+ },
240
+ unmounted: {
241
+ MOUNT: "mounted"
242
+ }
243
+ }), c = (d) => {
244
+ var f;
245
+ if (J) {
246
+ const p = new CustomEvent(d, { bubbles: !1, cancelable: !1 });
247
+ (f = e.value) == null || f.dispatchEvent(p);
248
+ }
249
+ };
250
+ N(
251
+ t,
252
+ async (d, f) => {
253
+ var k;
254
+ const p = f !== d;
255
+ if (await q(), p) {
256
+ const C = o.value, y = B(e.value);
257
+ d ? (v("MOUNT"), c("enter"), y === "none" && c("after-enter")) : y === "none" || ((k = n.value) == null ? void 0 : k.display) === "none" ? (v("UNMOUNT"), c("leave"), c("after-leave")) : f && C !== y ? (v("ANIMATION_OUT"), c("leave")) : (v("UNMOUNT"), c("after-leave"));
258
+ }
259
+ },
260
+ { immediate: !0 }
261
+ );
262
+ const u = (d) => {
263
+ const f = B(e.value), p = f.includes(
264
+ d.animationName
265
+ ), k = h.value === "mounted" ? "enter" : "leave";
266
+ if (d.target === e.value && p && (c(`after-${k}`), v("ANIMATION_END"), !l.value)) {
267
+ const C = e.value.style.animationFillMode;
268
+ e.value.style.animationFillMode = "forwards", a = r == null ? void 0 : r.setTimeout(() => {
269
+ var y;
270
+ ((y = e.value) == null ? void 0 : y.style.animationFillMode) === "forwards" && (e.value.style.animationFillMode = C);
271
+ });
272
+ }
273
+ d.target === e.value && f === "none" && v("ANIMATION_END");
274
+ }, g = (d) => {
275
+ d.target === e.value && (o.value = B(e.value));
276
+ }, m = N(
277
+ e,
278
+ (d, f) => {
279
+ d ? (n.value = getComputedStyle(d), d.addEventListener("animationstart", g), d.addEventListener("animationcancel", u), d.addEventListener("animationend", u)) : (v("ANIMATION_END"), r == null || r.clearTimeout(a), f == null || f.removeEventListener("animationstart", g), f == null || f.removeEventListener("animationcancel", u), f == null || f.removeEventListener("animationend", u));
280
+ },
281
+ { immediate: !0 }
282
+ ), A = N(h, () => {
283
+ const d = B(e.value);
284
+ o.value = h.value === "mounted" ? d : "none";
285
+ });
286
+ return ae(() => {
287
+ m(), A();
288
+ }), {
289
+ isPresent: b(
290
+ () => ["mounted", "unmountSuspended"].includes(h.value)
291
+ )
292
+ };
293
+ }
294
+ function B(t) {
295
+ return t && getComputedStyle(t).animationName || "none";
296
+ }
297
+ const Ne = I({
298
+ name: "Presence",
299
+ props: {
300
+ present: {
301
+ type: Boolean,
302
+ required: !0
303
+ },
304
+ forceMount: {
305
+ type: Boolean
306
+ }
307
+ },
308
+ slots: {},
309
+ setup(t, { slots: e, expose: n }) {
310
+ var v;
311
+ const { present: o, forceMount: l } = L(t), i = x(), { isPresent: a } = Pe(o, i);
312
+ n({ present: a });
313
+ let r = e.default({ present: a });
314
+ r = me(r || []);
315
+ const h = M();
316
+ if (r && (r == null ? void 0 : r.length) > 1) {
317
+ const c = (v = h == null ? void 0 : h.parent) != null && v.type.name ? `<${h.parent.type.name} />` : "component";
318
+ throw new Error(
319
+ [
320
+ `Detected an invalid children for \`${c}\` for \`Presence\` component.`,
321
+ "",
322
+ "Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
323
+ "You can apply a few solutions:",
324
+ [
325
+ "Provide a single child element so that `presence` directive attach correctly.",
326
+ "Ensure the first child is an actual element instead of a raw text node or comment node."
327
+ ].map((u) => ` - ${u}`).join(`
328
+ `)
329
+ ].join(`
330
+ `)
331
+ );
332
+ }
333
+ return () => l.value || o.value || a.value ? oe(e.default({ present: a })[0], {
334
+ ref: (c) => {
335
+ const u = V(c);
336
+ return typeof (u == null ? void 0 : u.hasAttribute) > "u" || (u != null && u.hasAttribute("data-radix-popper-content-wrapper") ? i.value = u.firstElementChild : i.value = u), u;
337
+ }
338
+ }) : null;
339
+ }
340
+ }), Oe = /* @__PURE__ */ I({
341
+ __name: "CheckboxIndicator",
342
+ props: {
343
+ forceMount: { type: Boolean },
344
+ asChild: { type: Boolean },
345
+ as: { default: "span" }
346
+ },
347
+ setup(t) {
348
+ const { forwardRef: e } = G(), n = Se();
349
+ return (o, l) => (w(), U(s(Ne), {
350
+ present: o.forceMount || s(j)(s(n).state.value) || s(n).state.value === !0
351
+ }, {
352
+ default: E(() => [
353
+ O(s(T), _({
354
+ ref: s(e),
355
+ "data-state": s(H)(s(n).state.value),
356
+ "data-disabled": s(n).disabled.value ? "" : void 0,
357
+ style: { pointerEvents: "none" },
358
+ "as-child": o.asChild,
359
+ as: o.as
360
+ }, o.$attrs), {
361
+ default: E(() => [
362
+ z(o.$slots, "default")
363
+ ]),
364
+ _: 3
365
+ }, 16, ["data-state", "data-disabled", "as-child", "as"])
366
+ ]),
367
+ _: 3
368
+ }, 8, ["present"]));
369
+ }
370
+ }), _e = [
371
+ "2xsm",
372
+ "xsm"
373
+ ], Re = /* @__PURE__ */ I({
374
+ __name: "Checkbox",
375
+ props: {
376
+ size: { default: "xsm" },
377
+ class: {},
378
+ labelAs: { default: "span" },
379
+ label: {},
380
+ color: {},
381
+ defaultChecked: { type: Boolean },
382
+ checked: { type: [Boolean, String] },
383
+ disabled: { type: Boolean },
384
+ required: { type: Boolean },
385
+ name: {},
386
+ value: {},
387
+ id: {},
388
+ as: { default: "label" }
389
+ },
390
+ emits: ["update:checked"],
391
+ setup(t, { emit: e }) {
392
+ const n = de("checkbox"), o = t, l = e, i = se(), a = b(() => {
393
+ const {
394
+ size: m,
395
+ class: A,
396
+ labelAs: S,
397
+ label: $,
398
+ color: d,
399
+ as: f,
400
+ ...p
401
+ } = o;
402
+ return p;
403
+ }), r = Ee(a, l), h = fe(n, {
404
+ variants: {
405
+ size: ce(_e, n)
406
+ }
407
+ }), v = b(() => o.label || i.default), c = b(() => ({
408
+ asChild: !v.value,
409
+ as: o.labelAs
410
+ })), u = b(() => ({
411
+ asChild: !v.value,
412
+ as: o.as
413
+ })), g = b(() => {
414
+ switch (o.size) {
415
+ case "xsm":
416
+ return "2xsm";
417
+ case "2xsm":
418
+ default:
419
+ return "3xsm";
420
+ }
421
+ });
422
+ return (m, A) => (w(), U(s(T), _(u.value, {
423
+ class: s(ue)(s(P)(s(n), "root"), o.class)
424
+ }), {
425
+ default: E(() => [
426
+ O(s(we), _(s(r), {
427
+ class: s(h)({ size: m.size }),
428
+ style: { color: m.color }
429
+ }), {
430
+ default: E(() => [
431
+ O(s(Oe), {
432
+ class: F(s(P)(s(n), "indicator")),
433
+ asChild: ""
434
+ }, {
435
+ default: E(() => [
436
+ o.checked != "indeterminate" ? (w(), U(le, {
437
+ key: 0,
438
+ icon: "tabler:check",
439
+ class: F(s(P)(s(n), "icon")),
440
+ "flip-on-dir": "rtl",
441
+ size: g.value
442
+ }, null, 8, ["class", "size"])) : (w(), R("span", {
443
+ key: 1,
444
+ class: F(s(P)(s(n), "indeterminate"))
445
+ }, null, 2))
446
+ ]),
447
+ _: 1
448
+ }, 8, ["class"])
449
+ ]),
450
+ _: 1
451
+ }, 16, ["class", "style"]),
452
+ O(s(T), _(c.value, {
453
+ class: s(P)(s(n), "label")
454
+ }), {
455
+ default: E(() => [
456
+ z(m.$slots, "default", {
457
+ checked: m.checked,
458
+ disabled: m.disabled,
459
+ required: m.required
460
+ }, () => [
461
+ ie(re(m.label), 1)
462
+ ])
463
+ ]),
464
+ _: 3
465
+ }, 16, ["class"])
466
+ ]),
467
+ _: 3
468
+ }, 16, ["class"]));
469
+ }
470
+ });
471
+ export {
472
+ _e as C,
473
+ Re as _
474
+ };
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.create;var t=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var I=(e,o,c,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of d(o))!u.call(e,n)&&n!==c&&t(e,n,{get:()=>o[n],enumerable:!(i=_(o,n))||i.enumerable});return e};var l=(e,o,c)=>(c=e!=null?s(r(e)):{},I(o||!e||!e.__esModule?t(c,"default",{value:e,enumerable:!0}):c,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@iconify/vue");const a=require("../Icon.vue_vue_type_style_index_0_lang-wnLu7tWh.js"),f=async(e,o="")=>{const{addCollection:c}=await import("@iconify/vue");c(e,o)},C=async e=>{const{disableCache:o}=await import("@iconify/vue");o(e??"all")};exports.Icon=a._sfc_main;exports.IconSizes=a.IconSizes;exports.default=a._sfc_main;exports.defineLocaleIconCollection=f;exports.disableIconCache=C;
@@ -0,0 +1 @@
1
+ .pc_icon{--ptp-icon-stroke: 1px;width:var(pt-icon-size);height:var(pt-icon-size);display:inline-flex;align-items:center;justify-content:center;font-size:var(pt-icon-size);line-height:1}.pc_icon svg,.pc_icon svg path{stroke-width:var(pt-icon-stroke)}.pc_icon--flip-x{--ptu-scale-x:-1;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_icon--flip-y{--ptu-scale-y:-1;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}[style*="direction: rtl"] .pc_icon--flip-rtl,:dir(rtl) .pc_icon--flip-rtl,[dir=rtl] .pc_icon--flip-rtl,.rtl .pc_icon--flip-rtl{--ptu-scale-x:-1;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}[style*="direction: ltr"] .pc_icon--flip-ltr,:dir(ltr) .pc_icon--flip-ltr,[dir=ltr] .pc_icon--flip-ltr,.ltr .pc_icon--flip-ltr{--ptu-scale-x:-1;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}
@@ -0,0 +1,16 @@
1
+ import "@iconify/vue";
2
+ import { _ as l, I as d, _ as r } from "../Icon.vue_vue_type_style_index_0_lang-EkZalwcR.js";
3
+ const e = async (o, a = "") => {
4
+ const { addCollection: c } = await import("@iconify/vue");
5
+ c(o, a);
6
+ }, n = async (o) => {
7
+ const { disableCache: a } = await import("@iconify/vue");
8
+ a(o ?? "all");
9
+ };
10
+ export {
11
+ l as Icon,
12
+ d as IconSizes,
13
+ r as default,
14
+ e as defineLocaleIconCollection,
15
+ n as disableIconCache
16
+ };
package/dist/Icon.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { }
@@ -0,0 +1,50 @@
1
+ import { defineComponent as d, computed as l, openBlock as B, createElementBlock as v, normalizeClass as x, unref as o, normalizeStyle as y, renderSlot as C, createVNode as g } from "vue";
2
+ import { Icon as h } from "@iconify/vue";
3
+ import { g as I, n as S, a as _, b as n } from "./class-BGw-1EB2.js";
4
+ import { cva as k } from "class-variance-authority";
5
+ const r = [
6
+ "3xsm",
7
+ "2xsm",
8
+ "xsm",
9
+ "sm"
10
+ ], L = /* @__PURE__ */ d({
11
+ __name: "Icon",
12
+ props: {
13
+ size: { default: "xsm" },
14
+ class: {},
15
+ icon: {},
16
+ flipOnDir: {},
17
+ flipX: { type: Boolean },
18
+ flipY: { type: Boolean }
19
+ },
20
+ setup(p) {
21
+ const s = p, e = _("icon"), a = k(e, {
22
+ variants: {
23
+ size: I(r, e)
24
+ }
25
+ }), c = l(() => {
26
+ if (+s.size > 0)
27
+ return `${s.size}px`;
28
+ if (typeof s.size == "string" && !r.includes(s.size))
29
+ return s.size;
30
+ }), f = l(() => {
31
+ const i = [], t = n(e, "flip-x"), m = n(e, "flip-y"), u = n(e, "flip-rtl"), z = n(e, "flip-ltr");
32
+ return s.flipX ? i.push(t) : (s.flipOnDir === "rtl" && i.push(u), s.flipOnDir === "ltr" && i.push(z)), s.flipY && i.push(m), i.join(" ");
33
+ });
34
+ return (i, t) => (B(), v("span", {
35
+ class: x(o(S)(o(a)({ size: i.size }), f.value, s.class)),
36
+ style: y({ "--ptp-icon-size": c.value })
37
+ }, [
38
+ C(i.$slots, "default", {}, () => [
39
+ g(o(h), {
40
+ icon: i.icon,
41
+ ssr: ""
42
+ }, null, 8, ["icon"])
43
+ ])
44
+ ], 6));
45
+ }
46
+ });
47
+ export {
48
+ r as I,
49
+ L as _
50
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),z=require("@iconify/vue"),n=require("./class-vyfpYITq.js"),d=require("class-variance-authority"),o=["3xsm","2xsm","xsm","sm"],B=e.defineComponent({__name:"Icon",props:{size:{default:"xsm"},class:{},icon:{},flipOnDir:{},flipX:{type:Boolean},flipY:{type:Boolean}},setup(l){const i=l,t=n.getBemBlock("icon"),c=d.cva(t,{variants:{size:n.generateVariantClassList(o,t)}}),p=e.computed(()=>{if(+i.size>0)return`${i.size}px`;if(typeof i.size=="string"&&!o.includes(i.size))return i.size}),f=e.computed(()=>{const s=[],r=n.getBemModifier(t,"flip-x"),a=n.getBemModifier(t,"flip-y"),u=n.getBemModifier(t,"flip-rtl"),m=n.getBemModifier(t,"flip-ltr");return i.flipX?s.push(r):(i.flipOnDir==="rtl"&&s.push(u),i.flipOnDir==="ltr"&&s.push(m)),i.flipY&&s.push(a),s.join(" ")});return(s,r)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(c)({size:s.size}),f.value,i.class)),style:e.normalizeStyle({"--ptp-icon-size":p.value})},[e.renderSlot(s.$slots,"default",{},()=>[e.createVNode(e.unref(z.Icon),{icon:s.icon,ssr:""},null,8,["icon"])])],6))}});exports.IconSizes=o;exports._sfc_main=B;
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue");function f(n){return n?n.flatMap(e=>e.type===r.Fragment?f(e.children):[e]):[]}const m=r.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(n,{attrs:e,slots:o}){return()=>{var p,d;if(!o.default)return null;const t=f(o.default()),u=t.findIndex(a=>a.type!==r.Comment);if(u===-1)return t;const i=t[u];(p=i.props)==null||delete p.ref;const l=i.props?r.mergeProps(e,i.props):e;e.class&&((d=i.props)!=null&&d.class)&&delete i.props.class;const s=r.cloneVNode(i,l);for(const a in l)a.startsWith("on")&&(s.props||(s.props={}),s.props[a]=l[a]);return t.length===1?s:(t[u]=s,t)}}}),c=r.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(n,{attrs:e,slots:o}){const t=r.computed(()=>n.asChild?"template":n.as);return()=>{const u=["area","img","input"];return typeof t.value=="string"&&u.includes(t.value)?r.h(t.value,e):t.value!=="template"?r.h(n.as,e,{default:o.default}):r.h(m,e,{default:o.default})}}});exports.Primitive=c;exports.renderSlotFragments=f;
@@ -0,0 +1,50 @@
1
+ import { Fragment as c, defineComponent as d, Comment as g, mergeProps as C, cloneVNode as h, computed as v, h as u } from "vue";
2
+ function m(r) {
3
+ return r ? r.flatMap((e) => e.type === c ? m(e.children) : [e]) : [];
4
+ }
5
+ const S = d({
6
+ name: "PrimitiveSlot",
7
+ inheritAttrs: !1,
8
+ setup(r, { attrs: e, slots: s }) {
9
+ return () => {
10
+ var p, f;
11
+ if (!s.default)
12
+ return null;
13
+ const t = m(s.default()), o = t.findIndex((a) => a.type !== g);
14
+ if (o === -1)
15
+ return t;
16
+ const n = t[o];
17
+ (p = n.props) == null || delete p.ref;
18
+ const l = n.props ? C(e, n.props) : e;
19
+ e.class && ((f = n.props) != null && f.class) && delete n.props.class;
20
+ const i = h(n, l);
21
+ for (const a in l)
22
+ a.startsWith("on") && (i.props || (i.props = {}), i.props[a] = l[a]);
23
+ return t.length === 1 ? i : (t[o] = i, t);
24
+ };
25
+ }
26
+ }), y = d({
27
+ name: "Primitive",
28
+ inheritAttrs: !1,
29
+ props: {
30
+ asChild: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ as: {
35
+ type: [String, Object],
36
+ default: "div"
37
+ }
38
+ },
39
+ setup(r, { attrs: e, slots: s }) {
40
+ const t = v(() => r.asChild ? "template" : r.as);
41
+ return () => {
42
+ const o = ["area", "img", "input"];
43
+ return typeof t.value == "string" && o.includes(t.value) ? u(t.value, e) : t.value !== "template" ? u(r.as, e, { default: s.default }) : u(S, e, { default: s.default });
44
+ };
45
+ }
46
+ });
47
+ export {
48
+ y as P,
49
+ m as r
50
+ };
@@ -0,0 +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-CY6NdYvf.js");exports.Skeleton=e._sfc_main;exports.SkeletonSizes=e.SkeletonSizes;exports.SkeletonTypes=e.SkeletonTypes;exports.default=e._sfc_main;
@@ -0,0 +1 @@
1
+ .active{background-color:var(--pt-gray-2);--ptu-gradient-from-position:0%;--ptu-gradient-from:var(--pt-gray-2) var(--ptu-gradient-from-position);--ptu-gradient-to:rgb(255 255 255 / 0) var(--ptu-gradient-to-position);--ptu-gradient-stops:var(--ptu-gradient-from), var(--ptu-gradient-to);--ptu-gradient-via-position:50%;--ptu-gradient-to:rgb(255 255 255 / 0);--ptu-gradient-stops:var(--ptu-gradient-from), var(--pt-gray-05) var(--ptu-gradient-via-position), var(--ptu-gradient-to);--ptu-gradient-to-position:100%;--ptu-gradient-to:var(--pt-gray-2) var(--ptu-gradient-to-position);--ptu-gradient-shape:to left in oklch;--ptu-gradient:var(--ptu-gradient-shape), var(--ptu-gradient-stops);background-image:linear-gradient(var(--ptu-gradient));background-repeat:no-repeat;background-size:100px 100%;background-position-x:-100px;animation-delay:.5s;animation-duration:1.2s;animation-fill-mode:both;animation-iteration-count:infinite;animation-name:skeleton}.pc_skeleton--base:not(.pc_skeleton--button):not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--input:not(.pc_skeleton--button):not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--button:not(.pc_skeleton--button):not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--headline:not(.pc_skeleton--button):not(.pc_skeleton--headline){width:180px}.pc_skeleton--base.pc_skeleton--headline,.pc_skeleton.pc_skeleton--input.pc_skeleton--headline,.pc_skeleton.pc_skeleton--button.pc_skeleton--headline,.pc_skeleton.pc_skeleton--headline.pc_skeleton--headline{width:120px}.pc_skeleton--base.pc_skeleton--lg:not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--input.pc_skeleton--lg:not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--button.pc_skeleton--lg:not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--headline.pc_skeleton--lg:not(.pc_skeleton--headline){height:var(--pt-dimension-2000, 40px);border-radius:var(--pt-roundness-lg, 8px)}.pc_skeleton--base.pc_skeleton--lg:not(.pc_skeleton--headline).pc_skeleton--button,.pc_skeleton.pc_skeleton--input.pc_skeleton--lg:not(.pc_skeleton--headline).pc_skeleton--button,.pc_skeleton.pc_skeleton--button.pc_skeleton--lg:not(.pc_skeleton--headline).pc_skeleton--button,.pc_skeleton.pc_skeleton--headline.pc_skeleton--lg:not(.pc_skeleton--headline).pc_skeleton--button{width:96px}.pc_skeleton--base.pc_skeleton--md,.pc_skeleton.pc_skeleton--input.pc_skeleton--md,.pc_skeleton.pc_skeleton--button.pc_skeleton--md,.pc_skeleton.pc_skeleton--headline.pc_skeleton--md{height:var(--pt-dimension-1600, 32px);border-radius:var(--pt-roundness-md, 6px)}.pc_skeleton--base.pc_skeleton--md.pc_skeleton--button,.pc_skeleton.pc_skeleton--input.pc_skeleton--md.pc_skeleton--button,.pc_skeleton.pc_skeleton--button.pc_skeleton--md.pc_skeleton--button,.pc_skeleton.pc_skeleton--headline.pc_skeleton--md.pc_skeleton--button{width:64px}.pc_skeleton--base.pc_skeleton--sm,.pc_skeleton.pc_skeleton--input.pc_skeleton--sm,.pc_skeleton.pc_skeleton--button.pc_skeleton--sm,.pc_skeleton.pc_skeleton--headline.pc_skeleton--sm{height:var(--pt-dimension-1200, 24px);border-radius:var(--pt-roundness-sm, 4px)}.pc_skeleton--base.pc_skeleton--sm.pc_skeleton--button,.pc_skeleton.pc_skeleton--input.pc_skeleton--sm.pc_skeleton--button,.pc_skeleton.pc_skeleton--button.pc_skeleton--sm.pc_skeleton--button,.pc_skeleton.pc_skeleton--headline.pc_skeleton--sm.pc_skeleton--button{width:48px}.pc_skeleton--base.pc_skeleton--2xsm:not(.pc_skeleton--input):not(.pc_skeleton--button):not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--input.pc_skeleton--2xsm:not(.pc_skeleton--input):not(.pc_skeleton--button):not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--button.pc_skeleton--2xsm:not(.pc_skeleton--input):not(.pc_skeleton--button):not(.pc_skeleton--headline),.pc_skeleton.pc_skeleton--headline.pc_skeleton--2xsm:not(.pc_skeleton--input):not(.pc_skeleton--button):not(.pc_skeleton--headline){height:var(--pt-dimension-800, 16px);border-radius:var(--pt-roundness-sm, 4px)}.pc_skeleton--avatar{border-radius:var(--pt-roundness-full, 88px)}.pc_skeleton--avatar.pc_skeleton--lg{width:var(--pt-dimension-2000, 40px);height:var(--pt-dimension-2000, 40px)}.pc_skeleton--avatar.pc_skeleton--md{width:var(--pt-dimension-1600, 32px);height:var(--pt-dimension-1600, 32px)}.pc_skeleton--avatar.pc_skeleton--sm{width:var(--pt-dimension-1200, 24px);height:var(--pt-dimension-1200, 24px)}.pc_skeleton--avatar.pc_skeleton--2xsm{width:var(--pt-dimension-800, 16px);height:var(--pt-dimension-800, 16px)}.pc_skeleton--paragraph{width:200px;display:flex;flex-direction:column}.pc_skeleton--paragraph .pc_skeleton__item:last-child{width:80px}.pc_skeleton--paragraph.pc_skeleton--md{gap:var(--pt-dimension-600, 12px)}.pc_skeleton--paragraph.pc_skeleton--md .pc_skeleton__item{height:var(--pt-dimension-1600, 32px);border-radius:var(--pt-roundness-md, 6px)}.pc_skeleton--paragraph.pc_skeleton--sm{gap:var(--pt-dimension-400, 8px)}.pc_skeleton--paragraph.pc_skeleton--sm .pc_skeleton__item{height:var(--pt-dimension-1200, 24px);border-radius:var(--pt-roundness-sm, 4px)}.pc_skeleton--paragraph.pc_skeleton--2xsm{gap:var(--pt-dimension-400, 8px)}.pc_skeleton--paragraph.pc_skeleton--2xsm .pc_skeleton__item{height:var(--pt-dimension-800, 16px);border-radius:var(--pt-roundness-sm, 4px)}.pc_skeleton--paragraph:not(.pc_skeleton--inactive) .pc_skeleton__item{background-color:var(--pt-gray-2);--ptu-gradient-from-position:0%;--ptu-gradient-from:var(--pt-gray-2) var(--ptu-gradient-from-position);--ptu-gradient-to:rgb(255 255 255 / 0) var(--ptu-gradient-to-position);--ptu-gradient-stops:var(--ptu-gradient-from), var(--ptu-gradient-to);--ptu-gradient-via-position:50%;--ptu-gradient-to:rgb(255 255 255 / 0);--ptu-gradient-stops:var(--ptu-gradient-from), var(--pt-gray-05) var(--ptu-gradient-via-position), var(--ptu-gradient-to);--ptu-gradient-to-position:100%;--ptu-gradient-to:var(--pt-gray-2) var(--ptu-gradient-to-position);--ptu-gradient-shape:to left in oklch;--ptu-gradient:var(--ptu-gradient-shape), var(--ptu-gradient-stops);background-image:linear-gradient(var(--ptu-gradient));background-repeat:no-repeat;background-size:100px 100%;background-position-x:-100px;animation-delay:.5s;animation-duration:1.2s;animation-fill-mode:both;animation-iteration-count:infinite;animation-name:skeleton}.pc_skeleton--paragraph.pc_skeleton--inactive .pc_skeleton__item{background-color:var(--pt-gray-2)}.pc_skeleton--list{width:160px;display:flex;align-items:center}.pc_skeleton--list .pc_skeleton__item:first-child{border-radius:var(--pt-roundness-full, 88px)}.pc_skeleton--list .pc_skeleton__item:last-child{flex:1 1 0%}.pc_skeleton--list.pc_skeleton--lg{gap:var(--pt-dimension-600, 12px)}.pc_skeleton--list.pc_skeleton--lg .pc_skeleton__item:first-child{width:var(--pt-dimension-1600, 32px);height:var(--pt-dimension-1600, 32px)}.pc_skeleton--list.pc_skeleton--lg .pc_skeleton__item:last-child{height:var(--pt-dimension-1600, 32px);border-radius:var(--pt-roundness-lg, 8px)}.pc_skeleton--list.pc_skeleton--md{gap:var(--pt-dimension-400, 8px)}.pc_skeleton--list.pc_skeleton--md .pc_skeleton__item:first-child{width:var(--pt-dimension-1200, 24px);height:var(--pt-dimension-1200, 24px)}.pc_skeleton--list.pc_skeleton--md .pc_skeleton__item:last-child{height:var(--pt-dimension-1200, 24px);border-radius:var(--pt-roundness-md, 6px)}.pc_skeleton--list.pc_skeleton--sm{gap:var(--pt-dimension-300, 6px)}.pc_skeleton--list.pc_skeleton--sm .pc_skeleton__item:first-child{width:var(--pt-dimension-1000, 20px);height:var(--pt-dimension-1000, 20px)}.pc_skeleton--list.pc_skeleton--sm .pc_skeleton__item:last-child{height:var(--pt-dimension-1000, 20px);border-radius:var(--pt-roundness-sm, 4px)}.pc_skeleton--list.pc_skeleton--2xsm{gap:var(--pt-dimension-200, 4px)}.pc_skeleton--list.pc_skeleton--2xsm .pc_skeleton__item:first-child{width:var(--pt-dimension-700, 14px);height:var(--pt-dimension-700, 14px)}.pc_skeleton--list.pc_skeleton--2xsm .pc_skeleton__item:last-child{height:var(--pt-dimension-700, 14px);border-radius:var(--pt-roundness-sm, 4px)}.pc_skeleton--list:not(.pc_skeleton--inactive) .pc_skeleton__item,.pc_skeleton--paragraph:not(.pc_skeleton--inactive) .pc_skeleton__item,.pc_skeleton--custom-items:not(.pc_skeleton--inactive) .pc_skeleton__item{background-color:var(--pt-gray-2);--ptu-gradient-from-position:0%;--ptu-gradient-from:var(--pt-gray-2) var(--ptu-gradient-from-position);--ptu-gradient-to:rgb(255 255 255 / 0) var(--ptu-gradient-to-position);--ptu-gradient-stops:var(--ptu-gradient-from), var(--ptu-gradient-to);--ptu-gradient-via-position:50%;--ptu-gradient-to:rgb(255 255 255 / 0);--ptu-gradient-stops:var(--ptu-gradient-from), var(--pt-gray-05) var(--ptu-gradient-via-position), var(--ptu-gradient-to);--ptu-gradient-to-position:100%;--ptu-gradient-to:var(--pt-gray-2) var(--ptu-gradient-to-position);--ptu-gradient-shape:to left in oklch;--ptu-gradient:var(--ptu-gradient-shape), var(--ptu-gradient-stops);background-image:linear-gradient(var(--ptu-gradient));background-repeat:no-repeat;background-size:100px 100%;background-position-x:-100px;animation-delay:.5s;animation-duration:1.2s;animation-fill-mode:both;animation-iteration-count:infinite;animation-name:skeleton}.pc_skeleton--list.pc_skeleton--inactive .pc_skeleton__item,.pc_skeleton--paragraph.pc_skeleton--inactive .pc_skeleton__item,.pc_skeleton--custom-items.pc_skeleton--inactive .pc_skeleton__item{background-color:var(--pt-gray-2)}.pc_skeleton--avatar:not(.pc_skeleton--inactive),.pc_skeleton--base:not(.pc_skeleton--inactive),.pc_skeleton.pc_skeleton--input:not(.pc_skeleton--inactive),.pc_skeleton.pc_skeleton--button:not(.pc_skeleton--inactive),.pc_skeleton.pc_skeleton--headline:not(.pc_skeleton--inactive),.pc_skeleton--custom:not(.pc_skeleton--inactive){background-color:var(--pt-gray-2);--ptu-gradient-from-position:0%;--ptu-gradient-from:var(--pt-gray-2) var(--ptu-gradient-from-position);--ptu-gradient-to:rgb(255 255 255 / 0) var(--ptu-gradient-to-position);--ptu-gradient-stops:var(--ptu-gradient-from), var(--ptu-gradient-to);--ptu-gradient-via-position:50%;--ptu-gradient-to:rgb(255 255 255 / 0);--ptu-gradient-stops:var(--ptu-gradient-from), var(--pt-gray-05) var(--ptu-gradient-via-position), var(--ptu-gradient-to);--ptu-gradient-to-position:100%;--ptu-gradient-to:var(--pt-gray-2) var(--ptu-gradient-to-position);--ptu-gradient-shape:to left in oklch;--ptu-gradient:var(--ptu-gradient-shape), var(--ptu-gradient-stops);background-image:linear-gradient(var(--ptu-gradient));background-repeat:no-repeat;background-size:100px 100%;background-position-x:-100px;animation-delay:.5s;animation-duration:1.2s;animation-fill-mode:both;animation-iteration-count:infinite;animation-name:skeleton}.pc_skeleton--avatar.pc_skeleton--inactive,.pc_skeleton--base.pc_skeleton--inactive,.pc_skeleton.pc_skeleton--input.pc_skeleton--inactive,.pc_skeleton.pc_skeleton--button.pc_skeleton--inactive,.pc_skeleton.pc_skeleton--headline.pc_skeleton--inactive,.pc_skeleton--custom.pc_skeleton--inactive{background-color:var(--pt-gray-2)}@keyframes skeleton{to{background-position-x:calc(100% + 100px)}}
@@ -0,0 +1,7 @@
1
+ import { _ as s, a as o, S as t, _ as S } from "../Skeleton.vue_vue_type_style_index_0_lang-CDohV4V1.js";
2
+ export {
3
+ s as Skeleton,
4
+ o as SkeletonSizes,
5
+ t as SkeletonTypes,
6
+ S as default
7
+ };
@@ -0,0 +1 @@
1
+ export { }
@@ -0,0 +1,70 @@
1
+ import { defineComponent as f, computed as C, openBlock as n, createBlock as i, unref as t, normalizeClass as o, withCtx as v, createElementBlock as g, Fragment as h, renderList as k, createCommentVNode as y } from "vue";
2
+ import { g as r, n as l, c as B, a as S } from "./class-BGw-1EB2.js";
3
+ import { cva as _ } from "class-variance-authority";
4
+ import { P as m } from "./Primitive-DVdcdPSP.js";
5
+ const z = [
6
+ "avatar",
7
+ "input",
8
+ "button",
9
+ "paragraph",
10
+ "headline",
11
+ "list",
12
+ "base",
13
+ "custom",
14
+ "custom-items"
15
+ ], b = [
16
+ "2xsm",
17
+ "sm",
18
+ "md",
19
+ "lg"
20
+ ], P = /* @__PURE__ */ f({
21
+ __name: "Skeleton",
22
+ props: {
23
+ type: { default: "base" },
24
+ size: { default: "md" },
25
+ childAs: { default: "div" },
26
+ inactive: { type: Boolean, default: !1 },
27
+ class: {},
28
+ itemClass: {},
29
+ itemsCount: {},
30
+ as: { default: "div" }
31
+ },
32
+ setup(c) {
33
+ const s = S("skeleton"), e = c, u = _(s, {
34
+ variants: {
35
+ inactive: r("inactive", s),
36
+ size: r(b, s),
37
+ type: r(z, s)
38
+ }
39
+ }), p = C(() => {
40
+ if (e.type === "custom-items" && e.itemsCount)
41
+ return e.itemsCount;
42
+ switch (e.type) {
43
+ case "paragraph":
44
+ return 4;
45
+ case "list":
46
+ return 2;
47
+ default:
48
+ return 0;
49
+ }
50
+ });
51
+ return (a, w) => (n(), i(t(m), {
52
+ as: a.as,
53
+ class: o(t(l)(t(u)(e), e.class))
54
+ }, {
55
+ default: v(() => [
56
+ ["paragraph", "list", "custom-items"].includes(a.type) ? (n(!0), g(h, { key: 0 }, k(p.value, (d) => (n(), i(t(m), {
57
+ as: a.childAs,
58
+ class: o(t(l)(t(B)(t(s), "item"), e.itemClass)),
59
+ key: d
60
+ }, null, 8, ["as", "class"]))), 128)) : y("", !0)
61
+ ]),
62
+ _: 1
63
+ }, 8, ["as", "class"]));
64
+ }
65
+ });
66
+ export {
67
+ z as S,
68
+ P as _,
69
+ b as a
70
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),s=require("./class-vyfpYITq.js"),p=require("class-variance-authority"),r=require("./Primitive-CSm3KbEm.js"),i=["avatar","input","button","paragraph","headline","list","base","custom","custom-items"],l=["2xsm","sm","md","lg"],f=e.defineComponent({__name:"Skeleton",props:{type:{default:"base"},size:{default:"md"},childAs:{default:"div"},inactive:{type:Boolean,default:!1},class:{},itemClass:{},itemsCount:{},as:{default:"div"}},setup(o){const a=s.getBemBlock("skeleton"),t=o,c=p.cva(a,{variants:{inactive:s.generateVariantClassList("inactive",a),size:s.generateVariantClassList(l,a),type:s.generateVariantClassList(i,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,d)=>(e.openBlock(),e.createBlock(e.unref(r.Primitive),{as:n.as,class:e.normalizeClass(e.unref(s.normCls)(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(r.Primitive),{as:n.childAs,class:e.normalizeClass(e.unref(s.normCls)(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=l;exports.SkeletonTypes=i;exports._sfc_main=f;
@@ -0,0 +1,29 @@
1
+ import { twMerge as s } from "tailwind-merge";
2
+ const a = "p", f = `${a}c`, l = (e) => `${f}_${e}`, $ = (e, t) => `${e}__${t}`, c = (e, t) => `${e}--${t}`;
3
+ function m(e, t) {
4
+ const o = {}, n = (r) => c(typeof t == "string" ? t : t.join("__"), r);
5
+ if (Array.isArray(e))
6
+ e.forEach((r) => {
7
+ o[r] = n(r);
8
+ });
9
+ else if (typeof e == "object")
10
+ Object.keys(e).forEach((r) => {
11
+ o[r] = n(e[r]);
12
+ });
13
+ else if (typeof e == "string")
14
+ return {
15
+ true: n(e),
16
+ false: null
17
+ };
18
+ return o;
19
+ }
20
+ function y(...e) {
21
+ return s(e);
22
+ }
23
+ export {
24
+ l as a,
25
+ c as b,
26
+ $ as c,
27
+ m as g,
28
+ y as n
29
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("tailwind-merge"),a="p",g=`${a}c`,l=e=>`${g}_${e}`,f=(e,r)=>`${e}__${r}`,c=(e,r)=>`${e}--${r}`;function i(e,r){const n={},o=t=>c(typeof r=="string"?r:r.join("__"),t);if(Array.isArray(e))e.forEach(t=>{n[t]=o(t)});else if(typeof e=="object")Object.keys(e).forEach(t=>{n[t]=o(e[t])});else if(typeof e=="string")return{true:o(e),false:null};return n}function m(...e){return s.twMerge(e)}exports.generateVariantClassList=i;exports.getBemBlock=l;exports.getBemElement=f;exports.getBemModifier=c;exports.normCls=m;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Skeleton.vue_vue_type_style_index_0_lang-CY6NdYvf.js"),_=require("./Checkbox.vue_vue_type_style_index_0_lang-BLvqKFXl.js");require("@iconify/vue");const n=require("./Icon.vue_vue_type_style_index_0_lang-wnLu7tWh.js");exports.Skeleton=e._sfc_main;exports.SkeletonSizes=e.SkeletonSizes;exports.SkeletonTypes=e.SkeletonTypes;exports.Checkbox=_._sfc_main;exports.CheckboxSizes=_.CheckboxSizes;exports.Icon=n._sfc_main;exports.IconSizes=n.IconSizes;
@@ -0,0 +1 @@
1
+ export { }
@@ -0,0 +1,13 @@
1
+ import { _ as a, a as r, S as t } from "./Skeleton.vue_vue_type_style_index_0_lang-CDohV4V1.js";
2
+ import { _ as k, C as n } from "./Checkbox.vue_vue_type_style_index_0_lang-DxEbn-Bk.js";
3
+ import "@iconify/vue";
4
+ import { _ as x, I as c } from "./Icon.vue_vue_type_style_index_0_lang-EkZalwcR.js";
5
+ export {
6
+ k as Checkbox,
7
+ n as CheckboxSizes,
8
+ x as Icon,
9
+ c as IconSizes,
10
+ a as Skeleton,
11
+ r as SkeletonSizes,
12
+ t as SkeletonTypes
13
+ };
@@ -0,0 +1 @@
1
+ *,:before,:after{--ptu-rotate:0;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-scale-x:1;--ptu-scale-y:1;--ptu-scale-z:1;--ptu-skew-x:0;--ptu-skew-y:0;--ptu-translate-x:0;--ptu-translate-y:0;--ptu-translate-z:0;--ptu-pan-x: ;--ptu-pan-y: ;--ptu-pinch-zoom: ;--ptu-scroll-snap-strictness:proximity;--ptu-ordinal: ;--ptu-slashed-zero: ;--ptu-numeric-figure: ;--ptu-numeric-spacing: ;--ptu-numeric-fraction: ;--ptu-border-spacing-x:0;--ptu-border-spacing-y:0;--ptu-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--ptu-ring-shadow:0 0 rgb(0 0 0 / 0);--ptu-shadow-inset: ;--ptu-shadow:0 0 rgb(0 0 0 / 0);--ptu-ring-inset: ;--ptu-ring-offset-width:0px;--ptu-ring-offset-color:#fff;--ptu-ring-width:0px;--ptu-ring-color:rgb(147 197 253 / .5);--ptu-blur: ;--ptu-brightness: ;--ptu-contrast: ;--ptu-drop-shadow: ;--ptu-grayscale: ;--ptu-hue-rotate: ;--ptu-invert: ;--ptu-saturate: ;--ptu-sepia: ;--ptu-backdrop-blur: ;--ptu-backdrop-brightness: ;--ptu-backdrop-contrast: ;--ptu-backdrop-grayscale: ;--ptu-backdrop-hue-rotate: ;--ptu-backdrop-invert: ;--ptu-backdrop-opacity: ;--ptu-backdrop-saturate: ;--ptu-backdrop-sepia: }::backdrop{--ptu-rotate:0;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-scale-x:1;--ptu-scale-y:1;--ptu-scale-z:1;--ptu-skew-x:0;--ptu-skew-y:0;--ptu-translate-x:0;--ptu-translate-y:0;--ptu-translate-z:0;--ptu-pan-x: ;--ptu-pan-y: ;--ptu-pinch-zoom: ;--ptu-scroll-snap-strictness:proximity;--ptu-ordinal: ;--ptu-slashed-zero: ;--ptu-numeric-figure: ;--ptu-numeric-spacing: ;--ptu-numeric-fraction: ;--ptu-border-spacing-x:0;--ptu-border-spacing-y:0;--ptu-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--ptu-ring-shadow:0 0 rgb(0 0 0 / 0);--ptu-shadow-inset: ;--ptu-shadow:0 0 rgb(0 0 0 / 0);--ptu-ring-inset: ;--ptu-ring-offset-width:0px;--ptu-ring-offset-color:#fff;--ptu-ring-width:0px;--ptu-ring-color:rgb(147 197 253 / .5);--ptu-blur: ;--ptu-brightness: ;--ptu-contrast: ;--ptu-drop-shadow: ;--ptu-grayscale: ;--ptu-hue-rotate: ;--ptu-invert: ;--ptu-saturate: ;--ptu-sepia: ;--ptu-backdrop-blur: ;--ptu-backdrop-brightness: ;--ptu-backdrop-contrast: ;--ptu-backdrop-grayscale: ;--ptu-backdrop-hue-rotate: ;--ptu-backdrop-invert: ;--ptu-backdrop-opacity: ;--ptu-backdrop-saturate: ;--ptu-backdrop-sepia: }.border{border-width:1px;border-color:currentColor;border-style:solid}.absolute{position:absolute}.fixed{position:fixed}.grid{display:grid}.ml{margin-left:1rem}.ms{margin-inline-start:1rem}.hidden{display:none}.h2{height:8px}.h24{height:96px}.h3{height:.75rem}.transform{transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.resize{resize:both}.b{border-width:1px}.rounded{border-radius:.25rem}.px{padding-left:1rem;padding-right:1rem}.pl{padding-left:1rem}.pt{padding-top:1rem}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@pantograph/vue",
3
+ "version": "0.0.2",
4
+ "private": false,
5
+ "scripts": {
6
+ "build": "npm run type-check && npm run build-only",
7
+ "build-only": "vite build",
8
+ "watch": "vite build --watch",
9
+ "type-check": "vue-tsc -p tsconfig.json --noEmit",
10
+ "preview": "vite preview",
11
+ "lint:oxlint": "oxlint . --fix -D correctness",
12
+ "lint:eslint": "eslint . --fix",
13
+ "lint": "run-s lint:*",
14
+ "format": "prettier --write src/"
15
+ },
16
+ "type": "module",
17
+ "main": "dist/index.umd.js",
18
+ "module": "dist/index.es.js",
19
+ "types": "dist/index.d.ts",
20
+ "exports": {
21
+ "./Button": {
22
+ "import": "./dist/Button/index.es.js",
23
+ "require": "./dist/Button/index.cjs.js",
24
+ "style": "./dist/Button/index.css"
25
+ },
26
+ ".": {
27
+ "import": "./dist/index.es.js",
28
+ "require": "./dist/index.cjs.js"
29
+ },
30
+ "./styles/*": "./dist/styles/*"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "author": "sedmedgh",
36
+ "dependencies": {
37
+ "class-variance-authority": "^0.7.1",
38
+ "unocss": "^0.65.1",
39
+ "@pantograph/tokens": "0.0.0",
40
+ "@iconify/vue": "^4.2.0"
41
+ },
42
+ "peerDependencies": {
43
+ "vue": "^3.5.13"
44
+ },
45
+ "devDependencies": {
46
+ "@pantograph/tokens": "*",
47
+ "@pantograph/style": "*",
48
+ "@pantograph/utils": "*",
49
+ "@tsconfig/node22": "^22.0.0",
50
+ "@types/node": "^22.9.3",
51
+ "@vitejs/plugin-vue": "^5.2.1",
52
+ "@vitejs/plugin-vue-jsx": "^4.1.1",
53
+ "@vue/eslint-config-prettier": "^10.1.0",
54
+ "@vue/eslint-config-typescript": "^14.1.3",
55
+ "@vue/tsconfig": "^0.7.0",
56
+ "eslint": "^9.14.0",
57
+ "eslint-plugin-oxlint": "^0.11.0",
58
+ "eslint-plugin-vue": "^9.30.0",
59
+ "less": "^4.2.1",
60
+ "lightningcss": "^1.28.2",
61
+ "npm-run-all2": "^7.0.1",
62
+ "oxlint": "^0.11.0",
63
+ "prettier": "^3.3.3",
64
+ "radix-vue": "*",
65
+ "typescript": "~5.6.3",
66
+ "vite": "^5.3.5",
67
+ "vite-plugin-dts": "^4.3.0",
68
+ "vue-tsc": "^2.1.10"
69
+ }
70
+ }