@hitachivantara/uikit-react-core 5.63.0 → 5.63.2

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.
Files changed (68) hide show
  1. package/dist/cjs/AppSwitcher/Action/Action.cjs +1 -1
  2. package/dist/cjs/Avatar/Avatar.cjs +4 -1
  3. package/dist/cjs/AvatarGroup/AvatarGroup.cjs +95 -51
  4. package/dist/cjs/AvatarGroup/AvatarGroup.styles.cjs +54 -4
  5. package/dist/cjs/AvatarGroup/AvatarGroupContext.cjs +19 -0
  6. package/dist/cjs/CheckBoxGroup/CheckBoxGroup.styles.cjs +2 -2
  7. package/dist/cjs/Dialog/Dialog.cjs +0 -1
  8. package/dist/cjs/Drawer/Drawer.cjs +0 -5
  9. package/dist/cjs/FilterGroup/Counter/Counter.cjs +4 -6
  10. package/dist/cjs/FilterGroup/LeftPanel/LeftPanel.cjs +13 -17
  11. package/dist/cjs/FilterGroup/RightPanel/RightPanel.styles.cjs +1 -4
  12. package/dist/cjs/Input/Input.cjs +1 -3
  13. package/dist/cjs/List/List.cjs +25 -57
  14. package/dist/cjs/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.cjs +25 -20
  15. package/dist/cjs/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.cjs +24 -29
  16. package/dist/cjs/ScrollTo/Horizontal/ScrollToHorizontal.cjs +28 -66
  17. package/dist/cjs/ScrollTo/Horizontal/ScrollToHorizontal.styles.cjs +3 -20
  18. package/dist/cjs/ScrollTo/Vertical/ScrollToVertical.cjs +9 -22
  19. package/dist/cjs/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.cjs +8 -15
  20. package/dist/cjs/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.cjs +12 -7
  21. package/dist/cjs/providers/ThemeProvider.cjs +7 -0
  22. package/dist/esm/AppSwitcher/Action/Action.js +1 -1
  23. package/dist/esm/Avatar/Avatar.js +4 -1
  24. package/dist/esm/Avatar/Avatar.js.map +1 -1
  25. package/dist/esm/AvatarGroup/AvatarGroup.js +97 -53
  26. package/dist/esm/AvatarGroup/AvatarGroup.js.map +1 -1
  27. package/dist/esm/AvatarGroup/AvatarGroup.styles.js +54 -4
  28. package/dist/esm/AvatarGroup/AvatarGroup.styles.js.map +1 -1
  29. package/dist/esm/AvatarGroup/AvatarGroupContext.js +19 -0
  30. package/dist/esm/AvatarGroup/AvatarGroupContext.js.map +1 -0
  31. package/dist/esm/CheckBoxGroup/CheckBoxGroup.styles.js +2 -2
  32. package/dist/esm/CheckBoxGroup/CheckBoxGroup.styles.js.map +1 -1
  33. package/dist/esm/Dialog/Dialog.js +0 -1
  34. package/dist/esm/Dialog/Dialog.js.map +1 -1
  35. package/dist/esm/Drawer/Drawer.js +0 -5
  36. package/dist/esm/Drawer/Drawer.js.map +1 -1
  37. package/dist/esm/FilterGroup/Counter/Counter.js +4 -6
  38. package/dist/esm/FilterGroup/Counter/Counter.js.map +1 -1
  39. package/dist/esm/FilterGroup/LeftPanel/LeftPanel.js +13 -17
  40. package/dist/esm/FilterGroup/LeftPanel/LeftPanel.js.map +1 -1
  41. package/dist/esm/FilterGroup/RightPanel/RightPanel.js.map +1 -1
  42. package/dist/esm/FilterGroup/RightPanel/RightPanel.styles.js +1 -4
  43. package/dist/esm/FilterGroup/RightPanel/RightPanel.styles.js.map +1 -1
  44. package/dist/esm/Input/Input.js +1 -3
  45. package/dist/esm/Input/Input.js.map +1 -1
  46. package/dist/esm/List/List.js +25 -57
  47. package/dist/esm/List/List.js.map +1 -1
  48. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js +26 -21
  49. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js.map +1 -1
  50. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js +24 -29
  51. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js.map +1 -1
  52. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.js +29 -67
  53. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.js.map +1 -1
  54. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.styles.js +3 -20
  55. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.styles.js.map +1 -1
  56. package/dist/esm/ScrollTo/Vertical/ScrollToVertical.js +9 -22
  57. package/dist/esm/ScrollTo/Vertical/ScrollToVertical.js.map +1 -1
  58. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js +8 -15
  59. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js.map +1 -1
  60. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js +12 -7
  61. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js.map +1 -1
  62. package/dist/esm/providers/ThemeProvider.js +7 -0
  63. package/dist/esm/providers/ThemeProvider.js.map +1 -1
  64. package/dist/types/index.d.ts +24 -16
  65. package/package.json +5 -5
  66. package/dist/cjs/ScrollTo/withTooltip.cjs +0 -17
  67. package/dist/esm/ScrollTo/withTooltip.js +0 -17
  68. package/dist/esm/ScrollTo/withTooltip.js.map +0 -1
