@ssa-ui-kit/core 3.12.0 → 3.13.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/dist/index.js CHANGED
@@ -9653,6 +9653,8 @@ const main = {
9653
9653
  // #4178e1
9654
9654
  blue6RGB: 'rgb(244, 247, 252)',
9655
9655
  // #F4F7FC
9656
+ blue12: 'rgba(65, 120, 225, 0.12)',
9657
+ // #4178e1
9656
9658
  blue20: 'rgba(65, 120, 225, 0.2)',
9657
9659
  // #4178e1
9658
9660
  blueCool: 'rgba(108, 148, 247, 1)',
@@ -14386,7 +14388,7 @@ const IconMapComponent = ({
14386
14388
  ...props
14387
14389
  }) => {
14388
14390
  const Component = iconsMap[name];
14389
- if (Component == null) {
14391
+ if ((0,utils_namespaceObject.isNill)(Component)) {
14390
14392
  return null;
14391
14393
  }
14392
14394
  return (0,jsx_runtime_namespaceObject.jsx)(Component, {
@@ -14485,10 +14487,11 @@ const useTooltip = props => {
14485
14487
  };
14486
14488
  ;// ./src/components/Tooltip/useTooltipContext.tsx
14487
14489
 
14490
+
14488
14491
  const TooltipContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)(null);
14489
14492
  const useTooltipContext = () => {
14490
14493
  const tooltipContext = (0,external_react_namespaceObject.useContext)(TooltipContext);
14491
- if (tooltipContext == null) {
14494
+ if ((0,utils_namespaceObject.isNill)(tooltipContext)) {
14492
14495
  throw new Error('The component should be wrapped with <Tooltip> to have access to the context');
14493
14496
  }
14494
14497
  return tooltipContext;
@@ -14886,7 +14889,7 @@ const IconButton = ({
14886
14889
 
14887
14890
  const LabelBase = /*#__PURE__*/base_default()("label", true ? {
14888
14891
  target: "e1t1qetj0"
14889
- } : 0)("display:inline-block;flex:1;font-weight:500;font-size:1rem;line-height:22px;color:", ({
14892
+ } : 0)("display:inline-block;flex:1;font-weight:500;font-size:1rem;line-height:18px;color:", ({
14890
14893
  theme,
14891
14894
  isDisabled
14892
14895
  }) => isDisabled ? theme.colors.grey : theme.colors.greyDarker, ";margin:0 0 6px 4px;" + ( true ? "" : 0));
@@ -15121,13 +15124,15 @@ const Checkbox = ({
15121
15124
 
15122
15125
  const FormHelperTextBase = /*#__PURE__*/base_default()("span", true ? {
15123
15126
  target: "ereid9f0"
15124
- } : 0)("display:block;font-weight:400;font-size:0.688rem;margin:6px 0 0 4px;color:", ({
15127
+ } : 0)("display:block;font-weight:400;font-size:0.75rem;margin:6px 0 0 4px;color:", ({
15125
15128
  theme,
15126
- status = 'basic'
15129
+ status = 'basic',
15130
+ isDisabled
15127
15131
  }) => {
15128
- if (status === 'error') return theme.palette.error.main;
15129
- if (status === 'success') return theme.palette.success.main;
15130
- return theme.colors.greyDarker60;
15132
+ if (isDisabled) return theme.colors.grey;
15133
+ if (status === 'error') return theme.palette.error.dark;
15134
+ if (status === 'success') return theme.palette.success.dark;
15135
+ return theme.colors.greyDarker80;
15131
15136
  }, ";" + ( true ? "" : 0));
15132
15137
  ;// ./src/components/FormHelperText/FormHelperText.tsx
15133
15138
 
@@ -15139,10 +15144,10 @@ const FormHelperText = ({
15139
15144
  children,
15140
15145
  ...rest
15141
15146
  }) => {
15142
- status = disabled ? 'basic' : status;
15143
15147
  return (0,jsx_runtime_namespaceObject.jsx)(FormHelperTextBase, {
15144
15148
  role: role,
15145
15149
  status: status,
15150
+ isDisabled: disabled,
15146
15151
  ...rest,
15147
15152
  children: children
15148
15153
  });
@@ -15159,13 +15164,13 @@ const InputBase = /*#__PURE__*/base_default()("input", true ? {
15159
15164
  theme
15160
15165
  }) => showBorders ? `1px solid ${theme.colors.grey}` : 'none', ";color:", ({
15161
15166
  theme
15162
- }) => theme.colors.greyDarker, ";width:100%;height:44px;padding:14px;font-weight:400;font-size:0.875rem;line-height:1rem;&::placeholder{color:", ({
15167
+ }) => theme.colors.greyDarker, ";width:100%;height:44px;padding:14px;font-weight:500;font-size:0.875rem;line-height:18px;&::placeholder{color:", ({
15163
15168
  theme
15164
- }) => theme.colors.greyDarker60, ";}&:disabled{color:", ({
15169
+ }) => theme.colors.greyDarker80, ";}&:disabled{color:", ({
15165
15170
  theme
15166
15171
  }) => `${theme.colors.grey}`, ";background:", ({
15167
15172
  theme
15168
- }) => theme.colors.greyLighter, ";&::placeholder{color:", ({
15173
+ }) => theme.palette.secondary.light, ";&::placeholder{color:", ({
15169
15174
  theme
15170
15175
  }) => theme.colors.grey, ";}&:disabled,&:disabled:hover{border:", ({
15171
15176
  showBorders,
@@ -15190,7 +15195,7 @@ const basic = theme => /*#__PURE__*/(0,react_namespaceObject.css)({
15190
15195
  borderColor: theme.colors.greyDarker80
15191
15196
  },
15192
15197
  '&:focus': {
15193
- borderColor: theme.palette.primary.main
15198
+ borderColor: theme.palette.primary.light
15194
15199
  }
15195
15200
  }
15196
15201
  }, true ? "" : 0, true ? "" : 0);
@@ -15214,9 +15219,6 @@ const success = theme => /*#__PURE__*/(0,react_namespaceObject.css)({
15214
15219
  '&:focus': {
15215
15220
  borderColor: theme.palette.success.dark
15216
15221
  }
15217
- },
15218
- svg: {
15219
- stroke: theme.palette.success.main
15220
15222
  }
15221
15223
  }, true ? "" : 0, true ? "" : 0);
15222
15224
  var styles_ref = true ? {
@@ -15487,7 +15489,7 @@ const Input = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(InputIn
15487
15489
  ;// ./src/components/Textarea/TextareaBase.tsx
15488
15490
 
15489
15491
  const statusToPalette = status => status === 'custom' ? 'basic' : status;
15490
- function getStatusBoxShadow(theme, status, state) {
15492
+ function getStatusBorderColor(theme, status, state) {
15491
15493
  const palette = statusToPalette(status);
15492
15494
  const colorMap = {
15493
15495
  error: {
@@ -15502,41 +15504,40 @@ function getStatusBoxShadow(theme, status, state) {
15502
15504
  },
15503
15505
  default: {
15504
15506
  rest: theme.colors.grey ?? '',
15505
- hover: theme.colors.greyDarker60 ?? theme.colors.grey ?? '',
15506
- focus: theme.palette.primary.main ?? theme.colors.grey ?? ''
15507
+ hover: theme.colors.greyDarker80 ?? theme.colors.grey ?? '',
15508
+ focus: theme.palette.primary.light ?? theme.colors.grey ?? ''
15507
15509
  }
15508
15510
  };
15509
15511
  const colors = colorMap[palette] ?? colorMap.default;
15510
- const color = colors[state];
15511
- return `inset 0 0 1.5px 0 ${color}`;
15512
+ return colors[state];
15512
15513
  }
15513
15514
  const TextareaBase = /*#__PURE__*/base_default()('textarea', true ? {
15514
15515
  shouldForwardProp: prop => prop !== 'status',
15515
15516
  target: "e1jiml3c0"
15516
15517
  } : 0)("flex:1 100%;background:", ({
15517
15518
  theme
15518
- }) => theme.colors.white, ";border-radius:12px;background-origin:border-box;background-clip:padding-box,border-box;border:none;box-shadow:", ({
15519
+ }) => theme.colors.white, ";border-radius:12px;border:", ({
15519
15520
  theme,
15520
15521
  status = 'basic'
15521
- }) => getStatusBoxShadow(theme, status, 'rest'), ";color:", ({
15522
+ }) => `1px solid ${getStatusBorderColor(theme, status, 'rest')}`, ";color:", ({
15522
15523
  theme
15523
- }) => theme.colors.greyDarker, ";width:100%;max-width:100%;max-height:100%;box-sizing:border-box;min-height:114px;padding:14px;font-weight:400;font-size:0.875rem;line-height:1rem;&::placeholder{color:", ({
15524
+ }) => theme.colors.greyDarker, ";width:100%;max-width:100%;max-height:100%;box-sizing:border-box;min-height:114px;padding:14px;font-weight:500;font-size:0.875rem;line-height:18px;&::placeholder{color:", ({
15524
15525
  theme
15525
- }) => theme.colors.greyDarker60, ";}&[readonly]{cursor:default;}&:disabled{color:", ({
15526
+ }) => theme.colors.greyDarker80, ";}&[readonly]{cursor:default;}&:disabled{color:", ({
15526
15527
  theme
15527
- }) => `${theme.colors.grey}`, ";box-shadow:", ({
15528
+ }) => `${theme.colors.grey}`, ";border:", ({
15528
15529
  theme
15529
- }) => `inset 0 0 1.5px 0 ${theme.colors.grey}`, ";background:", ({
15530
+ }) => `1px solid ${theme.colors.grey}`, ";background:", ({
15530
15531
  theme
15531
- }) => theme.colors.greyLighter, ";resize:none;&::placeholder{color:", ({
15532
+ }) => theme.palette.secondary.light, ";resize:none;&::placeholder{color:", ({
15532
15533
  theme
15533
- }) => theme.colors.grey, ";}}&:hover:not(:disabled, [readonly]){box-shadow:", ({
15534
+ }) => theme.colors.grey, ";}}&:hover:not(:disabled, [readonly]){border-color:", ({
15534
15535
  theme,
15535
15536
  status = 'basic'
15536
- }) => getStatusBoxShadow(theme, status, 'hover'), ";}&:focus:not(:disabled, [readonly]){box-shadow:", ({
15537
+ }) => getStatusBorderColor(theme, status, 'hover'), ";}&:focus:not(:disabled, [readonly]){border-color:", ({
15537
15538
  theme,
15538
15539
  status = 'basic'
15539
- }) => getStatusBoxShadow(theme, status, 'focus'), ";}" + ( true ? "" : 0));
15540
+ }) => getStatusBorderColor(theme, status, 'focus'), ";}" + ( true ? "" : 0));
15540
15541
  ;// ./src/components/Textarea/Textarea.tsx
15541
15542
 
15542
15543
 
@@ -15774,6 +15775,7 @@ const TextField = ({
15774
15775
  return (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
15775
15776
  children: [(0,jsx_runtime_namespaceObject.jsx)(Label_Label, {
15776
15777
  htmlFor: `formElement-${name}`,
15778
+ isDisabled: disabled,
15777
15779
  children: label
15778
15780
  }), multirow ? (0,jsx_runtime_namespaceObject.jsx)(Textarea_Textarea, {
15779
15781
  name: name,
@@ -15787,6 +15789,7 @@ const TextField = ({
15787
15789
  status: status,
15788
15790
  disabled: disabled,
15789
15791
  maxLength: maxLength,
15792
+ showStatusIcon: false,
15790
15793
  onKeyUp: handleInputKeyUp,
15791
15794
  ...props
15792
15795
  }), (0,jsx_runtime_namespaceObject.jsxs)("div", {
@@ -16269,6 +16272,7 @@ function NumberField_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
16269
16272
 
16270
16273
 
16271
16274
 
16275
+
16272
16276
  var NumberField_ref = true ? {
16273
16277
  name: "t1bvca",
16274
16278
  styles: "padding:0 14px"
@@ -16293,8 +16297,8 @@ const NumberField = ({
16293
16297
  const {
16294
16298
  disabled
16295
16299
  } = inputProps;
16296
- const formattedValue = value == null ? value : (0,number_format_namespaceObject.format)(value, numberFormat);
16297
- const formattedDefaultValue = defaultValue == null ? defaultValue : (0,number_format_namespaceObject.format)(defaultValue, numberFormat);
16300
+ const formattedValue = (0,utils_namespaceObject.isNill)(value) ? value : (0,number_format_namespaceObject.format)(value, numberFormat);
16301
+ const formattedDefaultValue = (0,utils_namespaceObject.isNill)(defaultValue) ? defaultValue : (0,number_format_namespaceObject.format)(defaultValue, numberFormat);
16298
16302
  const [_value, setValue] = (0,hooks_namespaceObject.useUncontrolled)({
16299
16303
  value: formattedValue,
16300
16304
  defaultValue: formattedDefaultValue,
@@ -16340,17 +16344,31 @@ const NumberField = ({
16340
16344
 
16341
16345
  ;// ./src/components/Switch/SwitchBase.tsx
16342
16346
 
16343
- const SwitchBase = /*#__PURE__*/base_default()("button", true ? {
16347
+ const SwitchBase = /*#__PURE__*/base_default()('button', true ? {
16348
+ shouldForwardProp: prop => prop !== 'onColor' && prop !== 'hoverColor' && prop !== 'offOutlineColor',
16344
16349
  target: "eb0rpfw0"
16345
16350
  } : 0)("width:44px;height:24px;border:0;outline:0;padding:0;border-radius:50px;position:relative;background:", ({
16346
16351
  onColor
16347
16352
  }) => onColor, ";cursor:pointer;&::before{position:absolute;content:'';height:14px;width:14px;right:5px;bottom:calc(50% - 7px);background-color:", ({
16348
16353
  theme
16349
- }) => theme.colors.white, ";transition:0.4s;border-radius:50%;}&[aria-checked='false']{background:", ({
16354
+ }) => theme.colors.white, ";z-index:1;transition:0.4s;border-radius:50%;}&[aria-checked='false']{background:", ({
16350
16355
  theme
16351
- }) => theme.colors.greyFocused, ";}&:disabled{background:", ({
16356
+ }) => theme.colors.greyFocused, ";}&:not(:disabled)[aria-checked='true']:hover{", ({
16357
+ hoverColor
16358
+ }) => hoverColor ? `background: ${hoverColor};` : '', ";}", ({
16359
+ hoverColor
16360
+ }) => !hoverColor ? `
16361
+ &:not(:disabled)[aria-checked='true']:hover::after {
16362
+ content: '';
16363
+ position: absolute;
16364
+ inset: 0;
16365
+ border-radius: 50px;
16366
+ background: rgba(0, 0, 0, 0.15);
16367
+ pointer-events: none;
16368
+ }
16369
+ ` : '', " &:disabled{background:", ({
16352
16370
  theme
16353
- }) => theme.colors.greyFocused40, ";cursor:auto;}&[aria-checked='false']:focus::after,&:not(:disabled)[aria-checked='false']:hover::after{content:'';position:absolute;inset:0;border-style:solid;border-width:1px;border-color:", ({
16371
+ }) => theme.colors.greySelectedMenuItem, ";cursor:auto;}&[aria-checked='false']:focus::after,&:not(:disabled)[aria-checked='false']:hover::after{content:'';position:absolute;inset:0;border-style:solid;border-width:1px;border-color:", ({
16354
16372
  offOutlineColor
16355
16373
  }) => offOutlineColor, ";border-radius:50px;}&[aria-checked='true']::before{transform:translateX(0);}&[aria-checked='false']::before{transform:translateX(-20px);}" + ( true ? "" : 0));
16356
16374
  /* harmony default export */ const Switch_SwitchBase = (SwitchBase);
@@ -16444,8 +16462,10 @@ const SwitchContextProvider = ({
16444
16462
  * Checkbox, and Radio. Pass `color="custom"` together with the `colors`
16445
16463
  * object to supply arbitrary CSS color values.
16446
16464
  *
16447
- * The off state always shows a neutral grey background. The disabled state
16448
- * always uses `greyFocused40`, regardless of color variant.
16465
+ * The off state always shows a neutral grey background (`greyFocused`).
16466
+ * The disabled state always uses `greySelectedMenuItem`, regardless of color variant.
16467
+ * Hovering the on state darkens it: palette variants swap to their `palette.*.dark`
16468
+ * token; custom colors get a `rgba(0,0,0,0.15)` overlay so the knob stays unaffected.
16449
16469
  *
16450
16470
  * @category Form Controls
16451
16471
  * @subcategory Input
@@ -16509,12 +16529,15 @@ const Switch = ({
16509
16529
  toggle
16510
16530
  } = useSwitchContext();
16511
16531
  let onColor;
16532
+ let hoverColor;
16512
16533
  let offOutlineColor;
16513
16534
  if (color === 'primary') {
16514
16535
  onColor = theme.palette.primary.main;
16536
+ hoverColor = theme.palette.primary.dark;
16515
16537
  offOutlineColor = theme.palette.primary.light;
16516
16538
  } else if (color === 'success') {
16517
16539
  onColor = theme.palette.success.main;
16540
+ hoverColor = theme.palette.success.dark;
16518
16541
  offOutlineColor = theme.palette.success.light;
16519
16542
  } else {
16520
16543
  onColor = colors?.on || theme.palette.primary.main;
@@ -16529,6 +16552,7 @@ const Switch = ({
16529
16552
  disabled: isDisabled,
16530
16553
  onClick: () => !isDisabled && toggle(),
16531
16554
  onColor: onColor,
16555
+ hoverColor: hoverColor,
16532
16556
  offOutlineColor: offOutlineColor
16533
16557
  });
16534
16558
  };
@@ -17013,10 +17037,9 @@ const Slider = ({
17013
17037
 
17014
17038
  const RadioBase = /*#__PURE__*/base_default()(Label_Label, true ? {
17015
17039
  target: "efp6u1p0"
17016
- } : 0)("display:inline-flex;flex-grow:0;align-items:center;cursor:pointer;gap:5px;&:has(input:disabled){cursor:default;}svg{flex-shrink:0;}input:focus+svg{filter:drop-shadow(\n ", ({
17017
- theme,
17018
- focusShadowColor
17019
- }) => `-4px 4px 10px ${focusShadowColor || theme.colors.blue20}`, "\n );}input{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;}span{font-size:14px;font-weight:100;}" + ( true ? "" : 0));
17040
+ } : 0)("display:inline-flex;flex-grow:0;align-items:center;cursor:pointer;gap:8px;span{font-size:14px;font-weight:500;}&:has(input:disabled){cursor:default;}&:has(input:disabled) span{color:", ({
17041
+ theme
17042
+ }) => theme.colors.grey, ";}svg{flex-shrink:0;}input{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;}" + ( true ? "" : 0));
17020
17043
  ;// ./src/components/Radio/Radio.tsx
17021
17044
 
17022
17045
 
@@ -17077,7 +17100,6 @@ const RadioBase = /*#__PURE__*/base_default()(Label_Label, true ? {
17077
17100
  * default: '#ff0000',
17078
17101
  * hovered: '#cc0000',
17079
17102
  * disabled: '#cccccc',
17080
- * focusShadow: 'rgba(255,0,0,0.25)',
17081
17103
  * }}
17082
17104
  * onChange={handleChange}
17083
17105
  * />
@@ -17111,27 +17133,22 @@ const Radio = ({
17111
17133
  let defaultColor;
17112
17134
  let hoveredColor;
17113
17135
  let disabledColor;
17114
- let focusShadowColor;
17115
17136
  if (color === 'primary') {
17116
17137
  defaultColor = theme.palette.primary.main;
17117
17138
  hoveredColor = theme.palette.primary.dark;
17118
17139
  disabledColor = theme.colors.greyFocused40;
17119
- focusShadowColor = theme.colors.blue20;
17120
17140
  } else if (color === 'success') {
17121
17141
  defaultColor = theme.palette.success.main;
17122
17142
  hoveredColor = theme.palette.success.dark;
17123
17143
  disabledColor = theme.colors.greyFocused40;
17124
- focusShadowColor = theme.colors.green40;
17125
17144
  } else {
17126
17145
  defaultColor = colors?.default || theme.palette.primary.main;
17127
17146
  hoveredColor = colors?.hovered || theme.palette.primary.dark;
17128
17147
  disabledColor = colors?.disabled || theme.colors.greyFocused40;
17129
- focusShadowColor = colors?.focusShadow;
17130
17148
  }
17131
17149
  return (0,jsx_runtime_namespaceObject.jsxs)(RadioBase, {
17132
17150
  htmlFor: radioId,
17133
17151
  className: className,
17134
- focusShadowColor: focusShadowColor,
17135
17152
  onMouseEnter: () => setIsHovered(true),
17136
17153
  onMouseLeave: () => setIsHovered(false),
17137
17154
  children: [(0,jsx_runtime_namespaceObject.jsx)("input", {
@@ -17706,6 +17723,7 @@ function Dropdown_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to s
17706
17723
 
17707
17724
 
17708
17725
 
17726
+
17709
17727
  const DropdownBase = /*#__PURE__*/base_default()("div", true ? {
17710
17728
  target: "eizhqtp1"
17711
17729
  } : 0)( true ? {
@@ -17901,12 +17919,12 @@ const Dropdown = ({
17901
17919
  }), [onChange, activeItem, maxHeight, placement]);
17902
17920
  const value = activeItem ? activeItem.label || activeItem.children || activeItem.value || activeItem || placeholder : placeholder;
17903
17921
  const rawAvatar = activeItem && activeItem.avatar;
17904
- const selectedAvatar = rawAvatar != null ? typeof rawAvatar === 'string' ? (0,jsx_runtime_namespaceObject.jsx)(Avatar_Avatar, {
17922
+ const selectedAvatar = !(0,utils_namespaceObject.isNill)(rawAvatar) ? typeof rawAvatar === 'string' ? (0,jsx_runtime_namespaceObject.jsx)(Avatar_Avatar, {
17905
17923
  size: AvatarSizes.small,
17906
17924
  image: rawAvatar,
17907
17925
  border: avatarBorder
17908
17926
  }) : /*#__PURE__*/external_react_default().isValidElement(rawAvatar) ? rawAvatar : null : null;
17909
- const toggleContent = selectedAvatar != null ? (0,jsx_runtime_namespaceObject.jsxs)(SelectedContent, {
17927
+ const toggleContent = !(0,utils_namespaceObject.isNill)(selectedAvatar) ? (0,jsx_runtime_namespaceObject.jsxs)(SelectedContent, {
17910
17928
  children: [selectedAvatar, (0,jsx_runtime_namespaceObject.jsx)("span", {
17911
17929
  style: {
17912
17930
  minWidth: 0
@@ -18350,6 +18368,7 @@ const MultipleDropdown = /*#__PURE__*/external_react_default().forwardRef(Multip
18350
18368
  ;// ./src/components/Popover/hooks/usePopover.tsx
18351
18369
 
18352
18370
 
18371
+
18353
18372
  /**
18354
18373
  * usePopover - Hook for popover functionality
18355
18374
  *
@@ -18401,7 +18420,7 @@ const usePopover = ({
18401
18420
  });
18402
18421
  const context = data.context;
18403
18422
  const click = (0,external_floating_ui_react_namespaceObject.useClick)(context, {
18404
- enabled: controlledOpen == null && ['click', 'both'].includes(interactionsEnabled),
18423
+ enabled: (0,utils_namespaceObject.isNill)(controlledOpen) && ['click', 'both'].includes(interactionsEnabled),
18405
18424
  keyboardHandlers
18406
18425
  });
18407
18426
  const isControlled = controlledOpen !== undefined;
@@ -18415,7 +18434,7 @@ const usePopover = ({
18415
18434
  });
18416
18435
  const role = (0,external_floating_ui_react_namespaceObject.useRole)(context);
18417
18436
  const hover = (0,external_floating_ui_react_namespaceObject.useHover)(context, {
18418
- enabled: controlledOpen == null && ['hover', 'both'].includes(interactionsEnabled),
18437
+ enabled: (0,utils_namespaceObject.isNill)(controlledOpen) && ['hover', 'both'].includes(interactionsEnabled),
18419
18438
  handleClose: (0,external_floating_ui_react_namespaceObject.safePolygon)()
18420
18439
  });
18421
18440
  const interactionsHooks = [dismiss, role];
@@ -18452,6 +18471,7 @@ const usePopover = ({
18452
18471
  };
18453
18472
  ;// ./src/components/Popover/hooks/usePopoverContext.tsx
18454
18473
 
18474
+
18455
18475
  /**
18456
18476
  * Context for popover components
18457
18477
  *
@@ -18479,7 +18499,7 @@ const PopoverContext = /*#__PURE__*/external_react_namespaceObject.createContext
18479
18499
  */
18480
18500
  const usePopoverContext = () => {
18481
18501
  const context = external_react_namespaceObject.useContext(PopoverContext);
18482
- if (context == null) {
18502
+ if ((0,utils_namespaceObject.isNill)(context)) {
18483
18503
  throw new Error('Popover components must be wrapped in <Popover />');
18484
18504
  }
18485
18505
  return context;
@@ -18826,6 +18846,7 @@ const external_react_hook_form_namespaceObject = require("react-hook-form");
18826
18846
 
18827
18847
 
18828
18848
 
18849
+
18829
18850
  const findExactMatch = (input, options) => {
18830
18851
  const normalizedInput = input.toLowerCase();
18831
18852
  return Object.values(options).find(opt => {
@@ -18927,7 +18948,7 @@ const useTypeahead = ({
18927
18948
  }, [optionsWithKey, selectedItems, allowCustomValues]);
18928
18949
  const inputValue = (0,external_react_namespaceObject.useMemo)(() => {
18929
18950
  if (isMultiple) return rawInput ?? '';
18930
- if (rawInput != null) return rawInput;
18951
+ if (!(0,utils_namespaceObject.isNill)(rawInput)) return rawInput;
18931
18952
  return selectedItems.length === 1 ? optionsWithKey[selectedItems[0]]?.label?.toString() ?? String(selectedItems[0] ?? '') : '';
18932
18953
  }, [isMultiple, rawInput, selectedItems, optionsWithKey]);
18933
18954
  const filteredChildren = (0,external_react_namespaceObject.useMemo)(() => {
@@ -19008,7 +19029,7 @@ const useTypeahead = ({
19008
19029
  shouldClose = true,
19009
19030
  resetInput = true
19010
19031
  }) => {
19011
- if (isDisabled || value == null) return;
19032
+ if (isDisabled || (0,utils_namespaceObject.isNill)(value)) return;
19012
19033
  const alreadySelected = selectedItems.includes(value);
19013
19034
  const updatedSelected = isMultiple ? alreadySelected ? selectedItems.filter(item => item !== value) : [...selectedItems, value] : alreadySelected ? [] : [value];
19014
19035
  const fieldValue = isMultiple ? updatedSelected : updatedSelected[0];
@@ -20270,6 +20291,7 @@ const useDatePickerMask = ({
20270
20291
 
20271
20292
 
20272
20293
 
20294
+
20273
20295
  const CONFIG = {
20274
20296
  [PICKER_TYPE.DAYS]: {
20275
20297
  format: DEFAULT_MASK_FORMAT,
@@ -20299,7 +20321,7 @@ const CONFIG = {
20299
20321
  unit: 'year'
20300
20322
  }
20301
20323
  };
20302
- const getNumberAtIndex = (parts, index, fallback) => index >= 0 && parts[index] != null ? parts[index] : fallback;
20324
+ const getNumberAtIndex = (parts, index, fallback) => index >= 0 && !(0,utils_namespaceObject.isNill)(parts[index]) ? parts[index] : fallback;
20303
20325
  const useDatePicker = ({
20304
20326
  dateMin,
20305
20327
  dateMax,
@@ -48995,12 +49017,7 @@ function NavBarPopover_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried
48995
49017
 
48996
49018
 
48997
49019
 
48998
- var NavBarPopover_ref = true ? {
48999
- name: "eqp0yr",
49000
- styles: "height:auto;padding:0;margin:0;cursor:pointer;background-color:unset;border-radius:0"
49001
- } : 0;
49002
- const CollapsibleNavBarPopover = ({
49003
- triggerIcon,
49020
+ const SubMenuContent = ({
49004
49021
  title,
49005
49022
  content
49006
49023
  }) => {
@@ -49008,42 +49025,29 @@ const CollapsibleNavBarPopover = ({
49008
49025
  const {
49009
49026
  theme: navBarTheme
49010
49027
  } = useCollapsibleNavBarContext();
49011
- const [open, setOpen] = (0,external_react_namespaceObject.useState)(false);
49012
- const onOpenChange = open => {
49013
- setOpen(open);
49014
- };
49015
49028
  const {
49016
- width
49017
- } = (0,hooks_namespaceObject.useWindowSize)();
49018
- (0,external_react_namespaceObject.useEffect)(() => {
49019
- setOpen(false);
49020
- }, [width]);
49021
- return (0,jsx_runtime_namespaceObject.jsxs)(Popover, {
49022
- floatingOptions: {
49023
- onOpenChange,
49024
- open,
49025
- middleware: [(0,external_floating_ui_react_namespaceObject.offset)({
49026
- mainAxis: 37
49027
- })]
49028
- },
49029
- placement: "right-start",
49030
- interactionsEnabled: "both",
49031
- children: [(0,jsx_runtime_namespaceObject.jsx)(PopoverTrigger, {
49032
- variant: "tertiary",
49033
- dataTestId: "collapsible-nav-bar-trigger-button",
49034
- css: NavBarPopover_ref,
49035
- startIcon: triggerIcon
49036
- }), (0,jsx_runtime_namespaceObject.jsxs)(PopoverContent, {
49029
+ placement
49030
+ } = usePopoverContext();
49031
+ // When flip switches alignment to "-end" there's no room below the trigger,
49032
+ // so the list renders above the heading instead of the heading drifting with it.
49033
+ const isFlippedUp = placement.endsWith('-end');
49034
+ return (0,jsx_runtime_namespaceObject.jsx)(PopoverContent, {
49035
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
49036
+ [theme.mediaQueries.xs]: {
49037
+ display: 'none'
49038
+ },
49039
+ [theme.mediaQueries.md]: {
49040
+ display: 'block'
49041
+ },
49042
+ zIndex: 20
49043
+ }, true ? "" : 0, true ? "" : 0),
49044
+ isFocusManagerDisabled: true,
49045
+ children: (0,jsx_runtime_namespaceObject.jsxs)("div", {
49037
49046
  css: /*#__PURE__*/(0,react_namespaceObject.css)({
49038
- [theme.mediaQueries.xs]: {
49039
- display: 'none'
49040
- },
49041
- [theme.mediaQueries.md]: {
49042
- display: 'block'
49043
- },
49044
- zIndex: 20
49047
+ display: 'flex',
49048
+ flexDirection: isFlippedUp ? 'column-reverse' : 'column',
49049
+ gap: 1
49045
49050
  }, true ? "" : 0, true ? "" : 0),
49046
- isFocusManagerDisabled: true,
49047
49051
  children: [(0,jsx_runtime_namespaceObject.jsx)(PopoverHeading, {
49048
49052
  css: /*#__PURE__*/(0,react_namespaceObject.css)({
49049
49053
  color: navBarTheme === 'default' ? theme.colors.white : theme.colors.greyGraphite,
@@ -49052,7 +49056,6 @@ const CollapsibleNavBarPopover = ({
49052
49056
  background: navBarTheme === 'default' ? theme.colors.greyGraphite : '#F4F5F9',
49053
49057
  borderRadius: 5,
49054
49058
  cursor: 'default',
49055
- marginBottom: 1,
49056
49059
  width: 'auto',
49057
49060
  whiteSpace: 'nowrap',
49058
49061
  '&::before': {
@@ -49063,7 +49066,11 @@ const CollapsibleNavBarPopover = ({
49063
49066
  position: 'absolute',
49064
49067
  width: 9,
49065
49068
  height: 9,
49066
- top: 7,
49069
+ ...(isFlippedUp ? {
49070
+ bottom: 7
49071
+ } : {
49072
+ top: 7
49073
+ }),
49067
49074
  left: -4,
49068
49075
  transform: 'rotate(45deg)',
49069
49076
  zIndex: -1
@@ -49097,6 +49104,49 @@ const CollapsibleNavBarPopover = ({
49097
49104
  }, true ? "" : 0, true ? "" : 0),
49098
49105
  children: content
49099
49106
  })]
49107
+ })
49108
+ });
49109
+ };
49110
+ var NavBarPopover_ref = true ? {
49111
+ name: "eqp0yr",
49112
+ styles: "height:auto;padding:0;margin:0;cursor:pointer;background-color:unset;border-radius:0"
49113
+ } : 0;
49114
+ const CollapsibleNavBarPopover = ({
49115
+ triggerIcon,
49116
+ title,
49117
+ content
49118
+ }) => {
49119
+ const [open, setOpen] = (0,external_react_namespaceObject.useState)(false);
49120
+ const onOpenChange = open => {
49121
+ setOpen(open);
49122
+ };
49123
+ const {
49124
+ width
49125
+ } = (0,hooks_namespaceObject.useWindowSize)();
49126
+ (0,external_react_namespaceObject.useEffect)(() => {
49127
+ setOpen(false);
49128
+ }, [width]);
49129
+ return (0,jsx_runtime_namespaceObject.jsxs)(Popover, {
49130
+ floatingOptions: {
49131
+ onOpenChange,
49132
+ open,
49133
+ middleware: [(0,external_floating_ui_react_namespaceObject.offset)({
49134
+ mainAxis: 37
49135
+ }), (0,external_floating_ui_react_namespaceObject.flip)({
49136
+ crossAxis: true,
49137
+ padding: 5
49138
+ })]
49139
+ },
49140
+ placement: "right-start",
49141
+ interactionsEnabled: "both",
49142
+ children: [(0,jsx_runtime_namespaceObject.jsx)(PopoverTrigger, {
49143
+ variant: "tertiary",
49144
+ dataTestId: "collapsible-nav-bar-trigger-button",
49145
+ css: NavBarPopover_ref,
49146
+ startIcon: triggerIcon
49147
+ }), (0,jsx_runtime_namespaceObject.jsx)(SubMenuContent, {
49148
+ title: title,
49149
+ content: content
49100
49150
  })]
49101
49151
  });
49102
49152
  };
@@ -49981,22 +50031,86 @@ const History = ({
49981
50031
  function Pagination_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
49982
50032
 
49983
50033
 
49984
- const baseBtnStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)("height:30px;border-radius:6px;", theme.mediaQueries.md, "{height:25px;}&:disabled{cursor:default;}" + ( true ? "" : 0), true ? "" : 0);
49985
- const pageBtnStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)(baseBtnStyles(theme), " background:unset;box-shadow:unset;color:", theme.colors.greyDarker, ";padding:0 11px;", theme.mediaQueries.md, "{padding:0 9px;}&:disabled{background:unset;box-shadow:unset;}&:not(:disabled):hover,&:not(:disabled):active,&:not(:disabled):focus{background:", theme.colors.greyLighter, ";box-shadow:unset;}" + ( true ? "" : 0), true ? "" : 0);
49986
- const selectedBtnBg = theme => /*#__PURE__*/(0,react_namespaceObject.css)("background:", theme.palette.primary.main, ";&:disabled{background:", theme.palette.primary.main, ";}" + ( true ? "" : 0), true ? "" : 0);
49987
- const selectedPageBtnStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)(baseBtnStyles(theme), " ", selectedBtnBg(theme), " color:", theme.colors.white, ";margin:0 3px;padding:0 13px;", theme.mediaQueries.md, "{padding:0 10px;}&:hover,&:active,&:focus{", selectedBtnBg(theme), ";}&:not(:disabled):hover{box-shadow:0 5px 5px -1px rgba(0, 0, 0, 0.3);cursor:default;}" + ( true ? "" : 0), true ? "" : 0);
49988
- const arrowBtnStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)(baseBtnStyles(theme), " padding:0 8px;background:", theme.colors.white, ";&:disabled{background:unset;}&:not(:disabled):hover{box-shadow:0 5px 5px -2px rgba(0, 0, 0, 0.2);cursor:pointer;}" + ( true ? "" : 0), true ? "" : 0);
50034
+ /** Square 26x26 cell shared by page/selected/arrow buttons (design "Number" atom). */
50035
+ const baseBtnStyles = {
50036
+ width: 26,
50037
+ height: 26,
50038
+ padding: 0,
50039
+ borderRadius: 6,
50040
+ justifyContent: 'center',
50041
+ fontSize: 14,
50042
+ fontWeight: 500,
50043
+ letterSpacing: 0,
50044
+ lineHeight: '18px'
50045
+ };
50046
+
50047
+ /** Shared by every `&:disabled` block below so it survives merging into one object. */
50048
+ const disabledCursor = {
50049
+ cursor: 'default'
50050
+ };
50051
+ const pageBtnStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)({
50052
+ ...baseBtnStyles,
50053
+ background: 'transparent',
50054
+ boxShadow: 'unset',
50055
+ color: theme.colors.greyDarker,
50056
+ '&:disabled': {
50057
+ ...disabledCursor,
50058
+ background: theme.palette.secondary.main,
50059
+ color: theme.colors.grey,
50060
+ boxShadow: 'unset'
50061
+ },
50062
+ '&:not(:disabled):hover, &:not(:disabled):active, &:not(:disabled):focus': {
50063
+ background: theme.palette.secondary.light,
50064
+ boxShadow: 'unset'
50065
+ }
50066
+ }, true ? "" : 0, true ? "" : 0);
50067
+ const selectedPageBtnStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)({
50068
+ ...baseBtnStyles,
50069
+ background: theme.palette.primary.main,
50070
+ color: theme.colors.white,
50071
+ '&:disabled': {
50072
+ ...disabledCursor,
50073
+ background: theme.palette.primary.main
50074
+ },
50075
+ '&:hover, &:active, &:focus': {
50076
+ background: theme.palette.primary.dark
50077
+ },
50078
+ '&:not(:disabled):hover': {
50079
+ cursor: 'default'
50080
+ }
50081
+ }, true ? "" : 0, true ? "" : 0);
50082
+ const arrowBtnStyles = /*#__PURE__*/(0,react_namespaceObject.css)({
50083
+ ...baseBtnStyles,
50084
+ background: 'transparent',
50085
+ '&:disabled': {
50086
+ ...disabledCursor,
50087
+ background: 'transparent'
50088
+ },
50089
+ '&:not(:disabled):hover': {
50090
+ cursor: 'pointer'
50091
+ }
50092
+ }, true ? "" : 0, true ? "" : 0);
50093
+
50094
+ /** Ellipsis ("...") cell rendered between page-number breaks; sized to match a Number cell. */
50095
+ const breakStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)({
50096
+ ...baseBtnStyles,
50097
+ display: 'inline-flex',
50098
+ alignItems: 'center',
50099
+ background: 'transparent',
50100
+ color: theme.colors.greyDarker,
50101
+ cursor: 'default'
50102
+ }, true ? "" : 0, true ? "" : 0);
49989
50103
  const PaginationNav = /*#__PURE__*/base_default()("nav", true ? {
49990
50104
  target: "e93vg8b1"
49991
50105
  } : 0)( true ? {
49992
- name: "zjik7",
49993
- styles: "display:flex"
50106
+ name: "1l7f8hp",
50107
+ styles: "display:flex;align-items:center;gap:38px"
49994
50108
  } : 0);
49995
50109
  const PageNumberInput = /*#__PURE__*/base_default()(Input_Input, true ? {
49996
50110
  target: "e93vg8b0"
49997
50111
  } : 0)( true ? {
49998
- name: "1ubbv3z",
49999
- styles: "width:65px;-moz-appearance:textfield;appearance:textfield;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&:focus,&:hover{border-width:1px!important;}&+div{right:24px;}"
50112
+ name: "96v664",
50113
+ styles: "width:80px;-moz-appearance:textfield;appearance:textfield;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&:focus,&:hover{border-width:1px!important;}&+div{right:24px;}"
50000
50114
  } : 0);
50001
50115
  ;// ./src/components/Pagination/ArrowButton.tsx
50002
50116
 
@@ -50047,15 +50161,15 @@ const ArrowButton = ({
50047
50161
  return (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
50048
50162
  startIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
50049
50163
  name: `carrot-${direction}`,
50050
- size: 12,
50051
- color: theme.colors.greyDisabled
50164
+ size: 18,
50165
+ color: theme.colors.greyDarker80
50052
50166
  }),
50053
50167
  variant: "tertiary",
50054
50168
  onClick: onClick,
50055
50169
  isDisabled: isDisabled,
50056
50170
  size: "small",
50057
50171
  className: className,
50058
- css: arrowBtnStyles(theme),
50172
+ css: arrowBtnStyles,
50059
50173
  "aria-label": `Go to ${direction === 'left' ? 'previous' : 'next'} page`
50060
50174
  });
50061
50175
  };
@@ -50066,10 +50180,6 @@ function PaginationButtons_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have t
50066
50180
 
50067
50181
 
50068
50182
 
50069
- var PaginationButtons_ref = true ? {
50070
- name: "1ll9bqd",
50071
- styles: "cursor:default"
50072
- } : 0;
50073
50183
  /**
50074
50184
  * Break - Ellipsis separator for page number ranges
50075
50185
  *
@@ -50079,7 +50189,7 @@ var PaginationButtons_ref = true ? {
50079
50189
  * @internal
50080
50190
  */
50081
50191
  const Break = () => (0,jsx_runtime_namespaceObject.jsx)("span", {
50082
- css: PaginationButtons_ref,
50192
+ css: breakStyles,
50083
50193
  children: "..."
50084
50194
  });
50085
50195
 
@@ -50151,19 +50261,26 @@ const PageButton = ({
50151
50261
  * - Screen reader friendly
50152
50262
  * - Proper focus management
50153
50263
  */
50264
+ var PaginationButtons_ref = true ? {
50265
+ name: "1lcc3va",
50266
+ styles: "display:flex;align-items:center;gap:0"
50267
+ } : 0;
50154
50268
  const PaginationButtons = ({
50155
50269
  range,
50156
50270
  selectedPage,
50157
50271
  onClick,
50158
50272
  isDisabled
50159
50273
  }) => {
50160
- return Array.isArray(range) && range.map((page, index) => {
50161
- return page === -1 ? (0,jsx_runtime_namespaceObject.jsx)(Break, {}, index) : (0,jsx_runtime_namespaceObject.jsx)(PageButton, {
50162
- page: page,
50163
- isSelected: page === selectedPage,
50164
- onClick: () => onClick(page),
50165
- isDisabled: isDisabled
50166
- }, index);
50274
+ return (0,jsx_runtime_namespaceObject.jsx)("div", {
50275
+ css: PaginationButtons_ref,
50276
+ children: Array.isArray(range) && range.map((page, index) => {
50277
+ return page === -1 ? (0,jsx_runtime_namespaceObject.jsx)(Break, {}, index) : (0,jsx_runtime_namespaceObject.jsx)(PageButton, {
50278
+ page: page,
50279
+ isSelected: page === selectedPage,
50280
+ onClick: () => onClick(page),
50281
+ isDisabled: isDisabled
50282
+ }, index);
50283
+ })
50167
50284
  });
50168
50285
  };
50169
50286
  ;// ./src/components/Pagination/constants.ts
@@ -50236,7 +50353,6 @@ const PaginationContextProvider = ({
50236
50353
  });
50237
50354
  };
50238
50355
  ;// ./src/components/Pagination/components/RowsPerPageDropdown/RowsPerPageDropdown.tsx
50239
- function RowsPerPageDropdown_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
50240
50356
 
50241
50357
 
50242
50358
 
@@ -50287,14 +50403,6 @@ function RowsPerPageDropdown_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have
50287
50403
  * - Screen reader friendly
50288
50404
  */
50289
50405
 
50290
- var RowsPerPageDropdown_ref = true ? {
50291
- name: "cx840d",
50292
- styles: "width:auto;ul{width:auto;}"
50293
- } : 0;
50294
- var RowsPerPageDropdown_ref2 = true ? {
50295
- name: "1nkb47o",
50296
- styles: "font-size:14px;line-height:1;text-wrap:nowrap"
50297
- } : 0;
50298
50406
  const RowsPerPageDropdown = ({
50299
50407
  selectedItem = DEFAULT_PER_PAGE_VALUE,
50300
50408
  rowsPerPageList = ROWS_PER_PAGE_LIST,
@@ -50315,10 +50423,28 @@ const RowsPerPageDropdown = ({
50315
50423
  setPerPage(value);
50316
50424
  };
50317
50425
  return (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
50318
- css: RowsPerPageDropdown_ref,
50426
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
50427
+ width: 'auto',
50428
+ gap: 8,
50429
+ ul: {
50430
+ width: 'auto'
50431
+ },
50432
+ li: {
50433
+ height: 40,
50434
+ padding: '8px 12px'
50435
+ },
50436
+ 'li[aria-selected="true"]': {
50437
+ background: theme.colors.blue12
50438
+ }
50439
+ }, true ? "" : 0, true ? "" : 0),
50319
50440
  children: [(0,jsx_runtime_namespaceObject.jsxs)(Typography_Typography, {
50320
50441
  variant: "subtitle",
50321
- css: RowsPerPageDropdown_ref2,
50442
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
50443
+ fontSize: 14,
50444
+ lineHeight: 1,
50445
+ textWrap: 'nowrap',
50446
+ color: theme.colors.greyDarker
50447
+ }, true ? "" : 0, true ? "" : 0),
50322
50448
  children: [rowsPerPageText, ":"]
50323
50449
  }), (0,jsx_runtime_namespaceObject.jsx)(Dropdown_Dropdown, {
50324
50450
  selectedItem: selectedItemForDropdown,
@@ -50326,13 +50452,11 @@ const RowsPerPageDropdown = ({
50326
50452
  dropdownProps: {
50327
50453
  toggleButton: {
50328
50454
  css: {
50329
- marginLeft: 5,
50330
- marginRight: 15,
50331
50455
  border: 'none',
50332
50456
  background: 'transparent',
50333
50457
  borderRadius: 6,
50334
50458
  color: theme.colors.greyDarker,
50335
- gap: 5,
50459
+ gap: 4,
50336
50460
  padding: 3,
50337
50461
  '&:focus': {
50338
50462
  color: theme.colors.greyDarker,
@@ -50369,6 +50493,7 @@ function Pagination_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to
50369
50493
 
50370
50494
 
50371
50495
 
50496
+
50372
50497
  /**
50373
50498
  * Pagination - Navigation controls for paginated data
50374
50499
  *
@@ -50452,16 +50577,12 @@ function Pagination_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to
50452
50577
  */
50453
50578
 
50454
50579
  var Pagination_ref = true ? {
50455
- name: "13slo1u",
50456
- styles: "width:auto;margin-right:5px"
50580
+ name: "5rxe0u",
50581
+ styles: "width:auto;gap:16px"
50457
50582
  } : 0;
50458
50583
  var Pagination_ref2 = true ? {
50459
- name: "1j97xhc",
50460
- styles: "margin-right:12px"
50461
- } : 0;
50462
- var Pagination_ref3 = true ? {
50463
- name: "lrb7um",
50464
- styles: "margin-left:7px"
50584
+ name: "5rxe0u",
50585
+ styles: "width:auto;gap:16px"
50465
50586
  } : 0;
50466
50587
  const Pagination = ({
50467
50588
  pagesCount,
@@ -50475,7 +50596,8 @@ const Pagination = ({
50475
50596
  isPageFromCountVisible = true,
50476
50597
  isRowPerPageVisible = false,
50477
50598
  rowPerPageProps,
50478
- manualPageNumberProps
50599
+ manualPageNumberProps,
50600
+ renderPageCount
50479
50601
  }) => {
50480
50602
  const theme = (0,react_namespaceObject.useTheme)();
50481
50603
  const {
@@ -50520,16 +50642,16 @@ const Pagination = ({
50520
50642
  autoComplete: 'off'
50521
50643
  },
50522
50644
  ...manualPageNumberProps
50523
- }), isPageFromCountVisible && (0,jsx_runtime_namespaceObject.jsxs)("span", {
50645
+ }), isPageFromCountVisible && (renderPageCount ? renderPageCount(page || 0, pagesCount) : (0,jsx_runtime_namespaceObject.jsxs)("span", {
50524
50646
  css: /*#__PURE__*/(0,react_namespaceObject.css)({
50525
50647
  textWrap: 'nowrap',
50526
50648
  fontSize: 14,
50527
- marginLeft: 16,
50528
50649
  color: theme.colors.greyDarker
50529
50650
  }, true ? "" : 0, true ? "" : 0),
50530
50651
  children: [page || 0, " / ", pagesCount]
50531
- })]
50652
+ }))]
50532
50653
  }), (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
50654
+ css: Pagination_ref2,
50533
50655
  children: [(0,jsx_runtime_namespaceObject.jsx)(ArrowButton, {
50534
50656
  direction: "left",
50535
50657
  onClick: () => {
@@ -50537,8 +50659,7 @@ const Pagination = ({
50537
50659
  setPage(page - 1);
50538
50660
  }
50539
50661
  },
50540
- isDisabled: isDisabled || pagesCount == null || pagesCount <= 1 || page == null || page === 1,
50541
- css: Pagination_ref2
50662
+ isDisabled: isDisabled || (0,utils_namespaceObject.isNill)(pagesCount) || pagesCount <= 1 || (0,utils_namespaceObject.isNill)(page) || page === 1
50542
50663
  }), (0,jsx_runtime_namespaceObject.jsx)(PaginationButtons, {
50543
50664
  range: range,
50544
50665
  selectedPage: page,
@@ -50551,8 +50672,7 @@ const Pagination = ({
50551
50672
  setPage(page + 1);
50552
50673
  }
50553
50674
  },
50554
- isDisabled: isDisabled || pagesCount == null || pagesCount <= 1 || page == null || page === pagesCount,
50555
- css: Pagination_ref3
50675
+ isDisabled: isDisabled || (0,utils_namespaceObject.isNill)(pagesCount) || pagesCount <= 1 || (0,utils_namespaceObject.isNill)(page) || page === pagesCount
50556
50676
  })]
50557
50677
  })]
50558
50678
  });
@@ -53161,6 +53281,7 @@ const Notification_styles_actionBtnStyles = textColor => /*#__PURE__*/(0,react_n
53161
53281
 
53162
53282
 
53163
53283
 
53284
+
53164
53285
  const NotificationItem = ({
53165
53286
  id,
53166
53287
  variant,
@@ -53231,7 +53352,7 @@ const NotificationItem = ({
53231
53352
  name: icon,
53232
53353
  color: resolvedIconColor,
53233
53354
  size: iconSize
53234
- }) : icon != null ? icon : (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
53355
+ }) : !(0,utils_namespaceObject.isNill)(icon) ? icon : (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
53235
53356
  name: "user",
53236
53357
  color: resolvedIconColor,
53237
53358
  size: iconSize