@majoo-ui/react 1.59.6-rc.2 → 1.59.6-rc.4

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/index.esm.js CHANGED
@@ -11043,6 +11043,181 @@ InputSearchbox.defaultProps = {
11043
11043
  };
11044
11044
  InputSearchbox.displayName = 'InputSearchbox';
11045
11045
 
11046
+ var tryToString$2 = tryToString$5;
11047
+
11048
+ var $TypeError$5 = TypeError;
11049
+
11050
+ var deletePropertyOrThrow$1 = function (O, P) {
11051
+ if (!delete O[P]) throw $TypeError$5('Cannot delete property ' + tryToString$2(P) + ' of ' + tryToString$2(O));
11052
+ };
11053
+
11054
+ var arraySlice$3 = arraySliceSimple;
11055
+
11056
+ var floor$2 = Math.floor;
11057
+
11058
+ var mergeSort = function (array, comparefn) {
11059
+ var length = array.length;
11060
+ var middle = floor$2(length / 2);
11061
+ return length < 8 ? insertionSort(array, comparefn) : merge(
11062
+ array,
11063
+ mergeSort(arraySlice$3(array, 0, middle), comparefn),
11064
+ mergeSort(arraySlice$3(array, middle), comparefn),
11065
+ comparefn
11066
+ );
11067
+ };
11068
+
11069
+ var insertionSort = function (array, comparefn) {
11070
+ var length = array.length;
11071
+ var i = 1;
11072
+ var element, j;
11073
+
11074
+ while (i < length) {
11075
+ j = i;
11076
+ element = array[i];
11077
+ while (j && comparefn(array[j - 1], element) > 0) {
11078
+ array[j] = array[--j];
11079
+ }
11080
+ if (j !== i++) array[j] = element;
11081
+ } return array;
11082
+ };
11083
+
11084
+ var merge = function (array, left, right, comparefn) {
11085
+ var llength = left.length;
11086
+ var rlength = right.length;
11087
+ var lindex = 0;
11088
+ var rindex = 0;
11089
+
11090
+ while (lindex < llength || rindex < rlength) {
11091
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
11092
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
11093
+ : lindex < llength ? left[lindex++] : right[rindex++];
11094
+ } return array;
11095
+ };
11096
+
11097
+ var arraySort$1 = mergeSort;
11098
+
11099
+ var userAgent$4 = engineUserAgent;
11100
+
11101
+ var firefox = userAgent$4.match(/firefox\/(\d+)/i);
11102
+
11103
+ var engineFfVersion = !!firefox && +firefox[1];
11104
+
11105
+ var UA = engineUserAgent;
11106
+
11107
+ var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
11108
+
11109
+ var userAgent$3 = engineUserAgent;
11110
+
11111
+ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
11112
+
11113
+ var engineWebkitVersion = !!webkit && +webkit[1];
11114
+
11115
+ var $$c = _export;
11116
+ var uncurryThis$6 = functionUncurryThis;
11117
+ var aCallable$6 = aCallable$a;
11118
+ var toObject$1 = toObject$7;
11119
+ var lengthOfArrayLike$2 = lengthOfArrayLike$6;
11120
+ var deletePropertyOrThrow = deletePropertyOrThrow$1;
11121
+ var toString$4 = toString$j;
11122
+ var fails$4 = fails$t;
11123
+ var internalSort = arraySort$1;
11124
+ var arrayMethodIsStrict = arrayMethodIsStrict$2;
11125
+ var FF = engineFfVersion;
11126
+ var IE_OR_EDGE = engineIsIeOrEdge;
11127
+ var V8 = engineV8Version;
11128
+ var WEBKIT = engineWebkitVersion;
11129
+
11130
+ var test = [];
11131
+ var nativeSort = uncurryThis$6(test.sort);
11132
+ var push$3 = uncurryThis$6(test.push);
11133
+
11134
+ // IE8-
11135
+ var FAILS_ON_UNDEFINED = fails$4(function () {
11136
+ test.sort(undefined);
11137
+ });
11138
+ // V8 bug
11139
+ var FAILS_ON_NULL = fails$4(function () {
11140
+ test.sort(null);
11141
+ });
11142
+ // Old WebKit
11143
+ var STRICT_METHOD = arrayMethodIsStrict('sort');
11144
+
11145
+ var STABLE_SORT = !fails$4(function () {
11146
+ // feature detection can be too slow, so check engines versions
11147
+ if (V8) return V8 < 70;
11148
+ if (FF && FF > 3) return;
11149
+ if (IE_OR_EDGE) return true;
11150
+ if (WEBKIT) return WEBKIT < 603;
11151
+
11152
+ var result = '';
11153
+ var code, chr, value, index;
11154
+
11155
+ // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
11156
+ for (code = 65; code < 76; code++) {
11157
+ chr = String.fromCharCode(code);
11158
+
11159
+ switch (code) {
11160
+ case 66: case 69: case 70: case 72: value = 3; break;
11161
+ case 68: case 71: value = 4; break;
11162
+ default: value = 2;
11163
+ }
11164
+
11165
+ for (index = 0; index < 47; index++) {
11166
+ test.push({ k: chr + index, v: value });
11167
+ }
11168
+ }
11169
+
11170
+ test.sort(function (a, b) { return b.v - a.v; });
11171
+
11172
+ for (index = 0; index < test.length; index++) {
11173
+ chr = test[index].k.charAt(0);
11174
+ if (result.charAt(result.length - 1) !== chr) result += chr;
11175
+ }
11176
+
11177
+ return result !== 'DGBEFHACIJK';
11178
+ });
11179
+
11180
+ var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
11181
+
11182
+ var getSortCompare = function (comparefn) {
11183
+ return function (x, y) {
11184
+ if (y === undefined) return -1;
11185
+ if (x === undefined) return 1;
11186
+ if (comparefn !== undefined) return +comparefn(x, y) || 0;
11187
+ return toString$4(x) > toString$4(y) ? 1 : -1;
11188
+ };
11189
+ };
11190
+
11191
+ // `Array.prototype.sort` method
11192
+ // https://tc39.es/ecma262/#sec-array.prototype.sort
11193
+ $$c({ target: 'Array', proto: true, forced: FORCED$1 }, {
11194
+ sort: function sort(comparefn) {
11195
+ if (comparefn !== undefined) aCallable$6(comparefn);
11196
+
11197
+ var array = toObject$1(this);
11198
+
11199
+ if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
11200
+
11201
+ var items = [];
11202
+ var arrayLength = lengthOfArrayLike$2(array);
11203
+ var itemsLength, index;
11204
+
11205
+ for (index = 0; index < arrayLength; index++) {
11206
+ if (index in array) push$3(items, array[index]);
11207
+ }
11208
+
11209
+ internalSort(items, getSortCompare(comparefn));
11210
+
11211
+ itemsLength = lengthOfArrayLike$2(items);
11212
+ index = 0;
11213
+
11214
+ while (index < itemsLength) array[index] = items[index++];
11215
+ while (index < arrayLength) deletePropertyOrThrow(array, index++);
11216
+
11217
+ return array;
11218
+ }
11219
+ });
11220
+
11046
11221
  const _excluded$d = ["children"];
