@uniformdev/design-system 19.116.2-alpha.0 → 19.117.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
@@ -20494,6 +20494,10 @@ var FilterButton2 = ({ text = "Filters", filterCount, ...props }) => {
20494
20494
  );
20495
20495
  };
20496
20496
 
20497
+ // src/components/SearchAndFilter/FilterControls.tsx
20498
+ import { useEffect as useEffect18, useState as useState17 } from "react";
20499
+ import { useDebounce as useDebounce2 } from "react-use";
20500
+
20497
20501
  // src/components/SearchAndFilter/hooks/useSearchAndFilter.tsx
20498
20502
  import {
20499
20503
  createContext as createContext6,
@@ -20522,13 +20526,15 @@ var SearchAndFilterContext = createContext6({
20522
20526
  handleDeleteFilter: () => {
20523
20527
  },
20524
20528
  filterOptions: [],
20525
- validFilterQuery: []
20529
+ validFilterQuery: [],
20530
+ totalResults: 0
20526
20531
  });
20527
20532
  var SearchAndFilterProvider = ({
20528
20533
  filters,
20529
20534
  filterOptions,
20530
20535
  onSearchChange,
20531
20536
  onChange,
20537
+ totalResults,
20532
20538
  children
20533
20539
  }) => {
20534
20540
  const [searchTerm, setSearchTerm] = useState16("");
@@ -20591,7 +20597,8 @@ var SearchAndFilterProvider = ({
20591
20597
  handleResetFilters: () => handleResetFilters(),
20592
20598
  handleDeleteFilter: (index) => handleDeleteFilter(index),
20593
20599
  filterOptions,
20594
- validFilterQuery
20600
+ validFilterQuery,
20601
+ totalResults
20595
20602
  },
20596
20603
  children: /* @__PURE__ */ jsx118(VerticalRhythm, { children })
20597
20604
  }
@@ -20606,6 +20613,19 @@ var useSearchAndFilter = () => {
20606
20613
  import { Fragment as Fragment19, jsx as jsx119, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
20607
20614
  var FilterControls = ({ children }) => {
20608
20615
  const { setFilterVisibility, filterVisibility, setSearchTerm, validFilterQuery, searchTerm } = useSearchAndFilter();
20616
+ const [localeSearchTerm, setLocaleSearchTerm] = useState17("");
20617
+ useDebounce2(
20618
+ () => {
20619
+ setSearchTerm(localeSearchTerm);
20620
+ },
20621
+ 300,
20622
+ [localeSearchTerm, searchTerm]
20623
+ );
20624
+ useEffect18(() => {
20625
+ if (searchTerm === "") {
20626
+ setLocaleSearchTerm("");
20627
+ }
20628
+ }, [searchTerm]);
20609
20629
  return /* @__PURE__ */ jsxs80(Fragment19, { children: [
20610
20630
  /* @__PURE__ */ jsx119(
20611
20631
  FilterButton2,
@@ -20619,11 +20639,11 @@ var FilterControls = ({ children }) => {
20619
20639
  }
20620
20640
  ),
20621
20641
  /* @__PURE__ */ jsx119(
20622
- DebouncedInputKeywordSearch,
20642
+ InputKeywordSearch,
20623
20643
  {
20624
20644
  placeholder: "Search...",
20625
- onSearchTextChanged: (e) => setSearchTerm(e),
20626
- defaultValue: searchTerm,
20645
+ onSearchTextChanged: (e) => setLocaleSearchTerm(e),
20646
+ value: localeSearchTerm,
20627
20647
  compact: true,
20628
20648
  rounded: true
20629
20649
  }
@@ -20636,8 +20656,8 @@ var FilterControls = ({ children }) => {
20636
20656
  import { useMemo as useMemo7 } from "react";
20637
20657
 
20638
20658
  // src/components/SearchAndFilter/FilterEditor.tsx
20639
- import { useEffect as useEffect18, useState as useState17 } from "react";
20640
- import { useDebounce as useDebounce2 } from "react-use";
20659
+ import { useEffect as useEffect19, useState as useState18 } from "react";
20660
+ import { useDebounce as useDebounce3 } from "react-use";
20641
20661
 
20642
20662
  // src/components/Validation/StatusBullet.styles.ts
20643
20663
  import { css as css93 } from "@emotion/react";
@@ -20834,7 +20854,7 @@ var StatusSingleEditor = ({
20834
20854
  );
20835
20855
  };
20836
20856
  var TextEditor = ({ onChange, ariaLabel, value }) => {
20837
- useDebounce2(() => onChange, 500, [value]);
20857
+ useDebounce3(() => onChange, 500, [value]);
20838
20858
  return /* @__PURE__ */ jsx121(
20839
20859
  Input,
20840
20860
  {
@@ -20847,10 +20867,10 @@ var TextEditor = ({ onChange, ariaLabel, value }) => {
20847
20867
  );
20848
20868
  };
20849
20869
  var NumberRangeEditor = ({ onChange, disabled: disabled2, ariaLabel, value }) => {
20850
- const [minValue, setMinValue] = useState17("");
20851
- const [maxValue, setMaxValue] = useState17("");
20852
- const [error, setError] = useState17("");
20853
- useEffect18(() => {
20870
+ const [minValue, setMinValue] = useState18("");
20871
+ const [maxValue, setMaxValue] = useState18("");
20872
+ const [error, setError] = useState18("");
20873
+ useEffect19(() => {
20854
20874
  if (!maxValue && !minValue) {
20855
20875
  return;
20856
20876
  }
@@ -20929,10 +20949,10 @@ var DateEditor = ({ onChange, ariaLabel, disabled: disabled2, value }) => {
20929
20949
  );
20930
20950
  };
20931
20951
  var DateRangeEditor = ({ ariaLabel, onChange, disabled: disabled2, value }) => {
20932
- const [minDateValue, setMinDateValue] = useState17(value ? value[0] : "");
20933
- const [maxDateValue, setMaxDateValue] = useState17(value ? value[1] : "");
20934
- const [error, setError] = useState17("");
20935
- useEffect18(() => {
20952
+ const [minDateValue, setMinDateValue] = useState18(value ? value[0] : "");
20953
+ const [maxDateValue, setMaxDateValue] = useState18(value ? value[1] : "");
20954
+ const [error, setError] = useState18("");
20955
+ useEffect19(() => {
20936
20956
  if (!minDateValue || !maxDateValue) {
20937
20957
  return;
20938
20958
  }
@@ -21240,30 +21260,56 @@ var FilterItems = () => {
21240
21260
  }) });
21241
21261
  };
21242
21262
 
21263
+ // src/components/SearchAndFilter/SearchAndFilterResultContainer.tsx
21264
+ import { Fragment as Fragment22, jsx as jsx124, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
21265
+ var SearchAndFilterResultContainer = ({
21266
+ clearButtonLabel = "clear"
21267
+ }) => {
21268
+ const { searchTerm, setSearchTerm, totalResults } = useSearchAndFilter();
21269
+ return searchTerm ? /* @__PURE__ */ jsxs84(Fragment22, { children: [
21270
+ /* @__PURE__ */ jsxs84(HorizontalRhythm, { children: [
21271
+ /* @__PURE__ */ jsxs84("span", { children: [
21272
+ totalResults,
21273
+ " results for ",
21274
+ /* @__PURE__ */ jsxs84("strong", { children: [
21275
+ '"',
21276
+ searchTerm,
21277
+ '"'
21278
+ ] })
21279
+ ] }),
21280
+ /* @__PURE__ */ jsx124(Button, { buttonType: "ghostDestructive", size: "zero", onClick: () => setSearchTerm(""), children: clearButtonLabel })
21281
+ ] }),
21282
+ totalResults === 0 ? /* @__PURE__ */ jsx124(Callout, { title: "No search results found", type: "note", children: /* @__PURE__ */ jsx124(Button, { buttonType: "tertiaryOutline", size: "sm", onClick: () => setSearchTerm(""), children: "Clear search" }) }) : null
21283
+ ] }) : null;
21284
+ };
21285
+
21243
21286
  // src/components/SearchAndFilter/SearchAndFilter.tsx
21244
- import { jsx as jsx124, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
21287
+ import { jsx as jsx125, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
21245
21288
  var SearchAndFilter = ({
21246
21289
  filters,
21247
21290
  filterOptions,
21248
- filterControls = /* @__PURE__ */ jsx124(FilterControls, {}),
21291
+ filterControls = /* @__PURE__ */ jsx125(FilterControls, {}),
21249
21292
  viewSwitchControls,
21250
- children = /* @__PURE__ */ jsx124(FilterItems, {}),
21293
+ children = /* @__PURE__ */ jsx125(FilterItems, {}),
21251
21294
  onChange,
21252
- onSearchChange
21295
+ onSearchChange,
21296
+ totalResults
21253
21297
  }) => {
21254
- return /* @__PURE__ */ jsx124(
21298
+ return /* @__PURE__ */ jsx125(
21255
21299
  SearchAndFilterProvider,
21256
21300
  {
21257
21301
  filters,
21258
21302
  filterOptions,
21259
21303
  onChange,
21260
21304
  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 }),
21305
+ totalResults,
21306
+ children: /* @__PURE__ */ jsxs85(VerticalRhythm, { css: SearchAndFilterContainer, "data-testid": "search-and-filter", children: [
21307
+ /* @__PURE__ */ jsxs85("div", { css: SearchAndFilterOutterControlWrapper, children: [
21308
+ /* @__PURE__ */ jsx125("div", { css: SearchAndFilterControlsWrapper, children: filterControls }),
21264
21309
  viewSwitchControls
21265
21310
  ] }),
21266
- children
21311
+ children,
21312
+ /* @__PURE__ */ jsx125(SearchAndFilterResultContainer, {})
21267
21313
  ] })
21268
21314
  }
21269
21315
  );
@@ -21396,7 +21442,7 @@ var segmentedControlLabelContentStyles = css94`
21396
21442
  var segmentedControlLabelTextStyles = css94``;
21397
21443
 
21398
21444
  // src/components/SegmentedControl/SegmentedControl.tsx
21399
- import { jsx as jsx125, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
21445
+ import { jsx as jsx126, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
21400
21446
  var SegmentedControl = ({
21401
21447
  name,
21402
21448
  options,
@@ -21427,7 +21473,7 @@ var SegmentedControl = ({
21427
21473
  const isIconOnly = useMemo8(() => {
21428
21474
  return options.every((option) => option && option.icon && !option.label);
21429
21475
  }, [options]);
21430
- return /* @__PURE__ */ jsx125(
21476
+ return /* @__PURE__ */ jsx126(
21431
21477
  "div",
21432
21478
  {
21433
21479
  css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
@@ -21439,7 +21485,7 @@ var SegmentedControl = ({
21439
21485
  }
21440
21486
  const text = option.label ? option.label : option.icon ? null : String(option.value);
21441
21487
  const isDisabled = disabled2 || option.disabled;
21442
- return /* @__PURE__ */ jsx125(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx125("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs85(
21488
+ return /* @__PURE__ */ jsx126(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx126("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs86(
21443
21489
  "label",
21444
21490
  {
21445
21491
  css: [
@@ -21448,7 +21494,7 @@ var SegmentedControl = ({
21448
21494
  isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
21449
21495
  ],
21450
21496
  children: [
21451
- /* @__PURE__ */ jsx125(
21497
+ /* @__PURE__ */ jsx126(
21452
21498
  "input",
21453
21499
  {
21454
21500
  css: segmentedControlInputStyles,
@@ -21460,10 +21506,10 @@ var SegmentedControl = ({
21460
21506
  disabled: isDisabled
21461
21507
  }
21462
21508
  ),
21463
- option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx125(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
21464
- /* @__PURE__ */ jsxs85("span", { css: segmentedControlLabelContentStyles, children: [
21465
- !option.icon ? null : /* @__PURE__ */ jsx125(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
21466
- !text ? null : /* @__PURE__ */ jsx125("span", { css: segmentedControlLabelTextStyles, children: text })
21509
+ option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx126(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
21510
+ /* @__PURE__ */ jsxs86("span", { css: segmentedControlLabelContentStyles, children: [
21511
+ !option.icon ? null : /* @__PURE__ */ jsx126(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
21512
+ !text ? null : /* @__PURE__ */ jsx126("span", { css: segmentedControlLabelTextStyles, children: text })
21467
21513
  ] })
21468
21514
  ]
21469
21515
  }
@@ -21485,7 +21531,7 @@ var skeletonStyles = css96`
21485
21531
  `;
21486
21532
 
21487
21533
  // src/components/Skeleton/Skeleton.tsx
21488
- import { jsx as jsx126 } from "@emotion/react/jsx-runtime";
21534
+ import { jsx as jsx127 } from "@emotion/react/jsx-runtime";
21489
21535
  var Skeleton = ({
21490
21536
  width = "100%",
21491
21537
  height = "1.25rem",
@@ -21493,7 +21539,7 @@ var Skeleton = ({
21493
21539
  circle = false,
21494
21540
  children,
21495
21541
  ...otherProps
21496
- }) => /* @__PURE__ */ jsx126(
21542
+ }) => /* @__PURE__ */ jsx127(
21497
21543
  "div",
21498
21544
  {
21499
21545
  css: [
@@ -21600,19 +21646,19 @@ var SwitchText = css97`
21600
21646
  `;
21601
21647
 
21602
21648
  // src/components/Switch/Switch.tsx
21603
- import { Fragment as Fragment22, jsx as jsx127, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
21649
+ import { Fragment as Fragment23, jsx as jsx128, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
21604
21650
  var Switch = React25.forwardRef(
21605
21651
  ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
21606
21652
  let additionalText = infoText;
21607
21653
  if (infoText && toggleText) {
21608
21654
  additionalText = inputProps.checked ? toggleText : infoText;
21609
21655
  }
21610
- return /* @__PURE__ */ jsxs86(Fragment22, { children: [
21611
- /* @__PURE__ */ jsxs86("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
21612
- /* @__PURE__ */ jsx127("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
21613
- /* @__PURE__ */ jsx127("span", { css: SwitchInputLabel, children: label })
21656
+ return /* @__PURE__ */ jsxs87(Fragment23, { children: [
21657
+ /* @__PURE__ */ jsxs87("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
21658
+ /* @__PURE__ */ jsx128("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
21659
+ /* @__PURE__ */ jsx128("span", { css: SwitchInputLabel, children: label })
21614
21660
  ] }),
21615
- additionalText ? /* @__PURE__ */ jsx127("p", { css: SwitchText, children: additionalText }) : null,
21661
+ additionalText ? /* @__PURE__ */ jsx128("p", { css: SwitchText, children: additionalText }) : null,
21616
21662
  children
21617
21663
  ] });
21618
21664
  }
@@ -21649,40 +21695,40 @@ var tableCellHead = css98`
21649
21695
  `;
21650
21696
 
21651
21697
  // src/components/Table/Table.tsx
21652
- import { jsx as jsx128 } from "@emotion/react/jsx-runtime";
21698
+ import { jsx as jsx129 } from "@emotion/react/jsx-runtime";
21653
21699
  var Table = React26.forwardRef(
21654
21700
  ({ children, cellPadding, ...otherProps }, ref) => {
21655
- return /* @__PURE__ */ jsx128("table", { ref, css: table({ cellPadding }), ...otherProps, children });
21701
+ return /* @__PURE__ */ jsx129("table", { ref, css: table({ cellPadding }), ...otherProps, children });
21656
21702
  }
21657
21703
  );
21658
21704
  var TableHead = React26.forwardRef(
21659
21705
  ({ children, ...otherProps }, ref) => {
21660
- return /* @__PURE__ */ jsx128("thead", { ref, css: tableHead, ...otherProps, children });
21706
+ return /* @__PURE__ */ jsx129("thead", { ref, css: tableHead, ...otherProps, children });
21661
21707
  }
21662
21708
  );
21663
21709
  var TableBody = React26.forwardRef(
21664
21710
  ({ children, ...otherProps }, ref) => {
21665
- return /* @__PURE__ */ jsx128("tbody", { ref, ...otherProps, children });
21711
+ return /* @__PURE__ */ jsx129("tbody", { ref, ...otherProps, children });
21666
21712
  }
21667
21713
  );
21668
21714
  var TableFoot = React26.forwardRef(
21669
21715
  ({ children, ...otherProps }, ref) => {
21670
- return /* @__PURE__ */ jsx128("tfoot", { ref, ...otherProps, children });
21716
+ return /* @__PURE__ */ jsx129("tfoot", { ref, ...otherProps, children });
21671
21717
  }
21672
21718
  );
21673
21719
  var TableRow = React26.forwardRef(
21674
21720
  ({ children, ...otherProps }, ref) => {
21675
- return /* @__PURE__ */ jsx128("tr", { ref, css: tableRow, ...otherProps, children });
21721
+ return /* @__PURE__ */ jsx129("tr", { ref, css: tableRow, ...otherProps, children });
21676
21722
  }
21677
21723
  );
21678
21724
  var TableCellHead = React26.forwardRef(
21679
21725
  ({ children, ...otherProps }, ref) => {
21680
- return /* @__PURE__ */ jsx128("th", { ref, css: tableCellHead, ...otherProps, children });
21726
+ return /* @__PURE__ */ jsx129("th", { ref, css: tableCellHead, ...otherProps, children });
21681
21727
  }
21682
21728
  );
21683
21729
  var TableCellData = React26.forwardRef(
21684
21730
  ({ children, ...otherProps }, ref) => {
21685
- return /* @__PURE__ */ jsx128("td", { ref, ...otherProps, children });
21731
+ return /* @__PURE__ */ jsx129("td", { ref, ...otherProps, children });
21686
21732
  }
21687
21733
  );
21688
21734
 
@@ -21694,7 +21740,7 @@ import {
21694
21740
  TabProvider as AriakitTabProvider,
21695
21741
  useTabStore as useAriakitTabStore
21696
21742
  } from "@ariakit/react";
21697
- import { useCallback as useCallback12, useEffect as useEffect19, useMemo as useMemo9 } from "react";
21743
+ import { useCallback as useCallback12, useEffect as useEffect20, useMemo as useMemo9 } from "react";
21698
21744
 
21699
21745
  // src/components/Tabs/Tabs.styles.ts
21700
21746
  import { css as css99 } from "@emotion/react";
@@ -21722,7 +21768,7 @@ var tabButtonGroupStyles = css99`
21722
21768
  `;
21723
21769
 
21724
21770
  // src/components/Tabs/Tabs.tsx
21725
- import { jsx as jsx129 } from "@emotion/react/jsx-runtime";
21771
+ import { jsx as jsx130 } from "@emotion/react/jsx-runtime";
21726
21772
  var useCurrentTab = () => {
21727
21773
  const context = useAriakitTabStore();
21728
21774
  if (!context) {
@@ -21755,28 +21801,28 @@ var Tabs = ({
21755
21801
  },
21756
21802
  [onSelectedIdChange, useHashForState]
21757
21803
  );
21758
- useEffect19(() => {
21804
+ useEffect20(() => {
21759
21805
  if (selected && selected !== tab.getState().activeId) {
21760
21806
  tab.setSelectedId(selected);
21761
21807
  }
21762
21808
  }, [selected, tab]);
21763
- return /* @__PURE__ */ jsx129(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
21809
+ return /* @__PURE__ */ jsx130(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
21764
21810
  };
21765
21811
  var TabButtonGroup = ({ children, ...props }) => {
21766
- return /* @__PURE__ */ jsx129(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
21812
+ return /* @__PURE__ */ jsx130(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
21767
21813
  };
21768
21814
  var TabButton = ({
21769
21815
  children,
21770
21816
  id,
21771
21817
  ...props
21772
21818
  }) => {
21773
- return /* @__PURE__ */ jsx129(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
21819
+ return /* @__PURE__ */ jsx130(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
21774
21820
  };
21775
21821
  var TabContent = ({
21776
21822
  children,
21777
21823
  ...props
21778
21824
  }) => {
21779
- return /* @__PURE__ */ jsx129(AriakitTabPanel, { ...props, children });
21825
+ return /* @__PURE__ */ jsx130(AriakitTabPanel, { ...props, children });
21780
21826
  };
21781
21827
 
21782
21828
  // src/components/Toast/Toast.tsx
@@ -22007,9 +22053,9 @@ var toastContainerStyles = css100`
22007
22053
  `;
22008
22054
 
22009
22055
  // src/components/Toast/Toast.tsx
22010
- import { jsx as jsx130 } from "@emotion/react/jsx-runtime";
22056
+ import { jsx as jsx131 } from "@emotion/react/jsx-runtime";
22011
22057
  var ToastContainer = ({ limit = 4 }) => {
22012
- return /* @__PURE__ */ jsx130(
22058
+ return /* @__PURE__ */ jsx131(
22013
22059
  ToastifyContainer,
22014
22060
  {
22015
22061
  css: toastContainerStyles,
@@ -22153,6 +22199,7 @@ export {
22153
22199
  SearchAndFilterContext,
22154
22200
  SearchAndFilterOptionsContainer2 as SearchAndFilterOptionsContainer,
22155
22201
  SearchAndFilterProvider,
22202
+ SearchAndFilterResultContainer,
22156
22203
  SegmentedControl,
22157
22204
  ShortcutContext,
22158
22205
  ShortcutRevealer,
package/dist/index.d.mts CHANGED
@@ -23032,7 +23032,7 @@ type Filter = {
23032
23032
  /** The operator value selected */
23033
23033
  operator: string;
23034
23034
  /** The value selected */
23035
- value: string;
23035
+ value: string | string[];
23036
23036
  };
23037
23037
 
23038
23038
  /** @deprecated beta - a list of possible operator values that sync with uniform search api */
@@ -23135,6 +23135,8 @@ type SearchAndFilterProviderProps = {
23135
23135
  onChange: (filters: Filter[]) => void;
23136
23136
  /** sets the list of filter options for each filter row */
23137
23137
  filterOptions: FilterOption[];
23138
+ /** the total number of results */
23139
+ totalResults?: number;
23138
23140
  /** sets child components giving access to useSearchAndFilter context */
23139
23141
  children: ReactNode;
23140
23142
  };
@@ -23161,13 +23163,15 @@ type SearchAndFilterContextProps = {
23161
23163
  filterOptions: FilterOption[];
23162
23164
  /** a valid list of valid filter options */
23163
23165
  validFilterQuery: Filter[] | undefined;
23166
+ /** the total number of results */
23167
+ totalResults?: number;
23164
23168
  };
23165
23169
  declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProps>;
23166
23170
  /**
23167
23171
  * @deprecated beta - Search and filter provider
23168
23172
  * @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
23169
23173
  * */
23170
- declare const SearchAndFilterProvider: ({ filters, filterOptions, onSearchChange, onChange, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23174
+ declare const SearchAndFilterProvider: ({ filters, filterOptions, onSearchChange, onChange, totalResults, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23171
23175
  /** @deprecated beta - Search and filter hook
23172
23176
  * @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
23173
23177
  */
@@ -23194,6 +23198,8 @@ declare const useSearchAndFilter: () => {
23194
23198
  filterOptions: FilterOption[];
23195
23199
  /** a valid list of valid filter options */
23196
23200
  validFilterQuery: Filter[] | undefined;
23201
+ /** the total number of results */
23202
+ totalResults?: number | undefined;
23197
23203
  };
23198
23204
 
23199
23205
  type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
@@ -23203,10 +23209,26 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
23203
23209
  filterControls?: React$1.ReactNode;
23204
23210
  /** The view switch controls to be displayed */
23205
23211
  viewSwitchControls?: React$1.ReactNode;
23212
+ totalResults?: number;
23206
23213
  /** The children of the search and filter component */
23207
23214
  children?: React$1.ReactNode;
23208
23215
  };
23209
- declare const SearchAndFilter: ({ filters, filterOptions, filterControls, viewSwitchControls, children, onChange, onSearchChange, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23216
+ /**
23217
+ * @deprecated beta - Search and filter component
23218
+ * @example <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
23219
+ * */
23220
+ declare const SearchAndFilter: ({ filters, filterOptions, filterControls, viewSwitchControls, children, onChange, onSearchChange, totalResults, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23221
+
23222
+ type SearchAndFilterResultContainerProps = {
23223
+ /** The label for the clear button
23224
+ * @default 'Clear'
23225
+ */
23226
+ clearButtonLabel?: string;
23227
+ /** The total number of results */
23228
+ totalResults?: number;
23229
+ };
23230
+ /** @deprecated beta - Search and filter results container */
23231
+ declare const SearchAndFilterResultContainer: ({ clearButtonLabel, }: SearchAndFilterResultContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
23210
23232
 
23211
23233
  type SegmentedControlOption<TValue extends string = string> = {
23212
23234
  value: TValue;
@@ -23688,4 +23710,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
23688
23710
  };
23689
23711
  declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23690
23712
 
23691
- export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, type ArrowPositionProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, CHECKBOX_OPERATORS, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DATE_OPERATORS, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, Fieldset, type FieldsetProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, FilterItem, FilterItems, FilterMenu, type FilterOption, type FilterRowProps, type FiltersProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, InlineAlert, type InlineAlertProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputOption, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuGroup, type MenuGroupProps, MenuItem, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, Modal, type ModalProps, MultilineChip, type MultilineChipProps, NUMBER_OPERATORS, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, RICHTEXT_OPERATORS, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, SYSTEM_FIELD_OPERATORS, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchAndFilter, SearchAndFilterContext, type SearchAndFilterContextProps, SearchAndFilterOptionsContainer, type SearchAndFilterOptionsContainerProps, type SearchAndFilterProps, SearchAndFilterProvider, type SearchAndFilterProviderProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TEXTBOX_OPERATORS, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useSearchAndFilter, useShortcut, warningIcon, yesNoIcon };
23713
+ export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, type ArrowPositionProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, CHECKBOX_OPERATORS, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DATE_OPERATORS, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, Fieldset, type FieldsetProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, FilterItem, FilterItems, FilterMenu, type FilterOption, type FilterRowProps, type FiltersProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, InlineAlert, type InlineAlertProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputOption, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuGroup, type MenuGroupProps, MenuItem, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, Modal, type ModalProps, MultilineChip, type MultilineChipProps, NUMBER_OPERATORS, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, RICHTEXT_OPERATORS, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, SYSTEM_FIELD_OPERATORS, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchAndFilter, SearchAndFilterContext, type SearchAndFilterContextProps, SearchAndFilterOptionsContainer, type SearchAndFilterOptionsContainerProps, type SearchAndFilterProps, SearchAndFilterProvider, type SearchAndFilterProviderProps, SearchAndFilterResultContainer, type SearchAndFilterResultContainerProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TEXTBOX_OPERATORS, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useSearchAndFilter, useShortcut, warningIcon, yesNoIcon };
package/dist/index.d.ts CHANGED
@@ -23032,7 +23032,7 @@ type Filter = {
23032
23032
  /** The operator value selected */
23033
23033
  operator: string;
23034
23034
  /** The value selected */
23035
- value: string;
23035
+ value: string | string[];
23036
23036
  };
23037
23037
 
23038
23038
  /** @deprecated beta - a list of possible operator values that sync with uniform search api */
@@ -23135,6 +23135,8 @@ type SearchAndFilterProviderProps = {
23135
23135
  onChange: (filters: Filter[]) => void;
23136
23136
  /** sets the list of filter options for each filter row */
23137
23137
  filterOptions: FilterOption[];
23138
+ /** the total number of results */
23139
+ totalResults?: number;
23138
23140
  /** sets child components giving access to useSearchAndFilter context */
23139
23141
  children: ReactNode;
23140
23142
  };
@@ -23161,13 +23163,15 @@ type SearchAndFilterContextProps = {
23161
23163
  filterOptions: FilterOption[];
23162
23164
  /** a valid list of valid filter options */
23163
23165
  validFilterQuery: Filter[] | undefined;
23166
+ /** the total number of results */
23167
+ totalResults?: number;
23164
23168
  };
23165
23169
  declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProps>;
23166
23170
  /**
23167
23171
  * @deprecated beta - Search and filter provider
23168
23172
  * @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
23169
23173
  * */
23170
- declare const SearchAndFilterProvider: ({ filters, filterOptions, onSearchChange, onChange, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23174
+ declare const SearchAndFilterProvider: ({ filters, filterOptions, onSearchChange, onChange, totalResults, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23171
23175
  /** @deprecated beta - Search and filter hook
23172
23176
  * @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
23173
23177
  */
@@ -23194,6 +23198,8 @@ declare const useSearchAndFilter: () => {
23194
23198
  filterOptions: FilterOption[];
23195
23199
  /** a valid list of valid filter options */
23196
23200
  validFilterQuery: Filter[] | undefined;
23201
+ /** the total number of results */
23202
+ totalResults?: number | undefined;
23197
23203
  };
23198
23204
 
23199
23205
  type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
@@ -23203,10 +23209,26 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
23203
23209
  filterControls?: React$1.ReactNode;
23204
23210
  /** The view switch controls to be displayed */
23205
23211
  viewSwitchControls?: React$1.ReactNode;
23212
+ totalResults?: number;
23206
23213
  /** The children of the search and filter component */
23207
23214
  children?: React$1.ReactNode;
23208
23215
  };
23209
- declare const SearchAndFilter: ({ filters, filterOptions, filterControls, viewSwitchControls, children, onChange, onSearchChange, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23216
+ /**
23217
+ * @deprecated beta - Search and filter component
23218
+ * @example <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
23219
+ * */
23220
+ declare const SearchAndFilter: ({ filters, filterOptions, filterControls, viewSwitchControls, children, onChange, onSearchChange, totalResults, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23221
+
23222
+ type SearchAndFilterResultContainerProps = {
23223
+ /** The label for the clear button
23224
+ * @default 'Clear'
23225
+ */
23226
+ clearButtonLabel?: string;
23227
+ /** The total number of results */
23228
+ totalResults?: number;
23229
+ };
23230
+ /** @deprecated beta - Search and filter results container */
23231
+ declare const SearchAndFilterResultContainer: ({ clearButtonLabel, }: SearchAndFilterResultContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
23210
23232
 
23211
23233
  type SegmentedControlOption<TValue extends string = string> = {
23212
23234
  value: TValue;
@@ -23688,4 +23710,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
23688
23710
  };
23689
23711
  declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23690
23712
 
23691
- export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, type ArrowPositionProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, CHECKBOX_OPERATORS, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DATE_OPERATORS, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, Fieldset, type FieldsetProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, FilterItem, FilterItems, FilterMenu, type FilterOption, type FilterRowProps, type FiltersProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, InlineAlert, type InlineAlertProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputOption, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuGroup, type MenuGroupProps, MenuItem, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, Modal, type ModalProps, MultilineChip, type MultilineChipProps, NUMBER_OPERATORS, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, RICHTEXT_OPERATORS, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, SYSTEM_FIELD_OPERATORS, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchAndFilter, SearchAndFilterContext, type SearchAndFilterContextProps, SearchAndFilterOptionsContainer, type SearchAndFilterOptionsContainerProps, type SearchAndFilterProps, SearchAndFilterProvider, type SearchAndFilterProviderProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TEXTBOX_OPERATORS, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useSearchAndFilter, useShortcut, warningIcon, yesNoIcon };
23713
+ export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, type ArrowPositionProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, CHECKBOX_OPERATORS, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DATE_OPERATORS, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, Fieldset, type FieldsetProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, FilterItem, FilterItems, FilterMenu, type FilterOption, type FilterRowProps, type FiltersProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, InlineAlert, type InlineAlertProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputOption, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuGroup, type MenuGroupProps, MenuItem, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, Modal, type ModalProps, MultilineChip, type MultilineChipProps, NUMBER_OPERATORS, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, RICHTEXT_OPERATORS, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, SYSTEM_FIELD_OPERATORS, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchAndFilter, SearchAndFilterContext, type SearchAndFilterContextProps, SearchAndFilterOptionsContainer, type SearchAndFilterOptionsContainerProps, type SearchAndFilterProps, SearchAndFilterProvider, type SearchAndFilterProviderProps, SearchAndFilterResultContainer, type SearchAndFilterResultContainerProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TEXTBOX_OPERATORS, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useSearchAndFilter, useShortcut, warningIcon, yesNoIcon };