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