@pfct/purple 1.15.1 → 1.16.1
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/assets/index.css +2 -2
- package/dist/chunks/{Accordion.6fAW322P.js → Accordion.Cs1f4aQZ.js} +37 -36
- package/dist/chunks/Accordion.ZIp0NsA0.js +1 -0
- package/dist/chunks/{DotLottie.-8NWMOKQ.js → DotLottie.CaDygpsw.js} +5682 -3166
- package/dist/chunks/DotLottie.Cf-SL2bJ.js +5 -0
- package/dist/chunks/Switch.C6xwIjJR.js +1 -0
- package/dist/chunks/{Switch.DZP1mWLt.js → Switch.D_myxCrS.js} +31 -20
- package/dist/chunks/{bottomSheet.BH73fUXU.js → bottomSheet.BGKwHjuP.js} +1 -1
- package/dist/chunks/{bottomSheet.M3yxr5-0.js → bottomSheet.C99fAuQK.js} +1 -1
- package/dist/chunks/{calendar.DyOEuwp0.js → calendar.BMivAvH4.js} +449 -446
- package/dist/chunks/calendar.DRakro7x.js +1 -0
- package/dist/chunks/checkbox.CfWB_nqn.js +1 -0
- package/dist/chunks/{checkbox.DihHSceK.js → checkbox.DNdnhspb.js} +14 -13
- package/dist/chunks/{dateMatchModifiers.BP6awhUm.js → dateMatchModifiers.DteXiCog.js} +1 -1
- package/dist/chunks/{dateMatchModifiers.DWzTSPL9.js → dateMatchModifiers.T1FaMebC.js} +1 -1
- package/dist/chunks/{dist.CYRtTgUR.js → dist.B2wZmrK1.js} +26 -24
- package/dist/chunks/dist.B8tpQk-4.js +1 -0
- package/dist/chunks/{dist.DJPq2jOJ.js → dist.BC0-iqKU.js} +1 -1
- package/dist/chunks/{dist.D3epBPq9.js → dist.BGATFz6w.js} +1 -1
- package/dist/chunks/{dist.D3MzxMSH.js → dist.BQIeYu70.js} +1 -1
- package/dist/chunks/{dist.DAQtqq8Q.js → dist.BskID78S.js} +10 -9
- package/dist/chunks/{dist.Bt6mCKem.js → dist.Bxqi8VAi.js} +1 -1
- package/dist/chunks/{dist.DSx7Feoc.js → dist.C8k7jQIp.js} +15 -12
- package/dist/chunks/dist.CEJ-WCY_.js +44 -0
- package/dist/chunks/dist.CIQdvun-.js +1 -0
- package/dist/chunks/dist.Cff8LOoN.js +67 -0
- package/dist/chunks/{dist.DuawELEr.js → dist.CwMFqhEQ.js} +2 -1
- package/dist/chunks/dist.CyhalHxz.js +1 -0
- package/dist/chunks/dist.Czpint58.js +1 -0
- package/dist/chunks/{dist.DrZbhygc.js → dist.D3cPoDZ_.js} +26 -25
- package/dist/chunks/dist.D4mQo5QB.js +1 -0
- package/dist/chunks/dist.D5ataprQ.js +1 -0
- package/dist/chunks/{dist.DHqfAMUX.js → dist.DIjdcvlQ.js} +25 -24
- package/dist/chunks/dist.DhCw5vjE.js +1 -0
- package/dist/chunks/dist.DrfVZqiO.js +186 -0
- package/dist/chunks/{dist.CB-rIMVI.js → dist.QtpYoD01.js} +1 -1
- package/dist/chunks/{dist.0EAhIi1e.js → dist.kg7EEYPp.js} +1 -1
- package/dist/chunks/drawer.Cji5AtcU.js +1720 -0
- package/dist/chunks/drawer.Gt1AjdVH.js +7 -0
- package/dist/chunks/{src.ClN0uvp3.js → src.CmgILXZE.js} +4 -4
- package/dist/chunks/{src.DfmpOXyx.js → src.D-VoFbup.js} +1 -1
- package/dist/chunks/{test.DNmyFkvJ.D_-8uo_7.js → test.DNmyFkvJ.B-Ui2GEb.js} +1 -1
- package/dist/chunks/{tooltip.D_ECTwc-.js → tooltip.DGgNTZ5B.js} +22 -21
- package/dist/chunks/tooltip.vEwTtt8v.js +1 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.esm.js +1 -1
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.esm.js +1 -1
- package/dist/components/Control/index.cjs.js +1 -1
- package/dist/components/Control/index.esm.js +2 -2
- package/dist/components/DatePicker/RangeDatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePicker.esm.js +1 -1
- package/dist/components/DatePicker/RangeDatePicker.test.esm.js +1 -1
- package/dist/components/DatePicker/SingleDatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePicker.esm.js +1 -1
- package/dist/components/DatePicker/SingleDatePicker.test.esm.js +1 -1
- package/dist/components/DatePicker/hooks.cjs.js +1 -1
- package/dist/components/DatePicker/hooks.esm.js +1 -1
- package/dist/components/DatePicker/styles.cjs.js +1 -1
- package/dist/components/DatePicker/styles.esm.js +1 -1
- package/dist/components/Input/BaseInput/index.cjs.js +1 -1
- package/dist/components/Input/BaseInput/index.d.ts.map +1 -1
- package/dist/components/Input/BaseInput/index.esm.js +7 -5
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.esm.js +1 -1
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.esm.js +1 -1
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.d.ts.map +1 -1
- package/dist/components/SelectBox/index.esm.js +16 -53
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.esm.js +1 -1
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.esm.js +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.esm.js +7 -7
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.esm.js +1 -1
- package/dist/components/ui/calendar.cjs.js +1 -1
- package/dist/components/ui/calendar.esm.js +1 -1
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.esm.js +1 -1
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.esm.js +1 -1
- package/dist/components/ui/drawer.cjs.js +1 -1
- package/dist/components/ui/drawer.esm.js +1 -1
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.esm.js +1 -1
- package/dist/components/ui/select.cjs.js +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.esm.js +8 -6
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.esm.js +1 -1
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +1 -1
- package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
- package/dist/icons/src/aliases/aliases.esm.js +3 -3
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.esm.js +3 -3
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +2 -2
- package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/prefixed.esm.js +3 -3
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +8 -8
- package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/suffixed.esm.js +3 -3
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.esm.js +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +11 -11
- package/dist/library/DotLottie/index.cjs.js +1 -1
- package/dist/library/DotLottie/index.esm.js +1 -1
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.esm.js +1 -1
- package/dist/library/index.cjs.js +1 -1
- package/dist/library/index.esm.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/Accordion.DnnZvp-k.js +0 -1
- package/dist/chunks/DotLottie.BCyB3kR7.js +0 -5
- package/dist/chunks/Switch.Cf6DiCUV.js +0 -1
- package/dist/chunks/calendar.B-KPMIgz.js +0 -1
- package/dist/chunks/checkbox.kS_54E9q.js +0 -1
- package/dist/chunks/dist.BovUpaIu.js +0 -142
- package/dist/chunks/dist.C6Y9cYZm.js +0 -1
- package/dist/chunks/dist.Cf37BjoU.js +0 -1
- package/dist/chunks/dist.DV3oUYlD.js +0 -1
- package/dist/chunks/dist.DciOZstR.js +0 -1
- package/dist/chunks/dist.cKdeuHWp.js +0 -1
- package/dist/chunks/dist.s6QukJK1.js +0 -172
- package/dist/chunks/dist.xhWLHjmj.js +0 -1
- package/dist/chunks/drawer.CtoEYCdv.js +0 -7
- package/dist/chunks/drawer.EQu-ewat.js +0 -1556
- package/dist/chunks/tooltip.BIAjX12E.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.B8tpQk-4.js"),n=require("./dist.BWsA5f1f.js"),r=require("./dist.CIQdvun-.js"),i=require("./dist.CmRTDXGG.js"),a=require("./utils.DxA7tdMJ.js"),o=require("./dist.ChAGEqMb.js"),s=require("./dist.SHmlpKFY.js"),c=require("./dist.Bxqi8VAi.js");let l=require("react"),u=e.r(l,1);l=e.r(l);let d=require("react/jsx-runtime");var f=`Switch`,[p,m]=t.n(f),[h,g]=p(f);function _(e){let{__scopeSwitch:t,checked:n,children:i,defaultChecked:a,disabled:o,form:s,name:c,onCheckedChange:l,required:p,value:m=`on`,internal_do_not_use_render:g}=e,[_,v]=r.t({prop:n,defaultProp:a??!1,onChange:l,caller:f}),[y,b]=u.useState(null),[x,S]=u.useState(null),C={checked:_,setChecked:v,disabled:o,control:y,setControl:b,name:c,form:s,value:m,hasConsumerStoppedPropagationRef:u.useRef(!1),required:p,defaultChecked:a,isFormControl:y?!!s||!!y.closest(`form`):!0,bubbleInput:x,setBubbleInput:S};return(0,d.jsx)(h,{scope:t,...C,children:T(g)?g(C):i})}var v=`SwitchTrigger`,y=u.forwardRef(({__scopeSwitch:e,onClick:r,...a},o)=>{let{control:s,form:c,value:l,disabled:f,checked:p,required:m,setControl:h,setChecked:_,hasConsumerStoppedPropagationRef:y,isFormControl:b,bubbleInput:x}=g(v,e),S=n.t(o,h),C=u.useRef(p);return u.useEffect(()=>{let e=c?s?.ownerDocument.getElementById(c):s?.form;if(e instanceof HTMLFormElement){let t=()=>_(C.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[s,c,_]),(0,d.jsx)(i.t.button,{type:`button`,role:`switch`,"aria-checked":p,"aria-required":m,"data-state":E(p),"data-disabled":f?``:void 0,disabled:f,value:l,...a,ref:S,onClick:t.t(r,e=>{_(e=>!e),x&&b&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});y.displayName=v;var b=u.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...f}=e;return(0,d.jsx)(_,{__scopeSwitch:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y,{...f,ref:t,__scopeSwitch:n}),e&&(0,d.jsx)(w,{__scopeSwitch:n})]})})});b.displayName=f;var x=`SwitchThumb`,S=u.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,a=g(x,n);return(0,d.jsx)(i.t.span,{"data-state":E(a.checked),"data-disabled":a.disabled?``:void 0,...r,ref:t})});S.displayName=x;var C=`SwitchBubbleInput`,w=u.forwardRef(({__scopeSwitch:e,...t},r)=>{let{control:a,hasConsumerStoppedPropagationRef:o,checked:l,defaultChecked:f,required:p,disabled:m,name:h,value:_,form:v,bubbleInput:y,setBubbleInput:b}=g(C,e),x=n.t(r,b),S=s.t(l),w=c.t(a);u.useEffect(()=>{let e=y;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!o.current;if(S!==l&&n){let t=new Event(`click`,{bubbles:r});n.call(e,l),e.dispatchEvent(t)}},[y,S,l,o]);let T=u.useRef(l);return(0,d.jsx)(i.t.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:f??T.current,required:p,disabled:m,name:h,value:_,form:v,...t,tabIndex:-1,ref:x,style:{...t.style,...w,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});w.displayName=C;function T(e){return typeof e==`function`}function E(e){return e?`checked`:`unchecked`}var D=`lime`,O=o.t(`peer inline-flex cursor-pointer items-center rounded-full p-[3px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:bg-gray-100`,{variants:{colorType:{blue:`data-[state=checked]:bg-blue-500`,lime:`data-[state=checked]:bg-lime-400`,gray:`data-[state=checked]:bg-gray-900`,pink:`data-[state=checked]:bg-pink-400`},size:{s:`h-[clamp(18px,3.5vw,22px)] w-[clamp(30px,5.8vw,36px)]`,m:`h-[clamp(24px,5vw,30px)] w-[clamp(40px,8.3vw,50px)]`}},defaultVariants:{colorType:D,size:`m`}}),k=`pointer-events-none block rounded-full bg-white aspect-square h-full shrink-0`,A=`transition-[flex] duration-200 ease-out group-data-[state=unchecked]:w-0 group-data-[state=unchecked]:flex-none group-data-[state=checked]:flex-1`,j=({className:e,colorType:t=D,size:n=`m`,checked:r,disabled:i,activeColor:o,inactiveColor:s,controlColor:c,style:u,thumbClassName:f,onCheckedChange:p,ref:m,...h})=>{let g=l.useMemo(()=>{let e={...u};return r&&o?e.backgroundColor=o:!r&&s&&(e.backgroundColor=s),e},[o,s,r,u]),_=l.useMemo(()=>{if(c)return{backgroundColor:c}},[c]),v=o||s?D:t;return(0,d.jsxs)(b,{checked:r,className:a.t(`group`,O({colorType:v,size:n}),e),disabled:i,onCheckedChange:p,ref:m,style:g,...h,children:[(0,d.jsx)(`span`,{"aria-hidden":`true`,className:A}),(0,d.jsx)(S,{className:a.t(k,f),style:_})]})};j.displayName=`Switch`,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return j}});
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { n as e, t } from "./dist.Cff8LOoN.js";
|
|
2
|
+
import { t as n } from "./dist.CwWM0zXK.js";
|
|
3
|
+
import { t as r } from "./dist.CEJ-WCY_.js";
|
|
3
4
|
import { t as i } from "./dist.CDZCWPu4.js";
|
|
4
5
|
import { t as a } from "./utils.UNiIm9Bz.js";
|
|
5
6
|
import { t as o } from "./dist.BQo0PXod.js";
|
|
6
7
|
import { t as s } from "./dist.D6A3yc_d.js";
|
|
7
|
-
import { t as c } from "./dist.
|
|
8
|
+
import { t as c } from "./dist.QtpYoD01.js";
|
|
8
9
|
import * as l from "react";
|
|
9
10
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
11
|
//#region node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
11
|
-
var p = "Switch", [m, h] =
|
|
12
|
+
var p = "Switch", [m, h] = e(p), [g, _] = m(p);
|
|
12
13
|
function v(e) {
|
|
13
|
-
let { __scopeSwitch: t, checked:
|
|
14
|
-
prop:
|
|
14
|
+
let { __scopeSwitch: t, checked: n, children: i, defaultChecked: a, disabled: o, form: s, name: c, onCheckedChange: u, required: f, value: m = "on", internal_do_not_use_render: h } = e, [_, v] = r({
|
|
15
|
+
prop: n,
|
|
15
16
|
defaultProp: a ?? !1,
|
|
16
17
|
onChange: u,
|
|
17
18
|
caller: p
|
|
@@ -37,21 +38,31 @@ function v(e) {
|
|
|
37
38
|
children: E(h) ? h(C) : i
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
|
-
var y = "SwitchTrigger", b = l.forwardRef(({ __scopeSwitch:
|
|
41
|
-
let {
|
|
42
|
-
return
|
|
41
|
+
var y = "SwitchTrigger", b = l.forwardRef(({ __scopeSwitch: e, onClick: r, ...a }, o) => {
|
|
42
|
+
let { control: s, form: c, value: u, disabled: f, checked: p, required: m, setControl: h, setChecked: g, hasConsumerStoppedPropagationRef: v, isFormControl: b, bubbleInput: x } = _(y, e), S = n(o, h), C = l.useRef(p);
|
|
43
|
+
return l.useEffect(() => {
|
|
44
|
+
let e = c ? s?.ownerDocument.getElementById(c) : s?.form;
|
|
45
|
+
if (e instanceof HTMLFormElement) {
|
|
46
|
+
let t = () => g(C.current);
|
|
47
|
+
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
48
|
+
}
|
|
49
|
+
}, [
|
|
50
|
+
s,
|
|
51
|
+
c,
|
|
52
|
+
g
|
|
53
|
+
]), /* @__PURE__ */ d(i.button, {
|
|
43
54
|
type: "button",
|
|
44
55
|
role: "switch",
|
|
45
|
-
"aria-checked":
|
|
46
|
-
"aria-required":
|
|
47
|
-
"data-state": D(
|
|
48
|
-
"data-disabled":
|
|
49
|
-
disabled:
|
|
50
|
-
value:
|
|
56
|
+
"aria-checked": p,
|
|
57
|
+
"aria-required": m,
|
|
58
|
+
"data-state": D(p),
|
|
59
|
+
"data-disabled": f ? "" : void 0,
|
|
60
|
+
disabled: f,
|
|
61
|
+
value: u,
|
|
51
62
|
...a,
|
|
52
|
-
ref:
|
|
53
|
-
onClick:
|
|
54
|
-
|
|
63
|
+
ref: S,
|
|
64
|
+
onClick: t(r, (e) => {
|
|
65
|
+
g((e) => !e), x && b && (v.current = e.isPropagationStopped(), v.current || e.stopPropagation());
|
|
55
66
|
})
|
|
56
67
|
});
|
|
57
68
|
});
|
|
@@ -86,8 +97,8 @@ var S = "SwitchThumb", C = l.forwardRef((e, t) => {
|
|
|
86
97
|
});
|
|
87
98
|
});
|
|
88
99
|
C.displayName = S;
|
|
89
|
-
var w = "SwitchBubbleInput", T = l.forwardRef(({ __scopeSwitch: e, ...t },
|
|
90
|
-
let { control: a, hasConsumerStoppedPropagationRef: o, checked: u, defaultChecked: f, required: p, disabled: m, name: h, value: g, form: v, bubbleInput: y, setBubbleInput: b } = _(w, e), x = r
|
|
100
|
+
var w = "SwitchBubbleInput", T = l.forwardRef(({ __scopeSwitch: e, ...t }, r) => {
|
|
101
|
+
let { control: a, hasConsumerStoppedPropagationRef: o, checked: u, defaultChecked: f, required: p, disabled: m, name: h, value: g, form: v, bubbleInput: y, setBubbleInput: b } = _(w, e), x = n(r, b), S = s(u), C = c(a);
|
|
91
102
|
l.useEffect(() => {
|
|
92
103
|
let e = y;
|
|
93
104
|
if (!e) return;
|
|
@@ -3,7 +3,7 @@ import { t } from "./createLucideIcon.DDY8HuQR.js";
|
|
|
3
3
|
import n from "../hooks/useLayoutIsMobile.esm.js";
|
|
4
4
|
import "../hooks/index.esm.js";
|
|
5
5
|
import { Dialog as r, DialogClose as i, DialogContent as a, DialogDescription as o, DialogFooter as s, DialogHeader as c, DialogTitle as l, DialogTrigger as u } from "../components/ui/dialog.esm.js";
|
|
6
|
-
import { a as d, i as f, l as p, n as m, o as h, r as g, t as _, u as v } from "./drawer.
|
|
6
|
+
import { a as d, i as f, l as p, n as m, o as h, r as g, t as _, u as v } from "./drawer.Cji5AtcU.js";
|
|
7
7
|
import * as y from "react";
|
|
8
8
|
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
9
9
|
var S = t("chevron-left", [["path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./utils.DxA7tdMJ.js"),n=require("./createLucideIcon.b_X_3fj-.js"),r=require("../hooks/useLayoutIsMobile.cjs.js");require("../hooks/index.cjs.js");const i=require("../components/ui/dialog.cjs.js"),a=require("./drawer.
|
|
1
|
+
const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./utils.DxA7tdMJ.js"),n=require("./createLucideIcon.b_X_3fj-.js"),r=require("../hooks/useLayoutIsMobile.cjs.js");require("../hooks/index.cjs.js");const i=require("../components/ui/dialog.cjs.js"),a=require("./drawer.Gt1AjdVH.js");let o=require("react");o=e.r(o);let s=require("react/jsx-runtime");var c=n.t(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),l=n.t(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),u=o.createContext({isDesktop:!1,fullScreen:!1}),d=()=>{let e=o.useContext(u);if(!e)throw Error(`BottomSheet components cannot be rendered outside the BottomSheet Context`);return e},f=({children:e,fullScreen:t=!1,...n})=>{let c=!r.default(),l=o.useMemo(()=>({isDesktop:c,fullScreen:t}),[c,t]),d=l.isDesktop?i.Dialog:a.t;return(0,s.jsx)(u.Provider,{value:l,children:(0,s.jsx)(d,{...n,...!c&&{autoFocus:!0},children:e})})},p=({className:e,children:t,...n})=>{let{isDesktop:r}=d();return(0,s.jsx)(r?i.DialogTrigger:a.u,{className:e,...n,children:t})},m=({className:e,children:t,...n})=>{let{isDesktop:r}=d();return(0,s.jsx)(r?i.DialogClose:a.n,{className:e,...n,children:t})},h=({className:e,children:n,...r})=>{let{isDesktop:o,fullScreen:c}=d();return(0,s.jsx)(o?i.DialogContent:a.r,{className:t.t(`flex flex-col`,c&&`h-dvh data-[vaul-drawer-direction=bottom]:mt-0 data-[vaul-drawer-direction=bottom]:max-h-dvh data-[vaul-drawer-direction=bottom]:rounded-t-none`,e),...r,children:n})},g=({className:e,children:n,...r})=>{let{isDesktop:o}=d();return(0,s.jsx)(o?i.DialogDescription:a.i,{className:t.t(`typo-t3 text-gray-400`,e),...r,children:n})},_=({className:e,children:n,...r})=>{let{isDesktop:o}=d();return(0,s.jsx)(o?i.DialogHeader:a.o,{className:t.t(`pt-6.25`,e),...r,children:n})},v=({className:e,children:n,...r})=>{let{isDesktop:o}=d();return(0,s.jsx)(o?i.DialogTitle:a.l,{className:t.t(`typo-h4 text-gray-900`,e),...r,children:n})},y=({className:e,children:n,...r})=>(0,s.jsx)(`div`,{className:t.t(`scrollbar-hide mb-20 flex max-w-full overflow-y-auto overflow-x-hidden text-wrap break-all pc:px-0 px-5`,e),...r,children:n}),b=({className:e,children:n,...r})=>{let{isDesktop:o}=d();return(0,s.jsx)(o?i.DialogFooter:a.a,{className:t.t(`mb-5`,e),...r,children:n})},x=({className:e})=>(0,s.jsxs)(m,{className:t.t(`data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,`rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden disabled:pointer-events-none`,`[&_svg:not([class*='size-'])]:size-6.25 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),children:[(0,s.jsx)(l,{}),(0,s.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),S=({className:e,title:n,subtitle:r,right:i})=>(0,s.jsxs)(_,{className:t.t(`flex`,e),children:[(0,s.jsx)(v,{children:n}),(0,s.jsx)(g,{children:r}),(0,s.jsx)(`div`,{className:`absolute top-6.25 right-5`,children:i})]}),C=({className:e,title:n,left:r,right:i})=>(0,s.jsxs)(_,{className:t.t(`mt-2.5 flex flex-row items-center justify-between py-3.75`,e),children:[r===void 0?(0,s.jsx)(c,{}):r,n?(0,s.jsx)(v,{className:`typo-h5`,children:n}):(0,s.jsx)(`div`,{}),i===void 0?(0,s.jsx)(x,{}):i]});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return v}});
|