@hitachivantara/uikit-react-core 5.70.0 → 5.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/cjs/DropdownButton/DropdownButton.cjs +1 -8
  2. package/dist/cjs/DropdownButton/DropdownButton.styles.cjs +0 -3
  3. package/dist/cjs/Forms/Suggestions/Suggestions.cjs +22 -29
  4. package/dist/cjs/ListContainer/ListItem/ListItem.styles.cjs +1 -0
  5. package/dist/cjs/TimePicker/TimePicker.cjs +2 -6
  6. package/dist/cjs/Typography/Typography.cjs +2 -1
  7. package/dist/cjs/Typography/Typography.styles.cjs +23 -24
  8. package/dist/cjs/VerticalNavigation/Actions/Action.cjs +4 -18
  9. package/dist/cjs/VerticalNavigation/Actions/Action.styles.cjs +4 -17
  10. package/dist/cjs/VerticalNavigation/Actions/Actions.styles.cjs +3 -5
  11. package/dist/cjs/VerticalNavigation/Header/Header.styles.cjs +7 -2
  12. package/dist/cjs/VerticalNavigation/Navigation/Navigation.cjs +3 -3
  13. package/dist/cjs/VerticalNavigation/Navigation/Navigation.styles.cjs +0 -2
  14. package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.cjs +1 -1
  15. package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs +7 -1
  16. package/dist/cjs/VerticalNavigation/TreeView/TreeView.styles.cjs +0 -2
  17. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +32 -21
  18. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +4 -0
  19. package/dist/cjs/VerticalNavigation/VerticalNavigation.cjs +12 -18
  20. package/dist/cjs/VerticalNavigation/VerticalNavigation.styles.cjs +1 -1
  21. package/dist/esm/DropdownButton/DropdownButton.js +1 -8
  22. package/dist/esm/DropdownButton/DropdownButton.js.map +1 -1
  23. package/dist/esm/DropdownButton/DropdownButton.styles.js +0 -3
  24. package/dist/esm/DropdownButton/DropdownButton.styles.js.map +1 -1
  25. package/dist/esm/Forms/Suggestions/Suggestions.js +22 -27
  26. package/dist/esm/Forms/Suggestions/Suggestions.js.map +1 -1
  27. package/dist/esm/ListContainer/ListItem/ListItem.styles.js +1 -0
  28. package/dist/esm/ListContainer/ListItem/ListItem.styles.js.map +1 -1
  29. package/dist/esm/TimePicker/TimePicker.js +2 -6
  30. package/dist/esm/TimePicker/TimePicker.js.map +1 -1
  31. package/dist/esm/Typography/Typography.js +2 -1
  32. package/dist/esm/Typography/Typography.js.map +1 -1
  33. package/dist/esm/Typography/Typography.styles.js +23 -24
  34. package/dist/esm/Typography/Typography.styles.js.map +1 -1
  35. package/dist/esm/VerticalNavigation/Actions/Action.js +5 -19
  36. package/dist/esm/VerticalNavigation/Actions/Action.js.map +1 -1
  37. package/dist/esm/VerticalNavigation/Actions/Action.styles.js +4 -17
  38. package/dist/esm/VerticalNavigation/Actions/Action.styles.js.map +1 -1
  39. package/dist/esm/VerticalNavigation/Actions/Actions.styles.js +3 -5
  40. package/dist/esm/VerticalNavigation/Actions/Actions.styles.js.map +1 -1
  41. package/dist/esm/VerticalNavigation/Header/Header.styles.js +7 -2
  42. package/dist/esm/VerticalNavigation/Header/Header.styles.js.map +1 -1
  43. package/dist/esm/VerticalNavigation/Navigation/Navigation.js +1 -1
  44. package/dist/esm/VerticalNavigation/Navigation/Navigation.js.map +1 -1
  45. package/dist/esm/VerticalNavigation/Navigation/Navigation.styles.js +0 -2
  46. package/dist/esm/VerticalNavigation/Navigation/Navigation.styles.js.map +1 -1
  47. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js +1 -1
  48. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js.map +1 -1
  49. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +7 -1
  50. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js.map +1 -1
  51. package/dist/esm/VerticalNavigation/NavigationSlider/utils.js.map +1 -0
  52. package/dist/esm/VerticalNavigation/TreeView/TreeView.styles.js +0 -2
  53. package/dist/esm/VerticalNavigation/TreeView/TreeView.styles.js.map +1 -1
  54. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +33 -22
  55. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  56. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js +4 -0
  57. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -1
  58. package/dist/esm/VerticalNavigation/VerticalNavigation.js +9 -15
  59. package/dist/esm/VerticalNavigation/VerticalNavigation.js.map +1 -1
  60. package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js +1 -1
  61. package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js.map +1 -1
  62. package/dist/esm/VerticalNavigation/VerticalNavigationContext.js.map +1 -1
  63. package/dist/types/index.d.ts +20 -31
  64. package/package.json +6 -6
  65. package/dist/cjs/VerticalNavigation/TreeView/IconWrapper/IconWrapper.cjs +0 -20
  66. package/dist/esm/VerticalNavigation/NavigationSlider/utils/NavigationSlider.utils.js.map +0 -1
  67. package/dist/esm/VerticalNavigation/TreeView/IconWrapper/IconWrapper.js +0 -20
  68. package/dist/esm/VerticalNavigation/TreeView/IconWrapper/IconWrapper.js.map +0 -1
  69. /package/dist/cjs/VerticalNavigation/NavigationSlider/{utils/NavigationSlider.utils.cjs → utils.cjs} +0 -0
  70. /package/dist/esm/VerticalNavigation/NavigationSlider/{utils/NavigationSlider.utils.js → utils.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalNavigation.js","sources":["../../../src/VerticalNavigation/VerticalNavigation.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport {\n useDefaultProps,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport { HvBaseProps } from \"../types/generic\";\nimport {\n fillDataWithParentId,\n getNavigationItemById,\n getParentItemById,\n} from \"./NavigationSlider/utils\";\nimport { hasChildNavigationItems } from \"./utils/VerticalNavigation.utils\";\nimport { staticClasses, useClasses } from \"./VerticalNavigation.styles\";\nimport {\n NavigationData,\n VerticalNavigationContext,\n} from \"./VerticalNavigationContext\";\n\nexport { staticClasses as verticalNavigationClasses };\n\nexport type HvVerticalNavigationClasses = ExtractNames<typeof useClasses>;\n\nexport type HvVerticalNavigationMode = \"icon\" | \"simple\";\n\nexport type HvVerticalNavigationPosition =\n | \"static\"\n | \"relative\"\n | \"fixed\"\n | \"absolute\";\n\nexport interface HvVerticalNavigationProps extends HvBaseProps<HTMLDivElement> {\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvVerticalNavigationClasses;\n /** Current State of the Vertical Navigation Collapse */\n open?: boolean;\n /**\n * Collapsed Mode for the Vertical Navigation, the default value is \"simple\".\n *\n * @deprecated - `useIcons` property should be used instead.\n */\n collapsedMode?: HvVerticalNavigationMode;\n /** Boolean to determine if treeview is in slider mode (for mobile navigation), the default value is false. */\n slider?: boolean;\n /**\n * Boolean to determine if icons should be displayed in the navigation menu.\n * When `true` a icon will always be displayed, if no icon is provided the first letter of the label will be\n * displayed inside an Avatar component.\n * When `false` no icons will be shown, even if an icon is provided.\n */\n useIcons?: boolean;\n}\n\n/**\n * Navigation enables users to move through an app to complete tasks.\n *\n * It is recommended to use vertical navigation when your application requires global navigation that is displayed on the left.\n * While vertical navigation menus generally consume more space than their horizontal counterparts, they have become more popular as desktop monitors move to wide-screen formats.\n *\n * Although both the hierarchically organized data and the visual style resemble a treeview-like structure, the [Treeview Design Pattern](https://w3c.github.io/aria-practices/#TreeView)\n * isn't necessarily the most appropriate.\n *\n * The tree role provides complex functionality that is not needed for typical site navigation, and changes the most common keyboard navigation using TAB.\n *\n * The [Disclosure Design Pattern](https://w3c.github.io/aria-practices/#disclosure) is more suited for typical site navigation, with expandable groups of links.\n * However it can be tedious to TAB through all navigation items to reach the actions panel.\n *\n * Both modes are available via the `mode` property and each app should choose the most appropriate.\n */\nexport const HvVerticalNavigation = (props: HvVerticalNavigationProps) => {\n const {\n id,\n className,\n classes: classesProp,\n children,\n open = true,\n slider = false,\n useIcons = false,\n ...others\n } = useDefaultProps(\"HvVerticalNavigation\", props);\n const { classes, cx } = useClasses(classesProp);\n\n const [parentData, setParentData] = useState<NavigationData[]>([]);\n\n const [parentSelected, setParentSelected] = useState();\n\n const [headerTitle, setHeaderTitle] = useState<string | undefined>();\n\n // navigationSlider\n const withParentData = useMemo(\n () => fillDataWithParentId(parentData),\n [parentData],\n );\n\n const initialParentItem = useMemo(\n () => getParentItemById(withParentData, parentSelected),\n [withParentData, parentSelected],\n );\n\n const [parentItem, setParentItem] = useState(initialParentItem);\n\n const hasAnyChildWithData = useMemo(\n () => hasChildNavigationItems(parentData),\n [parentData],\n );\n\n useEffect(\n () => setHeaderTitle(parentItem?.label),\n [parentItem, setParentItem],\n );\n\n const navigateToParentHandler = useCallback(() => {\n setParentItem(getParentItemById(withParentData, parentItem.id));\n }, [parentItem, setParentItem, withParentData]);\n\n const navigateToChildHandler = useCallback(\n (event: any, item: any) => {\n setParentItem(getNavigationItemById(withParentData, item.id));\n event.stopPropagation();\n },\n [setParentItem, withParentData],\n );\n\n const value = useMemo(\n () => ({\n isOpen: open,\n useIcons,\n slider,\n headerTitle,\n setHeaderTitle,\n\n parentItem,\n setParentItem,\n withParentData,\n navigateToChildHandler,\n navigateToParentHandler,\n\n parentData,\n setParentData,\n parentSelected,\n setParentSelected,\n hasAnyChildWithData,\n }),\n [\n open,\n useIcons,\n slider,\n headerTitle,\n setHeaderTitle,\n parentItem,\n setParentItem,\n withParentData,\n navigateToChildHandler,\n navigateToParentHandler,\n hasAnyChildWithData,\n parentData,\n parentSelected,\n ],\n );\n\n const content = (\n <VerticalNavigationContext.Provider value={value}>\n <div\n id={id}\n className={cx(\n classes.root,\n {\n [classes.collapsed]: !open,\n [classes.slider]: slider,\n [classes.childData]: hasAnyChildWithData,\n },\n className,\n )}\n {...others}\n >\n {children}\n </div>\n </VerticalNavigationContext.Provider>\n );\n\n return content;\n};\n"],"names":[],"mappings":";;;;;;;;AAqEa,MAAA,uBAAuB,CAAC,UAAqC;AAClE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,OAAO;AAAA,IACP,SAAS;AAAA,IACT,WAAW;AAAA,IACX,GAAG;AAAA,EAAA,IACD,gBAAgB,wBAAwB,KAAK;AACjD,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAE9C,QAAM,CAAC,YAAY,aAAa,IAAI,SAA2B,CAAE,CAAA;AAEjE,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS;AAErD,QAAM,CAAC,aAAa,cAAc,IAAI,SAA6B;AAGnE,QAAM,iBAAiB;AAAA,IACrB,MAAM,qBAAqB,UAAU;AAAA,IACrC,CAAC,UAAU;AAAA,EAAA;AAGb,QAAM,oBAAoB;AAAA,IACxB,MAAM,kBAAkB,gBAAgB,cAAc;AAAA,IACtD,CAAC,gBAAgB,cAAc;AAAA,EAAA;AAGjC,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,iBAAiB;AAE9D,QAAM,sBAAsB;AAAA,IAC1B,MAAM,wBAAwB,UAAU;AAAA,IACxC,CAAC,UAAU;AAAA,EAAA;AAGb;AAAA,IACE,MAAM,eAAe,YAAY,KAAK;AAAA,IACtC,CAAC,YAAY,aAAa;AAAA,EAAA;AAGtB,QAAA,0BAA0B,YAAY,MAAM;AAChD,kBAAc,kBAAkB,gBAAgB,WAAW,EAAE,CAAC;AAAA,EAC7D,GAAA,CAAC,YAAY,eAAe,cAAc,CAAC;AAE9C,QAAM,yBAAyB;AAAA,IAC7B,CAAC,OAAY,SAAc;AACzB,oBAAc,sBAAsB,gBAAgB,KAAK,EAAE,CAAC;AAC5D,YAAM,gBAAgB;AAAA,IACxB;AAAA,IACA,CAAC,eAAe,cAAc;AAAA,EAAA;AAGhC,QAAM,QAAQ;AAAA,IACZ,OAAO;AAAA,MACL,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAEF;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EAAA;AAGF,QAAM,UACJ,oBAAC,0BAA0B,UAA1B,EAAmC,OAClC,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,QAAQ;AAAA,QACR;AAAA,UACE,CAAC,QAAQ,SAAS,GAAG,CAAC;AAAA,UACtB,CAAC,QAAQ,MAAM,GAAG;AAAA,UAClB,CAAC,QAAQ,SAAS,GAAG;AAAA,QACvB;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAEL,EAAA,CAAA;AAGK,SAAA;AACT;"}
