@uniformdev/design-system 19.115.1-alpha.7 → 19.116.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/esm/index.js CHANGED
@@ -20301,12 +20301,6 @@ var SearchAndFilterControlsWrapper = css92`
20301
20301
  grid-template-columns: auto 1fr 1fr;
20302
20302
  gap: var(--spacing-base);
20303
20303
  `;
20304
- var SearchAndFilterOutterControlWrapper = css92`
20305
- align-items: stretch;
20306
- display: grid;
20307
- grid-template-columns: 1fr auto;
20308
- gap: var(--spacing-sm);
20309
- `;
20310
20304
  var ConditionalFilterRow = css92`
20311
20305
  display: grid;
20312
20306
  grid-template-columns: 35px 1fr;
@@ -20526,20 +20520,13 @@ var SearchAndFilterContext = createContext6({
20526
20520
  var SearchAndFilterProvider = ({
20527
20521
  filters,
20528
20522
  filterOptions,
20529
- onSearchChange,
20530
20523
  onChange,
20531
20524
  children
20532
20525
  }) => {
20533
20526
  const [searchTerm, setSearchTerm] = useState16("");
20534
20527
  const deferredSearchTerm = useDeferredValue2(searchTerm);
20535
20528
  const [filterVisibility, setFilterVisibility] = useState16(false);
20536
- const handleSearchTerm = useCallback10(
20537
- (term) => {
20538
- setSearchTerm(term);
20539
- onSearchChange(term);
20540
- },
20541
- [setSearchTerm, onSearchChange]
20542
- );
20529
+ const handleSearchTerm = useCallback10((term) => setSearchTerm(term), [setSearchTerm]);
20543
20530
  const handleToggleFilterVisibilty = useCallback10(
20544
20531
  (visible) => setFilterVisibility(visible),
20545
20532
  [setFilterVisibility]
@@ -20604,7 +20591,7 @@ var useSearchAndFilter = () => {
20604
20591
  // src/components/SearchAndFilter/FilterControls.tsx
20605
20592
  import { Fragment as Fragment19, jsx as jsx119, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
20606
20593
  var FilterControls = ({ children }) => {
20607
- const { setFilterVisibility, filterVisibility, setSearchTerm, validFilterQuery, searchTerm } = useSearchAndFilter();
20594
+ const { setFilterVisibility, filterVisibility, setSearchTerm, validFilterQuery } = useSearchAndFilter();
20608
20595
  return /* @__PURE__ */ jsxs80(Fragment19, { children: [
20609
20596
  /* @__PURE__ */ jsx119(
20610
20597
  FilterButton2,
@@ -20618,11 +20605,11 @@ var FilterControls = ({ children }) => {
20618
20605
  }
20619
20606
  ),
20620
20607
  /* @__PURE__ */ jsx119(
20621
- DebouncedInputKeywordSearch,
20608
+ InputKeywordSearch,
20622
20609
  {
20610
+ type: "search",
20623
20611
  placeholder: "Search...",
20624
20612
  onSearchTextChanged: (e) => setSearchTerm(e),
20625
- defaultValue: searchTerm,
20626
20613
  compact: true,
20627
20614
  rounded: true
20628
20615
  }
@@ -20631,12 +20618,9 @@ var FilterControls = ({ children }) => {
20631
20618
  ] });
20632
20619
  };
20633
20620
 
20634
- // src/components/SearchAndFilter/FilterItem.tsx
20635
- import { useMemo as useMemo7 } from "react";
20636
-
20637
20621
  // src/components/SearchAndFilter/FilterEditor.tsx
20622
+ import { css as css94 } from "@emotion/react";
20638
20623
  import { useEffect as useEffect18, useState as useState17 } from "react";
20639
- import { useDebounce as useDebounce2 } from "react-use";
20640
20624
 
20641
20625
  // src/components/Validation/StatusBullet.styles.ts
20642
20626
  import { css as css93 } from "@emotion/react";
@@ -20749,7 +20733,6 @@ import { Fragment as Fragment20, jsx as jsx121, jsxs as jsxs81 } from "@emotion/
20749
20733
  var FilterMultiChoiceEditor = ({
20750
20734
  value,
20751
20735
  options,
20752
- isDisabled,
20753
20736
  ...props
20754
20737
  }) => {
20755
20738
  return /* @__PURE__ */ jsx121(
@@ -20759,32 +20742,28 @@ var FilterMultiChoiceEditor = ({
20759
20742
  options,
20760
20743
  isMulti: true,
20761
20744
  isClearable: true,
20762
- isDisabled,
20763
20745
  onChange: (e) => {
20764
20746
  var _a;
20765
20747
  return props.onChange((_a = e.map((item) => item.value)) != null ? _a : []);
20766
- },
20767
- value
20748
+ }
20768
20749
  }
20769
20750
  );
20770
20751
  };
20771
20752
  var FilterSingleChoiceEditor = ({
20772
20753
  options,
20773
20754
  value,
20774
- isDisabled,
20775
- onChange
20755
+ ...props
20776
20756
  }) => {
20777
20757
  return /* @__PURE__ */ jsx121(
20778
20758
  InputComboBox,
20779
20759
  {
20780
20760
  options,
20781
20761
  isClearable: true,
20762
+ ...props,
20782
20763
  onChange: (e) => {
20783
20764
  var _a;
20784
- return onChange((_a = e == null ? void 0 : e.value) != null ? _a : "");
20785
- },
20786
- isDisabled,
20787
- value
20765
+ return props.onChange((_a = e == null ? void 0 : e.value) != null ? _a : "");
20766
+ }
20788
20767
  }
20789
20768
  );
20790
20769
  };
@@ -20794,58 +20773,52 @@ var CustomOptions = ({ label, value }) => {
20794
20773
  var StatusMultiEditor = ({
20795
20774
  options,
20796
20775
  value,
20797
- isDisabled,
20798
- onChange
20776
+ ...props
20799
20777
  }) => {
20800
20778
  return /* @__PURE__ */ jsx121(
20801
20779
  InputComboBox,
20802
20780
  {
20803
20781
  options,
20804
20782
  isMulti: true,
20783
+ ...props,
20805
20784
  onChange: (e) => {
20806
20785
  var _a;
20807
- return onChange((_a = e.map((item) => item.value)) != null ? _a : []);
20786
+ return props.onChange((_a = e.map((item) => item.value)) != null ? _a : []);
20808
20787
  },
20809
- formatOptionLabel: CustomOptions,
20810
- value,
20811
- isDisabled
20788
+ formatOptionLabel: CustomOptions
20812
20789
  }
20813
20790
  );
20814
20791
  };
20815
20792
  var StatusSingleEditor = ({
20816
20793
  options,
20817
20794
  value,
20818
- isDisabled,
20819
- onChange
20795
+ ...props
20820
20796
  }) => {
20821
20797
  return /* @__PURE__ */ jsx121(
20822
20798
  InputComboBox,
20823
20799
  {
20824
20800
  options,
20801
+ ...props,
20825
20802
  onChange: (e) => {
20826
20803
  var _a;
20827
- return onChange((_a = e == null ? void 0 : e.value) != null ? _a : "");
20804
+ return props.onChange((_a = e == null ? void 0 : e.value) != null ? _a : "");
20828
20805
  },
20829
- formatOptionLabel: CustomOptions,
20830
- value,
20831
- isDisabled
20806
+ formatOptionLabel: CustomOptions
20832
20807
  }
20833
20808
  );
20834
20809
  };
20835
- var TextEditor = ({ onChange, ariaLabel, value }) => {
20836
- useDebounce2(() => onChange, 500, [value]);
20810
+ var TextEditor = ({ onChange, ariaLabel }) => {
20837
20811
  return /* @__PURE__ */ jsx121(
20838
20812
  Input,
20839
20813
  {
20840
20814
  showLabel: false,
20841
- label: ariaLabel,
20815
+ "aria-label": ariaLabel,
20842
20816
  onChange: (e) => onChange(e.currentTarget.value),
20843
- placeholder: "Enter phrase to search\u2026",
20844
- value
20817
+ placeholder: "Enter phrase to search\u2026"
20845
20818
  }
20846
20819
  );
20847
20820
  };
20848
- var NumberRangeEditor = ({ onChange, disabled: disabled2, ariaLabel, value }) => {
20821
+ var NumberRangeEditor = ({ onChange, ...props }) => {
20849
20822
  const [minValue, setMinValue] = useState17("");
20850
20823
  const [maxValue, setMaxValue] = useState17("");
20851
20824
  const [error, setError] = useState17("");
@@ -20872,64 +20845,48 @@ var NumberRangeEditor = ({ onChange, disabled: disabled2, ariaLabel, value }) =>
20872
20845
  /* @__PURE__ */ jsx121(
20873
20846
  Input,
20874
20847
  {
20875
- label: `${ariaLabel}-min`,
20848
+ ...props,
20876
20849
  type: "number",
20877
20850
  showLabel: false,
20878
20851
  min: 0,
20879
20852
  placeholder: "Low",
20880
20853
  onChange: (e) => setMinValue(e.currentTarget.value),
20881
- "aria-invalid": !error ? false : true,
20882
- disabled: disabled2,
20883
- value: value ? value[0] : ""
20854
+ "aria-invalid": !error ? false : true
20884
20855
  }
20885
20856
  ),
20886
20857
  /* @__PURE__ */ jsx121(
20887
20858
  Input,
20888
20859
  {
20860
+ ...props,
20889
20861
  type: "number",
20890
- label: `${ariaLabel}-max`,
20891
20862
  showLabel: false,
20892
20863
  min: 0,
20893
20864
  placeholder: "High",
20894
20865
  onChange: (e) => setMaxValue(e.currentTarget.value),
20895
- "aria-invalid": !error ? false : true,
20896
- disabled: disabled2,
20897
- value: value ? value[1] : ""
20866
+ "aria-invalid": !error ? false : true
20898
20867
  }
20899
20868
  ),
20900
20869
  /* @__PURE__ */ jsx121(ErrorContainer, { errorMessage: error })
20901
20870
  ] });
20902
20871
  };
20903
- var NumberEditor = ({ ariaLabel, onChange, disabled: disabled2, value }) => {
20872
+ var NumberEditor = ({ ariaLabel, onChange }) => {
20904
20873
  return /* @__PURE__ */ jsx121(
20905
20874
  Input,
20906
20875
  {
20907
- label: ariaLabel,
20876
+ "aria-label": ariaLabel,
20908
20877
  type: "number",
20909
20878
  showLabel: false,
20910
20879
  min: 0,
20911
- onChange: (e) => onChange(e.currentTarget.value),
20912
- disabled: disabled2,
20913
- value
20880
+ onChange: (e) => onChange(e.currentTarget.value)
20914
20881
  }
20915
20882
  );
20916
20883
  };
20917
- var DateEditor = ({ onChange, ariaLabel, disabled: disabled2, value }) => {
20918
- return /* @__PURE__ */ jsx121(
20919
- Input,
20920
- {
20921
- type: "date",
20922
- label: ariaLabel,
20923
- showLabel: false,
20924
- onChange: (e) => onChange(e.currentTarget.value),
20925
- disabled: disabled2,
20926
- value
20927
- }
20928
- );
20884
+ var DateEditor = ({ onChange, ...props }) => {
20885
+ return /* @__PURE__ */ jsx121(Input, { type: "date", ...props, showLabel: false, onChange: (e) => onChange(e.currentTarget.value) });
20929
20886
  };
20930
- var DateRangeEditor = ({ ariaLabel, onChange, disabled: disabled2, value }) => {
20931
- const [minDateValue, setMinDateValue] = useState17(value ? value[0] : "");
20932
- const [maxDateValue, setMaxDateValue] = useState17(value ? value[1] : "");
20887
+ var DateRangeEditor = ({ ariaLabel, onChange }) => {
20888
+ const [minDateValue, setMinDateValue] = useState17("");
20889
+ const [maxDateValue, setMaxDateValue] = useState17("");
20933
20890
  const [error, setError] = useState17("");
20934
20891
  useEffect18(() => {
20935
20892
  if (!minDateValue || !maxDateValue) {
@@ -20966,25 +20923,23 @@ var DateRangeEditor = ({ ariaLabel, onChange, disabled: disabled2, value }) => {
20966
20923
  /* @__PURE__ */ jsx121(
20967
20924
  Input,
20968
20925
  {
20969
- label: `${ariaLabel}-min-date`,
20926
+ "aria-label": `${ariaLabel}-min-date`,
20970
20927
  type: "date",
20971
20928
  showLabel: false,
20972
20929
  value: minDateValue,
20973
20930
  onChange: (e) => setMinDateValue(e.currentTarget.value),
20974
- "aria-invalid": !error ? false : true,
20975
- disabled: disabled2
20931
+ "aria-invalid": !error ? false : true
20976
20932
  }
20977
20933
  ),
20978
20934
  /* @__PURE__ */ jsx121(
20979
20935
  Input,
20980
20936
  {
20981
- label: `${ariaLabel}-max-date`,
20937
+ "aria-label": `${ariaLabel}-max-date`,
20982
20938
  type: "date",
20983
20939
  showLabel: false,
20984
20940
  value: maxDateValue,
20985
20941
  onChange: (e) => setMaxDateValue(e.currentTarget.value),
20986
- "aria-invalid": !error ? false : true,
20987
- disabled: disabled2
20942
+ "aria-invalid": !error ? false : true
20988
20943
  }
20989
20944
  ),
20990
20945
  /* @__PURE__ */ jsx121(ErrorContainer, { errorMessage: error })
@@ -20998,7 +20953,7 @@ var FilterEditorRenderer = ({ editorType, ...props }) => {
20998
20953
  if (editorType === "empty") {
20999
20954
  return null;
21000
20955
  }
21001
- return /* @__PURE__ */ jsx121(Editor, { ...props, disabled: props.isDisabled });
20956
+ return /* @__PURE__ */ jsx121(Editor, { ...props });
21002
20957
  };
21003
20958
  var filterMapper = {
21004
20959
  multiChoice: FilterMultiChoiceEditor,
@@ -21016,10 +20971,10 @@ var ErrorContainer = ({ errorMessage }) => {
21016
20971
  return /* @__PURE__ */ jsx121(
21017
20972
  "div",
21018
20973
  {
21019
- css: {
21020
- gridColumn: "span 6",
21021
- order: 6
21022
- },
20974
+ css: css94`
20975
+ grid-column: span 6;
20976
+ order: 6;
20977
+ `,
21023
20978
  children: /* @__PURE__ */ jsx121(FieldMessage, { errorMessage })
21024
20979
  }
21025
20980
  );
@@ -21114,35 +21069,11 @@ var FilterItem = ({
21114
21069
  onValueChange
21115
21070
  }) => {
21116
21071
  var _a, _b;
21117
- const { filters, handleDeleteFilter, filterOptions } = useSearchAndFilter();
21072
+ const { filters, handleDeleteFilter } = useSearchAndFilter();
21118
21073
  const label = filters[index].field !== "" ? filters[index].field : "unknown filter field";
21119
21074
  const operatorLabel = filters[index].operator !== "" ? `operator ${filters[index].operator}` : "unknown operator";
21120
21075
  const metaDataLabel = filters[index].value !== "" ? `value ${filters[index].value}` : "unknown value";
21121
21076
  const metaDataPossibleOptions = (_b = (_a = operatorOptions.find((op) => filters[index].operator === op.value)) == null ? void 0 : _a.editorType) != null ? _b : "singleChoice";
21122
- const { selectedFieldValue, selectedOperatorValue, selectedMetaValue } = useMemo7(() => {
21123
- var _a2, _b2;
21124
- const currentSelectedFilter = filterOptions.find((item) => {
21125
- var _a3;
21126
- return (_a3 = item.options) == null ? void 0 : _a3.find((op) => op.value === filters[index].field);
21127
- });
21128
- const selectedFieldValue2 = (_b2 = (_a2 = currentSelectedFilter == null ? void 0 : currentSelectedFilter.options) == null ? void 0 : _a2.find((item) => {
21129
- return filters[index].field === item.value;
21130
- })) != null ? _b2 : [];
21131
- const selectedOperatorValue2 = operatorOptions == null ? void 0 : operatorOptions.find((item) => {
21132
- return filters[index].operator === item.value;
21133
- });
21134
- const selectedMetaValue2 = valueOptions.filter((item) => {
21135
- if (Array.isArray(filters[index].value) && item.value) {
21136
- return filters[index].value.includes(item.value);
21137
- }
21138
- return filters[index].value === item.value;
21139
- });
21140
- return {
21141
- selectedFieldValue: selectedFieldValue2,
21142
- selectedOperatorValue: selectedOperatorValue2 != null ? selectedOperatorValue2 : void 0,
21143
- selectedMetaValue: selectedMetaValue2.length > 0 ? selectedMetaValue2 : filters[index].value
21144
- };
21145
- }, [filters, filterOptions, index, operatorOptions, valueOptions]);
21146
21077
  return /* @__PURE__ */ jsxs83("div", { css: ConditionalFilterRow, children: [
21147
21078
  /* @__PURE__ */ jsx123("span", { children: index === 0 ? "where" : "and" }),
21148
21079
  /* @__PURE__ */ jsxs83("div", { css: ConditionalInputRow, children: [
@@ -21154,8 +21085,7 @@ var FilterItem = ({
21154
21085
  onChange: (e) => {
21155
21086
  var _a2;
21156
21087
  onParamChange((_a2 = e == null ? void 0 : e.value) != null ? _a2 : "");
21157
- },
21158
- value: selectedFieldValue
21088
+ }
21159
21089
  }
21160
21090
  ),
21161
21091
  /* @__PURE__ */ jsx123(
@@ -21167,8 +21097,7 @@ var FilterItem = ({
21167
21097
  var _a2;
21168
21098
  return onOperatorChange((_a2 = e == null ? void 0 : e.value) != null ? _a2 : "");
21169
21099
  },
21170
- isDisabled: !filters[index].field,
21171
- value: selectedOperatorValue
21100
+ isDisabled: !filters[index].field
21172
21101
  }
21173
21102
  ),
21174
21103
  /* @__PURE__ */ jsx123(
@@ -21177,9 +21106,7 @@ var FilterItem = ({
21177
21106
  "aria-label": metaDataLabel,
21178
21107
  editorType: metaDataPossibleOptions,
21179
21108
  options: valueOptions,
21180
- onChange: (e) => onValueChange(e != null ? e : ""),
21181
- isDisabled: !filters[index].operator,
21182
- value: selectedMetaValue
21109
+ onChange: (e) => onValueChange(e != null ? e : "")
21183
21110
  }
21184
21111
  ),
21185
21112
  /* @__PURE__ */ jsx123(
@@ -21245,37 +21172,23 @@ var SearchAndFilter = ({
21245
21172
  filters,
21246
21173
  filterOptions,
21247
21174
  filterControls = /* @__PURE__ */ jsx124(FilterControls, {}),
21248
- viewSwitchControls,
21249
21175
  children = /* @__PURE__ */ jsx124(FilterItems, {}),
21250
- onChange,
21251
- onSearchChange
21176
+ onChange
21252
21177
  }) => {
21253
- return /* @__PURE__ */ jsx124(
21254
- SearchAndFilterProvider,
21255
- {
21256
- filters,
21257
- filterOptions,
21258
- onChange,
21259
- onSearchChange,
21260
- children: /* @__PURE__ */ jsxs84(VerticalRhythm, { css: SearchAndFilterContainer, "data-testid": "search-and-filter", children: [
21261
- /* @__PURE__ */ jsxs84("div", { css: SearchAndFilterOutterControlWrapper, children: [
21262
- /* @__PURE__ */ jsx124("div", { css: SearchAndFilterControlsWrapper, children: filterControls }),
21263
- viewSwitchControls
21264
- ] }),
21265
- children
21266
- ] })
21267
- }
21268
- );
21178
+ return /* @__PURE__ */ jsx124(SearchAndFilterProvider, { filters, filterOptions, onChange, children: /* @__PURE__ */ jsxs84(VerticalRhythm, { css: SearchAndFilterContainer, "data-testid": "search-and-filter", children: [
21179
+ /* @__PURE__ */ jsx124("div", { css: SearchAndFilterControlsWrapper, children: filterControls }),
21180
+ children
21181
+ ] }) });
21269
21182
  };
21270
21183
 
21271
21184
  // src/components/SegmentedControl/SegmentedControl.tsx
21272
- import { css as css95 } from "@emotion/react";
21185
+ import { css as css96 } from "@emotion/react";
21273
21186
  import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
21274
- import { useCallback as useCallback11, useMemo as useMemo8 } from "react";
21187
+ import { useCallback as useCallback11, useMemo as useMemo7 } from "react";
21275
21188
 
21276
21189
  // src/components/SegmentedControl/SegmentedControl.styles.ts
21277
- import { css as css94 } from "@emotion/react";
21278
- var segmentedControlStyles = css94`
21190
+ import { css as css95 } from "@emotion/react";
21191
+ var segmentedControlStyles = css95`
21279
21192
  --segmented-control-rounded-value: var(--rounded-base);
21280
21193
  --segmented-control-border-width: 1px;
21281
21194
  --segmented-control-selected-color: var(--brand-secondary-3);
@@ -21294,14 +21207,14 @@ var segmentedControlStyles = css94`
21294
21207
  border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
