@hitachivantara/uikit-react-core 5.63.0 → 5.63.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.
Files changed (53) hide show
  1. package/dist/cjs/AppSwitcher/Action/Action.cjs +1 -1
  2. package/dist/cjs/CheckBoxGroup/CheckBoxGroup.styles.cjs +2 -2
  3. package/dist/cjs/Dialog/Dialog.cjs +0 -1
  4. package/dist/cjs/Drawer/Drawer.cjs +0 -5
  5. package/dist/cjs/FilterGroup/Counter/Counter.cjs +4 -6
  6. package/dist/cjs/FilterGroup/LeftPanel/LeftPanel.cjs +13 -17
  7. package/dist/cjs/FilterGroup/RightPanel/RightPanel.styles.cjs +1 -4
  8. package/dist/cjs/Input/Input.cjs +1 -3
  9. package/dist/cjs/List/List.cjs +25 -57
  10. package/dist/cjs/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.cjs +25 -20
  11. package/dist/cjs/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.cjs +24 -29
  12. package/dist/cjs/ScrollTo/Horizontal/ScrollToHorizontal.cjs +28 -66
  13. package/dist/cjs/ScrollTo/Horizontal/ScrollToHorizontal.styles.cjs +3 -20
  14. package/dist/cjs/ScrollTo/Vertical/ScrollToVertical.cjs +9 -22
  15. package/dist/cjs/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.cjs +8 -15
  16. package/dist/cjs/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.cjs +12 -7
  17. package/dist/esm/AppSwitcher/Action/Action.js +1 -1
  18. package/dist/esm/CheckBoxGroup/CheckBoxGroup.styles.js +2 -2
  19. package/dist/esm/CheckBoxGroup/CheckBoxGroup.styles.js.map +1 -1
  20. package/dist/esm/Dialog/Dialog.js +0 -1
  21. package/dist/esm/Dialog/Dialog.js.map +1 -1
  22. package/dist/esm/Drawer/Drawer.js +0 -5
  23. package/dist/esm/Drawer/Drawer.js.map +1 -1
  24. package/dist/esm/FilterGroup/Counter/Counter.js +4 -6
  25. package/dist/esm/FilterGroup/Counter/Counter.js.map +1 -1
  26. package/dist/esm/FilterGroup/LeftPanel/LeftPanel.js +13 -17
  27. package/dist/esm/FilterGroup/LeftPanel/LeftPanel.js.map +1 -1
  28. package/dist/esm/FilterGroup/RightPanel/RightPanel.js.map +1 -1
  29. package/dist/esm/FilterGroup/RightPanel/RightPanel.styles.js +1 -4
  30. package/dist/esm/FilterGroup/RightPanel/RightPanel.styles.js.map +1 -1
  31. package/dist/esm/Input/Input.js +1 -3
  32. package/dist/esm/Input/Input.js.map +1 -1
  33. package/dist/esm/List/List.js +25 -57
  34. package/dist/esm/List/List.js.map +1 -1
  35. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js +26 -21
  36. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.js.map +1 -1
  37. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js +24 -29
  38. package/dist/esm/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js.map +1 -1
  39. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.js +29 -67
  40. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.js.map +1 -1
  41. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.styles.js +3 -20
  42. package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.styles.js.map +1 -1
  43. package/dist/esm/ScrollTo/Vertical/ScrollToVertical.js +9 -22
  44. package/dist/esm/ScrollTo/Vertical/ScrollToVertical.js.map +1 -1
  45. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js +8 -15
  46. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.js.map +1 -1
  47. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js +12 -7
  48. package/dist/esm/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js.map +1 -1
  49. package/dist/types/index.d.ts +17 -14
  50. package/package.json +5 -5
  51. package/dist/cjs/ScrollTo/withTooltip.cjs +0 -17
  52. package/dist/esm/ScrollTo/withTooltip.js +0 -17
  53. package/dist/esm/ScrollTo/withTooltip.js.map +0 -1
@@ -1,6 +1,5 @@
1
1
  import { jsx } from "@emotion/react/jsx-runtime";
2
2
  import { useDefaultProps } from "../../hooks/useDefaultProps.js";
3
- import { useUniqueId } from "../../hooks/useUniqueId.js";
4
3
  import { isKey } from "../../utils/keyboardUtils.js";
5
4
  import { setId } from "../../utils/setId.js";
6
5
  import { useScrollTo } from "../useScrollTo.js";
@@ -28,7 +27,6 @@ const HvScrollToVertical = (props) => {
28
27
  ...others
29
28
  } = useDefaultProps("HvScrollToVertical", props);
30
29
  const { classes, cx } = useClasses(classesProp);