1
+ {"version":3,"file":"VerticalNavigation.js","sources":["../../../src/VerticalNavigation/VerticalNavigation.tsx"],"sourcesContent":["import { forwardRef, useCallback, useMemo, useState } from \"react\";\nimport {\n useDefaultProps,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport { HvBaseProps } from \"../types/generic\";\nimport {\n fillDataWithParentId,\n getNavigationItemById,\n getParentItemById,\n} from \"./NavigationSlider/utils\";\nimport { hasChildNavigationItems } from \"./utils/VerticalNavigation.utils\";\nimport { staticClasses, useClasses } from \"./VerticalNavigation.styles\";\nimport {\n NavigationData,\n VerticalNavigationContext,\n} from \"./VerticalNavigationContext\";\n\nexport { staticClasses as verticalNavigationClasses };\n\nexport type HvVerticalNavigationClasses = ExtractNames<typeof useClasses>;\n\nexport type HvVerticalNavigationMode = \"icon\" | \"simple\";\n\nexport type HvVerticalNavigationPosition =\n | \"static\"\n | \"relative\"\n | \"fixed\"\n | \"absolute\";\n\nexport interface HvVerticalNavigationProps extends HvBaseProps<HTMLDivElement> {\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvVerticalNavigationClasses;\n /** Current State of the Vertical Navigation Collapse */\n open?: boolean;\n /**\n * Collapsed Mode for the Vertical Navigation, the default value is \"simple\".\n *\n * @deprecated - `useIcons` property should be used instead.\n */\n collapsedMode?: HvVerticalNavigationMode;\n /** Boolean to determine if treeview is in slider mode (for mobile navigation), the default value is false. */\n slider?: boolean;\n /**\n * Boolean to determine if icons should be displayed in the navigation menu.\n * When `true` a icon will always be displayed, if no icon is provided the first letter of the label will be\n * displayed inside an Avatar component.\n * When `false` no icons will be shown, even if an icon is provided.\n */\n useIcons?: boolean;\n}\n\n/**\n * Navigation enables users to move through an app to complete tasks.\n *\n * It is recommended to use vertical navigation when your application requires global navigation that is displayed on the left.\n * While vertical navigation menus generally consume more space than their horizontal counterparts, they have become more popular as desktop monitors move to wide-screen formats.\n *\n * Although both the hierarchically organized data and the visual style resemble a treeview-like structure, the [Treeview Design Pattern](https://w3c.github.io/aria-practices/#TreeView)\n * isn't necessarily the most appropriate.\n *\n * The tree role provides complex functionality that is not needed for typical site navigation, and changes the most common keyboard navigation using TAB.\n *\n * The [Disclosure Design Pattern](https://w3c.github.io/aria-practices/#disclosure) is more suited for typical site navigation, with expandable groups of links.\n * However it can be tedious to TAB through all navigation items to reach the actions panel.\n *\n * Both modes are available via the `mode` property and each app should choose the most appropriate.\n */\nexport const HvVerticalNavigation = forwardRef<\n HTMLDivElement,\n HvVerticalNavigationProps\n>((props, ref) => {\n const {\n id,\n className,\n classes: classesProp,\n children,\n open = true,\n slider = false,\n useIcons = false,\n ...others\n } = useDefaultProps(\"HvVerticalNavigation\", props);\n const { classes, cx } = useClasses(classesProp);\n\n const [parentData, setParentData] = useState<NavigationData[]>([]);\n\n const [parentSelected, setParentSelected] = useState();\n\n // navigationSlider\n const withParentData = useMemo(\n () => fillDataWithParentId(parentData),\n [parentData],\n );\n\n const initialParentItem = useMemo(\n () => getParentItemById(withParentData, parentSelected),\n [withParentData, parentSelected],\n );\n\n const [parentItem, setParentItem] = useState(initialParentItem);\n\n const hasAnyChildWithData = useMemo(\n () => hasChildNavigationItems(parentData),\n [parentData],\n );\n\n const headerTitle = useMemo(() => parentItem?.label, [parentItem]);\n\n const navigateToParentHandler = useCallback(() => {\n setParentItem(getParentItemById(withParentData, parentItem.id));\n }, [parentItem, withParentData]);\n\n const navigateToChildHandler = useCallback(\n (event: any, item: any) => {\n setParentItem(getNavigationItemById(withParentData, item.id));\n event.stopPropagation();\n },\n [withParentData],\n );\n\n const value = useMemo(\n () => ({\n isOpen: open,\n useIcons,\n slider,\n headerTitle,\n\n parentItem,\n setParentItem,\n withParentData,\n navigateToChildHandler,\n navigateToParentHandler,\n\n parentData,\n setParentData,\n parentSelected,\n setParentSelected,\n hasAnyChildWithData,\n }),\n [\n open,\n useIcons,\n slider,\n headerTitle,\n parentItem,\n setParentItem,\n withParentData,\n navigateToChildHandler,\n navigateToParentHandler,\n hasAnyChildWithData,\n parentData,\n parentSelected,\n ],\n );\n\n return (\n <VerticalNavigationContext.Provider value={value}>\n <div\n id={id}\n ref={ref}\n className={cx(\n classes.root,\n {\n [classes.collapsed]: !open,\n [classes.slider]: slider,\n [classes.childData]: hasAnyChildWithData,\n },\n className,\n )}\n {...others}\n >\n {children}\n </div>\n </VerticalNavigationContext.Provider>\n );\n});\n"],"names":[],"mappings":";;;;;;;;AAqEO,MAAM,uBAAuB,WAGlC,CAAC,OAAO,QAAQ;AACV,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,OAAO;AAAA,IACP,SAAS;AAAA,IACT,WAAW;AAAA,IACX,GAAG;AAAA,EAAA,IACD,gBAAgB,wBAAwB,KAAK;AACjD,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAE9C,QAAM,CAAC,YAAY,aAAa,IAAI,SAA2B,CAAE,CAAA;AAEjE,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS;AAGrD,QAAM,iBAAiB;AAAA,IACrB,MAAM,qBAAqB,UAAU;AAAA,IACrC,CAAC,UAAU;AAAA,EAAA;AAGb,QAAM,oBAAoB;AAAA,IACxB,MAAM,kBAAkB,gBAAgB,cAAc;AAAA,IACtD,CAAC,gBAAgB,cAAc;AAAA,EAAA;AAGjC,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,iBAAiB;AAE9D,QAAM,sBAAsB;AAAA,IAC1B,MAAM,wBAAwB,UAAU;AAAA,IACxC,CAAC,UAAU;AAAA,EAAA;AAGb,QAAM,cAAc,QAAQ,MAAM,YAAY,OAAO,CAAC,UAAU,CAAC;AAE3D,QAAA,0BAA0B,YAAY,MAAM;AAChD,kBAAc,kBAAkB,gBAAgB,WAAW,EAAE,CAAC;AAAA,EAAA,GAC7D,CAAC,YAAY,cAAc,CAAC;AAE/B,QAAM,yBAAyB;AAAA,IAC7B,CAAC,OAAY,SAAc;AACzB,oBAAc,sBAAsB,gBAAgB,KAAK,EAAE,CAAC;AAC5D,YAAM,gBAAgB;AAAA,IACxB;AAAA,IACA,CAAC,cAAc;AAAA,EAAA;AAGjB,QAAM,QAAQ;AAAA,IACZ,OAAO;AAAA,MACL,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,MAEA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAEF;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EAAA;AAGF,SACG,oBAAA,0BAA0B,UAA1B,EAAmC,OAClC,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACT,QAAQ;AAAA,QACR;AAAA,UACE,CAAC,QAAQ,SAAS,GAAG,CAAC;AAAA,UACtB,CAAC,QAAQ,MAAM,GAAG;AAAA,UAClB,CAAC,QAAQ,SAAS,GAAG;AAAA,QACvB;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAEL,EAAA,CAAA;AAEJ,CAAC;"}
@@ -8,7 +8,7 @@ const { staticClasses, useClasses } = createClasses(
8
8
  flexDirection: "column",
9
9
  justifyContent: "flex-start",
10
10
  width: "220px",
11
- background: theme.colors.atmo1,
11
+ backgroundColor: theme.colors.atmo1,
12
12
  boxShadow: theme.colors.shadow,
13
13
  clipPath: "inset(0px -12px 0px 0px)",
14
14
  "& > :only-child": {
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalNavigation.styles.js","sources":["../../../src/VerticalNavigation/VerticalNavigation.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvVerticalNavigation\",\n {\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n\n width: \"220px\",\n\n background: theme.colors.atmo1,\n boxShadow: theme.colors.shadow,\n clipPath: \"inset(0px -12px 0px 0px)\",\n\n \"& > :only-child\": {\n padding: theme.space.sm,\n },\n \"& > :not(nav:first-of-type)\": {\n borderTop: `3px solid ${theme.colors.atmo2}`,\n padding: theme.spacing(\"xs\", \"sm\", \"sm\", \"sm\"),\n },\n\n \"& > :first-of-type:not(:last-child)\": {\n borderTop: \"none\",\n padding: theme.spacing(\"sm\", \"sm\", \"xs\", \"sm\"),\n },\n },\n collapsed: {\n width: \"56px\",\n \"&$childData\": {\n width: \"66px\",\n },\n \"& > :first-of-type:not(:last-child)\": {\n padding: theme.spacing(\"sm\", \"xs\", \"xs\", \"xs\"),\n },\n\n \"& > :not(nav:first-of-type)\": {\n padding: theme.spacing(\"xs\", \"xs\", \"sm\", \"xs\"),\n },\n },\n\n slider: {\n \"& > div:first-of-type\": {\n borderBottom: `3px solid ${theme.colors.atmo2}`,\n },\n },\n\n childData: {},\n },\n);\n"],"names":[],"mappings":";;AAGa,MAAA,EAAE,eAAe,WAAA,IAAe;AAAA,EAC3C;AAAA,EACA;AAAA,IACE,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,eAAe;AAAA,MACf,gBAAgB;AAAA,MAEhB,OAAO;AAAA,MAEP,YAAY,MAAM,OAAO;AAAA,MACzB,WAAW,MAAM,OAAO;AAAA,MACxB,UAAU;AAAA,MAEV,mBAAmB;AAAA,QACjB,SAAS,MAAM,MAAM;AAAA,MACvB;AAAA,MACA,+BAA+B;AAAA,QAC7B,WAAW,aAAa,MAAM,OAAO,KAAK;AAAA,QAC1C,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,MAC/C;AAAA,MAEA,uCAAuC;AAAA,QACrC,WAAW;AAAA,QACX,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,MAC/C;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,OAAO;AAAA,MACP,eAAe;AAAA,QACb,OAAO;AAAA,MACT;AAAA,MACA,uCAAuC;AAAA,QACrC,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,MAC/C;AAAA,MAEA,+BAA+B;AAAA,QAC7B,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,MAC/C;AAAA,IACF;AAAA,IAEA,QAAQ;AAAA,MACN,yBAAyB;AAAA,QACvB,cAAc,aAAa,MAAM,OAAO,KAAK;AAAA,MAC/C;AAAA,IACF;AAAA,IAEA,WAAW,CAAC;AAAA,EACd;AACF;"}
1
+ {"version":3,"file":"VerticalNavigation.styles.js","sources":["../../../src/VerticalNavigation/VerticalNavigation.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvVerticalNavigation\",\n {\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n\n width: \"220px\",\n\n backgroundColor: theme.colors.atmo1,\n boxShadow: theme.colors.shadow,\n clipPath: \"inset(0px -12px 0px 0px)\",\n\n \"& > :only-child\": {\n padding: theme.space.sm,\n },\n \"& > :not(nav:first-of-type)\": {\n borderTop: `3px solid ${theme.colors.atmo2}`,\n padding: theme.spacing(\"xs\", \"sm\", \"sm\", \"sm\"),\n },\n\n \"& > :first-of-type:not(:last-child)\": {\n borderTop: \"none\",\n padding: theme.spacing(\"sm\", \"sm\", \"xs\", \"sm\"),\n },\n },\n collapsed: {\n width: \"56px\",\n \"&$childData\": {\n width: \"66px\",\n },\n \"& > :first-of-type:not(:last-child)\": {\n padding: theme.spacing(\"sm\", \"xs\", \"xs\", \"xs\"),\n },\n\n \"& > :not(nav:first-of-type)\": {\n padding: theme.spacing(\"xs\", \"xs\", \"sm\", \"xs\"),\n },\n },\n\n slider: {\n \"& > div:first-of-type\": {\n borderBottom: `3px solid ${theme.colors.atmo2}`,\n },\n },\n\n childData: {},\n },\n);\n"],"names":[],"mappings":";;AAGa,MAAA,EAAE,eAAe,WAAA,IAAe;AAAA,EAC3C;AAAA,EACA;AAAA,IACE,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,eAAe;AAAA,MACf,gBAAgB;AAAA,MAEhB,OAAO;AAAA,MAEP,iBAAiB,MAAM,OAAO;AAAA,MAC9B,WAAW,MAAM,OAAO;AAAA,MACxB,UAAU;AAAA,MAEV,mBAAmB;AAAA,QACjB,SAAS,MAAM,MAAM;AAAA,MACvB;AAAA,MACA,+BAA+B;AAAA,QAC7B,WAAW,aAAa,MAAM,OAAO,KAAK;AAAA,QAC1C,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,MAC/C;AAAA,MAEA,uCAAuC;AAAA,QACrC,WAAW;AAAA,QACX,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,MAC/C;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,OAAO;AAAA,MACP,eAAe;AAAA,QACb,OAAO;AAAA,MACT;AAAA,MACA,uCAAuC;AAAA,QACrC,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,MAC/C;AAAA,MAEA,+BAA+B;AAAA,QAC7B,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,MAC/C;AAAA,IACF;AAAA,IAEA,QAAQ;AAAA,MACN,yBAAyB;AAAA,QACvB,cAAc,aAAa,MAAM,OAAO,KAAK;AAAA,MAC/C;AAAA,IACF;AAAA,IAEA,WAAW,CAAC;AAAA,EACd;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalNavigationContext.js","sources":["../../../src/VerticalNavigation/VerticalNavigationContext.tsx"],"sourcesContent":["import { createContext } from \"react\";\n\nexport type NavigationData<T extends React.ElementType = \"a\"> =\n React.ComponentProps<T> &\n Record<string, any> & {\n /** The id to be applied to the root element. */\n id: string;\n /** The label to be rendered on the menu item. */\n label: string;\n /** The icon to be rendered. */\n icon?: React.ReactNode;\n /** The Data children subset. */\n data?: NavigationData<T>[];\n /** Whether the item is disabled and not interactive. */\n disabled?: boolean;\n /** Whether the item has a selected state. */\n selectable?: boolean;\n };\n\ninterface VerticalNavigationContextValue {\n isOpen: boolean;\n useIcons: boolean;\n slider?: boolean;\n headerTitle?: string;\n setHeaderTitle?: React.Dispatch<React.SetStateAction<string | undefined>>;\n\n parentItem?: any;\n setParentItem?: React.Dispatch<React.SetStateAction<any>>;\n withParentData?: any;\n navigateToChildHandler?: (event: any, item: any) => void;\n navigateToParentHandler?: () => void;\n\n parentData?: NavigationData[];\n setParentData?: React.Dispatch<React.SetStateAction<any>>;\n parentSelected?: any;\n setParentSelected?: React.Dispatch<React.SetStateAction<any>>;\n\n hasAnyChildWithData?: boolean;\n}\n\nconst VerticalNavigationContext = createContext<VerticalNavigationContextValue>(\n {\n isOpen: true,\n useIcons: false,\n slider: false,\n },\n);\n\nexport { VerticalNavigationContext };\n"],"names":[],"mappings":";AAwCA,MAAM,4BAA4B;AAAA,EAChC;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,QAAQ;AAAA,EACV;AACF;"}
1
+ {"version":3,"file":"VerticalNavigationContext.js","sources":["../../../src/VerticalNavigation/VerticalNavigationContext.tsx"],"sourcesContent":["import { createContext } from \"react\";\n\nexport type NavigationData<T extends React.ElementType = \"a\"> =\n React.ComponentProps<T> &\n Record<string, any> & {\n /** The id to be applied to the root element. */\n id: string;\n /** The label to be rendered on the menu item. */\n label: string;\n /** The icon to be rendered. */\n icon?: React.ReactNode;\n /** The Data children subset. */\n data?: NavigationData<T>[];\n /** Whether the item is disabled and not interactive. */\n disabled?: boolean;\n /** Whether the item has a selected state. */\n selectable?: boolean;\n };\n\ninterface VerticalNavigationContextValue {\n isOpen: boolean;\n useIcons: boolean;\n slider?: boolean;\n headerTitle?: string;\n\n parentItem?: any;\n setParentItem?: React.Dispatch<React.SetStateAction<any>>;\n withParentData?: any;\n navigateToChildHandler?: (event: any, item: any) => void;\n navigateToParentHandler?: () => void;\n\n parentData?: NavigationData[];\n setParentData?: React.Dispatch<React.SetStateAction<any>>;\n parentSelected?: any;\n setParentSelected?: React.Dispatch<React.SetStateAction<any>>;\n\n hasAnyChildWithData?: boolean;\n}\n\nconst VerticalNavigationContext = createContext<VerticalNavigationContextValue>(\n {\n isOpen: true,\n useIcons: false,\n slider: false,\n },\n);\n\nexport { VerticalNavigationContext };\n"],"names":[],"mappings":";AAuCA,MAAM,4BAA4B;AAAA,EAChC;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,QAAQ;AAAA,EACV;AACF;"}
@@ -9,6 +9,7 @@ import { CardMediaProps } from '@mui/material/CardMedia';
9
9
  import { Cell } from 'react-table';
