@dgshahr/ui-kit 0.0.25 → 0.0.27

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.
@@ -1,274 +0,0 @@
1
- "use client";
2
- import { jsx as r, jsxs as y, Fragment as D } from "react/jsx-runtime";
3
- import { c as v } from "./clsx-OuTLNxxd.js";
4
- import { createContext as M, useContext as R, useState as N, useEffect as x, useRef as T } from "react";
5
- import { A as O } from "./ArrowLeft2-jP2w1vwt.js";
6
- import { A as V } from "./ArrowRight2-CcHdxGRE.js";
7
- import S from "./Button/index.js";
8
- const P = M({
9
- slidesPerView: 1,
10
- spaceBetween: 0,
11
- navigationVariant: "outside",
12
- showNavigationDots: !0,
13
- showPaginationText: !1
14
- }), C = () => R(P);
15
- function E({
16
- active: e,
17
- autoplay: i,
18
- variant: s = "outside"
19
- }) {
20
- return [
21
- {
22
- inside: "dgs-ui-kit-bg-gray-500/50 hover:dgs-ui-kit-bg-gray-500/80",
23
- outside: "dgs-ui-kit-bg-gray-200 hover:dgs-ui-kit-bg-gray-300"
24
- }[s],
25
- e ? "dgs-ui-kit-w-[22px]" : "dgs-ui-kit-w-[6px]",
26
- i ? "dgs-ui-kit-p-[1px]" : ""
27
- ];
28
- }
29
- const F = (e) => {
30
- const { active: i, onClick: s, onNavigateToNext: n } = e, { autoplay: t, navigationVariant: u = "outside" } = C(), [l, o] = N(0);
31
- return x(() => {
32
- if (!i || !t) return;
33
- const c = typeof t == "boolean" ? 7e3 : t?.delay ?? 7e3;
34
- let a = Date.now();
35
- const g = setInterval(() => {
36
- const h = Date.now() - a, f = h / c * 100;
37
- o(Math.min(f, 100)), h >= c && typeof n == "function" && n();
38
- }, 100);
39
- return function() {
40
- return o(0), a = Date.now(), clearInterval(g);
41
- };
42
- }, [i, t, n]), /* @__PURE__ */ r(
43
- "button",
44
- {
45
- className: v(
46
- "dgs-ui-kit-rounded-full dgs-ui-kit-overflow-hidden dgs-ui-kit-transition-all dgs-ui-kit-h-[6px]",
47
- E({ active: i, autoplay: t, variant: u })
48
- ),
49
- onClick: s,
50
- children: i && /* @__PURE__ */ r(
51
- "div",
52
- {
53
- className: v("dgs-ui-kit-h-full dgs-ui-kit-rounded-full", {
54
- "dgs-ui-kit-bg-white": u === "inside",
55
- "dgs-ui-kit-bg-gray-700": u === "outside"
56
- }),
57
- style: { width: t ? `${l}%` : "100%" }
58
- }
59
- )
60
- }
61
- );
62
- }, K = (e) => {
63
- const { onNavigate: i, slideIndex: s, slidesCount: n } = e, {
64
- navigationButtonsShowType: t = "hide",
65
- dotsClassName: u,
66
- navigationContainerClassName: l,
67
- navigationVariant: o = "outside",
68
- showNavigationDots: c = !0,
69
- showPaginationText: a
70
- } = C(), g = /* @__PURE__ */ y(
71
- "div",
72
- {
73
- className: v("dgs-ui-kit-flex dgs-ui-kit-gap-2", {
74
- "dgs-ui-kit-absolute dgs-ui-kit-bottom-0 dgs-ui-kit-left-[5.5%]": o === "inside" && t !== "onSides",
75
- "dgs-ui-kit-absolute dgs-ui-kit-justify-between dgs-ui-kit-top-1/2 -dgs-ui-kit-translate-y-1/2 dgs-ui-kit-w-full dgs-ui-kit-px-[5.5%]": t === "onSides",
76
- "dgs-ui-kit-opacity-0 group-hover:dgs-ui-kit-opacity-100 dgs-ui-kit-transition": t === "hover" || t === "onSides"
77
- }),
78
- children: [
79
- /* @__PURE__ */ r(
80
- S,
81
- {
82
- type: "button",
83
- variant: "secondary",
84
- onClick: () => i(s - 1),
85
- rightIcon: /* @__PURE__ */ r(V, {})
86
- }
87
- ),
88
- /* @__PURE__ */ r(
89
- S,
90
- {
91
- type: "button",
92
- variant: "secondary",
93
- onClick: () => i(s + 1),
94
- rightIcon: /* @__PURE__ */ r(O, {})
95
- }
96
- )
97
- ]
98
- }
99
- );
100
- return /* @__PURE__ */ y(D, { children: [
101
- t && t !== "hide" && t === "onSides" && g,
102
- /* @__PURE__ */ y(
103
- "div",
104
- {
105
- className: v(
106
- "dgs-ui-kit-flex",
107
- {
108
- "dgs-ui-kit-items-center dgs-ui-kit-mt-2": o === "outside",
109
- "dgs-ui-kit-absolute dgs-ui-kit-bottom-4 dgs-ui-kit-w-full dgs-ui-kit-justify-center": o === "inside",
110
- "dgs-ui-kit-justify-between": o === "outside" && t !== "hide" && t !== "onSides",
111
- "dgs-ui-kit-justify-center": o === "outside" && (t === "hide" || t === "onSides")
112
- },
113
- l
114
- ),
115
- children: [
116
- t && t !== "hide" && t !== "onSides" && g,
117
- (c || a) && /* @__PURE__ */ y("div", { className: "dgs-ui-kit-flex dgs-ui-kit-items-center dgs-ui-kit-gap-3", children: [
118
- a && /* @__PURE__ */ y("div", { className: "dgs-ui-kit-flex dgs-ui-kit-items-center dgs-ui-kit-gap-1 dgs-ui-kit-font-caption-regular dgs-ui-kit-text-gray-400 ss02", children: [
119
- /* @__PURE__ */ r(
120
- "span",
121
- {
122
- className: v("dgs-ui-kit-font-bold", {
123
- "dgs-ui-kit-text-gray-600": o === "outside",
124
- "dgs-ui-kit-text-white": o === "inside"
125
- }),
126
- children: s + 1
127
- }
128
- ),
129
- /* @__PURE__ */ r("span", { children: "از" }),
130
- /* @__PURE__ */ r("span", { children: n })
131
- ] }),
132
- c && /* @__PURE__ */ r(
133
- "div",
134
- {
135
- className: v(
136
- "dgs-ui-kit-flex dgs-ui-kit-items-center dgs-ui-kit-justify-center dgs-ui-kit-gap-2",
137
- u
138
- ),
139
- children: Array.from(Array(n).keys()).map((h, f) => /* @__PURE__ */ r(
140
- F,
141
- {
142
- active: s === f,
143
- onClick: () => i(f),
144
- onNavigateToNext: () => i(s + 1)
145
- },
146
- h + n
147
- ))
148
- }
149
- )
150
- ] })
151
- ]
152
- }
153
- )
154
- ] });
155
- }, Q = (e) => {
156
- const [i, s] = N(0), [n, t] = N(e), [u, l] = N(0), {
157
- className: o = "",
158
- containerClassName: c = "",
159
- showNavigationDots: a = !0,
160
- slidesPerView: g = 1,
161
- navigationButtonsShowType: h = "hide",
162
- spaceBetween: f = 0,
163
- showPaginationText: j
164
- } = n, I = Object.fromEntries(
165
- Object.entries(n).filter(([d]) => d !== "children")
166
- ), k = T(null), m = Math.ceil(u / Math.floor(g)), A = (a || h && h !== "hide" || j) && m > 1;
167
- function B(d) {
168
- if (Math.ceil(Math.abs(d.currentTarget.scrollLeft)) + d.currentTarget.clientWidth === d.currentTarget.scrollWidth) {
169
- s(m - 1);
170
- return;
171
- }
172
- const p = d.currentTarget.scrollWidth / m, w = (d.currentTarget.scrollWidth - d.currentTarget.scrollLeft) / p;
173
- if (w <= m) {
174
- s(0);
175
- return;
176
- }
177
- s(Math.round(w % m));
178
- }
179
- function L(d) {
180
- if (!k.current) return;
181
- const p = k.current.offsetWidth;
182
- d < 0 ? k.current.scrollTo({ behavior: "smooth", left: -(p * m) }) : d >= m ? k.current.scrollTo({ behavior: "smooth", left: 0 }) : i > d ? k.current.scrollBy({ behavior: "smooth", left: p }) : k.current.scrollBy({ behavior: "smooth", left: -p });
183
- }
184
- function b() {
185
- const p = Object.keys(e.responsive).sort().findLast(
186
- (W) => Number(W) <= window.innerWidth
187
- ), w = p ? e.responsive[Number(p)] : null;
188
- t(w ? { ...n, ...w } : e);
189
- }
190
- return x(() => {
191
- k.current && l(k.current.childNodes.length);
192
- }, [e.children]), x(() => {
193
- if (!(!e.responsive || Object.keys(e.responsive).length <= 0))
194
- return b(), window.addEventListener("resize", b), () => {
195
- window.removeEventListener("resize", b);
196
- };
197
- }, [e.responsive]), /* @__PURE__ */ r(P.Provider, { value: I, children: /* @__PURE__ */ y(
198
- "div",
199
- {
200
- className: v(
201
- "dgs-ui-kit-overflow-hidden dgs-ui-kit-relative dgs-ui-kit-group",
202
- o
203
- ),
204
- style: { direction: "rtl" },
205
- children: [
206
- /* @__PURE__ */ r(
207
- "div",
208
- {
209
- className: v(
210
- "dgs-ui-kit-flex dgs-ui-kit-snap-x dgs-ui-kit-snap-mandatory dgs-ui-kit-overflow-x-auto no-scrollbar",
211
- c
212
- ),
213
- style: { marginLeft: -f },
214
- onScroll: B,
215
- ref: k,
216
- children: e.children
217
- }
218
- ),
219
- A && /* @__PURE__ */ r(
220
- K,
221
- {
222
- onNavigate: L,
223
- slideIndex: i,
224
- slidesCount: m
225
- }
226
- )
227
- ]
228
- }
229
- ) });
230
- };
231
- function z({
232
- slidesPerView: e,
233
- childIndex: i,
234
- centerMode: s,
235
- childrenCount: n
236
- }) {
237
- const t = i % Math.floor(e) === 0, u = e % 1 !== 0, l = i === 0, o = i === n - 1;
238
- return t ? s && u ? l ? "start" : o ? "end" : "center" : "start" : "none";
239
- }
240
- const U = (e) => {
241
- const { children: i, className: s, style: n, ...t } = e, {
242
- slidesPerView: u = 1,
243
- spaceBetween: l = 0,
244
- centerMode: o = !1,
245
- containerXPadding: c = 0
246
- } = C(), a = T(null), [g, h] = N(0), f = a.current?.parentNode?.children.length;
247
- return x(() => {
248
- a.current && h(Array.prototype.indexOf.call(a.current.parentNode?.children, a.current));
249
- }, [a]), /* @__PURE__ */ r(
250
- "div",
251
- {
252
- ...t,
253
- ref: a,
254
- className: v("dgs-ui-kit-shrink-0 dgs-ui-kit-snap-always", s),
255
- style: {
256
- width: 100 / (u ?? 1) + "%",
257
- paddingLeft: f && g === f - 1 ? c + l : l,
258
- paddingRight: g === 0 ? c : 0,
259
- scrollSnapAlign: z({
260
- slidesPerView: u,
261
- childIndex: g,
262
- centerMode: o,
263
- childrenCount: f || 0
264
- }),
265
- ...n
266
- },
267
- children: i
268
- }
269
- );
270
- };
271
- export {
272
- Q as S,
273
- U as a
274
- };
@@ -1 +0,0 @@
1
- "use client";"use strict";const e=require("react/jsx-runtime"),x=require("./clsx-C11secjj.cjs"),u=require("react"),L=require("./ArrowLeft2-B76dkC-C.cjs"),A=require("./ArrowRight2-CYowPzS8.cjs"),j=require("./Button/index.cjs"),b=u.createContext({slidesPerView:1,spaceBetween:0,navigationVariant:"outside",showNavigationDots:!0,showPaginationText:!1}),N=()=>u.useContext(b);function B({active:i,autoplay:s,variant:n="outside"}){return[{inside:"dgs-ui-kit-bg-gray-500/50 hover:dgs-ui-kit-bg-gray-500/80",outside:"dgs-ui-kit-bg-gray-200 hover:dgs-ui-kit-bg-gray-300"}[n],i?"dgs-ui-kit-w-[22px]":"dgs-ui-kit-w-[6px]",s?"dgs-ui-kit-p-[1px]":""]}const W=i=>{const{active:s,onClick:n,onNavigateToNext:r}=i,{autoplay:t,navigationVariant:l="outside"}=N(),[c,o]=u.useState(0);return u.useEffect(()=>{if(!s||!t)return;const g=typeof t=="boolean"?7e3:t?.delay??7e3;let a=Date.now();const h=setInterval(()=>{const f=Date.now()-a,k=f/g*100;o(Math.min(k,100)),f>=g&&typeof r=="function"&&r()},100);return function(){return o(0),a=Date.now(),clearInterval(h)}},[s,t,r]),e.jsx("button",{className:x.clsx("dgs-ui-kit-rounded-full dgs-ui-kit-overflow-hidden dgs-ui-kit-transition-all dgs-ui-kit-h-[6px]",B({active:s,autoplay:t,variant:l})),onClick:n,children:s&&e.jsx("div",{className:x.clsx("dgs-ui-kit-h-full dgs-ui-kit-rounded-full",{"dgs-ui-kit-bg-white":l==="inside","dgs-ui-kit-bg-gray-700":l==="outside"}),style:{width:t?`${c}%`:"100%"}})})},D=i=>{const{onNavigate:s,slideIndex:n,slidesCount:r}=i,{navigationButtonsShowType:t="hide",dotsClassName:l,navigationContainerClassName:c,navigationVariant:o="outside",showNavigationDots:g=!0,showPaginationText:a}=N(),h=e.jsxs("div",{className:x.clsx("dgs-ui-kit-flex dgs-ui-kit-gap-2",{"dgs-ui-kit-absolute dgs-ui-kit-bottom-0 dgs-ui-kit-left-[5.5%]":o==="inside"&&t!=="onSides","dgs-ui-kit-absolute dgs-ui-kit-justify-between dgs-ui-kit-top-1/2 -dgs-ui-kit-translate-y-1/2 dgs-ui-kit-w-full dgs-ui-kit-px-[5.5%]":t==="onSides","dgs-ui-kit-opacity-0 group-hover:dgs-ui-kit-opacity-100 dgs-ui-kit-transition":t==="hover"||t==="onSides"}),children:[e.jsx(j,{type:"button",variant:"secondary",onClick:()=>s(n-1),rightIcon:e.jsx(A.ArrowRight2Icon,{})}),e.jsx(j,{type:"button",variant:"secondary",onClick:()=>s(n+1),rightIcon:e.jsx(L.ArrowLeft2Icon,{})})]});return e.jsxs(e.Fragment,{children:[t&&t!=="hide"&&t==="onSides"&&h,e.jsxs("div",{className:x.clsx("dgs-ui-kit-flex",{"dgs-ui-kit-items-center dgs-ui-kit-mt-2":o==="outside","dgs-ui-kit-absolute dgs-ui-kit-bottom-4 dgs-ui-kit-w-full dgs-ui-kit-justify-center":o==="inside","dgs-ui-kit-justify-between":o==="outside"&&t!=="hide"&&t!=="onSides","dgs-ui-kit-justify-center":o==="outside"&&(t==="hide"||t==="onSides")},c),children:[t&&t!=="hide"&&t!=="onSides"&&h,(g||a)&&e.jsxs("div",{className:"dgs-ui-kit-flex dgs-ui-kit-items-center dgs-ui-kit-gap-3",children:[a&&e.jsxs("div",{className:"dgs-ui-kit-flex dgs-ui-kit-items-center dgs-ui-kit-gap-1 dgs-ui-kit-font-caption-regular dgs-ui-kit-text-gray-400 ss02",children:[e.jsx("span",{className:x.clsx("dgs-ui-kit-font-bold",{"dgs-ui-kit-text-gray-600":o==="outside","dgs-ui-kit-text-white":o==="inside"}),children:n+1}),e.jsx("span",{children:"از"}),e.jsx("span",{children:r})]}),g&&e.jsx("div",{className:x.clsx("dgs-ui-kit-flex dgs-ui-kit-items-center dgs-ui-kit-justify-center dgs-ui-kit-gap-2",l),children:Array.from(Array(r).keys()).map((f,k)=>e.jsx(W,{active:n===k,onClick:()=>s(k),onNavigateToNext:()=>s(n+1)},f+r))})]})]})]})},M=i=>{const[s,n]=u.useState(0),[r,t]=u.useState(i),[l,c]=u.useState(0),{className:o="",containerClassName:g="",showNavigationDots:a=!0,slidesPerView:h=1,navigationButtonsShowType:f="hide",spaceBetween:k=0,showPaginationText:C}=r,S=Object.fromEntries(Object.entries(r).filter(([d])=>d!=="children")),v=u.useRef(null),y=Math.ceil(l/Math.floor(h)),T=(a||f&&f!=="hide"||C)&&y>1;function P(d){if(Math.ceil(Math.abs(d.currentTarget.scrollLeft))+d.currentTarget.clientWidth===d.currentTarget.scrollWidth){n(y-1);return}const p=d.currentTarget.scrollWidth/y,m=(d.currentTarget.scrollWidth-d.currentTarget.scrollLeft)/p;if(m<=y){n(0);return}n(Math.round(m%y))}function R(d){if(!v.current)return;const p=v.current.offsetWidth;d<0?v.current.scrollTo({behavior:"smooth",left:-(p*y)}):d>=y?v.current.scrollTo({behavior:"smooth",left:0}):s>d?v.current.scrollBy({behavior:"smooth",left:p}):v.current.scrollBy({behavior:"smooth",left:-p})}function w(){const p=Object.keys(i.responsive).sort().findLast(I=>Number(I)<=window.innerWidth),m=p?i.responsive[Number(p)]:null;t(m?{...r,...m}:i)}return u.useEffect(()=>{v.current&&c(v.current.childNodes.length)},[i.children]),u.useEffect(()=>{if(!(!i.responsive||Object.keys(i.responsive).length<=0))return w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)}},[i.responsive]),e.jsx(b.Provider,{value:S,children:e.jsxs("div",{className:x.clsx("dgs-ui-kit-overflow-hidden dgs-ui-kit-relative dgs-ui-kit-group",o),style:{direction:"rtl"},children:[e.jsx("div",{className:x.clsx("dgs-ui-kit-flex dgs-ui-kit-snap-x dgs-ui-kit-snap-mandatory dgs-ui-kit-overflow-x-auto no-scrollbar",g),style:{marginLeft:-k},onScroll:P,ref:v,children:i.children}),T&&e.jsx(D,{onNavigate:R,slideIndex:s,slidesCount:y})]})})};function E({slidesPerView:i,childIndex:s,centerMode:n,childrenCount:r}){const t=s%Math.floor(i)===0,l=i%1!==0,c=s===0,o=s===r-1;return t?n&&l?c?"start":o?"end":"center":"start":"none"}const q=i=>{const{children:s,className:n,style:r,...t}=i,{slidesPerView:l=1,spaceBetween:c=0,centerMode:o=!1,containerXPadding:g=0}=N(),a=u.useRef(null),[h,f]=u.useState(0),k=a.current?.parentNode?.children.length;return u.useEffect(()=>{a.current&&f(Array.prototype.indexOf.call(a.current.parentNode?.children,a.current))},[a]),e.jsx("div",{...t,ref:a,className:x.clsx("dgs-ui-kit-shrink-0 dgs-ui-kit-snap-always",n),style:{width:100/(l??1)+"%",paddingLeft:k&&h===k-1?g+c:c,paddingRight:h===0?g:0,scrollSnapAlign:E({slidesPerView:l,childIndex:h,centerMode:o,childrenCount:k||0}),...r},children:s})};exports.Slide=q;exports.Slider=M;
@@ -1 +0,0 @@
1
- "use client";"use strict";require('./assets/styles.css');const e=require("react/jsx-runtime"),u=require("./clsx-C11secjj.cjs"),k=require("react");;/* empty css */const L=r=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...r,children:[e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 3.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5M2.5 12a9.75 9.75 0 0 1 9.75-9.75A9.75 9.75 0 0 1 22 12c0 5.384-4.365 9.75-9.75 9.75S2.5 17.384 2.5 12",clipRule:"evenodd"}),e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 7.541a.75.75 0 0 1 .75.75v.063a.75.75 0 0 1-1.5 0v-.063a.75.75 0 0 1 .75-.75m.006 3.103a.75.75 0 0 1 .75.75v4.3a.75.75 0 0 1-1.5 0v-4.3a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),N=r=>{const{errorMessage:i,hintMessage:t,maxLength:s,value:n,disabled:a}=r;return e.jsxs("div",{className:u.clsx("dgs-ui-kit-flex dgs-ui-kit-font-p3-regular",{"dgs-ui-kit-justify-between":(i||t)&&s,"dgs-ui-kit-justify-start":(i||t)&&!s,"dgs-ui-kit-justify-end":!(i||t)&&s,"dgs-ui-kit-text-gray-400":a},i?"dgs-ui-kit-text-error-500":"dgs-ui-kit-text-gray-500"),children:[(i||t)&&e.jsxs("div",{className:u.clsx("dgs-ui-kit-flex dgs-ui-kit-items-center dgs-ui-kit-gap-2 dgs-ui-kit-font-light",{"dgs-ui-kit-text-gray-400":a}),children:[e.jsx(L,{width:16,height:16}),e.jsx("span",{children:i||t})]}),s&&e.jsxs("span",{className:"ss02",children:[n?.length??0,"/",s]})]})},C=r=>{const{link:i,labelContent:t,required:s,disabled:n}=r;return e.jsxs("div",{className:u.clsx("dgs-ui-kit-flex dgs-ui-kit-mb-2",{"dgs-ui-kit-justify-between":t&&i?.href,"dgs-ui-kit-justify-start":t&&!i?.href,"dgs-ui-kit-justify-end":!t&&i?.href,"dgs-ui-kit-text-gray-400":n}),children:[t&&e.jsxs("label",{className:"dgs-ui-kit-px-0 dgs-ui-kit-font-p2-medium md:dgs-ui-kit-mx-0",children:[t,s&&e.jsx("span",{className:"dgs-ui-kit-ms-2 dgs-ui-kit-text-error-500",children:"*"})]}),i?.href&&e.jsx("a",{href:i.href,className:"dgs-ui-kit-font-button-small dgs-ui-kit-text-primary-400",children:i.cnotent})]})},E=r=>{const{labelContent:i,link:t,containerClassName:s,rightIcon:n,isError:a,errorMessage:g,hintMessage:h,required:F,maxLength:x,disabled:o,value:d,wrapperClassName:f,showMaxLength:m,onChange:p,children:M}=r,[v,c]=k.useState(d?.toString()??"");k.useEffect(()=>{typeof d<"u"&&d!==null&&c(d?.toString())},[d]);const q=l=>{c(l.currentTarget.value),p&&p(l)},j=!!(g||h||x&&m),b=!!(i||t?.href),y=j||b?"div":k.Fragment,I=l=>{const w=l.currentTarget.querySelector("textarea, input");w&&w.focus()};return e.jsxs(y,{...y==="div"&&f?{className:f}:{},children:[b&&e.jsx(C,{disabled:o,labelContent:i,link:t,required:F}),e.jsxs("div",{onClick:I,className:u.clsx("dgs-ui-kit-relative dgs-ui-kit-cursor-text dgs-ui-kit-border dgs-ui-kit-border-solid dgs-ui-kit-rounded-lg dgs-ui-kit-ring-4 dgs-ui-kit-flex dgs-ui-kit-justify-between dgs-ui-kit-gap-x-3 dgs-ui-kit-p-3 dgs-ui-kit-bg-gray-100 dgs-ui-kit-transition-all dgs-ui-kit-ring-transparent hover:dgs-ui-kit-ring-gray-50 has-[:focus]:dgs-ui-kit-bg-white ",a||g?"dgs-ui-kit-border-error-500 has-[:focus]:dgs-ui-kit-ring-error-50":"dgs-ui-kit-border-transparent hover:dgs-ui-kit-border-gray-300 has-[:focus]:dgs-ui-kit-border-primary-500 has-[:focus]:dgs-ui-kit-ring-primary-50",s,{"dgs-ui-kit-text-gray-400":o}),children:[n&&e.jsx("div",{className:"dgs-ui-kit-text-gray-600",children:n}),M({handleChangeField:q,setValue:c,value:v})]}),j&&e.jsx(N,{disabled:o,errorMessage:g,hintMessage:h,maxLength:m?x:void 0,value:v})]})};exports.FieldBottomInfo=N;exports.FieldLabel=C;exports.TextFieldWrapper=E;