@hitachivantara/uikit-react-core 5.18.3 → 5.18.5

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 (34) hide show
  1. package/dist/cjs/components/BreadCrumb/BreadCrumb.cjs +1 -3
  2. package/dist/cjs/components/BreadCrumb/BreadCrumb.cjs.map +1 -1
  3. package/dist/cjs/components/BreadCrumb/Page/Page.cjs +1 -4
  4. package/dist/cjs/components/BreadCrumb/Page/Page.cjs.map +1 -1
  5. package/dist/cjs/components/Drawer/Drawer.cjs +81 -0
  6. package/dist/cjs/components/Drawer/Drawer.cjs.map +1 -0
  7. package/dist/cjs/components/Drawer/Drawer.styles.cjs +27 -0
  8. package/dist/cjs/components/Drawer/Drawer.styles.cjs.map +1 -0
  9. package/dist/cjs/components/Snackbar/Snackbar.cjs.map +1 -1
  10. package/dist/cjs/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.cjs +12 -8
  11. package/dist/cjs/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.cjs.map +1 -1
  12. package/dist/cjs/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.styles.cjs +10 -1
  13. package/dist/cjs/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.styles.cjs.map +1 -1
  14. package/dist/cjs/components/Table/TableRow/TableRow.cjs +1 -1
  15. package/dist/cjs/index.cjs +4 -0
  16. package/dist/cjs/index.cjs.map +1 -1
  17. package/dist/esm/components/BreadCrumb/BreadCrumb.js +1 -2
  18. package/dist/esm/components/BreadCrumb/BreadCrumb.js.map +1 -1
  19. package/dist/esm/components/BreadCrumb/Page/Page.js +1 -2
  20. package/dist/esm/components/BreadCrumb/Page/Page.js.map +1 -1
  21. package/dist/esm/components/Drawer/Drawer.js +82 -0
  22. package/dist/esm/components/Drawer/Drawer.js.map +1 -0
  23. package/dist/esm/components/Drawer/Drawer.styles.js +27 -0
  24. package/dist/esm/components/Drawer/Drawer.styles.js.map +1 -0
  25. package/dist/esm/components/Snackbar/Snackbar.js.map +1 -1
  26. package/dist/esm/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js +12 -8
  27. package/dist/esm/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js.map +1 -1
  28. package/dist/esm/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.styles.js +10 -1
  29. package/dist/esm/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.styles.js.map +1 -1
  30. package/dist/esm/components/Table/TableRow/TableRow.js +1 -1
  31. package/dist/esm/index.js +50 -46
  32. package/dist/esm/index.js.map +1 -1
  33. package/dist/types/index.d.ts +161 -93
  34. package/package.json +5 -5
