@mtes-mct/monitor-ui 11.0.0 → 11.1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## [11.0.1](https://github.com/MTES-MCT/monitor-ui/compare/v11.0.0...v11.0.1) (2024-01-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **icon:** fix Attention icon ([72f0161](https://github.com/MTES-MCT/monitor-ui/commit/72f016188dbe016842a693e441ce8a22532354f5))
7
+
8
+ ## [11.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v10.19.1...v11.0.0) (2024-01-16)
9
+
10
+
11
+ ### ⚠ BREAKING CHANGES
12
+
13
+ * **tables:** Add width prop in TableWithSelectableRows.Td to have fixed columns size.
14
+ * **table:** add width prop in TableWithSelectableRows.Td and update table-layout to fixed
15
+
16
+ ### Features
17
+
18
+ * **tables:** add width prop in TableWithSelectableRows.Td & update table-layout to fixed ([e80f88f](https://github.com/MTES-MCT/monitor-ui/commit/e80f88fb36f5a1210b36e1ef114249c1c1a3586d))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **table:** add width prop in TableWithSelectableRows.Td and update table-layout to fixed ([38a9d3e](https://github.com/MTES-MCT/monitor-ui/commit/38a9d3ef2f8b756b43dc43ebce89f10965c60fd4))
24
+
1
25
  ## [10.19.1](https://github.com/MTES-MCT/monitor-ui/compare/v10.19.0...v10.19.1) (2024-01-15)
2
26
 
3
27
  ### Bug Fixes
@@ -1 +1 @@
1
- {"version":3,"file":"Attention.d.ts","sourceRoot":"","sources":["../../src/icons/Attention.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEzC,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,WAAW,EAAE,EAAE,SAAS,2CA2CnE"}
1
+ {"version":3,"file":"Attention.d.ts","sourceRoot":"","sources":["../../src/icons/Attention.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEzC,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,WAAW,EAAE,EAAE,SAAS,2CAsCnE"}
package/index.js CHANGED
@@ -33943,7 +33943,7 @@ function IconButton({ accent = Accent.PRIMARY, className, color, Icon, iconSize,
33943
33943
  ]);
33944
33944
  const commonChildren = useMemo(()=>/*#__PURE__*/ jsx(Icon, {
33945
33945
  color: color,
33946
- size: iconSize || ICON_SIZE_IN_PX[size]
33946
+ size: iconSize ?? ICON_SIZE_IN_PX[size]
33947
33947
  }), [
33948
33948
  color,
33949
33949
  Icon,
@@ -34315,68 +34315,43 @@ function Attention({ color, size, ...nativeProps }) {
34315
34315
  transform: "translate(200 -82)",
34316
34316
  children: [
34317
34317
  /*#__PURE__*/ jsxs("g", {
34318
+ fill: "none",
34319
+ strokeMiterlimit: "10",
34318
34320
  children: [
34319
- /*#__PURE__*/ jsxs("g", {
34320
- fill: "none",
34321
- strokeMiterlimit: "10",
34322
- children: [
34323
- /*#__PURE__*/ jsx("path", {
34324
- d: "M-190,83a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-190,83Zm0,16a7,7,0,0,1-7-7,7,7,0,0,1,7-7,7,7,0,0,1,7,7A7,7,0,0,1-190,99Z",
34325
- stroke: "none"
34326
- }),
34327
- /*#__PURE__*/ jsx("path", {
34328
- d: "M -190 83 C -185.0290069580078 83 -181 87.02899932861328 -181 92 C -181 96.97100067138672 -185.0290069580078 101 -190 101 C -194.9709930419922 101 -199 96.97100067138672 -199 92 C -199 87.02899932861328 -194.9709930419922 83 -190 83 Z M -190 99 C -186.1340026855469 99 -183 95.86599731445313 -183 92 C -183 88.13400268554688 -186.1340026855469 85 -190 85 C -193.8659973144531 85 -197 88.13400268554688 -197 92 C -197 95.86599731445313 -193.8659973144531 99 -190 99 Z",
34329
- fill: "currentColor",
34330
- stroke: "none"
34331
- })
34332
- ]
34333
- }),
34334
- /*#__PURE__*/ jsxs("g", {
34335
- fill: "none",
34336
- stroke: "currentColor",
34337
- strokeMiterlimit: "10",
34338
- strokeWidth: "2",
34339
- transform: "translate(-189 93) rotate(180)",
34340
- children: [
34341
- /*#__PURE__*/ jsx("rect", {
34342
- height: "5",
34343
- stroke: "none",
34344
- width: "2"
34345
- }),
34346
- /*#__PURE__*/ jsx("rect", {
34347
- fill: "none",
34348
- height: "3",
34349
- x: "1",
34350
- y: "1"
34351
- })
34352
- ]
34321
+ /*#__PURE__*/ jsx("path", {
34322
+ d: "M-190,83a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-190,83Zm0,16a7,7,0,0,1-7-7,7,7,0,0,1,7-7,7,7,0,0,1,7,7A7,7,0,0,1-190,99Z",
34323
+ stroke: "none"
34353
34324
  }),
34354
- /*#__PURE__*/ jsxs("g", {
34355
- fill: "none",
34356
- stroke: "currentColor",
34357
- strokeMiterlimit: "10",
34358
- strokeWidth: "2",
34359
- transform: "translate(-189 96) rotate(180)",
34360
- children: [
34361
- /*#__PURE__*/ jsx("rect", {
34362
- height: "2",
34363
- stroke: "none",
34364
- width: "2"
34365
- }),
34366
- /*#__PURE__*/ jsx("rect", {
34367
- fill: "none",
34368
- x: "1",
34369
- y: "1"
34370
- })
34371
- ]
34325
+ /*#__PURE__*/ jsx("path", {
34326
+ d: "M -190 83 C -185.0290069580078 83 -181 87.02899932861328 -181 92 C -181 96.97100067138672 -185.0290069580078 101 -190 101 C -194.9709930419922 101 -199 96.97100067138672 -199 92 C -199 87.02899932861328 -194.9709930419922 83 -190 83 Z M -190 99 C -186.1340026855469 99 -183 95.86599731445313 -183 92 C -183 88.13400268554688 -186.1340026855469 85 -190 85 C -193.8659973144531 85 -197 88.13400268554688 -197 92 C -197 95.86599731445313 -193.8659973144531 99 -190 99 Z",
34327
+ fill: "currentColor",
34328
+ stroke: "none"
34372
34329
  })
34373
34330
  ]
34374
34331
  }),
34375
- /*#__PURE__*/ jsx("rect", {
34376
- fill: "none",
34377
- height: "20",
34378
- transform: "translate(-200 82)",
34379
- width: "20"
34332
+ /*#__PURE__*/ jsx("g", {
34333
+ fill: "currentColor",
34334
+ stroke: "currentColor",
34335
+ strokeMiterlimit: "10",
34336
+ strokeWidth: "2",
34337
+ transform: "translate(-189 93) rotate(180)",
34338
+ children: /*#__PURE__*/ jsx("rect", {
34339
+ height: "5",
34340
+ stroke: "none",
34341
+ width: "2"
34342
+ })
34343
+ }),
34344
+ /*#__PURE__*/ jsx("g", {
34345
+ fill: "currentColor",
34346
+ stroke: "currentColor",
34347
+ strokeMiterlimit: "10",
34348
+ strokeWidth: "2",
34349
+ transform: "translate(-189 96) rotate(180)",
34350
+ children: /*#__PURE__*/ jsx("rect", {
34351
+ height: "2",
34352
+ stroke: "none",
34353
+ width: "2"
34354
+ })
34380
34355
  })
34381
34356
  ]
34382
34357
  })
@@ -37979,7 +37954,7 @@ const Header = styled.div`
37979
37954
  padding: 9px 4px 9px 10px;
37980
37955
  `;
37981
37956
  const Title = styled.span.attrs((props)=>({
37982
- title: String(props.children)
37957
+ title: props.title ?? String(props.children)
37983
37958
  }))`
37984
37959
  color: ${(p)=>p.theme.color.white};
37985
37960
  font-size: 16px;
@@ -38020,9 +37995,9 @@ const MapMenuDialog = {
38020
37995
  };
38021
37996
 
38022
37997
  const ExclamationPoint = styled.span`
38023
- background: ${(p)=>p.backgroundColor || p.theme.color.goldenPoppy};
37998
+ background: ${(p)=>p.backgroundColor ?? p.theme.color.goldenPoppy};
38024
37999
  border-radius: 15px;
38025
- color: ${(p)=>p.color || p.theme.color.white};
38000
+ color: ${(p)=>p.color ?? p.theme.color.white};
38026
38001
  display: inline-block;
38027
38002
  font-size: 11px;
38028
38003
  font-weight: 700;
@@ -38075,8 +38050,8 @@ const Text = styled.div`
38075
38050
  margin-left: 8px;
38076
38051
  `;
38077
38052
  const Box$h = styled.span`
38078
- background: ${(p)=>p.backgroundColor || p.theme.color.goldenPoppy25};
38079
- color: ${(p)=>p.color || p.theme.color.slateGray};
38053
+ background: ${(p)=>p.backgroundColor ?? p.theme.color.goldenPoppy25};
38054
+ color: ${(p)=>p.color ?? p.theme.color.slateGray};
38080
38055
  padding: 8px 16px 16px 8px;
38081
38056
  display: flex;
38082
38057
  border-radius: 2px;
@@ -38177,8 +38152,8 @@ function Tag({ accent, backgroundColor, borderColor, bullet, bulletColor, childr
38177
38152
  withBullet
38178
38153
  ]);
38179
38154
  const commonChildren = useMemo(()=>{
38180
- const defaultColor = color || THEME.color.gunMetal;
38181
- const cutomIconColor = bulletColor || iconColor || (accent ? ({
38155
+ const defaultColor = color ?? THEME.color.gunMetal;
38156
+ const cutomIconColor = bulletColor ?? iconColor ?? (accent ? ({
38182
38157
  [Accent.PRIMARY]: THEME.color.gunMetal,
38183
38158
  [Accent.SECONDARY]: THEME.color.gunMetal,
38184
38159
  [Accent.TERTIARY]: THEME.color.white
@@ -55714,7 +55689,7 @@ function Search({ baseContainer, className, customSearch = undefined, customSear
55714
55689
  container: boxRef.current,
55715
55690
  // When we use a custom search, we use `controlledRsuiteData` to provide the matching options (data),
55716
55691
  // when we don't, we don't need to control that and just pass the non-internally-controlled `rsuiteData`
55717
- data: controlledRsuiteData || data,
55692
+ data: controlledRsuiteData ?? data,
55718
55693
  // When we use a custom search, we use `controlledRsuiteData` to provide the matching options (data),
55719
55694
  // that's why we send this "always true" filter to disable Rsuite SelectPicker internal search filtering
55720
55695
  filterBy: customSearch ? ()=>true : undefined,
@@ -55993,7 +55968,7 @@ function CheckPicker({ className, customSearch, customSearchMinQueryLength = 1,
55993
55968
  container: boxRef.current,
55994
55969
  // When we use a custom search, we use `controlledRsuiteData` to provide the matching options (data),
55995
55970
  // when we don't, we don't need to control that and just pass the non-internally-controlled `rsuiteData`
55996
- data: controlledRsuiteData || rsuiteData,
55971
+ data: controlledRsuiteData ?? rsuiteData,
55997
55972
  disabled: disabled,
55998
55973
  id: originalProps.name,
55999
55974
  onChange: handleChange,
@@ -56003,7 +55978,7 @@ function CheckPicker({ className, customSearch, customSearchMinQueryLength = 1,
56003
55978
  // When we use a custom search, we use `controlledRsuiteData` to provide the matching options (data),
56004
55979
  // that's why we send this "always true" filter to disable Rsuite CheckPicker internal search filtering
56005
55980
  searchBy: customSearch ? ()=>true : undefined,
56006
- size: originalProps.size || 'sm',
55981
+ size: originalProps.size ?? 'sm',
56007
55982
  value: selectedRsuiteValue,
56008
55983
  ...originalProps
56009
55984
  }, key)
@@ -56176,7 +56151,7 @@ customDayjs.locale('fr');
56176
56151
  * // => `2022-01-02T03:04:05.006Z
56177
56152
  * ```
56178
56153
  */ function getUtcizedDayjs(localDate) {
56179
- const definedLocalDate = localDate || new Date();
56154
+ const definedLocalDate = localDate ?? new Date();
56180
56155
  // The number of minutes returned by getTimezoneOffset() is positive if the local time zone is behind UTC,
56181
56156
  // and negative if the local time zone is ahead of UTC. For example, for UTC+10, `-600` will be returned.
56182
56157
  //
@@ -57379,7 +57354,7 @@ function DatePicker({ baseContainer, className, defaultValue, disabled = false,
57379
57354
  /*#__PURE__*/ jsx(Field$1, {
57380
57355
  children: /*#__PURE__*/ jsx(DateInput, {
57381
57356
  ref: dateInputRef,
57382
- baseContainer: baseContainer || undefined,
57357
+ baseContainer: baseContainer ?? undefined,
57383
57358
  disabled: disabled,
57384
57359
  isCompact: isCompact,
57385
57360
  isEndDate: isEndDate,
@@ -57396,7 +57371,7 @@ function DatePicker({ baseContainer, className, defaultValue, disabled = false,
57396
57371
  $isTimeField: true,
57397
57372
  children: /*#__PURE__*/ jsx(TimeInput, {
57398
57373
  ref: timeInputRef,
57399
- baseContainer: baseContainer || undefined,
57374
+ baseContainer: baseContainer ?? undefined,
57400
57375
  disabled: disabled,
57401
57376
  isCompact: isCompact,
57402
57377
  isLight: isLight,
@@ -57931,7 +57906,7 @@ function DateRangePicker({ baseContainer, className, defaultValue, disabled = fa
57931
57906
  hasMountedRef.current = true;
57932
57907
  return;
57933
57908
  }
57934
- if (defaultValue && previousDefaultValue && defaultValue[0] instanceof Date && defaultValue[1] instanceof Date && previousDefaultValue[0] instanceof Date && previousDefaultValue[1] instanceof Date && defaultValue[0].toISOString() === previousDefaultValue[0].toISOString() && defaultValue[1].toISOString() === previousDefaultValue[1].toISOString() || lodashExports.isEqual(defaultValue, previousDefaultValue)) {
57909
+ if (!!defaultValue && !!previousDefaultValue && defaultValue[0] instanceof Date && defaultValue[1] instanceof Date && previousDefaultValue[0] instanceof Date && previousDefaultValue[1] instanceof Date && defaultValue[0].toISOString() === previousDefaultValue[0].toISOString() && defaultValue[1].toISOString() === previousDefaultValue[1].toISOString() || lodashExports.isEqual(defaultValue, previousDefaultValue)) {
57935
57910
  return;
57936
57911
  }
57937
57912
  selectedStartDateTimeAsDayjsRef.current = defaultValue ? customDayjs(defaultValue[0]) : undefined;
@@ -57962,7 +57937,7 @@ function DateRangePicker({ baseContainer, className, defaultValue, disabled = fa
57962
57937
  /*#__PURE__*/ jsx(Field, {
57963
57938
  children: /*#__PURE__*/ jsx(DateInput, {
57964
57939
  ref: startDateInputRef,
57965
- baseContainer: baseContainer || undefined,
57940
+ baseContainer: baseContainer ?? undefined,
57966
57941
  disabled: disabled,
57967
57942
  isCompact: isCompact,
57968
57943
  isForcedFocused: isRangeCalendarPickerOpen,
@@ -57980,7 +57955,7 @@ function DateRangePicker({ baseContainer, className, defaultValue, disabled = fa
57980
57955
  isTimeField: true,
57981
57956
  children: /*#__PURE__*/ jsx(TimeInput, {
57982
57957
  ref: startTimeInputRef,
57983
- baseContainer: baseContainer || undefined,
57958
+ baseContainer: baseContainer ?? undefined,
57984
57959
  disabled: disabled,
57985
57960
  isCompact: isCompact,
57986
57961
  isLight: isLight,
@@ -57999,7 +57974,7 @@ function DateRangePicker({ baseContainer, className, defaultValue, disabled = fa
57999
57974
  isEndDateField: true,
58000
57975
  children: /*#__PURE__*/ jsx(DateInput, {
58001
57976
  ref: endDateInputRef,
58002
- baseContainer: baseContainer || undefined,
57977
+ baseContainer: baseContainer ?? undefined,
58003
57978
  disabled: disabled,
58004
57979
  isCompact: isCompact,
58005
57980
  isEndDate: true,
@@ -58019,7 +57994,7 @@ function DateRangePicker({ baseContainer, className, defaultValue, disabled = fa
58019
57994
  isTimeField: true,
58020
57995
  children: /*#__PURE__*/ jsx(TimeInput, {
58021
57996
  ref: endTimeInputRef,
58022
- baseContainer: baseContainer || undefined,
57997
+ baseContainer: baseContainer ?? undefined,
58023
57998
  disabled: disabled,
58024
57999
  isCompact: isCompact,
58025
58000
  isEndDate: true,
@@ -58098,9 +58073,9 @@ function MultiCheckbox({ className, disabled = false, error, isErrorMessageHidde
58098
58073
  return;
58099
58074
  }
58100
58075
  const nextCheckedOptionValues = isChecked ? [
58101
- ...value || [],
58076
+ ...value ?? [],
58102
58077
  nextOptionValue
58103
- ] : reject$1(equals$2(nextOptionValue))(value || []);
58078
+ ] : reject$1(equals$2(nextOptionValue))(value ?? []);
58104
58079
  const normalizedNextValue = nextCheckedOptionValues.length ? nextCheckedOptionValues : undefined;
58105
58080
  onChange(normalizedNextValue);
58106
58081
  }, [
@@ -58121,8 +58096,8 @@ function MultiCheckbox({ className, disabled = false, error, isErrorMessageHidde
58121
58096
  $hasError: hasError,
58122
58097
  $isInline: isInline,
58123
58098
  children: options.map((option, index)=>/*#__PURE__*/ jsx(Checkbox, {
58124
- checked: includes$1(option.value, value || []),
58125
- disabled: option.isDisabled || disabled,
58099
+ checked: includes$1(option.value, value ?? []),
58100
+ disabled: !!option.isDisabled || disabled,
58126
58101
  label: option.label,
58127
58102
  name: `${name}${index}`,
58128
58103
  onChange: (isChecked)=>handleChange(option.value, isChecked)
@@ -58189,7 +58164,7 @@ function MultiSelect({ baseContainer, className, customSearch, customSearchMinQu
58189
58164
  originalProps.name,
58190
58165
  value
58191
58166
  ]);
58192
- const selectedRsuiteValue = useMemo(()=>(value || []).map((valueItem)=>getRsuiteValueFromOptionValue(valueItem, optionValueKey)), [
58167
+ const selectedRsuiteValue = useMemo(()=>(value ?? []).map((valueItem)=>getRsuiteValueFromOptionValue(valueItem, optionValueKey)), [
58193
58168
  optionValueKey,
58194
58169
  value
58195
58170
  ]);
@@ -58285,7 +58260,7 @@ function MultiSelect({ baseContainer, className, customSearch, customSearchMinQu
58285
58260
  container: boxRef.current,
58286
58261
  // When we use a custom search, we use `controlledRsuiteData` to provide the matching options (data),
58287
58262
  // when we don't, we don't need to control that and just pass the non-internally-controlled `rsuiteData`
58288
- data: controlledRsuiteData || rsuiteData,
58263
+ data: controlledRsuiteData ?? rsuiteData,
58289
58264
  disabled: disabled,
58290
58265
  id: originalProps.name,
58291
58266
  onChange: handleChange,
@@ -58293,7 +58268,7 @@ function MultiSelect({ baseContainer, className, customSearch, customSearchMinQu
58293
58268
  onSearch: handleSearch,
58294
58269
  open: isOpen,
58295
58270
  renderMenuItem: renderMenuItem,
58296
- searchable: !!customSearch || searchable,
58271
+ searchable: !!customSearch ?? searchable,
58297
58272
  // When we use a custom search, we use `controlledRsuiteData` to provide the matching options (data),
58298
58273
  // that's why we send this "always true" filter to disable Rsuite TagPicker internal search filtering
58299
58274
  searchBy: customSearch ? ()=>true : undefined,
@@ -58469,7 +58444,7 @@ function MultiRadio({ className, disabled = false, error, isErrorMessageHidden =
58469
58444
  $isReadOnly: isReadOnly,
58470
58445
  children: options.map((option)=>/*#__PURE__*/ jsx(Radio, {
58471
58446
  checked: equals$2(option.value, value),
58472
- disabled: option.isDisabled || disabled,
58447
+ disabled: !!option.isDisabled || disabled,
58473
58448
  name: name,
58474
58449
  onChange: (_, isChecked)=>handleChange(option.value, isChecked),
58475
58450
  readOnly: isReadOnly,
@@ -58758,7 +58733,7 @@ function NumberInput({ className, error, isErrorMessageHidden = false, isLabelHi
58758
58733
  onChange: handleChange,
58759
58734
  onFocus: handleFocus,
58760
58735
  type: "number",
58761
- value: value || '',
58736
+ value: value ?? '',
58762
58737
  ...originalProps
58763
58738
  }, key),
58764
58739
  !isErrorMessageHidden && hasError && /*#__PURE__*/ jsx(FieldError, {
@@ -69542,7 +69517,7 @@ var CoordinateLatLon;
69542
69517
  return [];
69543
69518
  }
69544
69519
  let longitude = longitudeInteger.toString().trim().replace(/-/g, '');
69545
- const decimals = longitudeDecimals?.substring(0, precision) || '000000';
69520
+ const decimals = longitudeDecimals?.substring(0, precision) ?? '000000';
69546
69521
  longitude = `${isNegative ? '-' : ''}${getPaddedDegrees(longitude, "LONGITUDE")}.${decimals}`;
69547
69522
  return [
69548
69523
  `${transformedCoordinates[1].toFixed(precision)}°`,
@@ -69981,7 +69956,7 @@ function Select({ baseContainer, className, customSearch, customSearchMinQueryLe
69981
69956
  isOpen,
69982
69957
  disabled
69983
69958
  ]);
69984
- const disabledItemValues = useMemo(()=>(controlledRsuiteData || rsuiteData).filter((option)=>option.isDisabled).map((option)=>option.value), [
69959
+ const disabledItemValues = useMemo(()=>(controlledRsuiteData ?? rsuiteData).filter((option)=>option.isDisabled).map((option)=>option.value), [
69985
69960
  controlledRsuiteData,
69986
69961
  rsuiteData
69987
69962
  ]);
@@ -70013,7 +69988,7 @@ function Select({ baseContainer, className, customSearch, customSearchMinQueryLe
70013
69988
  container: boxRef.current,
70014
69989
  // When we use a custom search, we use `controlledRsuiteData` to provide the matching options (data),
70015
69990
  // when we don't, we don't need to control that and just pass the non-internally-controlled `rsuiteData`
70016
- data: controlledRsuiteData || rsuiteData,
69991
+ data: controlledRsuiteData ?? rsuiteData,
70017
69992
  disabled: disabled,
70018
69993
  disabledItemValues: disabledItemValues,
70019
69994
  id: originalProps.name,
@@ -70165,7 +70140,7 @@ function Textarea({ className, error, isErrorMessageHidden = false, isLabelHidde
70165
70140
  id: originalProps.name,
70166
70141
  onChange: handleChange,
70167
70142
  rows: rows,
70168
- value: value || '',
70143
+ value: value ?? '',
70169
70144
  ...originalProps
70170
70145
  }, key),
70171
70146
  !isErrorMessageHidden && hasError && /*#__PURE__*/ jsx(FieldError, {
@@ -70250,7 +70225,7 @@ function TextInput({ className, error, Icon, isErrorMessageHidden = false, isLab
70250
70225
  id: originalProps.name,
70251
70226
  onChange: handleChange,
70252
70227
  type: type,
70253
- value: value || '',
70228
+ value: value ?? '',
70254
70229
  ...originalProps
70255
70230
  }, key),
70256
70231
  isSearchInput && !Icon && /*#__PURE__*/ jsxs(IconsContainer, {
@@ -76405,7 +76380,7 @@ const SimpleTable = {
76405
76380
  };
76406
76381
 
76407
76382
  function Td$1({ cell, children }) {
76408
- const controlledChildren = children || flexRender(cell.column.columnDef.cell, cell.getContext());
76383
+ const controlledChildren = children ?? flexRender(cell.column.columnDef.cell, cell.getContext());
76409
76384
  return /*#__PURE__*/ jsx(SimpleTable.Td, {
76410
76385
  $isCenter: false,
76411
76386
  style: {
@@ -76428,7 +76403,7 @@ const SortingIcon = styled(Chevron)`
76428
76403
  `;
76429
76404
 
76430
76405
  function Th$1({ children, header }) {
76431
- const controlledChildren = children || !header.isPlaceholder ? /*#__PURE__*/ jsxs(SimpleTable.SortContainer, {
76406
+ const controlledChildren = children ?? !header.isPlaceholder ? /*#__PURE__*/ jsxs(SimpleTable.SortContainer, {
76432
76407
  className: header.column.getCanSort() ? 'cursor-pointer select-none' : '',
76433
76408
  onClick: header.column.getToggleSortingHandler(),
76434
76409
  children: [
@@ -76457,7 +76432,7 @@ function DataTable({ columns, data, initialSorting }) {
76457
76432
  const [sorting, setSorting] = useState(initialSorting);
76458
76433
  const table = useReactTable({
76459
76434
  columns,
76460
- data: data || [],
76435
+ data: data ?? [],
76461
76436
  // eslint-disable-next-line @typescript-eslint/naming-convention
76462
76437
  enableSortingRemoval: false,
76463
76438
  getCoreRowModel: getCoreRowModel(),