10
10
  import { CheckboxProps } from '@mui/material/Checkbox';
11
11
  import { ChipProps } from '@mui/material/Chip';
12
+ import { ClickAwayListenerProps } from '@mui/base/ClickAwayListener';
12
13
  import { ColumnInstance } from 'react-table';
13
14
  import { ColumnInterface } from 'react-table';
14
15
  import { ComponentProps } from 'react';
@@ -1019,13 +1020,13 @@ export declare const globalActionsClasses: {
1019
1020
  section: "HvGlobalActions-section";
1020
1021
  wrapper: "HvGlobalActions-wrapper";
1021
1022
  sectionName: "HvGlobalActions-sectionName";
1022
- backButton: "HvGlobalActions-backButton";
1023
1023
  positionFixed: "HvGlobalActions-positionFixed";
1024
1024
  positionSticky: "HvGlobalActions-positionSticky";
1025
1025
  actions: "HvGlobalActions-actions";
1026
1026
  global: "HvGlobalActions-global";
1027
1027
  globalSectionArea: "HvGlobalActions-globalSectionArea";
1028
1028
  globalWrapperComplement: "HvGlobalActions-globalWrapperComplement";
1029
+ backButton: "HvGlobalActions-backButton";
1029
1030
  };
1030
1031
 
1031
1032
  export declare const gridClasses: {
@@ -6005,7 +6006,9 @@ export declare const HvSuggestions: ForwardRefExoticComponent<HvSuggestionsProps
6005
6006
  export declare type HvSuggestionsClasses = ExtractNames<typeof useClasses_16>;
6006
6007
 
6007
6008
  export declare interface HvSuggestionsProps extends HvBaseProps {
6008
- /** Whether suggestions is visible. */
6009
+ /** Whether suggestions is visible */
6010
+ open?: boolean;
6011
+ /** Whether suggestions is visible. @deprecated use `open` instead */
6009
6012
  expanded?: boolean;
6010
6013
  /** The HTML element Suggestions attaches to. */
6011
6014
  anchorEl?: HTMLElement | null;
@@ -6014,7 +6017,7 @@ export declare interface HvSuggestionsProps extends HvBaseProps {
6014
6017
  /** Function called when a suggestion is selected */
6015
6018
  onSuggestionSelected?: (event: React.MouseEvent, value: HvSuggestion) => void;
6016
6019
  /** Function called when suggestion list is closed */
6017
- onClose?: (event: HvClickOutsideEvent) => void;
6020
+ onClose?: ClickAwayListenerProps["onClickAway"];
6018
6021
  /** A Jss Object used to override or extend the styles applied to the component. */
6019
6022
  classes?: HvSuggestionsClasses;
6020
6023
  }
@@ -6848,7 +6851,7 @@ export declare interface HvTimePickerProps extends Omit<HvFormElementProps, "cla
6848
6851
  * If undefined, the component will use a format according to the passed locale.
6849
6852
  */
6850
6853
  timeFormat?: TimeFormat;
6851
- /** Whether to show the seconds when using the native time picker */
6854
+ /** Whether to visually show the seconds control */
6852
6855
  showSeconds?: boolean;
6853
6856
  /** Locale that will provide the time format(12 or 24 hour format). It is "overwritten" by `showAmPm` */
6854
6857
  locale?: string;
@@ -6867,17 +6870,6 @@ export declare interface HvTimePickerProps extends Omit<HvFormElementProps, "cla
6867
6870
  escapeWithReference?: boolean;
6868
6871
  /** Extra properties to be passed to the TimePicker's dropdown. */
6869
6872
  dropdownProps?: Partial<HvBaseDropdownProps>;
6870
- /**
6871
- * The label of the form element.
6872
- *
6873
- * The form element must be labeled for accessibility reasons.
6874
- * If not provided, an aria-label or aria-labelledby must be provided instead.
6875
- */
6876
- label?: React.ReactNode;
6877
- /**
6878
- * Provide additional descriptive text for the form element.
6879
- */
6880
- description?: React.ReactNode;
6881
6873
  }
6882
6874
 
6883
6875
  export declare type HvTimePickerValue = {
@@ -7186,21 +7178,19 @@ export declare interface HvValidationMessages {
7186
7178
  *
7187
7179
  * Both modes are available via the `mode` property and each app should choose the most appropriate.
7188
7180
  */
7189
- export declare const HvVerticalNavigation: (props: HvVerticalNavigationProps) => JSX_3.Element;
7181
+ export declare const HvVerticalNavigation: ForwardRefExoticComponent<HvVerticalNavigationProps & RefAttributes<HTMLDivElement>>;
7190
7182
 
7191
7183
  export declare const HvVerticalNavigationAction: (props: HvVerticalNavigationActionProps) => JSX_3.Element;
7192
7184
 
7193
7185
  export declare type HvVerticalNavigationActionClasses = ExtractNames<typeof useClasses_123>;
7194
7186
 
7195
- export declare interface HvVerticalNavigationActionProps extends Omit<HvTypographyProps, "classes" | "onClick"> {
7187
+ export declare interface HvVerticalNavigationActionProps extends Omit<HvButtonProps, "classes" | "icon"> {
7196
7188
  /** A Jss Object used to override or extend the styles applied to the component. */
7197
7189
  classes?: HvVerticalNavigationActionClasses;
7198
7190
  /** Visual label. */
7199
7191
  label?: string;
7200
7192
  /** Icon. */
7201
7193
  icon?: React.ReactNode;
7202
- /** Callback called when clicked. */
7203
- onClick?: (event: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement>) => void;
7204
7194
  }
7205
7195
 
7206
7196
  export declare const HvVerticalNavigationActions: (props: HvVerticalNavigationActionsProps) => JSX_3.Element;
@@ -8730,13 +8720,13 @@ declare const useClasses_120: (classesProp?: Partial<Record<"root" | "slider" |
8730
8720
  cx: (...args: any) => string;
8731
8721
  };
8732
8722
 
8733
- declare const useClasses_121: (classesProp?: Partial<Record<"root" | "title" | "backButton" | "collapseButton" | "minimized", string>>, addStatic?: boolean) => {
8723
+ declare const useClasses_121: (classesProp?: Partial<Record<"root" | "title" | "backButton" | "minimized" | "collapseButton", string>>, addStatic?: boolean) => {
8734
8724
  classes: {
8735
8725
  root: string;
8736
8726
  title: string;
8737
8727
  backButton: string;
8738
- collapseButton: string;
8739
8728
  minimized: string;
8729
+ collapseButton: string;
8740
8730
  };
8741
8731
  css: any;
8742
8732
  cx: (...args: any) => string;
@@ -8761,27 +8751,27 @@ declare const useClasses_123: (classesProp?: Partial<Record<"action" | "minimize
8761
8751
  cx: (...args: any) => string;
8762
8752
  };
8763
8753
 
8764
- declare const useClasses_124: (classesProp?: Partial<Record<"root" | "listItem" | "list" | "navigationPopup" | "collapsed" | "popup", string>>, addStatic?: boolean) => {
8754
+ declare const useClasses_124: (classesProp?: Partial<Record<"root" | "listItem" | "list" | "collapsed" | "popup" | "navigationPopup", string>>, addStatic?: boolean) => {
8765
8755
  classes: {
8766
8756
  root: string;
8767
8757
  listItem: string;
8768
8758
  list: string;
8769
- navigationPopup: string;
8770
8759
  collapsed: string;
8771
8760
  popup: string;
8761
+ navigationPopup: string;
8772
8762
  };
8773
8763
  css: any;
8774
8764
  cx: (...args: any) => string;
8775
8765
  };
8776
8766
 
8777
- declare const useClasses_125: (classesProp?: Partial<Record<"root" | "listItemSelected" | "listItemDisabled" | "listItemFocus" | "forwardButton" | "listContainer", string>>, addStatic?: boolean) => {
8767
+ declare const useClasses_125: (classesProp?: Partial<Record<"root" | "listItemSelected" | "listItemDisabled" | "listItemFocus" | "listContainer" | "forwardButton", string>>, addStatic?: boolean) => {
8778
8768
  classes: {
8779
8769
  root: string;
8780
8770
  listItemSelected: string;
8781
8771
  listItemDisabled: string;
8782
8772
  listItemFocus: string;
8783
- forwardButton: string;
8784
8773
  listContainer: string;
8774
+ forwardButton: string;
8785
8775
  };
8786
8776
  css: any;
8787
8777
  cx: (...args: any) => string;
@@ -9845,20 +9835,20 @@ declare const useClasses_72: (classesProp?: Partial<Record<"name" | "small" | "r
9845
9835
  cx: (...args: any) => string;
9846
9836
  };
9847
9837
 
9848
- declare const useClasses_73: (classesProp?: Partial<Record<"name" | "root" | "section" | "wrapper" | "sectionName" | "backButton" | "positionFixed" | "positionSticky" | "actions" | "global" | "globalSectionArea" | "globalWrapperComplement", string>>, addStatic?: boolean) => {
9838
+ declare const useClasses_73: (classesProp?: Partial<Record<"name" | "root" | "section" | "wrapper" | "sectionName" | "positionFixed" | "positionSticky" | "actions" | "global" | "globalSectionArea" | "globalWrapperComplement" | "backButton", string>>, addStatic?: boolean) => {
9849
9839
  classes: {
9850
9840
  name: string;
9851
9841
  root: string;
9852
9842
  section: string;
9853
9843
  wrapper: string;
9854
9844
  sectionName: string;
9855
- backButton: string;
9856
9845
  positionFixed: string;
9857
9846
  positionSticky: string;
9858
9847
  actions: string;
9859
9848
  global: string;
9860
9849
  globalSectionArea: string;
9861
9850
  globalWrapperComplement: string;
9851
+ backButton: string;
9862
9852
  };
9863
9853
  css: any;
9864
9854
  cx: (...args: any) => string;
@@ -10745,7 +10735,6 @@ declare interface VerticalNavigationContextValue {
10745
10735
  useIcons: boolean;
10746
10736
  slider?: boolean;
10747
10737
  headerTitle?: string;
10748
- setHeaderTitle?: React.Dispatch<React.SetStateAction<string | undefined>>;
10749
10738
  parentItem?: any;
10750
10739
  setParentItem?: React.Dispatch<React.SetStateAction<any>>;
10751
10740
  withParentData?: any;
@@ -10762,8 +10751,8 @@ export declare const verticalNavigationHeaderClasses: {
10762
10751
  root: "HvVerticalNavigationHeader-root";
10763
10752
  title: "HvVerticalNavigationHeader-title";
10764
10753
  backButton: "HvVerticalNavigationHeader-backButton";
10765
- collapseButton: "HvVerticalNavigationHeader-collapseButton";
10766
10754
  minimized: "HvVerticalNavigationHeader-minimized";
10755
+ collapseButton: "HvVerticalNavigationHeader-collapseButton";
10767
10756
  };
10768
10757
 
10769
10758
  export declare const verticalNavigationSliderClasses: {
@@ -10771,17 +10760,17 @@ export declare const verticalNavigationSliderClasses: {
10771
10760
  listItemSelected: "HvVerticalNavigationSlider-listItemSelected";
10772
10761
  listItemDisabled: "HvVerticalNavigationSlider-listItemDisabled";
10773
10762
  listItemFocus: "HvVerticalNavigationSlider-listItemFocus";
10774
- forwardButton: "HvVerticalNavigationSlider-forwardButton";
10775
10763
  listContainer: "HvVerticalNavigationSlider-listContainer";
10764
+ forwardButton: "HvVerticalNavigationSlider-forwardButton";
10776
10765
  };
10777
10766
 
10778
10767
  export declare const verticalNavigationTreeClasses: {
10779
10768
  root: "HvVerticalNavigationTree-root";
10780
10769
  listItem: "HvVerticalNavigationTree-listItem";
10781
10770
  list: "HvVerticalNavigationTree-list";
10782
- navigationPopup: "HvVerticalNavigationTree-navigationPopup";
10783
10771
  collapsed: "HvVerticalNavigationTree-collapsed";
10784
10772
  popup: "HvVerticalNavigationTree-popup";
10773
+ navigationPopup: "HvVerticalNavigationTree-navigationPopup";
10785
10774
  };
10786
10775
 
10787
10776
  export declare const verticalScrollListItemClasses: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.70.0",
3
+ "version": "5.72.0",
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.10.10",
36
- "@hitachivantara/uikit-react-shared": "^5.3.2",
37
- "@hitachivantara/uikit-react-utils": "^0.2.2",
38
- "@hitachivantara/uikit-styles": "^5.33.0",
35
+ "@hitachivantara/uikit-react-icons": "^5.11.0",
36
+ "@hitachivantara/uikit-react-shared": "^5.3.3",
37
+ "@hitachivantara/uikit-react-utils": "^0.2.3",
38
+ "@hitachivantara/uikit-styles": "^5.33.1",
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": "43f1456d5a748ec8fc9fe27972459cfa3d0f4416",
65
+ "gitHead": "203815fb64303db21ae2810cc2055f186f9cfe07",
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;"}