@hitachivantara/uikit-react-core 5.0.0-next.19 → 5.0.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/AppSwitcher/Action/Action.cjs +9 -3
- package/dist/cjs/components/AppSwitcher/Action/Action.cjs.map +1 -1
- package/dist/cjs/components/AppSwitcher/AppSwitcher.cjs +1 -1
- package/dist/cjs/components/AppSwitcher/AppSwitcher.cjs.map +1 -1
- package/dist/cjs/components/Avatar/avatarClasses.cjs +1 -1
- package/dist/cjs/components/Avatar/avatarClasses.cjs.map +1 -1
- package/dist/cjs/components/BreadCrumb/BreadCrumb.cjs +1 -1
- package/dist/cjs/components/BreadCrumb/BreadCrumb.cjs.map +1 -1
- package/dist/cjs/components/BreadCrumb/Page/Page.cjs +1 -1
- package/dist/cjs/components/BreadCrumb/Page/Page.cjs.map +1 -1
- package/dist/cjs/components/BreadCrumb/PathElement/PathElement.cjs +1 -1
- package/dist/cjs/components/BreadCrumb/PathElement/PathElement.cjs.map +1 -1
- package/dist/cjs/components/Button/Button.cjs.map +1 -1
- package/dist/cjs/components/Button/Button.styles.cjs +5 -4
- package/dist/cjs/components/Button/Button.styles.cjs.map +1 -1
- package/dist/cjs/components/Card/Content/Content.cjs +2 -2
- package/dist/cjs/components/Card/Content/Content.cjs.map +1 -1
- package/dist/cjs/components/Card/Header/Header.cjs +2 -2
- package/dist/cjs/components/Card/Header/Header.cjs.map +1 -1
- package/dist/cjs/components/Card/Media/Media.cjs +2 -2
- package/dist/cjs/components/Card/Media/Media.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Actions/Actions.cjs +2 -2
- package/dist/cjs/components/Dialog/Actions/Actions.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Content/Content.cjs +2 -2
- package/dist/cjs/components/Dialog/Content/Content.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Title/Title.cjs +2 -2
- package/dist/cjs/components/Dialog/Title/Title.cjs.map +1 -1
- package/dist/cjs/components/Focus/Focus.cjs +1 -1
- package/dist/cjs/components/Focus/Focus.cjs.map +1 -1
- package/dist/cjs/components/Header/Actions/Actions.cjs +2 -2
- package/dist/cjs/components/Header/Actions/Actions.cjs.map +1 -1
- package/dist/cjs/components/Header/Brand/Brand.cjs +2 -2
- package/dist/cjs/components/Header/Brand/Brand.cjs.map +1 -1
- package/dist/cjs/components/Header/Navigation/Navigation.cjs +2 -2
- package/dist/cjs/components/Header/Navigation/Navigation.cjs.map +1 -1
- package/dist/cjs/components/Kpi/Kpi.cjs.map +1 -1
- package/dist/cjs/components/Snackbar/Snackbar.cjs +7 -7
- package/dist/cjs/components/Snackbar/Snackbar.cjs.map +1 -1
- package/dist/cjs/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.cjs +4 -4
- package/dist/cjs/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.cjs.map +1 -1
- package/dist/cjs/components/Snackbar/SnackbarContentWrapper/snackbarContentWrapperClasses.cjs +3 -3
- package/dist/cjs/components/Snackbar/SnackbarContentWrapper/snackbarContentWrapperClasses.cjs.map +1 -1
- package/dist/cjs/components/Snackbar/SnackbarProvider/SnackbarProvider.cjs +2 -2
- package/dist/cjs/components/Snackbar/SnackbarProvider/SnackbarProvider.cjs.map +1 -1
- package/dist/cjs/components/Snackbar/snackbarClasses.cjs +3 -2
- package/dist/cjs/components/Snackbar/snackbarClasses.cjs.map +1 -1
- package/dist/cjs/components/Stack/Stack.cjs.map +1 -1
- package/dist/cjs/components/Table/TableCell/TableCell.cjs +2 -1
- package/dist/cjs/components/Table/TableCell/TableCell.cjs.map +1 -1
- package/dist/cjs/components/Typography/Typography.cjs +13 -1
- package/dist/cjs/components/Typography/Typography.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.cjs.map +1 -1
- package/dist/cjs/index.cjs +26 -24
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/components/AppSwitcher/Action/Action.js +9 -3
- package/dist/esm/components/AppSwitcher/Action/Action.js.map +1 -1
- package/dist/esm/components/AppSwitcher/AppSwitcher.js +2 -2
- package/dist/esm/components/AppSwitcher/AppSwitcher.js.map +1 -1
- package/dist/esm/components/Avatar/avatarClasses.js +1 -1
- package/dist/esm/components/Avatar/avatarClasses.js.map +1 -1
- package/dist/esm/components/BreadCrumb/BreadCrumb.js +1 -1
- package/dist/esm/components/BreadCrumb/BreadCrumb.js.map +1 -1
- package/dist/esm/components/BreadCrumb/Page/Page.js +1 -1
- package/dist/esm/components/BreadCrumb/Page/Page.js.map +1 -1
- package/dist/esm/components/BreadCrumb/PathElement/PathElement.js +1 -1
- package/dist/esm/components/BreadCrumb/PathElement/PathElement.js.map +1 -1
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Button/Button.styles.js +5 -4
- package/dist/esm/components/Button/Button.styles.js.map +1 -1
- package/dist/esm/components/Card/Content/Content.js +2 -2
- package/dist/esm/components/Card/Content/Content.js.map +1 -1
- package/dist/esm/components/Card/Header/Header.js +2 -2
- package/dist/esm/components/Card/Header/Header.js.map +1 -1
- package/dist/esm/components/Card/Media/Media.js +2 -2
- package/dist/esm/components/Card/Media/Media.js.map +1 -1
- package/dist/esm/components/Dialog/Actions/Actions.js +2 -2
- package/dist/esm/components/Dialog/Actions/Actions.js.map +1 -1
- package/dist/esm/components/Dialog/Content/Content.js +2 -2
- package/dist/esm/components/Dialog/Content/Content.js.map +1 -1
- package/dist/esm/components/Dialog/Title/Title.js +2 -2
- package/dist/esm/components/Dialog/Title/Title.js.map +1 -1
- package/dist/esm/components/Focus/Focus.js +1 -1
- package/dist/esm/components/Focus/Focus.js.map +1 -1
- package/dist/esm/components/Header/Actions/Actions.js +2 -2
- package/dist/esm/components/Header/Actions/Actions.js.map +1 -1
- package/dist/esm/components/Header/Brand/Brand.js +2 -2
- package/dist/esm/components/Header/Brand/Brand.js.map +1 -1
- package/dist/esm/components/Header/Navigation/Navigation.js +2 -2
- package/dist/esm/components/Header/Navigation/Navigation.js.map +1 -1
- package/dist/esm/components/Kpi/Kpi.js.map +1 -1
- package/dist/esm/components/Snackbar/Snackbar.js +3 -3
- package/dist/esm/components/Snackbar/Snackbar.js.map +1 -1
- package/dist/esm/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js +11 -11
- package/dist/esm/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js.map +1 -1
- package/dist/esm/components/Snackbar/SnackbarContentWrapper/snackbarContentWrapperClasses.js +3 -3
- package/dist/esm/components/Snackbar/SnackbarContentWrapper/snackbarContentWrapperClasses.js.map +1 -1
- package/dist/esm/components/Snackbar/SnackbarProvider/SnackbarProvider.js +4 -4
- package/dist/esm/components/Snackbar/SnackbarProvider/SnackbarProvider.js.map +1 -1
- package/dist/esm/components/Snackbar/snackbarClasses.js +2 -1
- package/dist/esm/components/Snackbar/snackbarClasses.js.map +1 -1
- package/dist/esm/components/Stack/Stack.js.map +1 -1
- package/dist/esm/components/Table/TableCell/TableCell.js +2 -1
- package/dist/esm/components/Table/TableCell/TableCell.js.map +1 -1
- package/dist/esm/components/Typography/Typography.js +13 -1
- package/dist/esm/components/Typography/Typography.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.js.map +1 -1
- package/dist/esm/index.js +74 -72
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +137 -64
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.js","sources":["../../../../src/components/Typography/Typography.tsx"],"sourcesContent":["import {\n forwardRef,\n useMemo,\n CSSProperties,\n AllHTMLAttributes,\n Ref,\n} from \"react\";\nimport { HvBaseProps } from \"../../types\";\nimport styled from \"@emotion/styled\";\nimport { transientOptions } from \"utils/transientOptions\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\nimport { mapVariant } from \"./utils\";\nimport typographyClasses, { HvTypographyClasses } from \"./typographyClasses\";\nimport clsx from \"clsx\";\n\nexport type HvTypographyVariants =\n | \"display\"\n | \"title1\"\n | \"title2\"\n | \"title3\"\n | \"title4\"\n | \"body\"\n | \"label\"\n | \"caption1\"\n | \"caption2\";\n\nexport type HvTypographyLegacyVariants =\n | \"5xlTitle\"\n | \"4xlTitle\"\n | \"3xlTitle\"\n | \"xxlTitle\"\n | \"xlTitle\"\n | \"lTitle\"\n | \"mTitle\"\n | \"sTitle\"\n | \"xsTitle\"\n | \"xxsTitle\"\n | \"sectionTitle\"\n | \"highlightText\"\n | \"normalText\"\n | \"placeholderText\"\n | \"link\"\n | \"disabledText\"\n | \"selectedNavText\"\n | \"vizText\"\n | \"vizTextDisabled\"\n | \"xsInlineLink\";\n\nconst HvTypographyMap = {\n display: \"h1\",\n title1: \"h1\",\n title2: \"h2\",\n title3: \"h3\",\n title4: \"h4\",\n body: \"p\",\n label: \"label\",\n caption1: \"p\",\n caption2: \"p\",\n // LEGACY\n \"5xlTitle\": \"h1\",\n \"4xlTitle\": \"h1\",\n xxlTitle: \"h1\",\n lTitle: \"h2\",\n sTitle: \"h4\",\n xxsTitle: \"h6\",\n sectionTitle: \"p\",\n placeholderText: \"p\",\n link: \"p\",\n disabledText: \"p\",\n selectedNavText: \"p\",\n vizTextDisabled: \"p\",\n xsInlineLink: \"p\",\n} as const;\n\nconst getStyledComponent = <T extends keyof JSX.IntrinsicElements>(c: T) =>\n styled(\n c,\n transientOptions\n )(\n ({\n $variant,\n $link = false,\n $disabled = false,\n $noWrap = false,\n }: {\n $variant: HvTypographyVariants | HvTypographyLegacyVariants;\n $link?: boolean;\n $disabled?: boolean;\n $noWrap?: boolean;\n }) => ({\n ...($variant === \"display\" && {\n ...(theme.typography.display as CSSProperties),\n }),\n ...($variant === \"title1\" && {\n ...(theme.typography.title1 as CSSProperties),\n }),\n ...($variant === \"title2\" && {\n ...(theme.typography.title2 as CSSProperties),\n }),\n ...($variant === \"title3\" && {\n ...(theme.typography.title3 as CSSProperties),\n }),\n ...($variant === \"title4\" && {\n ...(theme.typography.title4 as CSSProperties),\n }),\n ...($variant === \"body\" && {\n ...(theme.typography.body as CSSProperties),\n }),\n ...($variant === \"label\" && {\n ...(theme.typography.label as CSSProperties),\n }),\n ...($variant === \"caption1\" && {\n ...(theme.typography.caption1 as CSSProperties),\n }),\n ...($variant === \"caption2\" && {\n ...(theme.typography.caption2 as CSSProperties),\n }),\n // LEGACY\n ...($variant === \"5xlTitle\" && {\n ...(theme.typography[\"5xlTitle\"] as CSSProperties),\n }),\n ...($variant === \"4xlTitle\" && {\n ...(theme.typography[\"4xlTitle\"] as CSSProperties),\n }),\n ...($variant === \"xxlTitle\" && {\n ...(theme.typography.xxlTitle as CSSProperties),\n }),\n ...($variant === \"lTitle\" && {\n ...(theme.typography.lTitle as CSSProperties),\n }),\n ...($variant === \"sTitle\" && {\n ...(theme.typography.sTitle as CSSProperties),\n }),\n ...($variant === \"xxsTitle\" && {\n ...(theme.typography.xxsTitle as CSSProperties),\n }),\n ...($variant === \"sectionTitle\" && {\n ...(theme.typography.sectionTitle as CSSProperties),\n textTransform: \"uppercase\",\n }),\n ...($variant === \"placeholderText\" && {\n ...(theme.typography.placeholderText as CSSProperties),\n }),\n ...($variant === \"link\" && {\n ...(theme.typography.link as CSSProperties),\n textDecoration: \"underline\",\n cursor: \"pointer\",\n }),\n fontFamily: theme.fontFamily.body,\n // ADDED PROPS\n ...($link && {\n color: theme.colors.acce2,\n textDecoration: \"underline\",\n cursor: \"pointer\",\n }),\n ...($disabled && {\n color: theme.colors.atmo5,\n }),\n ...($noWrap && {\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n }),\n })\n );\n\nexport type HvTypographyProps = Omit<\n AllHTMLAttributes<HTMLElement>,\n \"disabled\"\n> &\n HvBaseProps<HTMLElement, { disabled }> & {\n component?: React.ReactNode | React.ElementType;\n /** Use the variant prop to change the visual style of the Typography. */\n variant?: HvTypographyVariants | HvTypographyLegacyVariants;\n /** If `true` the typography will display the look of a link. */\n link?: boolean;\n /** If `true` the typography will display the look of a disabled state. */\n disabled?: boolean;\n /** If `true`, the text will have a bottom margin. */\n paragraph?: boolean;\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n */\n noWrap?: boolean;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTypographyClasses;\n };\n\n/**\n * Typography component is used to render text and paragraphs within an interface.\n */\nexport const HvTypography = forwardRef(\n (props: HvTypographyProps, ref: Ref<HTMLElement>) => {\n const {\n children,\n className,\n component,\n classes,\n variant = \"body\",\n link = false,\n disabled = false,\n noWrap = false,\n paragraph = false,\n ...others\n } = props;\n\n const mappedVariant = mapVariant(variant);\n\n const comp =\n component || (paragraph ? \"p\" : HvTypographyMap[mappedVariant] || \"span\");\n\n const StyledComponent = useMemo(\n () => getStyledComponent(comp || \"p\"),\n [comp]\n );\n\n return (\n <StyledComponent\n ref={ref}\n className={clsx(\n className,\n classes?.root,\n typographyClasses.root,\n classes?.[variant],\n typographyClasses[variant],\n noWrap && clsx(typographyClasses.noWrap, classes?.noWrap)\n )}\n $variant={\n mappedVariant as HvTypographyVariants | HvTypographyLegacyVariants\n }\n $link={link}\n $disabled={disabled}\n $noWrap={noWrap}\n {...others}\n >\n {children}\n </StyledComponent>\n );\n }\n);\n"],"names":["HvTypographyMap","display","title1","title2","title3","title4","body","label","caption1","caption2","xxlTitle","lTitle","sTitle","xxsTitle","sectionTitle","placeholderText","link","disabledText","selectedNavText","vizTextDisabled","xsInlineLink","getStyledComponent","c","process","env","NODE_ENV","_extends","target","transientOptions","$variant","$link","$disabled","$noWrap","theme","typography","textTransform","textDecoration","cursor","fontFamily","color","colors","acce2","atmo5","overflow","textOverflow","whiteSpace","HvTypography","forwardRef","props","ref","children","className","component","classes","variant","disabled","noWrap","paragraph","others","mappedVariant","mapVariant","comp","StyledComponent","useMemo","clsx","root","typographyClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgDA,MAAMA,kBAAkB;AAAA,EACtBC,SAAS;AAAA,EACTC,QAAQ;AAAA,EACRC,QAAQ;AAAA,EACRC,QAAQ;AAAA,EACRC,QAAQ;AAAA,EACRC,MAAM;AAAA,EACNC,OAAO;AAAA,EACPC,UAAU;AAAA,EACVC,UAAU;AAAA;AAAA,EAEV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZC,UAAU;AAAA,EACVC,QAAQ;AAAA,EACRC,QAAQ;AAAA,EACRC,UAAU;AAAA,EACVC,cAAc;AAAA,EACdC,iBAAiB;AAAA,EACjBC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,iBAAiB;AAAA,EACjBC,iBAAiB;AAAA,EACjBC,cAAc;AAChB;AAEA,MAAMC,qBAAqB,CAAwCC,MAE/DA,wBAAAA,GAACC,QAAAC,IAAAC,aAAA,eAAAC,SAAA,IAAA;AAAA,EAAAC,QAAA;AAAA,GACDC,gBAAgB,IAAAF,SAAA,IAAA;AAAA,EAAAC,QAAA;AAAA,EAAApB,OAAA;AAAA,GAAhBqB,gBAAgB,CACjB,EACC,CAAC;AAAA,EACCC;AAAAA,EACAC,QAAQ;AAAA,EACRC,YAAY;AAAA,EACZC,UAAU;AAMZ,OAAO;AAAA,EACL,GAAIH,aAAa,aAAa;AAAA,IAC5B,GAAII,MAAMC,WAAWjC;AAAAA,EACvB;AAAA,EACA,GAAI4B,aAAa,YAAY;AAAA,IAC3B,GAAII,MAAMC,WAAWhC;AAAAA,EACvB;AAAA,EACA,GAAI2B,aAAa,YAAY;AAAA,IAC3B,GAAII,MAAMC,WAAW/B;AAAAA,EACvB;AAAA,EACA,GAAI0B,aAAa,YAAY;AAAA,IAC3B,GAAII,MAAMC,WAAW9B;AAAAA,EACvB;AAAA,EACA,GAAIyB,aAAa,YAAY;AAAA,IAC3B,GAAII,M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AAAAA,IACpBL,gBAAgB;AAAA,IAChBC,QAAQ;AAAA,EACV;AAAA,EACA,GAAIN,aAAa;AAAA,IACfQ,OAAON,MAAMO,OAAOE;AAAAA,EACtB;AAAA,EACA,GAAIV,WAAW;AAAA,IACbW,UAAU;AAAA,IACVC,cAAc;AAAA,IACdC,YAAY;AAAA,EACd;AACF,IAAEtB,QAAAC,IAAAC,aACH,eAAA,KAAA,66SAAA;AA8BI,MAAMqB,eAAeC,WAC1B,CAACC,OAA0BC,QAA0B;AAC7C,QAAA;AAAA,IACJC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC,UAAU;AAAA,IACVtC,OAAO;AAAA,IACPuC,WAAW;AAAA,IACXC,SAAS;AAAA,IACTC,YAAY;AAAA,IACZ,GAAGC;AAAAA,EACDV,IAAAA;AAEEW,QAAAA,gBAAgBC,WAAWN,OAAO;AAExC,QAAMO,OACJT,cAAcK,YAAY,MAAMzD,gBAAgB2D,aAAa,KAAK;AAE9DG,QAAAA,kBAAkBC,QACtB,MAAM1C,mBAAmBwC,QAAQ,GAAG,GACpC,CAACA,IAAI,CAAC;AAGR,6BACGC,iBAAe;AAAA,IACdb;AAAAA,IACAE,WAAWa,KACTb,WACAE,mCAASY,MACTC,kBAAkBD,MAClBZ,mCAAUC,UACVY,kBAAkBZ,OAAO,GACzBE,UAAUQ,KAAKE,kBAAkBV,QAAQH,mCAASG,MAAM,CAAC;AAAA,IAE3D3B,UACE8B;AAAAA,IAEF7B,OAAOd;AAAAA,IACPe,WAAWwB;AAAAA,IACXvB,SAASwB;AAAAA,IAAO,GACZE;AAAAA,IAAMR;AAAAA,EAAAA,CAGM;AAEtB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"Typography.js","sources":["../../../../src/components/Typography/Typography.tsx"],"sourcesContent":["import {\n forwardRef,\n useMemo,\n CSSProperties,\n AllHTMLAttributes,\n Ref,\n} from \"react\";\nimport { HvBaseProps } from \"../../types\";\nimport styled from \"@emotion/styled\";\nimport { transientOptions } from \"utils/transientOptions\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\nimport { mapVariant } from \"./utils\";\nimport typographyClasses, { HvTypographyClasses } from \"./typographyClasses\";\nimport clsx from \"clsx\";\n\nexport type HvTypographyVariants =\n | \"display\"\n | \"title1\"\n | \"title2\"\n | \"title3\"\n | \"title4\"\n | \"body\"\n | \"label\"\n | \"caption1\"\n | \"caption2\";\n\nexport type HvTypographyLegacyVariants =\n | \"5xlTitle\"\n | \"4xlTitle\"\n | \"3xlTitle\"\n | \"xxlTitle\"\n | \"xlTitle\"\n | \"lTitle\"\n | \"mTitle\"\n | \"sTitle\"\n | \"xsTitle\"\n | \"xxsTitle\"\n | \"sectionTitle\"\n | \"highlightText\"\n | \"normalText\"\n | \"placeholderText\"\n | \"link\"\n | \"disabledText\"\n | \"selectedNavText\"\n | \"vizText\"\n | \"vizTextDisabled\"\n | \"xsInlineLink\";\n\nconst HvTypographyMap = {\n display: \"h1\",\n title1: \"h1\",\n title2: \"h2\",\n title3: \"h3\",\n title4: \"h4\",\n body: \"p\",\n label: \"label\",\n caption1: \"p\",\n caption2: \"p\",\n // LEGACY\n \"5xlTitle\": \"h1\",\n \"4xlTitle\": \"h1\",\n xxlTitle: \"h1\",\n lTitle: \"h2\",\n sTitle: \"h4\",\n xxsTitle: \"h6\",\n sectionTitle: \"p\",\n placeholderText: \"p\",\n link: \"p\",\n disabledText: \"p\",\n selectedNavText: \"p\",\n vizTextDisabled: \"p\",\n xsInlineLink: \"p\",\n} as const;\n\nconst getStyledComponent = <T extends keyof JSX.IntrinsicElements>(c: T) =>\n styled(\n c,\n transientOptions\n )(\n ({\n $variant,\n $link = false,\n $disabled = false,\n $noWrap = false,\n }: {\n $variant: HvTypographyVariants | HvTypographyLegacyVariants;\n $link?: boolean;\n $disabled?: boolean;\n $noWrap?: boolean;\n }) => ({\n ...($variant === \"display\" && {\n ...(theme.typography.display as CSSProperties),\n }),\n ...($variant === \"title1\" && {\n ...(theme.typography.title1 as CSSProperties),\n }),\n ...($variant === \"title2\" && {\n ...(theme.typography.title2 as CSSProperties),\n }),\n ...($variant === \"title3\" && {\n ...(theme.typography.title3 as CSSProperties),\n }),\n ...($variant === \"title4\" && {\n ...(theme.typography.title4 as CSSProperties),\n }),\n ...($variant === \"body\" && {\n ...(theme.typography.body as CSSProperties),\n }),\n ...($variant === \"label\" && {\n ...(theme.typography.label as CSSProperties),\n }),\n ...($variant === \"caption1\" && {\n ...(theme.typography.caption1 as CSSProperties),\n }),\n ...($variant === \"caption2\" && {\n ...(theme.typography.caption2 as CSSProperties),\n }),\n // LEGACY\n ...($variant === \"5xlTitle\" && {\n ...(theme.typography[\"5xlTitle\"] as CSSProperties),\n }),\n ...($variant === \"4xlTitle\" && {\n ...(theme.typography[\"4xlTitle\"] as CSSProperties),\n }),\n ...($variant === \"xxlTitle\" && {\n ...(theme.typography.xxlTitle as CSSProperties),\n }),\n ...($variant === \"lTitle\" && {\n ...(theme.typography.lTitle as CSSProperties),\n }),\n ...($variant === \"sTitle\" && {\n ...(theme.typography.sTitle as CSSProperties),\n }),\n ...($variant === \"xxsTitle\" && {\n ...(theme.typography.xxsTitle as CSSProperties),\n }),\n ...($variant === \"sectionTitle\" && {\n ...(theme.typography.sectionTitle as CSSProperties),\n textTransform: \"uppercase\",\n }),\n ...($variant === \"placeholderText\" && {\n ...(theme.typography.placeholderText as CSSProperties),\n }),\n ...($variant === \"link\" && {\n ...(theme.typography.link as CSSProperties),\n textDecoration: \"underline\",\n cursor: \"pointer\",\n }),\n ...($variant === \"disabledText\" && {\n ...(theme.typography.disabledText as CSSProperties),\n }),\n ...($variant === \"selectedNavText\" && {\n ...(theme.typography.selectedNavText as CSSProperties),\n }),\n ...($variant === \"vizTextDisabled\" && {\n ...(theme.typography.vizTextDisabled as CSSProperties),\n }),\n ...($variant === \"xsInlineLink\" && {\n ...(theme.typography.xsInlineLink as CSSProperties),\n }),\n fontFamily: theme.fontFamily.body,\n // ADDED PROPS\n ...($link && {\n color: theme.colors.acce2,\n textDecoration: \"underline\",\n cursor: \"pointer\",\n }),\n ...($disabled && {\n color: theme.colors.atmo5,\n }),\n ...($noWrap && {\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n }),\n })\n );\n\nexport type HvTypographyProps = Omit<\n AllHTMLAttributes<HTMLElement>,\n \"disabled\"\n> &\n HvBaseProps<HTMLElement, { disabled }> & {\n component?: React.ReactNode | React.ElementType;\n /** Use the variant prop to change the visual style of the Typography. */\n variant?: HvTypographyVariants | HvTypographyLegacyVariants;\n /** If `true` the typography will display the look of a link. */\n link?: boolean;\n /** If `true` the typography will display the look of a disabled state. */\n disabled?: boolean;\n /** If `true`, the text will have a bottom margin. */\n paragraph?: boolean;\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n */\n noWrap?: boolean;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvTypographyClasses;\n };\n\n/**\n * Typography component is used to render text and paragraphs within an interface.\n */\nexport const HvTypography = forwardRef(\n (props: HvTypographyProps, ref: Ref<HTMLElement>) => {\n const {\n children,\n className,\n component,\n classes,\n variant = \"body\",\n link = false,\n disabled = false,\n noWrap = false,\n paragraph = false,\n ...others\n } = props;\n\n const mappedVariant = mapVariant(variant);\n\n const comp =\n component || (paragraph ? \"p\" : HvTypographyMap[mappedVariant] || \"span\");\n\n const StyledComponent = useMemo(\n () => getStyledComponent(comp || \"p\"),\n [comp]\n );\n\n return (\n <StyledComponent\n ref={ref}\n className={clsx(\n className,\n classes?.root,\n typographyClasses.root,\n classes?.[variant],\n typographyClasses[variant],\n noWrap && clsx(typographyClasses.noWrap, classes?.noWrap)\n )}\n $variant={\n mappedVariant as HvTypographyVariants | HvTypographyLegacyVariants\n }\n $link={link}\n $disabled={disabled}\n $noWrap={noWrap}\n {...others}\n >\n {children}\n </StyledComponent>\n );\n }\n);\n"],"names":["HvTypographyMap","display","title1","title2","title3","title4","body","label","caption1","caption2","xxlTitle","lTitle","sTitle","xxsTitle","sectionTitle","placeholderText","link","disabledText","selectedNavText","vizTextDisabled","xsInlineLink","getStyledComponent","c","process","env","NODE_ENV","_extends","target","transientOptions","$variant","$link","$disabled","$noWrap","theme","typography","textTransform","textDecoration","cursor","fontFamily","color","colors","acce2","atmo5","overflow","textOverflow","whiteSpace","HvTypography","forwardRef","props","ref","children","className","component","classes","variant","disabled","noWrap","paragraph","others","mappedVariant","mapVariant","comp","StyledComponent","useMemo","clsx","root","typographyClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgDA,MAAMA,kBAAkB;AAAA,EACtBC,SAAS;AAAA,EACTC,QAAQ;AAAA,EACRC,QAAQ;AAAA,EACRC,QAAQ;AAAA,EACRC,QAAQ;AAAA,EACRC,MAAM;AAAA,EACNC,OAAO;AAAA,EACPC,UAAU;AAAA,EACVC,UAAU;AAAA;AAAA,EAEV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZC,UAAU;AAAA,EACVC,QAAQ;AAAA,EACRC,QAAQ;AAAA,EACRC,UAAU;AAAA,EACVC,cAAc;AAAA,EACdC,iBAAiB;AAAA,EACjBC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,iBAAiB;AAAA,EACjBC,iBAAiB;AAAA,EACjBC,cAAc;AAChB;AAEA,MAAMC,qBAAqB,CAAwCC,MAE/DA,wBAAAA,GAACC,QAAAC,IAAAC,aAAA,eAAAC,SAAA,IAAA;AAAA,EAAAC,QAAA;AAAA,GACDC,gBAAgB,IAAAF,SAAA,IAAA;AAAA,EAAAC,QAAA;AAAA,EAAApB,OAAA;AAAA,GAAhBqB,gBAAgB,CACjB,EACC,CAAC;AAAA,EACCC;AAAAA,EACAC,QAAQ;AAAA,EACRC,YAAY;AAAA,EACZC,UAAU;AAMZ,OAAO;AAAA,EACL,GAAIH,aAAa,aAAa;AAAA,IAC5B,GAAII,MAAMC,WAAWj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a,KAAK;AAE9DG,QAAAA,kBAAkBC,QACtB,MAAM1C,mBAAmBwC,QAAQ,GAAG,GACpC,CAACA,IAAI,CAAC;AAGR,6BACGC,iBAAe;AAAA,IACdb;AAAAA,IACAE,WAAWa,KACTb,WACAE,mCAASY,MACTC,kBAAkBD,MAClBZ,mCAAUC,UACVY,kBAAkBZ,OAAO,GACzBE,UAAUQ,KAAKE,kBAAkBV,QAAQH,mCAASG,MAAM,CAAC;AAAA,IAE3D3B,UACE8B;AAAAA,IAEF7B,OAAOd;AAAAA,IACPe,WAAWwB;AAAAA,IACXvB,SAASwB;AAAAA,IAAO,GACZE;AAAAA,IAAMR;AAAAA,EAAAA,CAGM;AAEtB,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.js","sources":["../../../../../src/components/VerticalNavigation/Navigation/Navigation.tsx"],"sourcesContent":["import { useCallback, useMemo, useContext } from \"react\";\nimport clsx from \"clsx\";\nimport { setId, wrapperTooltip } from \"utils\";\nimport { useControlled } from \"hooks\";\nimport {\n HvVerticalNavigationTreeView,\n HvVerticalNavigationTreeViewItem,\n} from \"../TreeView\";\nimport verticalNavigationTreeClasses, {\n HvVerticalNavigationTreeClasses,\n} from \"./navigationClasses\";\nimport { StyledNav } from \"./Navigation.styles\";\nimport { VerticalNavigationContext } from \"../VerticalNavigation\";\n\nexport interface NavigationData {\n /**\n * the id to be applied to the root element.\n */\n id: string;\n /**\n * the label to be rendered on the menu item.\n */\n label: string;\n /**\n * The url for the link.\n */\n href?: string;\n /**\n * The behavior when opening a link.\n */\n target?: string;\n /**\n * Icon to be render.\n */\n icon?: React.ReactNode;\n /**\n * Data subset.\n */\n data?: NavigationData[];\n /**\n * if `true` the item is disabled and is not interactive.\n */\n disabled?: boolean;\n /**\n * if `true` the item doesn't have a selected state.\n */\n selectable?: boolean;\n /**\n * Any other properties.\n */\n [otherProperty: string]: any;\n}\n\nconst createListHierarchy = (\n items,\n id,\n classes?: HvVerticalNavigationTreeClasses\n) =>\n items.map((item) => {\n const {\n id: itemId,\n label: itemLabel,\n icon,\n data: children,\n selectable,\n disabled,\n href,\n target,\n } = item;\n\n const ItemText = wrapperTooltip(true, itemLabel, itemLabel);\n\n return (\n <HvVerticalNavigationTreeViewItem\n id={setId(id, itemId)}\n className={classes?.listItem}\n href={href}\n target={target}\n key={itemId}\n nodeId={itemId}\n label={<ItemText />}\n icon={icon}\n payload={item}\n selectable={selectable}\n disabled={disabled}\n >\n {children ? createListHierarchy(children, id, classes) : undefined}\n </HvVerticalNavigationTreeViewItem>\n );\n });\n\nconst getAllParents = (items) => {\n const parents = items.filter(\n (item) => item.data != null && item.data.length > 0\n );\n const childParents = parents.flatMap((item) => getAllParents(item.data));\n\n return [...parents, ...childParents];\n};\n\nfunction pathToElement(data, targetId) {\n const path: string[] = [];\n\n if (data != null && data.length > 0) {\n for (let i = 0; i !== data.length; ++i) {\n const item = data[i];\n if (item.id === targetId) {\n path.push(item.id);\n break;\n }\n\n const subPaths = pathToElement(item.data, targetId);\n if (subPaths.length > 0) {\n path.push(item.id);\n path.push(...subPaths);\n break;\n }\n }\n }\n\n return path;\n}\n\nexport const HvVerticalNavigationTree = ({\n id,\n\n className,\n classes,\n\n data,\n\n mode = \"navigation\",\n\n collapsible = false,\n expanded: expandedProp,\n defaultExpanded,\n onToggle,\n\n selected: selectedProp,\n defaultSelected,\n onChange,\n\n ...others\n}: HvVerticalNavigationTreeProps) => {\n const [selected, setSelected] = useControlled(selectedProp, defaultSelected);\n const [expanded, setExpanded] = useControlled(expandedProp, () => {\n if (defaultExpanded === true) {\n // all parent nodes will be expanded by default\n return getAllParents(data).map((item) => item.id);\n }\n\n if (defaultExpanded === false) {\n // all parent nodes will be collapsed by default\n return [];\n }\n\n if (defaultExpanded == null) {\n if (selected != null) {\n // the path to the selected node will be expanded (default behaviour)\n const path = pathToElement(data, selected);\n return path.slice(0, -1);\n }\n\n // nothing is expanded\n return [];\n }\n\n return defaultExpanded;\n });\n\n const handleChange = useCallback(\n (event, selectedId, selectedItem) => {\n setSelected(selectedId);\n\n if (onChange) {\n onChange(event, selectedItem);\n }\n },\n [onChange, setSelected]\n );\n\n const handleToggle = useCallback(\n (event, newExpanded) => {\n setExpanded(newExpanded);\n\n if (onToggle) {\n onToggle(event, newExpanded);\n }\n },\n [onToggle, setExpanded]\n );\n\n const { isOpen, collapsedMode } = useContext(VerticalNavigationContext);\n\n const children = useMemo(\n () => data && createListHierarchy(data, id, classes),\n [classes, data, id]\n );\n\n return (\n <StyledNav\n id={id}\n className={clsx(\n className,\n verticalNavigationTreeClasses.root,\n classes?.root,\n !isOpen &&\n collapsedMode == \"simple\" &&\n clsx(verticalNavigationTreeClasses.collapsed, classes?.collapsed)\n )}\n {...others}\n >\n <HvVerticalNavigationTreeView\n id={setId(id, \"tree\")}\n className={clsx(verticalNavigationTreeClasses.list, classes?.list)}\n selectable\n mode={mode}\n collapsible={collapsible}\n selected={selected}\n onChange={handleChange}\n expanded={expanded}\n onToggle={handleToggle}\n >\n {children}\n </HvVerticalNavigationTreeView>\n </StyledNav>\n );\n};\n\nexport type HvVerticalNavigationTreeProps = {\n /**\n * Id to be applied to the root node.\n */\n id?: string;\n\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes?: HvVerticalNavigationTreeClasses;\n /**\n * Modus operandi (role) of the widget instance.\n */\n mode?: NavigationMode;\n /**\n * Can non-leaf nodes be collapsed / expanded.\n */\n collapsible?: boolean;\n /**\n * The ID of the selected page.\n */\n selected?: string;\n /**\n * When uncontrolled, defines the initial selected page ID.\n */\n defaultSelected?: string;\n /**\n * Callback fired when a navigation item is selected.\n *\n * @param {object} event The event source of the callback.\n * @param {object} page The data of the selected page.\n */\n onChange?: (event, page) => void;\n /**\n * Expanded nodes' ids.\n */\n expanded?: string[];\n /**\n * When uncontrolled, defines the initial expanded nodes' ids.\n *\n * It also supports `true` for starting with all nodes expanded.\n * With `false` all nodes will be collapsed.\n *\n * By default it expands the needed nodes to display the current selection, if any.\n */\n defaultExpanded?: string[] | boolean;\n /**\n * Callback fired when tree items are expanded/collapsed.\n *\n * @param {object} event The event source of the callback.\n * @param {array} nodeIds The ids of the expanded nodes (old and new).\n */\n onToggle?: (event, nodeIds) => void;\n /**\n * An array containing the data for each menu item.\n *\n * id - the id to be applied to the root element.\n * label - the label to be rendered on the menu item.\n * data - sub-menu items\n * href - the url used for navigation.\n * target - the behavior when opening an url.\n */\n data?: NavigationData[];\n};\n\nexport type NavigationMode = \"treeview\" | \"navigation\";\n"],"names":["createListHierarchy","items","id","classes","map","item","itemId","label","itemLabel","icon","data","children","selectable","disabled","href","target","ItemText","wrapperTooltip","HvVerticalNavigationTreeViewItem","setId","className","listItem","nodeId","_jsx","payload","undefined","getAllParents","parents","filter","length","childParents","flatMap","pathToElement","targetId","path","i","push","subPaths","HvVerticalNavigationTree","mode","collapsible","expanded","expandedProp","defaultExpanded","onToggle","selected","selectedProp","defaultSelected","onChange","others","setSelected","useControlled","setExpanded","slice","handleChange","useCallback","event","selectedId","selectedItem","handleToggle","newExpanded","isOpen","collapsedMode","useContext","VerticalNavigationContext","useMemo","StyledNav","clsx","verticalNavigationTreeClasses","root","collapsed","HvVerticalNavigationTreeView","list"],"mappings":";;;;;;;;;;;AAqDA,MAAMA,sBAAsBA,CAC1BC,OACAC,IACAC,YAEAF,MAAMG,IAAKC,CAAS,SAAA;AACZ,QAAA;AAAA,IACJH,IAAII;AAAAA,IACJC,OAAOC;AAAAA,IACPC;AAAAA,IACAC,MAAMC;AAAAA,IACNC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,EACEV,IAAAA;AAEJ,QAAMW,WAAWC,eAAe,MAAMT,WAAWA,SAAS;AAE1D,6BACGU,kCAAgC;AAAA,IAC/BhB,IAAIiB,MAAMjB,IAAII,MAAM;AAAA,IACpBc,WAAWjB,mCAASkB;AAAAA,IACpBP;AAAAA,IACAC;AAAAA,IAEAO,QAAQhB;AA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IAAMtC,8BAET4D,8BAA4B;AAAA,MAC3BrE,IAAIiB,MAAMjB,IAAI,MAAM;AAAA,MACpBkB,WAAW+C,KAAKC,8BAA8BI,MAAMrE,mCAASqE,IAAI;AAAA,MACjE5D,YAAU;AAAA,MACV2B;AAAAA,MACAC;AAAAA,MACAK;AAAAA,MACAG,UAAUM;AAAAA,MACVb;AAAAA,MACAG,UAAUe;AAAAA,MAAahD;AAAAA,IAAAA,CAEd;AAAA,EAAA,CAED;AAEhB;"}
|
|
1
|
+
{"version":3,"file":"Navigation.js","sources":["../../../../../src/components/VerticalNavigation/Navigation/Navigation.tsx"],"sourcesContent":["import { useCallback, useMemo, useContext } from \"react\";\nimport clsx from \"clsx\";\nimport { setId, wrapperTooltip } from \"utils\";\nimport { useControlled } from \"hooks\";\nimport {\n HvVerticalNavigationTreeView,\n HvVerticalNavigationTreeViewItem,\n} from \"../TreeView\";\nimport verticalNavigationTreeClasses, {\n HvVerticalNavigationTreeClasses,\n} from \"./navigationClasses\";\nimport { StyledNav } from \"./Navigation.styles\";\nimport { VerticalNavigationContext } from \"../VerticalNavigation\";\nimport { HvBaseProps } from \"types/generic\";\n\nexport interface NavigationData {\n /**\n * the id to be applied to the root element.\n */\n id: string;\n /**\n * the label to be rendered on the menu item.\n */\n label: string;\n /**\n * The url for the link.\n */\n href?: string;\n /**\n * The behavior when opening a link.\n */\n target?: string;\n /**\n * Icon to be render.\n */\n icon?: React.ReactNode;\n /**\n * Data subset.\n */\n data?: NavigationData[];\n /**\n * if `true` the item is disabled and is not interactive.\n */\n disabled?: boolean;\n /**\n * if `true` the item doesn't have a selected state.\n */\n selectable?: boolean;\n /**\n * Any other properties.\n */\n [otherProperty: string]: any;\n}\n\nconst createListHierarchy = (\n items,\n id,\n classes?: HvVerticalNavigationTreeClasses\n) =>\n items.map((item) => {\n const {\n id: itemId,\n label: itemLabel,\n icon,\n data: children,\n selectable,\n disabled,\n href,\n target,\n } = item;\n\n const ItemText = wrapperTooltip(true, itemLabel, itemLabel);\n\n return (\n <HvVerticalNavigationTreeViewItem\n id={setId(id, itemId)}\n className={classes?.listItem}\n href={href}\n target={target}\n key={itemId}\n nodeId={itemId}\n label={<ItemText />}\n icon={icon}\n payload={item}\n selectable={selectable}\n disabled={disabled}\n >\n {children ? createListHierarchy(children, id, classes) : undefined}\n </HvVerticalNavigationTreeViewItem>\n );\n });\n\nconst getAllParents = (items) => {\n const parents = items.filter(\n (item) => item.data != null && item.data.length > 0\n );\n const childParents = parents.flatMap((item) => getAllParents(item.data));\n\n return [...parents, ...childParents];\n};\n\nfunction pathToElement(data, targetId) {\n const path: string[] = [];\n\n if (data != null && data.length > 0) {\n for (let i = 0; i !== data.length; ++i) {\n const item = data[i];\n if (item.id === targetId) {\n path.push(item.id);\n break;\n }\n\n const subPaths = pathToElement(item.data, targetId);\n if (subPaths.length > 0) {\n path.push(item.id);\n path.push(...subPaths);\n break;\n }\n }\n }\n\n return path;\n}\n\nexport const HvVerticalNavigationTree = ({\n id,\n\n className,\n classes,\n\n data,\n\n mode = \"navigation\",\n\n collapsible = false,\n expanded: expandedProp,\n defaultExpanded,\n onToggle,\n\n selected: selectedProp,\n defaultSelected,\n onChange,\n\n ...others\n}: HvVerticalNavigationTreeProps) => {\n const [selected, setSelected] = useControlled(selectedProp, defaultSelected);\n const [expanded, setExpanded] = useControlled(expandedProp, () => {\n if (defaultExpanded === true) {\n // all parent nodes will be expanded by default\n return getAllParents(data).map((item) => item.id);\n }\n\n if (defaultExpanded === false) {\n // all parent nodes will be collapsed by default\n return [];\n }\n\n if (defaultExpanded == null) {\n if (selected != null) {\n // the path to the selected node will be expanded (default behaviour)\n const path = pathToElement(data, selected);\n return path.slice(0, -1);\n }\n\n // nothing is expanded\n return [];\n }\n\n return defaultExpanded;\n });\n\n const handleChange = useCallback(\n (event, selectedId, selectedItem) => {\n setSelected(selectedId);\n\n if (onChange) {\n onChange(event, selectedItem);\n }\n },\n [onChange, setSelected]\n );\n\n const handleToggle = useCallback(\n (event, newExpanded) => {\n setExpanded(newExpanded);\n\n if (onToggle) {\n onToggle(event, newExpanded);\n }\n },\n [onToggle, setExpanded]\n );\n\n const { isOpen, collapsedMode } = useContext(VerticalNavigationContext);\n\n const children = useMemo(\n () => data && createListHierarchy(data, id, classes),\n [classes, data, id]\n );\n\n return (\n <StyledNav\n id={id}\n className={clsx(\n className,\n verticalNavigationTreeClasses.root,\n classes?.root,\n !isOpen &&\n collapsedMode == \"simple\" &&\n clsx(verticalNavigationTreeClasses.collapsed, classes?.collapsed)\n )}\n {...others}\n >\n <HvVerticalNavigationTreeView\n id={setId(id, \"tree\")}\n className={clsx(verticalNavigationTreeClasses.list, classes?.list)}\n selectable\n mode={mode}\n collapsible={collapsible}\n selected={selected}\n onChange={handleChange}\n expanded={expanded}\n onToggle={handleToggle}\n >\n {children}\n </HvVerticalNavigationTreeView>\n </StyledNav>\n );\n};\n\nexport type HvVerticalNavigationTreeProps = HvBaseProps<\n HTMLDivElement,\n { onChange }\n> & {\n /**\n * Id to be applied to the root node.\n */\n id?: string;\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes?: HvVerticalNavigationTreeClasses;\n /**\n * Modus operandi (role) of the widget instance.\n */\n mode?: NavigationMode;\n /**\n * Can non-leaf nodes be collapsed / expanded.\n */\n collapsible?: boolean;\n /**\n * The ID of the selected page.\n */\n selected?: string;\n /**\n * When uncontrolled, defines the initial selected page ID.\n */\n defaultSelected?: string;\n /**\n * Callback fired when a navigation item is selected.\n *\n * @param {object} event The event source of the callback.\n * @param {object} page The data of the selected page.\n */\n onChange?: (event, page) => void;\n /**\n * Expanded nodes' ids.\n */\n expanded?: string[];\n /**\n * When uncontrolled, defines the initial expanded nodes' ids.\n *\n * It also supports `true` for starting with all nodes expanded.\n * With `false` all nodes will be collapsed.\n *\n * By default it expands the needed nodes to display the current selection, if any.\n */\n defaultExpanded?: string[] | boolean;\n /**\n * Callback fired when tree items are expanded/collapsed.\n *\n * @param {object} event The event source of the callback.\n * @param {array} nodeIds The ids of the expanded nodes (old and new).\n */\n onToggle?: (event, nodeIds) => void;\n /**\n * An array containing the data for each menu item.\n *\n * id - the id to be applied to the root element.\n * label - the label to be rendered on the menu item.\n * data - sub-menu items\n * href - the url used for navigation.\n * target - the behavior when opening an url.\n */\n data?: NavigationData[];\n};\n\nexport type NavigationMode = \"treeview\" | \"navigation\";\n"],"names":["createListHierarchy","items","id","classes","map","item","itemId","label","itemLabel","icon","data","children","selectable","disabled","href","target","ItemText","wrapperTooltip","HvVerticalNavigationTreeViewItem","setId","className","listItem","nodeId","_jsx","payload","undefined","getAllParents","parents","filter","length","childParents","flatMap","pathToElement","targetId","path","i","push","subPaths","HvVerticalNavigationTree","mode","collapsible","expanded","expandedProp","defaultExpanded","onToggle","selected","selectedProp","defaultSelected","onChange","others","setSelected","useControlled","setExpanded","slice","handleChange","useCallback","event","selectedId","selectedItem","handleToggle","newExpanded","isOpen","collapsedMode","useContext","VerticalNavigationContext","useMemo","StyledNav","clsx","verticalNavigationTreeClasses","root","collapsed","HvVerticalNavigationTreeView","list"],"mappings":";;;;;;;;;;;AAsDA,MAAMA,sBAAsBA,CAC1BC,OACAC,IACAC,YAEAF,MAAMG,IAAKC,CAAS,SAAA;AACZ,QAAA;AAAA,IACJH,IAAII;AAAAA,IACJC,OAAOC;AAAAA,IACPC;AAAAA,IACAC,MAAMC;AAAAA,IACNC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,EACEV,IAAAA;AAEJ,QAAMW,WAAWC,eAAe,MAAMT,WAAWA,SAAS;AAE1D,6BACGU,kCAAgC;AAAA,IAC/BhB,IAAIiB,MAAMjB,IAAII,MAAM;AAAA,IACpBc,WAAWjB,mCAASkB;AAAAA,IACpBP;AAAAA,IACAC;AAAAA,IAEAO,QAAQhB;AAAAA,IACRC,OAAOgB,oBAACP,UAAY,EAAA;AAAA,IACpBP;AAAAA,IACAe,SAASnB;AAAAA,IACTO;AAAAA,IAC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AKC,8BAA8BI,MAAMrE,mCAASqE,IAAI;AAAA,MACjE5D,YAAU;AAAA,MACV2B;AAAAA,MACAC;AAAAA,MACAK;AAAAA,MACAG,UAAUM;AAAAA,MACVb;AAAAA,MACAG,UAAUe;AAAAA,MAAahD;AAAAA,IAAAA,CAEd;AAAA,EAAA,CAED;AAEhB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalNavigation.js","sources":["../../../../src/components/VerticalNavigation/VerticalNavigation.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { createContext, useMemo } from \"react\";\nimport { StyledRoot } from \"./VerticalNavigation.styles\";\nimport verticalNavigationClasses, {\n HvVerticalNavigationClasses,\n} from \"./verticalNavigationClasses\";\n\ninterface VerticalNavigationContextValue {\n isOpen: boolean;\n collapsedMode: HvVerticalNavigationMode;\n}\n\nexport const VerticalNavigationContext =\n createContext<VerticalNavigationContextValue>({\n isOpen: true,\n collapsedMode: \"simple\",\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 * Even thou both the hierarchically organized data and the visual style ressemble 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 = ({\n id,\n className,\n classes,\n\n children,\n\n open = true,\n\n collapsedMode = \"simple\",\n\n ...others\n}: HvVerticalNavigationProps) => {\n const value = useMemo(\n () => ({\n isOpen: open,\n collapsedMode,\n }),\n [open]\n );\n\n const content = (\n <VerticalNavigationContext.Provider value={value}>\n <StyledRoot\n id={id}\n className={clsx(\n className,\n verticalNavigationClasses.root,\n classes?.root,\n !open && verticalNavigationClasses.collapsed,\n classes?.collapsed\n )}\n {...others}\n >\n {children}\n </StyledRoot>\n </VerticalNavigationContext.Provider>\n );\n\n return content;\n};\n\nexport type HvVerticalNavigationProps = {\n /**\n * Id to be applied to the root node.\n */\n id?: string;\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * A Jss Object used to override or extend the styles applied to the component.\n */\n classes?: HvVerticalNavigationClasses;\n /**\n * Current State of the Vertical Navigation Collapse\n */\n open?: boolean;\n /**\n *
|
|
1
|
+
{"version":3,"file":"VerticalNavigation.js","sources":["../../../../src/components/VerticalNavigation/VerticalNavigation.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { createContext, useMemo } from \"react\";\nimport { StyledRoot } from \"./VerticalNavigation.styles\";\nimport verticalNavigationClasses, {\n HvVerticalNavigationClasses,\n} from \"./verticalNavigationClasses\";\n\ninterface VerticalNavigationContextValue {\n isOpen: boolean;\n collapsedMode: HvVerticalNavigationMode;\n}\n\nexport const VerticalNavigationContext =\n createContext<VerticalNavigationContextValue>({\n isOpen: true,\n collapsedMode: \"simple\",\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 * Even thou both the hierarchically organized data and the visual style ressemble 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 = ({\n id,\n className,\n classes,\n\n children,\n\n open = true,\n\n collapsedMode = \"simple\",\n\n ...others\n}: HvVerticalNavigationProps) => {\n const value = useMemo(\n () => ({\n isOpen: open,\n collapsedMode,\n }),\n [open]\n );\n\n const content = (\n <VerticalNavigationContext.Provider value={value}>\n <StyledRoot\n id={id}\n className={clsx(\n className,\n verticalNavigationClasses.root,\n classes?.root,\n !open && verticalNavigationClasses.collapsed,\n classes?.collapsed\n )}\n {...others}\n >\n {children}\n </StyledRoot>\n </VerticalNavigationContext.Provider>\n );\n\n return content;\n};\n\nexport type HvVerticalNavigationProps = {\n /**\n * Id to be applied to the root node.\n */\n id?: string;\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * A Jss Object used to override or extend the styles applied to the component.\n */\n classes?: HvVerticalNavigationClasses;\n /**\n * Current State of the Vertical Navigation Collapse\n */\n open?: boolean;\n /**\n * Collapsed Mode for the Vertical Navigation, the default value is \"simple\".\n */\n collapsedMode?: HvVerticalNavigationMode;\n /**\n * The content inside the actions container.\n */\n children?: React.ReactNode;\n};\n\nexport type HvVerticalNavigationMode = \"icon\" | \"simple\";\n\nexport type HvVerticalNavigationPosition =\n | \"static\"\n | \"relative\"\n | \"fixed\"\n | \"absolute\";\n"],"names":["VerticalNavigationContext","createContext","isOpen","collapsedMode","HvVerticalNavigation","id","className","classes","children","open","others","value","useMemo","content","Provider","StyledRoot","clsx","verticalNavigationClasses","root","collapsed"],"mappings":";;;;;AAYO,MAAMA,4BACXC,cAA8C;AAAA,EAC5CC,QAAQ;AAAA,EACRC,eAAe;AACjB,CAAC;AAkBI,MAAMC,uBAAuBA,CAAC;AAAA,EACnCC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EAEAC;AAAAA,EAEAC,OAAO;AAAA,EAEPN,gBAAgB;AAAA,EAEhB,GAAGO;AACsB,MAAM;AACzBC,QAAAA,QAAQC,QACZ,OAAO;AAAA,IACLV,QAAQO;AAAAA,IACRN;AAAAA,EAAAA,IAEF,CAACM,IAAI,CAAC;AAGFI,QAAAA,UACHb,oBAAAA,0BAA0Bc,UAAQ;AAAA,IAACH;AAAAA,IAAaH,8BAC9CO,YAAU;AAAA,MACTV;AAAAA,MACAC,WAAWU,KACTV,WACAW,0BAA0BC,MAC1BX,mCAASW,MACT,CAACT,QAAQQ,0BAA0BE,WACnCZ,mCAASY,SAAS;AAAA,MAClB,GACET;AAAAA,MAAMF;AAAAA,IAAAA,CAED;AAAA,EAAA,CAGd;AAEMK,SAAAA;AACT;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -52,20 +52,20 @@ import { HvButton } from "./components/Button/Button.js";
|
|
|
52
52
|
import { default as default26 } from "./components/Card/cardClasses.js";
|
|
53
53
|
import { HvCard } from "./components/Card/Card.js";
|
|
54
54
|
import { default as default27 } from "./components/Card/Header/headerClasses.js";
|
|
55
|
-
import {
|
|
55
|
+
import { HvCardHeader } from "./components/Card/Header/Header.js";
|
|
56
56
|
import { default as default28 } from "./components/Card/Content/contentClasses.js";
|
|
57
|
-
import {
|
|
57
|
+
import { HvCardContent } from "./components/Card/Content/Content.js";
|
|
58
58
|
import { default as default29 } from "./components/Card/Media/mediaClasses.js";
|
|
59
|
-
import {
|
|
59
|
+
import { HvCardMedia } from "./components/Card/Media/Media.js";
|
|
60
60
|
import { default as default30 } from "./components/Container/containerClasses.js";
|
|
61
61
|
import { HvContainer } from "./components/Container/Container.js";
|
|
62
62
|
import { default as default31 } from "./components/Dialog/dialogClasses.js";
|
|
63
63
|
import { default as default32 } from "./components/Dialog/Title/titleClasses.js";
|
|
64
|
-
import {
|
|
64
|
+
import { HvDialogTitle } from "./components/Dialog/Title/Title.js";
|
|
65
65
|
import { default as default33 } from "./components/Dialog/Content/contentClasses.js";
|
|
66
|
-
import {
|
|
66
|
+
import { HvDialogContent } from "./components/Dialog/Content/Content.js";
|
|
67
67
|
import { default as default34 } from "./components/Dialog/Actions/actionsClasses.js";
|
|
68
|
-
import {
|
|
68
|
+
import { HvDialogActions } from "./components/Dialog/Actions/Actions.js";
|
|
69
69
|
import { HvDialog } from "./components/Dialog/Dialog.js";
|
|
70
70
|
import { default as default35 } from "./components/EmptyState/emptyStateClasses.js";
|
|
71
71
|
import { HvEmptyState } from "./components/EmptyState/EmptyState.js";
|
|
@@ -74,15 +74,15 @@ import { HvFooter } from "./components/Footer/Footer.js";
|
|
|
74
74
|
import { default as default37 } from "./components/Grid/gridClasses.js";
|
|
75
75
|
import { HvGrid } from "./components/Grid/Grid.js";
|
|
76
76
|
import { default as default38 } from "./components/Header/headerClasses.js";
|
|
77
|
-
import { HvHeader
|
|
77
|
+
import { HvHeader } from "./components/Header/Header.js";
|
|
78
78
|
import { default as default39 } from "./components/Header/Actions/actionsClasses.js";
|
|
79
|
-
import {
|
|
79
|
+
import { HvHeaderActions } from "./components/Header/Actions/Actions.js";
|
|
80
80
|
import { default as default40 } from "./components/Header/Brand/brandClasses.js";
|
|
81
|
-
import {
|
|
81
|
+
import { HvHeaderBrand } from "./components/Header/Brand/Brand.js";
|
|
82
82
|
import { default as default41 } from "./components/Header/Navigation/navigationClasses.js";
|
|
83
|
-
import { HvNavigation } from "./components/Header/Navigation/Navigation.js";
|
|
84
83
|
import { HvMenuBar } from "./components/Header/Navigation/MenuBar/MenuBar.js";
|
|
85
84
|
import { HvMenuItem } from "./components/Header/Navigation/MenuItem/MenuItem.js";
|
|
85
|
+
import { HvHeaderNavigation } from "./components/Header/Navigation/Navigation.js";
|
|
86
86
|
import { default as default42 } from "./components/Kpi/kpiClasses.js";
|
|
87
87
|
import { HvKpi } from "./components/Kpi/Kpi.js";
|
|
88
88
|
import { default as default43 } from "./components/Link/linkClasses.js";
|
|
@@ -116,7 +116,7 @@ import { HvBaseRadio, getSelectorIcons } from "./components/BaseRadio/BaseRadio.
|
|
|
116
116
|
import { default as default56 } from "./components/AppSwitcher/appSwitcherClasses.js";
|
|
117
117
|
import { HvAppSwitcher } from "./components/AppSwitcher/AppSwitcher.js";
|
|
118
118
|
import { default as default57 } from "./components/AppSwitcher/Action/actionClasses.js";
|
|
119
|
-
import {
|
|
119
|
+
import { HvAppSwitcherAction } from "./components/AppSwitcher/Action/Action.js";
|
|
120
120
|
import { default as default58 } from "./components/BaseSwitch/baseSwitchClasses.js";
|
|
121
121
|
import { HvBaseSwitch } from "./components/BaseSwitch/BaseSwitch.js";
|
|
122
122
|
import { default as default59 } from "./components/CheckBox/checkBoxClasses.js";
|
|
@@ -150,18 +150,17 @@ import { default as default73 } from "./components/ActionsGeneric/actionsGeneric
|
|
|
150
150
|
import { HvActionsGeneric } from "./components/ActionsGeneric/ActionsGeneric.js";
|
|
151
151
|
import { default as default74 } from "./components/BreadCrumb/breadCrumbClasses.js";
|
|
152
152
|
import { HvBreadCrumb } from "./components/BreadCrumb/BreadCrumb.js";
|
|
153
|
-
import { default as default75 } from "./components/
|
|
154
|
-
import { HvPathElement } from "./components/BreadCrumb/PathElement/PathElement.js";
|
|
155
|
-
import { default as default76 } from "./components/BreadCrumb/Page/pageClasses.js";
|
|
156
|
-
import { HvPage } from "./components/BreadCrumb/Page/Page.js";
|
|
157
|
-
import { default as default77 } from "./components/DotPagination/dotPaginationClasses.js";
|
|
153
|
+
import { default as default75 } from "./components/DotPagination/dotPaginationClasses.js";
|
|
158
154
|
import { HvDotPagination } from "./components/DotPagination/DotPagination.js";
|
|
159
|
-
import { default as
|
|
155
|
+
import { default as default76 } from "./components/Banner/bannerClasses.js";
|
|
160
156
|
import { HvBanner } from "./components/Banner/Banner.js";
|
|
161
|
-
import { default as
|
|
162
|
-
import {
|
|
163
|
-
import { default as
|
|
157
|
+
import { default as default77 } from "./components/Banner/BannerContent/bannerContentClasses.js";
|
|
158
|
+
import { HvBannerContent } from "./components/Banner/BannerContent/BannerContent.js";
|
|
159
|
+
import { default as default78 } from "./components/Snackbar/snackbarClasses.js";
|
|
164
160
|
import { HvSnackbar } from "./components/Snackbar/Snackbar.js";
|
|
161
|
+
import { default as default79, useHvSnackbar } from "./components/Snackbar/SnackbarProvider/SnackbarProvider.js";
|
|
162
|
+
import { default as default80 } from "./components/Snackbar/SnackbarContentWrapper/snackbarContentWrapperClasses.js";
|
|
163
|
+
import { default as default81 } from "./components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js";
|
|
165
164
|
import { default as default82 } from "./components/BulkActions/bulkActionsClasses.js";
|
|
166
165
|
import { HvBulkActions } from "./components/BulkActions/BulkActions.js";
|
|
167
166
|
import { default as default83 } from "./components/GlobalActions/globalActionsClasses.js";
|
|
@@ -208,22 +207,24 @@ import { default as default108 } from "./components/Controls/RightControl/rightC
|
|
|
208
207
|
import { HvRightControl } from "./components/Controls/RightControl/RightControl.js";
|
|
209
208
|
import { default as default109 } from "./components/Calendar/calendarClasses.js";
|
|
210
209
|
import { HvCalendar } from "./components/Calendar/Calendar.js";
|
|
211
|
-
import { default as default110 } from "./components/
|
|
210
|
+
import { default as default110 } from "./components/Calendar/CalendarHeader/calendarHeaderClasses.js";
|
|
211
|
+
import { HvCalendarHeader } from "./components/Calendar/CalendarHeader/CalendarHeader.js";
|
|
212
|
+
import { default as default111 } from "./components/VerticalNavigation/verticalNavigationClasses.js";
|
|
212
213
|
import { HvVerticalNavigation, VerticalNavigationContext } from "./components/VerticalNavigation/VerticalNavigation.js";
|
|
213
|
-
import { default as
|
|
214
|
+
import { default as default112 } from "./components/VerticalNavigation/Header/headerClasses.js";
|
|
214
215
|
import { HvVerticalNavigationHeader } from "./components/VerticalNavigation/Header/Header.js";
|
|
215
|
-
import { default as
|
|
216
|
-
import { default as
|
|
216
|
+
import { default as default113 } from "./components/VerticalNavigation/Actions/actionClasses.js";
|
|
217
|
+
import { default as default114 } from "./components/VerticalNavigation/Actions/actionsClasses.js";
|
|
217
218
|
import { HvVerticalNavigationActions } from "./components/VerticalNavigation/Actions/Actions.js";
|
|
218
219
|
import { HvVerticalNavigationAction } from "./components/VerticalNavigation/Actions/Action.js";
|
|
219
|
-
import { default as
|
|
220
|
+
import { default as default115 } from "./components/VerticalNavigation/Navigation/navigationClasses.js";
|
|
220
221
|
import { HvVerticalNavigationTree } from "./components/VerticalNavigation/Navigation/Navigation.js";
|
|
221
|
-
import { default as
|
|
222
|
-
import { default as
|
|
222
|
+
import { default as default116 } from "./components/VerticalNavigation/TreeView/treeViewClasses.js";
|
|
223
|
+
import { default as default117 } from "./components/VerticalNavigation/TreeView/treeViewItemClasses.js";
|
|
223
224
|
import { HvVerticalNavigationTreeView } from "./components/VerticalNavigation/TreeView/TreeView.js";
|
|
224
225
|
import { HvVerticalNavigationTreeViewItem } from "./components/VerticalNavigation/TreeView/TreeViewItem.js";
|
|
225
|
-
import { default as
|
|
226
|
-
import { default as
|
|
226
|
+
import { default as default118 } from "./hooks/useUniqueId.js";
|
|
227
|
+
import { default as default119 } from "./hooks/useIsMounted.js";
|
|
227
228
|
import { useClickOutside } from "./hooks/useClickOutside.js";
|
|
228
229
|
import { useControlled } from "./hooks/useControlled.js";
|
|
229
230
|
import { useImageLoaded } from "./hooks/useImageLoaded.js";
|
|
@@ -235,11 +236,11 @@ import { useEnhancedEffect } from "./hooks/useEnhancedEffect.js";
|
|
|
235
236
|
import { HvProvider } from "./providers/Provider.js";
|
|
236
237
|
import { HvThemeContext } from "@hitachivantara/uikit-react-shared";
|
|
237
238
|
import { HvThemeProvider } from "./providers/ThemeProvider.js";
|
|
238
|
-
import { default as
|
|
239
|
-
import { default as
|
|
240
|
-
import { default as
|
|
241
|
-
import { default as
|
|
242
|
-
import { default as
|
|
239
|
+
import { default as default120 } from "./utils/iconVariant.js";
|
|
240
|
+
import { default as default121 } from "./utils/hexToRgbA.js";
|
|
241
|
+
import { default as default122 } from "./utils/browser.js";
|
|
242
|
+
import { default as default123 } from "./utils/multiSelectionEventHandler.js";
|
|
243
|
+
import { default as default124 } from "./utils/getComponentName.js";
|
|
243
244
|
import { outlineStyles } from "./utils/focusUtils.js";
|
|
244
245
|
import { keyboardCodes } from "./utils/keyboardUtils/keyboardCodes.js";
|
|
245
246
|
import { getKeyCodeFromEvent, isKeycode, isKeypress } from "./utils/keyboardUtils/keyCheck.js";
|
|
@@ -249,8 +250,8 @@ import { setId, setUid } from "./utils/setId.js";
|
|
|
249
250
|
import { getClasses } from "./utils/classes.js";
|
|
250
251
|
import { getFirstAndLastFocus, getFocusableList, getPrevNextFocus } from "./utils/focusableElementFinder.js";
|
|
251
252
|
import { wrapperTooltip } from "./utils/wrapperTooltip.js";
|
|
252
|
-
import { default as
|
|
253
|
-
import { default as
|
|
253
|
+
import { default as default125 } from "./hocs/withTooltip.js";
|
|
254
|
+
import { default as default126 } from "./hocs/withId.js";
|
|
254
255
|
export {
|
|
255
256
|
CellWithCheckBox,
|
|
256
257
|
CellWithExpandButton,
|
|
@@ -259,10 +260,11 @@ export {
|
|
|
259
260
|
HvActionsGeneric,
|
|
260
261
|
HvAdornment,
|
|
261
262
|
HvAppSwitcher,
|
|
262
|
-
|
|
263
|
+
HvAppSwitcherAction,
|
|
263
264
|
HvAvatar,
|
|
264
265
|
HvBadge,
|
|
265
266
|
HvBanner,
|
|
267
|
+
HvBannerContent,
|
|
266
268
|
HvBaseCheckBox,
|
|
267
269
|
HvBaseDropdown,
|
|
268
270
|
HvBaseInput,
|
|
@@ -273,10 +275,11 @@ export {
|
|
|
273
275
|
HvBulkActions,
|
|
274
276
|
HvButton,
|
|
275
277
|
HvCalendar,
|
|
278
|
+
HvCalendarHeader,
|
|
276
279
|
HvCard,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
+
HvCardContent,
|
|
281
|
+
HvCardHeader,
|
|
282
|
+
HvCardMedia,
|
|
280
283
|
HvCharCounter,
|
|
281
284
|
HvCheckBox,
|
|
282
285
|
HvCheckBoxGroup,
|
|
@@ -284,9 +287,9 @@ export {
|
|
|
284
287
|
HvControls,
|
|
285
288
|
default101 as HvDateColumnCell,
|
|
286
289
|
HvDialog,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
+
HvDialogActions,
|
|
291
|
+
HvDialogContent,
|
|
292
|
+
HvDialogTitle,
|
|
290
293
|
HvDotPagination,
|
|
291
294
|
default71 as HvDropDownMenu,
|
|
292
295
|
HvDropdown,
|
|
@@ -309,12 +312,12 @@ export {
|
|
|
309
312
|
HvFormElementValueContextProvider,
|
|
310
313
|
HvGlobalActions,
|
|
311
314
|
HvGrid,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
+
HvHeader,
|
|
316
|
+
HvHeaderActions,
|
|
317
|
+
HvHeaderBrand,
|
|
315
318
|
HvMenuBar as HvHeaderMenuBar,
|
|
316
319
|
HvMenuItem as HvHeaderMenuItem,
|
|
317
|
-
|
|
320
|
+
HvHeaderNavigation,
|
|
318
321
|
HvInfoMessage,
|
|
319
322
|
HvInput,
|
|
320
323
|
HvKpi,
|
|
@@ -328,10 +331,8 @@ export {
|
|
|
328
331
|
HvLogin,
|
|
329
332
|
HvMultiButton,
|
|
330
333
|
HvOverflowTooltip,
|
|
331
|
-
HvPage,
|
|
332
334
|
HvPagination,
|
|
333
335
|
HvPanel,
|
|
334
|
-
HvPathElement,
|
|
335
336
|
HvProgressBar,
|
|
336
337
|
default103 as HvProgressColumnCell,
|
|
337
338
|
HvProvider,
|
|
@@ -341,8 +342,8 @@ export {
|
|
|
341
342
|
HvSelectionList,
|
|
342
343
|
HvSimpleGrid,
|
|
343
344
|
HvSnackbar,
|
|
344
|
-
|
|
345
|
-
|
|
345
|
+
default81 as HvSnackbarContent,
|
|
346
|
+
default79 as HvSnackbarProvider,
|
|
346
347
|
HvStack,
|
|
347
348
|
HvSuggestions,
|
|
348
349
|
HvSwitch,
|
|
@@ -377,15 +378,16 @@ export {
|
|
|
377
378
|
VerticalNavigationContext,
|
|
378
379
|
default22 as accordionClasses,
|
|
379
380
|
default21 as actionBarClasses,
|
|
380
|
-
|
|
381
|
-
|
|
381
|
+
default113 as actionClasses,
|
|
382
|
+
default114 as actionsClasses,
|
|
382
383
|
default73 as actionsGenericClasses,
|
|
383
384
|
default12 as adornmentClasses,
|
|
384
385
|
default57 as appSwitcherActionClasses,
|
|
385
386
|
default56 as appSwitcherClasses,
|
|
386
387
|
default23 as avatarClasses,
|
|
387
388
|
default24 as badgeClasses,
|
|
388
|
-
|
|
389
|
+
default76 as bannerClasses,
|
|
390
|
+
default77 as bannerContentClasses,
|
|
389
391
|
default54 as baseCheckBoxClasses,
|
|
390
392
|
default20 as baseDropdownClasses,
|
|
391
393
|
default19 as baseInputClasses,
|
|
@@ -397,6 +399,7 @@ export {
|
|
|
397
399
|
default82 as bulkActionsClasses,
|
|
398
400
|
default25 as buttonClasses,
|
|
399
401
|
default109 as calendarClasses,
|
|
402
|
+
default110 as calendarHeaderClasses,
|
|
400
403
|
default26 as cardClasses,
|
|
401
404
|
default28 as cardContentClasses,
|
|
402
405
|
default27 as cardHeaderClasses,
|
|
@@ -417,7 +420,7 @@ export {
|
|
|
417
420
|
default31 as dialogClasses,
|
|
418
421
|
default33 as dialogContentClasses,
|
|
419
422
|
default32 as dialogTitleClasses,
|
|
420
|
-
|
|
423
|
+
default75 as dotPaginationClasses,
|
|
421
424
|
default70 as dropDownMenuClasses,
|
|
422
425
|
default84 as dropdownClasses,
|
|
423
426
|
ds3,
|
|
@@ -430,7 +433,7 @@ export {
|
|
|
430
433
|
default36 as footerClasses,
|
|
431
434
|
default13 as formElementClasses,
|
|
432
435
|
getClasses,
|
|
433
|
-
|
|
436
|
+
default124 as getComponentName,
|
|
434
437
|
getFirstAndLastFocus,
|
|
435
438
|
getFocusableList,
|
|
436
439
|
getHeaderFooterPropsHook,
|
|
@@ -447,7 +450,7 @@ export {
|
|
|
447
450
|
default40 as headerBrandClasses,
|
|
448
451
|
default38 as headerClasses,
|
|
449
452
|
default41 as headerNavigationClasses,
|
|
450
|
-
|
|
453
|
+
default121 as hexToRgbA,
|
|
451
454
|
hvDateColumn,
|
|
452
455
|
hvDropdownColumn,
|
|
453
456
|
hvExpandColumn,
|
|
@@ -459,11 +462,11 @@ export {
|
|
|
459
462
|
hvSwitchColumn,
|
|
460
463
|
hvTagColumn,
|
|
461
464
|
hvTextColumn,
|
|
462
|
-
|
|
465
|
+
default120 as iconVariant,
|
|
463
466
|
increaseSize,
|
|
464
467
|
default15 as infoMessageClasses,
|
|
465
468
|
default60 as inputClasses,
|
|
466
|
-
|
|
469
|
+
default122 as isBrowser,
|
|
467
470
|
isInvalid,
|
|
468
471
|
isKeycode,
|
|
469
472
|
isKeypress,
|
|
@@ -479,14 +482,12 @@ export {
|
|
|
479
482
|
default44 as loadingClasses,
|
|
480
483
|
default105 as loginClasses,
|
|
481
484
|
default45 as multiButtonClasses,
|
|
482
|
-
|
|
485
|
+
default123 as multiSelectionEventHandler,
|
|
483
486
|
normalizeProgressBar,
|
|
484
487
|
outlineStyles,
|
|
485
488
|
default53 as overflowTooltipClasses,
|
|
486
|
-
default76 as pageClasses,
|
|
487
489
|
default72 as paginationClasses,
|
|
488
490
|
default46 as panelClasses,
|
|
489
|
-
default75 as pathElementClasses,
|
|
490
491
|
prepareRow,
|
|
491
492
|
processThemes,
|
|
492
493
|
default47 as progressBarClasses,
|
|
@@ -498,7 +499,8 @@ export {
|
|
|
498
499
|
setElementAttrs,
|
|
499
500
|
setId,
|
|
500
501
|
setUid,
|
|
501
|
-
|
|
502
|
+
default78 as snackbarClasses,
|
|
503
|
+
default80 as snackbarContentClasses,
|
|
502
504
|
default48 as stackClasses,
|
|
503
505
|
default18 as suggestionsClasses,
|
|
504
506
|
default61 as switchClasses,
|
|
@@ -517,8 +519,8 @@ export {
|
|
|
517
519
|
theme,
|
|
518
520
|
themes,
|
|
519
521
|
default52 as tooltipClasses,
|
|
520
|
-
|
|
521
|
-
|
|
522
|
+
default116 as treeViewClasses,
|
|
523
|
+
default117 as treeViewItemClasses,
|
|
522
524
|
default7 as typographyClasses,
|
|
523
525
|
useClickOutside,
|
|
524
526
|
default5 as useComputation,
|
|
@@ -541,18 +543,18 @@ export {
|
|
|
541
543
|
default92 as useHvTableStyles,
|
|
542
544
|
useImageLoaded,
|
|
543
545
|
useInstance,
|
|
544
|
-
|
|
546
|
+
default119 as useIsMounted,
|
|
545
547
|
useLabels,
|
|
546
548
|
useSelectionPath,
|
|
547
549
|
useTheme,
|
|
548
|
-
|
|
550
|
+
default118 as useUniqueId,
|
|
549
551
|
useWidth,
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
552
|
+
default111 as verticalNavigationClasses,
|
|
553
|
+
default112 as verticalNavigationHeaderClasses,
|
|
554
|
+
default115 as verticalNavigationTreeClasses,
|
|
553
555
|
default16 as warningTextClasses,
|
|
554
|
-
|
|
555
|
-
|
|
556
|
+
default126 as withId,
|
|
557
|
+
default125 as withTooltip,
|
|
556
558
|
wrapperTooltip
|
|
557
559
|
};
|
|
558
560
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|