@ambuj.bhaskar/react-component-library 0.30.14 → 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 +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +13 -11
- package/dist/index.umd.js +3 -3
- 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
|
@@ -76501,12 +76501,13 @@ const rSe = (e) => {
|
|
|
76501
76501
|
suffixIcon: y = !0,
|
|
76502
76502
|
title: w = "",
|
|
76503
76503
|
textColor: E,
|
|
76504
|
-
textSize: S = "s"
|
|
76504
|
+
textSize: S = "s",
|
|
76505
|
+
textOverflow: _ = "ellipsis"
|
|
76505
76506
|
}) => (S = S ?? mSe[A], /* @__PURE__ */ j.jsx(
|
|
76506
76507
|
Na,
|
|
76507
76508
|
{
|
|
76508
76509
|
id: p,
|
|
76509
|
-
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" : ""}`,
|
|
76510
76511
|
suffixIcon: y ? void 0 : null,
|
|
76511
76512
|
style: {
|
|
76512
76513
|
width: v,
|
|
@@ -76523,9 +76524,9 @@ const rSe = (e) => {
|
|
|
76523
76524
|
showSearch: C,
|
|
76524
76525
|
placeholder: r,
|
|
76525
76526
|
disabled: g,
|
|
76526
|
-
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" : ""}`,
|
|
76527
76528
|
removeIcon: !0,
|
|
76528
|
-
filterOption: (
|
|
76529
|
+
filterOption: (M, H) => ((H == null ? void 0 : H.label) ?? "").toLowerCase().includes(M.toLowerCase()),
|
|
76529
76530
|
options: e,
|
|
76530
76531
|
title: w
|
|
76531
76532
|
}
|
|
@@ -87865,7 +87866,8 @@ const uRe = {
|
|
|
87865
87866
|
className: S = "",
|
|
87866
87867
|
textColor: _,
|
|
87867
87868
|
textSize: M = "s",
|
|
87868
|
-
mode: H = "multiple"
|
|
87869
|
+
mode: H = "multiple",
|
|
87870
|
+
textOverflow: k = "ellipsis"
|
|
87869
87871
|
}) => (M = M ?? uRe[w], /* @__PURE__ */ j.jsx(
|
|
87870
87872
|
Na,
|
|
87871
87873
|
{
|
|
@@ -87873,7 +87875,7 @@ const uRe = {
|
|
|
87873
87875
|
allowClear: A,
|
|
87874
87876
|
disabled: d,
|
|
87875
87877
|
showSearch: f,
|
|
87876
|
-
className: `multi_select_container ${S} h_${w} text_${M}`,
|
|
87878
|
+
className: `multi_select_container ${S} h_${w} text_${M} text_overflow_${k}`,
|
|
87877
87879
|
mode: H,
|
|
87878
87880
|
style: {
|
|
87879
87881
|
width: y,
|
|
@@ -87889,20 +87891,20 @@ const uRe = {
|
|
|
87889
87891
|
options: e,
|
|
87890
87892
|
placeholder: r,
|
|
87891
87893
|
onChange: t,
|
|
87892
|
-
popupClassName: `multi_select_dropdown h_${w} text_${M}`,
|
|
87894
|
+
popupClassName: `multi_select_dropdown h_${w} text_${M} text_overflow_${k}`,
|
|
87893
87895
|
value: n,
|
|
87894
|
-
filterOption: (
|
|
87896
|
+
filterOption: (B, I) => ((I == null ? void 0 : I.label) ?? "").toLowerCase().includes(B.toLowerCase()),
|
|
87895
87897
|
title: p,
|
|
87896
87898
|
maxCount: g,
|
|
87897
87899
|
maxTagCount: C,
|
|
87898
|
-
maxTagPlaceholder: (
|
|
87900
|
+
maxTagPlaceholder: (B) => /* @__PURE__ */ j.jsx(
|
|
87899
87901
|
Ui,
|
|
87900
87902
|
{
|
|
87901
87903
|
styles: { root: { pointerEvents: "none" } },
|
|
87902
|
-
title:
|
|
87904
|
+
title: B.map(({ label: I }) => I).join(", "),
|
|
87903
87905
|
children: /* @__PURE__ */ j.jsxs("span", { children: [
|
|
87904
87906
|
"+",
|
|
87905
|
-
|
|
87907
|
+
B.length
|
|
87906
87908
|
] })
|
|
87907
87909
|
}
|
|
87908
87910
|
)
|