@dgshahr/ui-kit 0.0.6 → 0.0.8
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/Accordion/index.cjs +1 -11
- package/dist/Accordion/index.js +5 -1
- package/dist/AccordionItem-eMnIUJ1V.cjs +1 -0
- package/dist/AccordionItem-tKSPLNKs.js +91 -0
- package/dist/Alert/index.cjs +1 -254
- package/dist/Alert/index.js +108 -123
- package/dist/ArrowLeft2-B76dkC-C.cjs +1 -0
- package/dist/{ArrowLeft2-BURhvXT2.js → ArrowLeft2-jP2w1vwt.js} +7 -7
- package/dist/ArrowRight2-CYowPzS8.cjs +1 -0
- package/dist/{ArrowRight2-DCxJPvNC.js → ArrowRight2-CcHdxGRE.js} +7 -7
- package/dist/Badge/index.cjs +1 -72
- package/dist/Badge/index.js +28 -34
- package/dist/Breadcrumb/index.cjs +1 -43
- package/dist/Breadcrumb/index.js +20 -20
- package/dist/Button/index.cjs +1 -119
- package/dist/Button/index.js +71 -78
- package/dist/Divider/index.cjs +1 -25
- package/dist/Divider/index.js +8 -12
- package/dist/Form/Checkbox/index.cjs +1 -72
- package/dist/Form/Checkbox/index.js +22 -26
- package/dist/Form/Input/index.cjs +1 -182
- package/dist/Form/Input/index.js +60 -68
- package/dist/Form/RadioButton/index.cjs +1 -22
- package/dist/Form/RadioButton/index.js +13 -13
- package/dist/Form/Textarea/index.cjs +1 -27
- package/dist/Form/Textarea/index.js +18 -18
- package/dist/Form/Wrappers/TextFieldWrapper/FieldBottomInfo.d.ts +1 -1
- package/dist/Form/Wrappers/TextFieldWrapper/FieldBottomInfo.d.ts.map +1 -1
- package/dist/Form/Wrappers/TextFieldWrapper/FieldLabel.d.ts +1 -1
- package/dist/Form/Wrappers/TextFieldWrapper/FieldLabel.d.ts.map +1 -1
- package/dist/Form/Wrappers/TextFieldWrapper/TextFieldWrapper.d.ts +3 -2
- package/dist/Form/Wrappers/TextFieldWrapper/TextFieldWrapper.d.ts.map +1 -1
- package/dist/Pagination/index.cjs +1 -128
- package/dist/Pagination/index.js +82 -102
- package/dist/{SelectableInputWrapper-BIBVazbq.js → SelectableInputWrapper-B3ylMTsl.js} +37 -38
- package/dist/SelectableInputWrapper-C9x3IShC.cjs +1 -0
- package/dist/Slide-C506y48c.js +233 -0
- package/dist/Slide-Zmb0vKbn.cjs +1 -0
- package/dist/Slider/Navigation.d.ts +9 -0
- package/dist/Slider/Navigation.d.ts.map +1 -0
- package/dist/Slider/NavigationDot.d.ts +0 -3
- package/dist/Slider/NavigationDot.d.ts.map +1 -1
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/context.d.ts +3 -7
- package/dist/Slider/context.d.ts.map +1 -1
- package/dist/Slider/index.cjs +1 -11
- package/dist/Slider/index.js +5 -1
- package/dist/Tabs/index.cjs +1 -0
- package/dist/Tabs/index.d.ts +27 -0
- package/dist/Tabs/index.d.ts.map +1 -0
- package/dist/Tabs/index.js +85 -0
- package/dist/TextFieldWrapper-DYgcloS_.cjs +1 -0
- package/dist/TextFieldWrapper-XM7qL1e2.js +158 -0
- package/dist/assets/Button.css +1 -1713
- package/dist/assets/styles.css +1 -1649
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/index.cjs +1 -34
- package/dist/index.js +28 -12
- package/package.json +11 -1
- package/dist/AccordionItem-BFDuboYi.js +0 -103
- package/dist/AccordionItem-C3MiOBH7.cjs +0 -106
- package/dist/ArrowLeft2-iZ0Au6Fn.cjs +0 -24
- package/dist/ArrowRight2-DTuru_sP.cjs +0 -27
- package/dist/SelectableInputWrapper-g7YtIiBW.cjs +0 -79
- package/dist/Slide-BhWFQV8r.js +0 -234
- package/dist/Slide-BzXDEkqH.cjs +0 -237
- package/dist/TextFieldWrapper-BkoKcbvs.js +0 -167
- package/dist/TextFieldWrapper-D-DH5_DG.cjs +0 -169
- package/dist/clsx-BtxeOLZW.cjs +0 -5
- package/dist/clsx-ChV9xqsO.js +0 -3
|
@@ -1,182 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
const clsx = require('../../clsx-BtxeOLZW.cjs');
|
|
5
|
-
const react = require('react');
|
|
6
|
-
const TextFieldWrapper = require('../../TextFieldWrapper-D-DH5_DG.cjs');
|
|
7
|
-
|
|
8
|
-
const CloseSquareIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9
|
-
"svg",
|
|
10
|
-
{
|
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
-
width: "1em",
|
|
13
|
-
height: "1em",
|
|
14
|
-
fill: "none",
|
|
15
|
-
viewBox: "0 0 24 24",
|
|
16
|
-
...props,
|
|
17
|
-
children: [
|
|
18
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19
|
-
"path",
|
|
20
|
-
{
|
|
21
|
-
fill: "currentColor",
|
|
22
|
-
fillRule: "evenodd",
|
|
23
|
-
d: "m15.456 9.595-5.852 5.852-1.061-1.06 5.853-5.853z",
|
|
24
|
-
clipRule: "evenodd"
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28
|
-
"path",
|
|
29
|
-
{
|
|
30
|
-
fill: "currentColor",
|
|
31
|
-
fillRule: "evenodd",
|
|
32
|
-
d: "m9.6 8.532 5.856 5.858-1.06 1.06-5.857-5.857z",
|
|
33
|
-
clipRule: "evenodd"
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
-
"path",
|
|
38
|
-
{
|
|
39
|
-
fill: "currentColor",
|
|
40
|
-
fillRule: "evenodd",
|
|
41
|
-
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12m10-8.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17",
|
|
42
|
-
clipRule: "evenodd"
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
const EyeIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
50
|
-
"svg",
|
|
51
|
-
{
|
|
52
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
-
width: "1em",
|
|
54
|
-
height: "1em",
|
|
55
|
-
fill: "none",
|
|
56
|
-
viewBox: "0 0 24 24",
|
|
57
|
-
...props,
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
60
|
-
"path",
|
|
61
|
-
{
|
|
62
|
-
fill: "currentColor",
|
|
63
|
-
d: "M12.247 20.812c-4.033 0-7.654-2.828-9.686-7.558a.75.75 0 0 1 0-.592c2.034-4.732 5.655-7.557 9.687-7.557s7.657 2.825 9.69 7.557a.75.75 0 0 1 0 .592c-2.032 4.73-5.653 7.554-9.685 7.557zm-8.182-7.853c1.806 3.983 4.846 6.352 8.18 6.352 3.334.002 6.373-2.369 8.18-6.352-1.808-3.986-4.848-6.354-8.182-6.354s-6.37 2.368-8.176 6.354z"
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
-
"path",
|
|
68
|
-
{
|
|
69
|
-
fill: "currentColor",
|
|
70
|
-
d: "M12.247 16.789a3.825 3.825 0 1 1 0-7.651 3.825 3.825 0 0 1 0 7.65m0-6.152a2.326 2.326 0 1 0 0 4.651 2.326 2.326 0 0 0 0-4.651"
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
const HideIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
78
|
-
"svg",
|
|
79
|
-
{
|
|
80
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
81
|
-
width: "1em",
|
|
82
|
-
height: "1em",
|
|
83
|
-
fill: "none",
|
|
84
|
-
viewBox: "0 0 24 24",
|
|
85
|
-
...props,
|
|
86
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
87
|
-
"path",
|
|
88
|
-
{
|
|
89
|
-
fill: "currentColor",
|
|
90
|
-
fillRule: "evenodd",
|
|
91
|
-
d: "M20.417 3.22a.75.75 0 0 1 0 1.06L4.643 20.055a.744.744 0 0 1-1.06 0 .75.75 0 0 1 0-1.06l1.972-1.971c-1.413-1.293-2.613-3.036-3.493-5.089a.75.75 0 0 1 0-.593C3.082 8.977 4.52 7.02 6.22 5.683c3.292-2.606 7.621-2.744 11.048-.375l2.088-2.088a.75.75 0 0 1 1.06 0m-.37 4.82c.724.962 1.36 2.073 1.891 3.299a.74.74 0 0 1 0 .595C19.842 16.79 16.128 19.69 12 19.69a8.8 8.8 0 0 1-2.769-.451.75.75 0 0 1 .474-1.424A7.3 7.3 0 0 0 12 18.19c3.428 0 6.561-2.442 8.43-6.553a14.5 14.5 0 0 0-1.58-2.694.75.75 0 0 1 1.197-.902M7.15 6.862c-1.437 1.13-2.67 2.776-3.58 4.778.794 1.752 1.836 3.23 3.047 4.322l2.138-2.138a3.87 3.87 0 0 1-.67-2.184A3.92 3.92 0 0 1 12 7.722a3.9 3.9 0 0 1 2.187.669l2.001-2.002c-2.853-1.844-6.325-1.676-9.038.472m8.088 4.6a.75.75 0 0 1 .606.872 3.92 3.92 0 0 1-3.141 3.147.75.75 0 0 1-.268-1.476 2.41 2.41 0 0 0 1.932-1.937.754.754 0 0 1 .87-.606M12 9.221a2.418 2.418 0 0 0-2.152 3.509l3.245-3.246A2.4 2.4 0 0 0 12 9.222",
|
|
92
|
-
clipRule: "evenodd"
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
const Input = react.forwardRef(function Input2(props, ref) {
|
|
99
|
-
const {
|
|
100
|
-
dir = "rtl",
|
|
101
|
-
placeholderDir = dir,
|
|
102
|
-
containerClassName,
|
|
103
|
-
leftIcon,
|
|
104
|
-
prefix,
|
|
105
|
-
postfix,
|
|
106
|
-
isClearOption,
|
|
107
|
-
onClear,
|
|
108
|
-
...restProps
|
|
109
|
-
} = props;
|
|
110
|
-
const [type, setType] = react.useState(restProps.type);
|
|
111
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
-
TextFieldWrapper.TextFieldWrapper,
|
|
113
|
-
{
|
|
114
|
-
...props,
|
|
115
|
-
containerClassName: clsx.clsx("dgs-ui-kit-items-center", containerClassName),
|
|
116
|
-
children: ({ handleChangeField, value, setValue }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
117
|
-
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "dgs-ui-kit-font-p1-regular dgs-ui-kit-text-gray-500", children: prefix }),
|
|
118
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
-
"input",
|
|
120
|
-
{
|
|
121
|
-
...restProps,
|
|
122
|
-
ref,
|
|
123
|
-
className: clsx.clsx(
|
|
124
|
-
"dgs-ui-kit-bg-transparent focus:dgs-ui-kit-outline-none dgs-ui-kit-flex-1",
|
|
125
|
-
dir === "rtl" ? "dgs-ui-kit-text-right" : "!dgs-ui-kit-text-left",
|
|
126
|
-
placeholderDir === "rtl" ? "placeholder:dgs-ui-kit-text-right" : "placeholder:dgs-ui-kit-text-left",
|
|
127
|
-
{
|
|
128
|
-
ss02: restProps.type != "password"
|
|
129
|
-
},
|
|
130
|
-
props.className
|
|
131
|
-
),
|
|
132
|
-
...dir === "ltr" ? { style: { direction: "ltr" } } : {},
|
|
133
|
-
value,
|
|
134
|
-
onChange: handleChangeField,
|
|
135
|
-
type
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
isClearOption && value && value.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
139
|
-
"button",
|
|
140
|
-
{
|
|
141
|
-
onClick: () => {
|
|
142
|
-
setValue("");
|
|
143
|
-
if (typeof onClear === "function") onClear();
|
|
144
|
-
},
|
|
145
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
-
CloseSquareIcon,
|
|
147
|
-
{
|
|
148
|
-
className: "dgs-ui-kit-text-gray-600",
|
|
149
|
-
width: 20,
|
|
150
|
-
height: 20
|
|
151
|
-
}
|
|
152
|
-
)
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
postfix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "dgs-ui-kit-font-p1-regular dgs-ui-kit-text-gray-500", children: postfix }),
|
|
156
|
-
leftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dgs-ui-kit-text-gray-600", children: leftIcon }),
|
|
157
|
-
restProps.type === "password" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
158
|
-
"button",
|
|
159
|
-
{
|
|
160
|
-
onClick: () => setType((prv) => prv === "text" ? "password" : "text"),
|
|
161
|
-
className: "dgs-ui-kit-text-gray-600",
|
|
162
|
-
children: type === "password" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
163
|
-
EyeIcon,
|
|
164
|
-
{
|
|
165
|
-
width: 20,
|
|
166
|
-
height: 20
|
|
167
|
-
}
|
|
168
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
169
|
-
HideIcon,
|
|
170
|
-
{
|
|
171
|
-
width: 20,
|
|
172
|
-
height: 20
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
}
|
|
176
|
-
)
|
|
177
|
-
] })
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
module.exports = Input;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),u=require("../../clsx-C11secjj.cjs"),x=require("react"),C=require("../../TextFieldWrapper-DYgcloS_.cjs"),v=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...t,children:[e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m15.456 9.595-5.852 5.852-1.061-1.06 5.853-5.853z",clipRule:"evenodd"}),e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m9.6 8.532 5.856 5.858-1.06 1.06-5.857-5.857z",clipRule:"evenodd"}),e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12m10-8.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17",clipRule:"evenodd"})]}),y=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...t,children:[e.jsx("path",{fill:"currentColor",d:"M12.247 20.812c-4.033 0-7.654-2.828-9.686-7.558a.75.75 0 0 1 0-.592c2.034-4.732 5.655-7.557 9.687-7.557s7.657 2.825 9.69 7.557a.75.75 0 0 1 0 .592c-2.032 4.73-5.653 7.554-9.685 7.557zm-8.182-7.853c1.806 3.983 4.846 6.352 8.18 6.352 3.334.002 6.373-2.369 8.18-6.352-1.808-3.986-4.848-6.354-8.182-6.354s-6.37 2.368-8.176 6.354z"}),e.jsx("path",{fill:"currentColor",d:"M12.247 16.789a3.825 3.825 0 1 1 0-7.651 3.825 3.825 0 0 1 0 7.65m0-6.152a2.326 2.326 0 1 0 0 4.651 2.326 2.326 0 0 0 0-4.651"})]}),R=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.417 3.22a.75.75 0 0 1 0 1.06L4.643 20.055a.744.744 0 0 1-1.06 0 .75.75 0 0 1 0-1.06l1.972-1.971c-1.413-1.293-2.613-3.036-3.493-5.089a.75.75 0 0 1 0-.593C3.082 8.977 4.52 7.02 6.22 5.683c3.292-2.606 7.621-2.744 11.048-.375l2.088-2.088a.75.75 0 0 1 1.06 0m-.37 4.82c.724.962 1.36 2.073 1.891 3.299a.74.74 0 0 1 0 .595C19.842 16.79 16.128 19.69 12 19.69a8.8 8.8 0 0 1-2.769-.451.75.75 0 0 1 .474-1.424A7.3 7.3 0 0 0 12 18.19c3.428 0 6.561-2.442 8.43-6.553a14.5 14.5 0 0 0-1.58-2.694.75.75 0 0 1 1.197-.902M7.15 6.862c-1.437 1.13-2.67 2.776-3.58 4.778.794 1.752 1.836 3.23 3.047 4.322l2.138-2.138a3.87 3.87 0 0 1-.67-2.184A3.92 3.92 0 0 1 12 7.722a3.9 3.9 0 0 1 2.187.669l2.001-2.002c-2.853-1.844-6.325-1.676-9.038.472m8.088 4.6a.75.75 0 0 1 .606.872 3.92 3.92 0 0 1-3.141 3.147.75.75 0 0 1-.268-1.476 2.41 2.41 0 0 0 1.932-1.937.754.754 0 0 1 .87-.606M12 9.221a2.418 2.418 0 0 0-2.152 3.509l3.245-3.246A2.4 2.4 0 0 0 12 9.222",clipRule:"evenodd"})}),N=x.forwardRef(function(i,h){const{dir:l="rtl",placeholderDir:g=l,containerClassName:p,leftIcon:n,prefix:o,postfix:a,isClearOption:f,onClear:c,...s}=i,[d,m]=x.useState(s.type);return e.jsx(C.TextFieldWrapper,{...i,containerClassName:u.clsx("dgs-ui-kit-items-center",p),children:({handleChangeField:w,value:r,setValue:j})=>e.jsxs(e.Fragment,{children:[o&&e.jsx("span",{className:"dgs-ui-kit-font-p1-regular dgs-ui-kit-text-gray-500",children:o}),e.jsx("input",{...s,ref:h,className:u.clsx("dgs-ui-kit-bg-transparent focus:dgs-ui-kit-outline-none dgs-ui-kit-flex-1",l==="rtl"?"dgs-ui-kit-text-right":"!dgs-ui-kit-text-left",g==="rtl"?"placeholder:dgs-ui-kit-text-right":"placeholder:dgs-ui-kit-text-left",{ss02:s.type!="password"},i.className),...l==="ltr"?{style:{direction:"ltr"}}:{},value:r,onChange:w,type:d}),f&&r&&r.length>0&&e.jsx("button",{onClick:()=>{j(""),typeof c=="function"&&c()},children:e.jsx(v,{className:"dgs-ui-kit-text-gray-600",width:20,height:20})}),a&&e.jsx("span",{className:"dgs-ui-kit-font-p1-regular dgs-ui-kit-text-gray-500",children:a}),n&&e.jsx("div",{className:"dgs-ui-kit-text-gray-600",children:n}),s.type==="password"&&e.jsx("button",{onClick:()=>m(k=>k==="text"?"password":"text"),className:"dgs-ui-kit-text-gray-600",children:d==="password"?e.jsx(y,{width:20,height:20}):e.jsx(R,{width:20,height:20})})]})})});module.exports=N;
|
package/dist/Form/Input/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from
|
|
2
|
-
import { c as
|
|
3
|
-
import { forwardRef, useState } from
|
|
4
|
-
import { T as
|
|
5
|
-
|
|
6
|
-
const CloseSquareIcon = (props) => /* @__PURE__ */ jsxs(
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { forwardRef as y, useState as N } from "react";
|
|
4
|
+
import { T as R } from "../../TextFieldWrapper-XM7qL1e2.js";
|
|
5
|
+
const I = (t) => /* @__PURE__ */ n(
|
|
7
6
|
"svg",
|
|
8
7
|
{
|
|
9
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11,9 +10,9 @@ const CloseSquareIcon = (props) => /* @__PURE__ */ jsxs(
|
|
|
11
10
|
height: "1em",
|
|
12
11
|
fill: "none",
|
|
13
12
|
viewBox: "0 0 24 24",
|
|
14
|
-
...
|
|
13
|
+
...t,
|
|
15
14
|
children: [
|
|
16
|
-
/* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ e(
|
|
17
16
|
"path",
|
|
18
17
|
{
|
|
19
18
|
fill: "currentColor",
|
|
@@ -22,7 +21,7 @@ const CloseSquareIcon = (props) => /* @__PURE__ */ jsxs(
|
|
|
22
21
|
clipRule: "evenodd"
|
|
23
22
|
}
|
|
24
23
|
),
|
|
25
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ e(
|
|
26
25
|
"path",
|
|
27
26
|
{
|
|
28
27
|
fill: "currentColor",
|
|
@@ -31,7 +30,7 @@ const CloseSquareIcon = (props) => /* @__PURE__ */ jsxs(
|
|
|
31
30
|
clipRule: "evenodd"
|
|
32
31
|
}
|
|
33
32
|
),
|
|
34
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ e(
|
|
35
34
|
"path",
|
|
36
35
|
{
|
|
37
36
|
fill: "currentColor",
|
|
@@ -42,9 +41,7 @@ const CloseSquareIcon = (props) => /* @__PURE__ */ jsxs(
|
|
|
42
41
|
)
|
|
43
42
|
]
|
|
44
43
|
}
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
const EyeIcon = (props) => /* @__PURE__ */ jsxs(
|
|
44
|
+
), M = (t) => /* @__PURE__ */ n(
|
|
48
45
|
"svg",
|
|
49
46
|
{
|
|
50
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -52,16 +49,16 @@ const EyeIcon = (props) => /* @__PURE__ */ jsxs(
|
|
|
52
49
|
height: "1em",
|
|
53
50
|
fill: "none",
|
|
54
51
|
viewBox: "0 0 24 24",
|
|
55
|
-
...
|
|
52
|
+
...t,
|
|
56
53
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ e(
|
|
58
55
|
"path",
|
|
59
56
|
{
|
|
60
57
|
fill: "currentColor",
|
|
61
58
|
d: "M12.247 20.812c-4.033 0-7.654-2.828-9.686-7.558a.75.75 0 0 1 0-.592c2.034-4.732 5.655-7.557 9.687-7.557s7.657 2.825 9.69 7.557a.75.75 0 0 1 0 .592c-2.032 4.73-5.653 7.554-9.685 7.557zm-8.182-7.853c1.806 3.983 4.846 6.352 8.18 6.352 3.334.002 6.373-2.369 8.18-6.352-1.808-3.986-4.848-6.354-8.182-6.354s-6.37 2.368-8.176 6.354z"
|
|
62
59
|
}
|
|
63
60
|
),
|
|
64
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ e(
|
|
65
62
|
"path",
|
|
66
63
|
{
|
|
67
64
|
fill: "currentColor",
|
|
@@ -70,9 +67,7 @@ const EyeIcon = (props) => /* @__PURE__ */ jsxs(
|
|
|
70
67
|
)
|
|
71
68
|
]
|
|
72
69
|
}
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
const HideIcon = (props) => /* @__PURE__ */ jsx(
|
|
70
|
+
), z = (t) => /* @__PURE__ */ e(
|
|
76
71
|
"svg",
|
|
77
72
|
{
|
|
78
73
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -80,8 +75,8 @@ const HideIcon = (props) => /* @__PURE__ */ jsx(
|
|
|
80
75
|
height: "1em",
|
|
81
76
|
fill: "none",
|
|
82
77
|
viewBox: "0 0 24 24",
|
|
83
|
-
...
|
|
84
|
-
children: /* @__PURE__ */
|
|
78
|
+
...t,
|
|
79
|
+
children: /* @__PURE__ */ e(
|
|
85
80
|
"path",
|
|
86
81
|
{
|
|
87
82
|
fill: "currentColor",
|
|
@@ -91,57 +86,53 @@ const HideIcon = (props) => /* @__PURE__ */ jsx(
|
|
|
91
86
|
}
|
|
92
87
|
)
|
|
93
88
|
}
|
|
94
|
-
)
|
|
95
|
-
|
|
96
|
-
const Input = forwardRef(function Input2(props, ref) {
|
|
89
|
+
), T = y(function(l, u) {
|
|
97
90
|
const {
|
|
98
|
-
dir = "rtl",
|
|
99
|
-
placeholderDir =
|
|
100
|
-
containerClassName,
|
|
101
|
-
leftIcon,
|
|
102
|
-
prefix,
|
|
103
|
-
postfix,
|
|
104
|
-
isClearOption,
|
|
105
|
-
onClear,
|
|
106
|
-
...
|
|
107
|
-
} =
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
TextFieldWrapper,
|
|
91
|
+
dir: r = "rtl",
|
|
92
|
+
placeholderDir: p = r,
|
|
93
|
+
containerClassName: m,
|
|
94
|
+
leftIcon: o,
|
|
95
|
+
prefix: a,
|
|
96
|
+
postfix: d,
|
|
97
|
+
isClearOption: f,
|
|
98
|
+
onClear: c,
|
|
99
|
+
...i
|
|
100
|
+
} = l, [h, w] = N(i.type);
|
|
101
|
+
return /* @__PURE__ */ e(
|
|
102
|
+
R,
|
|
111
103
|
{
|
|
112
|
-
...
|
|
113
|
-
containerClassName:
|
|
114
|
-
children: ({ handleChangeField, value, setValue }) => /* @__PURE__ */
|
|
115
|
-
|
|
116
|
-
/* @__PURE__ */
|
|
104
|
+
...l,
|
|
105
|
+
containerClassName: g("dgs-ui-kit-items-center", m),
|
|
106
|
+
children: ({ handleChangeField: x, value: s, setValue: k }) => /* @__PURE__ */ n(v, { children: [
|
|
107
|
+
a && /* @__PURE__ */ e("span", { className: "dgs-ui-kit-font-p1-regular dgs-ui-kit-text-gray-500", children: a }),
|
|
108
|
+
/* @__PURE__ */ e(
|
|
117
109
|
"input",
|
|
118
110
|
{
|
|
119
|
-
...
|
|
120
|
-
ref,
|
|
121
|
-
className:
|
|
111
|
+
...i,
|
|
112
|
+
ref: u,
|
|
113
|
+
className: g(
|
|
122
114
|
"dgs-ui-kit-bg-transparent focus:dgs-ui-kit-outline-none dgs-ui-kit-flex-1",
|
|
123
|
-
|
|
124
|
-
|
|
115
|
+
r === "rtl" ? "dgs-ui-kit-text-right" : "!dgs-ui-kit-text-left",
|
|
116
|
+
p === "rtl" ? "placeholder:dgs-ui-kit-text-right" : "placeholder:dgs-ui-kit-text-left",
|
|
125
117
|
{
|
|
126
|
-
ss02:
|
|
118
|
+
ss02: i.type != "password"
|
|
127
119
|
},
|
|
128
|
-
|
|
120
|
+
l.className
|
|
129
121
|
),
|
|
130
|
-
...
|
|
131
|
-
value,
|
|
132
|
-
onChange:
|
|
133
|
-
type
|
|
122
|
+
...r === "ltr" ? { style: { direction: "ltr" } } : {},
|
|
123
|
+
value: s,
|
|
124
|
+
onChange: x,
|
|
125
|
+
type: h
|
|
134
126
|
}
|
|
135
127
|
),
|
|
136
|
-
|
|
128
|
+
f && s && s.length > 0 && /* @__PURE__ */ e(
|
|
137
129
|
"button",
|
|
138
130
|
{
|
|
139
131
|
onClick: () => {
|
|
140
|
-
|
|
141
|
-
if (typeof onClear === "function") onClear();
|
|
132
|
+
k(""), typeof c == "function" && c();
|
|
142
133
|
},
|
|
143
|
-
children: /* @__PURE__ */
|
|
144
|
-
|
|
134
|
+
children: /* @__PURE__ */ e(
|
|
135
|
+
I,
|
|
145
136
|
{
|
|
146
137
|
className: "dgs-ui-kit-text-gray-600",
|
|
147
138
|
width: 20,
|
|
@@ -150,21 +141,21 @@ const Input = forwardRef(function Input2(props, ref) {
|
|
|
150
141
|
)
|
|
151
142
|
}
|
|
152
143
|
),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
144
|
+
d && /* @__PURE__ */ e("span", { className: "dgs-ui-kit-font-p1-regular dgs-ui-kit-text-gray-500", children: d }),
|
|
145
|
+
o && /* @__PURE__ */ e("div", { className: "dgs-ui-kit-text-gray-600", children: o }),
|
|
146
|
+
i.type === "password" && /* @__PURE__ */ e(
|
|
156
147
|
"button",
|
|
157
148
|
{
|
|
158
|
-
onClick: () =>
|
|
149
|
+
onClick: () => w((C) => C === "text" ? "password" : "text"),
|
|
159
150
|
className: "dgs-ui-kit-text-gray-600",
|
|
160
|
-
children:
|
|
161
|
-
|
|
151
|
+
children: h === "password" ? /* @__PURE__ */ e(
|
|
152
|
+
M,
|
|
162
153
|
{
|
|
163
154
|
width: 20,
|
|
164
155
|
height: 20
|
|
165
156
|
}
|
|
166
|
-
) : /* @__PURE__ */
|
|
167
|
-
|
|
157
|
+
) : /* @__PURE__ */ e(
|
|
158
|
+
z,
|
|
168
159
|
{
|
|
169
160
|
width: 20,
|
|
170
161
|
height: 20
|
|
@@ -176,5 +167,6 @@ const Input = forwardRef(function Input2(props, ref) {
|
|
|
176
167
|
}
|
|
177
168
|
);
|
|
178
169
|
});
|
|
179
|
-
|
|
180
|
-
|
|
170
|
+
export {
|
|
171
|
+
T as default
|
|
172
|
+
};
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
const clsx = require('../../clsx-BtxeOLZW.cjs');
|
|
5
|
-
const SelectableInputWrapper = require('../../SelectableInputWrapper-g7YtIiBW.cjs');
|
|
6
|
-
|
|
7
|
-
const RadioButton = (props) => {
|
|
8
|
-
const { className, ...rest } = props;
|
|
9
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SelectableInputWrapper.SelectableInputWrapper, { ...rest, children: ({ inputClassName, checkedInputClassName }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
10
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11
|
-
"input",
|
|
12
|
-
{
|
|
13
|
-
type: "radio",
|
|
14
|
-
className: clsx.clsx("dgs-ui-kit-rounded-full", inputClassName, className),
|
|
15
|
-
...rest
|
|
16
|
-
}
|
|
17
|
-
),
|
|
18
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: checkedInputClassName, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dgs-ui-kit-bg-white dgs-ui-kit-rounded-full dgs-ui-kit-w-2 dgs-ui-kit-h-2" }) })
|
|
19
|
-
] }) });
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
module.exports = RadioButton;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("../../clsx-C11secjj.cjs"),l=require("../../SelectableInputWrapper-C9x3IShC.cjs"),n=t=>{const{className:i,...s}=t;return e.jsx(l.SelectableInputWrapper,{...s,children:({inputClassName:r,checkedInputClassName:u})=>e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"radio",className:c.clsx("dgs-ui-kit-rounded-full",r,i),...s}),e.jsx("div",{className:u,children:e.jsx("div",{className:"dgs-ui-kit-bg-white dgs-ui-kit-rounded-full dgs-ui-kit-w-2 dgs-ui-kit-h-2"})})]})})};module.exports=n;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from
|
|
2
|
-
import { c as
|
|
3
|
-
import { S as
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/* @__PURE__ */ jsx(
|
|
1
|
+
import { jsx as s, jsxs as d, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { S as u } from "../../SelectableInputWrapper-B3ylMTsl.js";
|
|
4
|
+
const p = (t) => {
|
|
5
|
+
const { className: e, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ s(u, { ...i, children: ({ inputClassName: r, checkedInputClassName: a }) => /* @__PURE__ */ d(l, { children: [
|
|
7
|
+
/* @__PURE__ */ s(
|
|
9
8
|
"input",
|
|
10
9
|
{
|
|
11
10
|
type: "radio",
|
|
12
|
-
className:
|
|
13
|
-
...
|
|
11
|
+
className: o("dgs-ui-kit-rounded-full", r, e),
|
|
12
|
+
...i
|
|
14
13
|
}
|
|
15
14
|
),
|
|
16
|
-
/* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ s("div", { className: a, children: /* @__PURE__ */ s("div", { className: "dgs-ui-kit-bg-white dgs-ui-kit-rounded-full dgs-ui-kit-w-2 dgs-ui-kit-h-2" }) })
|
|
17
16
|
] }) });
|
|
18
17
|
};
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export {
|
|
19
|
+
p as default
|
|
20
|
+
};
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
const clsx = require('../../clsx-BtxeOLZW.cjs');
|
|
5
|
-
const react = require('react');
|
|
6
|
-
const TextFieldWrapper = require('../../TextFieldWrapper-D-DH5_DG.cjs');
|
|
7
|
-
|
|
8
|
-
const Textarea = react.forwardRef(function Textarea2(props, ref) {
|
|
9
|
-
const { dir = "rtl", placeholderDir = dir, ...restProps } = props;
|
|
10
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TextFieldWrapper.TextFieldWrapper, { ...props, children: ({ handleChangeField }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
11
|
-
"textarea",
|
|
12
|
-
{
|
|
13
|
-
...restProps,
|
|
14
|
-
ref,
|
|
15
|
-
className: clsx.clsx(
|
|
16
|
-
"dgs-ui-kit-text-gray-800 dgs-ui-kit-bg-transparent dgs-ui-kit-w-full dgs-ui-kit-h-full focus:dgs-ui-kit-outline-none ss02 dgs-ui-kit-flex-1 dgs-ui-kit-resize-none",
|
|
17
|
-
dir === "rtl" ? "dgs-ui-kit-text-right" : "!dgs-ui-kit-text-left",
|
|
18
|
-
placeholderDir === "rtl" ? "placeholder:dgs-ui-kit-text-right" : "placeholder:dgs-ui-kit-text-left",
|
|
19
|
-
restProps.className
|
|
20
|
-
),
|
|
21
|
-
onChange: handleChangeField,
|
|
22
|
-
rows: restProps.rows ?? 5
|
|
23
|
-
}
|
|
24
|
-
) });
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
module.exports = Textarea;
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("../../clsx-C11secjj.cjs"),n=require("react"),d=require("../../TextFieldWrapper-DYgcloS_.cjs"),o=n.forwardRef(function(t,s){const{dir:r="rtl",placeholderDir:l=r,...e}=t;return i.jsx(d.TextFieldWrapper,{...t,children:({handleChangeField:u})=>i.jsx("textarea",{...e,ref:s,className:a.clsx("dgs-ui-kit-text-gray-800 dgs-ui-kit-bg-transparent dgs-ui-kit-w-full dgs-ui-kit-h-full focus:dgs-ui-kit-outline-none ss02 dgs-ui-kit-flex-1 dgs-ui-kit-resize-none",r==="rtl"?"dgs-ui-kit-text-right":"!dgs-ui-kit-text-left",l==="rtl"?"placeholder:dgs-ui-kit-text-right":"placeholder:dgs-ui-kit-text-left",e.className),onChange:u,rows:e.rows??5})})});module.exports=o;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx } from
|
|
2
|
-
import { c as
|
|
3
|
-
import { forwardRef } from
|
|
4
|
-
import { T as
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */ jsx(TextFieldWrapper, { ...props, children: ({ handleChangeField }) => /* @__PURE__ */ jsx(
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { forwardRef as d } from "react";
|
|
4
|
+
import { T as u } from "../../TextFieldWrapper-XM7qL1e2.js";
|
|
5
|
+
const k = d(function(e, s) {
|
|
6
|
+
const { dir: r = "rtl", placeholderDir: a = r, ...t } = e;
|
|
7
|
+
return /* @__PURE__ */ i(u, { ...e, children: ({ handleChangeField: l }) => /* @__PURE__ */ i(
|
|
9
8
|
"textarea",
|
|
10
9
|
{
|
|
11
|
-
...
|
|
12
|
-
ref,
|
|
13
|
-
className:
|
|
10
|
+
...t,
|
|
11
|
+
ref: s,
|
|
12
|
+
className: o(
|
|
14
13
|
"dgs-ui-kit-text-gray-800 dgs-ui-kit-bg-transparent dgs-ui-kit-w-full dgs-ui-kit-h-full focus:dgs-ui-kit-outline-none ss02 dgs-ui-kit-flex-1 dgs-ui-kit-resize-none",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
r === "rtl" ? "dgs-ui-kit-text-right" : "!dgs-ui-kit-text-left",
|
|
15
|
+
a === "rtl" ? "placeholder:dgs-ui-kit-text-right" : "placeholder:dgs-ui-kit-text-left",
|
|
16
|
+
t.className
|
|
18
17
|
),
|
|
19
|
-
onChange:
|
|
20
|
-
rows:
|
|
18
|
+
onChange: l,
|
|
19
|
+
rows: t.rows ?? 5
|
|
21
20
|
}
|
|
22
21
|
) });
|
|
23
22
|
});
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
export {
|
|
24
|
+
k as default
|
|
25
|
+
};
|
|
@@ -3,6 +3,6 @@ interface FieldBottomInfoProps extends Pick<TextFieldBaseProps, 'errorMessage' |
|
|
|
3
3
|
maxLength?: number;
|
|
4
4
|
value?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const FieldBottomInfo: (props: FieldBottomInfoProps) => import("react/jsx-runtime").JSX.Element
|
|
6
|
+
declare const FieldBottomInfo: (props: FieldBottomInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default FieldBottomInfo;
|
|
8
8
|
//# sourceMappingURL=FieldBottomInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldBottomInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Wrappers/TextFieldWrapper/FieldBottomInfo.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,UAAU,oBAAqB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,cAAc,GAAG,aAAa,CAAC;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,eAAe,UAAW,oBAAoB,
|
|
1
|
+
{"version":3,"file":"FieldBottomInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Wrappers/TextFieldWrapper/FieldBottomInfo.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,UAAU,oBAAqB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,cAAc,GAAG,aAAa,CAAC;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,eAAe,UAAW,oBAAoB,4CA8BnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -2,6 +2,6 @@ import { TextFieldBaseProps } from './TextFieldWrapper';
|
|
|
2
2
|
interface FieldLabelProps extends Pick<TextFieldBaseProps, 'link' | 'labelContent'> {
|
|
3
3
|
required?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare const FieldLabel: (props: FieldLabelProps) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
declare const FieldLabel: (props: FieldLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default FieldLabel;
|
|
7
7
|
//# sourceMappingURL=FieldLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Wrappers/TextFieldWrapper/FieldLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,UAAU,eAAgB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,cAAc,CAAC;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"FieldLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Wrappers/TextFieldWrapper/FieldLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,UAAU,eAAgB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,cAAc,CAAC;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,UAAW,eAAe,4CA2BzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeEvent, ChangeEventHandler, Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
export interface TextFieldBaseProps {
|
|
3
3
|
labelContent?: string;
|
|
4
4
|
link?: {
|
|
@@ -12,6 +12,7 @@ export interface TextFieldBaseProps {
|
|
|
12
12
|
isError?: boolean;
|
|
13
13
|
errorMessage?: string;
|
|
14
14
|
hintMessage?: string;
|
|
15
|
+
wrapperClassName?: string;
|
|
15
16
|
}
|
|
16
17
|
interface TextFieldFunctionArgumants<T> {
|
|
17
18
|
handleChangeField: (e: ChangeEvent<T>) => void;
|
|
@@ -23,7 +24,7 @@ interface TextFieldWrapperProps<T> extends TextFieldBaseProps {
|
|
|
23
24
|
required?: boolean;
|
|
24
25
|
maxLength?: number;
|
|
25
26
|
value?: string | number | readonly string[];
|
|
26
|
-
children: (argumants: TextFieldFunctionArgumants<T>) =>
|
|
27
|
+
children: (argumants: TextFieldFunctionArgumants<T>) => ReactNode;
|
|
27
28
|
}
|
|
28
29
|
declare const TextFieldWrapper: <T extends HTMLTextAreaElement | HTMLInputElement>(props: TextFieldWrapperProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
export default TextFieldWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextFieldWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Wrappers/TextFieldWrapper/TextFieldWrapper.tsx"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"TextFieldWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Wrappers/TextFieldWrapper/TextFieldWrapper.tsx"],"names":[],"mappings":"AACA,OAAc,EAGZ,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAIf,OAAO,kBAAkB,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACxB,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACpB,cAAc,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,0BAA0B,CAAC,CAAC;IACpC,iBAAiB,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC/C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CACxD;AAED,UAAU,qBAAqB,CAAC,CAAC,CAAE,SAAQ,kBAAkB;IAC3D,QAAQ,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;IAC5C,QAAQ,EAAE,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;CACnE;AAED,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,SACjE,qBAAqB,CAAC,CAAC,CAAC,4CAoEhC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|