11047
11222
  var _jsxFileName$z = "/home/alfiantryp/Projects/majoo-ui/packages/react/src/components/popover/Popover.js";
11048
11223
  const {
@@ -11438,6 +11613,19 @@ const SelectItem = styled('div', {
11438
11613
  lineHeight: '20px',
11439
11614
  '&:not(:last-child)': {
11440
11615
  borderBottom: '1px solid $bgBorder'
11616
+ },
11617
+ variants: {
11618
+ hasGroup: {
11619
+ true: {
11620
+ paddingLeft: '$spacing-06'
11621
+ }
11622
+ },
11623
+ isGroup: {
11624
+ true: {
11625
+ padding: '$spacing-03 0',
11626
+ borderBottom: 'none !important'
11627
+ }
11628
+ }
11441
11629
  }
11442
11630
  });
11443
11631
  const StyledFooter = styled('div', {
@@ -11556,17 +11744,12 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11556
11744
  } = useTranslation(['MajooUI/inputSelect', 'translation']);
11557
11745
  const [options, setOptions] = useState([]);
11558
11746
  const [item, setItem] = useState([]);
11747
+ const [groupedItems, setGroupedItems] = useState([]);
11559
11748
  const [selectedValue, setSelectedValue] = useState(value);
11560
11749
  const [query, setQuery] = useState();
11561
11750
  const [openOptions, setOpenOptions] = useState(false);
11562
11751
  const selectBoxRef = useRef(null);
11563
11752
  const scrollerRef = useRef(null);
11564
- useEffect(() => {
11565
- var _a;
11566
- (_a = scrollerRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
11567
- top: 0
11568
- });
11569
- }, [query]);
11570
11753
  const handleInputValue = (value, isReset = false) => {
11571
11754
  if (onSearch && !isReset) onSearch(value);
11572
11755
  if (fetchData) return;
@@ -11584,18 +11767,30 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11584
11767
  return {
11585
11768
  name,
11586
11769
  value,
11770
+ isDisabled: option.isDisabled === undefined && disabledOptions && disabledOptions.length > 0 ? disabledOptions.includes(value) : option.isDisabled,
11587
11771
  render: option.render,
11588
- isDisabled: option.isDisabled === undefined && disabledOptions && disabledOptions.length > 0 ? disabledOptions.includes(value) : option.isDisabled
11772
+ group: option.group
11589
11773
  };
11590
11774
  }
11591
11775
  return {
11592
11776
  name: option,
11593
11777
  value: option,
11778
+ isDisabled: disabledOptions && disabledOptions.includes(option),
11594
11779
  render: option.render,
11595
- isDisabled: disabledOptions && disabledOptions.includes(option)
11780
+ group: option.group
11596
11781
  };
11597
11782
  });
11598
11783
  };
11784
+ const debouncedSearch = React.useRef(debounce(query => __awaiter(void 0, void 0, void 0, function* () {
11785
+ setQuery(query);
11786
+ if (onSearch) onSearch(query);
11787
+ }), 1000)).current;
11788
+ useEffect(() => {
11789
+ var _a;
11790
+ (_a = scrollerRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
11791
+ top: 0
11792
+ });
11793
+ }, [query]);
11599
11794
  useEffect(() => {
11600
11795
  setSelectedValue(value);
11601
11796
  }, [value]);
@@ -11604,15 +11799,44 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11604
11799
  setItem(generatedOption);
11605
11800
  setOptions(generatedOption);
11606
11801
  }, [option, disabledOptions, valueSelector, textSelector]);
