@layers.digital/layers-design-system-vue3 1.18.3 → 1.18.4

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.
Files changed (139) hide show
  1. package/dist/chunks/chunk-12.cjs +1 -1
  2. package/dist/chunks/chunk-12.js +2 -2
  3. package/dist/chunks/chunk-15.cjs +1 -1
  4. package/dist/chunks/chunk-15.js +1 -1
  5. package/dist/chunks/chunk-1519.cjs +1 -1
  6. package/dist/chunks/chunk-1519.js +2 -2
  7. package/dist/chunks/chunk-1523.cjs +1 -1
  8. package/dist/chunks/chunk-1523.js +1 -1
  9. package/dist/chunks/chunk-1533.cjs +1 -1
  10. package/dist/chunks/chunk-1533.js +1 -1
  11. package/dist/chunks/chunk-1536.cjs +1 -1
  12. package/dist/chunks/chunk-1536.js +1 -1
  13. package/dist/chunks/chunk-1539.cjs +1 -1
  14. package/dist/chunks/chunk-1539.js +1 -1
  15. package/dist/chunks/chunk-1545.cjs +1 -1
  16. package/dist/chunks/chunk-1545.js +6 -6
  17. package/dist/chunks/chunk-1572.cjs +6 -1
  18. package/dist/chunks/chunk-1572.js +8 -176
  19. package/dist/chunks/chunk-1573.cjs +6 -1
  20. package/dist/chunks/chunk-1573.js +18 -76
  21. package/dist/chunks/chunk-1574.cjs +1 -1
  22. package/dist/chunks/chunk-1574.js +21 -95
  23. package/dist/chunks/chunk-1575.cjs +1 -1
  24. package/dist/chunks/chunk-1575.js +5 -105
  25. package/dist/chunks/chunk-1576.cjs +1 -1
  26. package/dist/chunks/chunk-1576.js +11 -126
  27. package/dist/chunks/chunk-1577.cjs +1 -1
  28. package/dist/chunks/chunk-1577.js +2 -371
  29. package/dist/chunks/chunk-1578.cjs +1 -1
  30. package/dist/chunks/chunk-1578.js +2 -23
  31. package/dist/chunks/chunk-1579.cjs +1 -1
  32. package/dist/chunks/chunk-1579.js +52 -5
  33. package/dist/chunks/chunk-1580.cjs +1 -1
  34. package/dist/chunks/chunk-1580.js +21 -34
  35. package/dist/chunks/chunk-1581.cjs +1 -1
  36. package/dist/chunks/chunk-1581.js +5 -59
  37. package/dist/chunks/chunk-1582.cjs +1 -1
  38. package/dist/chunks/chunk-1582.js +176 -29
  39. package/dist/chunks/chunk-1583.cjs +1 -1
  40. package/dist/chunks/chunk-1583.js +75 -25
  41. package/dist/chunks/chunk-1584.cjs +1 -1
  42. package/dist/chunks/chunk-1584.js +95 -33
  43. package/dist/chunks/chunk-1585.cjs +1 -1
  44. package/dist/chunks/chunk-1585.js +105 -34
  45. package/dist/chunks/chunk-1586.cjs +1 -1
  46. package/dist/chunks/chunk-1586.js +128 -5
  47. package/dist/chunks/chunk-1587.cjs +1 -1
  48. package/dist/chunks/chunk-1587.js +368 -50
  49. package/dist/chunks/chunk-1588.cjs +1 -1
  50. package/dist/chunks/chunk-1588.js +34 -21
  51. package/dist/chunks/chunk-1589.cjs +1 -1
  52. package/dist/chunks/chunk-1589.js +57 -32
  53. package/dist/chunks/chunk-1590.cjs +1 -1
  54. package/dist/chunks/chunk-1590.js +29 -13
  55. package/dist/chunks/chunk-1591.cjs +1 -1
  56. package/dist/chunks/chunk-1591.js +26 -2
  57. package/dist/chunks/chunk-1592.cjs +1 -1
  58. package/dist/chunks/chunk-1592.js +35 -2
  59. package/dist/chunks/chunk-1593.cjs +1 -0
  60. package/dist/chunks/chunk-1593.js +37 -0
  61. package/dist/chunks/chunk-1594.cjs +1 -15
  62. package/dist/chunks/chunk-1594.js +33 -716
  63. package/dist/chunks/chunk-1596.cjs +15 -6
  64. package/dist/chunks/chunk-1596.js +716 -17
  65. package/dist/chunks/chunk-1600.cjs +1 -1
  66. package/dist/chunks/chunk-1600.js +1 -1
  67. package/dist/chunks/chunk-1601.cjs +1 -1
  68. package/dist/chunks/chunk-1601.js +1 -1
  69. package/dist/chunks/chunk-1602.cjs +1 -1
  70. package/dist/chunks/chunk-1602.js +1 -1
  71. package/dist/chunks/chunk-1603.cjs +1 -1
  72. package/dist/chunks/chunk-1603.js +1 -1
  73. package/dist/chunks/chunk-1604.cjs +1 -1
  74. package/dist/chunks/chunk-1604.js +1 -1
  75. package/dist/chunks/chunk-1605.cjs +1 -1
  76. package/dist/chunks/chunk-1605.js +1 -1
  77. package/dist/chunks/chunk-1609.cjs +1 -1
  78. package/dist/chunks/chunk-1609.js +1 -1
  79. package/dist/chunks/chunk-1610.cjs +1 -1
  80. package/dist/chunks/chunk-1610.js +2 -2
  81. package/dist/chunks/chunk-1616.cjs +1 -1
  82. package/dist/chunks/chunk-1616.js +1 -1
  83. package/dist/chunks/chunk-21.cjs +1 -1
  84. package/dist/chunks/chunk-21.js +1 -1
  85. package/dist/chunks/chunk-22.cjs +1 -1
  86. package/dist/chunks/chunk-22.js +1 -1
  87. package/dist/chunks/chunk-23.cjs +1 -1
  88. package/dist/chunks/chunk-23.js +1 -1
  89. package/dist/chunks/chunk-24.cjs +1 -1
  90. package/dist/chunks/chunk-24.js +1 -1
  91. package/dist/chunks/chunk-25.cjs +1 -1
  92. package/dist/chunks/chunk-25.js +1 -1
  93. package/dist/chunks/chunk-29.cjs +1 -1
  94. package/dist/chunks/chunk-29.js +1 -1
  95. package/dist/chunks/chunk-3.cjs +1 -1
  96. package/dist/chunks/chunk-3.js +1 -1
  97. package/dist/chunks/chunk-30.cjs +1 -1
  98. package/dist/chunks/chunk-30.js +1 -1
  99. package/dist/chunks/chunk-33.cjs +1 -1
  100. package/dist/chunks/chunk-33.js +1 -1
  101. package/dist/chunks/chunk-34.cjs +1 -1
  102. package/dist/chunks/chunk-34.js +1 -1
  103. package/dist/chunks/chunk-35.cjs +1 -1
  104. package/dist/chunks/chunk-35.js +1 -1
  105. package/dist/chunks/chunk-36.cjs +1 -1
  106. package/dist/chunks/chunk-36.js +1 -1
  107. package/dist/chunks/chunk-37.cjs +1 -1
  108. package/dist/chunks/chunk-37.js +1 -1
  109. package/dist/chunks/chunk-38.cjs +1 -1
  110. package/dist/chunks/chunk-38.js +6 -6
  111. package/dist/chunks/chunk-39.cjs +1 -1
  112. package/dist/chunks/chunk-39.js +1 -1
  113. package/dist/chunks/chunk-4.cjs +1 -1
  114. package/dist/chunks/chunk-4.js +2 -2
  115. package/dist/chunks/chunk-40.cjs +1 -1
  116. package/dist/chunks/chunk-40.js +1 -1
  117. package/dist/chunks/chunk-41.cjs +1 -1
  118. package/dist/chunks/chunk-41.js +1 -1
  119. package/dist/chunks/chunk-44.cjs +1 -1
  120. package/dist/chunks/chunk-44.js +1 -1
  121. package/dist/chunks/chunk-45.cjs +1 -1
  122. package/dist/chunks/chunk-45.js +1 -1
  123. package/dist/chunks/chunk-46.cjs +1 -1
  124. package/dist/chunks/chunk-46.js +1 -1
  125. package/dist/chunks/chunk-47.cjs +1 -1
  126. package/dist/chunks/chunk-47.js +1 -1
  127. package/dist/chunks/chunk-48.cjs +1 -1
  128. package/dist/chunks/chunk-48.js +1 -1
  129. package/dist/chunks/chunk-49.cjs +1 -1
  130. package/dist/chunks/chunk-49.js +1 -1
  131. package/dist/chunks/chunk-5.cjs +1 -1
  132. package/dist/chunks/chunk-5.js +2 -2
  133. package/dist/chunks/chunk-6.cjs +1 -1
  134. package/dist/chunks/chunk-6.js +3 -3
  135. package/dist/chunks/chunk-7.cjs +1 -1
  136. package/dist/chunks/chunk-7.js +2 -2
  137. package/package.json +1 -4
  138. package/dist/chunks/chunk-1595.cjs +0 -6
  139. package/dist/chunks/chunk-1595.js +0 -10
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),a=require("./chunk-1587.cjs"),i=require("./chunk-1579.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;
1
+ "use strict";const e=require("vue"),a=require("./chunk-1579.cjs"),i=require("./chunk-1575.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;
@@ -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-1587.js";
3
- import { cn as b } from "./chunk-1579.js";
2
+ import { useVModel as p } from "./chunk-1579.js";
3
+ import { cn as b } from "./chunk-1575.js";
4
4
  const _ = /* @__PURE__ */ u({
5
5
  __name: "LTextarea",
6
6
  props: {
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("./chunk-38.cjs"),u=require("./chunk-1579.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;
1
+ "use strict";const e=require("vue"),r=require("./chunk-38.cjs"),u=require("./chunk-1575.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;
@@ -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-1579.js";
3
+ import { cn as g } from "./chunk-1575.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-1595.cjs"),e=require("./chunk-1596.cjs");/**
1
+ "use strict";const u=require("vue"),d=require("./chunk-1572.cjs"),e=require("./chunk-1573.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,6 +1,6 @@
1
1
  import { h as a } from "vue";
2
- import { toKebabCase as l } from "./chunk-1595.js";
3
- import t from "./chunk-1596.js";
2
+ import { toKebabCase as l } from "./chunk-1572.js";
3
+ import t from "./chunk-1573.js";
4
4
  /**
5
5
  * @license lucide-vue-next v0.395.0 - ISC
6
6
  *
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./chunk-1590.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./chunk-1576.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,4 +1,4 @@
1
- import { clsx as O } from "./chunk-1590.js";
1
+ import { clsx as O } from "./chunk-1576.js";
2
2
  const m = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
3
  var r;
4
4
  if (l?.variants == null) return y(e, n?.class, n?.className);
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("./chunk-38.cjs"),i=require("./chunk-1579.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
+ "use strict";const e=require("vue"),r=require("./chunk-38.cjs"),i=require("./chunk-1575.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-1579.js";
3
+ import { cn as y } from "./chunk-1575.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-1579.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
+ "use strict";const e=require("vue"),o=require("./chunk-38.cjs"),i=require("./chunk-1575.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-1579.js";
3
+ import { cn as C } from "./chunk-1575.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-1579.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
+ "use strict";const e=require("vue"),t=require("./chunk-38.cjs"),l=require("./chunk-1575.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-1579.js";
3
+ import { cn as w } from "./chunk-1575.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"),m=require("./chunk-35.cjs"),x=require("./chunk-36.cjs"),b=require("./chunk-1580.cjs"),C=require("./chunk-1581.cjs"),B=require("./chunk-1582.cjs"),I=require("./chunk-1583.cjs"),N=require("./chunk-1584.cjs"),V=require("./chunk-1585.cjs"),q={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={class:"w-full aspect-square relative"},S={key:0,class:"absolute bottom-[-12px] left-1/2 transform -translate-x-1/2 bg-cyan-aqua h-1 w-14 rounded-full"},z=e.defineComponent({__name:"LCarousel",props:{images:{},startIndex:{},showThumbnails:{type:Boolean},zoom:{type:Boolean}},setup(f,{expose:p}){const l=f,_=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),k=e.computed(()=>!l?.startIndex||l?.startIndex>l.images.length?0:l.startIndex-1),g=e.computed(()=>l.images[r.value-1]);p({currentImage:g});function w(t){o.value=t}function y(t){o.value&&o.value.scrollTo(t)}return b.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",q,[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",{"h-full":!t.showThumbnails,"h-4/5":t.showThumbnails}]),opts:{startIndex:k.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,(s,n)=>(e.openBlock(),e.createBlock(e.unref(I),{key:n,class:"flex justify-center items-center w-full h-full"},{default:e.withCtx(()=>[l?.zoom?(e.openBlock(),e.createBlock(x,{key:0,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(m,{src:s.url,alt:s.name,class:"w-full h-full rounded object-contain"},null,8,["src","alt"])]),_:2},1024)):(e.openBlock(),e.createBlock(m,{key:1,src:s.url,alt:s.name,class:"w-full h-full rounded object-contain"},null,8,["src","alt"]))]),_:2},1024))),128))]),_:1}),e.createVNode(e.unref(N)),e.createVNode(e.unref(V))]),_: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:"w-full flex overflow-x-auto no-scrollbar"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.images,(s,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"pl-0 shrink-0 grow-0 basis-1/5 cursor-pointer rounded relative flex items-center justify-center",onClick:F=>y(n)},[e.createElementVNode("div",L,[e.createVNode(m,{src:s.url,alt:s.name,class:e.normalizeClass(["w-full h-full object-cover rounded",{"border-2 border-cyan-aqua rounded":n===i.value,"p-2":n!==i.value}])},null,8,["src","alt","class"]),n===i.value?(e.openBlock(),e.createElementBlock("div",S)):e.createCommentVNode("",!0)])],8,j))),128))],512)],2)):e.createCommentVNode("",!0)]))}});module.exports=z;
1
+ "use strict";const e=require("vue"),m=require("./chunk-35.cjs"),x=require("./chunk-36.cjs"),b=require("./chunk-1588.cjs"),C=require("./chunk-1589.cjs"),B=require("./chunk-1590.cjs"),I=require("./chunk-1591.cjs"),N=require("./chunk-1592.cjs"),V=require("./chunk-1593.cjs"),q={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={class:"w-full aspect-square relative"},S={key:0,class:"absolute bottom-[-12px] left-1/2 transform -translate-x-1/2 bg-cyan-aqua h-1 w-14 rounded-full"},z=e.defineComponent({__name:"LCarousel",props:{images:{},startIndex:{},showThumbnails:{type:Boolean},zoom:{type:Boolean}},setup(f,{expose:p}){const l=f,_=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),k=e.computed(()=>!l?.startIndex||l?.startIndex>l.images.length?0:l.startIndex-1),g=e.computed(()=>l.images[r.value-1]);p({currentImage:g});function w(t){o.value=t}function y(t){o.value&&o.value.scrollTo(t)}return b.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",q,[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",{"h-full":!t.showThumbnails,"h-4/5":t.showThumbnails}]),opts:{startIndex:k.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,(s,n)=>(e.openBlock(),e.createBlock(e.unref(I),{key:n,class:"flex justify-center items-center w-full h-full"},{default:e.withCtx(()=>[l?.zoom?(e.openBlock(),e.createBlock(x,{key:0,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(m,{src:s.url,alt:s.name,class:"w-full h-full rounded object-contain"},null,8,["src","alt"])]),_:2},1024)):(e.openBlock(),e.createBlock(m,{key:1,src:s.url,alt:s.name,class:"w-full h-full rounded object-contain"},null,8,["src","alt"]))]),_:2},1024))),128))]),_:1}),e.createVNode(e.unref(N)),e.createVNode(e.unref(V))]),_: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:"w-full flex overflow-x-auto no-scrollbar"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.images,(s,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"pl-0 shrink-0 grow-0 basis-1/5 cursor-pointer rounded relative flex items-center justify-center",onClick:F=>y(n)},[e.createElementVNode("div",L,[e.createVNode(m,{src:s.url,alt:s.name,class:e.normalizeClass(["w-full h-full object-cover rounded",{"border-2 border-cyan-aqua rounded":n===i.value,"p-2":n!==i.value}])},null,8,["src","alt","class"]),n===i.value?(e.openBlock(),e.createElementBlock("div",S)):e.createCommentVNode("",!0)])],8,j))),128))],512)],2)):e.createCommentVNode("",!0)]))}});module.exports=z;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as q, ref as c, computed as r, watch as N, openBlock as s, createElementBlock as o, createElementVNode as d, toDisplayString as k, createVNode as u, unref as i, normalizeClass as b, withCtx as h, Fragment as I, renderList as C, createBlock as x, createCommentVNode as T } from "vue";
2
2
  import y from "./chunk-35.js";
3
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";
4
+ import { watchOnce as F } from "./chunk-1588.js";
5
+ import Q from "./chunk-1589.js";
6
+ import D from "./chunk-1590.js";
7
+ import M from "./chunk-1591.js";
8
+ import O from "./chunk-1592.js";
9
+ import G from "./chunk-1593.js";
10
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 = { class: "w-full aspect-square relative" }, U = {
11
11
  key: 0,
12
12
  class: "absolute bottom-[-12px] left-1/2 transform -translate-x-1/2 bg-cyan-aqua h-1 w-14 rounded-full"
@@ -1 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./chunk-1607.cjs"),l=require("./chunk-1573.cjs"),m=require("./chunk-1608.cjs"),v=require("./chunk-1609.cjs"),o=require("./chunk-1610.cjs"),y=require("./chunk-1611.cjs");function f(h){let t=typeof h[0]=="object"?h.shift():new v.GregorianCalendar,e;if(typeof h[0]=="string")e=h.shift();else{let r=t.getEras();e=r[r.length-1]}let s=h.shift(),n=h.shift(),a=h.shift();return[t,e,s,n,a]}var T=new WeakMap;class c{copy(){return this.era?new c(this.calendar,this.era,this.year,this.month,this.day):new c(this.calendar,this.year,this.month,this.day)}add(t){return i.add(this,t)}subtract(t){return i.subtract(this,t)}set(t){return i.set(this,t)}cycle(t,e,s){return i.cycleDate(this,t,e,s)}toDate(t){return o.toDate(this,t)}toString(){return m.dateToString(this)}compare(t){return l.compareDate(this,t)}constructor(...t){y._(this,T,{writable:!0,value:void 0});let[e,s,n,a,r]=f(t);this.calendar=e,this.era=s,this.year=n,this.month=a,this.day=r,i.constrain(this)}}var w=new WeakMap;class u{copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new u(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return i.add(this,t)}subtract(t){return i.subtract(this,t)}set(t){return i.set(i.setTime(this,t),t)}cycle(t,e,s){switch(t){case"era":case"year":case"month":case"day":return i.cycleDate(this,t,e,s);default:return i.cycleTime(this,t,e,s)}}toDate(t,e){return o.toDate(this,t,e)}toString(){return m.dateTimeToString(this)}compare(t){let e=l.compareDate(this,t);return e===0?l.compareTime(this,o.toCalendarDateTime(t)):e}constructor(...t){y._(this,w,{writable:!0,value:void 0});let[e,s,n,a,r]=f(t);this.calendar=e,this.era=s,this.year=n,this.month=a,this.day=r,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,i.constrain(this)}}var b=new WeakMap;class d{copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new d(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return i.addZoned(this,t)}subtract(t){return i.subtractZoned(this,t)}set(t,e){return i.setZoned(this,t,e)}cycle(t,e,s){return i.cycleZoned(this,t,e,s)}toDate(){return o.zonedToDate(this)}toString(){return m.zonedDateTimeToString(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-o.toZoned(t,this.timeZone).toDate().getTime()}constructor(...t){y._(this,b,{writable:!0,value:void 0});let[e,s,n,a,r]=f(t),D=t.shift(),p=t.shift();this.calendar=e,this.era=s,this.year=n,this.month=a,this.day=r,this.timeZone=D,this.offset=p,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,i.constrain(this)}}exports.CalendarDate=c;exports.CalendarDateTime=u;exports.ZonedDateTime=d;
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,178 +1,10 @@
1
- import { add as l, subtract as u, set as m, cycleDate as y, constrain as c, setTime as v, cycleTime as w, addZoned as T, subtractZoned as Z, setZoned as S, cycleZoned as C } from "./chunk-1607.js";
2
- import { compareDate as p, compareTime as k } from "./chunk-1573.js";
3
- import { dateToString as M, dateTimeToString as W, zonedDateTimeToString as z } from "./chunk-1608.js";
4
- import { GregorianCalendar as A } from "./chunk-1609.js";
5
- import { toDate as b, toCalendarDateTime as _, zonedToDate as j, toZoned as E } from "./chunk-1610.js";
6
- import { _ as f } from "./chunk-1611.js";
7
- function $(a) {
8
- let t = typeof a[0] == "object" ? a.shift() : new A(), e;
9
- if (typeof a[0] == "string") e = a.shift();
10
- else {
11
- let s = t.getEras();
12
- e = s[s.length - 1];
13
- }
14
- let i = a.shift(), r = a.shift(), h = a.shift();
15
- return [
16
- t,
17
- e,
18
- i,
19
- r,
20
- h
21
- ];
22
- }
23
- var G = /* @__PURE__ */ new WeakMap();
24
- class d {
25
- /** Returns a copy of this date. */
26
- copy() {
27
- return this.era ? new d(this.calendar, this.era, this.year, this.month, this.day) : new d(this.calendar, this.year, this.month, this.day);
28
- }
29
- /** Returns a new `CalendarDate` with the given duration added to it. */
30
- add(t) {
31
- return l(this, t);
32
- }
33
- /** Returns a new `CalendarDate` with the given duration subtracted from it. */
34
- subtract(t) {
35
- return u(this, t);
36
- }
37
- /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
38
- set(t) {
39
- return m(this, t);
40
- }
41
- /**
42
- * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
43
- * When the resulting value reaches the limits of the field, it wraps around.
44
- */
45
- cycle(t, e, i) {
46
- return y(this, t, e, i);
47
- }
48
- /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
49
- toDate(t) {
50
- return b(this, t);
51
- }
52
- /** Converts the date to an ISO 8601 formatted string. */
53
- toString() {
54
- return M(this);
55
- }
56
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
57
- compare(t) {
58
- return p(this, t);
59
- }
60
- constructor(...t) {
61
- f(this, G, {
62
- writable: !0,
63
- value: void 0
64
- });
65
- let [e, i, r, h, s] = $(t);
66
- this.calendar = e, this.era = i, this.year = r, this.month = h, this.day = s, c(this);
67
- }
68
- }
69
- var I = /* @__PURE__ */ new WeakMap();
70
- class n {
71
- /** Returns a copy of this date. */
72
- copy() {
73
- return this.era ? new n(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond) : new n(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
74
- }
75
- /** Returns a new `CalendarDateTime` with the given duration added to it. */
76
- add(t) {
77
- return l(this, t);
78
- }
79
- /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
80
- subtract(t) {
81
- return u(this, t);
82
- }
83
- /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
84
- set(t) {
85
- return m(v(this, t), t);
86
- }
87
- /**
88
- * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
89
- * When the resulting value reaches the limits of the field, it wraps around.
90
- */
91
- cycle(t, e, i) {
92
- switch (t) {
93
- case "era":
94
- case "year":
95
- case "month":
96
- case "day":
97
- return y(this, t, e, i);
98
- default:
99
- return w(this, t, e, i);
100
- }
101
- }
102
- /** Converts the date to a native JavaScript Date object in the given time zone. */
103
- toDate(t, e) {
104
- return b(this, t, e);
105
- }
106
- /** Converts the date to an ISO 8601 formatted string. */
107
- toString() {
108
- return W(this);
109
- }
110
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
111
- compare(t) {
112
- let e = p(this, t);
113
- return e === 0 ? k(this, _(t)) : e;
114
- }
115
- constructor(...t) {
116
- f(this, I, {
117
- writable: !0,
118
- value: void 0
119
- });
120
- let [e, i, r, h, s] = $(t);
121
- this.calendar = e, this.era = i, this.year = r, this.month = h, this.day = s, this.hour = t.shift() || 0, this.minute = t.shift() || 0, this.second = t.shift() || 0, this.millisecond = t.shift() || 0, c(this);
122
- }
123
- }
124
- var O = /* @__PURE__ */ new WeakMap();
125
- class o {
126
- /** Returns a copy of this date. */
127
- copy() {
128
- return this.era ? new o(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond) : new o(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
129
- }
130
- /** Returns a new `ZonedDateTime` with the given duration added to it. */
131
- add(t) {
132
- return T(this, t);
133
- }
134
- /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
135
- subtract(t) {
136
- return Z(this, t);
137
- }
138
- /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
139
- set(t, e) {
140
- return S(this, t, e);
141
- }
142
- /**
143
- * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
144
- * When the resulting value reaches the limits of the field, it wraps around.
145
- */
146
- cycle(t, e, i) {
147
- return C(this, t, e, i);
148
- }
149
- /** Converts the date to a native JavaScript Date object. */
150
- toDate() {
151
- return j(this);
152
- }
153
- /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
154
- toString() {
155
- return z(this);
156
- }
157
- /** Converts the date to an ISO 8601 formatted string in UTC. */
158
- toAbsoluteString() {
159
- return this.toDate().toISOString();
160
- }
161
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
162
- compare(t) {
163
- return this.toDate().getTime() - E(t, this.timeZone).toDate().getTime();
164
- }
165
- constructor(...t) {
166
- f(this, O, {
167
- writable: !0,
168
- value: void 0
169
- });
170
- let [e, i, r, h, s] = $(t), x = t.shift(), D = t.shift();
171
- this.calendar = e, this.era = i, this.year = r, this.month = h, this.day = s, this.timeZone = x, this.offset = D, this.hour = t.shift() || 0, this.minute = t.shift() || 0, this.second = t.shift() || 0, this.millisecond = t.shift() || 0, c(this);
172
- }
173
- }
1
+ /**
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
+ */
7
+ const a = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
174
8
  export {
175
- d as CalendarDate,
176
- n as CalendarDateTime,
177
- o as ZonedDateTime
9
+ a as toKebabCase
178
10
  };
@@ -1 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-1610.cjs"),l=require("./chunk-1613.cjs");function $(e,n){return n=r.toCalendar(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function y(e,n){return n=r.toCalendar(n,e.calendar),e=a(e),n=a(n),e.era===n.era&&e.year===n.year&&e.month===n.month}function m(e,n){return e.calendar.identifier===n.calendar.identifier&&e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function s(e,n){return e=a(e),n=a(n),e.calendar.identifier===n.calendar.identifier&&e.era===n.era&&e.year===n.year&&e.month===n.month}function p(e,n){return $(e,d(n))}function h(e,n){let t=e.calendar.toJulianDay(e),c=Math.ceil(t+1-w(n))%7;return c<0&&(c+=7),c}function u(e){return r.fromAbsolute(Date.now(),e)}function d(e){return r.toCalendarDate(u(e))}function x(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function g(e,n){return o(e)-o(n)}function o(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let f=null;function D(){return f==null&&(f=new Intl.DateTimeFormat().resolvedOptions().timeZone),f}function a(e){return e.subtract({days:e.day-1})}function M(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}const i=new Map;function v(e){if(Intl.Locale){let t=i.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&i.set(e,t)),t}let n=e.split("-")[1];return n==="u"?void 0:n}function w(e){let n=v(e);return n&&l.weekStartData[n]||0}exports.compareDate=x;exports.compareTime=g;exports.endOfMonth=M;exports.getDayOfWeek=h;exports.getLocalTimeZone=D;exports.isEqualDay=m;exports.isEqualMonth=s;exports.isSameDay=$;exports.isSameMonth=y;exports.isToday=p;exports.now=u;exports.startOfMonth=a;exports.today=d;
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,78 +1,20 @@
1
- import { toCalendar as $, toCalendarDate as i, fromAbsolute as d } from "./chunk-1610.js";
2
- import { weekStartData as u } from "./chunk-1613.js";
3
- function s(e, a) {
4
- return a = $(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
5
- }
6
- function D(e, a) {
7
- return a = $(a, e.calendar), e = n(e), a = n(a), e.era === a.era && e.year === a.year && e.month === a.month;
8
- }
9
- function g(e, a) {
10
- return e.calendar.identifier === a.calendar.identifier && e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
11
- }
12
- function M(e, a) {
13
- return e = n(e), a = n(a), e.calendar.identifier === a.calendar.identifier && e.era === a.era && e.year === a.year && e.month === a.month;
14
- }
15
- function v(e, a) {
16
- return s(e, m(a));
17
- }
18
- function w(e, a) {
19
- let t = e.calendar.toJulianDay(e), r = Math.ceil(t + 1 - y(a)) % 7;
20
- return r < 0 && (r += 7), r;
21
- }
22
- function l(e) {
23
- return d(Date.now(), e);
24
- }
25
- function m(e) {
26
- return i(l(e));
27
- }
28
- function T(e, a) {
29
- return e.calendar.toJulianDay(e) - a.calendar.toJulianDay(a);
30
- }
31
- function O(e, a) {
32
- return c(e) - c(a);
33
- }
34
- function c(e) {
35
- return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
36
- }
37
- let f = null;
38
- function k() {
39
- return f == null && (f = new Intl.DateTimeFormat().resolvedOptions().timeZone), f;
40
- }
41
- function n(e) {
42
- return e.subtract({
43
- days: e.day - 1
44
- });
45
- }
46
- function I(e) {
47
- return e.add({
48
- days: e.calendar.getDaysInMonth(e) - e.day
49
- });
50
- }
51
- const o = /* @__PURE__ */ new Map();
52
- function p(e) {
53
- if (Intl.Locale) {
54
- let t = o.get(e);
55
- return t || (t = new Intl.Locale(e).maximize().region, t && o.set(e, t)), t;
56
- }
57
- let a = e.split("-")[1];
58
- return a === "u" ? void 0 : a;
59
- }
60
- function y(e) {
61
- let a = p(e);
62
- return a && u[a] || 0;
63
- }
1
+ /**
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
+ */
7
+ var t = {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ width: 24,
10
+ height: 24,
11
+ viewBox: "0 0 24 24",
12
+ fill: "none",
13
+ stroke: "currentColor",
14
+ "stroke-width": 2,
15
+ "stroke-linecap": "round",
16
+ "stroke-linejoin": "round"
17
+ };
64
18
  export {
65
- T as compareDate,
66
- O as compareTime,
67
- I as endOfMonth,
68
- w as getDayOfWeek,
69
- k as getLocalTimeZone,
70
- g as isEqualDay,
71
- M as isEqualMonth,
72
- s as isSameDay,
73
- D as isSameMonth,
74
- v as isToday,
75
- l as now,
76
- n as startOfMonth,
77
- m as today
19
+ t as default
78
20
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let n=new Map;class h{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} ${this.formatter.format(r)}`}formatRangeToParts(e,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let u=this.formatter.formatToParts(e),t=this.formatter.formatToParts(r);return[...u.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...t.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return d()&&(this.resolvedHourCycle||(this.resolvedHourCycle=c(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,r={}){this.formatter=s(e,r),this.options=r}}const i={true:{ja:"h11"},false:{}};function s(o,e={}){if(typeof e.hour12=="boolean"&&m()){e={...e};let t=i[String(e.hour12)][o.split("-")[0]],a=e.hour12?"h12":"h23";e.hourCycle=t??a,delete e.hour12}let r=o+(e?Object.entries(e).sort((t,a)=>t[0]<a[0]?-1:1).join():"");if(n.has(r))return n.get(r);let u=new Intl.DateTimeFormat(o,e);return n.set(r,u),u}let f=null;function m(){return f==null&&(f=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),f}let l=null;function d(){return l==null&&(l=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),l}function c(o,e){if(!e.timeStyle&&!e.hour)return;o=o.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),o+=(o.includes("-u-")?"":"-u")+"-nu-latn";let r=s(o,{...e,timeZone:void 0}),u=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),t=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(u===0&&t===23)return"h23";if(u===24&&t===23)return"h24";if(u===0&&t===11)return"h11";if(u===12&&t===11)return"h12";throw new Error("Unexpected hour cycle result")}exports.DateFormatter=h;
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 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:"hoverable:bg-muted hoverable:text-muted-foreground text-accent-foreground",outline:"hoverable:bg-muted hoverable:text-muted-foreground border border-input",faded:"hoverable:opacity-80"},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,99 +1,25 @@
1
- let n = /* @__PURE__ */ new Map();
2
- class c {
3
- /** Formats a date as a string according to the locale and format options passed to the constructor. */
4
- format(e) {
5
- return this.formatter.format(e);
6
- }
7
- /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */
8
- formatToParts(e) {
9
- return this.formatter.formatToParts(e);
10
- }
11
- /** Formats a date range as a string. */
12
- formatRange(e, r) {
13
- if (typeof this.formatter.formatRange == "function")
14
- return this.formatter.formatRange(e, r);
15
- if (r < e) throw new RangeError("End date must be >= start date");
16
- return `${this.formatter.format(e)} – ${this.formatter.format(r)}`;
17
- }
18
- /** Formats a date range as an array of parts. */
19
- formatRangeToParts(e, r) {
20
- if (typeof this.formatter.formatRangeToParts == "function")
21
- return this.formatter.formatRangeToParts(e, r);
22
- if (r < e) throw new RangeError("End date must be >= start date");
23
- let u = this.formatter.formatToParts(e), t = this.formatter.formatToParts(r);
24
- return [
25
- ...u.map((a) => ({
26
- ...a,
27
- source: "startRange"
28
- })),
29
- {
30
- type: "literal",
31
- value: " – ",
32
- source: "shared"
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 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: "hoverable:bg-muted hoverable:text-muted-foreground text-accent-foreground",
8
+ outline: "hoverable:bg-muted hoverable:text-muted-foreground border border-input",
9
+ faded: "hoverable:opacity-80"
33
10
  },
34
- ...t.map((a) => ({
35
- ...a,
36
- source: "endRange"
37
- }))
38
- ];
39
- }
40
- /** Returns the resolved formatting options based on the values passed to the constructor. */
41
- resolvedOptions() {
42
- let e = this.formatter.resolvedOptions();
43
- return m() && (this.resolvedHourCycle || (this.resolvedHourCycle = d(e.locale, this.options)), e.hourCycle = this.resolvedHourCycle, e.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12"), e.calendar === "ethiopic-amete-alem" && (e.calendar = "ethioaa"), e;
44
- }
45
- constructor(e, r = {}) {
46
- this.formatter = h(e, r), this.options = r;
47
- }
48
- }
49
- const l = {
50
- true: {
51
- // Only Japanese uses the h11 style for 12 hour time. All others use h12.
52
- ja: "h11"
53
- },
54
- false: {}
55
- };
56
- function h(o, e = {}) {
57
- if (typeof e.hour12 == "boolean" && i()) {
58
- e = {
59
- ...e
60
- };
61
- let t = l[String(e.hour12)][o.split("-")[0]], a = e.hour12 ? "h12" : "h23";
62
- e.hourCycle = t ?? a, delete e.hour12;
11
+ size: {
12
+ default: "h-10 px-3",
13
+ sm: "h-9 px-2.5",
14
+ lg: "h-11 px-5"
15
+ }
16
+ },
17
+ defaultVariants: {
18
+ variant: "default",
19
+ size: "default"
20
+ }
63
21
  }
64
- let r = o + (e ? Object.entries(e).sort((t, a) => t[0] < a[0] ? -1 : 1).join() : "");
65
- if (n.has(r)) return n.get(r);
66
- let u = new Intl.DateTimeFormat(o, e);
67
- return n.set(r, u), u;
68
- }
69
- let f = null;
70
- function i() {
71
- return f == null && (f = new Intl.DateTimeFormat("en-US", {
72
- hour: "numeric",
73
- hour12: !1
74
- }).format(new Date(2020, 2, 3, 0)) === "24"), f;
75
- }
76
- let s = null;
77
- function m() {
78
- return s == null && (s = new Intl.DateTimeFormat("fr", {
79
- hour: "numeric",
80
- hour12: !1
81
- }).resolvedOptions().hourCycle === "h12"), s;
82
- }
83
- function d(o, e) {
84
- if (!e.timeStyle && !e.hour) return;
85
- o = o.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, ""), o += (o.includes("-u-") ? "" : "-u") + "-nu-latn";
86
- let r = h(o, {
87
- ...e,
88
- timeZone: void 0
89
- // use local timezone
90
- }), u = parseInt(r.formatToParts(new Date(2020, 2, 3, 0)).find((a) => a.type === "hour").value, 10), t = parseInt(r.formatToParts(new Date(2020, 2, 3, 23)).find((a) => a.type === "hour").value, 10);
91
- if (u === 0 && t === 23) return "h23";
92
- if (u === 24 && t === 23) return "h24";
93
- if (u === 0 && t === 11) return "h11";
94
- if (u === 12 && t === 11) return "h12";
95
- throw new Error("Unexpected hour cycle result");
96
- }
22
+ );
97
23
  export {
98
- c as DateFormatter
24
+ o as toggleVariants
99
25
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./chunk-1572.cjs"),o=require("./chunk-1573.cjs");function W(e,t){const r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}function x(e,t=o.getLocalTimeZone()){return l(e)?e.toDate():e.toDate(t)}function p(e){return e instanceof b.CalendarDateTime}function l(e){return e instanceof b.ZonedDateTime}function C(e){return p(e)||l(e)}function j(e){if(e instanceof Date){const t=e.getFullYear(),r=e.getMonth()+1;return new Date(t,r,0).getDate()}else return e.set({day:100}).day}function P(e,t){return e.compare(t)<0}function Z(e,t){return e.compare(t)>0}function k(e,t,r){const n=o.getDayOfWeek(e,r);return t>n?e.subtract({days:n+7-t}):t===n?e:e.subtract({days:n-t})}function M(e,t,r){const n=o.getDayOfWeek(e,r),a=t===0?6:t-1;return n===a?e:n>a?e.add({days:7-n+a}):e.add({days:a-n})}function i(e,t){const r=[];let n=e.add({days:1});const a=t;for(;n.compare(a)<0;)r.push(n),n=n.add({days:1});return r}function f(e){const{dateObj:t,weekStartsOn:r,fixedWeeks:n,locale:a}=e,s=j(t),d=Array.from({length:s},(D,c)=>t.set({day:c+1})),h=o.startOfMonth(t),y=o.endOfMonth(t),w=k(h,r,a),T=M(y,r,a),g=i(w.subtract({days:1}),h),u=i(y,T.add({days:1})),m=g.length+d.length+u.length;if(n&&m<42){const D=42-m;let c=u[u.length-1];c||(c=o.endOfMonth(t));const v=Array.from({length:D},(B,A)=>{const S=A+1;return c.add({days:S})});u.push(...v)}const O=g.concat(d,u),q=W(O,7);return{value:t,cells:O,rows:q}}function z(e){const{numberOfMonths:t,dateObj:r,...n}=e,a=[];if(!t||t===1)return a.push(f({...n,dateObj:r})),a;a.push(f({...n,dateObj:r}));for(let s=1;s<t;s++){const d=r.add({months:s});a.push(f({...n,dateObj:d}))}return a}exports.c=f;exports.d=z;exports.g=i;exports.i=p;exports.j=l;exports.k=C;exports.l=j;exports.m=P;exports.n=Z;exports.t=x;exports.v=k;exports.w=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-1597.cjs"),t=require("./chunk-1598.cjs");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n;