@ambuj.bhaskar/react-component-library 0.30.13 → 0.30.15
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 +86 -86
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -12
- package/dist/index.umd.js +9 -9
- package/package.json +106 -106
package/dist/index.d.ts
CHANGED
|
@@ -1326,6 +1326,7 @@ export declare type MultiselectProps = {
|
|
|
1326
1326
|
id?: string;
|
|
1327
1327
|
suffixIcon?: ReactNode | boolean;
|
|
1328
1328
|
mode?: "multiple" | "tags";
|
|
1329
|
+
textOverflow?: "ellipsis" | "clip";
|
|
1329
1330
|
};
|
|
1330
1331
|
|
|
1331
1332
|
declare type Option_2 = {
|
|
@@ -1426,6 +1427,7 @@ export declare type SelectProps = {
|
|
|
1426
1427
|
title?: string;
|
|
1427
1428
|
textColor?: Color;
|
|
1428
1429
|
textSize?: "xs" | "s" | "m" | "l" | "xl";
|
|
1430
|
+
textOverflow?: "ellipsis" | "clip";
|
|
1429
1431
|
};
|
|
1430
1432
|
|
|
1431
1433
|
export declare type ShowAnnotationStatus = "approved" | "rejected" | "pending" | "corrected" | "all";
|
package/dist/index.js
CHANGED
|
@@ -44686,7 +44686,13 @@ const I9e = ({
|
|
|
44686
44686
|
capture_warning: { IconComponent: C7e, size: ze },
|
|
44687
44687
|
globe_line: { IconComponent: m7e, size: ze },
|
|
44688
44688
|
cube_arrow: { IconComponent: v7e, size: ze },
|
|
44689
|
-
challan: {
|
|
44689
|
+
challan: {
|
|
44690
|
+
IconComponent: h3e,
|
|
44691
|
+
size: {
|
|
44692
|
+
width: 28,
|
|
44693
|
+
height: 28
|
|
44694
|
+
}
|
|
44695
|
+
},
|
|
44690
44696
|
searchStar: { IconComponent: g3e, size: ze }
|
|
44691
44697
|
}, b2 = ({
|
|
44692
44698
|
name: e,
|
|
@@ -76495,12 +76501,13 @@ const rSe = (e) => {
|
|
|
76495
76501
|
suffixIcon: y = !0,
|
|
76496
76502
|
title: w = "",
|
|
76497
76503
|
textColor: E,
|
|
76498
|
-
textSize: S = "s"
|
|
76504
|
+
textSize: S = "s",
|
|
76505
|
+
textOverflow: _ = "ellipsis"
|
|
76499
76506
|
}) => (S = S ?? mSe[A], /* @__PURE__ */ j.jsx(
|
|
76500
76507
|
Na,
|
|
76501
76508
|
{
|
|
76502
76509
|
id: p,
|
|
76503
|
-
className: `${i} single_select_container h_${A} items_${o} text_${S} ${g ? "disabled" : ""}`,
|
|
76510
|
+
className: `${i} single_select_container h_${A} items_${o} text_${S} text_overflow_${_} ${g ? "disabled" : ""}`,
|
|
76504
76511
|
suffixIcon: y ? void 0 : null,
|
|
76505
76512
|
style: {
|
|
76506
76513
|
width: v,
|
|
@@ -76517,9 +76524,9 @@ const rSe = (e) => {
|
|
|
76517
76524
|
showSearch: C,
|
|
76518
76525
|
placeholder: r,
|
|
76519
76526
|
disabled: g,
|
|
76520
|
-
popupClassName: `single_select_dropdown h_${A} items_${o} text_${S} ${d ? "border" : ""}`,
|
|
76527
|
+
popupClassName: `single_select_dropdown h_${A} items_${o} text_${S} text_overflow_${_} ${d ? "border" : ""}`,
|
|
76521
76528
|
removeIcon: !0,
|
|
76522
|
-
filterOption: (
|
|
76529
|
+
filterOption: (M, H) => ((H == null ? void 0 : H.label) ?? "").toLowerCase().includes(M.toLowerCase()),
|
|
76523
76530
|
options: e,
|
|
76524
76531
|
title: w
|
|
76525
76532
|
}
|
|
@@ -87859,7 +87866,8 @@ const uRe = {
|
|
|
87859
87866
|
className: S = "",
|
|
87860
87867
|
textColor: _,
|
|
87861
87868
|
textSize: M = "s",
|
|
87862
|
-
mode: H = "multiple"
|
|
87869
|
+
mode: H = "multiple",
|
|
87870
|
+
textOverflow: k = "ellipsis"
|
|
87863
87871
|
}) => (M = M ?? uRe[w], /* @__PURE__ */ j.jsx(
|
|
87864
87872
|
Na,
|
|
87865
87873
|
{
|
|
@@ -87867,7 +87875,7 @@ const uRe = {
|
|
|
87867
87875
|
allowClear: A,
|
|
87868
87876
|
disabled: d,
|
|
87869
87877
|
showSearch: f,
|
|
87870
|
-
className: `multi_select_container ${S} h_${w} text_${M}`,
|
|
87878
|
+
className: `multi_select_container ${S} h_${w} text_${M} text_overflow_${k}`,
|
|
87871
87879
|
mode: H,
|
|
87872
87880
|
style: {
|
|
87873
87881
|
width: y,
|
|
@@ -87883,20 +87891,20 @@ const uRe = {
|
|
|
87883
87891
|
options: e,
|
|
87884
87892
|
placeholder: r,
|
|
87885
87893
|
onChange: t,
|
|
87886
|
-
popupClassName: `multi_select_dropdown h_${w} text_${M}`,
|
|
87894
|
+
popupClassName: `multi_select_dropdown h_${w} text_${M} text_overflow_${k}`,
|
|
87887
87895
|
value: n,
|
|
87888
|
-
filterOption: (
|
|
87896
|
+
filterOption: (B, I) => ((I == null ? void 0 : I.label) ?? "").toLowerCase().includes(B.toLowerCase()),
|
|
87889
87897
|
title: p,
|
|
87890
87898
|
maxCount: g,
|
|
87891
87899
|
maxTagCount: C,
|
|
87892
|
-
maxTagPlaceholder: (
|
|
87900
|
+
maxTagPlaceholder: (B) => /* @__PURE__ */ j.jsx(
|
|
87893
87901
|
Ui,
|
|
87894
87902
|
{
|
|
87895
87903
|
styles: { root: { pointerEvents: "none" } },
|
|
87896
|
-
title:
|
|
87904
|
+
title: B.map(({ label: I }) => I).join(", "),
|
|
87897
87905
|
children: /* @__PURE__ */ j.jsxs("span", { children: [
|
|
87898
87906
|
"+",
|
|
87899
|
-
|
|
87907
|
+
B.length
|
|
87900
87908
|
] })
|
|
87901
87909
|
}
|
|
87902
87910
|
)
|