11607
- const debouncedSearch = React.useRef(debounce(query => __awaiter(void 0, void 0, void 0, function* () {
11608
- setQuery(query);
11609
- if (onSearch) onSearch(query);
11610
- }), 1000)).current;
11611
- React.useEffect(() => {
11802
+ useEffect(() => {
11612
11803
  return () => {
11613
11804
  debouncedSearch.cancel();
11614
11805
  };
11615
11806
  }, [debouncedSearch]);
11807
+ useEffect(() => {
11808
+ setGroupedItems(item.sort(function (a, b) {
11809
+ const nameA = (typeof a.group === 'string' ? a.group.toUpperCase() : a.group) || ''; // ignore upper and lowercase
11810
+ const nameB = (typeof b.group === 'string' ? b.group.toUpperCase() : b.group) || ''; // ignore upper and lowercase
11811
+ if (!a.group) return 1;
11812
+ if (!b.group) return -1;
11813
+ if (nameA < nameB) {
11814
+ return -1;
11815
+ }
11816
+ if (nameA > nameB) {
11817
+ return 1;
11818
+ }
11819
+ return 0;
11820
+ }).reduce((prev, current) => {
11821
+ let addedGroupItems = [];
11822
+ if (prev) addedGroupItems = [...prev];
11823
+ const group = current.group;
11824
+ if ((!prev || !prev.find(val => val.value === `#group#${group}#`)) && group) {
11825
+ addedGroupItems.push({
11826
+ name: group,
11827
+ value: `#group#${group}#`,
11828
+ isGroup: true,
11829
+ render: () => jsx(Paragraph, Object.assign({
11830
+ paragraph: "shortContentBold"
11831
+ }, {
11832
+ children: group
11833
+ }), void 0)
11834
+ });
11835
+ }
11836
+ addedGroupItems.push(current);
11837
+ return addedGroupItems;
11838
+ }, []));
11839
+ }, [item]);
11616
11840
  return jsx(Downshift, Object.assign({}, props, {
11617
11841
  onChange: onChange,
11618
11842
  itemToString: item => item ? item.name : '',
@@ -11833,14 +12057,16 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11833
12057
  }
11834
12058
  }, {
11835
12059
  children: jsx(SelectOption, {
11836
- children: item.map((item, index) => {
12060
+ children: (groupedItems.length > 0 ? groupedItems : item).map((item, index) => {
11837
12061
  var _a;
11838
12062
  return /*#__PURE__*/createElement$2(SelectItem, Object.assign({}, getItemProps({
11839
12063
  item,
11840
- disabled: item.isDisabled
12064
+ disabled: item.isDisabled || item.isGroup
11841
12065
  }), {
11842
12066
  key: (_a = item.value) !== null && _a !== void 0 ? _a : index,
11843
- css: item.isDisabled ? {
12067
+ hasGroup: !!item.group,
12068
+ isGroup: item.isGroup,
12069
+ css: Object.assign({}, !item.isGroup ? item.isDisabled ? {
11844
12070
  backgroundColor: 'unset',
11845
12071
  cursor: 'not-allowed',
11846
12072
  color: '$textDisable'
@@ -11848,7 +12074,10 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11848
12074
  backgroundColor: highlightedIndex === index ? '$bgGray' : 'white',
11849
12075
  fontWeight: 'normal',
11850
12076
  color: selectedItem && selectedItem.value === item.value ? '$textGreen' : '$textPrimary'
11851
- }
12077
+ } : {
12078
+ backgroundColor: 'unset',
12079
+ cursor: 'default'
12080
+ })
11852
12081
  }), item.render ? item.render(selectedItem) : item.name);
11853
12082
  })
11854
12083
  }, void 0)
@@ -11881,181 +12110,6 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11881
12110
  }), void 0);
11882
12111
  });
11883
12112
 
11884
- var tryToString$2 = tryToString$5;
11885
-
11886
- var $TypeError$5 = TypeError;
11887
-
11888
- var deletePropertyOrThrow$1 = function (O, P) {
11889
- if (!delete O[P]) throw $TypeError$5('Cannot delete property ' + tryToString$2(P) + ' of ' + tryToString$2(O));
11890
- };
11891
-
11892
- var arraySlice$3 = arraySliceSimple;
11893
-
11894
- var floor$2 = Math.floor;
11895
-
11896
- var mergeSort = function (array, comparefn) {
11897
- var length = array.length;
11898
- var middle = floor$2(length / 2);
11899
- return length < 8 ? insertionSort(array, comparefn) : merge(
11900
- array,
11901
- mergeSort(arraySlice$3(array, 0, middle), comparefn),
11902
- mergeSort(arraySlice$3(array, middle), comparefn),
11903
- comparefn
11904
- );
11905
- };
11906
-
11907
- var insertionSort = function (array, comparefn) {
11908
- var length = array.length;
11909
- var i = 1;
11910
- var element, j;
11911
-
11912
- while (i < length) {
11913
- j = i;
11914
- element = array[i];
11915
- while (j && comparefn(array[j - 1], element) > 0) {
11916
- array[j] = array[--j];
11917
- }
11918
- if (j !== i++) array[j] = element;
11919
- } return array;
11920
- };
11921
-
11922
- var merge = function (array, left, right, comparefn) {
11923
- var llength = left.length;
11924
- var rlength = right.length;
11925
- var lindex = 0;
11926
- var rindex = 0;
11927
-
11928
- while (lindex < llength || rindex < rlength) {
11929
- array[lindex + rindex] = (lindex < llength && rindex < rlength)
11930
- ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
11931
- : lindex < llength ? left[lindex++] : right[rindex++];
11932
- } return array;
11933
- };
11934
-
11935
- var arraySort$1 = mergeSort;
11936
-
11937
- var userAgent$4 = engineUserAgent;
11938
-
11939
- var firefox = userAgent$4.match(/firefox\/(\d+)/i);
11940
-
11941
- var engineFfVersion = !!firefox && +firefox[1];
11942
-
11943
- var UA = engineUserAgent;
11944
-
11945
- var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
11946
-
11947
- var userAgent$3 = engineUserAgent;
11948
-
11949
- var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
11950
-
11951
- var engineWebkitVersion = !!webkit && +webkit[1];
11952
-
11953
- var $$c = _export;
11954
- var uncurryThis$6 = functionUncurryThis;
11955
- var aCallable$6 = aCallable$a;
11956
- var toObject$1 = toObject$7;
11957
- var lengthOfArrayLike$2 = lengthOfArrayLike$6;
11958
- var deletePropertyOrThrow = deletePropertyOrThrow$1;
11959
- var toString$4 = toString$j;
11960
- var fails$4 = fails$t;
11961
- var internalSort = arraySort$1;
11962
- var arrayMethodIsStrict = arrayMethodIsStrict$2;
11963
- var FF = engineFfVersion;
11964
- var IE_OR_EDGE = engineIsIeOrEdge;
11965
- var V8 = engineV8Version;
11966
- var WEBKIT = engineWebkitVersion;
11967
-
11968
- var test = [];
11969
- var nativeSort = uncurryThis$6(test.sort);
11970
- var push$3 = uncurryThis$6(test.push);
11971
-
11972
- // IE8-
11973
- var FAILS_ON_UNDEFINED = fails$4(function () {
11974
- test.sort(undefined);
11975
- });
11976
- // V8 bug
11977
- var FAILS_ON_NULL = fails$4(function () {
11978
- test.sort(null);
11979
- });
11980
- // Old WebKit
11981
- var STRICT_METHOD = arrayMethodIsStrict('sort');
11982
-
11983
- var STABLE_SORT = !fails$4(function () {
11984
- // feature detection can be too slow, so check engines versions
11985
- if (V8) return V8 < 70;
11986
- if (FF && FF > 3) return;
11987
- if (IE_OR_EDGE) return true;
11988
- if (WEBKIT) return WEBKIT < 603;
11989
-
11990
- var result = '';
11991
- var code, chr, value, index;
11992
-
11993
- // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
11994
- for (code = 65; code < 76; code++) {
11995
- chr = String.fromCharCode(code);
11996
-
11997
- switch (code) {
11998
- case 66: case 69: case 70: case 72: value = 3; break;
11999
- case 68: case 71: value = 4; break;
12000
- default: value = 2;
12001
- }
12002
-
12003
- for (index = 0; index < 47; index++) {
12004
- test.push({ k: chr + index, v: value });
12005
- }
12006
- }
12007
-
12008
- test.sort(function (a, b) { return b.v - a.v; });
12009
-
12010
- for (index = 0; index < test.length; index++) {
12011
- chr = test[index].k.charAt(0);
12012
- if (result.charAt(result.length - 1) !== chr) result += chr;
12013
- }
12014
-
12015
- return result !== 'DGBEFHACIJK';
12016
- });
12017
-
12018
- var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
12019
-
12020
- var getSortCompare = function (comparefn) {
12021
- return function (x, y) {
12022
- if (y === undefined) return -1;
12023
- if (x === undefined) return 1;
12024
- if (comparefn !== undefined) return +comparefn(x, y) || 0;
12025
- return toString$4(x) > toString$4(y) ? 1 : -1;
12026
- };
12027
- };
12028
-
12029
- // `Array.prototype.sort` method
12030
- // https://tc39.es/ecma262/#sec-array.prototype.sort
12031
- $$c({ target: 'Array', proto: true, forced: FORCED$1 }, {
12032
- sort: function sort(comparefn) {
12033
- if (comparefn !== undefined) aCallable$6(comparefn);
12034
-
12035
- var array = toObject$1(this);
12036
-
12037
- if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
12038
-
12039
- var items = [];
12040
- var arrayLength = lengthOfArrayLike$2(array);
12041
- var itemsLength, index;
12042
-
12043
- for (index = 0; index < arrayLength; index++) {
12044
- if (index in array) push$3(items, array[index]);
12045
- }
12046
-
12047
- internalSort(items, getSortCompare(comparefn));
12048
-
12049
- itemsLength = lengthOfArrayLike$2(items);
12050
- index = 0;
12051
-
12052
- while (index < itemsLength) array[index] = items[index++];
12053
- while (index < arrayLength) deletePropertyOrThrow(array, index++);
12054
-
12055
- return array;
12056
- }
12057
- });
12058
-
12059
12113
  var isPrototypeOf$1 = objectIsPrototypeOf;
12060
12114
 
12061
12115
  var $TypeError$4 = TypeError;
@@ -13103,7 +13157,7 @@ function OptionGroupItem({
13103
13157
  }), void 0);