@@ -270,6 +270,8 @@ export declare const avatarGroupClasses: {
270
270
  root: "HvAvatarGroup-root";
271
271
  row: "HvAvatarGroup-row";
272
272
  column: "HvAvatarGroup-column";
273
+ highlight: "HvAvatarGroup-highlight";
274
+ toBack: "HvAvatarGroup-toBack";
273
275
  };
274
276
 
275
277
  export declare const badgeClasses: {
@@ -1110,6 +1112,8 @@ export declare const horizontalScrollListItemClasses: {
1110
1112
  selected: "HvHorizontalScrollListItem-selected";
1111
1113
  button: "HvHorizontalScrollListItem-button";
1112
1114
  text: "HvHorizontalScrollListItem-text";
1115
+ bullet: "HvHorizontalScrollListItem-bullet";
1116
+ bulletSelected: "HvHorizontalScrollListItem-bulletSelected";
1113
1117
  };
1114
1118
 
1115
1119
  export { HvAccentColor }
@@ -1389,7 +1393,7 @@ export declare interface HvAvatarProps extends HvBaseProps {
1389
1393
  /** The component used for the root node. Either a string to use a DOM element or a component. */
1390
1394
  component?: React.ElementType;
1391
1395
  /** Sets one of the standard sizes of the icons */
1392
- size?: HvAvatarSize;
1396
+ size?: HvSize;
1393
1397
  /** A color representing the foreground color of the avatar's letters or the generic User icon fallback. */
1394
1398
  color?: HvColorAny;
1395
1399
  /** A String representing the background color of the avatar. */
@@ -1419,6 +1423,7 @@ export declare interface HvAvatarProps extends HvBaseProps {
1419
1423
  classes?: HvAvatarClasses;
1420
1424
  }
1421
1425
 
1426
+ /** @deprecated use `HvSize` instead */
1422
1427
  export declare type HvAvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
1423
1428
 
1424
1429
  export declare type HvAvatarVariant = "circular" | "square";
@@ -4543,7 +4548,7 @@ export declare interface HvListProps extends HvBaseProps<HTMLUListElement, "onCh
4543
4548
  singleSelectionToggle?: boolean;
4544
4549
  /** If `true` the list will be rendered without vertical spacing. */
4545
4550
  condensed?: boolean;
4546
- /** If `true` the dropdown will show tooltips when user mouseenter text in list */
4551
+ /** If `true` the dropdown will show tooltips when user mouseenter text in list. @deprecated this is always enabled */
4547
4552
  hasTooltips?: boolean;
4548
4553
  /** Experimental. Height of the dropdown, in case you want to control it from a prop. Styles can also be used through dropdownListContainer class. Required in case virtualized is used */
4549
4554
  height?: number;
@@ -5512,18 +5517,14 @@ export declare const HvScrollToHorizontal: (props: HvScrollToHorizontalProps) =>
5512
5517
 
5513
5518
  export declare type HvScrollToHorizontalClasses = ExtractNames<typeof useClasses_98>;
5514
5519
 
5515
- export declare interface HvScrollToHorizontalOption {
5516
- key?: string;
5517
- label: string;
5518
- value: string;
5519
- offset?: number;
5520
- }
5520
+ /** @deprecated use `HvScrollToOption` */
5521
+ export declare type HvScrollToHorizontalOption = HvScrollToOption;
5521
5522
 
5522
5523
  export declare type HvScrollToHorizontalPositions = "sticky" | "fixed" | "relative";
5523
5524
 
5524
5525
  export declare interface HvScrollToHorizontalProps extends HvBaseProps<HTMLOListElement, "onChange" | "onClick"> {
5525
5526
  /** An Array of Objects with Label and Value. Label is the displayed Element and Value is the local navigation location applied */
5526
- options: HvScrollToHorizontalOption[];
5527
+ options: HvScrollToOption[];
5527
5528
  /**
5528
5529
  * Should the active element be reflected in the URL.
5529
5530
  *
@@ -5586,7 +5587,7 @@ export declare interface HvScrollToHorizontalProps extends HvBaseProps<HTMLOList
5586
5587
  }
5587
5588
 
5588
5589
  export declare interface HvScrollToOption {
5589
- key?: string;
5590
+ key?: React.Key;
5590
5591
  label: string;
5591
5592
  value: string;
5592
5593
  offset?: number;
@@ -5601,6 +5602,7 @@ export declare const HvScrollToVertical: (props: HvScrollToVerticalProps) => JSX
5601
5602
 
5602
5603
  export declare type HvScrollToVerticalClasses = ExtractNames<typeof useClasses_96>;
5603
5604
 
5605
+ /** @deprecated use `HvScrollToOption` */
5604
5606
  export declare type HvScrollToVerticalOption = HvScrollToOption;
5605
5607
 
5606
5608
  export declare type HvScrollToVerticalPositions = "absolute" | "fixed" | "relative";
@@ -8203,9 +8205,9 @@ export declare const scrollToHorizontalClasses: {
8203
8205
  root: "HvScrollToHorizontal-root";
8204
8206
  selected: "HvScrollToHorizontal-selected";
8205
8207
  notSelected: "HvScrollToHorizontal-notSelected";
8206
- notSelectedRoot: "HvScrollToHorizontal-notSelectedRoot";
8207
8208
  positionSticky: "HvScrollToHorizontal-positionSticky";
8208
8209
  positionFixed: "HvScrollToHorizontal-positionFixed";
8210
+ notSelectedRoot: "HvScrollToHorizontal-notSelectedRoot";
8209
8211
  };
8210
8212
 
8211
8213
  export declare const scrollToVerticalClasses: {
@@ -9524,11 +9526,13 @@ declare const useClasses_24: (classesProp?: Partial<Record<"container" | "xs" |
9524
9526
  cx: (...args: any) => string;
9525
9527
  };
9526
9528
 
9527
- declare const useClasses_25: (classesProp?: Partial<Record<"root" | "row" | "column", string>>, addStatic?: boolean) => {
9529
+ declare const useClasses_25: (classesProp?: Partial<Record<"root" | "row" | "column" | "highlight" | "toBack", string>>, addStatic?: boolean) => {
9528
9530
  classes: {
9529
9531
  root: string;
9530
9532
  row: string;
9531
9533
  column: string;
9534
+ highlight: string;
9535
+ toBack: string;
9532
9536
  };
9533
9537
  css: {
9534
9538
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -10896,9 +10900,10 @@ declare const useClasses_94: (classesProp?: Partial<Record<"container" | "label"
10896
10900
  cx: (...args: any) => string;
10897
10901
  };
10898
10902
 
10899
- declare const useClasses_95: (classesProp?: Partial<Record<"root" | "button" | "text" | "notSelected", string>>, addStatic?: boolean) => {
10903
+ declare const useClasses_95: (classesProp?: Partial<Record<"root" | "icon" | "button" | "text" | "notSelected", string>>, addStatic?: boolean) => {
10900
10904
  classes: {
10901
10905
  root: string;
10906
+ icon: string;
10902
10907
  button: string;
10903
10908
  text: string;
10904
10909
  notSelected: string;
@@ -10923,12 +10928,14 @@ declare const useClasses_96: (classesProp?: Partial<Record<"root" | "positionFix
10923
10928
  cx: (...args: any) => string;
10924
10929
  };
10925
10930
 
10926
- declare const useClasses_97: (classesProp?: Partial<Record<"root" | "selected" | "button" | "text", string>>, addStatic?: boolean) => {
10931
+ declare const useClasses_97: (classesProp?: Partial<Record<"root" | "selected" | "button" | "text" | "bullet" | "bulletSelected", string>>, addStatic?: boolean) => {
10927
10932
  classes: {
10928
10933
  root: string;
10929
10934
  selected: string;
10930
10935
  button: string;
10931
10936
  text: string;
10937
+ bullet: string;
10938
+ bulletSelected: string;
10932
10939
  };
10933
10940
  css: {
10934
10941
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -10937,14 +10944,14 @@ declare const useClasses_97: (classesProp?: Partial<Record<"root" | "selected" |
10937
10944
  cx: (...args: any) => string;
10938
10945
  };
10939
10946
 
10940
- declare const useClasses_98: (classesProp?: Partial<Record<"root" | "selected" | "notSelected" | "notSelectedRoot" | "positionSticky" | "positionFixed", string>>, addStatic?: boolean) => {
10947
+ declare const useClasses_98: (classesProp?: Partial<Record<"root" | "selected" | "notSelected" | "positionSticky" | "positionFixed" | "notSelectedRoot", string>>, addStatic?: boolean) => {
10941
10948
  classes: {
10942
10949
  root: string;
10943
10950
  selected: string;
10944
10951
  notSelected: string;
10945
- notSelectedRoot: string;
10946
10952
  positionSticky: string;
10947
10953
  positionFixed: string;
10954
+ notSelectedRoot: string;
10948
10955
  };
10949
10956
  css: {
10950
10957
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -11502,6 +11509,7 @@ export declare const verticalNavigationTreeClasses: {
11502
11509
 
11503
11510
  export declare const verticalScrollListItemClasses: {
11504
11511
  root: "HvVerticalScrollListItem-root";
11512
+ icon: "HvVerticalScrollListItem-icon";
11505
11513
  button: "HvVerticalScrollListItem-button";
11506
11514
  text: "HvVerticalScrollListItem-text";
11507
11515
  notSelected: "HvVerticalScrollListItem-notSelected";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.63.0",
3
+ "version": "5.63.2",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "Core React components for the NEXT Design System.",
@@ -33,9 +33,9 @@
33
33
  "@emotion/css": "^11.11.2",
34
34
  "@emotion/serialize": "^1.1.2",
35
35
  "@emotion/utils": "^1.2.1",
36
- "@hitachivantara/uikit-react-icons": "^5.9.8",
37
- "@hitachivantara/uikit-react-shared": "^5.1.38",
38
- "@hitachivantara/uikit-styles": "^5.28.0",
36
+ "@hitachivantara/uikit-react-icons": "^5.9.9",
37
+ "@hitachivantara/uikit-react-shared": "^5.1.39",
38
+ "@hitachivantara/uikit-styles": "^5.28.1",
39
39
  "@internationalized/date": "^3.2.0",
40
40
  "@mui/base": "^5.0.0-beta.34",
41
41
  "@popperjs/core": "^2.11.8",
@@ -62,7 +62,7 @@
62
62
  "access": "public",
63
63
  "directory": "package"
64
64
  },
65
- "gitHead": "2d237eef49915ff00973faca64e5286c0b495e4c",
65
+ "gitHead": "486e04c25523d3610342055dbe9f9e11cc35b4ce",
66
66
  "main": "dist/cjs/index.cjs",
67
67
  "exports": {
68
68
  ".": {
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
4
- const withTooltip$1 = require("../hocs/withTooltip.cjs");
5
- const Typography = require("../Typography/Typography.cjs");
6
- const hideTooltip = (event) => {
7
- const isOverFlow = event.target.children.length > 1 ? Array.from(event.currentTarget.children).some(
8
- (child) => child.scrollWidth > child.clientWidth
9
- ) : event.target.scrollWidth > event.target.clientWidth;
10
- return !isOverFlow;
11
- };
12
- const withTooltip = (label, componentType, tooltipPosition = "top", hideOnOverflow = true) => {
13
- const component = (props) => /* @__PURE__ */ jsxRuntime.jsx(Typography.HvTypography, { component: componentType, ...props, children: props.children });
14
- const hideTooltipFunc = hideOnOverflow ? hideTooltip : void 0;
15
- return withTooltip$1.withTooltip(component, label, tooltipPosition, hideTooltipFunc);
16
- };
17
- exports.withTooltip = withTooltip;
@@ -1,17 +0,0 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
2
- import { withTooltip as withTooltip$1 } from "../hocs/withTooltip.js";
3
- import { HvTypography } from "../Typography/Typography.js";
4
- const hideTooltip = (event) => {
5
- const isOverFlow = event.target.children.length > 1 ? Array.from(event.currentTarget.children).some(
6
- (child) => child.scrollWidth > child.clientWidth
7
- ) : event.target.scrollWidth > event.target.clientWidth;
8
- return !isOverFlow;
9
- };
10
- const withTooltip = (label, componentType, tooltipPosition = "top", hideOnOverflow = true) => {
11
- const component = (props) => /* @__PURE__ */ jsx(HvTypography, { component: componentType, ...props, children: props.children });
12
- const hideTooltipFunc = hideOnOverflow ? hideTooltip : void 0;
13
- return withTooltip$1(component, label, tooltipPosition, hideTooltipFunc);
14
- };
15
- export {
16
- withTooltip
17
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"withTooltip.js","sources":["../../../src/ScrollTo/withTooltip.tsx"],"sourcesContent":["import { withTooltip as withTooltipUtil } from \"../hocs/withTooltip\";\nimport { HvTypography, HvTypographyProps } from \"../Typography\";\nimport { HvScrollToTooltipPositions } from \"./types\";\n\nconst hideTooltip = (event: React.MouseEvent<HTMLDivElement>) => {\n const isOverFlow =\n (event.target as HTMLDivElement).children.length > 1\n ? Array.from(event.currentTarget.children).some(\n (child) => child.scrollWidth > child.clientWidth,\n )\n : (event.target as HTMLDivElement).scrollWidth >\n (event.target as HTMLDivElement).clientWidth;\n return !isOverFlow;\n};\n\nexport const withTooltip = (\n label: string,\n componentType: React.ElementType,\n tooltipPosition: HvScrollToTooltipPositions = \"top\",\n hideOnOverflow: boolean = true,\n) => {\n const component = (props: HvTypographyProps) => (\n <HvTypography component={componentType} {...props}>\n {props.children}\n </HvTypography>\n );\n\n const hideTooltipFunc = hideOnOverflow ? hideTooltip : undefined;\n\n return withTooltipUtil(component, label, tooltipPosition, hideTooltipFunc);\n};\n"],"names":["withTooltipUtil"],"mappings":";;;AAIA,MAAM,cAAc,CAAC,UAA4C;AACzD,QAAA,aACH,MAAM,OAA0B,SAAS,SAAS,IAC/C,MAAM,KAAK,MAAM,cAAc,QAAQ,EAAE;AAAA,IACvC,CAAC,UAAU,MAAM,cAAc,MAAM;AAAA,EAAA,IAEtC,MAAM,OAA0B,cAChC,MAAM,OAA0B;AACvC,SAAO,CAAC;AACV;AAEO,MAAM,cAAc,CACzB,OACA,eACA,kBAA8C,OAC9C,iBAA0B,SACvB;AACG,QAAA,YAAY,CAAC,UAChB,oBAAA,cAAA,EAAa,WAAW,eAAgB,GAAG,OACzC,UAAA,MAAM,SACT,CAAA;AAGI,QAAA,kBAAkB,iBAAiB,cAAc;AAEvD,SAAOA,cAAgB,WAAW,OAAO,iBAAiB,eAAe;AAC3E;"}