21295
21208
  font-size: var(--fs-xs);
21296
21209
  `;
21297
- var segmentedControlVerticalStyles = css94`
21210
+ var segmentedControlVerticalStyles = css95`
21298
21211
  flex-direction: column;
21299
21212
  --segmented-control-first-border-radius: var(--segmented-control-rounded-value)
21300
21213
  var(--segmented-control-rounded-value) 0 0;
21301
21214
  --segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
21302
21215
  var(--segmented-control-rounded-value);
21303
21216
  `;
21304
- var segmentedControlItemStyles = css94`
21217
+ var segmentedControlItemStyles = css95`
21305
21218
  &:first-of-type label {
21306
21219
  border-radius: var(--segmented-control-first-border-radius);
21307
21220
  }
@@ -21309,10 +21222,10 @@ var segmentedControlItemStyles = css94`
21309
21222
  border-radius: var(--segmented-control-last-border-radius);
21310
21223
  }
21311
21224
  `;
21312
- var segmentedControlInputStyles = css94`
21225
+ var segmentedControlInputStyles = css95`
21313
21226
  ${accessibleHidden}
21314
21227
  `;
21315
- var segmentedControlLabelStyles = (checked, disabled2) => css94`
21228
+ var segmentedControlLabelStyles = (checked, disabled2) => css95`
21316
21229
  position: relative;
21317
21230
  display: flex;
21318
21231
  align-items: center;
@@ -21379,20 +21292,20 @@ var segmentedControlLabelStyles = (checked, disabled2) => css94`
21379
21292
  `}
21380
21293
  }
21381
21294
  `;
