@clasing/ui 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/button-BnSM-lrr.cjs +1 -0
  2. package/dist/{button-DU1x2trm.js → button-C5IBh3Tr.js} +92 -92
  3. package/dist/components/alert-dialog.cjs.js +1 -1
  4. package/dist/components/alert-dialog.es.js +1 -1
  5. package/dist/components/button.cjs.js +1 -1
  6. package/dist/components/button.es.js +1 -1
  7. package/dist/components/calendar.cjs.js +1 -1
  8. package/dist/components/calendar.d.ts +8 -15
  9. package/dist/components/calendar.es.js +188 -2
  10. package/dist/components/form.cjs.js +1 -0
  11. package/dist/components/form.d.ts +24 -0
  12. package/dist/components/form.es.js +101 -0
  13. package/dist/components/input.cjs.js +1 -1
  14. package/dist/components/input.d.ts +3 -15
  15. package/dist/components/input.es.js +1 -1
  16. package/dist/components/phone-input.cjs.js +1 -1
  17. package/dist/components/phone-input.es.js +1 -1
  18. package/dist/components/textarea.cjs.js +1 -1
  19. package/dist/components/textarea.d.ts +4 -16
  20. package/dist/components/textarea.es.js +55 -128
  21. package/dist/entries/form.d.ts +2 -0
  22. package/dist/input-Bs18T-Y3.js +97 -0
  23. package/dist/input-wSGCWBH-.cjs +1 -0
  24. package/package.json +357 -359
  25. package/dist/button-dueLddAn.cjs +0 -1
  26. package/dist/calendar-DA08oJl2.js +0 -117
  27. package/dist/calendar-gxLdKgjb.cjs +0 -1
  28. package/dist/components/blocks/date-picker.cjs.js +0 -1
  29. package/dist/components/blocks/date-picker.d.ts +0 -30
  30. package/dist/components/blocks/date-picker.es.js +0 -181
  31. package/dist/components/blocks/date-range-picker.cjs.js +0 -1
  32. package/dist/components/blocks/date-range-picker.d.ts +0 -29
  33. package/dist/components/blocks/date-range-picker.es.js +0 -246
  34. package/dist/entries/blocks/date-picker.d.ts +0 -2
  35. package/dist/entries/blocks/date-range-picker.d.ts +0 -2
  36. package/dist/input-BoPcvULq.js +0 -174
  37. package/dist/input-eri6Lyeo.cjs +0 -1
  38. package/dist/style-BNIXVvBA.js +0 -1172
  39. package/dist/style-CA5976Oh.cjs +0 -1
