@hitachivantara/uikit-react-core 5.71.0 → 5.72.1
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/cjs/DropdownButton/DropdownButton.cjs +1 -8
- package/dist/cjs/DropdownButton/DropdownButton.styles.cjs +0 -3
- package/dist/cjs/Header/Actions/Actions.cjs +4 -3
- package/dist/cjs/Header/Brand/Brand.cjs +4 -3
- package/dist/cjs/Header/Navigation/MenuItem/MenuItem.cjs +13 -28
- package/dist/cjs/Header/Navigation/MenuItem/MenuItem.styles.cjs +11 -43
- package/dist/cjs/Header/Navigation/Navigation.cjs +4 -3
- package/dist/cjs/SimpleGrid/SimpleGrid.cjs +2 -2
- package/dist/cjs/SimpleGrid/SimpleGrid.styles.cjs +17 -22
- package/dist/cjs/Typography/Typography.cjs +2 -1
- package/dist/cjs/Typography/Typography.styles.cjs +23 -24
- package/dist/cjs/VerticalNavigation/Actions/Action.cjs +4 -18
- package/dist/cjs/VerticalNavigation/Actions/Action.styles.cjs +4 -17
- package/dist/cjs/VerticalNavigation/Actions/Actions.styles.cjs +3 -5
- package/dist/cjs/VerticalNavigation/Header/Header.styles.cjs +7 -2
- package/dist/cjs/VerticalNavigation/Navigation/Navigation.cjs +3 -3
- package/dist/cjs/VerticalNavigation/Navigation/Navigation.styles.cjs +0 -2
- package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.cjs +1 -1
- package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs +7 -1
- package/dist/cjs/VerticalNavigation/TreeView/TreeView.styles.cjs +0 -2
- package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +32 -21
- package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +4 -0
- package/dist/cjs/VerticalNavigation/VerticalNavigation.cjs +12 -18
- package/dist/cjs/VerticalNavigation/VerticalNavigation.styles.cjs +1 -1
- package/dist/esm/DropdownButton/DropdownButton.js +1 -8
- package/dist/esm/DropdownButton/DropdownButton.js.map +1 -1
- package/dist/esm/DropdownButton/DropdownButton.styles.js +0 -3
- package/dist/esm/DropdownButton/DropdownButton.styles.js.map +1 -1
- package/dist/esm/Header/Actions/Actions.js +4 -3
- package/dist/esm/Header/Actions/Actions.js.map +1 -1
- package/dist/esm/Header/Brand/Brand.js +4 -3
- package/dist/esm/Header/Brand/Brand.js.map +1 -1
- package/dist/esm/Header/Navigation/MenuItem/MenuItem.js +13 -28
- package/dist/esm/Header/Navigation/MenuItem/MenuItem.js.map +1 -1
- package/dist/esm/Header/Navigation/MenuItem/MenuItem.styles.js +11 -43
- package/dist/esm/Header/Navigation/MenuItem/MenuItem.styles.js.map +1 -1
- package/dist/esm/Header/Navigation/Navigation.js +4 -3
- package/dist/esm/Header/Navigation/Navigation.js.map +1 -1
- package/dist/esm/SimpleGrid/SimpleGrid.js +2 -2
- package/dist/esm/SimpleGrid/SimpleGrid.js.map +1 -1
- package/dist/esm/SimpleGrid/SimpleGrid.styles.js +17 -22
- package/dist/esm/SimpleGrid/SimpleGrid.styles.js.map +1 -1
- package/dist/esm/Typography/Typography.js +2 -1
- package/dist/esm/Typography/Typography.js.map +1 -1
- package/dist/esm/Typography/Typography.styles.js +23 -24
- package/dist/esm/Typography/Typography.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/Actions/Action.js +5 -19
- package/dist/esm/VerticalNavigation/Actions/Action.js.map +1 -1
- package/dist/esm/VerticalNavigation/Actions/Action.styles.js +4 -17
- package/dist/esm/VerticalNavigation/Actions/Action.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/Actions/Actions.styles.js +3 -5
- package/dist/esm/VerticalNavigation/Actions/Actions.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/Header/Header.styles.js +7 -2
- package/dist/esm/VerticalNavigation/Header/Header.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/Navigation/Navigation.js +1 -1
- package/dist/esm/VerticalNavigation/Navigation/Navigation.js.map +1 -1
- package/dist/esm/VerticalNavigation/Navigation/Navigation.styles.js +0 -2
- package/dist/esm/VerticalNavigation/Navigation/Navigation.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js +1 -1
- package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js.map +1 -1
- package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +7 -1
- package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/NavigationSlider/utils.js.map +1 -0
- package/dist/esm/VerticalNavigation/TreeView/TreeView.styles.js +0 -2
- package/dist/esm/VerticalNavigation/TreeView/TreeView.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +33 -22
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js +4 -0
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/VerticalNavigation.js +9 -15
- package/dist/esm/VerticalNavigation/VerticalNavigation.js.map +1 -1
- package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js +1 -1
- package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/VerticalNavigationContext.js.map +1 -1
- package/dist/types/index.d.ts +31 -40
- package/package.json +6 -6
- package/dist/cjs/VerticalNavigation/TreeView/IconWrapper/IconWrapper.cjs +0 -20
- package/dist/esm/VerticalNavigation/NavigationSlider/utils/NavigationSlider.utils.js.map +0 -1
- package/dist/esm/VerticalNavigation/TreeView/IconWrapper/IconWrapper.js +0 -20
- package/dist/esm/VerticalNavigation/TreeView/IconWrapper/IconWrapper.js.map +0 -1
- /package/dist/cjs/VerticalNavigation/NavigationSlider/{utils/NavigationSlider.utils.cjs → utils.cjs} +0 -0
- /package/dist/esm/VerticalNavigation/NavigationSlider/{utils/NavigationSlider.utils.js → utils.js} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -406,7 +406,7 @@ export declare interface Breakpoint {
|
|
|
406
406
|
cols?: number;
|
|
407
407
|
maxWidth?: number;
|
|
408
408
|
minWidth?: number;
|
|
409
|
-
spacing?:
|
|
409
|
+
spacing?: HvBreakpoints;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
export declare const buildAriaPropsFromContext: (props: InputBaseComponentProps, context: HvFormElementDescriptorsContextValue, isInvalid: boolean, inputId?: string) => default_2.AriaAttributes;
|
|
@@ -1020,13 +1020,13 @@ export declare const globalActionsClasses: {
|
|
|
1020
1020
|
section: "HvGlobalActions-section";
|
|
1021
1021
|
wrapper: "HvGlobalActions-wrapper";
|
|
1022
1022
|
sectionName: "HvGlobalActions-sectionName";
|
|
1023
|
-
backButton: "HvGlobalActions-backButton";
|
|
1024
1023
|
positionFixed: "HvGlobalActions-positionFixed";
|
|
1025
1024
|
positionSticky: "HvGlobalActions-positionSticky";
|
|
1026
1025
|
actions: "HvGlobalActions-actions";
|
|
1027
1026
|
global: "HvGlobalActions-global";
|
|
1028
1027
|
globalSectionArea: "HvGlobalActions-globalSectionArea";
|
|
1029
1028
|
globalWrapperComplement: "HvGlobalActions-globalWrapperComplement";
|
|
1029
|
+
backButton: "HvGlobalActions-backButton";
|
|
1030
1030
|
};
|
|
1031
1031
|
|
|
1032
1032
|
export declare const gridClasses: {
|
|
@@ -3953,7 +3953,7 @@ export declare type HvGridSpacing = "xs" | "sm" | "md" | "lg" | "xl" | "auto" |
|
|
|
3953
3953
|
*/
|
|
3954
3954
|
export declare const HvHeader: (props: HvHeaderProps) => JSX_3.Element;
|
|
3955
3955
|
|
|
3956
|
-
export declare const HvHeaderActions:
|
|
3956
|
+
export declare const HvHeaderActions: ForwardRefExoticComponent<HvHeaderActionsProps & RefAttributes<HTMLDivElement>>;
|
|
3957
3957
|
|
|
3958
3958
|
export declare type HvHeaderActionsClasses = ExtractNames<typeof useClasses_76>;
|
|
3959
3959
|
|
|
@@ -3964,7 +3964,7 @@ export declare interface HvHeaderActionsProps extends HvBaseProps {
|
|
|
3964
3964
|
/**
|
|
3965
3965
|
* Header component is used to render a header bar with logo and brand name, navigation and actions.
|
|
3966
3966
|
*/
|
|
3967
|
-
export declare const HvHeaderBrand:
|
|
3967
|
+
export declare const HvHeaderBrand: ForwardRefExoticComponent<HvHeaderBrandProps & RefAttributes<HTMLDivElement>>;
|
|
3968
3968
|
|
|
3969
3969
|
export declare type HvHeaderBrandClasses = ExtractNames<typeof useClasses_77>;
|
|
3970
3970
|
|
|
@@ -4006,7 +4006,7 @@ declare interface HvHeaderMenuItemProps extends HvBaseProps<HTMLDivElement, "onC
|
|
|
4006
4006
|
classes?: HvHeaderMenuItemClasses;
|
|
4007
4007
|
}
|
|
4008
4008
|
|
|
4009
|
-
export declare const HvHeaderNavigation:
|
|
4009
|
+
export declare const HvHeaderNavigation: ForwardRefExoticComponent<HvHeaderNavigationProps & RefAttributes<HTMLElement>>;
|
|
4010
4010
|
|
|
4011
4011
|
export declare type HvHeaderNavigationClasses = ExtractNames<typeof useClasses_80>;
|
|
4012
4012
|
|
|
@@ -5704,23 +5704,16 @@ export declare type HvSimpleGridClasses = ExtractNames<typeof useClasses_100>;
|
|
|
5704
5704
|
|
|
5705
5705
|
/** Grid component that enables you to create columns of equal width and define your own breakpoints and responsive behavior. */
|
|
5706
5706
|
export declare interface HvSimpleGridProps extends HvBaseProps {
|
|
5707
|
-
/**
|
|
5708
|
-
|
|
5709
|
-
*/
|
|
5710
|
-
spacing?: Spacing;
|
|
5707
|
+
/** Spacing with pre-defined values according the values defined in the theme */
|
|
5708
|
+
spacing?: HvBreakpoints;
|
|
5711
5709
|
/**
|
|
5712
5710
|
* Provide an array to define responsive behavior:
|
|
5713
|
-
*
|
|
5714
|
-
*
|
|
5715
|
-
*
|
|
5716
|
-
* cols: number of columns per row at given max-width
|
|
5717
|
-
*
|
|
5718
|
-
* spacing: optional spacing at given max-width, if not provided spacing from component prop will be used instead
|
|
5711
|
+
* - `maxWidth` or `minWidth`: max-width or min-width at which media query will work
|
|
5712
|
+
* - `cols`: number of columns per row at given max-width
|
|
5713
|
+
* - `spacing`: optional spacing at given max-width, if not provided spacing from component prop will be used instead
|
|
5719
5714
|
*/
|
|
5720
5715
|
breakpoints?: Breakpoint[];
|
|
5721
|
-
/**
|
|
5722
|
-
* Number of how many columns the content will be displayed
|
|
5723
|
-
*/
|
|
5716
|
+
/** Number of how many columns the content will be displayed */
|
|
5724
5717
|
cols?: number;
|
|
5725
5718
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5726
5719
|
classes?: HvSimpleGridClasses;
|
|
@@ -7178,21 +7171,19 @@ export declare interface HvValidationMessages {
|
|
|
7178
7171
|
*
|
|
7179
7172
|
* Both modes are available via the `mode` property and each app should choose the most appropriate.
|
|
7180
7173
|
*/
|
|
7181
|
-
export declare const HvVerticalNavigation:
|
|
7174
|
+
export declare const HvVerticalNavigation: ForwardRefExoticComponent<HvVerticalNavigationProps & RefAttributes<HTMLDivElement>>;
|
|
7182
7175
|
|
|
7183
7176
|
export declare const HvVerticalNavigationAction: (props: HvVerticalNavigationActionProps) => JSX_3.Element;
|
|
7184
7177
|
|
|
7185
7178
|
export declare type HvVerticalNavigationActionClasses = ExtractNames<typeof useClasses_123>;
|
|
7186
7179
|
|
|
7187
|
-
export declare interface HvVerticalNavigationActionProps extends Omit<
|
|
7180
|
+
export declare interface HvVerticalNavigationActionProps extends Omit<HvButtonProps, "classes" | "icon"> {
|
|
7188
7181
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
7189
7182
|
classes?: HvVerticalNavigationActionClasses;
|
|
7190
7183
|
/** Visual label. */
|
|
7191
7184
|
label?: string;
|
|
7192
7185
|
/** Icon. */
|
|
7193
7186
|
icon?: React.ReactNode;
|
|
7194
|
-
/** Callback called when clicked. */
|
|
7195
|
-
onClick?: (event: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement>) => void;
|
|
7196
7187
|
}
|
|
7197
7188
|
|
|
7198
7189
|
export declare const HvVerticalNavigationActions: (props: HvVerticalNavigationActionsProps) => JSX_3.Element;
|
|
@@ -7976,7 +7967,7 @@ export declare const snackbarProviderClasses: {
|
|
|
7976
7967
|
snackItemRoot: "HvSnackbarProvider-snackItemRoot";
|
|
7977
7968
|
};
|
|
7978
7969
|
|
|
7979
|
-
export declare type Spacing =
|
|
7970
|
+
export declare type Spacing = HvBreakpoints;
|
|
7980
7971
|
|
|
7981
7972
|
export declare const stackClasses: {
|
|
7982
7973
|
xs: "HvStack-xs";
|
|
@@ -8722,13 +8713,13 @@ declare const useClasses_120: (classesProp?: Partial<Record<"root" | "slider" |
|
|
|
8722
8713
|
cx: (...args: any) => string;
|
|
8723
8714
|
};
|
|
8724
8715
|
|
|
8725
|
-
declare const useClasses_121: (classesProp?: Partial<Record<"root" | "title" | "backButton" | "
|
|
8716
|
+
declare const useClasses_121: (classesProp?: Partial<Record<"root" | "title" | "backButton" | "minimized" | "collapseButton", string>>, addStatic?: boolean) => {
|
|
8726
8717
|
classes: {
|
|
8727
8718
|
root: string;
|
|
8728
8719
|
title: string;
|
|
8729
8720
|
backButton: string;
|
|
8730
|
-
collapseButton: string;
|
|
8731
8721
|
minimized: string;
|
|
8722
|
+
collapseButton: string;
|
|
8732
8723
|
};
|
|
8733
8724
|
css: any;
|
|
8734
8725
|
cx: (...args: any) => string;
|
|
@@ -8753,27 +8744,27 @@ declare const useClasses_123: (classesProp?: Partial<Record<"action" | "minimize
|
|
|
8753
8744
|
cx: (...args: any) => string;
|
|
8754
8745
|
};
|
|
8755
8746
|
|
|
8756
|
-
declare const useClasses_124: (classesProp?: Partial<Record<"root" | "listItem" | "list" | "
|
|
8747
|
+
declare const useClasses_124: (classesProp?: Partial<Record<"root" | "listItem" | "list" | "collapsed" | "popup" | "navigationPopup", string>>, addStatic?: boolean) => {
|
|
8757
8748
|
classes: {
|
|
8758
8749
|
root: string;
|
|
8759
8750
|
listItem: string;
|
|
8760
8751
|
list: string;
|
|
8761
|
-
navigationPopup: string;
|
|
8762
8752
|
collapsed: string;
|
|
8763
8753
|
popup: string;
|
|
8754
|
+
navigationPopup: string;
|
|
8764
8755
|
};
|
|
8765
8756
|
css: any;
|
|
8766
8757
|
cx: (...args: any) => string;
|
|
8767
8758
|
};
|
|
8768
8759
|
|
|
8769
|
-
declare const useClasses_125: (classesProp?: Partial<Record<"root" | "listItemSelected" | "listItemDisabled" | "listItemFocus" | "
|
|
8760
|
+
declare const useClasses_125: (classesProp?: Partial<Record<"root" | "listItemSelected" | "listItemDisabled" | "listItemFocus" | "listContainer" | "forwardButton", string>>, addStatic?: boolean) => {
|
|
8770
8761
|
classes: {
|
|
8771
8762
|
root: string;
|
|
8772
8763
|
listItemSelected: string;
|
|
8773
8764
|
listItemDisabled: string;
|
|
8774
8765
|
listItemFocus: string;
|
|
8775
|
-
forwardButton: string;
|
|
8776
8766
|
listContainer: string;
|
|
8767
|
+
forwardButton: string;
|
|
8777
8768
|
};
|
|
8778
8769
|
css: any;
|
|
8779
8770
|
cx: (...args: any) => string;
|
|
@@ -9837,20 +9828,20 @@ declare const useClasses_72: (classesProp?: Partial<Record<"name" | "small" | "r
|
|
|
9837
9828
|
cx: (...args: any) => string;
|
|
9838
9829
|
};
|
|
9839
9830
|
|
|
9840
|
-
declare const useClasses_73: (classesProp?: Partial<Record<"name" | "root" | "section" | "wrapper" | "sectionName" | "
|
|
9831
|
+
declare const useClasses_73: (classesProp?: Partial<Record<"name" | "root" | "section" | "wrapper" | "sectionName" | "positionFixed" | "positionSticky" | "actions" | "global" | "globalSectionArea" | "globalWrapperComplement" | "backButton", string>>, addStatic?: boolean) => {
|
|
9841
9832
|
classes: {
|
|
9842
9833
|
name: string;
|
|
9843
9834
|
root: string;
|
|
9844
9835
|
section: string;
|
|
9845
9836
|
wrapper: string;
|
|
9846
9837
|
sectionName: string;
|
|
9847
|
-
backButton: string;
|
|
9848
9838
|
positionFixed: string;
|
|
9849
9839
|
positionSticky: string;
|
|
9850
9840
|
actions: string;
|
|
9851
9841
|
global: string;
|
|
9852
9842
|
globalSectionArea: string;
|
|
9853
9843
|
globalWrapperComplement: string;
|
|
9844
|
+
backButton: string;
|
|
9854
9845
|
};
|
|
9855
9846
|
css: any;
|
|
9856
9847
|
cx: (...args: any) => string;
|
|
@@ -9925,27 +9916,28 @@ declare const useClasses_77: (classesProp?: Partial<Record<"root" | "separator"
|
|
|
9925
9916
|
cx: (...args: any) => string;
|
|
9926
9917
|
};
|
|
9927
9918
|
|
|
9928
|
-
declare const useClasses_78: (classesProp?: Partial<Record<"root" | "active" | "list" | "
|
|
9919
|
+
declare const useClasses_78: (classesProp?: Partial<Record<"root" | "active" | "list" | "hidden" | "menu" | "menubar", string>>, addStatic?: boolean) => {
|
|
9929
9920
|
classes: {
|
|
9930
9921
|
root: string;
|
|
9931
9922
|
active: string;
|
|
9932
9923
|
list: string;
|
|
9924
|
+
hidden: string;
|
|
9933
9925
|
menu: string;
|
|
9934
9926
|
menubar: string;
|
|
9935
|
-
hidden: string;
|
|
9936
9927
|
};
|
|
9937
9928
|
css: any;
|
|
9938
9929
|
cx: (...args: any) => string;
|
|
9939
9930
|
};
|
|
9940
9931
|
|
|
9941
|
-
declare const useClasses_79: (classesProp?: Partial<Record<"link" | "root" | "
|
|
9932
|
+
declare const useClasses_79: (classesProp?: Partial<Record<"link" | "root" | "selected" | "button" | "menu" | "menubar" | "item", string>>, addStatic?: boolean) => {
|
|
9942
9933
|
classes: {
|
|
9943
9934
|
link: string;
|
|
9944
9935
|
root: string;
|
|
9945
|
-
menu: string;
|
|
9946
|
-
menubar: string;
|
|
9947
9936
|
selected: string;
|
|
9948
9937
|
button: string;
|
|
9938
|
+
menu: string;
|
|
9939
|
+
menubar: string;
|
|
9940
|
+
item: string;
|
|
9949
9941
|
};
|
|
9950
9942
|
css: any;
|
|
9951
9943
|
cx: (...args: any) => string;
|
|
@@ -10737,7 +10729,6 @@ declare interface VerticalNavigationContextValue {
|
|
|
10737
10729
|
useIcons: boolean;
|
|
10738
10730
|
slider?: boolean;
|
|
10739
10731
|
headerTitle?: string;
|
|
10740
|
-
setHeaderTitle?: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
10741
10732
|
parentItem?: any;
|
|
10742
10733
|
setParentItem?: React.Dispatch<React.SetStateAction<any>>;
|
|
10743
10734
|
withParentData?: any;
|
|
@@ -10754,8 +10745,8 @@ export declare const verticalNavigationHeaderClasses: {
|
|
|
10754
10745
|
root: "HvVerticalNavigationHeader-root";
|
|
10755
10746
|
title: "HvVerticalNavigationHeader-title";
|
|
10756
10747
|
backButton: "HvVerticalNavigationHeader-backButton";
|
|
10757
|
-
collapseButton: "HvVerticalNavigationHeader-collapseButton";
|
|
10758
10748
|
minimized: "HvVerticalNavigationHeader-minimized";
|
|
10749
|
+
collapseButton: "HvVerticalNavigationHeader-collapseButton";
|
|
10759
10750
|
};
|
|
10760
10751
|
|
|
10761
10752
|
export declare const verticalNavigationSliderClasses: {
|
|
@@ -10763,17 +10754,17 @@ export declare const verticalNavigationSliderClasses: {
|
|
|
10763
10754
|
listItemSelected: "HvVerticalNavigationSlider-listItemSelected";
|
|
10764
10755
|
listItemDisabled: "HvVerticalNavigationSlider-listItemDisabled";
|
|
10765
10756
|
listItemFocus: "HvVerticalNavigationSlider-listItemFocus";
|
|
10766
|
-
forwardButton: "HvVerticalNavigationSlider-forwardButton";
|
|
10767
10757
|
listContainer: "HvVerticalNavigationSlider-listContainer";
|
|
10758
|
+
forwardButton: "HvVerticalNavigationSlider-forwardButton";
|
|
10768
10759
|
};
|
|
10769
10760
|
|
|
10770
10761
|
export declare const verticalNavigationTreeClasses: {
|
|
10771
10762
|
root: "HvVerticalNavigationTree-root";
|
|
10772
10763
|
listItem: "HvVerticalNavigationTree-listItem";
|
|
10773
10764
|
list: "HvVerticalNavigationTree-list";
|
|
10774
|
-
navigationPopup: "HvVerticalNavigationTree-navigationPopup";
|
|
10775
10765
|
collapsed: "HvVerticalNavigationTree-collapsed";
|
|
10776
10766
|
popup: "HvVerticalNavigationTree-popup";
|
|
10767
|
+
navigationPopup: "HvVerticalNavigationTree-navigationPopup";
|
|
10777
10768
|
};
|
|
10778
10769
|
|
|
10779
10770
|
export declare const verticalScrollListItemClasses: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.72.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "Core React components for the NEXT Design System.",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/cache": "^11.11.0",
|
|
34
34
|
"@emotion/serialize": "^1.1.2",
|
|
35
|
-
"@hitachivantara/uikit-react-icons": "^5.
|
|
36
|
-
"@hitachivantara/uikit-react-shared": "^5.3.
|
|
37
|
-
"@hitachivantara/uikit-react-utils": "^0.2.
|
|
38
|
-
"@hitachivantara/uikit-styles": "^5.33.
|
|
35
|
+
"@hitachivantara/uikit-react-icons": "^5.11.1",
|
|
36
|
+
"@hitachivantara/uikit-react-shared": "^5.3.4",
|
|
37
|
+
"@hitachivantara/uikit-react-utils": "^0.2.4",
|
|
38
|
+
"@hitachivantara/uikit-styles": "^5.33.2",
|
|
39
39
|
"@internationalized/date": "^3.2.0",
|
|
40
40
|
"@mui/base": "^5.0.0-beta.40",
|
|
41
41
|
"@popperjs/core": "^2.11.8",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"access": "public",
|
|
63
63
|
"directory": "package"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "b6ee74d9581f4f8d3014c785c6ceb86c481d3b3f",
|
|
66
66
|
"exports": {
|
|
67
67
|
".": {
|
|
68
68
|
"types": "./dist/types/index.d.ts",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
|
|
5
|
-
const Avatar = require("../../../Avatar/Avatar.cjs");
|
|
6
|
-
const IconWrapper = ({
|
|
7
|
-
icon,
|
|
8
|
-
label,
|
|
9
|
-
hasChildren,
|
|
10
|
-
showAvatar,
|
|
11
|
-
isOpen,
|
|
12
|
-
hasAnyChildWithData,
|
|
13
|
-
...others
|
|
14
|
-
}) => {
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...others, children: [
|
|
16
|
-
showAvatar ? /* @__PURE__ */ jsxRuntime.jsx(Avatar.HvAvatar, { variant: "square", size: "xs", backgroundColor: "secondary_80", children: label?.substring(0, 1) }) : icon,
|
|
17
|
-
hasChildren && !isOpen ? /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Forwards, { iconSize: "XS" }) : hasAnyChildWithData && !isOpen && /* @__PURE__ */ jsxRuntime.jsx("div", {})
|
|
18
|
-
] });
|
|
19
|
-
};
|
|
20
|
-
exports.IconWrapper = IconWrapper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationSlider.utils.js","sources":["../../../../../src/VerticalNavigation/NavigationSlider/utils/NavigationSlider.utils.tsx"],"sourcesContent":["/**\n * Recursively searches in a collection the first element where the property matches the specified value.\n *\n * @param collection - Collection where the search will be performed\n * @param childrenPropName - The children property name where the recursive search will be performed\n * @param propName - The name of the property to be used on the search\n * @param propValue - The value of the property to be used on the search\n * @returns The element that matches the requirement or null if none is found\n */\nconst searchInCollection = (\n collection: any,\n childrenPropName: any,\n propName: any,\n propValue: any,\n): any => {\n if (collection[propName] === propValue) {\n return collection;\n }\n\n const items = collection[childrenPropName] || collection;\n\n let foundItem = null;\n for (let index = 0; foundItem === null && index < items.length; index += 1) {\n foundItem = searchInCollection(\n items[index],\n childrenPropName,\n propName,\n propValue,\n );\n }\n return foundItem;\n};\n\n/**\n * Returns the navigation item with the specified id.\n *\n * @param navigationItems - The collection of navigation items.\n * @param navigationItemId - The id to be used on the search\n * @returns The navigation item with the specified id.\n */\nconst getNavigationItemById = (navigationItems: any, navigationItemId: any) => {\n return searchInCollection(navigationItems, \"data\", \"id\", navigationItemId);\n};\n\n/**\n * Returns the parent item for the received item id.\n *\n * @param navigationItems - The collection of navigation items.\n * @param navigationItemId - The id to be used on the search\n * @returns The parent navigation item.\n */\nconst getParentItemById = (navigationItems: any, navigationItemId: any) => {\n const parentId = getNavigationItemById(\n navigationItems,\n navigationItemId,\n )?.parent;\n return getNavigationItemById(navigationItems, parentId);\n};\n\n/**\n * Fills the data structure with the parent id on each one of the nodes.\n *\n * @param navigationItems - The collection of navigation items.\n * @param parentItemId - The parent id to be added.\n * @returns The structure now filled with the parent id.\n */\nconst fillDataWithParentId = (navigationItems: any, parentItemId?: any) => {\n return navigationItems.map((item: any) => {\n if (item?.data?.length > 0) {\n return {\n ...item,\n parent: parentItemId,\n data: fillDataWithParentId(item.data, item.id),\n };\n }\n return { ...item, parent: parentItemId };\n });\n};\n\nexport { getNavigationItemById, getParentItemById, fillDataWithParentId };\n"],"names":[],"mappings":"AASA,MAAM,qBAAqB,CACzB,YACA,kBACA,UACA,cACQ;AACJ,MAAA,WAAW,QAAQ,MAAM,WAAW;AAC/B,WAAA;AAAA,EACT;AAEM,QAAA,QAAQ,WAAW,gBAAgB,KAAK;AAE9C,MAAI,YAAY;AACP,WAAA,QAAQ,GAAG,cAAc,QAAQ,QAAQ,MAAM,QAAQ,SAAS,GAAG;AAC9D,gBAAA;AAAA,MACV,MAAM,KAAK;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EAEJ;AACO,SAAA;AACT;AASM,MAAA,wBAAwB,CAAC,iBAAsB,qBAA0B;AAC7E,SAAO,mBAAmB,iBAAiB,QAAQ,MAAM,gBAAgB;AAC3E;AASM,MAAA,oBAAoB,CAAC,iBAAsB,qBAA0B;AACzE,QAAM,WAAW;AAAA,IACf;AAAA,IACA;AAAA,EACC,GAAA;AACI,SAAA,sBAAsB,iBAAiB,QAAQ;AACxD;AASM,MAAA,uBAAuB,CAAC,iBAAsB,iBAAuB;AAClE,SAAA,gBAAgB,IAAI,CAAC,SAAc;AACpC,QAAA,MAAM,MAAM,SAAS,GAAG;AACnB,aAAA;AAAA,QACL,GAAG;AAAA,QACH,QAAQ;AAAA,QACR,MAAM,qBAAqB,KAAK,MAAM,KAAK,EAAE;AAAA,MAAA;AAAA,IAEjD;AACA,WAAO,EAAE,GAAG,MAAM,QAAQ,aAAa;AAAA,EAAA,CACxC;AACH;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Forwards } from "@hitachivantara/uikit-react-icons";
|
|
3
|
-
import { HvAvatar } from "../../../Avatar/Avatar.js";
|
|
4
|
-
const IconWrapper = ({
|
|
5
|
-
icon,
|
|
6
|
-
label,
|
|
7
|
-
hasChildren,
|
|
8
|
-
showAvatar,
|
|
9
|
-
isOpen,
|
|
10
|
-
hasAnyChildWithData,
|
|
11
|
-
...others
|
|
12
|
-
}) => {
|
|
13
|
-
return /* @__PURE__ */ jsxs("div", { ...others, children: [
|
|
14
|
-
showAvatar ? /* @__PURE__ */ jsx(HvAvatar, { variant: "square", size: "xs", backgroundColor: "secondary_80", children: label?.substring(0, 1) }) : icon,
|
|
15
|
-
hasChildren && !isOpen ? /* @__PURE__ */ jsx(Forwards, { iconSize: "XS" }) : hasAnyChildWithData && !isOpen && /* @__PURE__ */ jsx("div", {})
|
|
16
|
-
] });
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
IconWrapper
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconWrapper.js","sources":["../../../../../src/VerticalNavigation/TreeView/IconWrapper/IconWrapper.tsx"],"sourcesContent":["import { HvBaseProps } from \"packages/core/src/types/generic\";\nimport { Forwards } from \"@hitachivantara/uikit-react-icons\";\n\nimport { HvAvatar } from \"../../../Avatar\";\n\ninterface IconWrapperProps extends HvBaseProps {\n icon?: React.ReactNode;\n label?: string;\n hasChildren?: boolean;\n showAvatar?: boolean;\n isOpen?: boolean;\n hasAnyChildWithData?: boolean;\n}\n\nexport const IconWrapper = ({\n icon,\n label,\n hasChildren,\n showAvatar,\n isOpen,\n hasAnyChildWithData,\n ...others\n}: IconWrapperProps) => {\n return (\n <div {...others}>\n {showAvatar ? (\n <HvAvatar variant=\"square\" size=\"xs\" backgroundColor=\"secondary_80\">\n {label?.substring(0, 1)}\n </HvAvatar>\n ) : (\n icon\n )}\n {hasChildren && !isOpen ? (\n <Forwards iconSize=\"XS\" />\n ) : (\n hasAnyChildWithData && !isOpen && <div />\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;AAcO,MAAM,cAAc,CAAC;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAwB;AAEpB,SAAA,qBAAC,OAAK,EAAA,GAAG,QACN,UAAA;AAAA,IAAA,aACE,oBAAA,UAAA,EAAS,SAAQ,UAAS,MAAK,MAAK,iBAAgB,gBAClD,UAAO,OAAA,UAAU,GAAG,CAAC,EACxB,CAAA,IAEA;AAAA,IAED,eAAe,CAAC,SACf,oBAAC,UAAS,EAAA,UAAS,MAAK,IAExB,uBAAuB,CAAC,UAAU,oBAAC,OAAI,CAAA,CAAA;AAAA,EAE3C,EAAA,CAAA;AAEJ;"}
|
/package/dist/cjs/VerticalNavigation/NavigationSlider/{utils/NavigationSlider.utils.cjs → utils.cjs}
RENAMED
|
File without changes
|
/package/dist/esm/VerticalNavigation/NavigationSlider/{utils/NavigationSlider.utils.js → utils.js}
RENAMED
|
File without changes
|