@ambuj.bhaskar/react-component-library 0.24.16-alpha → 0.24.18-alpha
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/README.md +34 -34
- package/bin/cli.js +87 -87
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.js +33 -26
- package/dist/index.umd.js +4 -4
- package/package.json +102 -102
package/dist/index.d.ts
CHANGED
|
@@ -837,6 +837,7 @@ export declare type DateRangePickerProps = {
|
|
|
837
837
|
pickerBorderColor?: Color;
|
|
838
838
|
disabledDate?: DateCompare;
|
|
839
839
|
disableFutureDates?: boolean;
|
|
840
|
+
textColor?: Color;
|
|
840
841
|
};
|
|
841
842
|
|
|
842
843
|
declare type DateTimeFormat = string;
|
|
@@ -1210,6 +1211,7 @@ export declare type MultiselectProps = {
|
|
|
1210
1211
|
menuActiveColor?: Color;
|
|
1211
1212
|
menuHoverColor?: Color;
|
|
1212
1213
|
borderColor?: Color;
|
|
1214
|
+
textColor?: Color;
|
|
1213
1215
|
disabled?: boolean;
|
|
1214
1216
|
id?: string;
|
|
1215
1217
|
suffixIcon?: ReactNode | boolean;
|
|
@@ -1314,6 +1316,7 @@ export declare type SelectProps = {
|
|
|
1314
1316
|
id?: string;
|
|
1315
1317
|
suffixIcon?: ReactNode | boolean;
|
|
1316
1318
|
title?: string;
|
|
1319
|
+
textColor?: Color;
|
|
1317
1320
|
};
|
|
1318
1321
|
|
|
1319
1322
|
declare function shiftPolygon(polygon: any): any;
|
package/dist/index.js
CHANGED
|
@@ -11893,7 +11893,7 @@ const SG = /* @__PURE__ */ Ao(EG), gg = ({
|
|
|
11893
11893
|
title: e,
|
|
11894
11894
|
titleId: t,
|
|
11895
11895
|
...n
|
|
11896
|
-
}, r) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24", ref: r, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("path", { fill: "
|
|
11896
|
+
}, r) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24", ref: r, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("path", { fill: "currentColor", d: "M2.755 19.63a.7.7 0 0 0 .99.99l-.99-.99Zm5.495-4.505.495-.495a.7.7 0 0 0-.99 0l.495.495Zm2.5 2.5-.495.495a.7.7 0 0 0 .99 0l-.495-.495ZM16.375 12l.495-.495a.7.7 0 0 0-.99 0l.495.495Zm4.505 5.495a.7.7 0 0 0 .99-.99l-.99.99Zm-17.63 2.63.495.495 5-5-.495-.495-.495-.495-5 5 .495.495Zm5-5-.495.495 2.5 2.5.495-.495.495-.495-2.5-2.5-.495.495Zm2.5 2.5.495.495 5.625-5.625-.495-.495-.495-.495-5.625 5.625.495.495ZM16.375 12l-.495.495 5 5 .495-.495.495-.495-5-5-.495.495ZM5.75 2v.7h12.5V1.3H5.75V2ZM22 5.75h-.7v12.5h1.4V5.75H22ZM18.25 22v-.7H5.75v1.4h12.5V22ZM2 18.25h.7V5.75H1.3v12.5H2ZM5.75 22v-.7a3.05 3.05 0 0 1-3.05-3.05H1.3a4.45 4.45 0 0 0 4.45 4.45V22ZM22 18.25h-.7a3.05 3.05 0 0 1-3.05 3.05v1.4a4.45 4.45 0 0 0 4.45-4.45H22ZM18.25 2v.7a3.05 3.05 0 0 1 3.05 3.05h1.4a4.45 4.45 0 0 0-4.45-4.45V2ZM5.75 2v-.7A4.45 4.45 0 0 0 1.3 5.75h1.4A3.05 3.05 0 0 1 5.75 2.7V2ZM9.5 7.625h-.7c0 .649-.526 1.175-1.175 1.175v1.4A2.575 2.575 0 0 0 10.2 7.625h-.7ZM7.625 9.5v-.7A1.175 1.175 0 0 1 6.45 7.625h-1.4A2.575 2.575 0 0 0 7.625 10.2v-.7ZM5.75 7.625h.7c0-.649.526-1.175 1.175-1.175v-1.4A2.575 2.575 0 0 0 5.05 7.625h.7ZM7.625 5.75v.7c.649 0 1.175.526 1.175 1.175h1.4A2.575 2.575 0 0 0 7.625 5.05v.7Z" })), X1e = Me(q1e), J1e = ({
|
|
11897
11897
|
title: e,
|
|
11898
11898
|
titleId: t,
|
|
11899
11899
|
...n
|
|
@@ -74057,7 +74057,8 @@ const wp = ({
|
|
|
74057
74057
|
height: v = "m",
|
|
74058
74058
|
id: p = "",
|
|
74059
74059
|
suffixIcon: _ = !0,
|
|
74060
|
-
title: w = ""
|
|
74060
|
+
title: w = "",
|
|
74061
|
+
textColor: x
|
|
74061
74062
|
}) => /* @__PURE__ */ z.jsx(
|
|
74062
74063
|
S9,
|
|
74063
74064
|
{
|
|
@@ -74071,7 +74072,8 @@ const wp = ({
|
|
|
74071
74072
|
"--c_menu_active": c,
|
|
74072
74073
|
"--c_menu_hover": u,
|
|
74073
74074
|
"--c_border": d,
|
|
74074
|
-
"--c_disabled": h
|
|
74075
|
+
"--c_disabled": h,
|
|
74076
|
+
"--c_text_primary": x
|
|
74075
74077
|
},
|
|
74076
74078
|
value: n,
|
|
74077
74079
|
onChange: t,
|
|
@@ -74080,7 +74082,7 @@ const wp = ({
|
|
|
74080
74082
|
disabled: m,
|
|
74081
74083
|
popupClassName: `single_select_dropdown h_${v} items_${o} ${d ? "border" : ""}`,
|
|
74082
74084
|
removeIcon: !0,
|
|
74083
|
-
filterOption: (
|
|
74085
|
+
filterOption: (E, S) => ((S == null ? void 0 : S.label) ?? "").toLowerCase().includes(E.toLowerCase()),
|
|
74084
74086
|
options: e,
|
|
74085
74087
|
title: w
|
|
74086
74088
|
}
|
|
@@ -75110,43 +75112,46 @@ const _ke = (e) => uD[e], oc = [
|
|
|
75110
75112
|
pickerRangeColor: h,
|
|
75111
75113
|
pickerBackgroundColor: C,
|
|
75112
75114
|
pickerBorderColor: m,
|
|
75113
|
-
|
|
75114
|
-
|
|
75115
|
-
|
|
75116
|
-
|
|
75115
|
+
textColor: A,
|
|
75116
|
+
allowClear: v = !1,
|
|
75117
|
+
disabledDate: p = (x) => !1,
|
|
75118
|
+
disableFutureDates: _ = !1,
|
|
75119
|
+
...w
|
|
75117
75120
|
}) => {
|
|
75118
|
-
const
|
|
75119
|
-
if (t &&
|
|
75120
|
-
const
|
|
75121
|
-
(
|
|
75121
|
+
const x = e ? [d0(e[0]), d0(e[1])] : void 0, E = (S) => {
|
|
75122
|
+
if (t && S) {
|
|
75123
|
+
const M = S.map(
|
|
75124
|
+
(H) => (H == null ? void 0 : H.toDate()) || /* @__PURE__ */ new Date()
|
|
75122
75125
|
);
|
|
75123
|
-
t(
|
|
75126
|
+
t(M);
|
|
75124
75127
|
} else t && t([]);
|
|
75125
75128
|
};
|
|
75126
75129
|
return /* @__PURE__ */ z.jsx(
|
|
75127
75130
|
Hke,
|
|
75128
75131
|
{
|
|
75129
75132
|
showTime: r,
|
|
75130
|
-
...
|
|
75131
|
-
value:
|
|
75132
|
-
onChange:
|
|
75133
|
+
...w,
|
|
75134
|
+
value: x,
|
|
75135
|
+
onChange: E,
|
|
75133
75136
|
format: o,
|
|
75134
75137
|
presets: i,
|
|
75135
|
-
disabledDate:
|
|
75138
|
+
disabledDate: _ ? (S) => Mke(S) || p(S) : p,
|
|
75136
75139
|
style: {
|
|
75137
75140
|
width: a,
|
|
75138
75141
|
"--c_trigger_background": c,
|
|
75139
75142
|
"--c_trigger_border": u,
|
|
75140
|
-
"--c_highlight": d
|
|
75143
|
+
"--c_highlight": d,
|
|
75144
|
+
"--c_text_primary": A
|
|
75141
75145
|
},
|
|
75142
75146
|
popupStyle: {
|
|
75143
75147
|
"--c_highlight": d,
|
|
75144
75148
|
"--c_date_range_fill": h,
|
|
75145
75149
|
"--c_surface_border": m,
|
|
75146
|
-
"--c_surface": C
|
|
75150
|
+
"--c_surface": C,
|
|
75151
|
+
"--c_text_primary": A
|
|
75147
75152
|
},
|
|
75148
75153
|
className: `date-range-picker ${n} h_${s}`,
|
|
75149
|
-
allowClear:
|
|
75154
|
+
allowClear: v
|
|
75150
75155
|
}
|
|
75151
75156
|
);
|
|
75152
75157
|
};
|
|
@@ -84194,7 +84199,8 @@ const ZDe = ({
|
|
|
84194
84199
|
height: w = "m",
|
|
84195
84200
|
// Other
|
|
84196
84201
|
id: x = "",
|
|
84197
|
-
className: E = ""
|
|
84202
|
+
className: E = "",
|
|
84203
|
+
textColor: S
|
|
84198
84204
|
}) => /* @__PURE__ */ z.jsx(
|
|
84199
84205
|
S9,
|
|
84200
84206
|
{
|
|
@@ -84211,7 +84217,8 @@ const ZDe = ({
|
|
|
84211
84217
|
"--c_menu_background": a,
|
|
84212
84218
|
"--c_menu_active": s,
|
|
84213
84219
|
"--c_menu_hover": c,
|
|
84214
|
-
"--c_border": u
|
|
84220
|
+
"--c_border": u,
|
|
84221
|
+
"--c_text_primary": S
|
|
84215
84222
|
},
|
|
84216
84223
|
suffixIcon: A ? void 0 : null,
|
|
84217
84224
|
options: e,
|
|
@@ -84219,18 +84226,18 @@ const ZDe = ({
|
|
|
84219
84226
|
onChange: t,
|
|
84220
84227
|
popupClassName: `multi_select_dropdown h_${w} `,
|
|
84221
84228
|
value: n,
|
|
84222
|
-
filterOption: (
|
|
84229
|
+
filterOption: (M, H) => ((H == null ? void 0 : H.label) ?? "").toLowerCase().includes(M.toLowerCase()),
|
|
84223
84230
|
title: p,
|
|
84224
84231
|
maxCount: m,
|
|
84225
84232
|
maxTagCount: C,
|
|
84226
|
-
maxTagPlaceholder: (
|
|
84233
|
+
maxTagPlaceholder: (M) => /* @__PURE__ */ z.jsx(
|
|
84227
84234
|
Aa,
|
|
84228
84235
|
{
|
|
84229
84236
|
styles: { root: { pointerEvents: "none" } },
|
|
84230
|
-
title:
|
|
84237
|
+
title: M.map(({ label: H }) => H).join(", "),
|
|
84231
84238
|
children: /* @__PURE__ */ z.jsxs("span", { children: [
|
|
84232
84239
|
"+",
|
|
84233
|
-
|
|
84240
|
+
M.length
|
|
84234
84241
|
] })
|
|
84235
84242
|
}
|
|
84236
84243
|
)
|