@dgshahr/ui-kit 1.3.1 → 1.4.0
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/Form/Datepicker/Days.d.ts.map +1 -1
- package/dist/Form/Datepicker/Months.d.ts.map +1 -1
- package/dist/Form/Datepicker/Years.d.ts.map +1 -1
- package/dist/Form/Datepicker/index.cjs +1 -1
- package/dist/Form/Datepicker/index.mjs +621 -585
- package/dist/Form/Datepicker/types.d.ts +15 -2
- package/dist/Form/Datepicker/types.d.ts.map +1 -1
- package/dist/Form/Datepicker/utils.d.ts +10 -0
- package/dist/Form/Datepicker/utils.d.ts.map +1 -0
- package/dist/Form/Input/index.cjs +1 -1
- package/dist/Form/Input/index.d.ts.map +1 -1
- package/dist/Form/Input/index.mjs +1 -1
- package/dist/Form/OtpInput/index.cjs +1 -1
- package/dist/Form/OtpInput/index.mjs +1 -1
- package/dist/Form/Select/index.cjs +1 -1
- package/dist/Form/Select/index.mjs +2 -2
- package/dist/{PickerWrapper-DW8CAD-G.cjs → PickerWrapper-CJEhuXjK.cjs} +1 -1
- package/dist/{PickerWrapper-D84kUgJt.js → PickerWrapper-Dq1KZ9op.js} +1 -1
- package/dist/Sidebar/index.cjs +1 -1
- package/dist/Sidebar/index.mjs +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/{index-Cj_9z9UD.js → index-ChP5zdaB.js} +29 -29
- package/dist/{index-BCqGGELs.cjs → index-DmSuyV3m.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as s } from "./clsx-OuTLNxxd.js";
|
|
3
3
|
import { forwardRef as I, useState as N } from "react";
|
|
4
4
|
import { I as R } from "./IconEye-DATABBb3.js";
|
|
5
5
|
import { o as b } from "./omitObjects-CxFrrlkX.js";
|
|
6
6
|
import { T as M } from "./TextFieldWrapper-DAv2s5vj.js";
|
|
7
|
-
const
|
|
7
|
+
const L = (l) => /* @__PURE__ */ h(
|
|
8
8
|
"svg",
|
|
9
9
|
{
|
|
10
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12,7 +12,7 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
12
12
|
height: "1em",
|
|
13
13
|
fill: "none",
|
|
14
14
|
viewBox: "0 0 24 24",
|
|
15
|
-
...
|
|
15
|
+
...l,
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ t(
|
|
18
18
|
"path",
|
|
@@ -43,7 +43,7 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
43
43
|
)
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
|
-
),
|
|
46
|
+
), A = (l) => /* @__PURE__ */ t(
|
|
47
47
|
"svg",
|
|
48
48
|
{
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -51,7 +51,7 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
51
51
|
height: "1em",
|
|
52
52
|
fill: "none",
|
|
53
53
|
viewBox: "0 0 24 24",
|
|
54
|
-
...
|
|
54
|
+
...l,
|
|
55
55
|
children: /* @__PURE__ */ t(
|
|
56
56
|
"path",
|
|
57
57
|
{
|
|
@@ -62,7 +62,7 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
|
-
), q = I(function(
|
|
65
|
+
), q = I(function(a, m) {
|
|
66
66
|
const {
|
|
67
67
|
dir: i = "rtl",
|
|
68
68
|
placeholderDir: x = i,
|
|
@@ -73,9 +73,9 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
73
73
|
postfix: g,
|
|
74
74
|
postfixClassName: k,
|
|
75
75
|
onClear: n,
|
|
76
|
-
value:
|
|
76
|
+
value: r,
|
|
77
77
|
...e
|
|
78
|
-
} =
|
|
78
|
+
} = a, C = b(e, [
|
|
79
79
|
"labelAddon",
|
|
80
80
|
"labelContent",
|
|
81
81
|
"link",
|
|
@@ -85,7 +85,7 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
85
85
|
"hintMessage",
|
|
86
86
|
"wrapperClassName",
|
|
87
87
|
"showMaxLength"
|
|
88
|
-
]), [
|
|
88
|
+
]), [d, y] = N(e.type);
|
|
89
89
|
function f() {
|
|
90
90
|
return /* @__PURE__ */ t(
|
|
91
91
|
"button",
|
|
@@ -94,7 +94,7 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
94
94
|
typeof n == "function" && n();
|
|
95
95
|
},
|
|
96
96
|
children: /* @__PURE__ */ t(
|
|
97
|
-
|
|
97
|
+
L,
|
|
98
98
|
{
|
|
99
99
|
className: "dgsuikit:text-gray-600",
|
|
100
100
|
width: 20,
|
|
@@ -107,53 +107,53 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
107
107
|
return /* @__PURE__ */ h(
|
|
108
108
|
M,
|
|
109
109
|
{
|
|
110
|
-
...
|
|
111
|
-
containerClassName:
|
|
112
|
-
value:
|
|
110
|
+
...a,
|
|
111
|
+
containerClassName: s("dgsuikit:items-center", w),
|
|
112
|
+
value: r,
|
|
113
113
|
children: [
|
|
114
|
-
p && /* @__PURE__ */ t("div", { className:
|
|
115
|
-
typeof n == "function" &&
|
|
114
|
+
p && /* @__PURE__ */ t("div", { className: s("dgsuikit:font-p1-regular dgsuikit:text-gray-500", v), children: p }),
|
|
115
|
+
typeof n == "function" && r && i === "ltr" && f(),
|
|
116
116
|
/* @__PURE__ */ t(
|
|
117
117
|
"input",
|
|
118
118
|
{
|
|
119
119
|
...C,
|
|
120
120
|
ref: m,
|
|
121
|
-
className:
|
|
121
|
+
className: s(
|
|
122
122
|
"dgsuikit:bg-transparent dgsuikit:focus:outline-none dgsuikit:flex-1",
|
|
123
123
|
i === "rtl" ? "dgsuikit:text-right" : "dgsuikit:!text-left",
|
|
124
124
|
x === "rtl" ? "dgsuikit:placeholder:text-right" : "dgsuikit:placeholder:text-left",
|
|
125
125
|
{
|
|
126
126
|
"dgsuikit:ss02": e.type != "password"
|
|
127
127
|
},
|
|
128
|
-
|
|
128
|
+
a.className
|
|
129
129
|
),
|
|
130
130
|
...i === "ltr" ? { style: { direction: "ltr" } } : {},
|
|
131
|
-
value:
|
|
132
|
-
type:
|
|
133
|
-
onInput: (
|
|
134
|
-
if (typeof e.onInput == "function" && e.onInput(
|
|
135
|
-
const
|
|
136
|
-
|
|
131
|
+
value: r,
|
|
132
|
+
type: d,
|
|
133
|
+
onInput: (o) => {
|
|
134
|
+
if (typeof e.onInput == "function" && e.onInput(o) || d !== "number") return;
|
|
135
|
+
const c = o.currentTarget;
|
|
136
|
+
e.maxLength && c.value.length > e.maxLength && (c.value = c.value.slice(0, e.maxLength));
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
),
|
|
140
|
-
typeof n == "function" &&
|
|
141
|
-
g && /* @__PURE__ */ t("div", { className:
|
|
140
|
+
typeof n == "function" && r && i === "rtl" && f(),
|
|
141
|
+
g && /* @__PURE__ */ t("div", { className: s("dgsuikit:font-p1-regular dgsuikit:text-gray-500", k), children: g }),
|
|
142
142
|
u && /* @__PURE__ */ t("div", { className: "dgsuikit:text-gray-600", children: u }),
|
|
143
143
|
e.type === "password" && /* @__PURE__ */ t(
|
|
144
144
|
"button",
|
|
145
145
|
{
|
|
146
146
|
type: "button",
|
|
147
|
-
onClick: () => y((
|
|
147
|
+
onClick: () => y((o) => o === "text" ? "password" : "text"),
|
|
148
148
|
className: "dgsuikit:text-gray-600",
|
|
149
|
-
children:
|
|
149
|
+
children: d === "password" ? /* @__PURE__ */ t(
|
|
150
150
|
R,
|
|
151
151
|
{
|
|
152
152
|
width: 20,
|
|
153
153
|
height: 20
|
|
154
154
|
}
|
|
155
155
|
) : /* @__PURE__ */ t(
|
|
156
|
-
|
|
156
|
+
A,
|
|
157
157
|
{
|
|
158
158
|
width: 20,
|
|
159
159
|
height: 20
|
|
@@ -167,5 +167,5 @@ const A = (r) => /* @__PURE__ */ h(
|
|
|
167
167
|
});
|
|
168
168
|
export {
|
|
169
169
|
q as I,
|
|
170
|
-
|
|
170
|
+
L as a
|
|
171
171
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("./clsx-C11secjj.cjs"),h=require("react"),I=require("./IconEye-sBk4Mro2.cjs"),N=require("./omitObjects-CtiYo0hv.cjs"),R=require("./TextFieldWrapper-DA0qiI_m.cjs"),f=s=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...s,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"})]}),b=s=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...s,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"})}),q=h.forwardRef(function(a,m){const{dir:i="rtl",placeholderDir:w=i,containerClassName:v,leftIcon:d,prefix:x,prefixClassName:j,postfix:p,postfixClassName:k,onClear:n,value:l,...t}=a,C=N.omitObject(t,["labelAddon","labelContent","link","rightIcon","isError","errorMessage","hintMessage","wrapperClassName","showMaxLength"]),[c,y]=h.useState(t.type);function g(){return e.jsx("button",{onClick:()=>{typeof n=="function"&&n()},children:e.jsx(f,{className:"dgsuikit:text-gray-600",width:20,height:20})})}return e.jsxs(R.TextFieldWrapper,{...a,containerClassName:o.clsx("dgsuikit:items-center",v),value:l,children:[x&&e.jsx("div",{className:o.clsx("dgsuikit:font-p1-regular dgsuikit:text-gray-500",j),children:x}),typeof n=="function"&&l&&i==="ltr"&&g(),e.jsx("input",{...C,ref:m,className:o.clsx("dgsuikit:bg-transparent dgsuikit:focus:outline-none dgsuikit:flex-1",i==="rtl"?"dgsuikit:text-right":"dgsuikit:!text-left",w==="rtl"?"dgsuikit:placeholder:text-right":"dgsuikit:placeholder:text-left",{"dgsuikit:ss02":t.type!="password"},a.className),...i==="ltr"?{style:{direction:"ltr"}}:{},value:l,type:c,onInput:r=>{if(typeof t.onInput=="function"&&t.onInput(r)||c!=="number")return;const u=r.currentTarget;t.maxLength&&u.value.length>t.maxLength&&(u.value=u.value.slice(0,t.maxLength))}}),typeof n=="function"&&l&&i==="rtl"&&g(),p&&e.jsx("div",{className:o.clsx("dgsuikit:font-p1-regular dgsuikit:text-gray-500",k),children:p}),d&&e.jsx("div",{className:"dgsuikit:text-gray-600",children:d}),t.type==="password"&&e.jsx("button",{type:"button",onClick:()=>y(r=>r==="text"?"password":"text"),className:"dgsuikit:text-gray-600",children:c==="password"?e.jsx(I.IconEye,{width:20,height:20}):e.jsx(b,{width:20,height:20})})]})});exports.IconCloseSquare=f;exports.Input=q;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/styles.css');;/* empty css */const e=require("./AccordionItem-BrqkdsVm.cjs"),t=require("./Alert/index.cjs"),i=require("./Badge/index.cjs"),n=require("./Breadcrumb/index.cjs"),u=require("./Button/index.cjs"),c=require("./Card/index.cjs"),s=require("./Chip/index.cjs"),a=require("./Divider/index.cjs"),q=require("./Drawer/index.cjs"),p=require("./Form/Checkbox/index.cjs"),d=require("./Form/Datepicker/index.cjs"),l=require("./Form/FileUploader/index.cjs"),S=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/styles.css');;/* empty css */const e=require("./AccordionItem-BrqkdsVm.cjs"),t=require("./Alert/index.cjs"),i=require("./Badge/index.cjs"),n=require("./Breadcrumb/index.cjs"),u=require("./Button/index.cjs"),c=require("./Card/index.cjs"),s=require("./Chip/index.cjs"),a=require("./Divider/index.cjs"),q=require("./Drawer/index.cjs"),p=require("./Form/Checkbox/index.cjs"),d=require("./Form/Datepicker/index.cjs"),l=require("./Form/FileUploader/index.cjs"),S=require("./index-DmSuyV3m.cjs"),m=require("./Form/OtpInput/index.cjs"),g=require("./Form/RadioButton/index.cjs"),b=require("./Form/RangeInput/index.cjs"),F=require("./Form/Select/index.cjs"),_=require("./Form/Switch/index.cjs"),B=require("./Form/Textarea/index.cjs"),I=require("./Pagination/index.cjs"),T=require("./Progress/Bar/index.cjs"),h=require("./Progress/Doughnut/index.cjs"),D=require("./Rate/index.cjs"),A=require("./Sidebar/index.cjs"),r=require("./Slide-CdFHPwvj.cjs"),o=require("./Step-Cm0v__Sg.cjs"),P=require("./Table/index.cjs"),C=require("./Tabs/index.cjs"),R=require("./Tooltip/index.cjs");exports.AccordionGroup=e.AccordionGroup;exports.AccordionItem=e.AccordionItem;exports.Alert=t;exports.Badge=i;exports.Breadcrumb=n;exports.Button=u;exports.Card=c;exports.Chip=s;exports.Divider=a;exports.Drawer=q;exports.Checkbox=p;exports.Datepicker=d;exports.FileUploader=l;exports.Input=S.Input;exports.OtpInput=m;exports.RadioButton=g;exports.RangeInput=b;exports.Select=F;exports.Switch=_;exports.Textarea=B;exports.Pagination=I;exports.ProgressBar=T;exports.ProgressDoughnut=h;exports.Rate=D;exports.Sidebar=A;exports.Slide=r.Slide;exports.Slider=r.Slider;exports.HorizontalStep=o.HorizontalStep;exports.HorizontalStepper=o.HorizontalStepper;exports.Table=P;exports.Tabs=C;exports.Tooltip=R;
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { default as I } from "./Drawer/index.mjs";
|
|
|
11
11
|
import { default as A } from "./Form/Checkbox/index.mjs";
|
|
12
12
|
import { default as T } from "./Form/Datepicker/index.mjs";
|
|
13
13
|
import { default as H } from "./Form/FileUploader/index.mjs";
|
|
14
|
-
import { I as R } from "./index-
|
|
14
|
+
import { I as R } from "./index-ChP5zdaB.js";
|
|
15
15
|
import { default as w } from "./Form/OtpInput/index.mjs";
|
|
16
16
|
import { default as v } from "./Form/RadioButton/index.mjs";
|
|
17
17
|
import { default as G } from "./Form/RangeInput/index.mjs";
|