@clasing/ui 2.0.2 → 2.0.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.
- package/dist/{badge-DknEN5GE.cjs → badge-BMe7WNGM.cjs} +1 -1
- package/dist/{badge-CJxUpkWv.js → badge-B_J-uqVk.js} +22 -22
- package/dist/{button-C5IBh3Tr.js → button-DPbsJTTm.js} +81 -81
- package/dist/button-DcyXjceS.cjs +1 -0
- package/dist/{card-9-UcGdV0.js → card-3-vRPTXr.js} +1 -1
- package/dist/{card-D0D_gMHR.cjs → card-DiFJZ6gb.cjs} +1 -1
- package/dist/chip-BCFqRgCq.cjs +1 -0
- package/dist/{chip-D12iiF8O.js → chip-wy9RL5iU.js} +11 -11
- package/dist/{command-pED95x7-.js → command-DTwO6Xc5.js} +53 -53
- package/dist/command-KZ-02POP.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +12 -12
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +14 -14
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.es.js +33 -33
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +2 -2
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +1 -1
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +5 -5
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +5 -5
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +3 -3
- package/dist/components/chart.es.js +24 -24
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.es.js +1 -1
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.es.js +38 -38
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +14 -14
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +3 -3
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +41 -41
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +2 -2
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +6 -6
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.d.ts +0 -5
- package/dist/components/phone-input.es.js +118 -161
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +25 -22
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +1 -1
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +2 -2
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +1 -1
- package/dist/components/textarea.es.js +4 -4
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +1 -1
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/{dialog-C15HjAtO.cjs → dialog-CMSUa1RD.cjs} +1 -1
- package/dist/{dialog-DIua9sAl.js → dialog-D9ZObHR9.js} +32 -32
- package/dist/input-B_INrEy1.cjs +1 -0
- package/dist/{input-Bs18T-Y3.js → input-C71fsEVP.js} +11 -11
- package/dist/{toggle-nsKZaKsW.js → toggle-BE4UelY4.js} +9 -9
- package/dist/toggle-BEGyyGWY.cjs +1 -0
- package/dist/ui.css +1 -1
- package/package.json +357 -357
- package/dist/button-BnSM-lrr.cjs +0 -1
- package/dist/chip-DePZ5IYA.cjs +0 -1
- package/dist/command-C4Y6Ixrp.cjs +0 -1
- package/dist/input-wSGCWBH-.cjs +0 -1
- package/dist/toggle-B9JMLYVf.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),c=require("../command-KZ-02POP.cjs"),S=require("../input-B_INrEy1.cjs"),f=require("../popover-4V87msIT.cjs"),I=require("../scroll-area-hg-bGoRe.cjs"),m=require("../index-DoxiiusW.cjs"),q=require("react"),w=require("react-phone-number-input"),P=require("react-phone-number-input/flags"),O=require("react-phone-number-input/locale/en"),_=require("react-phone-number-input/locale/es"),T=require("react-phone-number-input/locale/fr"),b=require("../icon-component-D5YssRbR.cjs");function R(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const d=R(q),y=R(w),C=d.forwardRef(({className:t,onChange:n,value:o,size:r="md",rounded:s="default",locale:l="en",...i},p)=>e.jsxRuntimeExports.jsx(y.default,{ref:p,className:m.cn("flex",t),flagComponent:j,countrySelectComponent:k,inputComponent:E,smartCaret:!1,labels:l==="es"?_:l==="fr"?T:O,value:o||void 0,onChange:u=>n?.(u||""),countrySelectProps:{size:r,rounded:s},numberInputProps:{size:r,rounded:s},...i}));C.displayName="PhoneInput";const E=d.forwardRef(({className:t,rounded:n="default",error:o,touched:r,size:s,...l},i)=>{const{"data-country":p,...u}=l;return e.jsxRuntimeExports.jsx(S.Input,{size:s,className:m.cn("w-full",{"border-destructive":o&&r,"border-blue-800":r&&!o,"rounded-s-none rounded-e-lg":n!=="full","rounded-s-none rounded-e-full":n==="full","rounded-e-sm":s==="sm","rounded-e-md":s==="md","rounded-e-lg":s==="lg"},t),...u,ref:i})});E.displayName="InputComponent";const k=({disabled:t,value:n,options:o,onChange:r,size:s="md",rounded:l="default",error:i,touched:p})=>{const u=d.useRef(null),[v,g]=d.useState(""),[N,h]=d.useState(!1);return e.jsxRuntimeExports.jsxs(f.Popover,{open:N,modal:!0,onOpenChange:a=>{h(a),a&&g("")},children:[e.jsxRuntimeExports.jsx(f.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:m.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:text-paragraph-sm md:text-paragraph-sm flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent text-base transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-semibold focus-visible:z-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",l==="default"?"rounded-e-none":"rounded-s-full rounded-e-none",{"outline-destructive":i&&p,"outline-blue-800":p&&!i,"text-label-md h-8 rounded-s-sm px-2 py-1":s==="sm","text-label-lg h-12 rounded-s-md px-3 py-1":s==="md","text-label-xl h-16 rounded-s-lg px-4 py-2":s==="lg"}),disabled:t,children:[e.jsxRuntimeExports.jsx(j,{country:n,countryName:n,disabled:t}),e.jsxRuntimeExports.jsx(b.IconComponent,{iconName:"IconChevronDown",className:m.cn("-mr-2 size-4 opacity-50",t?"hidden":"opacity-100")})]})}),e.jsxRuntimeExports.jsx(f.PopoverContent,{className:"w-[300px] p-0",children:e.jsxRuntimeExports.jsxs(c.Command,{children:[e.jsxRuntimeExports.jsx(c.CommandInput,{value:v,onValueChange:a=>{g(a),setTimeout(()=>{if(u.current){const x=u.current.querySelector("[data-radix-scroll-area-viewport]");x&&(x.scrollTop=0)}},0)},placeholder:"Search country..."}),e.jsxRuntimeExports.jsx(c.CommandList,{children:e.jsxRuntimeExports.jsxs(I.ScrollArea,{ref:u,className:"h-72",children:[e.jsxRuntimeExports.jsx(c.CommandEmpty,{children:"No country found."}),e.jsxRuntimeExports.jsx(c.CommandGroup,{children:o.map(({value:a,label:x})=>a?e.jsxRuntimeExports.jsx(A,{country:a,countryName:x,selectedCountry:n,onChange:r,onSelectComplete:()=>h(!1)},a):null)})]})})]})})]})},A=({country:t,countryName:n,selectedCountry:o,onChange:r,onSelectComplete:s})=>{const l=()=>{r(t),s()};return e.jsxRuntimeExports.jsxs(c.CommandItem,{className:"gap-2",onSelect:l,children:[e.jsxRuntimeExports.jsx(j,{country:t,countryName:n}),e.jsxRuntimeExports.jsx("span",{className:"text-paragraph-sm flex-1",children:n}),e.jsxRuntimeExports.jsx("span",{className:"text-foreground/50 text-paragraph-sm",children:`+${y.getCountryCallingCode(t)}`}),e.jsxRuntimeExports.jsx(b.IconComponent,{iconName:"IconCheck",className:`ml-auto size-4 ${t===o?"opacity-100":"opacity-0"}`})]})},j=({country:t,countryName:n,disabled:o})=>{const r=P[t];return e.jsxRuntimeExports.jsx("span",{className:m.cn("bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",{"opacity-50":o}),children:r&&e.jsxRuntimeExports.jsx(r,{title:n})})};exports.PhoneInput=C;
|
|
@@ -4,12 +4,7 @@ type PhoneInputProps = Omit<React.ComponentProps<'input'>, 'onChange' | 'value'
|
|
|
4
4
|
onChange?: (value: RPNInput.Value) => void;
|
|
5
5
|
size?: 'sm' | 'md' | 'lg';
|
|
6
6
|
rounded?: 'default' | 'full';
|
|
7
|
-
label?: string;
|
|
8
|
-
helperText?: string;
|
|
9
7
|
locale?: 'en' | 'es' | 'fr';
|
|
10
|
-
error?: string;
|
|
11
|
-
touched?: boolean;
|
|
12
|
-
containerClassName?: string;
|
|
13
8
|
};
|
|
14
9
|
declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps>;
|
|
15
10
|
export { PhoneInput };
|
|
@@ -1,207 +1,164 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { C as N, d as v, f as I, b as
|
|
3
|
-
import { I as R } from "../input-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
const _ = f.forwardRef(
|
|
2
|
+
import { C as N, d as v, f as I, b as S, c as w, e as P } from "../command-DTwO6Xc5.js";
|
|
3
|
+
import { I as R } from "../input-C71fsEVP.js";
|
|
4
|
+
import { P as O, c as E, b as T } from "../popover-CHAUhJda.js";
|
|
5
|
+
import { S as V } from "../scroll-area-DwBiu3Jn.js";
|
|
6
|
+
import { c } from "../index-CRiPKpXj.js";
|
|
7
|
+
import * as p from "react";
|
|
8
|
+
import * as h from "react-phone-number-input";
|
|
9
|
+
import k from "react-phone-number-input/flags";
|
|
10
|
+
import A from "react-phone-number-input/locale/en";
|
|
11
|
+
import F from "react-phone-number-input/locale/es";
|
|
12
|
+
import _ from "react-phone-number-input/locale/fr";
|
|
13
|
+
import { I as b } from "../icon-component-CxQsODCa.js";
|
|
14
|
+
const $ = p.forwardRef(
|
|
16
15
|
({
|
|
17
|
-
className:
|
|
16
|
+
className: o,
|
|
18
17
|
onChange: n,
|
|
19
|
-
value:
|
|
20
|
-
size:
|
|
21
|
-
rounded:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
inputComponent: y,
|
|
48
|
-
smartCaret: !1,
|
|
49
|
-
labels: p === "es" ? A : p === "fr" ? T : k,
|
|
50
|
-
value: l || void 0,
|
|
51
|
-
onChange: (i) => n?.(i || ""),
|
|
52
|
-
countrySelectProps: {
|
|
53
|
-
size: s,
|
|
54
|
-
rounded: o,
|
|
55
|
-
error: r,
|
|
56
|
-
touched: u
|
|
57
|
-
},
|
|
58
|
-
numberInputProps: {
|
|
59
|
-
size: s,
|
|
60
|
-
rounded: o,
|
|
61
|
-
error: r,
|
|
62
|
-
touched: u
|
|
63
|
-
},
|
|
64
|
-
...a
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
r && u ? /* @__PURE__ */ e.jsx(
|
|
68
|
-
"span",
|
|
69
|
-
{
|
|
70
|
-
id: a.id && `${a.id}-error-text`,
|
|
71
|
-
"aria-invalid": !0,
|
|
72
|
-
className: "text-destructive text-label-md -mt-1",
|
|
73
|
-
children: r
|
|
74
|
-
}
|
|
75
|
-
) : c ? /* @__PURE__ */ e.jsx(
|
|
76
|
-
"span",
|
|
77
|
-
{
|
|
78
|
-
id: a.id && `${a.id}-helper-text`,
|
|
79
|
-
className: m("text-label-md -mt-1", {
|
|
80
|
-
"text-muted-foreground": !r && !u,
|
|
81
|
-
"text-destructive": r && u,
|
|
82
|
-
"text-muted-foreground opacity-50": a.disabled
|
|
83
|
-
}),
|
|
84
|
-
children: c
|
|
85
|
-
}
|
|
86
|
-
) : null
|
|
87
|
-
] })
|
|
18
|
+
value: s,
|
|
19
|
+
size: t = "md",
|
|
20
|
+
rounded: r = "default",
|
|
21
|
+
locale: a = "en",
|
|
22
|
+
...i
|
|
23
|
+
}, d) => /* @__PURE__ */ e.jsx(
|
|
24
|
+
h.default,
|
|
25
|
+
{
|
|
26
|
+
ref: d,
|
|
27
|
+
className: c("flex", o),
|
|
28
|
+
flagComponent: f,
|
|
29
|
+
countrySelectComponent: q,
|
|
30
|
+
inputComponent: C,
|
|
31
|
+
smartCaret: !1,
|
|
32
|
+
labels: a === "es" ? F : a === "fr" ? _ : A,
|
|
33
|
+
value: s || void 0,
|
|
34
|
+
onChange: (m) => n?.(m || ""),
|
|
35
|
+
countrySelectProps: {
|
|
36
|
+
size: t,
|
|
37
|
+
rounded: r
|
|
38
|
+
},
|
|
39
|
+
numberInputProps: {
|
|
40
|
+
size: t,
|
|
41
|
+
rounded: r
|
|
42
|
+
},
|
|
43
|
+
...i
|
|
44
|
+
}
|
|
45
|
+
)
|
|
88
46
|
);
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
const { "data-country":
|
|
47
|
+
$.displayName = "PhoneInput";
|
|
48
|
+
const C = p.forwardRef(({ className: o, rounded: n = "default", error: s, touched: t, size: r, ...a }, i) => {
|
|
49
|
+
const { "data-country": d, ...m } = a;
|
|
92
50
|
return /* @__PURE__ */ e.jsx(
|
|
93
51
|
R,
|
|
94
52
|
{
|
|
95
|
-
size:
|
|
96
|
-
|
|
97
|
-
className: m(
|
|
53
|
+
size: r,
|
|
54
|
+
className: c(
|
|
98
55
|
"w-full",
|
|
99
56
|
{
|
|
100
|
-
"border-destructive":
|
|
101
|
-
"border-blue-800":
|
|
57
|
+
"border-destructive": s && t,
|
|
58
|
+
"border-blue-800": t && !s,
|
|
102
59
|
"rounded-s-none rounded-e-lg": n !== "full",
|
|
103
60
|
"rounded-s-none rounded-e-full": n === "full",
|
|
104
|
-
"rounded-e-sm":
|
|
105
|
-
"rounded-e-md":
|
|
106
|
-
"rounded-e-lg":
|
|
61
|
+
"rounded-e-sm": r === "sm",
|
|
62
|
+
"rounded-e-md": r === "md",
|
|
63
|
+
"rounded-e-lg": r === "lg"
|
|
107
64
|
},
|
|
108
|
-
|
|
65
|
+
o
|
|
109
66
|
),
|
|
110
|
-
...
|
|
111
|
-
ref:
|
|
67
|
+
...m,
|
|
68
|
+
ref: i
|
|
112
69
|
}
|
|
113
70
|
);
|
|
114
71
|
});
|
|
115
|
-
|
|
72
|
+
C.displayName = "InputComponent";
|
|
116
73
|
const q = ({
|
|
117
|
-
disabled:
|
|
74
|
+
disabled: o,
|
|
118
75
|
value: n,
|
|
119
|
-
options:
|
|
120
|
-
onChange:
|
|
121
|
-
size:
|
|
122
|
-
rounded:
|
|
123
|
-
error:
|
|
124
|
-
touched:
|
|
76
|
+
options: s,
|
|
77
|
+
onChange: t,
|
|
78
|
+
size: r = "md",
|
|
79
|
+
rounded: a = "default",
|
|
80
|
+
error: i,
|
|
81
|
+
touched: d
|
|
125
82
|
}) => {
|
|
126
|
-
const
|
|
83
|
+
const m = p.useRef(null), [j, x] = p.useState(""), [y, g] = p.useState(!1);
|
|
127
84
|
return /* @__PURE__ */ e.jsxs(
|
|
128
|
-
|
|
85
|
+
O,
|
|
129
86
|
{
|
|
130
|
-
open:
|
|
87
|
+
open: y,
|
|
131
88
|
modal: !0,
|
|
132
|
-
onOpenChange: (
|
|
133
|
-
|
|
89
|
+
onOpenChange: (l) => {
|
|
90
|
+
g(l), l && x("");
|
|
134
91
|
},
|
|
135
92
|
children: [
|
|
136
93
|
/* @__PURE__ */ e.jsx(E, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
137
94
|
"button",
|
|
138
95
|
{
|
|
139
96
|
type: "button",
|
|
140
|
-
className:
|
|
141
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent text-base transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:
|
|
142
|
-
|
|
97
|
+
className: c(
|
|
98
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:text-paragraph-sm md:text-paragraph-sm flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent text-base transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-semibold focus-visible:z-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
99
|
+
a === "default" ? "rounded-e-none" : "rounded-s-full rounded-e-none",
|
|
143
100
|
{
|
|
144
|
-
"outline-destructive":
|
|
145
|
-
"outline-blue-800":
|
|
146
|
-
"text-label-md h-8 rounded-s-sm px-2 py-1":
|
|
147
|
-
"text-label-lg h-12 rounded-s-md px-3 py-1":
|
|
148
|
-
"text-label-xl h-16 rounded-s-lg px-4 py-2":
|
|
101
|
+
"outline-destructive": i && d,
|
|
102
|
+
"outline-blue-800": d && !i,
|
|
103
|
+
"text-label-md h-8 rounded-s-sm px-2 py-1": r === "sm",
|
|
104
|
+
"text-label-lg h-12 rounded-s-md px-3 py-1": r === "md",
|
|
105
|
+
"text-label-xl h-16 rounded-s-lg px-4 py-2": r === "lg"
|
|
149
106
|
}
|
|
150
107
|
),
|
|
151
|
-
disabled:
|
|
108
|
+
disabled: o,
|
|
152
109
|
children: [
|
|
153
110
|
/* @__PURE__ */ e.jsx(
|
|
154
|
-
|
|
111
|
+
f,
|
|
155
112
|
{
|
|
156
113
|
country: n,
|
|
157
114
|
countryName: n,
|
|
158
|
-
disabled:
|
|
115
|
+
disabled: o
|
|
159
116
|
}
|
|
160
117
|
),
|
|
161
118
|
/* @__PURE__ */ e.jsx(
|
|
162
|
-
|
|
119
|
+
b,
|
|
163
120
|
{
|
|
164
121
|
iconName: "IconChevronDown",
|
|
165
|
-
className:
|
|
122
|
+
className: c(
|
|
166
123
|
"-mr-2 size-4 opacity-50",
|
|
167
|
-
|
|
124
|
+
o ? "hidden" : "opacity-100"
|
|
168
125
|
)
|
|
169
126
|
}
|
|
170
127
|
)
|
|
171
128
|
]
|
|
172
129
|
}
|
|
173
130
|
) }),
|
|
174
|
-
/* @__PURE__ */ e.jsx(
|
|
131
|
+
/* @__PURE__ */ e.jsx(T, { className: "w-[300px] p-0", children: /* @__PURE__ */ e.jsxs(N, { children: [
|
|
175
132
|
/* @__PURE__ */ e.jsx(
|
|
176
133
|
v,
|
|
177
134
|
{
|
|
178
|
-
value:
|
|
179
|
-
onValueChange: (
|
|
180
|
-
x(
|
|
181
|
-
if (
|
|
182
|
-
const
|
|
135
|
+
value: j,
|
|
136
|
+
onValueChange: (l) => {
|
|
137
|
+
x(l), setTimeout(() => {
|
|
138
|
+
if (m.current) {
|
|
139
|
+
const u = m.current.querySelector(
|
|
183
140
|
"[data-radix-scroll-area-viewport]"
|
|
184
141
|
);
|
|
185
|
-
|
|
142
|
+
u && (u.scrollTop = 0);
|
|
186
143
|
}
|
|
187
144
|
}, 0);
|
|
188
145
|
},
|
|
189
146
|
placeholder: "Search country..."
|
|
190
147
|
}
|
|
191
148
|
),
|
|
192
|
-
/* @__PURE__ */ e.jsx(I, { children: /* @__PURE__ */ e.jsxs(
|
|
193
|
-
/* @__PURE__ */ e.jsx(
|
|
194
|
-
/* @__PURE__ */ e.jsx(
|
|
195
|
-
({ value:
|
|
149
|
+
/* @__PURE__ */ e.jsx(I, { children: /* @__PURE__ */ e.jsxs(V, { ref: m, className: "h-72", children: [
|
|
150
|
+
/* @__PURE__ */ e.jsx(S, { children: "No country found." }),
|
|
151
|
+
/* @__PURE__ */ e.jsx(w, { children: s.map(
|
|
152
|
+
({ value: l, label: u }) => l ? /* @__PURE__ */ e.jsx(
|
|
196
153
|
D,
|
|
197
154
|
{
|
|
198
|
-
country:
|
|
199
|
-
countryName:
|
|
155
|
+
country: l,
|
|
156
|
+
countryName: u,
|
|
200
157
|
selectedCountry: n,
|
|
201
|
-
onChange:
|
|
202
|
-
onSelectComplete: () =>
|
|
158
|
+
onChange: t,
|
|
159
|
+
onSelectComplete: () => g(!1)
|
|
203
160
|
},
|
|
204
|
-
|
|
161
|
+
l
|
|
205
162
|
) : null
|
|
206
163
|
) })
|
|
207
164
|
] }) })
|
|
@@ -210,44 +167,44 @@ const q = ({
|
|
|
210
167
|
}
|
|
211
168
|
);
|
|
212
169
|
}, D = ({
|
|
213
|
-
country:
|
|
170
|
+
country: o,
|
|
214
171
|
countryName: n,
|
|
215
|
-
selectedCountry:
|
|
216
|
-
onChange:
|
|
217
|
-
onSelectComplete:
|
|
172
|
+
selectedCountry: s,
|
|
173
|
+
onChange: t,
|
|
174
|
+
onSelectComplete: r
|
|
218
175
|
}) => {
|
|
219
|
-
const
|
|
220
|
-
|
|
176
|
+
const a = () => {
|
|
177
|
+
t(o), r();
|
|
221
178
|
};
|
|
222
|
-
return /* @__PURE__ */ e.jsxs(P, { className: "gap-2", onSelect:
|
|
223
|
-
/* @__PURE__ */ e.jsx(
|
|
224
|
-
/* @__PURE__ */ e.jsx("span", { className: "flex-1
|
|
225
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-foreground/50 text-sm", children: `+${
|
|
179
|
+
return /* @__PURE__ */ e.jsxs(P, { className: "gap-2", onSelect: a, children: [
|
|
180
|
+
/* @__PURE__ */ e.jsx(f, { country: o, countryName: n }),
|
|
181
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-paragraph-sm flex-1", children: n }),
|
|
182
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-foreground/50 text-paragraph-sm", children: `+${h.getCountryCallingCode(o)}` }),
|
|
226
183
|
/* @__PURE__ */ e.jsx(
|
|
227
|
-
|
|
184
|
+
b,
|
|
228
185
|
{
|
|
229
186
|
iconName: "IconCheck",
|
|
230
|
-
className: `ml-auto size-4 ${
|
|
187
|
+
className: `ml-auto size-4 ${o === s ? "opacity-100" : "opacity-0"}`
|
|
231
188
|
}
|
|
232
189
|
)
|
|
233
190
|
] });
|
|
234
|
-
},
|
|
235
|
-
country:
|
|
191
|
+
}, f = ({
|
|
192
|
+
country: o,
|
|
236
193
|
countryName: n,
|
|
237
|
-
disabled:
|
|
194
|
+
disabled: s
|
|
238
195
|
}) => {
|
|
239
|
-
const
|
|
196
|
+
const t = k[o];
|
|
240
197
|
return /* @__PURE__ */ e.jsx(
|
|
241
198
|
"span",
|
|
242
199
|
{
|
|
243
|
-
className:
|
|
200
|
+
className: c(
|
|
244
201
|
"bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",
|
|
245
|
-
{ "opacity-50":
|
|
202
|
+
{ "opacity-50": s }
|
|
246
203
|
),
|
|
247
|
-
children:
|
|
204
|
+
children: t && /* @__PURE__ */ e.jsx(t, { title: n })
|
|
248
205
|
}
|
|
249
206
|
);
|
|
250
207
|
};
|
|
251
208
|
export {
|
|
252
|
-
|
|
209
|
+
$ as PhoneInput
|
|
253
210
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-select"),r=require("../index-DoxiiusW.cjs"),l=require("../icon-component-D5YssRbR.cjs");function u(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const n=u(d);function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-select"),r=require("../index-DoxiiusW.cjs"),l=require("../icon-component-D5YssRbR.cjs");function u(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const n=u(d);function p({...e}){return t.jsxRuntimeExports.jsx(n.Root,{"data-slot":"select",...e})}function x({...e}){return t.jsxRuntimeExports.jsx(n.Group,{"data-slot":"select-group",...e})}function m({...e}){return t.jsxRuntimeExports.jsx(n.Value,{"data-slot":"select-value",...e})}function g({className:e,size:s="md",children:o,...a}){return t.jsxRuntimeExports.jsxs(n.Trigger,{"data-slot":"select-trigger","data-size":s,className:r.cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s==="xs"&&'text-label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',s==="sm"&&"text-label-md h-8 px-2 py-1",s==="md"&&"text-label-lg h-12 px-3 py-1",s==="lg"&&"text-label-xl h-16 px-4 py-2",e),...a,children:[o,t.jsxRuntimeExports.jsx(n.Icon,{asChild:!0,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronDown",className:"size-4 opacity-50"})})]})}function f({className:e,children:s,position:o="popper",...a}){return t.jsxRuntimeExports.jsx(n.Portal,{children:t.jsxRuntimeExports.jsxs(n.Content,{"data-slot":"select-content",className:r.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...a,children:[t.jsxRuntimeExports.jsx(i,{}),t.jsxRuntimeExports.jsx(n.Viewport,{className:r.cn("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),t.jsxRuntimeExports.jsx(c,{})]})})}function j({className:e,...s}){return t.jsxRuntimeExports.jsx(n.Label,{"data-slot":"select-label",className:r.cn("text-muted-foreground text-paragraph-xs px-2 py-1.5",e),...s})}function b({className:e,children:s,...o}){return t.jsxRuntimeExports.jsxs(n.Item,{"data-slot":"select-item",className:r.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground text-paragraph-sm relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...o,children:[t.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(n.ItemIndicator,{children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),t.jsxRuntimeExports.jsx(n.ItemText,{children:s})]})}function v({className:e,...s}){return t.jsxRuntimeExports.jsx(n.Separator,{"data-slot":"select-separator",className:r.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),...s})}function i({className:e,...s}){return t.jsxRuntimeExports.jsx(n.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:r.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronUp",className:"size-4"})})}function c({className:e,...s}){return t.jsxRuntimeExports.jsx(n.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:r.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronDown",className:"size-4"})})}exports.Select=p;exports.SelectContent=f;exports.SelectGroup=x;exports.SelectItem=b;exports.SelectLabel=j;exports.SelectScrollDownButton=c;exports.SelectScrollUpButton=i;exports.SelectSeparator=v;exports.SelectTrigger=g;exports.SelectValue=m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as s from "@radix-ui/react-select";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as r } from "../index-CRiPKpXj.js";
|
|
4
4
|
import { I as n } from "../icon-component-CxQsODCa.js";
|
|
5
5
|
function m({
|
|
6
6
|
...t
|
|
@@ -20,7 +20,7 @@ function f({
|
|
|
20
20
|
function g({
|
|
21
21
|
className: t,
|
|
22
22
|
size: a = "md",
|
|
23
|
-
children:
|
|
23
|
+
children: o,
|
|
24
24
|
...l
|
|
25
25
|
}) {
|
|
26
26
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -28,7 +28,7 @@ function g({
|
|
|
28
28
|
{
|
|
29
29
|
"data-slot": "select-trigger",
|
|
30
30
|
"data-size": a,
|
|
31
|
-
className:
|
|
31
|
+
className: r(
|
|
32
32
|
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
33
33
|
a === "xs" && 'text-label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',
|
|
34
34
|
a === "sm" && "text-label-md h-8 px-2 py-1",
|
|
@@ -38,7 +38,7 @@ function g({
|
|
|
38
38
|
),
|
|
39
39
|
...l,
|
|
40
40
|
children: [
|
|
41
|
-
|
|
41
|
+
o,
|
|
42
42
|
/* @__PURE__ */ e.jsx(s.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
43
43
|
n,
|
|
44
44
|
{
|
|
@@ -50,31 +50,31 @@ function g({
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function h({
|
|
54
54
|
className: t,
|
|
55
55
|
children: a,
|
|
56
|
-
position:
|
|
56
|
+
position: o = "popper",
|
|
57
57
|
...l
|
|
58
58
|
}) {
|
|
59
59
|
return /* @__PURE__ */ e.jsx(s.Portal, { children: /* @__PURE__ */ e.jsxs(
|
|
60
60
|
s.Content,
|
|
61
61
|
{
|
|
62
62
|
"data-slot": "select-content",
|
|
63
|
-
className:
|
|
63
|
+
className: r(
|
|
64
64
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
65
|
-
|
|
65
|
+
o === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
66
66
|
t
|
|
67
67
|
),
|
|
68
|
-
position:
|
|
68
|
+
position: o,
|
|
69
69
|
...l,
|
|
70
70
|
children: [
|
|
71
71
|
/* @__PURE__ */ e.jsx(i, {}),
|
|
72
72
|
/* @__PURE__ */ e.jsx(
|
|
73
73
|
s.Viewport,
|
|
74
74
|
{
|
|
75
|
-
className:
|
|
75
|
+
className: r(
|
|
76
76
|
"p-1",
|
|
77
|
-
|
|
77
|
+
o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
78
78
|
),
|
|
79
79
|
children: a
|
|
80
80
|
}
|
|
@@ -84,7 +84,7 @@ function v({
|
|
|
84
84
|
}
|
|
85
85
|
) });
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function v({
|
|
88
88
|
className: t,
|
|
89
89
|
...a
|
|
90
90
|
}) {
|
|
@@ -92,7 +92,10 @@ function h({
|
|
|
92
92
|
s.Label,
|
|
93
93
|
{
|
|
94
94
|
"data-slot": "select-label",
|
|
95
|
-
className:
|
|
95
|
+
className: r(
|
|
96
|
+
"text-muted-foreground text-paragraph-xs px-2 py-1.5",
|
|
97
|
+
t
|
|
98
|
+
),
|
|
96
99
|
...a
|
|
97
100
|
}
|
|
98
101
|
);
|
|
@@ -100,17 +103,17 @@ function h({
|
|
|
100
103
|
function b({
|
|
101
104
|
className: t,
|
|
102
105
|
children: a,
|
|
103
|
-
...
|
|
106
|
+
...o
|
|
104
107
|
}) {
|
|
105
108
|
return /* @__PURE__ */ e.jsxs(
|
|
106
109
|
s.Item,
|
|
107
110
|
{
|
|
108
111
|
"data-slot": "select-item",
|
|
109
|
-
className:
|
|
110
|
-
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2
|
|
112
|
+
className: r(
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground text-paragraph-sm relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
111
114
|
t
|
|
112
115
|
),
|
|
113
|
-
...
|
|
116
|
+
...o,
|
|
114
117
|
children: [
|
|
115
118
|
/* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(s.ItemIndicator, { children: /* @__PURE__ */ e.jsx(n, { iconName: "IconCheck", className: "size-4" }) }) }),
|
|
116
119
|
/* @__PURE__ */ e.jsx(s.ItemText, { children: a })
|
|
@@ -126,7 +129,7 @@ function j({
|
|
|
126
129
|
s.Separator,
|
|
127
130
|
{
|
|
128
131
|
"data-slot": "select-separator",
|
|
129
|
-
className:
|
|
132
|
+
className: r("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
130
133
|
...a
|
|
131
134
|
}
|
|
132
135
|
);
|
|
@@ -139,7 +142,7 @@ function i({
|
|
|
139
142
|
s.ScrollUpButton,
|
|
140
143
|
{
|
|
141
144
|
"data-slot": "select-scroll-up-button",
|
|
142
|
-
className:
|
|
145
|
+
className: r(
|
|
143
146
|
"flex cursor-default items-center justify-center py-1",
|
|
144
147
|
t
|
|
145
148
|
),
|
|
@@ -156,7 +159,7 @@ function c({
|
|
|
156
159
|
s.ScrollDownButton,
|
|
157
160
|
{
|
|
158
161
|
"data-slot": "select-scroll-down-button",
|
|
159
|
-
className:
|
|
162
|
+
className: r(
|
|
160
163
|
"flex cursor-default items-center justify-center py-1",
|
|
161
164
|
t
|
|
162
165
|
),
|
|
@@ -167,10 +170,10 @@ function c({
|
|
|
167
170
|
}
|
|
168
171
|
export {
|
|
169
172
|
m as Select,
|
|
170
|
-
|
|
173
|
+
h as SelectContent,
|
|
171
174
|
x as SelectGroup,
|
|
172
175
|
b as SelectItem,
|
|
173
|
-
|
|
176
|
+
v as SelectLabel,
|
|
174
177
|
c as SelectScrollDownButton,
|
|
175
178
|
i as SelectScrollUpButton,
|
|
176
179
|
j as SelectSeparator,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-BuHQgaKs.cjs"),i=require("@radix-ui/react-dialog"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-BuHQgaKs.cjs"),i=require("@radix-ui/react-dialog"),n=require("../index-DoxiiusW.cjs"),l=require("../icon-component-D5YssRbR.cjs");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=d(i);function c({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"sheet",...t})}function u({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"sheet-trigger",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"sheet-close",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"sheet-portal",...t})}function p({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"sheet-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function f({className:t,children:e,side:s="right",...r}){return o.jsxRuntimeExports.jsxs(m,{children:[o.jsxRuntimeExports.jsx(p,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"sheet-content",className:n.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",s==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",s==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,o.jsxRuntimeExports.jsxs(a.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconX",className:"size-4"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function h({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:n.cn("flex flex-col gap-1.5 p-4",t),...e})}function g({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:n.cn("mt-auto flex flex-col gap-2 p-4",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"sheet-title",className:n.cn("text-foreground font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"sheet-description",className:n.cn("text-muted-foreground text-paragraph-sm",t),...e})}exports.Sheet=c;exports.SheetClose=x;exports.SheetContent=f;exports.SheetDescription=b;exports.SheetFooter=g;exports.SheetHeader=h;exports.SheetTitle=j;exports.SheetTrigger=u;
|