@hitachivantara/uikit-react-core 6.0.0-next.2 → 6.0.0-next.3

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.ts CHANGED
@@ -60,6 +60,8 @@ import { ReducerTableState } from 'react-table';
60
60
  import { RefAttributes } from 'react';
61
61
  import { Renderer } from 'react-table';
62
62
  import { Row } from 'react-table';
63
+ import { SelectOption } from '@mui/base/useOption';
64
+ import { SelectValue } from '@mui/base/useSelect';
63
65
  import { SlideProps } from '@mui/material/Slide';
64
66
  import { SliderProps } from 'rc-slider';
65
67
  import { SliderRef } from 'rc-slider';
@@ -639,6 +641,16 @@ declare const DEFAULT_LABELS_3: {
639
641
  };
640
642
 
641
643
  declare const DEFAULT_LABELS_4: {
644
+ backwards: string;
645
+ forwards: string;
646
+ };
647
+
648
+ declare const DEFAULT_LABELS_5: {
649
+ recommendedColorsLabel: string;
650
+ customColorsLabel: string;
651
+ };
652
+
653
+ declare const DEFAULT_LABELS_6: {
642
654
  /** The label of the clear button. */
643
655
  clearButtonLabel: string;
644
656
  /** The tooltip of the reveal password button when the password is hidden. */
@@ -649,16 +661,6 @@ declare const DEFAULT_LABELS_4: {
649
661
  searchButtonLabel: string;
650
662
  };
651
663
 
652
- declare const DEFAULT_LABELS_5: {
653
- backwards: string;
654
- forwards: string;
655
- };
656
-
657
- declare const DEFAULT_LABELS_6: {
658
- recommendedColorsLabel: string;
659
- customColorsLabel: string;
660
- };
661
-
662
664
  declare const DEFAULT_LABELS_7: {
663
665
  /** Label for overwrite the default header behavior. */
664
666
  select: string | undefined;
@@ -788,8 +790,6 @@ export declare const dropDownMenuClasses: {
788
790
  menuList: string;
789
791
  };
790
792
 
791
- export declare const ds5: HvThemeStructure;
792
-
793
793
  export { EmotionContext }
794
794
 
795
795
  export declare const emptyStateClasses: {
@@ -915,7 +915,6 @@ export declare const headerClasses: {
915
915
  root: string;
916
916
  header: string;
917
917
  fixed: string;
918
- backgroundColor: string;
919
918
  };
920
919
 
921
920
  export declare const headerNavigationClasses: {
@@ -942,7 +941,7 @@ export declare interface HvAccordionProps extends HvBaseProps<HTMLDivElement, "o
942
941
  /** Content to be rendered. */
943
942
  children: React.ReactNode;
944
943
  /** The accordion label button. */
945
- label?: string;
944
+ label?: React.ReactNode;
946
945
  /** The function that will be executed whenever the accordion toggles. It will receive the state of the accordion. */
947
946
  onChange?: (event: React.SyntheticEvent, value: boolean) => void;
948
947
  /** Whether the accordion is open or not. If this property is defined the accordion must be fully controlled. */
@@ -1257,7 +1256,7 @@ export declare interface HvBannerProps extends Omit<SnackbarProps, "anchorOrigin
1257
1256
  * */
1258
1257
  onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
1259
1258
  /** The message to display. */
1260
- label?: string;
1259
+ label?: React.ReactNode;
1261
1260
  /** The anchor of the Snackbar. */
1262
1261
  anchorOrigin?: "top" | "bottom";
1263
1262
  /** Variant of the snackbar. */
@@ -2056,7 +2055,7 @@ declare interface HvCarouselControlsProps extends HvBaseProps<HTMLDivElement>, P
2056
2055
  onPreviousClick?: React.MouseEventHandler<HTMLButtonElement>;
2057
2056
  onNextClick?: React.MouseEventHandler<HTMLButtonElement>;
2058
2057
  /** Labels used on the component. */
2059
- labels?: Partial<typeof DEFAULT_LABELS_5>;
2058
+ labels?: Partial<typeof DEFAULT_LABELS_4>;
2060
2059
  }
2061
2060
 
2062
2061
  export declare interface HvCarouselProps extends HvBaseProps<HTMLDivElement, "title" | "onChange"> {
@@ -2183,7 +2182,7 @@ export declare type HvCheckBoxClasses = ExtractNames<typeof useClasses_36>;
2183
2182
  */
2184
2183
  export declare const HvCheckBoxGroup: ForwardRefExoticComponent<HvCheckBoxGroupProps & RefAttributes<HTMLDivElement>>;
2185
2184
 
2186
- export declare type HvCheckBoxGroupClasses = ExtractNames<typeof useClasses_48>;
2185
+ export declare type HvCheckBoxGroupClasses = ExtractNames<typeof useClasses_47>;
2187
2186
 
2188
2187
  export declare interface HvCheckBoxGroupProps extends HvBaseProps<HTMLDivElement, "onChange"> {
2189
2188
  /**
@@ -2315,7 +2314,7 @@ export { HvColorAny }
2315
2314
  */
2316
2315
  export declare const HvColorPicker: ForwardRefExoticComponent<HvColorPickerProps & RefAttributes<HTMLDivElement>>;
2317
2316
 
2318
- export declare type HvColorPickerClasses = ExtractNames<typeof useClasses_49>;
2317
+ export declare type HvColorPickerClasses = ExtractNames<typeof useClasses_48>;
2319
2318
 
2320
2319
  export declare interface HvColorPickerProps {
2321
2320
  "aria-label"?: string;
@@ -2363,7 +2362,7 @@ export declare interface HvColorPickerProps {
2363
2362
  /** If `true`, the labels are shown. If `false`, they are not shown. */
2364
2363
  showLabels?: boolean;
2365
2364
  /** An object containing all the labels. */
2366
- labels?: Partial<typeof DEFAULT_LABELS_6>;
2365
+ labels?: Partial<typeof DEFAULT_LABELS_5>;
2367
2366
  /** Icon type for the input's end adornment. */
2368
2367
  dropdownIcon?: "arrow" | "colorPicker";
2369
2368
  /** If `true`, the input only shows an icon. If `false`, the input shows text and icons. */
@@ -2432,7 +2431,7 @@ declare type HvColumnWithStrictAccessor<D extends object = Record<string, unknow
2432
2431
  /** The container enables you to center your content horizontally and bound it to a specific breakpoint. */
2433
2432
  export declare const HvContainer: ForwardRefExoticComponent<Omit<HvContainerProps, "ref"> & RefAttributes<HTMLDivElement>>;
2434
2433
 
2435
- export declare type HvContainerClasses = ExtractNames<typeof useClasses_50>;
2434
+ export declare type HvContainerClasses = ExtractNames<typeof useClasses_49>;
2436
2435
 
2437
2436
  export declare interface HvContainerProps extends Omit<ContainerProps, "classes"> {
2438
2437
  /**
@@ -2461,7 +2460,7 @@ export declare interface HvContainerProps extends Omit<ContainerProps, "classes"
2461
2460
 
2462
2461
  export declare const HvControls: (props: HvControlsProps) => JSX_2.Element;
2463
2462
 
2464
- export declare type HvControlsClasses = ExtractNames<typeof useClasses_51>;
2463
+ export declare type HvControlsClasses = ExtractNames<typeof useClasses_50>;
2465
2464
 
2466
2465
  export declare interface HvControlsProps extends HvBaseProps {
2467
2466
  /**
@@ -3855,9 +3854,9 @@ export declare type HvInlineEditorProps<C extends React.ElementType = typeof HvI
3855
3854
  */
3856
3855
  export declare const HvInput: <InputElement extends HTMLElement = HTMLTextAreaElement | HTMLInputElement>(props: HvInputProps<InputElement> & RefAttributes<InputElement>) => React.ReactNode;
3857
3856
 
3858
- export declare type HvInputClasses = ExtractNames<typeof useClasses_46>;
3857
+ export declare type HvInputClasses = ExtractNames<typeof useClasses_56>;
3859
3858
 
3860
- export declare type HvInputLabels = Partial<typeof DEFAULT_LABELS_4>;
3859
+ export declare type HvInputLabels = Partial<typeof DEFAULT_LABELS_6>;
3861
3860
 
3862
3861
  export declare interface HvInputProps<InputElement extends HTMLElement = HTMLInputElement | HTMLTextAreaElement> extends Omit<HvBaseInputProps, "onChange" | "onBlur" | "onFocus" | "onKeyDown"> {
3863
3862
  /** @inheritdoc */
@@ -4014,7 +4013,7 @@ export declare interface HvLabelProps extends HvTypographyProps<"label"> {
4014
4013
 
4015
4014
  export declare const HvLeftControl: ({ id, classes: classesProp, className, children, placeholder, onSearch, hideSearch, searchProps, ...others }: HvLeftControlProps) => JSX_2.Element;
4016
4015
 
4017
- export declare type HvLeftControlClasses = ExtractNames<typeof useClasses_56>;
4016
+ export declare type HvLeftControlClasses = ExtractNames<typeof useClasses_55>;
4018
4017
 
4019
4018
  export declare interface HvLeftControlProps extends HvBaseProps {
4020
4019
  /** if `true` the hide sort by dropdown is not rendered */
@@ -4038,9 +4037,9 @@ export declare const HvList: (props: HvListProps) => JSX_2.Element | null;
4038
4037
  export declare type HvListClasses = ExtractNames<typeof useClasses_85>;
4039
4038
 
4040
4039
  /**
4041
- * A <b>list</b> is any enumeration of a set of items.
4042
- * The simple list is for continuous <b>vertical indexes of text or icons+text</b>. The content of these lists must be simple: ideally simples fields.
4043
- * This pattern is ideal for <b>selections</b>. It should be used inside a HvPanel.
4040
+ * A **list** is any enumeration of a set of items.
4041
+ * The simple list is for continuous **vertical indexes of text or icons+text**. The content of these lists must be simple: ideally simples fields.
4042
+ * This pattern is ideal for **selections**. It should be used inside an `HvPanel`.
4044
4043
  */
4045
4044
  export declare const HvListContainer: ForwardRefExoticComponent<HvListContainerProps & RefAttributes<HTMLUListElement>>;
4046
4045
 
@@ -4364,7 +4363,7 @@ export declare interface HvOverflowTooltipProps extends HvBaseProps {
4364
4363
  */
4365
4364
  export declare const HvPagination: ForwardRefExoticComponent<HvPaginationProps & RefAttributes<HTMLDivElement>>;
4366
4365
 
4367
- export declare type HvPaginationClasses = ExtractNames<typeof useClasses_47>;
4366
+ export declare type HvPaginationClasses = ExtractNames<typeof useClasses_46>;
4368
4367
 
4369
4368
  export declare type HvPaginationLabels = Partial<typeof DEFAULT_LABELS_3>;
4370
4369
 
@@ -4398,7 +4397,7 @@ export declare interface HvPaginationProps extends HvBaseProps {
4398
4397
  /** Other props to pagination component. */
4399
4398
  navigationProps?: React.HTMLAttributes<HTMLDivElement>;
4400
4399
  /** Extra properties passed to the input component representing the current pages. */
4401
- currentPageInputProps?: HvInputProps;
4400
+ currentPageInputProps?: HvBaseInputProps;
4402
4401
  /** A Jss Object used to override or extend the styles applied to the component. */
4403
4402
  classes?: HvPaginationClasses;
4404
4403
  }
@@ -4506,7 +4505,7 @@ export declare interface HvProviderProps {
4506
4505
  /**
4507
4506
  * The active theme. It must be one of the themes passed to `themes`.
4508
4507
  *
4509
- * If no value is provided, the first theme from the `themes` list is used. If no `themes` list is provided, the `ds5` theme will be used.
4508
+ * If no value is provided, the first theme from the `themes` list is used. If no `themes` list is provided, the `next` theme will be used.
4510
4509
  */
4511
4510
  theme?: HvTheme | HvThemeStructure;
4512
4511
  /**
@@ -4522,7 +4521,7 @@ export declare interface HvProviderProps {
4522
4521
  * This component allows you to create conditions and group them using logical operators.
4523
4522
  * It outputs a structured set of rules which can be easily parsed to create SQL/NoSQL/whatever queries.
4524
4523
  *
4525
- * Take a look at the [usage page](https://lumada-design.github.io/uikit/master/?path=/docs/widgets-query-builder-usage--docs) to learn more about this component.
4524
+ * Take a look at the [usage page](https://pentaho.github.io/uikit-docs/master/components/query-builder) to learn more about this component.
4526
4525
  */
4527
4526
  export declare const HvQueryBuilder: (props: HvQueryBuilderProps) => JSX_2.Element;
4528
4527
 
@@ -5252,6 +5251,8 @@ export declare interface HvSelectProps<OptionValue extends {}, Multiple extends
5252
5251
  classes?: HvSelectClasses;
5253
5252
  placeholder?: React.ReactNode;
5254
5253
  autoComplete?: string;
5254
+ /** Custom render function for rendering the selected value. */
5255
+ renderValue?: (option: SelectValue<SelectOption<OptionValue>, Multiple>) => React.ReactNode;
5255
5256
  /** Whether the width of the select panel can vary independently. */
5256
5257
  variableWidth?: boolean;
5257
5258
  /**
@@ -5774,7 +5775,7 @@ export declare type HvTabClasses = ExtractNames<typeof useClasses_115>;
5774
5775
  * You can rely on these **elements** when your table doesn’t have many interactions or you need it to be very lightweight.
5775
5776
  *
5776
5777
  * For better data handling and **advanced features** we recommend the use of the utility hooks collection.
5777
- * See the [Table Hooks documentation](https://lumada-design.github.io/uikit/master/?path=/docs/visualizations-table-table-hooks--docs) for more details.
5778
+ * See the [Table Hooks documentation](https://pentaho.github.io/uikit-docs/master/components/table#usehvtable-hooks) for more details.
5778
5779
  */
5779
5780
  export declare const HvTable: ForwardRefExoticComponent<HvTableProps & RefAttributes<HTMLElement>>;
5780
5781
 
@@ -5818,7 +5819,7 @@ export declare const HvTableCell: ForwardRefExoticComponent<HvTableCellProps & R
5818
5819
 
5819
5820
  export declare type HvTableCellAlign = "center" | "inherit" | "justify" | "left" | "right";
5820
5821
 
5821
- export declare type HvTableCellClasses = ExtractNames<typeof useClasses_52>;
5822
+ export declare type HvTableCellClasses = ExtractNames<typeof useClasses_51>;
5822
5823
 
5823
5824
  export declare interface HvTableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, "align"> {
5824
5825
  /** The component used for the root node. Either a string to use a HTML element or a component. Defaults to td. */
@@ -5857,7 +5858,7 @@ export declare type HvTableCellType = "body" | "footer" | "head";
5857
5858
 
5858
5859
  export declare type HvTableCellVariant = "checkbox" | "expand" | "actions" | "default" | "none";
5859
5860
 
5860
- export declare type HvTableClasses = ExtractNames<typeof useClasses_55>;
5861
+ export declare type HvTableClasses = ExtractNames<typeof useClasses_54>;
5861
5862
 
5862
5863
  export declare type HvTableColumnConfig<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvColumnGroup<D, H> | HvColumnWithLooseAccessor<D, H> | HvColumnWithStrictAccessor<D, H>;
5863
5864
 
@@ -5903,7 +5904,7 @@ export declare type HvTableHeadClasses = ExtractNames<typeof useClasses_112>;
5903
5904
  */
5904
5905
  export declare const HvTableHeader: ForwardRefExoticComponent<HvTableHeaderProps & RefAttributes<HTMLElement>>;
5905
5906
 
5906
- export declare type HvTableHeaderClasses = ExtractNames<typeof useClasses_54>;
5907
+ export declare type HvTableHeaderClasses = ExtractNames<typeof useClasses_53>;
5907
5908
 
5908
5909
  export declare interface HvTableHeaderProps extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, "align"> {
5909
5910
  /** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */
@@ -6044,7 +6045,7 @@ export declare interface HvTableProps extends React.TableHTMLAttributes<HTMLTabl
6044
6045
  */
6045
6046
  export declare const HvTableRow: ForwardRefExoticComponent<HvTableRowProps & RefAttributes<HTMLElement>>;
6046
6047
 
6047
- export declare type HvTableRowClasses = ExtractNames<typeof useClasses_53>;
6048
+ export declare type HvTableRowClasses = ExtractNames<typeof useClasses_52>;
6048
6049
 
6049
6050
  export declare interface HvTableRowProps extends HvBaseProps<HTMLTableRowElement, "children"> {
6050
6051
  /** Content to be rendered */
@@ -7150,6 +7151,8 @@ export declare type NavigationData<T extends React.ElementType = "a"> = React.Co
7150
7151
 
7151
7152
  export declare type NavigationMode = "treeview" | "navigation" | "slider";
7152
7153
 
7154
+ export declare const next: HvThemeStructure;
7155
+
7153
7156
  export declare const optionClasses: {
7154
7157
  root: string;
7155
7158
  highlighted: string;
@@ -7176,23 +7179,19 @@ export declare const paginationClasses: {
7176
7179
  pageSizeHeader: string;
7177
7180
  pageSizeRoot: string;
7178
7181
  pageSizeTextContainer: string;
7179
- totalPagesTextContainer: string;
7180
- pageSizeOptionsSelect: string;
7181
7182
  pageNavigator: string;
7182
7183
  iconContainer: string;
7183
7184
  icon: string;
7184
7185
  pageInfo: string;
7185
7186
  pageJump: string;
7186
7187
  pageSizeInput: string;
7187
- pageSizeInputRoot: string;
7188
- pageSizeInputContainer: string;
7189
7188
  };
7190
7189
 
7191
7190
  export declare const panelClasses: {
7192
7191
  root: string;
7193
7192
  };
7194
7193
 
7195
- export declare const pentahoPlus: HvThemeStructure;
7194
+ export declare const pentaho: HvThemeStructure;
7196
7195
 
7197
7196
  declare type PolymorphicComponent<C extends React.ElementType, Props = {}> = React.PropsWithChildren<Props & AsProp<C>> & FixComponentProps<Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>>;
7198
7197
 
@@ -7202,13 +7201,6 @@ export declare type PolymorphicComponentRef<C extends React.ElementType, Props =
7202
7201
 
7203
7202
  export declare type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>["ref"];
7204
7203
 
7205
- /**
7206
- * Process the themes provided to the HvProvider:
7207
- * - Cleans themes with the same name
7208
- * - Returns the default if the list is empty (ds5)
7209
- */
7210
- export declare const processThemes: (themesList?: (HvTheme | HvThemeStructure)[]) => (HvTheme | HvThemeStructure)[];
7211
-
7212
7204
  export declare const progressBarClasses: {
7213
7205
  root: string;
7214
7206
  progress: string;
@@ -7663,8 +7655,8 @@ export declare const textAreaClasses: {
7663
7655
  export { theme }
7664
7656
 
7665
7657
  export declare const themes: {
7666
- ds5: HvThemeStructure;
7667
- pentahoPlus: HvThemeStructure;
7658
+ next: HvThemeStructure;
7659
+ pentaho: HvThemeStructure;
7668
7660
  };
7669
7661
 
7670
7662
  export declare const timeAgoClasses: {
@@ -8756,53 +8748,25 @@ declare const useClasses_45: (classesProp?: Partial<Record<"image" | "slide", st
8756
8748
  readonly cx: (...args: any) => string;
8757
8749
  };
8758
8750
 
8759
- declare const useClasses_46: (classesProp?: Partial<Record<"label" | "icon" | "error" | "input" | "root" | "description" | "labelContainer" | "adornmentsBox" | "adornmentButton" | "iconClear" | "hasSuggestions" | "suggestionsContainer" | "suggestionList" | "inputRoot" | "inputRootFocused" | "inputRootDisabled" | "inputRootMultiline", string>>, addStatic?: boolean) => {
8760
- readonly classes: {
8761
- root: string;
8762
- labelContainer: string;
8763
- label: string;
8764
- description: string;
8765
- adornmentsBox: string;
8766
- icon: string;
8767
- adornmentButton: string;
8768
- iconClear: string;
8769
- hasSuggestions: string;
8770
- suggestionsContainer: string;
8771
- suggestionList: string;
8772
- input: string;
8773
- inputRoot: string;
8774
- inputRootFocused: string;
8775
- inputRootDisabled: string;
8776
- inputRootMultiline: string;
8777
- error: string;
8778
- };
8779
- readonly css: any;
8780
- readonly cx: (...args: any) => string;
8781
- };
8782
-
8783
- declare const useClasses_47: (classesProp?: Partial<Record<"icon" | "root" | "iconContainer" | "pageSizeOptions" | "pageSizeHeader" | "pageSizeRoot" | "pageSizeTextContainer" | "totalPagesTextContainer" | "pageSizeOptionsSelect" | "pageNavigator" | "pageInfo" | "pageJump" | "pageSizeInput" | "pageSizeInputRoot" | "pageSizeInputContainer", string>>, addStatic?: boolean) => {
8751
+ declare const useClasses_46: (classesProp?: Partial<Record<"icon" | "root" | "iconContainer" | "pageSizeOptions" | "pageSizeHeader" | "pageSizeRoot" | "pageSizeTextContainer" | "pageNavigator" | "pageInfo" | "pageJump" | "pageSizeInput", string>>, addStatic?: boolean) => {
8784
8752
  readonly classes: {
8785
8753
  root: string;
8786
8754
  pageSizeOptions: string;
8787
8755
  pageSizeHeader: string;
8788
8756
  pageSizeRoot: string;
8789
8757
  pageSizeTextContainer: string;
8790
- totalPagesTextContainer: string;
8791
- pageSizeOptionsSelect: string;
8792
8758
  pageNavigator: string;
8793
8759
  iconContainer: string;
8794
8760
  icon: string;
8795
8761
  pageInfo: string;
8796
8762
  pageJump: string;
8797
8763
  pageSizeInput: string;
8798
- pageSizeInputRoot: string;
8799
- pageSizeInputContainer: string;
8800
8764
  };
8801
8765
  readonly css: any;
8802
8766
  readonly cx: (...args: any) => string;
8803
8767
  };
8804
8768
 
8805
- declare const useClasses_48: (classesProp?: Partial<Record<"label" | "horizontal" | "vertical" | "error" | "group" | "root" | "invalid" | "selectAll", string>>, addStatic?: boolean) => {
8769
+ declare const useClasses_47: (classesProp?: Partial<Record<"label" | "horizontal" | "vertical" | "error" | "group" | "root" | "invalid" | "selectAll", string>>, addStatic?: boolean) => {
8806
8770
  readonly classes: {
8807
8771
  root: string;
8808
8772
  label: string;
@@ -8817,7 +8781,7 @@ declare const useClasses_48: (classesProp?: Partial<Record<"label" | "horizontal
8817
8781
  readonly cx: (...args: any) => string;
8818
8782
  };
8819
8783
 
8820
- declare const useClasses_49: (classesProp?: Partial<Record<"label" | "root" | "description" | "panel" | "labelContainer" | "headerColorValue" | "headerColorIcon" | "colorPicker" | "colorPickerIcon" | "recommendedColorsRoot" | "dropdownRootIconOnly" | "headerColorIconOnly" | "pickerFields", string>>, addStatic?: boolean) => {
8784
+ declare const useClasses_48: (classesProp?: Partial<Record<"label" | "root" | "description" | "panel" | "labelContainer" | "headerColorValue" | "headerColorIcon" | "colorPicker" | "colorPickerIcon" | "recommendedColorsRoot" | "dropdownRootIconOnly" | "headerColorIconOnly" | "pickerFields", string>>, addStatic?: boolean) => {
8821
8785
  readonly classes: {
8822
8786
  root: string;
8823
8787
  labelContainer: string;
@@ -8837,6 +8801,21 @@ declare const useClasses_49: (classesProp?: Partial<Record<"label" | "root" | "d
8837
8801
  readonly cx: (...args: any) => string;
8838
8802
  };
8839
8803
 
8804
+ declare const useClasses_49: (classesProp?: Partial<Record<"fixed" | "root" | "disableGutters" | "maxWidthXs" | "maxWidthSm" | "maxWidthMd" | "maxWidthLg" | "maxWidthXl", string>>, addStatic?: boolean) => {
8805
+ readonly classes: {
8806
+ root: string;
8807
+ disableGutters: string;
8808
+ fixed: string;
8809
+ maxWidthXs: string;
8810
+ maxWidthSm: string;
8811
+ maxWidthMd: string;
8812
+ maxWidthLg: string;
8813
+ maxWidthXl: string;
8814
+ };
8815
+ readonly css: any;
8816
+ readonly cx: (...args: any) => string;
8817
+ };
8818
+
8840
8819
  declare const useClasses_5: (classesProp?: Partial<Record<"condensed" | "separator" | "disabled" | "selected" | "root" | "focus" | "startAdornment" | "endAdornment" | "interactive" | "gutters", string>>, addStatic?: boolean) => {
8841
8820
  readonly classes: {
8842
8821
  root: string;
@@ -8854,22 +8833,7 @@ declare const useClasses_5: (classesProp?: Partial<Record<"condensed" | "separat
8854
8833
  readonly cx: (...args: any) => string;
8855
8834
  };
8856
8835
 
8857
- declare const useClasses_50: (classesProp?: Partial<Record<"fixed" | "root" | "disableGutters" | "maxWidthXs" | "maxWidthSm" | "maxWidthMd" | "maxWidthLg" | "maxWidthXl", string>>, addStatic?: boolean) => {
8858
- readonly classes: {
8859
- root: string;
8860
- disableGutters: string;
8861
- fixed: string;
8862
- maxWidthXs: string;
8863
- maxWidthSm: string;
8864
- maxWidthMd: string;
8865
- maxWidthLg: string;
8866
- maxWidthXl: string;
8867
- };
8868
- readonly css: any;
8869
- readonly cx: (...args: any) => string;
8870
- };
8871
-
8872
- declare const useClasses_51: (classesProp?: Partial<Record<"section" | "root" | "rightSection" | "leftSection", string>>, addStatic?: boolean) => {
8836
+ declare const useClasses_50: (classesProp?: Partial<Record<"section" | "root" | "rightSection" | "leftSection", string>>, addStatic?: boolean) => {
8873
8837
  readonly classes: {
8874
8838
  root: string;
8875
8839
  section: string;
@@ -8880,7 +8844,7 @@ declare const useClasses_51: (classesProp?: Partial<Record<"section" | "root" |
8880
8844
  readonly cx: (...args: any) => string;
8881
8845
  };
8882
8846
 
8883
- declare const useClasses_52: (classesProp?: Partial<Record<"body" | "footer" | "head" | "root" | "resizable" | "sorted" | "alignLeft" | "alignCenter" | "alignRight" | "alignJustify" | "variantNone" | "variantCheckbox" | "variantActions" | "variantExpand" | "variantList" | "variantListHead" | "variantListactions" | "variantListcheckbox" | "stickyColumn" | "stickyColumnMostLeft" | "stickyColumnLeastRight" | "groupColumnMostLeft" | "groupColumnMostRight" | "resizing", string>>, addStatic?: boolean) => {
8847
+ declare const useClasses_51: (classesProp?: Partial<Record<"body" | "footer" | "head" | "root" | "resizable" | "sorted" | "alignLeft" | "alignCenter" | "alignRight" | "alignJustify" | "variantNone" | "variantCheckbox" | "variantActions" | "variantExpand" | "variantList" | "variantListHead" | "variantListactions" | "variantListcheckbox" | "stickyColumn" | "stickyColumnMostLeft" | "stickyColumnLeastRight" | "groupColumnMostLeft" | "groupColumnMostRight" | "resizing", string>>, addStatic?: boolean) => {
8884
8848
  readonly classes: {
8885
8849
  root: string;
8886
8850
  head: string;
@@ -8911,7 +8875,7 @@ declare const useClasses_52: (classesProp?: Partial<Record<"body" | "footer" | "
8911
8875
  readonly cx: (...args: any) => string;
8912
8876
  };
8913
8877
 
8914
- declare const useClasses_53: (classesProp?: Partial<Record<"body" | "expanded" | "footer" | "head" | "selected" | "root" | "variantList" | "variantListHead" | "striped" | "hover", string>>, addStatic?: boolean) => {
8878
+ declare const useClasses_52: (classesProp?: Partial<Record<"body" | "expanded" | "footer" | "head" | "selected" | "root" | "variantList" | "variantListHead" | "striped" | "hover", string>>, addStatic?: boolean) => {
8915
8879
  readonly classes: {
8916
8880
  root: string;
8917
8881
  head: string;
@@ -8928,7 +8892,7 @@ declare const useClasses_53: (classesProp?: Partial<Record<"body" | "expanded" |
8928
8892
  readonly cx: (...args: any) => string;
8929
8893
  };
8930
8894
 
8931
- declare const useClasses_54: (classesProp?: Partial<Record<"body" | "resizer" | "footer" | "head" | "root" | "resizable" | "sorted" | "alignLeft" | "alignCenter" | "alignRight" | "alignJustify" | "variantNone" | "variantCheckbox" | "variantActions" | "variantExpand" | "variantList" | "stickyColumn" | "stickyColumnMostLeft" | "stickyColumnLeastRight" | "groupColumnMostLeft" | "groupColumnMostRight" | "resizing" | "headerContent" | "headerText" | "headerParagraph" | "sortableHeaderText" | "sortable" | "sortButton" | "sortIcon" | "alignFlexLeft" | "alignFlexRight" | "alignFlexCenter" | "alignFlexJustify", string>>, addStatic?: boolean) => {
8895
+ declare const useClasses_53: (classesProp?: Partial<Record<"body" | "resizer" | "footer" | "head" | "root" | "resizable" | "sorted" | "alignLeft" | "alignCenter" | "alignRight" | "alignJustify" | "variantNone" | "variantCheckbox" | "variantActions" | "variantExpand" | "variantList" | "stickyColumn" | "stickyColumnMostLeft" | "stickyColumnLeastRight" | "groupColumnMostLeft" | "groupColumnMostRight" | "resizing" | "headerContent" | "headerText" | "headerParagraph" | "sortableHeaderText" | "sortable" | "sortButton" | "sortIcon" | "alignFlexLeft" | "alignFlexRight" | "alignFlexCenter" | "alignFlexJustify", string>>, addStatic?: boolean) => {
8932
8896
  readonly classes: {
8933
8897
  root: string;
8934
8898
  head: string;
@@ -8968,7 +8932,7 @@ declare const useClasses_54: (classesProp?: Partial<Record<"body" | "resizer" |
8968
8932
  readonly cx: (...args: any) => string;
8969
8933
  };
8970
8934
 
8971
- declare const useClasses_55: (classesProp?: Partial<Record<"root" | "stickyHeader" | "stickyColumns" | "listRow", string>>, addStatic?: boolean) => {
8935
+ declare const useClasses_54: (classesProp?: Partial<Record<"root" | "stickyHeader" | "stickyColumns" | "listRow", string>>, addStatic?: boolean) => {
8972
8936
  readonly classes: {
8973
8937
  root: string;
8974
8938
  stickyHeader: string;
@@ -8979,7 +8943,7 @@ declare const useClasses_55: (classesProp?: Partial<Record<"root" | "stickyHeade
8979
8943
  readonly cx: (...args: any) => string;
8980
8944
  };
8981
8945
 
8982
- declare const useClasses_56: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
8946
+ declare const useClasses_55: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
8983
8947
  readonly classes: {
8984
8948
  root: string;
8985
8949
  };
@@ -8987,6 +8951,30 @@ declare const useClasses_56: (classesProp?: Partial<Record<"root", string>>, add
8987
8951
  readonly cx: (...args: any) => string;
8988
8952
  };
8989
8953
 
8954
+ declare const useClasses_56: (classesProp?: Partial<Record<"label" | "icon" | "error" | "input" | "root" | "description" | "labelContainer" | "adornmentsBox" | "adornmentButton" | "iconClear" | "hasSuggestions" | "suggestionsContainer" | "suggestionList" | "inputRoot" | "inputRootFocused" | "inputRootDisabled" | "inputRootMultiline", string>>, addStatic?: boolean) => {
8955
+ readonly classes: {
8956
+ root: string;
8957
+ labelContainer: string;
8958
+ label: string;
8959
+ description: string;
8960
+ adornmentsBox: string;
8961
+ icon: string;
8962
+ adornmentButton: string;
8963
+ iconClear: string;
8964
+ hasSuggestions: string;
8965
+ suggestionsContainer: string;
8966
+ suggestionList: string;
8967
+ input: string;
8968
+ inputRoot: string;
8969
+ inputRootFocused: string;
8970
+ inputRootDisabled: string;
8971
+ inputRootMultiline: string;
8972
+ error: string;
8973
+ };
8974
+ readonly css: any;
8975
+ readonly cx: (...args: any) => string;
8976
+ };
8977
+
8990
8978
  declare const useClasses_57: (classesProp?: Partial<Record<"root" | "sortDropdown", string>>, addStatic?: boolean) => {
8991
8979
  readonly classes: {
8992
8980
  root: string;
@@ -9325,12 +9313,11 @@ declare const useClasses_77: (classesProp?: Partial<Record<"container" | "root"
9325
9313
  readonly cx: (...args: any) => string;
9326
9314
  };
9327
9315
 
9328
- declare const useClasses_78: (classesProp?: Partial<Record<"backgroundColor" | "header" | "fixed" | "root", string>>, addStatic?: boolean) => {
9316
+ declare const useClasses_78: (classesProp?: Partial<Record<"header" | "fixed" | "root", string>>, addStatic?: boolean) => {
9329
9317
  readonly classes: {
9330
9318
  root: string;
9331
9319
  header: string;
9332
9320
  fixed: string;
9333
- backgroundColor: string;
9334
9321
  };
9335
9322
  readonly css: any;
9336
9323
  readonly cx: (...args: any) => string;
package/dist/index.js CHANGED
@@ -18,11 +18,11 @@ import { fixedForwardRef } from "./types/generic.js";
18
18
  import { outlineStyles } from "./utils/focusUtils.js";
19
19
  import { isDeleteKey, isKey, isOneOfKeys } from "./utils/keyboardUtils.js";
20
20
  import { setId } from "./utils/setId.js";
21
- import { processThemes, setElementAttrs } from "./utils/theme.js";
21
+ import { setElementAttrs } from "./utils/theme.js";
22
22
  import { useSavedState } from "./utils/useSavedState.js";
23
23
  import { uniqueId } from "./utils/helpers.js";
24
- import { ds5 } from "./themes/ds5.js";
25
- import { pentahoPlus } from "./themes/pentahoPlus.js";
24
+ import { next } from "./themes/next.js";
25
+ import { pentaho } from "./themes/pentaho.js";
26
26
  import { staticClasses } from "./Typography/Typography.styles.js";
27
27
  import { HvTypography } from "./Typography/Typography.js";
28
28
  import { staticClasses as staticClasses2 } from "./ButtonBase/ButtonBase.styles.js";
@@ -482,7 +482,6 @@ export {
482
482
  staticClasses52 as drawerClasses,
483
483
  staticClasses54 as dropDownMenuClasses,
484
484
  staticClasses53 as dropdownClasses,
485
- ds5,
486
485
  staticClasses55 as emptyStateClasses,
487
486
  staticClasses57 as fileClasses,
488
487
  staticClasses58 as fileUploaderClasses,
@@ -528,14 +527,14 @@ export {
528
527
  staticClasses71 as loadingContainerClasses,
529
528
  staticClasses72 as loginClasses,
530
529
  staticClasses73 as multiButtonClasses,
530
+ next,
531
531
  optionClasses,
532
532
  optionGroupClasses,
533
533
  outlineStyles,
534
534
  staticClasses74 as overflowTooltipClasses,
535
535
  staticClasses75 as paginationClasses,
536
536
  staticClasses76 as panelClasses,
537
- pentahoPlus,
538
- processThemes,
537
+ pentaho,
539
538
  staticClasses77 as progressBarClasses,
540
539
  staticClasses78 as queryBuilderClasses,
541
540
  staticClasses79 as radioClasses,
@@ -3,7 +3,7 @@ import { useId, useMemo } from "react";
3
3
  import createCache from "@emotion/cache";
4
4
  import { CacheProvider, Global, css, ClassNames } from "@emotion/react";
5
5
  import { CssBaseline, getThemeVars, CssScopedBaseline } from "@hitachivantara/uikit-styles";
6
- import { ds5 } from "../themes/ds5.js";
6
+ import { pentaho } from "../themes/pentaho.js";
7
7
  import { getElementById } from "../utils/document.js";
8
8
  import { HvThemeProvider } from "./ThemeProvider.js";
9
9
  import { defaultCacheKey, defaultEmotionCache } from "@hitachivantara/uikit-react-shared";
@@ -12,7 +12,7 @@ const HvProvider = ({
12
12
  rootElementId,
13
13
  cssBaseline = "global",
14
14
  cssTheme = "global",
15
- theme = ds5,
15
+ theme = pentaho,
16
16
  colorMode = theme.defaultColorMode || "light",
17
17
  emotionCache: emotionCacheProp,
18
18
  classNameKey = defaultCacheKey
@@ -34,7 +34,7 @@ const HvThemeProvider = ({
34
34
  [theme, colorMode, rootId]
35
35
  );
36
36
  const muiTheme = useMemo(() => {
37
- const colors = theme.colors[colorMode];
37
+ const colors = theme.colors[colorMode] || theme.colors.light;
38
38
  return createTheme({
39
39
  colorSchemes: { light: true, dark: true },
40
40
  spacing: theme.space.base,
@@ -1,8 +1,8 @@
1
- import { ds5 } from "./ds5.js";
2
- import { pentahoPlus } from "./pentahoPlus.js";
3
- const themes = { ds5, pentahoPlus };
1
+ import { next } from "./next.js";
2
+ import { pentaho } from "./pentaho.js";
3
+ const themes = { next, pentaho };
4
4
  export {
5
- ds5,
6
- pentahoPlus,
5
+ next,
6
+ pentaho,
7
7
  themes
8
8
  };
@@ -1,5 +1,5 @@
1
- import { mergeTheme, ds5 as ds5$1, theme } from "@hitachivantara/uikit-styles";
2
- const ds5 = mergeTheme(ds5$1, {
1
+ import { mergeTheme, next as next$1, theme } from "@hitachivantara/uikit-styles";
2
+ const next = mergeTheme(next$1, {
3
3
  components: {
4
4
  HvAvatar: {
5
5
  classes: {
@@ -280,5 +280,5 @@ const ds5 = mergeTheme(ds5$1, {
280
280
  }
281
281
  });
282
282
  export {
283
- ds5
283
+ next
284
284
  };