@uniformdev/design-system 19.115.1-alpha.5 → 19.115.1-alpha.7

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