@@ -1,246 +0,0 @@
1
- import { j as e } from "../../jsx-runtime-DywqP_6a.js";
2
- import { L as z } from "../../label-_kG7WBoJ.js";
3
- import { c, a as D } from "../../index-CRiPKpXj.js";
4
- import { c as $ } from "../../index-BqtVL8d-.js";
5
- import { format as a } from "date-fns";
6
- import { forwardRef as I, useState as L, useEffect as T } from "react";
7
- import { DayPicker as B } from "react-day-picker";
8
- import { e as E, a as G, f as q, b as U } from "../../style-BNIXVvBA.js";
9
- import { I as y } from "../../icon-component-CxQsODCa.js";
10
- import { P as V, c as F, b as O } from "../../popover-CHAUhJda.js";
11
- const A = $(
12
- "border-neutral-050 focus-visible:ring-ring-default lg:hover:bg-neutral-000 flex w-full items-center gap-2 border-[0.5px] bg-white text-base whitespace-pre-wrap focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 lg:disabled:hover:bg-neutral-100",
13
- {
14
- variants: {
15
- size: {
16
- sm: "text-label-md h-8 rounded-sm px-2 py-1",
17
- md: "text-label-lg h-12 rounded-md px-3 py-1",
18
- lg: "text-label-xl h-16 rounded-lg px-4 py-2"
19
- },
20
- rounded: {
21
- default: "",
22
- full: "rounded-full"
23
- },
24
- state: {
25
- default: "",
26
- selected: "bg-blue-050 focus:blue-800 border-blue-800 font-semibold text-blue-800 active:border-blue-800 lg:hover:bg-blue-100",
27
- error: "border-error-main"
28
- }
29
- },
30
- defaultVariants: {
31
- size: "md",
32
- rounded: "default",
33
- state: "default"
34
- }
35
- }
36
- ), H = ({ onChange: d, value: r, options: f }) => /* @__PURE__ */ e.jsx(
37
- "select",
38
- {
39
- className: "text-md focus-visible:ring-ring-default h-fit w-fit! cursor-pointer appearance-none rounded-md border-none pr-9 pl-1 font-semibold transition-colors focus:border-0 focus:border-transparent focus:ring-0 focus:ring-transparent focus:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden",
40
- onChange: d,
41
- value: r,
42
- children: f?.map((n, m) => {
43
- const g = n.value === r;
44
- return /* @__PURE__ */ e.jsx(
45
- "option",
46
- {
47
- value: n.value,
48
- disabled: n.disabled,
49
- className: c("disabled:hidden", {
50
- "bg-blue-050 font-semibold text-blue-800": g
51
- }),
52
- children: n.label
53
- },
54
- m
55
- );
56
- })
57
- }
58
- ), J = ({
59
- orientation: d = "down",
60
- size: r = 16
61
- }) => /* @__PURE__ */ e.jsx(
62
- y,
63
- {
64
- iconName: d === "left" ? "IconChevronLeft" : "IconChevronRight",
65
- stroke: "1.5",
66
- size: r
67
- }
68
- ), K = I(
69
- ({
70
- className: d,
71
- locale: r = "enGB",
72
- placeholder: f,
73
- label: n,
74
- size: m = "md",
75
- rounded: g = "default",
76
- disabledDates: j,
77
- helperText: N,
78
- side: P = "bottom",
79
- align: C = "center",
80
- error: b,
81
- touched: x,
82
- startDate: s,
83
- endDate: i,
84
- calendarDropdowns: M = !0,
85
- onChange: w,
86
- minDate: R,
87
- maxDate: S,
88
- disabled: p = !1,
89
- ...u
90
- }, _) => {
91
- const [t, h] = L({
92
- from: s ? new Date(s) : void 0,
93
- to: i ? new Date(i) : void 0
94
- }), k = (o) => {
95
- if (h(o), w) {
96
- const l = {
97
- from: o.from ? a(o.from, "yyyy-MM-dd") : "",
98
- to: o.to ? a(o.to, "yyyy-MM-dd") : ""
99
- };
100
- w({
101
- target: {
102
- name: u.name,
103
- value: l
104
- }
105
- });
106
- }
107
- };
108
- T(() => {
109
- if (s) {
110
- const o = new Date(s);
111
- isNaN(o.getTime()) || h((l) => ({ ...l, from: o }));
112
- }
113
- if (i) {
114
- const o = new Date(i);
115
- isNaN(o.getTime()) || h((l) => ({ ...l, to: o }));
116
- }
117
- }, [s, i]);
118
- const v = r === "enGB" ? E : r === "enUS" ? G : r === "fr" ? q : U;
119
- return /* @__PURE__ */ e.jsxs(
120
- "div",
121
- {
122
- ref: _,
123
- className: c("flex flex-col gap-3", d),
124
- ...u,
125
- children: [
126
- n && /* @__PURE__ */ e.jsx(
127
- z,
128
- {
129
- htmlFor: u.id,
130
- className: c({ "text-neutral-700": p }),
131
- children: n
132
- }
133
- ),
134
- /* @__PURE__ */ e.jsxs(V, { children: [
135
- /* @__PURE__ */ e.jsx(F, { children: /* @__PURE__ */ e.jsxs(
136
- "button",
137
- {
138
- type: "button",
139
- className: c(
140
- A({
141
- size: m,
142
- rounded: g,
143
- state: t.from && t.to || x && !b ? "selected" : b && x ? "error" : "default"
144
- }),
145
- {
146
- "text-neutral-800": !t.from && !t.to
147
- }
148
- ),
149
- disabled: p,
150
- children: [
151
- /* @__PURE__ */ e.jsx(
152
- y,
153
- {
154
- iconName: "IconCalendar",
155
- size: 20,
156
- className: "pointer-events-none"
157
- }
158
- ),
159
- t.from && t.to ? `${a(t.from, "PPP", { locale: v })} - ${a(t.to, "PPP", { locale: v })}` : f || "Select a date range",
160
- /* @__PURE__ */ e.jsx(
161
- "input",
162
- {
163
- hidden: !0,
164
- onChange: () => null,
165
- value: t.from && t.to ? `${a(t.from, "yyyy-MM-dd")} to ${a(t.to, "yyyy-MM-dd")}` : `${s || ""} to ${i || ""}`
166
- }
167
- )
168
- ]
169
- }
170
- ) }),
171
- /* @__PURE__ */ e.jsx(
172
- O,
173
- {
174
- className: "w-auto overflow-hidden p-0",
175
- side: P,
176
- align: C,
177
- children: /* @__PURE__ */ e.jsx(
178
- B,
179
- {
180
- mode: "range",
181
- captionLayout: M ? "dropdown" : "label",
182
- selected: t,
183
- onSelect: k,
184
- locale: v,
185
- startMonth: R || new Date(1900, 0, 1),
186
- endMonth: S || new Date(2100, 11, 31),
187
- showOutsideDays: !0,
188
- disabled: j,
189
- className: "p-2",
190
- required: !0,
191
- classNames: {
192
- root: "w-fit text-sm text-center",
193
- weekday: "text-muted-foreground font-regular",
194
- month_grid: "border-separate",
195
- month_caption: "h-9 relative flex items-center w-full",
196
- dropdowns: "absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",
197
- button_next: "rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",
198
- button_previous: "rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",
199
- nav: "w-full h-9 top-0 left-0 absolute flex justify-between items-center gap-2",
200
- selected: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
201
- today: "bg-blue-050 border-[0.5px] text-blue-800 lg:hover:bg-blue-100",
202
- outside: "bg-white text-neutral-200 border-[0.5px] border-neutral-000",
203
- day_button: "text-sm h-9 w-9 whitespace-nowrap border-none focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] rounded-2xl",
204
- caption_label: "text-neutral-1000 text-base font-semibold leading-none self-center w-full",
205
- disabled: "bg-white text-neutral-200 border-[0.5px] border-neutral-000 lg:hover:bg-white!",
206
- day: "h-9 w-9 aspect-square text-sm rounded-2xl border-[0.5px] border-neutral-050 lg:hover:bg-blue-050 transition-colors p-0 whitespace-nowrap",
207
- range_end: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
208
- range_start: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
209
- range_middle: "bg-blue-050! border-[0.5px] border-blue-800! text-blue-800! lg:hover:bg-blue-100 transition-colors font-semibold"
210
- },
211
- components: {
212
- Dropdown: H,
213
- Chevron: ({ orientation: o, size: l }) => /* @__PURE__ */ e.jsx(J, { orientation: o, size: l })
214
- }
215
- }
216
- )
217
- }
218
- )
219
- ] }),
220
- b && x ? /* @__PURE__ */ e.jsx(
221
- "span",
222
- {
223
- "aria-describedby": u.id,
224
- "aria-invalid": "true",
225
- className: "text-error-main text-label-md -mt-1",
226
- children: b
227
- }
228
- ) : /* @__PURE__ */ e.jsx(
229
- "span",
230
- {
231
- className: D("text-muted-foreground -mt-1", {
232
- "text-neutral-700": p
233
- }),
234
- "aria-describedby": u.id,
235
- children: N
236
- }
237
- )
238
- ]
239
- }
240
- );
241
- }
242
- ), Q = K;
243
- Q.displayName = "DateRangePicker";
244
- export {
245
- Q as DateRangePicker
246
- };
@@ -1,2 +0,0 @@
1
- import { Datepicker } from '../../components/blocks/date-picker';
2
- export { Datepicker };
@@ -1,2 +0,0 @@
1
- import { DateRangePicker } from '../../components/blocks/date-range-picker';
2
- export { DateRangePicker };
@@ -1,174 +0,0 @@
1
- import { j as s } from "./jsx-runtime-DywqP_6a.js";
2
- import { L as j } from "./label-_kG7WBoJ.js";
3
- import { c as r } from "./index-CRiPKpXj.js";
4
- import { c as N } from "./index-BqtVL8d-.js";
5
- import * as y from "react";
6
- import { I as d } from "./icon-component-CxQsODCa.js";
7
- const I = N(
8
- "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-semibold disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
9
- {
10
- variants: {
11
- size: {
12
- sm: "text-label-md h-8 rounded-sm px-2 py-1",
13
- md: "text-label-lg h-12 rounded-md px-3 py-1",
14
- lg: "text-label-xl h-16 rounded-lg px-4 py-2"
15
- },
16
- rounded: {
17
- default: "",
18
- full: "rounded-full"
19
- },
20
- state: {
21
- default: "",
22
- error: "border-destructive ring-destructive/20 dark:ring-destructive/40",
23
- success: "border-success ring-success/20 dark:ring-success/40"
24
- }
25
- },
26
- defaultVariants: {
27
- size: "md",
28
- rounded: "default",
29
- state: "default"
30
- }
31
- }
32
- );
33
- function V({
34
- className: b,
35
- label: x,
36
- helperText: u,
37
- error: t,
38
- touched: i,
39
- iconName: f,
40
- iconPosition: n = "left",
41
- type: l = "text",
42
- size: g,
43
- rounded: v,
44
- state: z,
45
- containerClassName: p,
46
- ...e
47
- }) {
48
- const [o, w] = y.useState(!1), a = f ? ((m) => typeof m == "string" ? { name: m } : m)(f) : void 0, c = t && i ? "error" : i && !t && e.value ? "success" : "default", h = () => {
49
- w(!o);
50
- };
51
- return /* @__PURE__ */ s.jsxs("div", { className: r("flex flex-col gap-2", p), children: [
52
- x && /* @__PURE__ */ s.jsx(
53
- j,
54
- {
55
- htmlFor: e.id,
56
- className: r("mb-1", {
57
- "opacity-50": e.disabled
58
- }),
59
- children: x
60
- }
61
- ),
62
- /* @__PURE__ */ s.jsxs("div", { className: "relative w-full", children: [
63
- a && n === "left" && /* @__PURE__ */ s.jsx(
64
- "span",
65
- {
66
- className: r("absolute top-1/2 left-3 -translate-y-1/2", {
67
- "text-muted-foreground": c === "default",
68
- "text-destructive": c === "error",
69
- "text-success-main": c === "success",
70
- "text-muted-foreground opacity-50": e.disabled
71
- }),
72
- children: /* @__PURE__ */ s.jsx(
73
- d,
74
- {
75
- iconName: a.name,
76
- stroke: a.stroke,
77
- size: 20
78
- }
79
- )
80
- }
81
- ),
82
- /* @__PURE__ */ s.jsx(
83
- "input",
84
- {
85
- type: l === "password" ? o ? "text" : "password" : l,
86
- "data-slot": "input",
87
- "aria-describedby": e.id && u ? `${e.id}-helper-text` : void 0,
88
- "aria-invalid": !!(t && i),
89
- "aria-errormessage": e.id && t ? `${e.id}-error-text` : void 0,
90
- className: r(
91
- I({
92
- size: g,
93
- rounded: v,
94
- state: c,
95
- className: r(
96
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
97
- a && n === "left" ? "pl-10" : "",
98
- a && n === "right" || l === "password" ? "pr-10" : "",
99
- l === "color" ? "h-[50px] p-0" : "",
100
- b
101
- )
102
- })
103
- ),
104
- ...e
105
- }
106
- ),
107
- l === "password" && /* @__PURE__ */ s.jsx(
108
- "button",
109
- {
110
- type: "button",
111
- tabIndex: -1,
112
- "aria-label": o ? "Hide password" : "Show password",
113
- className: "absolute top-1/2 right-3 -translate-y-1/2 rounded-md p-1 hover:bg-neutral-100/50 focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-none",
114
- onClick: h,
115
- children: /* @__PURE__ */ s.jsx(
116
- d,
117
- {
118
- iconName: o ? "IconEyeOff" : "IconEye",
119
- size: 20
120
- }
121
- )
122
- }
123
- ),
124
- a && n === "right" && l !== "password" && /* @__PURE__ */ s.jsx("span", { className: "absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ s.jsx(
125
- d,
126
- {
127
- iconName: a.name,
128
- stroke: a.stroke,
129
- size: 20
130
- }
131
- ) }),
132
- !a && t && i && l !== "password" && /* @__PURE__ */ s.jsx(
133
- d,
134
- {
135
- iconName: "IconAlertCircleFilled",
136
- size: 20,
137
- className: "text-destructive absolute top-1/2 right-3 -translate-y-1/2"
138
- }
139
- ),
140
- !a && i && !t && e.value && l !== "password" && /* @__PURE__ */ s.jsx(
141
- d,
142
- {
143
- iconName: "IconCircleCheckFilled",
144
- size: 20,
145
- className: "text-success-main absolute top-1/2 right-3 -translate-y-1/2"
146
- }
147
- )
148
- ] }),
149
- t && i ? /* @__PURE__ */ s.jsx(
150
- "span",
151
- {
152
- id: e.id && `${e.id}-error-text`,
153
- "aria-invalid": !0,
154
- className: "text-destructive text-label-md",
155
- children: t
156
- }
157
- ) : u ? /* @__PURE__ */ s.jsx(
158
- "span",
159
- {
160
- id: e.id && `${e.id}-helper-text`,
161
- className: r("text-label-md", {
162
- "text-muted-foreground": !t && !i,
163
- "text-destructive": t && i,
164
- "text-success-main": i && !t && e.value !== void 0,
165
- "text-muted-foreground opacity-50": e.disabled
166
- }),
167
- children: u
168
- }
169
- ) : null
170
- ] });
171
- }
172
- export {
173
- V as I
174
- };
@@ -1 +0,0 @@
1
- "use strict";const s=require("./jsx-runtime-BuHQgaKs.cjs"),h=require("./label-U5GnYvFO.cjs"),d=require("./index-DoxiiusW.cjs"),y=require("./index-C8P6Mn4U.cjs"),N=require("react"),c=require("./icon-component-D5YssRbR.cjs");function R(l){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const a in l)if(a!=="default"){const t=Object.getOwnPropertyDescriptor(l,a);Object.defineProperty(o,a,t.get?t:{enumerable:!0,get:()=>l[a]})}}return o.default=l,Object.freeze(o)}const E=R(N),I=y.cva("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-semibold disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"text-label-md h-8 rounded-sm px-2 py-1",md:"text-label-lg h-12 rounded-md px-3 py-1",lg:"text-label-xl h-16 rounded-lg px-4 py-2"},rounded:{default:"",full:"rounded-full"},state:{default:"",error:"border-destructive ring-destructive/20 dark:ring-destructive/40",success:"border-success ring-success/20 dark:ring-success/40"}},defaultVariants:{size:"md",rounded:"default",state:"default"}});function z({className:l,label:o,helperText:a,error:t,touched:i,iconName:b,iconPosition:u="left",type:r="text",size:p,rounded:g,state:k,containerClassName:j,...e}){const[x,v]=E.useState(!1),n=b?(f=>typeof f=="string"?{name:f}:f)(b):void 0,m=t&&i?"error":i&&!t&&e.value?"success":"default",w=()=>{v(!x)};return s.jsxRuntimeExports.jsxs("div",{className:d.cn("flex flex-col gap-2",j),children:[o&&s.jsxRuntimeExports.jsx(h.Label,{htmlFor:e.id,className:d.cn("mb-1",{"opacity-50":e.disabled}),children:o}),s.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[n&&u==="left"&&s.jsxRuntimeExports.jsx("span",{className:d.cn("absolute top-1/2 left-3 -translate-y-1/2",{"text-muted-foreground":m==="default","text-destructive":m==="error","text-success-main":m==="success","text-muted-foreground opacity-50":e.disabled}),children:s.jsxRuntimeExports.jsx(c.IconComponent,{iconName:n.name,stroke:n.stroke,size:20})}),s.jsxRuntimeExports.jsx("input",{type:r==="password"?x?"text":"password":r,"data-slot":"input","aria-describedby":e.id&&a?`${e.id}-helper-text`:void 0,"aria-invalid":!!(t&&i),"aria-errormessage":e.id&&t?`${e.id}-error-text`:void 0,className:d.cn(I({size:p,rounded:g,state:m,className:d.cn("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",n&&u==="left"?"pl-10":"",n&&u==="right"||r==="password"?"pr-10":"",r==="color"?"h-[50px] p-0":"",l)})),...e}),r==="password"&&s.jsxRuntimeExports.jsx("button",{type:"button",tabIndex:-1,"aria-label":x?"Hide password":"Show password",className:"absolute top-1/2 right-3 -translate-y-1/2 rounded-md p-1 hover:bg-neutral-100/50 focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-none",onClick:w,children:s.jsxRuntimeExports.jsx(c.IconComponent,{iconName:x?"IconEyeOff":"IconEye",size:20})}),n&&u==="right"&&r!=="password"&&s.jsxRuntimeExports.jsx("span",{className:"absolute top-1/2 right-3 -translate-y-1/2",children:s.jsxRuntimeExports.jsx(c.IconComponent,{iconName:n.name,stroke:n.stroke,size:20})}),!n&&t&&i&&r!=="password"&&s.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconAlertCircleFilled",size:20,className:"text-destructive absolute top-1/2 right-3 -translate-y-1/2"}),!n&&i&&!t&&e.value&&r!=="password"&&s.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconCircleCheckFilled",size:20,className:"text-success-main absolute top-1/2 right-3 -translate-y-1/2"})]}),t&&i?s.jsxRuntimeExports.jsx("span",{id:e.id&&`${e.id}-error-text`,"aria-invalid":!0,className:"text-destructive text-label-md",children:t}):a?s.jsxRuntimeExports.jsx("span",{id:e.id&&`${e.id}-helper-text`,className:d.cn("text-label-md",{"text-muted-foreground":!t&&!i,"text-destructive":t&&i,"text-success-main":i&&!t&&e.value!==void 0,"text-muted-foreground opacity-50":e.disabled}),children:a}):null]})}exports.Input=z;