13104
13158
  }
13105
13159
 
13106
- const _excluded$c = ["placeholder", "option", "value", "defaultValue", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "showTagSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css", "showCounter", "labelCounter", "collapsible", "toggleInput", "fetchData", "onSearch", "isLoading", "maxSelectedItem", "mobileOnly", "desktopOnly", "label", "tagCss", "checkBoxCss", "optionListCss"];
13160
+ const _excluded$c = ["placeholder", "option", "value", "defaultValue", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "showTagSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css", "showCounter", "labelCounter", "collapsible", "toggleInput", "fetchData", "onSearch", "isLoading", "maxSelectedItem", "mobileOnly", "desktopOnly", "label", "tagCss", "checkBoxCss", "optionListCss", "showCollapsibleCounter", "collapsibleLimit"];
13107
13161
  var _jsxFileName$x = "/home/alfiantryp/Projects/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/InputSelectCheck.js";
13108
13162
  const Wrapper$1 = styled('div', {
13109
13163
  margin: 0,
@@ -13394,7 +13448,9 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13394
13448
  label,
13395
13449
  tagCss,
13396
13450
  checkBoxCss,
13397
- optionListCss
13451
+ optionListCss,
13452
+ showCollapsibleCounter,
13453
+ collapsibleLimit
13398
13454
  } = _ref,
13399
13455
  props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
13400
13456
  const {
@@ -13427,8 +13483,8 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13427
13483
  const sortItems = React__default.useCallback(() => {
13428
13484
  if (sortBy === 'id') {
13429
13485
  option.sort(function (a, b) {
13430
- const idA = a.id.toUpperCase(); // ignore upper and lowercase
13431
- const idB = b.id.toUpperCase(); // ignore upper and lowercase
13486
+ const idA = typeof a.id === 'string' ? a.id.toUpperCase() : a.id; // ignore upper and lowercase
13487
+ const idB = typeof b.id === 'string' ? b.id.toUpperCase() : b.id; // ignore upper and lowercase
13432
13488
  if (a.id === '!all') return -1;
13433
13489
  if (b.id === '!all') return 1;
13434
13490
  if (idA < idB) {
@@ -13441,8 +13497,8 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13441
13497
  });
13442
13498
  } else if (sortBy === 'name') {
13443
13499
  option.sort(function (a, b) {
13444
- const nameA = a.name.toUpperCase(); // ignore upper and lowercase
13445
- const nameB = b.name.toUpperCase(); // ignore upper and lowercase
13500
+ const nameA = typeof a.name === 'string' ? a.name.toUpperCase() : a.name; // ignore upper and lowercase
13501
+ const nameB = typeof b.name === 'string' ? b.name.toUpperCase() : b.name; // ignore upper and lowercase
13446
13502
  if (a.id === '!all') return -1;
13447
13503
  if (b.id === '!all') return 1;
13448
13504
  if (nameA < nameB) {
@@ -13785,7 +13841,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13785
13841
  __self: undefined,
13786
13842
  __source: {
13787
13843
  fileName: _jsxFileName$x,
13788
- lineNumber: 729,
13844
+ lineNumber: 731,
13789
13845
  columnNumber: 9
13790
13846
  }
13791
13847
  }), /*#__PURE__*/React__default.createElement(IconWrapper, {
@@ -13798,7 +13854,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13798
13854
  __self: undefined,
13799
13855
  __source: {
13800
13856
  fileName: _jsxFileName$x,
13801
- lineNumber: 743,
13857
+ lineNumber: 745,
13802
13858
  columnNumber: 11
13803
13859
  }
13804
13860
  }, !(item != null && item.hideCheck) && (item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
@@ -13806,7 +13862,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13806
13862
  __self: undefined,
13807
13863
  __source: {
13808
13864
  fileName: _jsxFileName$x,
13809
- lineNumber: 754,
13865
+ lineNumber: 756,
13810
13866
  columnNumber: 17
13811
13867
  }
13812
13868
  }) : selectedValue.includes(item.id) && (item.isDisabled === false || item.isDisabled === undefined) && /*#__PURE__*/React__default.createElement(CheckOutline, {
@@ -13814,21 +13870,21 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13814
13870
  __self: undefined,
13815
13871
  __source: {
13816
13872
  fileName: _jsxFileName$x,
13817
- lineNumber: 758,
13873
+ lineNumber: 760,
13818
13874
  columnNumber: 19
13819
13875
  }
13820
13876
  })), isShowSelectAll && (item == null ? void 0 : item.id) === '!all' && selectedValue != null && selectedValue.length && (selectedValue == null ? void 0 : selectedValue.length) < itemsLength ? /*#__PURE__*/React__default.createElement(IndeterminateFilled$1, {
13821
13877
  __self: undefined,
13822
13878
  __source: {
13823
13879
  fileName: _jsxFileName$x,
13824
- lineNumber: 762,
13880
+ lineNumber: 764,
13825
13881
  columnNumber: 15
13826
13882
  }
13827
13883
  }, "-") : /*#__PURE__*/React__default.createElement("div", {
13828
13884
  __self: undefined,
13829
13885
  __source: {
13830
13886
  fileName: _jsxFileName$x,
13831
- lineNumber: 764,
13887
+ lineNumber: 766,
13832
13888
  columnNumber: 15
13833
13889
  }
13834
13890
  })), /*#__PURE__*/React__default.createElement(Item$3, {
@@ -13839,7 +13895,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13839
13895
  __self: undefined,
13840
13896
  __source: {
13841
13897
  fileName: _jsxFileName$x,
13842
- lineNumber: 767,
13898
+ lineNumber: 769,
13843
13899
  columnNumber: 11
13844
13900
  }
13845
13901
  }, item.render ? item.render == null ? void 0 : item.render(item.name) : item.name));
@@ -13867,7 +13923,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13867
13923
  __self: undefined,
13868
13924
  __source: {
13869
13925
  fileName: _jsxFileName$x,
13870
- lineNumber: 784,
13926
+ lineNumber: 786,
13871
13927
  columnNumber: 13
13872
13928
  }
13873
13929
  }), /*#__PURE__*/React__default.createElement(IconWrapper, {
@@ -13880,7 +13936,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13880
13936
  __self: undefined,
13881
13937
  __source: {
13882
13938
  fileName: _jsxFileName$x,
13883
- lineNumber: 797,
13939
+ lineNumber: 799,
13884
13940
  columnNumber: 15
13885
13941
  }
13886
13942
  }, !(item != null && item.hideCheck) && item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
@@ -13888,7 +13944,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13888
13944
  __self: undefined,
13889
13945
  __source: {
13890
13946
  fileName: _jsxFileName$x,
13891
- lineNumber: 807,
13947
+ lineNumber: 809,
13892
13948
  columnNumber: 19
13893
13949
  }
13894
13950
  }) : (filterSelectedChild == null ? void 0 : filterSelectedChild.length) === (item == null ? void 0 : (_item$children7 = item.children) == null ? void 0 : (_item$children7$filte = _item$children7.filter(e => !e.isDisabled)) == null ? void 0 : _item$children7$filte.length) ? /*#__PURE__*/React__default.createElement(CheckOutline, {
@@ -13896,14 +13952,14 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13896
13952
  __self: undefined,
13897
13953
  __source: {
13898
13954
  fileName: _jsxFileName$x,
13899
- lineNumber: 809,
13955
+ lineNumber: 811,
13900
13956
  columnNumber: 19
13901
13957
  }
13902
13958
  }) : (filterSelectedChild == null ? void 0 : filterSelectedChild.length) > 0 ? /*#__PURE__*/React__default.createElement(IndeterminateFilled$1, {
13903
13959
  __self: undefined,
13904
13960
  __source: {
13905
13961
  fileName: _jsxFileName$x,
13906
- lineNumber: 811,
13962
+ lineNumber: 813,
13907
13963
  columnNumber: 19
13908
13964
  }
13909
13965
  }, "-") : null), /*#__PURE__*/React__default.createElement(Item$3, {
@@ -13914,14 +13970,14 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13914
13970
  __self: undefined,
13915
13971
  __source: {
13916
13972
  fileName: _jsxFileName$x,
13917
- lineNumber: 814,
13973
+ lineNumber: 816,
13918
13974
  columnNumber: 15
13919
13975
  }
13920
13976
  }, item.render ? item.render == null ? void 0 : item.render(item.name) : item.name)),