21382
- var segmentedControlLabelIconOnlyStyles = css94`
21295
+ var segmentedControlLabelIconOnlyStyles = css95`
21383
21296
  padding-inline: 0.5em;
21384
21297
  `;
21385
- var segmentedControlLabelCheckStyles = css94`
21298
+ var segmentedControlLabelCheckStyles = css95`
21386
21299
  opacity: 0.5;
21387
21300
  `;
21388
- var segmentedControlLabelContentStyles = css94`
21301
+ var segmentedControlLabelContentStyles = css95`
21389
21302
  display: flex;
21390
21303
  align-items: center;
21391
21304
  justify-content: center;
21392
21305
  gap: var(--spacing-sm);
21393
21306
  height: 100%;
21394
21307
  `;
21395
- var segmentedControlLabelTextStyles = css94``;
21308
+ var segmentedControlLabelTextStyles = css95``;
21396
21309
 
21397
21310
  // src/components/SegmentedControl/SegmentedControl.tsx
21398
21311
  import { jsx as jsx125, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
@@ -21415,15 +21328,15 @@ var SegmentedControl = ({
21415
21328
  },
21416
21329
  [options, onChange]
21417
21330
  );
21418
- const sizeStyles = useMemo8(() => {
21331
+ const sizeStyles = useMemo7(() => {
21419
21332
  const map = {
21420
- sm: css95({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
21421
- md: css95({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
21422
- lg: css95({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
21333
+ sm: css96({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
21334
+ md: css96({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
21335
+ lg: css96({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
21423
21336
  };
21424
21337
  return map[size];
21425
21338
  }, [size]);
21426
- const isIconOnly = useMemo8(() => {
21339
+ const isIconOnly = useMemo7(() => {
21427
21340
  return options.every((option) => option && option.icon && !option.label);
21428
21341
  }, [options]);
21429
21342
  return /* @__PURE__ */ jsx125(
@@ -21473,12 +21386,12 @@ var SegmentedControl = ({
21473
21386
  };
21474
21387
 
21475
21388
  // src/components/Skeleton/Skeleton.styles.ts
21476
- import { css as css96, keyframes as keyframes5 } from "@emotion/react";
21389
+ import { css as css97, keyframes as keyframes5 } from "@emotion/react";
21477
21390
  var lightFadingOut = keyframes5`
