@hitachivantara/uikit-react-core 5.1.2 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/cjs/components/Button/Button.styles.cjs +6 -6
  2. package/dist/cjs/components/Button/Button.styles.cjs.map +1 -1
  3. package/dist/cjs/components/Card/Card.styles.cjs.map +1 -1
  4. package/dist/cjs/components/Card/Content/Content.styles.cjs.map +1 -1
  5. package/dist/cjs/components/Card/Header/Header.styles.cjs.map +1 -1
  6. package/dist/cjs/components/Card/Media/Media.styles.cjs.map +1 -1
  7. package/dist/cjs/components/Controls/RightControl/RightControl.cjs +3 -3
  8. package/dist/cjs/components/Controls/RightControl/RightControl.cjs.map +1 -1
  9. package/dist/cjs/components/FilterGroup/Counter/Counter.cjs +51 -0
  10. package/dist/cjs/components/FilterGroup/Counter/Counter.cjs.map +1 -0
  11. package/dist/cjs/components/FilterGroup/Counter/Counter.styles.cjs +17 -0
  12. package/dist/cjs/components/FilterGroup/Counter/Counter.styles.cjs.map +1 -0
  13. package/dist/cjs/components/FilterGroup/FilterContent/FilterContent.cjs +168 -0
  14. package/dist/cjs/components/FilterGroup/FilterContent/FilterContent.cjs.map +1 -0
  15. package/dist/cjs/components/FilterGroup/FilterContent/FilterContent.styles.cjs +60 -0
  16. package/dist/cjs/components/FilterGroup/FilterContent/FilterContent.styles.cjs.map +1 -0
  17. package/dist/cjs/components/FilterGroup/FilterContent/filterContentClasses.cjs +8 -0
  18. package/dist/cjs/components/FilterGroup/FilterContent/filterContentClasses.cjs.map +1 -0
  19. package/dist/cjs/components/FilterGroup/FilterGroup.cjs +116 -0
  20. package/dist/cjs/components/FilterGroup/FilterGroup.cjs.map +1 -0
  21. package/dist/cjs/components/FilterGroup/FilterGroup.styles.cjs +14 -0
  22. package/dist/cjs/components/FilterGroup/FilterGroup.styles.cjs.map +1 -0
  23. package/dist/cjs/components/FilterGroup/FilterGroupContext.cjs +69 -0
  24. package/dist/cjs/components/FilterGroup/FilterGroupContext.cjs.map +1 -0
  25. package/dist/cjs/components/FilterGroup/LeftPanel/LeftPanel.cjs +52 -0
  26. package/dist/cjs/components/FilterGroup/LeftPanel/LeftPanel.cjs.map +1 -0
  27. package/dist/cjs/components/FilterGroup/LeftPanel/LeftPanel.styles.cjs +10 -0
  28. package/dist/cjs/components/FilterGroup/LeftPanel/LeftPanel.styles.cjs.map +1 -0
  29. package/dist/cjs/components/FilterGroup/RightPanel/RightPanel.cjs +135 -0
  30. package/dist/cjs/components/FilterGroup/RightPanel/RightPanel.cjs.map +1 -0
  31. package/dist/cjs/components/FilterGroup/RightPanel/RightPanel.styles.cjs +34 -0
  32. package/dist/cjs/components/FilterGroup/RightPanel/RightPanel.styles.cjs.map +1 -0
  33. package/dist/cjs/components/FilterGroup/filterGroupClasses.cjs +8 -0
  34. package/dist/cjs/components/FilterGroup/filterGroupClasses.cjs.map +1 -0
  35. package/dist/cjs/components/MultiButton/MultiButton.styles.cjs +22 -6
  36. package/dist/cjs/components/MultiButton/MultiButton.styles.cjs.map +1 -1
  37. package/dist/cjs/components/VerticalNavigation/Actions/Action.styles.cjs +2 -5
  38. package/dist/cjs/components/VerticalNavigation/Actions/Action.styles.cjs.map +1 -1
  39. package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs +6 -0
  40. package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs.map +1 -1
  41. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs +2 -2
  42. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs.map +1 -1
  43. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +4 -7
  44. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.styles.cjs.map +1 -1
  45. package/dist/cjs/index.cjs +6 -0
  46. package/dist/cjs/index.cjs.map +1 -1
  47. package/dist/cjs/utils/useSavedState.cjs +19 -0
  48. package/dist/cjs/utils/useSavedState.cjs.map +1 -0
  49. package/dist/esm/components/Button/Button.styles.js +6 -6
  50. package/dist/esm/components/Button/Button.styles.js.map +1 -1
  51. package/dist/esm/components/Card/Card.styles.js.map +1 -1
  52. package/dist/esm/components/Card/Content/Content.styles.js.map +1 -1
  53. package/dist/esm/components/Card/Header/Header.styles.js.map +1 -1
  54. package/dist/esm/components/Card/Media/Media.styles.js.map +1 -1
  55. package/dist/esm/components/Controls/RightControl/RightControl.js +4 -4
  56. package/dist/esm/components/Controls/RightControl/RightControl.js.map +1 -1
  57. package/dist/esm/components/FilterGroup/Counter/Counter.js +51 -0
  58. package/dist/esm/components/FilterGroup/Counter/Counter.js.map +1 -0
  59. package/dist/esm/components/FilterGroup/Counter/Counter.styles.js +17 -0
  60. package/dist/esm/components/FilterGroup/Counter/Counter.styles.js.map +1 -0
  61. package/dist/esm/components/FilterGroup/FilterContent/FilterContent.js +168 -0
  62. package/dist/esm/components/FilterGroup/FilterContent/FilterContent.js.map +1 -0
  63. package/dist/esm/components/FilterGroup/FilterContent/FilterContent.styles.js +60 -0
  64. package/dist/esm/components/FilterGroup/FilterContent/FilterContent.styles.js.map +1 -0
  65. package/dist/esm/components/FilterGroup/FilterContent/filterContentClasses.js +8 -0
  66. package/dist/esm/components/FilterGroup/FilterContent/filterContentClasses.js.map +1 -0
  67. package/dist/esm/components/FilterGroup/FilterGroup.js +116 -0
  68. package/dist/esm/components/FilterGroup/FilterGroup.js.map +1 -0
  69. package/dist/esm/components/FilterGroup/FilterGroup.styles.js +14 -0
  70. package/dist/esm/components/FilterGroup/FilterGroup.styles.js.map +1 -0
  71. package/dist/esm/components/FilterGroup/FilterGroupContext.js +67 -0
  72. package/dist/esm/components/FilterGroup/FilterGroupContext.js.map +1 -0
  73. package/dist/esm/components/FilterGroup/LeftPanel/LeftPanel.js +52 -0
  74. package/dist/esm/components/FilterGroup/LeftPanel/LeftPanel.js.map +1 -0
  75. package/dist/esm/components/FilterGroup/LeftPanel/LeftPanel.styles.js +10 -0
  76. package/dist/esm/components/FilterGroup/LeftPanel/LeftPanel.styles.js.map +1 -0
  77. package/dist/esm/components/FilterGroup/RightPanel/RightPanel.js +133 -0
  78. package/dist/esm/components/FilterGroup/RightPanel/RightPanel.js.map +1 -0
  79. package/dist/esm/components/FilterGroup/RightPanel/RightPanel.styles.js +34 -0
  80. package/dist/esm/components/FilterGroup/RightPanel/RightPanel.styles.js.map +1 -0
  81. package/dist/esm/components/FilterGroup/filterGroupClasses.js +8 -0
  82. package/dist/esm/components/FilterGroup/filterGroupClasses.js.map +1 -0
  83. package/dist/esm/components/MultiButton/MultiButton.styles.js +22 -6
  84. package/dist/esm/components/MultiButton/MultiButton.styles.js.map +1 -1
  85. package/dist/esm/components/VerticalNavigation/Actions/Action.styles.js +2 -5
  86. package/dist/esm/components/VerticalNavigation/Actions/Action.styles.js.map +1 -1
  87. package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js +6 -0
  88. package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js.map +1 -1
  89. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js +2 -2
  90. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  91. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.styles.js +4 -7
  92. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -1
  93. package/dist/esm/index.js +24 -18
  94. package/dist/esm/index.js.map +1 -1
  95. package/dist/esm/utils/useSavedState.js +19 -0
  96. package/dist/esm/utils/useSavedState.js.map +1 -0
  97. package/dist/types/index.d.ts +135 -0
  98. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styles.js","sources":["../../../../src/components/Button/Button.styles.ts"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\nimport { outlineStyles } from \"@core/utils\";\nimport { transientOptions } from \"@core/utils/transientOptions\";\nimport { HvButtonRadius, HvButtonSize, HvButtonVariant } from \".\";\n\nexport interface StyledButtonProps {\n $radius?: HvButtonRadius;\n $size?: HvButtonSize;\n $variant?: HvButtonVariant;\n $iconOnly?: Boolean;\n $overrideIconColors?: Boolean;\n $disabled?: Boolean;\n}\n\nexport const StyledContentDiv = styled.div<{}>({\n display: \"flex\",\n alignItems: \"center\",\n height: \"100%\",\n overflow: \"visible\",\n});\n\nexport const StyledIconSpan = styled.span<{}>({\n marginRight: theme.button.marginIconRight,\n marginLeft: theme.button.marginIconLeft,\n});\n\nexport const StyledChildren = styled.span<{}>({\n whiteSpace: \"nowrap\",\n display: \"flex\",\n});\n\nexport const StyledButton = styled(\n \"button\",\n transientOptions\n)(\n ({\n $variant,\n $iconOnly,\n $size,\n $radius,\n $overrideIconColors,\n $disabled,\n }: StyledButtonProps) => ({\n display: \"inline-flex\",\n justifyContent: \"center\",\n textTransform: \"none\",\n cursor: $disabled ? \"not-allowed\" : \"pointer\",\n ...($disabled && {\n pointerEvents: \"auto\",\n }),\n \"&:hover\": {},\n \"&:focus\": {},\n \"&.HvIsFocusVisible\": {\n ...outlineStyles,\n },\n \"&:active\": {},\n\n // default button - no size specified\n fontFamily: theme.fontFamily.body,\n fontSize: theme.fontSizes.base,\n fontWeight: 600,\n lineHeight: \"11px\",\n letterSpacing: 0,\n height: \"32px\",\n borderRadius: theme.button.borderRadius,\n padding: theme.button.padding,\n\n ...($overrideIconColors &&\n $variant === \"primary\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.atmo1,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"primarySubtle\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.primary,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"primaryGhost\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.primary,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"secondarySubtle\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.secondary,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"secondaryGhost\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.secondary,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"semantic\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.base_dark,\n },\n }),\n ...($variant === \"primary\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.atmo1,\n backgroundColor: $disabled ? theme.colors.atmo3 : theme.colors.primary,\n \"&:hover\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.colors.primary_80,\n },\n \"&:focus-visible\": {\n backgroundColor: theme.colors.primary_80,\n },\n }),\n ...($variant === \"primarySubtle\" && {\n backgroundColor: $disabled ? theme.colors.atmo3 : \"transparent\",\n border: $disabled\n ? `1px solid ${theme.colors.atmo4}`\n : `1px solid ${theme.colors.primary}`,\n color: $disabled ? theme.colors.secondary_60 : theme.colors.primary,\n \"&:hover\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.hoverColor,\n },\n \"&:focus-visible\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.hoverColor,\n },\n }),\n ...($variant === \"primaryGhost\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.primary,\n backgroundColor: \"transparent\",\n \"&:hover\": {\n backgroundColor: $disabled ? \"transparent\" : theme.button.hoverColor,\n },\n \"&:focus-visible\": {\n backgroundColor: $disabled ? \"transparent\" : theme.button.hoverColor,\n },\n }),\n ...($variant === \"secondarySubtle\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.secondary,\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.secondaryBackgroundColor,\n border: $disabled\n ? `1px solid ${theme.colors.atmo4}`\n : `1px solid ${theme.colors.atmo4}`,\n \"&:hover\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.hoverColor,\n border: `1px solid ${theme.colors.atmo4}`,\n },\n \"&:focus-visible\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.hoverColor,\n },\n }),\n ...($variant === \"secondaryGhost\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.secondary,\n backgroundColor: \"transparent\",\n \"&:hover\": {\n backgroundColor: $disabled ? \"transparent\" : theme.button.hoverColor,\n },\n \"&:focus-visible\": {\n backgroundColor: $disabled ? \"transparent\" : theme.button.hoverColor,\n },\n }),\n ...($variant === \"semantic\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.base_dark,\n backgroundColor: $disabled\n ? theme.button.semanticColorDisabled\n : \"transparent\",\n \"&:hover\": {\n backgroundColor: theme.button.semanticColor,\n },\n }),\n ...($size === \"xs\" && {\n height: theme.sizes.xs,\n paddingLeft: theme.space.xs,\n paddingRight: theme.space.xs,\n fontSize: theme.fontSizes.xs,\n }),\n ...($size === \"sm\" && {\n height: theme.sizes.sm,\n paddingLeft: theme.space.sm,\n paddingRight: theme.space.sm,\n fontSize: theme.fontSizes.sm,\n }),\n ...($size === \"md\" && {\n height: theme.sizes.md,\n paddingLeft: theme.space.md,\n paddingRight: theme.space.md,\n }),\n ...($size === \"lg\" && {\n height: theme.sizes.lg,\n paddingLeft: theme.space.lg,\n paddingRight: theme.space.lg,\n fontSize: theme.fontSizes.lg,\n }),\n ...($size === \"xl\" && {\n height: theme.sizes.xl,\n paddingLeft: theme.space.xl,\n paddingRight: theme.space.xl,\n fontSize: theme.fontSizes.xl,\n }),\n ...($radius === \"none\" && { borderRadius: theme.radii.none }),\n ...($radius === \"base\" && { borderRadius: theme.radii.base }),\n ...($radius === \"round\" && { borderRadius: theme.radii.round }),\n ...($radius === \"circle\" && { borderRadius: theme.radii.circle }),\n ...($radius === \"full\" && { borderRadius: theme.radii.full }),\n ...($iconOnly && {\n margin: 0,\n padding: 0,\n }),\n ...(!$iconOnly && {\n minWidth: \"70px\",\n }),\n })\n);\n"],"names":["StyledContentDiv","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","StyledIconSpan","marginRight","theme","button","marginIconRight","marginLeft","marginIconLeft","StyledChildren","StyledButton","_extends","transientOptions","$variant","$iconOnly","$size","$radius","$overrideIconColors","$disabled","display","justifyContent","textTransform","cursor","pointerEvents","outlineStyles","fontFamily","body","fontSize","fontSizes","base","fontWeight","lineHeight","letterSpacing","height","borderRadius","padding","fill","colors","secondary_60","atmo1","primary","secondary","base_dark","color","backgroundColor","atmo3","primary_80","border","atmo4","hoverColor","secondaryBackgroundColor","semanticColorDisabled","semanticColor","sizes","xs","paddingLeft","space","paddingRight","sm","md","lg","xl","radii","none","round","circle","full","margin","minWidth"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAeO,MAAMA,kDAAmBC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAU,EAAIJ,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAG,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA,CAK5C;AAEK,MAAMC,iDAAiBV,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAAgB;AAAA,EAC5CO,aAAaC,MAAMC,OAAOC;AAAAA,EAC1BC,YAAYH,MAAMC,OAAOG;AAC3B,GAAChB,QAAAC,IAAAC,aAAC,eAAA,KAAA,i3TAAA;AAEK,MAAMe,iDAAiBjB,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAW,EAAIJ,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAG,MAAA;AAAA,EAAAC,QA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AAA,IACzBJ,cAAcrD,MAAMoD,MAAMK;AAAAA,IAC1BlC,UAAUvB,MAAMwB,UAAUiC;AAAAA,EAC5B;AAAA,EACA,GAAI7C,YAAY,UAAU;AAAA,IAAEkB,cAAc9B,MAAM0D,MAAMC;AAAAA,EAAK;AAAA,EAC3D,GAAI/C,YAAY,UAAU;AAAA,IAAEkB,cAAc9B,MAAM0D,MAAMjC;AAAAA,EAAK;AAAA,EAC3D,GAAIb,YAAY,WAAW;AAAA,IAAEkB,cAAc9B,MAAM0D,MAAME;AAAAA,EAAM;AAAA,EAC7D,GAAIhD,YAAY,YAAY;AAAA,IAAEkB,cAAc9B,MAAM0D,MAAMG;AAAAA,EAAO;AAAA,EAC/D,GAAIjD,YAAY,UAAU;AAAA,IAAEkB,cAAc9B,MAAM0D,MAAMI;AAAAA,EAAK;AAAA,EAC3D,GAAIpD,aAAa;AAAA,IACfqD,QAAQ;AAAA,IACRhC,SAAS;AAAA,EACX;AAAA,EACA,GAAI,CAACrB,aAAa;AAAA,IAChBsD,UAAU;AAAA,EACZ;AACF,IAAE5E,QAAAC,IAAAC,aACH,eAAA,KAAA,i3TAAA;"}
1
+ {"version":3,"file":"Button.styles.js","sources":["../../../../src/components/Button/Button.styles.ts"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\nimport { outlineStyles } from \"@core/utils\";\nimport { transientOptions } from \"@core/utils/transientOptions\";\nimport { HvButtonRadius, HvButtonSize, HvButtonVariant } from \".\";\n\nexport interface StyledButtonProps {\n $radius?: HvButtonRadius;\n $size?: HvButtonSize;\n $variant?: HvButtonVariant;\n $iconOnly?: Boolean;\n $overrideIconColors?: Boolean;\n $disabled?: Boolean;\n}\n\nexport const StyledContentDiv = styled.div<{}>({\n display: \"flex\",\n alignItems: \"center\",\n height: \"100%\",\n overflow: \"visible\",\n});\n\nexport const StyledIconSpan = styled.span<{}>({\n marginRight: theme.button.marginIconRight,\n marginLeft: theme.button.marginIconLeft,\n});\n\nexport const StyledChildren = styled.span<{}>({\n whiteSpace: \"nowrap\",\n display: \"flex\",\n});\n\nexport const StyledButton = styled(\n \"button\",\n transientOptions\n)(\n ({\n $variant,\n $iconOnly,\n $size,\n $radius,\n $overrideIconColors,\n $disabled,\n }: StyledButtonProps) => ({\n display: \"inline-flex\",\n justifyContent: \"center\",\n textTransform: \"none\",\n cursor: $disabled ? \"not-allowed\" : \"pointer\",\n ...($disabled && {\n pointerEvents: \"auto\",\n }),\n \"&:hover\": {},\n \"&:focus\": {},\n \"&.HvIsFocusVisible\": {\n ...outlineStyles,\n },\n \"&:active\": {},\n\n // default button - no size specified\n fontFamily: theme.fontFamily.body,\n fontSize: theme.fontSizes.base,\n fontWeight: 600,\n lineHeight: \"11px\",\n letterSpacing: 0,\n height: \"32px\",\n borderRadius: theme.button.borderRadius,\n padding: theme.button.padding,\n\n ...($overrideIconColors &&\n $variant === \"primary\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.atmo1,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"primarySubtle\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.primary,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"primaryGhost\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.primary,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"secondarySubtle\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.secondary,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"secondaryGhost\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.secondary,\n },\n }),\n ...($overrideIconColors &&\n $variant === \"semantic\" && {\n \"& svg .color0\": {\n fill: $disabled ? theme.colors.secondary_60 : theme.colors.base_dark,\n },\n }),\n ...($variant === \"primary\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.atmo1,\n backgroundColor: $disabled ? theme.colors.atmo3 : theme.colors.primary,\n \"&:hover\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.colors.primary_80,\n },\n \"&:focus-visible\": {\n backgroundColor: theme.colors.primary_80,\n },\n }),\n ...($variant === \"primarySubtle\" && {\n backgroundColor: $disabled ? theme.colors.atmo3 : \"transparent\",\n border: $disabled\n ? `1px solid ${theme.colors.atmo4}`\n : `1px solid ${theme.colors.primary}`,\n color: $disabled ? theme.colors.secondary_60 : theme.colors.primary,\n \"&:hover\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.hoverColor,\n },\n \"&:focus-visible\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.hoverColor,\n },\n }),\n ...($variant === \"primaryGhost\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.primary,\n backgroundColor: \"transparent\",\n \"&:hover\": {\n backgroundColor: $disabled ? \"transparent\" : theme.button.hoverColor,\n },\n \"&:focus-visible\": {\n backgroundColor: $disabled ? \"transparent\" : theme.button.hoverColor,\n },\n }),\n ...($variant === \"secondarySubtle\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.secondary,\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.secondaryBackgroundColor,\n border: $disabled\n ? `1px solid ${theme.colors.atmo4}`\n : `1px solid ${theme.button.secondarySubtleBorderColor}`,\n \"&:hover\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.hoverColor,\n border: $disabled\n ? `1px solid ${theme.colors.atmo4}`\n : `1px solid ${theme.button.secondarySubtleBorderColor}`,\n },\n \"&:focus-visible\": {\n backgroundColor: $disabled\n ? theme.colors.atmo3\n : theme.button.hoverColor,\n },\n }),\n ...($variant === \"secondaryGhost\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.secondary,\n backgroundColor: \"transparent\",\n \"&:hover\": {\n backgroundColor: $disabled ? \"transparent\" : theme.button.hoverColor,\n },\n \"&:focus-visible\": {\n backgroundColor: $disabled ? \"transparent\" : theme.button.hoverColor,\n },\n }),\n ...($variant === \"semantic\" && {\n color: $disabled ? theme.colors.secondary_60 : theme.colors.base_dark,\n backgroundColor: $disabled\n ? theme.button.semanticColorDisabled\n : \"transparent\",\n \"&:hover\": {\n backgroundColor: theme.button.semanticColor,\n },\n }),\n ...($size === \"xs\" && {\n height: theme.sizes.xs,\n paddingLeft: theme.space.xs,\n paddingRight: theme.space.xs,\n fontSize: theme.fontSizes.xs,\n }),\n ...($size === \"sm\" && {\n height: theme.sizes.sm,\n paddingLeft: theme.space.sm,\n paddingRight: theme.space.sm,\n fontSize: theme.fontSizes.sm,\n }),\n ...($size === \"md\" && {\n height: theme.sizes.md,\n paddingLeft: theme.space.md,\n paddingRight: theme.space.md,\n }),\n ...($size === \"lg\" && {\n height: theme.sizes.lg,\n paddingLeft: theme.space.lg,\n paddingRight: theme.space.lg,\n fontSize: theme.fontSizes.lg,\n }),\n ...($size === \"xl\" && {\n height: theme.sizes.xl,\n paddingLeft: theme.space.xl,\n paddingRight: theme.space.xl,\n fontSize: theme.fontSizes.xl,\n }),\n ...($radius === \"none\" && { borderRadius: theme.radii.none }),\n ...($radius === \"base\" && { borderRadius: theme.radii.base }),\n ...($radius === \"round\" && { borderRadius: theme.radii.round }),\n ...($radius === \"circle\" && { borderRadius: theme.radii.circle }),\n ...($radius === \"full\" && { borderRadius: theme.radii.full }),\n ...($iconOnly && {\n margin: 0,\n padding: 0,\n }),\n ...(!$iconOnly && {\n minWidth: \"70px\",\n }),\n })\n);\n"],"names":["StyledContentDiv","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","StyledIconSpan","marginRight","theme","button","marginIconRight","marginLeft","marginIconLeft","StyledChildren","StyledButton","_extends","transientOptions","$variant","$iconOnly","$size","$radius","$overrideIconColors","$disabled","display","justifyContent","textTransform","cursor","pointerEvents","outlineStyles","fontFamily","body","fontSize","fontSizes","base","fontWeight","lineHeight","letterSpacing","height","borderRadius","padding","fill","colors","secondary_60","atmo1","primary","secondary","base_dark","color","backgroundColor","atmo3","primary_80","border","atmo4","hoverColor","secondaryBackgroundColor","secondarySubtleBorderColor","semanticColorDisabled","semanticColor","sizes","xs","paddingLeft","space","paddingRight","sm","md","lg","xl","radii","none","round","circle","full","margin","minWidth"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAeO,MAAMA,kDAAmBC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAU,EAAIJ,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAG,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA,CAK5C;AAEK,MAAMC,iDAAiBV,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAAgB;AAAA,EAC5CO,aAAaC,MAAMC,OAAOC;AAAAA,EAC1BC,YAAYH,MAAMC,OAAOG;AAC3B,GAAChB,QAAAC,IAAAC,aAAC,eAAA,KAAA,ygUAAA;AAEK,MAAMe,iDAAiBjB,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAW,EAAIJ,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAG,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA,CAG3C;AAEWS,MAAAA,uCACX,UAAQlB,QAAAC,IAAAC,4BAAAiB,SAAA,IAAA;AAAA,EAAAhB,QAAA;AAAA,GACRiB,gBAAgB,IAAAD,SAAA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UAAU;AAAA,IAAEkB,cAAc9B,MAAM2D,MAAMlC;AAAAA,EAAK;AAAA,EAC3D,GAAIb,YAAY,WAAW;AAAA,IAAEkB,cAAc9B,MAAM2D,MAAME;AAAAA,EAAM;AAAA,EAC7D,GAAIjD,YAAY,YAAY;AAAA,IAAEkB,cAAc9B,MAAM2D,MAAMG;AAAAA,EAAO;AAAA,EAC/D,GAAIlD,YAAY,UAAU;AAAA,IAAEkB,cAAc9B,MAAM2D,MAAMI;AAAAA,EAAK;AAAA,EAC3D,GAAIrD,aAAa;AAAA,IACfsD,QAAQ;AAAA,IACRjC,SAAS;AAAA,EACX;AAAA,EACA,GAAI,CAACrB,aAAa;AAAA,IAChBuD,UAAU;AAAA,EACZ;AACF,IAAE7E,QAAAC,IAAAC,aACH,eAAA,KAAA,ygUAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.styles.js","sources":["../../../../src/components/Card/Card.styles.tsx"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/serialize\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\nimport { outlineStyles } from \"@core/utils/focusUtils\";\n\nexport const styles: { [key: string]: CSSInterpolation } = {\n root: {\n overflow: \"visible\",\n position: \"relative\",\n outline: theme.card.outline,\n borderRadius: theme.card.borderRadius,\n \"&.focus-visible\": {\n ...outlineStyles,\n },\n \"&:focus\": {\n outline: \"none\",\n },\n },\n selected: {\n outline: `1px solid ${theme.colors.secondary}`,\n \"&:hover\": {\n outline: `1px solid ${theme.colors.secondary}`,\n },\n \"&:focus\": {\n outline: `1px solid ${theme.colors.secondary}`,\n },\n },\n selectable: {\n \"&:hover\": {\n outline: `1px solid ${theme.card.hoverColor}`,\n },\n },\n semanticContainer: {\n position: \"relative\",\n \"& > *\": {\n position: \"absolute\",\n zIndex: 1,\n },\n },\n icon: {\n top: `calc(${theme.card.iconMargin} + ${theme.space.xs})`,\n right: `calc(${theme.card.iconMargin} + ${theme.space.xs})`,\n },\n semanticBar: {\n width: \"100%\",\n top: -1,\n right: 0,\n },\n};\n"],"names":["styles","root","overflow","position","outline","theme","card","borderRadius","outlineStyles","selected","colors","secondary","selectable","hoverColor","semanticContainer","zIndex","icon","top","iconMargin","space","xs","right","semanticBar","width"],"mappings":";;AAIO,MAAMA,SAA8C;AAAA,EACzDC,MAAM;AAAA,IACJC,UAAU;AAAA,IACVC,UAAU;AAAA,IACVC,SAASC,MAAMC,KAAKF;AAAAA,IACpBG,cAAcF,MAAMC,KAAKC;AAAAA,IACzB,mBAAmB;AAAA,MACjB,GAAGC;AAAAA,IACL;AAAA,IACA,WAAW;AAAA,MACTJ,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACAK,UAAU;AAAA,IACRL,SAAU,aAAYC,MAAMK,OAAOC;AAAAA,IACnC,WAAW;AAAA,MACTP,SAAU,aAAYC,MAAMK,OAAOC;AAAAA,IACrC;AAAA,IACA,WAAW;AAAA,MACTP,SAAU,aAAYC,MAAMK,OAAOC;AAAAA,IACrC;AAAA,EACF;AAAA,EACAC,YAAY;AAAA,IACV,WAAW;AAAA,MACTR,SAAU,aAAYC,MAAMC,KAAKO;AAAAA,IACnC;AAAA,EACF;AAAA,EACAC,mBAAmB;AAAA,IACjBX,UAAU;AAAA,IACV,SAAS;AAAA,MACPA,UAAU;AAAA,MACVY,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACAC,MAAM;AAAA,IACJC,KAAM,QAAOZ,MAAMC,KAAKY,gBAAgBb,MAAMc,MAAMC;AAAAA,IACpDC,OAAQ,QAAOhB,MAAMC,KAAKY,gBAAgBb,MAAMc,MAAMC;AAAAA,EACxD;AAAA,EACAE,aAAa;AAAA,IACXC,OAAO;AAAA,IACPN,KAAK;AAAA,IACLI,OAAO;AAAA,EACT;AACF;"}
1
+ {"version":3,"file":"Card.styles.js","sources":["../../../../src/components/Card/Card.styles.tsx"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/serialize\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\nimport { outlineStyles } from \"@core/utils/focusUtils\";\n\nexport const styles: {\n root: CSSInterpolation;\n selected: CSSInterpolation;\n selectable: CSSInterpolation;\n semanticContainer: CSSInterpolation;\n icon: CSSInterpolation;\n semanticBar: CSSInterpolation;\n} = {\n root: {\n overflow: \"visible\",\n position: \"relative\",\n outline: theme.card.outline,\n borderRadius: theme.card.borderRadius,\n \"&.focus-visible\": {\n ...outlineStyles,\n },\n \"&:focus\": {\n outline: \"none\",\n },\n },\n selected: {\n outline: `1px solid ${theme.colors.secondary}`,\n \"&:hover\": {\n outline: `1px solid ${theme.colors.secondary}`,\n },\n \"&:focus\": {\n outline: `1px solid ${theme.colors.secondary}`,\n },\n },\n selectable: {\n \"&:hover\": {\n outline: `1px solid ${theme.card.hoverColor}`,\n },\n },\n semanticContainer: {\n position: \"relative\",\n \"& > *\": {\n position: \"absolute\",\n zIndex: 1,\n },\n },\n icon: {\n top: `calc(${theme.card.iconMargin} + ${theme.space.xs})`,\n right: `calc(${theme.card.iconMargin} + ${theme.space.xs})`,\n },\n semanticBar: {\n width: \"100%\",\n top: -1,\n right: 0,\n },\n};\n"],"names":["styles","root","overflow","position","outline","theme","card","borderRadius","outlineStyles","selected","colors","secondary","selectable","hoverColor","semanticContainer","zIndex","icon","top","iconMargin","space","xs","right","semanticBar","width"],"mappings":";;AAIO,MAAMA,SAOT;AAAA,EACFC,MAAM;AAAA,IACJC,UAAU;AAAA,IACVC,UAAU;AAAA,IACVC,SAASC,MAAMC,KAAKF;AAAAA,IACpBG,cAAcF,MAAMC,KAAKC;AAAAA,IACzB,mBAAmB;AAAA,MACjB,GAAGC;AAAAA,IACL;AAAA,IACA,WAAW;AAAA,MACTJ,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACAK,UAAU;AAAA,IACRL,SAAU,aAAYC,MAAMK,OAAOC;AAAAA,IACnC,WAAW;AAAA,MACTP,SAAU,aAAYC,MAAMK,OAAOC;AAAAA,IACrC;AAAA,IACA,WAAW;AAAA,MACTP,SAAU,aAAYC,MAAMK,OAAOC;AAAAA,IACrC;AAAA,EACF;AAAA,EACAC,YAAY;AAAA,IACV,WAAW;AAAA,MACTR,SAAU,aAAYC,MAAMC,KAAKO;AAAAA,IACnC;AAAA,EACF;AAAA,EACAC,mBAAmB;AAAA,IACjBX,UAAU;AAAA,IACV,SAAS;AAAA,MACPA,UAAU;AAAA,MACVY,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACAC,MAAM;AAAA,IACJC,KAAM,QAAOZ,MAAMC,KAAKY,gBAAgBb,MAAMc,MAAMC;AAAAA,IACpDC,OAAQ,QAAOhB,MAAMC,KAAKY,gBAAgBb,MAAMc,MAAMC;AAAAA,EACxD;AAAA,EACAE,aAAa;AAAA,IACXC,OAAO;AAAA,IACPN,KAAK;AAAA,IACLI,OAAO;AAAA,EACT;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Content.styles.js","sources":["../../../../../src/components/Card/Content/Content.styles.tsx"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/serialize\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const styles: { [key: string]: CSSInterpolation } = {\n content: {\n padding: `0 ${theme.space.sm} 15px ${theme.space.sm}`,\n \"&:last-child\": {\n paddingBottom: theme.space.sm,\n },\n },\n};\n"],"names":["styles","content","padding","theme","space","sm","paddingBottom"],"mappings":";AAGO,MAAMA,SAA8C;AAAA,EACzDC,SAAS;AAAA,IACPC,SAAU,KAAIC,MAAMC,MAAMC,WAAWF,MAAMC,MAAMC;AAAAA,IACjD,gBAAgB;AAAA,MACdC,eAAeH,MAAMC,MAAMC;AAAAA,IAC7B;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"Content.styles.js","sources":["../../../../../src/components/Card/Content/Content.styles.tsx"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/serialize\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const styles: { content: CSSInterpolation } = {\n content: {\n padding: `0 ${theme.space.sm} 15px ${theme.space.sm}`,\n \"&:last-child\": {\n paddingBottom: theme.space.sm,\n },\n },\n};\n"],"names":["styles","content","padding","theme","space","sm","paddingBottom"],"mappings":";AAGO,MAAMA,SAAwC;AAAA,EACnDC,SAAS;AAAA,IACPC,SAAU,KAAIC,MAAMC,MAAMC,WAAWF,MAAMC,MAAMC;AAAAA,IACjD,gBAAgB;AAAA,MACdC,eAAeH,MAAMC,MAAMC;AAAAA,IAC7B;AAAA,EACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.styles.js","sources":["../../../../../src/components/Card/Header/Header.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\nimport { CSSInterpolation } from \"@emotion/serialize\";\n\nexport const styles: { [key: string]: CSSInterpolation } = {\n root: { padding: `15px ${theme.space.sm}`, position: \"relative\" },\n titleShort: {\n fontFamily: theme.fontFamily.body,\n marginRight: \"30px\",\n },\n title: {\n fontFamily: theme.fontFamily.body,\n },\n subheader: {\n fontFamily: theme.fontFamily.body,\n },\n action: {\n position: \"absolute\",\n right: 20,\n marginTop: 0,\n marginRight: \"0px\",\n paddingLeft: theme.space.xs,\n top: \"15px\",\n },\n};\n"],"names":["styles","root","padding","theme","space","sm","position","titleShort","fontFamily","body","marginRight","title","subheader","action","right","marginTop","paddingLeft","xs","top"],"mappings":";AAGO,MAAMA,SAA8C;AAAA,EACzDC,MAAM;AAAA,IAAEC,SAAU,QAAOC,MAAMC,MAAMC;AAAAA,IAAMC,UAAU;AAAA,EAAW;AAAA,EAChEC,YAAY;AAAA,IACVC,YAAYL,MAAMK,WAAWC;AAAAA,IAC7BC,aAAa;AAAA,EACf;AAAA,EACAC,OAAO;AAAA,IACLH,YAAYL,MAAMK,WAAWC;AAAAA,EAC/B;AAAA,EACAG,WAAW;AAAA,IACTJ,YAAYL,MAAMK,WAAWC;AAAAA,EAC/B;AAAA,EACAI,QAAQ;AAAA,IACNP,UAAU;AAAA,IACVQ,OAAO;AAAA,IACPC,WAAW;AAAA,IACXL,aAAa;AAAA,IACbM,aAAab,MAAMC,MAAMa;AAAAA,IACzBC,KAAK;AAAA,EACP;AACF;"}
1
+ {"version":3,"file":"Header.styles.js","sources":["../../../../../src/components/Card/Header/Header.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\nimport { CSSInterpolation } from \"@emotion/serialize\";\n\nexport const styles: {\n root: CSSInterpolation;\n titleShort: CSSInterpolation;\n title: CSSInterpolation;\n subheader: CSSInterpolation;\n action: CSSInterpolation;\n} = {\n root: { padding: `15px ${theme.space.sm}`, position: \"relative\" },\n titleShort: {\n fontFamily: theme.fontFamily.body,\n marginRight: \"30px\",\n },\n title: {\n fontFamily: theme.fontFamily.body,\n },\n subheader: {\n fontFamily: theme.fontFamily.body,\n },\n action: {\n position: \"absolute\",\n right: 20,\n marginTop: 0,\n marginRight: \"0px\",\n paddingLeft: theme.space.xs,\n top: \"15px\",\n },\n};\n"],"names":["styles","root","padding","theme","space","sm","position","titleShort","fontFamily","body","marginRight","title","subheader","action","right","marginTop","paddingLeft","xs","top"],"mappings":";AAGO,MAAMA,SAMT;AAAA,EACFC,MAAM;AAAA,IAAEC,SAAU,QAAOC,MAAMC,MAAMC;AAAAA,IAAMC,UAAU;AAAA,EAAW;AAAA,EAChEC,YAAY;AAAA,IACVC,YAAYL,MAAMK,WAAWC;AAAAA,IAC7BC,aAAa;AAAA,EACf;AAAA,EACAC,OAAO;AAAA,IACLH,YAAYL,MAAMK,WAAWC;AAAAA,EAC/B;AAAA,EACAG,WAAW;AAAA,IACTJ,YAAYL,MAAMK,WAAWC;AAAAA,EAC/B;AAAA,EACAI,QAAQ;AAAA,IACNP,UAAU;AAAA,IACVQ,OAAO;AAAA,IACPC,WAAW;AAAA,IACXL,aAAa;AAAA,IACbM,aAAab,MAAMC,MAAMa;AAAAA,IACzBC,KAAK;AAAA,EACP;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Media.styles.js","sources":["../../../../../src/components/Card/Media/Media.styles.tsx"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/serialize\";\n\nexport const styles: { [key: string]: CSSInterpolation } = {\n root: { width: \"100%\" },\n};\n"],"names":["styles","root","width"],"mappings":"AAEO,MAAMA,SAA8C;AAAA,EACzDC,MAAM;AAAA,IAAEC,OAAO;AAAA,EAAO;AACxB;"}
1
+ {"version":3,"file":"Media.styles.js","sources":["../../../../../src/components/Card/Media/Media.styles.tsx"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/serialize\";\n\nexport const styles: { root: CSSInterpolation } = {\n root: { width: \"100%\" },\n};\n"],"names":["styles","root","width"],"mappings":"AAEO,MAAMA,SAAqC;AAAA,EAChDC,MAAM;AAAA,IAAEC,OAAO;AAAA,EAAO;AACxB;"}
@@ -3,7 +3,7 @@ import { useState, useContext } from "react";
3
3
  import { StyledRoot, StyledDropdown } from "./RightControl.styles.js";
4
4
  import rightControlClasses from "./rightControlClasses.js";
5
5
  import { HvControlsContext } from "../context/ControlsContext.js";
6
- import { jsx } from "@emotion/react/jsx-runtime";
6
+ import { jsxs, jsx } from "@emotion/react/jsx-runtime";
7
7
  import { setId } from "../../../utils/setId.js";
8
8
  const HvRightControl = ({
9
9
  id,
@@ -28,18 +28,18 @@ const HvRightControl = ({
28
28
  selected: prevValue.id === value.id
29
29
  })));
30
30
  };
31
- return /* @__PURE__ */ jsx(StyledRoot, {
31
+ return /* @__PURE__ */ jsxs(StyledRoot, {
32
32
  id,
33
33
  className: clsx(className, rightControlClasses.root, classes == null ? void 0 : classes.root),
34
34
  ...others,
35
- children: !hideSortBy && /* @__PURE__ */ jsx(StyledDropdown, {
35
+ children: [!hideSortBy && /* @__PURE__ */ jsx(StyledDropdown, {
36
36
  id: setId(id, "sort-by-dropdown"),
37
37
  values: dropDownValues,
38
38
  className: clsx(rightControlClasses.sortDropdown, classes == null ? void 0 : classes.sortDropdown),
39
39
  onChange: handleChangeSort,
40
40
  singleSelectionToggle: false,
41
41
  ...sortProps
42
- })
42
+ }), children]
43
43
  });
44
44
  };
45
45
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"RightControl.js","sources":["../../../../../src/components/Controls/RightControl/RightControl.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { useContext, useState } from \"react\";\nimport { HvBaseProps } from \"@core/types\";\nimport { setId } from \"@core/utils\";\nimport { HvDropdownProps, HvListValue } from \"@core/components\";\nimport { StyledDropdown, StyledRoot } from \"./RightControl.styles\";\nimport rightControlClasses, {\n HvRightControlClasses,\n} from \"./rightControlClasses\";\nimport { HvControlsContext } from \"../context/ControlsContext\";\n\nexport interface HvRightListControls extends HvListValue {\n accessor: string;\n desc: boolean;\n}\n\nexport interface HvRightControlProps extends HvBaseProps {\n /** if `true` the hide sort by dropdown is not rendered */\n hideSortBy?: boolean;\n /** options for the dropdown to sort */\n values?: HvRightListControls[];\n /** Callback called when a sort action occurs */\n onSort?: (selected: HvRightListControls | undefined) => void;\n /** Extra props passed to dropdown */\n sortProps?: HvDropdownProps;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvRightControlClasses;\n}\n\nexport const HvRightControl = ({\n id,\n classes,\n className,\n children,\n values,\n onSort,\n hideSortBy = false,\n sortProps,\n ...others\n}: HvRightControlProps) => {\n const [dropDownValues, setDropdownValues] = useState(values);\n\n const { onSort: onSortHandler } = useContext(HvControlsContext);\n\n const handleChangeSort = (value) => {\n onSort?.(value);\n onSortHandler?.(value);\n // this should be changed when dropdown changes his \"values\" behavior\n setDropdownValues((prevValues) =>\n prevValues?.map((prevValue) => ({\n ...prevValue,\n selected: prevValue.id === value.id,\n }))\n );\n };\n\n return (\n <StyledRoot\n id={id}\n className={clsx(className, rightControlClasses.root, classes?.root)}\n {...others}\n >\n {!hideSortBy && (\n <StyledDropdown\n id={setId(id, \"sort-by-dropdown\")}\n values={dropDownValues}\n className={clsx(\n rightControlClasses.sortDropdown,\n classes?.sortDropdown\n )}\n onChange={handleChangeSort}\n singleSelectionToggle={false}\n {...sortProps}\n />\n )}\n </StyledRoot>\n );\n};\n"],"names":["HvRightControl","id","classes","className","children","values","onSort","hideSortBy","sortProps","others","dropDownValues","setDropdownValues","useState","onSortHandler","useContext","HvControlsContext","handleChangeSort","value","prevValues","map","prevValue","selected","StyledRoot","clsx","rightControlClasses","root","_jsx","StyledDropdown","setId","sortDropdown","onChange","singleSelectionToggle"],"mappings":";;;;;;;AA6BO,MAAMA,iBAAiBA,CAAC;AAAA,EAC7BC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC,aAAa;AAAA,EACbC;AAAAA,EACA,GAAGC;AACgB,MAAM;AACzB,QAAM,CAACC,gBAAgBC,iBAAiB,IAAIC,SAASP,MAAM;AAErD,QAAA;AAAA,IAAEC,QAAQO;AAAAA,EAAAA,IAAkBC,WAAWC,iBAAiB;AAE9D,QAAMC,mBAAoBC,CAAU,UAAA;AAClCX,qCAASW;AACTJ,mDAAgBI;AAEGC,sBAAAA,CAAAA,eACjBA,yCAAYC,IAAKC,CAAe,eAAA;AAAA,MAC9B,GAAGA;AAAAA,MACHC,UAAUD,UAAUnB,OAAOgB,MAAMhB;AAAAA,OAChC;AAAA,EAAA;AAIP,6BACGqB,YAAU;AAAA,IACTrB;AAAAA,IACAE,WAAWoB,KAAKpB,WAAWqB,oBAAoBC,MAAMvB,mCAASuB,IAAI;AAAA,IAAE,GAChEhB;AAAAA,IAAML,UAET,CAACG,cACAmB,oBAACC,gBAAc;AAAA,MACb1B,IAAI2B,MAAM3B,IAAI,kBAAkB;AAAA,MAChCI,QAAQK;AAAAA,MACRP,WAAWoB,KACTC,oBAAoBK,cACpB3B,mCAAS2B,YAAY;AAAA,MAEvBC,UAAUd;AAAAA,MACVe,uBAAuB;AAAA,MAAM,GACzBvB;AAAAA,IAAAA,CAAS;AAAA,EAAA,CAGN;AAEjB;"}
1
+ {"version":3,"file":"RightControl.js","sources":["../../../../../src/components/Controls/RightControl/RightControl.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { useContext, useState } from \"react\";\nimport { HvBaseProps } from \"@core/types\";\nimport { setId } from \"@core/utils\";\nimport { HvDropdownProps, HvListValue } from \"@core/components\";\nimport { StyledDropdown, StyledRoot } from \"./RightControl.styles\";\nimport rightControlClasses, {\n HvRightControlClasses,\n} from \"./rightControlClasses\";\nimport { HvControlsContext } from \"../context/ControlsContext\";\n\nexport interface HvRightListControls extends HvListValue {\n accessor: string;\n desc: boolean;\n}\n\nexport interface HvRightControlProps extends HvBaseProps {\n /** if `true` the hide sort by dropdown is not rendered */\n hideSortBy?: boolean;\n /** options for the dropdown to sort */\n values?: HvRightListControls[];\n /** Callback called when a sort action occurs */\n onSort?: (selected: HvRightListControls | undefined) => void;\n /** Extra props passed to dropdown */\n sortProps?: HvDropdownProps;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvRightControlClasses;\n}\n\nexport const HvRightControl = ({\n id,\n classes,\n className,\n children,\n values,\n onSort,\n hideSortBy = false,\n sortProps,\n ...others\n}: HvRightControlProps) => {\n const [dropDownValues, setDropdownValues] = useState(values);\n\n const { onSort: onSortHandler } = useContext(HvControlsContext);\n\n const handleChangeSort = (value) => {\n onSort?.(value);\n onSortHandler?.(value);\n // this should be changed when dropdown changes his \"values\" behavior\n setDropdownValues((prevValues) =>\n prevValues?.map((prevValue) => ({\n ...prevValue,\n selected: prevValue.id === value.id,\n }))\n );\n };\n\n return (\n <StyledRoot\n id={id}\n className={clsx(className, rightControlClasses.root, classes?.root)}\n {...others}\n >\n {!hideSortBy && (\n <StyledDropdown\n id={setId(id, \"sort-by-dropdown\")}\n values={dropDownValues}\n className={clsx(\n rightControlClasses.sortDropdown,\n classes?.sortDropdown\n )}\n onChange={handleChangeSort}\n singleSelectionToggle={false}\n {...sortProps}\n />\n )}\n {children}\n </StyledRoot>\n );\n};\n"],"names":["HvRightControl","id","classes","className","children","values","onSort","hideSortBy","sortProps","others","dropDownValues","setDropdownValues","useState","onSortHandler","useContext","HvControlsContext","handleChangeSort","value","prevValues","map","prevValue","selected","StyledRoot","clsx","rightControlClasses","root","StyledDropdown","setId","sortDropdown","onChange","singleSelectionToggle"],"mappings":";;;;;;;AA6BO,MAAMA,iBAAiBA,CAAC;AAAA,EAC7BC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC,aAAa;AAAA,EACbC;AAAAA,EACA,GAAGC;AACgB,MAAM;AACzB,QAAM,CAACC,gBAAgBC,iBAAiB,IAAIC,SAASP,MAAM;AAErD,QAAA;AAAA,IAAEC,QAAQO;AAAAA,EAAAA,IAAkBC,WAAWC,iBAAiB;AAE9D,QAAMC,mBAAoBC,CAAU,UAAA;AAClCX,qCAASW;AACTJ,mDAAgBI;AAEGC,sBAAAA,CAAAA,eACjBA,yCAAYC,IAAKC,CAAe,eAAA;AAAA,MAC9B,GAAGA;AAAAA,MACHC,UAAUD,UAAUnB,OAAOgB,MAAMhB;AAAAA,OAChC;AAAA,EAAA;AAIP,8BACGqB,YAAU;AAAA,IACTrB;AAAAA,IACAE,WAAWoB,KAAKpB,WAAWqB,oBAAoBC,MAAMvB,mCAASuB,IAAI;AAAA,IAAE,GAChEhB;AAAAA,IAAML,WAET,CAACG,kCACCmB,gBAAc;AAAA,MACbzB,IAAI0B,MAAM1B,IAAI,kBAAkB;AAAA,MAChCI,QAAQK;AAAAA,MACRP,WAAWoB,KACTC,oBAAoBI,cACpB1B,mCAAS0B,YAAY;AAAA,MAEvBC,UAAUb;AAAAA,MACVc,uBAAuB;AAAA,MAAM,GACzBtB;AAAAA,IAAS,CAAA,GAGhBJ,QAAQ;AAAA,EAAA,CACE;AAEjB;"}
@@ -0,0 +1,51 @@
1
+ import { useContext } from "react";
2
+ import { HvFilterGroupContext } from "../FilterGroupContext.js";
3
+ import { styles } from "./Counter.styles.js";
4
+ import { ClassNames } from "@emotion/react";
5
+ import { clsx } from "clsx";
6
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
7
+ const getExistingFiltersById = (idx, filterValues, filterOptions) => {
8
+ var _a;
9
+ let total = 0;
10
+ (_a = filterValues[idx]) == null ? void 0 : _a.forEach((fv) => {
11
+ var _a2;
12
+ if ((_a2 = filterOptions[idx]) == null ? void 0 : _a2.data.find((f) => f.id === fv)) {
13
+ total += 1;
14
+ }
15
+ });
16
+ return total;
17
+ };
18
+ const HvFilterGroupCounter = ({
19
+ className,
20
+ id
21
+ }) => {
22
+ var _a;
23
+ const {
24
+ filterOptions,
25
+ filterValues = [],
26
+ appliedFilters = []
27
+ } = useContext(HvFilterGroupContext);
28
+ const options = id && filterOptions.find((option) => option.id === id) ? [filterOptions.find((option) => option.id === id)] : filterOptions;
29
+ const optionIdx = filterOptions.findIndex((option) => option.id === id);
30
+ let groupsCounter = 0;
31
+ (_a = appliedFilters == null ? void 0 : appliedFilters.flat()) == null ? void 0 : _a.filter((elem) => elem !== void 0).forEach((fg, i) => {
32
+ groupsCounter += getExistingFiltersById(i, filterValues, filterOptions);
33
+ });
34
+ const partialCounter = id ? getExistingFiltersById(optionIdx, filterValues, filterOptions) || 0 : groupsCounter;
35
+ const totalCounter = options.reduce((acc, option) => acc + option.data.length, 0);
36
+ return /* @__PURE__ */ jsx(ClassNames, {
37
+ children: ({
38
+ css
39
+ }) => /* @__PURE__ */ jsxs("div", {
40
+ className: clsx(className, css(styles.root)),
41
+ children: [partialCounter > 0 ? /* @__PURE__ */ jsx("p", {
42
+ className: css(styles.partialCounter),
43
+ children: partialCounter
44
+ }) : partialCounter, ` / ${totalCounter}`]
45
+ })
46
+ });
47
+ };
48
+ export {
49
+ HvFilterGroupCounter
50
+ };
51
+ //# sourceMappingURL=Counter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Counter.js","sources":["../../../../../src/components/FilterGroup/Counter/Counter.tsx"],"sourcesContent":["import { useContext } from \"react\";\nimport { HvFilterGroupContext } from \"../FilterGroupContext\";\nimport { styles } from \"./Counter.styles\";\nimport { HvFilterGroupFilters, HvFilterGroupValue } from \"../FilterGroup\";\nimport { ClassNames } from \"@emotion/react\";\nimport { clsx } from \"clsx\";\n\nexport interface HvFilterGroupCounterProps {\n className?: string;\n id?: string;\n}\n\nconst getExistingFiltersById = (\n idx: number,\n filterValues: HvFilterGroupValue,\n filterOptions: HvFilterGroupFilters\n) => {\n let total = 0;\n filterValues[idx]?.forEach((fv) => {\n if (filterOptions[idx]?.data.find((f) => f.id === fv)) {\n total += 1;\n }\n });\n return total;\n};\n\nexport const HvFilterGroupCounter = ({\n className,\n id,\n}: HvFilterGroupCounterProps) => {\n const {\n filterOptions,\n filterValues = [],\n appliedFilters = [],\n } = useContext(HvFilterGroupContext);\n\n const options =\n id && filterOptions.find((option) => option.id === id)\n ? ([\n filterOptions.find((option) => option.id === id),\n ] as HvFilterGroupFilters)\n : filterOptions;\n const optionIdx = filterOptions.findIndex((option) => option.id === id);\n\n let groupsCounter = 0;\n appliedFilters\n ?.flat()\n ?.filter((elem) => elem !== undefined)\n .forEach((fg, i) => {\n groupsCounter += getExistingFiltersById(i, filterValues, filterOptions);\n });\n\n const partialCounter = id\n ? getExistingFiltersById(optionIdx, filterValues, filterOptions) || 0\n : groupsCounter;\n\n const totalCounter = options.reduce(\n (acc, option) => acc + option.data.length,\n 0\n );\n\n return (\n <ClassNames>\n {({ css }) => (\n <div className={clsx(className, css(styles.root))}>\n {partialCounter > 0 ? (\n <p className={css(styles.partialCounter)}>{partialCounter}</p>\n ) : (\n partialCounter\n )}\n {` / ${totalCounter}`}\n </div>\n )}\n </ClassNames>\n );\n};\n"],"names":["getExistingFiltersById","idx","filterValues","filterOptions","total","forEach","fv","data","find","f","id","HvFilterGroupCounter","className","appliedFilters","useContext","HvFilterGroupContext","options","option","optionIdx","findIndex","groupsCounter","flat","filter","elem","undefined","fg","i","partialCounter","totalCounter","reduce","acc","length","ClassNames","children","css","clsx","styles","root"],"mappings":";;;;;;AAYA,MAAMA,yBAAyBA,CAC7BC,KACAC,cACAC,kBACG;;AACH,MAAIC,QA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AAEM,UAAEN;AAAAA,MAAc,CAAA,IAEzDA,gBAEA,MAAKC,cAAc;AAAA,IAAA,CAAA;AAAA,EAAA,CAGd;AAEjB;"}
@@ -0,0 +1,17 @@
1
+ import { theme } from "@hitachivantara/uikit-styles";
2
+ const styles = {
3
+ root: {
4
+ height: "100%",
5
+ lineHeight: "32px",
6
+ margin: "0 10px",
7
+ pointerEvents: "none"
8
+ },
9
+ partialCounter: {
10
+ display: "inline-block",
11
+ fontWeight: theme.filterGroup.partialCounterFontWeight
12
+ }
13
+ };
14
+ export {
15
+ styles
16
+ };
17
+ //# sourceMappingURL=Counter.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Counter.styles.js","sources":["../../../../../src/components/FilterGroup/Counter/Counter.styles.tsx"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/serialize\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const styles: {\n root: CSSInterpolation;\n partialCounter: CSSInterpolation;\n} = {\n root: {\n height: \"100%\",\n lineHeight: \"32px\",\n margin: \"0 10px\",\n pointerEvents: \"none\",\n },\n partialCounter: {\n display: \"inline-block\",\n fontWeight: theme.filterGroup.partialCounterFontWeight,\n },\n};\n"],"names":["styles","root","height","lineHeight","margin","pointerEvents","partialCounter","display","fontWeight","theme","filterGroup","partialCounterFontWeight"],"mappings":";AAGO,MAAMA,SAGT;AAAA,EACFC,MAAM;AAAA,IACJC,QAAQ;AAAA,IACRC,YAAY;AAAA,IACZC,QAAQ;AAAA,IACRC,eAAe;AAAA,EACjB;AAAA,EACAC,gBAAgB;AAAA,IACdC,SAAS;AAAA,IACTC,YAAYC,MAAMC,YAAYC;AAAAA,EAChC;AACF;"}
@@ -0,0 +1,168 @@
1
+ import { styles } from "./FilterContent.styles.js";
2
+ import filterGroupContentClasses from "./filterContentClasses.js";
3
+ import { HvFilterGroupContext } from "../FilterGroupContext.js";
4
+ import { useState, useContext, useRef, useMemo } from "react";
5
+ import { Filters } from "@hitachivantara/uikit-react-icons";
6
+ import { clsx } from "clsx";
7
+ import { ClassNames } from "@emotion/react";
8
+ import { jsxs, Fragment, jsx } from "@emotion/react/jsx-runtime";
9
+ import { HvFilterGroupLeftPanel } from "../LeftPanel/LeftPanel.js";
10
+ import { HvFilterGroupRightPanel } from "../RightPanel/RightPanel.js";
11
+ import { useTheme } from "../../../hooks/useTheme.js";
12
+ import { HvTypography } from "../../Typography/Typography.js";
13
+ import { HvBaseDropdown } from "../../BaseDropdown/BaseDropdown.js";
14
+ import { setId } from "../../../utils/setId.js";
15
+ import { HvFilterGroupCounter } from "../Counter/Counter.js";
16
+ import { HvActionBar } from "../../ActionBar/ActionBar.js";
17
+ import { HvButton } from "../../Button/Button.js";
18
+ const HvFilterGroupContent = ({
19
+ id,
20
+ status,
21
+ disabled = false,
22
+ "aria-label": ariaLabel,
23
+ "aria-labelledby": ariaLabelledBy,
24
+ description,
25
+ "aria-describedby": ariaDescribedBy,
26
+ onChange,
27
+ onCancel,
28
+ onClear,
29
+ labels,
30
+ horizontalPlacement = "right",
31
+ disablePortal = true,
32
+ escapeWithReference = true,
33
+ height,
34
+ leftEmptyElement,
35
+ rightEmptyElement,
36
+ classes,
37
+ ...others
38
+ }) => {
39
+ const {
40
+ activeTheme
41
+ } = useTheme();
42
+ const [filterGroupOpen, setFilterGroupOpen] = useState(false);
43
+ const {
44
+ defaultValue,
45
+ filterValues,
46
+ rollbackFilters,
47
+ clearFilters,
48
+ applyFilters,
49
+ applyDisabled
50
+ } = useContext(HvFilterGroupContext);
51
+ const focusTarget = useRef(null);
52
+ const focusOnContainer = () => {
53
+ var _a;
54
+ (_a = focusTarget.current) == null ? void 0 : _a.focus();
55
+ };
56
+ const onApplyHandler = (event) => {
57
+ applyFilters();
58
+ onChange == null ? void 0 : onChange(event, filterValues);
59
+ setFilterGroupOpen(false);
60
+ };
61
+ const onCancelHandler = (event) => {
62
+ rollbackFilters();
63
+ onCancel == null ? void 0 : onCancel(event);
64
+ setFilterGroupOpen(false);
65
+ };
66
+ const onClearHandler = (event) => {
67
+ clearFilters();
68
+ onClear == null ? void 0 : onClear(event);
69
+ };
70
+ const handleToggle = (event, open) => {
71
+ if (event === null)
72
+ return;
73
+ setFilterGroupOpen(open);
74
+ if (!open)
75
+ onCancelHandler == null ? void 0 : onCancelHandler(event);
76
+ };
77
+ const Header = useMemo(() => /* @__PURE__ */ jsxs(Fragment, {
78
+ children: [/* @__PURE__ */ jsx(Filters, {}), /* @__PURE__ */ jsx(HvTypography, {
79
+ variant: "label",
80
+ children: labels == null ? void 0 : labels.placeholder
81
+ })]
82
+ }), [labels == null ? void 0 : labels.placeholder]);
83
+ return /* @__PURE__ */ jsx(ClassNames, {
84
+ children: ({
85
+ css
86
+ }) => /* @__PURE__ */ jsxs(HvBaseDropdown, {
87
+ id: setId(id, "dropdown"),
88
+ role: "combobox",
89
+ classes: {
90
+ root: clsx(classes == null ? void 0 : classes.dropdown, filterGroupContentClasses.dropdown),
91
+ panel: clsx(classes == null ? void 0 : classes.panel, filterGroupContentClasses.panel, css(styles.panel)),
92
+ selection: clsx(classes == null ? void 0 : classes.baseDropdownSelection, filterGroupContentClasses.baseDropdownSelection, css(styles.baseDropdownSelection)),
93
+ header: clsx(classes == null ? void 0 : classes.header, filterGroupContentClasses.header, css(styles.header))
94
+ },
95
+ disabled,
96
+ disablePortal,
97
+ variableWidth: true,
98
+ placement: horizontalPlacement,
99
+ expanded: filterGroupOpen,
100
+ onToggle: handleToggle,
101
+ onClickOutside: onCancelHandler,
102
+ onContainerCreation: focusOnContainer,
103
+ placeholder: Header,
104
+ adornment: /* @__PURE__ */ jsx(HvFilterGroupCounter, {}),
105
+ popperProps: {
106
+ modifiers: [{
107
+ name: "preventOverflow",
108
+ enabled: escapeWithReference
109
+ }]
110
+ },
111
+ "aria-haspopup": "dialog",
112
+ "aria-label": ariaLabel,
113
+ "aria-labelledby": ariaLabelledBy,
114
+ "aria-invalid": status === "invalid" ? true : void 0,
115
+ "aria-errormessage": status === "invalid" ? setId(id, "error") : void 0,
116
+ "aria-describedby": [description && setId(id, "description"), ariaDescribedBy].join(" ").trim() || void 0,
117
+ ...others,
118
+ children: [/* @__PURE__ */ jsx("div", {
119
+ ref: focusTarget,
120
+ tabIndex: -1
121
+ }), /* @__PURE__ */ jsxs("div", {
122
+ className: clsx(classes == null ? void 0 : classes.root, filterGroupContentClasses.root, css(styles.root)),
123
+ style: {
124
+ height
125
+ },
126
+ children: [/* @__PURE__ */ jsx(HvFilterGroupLeftPanel, {
127
+ id,
128
+ className: clsx(classes == null ? void 0 : classes.leftSidePanel, filterGroupContentClasses.leftSidePanel, css(styles.leftSidePanel)),
129
+ emptyElement: leftEmptyElement
130
+ }), /* @__PURE__ */ jsx(HvFilterGroupRightPanel, {
131
+ id,
132
+ className: clsx(classes == null ? void 0 : classes.rightSidePanel, filterGroupContentClasses.rightSidePanel, css(styles.rightSidePanel)),
133
+ emptyElement: rightEmptyElement,
134
+ labels
135
+ })]
136
+ }), /* @__PURE__ */ jsxs(HvActionBar, {
137
+ className: clsx(classes == null ? void 0 : classes.actionBar, filterGroupContentClasses.actionBar, css(styles.actionBar)),
138
+ children: [/* @__PURE__ */ jsx(HvButton, {
139
+ id: setId(id, "clearFilters-button"),
140
+ disabled: defaultValue ? (defaultValue == null ? void 0 : defaultValue.flat().length) === (filterValues == null ? void 0 : filterValues.flat().length) : (filterValues == null ? void 0 : filterValues.flat().length) === 0,
141
+ variant: "secondaryGhost",
142
+ onClick: onClearHandler,
143
+ children: labels == null ? void 0 : labels.clearLabel
144
+ }), /* @__PURE__ */ jsx("div", {
145
+ "aria-hidden": "true",
146
+ className: clsx(classes == null ? void 0 : classes.space, filterGroupContentClasses.space, css(styles.space)),
147
+ children: " "
148
+ }), /* @__PURE__ */ jsx(HvButton, {
149
+ id: setId(id, "apply-button"),
150
+ disabled: applyDisabled,
151
+ variant: activeTheme == null ? void 0 : activeTheme.filterGroup.applyButtonVariant,
152
+ onClick: onApplyHandler,
153
+ className: css(styles.applyButton),
154
+ children: labels == null ? void 0 : labels.applyLabel
155
+ }), /* @__PURE__ */ jsx(HvButton, {
156
+ id: setId(id, "cancel-button"),
157
+ variant: activeTheme == null ? void 0 : activeTheme.filterGroup.cancelButtonVariant,
158
+ onClick: onCancelHandler,
159
+ children: labels == null ? void 0 : labels.cancelLabel
160
+ })]
161
+ })]
162
+ })
163
+ });
164
+ };
165
+ export {
166
+ HvFilterGroupContent
167
+ };
168
+ //# sourceMappingURL=FilterContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterContent.js","sources":["../../../../../src/components/FilterGroup/FilterContent/FilterContent.tsx"],"sourcesContent":["import {\n HvActionBar,\n HvBaseDropdown,\n HvBaseDropdownProps,\n HvButton,\n HvButtonVariant,\n HvFormStatus,\n HvTypography,\n} from \"@core/components\";\nimport { setId } from \"@core/utils\";\nimport {\n HvFilterGroupLabels,\n HvFilterGroupValue,\n HvFilterGroupHorizontalPlacement,\n} from \"../FilterGroup\";\nimport { styles } from \"./FilterContent.styles\";\nimport filterGroupContentClasses, {\n HvFilterGroupContentClasses,\n} from \"./filterContentClasses\";\nimport { HvFilterGroupContext } from \"../FilterGroupContext\";\nimport { useContext, useMemo, useRef, useState } from \"react\";\nimport { Filters } from \"@hitachivantara/uikit-react-icons\";\nimport { clsx } from \"clsx\";\nimport { HvFilterGroupCounter } from \"../Counter\";\nimport { ClassNames } from \"@emotion/react\";\nimport { HvFilterGroupLeftPanel } from \"../LeftPanel\";\nimport { HvFilterGroupRightPanel } from \"../RightPanel\";\nimport { useTheme } from \"@core/hooks\";\n\nexport interface HvFilterGroupContentProps\n extends Omit<HvBaseDropdownProps, \"onChange\"> {\n description?: React.ReactNode;\n status?: HvFormStatus;\n onChange?: (\n event: React.MouseEvent<HTMLButtonElement>,\n value?: HvFilterGroupValue\n ) => void;\n onCancel?: (event: React.MouseEvent<HTMLButtonElement> | Event) => void;\n onClear?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n labels?: HvFilterGroupLabels;\n horizontalPlacement?: HvFilterGroupHorizontalPlacement;\n disablePortal?: boolean;\n escapeWithReference?: boolean;\n height?: string | number;\n leftEmptyElement?: React.ReactNode;\n rightEmptyElement?: React.ReactNode;\n disabled?: boolean;\n classes?: HvFilterGroupContentClasses;\n}\n\nexport const HvFilterGroupContent = ({\n id,\n status,\n disabled = false,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n description,\n \"aria-describedby\": ariaDescribedBy,\n onChange,\n onCancel,\n onClear,\n labels,\n horizontalPlacement = \"right\",\n disablePortal = true,\n escapeWithReference = true,\n height,\n leftEmptyElement,\n rightEmptyElement,\n classes,\n ...others\n}: HvFilterGroupContentProps) => {\n const { activeTheme } = useTheme();\n\n const [filterGroupOpen, setFilterGroupOpen] = useState<boolean>(false);\n\n const {\n defaultValue,\n filterValues,\n rollbackFilters,\n clearFilters,\n applyFilters,\n applyDisabled,\n } = useContext(HvFilterGroupContext);\n\n const focusTarget = useRef<HTMLDivElement>(null);\n\n const focusOnContainer = () => {\n focusTarget.current?.focus();\n };\n\n const onApplyHandler = (event: React.MouseEvent<HTMLButtonElement>) => {\n applyFilters();\n onChange?.(event, filterValues);\n setFilterGroupOpen(false);\n };\n\n const onCancelHandler = (\n event: React.MouseEvent<HTMLButtonElement> | Event\n ) => {\n rollbackFilters();\n onCancel?.(event);\n setFilterGroupOpen(false);\n };\n\n const onClearHandler = (event: React.MouseEvent<HTMLButtonElement>) => {\n clearFilters();\n onClear?.(event);\n };\n\n const handleToggle = (event: Event, open: boolean) => {\n /* \n If evt is null this toggle wasn't triggered by the user.\n instead it was triggered by the baseDropdown useEffect after\n the datepicker changed the expanded value this baseDropdown behavior needs a review\n */\n if (event === null) return;\n setFilterGroupOpen(open);\n if (!open) onCancelHandler?.(event);\n };\n\n const Header = useMemo(\n () => (\n <>\n <Filters />\n <HvTypography variant=\"label\">{labels?.placeholder}</HvTypography>\n </>\n ),\n [labels?.placeholder]\n );\n\n return (\n <ClassNames>\n {({ css }) => (\n <HvBaseDropdown\n id={setId(id, \"dropdown\")}\n role=\"combobox\"\n classes={{\n root: clsx(classes?.dropdown, filterGroupContentClasses.dropdown),\n panel: clsx(\n classes?.panel,\n filterGroupContentClasses.panel,\n css(styles.panel)\n ),\n selection: clsx(\n classes?.baseDropdownSelection,\n filterGroupContentClasses.baseDropdownSelection,\n css(styles.baseDropdownSelection)\n ),\n header: clsx(\n classes?.header,\n filterGroupContentClasses.header,\n css(styles.header)\n ),\n }}\n disabled={disabled}\n disablePortal={disablePortal}\n variableWidth\n placement={horizontalPlacement}\n expanded={filterGroupOpen}\n onToggle={handleToggle}\n onClickOutside={onCancelHandler}\n onContainerCreation={focusOnContainer}\n placeholder={Header}\n adornment={<HvFilterGroupCounter />}\n popperProps={{\n modifiers: [\n { name: \"preventOverflow\", enabled: escapeWithReference },\n ],\n }}\n aria-haspopup=\"dialog\"\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-invalid={status === \"invalid\" ? true : undefined}\n aria-errormessage={\n status === \"invalid\" ? setId(id, \"error\") : undefined\n }\n aria-describedby={\n [description && setId(id, \"description\"), ariaDescribedBy]\n .join(\" \")\n .trim() || undefined\n }\n {...others}\n >\n <div ref={focusTarget} tabIndex={-1} />\n <div\n className={clsx(\n classes?.root,\n filterGroupContentClasses.root,\n css(styles.root)\n )}\n style={{ height }}\n >\n <HvFilterGroupLeftPanel\n id={id}\n className={clsx(\n classes?.leftSidePanel,\n filterGroupContentClasses.leftSidePanel,\n css(styles.leftSidePanel)\n )}\n emptyElement={leftEmptyElement}\n />\n <HvFilterGroupRightPanel\n id={id}\n className={clsx(\n classes?.rightSidePanel,\n filterGroupContentClasses.rightSidePanel,\n css(styles.rightSidePanel)\n )}\n emptyElement={rightEmptyElement}\n labels={labels}\n />\n </div>\n <HvActionBar\n className={clsx(\n classes?.actionBar,\n filterGroupContentClasses.actionBar,\n css(styles.actionBar)\n )}\n >\n <HvButton\n id={setId(id, \"clearFilters-button\")}\n disabled={\n defaultValue\n ? defaultValue?.flat().length === filterValues?.flat().length\n : filterValues?.flat().length === 0\n }\n variant=\"secondaryGhost\"\n onClick={onClearHandler}\n >\n {labels?.clearLabel}\n </HvButton>\n <div\n aria-hidden=\"true\"\n className={clsx(\n classes?.space,\n filterGroupContentClasses.space,\n css(styles.space)\n )}\n >\n &nbsp;\n </div>\n <HvButton\n id={setId(id, \"apply-button\")}\n disabled={applyDisabled}\n variant={\n activeTheme?.filterGroup.applyButtonVariant as HvButtonVariant\n }\n onClick={onApplyHandler}\n className={css(styles.applyButton)}\n >\n {labels?.applyLabel}\n </HvButton>\n <HvButton\n id={setId(id, \"cancel-button\")}\n variant={\n activeTheme?.filterGroup.cancelButtonVariant as HvButtonVariant\n }\n onClick={onCancelHandler}\n >\n {labels?.cancelLabel}\n </HvButton>\n </HvActionBar>\n </HvBaseDropdown>\n )}\n </ClassNames>\n );\n};\n"],"names":["HvFilterGroupContent","id","status","disabled","ariaLabel","ariaLabelledBy","description","ariaDescribedBy","onChange","onCancel","onClear","labels","horizontalPlacement","disablePortal","escapeWithReference","height","leftEmptyElement","rightEmptyElement","classes","others","activeTheme","useTheme","filterGroupOpen","setFilterGroupOpen","useState","defaultValue","filterValues","rollbackFilters","clearFilters","applyFilters","applyDisabled","useContext","HvFilterGroupContext","focusTarget","useRef","focusOnContainer","current","focus","onApplyHandler","event","onCancelHandler","onClearHandler","handleToggle","open","Header","useMemo","_jsxs","_Fragment","children","Filters","HvTypography","variant","placeholder","ClassNames","css","HvBaseDropdown","setId","role","root","clsx","dropdown","filterGroupContentClasses","panel","styles","selection","baseDropdownSelection","header","variableWidth","placement","expanded","onToggle","onClickOutside","onContainerCreation","adornment","_jsx","HvFilterGroupCounter","popperProps","modifiers","name","enabled","undefined","join","trim","ref","tabIndex","className","style","HvFilterGroupLeftPanel","leftSidePanel","emptyElement","HvFilterGroupRightPanel","rightSidePanel","HvActionBar","actionBar","HvButton","flat","length","onClick","clearLabel","space","filterGroup","applyButtonVariant","applyBut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TtC,0BAA0BsC,OAC1B7C,IAAIS,OAAOoC,KAAK,CAAC;AAAA,UACjBnD,UACH;AAAA,QAAA,CAEK,GACN0B,oBAACoB,UAAQ;AAAA,UACP7F,IAAIuD,MAAMvD,IAAI,cAAc;AAAA,UAC5BE,UAAU2B;AAAAA,UACVqB,SACE/B,2CAAagF,YAAYC;AAAAA,UAE3BJ,SAAS3D;AAAAA,UACT+C,WAAW/B,IAAIS,OAAOuC,WAAW;AAAA,UAAEtD,UAElCrC,iCAAQ4F;AAAAA,QAAAA,CACA,GACX7B,oBAACoB,UAAQ;AAAA,UACP7F,IAAIuD,MAAMvD,IAAI,eAAe;AAAA,UAC7BkD,SACE/B,2CAAagF,YAAYI;AAAAA,UAE3BP,SAASzD;AAAAA,UAAgBQ,UAExBrC,iCAAQ8F;AAAAA,QAAAA,CACA,CAAA;AAAA,MAAA,CACC,CAAA;AAAA,IAAA,CAAA;AAAA,EAAA,CAGP;AAEjB;"}
@@ -0,0 +1,60 @@
1
+ import { theme } from "@hitachivantara/uikit-styles";
2
+ const styles = {
3
+ panel: {
4
+ maxHeight: 500,
5
+ minHeight: 370
6
+ },
7
+ header: {
8
+ display: "flex",
9
+ justifyContent: "space-between",
10
+ height: 32
11
+ },
12
+ baseDropdownSelection: {
13
+ padding: theme.spacing(["0px", "30px", "0px", "0px"])
14
+ },
15
+ root: {
16
+ width: 640,
17
+ backgroundColor: theme.colors.atmo1,
18
+ maxHeight: "calc(500px - 75px)",
19
+ minHeight: "calc(370px - 75px)",
20
+ border: theme.filterGroup.panelsBorder,
21
+ borderBottom: theme.filterGroup.panelsBorderBottom
22
+ },
23
+ rightSidePanel: {
24
+ display: "inline-block",
25
+ width: "50%",
26
+ height: "100%",
27
+ maxHeight: "calc(500px - 75px)",
28
+ minHeight: "calc(370px - 75px)",
29
+ verticalAlign: "top",
30
+ overflow: "visible",
31
+ boxShadow: theme.filterGroup.rightPanelShadow,
32
+ borderLeft: theme.filterGroup.rightPanelBorderLeft
33
+ },
34
+ leftSidePanel: {
35
+ display: "inline-block",
36
+ width: `calc(50% - ${theme.spacing("sm")} - ${theme.spacing("sm")} + 8px)`,
37
+ height: `calc(100% - ${theme.spacing("sm")} - ${theme.spacing("sm")} + 8px)`,
38
+ verticalAlign: "top",
39
+ maxHeight: "calc(500px - 75px)",
40
+ minHeight: "calc(370px - 75px)",
41
+ padding: 4,
42
+ margin: `calc(${theme.spacing("sm")} - 4px)`
43
+ },
44
+ actionBar: {
45
+ backgroundColor: theme.colors.atmo1,
46
+ border: theme.filterGroup.actionBarBorder,
47
+ borderTop: theme.filterGroup.actionBarBorderTop,
48
+ alignItems: "center"
49
+ },
50
+ space: {
51
+ flex: 1
52
+ },
53
+ applyButton: {
54
+ marginRight: theme.filterGroup.applyButtonMarginRight
55
+ }
56
+ };
57
+ export {
58
+ styles
59
+ };
60
+ //# sourceMappingURL=FilterContent.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterContent.styles.js","sources":["../../../../../src/components/FilterGroup/FilterContent/FilterContent.styles.tsx"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/serialize\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const styles: {\n panel: CSSInterpolation;\n header: CSSInterpolation;\n baseDropdownSelection: CSSInterpolation;\n root: CSSInterpolation;\n actionBar: CSSInterpolation;\n space: CSSInterpolation;\n rightSidePanel: CSSInterpolation;\n leftSidePanel: CSSInterpolation;\n applyButton: CSSInterpolation;\n} = {\n panel: {\n maxHeight: 500,\n minHeight: 370,\n },\n header: {\n display: \"flex\",\n justifyContent: \"space-between\",\n height: 32,\n },\n baseDropdownSelection: {\n padding: theme.spacing([\"0px\", \"30px\", \"0px\", \"0px\"]),\n },\n root: {\n width: 640,\n backgroundColor: theme.colors.atmo1,\n maxHeight: \"calc(500px - 75px)\",\n minHeight: \"calc(370px - 75px)\",\n border: theme.filterGroup.panelsBorder,\n borderBottom: theme.filterGroup.panelsBorderBottom,\n },\n rightSidePanel: {\n display: \"inline-block\",\n width: \"50%\",\n height: \"100%\",\n maxHeight: \"calc(500px - 75px)\",\n minHeight: \"calc(370px - 75px)\",\n verticalAlign: \"top\",\n overflow: \"visible\",\n boxShadow: theme.filterGroup.rightPanelShadow,\n borderLeft: theme.filterGroup.rightPanelBorderLeft,\n },\n leftSidePanel: {\n display: \"inline-block\",\n width: `calc(50% - ${theme.spacing(\"sm\")} - ${theme.spacing(\"sm\")} + 8px)`,\n height: `calc(100% - ${theme.spacing(\"sm\")} - ${theme.spacing(\n \"sm\"\n )} + 8px)`,\n verticalAlign: \"top\",\n maxHeight: \"calc(500px - 75px)\",\n minHeight: \"calc(370px - 75px)\",\n padding: 4,\n margin: `calc(${theme.spacing(\"sm\")} - 4px)`,\n },\n actionBar: {\n backgroundColor: theme.colors.atmo1,\n border: theme.filterGroup.actionBarBorder,\n borderTop: theme.filterGroup.actionBarBorderTop,\n alignItems: \"center\",\n },\n space: {\n flex: 1,\n },\n applyButton: {\n marginRight: theme.filterGroup.applyButtonMarginRight,\n },\n};\n"],"names":["styles","panel","maxHeight","minHeight","header","display","justifyContent","height","baseDropdownSelection","padding","theme","spacing","root","width","backgroundColor","colors","atmo1","border","filterGroup","panelsBorder","borderBottom","panelsBorderBottom","rightSidePanel","verticalAlign","overflow","boxShadow","rightPanelShadow","borderLeft","rightPanelBorderLeft","leftSidePanel","margin","actionBar","actionBarBorder","borderTop","actionBarBorderTop","alignItems","space","flex","applyButton","marginRight","applyButtonMarginRight"],"mappings":";AAGO,MAAMA,SAUT;AAAA,EACFC,OAAO;AAAA,IACLC,WAAW;AAAA,IACXC,WAAW;AAAA,EACb;AAAA,EACAC,QAAQ;AAAA,IACNC,SAAS;AAAA,IACTC,gBAAgB;AAAA,IAChBC,QAAQ;AAAA,EACV;AAAA,EACAC,uBAAuB;AAAA,IACrBC,SAASC,MAAMC,QAAQ,CAAC,OAAO,QAAQ,OAAO,KAAK,CAAC;AAAA,EACtD;AAAA,EACAC,MAAM;AAAA,IACJC,OAAO;AAAA,IACPC,iBAAiBJ,MAAMK,OAAOC;AAAAA,IAC9Bd,WAAW;AAAA,IACXC,WAAW;AAAA,IACXc,QAAQP,MAAMQ,YAAYC;AAAAA,IAC1BC,cAAcV,MAAMQ,YAAYG;AAAAA,EAClC;AAAA,EACAC,gBAAgB;AAAA,IACdjB,SAAS;AAAA,IACTQ,OAAO;AAAA,IACPN,QAAQ;AAAA,IACRL,WAAW;AAAA,IACXC,WAAW;AAAA,IACXoB,eAAe;AAAA,IACfC,UAAU;AAAA,IACVC,WAAWf,MAAMQ,YAAYQ;AAAAA,IAC7BC,YAAYjB,MAAMQ,YAAYU;AAAAA,EAChC;AAAA,EACAC,eAAe;AAAA,IACbxB,SAAS;AAAA,IACTQ,OAAQ,cAAaH,MAAMC,QAAQ,IAAI,OAAOD,MAAMC,QAAQ,IAAI;AAAA,IAChEJ,QAAS,eAAcG,MAAMC,QAAQ,IAAI,OAAOD,MAAMC,QACpD,IAAI;AAAA,IAENY,eAAe;AAAA,IACfrB,WAAW;AAAA,IACXC,WAAW;AAAA,IACXM,SAAS;AAAA,IACTqB,QAAS,QAAOpB,MAAMC,QAAQ,IAAI;AAAA,EACpC;AAAA,EACAoB,WAAW;AAAA,IACTjB,iBAAiBJ,MAAMK,OAAOC;AAAAA,IAC9BC,QAAQP,MAAMQ,YAAYc;AAAAA,IAC1BC,WAAWvB,MAAMQ,YAAYgB;AAAAA,IAC7BC,YAAY;AAAA,EACd;AAAA,EACAC,OAAO;AAAA,IACLC,MAAM;AAAA,EACR;AAAA,EACAC,aAAa;AAAA,IACXC,aAAa7B,MAAMQ,YAAYsB;AAAAA,EACjC;AACF;"}
@@ -0,0 +1,8 @@
1
+ import { getClasses } from "../../../utils/classes.js";
2
+ const classKeys = ["dropdown", "panel", "baseDropdownSelection", "header", "root", "leftSidePanel", "rightSidePanel", "actionBar", "space"];
3
+ const filterGroupContentClasses = getClasses(classKeys, "HvFilterGroupContent");
4
+ const filterGroupContentClasses$1 = filterGroupContentClasses;
5
+ export {
6
+ filterGroupContentClasses$1 as default
7
+ };
8
+ //# sourceMappingURL=filterContentClasses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterContentClasses.js","sources":["../../../../../src/components/FilterGroup/FilterContent/filterContentClasses.ts"],"sourcesContent":["import { getClasses } from \"@core/utils\";\n\nexport interface HvFilterGroupContentClasses {\n dropdown?: string;\n panel?: string;\n baseDropdownSelection?: string;\n header?: string;\n root?: string;\n leftSidePanel?: string;\n rightSidePanel?: string;\n actionBar?: string;\n space?: string;\n}\n\nconst classKeys: string[] = [\n \"dropdown\",\n \"panel\",\n \"baseDropdownSelection\",\n \"header\",\n \"root\",\n \"leftSidePanel\",\n \"rightSidePanel\",\n \"actionBar\",\n \"space\",\n];\n\nconst filterGroupContentClasses = getClasses<HvFilterGroupContentClasses>(\n classKeys,\n \"HvFilterGroupContent\"\n);\n\nexport default filterGroupContentClasses;\n"],"names":["classKeys","filterGroupContentClasses","getClasses"],"mappings":";AAcA,MAAMA,YAAsB,CAC1B,YACA,SACA,yBACA,UACA,QACA,iBACA,kBACA,aACA,OAAO;AAGT,MAAMC,4BAA4BC,WAChCF,WACA,sBAAsB;AAGxB,MAAA,8BAAeC;"}