@@ -0,0 +1,82 @@
1
+ import { Drawer } from "@mui/material";
2
+ import { Close } from "@hitachivantara/uikit-react-icons";
3
+ import { theme } from "@hitachivantara/uikit-styles";
4
+ import { useState, useEffect } from "react";
5
+ import { useClasses } from "./Drawer.styles.js";
6
+ import { staticClasses } from "./Drawer.styles.js";
7
+ import { jsxs, jsx } from "@emotion/react/jsx-runtime";
8
+ import { getVarValue } from "../../utils/theme.js";
9
+ import withTooltip from "../../hocs/withTooltip.js";
10
+ import checkValidHexColorValue from "../../utils/checkValidHexColorValue.js";
11
+ import fade from "../../utils/hexToRgbA.js";
12
+ import { useTheme } from "../../hooks/useTheme.js";
13
+ import { HvButton } from "../Button/Button.js";
14
+ import { setId } from "../../utils/setId.js";
15
+ const getBackgroundColor = (color) => {
16
+ return checkValidHexColorValue(color) ? fade(color, 0.8) : color;
17
+ };
18
+ const HvDrawer = ({
19
+ className,
20
+ classes: classesProp,
21
+ id,
22
+ children,
23
+ open,
24
+ onClose,
25
+ anchor = "right",
26
+ buttonTitle = "Close",
27
+ ...others
28
+ }) => {
29
+ var _a;
30
+ const {
31
+ classes,
32
+ css,
33
+ cx
34
+ } = useClasses(classesProp);
35
+ const {
36
+ activeTheme,
37
+ selectedMode
38
+ } = useTheme();
39
+ const [backgroundColorValue, setBackgroundColorValue] = useState(getVarValue(theme.drawer.backDropBackgroundColor));
40
+ const closeButtonDisplay = () => /* @__PURE__ */ jsx(Close, {
41
+ role: "presentation"
42
+ });
43
+ const CloseButtonTooltipWrapper = buttonTitle ? withTooltip(closeButtonDisplay, buttonTitle, "top") : closeButtonDisplay;
44
+ const [backgroundColor, setBackgroundColor] = useState(getBackgroundColor(backgroundColorValue));
45
+ useEffect(() => {
46
+ setBackgroundColorValue(getVarValue(theme.drawer.backDropBackgroundColor));
47
+ setBackgroundColor(getBackgroundColor(backgroundColorValue));
48
+ }, [(_a = activeTheme == null ? void 0 : activeTheme.colors) == null ? void 0 : _a.modes[selectedMode], backgroundColorValue, setBackgroundColor]);
49
+ return /* @__PURE__ */ jsxs(Drawer, {
50
+ className: cx(classes.root, className),
51
+ id,
52
+ anchor,
53
+ open,
54
+ PaperProps: {
55
+ classes: {
56
+ root: classes.paper
57
+ }
58
+ },
59
+ BackdropProps: {
60
+ classes: {
61
+ root: cx(css({
62
+ backgroundColor
63
+ }), classes.background)
64
+ }
65
+ },
66
+ onClose,
67
+ ...others,
68
+ children: [/* @__PURE__ */ jsx(HvButton, {
69
+ id: setId(id, "close"),
70
+ className: classes.closeButton,
71
+ variant: "primaryGhost",
72
+ onClick: onClose,
73
+ "aria-label": buttonTitle,
74
+ children: /* @__PURE__ */ jsx(CloseButtonTooltipWrapper, {})
75
+ }), children]
76
+ });
77
+ };
78
+ export {
79
+ HvDrawer,
80
+ staticClasses as drawerClasses
81
+ };
82
+ //# sourceMappingURL=Drawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.js","sources":["../../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import {\n Drawer as MuiDrawer,\n DrawerProps as MuiDrawerProps,\n} from \"@mui/material\";\nimport { Close } from \"@hitachivantara/uikit-react-icons\";\nimport { HvBaseProps } from \"@core/types/generic\";\nimport { withTooltip } from \"@core/hocs\";\nimport {\n getVarValue,\n hexToRgbA,\n setId,\n checkValidHexColorValue,\n ExtractNames,\n} from \"@core/utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\nimport { HvButton } from \"@core/components\";\nimport { useEffect, useState } from \"react\";\nimport { useTheme } from \"@core/hooks\";\nimport { staticClasses, useClasses } from \"./Drawer.styles\";\n\nexport { staticClasses as drawerClasses };\n\nexport type HvDrawerClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvDrawerProps\n extends MuiDrawerProps,\n Omit<MuiDrawerProps, \"classes\">,\n HvBaseProps<HTMLDivElement> {\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * Id to be applied to the root node.\n */\n id?: string;\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes?: HvDrawerClasses;\n /**\n * Components of the Drawer.\n */\n children?: React.ReactNode;\n /**\n * Current state of the Drawer.\n */\n open?: boolean;\n /**\n * Function executed on close.\n * Extended from Modal from material-ui\n *\n */\n onClose?: (\n event: React.SyntheticEvent,\n reason?: \"escapeKeyDown\" | \"backdropClick\"\n ) => void;\n /**\n * The side the drawer opens from.\n */\n anchor?: \"left\" | \"top\" | \"right\" | \"bottom\";\n /**\n * Title for the button close.\n */\n buttonTitle?: string;\n}\n\nconst getBackgroundColor = (color: string) => {\n return checkValidHexColorValue(color) ? hexToRgbA(color, 0.8) : color;\n};\n\n/**\n * The Drawer component provides a foundation to create a sliding pane.\n * It only provides the pane with a close button, the rest of the\n * content can be customized.\n */\nexport const HvDrawer = ({\n className,\n classes: classesProp,\n id,\n children,\n open,\n onClose,\n anchor = \"right\",\n buttonTitle = \"Close\",\n ...others\n}: HvDrawerProps) => {\n const { classes, css, cx } = useClasses(classesProp);\n const { activeTheme, selectedMode } = useTheme();\n\n const [backgroundColorValue, setBackgroundColorValue] = useState<string>(\n getVarValue(theme.drawer.backDropBackgroundColor)\n );\n\n const closeButtonDisplay = () => <Close role=\"presentation\" />;\n\n const CloseButtonTooltipWrapper = buttonTitle\n ? withTooltip(closeButtonDisplay, buttonTitle, \"top\")\n : closeButtonDisplay;\n\n const [backgroundColor, setBackgroundColor] = useState(\n getBackgroundColor(backgroundColorValue)\n );\n\n useEffect(() => {\n setBackgroundColorValue(getVarValue(theme.drawer.backDropBackgroundColor));\n\n setBackgroundColor(getBackgroundColor(backgroundColorValue));\n }, [\n activeTheme?.colors?.modes[selectedMode],\n backgroundColorValue,\n setBackgroundColor,\n ]);\n\n return (\n <MuiDrawer\n className={cx(classes.root, className)}\n id={id}\n anchor={anchor}\n open={open}\n PaperProps={{\n classes: {\n root: classes.paper,\n },\n }}\n BackdropProps={{\n classes: {\n root: cx(css({ backgroundColor }), classes.background),\n },\n }}\n onClose={onClose}\n {...others}\n >\n <HvButton\n id={setId(id, \"close\")}\n className={classes.closeButton}\n variant=\"primaryGhost\"\n onClick={onClose}\n aria-label={buttonTitle}\n >\n <CloseButtonTooltipWrapper />\n </HvButton>\n {children}\n </MuiDrawer>\n );\n};\n"],"names":["getBackgroundColor","color","checkValidHexColorValue","hexToRgbA","HvDrawer","className","classes","classesProp","id","children","open","onClose","anchor","buttonTitle","others","css","cx","useClasses","activeTheme","selectedMode","useTheme","backgroundColorValue","setBackgroundColorValue","useState","getVarValue","theme","drawer","backDropBackgroundColor","closeButtonDisplay","_jsx","Close","role","CloseButtonTooltipWrapper","withTooltip","backgroundColor","setBackgroundColor","useEffect","colors","modes","MuiDrawer","root","PaperProps","paper","BackdropProps","background","HvButton","setId","closeButton","variant","onClick"],"mappings":";;;;;;;;;;;;;;AAmEA,MAAMA,qBAAqBA,CAACC,UAAkB;AAC5C,SAAOC,wBAAwBD,KAAK,IAAIE,KAAUF,OAAO,GAAG,IAAIA;AAClE;AAOO,MAAMG,WAAWA,CAAC;AAAA,EACvBC;AAAAA,EACAC,SAASC;AAAAA,EACTC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC,SAAS;AAAA,EACTC,cAAc;AAAA,EACd,GAAGC;AACU,MAAM;;AACb,QAAA;AAAA,IAAER;AAAAA,IAASS;AAAAA,IAAKC;AAAAA,EAAAA,IAAOC,WAAWV,WAAW;AAC7C,QAAA;AAAA,IAAEW;AAAAA,IAAaC;AAAAA,MAAiBC,SAAS;AAEzC,QAAA,CAACC,sBAAsBC,uBAAuB,IAAIC,SACtDC,YAAYC,MAAMC,OAAOC,uBAAuB,CAClD;AAEMC,QAAAA,qBAAqBA,MAAMC,oBAACC,OAAK;AAAA,IAACC,MAAK;AAAA,EAAA,CAAgB;AAE7D,QAAMC,4BAA4BnB,cAC9BoB,YAAYL,oBAAoBf,aAAa,KAAK,IAClDe;AAEJ,QAAM,CAACM,iBAAiBC,kBAAkB,IAAIZ,SAC5CvB,mBAAmBqB,oBAAoB,CACzC;AAEAe,YAAU,MAAM;AACdd,4BAAwBE,YAAYC,MAAMC,OAAOC,uBAAuB,CAAC;AAEtD3B,uBAAAA,mBAAmBqB,oBAAoB,CAAC;AAAA,EAAA,GAC1D,EACDH,gDAAamB,WAAbnB,mBAAqBoB,MAAMnB,eAC3BE,sBACAc,kBAAkB,CACnB;AAED,8BACGI,QAAS;AAAA,IACRlC,WAAWW,GAAGV,QAAQkC,MAAMnC,SAAS;AAAA,IACrCG;AAAAA,IACAI;AAAAA,IACAF;AAAAA,IACA+B,YAAY;AAAA,MACVnC,SAAS;AAAA,QACPkC,MAAMlC,QAAQoC;AAAAA,MAChB;AAAA,IACF;AAAA,IACAC,eAAe;AAAA,MACbrC,SAAS;AAAA,QACPkC,MAAMxB,GAAGD,IAAI;AAAA,UAAEmB;AAAAA,QAAAA,CAAiB,GAAG5B,QAAQsC,UAAU;AAAA,MACvD;AAAA,IACF;AAAA,IACAjC;AAAAA,IAAiB,GACbG;AAAAA,IAAML,UAAA,CAEVoB,oBAACgB,UAAQ;AAAA,MACPrC,IAAIsC,MAAMtC,IAAI,OAAO;AAAA,MACrBH,WAAWC,QAAQyC;AAAAA,MACnBC,SAAQ;AAAA,MACRC,SAAStC;AAAAA,MACT,cAAYE;AAAAA,MAAYJ,UAExBoB,oBAACG,2BAA2B,EAAA;AAAA,IACpB,CAAA,GACTvB,QAAQ;AAAA,EAAA,CACA;AAEf;"}
@@ -0,0 +1,27 @@
1
+ import { theme } from "@hitachivantara/uikit-styles";
2
+ import { createClasses } from "../../utils/classes.js";
3
+ const {
4
+ staticClasses,
5
+ useClasses
6
+ } = createClasses("HvDrawer", {
7
+ root: {},
8
+ paper: {
9
+ backgroundColor: theme.colors.atmo1,
10
+ padding: 0,
11
+ overflow: "auto",
12
+ boxShadow: theme.colors.shadow
13
+ },
14
+ background: {},
15
+ closeButton: {
16
+ padding: 0,
17
+ minWidth: "inherit",
18
+ position: "absolute",
19
+ top: theme.spacing("sm"),
20
+ right: theme.spacing("sm")
21
+ }
22
+ });
23
+ export {
24
+ staticClasses,
25
+ useClasses
26
+ };
27
+ //# sourceMappingURL=Drawer.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.styles.js","sources":["../../../../src/components/Drawer/Drawer.styles.tsx"],"sourcesContent":["import { createClasses } from \"@core/utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvDrawer\", {\n root: {},\n paper: {\n backgroundColor: theme.colors.atmo1,\n padding: 0,\n overflow: \"auto\",\n boxShadow: theme.colors.shadow,\n },\n background: {},\n closeButton: {\n padding: 0,\n minWidth: \"inherit\",\n position: \"absolute\",\n top: theme.spacing(\"sm\"),\n right: theme.spacing(\"sm\"),\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","root","paper","backgroundColor","theme","colors","atmo1","padding","overflow","boxShadow","shadow","background","closeButton","minWidth","position","top","spacing","right"],"mappings":";;AAGa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,YAAY;AAAA,EACrEC,MAAM,CAAC;AAAA,EACPC,OAAO;AAAA,IACLC,iBAAiBC,MAAMC,OAAOC;AAAAA,IAC9BC,SAAS;AAAA,IACTC,UAAU;AAAA,IACVC,WAAWL,MAAMC,OAAOK;AAAAA,EAC1B;AAAA,EACAC,YAAY,CAAC;AAAA,EACbC,aAAa;AAAA,IACXL,SAAS;AAAA,IACTM,UAAU;AAAA,IACVC,UAAU;AAAA,IACVC,KAAKX,MAAMY,QAAQ,IAAI;AAAA,IACvBC,OAAOb,MAAMY,QAAQ,IAAI;AAAA,EAC3B;AACF,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Snackbar.js","sources":["../../../../src/components/Snackbar/Snackbar.tsx"],"sourcesContent":["import Slide from \"@mui/material/Slide\";\nimport {\n SnackbarCloseReason,\n SnackbarOrigin,\n SnackbarProps as MuiSnackbarProps,\n} from \"@mui/material/Snackbar\";\nimport { Snackbar as MuiSnackbar } from \"@mui/material\";\nimport { HvBaseProps } from \"@core/types\";\nimport capitalize from \"lodash/capitalize\";\nimport { SyntheticEvent } from \"react\";\nimport { ExtractNames, setId } from \"@core/utils\";\nimport { HvActionGeneric } from \"@core/components\";\nimport {\n HvSnackbarContentProps,\n HvSnackbarContent,\n} from \"./SnackbarContentWrapper\";\nimport { staticClasses, useClasses } from \"./Snackbar.styles\";\n\nexport { staticClasses as snackbarClasses };\n\nexport type HvSnackbarClasses = ExtractNames<typeof useClasses>;\n\nexport type HvSnackbarVariant = \"default\" | \"success\" | \"warning\" | \"error\";\n\nexport interface HvSnackbarProps\n extends Omit<MuiSnackbarProps, \"action\" | \"classes\">,\n Omit<HvBaseProps, \"children\"> {\n /** If true, Snackbar is open. */\n open?: boolean;\n /** Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway. */\n onClose?:\n | ((\n event: Event | SyntheticEvent<any, Event>,\n reason: SnackbarCloseReason\n ) => void)\n | undefined;\n /** The message to display. */\n label?: React.ReactNode;\n /** The anchor of the Snackbar. vertical: \"top\", \"bottom\" | horizontal: \"left\",\"center\",\"right. It defines where the snackbar will end his animation */\n anchorOrigin?: SnackbarOrigin;\n /** The number of milliseconds to wait before automatically calling the onClose function. onClose should then set the state of the open prop to hide the Snackbar */\n autoHideDuration?: number;\n /** Variant of the snackbar. */\n variant?: HvSnackbarVariant;\n /** Custom icon to replace the variant default. */\n customIcon?: React.ReactNode;\n /** Controls if the associated icon to the variant should be shown. */\n showIcon?: boolean;\n /** Action to display. */\n action?: React.ReactNode | HvActionGeneric;\n /** The callback function ran when an action is triggered, receiving `action` as param */\n actionCallback?: (\n event: React.SyntheticEvent,\n id: string,\n action: HvActionGeneric\n ) => void;\n /** Duration of transition in milliseconds. */\n transitionDuration?: number;\n /** Direction of slide transition. */\n transitionDirection?: \"up\" | \"down\" | \"left\" | \"right\";\n /** Custom offset from top/bottom of the page, in px. */\n offset?: number;\n /** Others applied to the content of the snackbar. */\n snackbarContentProps?: HvSnackbarContentProps;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: Partial<HvSnackbarClasses>;\n}\n\nconst transLeft = (props) => <Slide {...props} direction=\"left\" />;\nconst transRight = (props) => <Slide {...props} direction=\"right\" />;\nconst transUp = (props) => <Slide {...props} direction=\"up\" />;\nconst transDown = (props) => <Slide {...props} direction=\"down\" />;\n\nconst snackBarDirComponent = (direction) => {\n switch (direction) {\n case \"right\":\n return transRight;\n case \"up\":\n return transUp;\n case \"down\":\n return transDown;\n case \"left\":\n default:\n return transLeft;\n }\n};\n\n/**\n * A Snackbar provides brief messages about app processes.\n * It is dismissed automatically after a given interval.\n *\n * Snackbar can be built with two different components.\n * One is the HvSnackbar, which wraps all the positioning, transition, auto hide, etc.\n * The other is the HvSnackbarContent, which allows a finer control and customization of the content of the Snackbar.\n */\nexport const HvSnackbar = ({\n classes: classesProp = {},\n className,\n id,\n open = false,\n onClose,\n label = \"\",\n anchorOrigin = { vertical: \"top\", horizontal: \"right\" },\n autoHideDuration = 5000,\n variant = \"default\",\n showIcon = false,\n customIcon = null,\n action = null,\n actionCallback,\n transitionDuration = 300,\n transitionDirection = \"left\",\n offset = 60,\n snackbarContentProps,\n ...others\n}: HvSnackbarProps) => {\n const { classes } = useClasses(classesProp);\n\n const anchorOriginOffset = {\n anchorOriginTop: {\n top: `${offset}px`,\n },\n anchorOriginBottom: {\n bottom: `${offset}px`,\n },\n };\n\n return (\n <MuiSnackbar\n style={\n anchorOriginOffset[`anchorOrigin${capitalize(anchorOrigin.vertical)}`]\n }\n classes={classes}\n className={className}\n id={id}\n anchorOrigin={anchorOrigin}\n open={open}\n onClose={onClose}\n autoHideDuration={autoHideDuration}\n transitionDuration={transitionDuration}\n TransitionComponent={snackBarDirComponent(transitionDirection)}\n {...others}\n >\n <HvSnackbarContent\n id={setId(id, \"content\")}\n label={label}\n variant={variant}\n customIcon={customIcon}\n showIcon={showIcon}\n action={action}\n actionCallback={actionCallback}\n {...snackbarContentProps}\n />\n </MuiSnackbar>\n );\n};\n"],"names":["transLeft","props","_jsx","Slide","direction","transRight","transUp","transDown","snackBarDirComponent","HvSnackbar","classes","classesProp","className","id","open","onClose","label","anchorOrigin","vertical","horizontal","autoHideDuration","variant","showIcon","customIcon","action","actionCallback","transitionDuration","transitionDirection","offset","snackbarContentProps","others","useClasses","anchorOriginOffset","anchorOriginTop","top","anchorOriginBottom","bottom","MuiSnackbar","style","capitalize","TransitionComponent","children","HvSnackbarContent","setId"],"mappings":";;;;;;;;AAoEA,MAAMA,YAAaC,CAAUC,UAAAA,oBAACC,OAAK;AAAA,EAAA,GAAKF;AAAAA,EAAOG,WAAU;AAAM,CAAE;AACjE,MAAMC,aAAcJ,CAAUC,UAAAA,oBAACC,OAAK;AAAA,EAAA,GAAKF;AAAAA,EAAOG,WAAU;AAAO,CAAE;AACnE,MAAME,UAAWL,CAAUC,UAAAA,oBAACC,OAAK;AAAA,EAAA,GAAKF;AAAAA,EAAOG,WAAU;AAAI,CAAE;AAC7D,MAAMG,YAAaN,CAAUC,UAAAA,oBAACC,OAAK;AAAA,EAAA,GAAKF;AAAAA,EAAOG,WAAU;AAAM,CAAE;AAEjE,MAAMI,uBAAwBJ,CAAc,cAAA;AAC1C,UAAQA,WAAS;AAAA,IACf,KAAK;AACIC,aAAAA;AAAAA,IACT,KAAK;AACIC,aAAAA;AAAAA,IACT,KAAK;AACIC,aAAAA;AAAAA,IACT,KAAK;AAAA,IACL;AACSP,aAAAA;AAAAA,EACX;AACF;AAUO,MAAMS,aAAaA,CAAC;AAAA,EACzBC,SAASC,cAAc,CAAC;AAAA,EACxBC;AAAAA,EACAC;AAAAA,EACAC,OAAO;AAAA,EACPC;AAAAA,EACAC,QAAQ;AAAA,EACRC,eAAe;AAAA,IAAEC,UAAU;AAAA,IAAOC,YAAY;AAAA,EAAQ;AAAA,EACtDC,mBAAmB;AAAA,EACnBC,UAAU;AAAA,EACVC,WAAW;AAAA,EACXC,aAAa;AAAA,EACbC,SAAS;AAAA,EACTC;AAAAA,EACAC,qBAAqB;AAAA,EACrBC,sBAAsB;AAAA,EACtBC,SAAS;AAAA,EACTC;AAAAA,EACA,GAAGC;AACY,MAAM;AACf,QAAA;AAAA,IAAEpB;AAAAA,EAAAA,IAAYqB,WAAWpB,WAAW;AAE1C,QAAMqB,qBAAqB;AAAA,IACzBC,iBAAiB;AAAA,MACfC,KAAM,GAAEN;AAAAA,IACV;AAAA,IACAO,oBAAoB;AAAA,MAClBC,QAAS,GAAER;AAAAA,IACb;AAAA,EAAA;AAGF,6BACGS,UAAW;AAAA,IACVC,OACEN,mBAAoB,eAAcO,WAAWtB,aAAaC,QAAQ,GAAG;AAAA,IAEvER;AAAAA,IACAE;AAAAA,IACAC;AAAAA,IACAI;AAAAA,IACAH;AAAAA,IACAC;AAAAA,IACAK;AAAAA,IACAM;AAAAA,IACAc,qBAAqBhC,qBAAqBmB,mBAAmB;AAAA,IAAE,GAC3DG;AAAAA,IAAMW,8BAETC,mBAAiB;AAAA,MAChB7B,IAAI8B,MAAM9B,IAAI,SAAS;AAAA,MACvBG;AAAAA,MACAK;AAAAA,MACAE;AAAAA,MACAD;AAAAA,MACAE;AAAAA,MACAC;AAAAA,MAA+B,GAC3BI;AAAAA,IAAAA,CACL;AAAA,EAAA,CACU;AAEjB;"}
1
+ {"version":3,"file":"Snackbar.js","sources":["../../../../src/components/Snackbar/Snackbar.tsx"],"sourcesContent":["import Slide from \"@mui/material/Slide\";\nimport {\n SnackbarCloseReason,\n SnackbarOrigin,\n SnackbarProps as MuiSnackbarProps,\n} from \"@mui/material/Snackbar\";\nimport { Snackbar as MuiSnackbar } from \"@mui/material\";\nimport { HvBaseProps } from \"@core/types\";\nimport capitalize from \"lodash/capitalize\";\nimport { SyntheticEvent } from \"react\";\nimport { ExtractNames, setId } from \"@core/utils\";\nimport { HvActionGeneric } from \"@core/components\";\nimport {\n HvSnackbarContentProps,\n HvSnackbarContent,\n} from \"./SnackbarContentWrapper\";\nimport { staticClasses, useClasses } from \"./Snackbar.styles\";\n\nexport { staticClasses as snackbarClasses };\n\nexport type HvSnackbarClasses = ExtractNames<typeof useClasses>;\n\nexport type HvSnackbarVariant = \"default\" | \"success\" | \"warning\" | \"error\";\n\nexport interface HvSnackbarProps\n extends Omit<MuiSnackbarProps, \"action\" | \"classes\">,\n Omit<HvBaseProps, \"children\"> {\n /** If true, Snackbar is open. */\n open?: boolean;\n /** Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway. */\n onClose?:\n | ((\n event: Event | SyntheticEvent<any, Event>,\n reason: SnackbarCloseReason\n ) => void)\n | undefined;\n /** The message to display. */\n label?: React.ReactNode;\n /** The anchor of the Snackbar. vertical: \"top\", \"bottom\" | horizontal: \"left\",\"center\",\"right. It defines where the snackbar will end his animation */\n anchorOrigin?: SnackbarOrigin;\n /** The number of milliseconds to wait before automatically calling the onClose function. onClose should then set the state of the open prop to hide the Snackbar */\n autoHideDuration?: number;\n /** Variant of the snackbar. */\n variant?: HvSnackbarVariant;\n /** Custom icon to replace the variant default. */\n customIcon?: React.ReactNode;\n /** Controls if the associated icon to the variant should be shown. */\n showIcon?: boolean;\n /** Action to display. */\n action?: React.ReactNode | HvActionGeneric;\n /** The callback function ran when an action is triggered, receiving `action` as param */\n actionCallback?: (\n event: React.SyntheticEvent,\n id: string,\n action: HvActionGeneric\n ) => void;\n /** Duration of transition in milliseconds. */\n transitionDuration?: number;\n /** Direction of slide transition. */\n transitionDirection?: \"up\" | \"down\" | \"left\" | \"right\";\n /** Custom offset from top/bottom of the page, in px. */\n offset?: number;\n /** Others applied to the content of the snackbar. */\n snackbarContentProps?: HvSnackbarContentProps;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvSnackbarClasses;\n}\n\nconst transLeft = (props) => <Slide {...props} direction=\"left\" />;\nconst transRight = (props) => <Slide {...props} direction=\"right\" />;\nconst transUp = (props) => <Slide {...props} direction=\"up\" />;\nconst transDown = (props) => <Slide {...props} direction=\"down\" />;\n\nconst snackBarDirComponent = (direction) => {\n switch (direction) {\n case \"right\":\n return transRight;\n case \"up\":\n return transUp;\n case \"down\":\n return transDown;\n case \"left\":\n default:\n return transLeft;\n }\n};\n\n/**\n * A Snackbar provides brief messages about app processes.\n * It is dismissed automatically after a given interval.\n *\n * Snackbar can be built with two different components.\n * One is the HvSnackbar, which wraps all the positioning, transition, auto hide, etc.\n * The other is the HvSnackbarContent, which allows a finer control and customization of the content of the Snackbar.\n */\nexport const HvSnackbar = ({\n classes: classesProp = {},\n className,\n id,\n open = false,\n onClose,\n label = \"\",\n anchorOrigin = { vertical: \"top\", horizontal: \"right\" },\n autoHideDuration = 5000,\n variant = \"default\",\n showIcon = false,\n customIcon = null,\n action = null,\n actionCallback,\n transitionDuration = 300,\n transitionDirection = \"left\",\n offset = 60,\n snackbarContentProps,\n ...others\n}: HvSnackbarProps) => {\n const { classes } = useClasses(classesProp);\n\n const anchorOriginOffset = {\n anchorOriginTop: {\n top: `${offset}px`,\n },\n anchorOriginBottom: {\n bottom: `${offset}px`,\n },\n };\n\n return (\n <MuiSnackbar\n style={\n anchorOriginOffset[`anchorOrigin${capitalize(anchorOrigin.vertical)}`]\n }\n classes={classes}\n className={className}\n id={id}\n anchorOrigin={anchorOrigin}\n open={open}\n onClose={onClose}\n autoHideDuration={autoHideDuration}\n transitionDuration={transitionDuration}\n TransitionComponent={snackBarDirComponent(transitionDirection)}\n {...others}\n >\n <HvSnackbarContent\n id={setId(id, \"content\")}\n label={label}\n variant={variant}\n customIcon={customIcon}\n showIcon={showIcon}\n action={action}\n actionCallback={actionCallback}\n {...snackbarContentProps}\n />\n </MuiSnackbar>\n );\n};\n"],"names":["transLeft","props","_jsx","Slide","direction","transRight","transUp","transDown","snackBarDirComponent","HvSnackbar","classes","classesProp","className","id","open","onClose","label","anchorOrigin","vertical","horizontal","autoHideDuration","variant","showIcon","customIcon","action","actionCallback","transitionDuration","transitionDirection","offset","snackbarContentProps","others","useClasses","anchorOriginOffset","anchorOriginTop","top","anchorOriginBottom","bottom","MuiSnackbar","style","capitalize","TransitionComponent","children","HvSnackbarContent","setId"],"mappings":";;;;;;;;AAoEA,MAAMA,YAAaC,CAAUC,UAAAA,oBAACC,OAAK;AAAA,EAAA,GAAKF;AAAAA,EAAOG,WAAU;AAAM,CAAE;AACjE,MAAMC,aAAcJ,CAAUC,UAAAA,oBAACC,OAAK;AAAA,EAAA,GAAKF;AAAAA,EAAOG,WAAU;AAAO,CAAE;AACnE,MAAME,UAAWL,CAAUC,UAAAA,oBAACC,OAAK;AAAA,EAAA,GAAKF;AAAAA,EAAOG,WAAU;AAAI,CAAE;AAC7D,MAAMG,YAAaN,CAAUC,UAAAA,oBAACC,OAAK;AAAA,EAAA,GAAKF;AAAAA,EAAOG,WAAU;AAAM,CAAE;AAEjE,MAAMI,uBAAwBJ,CAAc,cAAA;AAC1C,UAAQA,WAAS;AAAA,IACf,KAAK;AACIC,aAAAA;AAAAA,IACT,KAAK;AACIC,aAAAA;AAAAA,IACT,KAAK;AACIC,aAAAA;AAAAA,IACT,KAAK;AAAA,IACL;AACSP,aAAAA;AAAAA,EACX;AACF;AAUO,MAAMS,aAAaA,CAAC;AAAA,EACzBC,SAASC,cAAc,CAAC;AAAA,EACxBC;AAAAA,EACAC;AAAAA,EACAC,OAAO;AAAA,EACPC;AAAAA,EACAC,QAAQ;AAAA,EACRC,eAAe;AAAA,IAAEC,UAAU;AAAA,IAAOC,YAAY;AAAA,EAAQ;AAAA,EACtDC,mBAAmB;AAAA,EACnBC,UAAU;AAAA,EACVC,WAAW;AAAA,EACXC,aAAa;AAAA,EACbC,SAAS;AAAA,EACTC;AAAAA,EACAC,qBAAqB;AAAA,EACrBC,sBAAsB;AAAA,EACtBC,SAAS;AAAA,EACTC;AAAAA,EACA,GAAGC;AACY,MAAM;AACf,QAAA;AAAA,IAAEpB;AAAAA,EAAAA,IAAYqB,WAAWpB,WAAW;AAE1C,QAAMqB,qBAAqB;AAAA,IACzBC,iBAAiB;AAAA,MACfC,KAAM,GAAEN;AAAAA,IACV;AAAA,IACAO,oBAAoB;AAAA,MAClBC,QAAS,GAAER;AAAAA,IACb;AAAA,EAAA;AAGF,6BACGS,UAAW;AAAA,IACVC,OACEN,mBAAoB,eAAcO,WAAWtB,aAAaC,QAAQ,GAAG;AAAA,IAEvER;AAAAA,IACAE;AAAAA,IACAC;AAAAA,IACAI;AAAAA,IACAH;AAAAA,IACAC;AAAAA,IACAK;AAAAA,IACAM;AAAAA,IACAc,qBAAqBhC,qBAAqBmB,mBAAmB;AAAA,IAAE,GAC3DG;AAAAA,IAAMW,8BAETC,mBAAiB;AAAA,MAChB7B,IAAI8B,MAAM9B,IAAI,SAAS;AAAA,MACvBG;AAAAA,MACAK;AAAAA,MACAE;AAAAA,MACAD;AAAAA,MACAE;AAAAA,MACAC;AAAAA,MAA+B,GAC3BI;AAAAA,IAAAA,CACL;AAAA,EAAA,CACU;AAEjB;"}
@@ -4,6 +4,7 @@ import { useClasses } from "./SnackbarContentWrapper.styles.js";
4
4
  import { staticClasses } from "./SnackbarContentWrapper.styles.js";
