@uniformdev/design-system 19.116.0 → 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/index.d.mts CHANGED
@@ -22986,85 +22986,151 @@ type ProgressListItem<IdType extends string = string> = {
22986
22986
  };
22987
22987
  declare const ProgressListItem: ({ children, status, error, errorLevel, autoEllipsis, }: ProgressListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22988
22988
 
22989
+ /** @deprecated beta - Filter editor component names */
22989
22990
  type FilterEditor = 'singleChoice' | 'multiChoice' | 'dateRange' | 'date' | 'text' | 'empty' | 'number' | 'numberRange' | 'statusMultiChoice' | 'statusSingleChoice';
22991
+ /** @deprecated beta - Input option props */
22990
22992
  type InputOption = {
22993
+ /** The label for the option */
22991
22994
  label: string;
22995
+ /** The value for the option */
22992
22996
  value?: string | undefined;
22997
+ /** The options for the option */
22993
22998
  options?: Array<FilterOption>;
22999
+ /** The operator options for the option */
22994
23000
  isDisabled?: boolean;
22995
23001
  };
23002
+ /** @deprecated beta - Operator option props */
22996
23003
  type Operator = {
23004
+ /** The label for the operator */
22997
23005
  label: string;
23006
+ /** The symbol for the operator */
22998
23007
  value?: string;
23008
+ /** The symbol for the operator */
22999
23009
  symbol?: string;
23010
+ /** The editor type for the operator */
23000
23011
  options?: Array<InputOption>;
23012
+ /** The editor type for the operator */
23001
23013
  editorType?: FilterEditor;
23002
23014
  };
23015
+ /** @deprecated beta - Filter option props */
23003
23016
  type FilterOption = {
23017
+ /** The label for the option */
23004
23018
  label: string;
23019
+ /** The value for the option */
23005
23020
  value: string;
23021
+ /** The options for the option */
23006
23022
  options?: FilterOption[];
23023
+ /** The operator options for the option */
23007
23024
  operatorOptions?: Operator[];
23025
+ /** The value options for the option */
23008
23026
  valueOptions?: InputOption[];
23009
23027
  };
23028
+ /** @deprecated beta - Filter selected and query value props */
23010
23029
  type Filter = {
23030
+ /** The field value selected */
23011
23031
  field: string;
23032
+ /** The operator value selected */
23012
23033
  operator: string;
23034
+ /** The value selected */
23013
23035
  value: string;
23014
23036
  };
23015
23037
 
23038
+ /** @deprecated beta - a list of possible operator values that sync with uniform search api */
23016
23039
  type OperatorValue = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin' | 'between' | 'ndef' | 'def' | 'match';
23017
23040
  type OperatorValueType = {
23018
23041
  value: OperatorValue;
23019
23042
  };
23043
+ /** @deprecated beta - a list of possible operator types */
23020
23044
  type OperatorType = Array<Omit<Operator, 'value'> & OperatorValueType>;
23045
+ /** @deprecated beta - uniform number operators */
23021
23046
  declare const NUMBER_OPERATORS: OperatorType;
23047
+ /** @deprecated beta - uniform date operators */
23022
23048
  declare const DATE_OPERATORS: OperatorType;
23049
+ /** @deprecated beta - uniform textbox operators */
23023
23050
  declare const TEXTBOX_OPERATORS: OperatorType;
23051
+ /** @deprecated beta - uniform rich text operators */
23024
23052
  declare const RICHTEXT_OPERATORS: OperatorType;
23053
+ /** @deprecated beta - uniform checkbox operators */
23025
23054
  declare const CHECKBOX_OPERATORS: OperatorType;
23055
+ /** @deprecated beta - uniform system field operators */
23026
23056
  declare const SYSTEM_FIELD_OPERATORS: OperatorType;
23027
23057
 
23058
+ /** @description beta - filter button type */
23028
23059
  type FilterButtonProps = {
23029
23060
  text?: string;
23030
23061
  filterCount?: number;
23031
23062
  } & HTMLAttributes<HTMLButtonElement>;
23063
+ /**
23064
+ * @deprecated beta - A filter button component used to display filter menu options
23065
+ * @example <FilterButton text="Filters" filterCount={3} />
23066
+ */
23032
23067
  declare const FilterButton: ({ text, filterCount, ...props }: FilterButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23033
23068
 
23069
+ /**
23070
+ * @deprecated beta - Default filter controls for search and filter
23071
+ * @example <FilterControls />
23072
+ */
23034
23073
  declare const FilterControls: ({ children }: {
23035
23074
  children?: ReactNode;
23036
23075
  }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23037
23076
 
23038
23077
  type FilterRowProps = {
23078
+ /** the index of the filter row */
23039
23079
  index: number;
23040
- paramOptions: Operator[];
23080
+ /** the list of filter options for each filter row */
23081
+ paramOptions: FilterOption[];
23082
+ /** function to trigger filter change events */
23041
23083
  onParamChange: (e: string) => void;
23084
+ /** the list of operator options for each filter row */
23042
23085
  operatorOptions: Operator[];
23086
+ /** function to trigger operator change events */
23043
23087
  onOperatorChange: (e: string) => void;
23088
+ /** function to trigger value change events */
23044
23089
  onValueChange: (e: string) => void;
23090
+ /** the list of value options for each filter row */
23045
23091
  valueOptions: InputOption[];
23046
23092
  };
23093
+ /** @deprecated beta - A filter item component used to display filter options */
23047
23094
  declare const FilterItem: ({ index, paramOptions, operatorOptions, valueOptions, onParamChange, onOperatorChange, onValueChange, }: FilterRowProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23095
+ /** @deprecated beta - A filter items component used to display filter options */
23048
23096
  declare const FilterItems: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23049
23097
 
23050
23098
  type SearchAndFilterOptionsContainerProps = {
23099
+ /** The button row to be displayed at the bottom of the container */
23051
23100
  buttonRow?: React$1.ReactNode;
23101
+ /** The children of the container */
23052
23102
  children: React$1.ReactNode;
23053
23103
  };
23104
+ /**
23105
+ * @deprecated beta - A container component for search and filter options
23106
+ * @example <SearchAndFilterOptionsContainer buttonRow={<button>Button</button>}>Children</SearchAndFilterOptionsContainer>
23107
+ * */
23054
23108
  declare const SearchAndFilterOptionsContainer: ({ buttonRow, children, }: SearchAndFilterOptionsContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23055
23109
  type FiltersProps = {
23110
+ /** The id of the filter menu */
23056
23111
  id: string;
23112
+ /** The text for the add button */
23057
23113
  addButtonText?: string;
23114
+ /** The text for the reset button */
23058
23115
  resetButtonText?: string;
23116
+ /** The text for the filter title */
23059
23117
  filterTitle?: string;
23118
+ /** If the add button should be disabled */
23060
23119
  isAddDisabled?: boolean;
23120
+ /** The children of the filter menu */
23061
23121
  children: React$1.ReactNode;
23062
23122
  };
23123
+ /**
23124
+ * @deprecated beta - A filter menu component used to display filter options
23125
+ * @example <FilterMenu id="search-and-filter-options">Children</FilterMenu>
23126
+ * */
23063
23127
  declare const FilterMenu: ({ id, addButtonText, isAddDisabled, resetButtonText, filterTitle, children, }: FiltersProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23064
23128
 
23065
23129
  type SearchAndFilterProviderProps = {
23066
23130
  /** sets the filter values */
23067
23131
  filters: Filter[];
23132
+ /** function to trigger search change event */
23133
+ onSearchChange: (term: string) => void;
23068
23134
  /** function to trigger filter change events */
23069
23135
  onChange: (filters: Filter[]) => void;
23070
23136
  /** sets the list of filter options for each filter row */
@@ -23075,7 +23141,7 @@ type SearchAndFilterProviderProps = {
23075
23141
  type SearchAndFilterContextProps = {
23076
23142
  /** the search term value */
23077
23143
  searchTerm: string;
23078
- /** sets teh search term value */
23144
+ /** sets the search term value */
23079
23145
  setSearchTerm: (term: string) => void;
23080
23146
  /** current filter visibility */
23081
23147
  filterVisibility: boolean;
@@ -23097,11 +23163,18 @@ type SearchAndFilterContextProps = {
23097
23163
  validFilterQuery: Filter[] | undefined;
23098
23164
  };
23099
23165
  declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProps>;
23100
- declare const SearchAndFilterProvider: ({ filters, filterOptions, onChange, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23166
+ /**
23167
+ * @deprecated beta - Search and filter provider
23168
+ * @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
23169
+ * */
23170
+ declare const SearchAndFilterProvider: ({ filters, filterOptions, onSearchChange, onChange, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23171
+ /** @deprecated beta - Search and filter hook
23172
+ * @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
23173
+ */
23101
23174
  declare const useSearchAndFilter: () => {
23102
23175
  /** the search term value */
23103
23176
  searchTerm: string;
23104
- /** sets teh search term value */
23177
+ /** sets the search term value */
23105
23178
  setSearchTerm: (term: string) => void;
23106
23179
  /** current filter visibility */
23107
23180
  filterVisibility: boolean;
@@ -23124,10 +23197,16 @@ declare const useSearchAndFilter: () => {
23124
23197
  };
23125
23198
 
23126
23199
  type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
23200
+ /** The filter controls to be displayed
23201
+ * @default '<FilterControls />'
23202
+ */
23127
23203
  filterControls?: React$1.ReactNode;
23204
+ /** The view switch controls to be displayed */
23205
+ viewSwitchControls?: React$1.ReactNode;
23206
+ /** The children of the search and filter component */
23128
23207
  children?: React$1.ReactNode;
23129
23208
  };
23130
- declare const SearchAndFilter: ({ filters, filterOptions, filterControls, children, onChange, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23209
+ declare const SearchAndFilter: ({ filters, filterOptions, filterControls, viewSwitchControls, children, onChange, onSearchChange, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23131
23210
 
23132
23211
  type SegmentedControlOption<TValue extends string = string> = {
23133
23212
  value: TValue;
package/dist/index.d.ts CHANGED
@@ -22986,85 +22986,151 @@ type ProgressListItem<IdType extends string = string> = {
22986
22986
  };
22987
22987
  declare const ProgressListItem: ({ children, status, error, errorLevel, autoEllipsis, }: ProgressListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22988
22988
 
22989
+ /** @deprecated beta - Filter editor component names */
22989
22990
  type FilterEditor = 'singleChoice' | 'multiChoice' | 'dateRange' | 'date' | 'text' | 'empty' | 'number' | 'numberRange' | 'statusMultiChoice' | 'statusSingleChoice';
22991
+ /** @deprecated beta - Input option props */
22990
22992
  type InputOption = {
22993
+ /** The label for the option */
22991
22994
  label: string;
22995
+ /** The value for the option */
22992
22996
  value?: string | undefined;
22997
+ /** The options for the option */
22993
22998
  options?: Array<FilterOption>;
22999
+ /** The operator options for the option */
22994
23000
  isDisabled?: boolean;
22995
23001
  };
23002
+ /** @deprecated beta - Operator option props */
22996
23003
  type Operator = {
23004
+ /** The label for the operator */
22997
23005
  label: string;
23006
+ /** The symbol for the operator */
22998
23007
  value?: string;
23008
+ /** The symbol for the operator */
22999
23009
  symbol?: string;
23010
+ /** The editor type for the operator */
23000
23011
  options?: Array<InputOption>;
23012
+ /** The editor type for the operator */
23001
23013
  editorType?: FilterEditor;
23002
23014
  };
23015
+ /** @deprecated beta - Filter option props */
23003
23016
  type FilterOption = {
23017
+ /** The label for the option */
23004
23018
  label: string;
23019
+ /** The value for the option */
23005
23020
  value: string;
23021
+ /** The options for the option */
23006
23022
  options?: FilterOption[];
23023
+ /** The operator options for the option */
23007
23024
  operatorOptions?: Operator[];
23025
+ /** The value options for the option */
23008
23026
  valueOptions?: InputOption[];
23009
23027
  };
23028
+ /** @deprecated beta - Filter selected and query value props */
23010
23029
  type Filter = {
23030
+ /** The field value selected */
23011
23031
  field: string;
23032
+ /** The operator value selected */
23012
23033
  operator: string;
23034
+ /** The value selected */
23013
23035
  value: string;
23014
23036
  };
23015
23037
 
23038
+ /** @deprecated beta - a list of possible operator values that sync with uniform search api */
23016
23039
  type OperatorValue = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin' | 'between' | 'ndef' | 'def' | 'match';
23017
23040
  type OperatorValueType = {
23018
23041
  value: OperatorValue;
23019
23042
  };
23043
+ /** @deprecated beta - a list of possible operator types */
23020
23044
  type OperatorType = Array<Omit<Operator, 'value'> & OperatorValueType>;
23045
+ /** @deprecated beta - uniform number operators */
23021
23046
  declare const NUMBER_OPERATORS: OperatorType;
23047
+ /** @deprecated beta - uniform date operators */
23022
23048
  declare const DATE_OPERATORS: OperatorType;
23049
+ /** @deprecated beta - uniform textbox operators */
23023
23050
  declare const TEXTBOX_OPERATORS: OperatorType;
23051
+ /** @deprecated beta - uniform rich text operators */
23024
23052
  declare const RICHTEXT_OPERATORS: OperatorType;
23053
+ /** @deprecated beta - uniform checkbox operators */
23025
23054
  declare const CHECKBOX_OPERATORS: OperatorType;
23055
+ /** @deprecated beta - uniform system field operators */
23026
23056
  declare const SYSTEM_FIELD_OPERATORS: OperatorType;
23027
23057
 
23058
+ /** @description beta - filter button type */
23028
23059
  type FilterButtonProps = {
23029
23060
  text?: string;
23030
23061
  filterCount?: number;
23031
23062
  } & HTMLAttributes<HTMLButtonElement>;
23063
+ /**
23064
+ * @deprecated beta - A filter button component used to display filter menu options
23065
+ * @example <FilterButton text="Filters" filterCount={3} />
23066
+ */
23032
23067
  declare const FilterButton: ({ text, filterCount, ...props }: FilterButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23033
23068
 
23069
+ /**
23070
+ * @deprecated beta - Default filter controls for search and filter
23071
+ * @example <FilterControls />
23072
+ */
23034
23073
  declare const FilterControls: ({ children }: {
23035
23074
  children?: ReactNode;
23036
23075
  }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23037
23076
 
23038
23077
  type FilterRowProps = {
23078
+ /** the index of the filter row */
23039
23079
  index: number;
23040
- paramOptions: Operator[];
23080
+ /** the list of filter options for each filter row */
23081
+ paramOptions: FilterOption[];
23082
+ /** function to trigger filter change events */
23041
23083
  onParamChange: (e: string) => void;
23084
+ /** the list of operator options for each filter row */
23042
23085
  operatorOptions: Operator[];
23086
+ /** function to trigger operator change events */
23043
23087
  onOperatorChange: (e: string) => void;
23088
+ /** function to trigger value change events */
23044
23089
  onValueChange: (e: string) => void;
23090
+ /** the list of value options for each filter row */
23045
23091
  valueOptions: InputOption[];
23046
23092
  };
23093
+ /** @deprecated beta - A filter item component used to display filter options */
23047
23094
  declare const FilterItem: ({ index, paramOptions, operatorOptions, valueOptions, onParamChange, onOperatorChange, onValueChange, }: FilterRowProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23095
+ /** @deprecated beta - A filter items component used to display filter options */
23048
23096
  declare const FilterItems: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23049
23097
 
23050
23098
  type SearchAndFilterOptionsContainerProps = {
23099
+ /** The button row to be displayed at the bottom of the container */
23051
23100
  buttonRow?: React$1.ReactNode;
23101
+ /** The children of the container */
23052
23102
  children: React$1.ReactNode;
23053
23103
  };
23104
+ /**
23105
+ * @deprecated beta - A container component for search and filter options
23106
+ * @example <SearchAndFilterOptionsContainer buttonRow={<button>Button</button>}>Children</SearchAndFilterOptionsContainer>
23107
+ * */
23054
23108
  declare const SearchAndFilterOptionsContainer: ({ buttonRow, children, }: SearchAndFilterOptionsContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23055
23109
  type FiltersProps = {
23110
+ /** The id of the filter menu */
23056
23111
  id: string;
23112
+ /** The text for the add button */
23057
23113
  addButtonText?: string;
23114
+ /** The text for the reset button */
23058
23115
  resetButtonText?: string;
23116
+ /** The text for the filter title */
23059
23117
  filterTitle?: string;
23118
+ /** If the add button should be disabled */
23060
23119
  isAddDisabled?: boolean;
23120
+ /** The children of the filter menu */
23061
23121
  children: React$1.ReactNode;
23062
23122
  };
23123
+ /**
23124
+ * @deprecated beta - A filter menu component used to display filter options
23125
+ * @example <FilterMenu id="search-and-filter-options">Children</FilterMenu>
23126
+ * */
23063
23127
  declare const FilterMenu: ({ id, addButtonText, isAddDisabled, resetButtonText, filterTitle, children, }: FiltersProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23064
23128
 
23065
23129
  type SearchAndFilterProviderProps = {
23066
23130
  /** sets the filter values */
23067
23131
  filters: Filter[];
23132
+ /** function to trigger search change event */
23133
+ onSearchChange: (term: string) => void;
23068
23134
  /** function to trigger filter change events */
23069
23135
  onChange: (filters: Filter[]) => void;
23070
23136
  /** sets the list of filter options for each filter row */
@@ -23075,7 +23141,7 @@ type SearchAndFilterProviderProps = {
23075
23141
  type SearchAndFilterContextProps = {
23076
23142
  /** the search term value */
23077
23143
  searchTerm: string;
23078
- /** sets teh search term value */
23144
+ /** sets the search term value */
23079
23145
  setSearchTerm: (term: string) => void;
23080
23146
  /** current filter visibility */
23081
23147
  filterVisibility: boolean;
@@ -23097,11 +23163,18 @@ type SearchAndFilterContextProps = {
23097
23163
  validFilterQuery: Filter[] | undefined;
23098
23164
  };
23099
23165
  declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProps>;
23100
- declare const SearchAndFilterProvider: ({ filters, filterOptions, onChange, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23166
+ /**
23167
+ * @deprecated beta - Search and filter provider
23168
+ * @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
23169
+ * */
23170
+ declare const SearchAndFilterProvider: ({ filters, filterOptions, onSearchChange, onChange, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23171
+ /** @deprecated beta - Search and filter hook
23172
+ * @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
23173
+ */
23101
23174
  declare const useSearchAndFilter: () => {
23102
23175
  /** the search term value */
23103
23176
  searchTerm: string;
23104
- /** sets teh search term value */
23177
+ /** sets the search term value */
23105
23178
  setSearchTerm: (term: string) => void;
23106
23179
  /** current filter visibility */
23107
23180
  filterVisibility: boolean;
@@ -23124,10 +23197,16 @@ declare const useSearchAndFilter: () => {
23124
23197
  };
23125
23198
 
23126
23199
  type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
23200
+ /** The filter controls to be displayed
23201
+ * @default '<FilterControls />'
23202
+ */
23127
23203
  filterControls?: React$1.ReactNode;
23204
+ /** The view switch controls to be displayed */
23205
+ viewSwitchControls?: React$1.ReactNode;
23206
+ /** The children of the search and filter component */
23128
23207
  children?: React$1.ReactNode;
23129
23208
  };
23130
- declare const SearchAndFilter: ({ filters, filterOptions, filterControls, children, onChange, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23209
+ declare const SearchAndFilter: ({ filters, filterOptions, filterControls, viewSwitchControls, children, onChange, onSearchChange, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23131
23210
 
23132
23211
  type SegmentedControlOption<TValue extends string = string> = {
23133
23212
  value: TValue;