@clasing/ui 2.0.3 → 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 +117 -159
- 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 +1 -1
- 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,206 +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 S, c as w, e as P } from "../command-
|
|
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
|
-
className:
|
|
53
|
+
size: r,
|
|
54
|
+
className: c(
|
|
97
55
|
"w-full",
|
|
98
56
|
{
|
|
99
|
-
"border-destructive":
|
|
100
|
-
"border-blue-800":
|
|
57
|
+
"border-destructive": s && t,
|
|
58
|
+
"border-blue-800": t && !s,
|
|
101
59
|
"rounded-s-none rounded-e-lg": n !== "full",
|
|
102
60
|
"rounded-s-none rounded-e-full": n === "full",
|
|
103
|
-
"rounded-e-sm":
|
|
104
|
-
"rounded-e-md":
|
|
105
|
-
"rounded-e-lg":
|
|
61
|
+
"rounded-e-sm": r === "sm",
|
|
62
|
+
"rounded-e-md": r === "md",
|
|
63
|
+
"rounded-e-lg": r === "lg"
|
|
106
64
|
},
|
|
107
|
-
|
|
65
|
+
o
|
|
108
66
|
),
|
|
109
|
-
...
|
|
110
|
-
ref:
|
|
67
|
+
...m,
|
|
68
|
+
ref: i
|
|
111
69
|
}
|
|
112
70
|
);
|
|
113
71
|
});
|
|
114
|
-
|
|
72
|
+
C.displayName = "InputComponent";
|
|
115
73
|
const q = ({
|
|
116
|
-
disabled:
|
|
74
|
+
disabled: o,
|
|
117
75
|
value: n,
|
|
118
|
-
options:
|
|
119
|
-
onChange:
|
|
120
|
-
size:
|
|
121
|
-
rounded:
|
|
122
|
-
error:
|
|
123
|
-
touched:
|
|
76
|
+
options: s,
|
|
77
|
+
onChange: t,
|
|
78
|
+
size: r = "md",
|
|
79
|
+
rounded: a = "default",
|
|
80
|
+
error: i,
|
|
81
|
+
touched: d
|
|
124
82
|
}) => {
|
|
125
|
-
const
|
|
83
|
+
const m = p.useRef(null), [j, x] = p.useState(""), [y, g] = p.useState(!1);
|
|
126
84
|
return /* @__PURE__ */ e.jsxs(
|
|
127
|
-
|
|
85
|
+
O,
|
|
128
86
|
{
|
|
129
|
-
open:
|
|
87
|
+
open: y,
|
|
130
88
|
modal: !0,
|
|
131
|
-
onOpenChange: (
|
|
132
|
-
|
|
89
|
+
onOpenChange: (l) => {
|
|
90
|
+
g(l), l && x("");
|
|
133
91
|
},
|
|
134
92
|
children: [
|
|
135
93
|
/* @__PURE__ */ e.jsx(E, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
136
94
|
"button",
|
|
137
95
|
{
|
|
138
96
|
type: "button",
|
|
139
|
-
className:
|
|
140
|
-
"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:
|
|
141
|
-
|
|
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",
|
|
142
100
|
{
|
|
143
|
-
"outline-destructive":
|
|
144
|
-
"outline-blue-800":
|
|
145
|
-
"text-label-md h-8 rounded-s-sm px-2 py-1":
|
|
146
|
-
"text-label-lg h-12 rounded-s-md px-3 py-1":
|
|
147
|
-
"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"
|
|
148
106
|
}
|
|
149
107
|
),
|
|
150
|
-
disabled:
|
|
108
|
+
disabled: o,
|
|
151
109
|
children: [
|
|
152
110
|
/* @__PURE__ */ e.jsx(
|
|
153
|
-
|
|
111
|
+
f,
|
|
154
112
|
{
|
|
155
113
|
country: n,
|
|
156
114
|
countryName: n,
|
|
157
|
-
disabled:
|
|
115
|
+
disabled: o
|
|
158
116
|
}
|
|
159
117
|
),
|
|
160
118
|
/* @__PURE__ */ e.jsx(
|
|
161
|
-
|
|
119
|
+
b,
|
|
162
120
|
{
|
|
163
121
|
iconName: "IconChevronDown",
|
|
164
|
-
className:
|
|
122
|
+
className: c(
|
|
165
123
|
"-mr-2 size-4 opacity-50",
|
|
166
|
-
|
|
124
|
+
o ? "hidden" : "opacity-100"
|
|
167
125
|
)
|
|
168
126
|
}
|
|
169
127
|
)
|
|
170
128
|
]
|
|
171
129
|
}
|
|
172
130
|
) }),
|
|
173
|
-
/* @__PURE__ */ e.jsx(
|
|
131
|
+
/* @__PURE__ */ e.jsx(T, { className: "w-[300px] p-0", children: /* @__PURE__ */ e.jsxs(N, { children: [
|
|
174
132
|
/* @__PURE__ */ e.jsx(
|
|
175
133
|
v,
|
|
176
134
|
{
|
|
177
|
-
value:
|
|
178
|
-
onValueChange: (
|
|
179
|
-
x(
|
|
180
|
-
if (
|
|
181
|
-
const
|
|
135
|
+
value: j,
|
|
136
|
+
onValueChange: (l) => {
|
|
137
|
+
x(l), setTimeout(() => {
|
|
138
|
+
if (m.current) {
|
|
139
|
+
const u = m.current.querySelector(
|
|
182
140
|
"[data-radix-scroll-area-viewport]"
|
|
183
141
|
);
|
|
184
|
-
|
|
142
|
+
u && (u.scrollTop = 0);
|
|
185
143
|
}
|
|
186
144
|
}, 0);
|
|
187
145
|
},
|
|
188
146
|
placeholder: "Search country..."
|
|
189
147
|
}
|
|
190
148
|
),
|
|
191
|
-
/* @__PURE__ */ e.jsx(I, { children: /* @__PURE__ */ e.jsxs(
|
|
149
|
+
/* @__PURE__ */ e.jsx(I, { children: /* @__PURE__ */ e.jsxs(V, { ref: m, className: "h-72", children: [
|
|
192
150
|
/* @__PURE__ */ e.jsx(S, { children: "No country found." }),
|
|
193
|
-
/* @__PURE__ */ e.jsx(w, { children:
|
|
194
|
-
({ value:
|
|
151
|
+
/* @__PURE__ */ e.jsx(w, { children: s.map(
|
|
152
|
+
({ value: l, label: u }) => l ? /* @__PURE__ */ e.jsx(
|
|
195
153
|
D,
|
|
196
154
|
{
|
|
197
|
-
country:
|
|
198
|
-
countryName:
|
|
155
|
+
country: l,
|
|
156
|
+
countryName: u,
|
|
199
157
|
selectedCountry: n,
|
|
200
|
-
onChange:
|
|
201
|
-
onSelectComplete: () =>
|
|
158
|
+
onChange: t,
|
|
159
|
+
onSelectComplete: () => g(!1)
|
|
202
160
|
},
|
|
203
|
-
|
|
161
|
+
l
|
|
204
162
|
) : null
|
|
205
163
|
) })
|
|
206
164
|
] }) })
|
|
@@ -209,44 +167,44 @@ const q = ({
|
|
|
209
167
|
}
|
|
210
168
|
);
|
|
211
169
|
}, D = ({
|
|
212
|
-
country:
|
|
170
|
+
country: o,
|
|
213
171
|
countryName: n,
|
|
214
|
-
selectedCountry:
|
|
215
|
-
onChange:
|
|
216
|
-
onSelectComplete:
|
|
172
|
+
selectedCountry: s,
|
|
173
|
+
onChange: t,
|
|
174
|
+
onSelectComplete: r
|
|
217
175
|
}) => {
|
|
218
|
-
const
|
|
219
|
-
|
|
176
|
+
const a = () => {
|
|
177
|
+
t(o), r();
|
|
220
178
|
};
|
|
221
|
-
return /* @__PURE__ */ e.jsxs(P, { className: "gap-2", onSelect:
|
|
222
|
-
/* @__PURE__ */ e.jsx(
|
|
223
|
-
/* @__PURE__ */ e.jsx("span", { className: "flex-1
|
|
224
|
-
/* @__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)}` }),
|
|
225
183
|
/* @__PURE__ */ e.jsx(
|
|
226
|
-
|
|
184
|
+
b,
|
|
227
185
|
{
|
|
228
186
|
iconName: "IconCheck",
|
|
229
|
-
className: `ml-auto size-4 ${
|
|
187
|
+
className: `ml-auto size-4 ${o === s ? "opacity-100" : "opacity-0"}`
|
|
230
188
|
}
|
|
231
189
|
)
|
|
232
190
|
] });
|
|
233
|
-
},
|
|
234
|
-
country:
|
|
191
|
+
}, f = ({
|
|
192
|
+
country: o,
|
|
235
193
|
countryName: n,
|
|
236
|
-
disabled:
|
|
194
|
+
disabled: s
|
|
237
195
|
}) => {
|
|
238
|
-
const
|
|
196
|
+
const t = k[o];
|
|
239
197
|
return /* @__PURE__ */ e.jsx(
|
|
240
198
|
"span",
|
|
241
199
|
{
|
|
242
|
-
className:
|
|
200
|
+
className: c(
|
|
243
201
|
"bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",
|
|
244
|
-
{ "opacity-50":
|
|
202
|
+
{ "opacity-50": s }
|
|
245
203
|
),
|
|
246
|
-
children:
|
|
204
|
+
children: t && /* @__PURE__ */ e.jsx(t, { title: n })
|
|
247
205
|
}
|
|
248
206
|
);
|
|
249
207
|
};
|
|
250
208
|
export {
|
|
251
|
-
|
|
209
|
+
$ as PhoneInput
|
|
252
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;
|