5
5
  import { jsx, jsxs } from "@emotion/react/jsx-runtime";
6
6
  import iconVariant from "../../../utils/iconVariant.js";
7
+ import { useTheme } from "../../../hooks/useTheme.js";
7
8
  import { setId } from "../../../utils/setId.js";
8
9
  import { HvActionsGeneric } from "../../ActionsGeneric/ActionsGeneric.js";
9
10
  const HvSnackbarContent = forwardRef(({
@@ -11,7 +12,7 @@ const HvSnackbarContent = forwardRef(({
11
12
  id,
12
13
  classes: classesProp = {},
13
14
  label,
14
- variant,
15
+ variant = "default",
15
16
  showIcon,
16
17
  customIcon,
17
18
  action,
@@ -24,29 +25,32 @@ const HvSnackbarContent = forwardRef(({
24
25
  classes,
25
26
  cx
26
27
  } = useClasses(classesProp);
28
+ const {
29
+ activeTheme
30
+ } = useTheme();
27
31
  return /* @__PURE__ */ jsx(SnackbarContent, {
28
32
  ref,
29
33
  id,
30
34
  classes: {
31
- root: classes == null ? void 0 : classes.root,
32
- message: classes == null ? void 0 : classes.message
35
+ root: classes.root,
36
+ message: classes.message
33
37
  },
34
38
  className: cx(className, classes == null ? void 0 : classes[variant]),
35
39
  message: /* @__PURE__ */ jsxs("div", {
36
40
  id: setId(id, "message"),
37
- className: classes == null ? void 0 : classes.messageSpan,
41
+ className: classes.messageSpan,
38
42
  children: [icon && /* @__PURE__ */ jsx("div", {
39
- className: classes == null ? void 0 : classes.iconVariant,
43
+ className: classes.iconVariant,
40
44
  children: icon
41
45
  }), /* @__PURE__ */ jsx("div", {
42
- className: classes == null ? void 0 : classes.messageText,
46
+ className: classes.messageText,
43
47
  children: label
44
48
  }), action && /* @__PURE__ */ jsx("div", {
45
49
  id: setId(id, "action"),
46
- className: classes == null ? void 0 : classes.action,
50
+ className: classes.action,
47
51
  children: /* @__PURE__ */ jsx(HvActionsGeneric, {
48
52
  id,
49
- category: "secondaryGhost",
53
+ category: activeTheme == null ? void 0 : activeTheme.snackbar.actionButtonVariant,
50
54
  actions: innerAction,
51
55
  actionsCallback: actionCallback
52
56
  })
@@ -1 +1 @@
1
- {"version":3,"file":"SnackbarContentWrapper.js","sources":["../../../../../src/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.tsx"],"sourcesContent":["import { forwardRef, isValidElement } from \"react\";\nimport SnackbarContent, {\n SnackbarContentProps as MuiSnackbarContentProps,\n} from \"@mui/material/SnackbarContent\";\nimport { ExtractNames, iconVariant, setId } from \"@core/utils\";\nimport { HvBaseProps } from \"@core/types\";\nimport { HvActionsGeneric, HvActionGeneric } from \"@core/components\";\nimport { HvSnackbarVariant } from \"../Snackbar\";\nimport { staticClasses, useClasses } from \"./SnackbarContentWrapper.styles\";\n\nexport { staticClasses as snackbarContentClasses };\n\nexport type HvSnackbarContentClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvSnackbarContentProps\n extends Omit<MuiSnackbarContentProps, \"variant\" | \"action\" | \"classes\">,\n HvBaseProps {\n /** The message to display. */\n label?: React.ReactNode;\n /** Variant of the snackbar. */\n variant: HvSnackbarVariant;\n /** Controls if the associated icon to the variant should be shown. */\n showIcon?: boolean;\n /** Custom icon to replace the variant default. */\n customIcon?: React.ReactNode;\n /** Action to display. */\n action?: React.ReactNode | HvActionGeneric;\n /** The callback function ran when an action is triggered, receiving `action` as param */\n actionCallback?: (\n event: React.SyntheticEvent,\n id: string,\n action: HvActionGeneric\n ) => void;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: Partial<HvSnackbarContentClasses>;\n}\n\nexport const HvSnackbarContent = forwardRef<\n HTMLDivElement,\n HvSnackbarContentProps\n>(\n (\n {\n className,\n id,\n classes: classesProp = {},\n label,\n variant,\n showIcon,\n customIcon,\n action,\n actionCallback,\n ...others\n },\n ref\n ) => {\n const icon = customIcon || (showIcon && iconVariant(variant, \"base_dark\"));\n const innerAction: any = isValidElement(action) ? action : [action];\n\n const { classes, cx } = useClasses(classesProp);\n\n return (\n <SnackbarContent\n ref={ref}\n id={id}\n classes={{\n root: classes?.root,\n message: classes?.message,\n }}\n className={cx(className, classes?.[variant])}\n message={\n <div id={setId(id, \"message\")} className={classes?.messageSpan}>\n {icon && <div className={classes?.iconVariant}>{icon}</div>}\n <div className={classes?.messageText}>{label}</div>\n {action && (\n <div id={setId(id, \"action\")} className={classes?.action}>\n <HvActionsGeneric\n id={id}\n category=\"secondaryGhost\"\n actions={innerAction}\n actionsCallback={actionCallback}\n />\n </div>\n )}\n </div>\n }\n {...others}\n />\n );\n }\n);\n"],"names":["HvSnackbarContent","forwardRef","className","id","classes","classesProp","label","variant","showIcon","customIcon","action","actionCallback","others","ref","icon","iconVariant","innerAction","isValidElement","cx","useClasses","SnackbarContent","root","message","setId","messageSpan","children","_jsx","messageText","HvActionsGeneric","category","actions","actionsCallback"],"mappings":";;;;;;;;AAqCaA,MAAAA,oBAAoBC,WAI/B,CACE;AAAA,EACEC;AAAAA,EACAC;AAAAA,EACAC,SAASC,cAAc,CAAC;AAAA,EACxBC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACA,GAAGC;AACL,GACAC,QACG;AACH,QAAMC,OAAOL,cAAeD,YAAYO,YAAYR,SAAS,WAAW;AACxE,QAAMS,cAAmBC,eAAeP,MAAM,IAAIA,SAAS,CAACA,MAAM;AAE5D,QAAA;AAAA,IAAEN;AAAAA,IAASc;AAAAA,EAAAA,IAAOC,WAAWd,WAAW;AAE9C,6BACGe,iBAAe;AAAA,IACdP;AAAAA,IACAV;AAAAA,IACAC,SAAS;AAAA,MACPiB,MAAMjB,mCAASiB;AAAAA,MACfC,SAASlB,mCAASkB;AAAAA,IACpB;AAAA,IACApB,WAAWgB,GAAGhB,WAAWE,mCAAUG,QAAQ;AAAA,IAC3Ce,8BACE,OAAA;AAAA,MAAKnB,IAAIoB,MAAMpB,IAAI,SAAS;AAAA,MAAGD,WAAWE,mCAASoB;AAAAA,MAAYC,UAAA,CAC5DX,QAAQY,oBAAA,OAAA;AAAA,QAAKxB,WAAWE,mCAASW;AAAAA,QAAYU,UAAEX;AAAAA,MAAAA,CAAU,GAC1DY,oBAAA,OAAA;AAAA,QAAKxB,WAAWE,mCAASuB;AAAAA,QAAYF,UAAEnB;AAAAA,MAAAA,CAAW,GACjDI,UACCgB,oBAAA,OAAA;AAAA,QAAKvB,IAAIoB,MAAMpB,IAAI,QAAQ;AAAA,QAAGD,WAAWE,mCAASM;AAAAA,QAAOe,8BACtDG,kBAAgB;AAAA,UACfzB;AAAAA,UACA0B,UAAS;AAAA,UACTC,SAASd;AAAAA,UACTe,iBAAiBpB;AAAAA,QAAAA,CAClB;AAAA,MAAA,CACE,CACN;AAAA,IAAA,CACE;AAAA,IACN,GACGC;AAAAA,EAAAA,CACL;AAEL,CACF;"}
1
+ {"version":3,"file":"SnackbarContentWrapper.js","sources":["../../../../../src/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.tsx"],"sourcesContent":["import { forwardRef, isValidElement } from \"react\";\nimport SnackbarContent, {\n SnackbarContentProps as MuiSnackbarContentProps,\n} from \"@mui/material/SnackbarContent\";\nimport { ExtractNames, iconVariant, setId } from \"@core/utils\";\nimport { HvBaseProps } from \"@core/types\";\nimport {\n HvActionsGeneric,\n HvActionGeneric,\n HvButtonVariant,\n} from \"@core/components\";\nimport { useTheme } from \"@core/hooks\";\nimport { HvSnackbarVariant } from \"../Snackbar\";\nimport { staticClasses, useClasses } from \"./SnackbarContentWrapper.styles\";\n\nexport { staticClasses as snackbarContentClasses };\n\nexport type HvSnackbarContentClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvSnackbarContentProps\n extends Omit<MuiSnackbarContentProps, \"variant\" | \"action\" | \"classes\">,\n HvBaseProps {\n /** The message to display. */\n label?: React.ReactNode;\n /** Variant of the snackbar. */\n variant?: HvSnackbarVariant;\n /** Controls if the associated icon to the variant should be shown. */\n showIcon?: boolean;\n /** Custom icon to replace the variant default. */\n customIcon?: React.ReactNode;\n /** Action to display. */\n action?: React.ReactNode | HvActionGeneric;\n /** The callback function ran when an action is triggered, receiving `action` as param */\n actionCallback?: (\n event: React.SyntheticEvent,\n id: string,\n action: HvActionGeneric\n ) => void;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: Partial<HvSnackbarContentClasses>;\n}\n\nexport const HvSnackbarContent = forwardRef<\n HTMLDivElement,\n HvSnackbarContentProps\n>(\n (\n {\n className,\n id,\n classes: classesProp = {},\n label,\n variant = \"default\",\n showIcon,\n customIcon,\n action,\n actionCallback,\n ...others\n },\n ref\n ) => {\n const icon = customIcon || (showIcon && iconVariant(variant, \"base_dark\"));\n const innerAction: any = isValidElement(action) ? action : [action];\n\n const { classes, cx } = useClasses(classesProp);\n const { activeTheme } = useTheme();\n\n return (\n <SnackbarContent\n ref={ref}\n id={id}\n classes={{\n root: classes.root,\n message: classes.message,\n }}\n className={cx(className, classes?.[variant])}\n message={\n <div id={setId(id, \"message\")} className={classes.messageSpan}>\n {icon && <div className={classes.iconVariant}>{icon}</div>}\n <div className={classes.messageText}>{label}</div>\n {action && (\n <div id={setId(id, \"action\")} className={classes.action}>\n <HvActionsGeneric\n id={id}\n category={\n activeTheme?.snackbar.actionButtonVariant as HvButtonVariant\n }\n actions={innerAction}\n actionsCallback={actionCallback}\n />\n </div>\n )}\n </div>\n }\n {...others}\n />\n );\n }\n);\n"],"names":["HvSnackbarContent","forwardRef","className","id","classes","classesProp","label","variant","showIcon","customIcon","action","actionCallback","others","ref","icon","iconVariant","innerAction","isValidElement","cx","useClasses","activeTheme","useTheme","SnackbarContent","root","message","setId","messageSpan","children","_jsx","messageText","HvActionsGeneric","category","snackbar","actionButtonVariant","actions","actionsCallback"],"mappings":";;;;;;;;;AA0CaA,MAAAA,oBAAoBC,WAI/B,CACE;AAAA,EACEC;AAAAA,EACAC;AAAAA,EACAC,SAASC,cAAc,CAAC;AAAA,EACxBC;AAAAA,EACAC,UAAU;AAAA,EACVC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACA,GAAGC;AACL,GACAC,QACG;AACH,QAAMC,OAAOL,cAAeD,YAAYO,YAAYR,SAAS,WAAW;AACxE,QAAMS,cAAmBC,eAAeP,MAAM,IAAIA,SAAS,CAACA,MAAM;AAE5D,QAAA;AAAA,IAAEN;AAAAA,IAASc;AAAAA,EAAAA,IAAOC,WAAWd,WAAW;AACxC,QAAA;AAAA,IAAEe;AAAAA,MAAgBC,SAAS;AAEjC,6BACGC,iBAAe;AAAA,IACdT;AAAAA,IACAV;AAAAA,IACAC,SAAS;AAAA,MACPmB,MAAMnB,QAAQmB;AAAAA,MACdC,SAASpB,QAAQoB;AAAAA,IACnB;AAAA,IACAtB,WAAWgB,GAAGhB,WAAWE,mCAAUG,QAAQ;AAAA,IAC3CiB,8BACE,OAAA;AAAA,MAAKrB,IAAIsB,MAAMtB,IAAI,SAAS;AAAA,MAAGD,WAAWE,QAAQsB;AAAAA,MAAYC,UAAA,CAC3Db,QAAQc,oBAAA,OAAA;AAAA,QAAK1B,WAAWE,QAAQW;AAAAA,QAAYY,UAAEb;AAAAA,MAAAA,CAAU,GACzDc,oBAAA,OAAA;AAAA,QAAK1B,WAAWE,QAAQyB;AAAAA,QAAYF,UAAErB;AAAAA,MAAAA,CAAW,GAChDI,UACCkB,oBAAA,OAAA;AAAA,QAAKzB,IAAIsB,MAAMtB,IAAI,QAAQ;AAAA,QAAGD,WAAWE,QAAQM;AAAAA,QAAOiB,8BACrDG,kBAAgB;AAAA,UACf3B;AAAAA,UACA4B,UACEX,2CAAaY,SAASC;AAAAA,UAExBC,SAASlB;AAAAA,UACTmB,iBAAiBxB;AAAAA,QAAAA,CAClB;AAAA,MAAA,CACE,CACN;AAAA,IAAA,CACE;AAAA,IACN,GACGC;AAAAA,EAAAA,CACL;AAEL,CACF;"}
@@ -1,4 +1,5 @@
1
1
  import { theme } from "@hitachivantara/uikit-styles";
2
+ import actionsGenericClasses from "../../ActionsGeneric/actionsGenericClasses.js";
2
3
  import { createClasses } from "../../../utils/classes.js";
3
4
  const {
4
5
  useClasses,
@@ -41,7 +42,15 @@ const {
41
42
  wordBreak: "break-word"
42
43
  },
43
44
  action: {
44
- textAlign: "right"
45
+ textAlign: "right",
46
+ marginLeft: theme.snackbar.actionMarginLeft,
47
+ [`& .${actionsGenericClasses.button}`]: {
48
+ borderColor: theme.colors.base_dark,
49
+ color: theme.colors.base_dark,
50
+ "&:hover": {
51
+ borderColor: theme.colors.base_dark
52
+ }
53
+ }
45
54
  },
46
55
  iconVariant: {}
47
56
  });
@@ -1 +1 @@
1
- {"version":3,"file":"SnackbarContentWrapper.styles.js","sources":["../../../../../src/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\nimport { CSSProperties } from \"react\";\nimport { createClasses } from \"@core/utils\";\n\nexport const { useClasses, staticClasses } = createClasses(\n \"HvSnackbar-Content\",\n {\n root: {\n width: \"310px\",\n minHeight: \"52px\",\n maxHeight: \"92px\",\n padding: theme.space.xs,\n boxShadow: \"none\",\n },\n success: {\n backgroundColor: theme.colors.positive_20,\n },\n error: {\n backgroundColor: theme.colors.negative_20,\n },\n default: {\n backgroundColor: theme.colors.neutral_20,\n },\n warning: {\n backgroundColor: theme.colors.warning_20,\n },\n message: {\n padding: 0,\n width: \"100%\",\n },\n messageSpan: {\n display: \"flex\",\n alignItems: \"center\",\n minHeight: \"32px\",\n },\n messageText: {\n ...(theme.typography.body as CSSProperties),\n padding: `0 ${theme.space.xs}`,\n color: theme.colors.base_dark,\n fontFamily: theme.fontFamily.body,\n maxHeight: \"72px\",\n wordBreak: \"break-word\",\n },\n action: {\n textAlign: \"right\",\n },\n iconVariant: {},\n }\n);\n"],"names":["useClasses","staticClasses","createClasses","root","width","minHeight","maxHeight","padding","theme","space","xs","boxShadow","success","backgroundColor","colors","positive_20","error","negative_20","default","neutral_20","warning","warning_20","message","messageSpan","display","alignItems","messageText","typography","body","color","base_dark","fontFamily","wordBreak","action","textAlign","iconVariant"],"mappings":";;AAIa,MAAA;AAAA,EAAEA;AAAAA,EAAYC;AAAc,IAAIC,cAC3C,sBACA;AAAA,EACEC,MAAM;AAAA,IACJC,OAAO;AAAA,IACPC,WAAW;AAAA,IACXC,WAAW;AAAA,IACXC,SAASC,MAAMC,MAAMC;AAAAA,IACrBC,WAAW;AAAA,EACb;AAAA,EACAC,SAAS;AAAA,IACPC,iBAAiBL,MAAMM,OAAOC;AAAAA,EAChC;AAAA,EACAC,OAAO;AAAA,IACLH,iBAAiBL,MAAMM,OAAOG;AAAAA,EAChC;AAAA,EACAC,SAAS;AAAA,IACPL,iBAAiBL,MAAMM,OAAOK;AAAAA,EAChC;AAAA,EACAC,SAAS;AAAA,IACPP,iBAAiBL,MAAMM,OAAOO;AAAAA,EAChC;AAAA,EACAC,SAAS;AAAA,IACPf,SAAS;AAAA,IACTH,OAAO;AAAA,EACT;AAAA,EACAmB,aAAa;AAAA,IACXC,SAAS;AAAA,IACTC,YAAY;AAAA,IACZpB,WAAW;AAAA,EACb;AAAA,EACAqB,aAAa;AAAA,IACX,GAAIlB,MAAMmB,WAAWC;AAAAA,IACrBrB,SAAU,KAAIC,MAAMC,MAAMC;AAAAA,IAC1BmB,OAAOrB,MAAMM,OAAOgB;AAAAA,IACpBC,YAAYvB,MAAMuB,WAAWH;AAAAA,IAC7BtB,WAAW;AAAA,IACX0B,WAAW;AAAA,EACb;AAAA,EACAC,QAAQ;AAAA,IACNC,WAAW;AAAA,EACb;AAAA,EACAC,aAAa,CAAC;AAChB,CACF;"}
1
+ {"version":3,"file":"SnackbarContentWrapper.styles.js","sources":["../../../../../src/components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\nimport { CSSProperties } from \"react\";\nimport { createClasses } from \"@core/utils\";\nimport { actionsGenericClasses } from \"@core/components\";\n\nexport const { useClasses, staticClasses } = createClasses(\n \"HvSnackbar-Content\",\n {\n root: {\n width: \"310px\",\n minHeight: \"52px\",\n maxHeight: \"92px\",\n padding: theme.space.xs,\n boxShadow: \"none\",\n },\n success: {\n backgroundColor: theme.colors.positive_20,\n },\n error: {\n backgroundColor: theme.colors.negative_20,\n },\n default: {\n backgroundColor: theme.colors.neutral_20,\n },\n warning: {\n backgroundColor: theme.colors.warning_20,\n },\n message: {\n padding: 0,\n width: \"100%\",\n },\n messageSpan: {\n display: \"flex\",\n alignItems: \"center\",\n minHeight: \"32px\",\n },\n messageText: {\n ...(theme.typography.body as CSSProperties),\n padding: `0 ${theme.space.xs}`,\n color: theme.colors.base_dark,\n fontFamily: theme.fontFamily.body,\n maxHeight: \"72px\",\n wordBreak: \"break-word\",\n },\n action: {\n textAlign: \"right\",\n marginLeft: theme.snackbar.actionMarginLeft,\n [`& .${actionsGenericClasses.button}`]: {\n borderColor: theme.colors.base_dark,\n color: theme.colors.base_dark,\n \"&:hover\": {\n borderColor: theme.colors.base_dark,\n },\n },\n },\n iconVariant: {},\n }\n);\n"],"names":["useClasses","staticClasses","createClasses","root","width","minHeight","maxHeight","padding","theme","space","xs","boxShadow","success","backgroundColor","colors","positive_20","error","negative_20","default","neutral_20","warning","warning_20","message","messageSpan","display","alignItems","messageText","typography","body","color","base_dark","fontFamily","wordBreak","action","textAlign","marginLeft","snackbar","actionMarginLeft","actionsGenericClasses","button","borderColor","iconVariant"],"mappings":";;;AAKa,MAAA;AAAA,EAAEA;AAAAA,EAAYC;AAAc,IAAIC,cAC3C,sBACA;AAAA,EACEC,MAAM;AAAA,IACJC,OAAO;AAAA,IACPC,WAAW;AAAA,IACXC,WAAW;AAAA,IACXC,SAASC,MAAMC,MAAMC;AAAAA,IACrBC,WAAW;AAAA,EACb;AAAA,EACAC,SAAS;AAAA,IACPC,iBAAiBL,MAAMM,OAAOC;AAAAA,EAChC;AAAA,EACAC,OAAO;AAAA,IACLH,iBAAiBL,MAAMM,OAAOG;AAAAA,EAChC;AAAA,EACAC,SAAS;AAAA,IACPL,iBAAiBL,MAAMM,OAAOK;AAAAA,EAChC;AAAA,EACAC,SAAS;AAAA,IACPP,iBAAiBL,MAAMM,OAAOO;AAAAA,EAChC;AAAA,EACAC,SAAS;AAAA,IACPf,SAAS;AAAA,IACTH,OAAO;AAAA,EACT;AAAA,EACAmB,aAAa;AAAA,IACXC,SAAS;AAAA,IACTC,YAAY;AAAA,IACZpB,WAAW;AAAA,EACb;AAAA,EACAqB,aAAa;AAAA,IACX,GAAIlB,MAAMmB,WAAWC;AAAAA,IACrBrB,SAAU,KAAIC,MAAMC,MAAMC;AAAAA,IAC1BmB,OAAOrB,MAAMM,OAAOgB;AAAAA,IACpBC,YAAYvB,MAAMuB,WAAWH;AAAAA,IAC7BtB,WAAW;AAAA,IACX0B,WAAW;AAAA,EACb;AAAA,EACAC,QAAQ;AAAA,IACNC,WAAW;AAAA,IACXC,YAAY3B,MAAM4B,SAASC;AAAAA,IAC3B,CAAE,MAAKC,sBAAsBC,QAAQ,GAAG;AAAA,MACtCC,aAAahC,MAAMM,OAAOgB;AAAAA,MAC1BD,OAAOrB,MAAMM,OAAOgB;AAAAA,MACpB,WAAW;AAAA,QACTU,aAAahC,MAAMM,OAAOgB;AAAAA,MAC5B;AAAA,IACF;AAAA,EACF;AAAA,EACAW,aAAa,CAAC;AAChB,CACF;"}
@@ -7,10 +7,10 @@ import TableSectionContext from "../TableSectionContext.js";
7
7
  import { useClasses } from "./TableRow.styles.js";
8
8
  import { staticClasses } from "./TableRow.styles.js";
9
9
  import { jsx } from "@emotion/react/jsx-runtime";
10
- import { getVarValue } from "../../../utils/theme.js";
11
10
  import checkValidHexColorValue from "../../../utils/checkValidHexColorValue.js";
12
11
  import fade from "../../../utils/hexToRgbA.js";
13
12
  import { useTheme } from "../../../hooks/useTheme.js";
13
+ import { getVarValue } from "../../../utils/theme.js";
14
14
  function _extends() {
15
15
  _extends = Object.assign ? Object.assign.bind() : function(target) {
16
16
  for (var i = 1; i < arguments.length; i++) {
package/dist/esm/index.js CHANGED
@@ -67,6 +67,8 @@ import { default as default26 } from "./components/Dialog/Actions/actionsClasses
67
67
  import { HvDialogActions } from "./components/Dialog/Actions/Actions.js";
68
68
  import { staticClasses as staticClasses8 } from "./components/Dialog/Dialog.styles.js";
69
69
  import { HvDialog } from "./components/Dialog/Dialog.js";
70
+ import { staticClasses as staticClasses9 } from "./components/Drawer/Drawer.styles.js";
71
+ import { HvDrawer } from "./components/Drawer/Drawer.js";
70
72
  import { default as default27 } from "./components/EmptyState/emptyStateClasses.js";
71
73
  import { HvEmptyState } from "./components/EmptyState/EmptyState.js";
72
74
  import { default as default28 } from "./components/Footer/footerClasses.js";
@@ -121,7 +123,7 @@ import { default as default50 } from "./components/BaseSwitch/baseSwitchClasses.
121
123
  import { HvBaseSwitch } from "./components/BaseSwitch/BaseSwitch.js";
122
124
  import { default as default51 } from "./components/CheckBox/checkBoxClasses.js";
123
125
  import { HvCheckBox } from "./components/CheckBox/CheckBox.js";
124
- import { staticClasses as staticClasses9 } from "./components/Input/Input.styles.js";
126
+ import { staticClasses as staticClasses10 } from "./components/Input/Input.styles.js";
125
127
  import { HvInput } from "./components/Input/Input.js";
126
128
  import { default as default52 } from "./components/Switch/switchClasses.js";
127
129
  import { HvSwitch } from "./components/Switch/Switch.js";
@@ -142,25 +144,25 @@ import { HvFileUploaderPreview } from "./components/FileUploader/Preview/Preview
142
144
  import { default as default60 } from "./components/FileUploader/File/fileClasses.js";
143
145
  import { HvFile } from "./components/FileUploader/File/File.js";
144
146
  import { HvFileUploader } from "./components/FileUploader/FileUploader.js";
145
- import { staticClasses as staticClasses10 } from "./components/DropDownMenu/DropDownMenu.styles.js";
147
+ import { staticClasses as staticClasses11 } from "./components/DropDownMenu/DropDownMenu.styles.js";
146
148
  import { HvDropDownMenu } from "./components/DropDownMenu/DropDownMenu.js";
147
- import { staticClasses as staticClasses11 } from "./components/Pagination/Pagination.styles.js";
149
+ import { staticClasses as staticClasses12 } from "./components/Pagination/Pagination.styles.js";
148
150
  import { HvPagination } from "./components/Pagination/Pagination.js";
149
151
  import { default as default61 } from "./components/ActionsGeneric/actionsGenericClasses.js";
150
152
  import { HvActionsGeneric } from "./components/ActionsGeneric/ActionsGeneric.js";
151
153
  import { default as default62 } from "./components/BreadCrumb/breadCrumbClasses.js";
152
154
  import { HvBreadCrumb } from "./components/BreadCrumb/BreadCrumb.js";
153
- import { staticClasses as staticClasses12 } from "./components/DotPagination/DotPagination.styles.js";
155
+ import { staticClasses as staticClasses13 } from "./components/DotPagination/DotPagination.styles.js";
154
156
  import { HvDotPagination } from "./components/DotPagination/DotPagination.js";
155
- import { staticClasses as staticClasses13 } from "./components/Banner/Banner.styles.js";
157
+ import { staticClasses as staticClasses14 } from "./components/Banner/Banner.styles.js";
156
158
  import { HvBanner } from "./components/Banner/Banner.js";
157
- import { staticClasses as staticClasses14 } from "./components/Banner/BannerContent/BannerContent.styles.js";
159
+ import { staticClasses as staticClasses15 } from "./components/Banner/BannerContent/BannerContent.styles.js";
158
160
  import { HvBannerContent } from "./components/Banner/BannerContent/BannerContent.js";
159
- import { staticClasses as staticClasses15 } from "./components/Snackbar/Snackbar.styles.js";
161
+ import { staticClasses as staticClasses16 } from "./components/Snackbar/Snackbar.styles.js";
160
162
  import { HvSnackbar } from "./components/Snackbar/Snackbar.js";
161
- import { staticClasses as staticClasses16 } from "./components/Snackbar/SnackbarProvider/SnackbarProvider.styles.js";
163
+ import { staticClasses as staticClasses17 } from "./components/Snackbar/SnackbarProvider/SnackbarProvider.styles.js";
162
164
  import { HvSnackbarProvider, useHvSnackbar } from "./components/Snackbar/SnackbarProvider/SnackbarProvider.js";
163
- import { staticClasses as staticClasses17 } from "./components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.styles.js";
165
+ import { staticClasses as staticClasses18 } from "./components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.styles.js";
164
166
  import { HvSnackbarContent } from "./components/Snackbar/SnackbarContentWrapper/SnackbarContentWrapper.js";
165
167
  import { default as default63 } from "./components/BulkActions/bulkActionsClasses.js";
166
168
  import { HvBulkActions } from "./components/BulkActions/BulkActions.js";
@@ -178,9 +180,9 @@ import { default as default69 } from "./components/Table/TableHead/tableHeadClas
178
180
  import { HvTableHead } from "./components/Table/TableHead/TableHead.js";
179
181
  import { default as default70 } from "./components/Table/TableHeader/tableHeaderClasses.js";
180
182
  import { HvTableHeader } from "./components/Table/TableHeader/TableHeader.js";
181
- import { staticClasses as staticClasses18 } from "./components/Table/TableRow/TableRow.styles.js";
183
+ import { staticClasses as staticClasses19 } from "./components/Table/TableRow/TableRow.styles.js";
182
184
  import { HvTableRow } from "./components/Table/TableRow/TableRow.js";
183
- import { staticClasses as staticClasses19 } from "./components/Table/TableCell/TableCell.styles.js";
185
+ import { staticClasses as staticClasses20 } from "./components/Table/TableCell/TableCell.styles.js";
184
186
  import { HvTableCell } from "./components/Table/TableCell/TableCell.js";
185
187
  import { getHeaderFooterPropsHook, default as default71 } from "./components/Table/hooks/useTableStyles.js";
186
188
  import { default as default72 } from "./components/Table/hooks/useSortBy.js";
@@ -230,29 +232,29 @@ import { HvVerticalNavigationTreeViewItem } from "./components/VerticalNavigatio
230
232
  import { VerticalNavigationContext } from "./components/VerticalNavigation/VerticalNavigationContext.js";
231
233
  import { default as default98 } from "./components/Slider/sliderClasses.js";
232
234
  import { HvSlider } from "./components/Slider/Slider.js";
233
- import { staticClasses as staticClasses20 } from "./components/FilterGroup/FilterGroup.styles.js";
235
+ import { staticClasses as staticClasses21 } from "./components/FilterGroup/FilterGroup.styles.js";
234
236
  import { HvFilterGroup } from "./components/FilterGroup/FilterGroup.js";
235
- import { staticClasses as staticClasses21 } from "./components/DatePicker/DatePicker.styles.js";
237
+ import { staticClasses as staticClasses22 } from "./components/DatePicker/DatePicker.styles.js";
236
238
  import { HvDatePicker } from "./components/DatePicker/DatePicker.js";
237
- import { staticClasses as staticClasses22 } from "./components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js";
238
- import { staticClasses as staticClasses23 } from "./components/ScrollTo/Vertical/ScrollToVertical.styles.js";
239
+ import { staticClasses as staticClasses23 } from "./components/ScrollTo/Vertical/VerticalScrollListItem/VerticalScrollListItem.styles.js";
240
+ import { staticClasses as staticClasses24 } from "./components/ScrollTo/Vertical/ScrollToVertical.styles.js";
239
241
  import { HvScrollToVertical } from "./components/ScrollTo/Vertical/ScrollToVertical.js";
240
- import { staticClasses as staticClasses24 } from "./components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js";
241
- import { staticClasses as staticClasses25 } from "./components/ScrollTo/Horizontal/ScrollToHorizontal.styles.js";
242
+ import { staticClasses as staticClasses25 } from "./components/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js";
243
+ import { staticClasses as staticClasses26 } from "./components/ScrollTo/Horizontal/ScrollToHorizontal.styles.js";
242
244
  import { HvScrollToHorizontal } from "./components/ScrollTo/Horizontal/ScrollToHorizontal.js";
243
245
  import { useScrollTo } from "./components/ScrollTo/useScrollTo.js";
244
- import { staticClasses as staticClasses26 } from "./components/InlineEditor/InlineEditor.styles.js";
246
+ import { staticClasses as staticClasses27 } from "./components/InlineEditor/InlineEditor.styles.js";
245
247
  import { HvInlineEditor } from "./components/InlineEditor/InlineEditor.js";
246
- import { staticClasses as staticClasses27 } from "./components/TimeAgo/TimeAgo.styles.js";
248
+ import { staticClasses as staticClasses28 } from "./components/TimeAgo/TimeAgo.styles.js";
247
249
  import { HvTimeAgo } from "./components/TimeAgo/TimeAgo.js";
248
- import { staticClasses as staticClasses28 } from "./components/QueryBuilder/QueryBuilder.styles.js";
250
+ import { staticClasses as staticClasses29 } from "./components/QueryBuilder/QueryBuilder.styles.js";
249
251
  import { HvQueryBuilder } from "./components/QueryBuilder/QueryBuilder.js";
250
- import { staticClasses as staticClasses29 } from "./components/ColorPicker/ColorPicker.styles.js";
252
+ import { staticClasses as staticClasses30 } from "./components/ColorPicker/ColorPicker.styles.js";
251
253
  import { HvColorPicker } from "./components/ColorPicker/ColorPicker.js";
252
- import { staticClasses as staticClasses30 } from "./components/Carousel/Carousel.styles.js";
254
+ import { staticClasses as staticClasses31 } from "./components/Carousel/Carousel.styles.js";
253
255
  import { HvCarousel } from "./components/Carousel/Carousel.js";
254
256
  import { HvCarouselSlide } from "./components/Carousel/CarouselSlide/CarouselSlide.js";
255
- import { staticClasses as staticClasses31 } from "./components/TimePicker/TimePicker.styles.js";
257
+ import { staticClasses as staticClasses32 } from "./components/TimePicker/TimePicker.styles.js";
256
258
  import { HvTimePicker } from "./components/TimePicker/TimePicker.js";
257
259
  import { default as default99 } from "./hooks/useUniqueId.js";
258
260
  import { default as default100 } from "./hooks/useIsMounted.js";
@@ -328,6 +330,7 @@ export {
328
330
  HvDialogContent,
329
331
  HvDialogTitle,
330
332
  HvDotPagination,
333
+ HvDrawer,
331
334
  HvDropDownMenu,
332
335
  HvDropdown,
333
336
  default81 as HvDropdownColumnCell,
@@ -432,8 +435,8 @@ export {
432
435
  default48 as appSwitcherClasses,
433
436
  default20 as avatarClasses,
434
437
  default21 as badgeClasses,
435
- staticClasses13 as bannerClasses,
436
- staticClasses14 as bannerContentClasses,
438
+ staticClasses14 as bannerClasses,
439
+ staticClasses15 as bannerContentClasses,
437
440
  default46 as baseCheckBoxClasses,
438
441
  default18 as baseDropdownClasses,
439
442
  staticClasses2 as baseInputClasses,
@@ -450,17 +453,17 @@ export {
450
453
  staticClasses6 as cardContentClasses,
451
454
  staticClasses5 as cardHeaderClasses,
452
455
  staticClasses7 as cardMediaClasses,
453
- staticClasses30 as carouselClasses,
456
+ staticClasses31 as carouselClasses,
454
457
  default10 as charCounterClasses,
455
458
  default51 as checkBoxClasses,
456
459
  default56 as checkBoxGroupClasses,
457
460
  default106 as checkValidHexColorValue,
458
- staticClasses29 as colorPickerClasses,
461
+ staticClasses30 as colorPickerClasses,
459
462
  default23 as containerClasses,
460
463
  default85 as controlsClasses,
461
464
  createClasses,
462
465
  createTheme,
463
- staticClasses21 as datePickerClasses,
466
+ staticClasses22 as datePickerClasses,
464
467
  decreaseSize,
465
468
  defaultCacheKey,
466
469
  defaultEmotionCache,
@@ -473,15 +476,16 @@ export {
473
476
  staticClasses8 as dialogClasses,
474
477
  default25 as dialogContentClasses,
475
478
  default24 as dialogTitleClasses,
476
- staticClasses12 as dotPaginationClasses,
477
- staticClasses10 as dropDownMenuClasses,
479
+ staticClasses13 as dotPaginationClasses,
480
+ staticClasses9 as drawerClasses,
481
+ staticClasses11 as dropDownMenuClasses,
478
482
  default65 as dropdownClasses,
479
483
  ds3,
480
484
  ds5,
481
485
  default27 as emptyStateClasses,
482
486
  default60 as fileClasses,
483
487
  default59 as fileUploaderPreviewClasses,
484
- staticClasses20 as filterGroupClasses,
488
+ staticClasses21 as filterGroupClasses,
485
489
  findDescriptors,
486
490
  default7 as focusClasses,
487
491
  default28 as footerClasses,
@@ -507,7 +511,7 @@ export {
507
511
  default30 as headerClasses,
508
512
  default33 as headerNavigationClasses,
509
513
  default102 as hexToRgbA,
510
- staticClasses24 as horizontalScrollListItemClasses,
514
+ staticClasses25 as horizontalScrollListItemClasses,
511
515
  hvDateColumn,
512
516
  hvDropdownColumn,
513
517
  hvExpandColumn,
@@ -522,8 +526,8 @@ export {
522
526
  default101 as iconVariant,
523
527
  increaseSize,
524
528
  default14 as infoMessageClasses,
525
- staticClasses26 as inlineEditorClasses,
526
- staticClasses9 as inputClasses,
529
+ staticClasses27 as inlineEditorClasses,
530
+ staticClasses10 as inputClasses,
527
531
  default103 as isBrowser,
528
532
  isInvalid,
529
533
  isKeycode,
@@ -544,46 +548,46 @@ export {
544
548
  normalizeProgressBar,
545
549
  outlineStyles,
546
550
  default45 as overflowTooltipClasses,
547
- staticClasses11 as paginationClasses,
551
+ staticClasses12 as paginationClasses,
548
552
  default38 as panelClasses,
549
553
  prepareRow,
550
554
  processThemes,
551
555
  default39 as progressBarClasses,
552
- staticClasses28 as queryBuilderClasses,
556
+ staticClasses29 as queryBuilderClasses,
553
557
  default53 as radioClasses,
554
558
  default58 as radioGroupClasses,
555
559
  reducer,
556
560
  replace$,
557
561
  default87 as rightControlClasses,
558
- staticClasses25 as scrollToHorizontalClasses,
559
- staticClasses23 as scrollToVerticalClasses,
562
+ staticClasses26 as scrollToHorizontalClasses,
563
+ staticClasses24 as scrollToVerticalClasses,
560
564
  default16 as selectionListClasses,
561
565
  setElementAttrs,
562
566
  setId,
563
567
  setUid,
564
568
  default98 as sliderClasses,
565
- staticClasses15 as snackbarClasses,
566
- staticClasses17 as snackbarContentClasses,
567
- staticClasses16 as snackbarProviderClasses,
569
+ staticClasses16 as snackbarClasses,
570
+ staticClasses18 as snackbarContentClasses,
571
+ staticClasses17 as snackbarProviderClasses,
568
572
  default40 as stackClasses,
569
573
  default17 as suggestionsClasses,
570
574
  default52 as switchClasses,
571
575
  default41 as tabClasses,
572
576
  default68 as tableBodyClasses,
573
- staticClasses19 as tableCellClasses,
577
+ staticClasses20 as tableCellClasses,
574
578
  default66 as tableClasses,
575
579
  default67 as tableContainerClasses,
576
580
  default69 as tableHeadClasses,
577
581
  default70 as tableHeaderClasses,
578
- staticClasses18 as tableRowClasses,
582
+ staticClasses19 as tableRowClasses,
579
583
  default42 as tabsClasses,
580
584
  default43 as tagClasses,
581
585
  default55 as tagsInputClasses,
582
586
  default54 as textAreaClasses,
583
587
  theme,
584
588
  themes,
585
- staticClasses27 as timeAgoClasses,
586
- staticClasses31 as timePickerClasses,
589
+ staticClasses28 as timeAgoClasses,
590
+ staticClasses32 as timePickerClasses,
587
591
  default44 as tooltipClasses,
588
592
  default96 as treeViewClasses,
589
593
  default97 as treeViewItemClasses,
@@ -622,7 +626,7 @@ export {
622
626
  default91 as verticalNavigationHeaderClasses,
623
627
  default95 as verticalNavigationSliderClasses,
624
628
  default94 as verticalNavigationTreeClasses,
625
- staticClasses22 as verticalScrollListItemClasses,
629
+ staticClasses23 as verticalScrollListItemClasses,
626
630
  default15 as warningTextClasses,
627
631
  default107 as withTooltip,
628
632
  wrapperTooltip
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}