21478
21391
  from { opacity: 0.1; }
21479
21392
  to { opacity: 0.025; }
21480
21393
  `;
21481
- var skeletonStyles = css96`
21394
+ var skeletonStyles = css97`
21482
21395
  animation: ${lightFadingOut} 1s ease-out infinite alternate;
21483
21396
  background-color: var(--gray-900);
21484
21397
  `;
@@ -21515,8 +21428,8 @@ var Skeleton = ({
21515
21428
  import * as React25 from "react";
21516
21429
 
21517
21430
  // src/components/Switch/Switch.styles.ts
21518
- import { css as css97 } from "@emotion/react";
21519
- var SwitchInputContainer = css97`
21431
+ import { css as css98 } from "@emotion/react";
21432
+ var SwitchInputContainer = css98`
21520
21433
  cursor: pointer;
21521
21434
  display: inline-block;
21522
21435
  position: relative;
@@ -21525,7 +21438,7 @@ var SwitchInputContainer = css97`
21525
21438
  vertical-align: middle;
21526
21439
  user-select: none;
21527
21440
  `;
21528
- var SwitchInput = css97`
21441
+ var SwitchInput = css98`
21529
21442
  appearance: none;
21530
21443
  border-radius: var(--rounded-full);
21531
21444
  background-color: var(--white);
@@ -21563,7 +21476,7 @@ var SwitchInput = css97`
21563
21476
  cursor: not-allowed;
21564
21477
  }
21565
21478
  `;
21566
- var SwitchInputDisabled = css97`
21479
+ var SwitchInputDisabled = css98`
21567
21480
  opacity: var(--opacity-50);
21568
21481
  cursor: not-allowed;
21569
21482
 
@@ -21571,7 +21484,7 @@ var SwitchInputDisabled = css97`
21571
21484
  cursor: not-allowed;
21572
21485
  }
21573
21486
  `;
21574
- var SwitchInputLabel = css97`
21487
+ var SwitchInputLabel = css98`
21575
21488
  align-items: center;
21576
21489
  color: var(--typography-base);
21577
21490
  display: inline-flex;
@@ -21592,7 +21505,7 @@ var SwitchInputLabel = css97`
21592
21505
  top: 0;
21593
21506
  }
21594
21507
  `;
21595
- var SwitchText = css97`
21508
+ var SwitchText = css98`
21596
21509
  color: var(--gray-500);
21597
21510
  font-size: var(--fs-sm);
21598
21511
  padding-inline: var(--spacing-2xl) 0;
@@ -21621,8 +21534,8 @@ var Switch = React25.forwardRef(
21621
21534
  import * as React26 from "react";
21622
21535
 
21623
21536
  // src/components/Table/Table.styles.ts
21624
- import { css as css98 } from "@emotion/react";
21625
- var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css98`
21537
+ import { css as css99 } from "@emotion/react";
21538
+ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css99`
21626
21539
  border-bottom: 1px solid var(--gray-400);
21627
21540
  border-collapse: collapse;
21628
21541
  min-width: 100%;
@@ -21633,15 +21546,15 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css98
21633
21546
  padding: ${cellPadding};
21634
21547
  }
21635
21548
  `;
21636
- var tableHead = css98`
21549
+ var tableHead = css99`
21637
21550
  background: var(--gray-100);
21638
21551
  color: var(--typography-base);
21639
21552
  text-align: left;
21640
21553
  `;
21641
- var tableRow = css98`
21554
+ var tableRow = css99`
21642
21555
  border-bottom: 1px solid var(--gray-200);
21643
21556
  `;
21644
- var tableCellHead = css98`
21557
+ var tableCellHead = css99`
21645
21558
  font-size: var(--fs-sm);
21646
21559
  text-transform: uppercase;
21647
21560
  font-weight: var(--fw-bold);
@@ -21693,11 +21606,11 @@ import {
21693
21606
  TabProvider as AriakitTabProvider,
21694
21607
  useTabStore as useAriakitTabStore
21695
21608
  } from "@ariakit/react";
21696
- import { useCallback as useCallback12, useEffect as useEffect19, useMemo as useMemo9 } from "react";
21609
+ import { useCallback as useCallback12, useEffect as useEffect19, useMemo as useMemo8 } from "react";
21697
21610
 
21698
21611
  // src/components/Tabs/Tabs.styles.ts
21699
- import { css as css99 } from "@emotion/react";
21700
- var tabButtonStyles = css99`
21612
+ import { css as css100 } from "@emotion/react";
21613
+ var tabButtonStyles = css100`
21701
21614
  align-items: center;
21702
21615
  border: 0;
21703
21616
  height: 2.5rem;
@@ -21714,7 +21627,7 @@ var tabButtonStyles = css99`
21714
21627
  box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
21715
21628
  }
21716
21629
  `;
21717
- var tabButtonGroupStyles = css99`
21630
+ var tabButtonGroupStyles = css100`
21718
21631
  display: flex;
21719
21632
  gap: var(--spacing-base);
21720
21633
  border-bottom: 1px solid var(--gray-300);
@@ -21737,7 +21650,7 @@ var Tabs = ({
21737
21650
  manual,
21738
21651
  ...props
21739
21652
  }) => {
21740
- const selected = useMemo9(() => {
21653
+ const selected = useMemo8(() => {
21741
21654
  if (selectedId)
21742
21655
  return selectedId;
21743
21656
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
@@ -21782,8 +21695,8 @@ var TabContent = ({
21782
21695
  import { toast, ToastContainer as ToastifyContainer } from "react-toastify";
21783
21696
 
21784
21697
  // src/components/Toast/Toast.styles.ts
21785
- import { css as css100 } from "@emotion/react";
21786
- var toastContainerStyles = css100`
21698
+ import { css as css101 } from "@emotion/react";
21699
+ var toastContainerStyles = css101`
21787
21700
  ${functionalColors}
21788
21701
 
21789
21702
  --toastify-color-light: white;