31
- const elementId = useUniqueId(id);
32
30
  const [selectedIndex, setScrollTo, elements] = useScrollTo(
33
31
  defaultSelectedIndex,
34
32
  scrollElementId,
@@ -38,32 +36,21 @@ const HvScrollToVertical = (props) => {
38
36
  options,
39
37
  onChange
40
38
  );
41
- const handleSelection = (event, value, index) => {
42
- event.preventDefault();
43
- const wrappedOnChange = () => {
44
- onChange?.(event, index);
45
- };
46
- setScrollTo(event, value, index, wrappedOnChange);
47
- };
48
39
  const tabs = elements.map((option, index) => /* @__PURE__ */ jsx(
49
40
  HvVerticalScrollListItem,
50
41
  {
51
- id: setId(elementId, `item-${index}`),
42
+ id: setId(id, `item-${index}`),
52
43
  onClick: (event) => {
53
- if (navigationMode !== "none") {
54
- event.preventDefault();
55
- }
56
- handleSelection(event, option.value, index);
44
+ event.preventDefault();
45
+ setScrollTo(event, option.value, index, () => onChange?.(event, index));
57
46
  onClick?.(event, index);
58
47
  },
59
48
  onKeyDown: (event) => {
60
- if (isKey(event, "Enter") === true) {
61
- if (navigationMode !== "none") {
62
- event.preventDefault();
63
- }
64
- handleSelection(event, option.value, index);
65
- onEnter?.(event, index);
66
- }
49
+ if (isKey(event, "Enter") !== true)
50
+ return;
51
+ event.preventDefault();
52
+ setScrollTo(event, option.value, index, () => onChange?.(event, index));
53
+ onEnter?.(event, index);
67
54
  },
68
55
  href: navigationMode !== "none" ? option.href : void 0,
69
56
  tooltipPlacement: tooltipPosition,
@@ -85,7 +72,7 @@ const HvScrollToVertical = (props) => {
85
72
  className
86
73
  ),
87
74
  style: { top: `calc(50% - ${positionOffset}px)`, ...style },
88
- id: elementId,
75
+ id,
89
76
  ...others,
90
77
  children: tabs
91
78
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollToVertical.js","sources":["../../../../src/ScrollTo/Vertical/ScrollToVertical.tsx"],"sourcesContent":["import { useDefaultProps } from \"../../hooks/useDefaultProps\";\nimport { useUniqueId } from \"../../hooks/useUniqueId\";\nimport { HvBaseProps } from \"../../types/generic\";\nimport { ExtractNames } from \"../../utils/classes\";\nimport { isKey } from \"../../utils/keyboardUtils\";\nimport { setId } from \"../../utils/setId\";\nimport {\n HvScrollToOption,\n HvScrollToTooltipPositions,\n HvScrollToVerticalPositions,\n} from \"../types\";\nimport { useScrollTo } from \"../useScrollTo\";\nimport {\n calculateOffset,\n staticClasses,\n useClasses,\n} from \"./ScrollToVertical.styles\";\nimport { HvVerticalScrollListItem } from \"./VerticalScrollListItem\";\n\nexport { staticClasses as scrollToVerticalClasses };\n\nexport type HvScrollToVerticalClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvScrollToVerticalProps\n extends HvBaseProps<HTMLOListElement, \"onChange\" | \"onClick\"> {\n /** An Array of Objects with Label and Value. Label is the displayed Element and Value is the local navigation location applied */\n options: HvScrollToOption[];\n /**\n * Should the active element be reflected in the URL.\n *\n * @default true\n *\n * @deprecated Use `navigationMode` instead.\n * */\n href?: boolean;\n /**\n * The navigation mode to be used when the user clicks on a tab element.\n * - `push` will add a new entry to the history stack.\n * - `replace` will replace the current entry on the history stack.\n * - `none` will not add any entry to the history stack.\n *\n * Defaults to `push`, unless the deprecated `href` prop is set to `false`, in which case it defaults to `none`.\n *\n * When set to `none`, then each element will render a button instead of a link.\n *\n * @default \"push\"\n */\n navigationMode?: \"push\" | \"replace\" | \"none\";\n /**\n * When set to `true`, the generated links will be relative (e.g. `#section`).\n * Relative URLs take into account not only the current location, but also the base URL if it is set (i.e. a `<base>` tag).\n * This can lead to unexpected behavior.\n *\n * When set to `false`, the links will be generated from the current location's full URL (e.g. `http://example.com/hello/world?value=123#section`).\n *\n * @default false\n */\n relativeLinks?: boolean;\n /** Default selected index passed from the parent. */\n defaultSelectedIndex?: number;\n /**\n * The Id of the scrollable container containing displayed elements.\n *\n * Defaults to `window` if unspecified.\n */\n scrollElementId?: string;\n /**\n * Defines the offset from the top of each element for getting an optimal viewing region in the container.\n * This allows to exclude regions of the container that are obscured by other content (such as fixed-positioned toolbars or titles)\n * or to put more breathing room between the targeted element and the edges of the container.\n *\n * Each element can also have a specific offset via the options property.\n */\n offset?: number;\n /** Position of the Vertical scroll to. */\n position?: HvScrollToVerticalPositions;\n /** Position of tooltip identifying the current item. */\n tooltipPosition?: HvScrollToTooltipPositions;\n /** A function called each time the selected index changes. */\n onChange?: (\n event:\n | Event\n | React.MouseEvent<HTMLDivElement | HTMLAnchorElement>\n | React.KeyboardEvent<HTMLDivElement | HTMLAnchorElement>,\n index: number,\n ) => void;\n /** A function called each time an user clicks on a tab element. */\n onClick?: (\n event: React.MouseEvent<HTMLDivElement | HTMLAnchorElement>,\n index: number,\n ) => void;\n /** A function called each time an user press enter on a tab element. */\n onEnter?: (\n event: React.KeyboardEvent<HTMLDivElement | HTMLAnchorElement>,\n index: number,\n ) => void;\n /** A Jss Object used to override or extend the styles applied. */\n classes?: HvScrollToVerticalClasses;\n}\n\n/**\n * The vertical scroll to element can be used to quickly navigate in a page.\n */\nexport const HvScrollToVertical = (props: HvScrollToVerticalProps) => {\n const {\n id,\n defaultSelectedIndex = 0,\n scrollElementId,\n href = true,\n navigationMode = href ? \"push\" : \"none\",\n relativeLinks = false,\n onChange,\n onClick,\n onEnter,\n className,\n classes: classesProp,\n options,\n offset = 0,\n position = \"relative\",\n tooltipPosition = \"left\",\n style,\n ...others\n } = useDefaultProps(\"HvScrollToVertical\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const elementId = useUniqueId(id);\n\n const [selectedIndex, setScrollTo, elements] = useScrollTo(\n defaultSelectedIndex,\n scrollElementId,\n navigationMode,\n relativeLinks,\n offset,\n options,\n onChange,\n );\n\n const handleSelection = (\n event:\n | React.MouseEvent<HTMLDivElement | HTMLAnchorElement>\n | React.KeyboardEvent<HTMLDivElement | HTMLAnchorElement>,\n value: string,\n index: number,\n ) => {\n event.preventDefault();\n\n const wrappedOnChange = () => {\n onChange?.(event, index);\n };\n\n setScrollTo(event, value, index, wrappedOnChange);\n };\n\n const tabs = elements.map((option, index) => (\n <HvVerticalScrollListItem\n id={setId(elementId, `item-${index}`)}\n onClick={(event) => {\n if (navigationMode !== \"none\") {\n event.preventDefault();\n }\n\n handleSelection(event, option.value, index);\n onClick?.(event, index);\n }}\n onKeyDown={(event) => {\n if (isKey(event, \"Enter\") === true) {\n if (navigationMode !== \"none\") {\n event.preventDefault();\n }\n\n handleSelection(event, option.value, index);\n onEnter?.(event, index);\n }\n }}\n href={navigationMode !== \"none\" ? option.href : undefined}\n tooltipPlacement={tooltipPosition}\n selected={selectedIndex === index}\n key={option.key || option.label}\n label={option.label}\n />\n ));\n\n const positionOffset = calculateOffset(options.length);\n\n return (\n <ol\n className={cx(\n classes.root,\n {\n [classes.positionFixed]: position === \"fixed\",\n [classes.positionAbsolute]: position === \"absolute\",\n },\n className,\n )}\n style={{ top: `calc(50% - ${positionOffset}px)`, ...style }}\n id={elementId}\n {...others}\n >\n {tabs}\n </ol>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAuGa,MAAA,qBAAqB,CAAC,UAAmC;AAC9D,QAAA;AAAA,IACJ;AAAA,IACA,uBAAuB;AAAA,IACvB;AAAA,IACA,OAAO;AAAA,IACP,iBAAiB,OAAO,SAAS;AAAA,IACjC,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,SAAS;AAAA,IACT,WAAW;AAAA,IACX,kBAAkB;AAAA,IAClB;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,sBAAsB,KAAK;AAE/C,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAExC,QAAA,YAAY,YAAY,EAAE;AAEhC,QAAM,CAAC,eAAe,aAAa,QAAQ,IAAI;AAAA,IAC7C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAGF,QAAM,kBAAkB,CACtB,OAGA,OACA,UACG;AACH,UAAM,eAAe;AAErB,UAAM,kBAAkB,MAAM;AAC5B,iBAAW,OAAO,KAAK;AAAA,IAAA;AAGb,gBAAA,OAAO,OAAO,OAAO,eAAe;AAAA,EAAA;AAGlD,QAAM,OAAO,SAAS,IAAI,CAAC,QAAQ,UACjC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAI,MAAM,WAAW,QAAQ,KAAK,EAAE;AAAA,MACpC,SAAS,CAAC,UAAU;AAClB,YAAI,mBAAmB,QAAQ;AAC7B,gBAAM,eAAe;AAAA,QACvB;AAEgB,wBAAA,OAAO,OAAO,OAAO,KAAK;AAC1C,kBAAU,OAAO,KAAK;AAAA,MACxB;AAAA,MACA,WAAW,CAAC,UAAU;AACpB,YAAI,MAAM,OAAO,OAAO,MAAM,MAAM;AAClC,cAAI,mBAAmB,QAAQ;AAC7B,kBAAM,eAAe;AAAA,UACvB;AAEgB,0BAAA,OAAO,OAAO,OAAO,KAAK;AAC1C,oBAAU,OAAO,KAAK;AAAA,QACxB;AAAA,MACF;AAAA,MACA,MAAM,mBAAmB,SAAS,OAAO,OAAO;AAAA,MAChD,kBAAkB;AAAA,MAClB,UAAU,kBAAkB;AAAA,MAE5B,OAAO,OAAO;AAAA,IAAA;AAAA,IADT,OAAO,OAAO,OAAO;AAAA,EAAA,CAG7B;AAEK,QAAA,iBAAiB,gBAAgB,QAAQ,MAAM;AAGnD,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT,QAAQ;AAAA,QACR;AAAA,UACE,CAAC,QAAQ,aAAa,GAAG,aAAa;AAAA,UACtC,CAAC,QAAQ,gBAAgB,GAAG,aAAa;AAAA,QAC3C;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO,EAAE,KAAK,cAAc,cAAc,OAAO,GAAG,MAAM;AAAA,MAC1D,IAAI;AAAA,MACH,GAAG;AAAA,MAEH,UAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"ScrollToVertical.js","sources":["../../../../src/ScrollTo/Vertical/ScrollToVertical.tsx"],"sourcesContent":["import { useDefaultProps } from \"../../hooks/useDefaultProps\";\nimport { HvBaseProps } from \"../../types/generic\";\nimport { ExtractNames } from \"../../utils/classes\";\nimport { isKey } from \"../../utils/keyboardUtils\";\nimport { setId } from \"../../utils/setId\";\nimport {\n HvScrollToOption,\n HvScrollToTooltipPositions,\n HvScrollToVerticalPositions,\n} from \"../types\";\nimport { useScrollTo } from \"../useScrollTo\";\nimport {\n calculateOffset,\n staticClasses,\n useClasses,\n} from \"./ScrollToVertical.styles\";\nimport { HvVerticalScrollListItem } from \"./VerticalScrollListItem\";\n\nexport { staticClasses as scrollToVerticalClasses };\n\nexport type HvScrollToVerticalClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvScrollToVerticalProps\n extends HvBaseProps<HTMLOListElement, \"onChange\" | \"onClick\"> {\n /** An Array of Objects with Label and Value. Label is the displayed Element and Value is the local navigation location applied */\n options: HvScrollToOption[];\n /**\n * Should the active element be reflected in the URL.\n *\n * @default true\n *\n * @deprecated Use `navigationMode` instead.\n * */\n href?: boolean;\n /**\n * The navigation mode to be used when the user clicks on a tab element.\n * - `push` will add a new entry to the history stack.\n * - `replace` will replace the current entry on the history stack.\n * - `none` will not add any entry to the history stack.\n *\n * Defaults to `push`, unless the deprecated `href` prop is set to `false`, in which case it defaults to `none`.\n *\n * When set to `none`, then each element will render a button instead of a link.\n *\n * @default \"push\"\n */\n navigationMode?: \"push\" | \"replace\" | \"none\";\n /**\n * When set to `true`, the generated links will be relative (e.g. `#section`).\n * Relative URLs take into account not only the current location, but also the base URL if it is set (i.e. a `<base>` tag).\n * This can lead to unexpected behavior.\n *\n * When set to `false`, the links will be generated from the current location's full URL (e.g. `http://example.com/hello/world?value=123#section`).\n *\n * @default false\n */\n relativeLinks?: boolean;\n /** Default selected index passed from the parent. */\n defaultSelectedIndex?: number;\n /**\n * The Id of the scrollable container containing displayed elements.\n *\n * Defaults to `window` if unspecified.\n */\n scrollElementId?: string;\n /**\n * Defines the offset from the top of each element for getting an optimal viewing region in the container.\n * This allows to exclude regions of the container that are obscured by other content (such as fixed-positioned toolbars or titles)\n * or to put more breathing room between the targeted element and the edges of the container.\n *\n * Each element can also have a specific offset via the options property.\n */\n offset?: number;\n /** Position of the Vertical scroll to. */\n position?: HvScrollToVerticalPositions;\n /** Position of tooltip identifying the current item. */\n tooltipPosition?: HvScrollToTooltipPositions;\n /** A function called each time the selected index changes. */\n onChange?: (\n event:\n | Event\n | React.MouseEvent<HTMLDivElement | HTMLAnchorElement>\n | React.KeyboardEvent<HTMLDivElement | HTMLAnchorElement>,\n index: number,\n ) => void;\n /** A function called each time an user clicks on a tab element. */\n onClick?: (\n event: React.MouseEvent<HTMLDivElement | HTMLAnchorElement>,\n index: number,\n ) => void;\n /** A function called each time an user press enter on a tab element. */\n onEnter?: (\n event: React.KeyboardEvent<HTMLDivElement | HTMLAnchorElement>,\n index: number,\n ) => void;\n /** A Jss Object used to override or extend the styles applied. */\n classes?: HvScrollToVerticalClasses;\n}\n\n/**\n * The vertical scroll to element can be used to quickly navigate in a page.\n */\nexport const HvScrollToVertical = (props: HvScrollToVerticalProps) => {\n const {\n id,\n defaultSelectedIndex = 0,\n scrollElementId,\n href = true,\n navigationMode = href ? \"push\" : \"none\",\n relativeLinks = false,\n onChange,\n onClick,\n onEnter,\n className,\n classes: classesProp,\n options,\n offset = 0,\n position = \"relative\",\n tooltipPosition = \"left\",\n style,\n ...others\n } = useDefaultProps(\"HvScrollToVertical\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const [selectedIndex, setScrollTo, elements] = useScrollTo(\n defaultSelectedIndex,\n scrollElementId,\n navigationMode,\n relativeLinks,\n offset,\n options,\n onChange,\n );\n\n const tabs = elements.map((option, index) => (\n <HvVerticalScrollListItem\n id={setId(id, `item-${index}`)}\n onClick={(event) => {\n event.preventDefault();\n\n setScrollTo(event, option.value, index, () => onChange?.(event, index));\n onClick?.(event, index);\n }}\n onKeyDown={(event) => {\n if (isKey(event, \"Enter\") !== true) return;\n event.preventDefault();\n\n setScrollTo(event, option.value, index, () => onChange?.(event, index));\n onEnter?.(event, index);\n }}\n href={navigationMode !== \"none\" ? option.href : undefined}\n tooltipPlacement={tooltipPosition}\n selected={selectedIndex === index}\n key={option.key || option.label}\n label={option.label}\n />\n ));\n\n const positionOffset = calculateOffset(options.length);\n\n return (\n <ol\n className={cx(\n classes.root,\n {\n [classes.positionFixed]: position === \"fixed\",\n [classes.positionAbsolute]: position === \"absolute\",\n },\n className,\n )}\n style={{ top: `calc(50% - ${positionOffset}px)`, ...style }}\n id={id}\n {...others}\n >\n {tabs}\n </ol>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAsGa,MAAA,qBAAqB,CAAC,UAAmC;AAC9D,QAAA;AAAA,IACJ;AAAA,IACA,uBAAuB;AAAA,IACvB;AAAA,IACA,OAAO;AAAA,IACP,iBAAiB,OAAO,SAAS;AAAA,IACjC,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,SAAS;AAAA,IACT,WAAW;AAAA,IACX,kBAAkB;AAAA,IAClB;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,sBAAsB,KAAK;AAE/C,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAE9C,QAAM,CAAC,eAAe,aAAa,QAAQ,IAAI;AAAA,IAC7C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAGF,QAAM,OAAO,SAAS,IAAI,CAAC,QAAQ,UACjC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAI,MAAM,IAAI,QAAQ,KAAK,EAAE;AAAA,MAC7B,SAAS,CAAC,UAAU;AAClB,cAAM,eAAe;AAET,oBAAA,OAAO,OAAO,OAAO,OAAO,MAAM,WAAW,OAAO,KAAK,CAAC;AACtE,kBAAU,OAAO,KAAK;AAAA,MACxB;AAAA,MACA,WAAW,CAAC,UAAU;AAChB,YAAA,MAAM,OAAO,OAAO,MAAM;AAAM;AACpC,cAAM,eAAe;AAET,oBAAA,OAAO,OAAO,OAAO,OAAO,MAAM,WAAW,OAAO,KAAK,CAAC;AACtE,kBAAU,OAAO,KAAK;AAAA,MACxB;AAAA,MACA,MAAM,mBAAmB,SAAS,OAAO,OAAO;AAAA,MAChD,kBAAkB;AAAA,MAClB,UAAU,kBAAkB;AAAA,MAE5B,OAAO,OAAO;AAAA,IAAA;AAAA,IADT,OAAO,OAAO,OAAO;AAAA,EAAA,CAG7B;AAEK,QAAA,iBAAiB,gBAAgB,QAAQ,MAAM;AAGnD,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT,QAAQ;AAAA,QACR;AAAA,UACE,CAAC,QAAQ,aAAa,GAAG,aAAa;AAAA,UACtC,CAAC,QAAQ,gBAAgB,GAAG,aAAa;AAAA,QAC3C;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO,EAAE,KAAK,cAAc,cAAc,OAAO,GAAG,MAAM;AAAA,MAC1D;AAAA,MACC,GAAG;AAAA,MAEH,UAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -1,7 +1,5 @@
1
1
  import { jsx } from "@emotion/react/jsx-runtime";
2
- import { CurrentStep } from "@hitachivantara/uikit-react-icons";
3
2
  import { useDefaultProps } from "../../../hooks/useDefaultProps.js";
4
- import { useTheme } from "../../../hooks/useTheme.js";
5
3
  import { useClasses } from "./VerticalScrollListItem.styles.js";
6
4
  import { staticClasses } from "./VerticalScrollListItem.styles.js";
7
5
  import { HvTooltip } from "../../../Tooltip/Tooltip.js";
@@ -12,33 +10,28 @@ const HvVerticalScrollListItem = (props) => {
12
10
  classes: classesProp,
13
11
  selected,
14
12
  label,
15
- onClick,
16
- onKeyDown,
17
13
  tooltipPlacement = "left",
18
14
  href,
19
15
  ...others
20
16
  } = useDefaultProps("HvVerticalScrollListItem", props);
21
17
  const { classes, cx } = useClasses(classesProp);
22
- const { activeTheme } = useTheme();
23
- const icon = selected ? /* @__PURE__ */ jsx(
24
- CurrentStep,
25
- {
26
- height: activeTheme?.scrollTo.dotSelectedSize,
27
- width: activeTheme?.scrollTo.dotSelectedSize
28
- }
29
- ) : /* @__PURE__ */ jsx("div", { className: classes.notSelected });
30
18
  const Component = href != null ? "a" : "div";
31
19
  return /* @__PURE__ */ jsx("li", { id, className: cx(classes.root, className), "aria-current": selected, children: /* @__PURE__ */ jsx(HvTooltip, { title: label, placement: tooltipPlacement, children: /* @__PURE__ */ jsx(
32
20
  Component,
33
21
  {
34
22
  role: href == null ? "button" : void 0,
35
23
  tabIndex: 0,
36
- onClick,
37
- onKeyDown,
38
24
  className: cx(classes.button, classes.text),
39
25
  href,
40
26
  ...others,
41
- children: icon
27
+ children: /* @__PURE__ */ jsx(
28
+ "div",
29
+ {
30
+ className: cx(classes.icon, {
31
+ [classes.notSelected]: !selected
32
+ })
33
+ }
34
+ )
42
35
  }
43
36
  ) }) });
44
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalScrollListItem.js","sources":["../../../../../src/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.tsx"],"sourcesContent":["import { CurrentStep } from \"@hitachivantara/uikit-react-icons\";\n\nimport { useDefaultProps } from \"../../../hooks/useDefaultProps\";\nimport { useTheme } from \"../../../hooks/useTheme\";\nimport { HvTooltip, HvTooltipProps } from \"../../../Tooltip\";\nimport { HvBaseProps } from \"../../../types/generic\";\nimport { ExtractNames } from \"../../../utils/classes\";\nimport { staticClasses, useClasses } from \"./VerticalScrollListItem.styles\";\n\nexport { staticClasses as verticalScrollListItemClasses };\n\nexport type HvVerticalScrollListItemClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvVerticalScrollListItemProps\n extends HvBaseProps<HTMLDivElement | HTMLAnchorElement> {\n /** A Jss Object used to override or extend the styles applied. */\n classes?: HvVerticalScrollListItemClasses;\n /** Whether the element is selected. */\n selected?: boolean;\n /** The function to be executed when the element is clicked. */\n onClick?: (\n event: React.MouseEvent<HTMLDivElement | HTMLAnchorElement>,\n ) => void;\n /** The function to be executed when the element is clicked. */\n onKeyDown?: (\n event: React.KeyboardEvent<HTMLDivElement | HTMLAnchorElement>,\n ) => void;\n label?: React.ReactNode;\n tooltipPlacement?: HvTooltipProps[\"placement\"];\n\n /**\n * The link to be set in the href attribute of the anchor element.\n *\n * If this is not set, the element will be rendered as a div with a button role.\n */\n href?: string;\n}\n\n/**\n * HvVerticalScrollListItem a focusable item to be used as part of the vertical scroll\n */\nexport const HvVerticalScrollListItem = (\n props: HvVerticalScrollListItemProps,\n) => {\n const {\n id,\n className,\n classes: classesProp,\n selected,\n label,\n onClick,\n onKeyDown,\n tooltipPlacement = \"left\",\n href,\n ...others\n } = useDefaultProps(\"HvVerticalScrollListItem\", props);\n const { classes, cx } = useClasses(classesProp);\n const { activeTheme } = useTheme();\n\n const icon = selected ? (\n <CurrentStep\n height={activeTheme?.scrollTo.dotSelectedSize}\n width={activeTheme?.scrollTo.dotSelectedSize}\n />\n ) : (\n <div className={classes.notSelected} />\n );\n\n const Component = href != null ? \"a\" : \"div\";\n\n return (\n <li id={id} className={cx(classes.root, className)} aria-current={selected}>\n <HvTooltip title={label} placement={tooltipPlacement}>\n <Component\n role={href == null ? \"button\" : undefined}\n tabIndex={0}\n onClick={onClick}\n onKeyDown={onKeyDown}\n className={cx(classes.button, classes.text)}\n href={href}\n {...others}\n >\n {icon}\n </Component>\n </HvTooltip>\n </li>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAyCa,MAAA,2BAA2B,CACtC,UACG;AACG,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB;AAAA,IACnB;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,4BAA4B,KAAK;AACrD,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AACxC,QAAA,EAAE,gBAAgB;AAExB,QAAM,OAAO,WACX;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,QAAQ,aAAa,SAAS;AAAA,MAC9B,OAAO,aAAa,SAAS;AAAA,IAAA;AAAA,EAAA,IAG/B,oBAAC,OAAI,EAAA,WAAW,QAAQ,YAAa,CAAA;AAGjC,QAAA,YAAY,QAAQ,OAAO,MAAM;AAEvC,6BACG,MAAG,EAAA,IAAQ,WAAW,GAAG,QAAQ,MAAM,SAAS,GAAG,gBAAc,UAChE,UAAC,oBAAA,WAAA,EAAU,OAAO,OAAO,WAAW,kBAClC,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAM,QAAQ,OAAO,WAAW;AAAA,MAChC,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA,WAAW,GAAG,QAAQ,QAAQ,QAAQ,IAAI;AAAA,MAC1C;AAAA,MACC,GAAG;AAAA,MAEH,UAAA;AAAA,IAAA;AAAA,EAAA,EAEL,CAAA,EACF,CAAA;AAEJ;"}
1
+ {"version":3,"file":"VerticalScrollListItem.js","sources":["../../../../../src/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.tsx"],"sourcesContent":["import { useDefaultProps } from \"../../../hooks/useDefaultProps\";\nimport { HvTooltip, HvTooltipProps } from \"../../../Tooltip\";\nimport { HvBaseProps } from \"../../../types/generic\";\nimport { ExtractNames } from \"../../../utils/classes\";\nimport { staticClasses, useClasses } from \"./VerticalScrollListItem.styles\";\n\nexport { staticClasses as verticalScrollListItemClasses };\n\nexport type HvVerticalScrollListItemClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvVerticalScrollListItemProps\n extends HvBaseProps<HTMLDivElement | HTMLAnchorElement> {\n /** A Jss Object used to override or extend the styles applied. */\n classes?: HvVerticalScrollListItemClasses;\n /** Whether the element is selected. */\n selected?: boolean;\n label?: React.ReactNode;\n tooltipPlacement?: HvTooltipProps[\"placement\"];\n\n /**\n * The link to be set in the href attribute of the anchor element.\n *\n * If this is not set, the element will be rendered as a div with a button role.\n */\n href?: string;\n}\n\n/**\n * HvVerticalScrollListItem a focusable item to be used as part of the vertical scroll\n */\nexport const HvVerticalScrollListItem = (\n props: HvVerticalScrollListItemProps,\n) => {\n const {\n id,\n className,\n classes: classesProp,\n selected,\n label,\n tooltipPlacement = \"left\",\n href,\n ...others\n } = useDefaultProps(\"HvVerticalScrollListItem\", props);\n const { classes, cx } = useClasses(classesProp);\n\n const Component = href != null ? \"a\" : \"div\";\n\n return (\n <li id={id} className={cx(classes.root, className)} aria-current={selected}>\n <HvTooltip title={label} placement={tooltipPlacement}>\n <Component\n role={href == null ? \"button\" : undefined}\n tabIndex={0}\n className={cx(classes.button, classes.text)}\n href={href}\n {...others}\n >\n <div\n className={cx(classes.icon, {\n [classes.notSelected]: !selected,\n })}\n />\n </Component>\n </HvTooltip>\n </li>\n );\n};\n"],"names":[],"mappings":";;;;;AA8Ba,MAAA,2BAA2B,CACtC,UACG;AACG,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,mBAAmB;AAAA,IACnB;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,4BAA4B,KAAK;AACrD,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAExC,QAAA,YAAY,QAAQ,OAAO,MAAM;AAEvC,6BACG,MAAG,EAAA,IAAQ,WAAW,GAAG,QAAQ,MAAM,SAAS,GAAG,gBAAc,UAChE,UAAC,oBAAA,WAAA,EAAU,OAAO,OAAO,WAAW,kBAClC,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAM,QAAQ,OAAO,WAAW;AAAA,MAChC,UAAU;AAAA,MACV,WAAW,GAAG,QAAQ,QAAQ,QAAQ,IAAI;AAAA,MAC1C;AAAA,MACC,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAW,GAAG,QAAQ,MAAM;AAAA,YAC1B,CAAC,QAAQ,WAAW,GAAG,CAAC;AAAA,UAAA,CACzB;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA,EAEJ,CAAA,EACF,CAAA;AAEJ;"}
@@ -11,12 +11,18 @@ const { staticClasses, useClasses } = createClasses(name, {
11
11
  justifyContent: "center",
12
12
  alignItems: "center"
13
13
  },
14
- notSelected: {
15
- height: "4px",
16
- width: "4px",
14
+ icon: {
15
+ width: "1em",
16
+ height: "1em",
17
17
  borderRadius: "50%",
18
+ fontSize: 6,
19
+ color: theme.colors.secondary,
18
20
  display: "inline-block",
19
- backgroundColor: theme.colors.secondary_60
21
+ backgroundColor: "currentcolor"
22
+ },
23
+ notSelected: {
24
+ fontSize: 4,
25
+ color: theme.colors.secondary_60
20
26
  },
21
27
  // TODO: remove in v6 (use classes.button)
22
28
  text: {},
@@ -31,9 +37,8 @@ const { staticClasses, useClasses } = createClasses(name, {
31
37
  "&:hover": {
32
38
  backgroundColor: theme.colors.containerBackgroundHover,
33
39
  "& $notSelected": {
34
- height: "6px",
35
- width: "6px",
36
- backgroundColor: theme.colors.secondary
40
+ fontSize: 6,
41
+ color: theme.colors.secondary
37
42
  }
38
43
  },
39
44
  "&:focus": {
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalScrollListItem.styles.js","sources":["../../../../../src/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.ts"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"../../../utils/classes\";\nimport { outlineStyles } from \"../../../utils/focusUtils\";\n\nconst name = \"HvVerticalScrollListItem\";\n\nexport const { staticClasses, useClasses } = createClasses(name, {\n root: {\n padding: \"0\",\n height: \"32px\",\n width: \"32px\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n notSelected: {\n height: \"4px\",\n width: \"4px\",\n borderRadius: \"50%\",\n display: \"inline-block\",\n backgroundColor: theme.colors.secondary_60,\n },\n // TODO: remove in v6 (use classes.button)\n text: {},\n button: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n height: \"16px\",\n width: \"16px\",\n borderRadius: \"50%\",\n cursor: \"pointer\",\n \"&:hover\": {\n backgroundColor: theme.colors.containerBackgroundHover,\n\n \"& $notSelected\": {\n height: \"6px\",\n width: \"6px\",\n backgroundColor: theme.colors.secondary,\n },\n },\n \"&:focus\": {\n outline: \"none\",\n },\n \"&:focus-visible\": {\n ...outlineStyles,\n },\n },\n});\n"],"names":[],"mappings":";;;AAKA,MAAM,OAAO;AAEN,MAAM,EAAE,eAAe,eAAe,cAAc,MAAM;AAAA,EAC/D,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,YAAY;AAAA,EACd;AAAA,EACA,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,cAAc;AAAA,IACd,SAAS;AAAA,IACT,iBAAiB,MAAM,OAAO;AAAA,EAChC;AAAA;AAAA,EAEA,MAAM,CAAC;AAAA,EACP,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,WAAW;AAAA,MACT,iBAAiB,MAAM,OAAO;AAAA,MAE9B,kBAAkB;AAAA,QAChB,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,iBAAiB,MAAM,OAAO;AAAA,MAChC;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,mBAAmB;AAAA,MACjB,GAAG;AAAA,IACL;AAAA,EACF;AACF,CAAC;"}
1
+ {"version":3,"file":"VerticalScrollListItem.styles.js","sources":["../../../../../src/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.ts"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"../../../utils/classes\";\nimport { outlineStyles } from \"../../../utils/focusUtils\";\n\nconst name = \"HvVerticalScrollListItem\";\n\nexport const { staticClasses, useClasses } = createClasses(name, {\n root: {\n padding: \"0\",\n height: \"32px\",\n width: \"32px\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n icon: {\n width: \"1em\",\n height: \"1em\",\n borderRadius: \"50%\",\n fontSize: 6,\n color: theme.colors.secondary,\n display: \"inline-block\",\n backgroundColor: \"currentcolor\",\n },\n notSelected: {\n fontSize: 4,\n color: theme.colors.secondary_60,\n },\n // TODO: remove in v6 (use classes.button)\n text: {},\n button: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n height: \"16px\",\n width: \"16px\",\n borderRadius: \"50%\",\n cursor: \"pointer\",\n \"&:hover\": {\n backgroundColor: theme.colors.containerBackgroundHover,\n\n \"& $notSelected\": {\n fontSize: 6,\n color: theme.colors.secondary,\n },\n },\n \"&:focus\": {\n outline: \"none\",\n },\n \"&:focus-visible\": {\n ...outlineStyles,\n },\n },\n});\n"],"names":[],"mappings":";;;AAKA,MAAM,OAAO;AAEN,MAAM,EAAE,eAAe,eAAe,cAAc,MAAM;AAAA,EAC/D,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,YAAY;AAAA,EACd;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,UAAU;AAAA,IACV,OAAO,MAAM,OAAO;AAAA,IACpB,SAAS;AAAA,IACT,iBAAiB;AAAA,EACnB;AAAA,EACA,aAAa;AAAA,IACX,UAAU;AAAA,IACV,OAAO,MAAM,OAAO;AAAA,EACtB;AAAA;AAAA,EAEA,MAAM,CAAC;AAAA,EACP,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,WAAW;AAAA,MACT,iBAAiB,MAAM,OAAO;AAAA,MAE9B,kBAAkB;AAAA,QAChB,UAAU;AAAA,QACV,OAAO,MAAM,OAAO;AAAA,MACtB;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,mBAAmB;AAAA,MACjB,GAAG;AAAA,IACL;AAAA,EACF;AACF,CAAC;"}
@@ -1110,6 +1110,8 @@ export declare const horizontalScrollListItemClasses: {
1110
1110
  selected: "HvHorizontalScrollListItem-selected";
1111
1111
  button: "HvHorizontalScrollListItem-button";
1112
1112
  text: "HvHorizontalScrollListItem-text";
1113
+ bullet: "HvHorizontalScrollListItem-bullet";
1114
+ bulletSelected: "HvHorizontalScrollListItem-bulletSelected";
1113
1115
  };
1114
1116
 
1115
1117
  export { HvAccentColor }
@@ -4543,7 +4545,7 @@ export declare interface HvListProps extends HvBaseProps<HTMLUListElement, "onCh
4543
4545
  singleSelectionToggle?: boolean;
4544
4546
  /** If `true` the list will be rendered without vertical spacing. */
4545
4547
  condensed?: boolean;
4546
- /** If `true` the dropdown will show tooltips when user mouseenter text in list */
4548
+ /** If `true` the dropdown will show tooltips when user mouseenter text in list. @deprecated this is always enabled */
4547
4549
  hasTooltips?: boolean;
4548
4550
  /** 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
4551
  height?: number;
@@ -5512,18 +5514,14 @@ export declare const HvScrollToHorizontal: (props: HvScrollToHorizontalProps) =>
5512
5514
 
5513
5515
  export declare type HvScrollToHorizontalClasses = ExtractNames<typeof useClasses_98>;
5514
5516
 
5515
- export declare interface HvScrollToHorizontalOption {
5516
- key?: string;
5517
- label: string;
5518
- value: string;
5519
- offset?: number;
5520
- }
5517
+ /** @deprecated use `HvScrollToOption` */
5518
+ export declare type HvScrollToHorizontalOption = HvScrollToOption;
5521
5519
 
5522
5520
  export declare type HvScrollToHorizontalPositions = "sticky" | "fixed" | "relative";
5523
5521
 
5524
5522
  export declare interface HvScrollToHorizontalProps extends HvBaseProps<HTMLOListElement, "onChange" | "onClick"> {
5525
5523
  /** An Array of Objects with Label and Value. Label is the displayed Element and Value is the local navigation location applied */
5526
- options: HvScrollToHorizontalOption[];
5524
+ options: HvScrollToOption[];
5527
5525
  /**
5528
5526
  * Should the active element be reflected in the URL.
5529
5527
  *
@@ -5586,7 +5584,7 @@ export declare interface HvScrollToHorizontalProps extends HvBaseProps<HTMLOList
5586
5584
  }
5587
5585
 
5588
5586
  export declare interface HvScrollToOption {
5589
- key?: string;
5587
+ key?: React.Key;
5590
5588
  label: string;
5591
5589
  value: string;
5592
5590
  offset?: number;
@@ -5601,6 +5599,7 @@ export declare const HvScrollToVertical: (props: HvScrollToVerticalProps) => JSX
5601
5599
 
5602
5600
  export declare type HvScrollToVerticalClasses = ExtractNames<typeof useClasses_96>;
5603
5601
 
5602
+ /** @deprecated use `HvScrollToOption` */
5604
5603
  export declare type HvScrollToVerticalOption = HvScrollToOption;
5605
5604
 
5606
5605
  export declare type HvScrollToVerticalPositions = "absolute" | "fixed" | "relative";
@@ -8203,9 +8202,9 @@ export declare const scrollToHorizontalClasses: {
8203
8202
  root: "HvScrollToHorizontal-root";
8204
8203
  selected: "HvScrollToHorizontal-selected";
8205
8204
  notSelected: "HvScrollToHorizontal-notSelected";
8206
- notSelectedRoot: "HvScrollToHorizontal-notSelectedRoot";
8207
8205
  positionSticky: "HvScrollToHorizontal-positionSticky";
8208
8206
  positionFixed: "HvScrollToHorizontal-positionFixed";
8207
+ notSelectedRoot: "HvScrollToHorizontal-notSelectedRoot";
8209
8208
  };
8210
8209
 
8211
8210
  export declare const scrollToVerticalClasses: {
@@ -10896,9 +10895,10 @@ declare const useClasses_94: (classesProp?: Partial<Record<"container" | "label"
10896
10895
  cx: (...args: any) => string;
10897
10896
  };
10898
10897
 
10899
- declare const useClasses_95: (classesProp?: Partial<Record<"root" | "button" | "text" | "notSelected", string>>, addStatic?: boolean) => {
10898
+ declare const useClasses_95: (classesProp?: Partial<Record<"root" | "icon" | "button" | "text" | "notSelected", string>>, addStatic?: boolean) => {
10900
10899
  classes: {
10901
10900
  root: string;
10901
+ icon: string;
10902
10902
  button: string;
10903
10903
  text: string;
10904
10904
  notSelected: string;
@@ -10923,12 +10923,14 @@ declare const useClasses_96: (classesProp?: Partial<Record<"root" | "positionFix
10923
10923
  cx: (...args: any) => string;
10924
10924
  };
10925
10925
 
10926
- declare const useClasses_97: (classesProp?: Partial<Record<"root" | "selected" | "button" | "text", string>>, addStatic?: boolean) => {
10926
+ declare const useClasses_97: (classesProp?: Partial<Record<"root" | "selected" | "button" | "text" | "bullet" | "bulletSelected", string>>, addStatic?: boolean) => {
10927
10927
  classes: {
10928
10928
  root: string;
10929
10929
  selected: string;
10930
10930
  button: string;
10931
10931
  text: string;
10932
+ bullet: string;
10933
+ bulletSelected: string;
10932
10934
  };
10933
10935
  css: {
10934
10936
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -10937,14 +10939,14 @@ declare const useClasses_97: (classesProp?: Partial<Record<"root" | "selected" |
10937
10939
  cx: (...args: any) => string;
10938
10940
  };
10939
10941
 
10940
- declare const useClasses_98: (classesProp?: Partial<Record<"root" | "selected" | "notSelected" | "notSelectedRoot" | "positionSticky" | "positionFixed", string>>, addStatic?: boolean) => {
10942
+ declare const useClasses_98: (classesProp?: Partial<Record<"root" | "selected" | "notSelected" | "positionSticky" | "positionFixed" | "notSelectedRoot", string>>, addStatic?: boolean) => {
10941
10943
  classes: {
10942
10944
  root: string;
10943
10945
  selected: string;
10944
10946
  notSelected: string;
10945
- notSelectedRoot: string;
10946
10947
  positionSticky: string;
10947
10948
  positionFixed: string;
10949
+ notSelectedRoot: string;
10948
10950
  };
10949
10951
  css: {
10950
10952
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -11502,6 +11504,7 @@ export declare const verticalNavigationTreeClasses: {
11502
11504
 
11503
11505
  export declare const verticalScrollListItemClasses: {
11504
11506
  root: "HvVerticalScrollListItem-root";
11507
+ icon: "HvVerticalScrollListItem-icon";
11505
11508
  button: "HvVerticalScrollListItem-button";
11506
11509
  text: "HvVerticalScrollListItem-text";
11507
11510
  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.1",
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": "274c57ce6dd9272b5950927526f48ad3cc4adc00",
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;"}