13921
13977
  __self: undefined,
13922
13978
  __source: {
13923
13979
  fileName: _jsxFileName$x,
13924
- lineNumber: 782,
13980
+ lineNumber: 784,
13925
13981
  columnNumber: 9
13926
13982
  }
13927
13983
  }, item == null ? void 0 : (_item$children8 = item.children) == null ? void 0 : _item$children8.map((optItem, optIndex) => renderOptionItem(optItem, groupIndex + optIndex + 1, true)));
@@ -13934,7 +13990,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13934
13990
  __self: undefined,
13935
13991
  __source: {
13936
13992
  fileName: _jsxFileName$x,
13937
- lineNumber: 826,
13993
+ lineNumber: 828,
13938
13994
  columnNumber: 7
13939
13995
  }
13940
13996
  }), /*#__PURE__*/React__default.createElement(Select, {
@@ -13944,7 +14000,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13944
14000
  __self: undefined,
13945
14001
  __source: {
13946
14002
  fileName: _jsxFileName$x,
13947
- lineNumber: 827,
14003
+ lineNumber: 829,
13948
14004
  columnNumber: 9
13949
14005
  }
13950
14006
  }, /*#__PURE__*/React__default.createElement(InputWrapper$1, _extends({}, getComboboxProps(getDropdownProps({
@@ -13959,7 +14015,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13959
14015
  __self: undefined,
13960
14016
  __source: {
13961
14017
  fileName: _jsxFileName$x,
13962
- lineNumber: 828,
14018
+ lineNumber: 830,
13963
14019
  columnNumber: 11
13964
14020
  }
13965
14021
  }), /*#__PURE__*/React__default.createElement(Input$6, _extends({}, getInputProps({
@@ -13977,7 +14033,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13977
14033
  __self: undefined,
13978
14034
  __source: {
13979
14035
  fileName: _jsxFileName$x,
13980
- lineNumber: 838,
14036
+ lineNumber: 840,
13981
14037
  columnNumber: 13
13982
14038
  }
13983
14039
  })), /*#__PURE__*/React__default.createElement(Button$2, _extends({}, getToggleButtonProps({
@@ -13991,7 +14047,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13991
14047
  __self: undefined,
13992
14048
  __source: {
13993
14049
  fileName: _jsxFileName$x,
13994
- lineNumber: 845,
14050
+ lineNumber: 847,
13995
14051
  columnNumber: 13
13996
14052
  }
13997
14053
  }), (_ref2 = label != null ? label : placeholder) != null ? _ref2 : t('placeholder', 'Pilih Item'))), /*#__PURE__*/React__default.createElement(IconWrapper, _extends({}, getToggleButtonProps({
@@ -14002,7 +14058,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14002
14058
  __self: undefined,
14003
14059
  __source: {
14004
14060
  fileName: _jsxFileName$x,
14005
- lineNumber: 856,
14061
+ lineNumber: 858,
14006
14062
  columnNumber: 11
14007
14063
  }
14008
14064
  }), /*#__PURE__*/React__default.createElement(IconCaretDown, {
@@ -14010,7 +14066,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14010
14066
  __self: undefined,
14011
14067
  __source: {
14012
14068
  fileName: _jsxFileName$x,
14013
- lineNumber: 861,
14069
+ lineNumber: 863,
14014
14070
  columnNumber: 13
14015
14071
  }
14016
14072
  }))), helperText && /*#__PURE__*/React__default.createElement(Paragraph, {
@@ -14023,7 +14079,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14023
14079
  __self: undefined,
14024
14080
  __source: {
14025
14081
  fileName: _jsxFileName$x,
14026
- lineNumber: 865,
14082
+ lineNumber: 867,
14027
14083
  columnNumber: 11
14028
14084
  }
14029
14085
  }, helperText), showSelectedTag && !showCounter && selectedItems.length !== 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TagWrapper$2, {
@@ -14031,7 +14087,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14031
14087
  __self: undefined,
14032
14088
  __source: {
14033
14089
  fileName: _jsxFileName$x,
14034
- lineNumber: 871,
14090
+ lineNumber: 873,
14035
14091
  columnNumber: 13
14036
14092
  }
14037
14093
  }, isShowTagSelectAll ? /*#__PURE__*/React__default.createElement(Tag, _extends({
@@ -14052,7 +14108,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14052
14108
  __self: undefined,
14053
14109
  __source: {
14054
14110
  fileName: _jsxFileName$x,
14055
- lineNumber: 873,
14111
+ lineNumber: 875,
14056
14112
  columnNumber: 17
14057
14113
  }
14058
14114
  }), selectAllLabel != null ? selectAllLabel : t('selectAllLabelText', 'Pilih Semua')) : selectedItems == null ? void 0 : (_selectedItems$filter = selectedItems.filter(item => (item == null ? void 0 : item.id) !== '!all')) == null ? void 0 : (_selectedItems$filter2 = _selectedItems$filter.filter((_, idx) => {
@@ -14083,16 +14139,16 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14083
14139
  __self: undefined,
14084
14140
  __source: {
14085
14141
  fileName: _jsxFileName$x,
14086
- lineNumber: 902,
14142
+ lineNumber: 904,
14087
14143
  columnNumber: 21
14088
14144
  }
14089
- }), selectedItem.name))), collapsible && !isShowTagSelectAll && (selectedItems == null ? void 0 : selectedItems.length) > 5 && /*#__PURE__*/React__default.createElement(Flex$1, {
14145
+ }), selectedItem.name))), collapsible && !isShowTagSelectAll && (selectedItems == null ? void 0 : selectedItems.length) > collapsibleLimit && /*#__PURE__*/React__default.createElement(Flex$1, {
14090
14146
  direction: "column",
14091
14147
  gap: 4,
14092
14148
  __self: undefined,
14093
14149
  __source: {
14094
14150
  fileName: _jsxFileName$x,
14095
- lineNumber: 925,
14151
+ lineNumber: 927,
14096
14152
  columnNumber: 15
14097
14153
  }
14098
14154
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -14102,14 +14158,14 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14102
14158
  __self: undefined,
14103
14159
  __source: {
14104
14160
  fileName: _jsxFileName$x,
14105
- lineNumber: 926,
14161
+ lineNumber: 928,
14106
14162
  columnNumber: 17
14107
14163
  }
14108
14164
  }, /*#__PURE__*/React__default.createElement(Separator$2, {
14109
14165
  __self: undefined,
14110
14166
  __source: {
14111
14167
  fileName: _jsxFileName$x,
14112
- lineNumber: 927,
14168
+ lineNumber: 929,
14113
14169
  columnNumber: 19
14114
14170
  }
14115
14171
  }), /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -14123,7 +14179,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14123
14179
  __self: undefined,
14124
14180
  __source: {
14125
14181
  fileName: _jsxFileName$x,
14126
- lineNumber: 928,
14182
+ lineNumber: 930,
14127
14183
  columnNumber: 19
14128
14184
  }
14129
14185
  }, showAllTags ? /*#__PURE__*/React__default.createElement(ChevronUpOutline, {
@@ -14131,7 +14187,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14131
14187
  __self: undefined,
14132
14188
  __source: {
14133
14189
  fileName: _jsxFileName$x,
14134
- lineNumber: 934,
14190
+ lineNumber: 936,
14135
14191
  columnNumber: 23
14136
14192
  }
14137
14193
  }) : /*#__PURE__*/React__default.createElement(ChevronDownOutline, {
@@ -14139,7 +14195,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14139
14195
  __self: undefined,
14140
14196
  __source: {
14141
14197
  fileName: _jsxFileName$x,
14142
- lineNumber: 936,
14198
+ lineNumber: 938,
14143
14199
  columnNumber: 23
14144
14200
  }
14145
14201
  }), /*#__PURE__*/React__default.createElement(Paragraph, {
@@ -14151,17 +14207,17 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14151
14207
  __self: undefined,
14152
14208
  __source: {
14153
14209
  fileName: _jsxFileName$x,
14154
- lineNumber: 938,
14210
+ lineNumber: 940,
14155
14211
  columnNumber: 21
14156
14212
  }
14157
14213
  }, showAllTags ? t('showSomeText', 'Tampilkan Sebagian') : t('showAllText', 'Tampilkan Semua'))), /*#__PURE__*/React__default.createElement(Separator$2, {
14158
14214
  __self: undefined,
14159
14215
  __source: {
14160
14216
  fileName: _jsxFileName$x,
14161
- lineNumber: 942,
14217
+ lineNumber: 944,
14162
14218
  columnNumber: 19
14163
14219
  }
14164
- })), /*#__PURE__*/React__default.createElement(Paragraph, {
14220
+ })), showCollapsibleCounter && /*#__PURE__*/React__default.createElement(Paragraph, {
14165
14221
  css: {
14166
14222
  fontSize: '$label'
14167
14223
  },
@@ -14169,8 +14225,8 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14169
14225
  __self: undefined,
14170
14226
  __source: {
14171
14227
  fileName: _jsxFileName$x,
14172
- lineNumber: 944,
14173
- columnNumber: 17
14228
+ lineNumber: 947,
14229
+ columnNumber: 19
14174
14230
  }
14175
14231
  }, `${selectedItems == null ? void 0 : (_selectedItems$filter3 = selectedItems.filter(item => (item == null ? void 0 : item.id) !== '!all')) == null ? void 0 : _selectedItems$filter3.length} ${labelCounter || t('labelCounterText', 'Item terpilih')}`))), showCounter && !isShowTagSelectAll && Boolean(selectedItems == null ? void 0 : selectedItems.length) && /*#__PURE__*/React__default.createElement(Paragraph, {
14176
14232
  css: {
@@ -14181,7 +14237,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14181
14237
  __self: undefined,
14182
14238
  __source: {
14183
14239
  fileName: _jsxFileName$x,
14184
- lineNumber: 953,
14240
+ lineNumber: 957,
14185
14241
  columnNumber: 11
14186
14242
  }
14187
14243
  }, `${selectedItems == null ? void 0 : (_selectedItems$filter4 = selectedItems.filter(item => (item == null ? void 0 : item.id) !== '!all')) == null ? void 0 : _selectedItems$filter4.length} ${labelCounter || t('labelCounterText', 'Item terpilih')}`), /*#__PURE__*/React__default.createElement(OptionWrapper$1, {
@@ -14194,7 +14250,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14194
14250
  __self: undefined,
14195
14251
  __source: {
14196
14252
  fileName: _jsxFileName$x,
14197
- lineNumber: 959,
14253
+ lineNumber: 963,
14198
14254
  columnNumber: 9
14199
14255
  }
14200
14256
  }, isLoading && /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -14216,7 +14272,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14216
14272
  __self: undefined,
14217
14273
  __source: {
14218
14274
  fileName: _jsxFileName$x,
14219
- lineNumber: 969,
14275
+ lineNumber: 973,
14220
14276
  columnNumber: 13
14221
14277
  }
14222
14278
  }, /*#__PURE__*/React__default.createElement(Text$1, {
@@ -14224,7 +14280,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14224
14280
  __self: undefined,
14225
14281
  __source: {
14226
14282
  fileName: _jsxFileName$x,
14227
- lineNumber: 986,
14283
+ lineNumber: 990,
14228
14284
  columnNumber: 15
14229
14285
  }
14230
14286
  }, "Loading....")), items.length > 0 || isLoading ? /*#__PURE__*/React__default.createElement(Option, _extends({}, getMenuProps({
@@ -14236,7 +14292,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14236
14292
  __self: undefined,
14237
14293
  __source: {
14238
14294
  fileName: _jsxFileName$x,
14239
- lineNumber: 992,
14295
+ lineNumber: 996,
14240
14296
  columnNumber: 13
14241
14297
  }
14242
14298
  }), /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
@@ -14251,14 +14307,14 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14251
14307
  __self: undefined,
14252
14308
  __source: {
14253
14309
  fileName: _jsxFileName$x,
14254
- lineNumber: 996,
14310
+ lineNumber: 1000,
14255
14311
  columnNumber: 19
14256
14312
  }
14257
14313
  }, child),
