@layers.digital/layers-design-system-vue3 1.17.1 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/chunk-12.cjs +1 -1
- package/dist/chunks/chunk-12.js +2 -2
- package/dist/chunks/chunk-15.cjs +1 -1
- package/dist/chunks/chunk-15.js +1 -1
- package/dist/chunks/chunk-1519.cjs +1 -1
- package/dist/chunks/chunk-1519.js +2 -2
- package/dist/chunks/chunk-1523.cjs +1 -1
- package/dist/chunks/chunk-1523.js +1 -1
- package/dist/chunks/chunk-1533.cjs +1 -1
- package/dist/chunks/chunk-1533.js +1 -1
- package/dist/chunks/chunk-1536.cjs +1 -1
- package/dist/chunks/chunk-1536.js +1 -1
- package/dist/chunks/chunk-1539.cjs +1 -1
- package/dist/chunks/chunk-1539.js +1 -1
- package/dist/chunks/chunk-1545.cjs +1 -1
- package/dist/chunks/chunk-1545.js +95 -101
- package/dist/chunks/chunk-1572.cjs +1 -6
- package/dist/chunks/chunk-1572.js +6 -8
- package/dist/chunks/chunk-1573.cjs +1 -6
- package/dist/chunks/chunk-1573.js +13 -18
- package/dist/chunks/chunk-1574.cjs +1 -1
- package/dist/chunks/chunk-1574.js +2 -53
- package/dist/chunks/chunk-1575.cjs +1 -1
- package/dist/chunks/chunk-1575.js +22 -6
- package/dist/chunks/chunk-1576.cjs +1 -1
- package/dist/chunks/chunk-1576.js +51 -19
- package/dist/chunks/chunk-1577.cjs +1 -1
- package/dist/chunks/chunk-1577.js +20 -4
- package/dist/chunks/chunk-1578.cjs +1 -1
- package/dist/chunks/chunk-1578.js +2 -22
- package/dist/chunks/chunk-1579.cjs +1 -1
- package/dist/chunks/chunk-1579.js +5 -13
- package/dist/chunks/chunk-1580.cjs +1 -1
- package/dist/chunks/chunk-1580.js +34 -2
- package/dist/chunks/chunk-1581.cjs +1 -1
- package/dist/chunks/chunk-1581.js +59 -2
- package/dist/chunks/chunk-1582.cjs +1 -1
- package/dist/chunks/chunk-1582.js +29 -176
- package/dist/chunks/chunk-1583.cjs +1 -1
- package/dist/chunks/chunk-1583.js +25 -75
- package/dist/chunks/chunk-1584.cjs +1 -1
- package/dist/chunks/chunk-1584.js +33 -95
- package/dist/chunks/chunk-1585.cjs +1 -1
- package/dist/chunks/chunk-1585.js +34 -105
- package/dist/chunks/chunk-1586.cjs +1 -1
- package/dist/chunks/chunk-1586.js +167 -119
- package/dist/chunks/chunk-1587.cjs +1 -1
- package/dist/chunks/chunk-1587.js +59 -354
- package/dist/chunks/chunk-1588.cjs +1 -1
- package/dist/chunks/chunk-1588.js +91 -28
- package/dist/chunks/chunk-1589.cjs +1 -1
- package/dist/chunks/chunk-1589.js +105 -33
- package/dist/chunks/chunk-1590.cjs +1 -1
- package/dist/chunks/chunk-1590.js +125 -56
- package/dist/chunks/chunk-1591.cjs +1 -1
- package/dist/chunks/chunk-1591.js +371 -29
- package/dist/chunks/chunk-1592.cjs +1 -1
- package/dist/chunks/chunk-1592.js +32 -24
- package/dist/chunks/chunk-1594.cjs +15 -1
- package/dist/chunks/chunk-1594.js +717 -35
- package/dist/chunks/chunk-1595.cjs +1 -0
- package/dist/chunks/chunk-1595.js +17 -0
- package/dist/chunks/chunk-1596.cjs +1 -15
- package/dist/chunks/chunk-1596.js +2312 -695
- package/dist/chunks/chunk-1597.cjs +6 -1
- package/dist/chunks/chunk-1597.js +8 -15
- package/dist/chunks/chunk-1598.cjs +6 -1
- package/dist/chunks/chunk-1598.js +18 -2334
- package/dist/chunks/chunk-1600.cjs +1 -1
- package/dist/chunks/chunk-1600.js +1 -1
- package/dist/chunks/chunk-1601.cjs +1 -1
- package/dist/chunks/chunk-1601.js +1 -1
- package/dist/chunks/chunk-1602.cjs +1 -1
- package/dist/chunks/chunk-1602.js +1 -1
- package/dist/chunks/chunk-1603.cjs +1 -1
- package/dist/chunks/chunk-1603.js +1 -1
- package/dist/chunks/chunk-1604.cjs +1 -1
- package/dist/chunks/chunk-1604.js +1 -1
- package/dist/chunks/chunk-1605.cjs +1 -1
- package/dist/chunks/chunk-1605.js +1 -1
- package/dist/chunks/chunk-1606.cjs +1 -1
- package/dist/chunks/chunk-1606.js +2 -2
- package/dist/chunks/chunk-1609.cjs +1 -1
- package/dist/chunks/chunk-1609.js +1 -1
- package/dist/chunks/chunk-1610.cjs +1 -1
- package/dist/chunks/chunk-1610.js +2 -2
- package/dist/chunks/chunk-1611.cjs +1 -1
- package/dist/chunks/chunk-1611.js +1 -1
- package/dist/chunks/chunk-1616.cjs +1 -1
- package/dist/chunks/chunk-1616.js +1 -1
- package/dist/chunks/chunk-1617.cjs +1 -1
- package/dist/chunks/chunk-1617.js +4 -32
- package/dist/chunks/chunk-1618.cjs +1 -1
- package/dist/chunks/chunk-1618.js +32 -1195
- package/dist/chunks/chunk-1619.cjs +1 -1
- package/dist/chunks/chunk-1619.js +1195 -4
- package/dist/chunks/chunk-19.cjs +1 -1
- package/dist/chunks/chunk-19.js +2 -2
- package/dist/chunks/chunk-21.cjs +1 -1
- package/dist/chunks/chunk-21.js +1 -1
- package/dist/chunks/chunk-22.cjs +1 -1
- package/dist/chunks/chunk-22.js +1 -1
- package/dist/chunks/chunk-23.cjs +1 -1
- package/dist/chunks/chunk-23.js +1 -1
- package/dist/chunks/chunk-24.cjs +1 -1
- package/dist/chunks/chunk-24.js +1 -1
- package/dist/chunks/chunk-25.cjs +1 -1
- package/dist/chunks/chunk-25.js +1 -1
- package/dist/chunks/chunk-29.cjs +1 -1
- package/dist/chunks/chunk-29.js +1 -1
- package/dist/chunks/chunk-3.cjs +1 -1
- package/dist/chunks/chunk-3.js +1 -1
- package/dist/chunks/chunk-30.cjs +1 -1
- package/dist/chunks/chunk-30.js +1 -1
- package/dist/chunks/chunk-33.cjs +1 -1
- package/dist/chunks/chunk-33.js +1 -1
- package/dist/chunks/chunk-34.cjs +1 -1
- package/dist/chunks/chunk-34.js +1 -1
- package/dist/chunks/chunk-35.cjs +1 -1
- package/dist/chunks/chunk-35.js +1 -1
- package/dist/chunks/chunk-36.cjs +1 -1
- package/dist/chunks/chunk-36.js +1 -1
- package/dist/chunks/chunk-37.cjs +1 -1
- package/dist/chunks/chunk-37.js +1 -1
- package/dist/chunks/chunk-38.cjs +1 -1
- package/dist/chunks/chunk-38.js +6 -6
- package/dist/chunks/chunk-39.cjs +1 -1
- package/dist/chunks/chunk-39.js +1 -1
- package/dist/chunks/chunk-4.cjs +1 -1
- package/dist/chunks/chunk-4.js +2 -2
- package/dist/chunks/chunk-40.cjs +1 -1
- package/dist/chunks/chunk-40.js +1 -1
- package/dist/chunks/chunk-41.cjs +1 -1
- package/dist/chunks/chunk-41.js +1 -1
- package/dist/chunks/chunk-44.cjs +1 -1
- package/dist/chunks/chunk-44.js +1 -1
- package/dist/chunks/chunk-45.cjs +1 -1
- package/dist/chunks/chunk-45.js +1 -1
- package/dist/chunks/chunk-46.cjs +1 -1
- package/dist/chunks/chunk-46.js +1 -1
- package/dist/chunks/chunk-47.cjs +1 -1
- package/dist/chunks/chunk-47.js +1 -1
- package/dist/chunks/chunk-48.cjs +1 -1
- package/dist/chunks/chunk-48.js +1 -1
- package/dist/chunks/chunk-49.cjs +1 -1
- package/dist/chunks/chunk-49.js +1 -1
- package/dist/chunks/chunk-5.cjs +1 -1
- package/dist/chunks/chunk-5.js +2 -2
- package/dist/chunks/chunk-6.cjs +1 -1
- package/dist/chunks/chunk-6.js +3 -3
- package/dist/chunks/chunk-7.cjs +1 -1
- package/dist/chunks/chunk-7.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-1593.cjs +0 -1
- package/dist/chunks/chunk-1593.js +0 -37
package/dist/chunks/chunk-12.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./chunk-
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./chunk-1576.cjs"),i=require("./chunk-1572.cjs"),d=e.defineComponent({__name:"LTextarea",props:{class:{},defaultValue:{},modelValue:{}},emits:["update:modelValue"],setup(o,{emit:r}){const l=o,u=r,s=a.useVModel(l,"modelValue",u,{passive:!0,defaultValue:l.defaultValue});return(c,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(s)?s.value=n:null),class:e.normalizeClass(e.unref(i.cn)("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:text-[var(--gray-60)] disabled:bg-[var(--gray-10)]",l.class))},null,2)),[[e.vModelText,e.unref(s)]])}});module.exports=d;
|
package/dist/chunks/chunk-12.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as u, withDirectives as i, openBlock as n, createElementBlock as d, isRef as m, normalizeClass as f, unref as t, vModelText as c } from "vue";
|
|
2
|
-
import { useVModel as p } from "./chunk-
|
|
3
|
-
import { cn as b } from "./chunk-
|
|
2
|
+
import { useVModel as p } from "./chunk-1576.js";
|
|
3
|
+
import { cn as b } from "./chunk-1572.js";
|
|
4
4
|
const _ = /* @__PURE__ */ u({
|
|
5
5
|
__name: "LTextarea",
|
|
6
6
|
props: {
|
package/dist/chunks/chunk-15.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./chunk-38.cjs"),u=require("./chunk-
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./chunk-38.cjs"),u=require("./chunk-1572.cjs"),c=e.defineComponent({__name:"LRadioGroup",props:{modelValue:{},defaultValue:{},disabled:{type:Boolean},name:{},required:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue"],setup(s,{emit:a}){const t=s,n=a,l=e.computed(()=>{const{...o}=t;return o}),d=r.useForwardPropsEmits(l,n);return(o,i)=>(e.openBlock(),e.createBlock(e.unref(r.RadioGroupRoot),e.mergeProps({class:e.unref(u.cn)("grid gap-2",t.class)},e.unref(d)),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}});module.exports=c;
|
package/dist/chunks/chunk-15.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as n, computed as p, openBlock as i, createBlock as c, unref as o, mergeProps as m, withCtx as u, renderSlot as f } from "vue";
|
|
2
2
|
import { useForwardPropsEmits as B, RadioGroupRoot as _ } from "./chunk-38.js";
|
|
3
|
-
import { cn as g } from "./chunk-
|
|
3
|
+
import { cn as g } from "./chunk-1572.js";
|
|
4
4
|
const x = /* @__PURE__ */ n({
|
|
5
5
|
__name: "LRadioGroup",
|
|
6
6
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const u=require("vue"),d=require("./chunk-
|
|
1
|
+
"use strict";const u=require("vue"),d=require("./chunk-1597.cjs"),e=require("./chunk-1598.cjs");/**
|
|
2
2
|
* @license lucide-vue-next v0.395.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./chunk-1573.cjs"),y=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,o=C.clsx,O=(n,l)=>e=>{var s;if(l?.variants==null)return o(n,e?.class,e?.className);const{variants:v,defaultVariants:u}=l,N=Object.keys(v).map(t=>{const a=e?.[t],d=u?.[t];if(a===null)return null;const i=y(a)||y(d);return v[t][i]}),c=e&&Object.entries(e).reduce((t,a)=>{let[d,i]=a;return i===void 0||(t[d]=i),t},{}),V=l==null||(s=l.compoundVariants)===null||s===void 0?void 0:s.reduce((t,a)=>{let{class:d,className:i,...b}=a;return Object.entries(b).every(f=>{let[m,r]=f;return Array.isArray(r)?r.includes({...u,...c}[m]):{...u,...c}[m]===r})?[...t,d,i]:t},[]);return o(n,N,V,e?.class,e?.className)};exports.cva=O;exports.cx=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./chunk-38.cjs"),i=require("./chunk-
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./chunk-38.cjs"),i=require("./chunk-1572.cjs"),u=require("./chunk-313.cjs"),f=["for"],p=e.defineComponent({__name:"LFormCheckbox",props:{class:{},label:{},type:{default:"regular"},defaultChecked:{type:Boolean},checked:{type:[Boolean,String]},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},id:{},asChild:{type:Boolean},as:{}},emits:["update:checked"],setup(n,{emit:c}){const t=n,d=c,a=e.computed(()=>{const{...o}=t;return o}),s=r.useForwardPropsEmits(a,d),l=e.computed(()=>a.value.disabled?"data-[state=checked]:bg-[var(--gray-60)]":"data-[state=checked]:bg-[var(--link)]");return(o,b)=>(e.openBlock(),e.createElementBlock("label",e.mergeProps(e.unref(s),{for:t.name,class:"label-wrapper cursor-pointer flex gap-2 items-center border rounded-lg p-2 text-base font-medium leading-none has-[:disabled]:cursor-not-allowed has-[:disabled]:bg-[var(--gray-20)] has-[:disabled]:text-[var(--gray-60)]"}),[e.createVNode(e.unref(r.CheckboxRoot),e.mergeProps(e.unref(s),{id:t.name,class:e.unref(i.cn)(`h-4 w-4 shrink-0 data-[state=checked]:border-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-white ${l.value}`,t.class)}),{default:e.withCtx(()=>[e.createVNode(e.unref(r.CheckboxIndicator),{class:"flex h-full w-full items-center justify-center text-current"},{default:e.withCtx(()=>[e.createVNode(e.unref(u),{class:"h-3 w-3"})]),_:1})]),_:1},16,["id","class"]),e.createElementVNode("span",null,e.toDisplayString(t.label),1)],16,f))}});module.exports=p;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, computed as l, openBlock as m, createElementBlock as b, mergeProps as d, unref as e, createVNode as a, withCtx as n, createElementVNode as h, toDisplayString as g } from "vue";
|
|
2
2
|
import { useForwardPropsEmits as k, CheckboxRoot as v, CheckboxIndicator as x } from "./chunk-38.js";
|
|
3
|
-
import { cn as y } from "./chunk-
|
|
3
|
+
import { cn as y } from "./chunk-1572.js";
|
|
4
4
|
import w from "./chunk-313.js";
|
|
5
5
|
const _ = ["for"], I = /* @__PURE__ */ f({
|
|
6
6
|
__name: "LFormCheckbox",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./chunk-38.cjs"),i=require("./chunk-
|
|
1
|
+
"use strict";const e=require("vue"),o=require("./chunk-38.cjs"),i=require("./chunk-1572.cjs"),u=require("./chunk-313.cjs"),b=["for"],f={class:"flex items-center gap-2 box-border"},p=e.defineComponent({__name:"LCheckbox",props:{class:{},label:{},bordered:{type:Boolean},background:{type:Boolean},labelClass:{},type:{default:"regular"},defaultChecked:{type:Boolean},checked:{type:[Boolean,String]},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},id:{},asChild:{type:Boolean},as:{}},emits:["update:checked"],setup(n,{emit:l}){const t=n,c=l,s=e.computed(()=>{const{...r}=t;return r}),a=o.useForwardPropsEmits(s,c),d=e.computed(()=>s.value.disabled?"data-[state=checked]:bg-[var(--gray-60)]":"data-[state=checked]:bg-[var(--aqua)]");return(r,m)=>(e.openBlock(),e.createElementBlock("label",e.mergeProps(e.unref(a),{for:t.name,class:"label-wrapper cursor-pointer flex gap-2 items-center justify-between border rounded-lg p-2 text-base font-medium leading-none has-[:disabled]:cursor-not-allowed"}),[e.createElementVNode("div",f,[e.renderSlot(r.$slots,"icon",{},void 0,!0),e.createElementVNode("span",{class:e.normalizeClass(t.labelClass)},e.toDisplayString(t.label),3)]),e.createVNode(e.unref(o.CheckboxRoot),e.mergeProps(e.unref(a),{id:t.name,class:e.unref(i.cn)(`h-4 w-4 shrink-0 border-[var(--gray-70)] data-[state=checked]:border-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-white ${d.value} box-border`,t.class)}),{default:e.withCtx(()=>[e.createVNode(e.unref(o.CheckboxIndicator),{class:"flex h-full w-full items-center justify-center text-current"},{default:e.withCtx(()=>[e.createVNode(e.unref(u),{class:"h-3 w-3"})]),_:1})]),_:1},16,["id","class"])],16,b))}});module.exports=p;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, computed as l, openBlock as m, createElementBlock as h, mergeProps as d, unref as t, createElementVNode as n, renderSlot as g, normalizeClass as k, toDisplayString as v, createVNode as a, withCtx as c } from "vue";
|
|
2
2
|
import { useForwardPropsEmits as x, CheckboxRoot as y, CheckboxIndicator as w } from "./chunk-38.js";
|
|
3
|
-
import { cn as C } from "./chunk-
|
|
3
|
+
import { cn as C } from "./chunk-1572.js";
|
|
4
4
|
import _ from "./chunk-313.js";
|
|
5
5
|
const B = ["for"], E = { class: "flex items-center gap-2 box-border" }, N = /* @__PURE__ */ f({
|
|
6
6
|
__name: "LCheckbox",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./chunk-38.cjs"),l=require("./chunk-
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./chunk-38.cjs"),l=require("./chunk-1572.cjs"),i=["for"],c=e.defineComponent({__name:"LRadioGroupItem",props:{id:{},value:{},disabled:{type:Boolean},required:{type:Boolean},name:{},asChild:{type:Boolean},as:{},class:{},label:{},checked:{type:Boolean}},setup(s){const o=s,a=e.computed(()=>{const{...r}=o;return r}),d=t.useForwardProps(a),n=e.computed(()=>a.value.disabled?"data-[state=checked]:bg-[var(--gray-60)]":"data-[state=checked]:bg-[var(--link)]");return(r,u)=>(e.openBlock(),e.createElementBlock("label",{class:"cursor-pointer label-wrapper flex items-center gap-2 border rounded-full p-2 text-base font-medium leading-none has-[:disabled]:cursor-not-allowed has-[:disabled]:bg-[var(--gray-20)] has-[:disabled]:text-[var(--gray-60)]",for:r.id},[e.createVNode(e.unref(t.RadioGroupItem),e.mergeProps(e.unref(d),{class:e.unref(l.cn)(`aspect-square h-5 w-5 data-[state=checked]:border-0 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${n.value}`,o.class)}),{default:e.withCtx(()=>[e.createVNode(e.unref(t.RadioGroupIndicator),{class:"flex items-center justify-center text-white"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"icon",{},void 0,!0)]),_:3}),e.renderSlot(r.$slots,"cover",{},void 0,!0)]),_:3},16,["class"]),e.createElementVNode("span",null,e.toDisplayString(r.label),1)],8,i))}});module.exports=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as u, computed as t, openBlock as p, createElementBlock as f, createVNode as s, unref as r, mergeProps as b, withCtx as l, renderSlot as d, createElementVNode as m, toDisplayString as g } from "vue";
|
|
2
2
|
import { useForwardProps as y, RadioGroupItem as h, RadioGroupIndicator as v } from "./chunk-38.js";
|
|
3
|
-
import { cn as w } from "./chunk-
|
|
3
|
+
import { cn as w } from "./chunk-1572.js";
|
|
4
4
|
const k = ["for"], C = /* @__PURE__ */ u({
|
|
5
5
|
__name: "LRadioGroupItem",
|
|
6
6
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),m=require("./chunk-35.cjs"),b=require("./chunk-36.cjs"),x=require("./chunk-1580.cjs"),C=require("./chunk-1581.cjs"),B=require("./chunk-1582.cjs"),I=require("./chunk-1583.cjs"),q=require("./chunk-1584.cjs"),N=require("./chunk-1585.cjs"),V={class:"w-full h-full sm:auto flex flex-col relative justify-center items-center"},E={class:"top-1 z-20 w-full flex items-center justify-center absolute"},T={class:"text-white bg-gray-90 font-bold rounded-2xl px-3 py-1"},j=["onClick"],L={key:0,class:"absolute bottom-5 sm:bottom-7 left-1/2 transform -translate-x-1/2 bg-cyan-aqua h-1 w-14 rounded-full"},S=e.defineComponent({__name:"LCarousel",props:{images:{},startIndex:{},showThumbnails:{type:Boolean},zoom:{type:Boolean}},setup(p,{expose:f}){const l=p,_=e.ref(l.images.length),a=e.ref(),o=e.ref(),c=e.ref(0),r=e.ref(0),v=e.computed(()=>r.value===c.value),h=e.computed(()=>r.value===1),i=e.computed(()=>r.value-1),d=e.computed(()=>c.value>5),g=e.computed(()=>!l?.startIndex||l?.startIndex>l.images.length?0:l.startIndex-1),k=e.computed(()=>l.images[r.value-1]);f({currentImage:k});function w(t){o.value=t}function y(t){o.value&&o.value.scrollTo(t)}return x.watchOnce(o,t=>{t&&(c.value=t.scrollSnapList().length,r.value=t.selectedScrollSnap()+1,t.on("select",()=>{r.value=t.selectedScrollSnap()+1}))}),e.watch(r,()=>{if(_.value<6||!a.value)return;const u=a.value.children;(u[r.value-1]?u[r.value-1]:u[0]).scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),(t,u)=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",E,[e.createElementVNode("span",T,e.toDisplayString(r.value)+" / "+e.toDisplayString(_.value),1)]),e.createVNode(e.unref(C),{class:e.normalizeClass(["relative w-full",{grow:!t.showThumbnails,"h-4/5":t.showThumbnails}]),opts:{startIndex:g.value},onInitApi:w},{default:e.withCtx(()=>[e.createVNode(e.unref(B),{class:"h-full w-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.images,(n,s)=>(e.openBlock(),e.createBlock(e.unref(I),{key:s,class:"flex justify-center items-center w-full h-full"},{default:e.withCtx(()=>[l?.zoom?(e.openBlock(),e.createBlock(b,{key:0,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(m,{src:n.url,alt:n.name,class:"w-full h-full rounded object-contain"},null,8,["src","alt"])]),_:2},1024)):(e.openBlock(),e.createBlock(m,{key:1,src:n.url,alt:n.name,class:"w-full h-full rounded object-contain"},null,8,["src","alt"]))]),_:2},1024))),128))]),_:1}),e.createVNode(e.unref(q)),e.createVNode(e.unref(N))]),_:1},8,["class","opts"]),l?.showThumbnails?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["relative w-full max-w-md flex h-1/5",{"gradient-ltr":d.value,"gradient-hidden-left":d.value&&h.value,"gradient-hidden-right":d.value&&v.value}])},[e.createElementVNode("div",{ref_key:"thumbnails",ref:a,class:"h-full w-full flex overflow-x-auto no-scrollbar"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.images,(n,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"pl-0 shrink-0 grow-0 basis-1/5 cursor-pointer rounded relative flex items-center justify-center",onClick:z=>y(s)},[e.createVNode(m,{src:n.url,alt:n.name,class:e.normalizeClass(["w-full aspect-square object-cover rounded",{"border-2 border-cyan-aqua rounded":s===i.value,"p-2":s!==i.value}])},null,8,["src","alt","class"]),s===i.value?(e.openBlock(),e.createElementBlock("div",L)):e.createCommentVNode("",!0)],8,j))),128))],512)],2)):e.createCommentVNode("",!0)]))}});module.exports=S;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as q, ref as c, computed as o, watch as N, openBlock as s, createElementBlock as r, createElementVNode as b, toDisplayString as k, createVNode as u, unref as i, normalizeClass as w, withCtx as d, Fragment as I, renderList as C, createBlock as g, createCommentVNode as T } from "vue";
|
|
2
2
|
import y from "./chunk-35.js";
|
|
3
|
-
import
|
|
4
|
-
import { watchOnce as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
3
|
+
import A from "./chunk-36.js";
|
|
4
|
+
import { watchOnce as F } from "./chunk-1580.js";
|
|
5
|
+
import Q from "./chunk-1581.js";
|
|
6
|
+
import D from "./chunk-1582.js";
|
|
7
|
+
import M from "./chunk-1583.js";
|
|
8
|
+
import O from "./chunk-1584.js";
|
|
9
|
+
import G from "./chunk-1585.js";
|
|
10
|
+
const H = { class: "w-full h-full sm:auto flex flex-col relative justify-center items-center" }, J = { class: "top-1 z-20 w-full flex items-center justify-center absolute" }, K = { class: "text-white bg-gray-90 font-bold rounded-2xl px-3 py-1" }, P = ["onClick"], R = {
|
|
11
11
|
key: 0,
|
|
12
|
-
class: "absolute bottom-
|
|
13
|
-
},
|
|
12
|
+
class: "absolute bottom-5 sm:bottom-7 left-1/2 transform -translate-x-1/2 bg-cyan-aqua h-1 w-14 rounded-full"
|
|
13
|
+
}, ae = /* @__PURE__ */ q({
|
|
14
14
|
__name: "LCarousel",
|
|
15
15
|
props: {
|
|
16
16
|
images: {},
|
|
@@ -18,63 +18,68 @@ const P = { class: "w-full flex flex-col justify-center items-center" }, Q = { c
|
|
|
18
18
|
showThumbnails: { type: Boolean },
|
|
19
19
|
zoom: { type: Boolean }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const t =
|
|
23
|
-
|
|
24
|
-
currentImage:
|
|
21
|
+
setup($, { expose: j }) {
|
|
22
|
+
const t = $, x = c(t.images.length), h = c(), m = c(), v = c(0), l = c(0), S = o(() => l.value === v.value), B = o(() => l.value === 1), p = o(() => l.value - 1), _ = o(() => v.value > 5), z = o(() => !t?.startIndex || t?.startIndex > t.images.length ? 0 : t.startIndex - 1), E = o(() => t.images[l.value - 1]);
|
|
23
|
+
j({
|
|
24
|
+
currentImage: E
|
|
25
25
|
});
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
function E(e) {
|
|
30
|
-
f.value = e;
|
|
26
|
+
function L(e) {
|
|
27
|
+
m.value = e;
|
|
31
28
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
i.value = u.value.selectedScrollSnap();
|
|
35
|
-
const e = Math.max(0, i.value - 1);
|
|
36
|
-
f.value.scrollTo(e);
|
|
37
|
-
}
|
|
38
|
-
function F(e) {
|
|
39
|
-
if (!u.value || !f.value) return;
|
|
40
|
-
u.value.scrollTo(e), i.value = e;
|
|
41
|
-
const b = Math.max(0, e - 1);
|
|
42
|
-
f.value.scrollTo(b);
|
|
29
|
+
function V(e) {
|
|
30
|
+
m.value && m.value.scrollTo(e);
|
|
43
31
|
}
|
|
44
|
-
return
|
|
45
|
-
e && (
|
|
46
|
-
|
|
32
|
+
return F(m, (e) => {
|
|
33
|
+
e && (v.value = e.scrollSnapList().length, l.value = e.selectedScrollSnap() + 1, e.on("select", () => {
|
|
34
|
+
l.value = e.selectedScrollSnap() + 1;
|
|
47
35
|
}));
|
|
48
|
-
}), (
|
|
49
|
-
|
|
50
|
-
|
|
36
|
+
}), N(l, () => {
|
|
37
|
+
if (x.value < 6 || !h.value) return;
|
|
38
|
+
const f = h.value.children;
|
|
39
|
+
(f[l.value - 1] ? f[l.value - 1] : f[0]).scrollIntoView({
|
|
40
|
+
behavior: "smooth",
|
|
41
|
+
block: "center",
|
|
42
|
+
inline: "center"
|
|
43
|
+
});
|
|
44
|
+
}), (e, f) => (s(), r("div", H, [
|
|
45
|
+
b("div", J, [
|
|
46
|
+
b("span", K, k(l.value) + " / " + k(x.value), 1)
|
|
47
|
+
]),
|
|
48
|
+
u(i(Q), {
|
|
49
|
+
class: w(["relative w-full", {
|
|
50
|
+
grow: !e.showThumbnails,
|
|
51
|
+
"h-4/5": e.showThumbnails
|
|
52
|
+
}]),
|
|
51
53
|
opts: {
|
|
52
|
-
startIndex:
|
|
54
|
+
startIndex: z.value
|
|
53
55
|
},
|
|
54
|
-
onInitApi:
|
|
56
|
+
onInitApi: L
|
|
55
57
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
default:
|
|
64
|
-
t?.zoom ? (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
default: d(() => [
|
|
59
|
+
u(i(D), { class: "h-full w-full" }, {
|
|
60
|
+
default: d(() => [
|
|
61
|
+
(s(!0), r(I, null, C(t.images, (n, a) => (s(), g(i(M), {
|
|
62
|
+
key: a,
|
|
63
|
+
class: "flex justify-center items-center w-full h-full"
|
|
64
|
+
}, {
|
|
65
|
+
default: d(() => [
|
|
66
|
+
t?.zoom ? (s(), g(A, {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "w-full h-full"
|
|
69
|
+
}, {
|
|
70
|
+
default: d(() => [
|
|
71
|
+
u(y, {
|
|
72
|
+
src: n.url,
|
|
73
|
+
alt: n.name,
|
|
74
|
+
class: "w-full h-full rounded object-contain"
|
|
70
75
|
}, null, 8, ["src", "alt"])
|
|
71
76
|
]),
|
|
72
77
|
_: 2
|
|
73
|
-
}, 1024)) : (
|
|
78
|
+
}, 1024)) : (s(), g(y, {
|
|
74
79
|
key: 1,
|
|
75
|
-
src:
|
|
76
|
-
alt:
|
|
77
|
-
class: "w-full h-full
|
|
80
|
+
src: n.url,
|
|
81
|
+
alt: n.name,
|
|
82
|
+
class: "w-full h-full rounded object-contain"
|
|
78
83
|
}, null, 8, ["src", "alt"]))
|
|
79
84
|
]),
|
|
80
85
|
_: 2
|
|
@@ -82,55 +87,44 @@ const P = { class: "w-full flex flex-col justify-center items-center" }, Q = { c
|
|
|
82
87
|
]),
|
|
83
88
|
_: 1
|
|
84
89
|
}),
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
u(i(O)),
|
|
91
|
+
u(i(G))
|
|
87
92
|
]),
|
|
88
93
|
_: 1
|
|
89
|
-
}, 8, ["opts"]),
|
|
90
|
-
t?.showThumbnails ? (
|
|
94
|
+
}, 8, ["class", "opts"]),
|
|
95
|
+
t?.showThumbnails ? (s(), r("div", {
|
|
91
96
|
key: 0,
|
|
92
|
-
class:
|
|
93
|
-
"gradient-ltr":
|
|
94
|
-
"gradient-hidden-left":
|
|
95
|
-
"gradient-hidden-right":
|
|
96
|
-
}])
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
]),
|
|
121
|
-
n === i.value ? (l(), _("div", W)) : C("", !0)
|
|
122
|
-
]),
|
|
123
|
-
_: 2
|
|
124
|
-
}, 1032, ["onClick"]))), 128))
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["style"])
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
}, 8, ["class"])) : C("", !0)
|
|
97
|
+
class: w(["relative w-full max-w-md flex h-1/5", {
|
|
98
|
+
"gradient-ltr": _.value,
|
|
99
|
+
"gradient-hidden-left": _.value && B.value,
|
|
100
|
+
"gradient-hidden-right": _.value && S.value
|
|
101
|
+
}])
|
|
102
|
+
}, [
|
|
103
|
+
b("div", {
|
|
104
|
+
ref_key: "thumbnails",
|
|
105
|
+
ref: h,
|
|
106
|
+
class: "h-full w-full flex overflow-x-auto no-scrollbar"
|
|
107
|
+
}, [
|
|
108
|
+
(s(!0), r(I, null, C(t.images, (n, a) => (s(), r("div", {
|
|
109
|
+
key: a,
|
|
110
|
+
class: "pl-0 shrink-0 grow-0 basis-1/5 cursor-pointer rounded relative flex items-center justify-center",
|
|
111
|
+
onClick: (U) => V(a)
|
|
112
|
+
}, [
|
|
113
|
+
u(y, {
|
|
114
|
+
src: n.url,
|
|
115
|
+
alt: n.name,
|
|
116
|
+
class: w(["w-full aspect-square object-cover rounded", {
|
|
117
|
+
"border-2 border-cyan-aqua rounded": a === p.value,
|
|
118
|
+
"p-2": a !== p.value
|
|
119
|
+
}])
|
|
120
|
+
}, null, 8, ["src", "alt", "class"]),
|
|
121
|
+
a === p.value ? (s(), r("div", R)) : T("", !0)
|
|
122
|
+
], 8, P))), 128))
|
|
123
|
+
], 512)
|
|
124
|
+
], 2)) : T("", !0)
|
|
131
125
|
]));
|
|
132
126
|
}
|
|
133
127
|
});
|
|
134
128
|
export {
|
|
135
|
-
|
|
129
|
+
ae as default
|
|
136
130
|
};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})
|
|
2
|
-
* @license lucide-vue-next v0.395.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const t=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();exports.toKebabCase=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-1595.cjs"),t=require("./chunk-1596.cjs");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
const a = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1
|
+
import { clsx as o } from "./chunk-1595.js";
|
|
2
|
+
import { twMerge as t } from "./chunk-1596.js";
|
|
3
|
+
function n(...r) {
|
|
4
|
+
return t(o(r));
|
|
5
|
+
}
|
|
8
6
|
export {
|
|
9
|
-
|
|
7
|
+
n as cn
|
|
10
8
|
};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
* @license lucide-vue-next v0.395.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/var t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};module.exports=t;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(r){var e,o,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(o=u(r[e]))&&(t&&(t+=" "),t+=o);else for(e in r)r[e]&&(t&&(t+=" "),t+=e);return t}function f(){for(var r,e,o=0,t="";o<arguments.length;)(r=arguments[o++])&&(e=u(r))&&(t&&(t+=" "),t+=e);return t}exports.clsx=f;exports.default=f;
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
"stroke-width": 2,
|
|
15
|
-
"stroke-linecap": "round",
|
|
16
|
-
"stroke-linejoin": "round"
|
|
17
|
-
};
|
|
1
|
+
function o(r) {
|
|
2
|
+
var f, n, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) for (f = 0; f < r.length; f++) r[f] && (n = o(r[f])) && (t && (t += " "), t += n);
|
|
5
|
+
else for (f in r) r[f] && (t && (t += " "), t += f);
|
|
6
|
+
return t;
|
|
7
|
+
}
|
|
8
|
+
function a() {
|
|
9
|
+
for (var r, f, n = 0, t = ""; n < arguments.length; ) (r = arguments[n++]) && (f = o(r)) && (t && (t += " "), t += f);
|
|
10
|
+
return t;
|
|
11
|
+
}
|
|
18
12
|
export {
|
|
19
|
-
|
|
13
|
+
a as clsx,
|
|
14
|
+
a as default
|
|
20
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const t=require("./chunk-33.cjs");module.exports=t;
|
|
@@ -1,55 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createInjectionState as D, injectLocal as M, provideLocal as T, watchOnce as U } from "./chunk-1589.js";
|
|
3
|
-
import { getCurrentInstance as J, ref as $, watch as S, nextTick as j, computed as w } from "vue";
|
|
4
|
-
function E(n) {
|
|
5
|
-
return JSON.parse(JSON.stringify(n));
|
|
6
|
-
}
|
|
7
|
-
function L(n, i, N, O = {}) {
|
|
8
|
-
var s, a, f;
|
|
9
|
-
const {
|
|
10
|
-
clone: c = !1,
|
|
11
|
-
passive: V = !1,
|
|
12
|
-
eventName: _,
|
|
13
|
-
deep: d = !1,
|
|
14
|
-
defaultValue: b,
|
|
15
|
-
shouldEmit: m
|
|
16
|
-
} = O, t = J(), p = N || t?.emit || ((s = t?.$emit) == null ? void 0 : s.bind(t)) || ((f = (a = t?.proxy) == null ? void 0 : a.$emit) == null ? void 0 : f.bind(t?.proxy));
|
|
17
|
-
let o = _;
|
|
18
|
-
o = o || `update:${i.toString()}`;
|
|
19
|
-
const v = (e) => c ? typeof c == "function" ? c(e) : E(e) : e, g = () => h(n[i]) ? v(n[i]) : b, x = (e) => {
|
|
20
|
-
m ? m(e) && p(o, e) : p(o, e);
|
|
21
|
-
};
|
|
22
|
-
if (V) {
|
|
23
|
-
const e = g(), u = $(e);
|
|
24
|
-
let l = !1;
|
|
25
|
-
return S(
|
|
26
|
-
() => n[i],
|
|
27
|
-
(r) => {
|
|
28
|
-
l || (l = !0, u.value = v(r), j(() => l = !1));
|
|
29
|
-
}
|
|
30
|
-
), S(
|
|
31
|
-
u,
|
|
32
|
-
(r) => {
|
|
33
|
-
!l && (r !== n[i] || d) && x(r);
|
|
34
|
-
},
|
|
35
|
-
{ deep: d }
|
|
36
|
-
), u;
|
|
37
|
-
} else
|
|
38
|
-
return w({
|
|
39
|
-
get() {
|
|
40
|
-
return g();
|
|
41
|
-
},
|
|
42
|
-
set(e) {
|
|
43
|
-
x(e);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
1
|
+
import f from "./chunk-33.js";
|
|
47
2
|
export {
|
|
48
|
-
|
|
49
|
-
D as createInjectionState,
|
|
50
|
-
M as injectLocal,
|
|
51
|
-
h as isDef,
|
|
52
|
-
T as provideLocal,
|
|
53
|
-
L as useVModel,
|
|
54
|
-
U as watchOnce
|
|
3
|
+
f as default
|
|
55
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunk-1523.cjs"),t=e.cva("bg-accent font-bold inline-flex items-center justify-center rounded-md text-sm ring-offset-background transition-colors hoverable:bg-muted hoverable:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground data-[state=on]:[color:#1765C1] data-[state=on]:[background-color:#D7E9FF]",{variants:{variant:{default:"text-accent-foreground",outline:"border border-input"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}});exports.toggleVariants=t;
|
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { cva as e } from "./chunk-1523.js";
|
|
2
|
+
const o = e(
|
|
3
|
+
"bg-accent font-bold inline-flex items-center justify-center rounded-md text-sm ring-offset-background transition-colors hoverable:bg-muted hoverable:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground data-[state=on]:[color:#1765C1] data-[state=on]:[background-color:#D7E9FF]",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "text-accent-foreground",
|
|
8
|
+
outline: "border border-input"
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
default: "h-10 px-3",
|
|
12
|
+
sm: "h-9 px-2.5",
|
|
13
|
+
lg: "h-11 px-5"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
variant: "default",
|
|
18
|
+
size: "default"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
|
6
22
|
export {
|
|
7
|
-
|
|
23
|
+
o as toggleVariants
|
|
8
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunk-1580.cjs"),i=require("vue");function h(n){return JSON.parse(JSON.stringify(n))}function J(n,c,j,x={}){var d,f,v;const{clone:a=!1,passive:N=!1,eventName:V,deep:g=!1,defaultValue:w,shouldEmit:m}=x,t=i.getCurrentInstance(),S=j||t?.emit||((d=t?.$emit)==null?void 0:d.bind(t))||((v=(f=t?.proxy)==null?void 0:f.$emit)==null?void 0:v.bind(t?.proxy));let l=V;l=l||`update:${c.toString()}`;const p=e=>a?typeof a=="function"?a(e):h(e):e,O=()=>o.isDef(n[c])?p(n[c]):w,b=e=>{m?m(e)&&S(l,e):S(l,e)};if(N){const e=O(),s=i.ref(e);let r=!1;return i.watch(()=>n[c],u=>{r||(r=!0,s.value=p(u),i.nextTick(()=>r=!1))}),i.watch(s,u=>{!r&&(u!==n[c]||g)&&b(u)},{deep:g}),s}else return i.computed({get(){return O()},set(e){b(e)}})}exports.createInjectionState=o.createInjectionState;exports.injectLocal=o.injectLocal;exports.isDef=o.isDef;exports.provideLocal=o.provideLocal;exports.watchOnce=o.watchOnce;exports.cloneFnJSON=h;exports.useVModel=J;
|