14258
14314
  __self: undefined,
14259
14315
  __source: {
14260
14316
  fileName: _jsxFileName$x,
14261
- lineNumber: 993,
14317
+ lineNumber: 997,
14262
14318
  columnNumber: 15
14263
14319
  }
14264
14320
  }, isOpen && items.map((item, index) => item != null && item.children ? renderOptionGroupItem(item) : renderOptionItem(item, index)))) : /*#__PURE__*/React__default.createElement(Option, _extends({
@@ -14271,14 +14327,14 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14271
14327
  __self: undefined,
14272
14328
  __source: {
14273
14329
  fileName: _jsxFileName$x,
14274
- lineNumber: 1013,
14330
+ lineNumber: 1017,
14275
14331
  columnNumber: 13
14276
14332
  }
14277
14333
  }), /*#__PURE__*/React__default.createElement(StyledDiv, {
14278
14334
  __self: undefined,
14279
14335
  __source: {
14280
14336
  fileName: _jsxFileName$x,
14281
- lineNumber: 1014,
14337
+ lineNumber: 1018,
14282
14338
  columnNumber: 15
14283
14339
  }
14284
14340
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -14288,7 +14344,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14288
14344
  __self: undefined,
14289
14345
  __source: {
14290
14346
  fileName: _jsxFileName$x,
14291
- lineNumber: 1015,
14347
+ lineNumber: 1019,
14292
14348
  columnNumber: 17
14293
14349
  }
14294
14350
  }, /*#__PURE__*/React__default.createElement(CircleInfoOutline, {
@@ -14300,7 +14356,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14300
14356
  __self: undefined,
14301
14357
  __source: {
14302
14358
  fileName: _jsxFileName$x,
14303
- lineNumber: 1016,
14359
+ lineNumber: 1020,
14304
14360
  columnNumber: 19
14305
14361
  }
14306
14362
  })), textEmptyItem != null ? textEmptyItem : t('emptyItemText', 'Item tidak ditemukan')))));
@@ -14341,7 +14397,9 @@ InputSelectCheck.propTypes = {
14341
14397
  label: PropTypes.string,
14342
14398
  tagCss: PropTypes.object,
14343
14399
  checkBoxCss: PropTypes.object,
14344
- optionListCss: PropTypes.object
14400
+ optionListCss: PropTypes.object,
14401
+ showCollapsibleCounter: PropTypes.bool,
14402
+ collapsibleLimit: PropTypes.number
14345
14403
  };
14346
14404
  InputSelectCheck.defaultProps = {
14347
14405
  size: 'lg',
@@ -14362,7 +14420,9 @@ InputSelectCheck.defaultProps = {
14362
14420
  label: undefined,
14363
14421
  tagCss: {},
14364
14422
  checkBoxCss: {},
14365
- optionListCss: {}
14423
+ optionListCss: {},
14424
+ showCollapsibleCounter: true,
14425
+ collapsibleLimit: 5
14366
14426
  };
14367
14427
 
14368
14428
  var _jsxFileName$w = "/home/alfiantryp/Projects/majoo-ui/packages/react/src/components/form/components/InputSelectTag/InputSelectTag.js";