@redsift/design-system 11.6.0-muiv5-alpha.2 → 11.6.0-muiv5-alpha.3

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 (178) hide show
  1. package/components/alert/Alert.js +8 -8
  2. package/components/alert/Alert.js.map +1 -1
  3. package/components/app-bar/AppBar.js +11 -11
  4. package/components/app-bar/AppBar.js.map +1 -1
  5. package/components/app-container/AppContainer.js +16 -16
  6. package/components/app-container/AppContainer.js.map +1 -1
  7. package/components/app-container/context.js +2 -2
  8. package/components/app-container/context.js.map +1 -1
  9. package/components/app-content/AppContent.js +2 -2
  10. package/components/app-content/AppContent.js.map +1 -1
  11. package/components/app-side-panel/AppSidePanel.js +8 -8
  12. package/components/app-side-panel/AppSidePanel.js.map +1 -1
  13. package/components/app-side-panel/useAppSidePanel.js +2 -2
  14. package/components/app-side-panel/useAppSidePanel.js.map +1 -1
  15. package/components/badge/Badge.js +2 -2
  16. package/components/badge/Badge.js.map +1 -1
  17. package/components/breadcrumb-item/BreadcrumbItem.js +2 -2
  18. package/components/breadcrumb-item/BreadcrumbItem.js.map +1 -1
  19. package/components/breadcrumbs/Breadcrumbs.js +7 -7
  20. package/components/breadcrumbs/Breadcrumbs.js.map +1 -1
  21. package/components/button/Button.js +7 -7
  22. package/components/button/Button.js.map +1 -1
  23. package/components/button-group/ButtonGroup.js +4 -4
  24. package/components/button-group/ButtonGroup.js.map +1 -1
  25. package/components/button-link/ButtonLink.js +6 -6
  26. package/components/button-link/ButtonLink.js.map +1 -1
  27. package/components/card/Card.js +7 -7
  28. package/components/card/Card.js.map +1 -1
  29. package/components/card-actions/CardActions.js +2 -2
  30. package/components/card-actions/CardActions.js.map +1 -1
  31. package/components/card-body/CardBody.js +2 -2
  32. package/components/card-body/CardBody.js.map +1 -1
  33. package/components/card-header/CardHeader.js +7 -7
  34. package/components/card-header/CardHeader.js.map +1 -1
  35. package/components/checkbox/Checkbox.js +7 -7
  36. package/components/checkbox/Checkbox.js.map +1 -1
  37. package/components/checkbox-group/CheckboxGroup.js +7 -7
  38. package/components/checkbox-group/CheckboxGroup.js.map +1 -1
  39. package/components/checkbox-group/context.js +2 -2
  40. package/components/checkbox-group/context.js.map +1 -1
  41. package/components/conditional-wrapper/ConditionalWrapper.js +2 -2
  42. package/components/conditional-wrapper/ConditionalWrapper.js.map +1 -1
  43. package/components/detailed-card/DetailedCard.js +20 -20
  44. package/components/detailed-card/DetailedCard.js.map +1 -1
  45. package/components/detailed-card/types.d.ts +10 -1
  46. package/components/detailed-card-collapsible-section-items/DetailedCardCollapsibleSectionItems.js +3 -3
  47. package/components/detailed-card-collapsible-section-items/DetailedCardCollapsibleSectionItems.js.map +1 -1
  48. package/components/detailed-card-header/DetailedCardHeader.js +4 -4
  49. package/components/detailed-card-header/DetailedCardHeader.js.map +1 -1
  50. package/components/detailed-card-section/DetailedCardSection.js +10 -10
  51. package/components/detailed-card-section/DetailedCardSection.js.map +1 -1
  52. package/components/detailed-card-section-item/DetailedCardSectionItem.js +12 -12
  53. package/components/detailed-card-section-item/DetailedCardSectionItem.js.map +1 -1
  54. package/components/flexbox/Flexbox.js +3 -3
  55. package/components/flexbox/Flexbox.js.map +1 -1
  56. package/components/focus-within-group/FocusWithinGroup.js +2 -2
  57. package/components/focus-within-group/FocusWithinGroup.js.map +1 -1
  58. package/components/focus-within-group/context.js +2 -2
  59. package/components/focus-within-group/context.js.map +1 -1
  60. package/components/grid/Grid.js +3 -3
  61. package/components/grid/Grid.js.map +1 -1
  62. package/components/grid-item/GridItem.js +2 -2
  63. package/components/grid-item/GridItem.js.map +1 -1
  64. package/components/heading/Heading.js +2 -2
  65. package/components/heading/Heading.js.map +1 -1
  66. package/components/icon/Icon.js +5 -5
  67. package/components/icon/Icon.js.map +1 -1
  68. package/components/icon-button/IconButton.js +6 -6
  69. package/components/icon-button/IconButton.js.map +1 -1
  70. package/components/icon-button-link/IconButtonLink.js +5 -5
  71. package/components/icon-button-link/IconButtonLink.js.map +1 -1
  72. package/components/item/Item.js +19 -19
  73. package/components/item/Item.js.map +1 -1
  74. package/components/link/Link.js +5 -5
  75. package/components/link/Link.js.map +1 -1
  76. package/components/link-button/LinkButton.js +5 -5
  77. package/components/link-button/LinkButton.js.map +1 -1
  78. package/components/listbox/ActiveDescendantListbox.d.ts +1 -1
  79. package/components/listbox/ActiveDescendantListbox.js +3 -3
  80. package/components/listbox/ActiveDescendantListbox.js.map +1 -1
  81. package/components/listbox/Listbox.js +8 -8
  82. package/components/listbox/Listbox.js.map +1 -1
  83. package/components/listbox/RovingTabindexListbox.d.ts +1 -1
  84. package/components/listbox/RovingTabindexListbox.js +3 -3
  85. package/components/listbox/RovingTabindexListbox.js.map +1 -1
  86. package/components/listbox/context.js +2 -2
  87. package/components/listbox/context.js.map +1 -1
  88. package/components/number/Number.js +2 -2
  89. package/components/number/Number.js.map +1 -1
  90. package/components/number-field/NumberField.js +16 -16
  91. package/components/number-field/NumberField.js.map +1 -1
  92. package/components/pill/Pill.js +10 -10
  93. package/components/pill/Pill.js.map +1 -1
  94. package/components/progress-bar/ProgressBar.js +2 -2
  95. package/components/progress-bar/ProgressBar.js.map +1 -1
  96. package/components/radio/Radio.js +6 -6
  97. package/components/radio/Radio.js.map +1 -1
  98. package/components/radio-group/RadioGroup.js +7 -7
  99. package/components/radio-group/RadioGroup.js.map +1 -1
  100. package/components/radio-group/context.js +2 -2
  101. package/components/radio-group/context.js.map +1 -1
  102. package/components/shield/Shield.js +5 -5
  103. package/components/shield/Shield.js.map +1 -1
  104. package/components/side-navigation-menu/SideNavigationMenu.js +16 -16
  105. package/components/side-navigation-menu/SideNavigationMenu.js.map +1 -1
  106. package/components/side-navigation-menu/context.js +2 -2
  107. package/components/side-navigation-menu/context.js.map +1 -1
  108. package/components/side-navigation-menu-bar/SideNavigationMenuBar.js +7 -7
  109. package/components/side-navigation-menu-bar/SideNavigationMenuBar.js.map +1 -1
  110. package/components/side-navigation-menu-bar/context.js +2 -2
  111. package/components/side-navigation-menu-bar/context.js.map +1 -1
  112. package/components/side-navigation-menu-bar/useSideNavigationMenuBar.js +4 -4
  113. package/components/side-navigation-menu-bar/useSideNavigationMenuBar.js.map +1 -1
  114. package/components/side-navigation-menu-item/SideNavigationMenuItem.js +9 -9
  115. package/components/side-navigation-menu-item/SideNavigationMenuItem.js.map +1 -1
  116. package/components/skeleton/Skeleton.js +4 -4
  117. package/components/skeleton/Skeleton.js.map +1 -1
  118. package/components/skeleton-circle/SkeletonCircle.js +4 -4
  119. package/components/skeleton-circle/SkeletonCircle.js.map +1 -1
  120. package/components/skeleton-text/SkeletonText.js +4 -4
  121. package/components/skeleton-text/SkeletonText.js.map +1 -1
  122. package/components/spinner/Spinner.js +2 -2
  123. package/components/spinner/Spinner.js.map +1 -1
  124. package/components/switch/Switch.js +9 -9
  125. package/components/switch/Switch.js.map +1 -1
  126. package/components/switch-group/SwitchGroup.js +7 -7
  127. package/components/switch-group/SwitchGroup.js.map +1 -1
  128. package/components/switch-group/context.js +2 -2
  129. package/components/switch-group/context.js.map +1 -1
  130. package/components/text/Text.js +2 -2
  131. package/components/text/Text.js.map +1 -1
  132. package/components/text-area/TextArea.js +11 -11
  133. package/components/text-area/TextArea.js.map +1 -1
  134. package/components/text-field/TextField.js +13 -13
  135. package/components/text-field/TextField.js.map +1 -1
  136. package/components/theme/context.js +2 -2
  137. package/components/theme/context.js.map +1 -1
  138. package/package.json +6 -2
  139. package/react-aria/react-aria/focus/useFocusable.js +2 -2
  140. package/react-aria/react-aria/focus/useFocusable.js.map +1 -1
  141. package/react-aria/react-aria/i18n/context.js +4 -4
  142. package/react-aria/react-aria/i18n/context.js.map +1 -1
  143. package/react-aria/react-aria/interactions/context.js +2 -2
  144. package/react-aria/react-aria/interactions/context.js.map +1 -1
  145. package/react-aria/react-aria/ssr/SSRProvider.js +13 -13
  146. package/react-aria/react-aria/ssr/SSRProvider.js.map +1 -1
  147. package/react-aria/react-aria/utils/mergeProps.js +2 -2
  148. package/react-aria/react-aria/utils/mergeProps.js.map +1 -1
  149. package/react-aria/react-aria/utils/useLayoutEffect.js +2 -2
  150. package/react-aria/react-aria/utils/useLayoutEffect.js.map +1 -1
  151. package/utils/filterComponents.js +2 -2
  152. package/utils/filterComponents.js.map +1 -1
  153. package/utils/isComponent.js +2 -2
  154. package/utils/isComponent.js.map +1 -1
  155. package/utils/useId.js +4 -4
  156. package/utils/useId.js.map +1 -1
  157. package/_virtual/jsx-runtime.js +0 -4
  158. package/_virtual/jsx-runtime.js.map +0 -1
  159. package/_virtual/react-jsx-runtime.development.js +0 -4
  160. package/_virtual/react-jsx-runtime.development.js.map +0 -1
  161. package/_virtual/react-jsx-runtime.production.min.js +0 -4
  162. package/_virtual/react-jsx-runtime.production.min.js.map +0 -1
  163. package/packages/popovers/src/components/tooltip/Tooltip.js +0 -62
  164. package/packages/popovers/src/components/tooltip/Tooltip.js.map +0 -1
  165. package/packages/popovers/src/components/tooltip/context.js +0 -6
  166. package/packages/popovers/src/components/tooltip/context.js.map +0 -1
  167. package/packages/popovers/src/components/tooltip/types.js +0 -28
  168. package/packages/popovers/src/components/tooltip/types.js.map +0 -1
  169. package/packages/popovers/src/components/tooltip/useTooltip.js +0 -78
  170. package/packages/popovers/src/components/tooltip/useTooltip.js.map +0 -1
  171. package/packages/popovers/src/components/tooltip/useTooltipContext.js +0 -13
  172. package/packages/popovers/src/components/tooltip/useTooltipContext.js.map +0 -1
  173. package/packages/popovers/src/components/tooltip-content/TooltipContent.js +0 -80
  174. package/packages/popovers/src/components/tooltip-content/TooltipContent.js.map +0 -1
  175. package/packages/popovers/src/components/tooltip-content/styles.js +0 -128
  176. package/packages/popovers/src/components/tooltip-content/styles.js.map +0 -1
  177. package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js +0 -47
  178. package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef, useState, useEffect, useCallback } from 'react';
2
+ import React, { forwardRef, useState, useEffect, useCallback } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import intlMessages from './intl/index.js';
5
5
  import { mdiClose, mdiAlert, mdiTriangleOutline, mdiCheckCircle, mdiCheck, mdiAlertCircle, mdiAlertOutline, mdiInformation, mdiInformationOutline } from '@redsift/icons';
@@ -79,7 +79,7 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
79
79
  setIsClosed(true);
80
80
  }
81
81
  }, [onClose]);
82
- return /*#__PURE__*/React__default.createElement(StyledAlert, _extends({}, forwardedProps, {
82
+ return /*#__PURE__*/React.createElement(StyledAlert, _extends({}, forwardedProps, {
83
83
  className: classNames(Alert.className, className),
84
84
  ref: ref,
85
85
  $hasTitle: Boolean(title),
@@ -88,25 +88,25 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
88
88
  $theme: theme,
89
89
  $variant: variant,
90
90
  $styleVariant: styleVariant
91
- }), /*#__PURE__*/React__default.createElement(Flexbox, {
91
+ }), /*#__PURE__*/React.createElement(Flexbox, {
92
92
  className: `${Alert.className}__header`,
93
93
  justifyContent: "space-between"
94
- }, /*#__PURE__*/React__default.createElement(Flexbox, {
94
+ }, /*#__PURE__*/React.createElement(Flexbox, {
95
95
  className: `${Alert.className}-header__title`,
96
96
  gap: "14px",
97
97
  alignItems: "center"
98
- }, /*#__PURE__*/React__default.createElement(Icon, {
98
+ }, /*#__PURE__*/React.createElement(Icon, {
99
99
  icon: icon,
100
100
  color: color
101
- }), title ? /*#__PURE__*/React__default.createElement(Text, {
101
+ }), title ? /*#__PURE__*/React.createElement(Text, {
102
102
  fontWeight: RedsiftTypographyFontWeightSemiBold
103
- }, title) : null), isClosable ? /*#__PURE__*/React__default.createElement(IconButton, {
103
+ }, title) : null), isClosable ? /*#__PURE__*/React.createElement(IconButton, {
104
104
  "aria-label": format('close'),
105
105
  className: `${Alert.className}-header__icon-button`,
106
106
  icon: mdiClose,
107
107
  onClick: handleClose,
108
108
  color: color
109
- }) : null), children ? /*#__PURE__*/React__default.createElement("div", {
109
+ }) : null), children ? /*#__PURE__*/React.createElement("div", {
110
110
  className: `${Alert.className}__content`
111
111
  }, children) : null);
112
112
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sources":["../../../src/components/alert/Alert.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useCallback, useEffect, useState } from 'react';\nimport classNames from 'classnames';\n\nimport { useMessageFormatter } from '../../react-aria/react-aria/i18n';\nimport intlMessages from './intl';\n\nimport {\n mdiAlert,\n mdiTriangleOutline,\n mdiAlertCircle,\n mdiAlertOutline,\n mdiCheck,\n mdiCheckCircle,\n mdiClose,\n mdiInformation,\n mdiInformationOutline,\n} from '@redsift/icons';\nimport { IconButton } from '../icon-button';\nimport { NotificationsColorPalette, Comp, Theme } from '../../types';\nimport { StyledAlert } from './styles';\nimport { AlertProps, AlertVariant, AlertStyleVariant } from './types';\nimport { Icon } from '../icon';\nimport { Text } from '../text';\nimport { Flexbox } from '../flexbox';\nimport { RedsiftTypographyFontWeightSemiBold } from '../../utils';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'Alert';\nconst CLASSNAME = 'redsift-alert';\n\nconst getVariant = (variant: AlertVariant, styleVariant: AlertStyleVariant, theme: Theme) => {\n switch (variant) {\n case AlertVariant.info:\n default:\n return {\n color: theme === Theme.light ? NotificationsColorPalette.info : 'white',\n icon: styleVariant == 'default' ? mdiInformation : mdiInformationOutline,\n };\n case AlertVariant.error:\n return {\n color: theme === Theme.light ? NotificationsColorPalette.error : 'white',\n icon: styleVariant == 'default' ? mdiAlertCircle : mdiAlertOutline,\n };\n case AlertVariant.success:\n return {\n color: theme === Theme.light ? NotificationsColorPalette.success : 'white',\n icon: styleVariant == 'default' ? mdiCheckCircle : mdiCheck,\n };\n case AlertVariant.warning:\n return {\n color: theme === Theme.light ? NotificationsColorPalette.warning : 'white',\n icon: styleVariant == 'default' ? mdiAlert : mdiTriangleOutline,\n };\n }\n};\n\n/**\n * The Alert component.\n */\nexport const Alert: Comp<AlertProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n children,\n className,\n isClosable,\n isClosed: propsIsClosed,\n onClose,\n theme: propsTheme,\n title,\n variant: propsVariant,\n styleVariant: propsStyleVariant,\n ...forwardedProps\n } = props;\n\n const theme = useTheme(propsTheme);\n const variant = Object.values(AlertVariant).includes(propsVariant!) ? propsVariant : 'info';\n const styleVariant = Object.values(AlertStyleVariant).includes(propsStyleVariant!) ? propsStyleVariant : 'default';\n\n const format = useMessageFormatter(intlMessages);\n\n const { color, icon } = getVariant(variant!, styleVariant!, theme);\n const [isClosed, setIsClosed] = useState(propsIsClosed);\n\n useEffect(() => {\n setIsClosed(propsIsClosed);\n }, [propsIsClosed]);\n\n const handleClose = useCallback(() => {\n if (onClose) {\n onClose(true);\n }\n if (propsIsClosed === undefined || propsIsClosed === null) {\n setIsClosed(true);\n }\n }, [onClose]);\n\n return (\n <StyledAlert\n {...forwardedProps}\n className={classNames(Alert.className, className)}\n ref={ref as RefObject<HTMLDivElement>}\n $hasTitle={Boolean(title)}\n $isClosable={isClosable}\n $isClosed={isClosed}\n $theme={theme}\n $variant={variant}\n $styleVariant={styleVariant}\n >\n <Flexbox className={`${Alert.className}__header`} justifyContent=\"space-between\">\n <Flexbox className={`${Alert.className}-header__title`} gap=\"14px\" alignItems=\"center\">\n <Icon icon={icon} color={color} />\n {title ? <Text fontWeight={RedsiftTypographyFontWeightSemiBold}>{title}</Text> : null}\n </Flexbox>\n\n {isClosable ? (\n <IconButton\n aria-label={format('close')}\n className={`${Alert.className}-header__icon-button`}\n icon={mdiClose}\n onClick={handleClose}\n color={color}\n />\n ) : null}\n </Flexbox>\n\n {children ? <div className={`${Alert.className}__content`}>{children}</div> : null}\n </StyledAlert>\n );\n});\nAlert.className = CLASSNAME;\nAlert.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","getVariant","variant","styleVariant","theme","AlertVariant","info","color","Theme","light","NotificationsColorPalette","icon","mdiInformation","mdiInformationOutline","error","mdiAlertCircle","mdiAlertOutline","success","mdiCheckCircle","mdiCheck","warning","mdiAlert","mdiTriangleOutline","Alert","forwardRef","props","ref","children","className","isClosable","isClosed","propsIsClosed","onClose","propsTheme","title","propsVariant","propsStyleVariant","forwardedProps","_objectWithoutProperties","_excluded","useTheme","Object","values","includes","AlertStyleVariant","format","useMessageFormatter","intlMessages","setIsClosed","useState","useEffect","handleClose","useCallback","undefined","React","createElement","StyledAlert","_extends","classNames","$hasTitle","Boolean","$isClosable","$isClosed","$theme","$variant","$styleVariant","Flexbox","justifyContent","gap","alignItems","Icon","Text","fontWeight","RedsiftTypographyFontWeightSemiBold","IconButton","mdiClose","onClick","displayName"],"mappings":";;;;;;;;;;;;;;;;;AA2BA,MAAMA,cAAc,GAAG,OAAO,CAAA;AAC9B,MAAMC,SAAS,GAAG,eAAe,CAAA;AAEjC,MAAMC,UAAU,GAAGA,CAACC,OAAqB,EAAEC,YAA+B,EAAEC,KAAY,KAAK;AAC3F,EAAA,QAAQF,OAAO;IACb,KAAKG,YAAY,CAACC,IAAI,CAAA;AACtB,IAAA;MACE,OAAO;QACLC,KAAK,EAAEH,KAAK,KAAKI,KAAK,CAACC,KAAK,GAAGC,yBAAyB,CAACJ,IAAI,GAAG,OAAO;AACvEK,QAAAA,IAAI,EAAER,YAAY,IAAI,SAAS,GAAGS,cAAc,GAAGC,qBAAAA;OACpD,CAAA;IACH,KAAKR,YAAY,CAACS,KAAK;MACrB,OAAO;QACLP,KAAK,EAAEH,KAAK,KAAKI,KAAK,CAACC,KAAK,GAAGC,yBAAyB,CAACI,KAAK,GAAG,OAAO;AACxEH,QAAAA,IAAI,EAAER,YAAY,IAAI,SAAS,GAAGY,cAAc,GAAGC,eAAAA;OACpD,CAAA;IACH,KAAKX,YAAY,CAACY,OAAO;MACvB,OAAO;QACLV,KAAK,EAAEH,KAAK,KAAK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,aAAA,CAACW,OAAO,EAAA;AAACtC,IAAAA,SAAS,EAAG,CAAA,EAAEL,KAAK,CAACK,SAAU,CAAgB,cAAA,CAAA;AAACwC,IAAAA,GAAG,EAAC,MAAM;AAACC,IAAAA,UAAU,EAAC,QAAA;AAAQ,GAAA,eACpFf,cAAA,CAAAC,aAAA,CAACe,IAAI,EAAA;AAAC3D,IAAAA,IAAI,EAAEA,IAAK;AAACJ,IAAAA,KAAK,EAAEA,KAAAA;GAAQ,CAAC,EACjC2B,KAAK,gBAAGoB,cAAA,CAAAC,aAAA,CAACgB,IAAI,EAAA;AAACC,IAAAA,UAAU,EAAEC,mCAAAA;AAAoC,GAAA,EAAEvC,KAAY,CAAC,GAAG,IAC1E,CAAC,EAETL,UAAU,gBACTyB,cAAA,CAAAC,aAAA,CAACmB,UAAU,EAAA;IACT,YAAY7B,EAAAA,MAAM,CAAC,OAAO,CAAE;AAC5BjB,IAAAA,SAAS,EAAG,CAAA,EAAEL,KAAK,CAACK,SAAU,CAAsB,oBAAA,CAAA;AACpDjB,IAAAA,IAAI,EAAEgE,QAAS;AACfC,IAAAA,OAAO,EAAEzB,WAAY;AACrB5C,IAAAA,KAAK,EAAEA,KAAAA;GACR,CAAC,GACA,IACG,CAAC,EAEToB,QAAQ,gBAAG2B,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAK3B,IAAAA,SAAS,EAAG,CAAA,EAAEL,KAAK,CAACK,SAAU,CAAA,SAAA,CAAA;AAAW,GAAA,EAAED,QAAc,CAAC,GAAG,IACnE,CAAC,CAAA;AAElB,CAAC,EAAC;AACFJ,KAAK,CAACK,SAAS,GAAG5B,SAAS,CAAA;AAC3BuB,KAAK,CAACsD,WAAW,GAAG9E,cAAc;;;;"}
1
+ {"version":3,"file":"Alert.js","sources":["../../../src/components/alert/Alert.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useCallback, useEffect, useState } from 'react';\nimport classNames from 'classnames';\n\nimport { useMessageFormatter } from '../../react-aria/react-aria/i18n';\nimport intlMessages from './intl';\n\nimport {\n mdiAlert,\n mdiTriangleOutline,\n mdiAlertCircle,\n mdiAlertOutline,\n mdiCheck,\n mdiCheckCircle,\n mdiClose,\n mdiInformation,\n mdiInformationOutline,\n} from '@redsift/icons';\nimport { IconButton } from '../icon-button';\nimport { NotificationsColorPalette, Comp, Theme } from '../../types';\nimport { StyledAlert } from './styles';\nimport { AlertProps, AlertVariant, AlertStyleVariant } from './types';\nimport { Icon } from '../icon';\nimport { Text } from '../text';\nimport { Flexbox } from '../flexbox';\nimport { RedsiftTypographyFontWeightSemiBold } from '../../utils';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'Alert';\nconst CLASSNAME = 'redsift-alert';\n\nconst getVariant = (variant: AlertVariant, styleVariant: AlertStyleVariant, theme: Theme) => {\n switch (variant) {\n case AlertVariant.info:\n default:\n return {\n color: theme === Theme.light ? NotificationsColorPalette.info : 'white',\n icon: styleVariant == 'default' ? mdiInformation : mdiInformationOutline,\n };\n case AlertVariant.error:\n return {\n color: theme === Theme.light ? NotificationsColorPalette.error : 'white',\n icon: styleVariant == 'default' ? mdiAlertCircle : mdiAlertOutline,\n };\n case AlertVariant.success:\n return {\n color: theme === Theme.light ? NotificationsColorPalette.success : 'white',\n icon: styleVariant == 'default' ? mdiCheckCircle : mdiCheck,\n };\n case AlertVariant.warning:\n return {\n color: theme === Theme.light ? NotificationsColorPalette.warning : 'white',\n icon: styleVariant == 'default' ? mdiAlert : mdiTriangleOutline,\n };\n }\n};\n\n/**\n * The Alert component.\n */\nexport const Alert: Comp<AlertProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n children,\n className,\n isClosable,\n isClosed: propsIsClosed,\n onClose,\n theme: propsTheme,\n title,\n variant: propsVariant,\n styleVariant: propsStyleVariant,\n ...forwardedProps\n } = props;\n\n const theme = useTheme(propsTheme);\n const variant = Object.values(AlertVariant).includes(propsVariant!) ? propsVariant : 'info';\n const styleVariant = Object.values(AlertStyleVariant).includes(propsStyleVariant!) ? propsStyleVariant : 'default';\n\n const format = useMessageFormatter(intlMessages);\n\n const { color, icon } = getVariant(variant!, styleVariant!, theme);\n const [isClosed, setIsClosed] = useState(propsIsClosed);\n\n useEffect(() => {\n setIsClosed(propsIsClosed);\n }, [propsIsClosed]);\n\n const handleClose = useCallback(() => {\n if (onClose) {\n onClose(true);\n }\n if (propsIsClosed === undefined || propsIsClosed === null) {\n setIsClosed(true);\n }\n }, [onClose]);\n\n return (\n <StyledAlert\n {...forwardedProps}\n className={classNames(Alert.className, className)}\n ref={ref as RefObject<HTMLDivElement>}\n $hasTitle={Boolean(title)}\n $isClosable={isClosable}\n $isClosed={isClosed}\n $theme={theme}\n $variant={variant}\n $styleVariant={styleVariant}\n >\n <Flexbox className={`${Alert.className}__header`} justifyContent=\"space-between\">\n <Flexbox className={`${Alert.className}-header__title`} gap=\"14px\" alignItems=\"center\">\n <Icon icon={icon} color={color} />\n {title ? <Text fontWeight={RedsiftTypographyFontWeightSemiBold}>{title}</Text> : null}\n </Flexbox>\n\n {isClosable ? (\n <IconButton\n aria-label={format('close')}\n className={`${Alert.className}-header__icon-button`}\n icon={mdiClose}\n onClick={handleClose}\n color={color}\n />\n ) : null}\n </Flexbox>\n\n {children ? <div className={`${Alert.className}__content`}>{children}</div> : null}\n </StyledAlert>\n );\n});\nAlert.className = CLASSNAME;\nAlert.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","getVariant","variant","styleVariant","theme","AlertVariant","info","color","Theme","light","NotificationsColorPalette","icon","mdiInformation","mdiInformationOutline","error","mdiAlertCircle","mdiAlertOutline","success","mdiCheckCircle","mdiCheck","warning","mdiAlert","mdiTriangleOutline","Alert","forwardRef","props","ref","children","className","isClosable","isClosed","propsIsClosed","onClose","propsTheme","title","propsVariant","propsStyleVariant","forwardedProps","_objectWithoutProperties","_excluded","useTheme","Object","values","includes","AlertStyleVariant","format","useMessageFormatter","intlMessages","setIsClosed","useState","useEffect","handleClose","useCallback","undefined","React","createElement","StyledAlert","_extends","classNames","$hasTitle","Boolean","$isClosable","$isClosed","$theme","$variant","$styleVariant","Flexbox","justifyContent","gap","alignItems","Icon","Text","fontWeight","RedsiftTypographyFontWeightSemiBold","IconButton","mdiClose","onClick","displayName"],"mappings":";;;;;;;;;;;;;;;;;AA2BA,MAAMA,cAAc,GAAG,OAAO,CAAA;AAC9B,MAAMC,SAAS,GAAG,eAAe,CAAA;AAEjC,MAAMC,UAAU,GAAGA,CAACC,OAAqB,EAAEC,YAA+B,EAAEC,KAAY,KAAK;AAC3F,EAAA,QAAQF,OAAO;IACb,KAAKG,YAAY,CAACC,IAAI,CAAA;AACtB,IAAA;MACE,OAAO;QACLC,KAAK,EAAEH,KAAK,KAAKI,KAAK,CAACC,KAAK,GAAGC,yBAAyB,CAACJ,IAAI,GAAG,OAAO;AACvEK,QAAAA,IAAI,EAAER,YAAY,IAAI,SAAS,GAAGS,cAAc,GAAGC,qBAAAA;OACpD,CAAA;IACH,KAAKR,YAAY,CAACS,KAAK;MACrB,OAAO;QACLP,KAAK,EAAEH,KAAK,KAAKI,KAAK,CAACC,KAAK,GAAGC,yBAAyB,CAACI,KAAK,GAAG,OAAO;AACxEH,QAAAA,IAAI,EAAER,YAAY,IAAI,SAAS,GAAGY,cAAc,GAAGC,eAAAA;OACpD,CAAA;IACH,KAAKX,YAAY,CAACY,OAAO;MACvB,OAAO;QACLV,KAAK,EAAEH,KAAK,KAAKI,KAAK,CAACC,KAAK,GAAGC,yBAAyB,CAACO,OAAO,GAAG,OAAO;AAC1EN,QAAAA,IAAI,EAAER,YAAY,IAAI,SAAS,GAAGe,cAAc,GAAGC,QAAAA;OACpD,CAAA;IACH,KAAKd,YAAY,CAACe,OAAO;MACvB,OAAO;QACLb,KAAK,EAAEH,KAAK,KAAKI,KAAK,CAACC,KAAK,GAAGC,yBAAyB,CAACU,OAAO,GAAG,OAAO;AAC1ET,QAAAA,IAAI,EAAER,YAAY,IAAI,SAAS,GAAGkB,QA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A,CAAAC,aAAA,CAACgB,IAAI,EAAA;AAACC,IAAAA,UAAU,EAAEC,mCAAAA;AAAoC,GAAA,EAAEvC,KAAY,CAAC,GAAG,IAC1E,CAAC,EAETL,UAAU,gBACTyB,KAAA,CAAAC,aAAA,CAACmB,UAAU,EAAA;IACT,YAAY7B,EAAAA,MAAM,CAAC,OAAO,CAAE;AAC5BjB,IAAAA,SAAS,EAAG,CAAA,EAAEL,KAAK,CAACK,SAAU,CAAsB,oBAAA,CAAA;AACpDjB,IAAAA,IAAI,EAAEgE,QAAS;AACfC,IAAAA,OAAO,EAAEzB,WAAY;AACrB5C,IAAAA,KAAK,EAAEA,KAAAA;GACR,CAAC,GACA,IACG,CAAC,EAEToB,QAAQ,gBAAG2B,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAK3B,IAAAA,SAAS,EAAG,CAAA,EAAEL,KAAK,CAACK,SAAU,CAAA,SAAA,CAAA;AAAW,GAAA,EAAED,QAAc,CAAC,GAAG,IACnE,CAAC,CAAA;AAElB,CAAC,EAAC;AACFJ,KAAK,CAACK,SAAS,GAAG5B,SAAS,CAAA;AAC3BuB,KAAK,CAACsD,WAAW,GAAG9E,cAAc;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef, useState, useEffect, useContext } from 'react';
2
+ import React, { forwardRef, useState, useEffect, useContext } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import intlMessages from './intl/index.js';
5
5
  import { mdiMenuOpen } from '@redsift/icons';
@@ -46,7 +46,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
46
46
  const appContainerState = useContext(AppContainerContext);
47
47
  const theme = useTheme(propsTheme);
48
48
  const format = useMessageFormatter(intlMessages);
49
- return /*#__PURE__*/React__default.createElement(StyledAppBar, _extends({}, forwardedProps, {
49
+ return /*#__PURE__*/React.createElement(StyledAppBar, _extends({}, forwardedProps, {
50
50
  $hasBorder: scroll,
51
51
  $isLoaded: isLoaded,
52
52
  $isSidePanelCollapsed: appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true,
@@ -54,15 +54,15 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
54
54
  $theme: theme,
55
55
  className: classNames(AppBar.className, className),
56
56
  ref: ref
57
- }), /*#__PURE__*/React__default.createElement("div", {
57
+ }), /*#__PURE__*/React.createElement("div", {
58
58
  className: `${AppBar.className}__left`
59
- }, appContainerState ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? /*#__PURE__*/React__default.createElement("div", {
59
+ }, appContainerState ? /*#__PURE__*/React.createElement(React.Fragment, null, appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? /*#__PURE__*/React.createElement("div", {
60
60
  style: {
61
61
  width: '30px',
62
62
  height: '30px',
63
63
  marginRight: '3px'
64
64
  }
65
- }) : /*#__PURE__*/React__default.createElement(IconButton, _extends({
65
+ }) : /*#__PURE__*/React.createElement(IconButton, _extends({
66
66
  className: `${AppBar.className}-left__collapse-button`
67
67
  }, iconButtonProps, {
68
68
  "aria-label": format('collapse'),
@@ -70,21 +70,21 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
70
70
  onClick: appContainerState.collapseSidePanel,
71
71
  ref: iconButtonRef,
72
72
  color: "grey"
73
- }))) : null, propsTitle && typeof propsTitle !== 'string' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, propsTitle) : typeof propsTitle === 'string' ? /*#__PURE__*/React__default.createElement(Heading, {
73
+ }))) : null, propsTitle && typeof propsTitle !== 'string' ? /*#__PURE__*/React.createElement(React.Fragment, null, propsTitle) : typeof propsTitle === 'string' ? /*#__PURE__*/React.createElement(Heading, {
74
74
  as: "h1"
75
- }, propsTitle) : breadcrumbs ? /*#__PURE__*/React__default.createElement(Breadcrumbs, {
75
+ }, propsTitle) : breadcrumbs ? /*#__PURE__*/React.createElement(Breadcrumbs, {
76
76
  "aria-label": "Breadcrumb"
77
- }, appContainerState && appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? /*#__PURE__*/React__default.createElement(Breadcrumbs.Item, {
77
+ }, appContainerState && appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? /*#__PURE__*/React.createElement(Breadcrumbs.Item, {
78
78
  href: "/",
79
79
  as: ((_breadcrumbs$ = breadcrumbs[0]) === null || _breadcrumbs$ === void 0 ? void 0 : _breadcrumbs$.as) || 'a'
80
- }, typeof appContainerState.product === 'string' ? ProductName[appContainerState.product] : (_appContainerState$pr = appContainerState.product) === null || _appContainerState$pr === void 0 ? void 0 : _appContainerState$pr.name) : null, breadcrumbs.map((breadcrumbItem, index) => /*#__PURE__*/React__default.createElement(Breadcrumbs.Item, _extends({
80
+ }, typeof appContainerState.product === 'string' ? ProductName[appContainerState.product] : (_appContainerState$pr = appContainerState.product) === null || _appContainerState$pr === void 0 ? void 0 : _appContainerState$pr.name) : null, breadcrumbs.map((breadcrumbItem, index) => /*#__PURE__*/React.createElement(Breadcrumbs.Item, _extends({
81
81
  key: index
82
82
  }, breadcrumbItem, {
83
83
  isDisabled: breadcrumbItem.isDisabled || breadcrumbItem.href === undefined,
84
84
  as: index === breadcrumbs.length - 1 ? 'h1' : breadcrumbItem.href === undefined ? 'span' : breadcrumbItem.as || 'a'
85
- })))) : fallbackTitle ? /*#__PURE__*/React__default.createElement(Heading, {
85
+ })))) : fallbackTitle ? /*#__PURE__*/React.createElement(Heading, {
86
86
  as: "h1"
87
- }, fallbackTitle) : null), children ? /*#__PURE__*/React__default.createElement("div", {
87
+ }, fallbackTitle) : null), children ? /*#__PURE__*/React.createElement("div", {
88
88
  className: `${AppBar.className}__right`
89
89
  }, children) : null);
90
90
  });
@@ -1 +1 @@
1
- {"version":3,"file":"AppBar.js","sources":["../../../src/components/app-bar/AppBar.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useContext, useEffect, useState } from 'react';\nimport classNames from 'classnames';\n\nimport { useMessageFormatter } from '../../react-aria/react-aria/i18n';\nimport intlMessages from './intl';\n\nimport { mdiMenuOpen } from '@redsift/icons';\nimport { Comp, ProductName } from '../../types';\nimport { IconButton } from '../icon-button';\nimport { AppContainerContext } from '../app-container/context';\nimport { useIsLoaded } from '../../hooks/useIsLoaded';\nimport { StyledAppBar } from './styles';\nimport { AppBarProps } from './types';\nimport { Heading } from '../heading';\nimport { AppSidePanelVariant } from '../app-side-panel';\nimport { Breadcrumbs } from '../breadcrumbs';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'AppBar';\nconst CLASSNAME = 'redsift-app-bar';\n\n/**\n * The AppBar component.\n */\nexport const AppBar: Comp<AppBarProps, HTMLHeadingElement> = forwardRef((props, ref) => {\n const {\n breadcrumbs,\n children,\n className,\n iconButtonProps,\n iconButtonRef,\n fallbackTitle,\n theme: propsTheme,\n title: propsTitle,\n ...forwardedProps\n } = props;\n\n const [scroll, setScroll] = useState(false);\n useEffect(() => {\n window.addEventListener('scroll', () => {\n setScroll(window.scrollY > 8);\n });\n }, []);\n\n const { isLoaded } = useIsLoaded();\n const appContainerState = useContext(AppContainerContext);\n const theme = useTheme(propsTheme);\n\n const format = useMessageFormatter(intlMessages);\n\n return (\n <StyledAppBar\n {...forwardedProps}\n $hasBorder={scroll}\n $isLoaded={isLoaded}\n $isSidePanelCollapsed={\n appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true\n }\n $isAppFullScreen={appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.hidden : false}\n $theme={theme}\n className={classNames(AppBar.className, className)}\n ref={ref as RefObject<HTMLHeadingElement>}\n >\n <div className={`${AppBar.className}__left`}>\n {appContainerState ? (\n <>\n {appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? (\n <div style={{ width: '30px', height: '30px', marginRight: '3px' }} />\n ) : (\n <IconButton\n className={`${AppBar.className}-left__collapse-button`}\n {...iconButtonProps}\n aria-label={format('collapse')}\n icon={mdiMenuOpen}\n onClick={appContainerState.collapseSidePanel}\n ref={iconButtonRef as RefObject<HTMLButtonElement>}\n color=\"grey\"\n />\n )}\n </>\n ) : null}\n {propsTitle && typeof propsTitle !== 'string' ? (\n <>{propsTitle}</>\n ) : typeof propsTitle === 'string' ? (\n <Heading as=\"h1\">{propsTitle}</Heading>\n ) : breadcrumbs ? (\n <Breadcrumbs aria-label=\"Breadcrumb\">\n {appContainerState && appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? (\n <Breadcrumbs.Item href=\"/\" as={breadcrumbs[0]?.as || 'a'}>\n {typeof appContainerState.product === 'string'\n ? ProductName[appContainerState.product]\n : appContainerState.product?.name}\n </Breadcrumbs.Item>\n ) : null}\n {breadcrumbs.map((breadcrumbItem, index) => (\n <Breadcrumbs.Item\n key={index}\n {...breadcrumbItem}\n isDisabled={breadcrumbItem.isDisabled || breadcrumbItem.href === undefined}\n as={\n index === breadcrumbs.length - 1\n ? 'h1'\n : breadcrumbItem.href === undefined\n ? 'span'\n : breadcrumbItem.as || 'a'\n }\n />\n ))}\n </Breadcrumbs>\n ) : fallbackTitle ? (\n <Heading as=\"h1\">{fallbackTitle}</Heading>\n ) : null}\n </div>\n {children ? <div className={`${AppBar.className}__right`}>{children}</div> : null}\n </StyledAppBar>\n );\n});\nAppBar.className = CLASSNAME;\nAppBar.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","AppBar","forwardRef","props","ref","_breadcrumbs$","_appContainerState$pr","breadcrumbs","children","className","iconButtonProps","iconButtonRef","fallbackTitle","theme","propsTheme","title","propsTitle","forwardedProps","_objectWithoutProperties","_excluded","scroll","setScroll","useState","useEffect","window","addEventListener","scrollY","isLoaded","useIsLoaded","appContainerState","useContext","AppContainerContext","useTheme","format","useMessageFormatter","intlMessages","React","createElement","StyledAppBar","_extends","$hasBorder","$isLoaded","$isSidePanelCollapsed","sidePanelVariant","AppSidePanelVariant","shrinked","$isAppFullScreen","hidden","$theme","classNames","Fragment","style","width","height","marginRight","IconButton","icon","mdiMenuOpen","onClick","collapseSidePanel","color","Heading","as","Breadcrumbs","Item","href","product","ProductName","name","map","breadcrumbItem","index","key","isDisabled","undefined","length","displayName"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,MAAMA,cAAc,GAAG,QAAQ,CAAA;AAC/B,MAAMC,SAAS,GAAG,iBAAiB,CAAA;;AAEnC;AACA;AACA;AACO,MAAMC,MAA6C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAAA,IAAAC,aAAA,EAAAC,qBAAA,CAAA;EACtF,MAAM;MACJC,WAAW;MACXC,QAAQ;MACRC,SAAS;MACTC,eAAe;MACfC,aAAa;MACbC,aAAa;AACbC,MAAAA,KAAK,EAAEC,UAAU;AACjBC,MAAAA,KAAK,EAAEC,UAAAA;AAET,KAAC,GAAGb,KAAK;AADJc,IAAAA,cAAc,GAAAC,wBAAA,CACff,KAAK,EAAAgB,SAAA,CAAA,CAAA;EAET,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC3CC,EAAAA,SAAS,CAAC,MAAM;AACdC,IAAAA,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAE,MAAM;AACtCJ,MAAAA,SAAS,CAACG,MAAM,CAACE,OAAO,GAAG,CAAC,CAAC,CAAA;AAC/B,KAAC,CAAC,CAAA;GACH,EAAE,EAAE,CAAC,CAAA;EAEN,MAAM;AAAEC,IAAAA,QAAAA;GAAU,GAAGC,WAAW,EAAE,CAAA;AAClC,EAAA,MAAMC,iBAAiB,GAAGC,UAAU,CAACC,mBAAmB,CAAC,CAAA;AACzD,EAAA,MAAMlB,KAAK,GAAGmB,QAAQ,CAAClB,UAAU,CAAC,CAAA;AAElC,EAAA,MAAMmB,MAAM,GAAGC,mBAAmB,CAACC,YAAY,CAAC,CAAA;EAEhD,oBACEC,cAAA,C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,EAAAzB,QAAA,CAAA;AACfiC,IAAAA,GAAG,EAAED,KAAAA;AAAM,GAAA,EACPD,cAAc,EAAA;IAClBG,UAAU,EAAEH,cAAc,CAACG,UAAU,IAAIH,cAAc,CAACL,IAAI,KAAKS,SAAU;IAC3EZ,EAAE,EACAS,KAAK,KAAKhE,WAAW,CAACoE,MAAM,GAAG,CAAC,GAC5B,IAAI,GACJL,cAAc,CAACL,IAAI,KAAKS,SAAS,GACjC,MAAM,GACNJ,cAAc,CAACR,EAAE,IAAI,GAAA;GAE5B,CAAA,CACF,CACU,CAAC,GACZlD,aAAa,gBACfwB,cAAA,CAAAC,aAAA,CAACwB,OAAO,EAAA;AAACC,IAAAA,EAAE,EAAC,IAAA;GAAMlD,EAAAA,aAAuB,CAAC,GACxC,IACD,CAAC,EACLJ,QAAQ,gBAAG4B,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAK5B,IAAAA,SAAS,EAAG,CAAA,EAAER,MAAM,CAACQ,SAAU,CAAA,OAAA,CAAA;AAAS,GAAA,EAAED,QAAc,CAAC,GAAG,IACjE,CAAC,CAAA;AAEnB,CAAC,EAAC;AACFP,MAAM,CAACQ,SAAS,GAAGT,SAAS,CAAA;AAC5BC,MAAM,CAAC2E,WAAW,GAAG7E,cAAc;;;;"}
1
+ {"version":3,"file":"AppBar.js","sources":["../../../src/components/app-bar/AppBar.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useContext, useEffect, useState } from 'react';\nimport classNames from 'classnames';\n\nimport { useMessageFormatter } from '../../react-aria/react-aria/i18n';\nimport intlMessages from './intl';\n\nimport { mdiMenuOpen } from '@redsift/icons';\nimport { Comp, ProductName } from '../../types';\nimport { IconButton } from '../icon-button';\nimport { AppContainerContext } from '../app-container/context';\nimport { useIsLoaded } from '../../hooks/useIsLoaded';\nimport { StyledAppBar } from './styles';\nimport { AppBarProps } from './types';\nimport { Heading } from '../heading';\nimport { AppSidePanelVariant } from '../app-side-panel';\nimport { Breadcrumbs } from '../breadcrumbs';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'AppBar';\nconst CLASSNAME = 'redsift-app-bar';\n\n/**\n * The AppBar component.\n */\nexport const AppBar: Comp<AppBarProps, HTMLHeadingElement> = forwardRef((props, ref) => {\n const {\n breadcrumbs,\n children,\n className,\n iconButtonProps,\n iconButtonRef,\n fallbackTitle,\n theme: propsTheme,\n title: propsTitle,\n ...forwardedProps\n } = props;\n\n const [scroll, setScroll] = useState(false);\n useEffect(() => {\n window.addEventListener('scroll', () => {\n setScroll(window.scrollY > 8);\n });\n }, []);\n\n const { isLoaded } = useIsLoaded();\n const appContainerState = useContext(AppContainerContext);\n const theme = useTheme(propsTheme);\n\n const format = useMessageFormatter(intlMessages);\n\n return (\n <StyledAppBar\n {...forwardedProps}\n $hasBorder={scroll}\n $isLoaded={isLoaded}\n $isSidePanelCollapsed={\n appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true\n }\n $isAppFullScreen={appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.hidden : false}\n $theme={theme}\n className={classNames(AppBar.className, className)}\n ref={ref as RefObject<HTMLHeadingElement>}\n >\n <div className={`${AppBar.className}__left`}>\n {appContainerState ? (\n <>\n {appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? (\n <div style={{ width: '30px', height: '30px', marginRight: '3px' }} />\n ) : (\n <IconButton\n className={`${AppBar.className}-left__collapse-button`}\n {...iconButtonProps}\n aria-label={format('collapse')}\n icon={mdiMenuOpen}\n onClick={appContainerState.collapseSidePanel}\n ref={iconButtonRef as RefObject<HTMLButtonElement>}\n color=\"grey\"\n />\n )}\n </>\n ) : null}\n {propsTitle && typeof propsTitle !== 'string' ? (\n <>{propsTitle}</>\n ) : typeof propsTitle === 'string' ? (\n <Heading as=\"h1\">{propsTitle}</Heading>\n ) : breadcrumbs ? (\n <Breadcrumbs aria-label=\"Breadcrumb\">\n {appContainerState && appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? (\n <Breadcrumbs.Item href=\"/\" as={breadcrumbs[0]?.as || 'a'}>\n {typeof appContainerState.product === 'string'\n ? ProductName[appContainerState.product]\n : appContainerState.product?.name}\n </Breadcrumbs.Item>\n ) : null}\n {breadcrumbs.map((breadcrumbItem, index) => (\n <Breadcrumbs.Item\n key={index}\n {...breadcrumbItem}\n isDisabled={breadcrumbItem.isDisabled || breadcrumbItem.href === undefined}\n as={\n index === breadcrumbs.length - 1\n ? 'h1'\n : breadcrumbItem.href === undefined\n ? 'span'\n : breadcrumbItem.as || 'a'\n }\n />\n ))}\n </Breadcrumbs>\n ) : fallbackTitle ? (\n <Heading as=\"h1\">{fallbackTitle}</Heading>\n ) : null}\n </div>\n {children ? <div className={`${AppBar.className}__right`}>{children}</div> : null}\n </StyledAppBar>\n );\n});\nAppBar.className = CLASSNAME;\nAppBar.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","AppBar","forwardRef","props","ref","_breadcrumbs$","_appContainerState$pr","breadcrumbs","children","className","iconButtonProps","iconButtonRef","fallbackTitle","theme","propsTheme","title","propsTitle","forwardedProps","_objectWithoutProperties","_excluded","scroll","setScroll","useState","useEffect","window","addEventListener","scrollY","isLoaded","useIsLoaded","appContainerState","useContext","AppContainerContext","useTheme","format","useMessageFormatter","intlMessages","React","createElement","StyledAppBar","_extends","$hasBorder","$isLoaded","$isSidePanelCollapsed","sidePanelVariant","AppSidePanelVariant","shrinked","$isAppFullScreen","hidden","$theme","classNames","Fragment","style","width","height","marginRight","IconButton","icon","mdiMenuOpen","onClick","collapseSidePanel","color","Heading","as","Breadcrumbs","Item","href","product","ProductName","name","map","breadcrumbItem","index","key","isDisabled","undefined","length","displayName"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,MAAMA,cAAc,GAAG,QAAQ,CAAA;AAC/B,MAAMC,SAAS,GAAG,iBAAiB,CAAA;;AAEnC;AACA;AACA;AACO,MAAMC,MAA6C,gBAAGC,UAAU,CAAC,CAACC,KA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CAAA,CACF,CACU,CAAC,GACZlD,aAAa,gBACfwB,KAAA,CAAAC,aAAA,CAACwB,OAAO,EAAA;AAACC,IAAAA,EAAE,EAAC,IAAA;GAAMlD,EAAAA,aAAuB,CAAC,GACxC,IACD,CAAC,EACLJ,QAAQ,gBAAG4B,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAK5B,IAAAA,SAAS,EAAG,CAAA,EAAER,MAAM,CAACQ,SAAU,CAAA,OAAA,CAAA;AAAS,GAAA,EAAED,QAAc,CAAC,GAAG,IACjE,CAAC,CAAA;AAEnB,CAAC,EAAC;AACFP,MAAM,CAACQ,SAAS,GAAGT,SAAS,CAAA;AAC5BC,MAAM,CAAC2E,WAAW,GAAG7E,cAAc;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef, useRef, useState, useEffect } from 'react';
2
+ import React, { forwardRef, useRef, useState, useEffect } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { AppContainerContext } from './context.js';
5
5
  import { StyledAppContainer } from './styles.js';
@@ -11,43 +11,43 @@ import { ThemeProvider } from '../theme/context.js';
11
11
  const _excluded = ["children", "className", "locale", "product", "theme", "isFullScreen"];
12
12
  const COMPONENT_NAME = 'AppContainer';
13
13
  const CLASSNAME = 'redsift-app-container';
14
- const RadarSvgLinearGradient = () => /*#__PURE__*/React__default.createElement("svg", {
14
+ const RadarSvgLinearGradient = () => /*#__PURE__*/React.createElement("svg", {
15
15
  width: "0",
16
16
  height: "0"
17
- }, /*#__PURE__*/React__default.createElement("linearGradient", {
17
+ }, /*#__PURE__*/React.createElement("linearGradient", {
18
18
  id: "radar-gradient-default",
19
19
  x1: "100%",
20
20
  y1: "100%",
21
21
  x2: "0%",
22
22
  y2: "0%"
23
- }, /*#__PURE__*/React__default.createElement("stop", {
23
+ }, /*#__PURE__*/React.createElement("stop", {
24
24
  stopColor: "rgba(81, 183, 164, 1)",
25
25
  offset: "0%"
26
- }), /*#__PURE__*/React__default.createElement("stop", {
26
+ }), /*#__PURE__*/React.createElement("stop", {
27
27
  stopColor: "rgba(0, 129, 195, 1)",
28
28
  offset: "100%"
29
- })), /*#__PURE__*/React__default.createElement("linearGradient", {
29
+ })), /*#__PURE__*/React.createElement("linearGradient", {
30
30
  id: "radar-gradient-hover",
31
31
  x1: "100%",
32
32
  y1: "100%",
33
33
  x2: "0%",
34
34
  y2: "0%"
35
- }, /*#__PURE__*/React__default.createElement("stop", {
35
+ }, /*#__PURE__*/React.createElement("stop", {
36
36
  stopColor: "rgba(65, 146, 131, 1)",
37
37
  offset: "0%"
38
- }), /*#__PURE__*/React__default.createElement("stop", {
38
+ }), /*#__PURE__*/React.createElement("stop", {
39
39
  stopColor: "rgba(3, 114, 171, 1)",
40
40
  offset: "100%"
41
- })), /*#__PURE__*/React__default.createElement("linearGradient", {
41
+ })), /*#__PURE__*/React.createElement("linearGradient", {
42
42
  id: "radar-gradient-active",
43
43
  x1: "100%",
44
44
  y1: "100%",
45
45
  x2: "0%",
46
46
  y2: "0%"
47
- }, /*#__PURE__*/React__default.createElement("stop", {
47
+ }, /*#__PURE__*/React.createElement("stop", {
48
48
  stopColor: "rgba(58, 122, 110, 1)",
49
49
  offset: "0%"
50
- }), /*#__PURE__*/React__default.createElement("stop", {
50
+ }), /*#__PURE__*/React.createElement("stop", {
51
51
  stopColor: "rgba(0, 96, 145, 1)",
52
52
  offset: "100%"
53
53
  })));
@@ -94,21 +94,21 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
94
94
  appContainerRef: divRef,
95
95
  isFullScreen
96
96
  };
97
- return /*#__PURE__*/React__default.createElement(StyledAppContainer, _extends({}, forwardedProps, {
97
+ return /*#__PURE__*/React.createElement(StyledAppContainer, _extends({}, forwardedProps, {
98
98
  id: "redsift-app-container",
99
99
  $theme: theme,
100
100
  $product: product,
101
101
  className: classNames(AppContainer.className, className),
102
102
  ref: divRef
103
- }), /*#__PURE__*/React__default.createElement(AppContainerContext.Provider, {
103
+ }), /*#__PURE__*/React.createElement(AppContainerContext.Provider, {
104
104
  value: state
105
- }, /*#__PURE__*/React__default.createElement(ThemeProvider, {
105
+ }, /*#__PURE__*/React.createElement(ThemeProvider, {
106
106
  value: {
107
107
  theme
108
108
  }
109
- }, /*#__PURE__*/React__default.createElement(I18nProvider, {
109
+ }, /*#__PURE__*/React.createElement(I18nProvider, {
110
110
  locale: locale
111
- }, children))), /*#__PURE__*/React__default.createElement(RadarSvgLinearGradient, null));
111
+ }, children))), /*#__PURE__*/React.createElement(RadarSvgLinearGradient, null));
112
112
  });
113
113
  AppContainer.className = CLASSNAME;
114
114
  AppContainer.displayName = COMPONENT_NAME;
@@ -1 +1 @@
1
- {"version":3,"file":"AppContainer.js","sources":["../../../src/components/app-container/AppContainer.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useEffect, useRef, useState } from 'react';\nimport { I18nProvider } from '../../react-aria/react-aria/i18n';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { AppContainerProps } from './types';\nimport { AppContainerContext } from './context';\nimport { StyledAppContainer } from './styles';\nimport { AppSidePanelVariant } from '../app-side-panel';\nimport { BreadcrumbItemProps } from '../breadcrumb-item';\nimport { ThemeProvider, useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'AppContainer';\nconst CLASSNAME = 'redsift-app-container';\n\nexport const RadarSvgLinearGradient: React.FC = () => (\n <svg width=\"0\" height=\"0\">\n <linearGradient id=\"radar-gradient-default\" x1=\"100%\" y1=\"100%\" x2=\"0%\" y2=\"0%\">\n <stop stopColor=\"rgba(81, 183, 164, 1)\" offset=\"0%\" />\n <stop stopColor=\"rgba(0, 129, 195, 1)\" offset=\"100%\" />\n </linearGradient>\n <linearGradient id=\"radar-gradient-hover\" x1=\"100%\" y1=\"100%\" x2=\"0%\" y2=\"0%\">\n <stop stopColor=\"rgba(65, 146, 131, 1)\" offset=\"0%\" />\n <stop stopColor=\"rgba(3, 114, 171, 1)\" offset=\"100%\" />\n </linearGradient>\n <linearGradient id=\"radar-gradient-active\" x1=\"100%\" y1=\"100%\" x2=\"0%\" y2=\"0%\">\n <stop stopColor=\"rgba(58, 122, 110, 1)\" offset=\"0%\" />\n <stop stopColor=\"rgba(0, 96, 145, 1)\" offset=\"100%\" />\n </linearGradient>\n </svg>\n);\n\n/**\n * The AppContainer component.\n */\nexport const AppContainer: Comp<AppContainerProps, HTMLDivElement> = forwardRef((props, ref) => {\n const _ref = useRef<HTMLDivElement>();\n const divRef = ref || _ref;\n\n const { children, className, locale, product, theme: propsTheme, isFullScreen = false, ...forwardedProps } = props;\n const theme = useTheme(propsTheme);\n\n const [sidePanelVariant, setSidePanelVariant] = useState<AppSidePanelVariant>(\n isFullScreen ? AppSidePanelVariant.hidden : AppSidePanelVariant.standard\n );\n const [breadcrumbs, setBreadcrumbs] = useState<Omit<BreadcrumbItemProps, 'ref'>[] | undefined>();\n\n useEffect(() => {\n if (isFullScreen && sidePanelVariant !== AppSidePanelVariant.hidden) {\n setSidePanelVariant(AppSidePanelVariant.hidden);\n } else if (!isFullScreen && sidePanelVariant !== AppSidePanelVariant.standard) {\n setSidePanelVariant(AppSidePanelVariant.standard);\n }\n }, [isFullScreen]);\n\n const state = {\n collapseSidePanel() {\n setSidePanelVariant(AppSidePanelVariant.shrinked);\n },\n expandSidePanel() {\n setSidePanelVariant(AppSidePanelVariant.standard);\n },\n setBreadcrumbs(breadcrumbs: Omit<BreadcrumbItemProps, 'ref'>[]) {\n setBreadcrumbs(breadcrumbs);\n },\n product,\n breadcrumbs,\n sidePanelVariant,\n setSidePanelVariant,\n appContainerRef: divRef as RefObject<HTMLDivElement>,\n isFullScreen,\n };\n\n return (\n <StyledAppContainer\n {...forwardedProps}\n id=\"redsift-app-container\"\n $theme={theme}\n $product={product}\n className={classNames(AppContainer.className, className)}\n ref={divRef as RefObject<HTMLDivElement>}\n >\n <AppContainerContext.Provider value={state}>\n <ThemeProvider value={{ theme }}>\n <I18nProvider locale={locale}>{children}</I18nProvider>\n </ThemeProvider>\n </AppContainerContext.Provider>\n <RadarSvgLinearGradient />\n </StyledAppContainer>\n );\n});\nAppContainer.className = CLASSNAME;\nAppContainer.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","RadarSvgLinearGradient","React","createElement","width","height","id","x1","y1","x2","y2","stopColor","offset","AppContainer","forwardRef","props","ref","_ref","useRef","divRef","children","className","locale","product","theme","propsTheme","isFullScreen","forwardedProps","_objectWithoutProperties","_excluded","useTheme","sidePanelVariant","setSidePanelVariant","useState","AppSidePanelVariant","hidden","standard","breadcrumbs","setBreadcrumbs","useEffect","state","collapseSidePanel","shrinked","expandSidePanel","appContainerRef","StyledAppContainer","_extends","$theme","$product","classNames","AppContainerContext","Provider","value","ThemeProvider","I18nProvider","displayName"],"mappings":";;;;;;;;;;;AAWA,MAAMA,cAAc,GAAG,cAAc,CAAA;AACrC,MAAMC,SAAS,GAAG,uBAAuB,CAAA;MAE5BC,sBAAgC,GAAGA,mBAC9CC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,EAAAA,KAAK,EAAC,GAAG;AAACC,EAAAA,MAAM,EAAC,GAAA;AAAG,CACvBH,eAAAA,cAAA,CAAAC,aAAA,CAAA,gBAAA,EAAA;AAAgBG,EAAAA,EAAE,EAAC,wBAAwB;AAACC,EAAAA,EAAE,EAAC,MAAM;AAACC,EAAAA,EAAE,EAAC,MAAM;AAACC,EAAAA,EAAE,EAAC,IAAI;AAACC,EAAAA,EAAE,EAAC,IAAA;AAAI,CAC7ER,eAAAA,cAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMQ,EAAAA,SAAS,EAAC,uBAAuB;AAACC,EAAAA,MAAM,EAAC,IAAA;AAAI,CAAE,CAAC,eACtDV,cAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMQ,EAAAA,SAAS,EAAC,sBAAsB;AAACC,EAAAA,MAAM,EAAC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AAA,eAAe,EAAEzB,MAAmC;AACpDO,IAAAA,YAAAA;GACD,CAAA;EAED,oBACExB,cAAA,CAAAC,aAAA,CAAC0C,kBAAkB,EAAAC,QAAA,KACbnB,cAAc,EAAA;AAClBrB,IAAAA,EAAE,EAAC,uBAAuB;AAC1ByC,IAAAA,MAAM,EAAEvB,KAAM;AACdwB,IAAAA,QAAQ,EAAEzB,OAAQ;IAClBF,SAAS,EAAE4B,UAAU,CAACpC,YAAY,CAACQ,SAAS,EAAEA,SAAS,CAAE;AACzDL,IAAAA,GAAG,EAAEG,MAAAA;AAAoC,GAAA,CAAA,eAEzCjB,cAAA,CAAAC,aAAA,CAAC+C,mBAAmB,CAACC,QAAQ,EAAA;AAACC,IAAAA,KAAK,EAAEZ,KAAAA;AAAM,GAAA,eACzCtC,cAAA,CAAAC,aAAA,CAACkD,aAAa,EAAA;AAACD,IAAAA,KAAK,EAAE;AAAE5B,MAAAA,KAAAA;AAAM,KAAA;AAAE,GAAA,eAC9BtB,cAAA,CAAAC,aAAA,CAACmD,YAAY,EAAA;AAAChC,IAAAA,MAAM,EAAEA,MAAAA;AAAO,GAAA,EAAEF,QAAuB,CACzC,CACa,CAAC,eAC/BlB,cAAA,CAAAC,aAAA,CAACF,sBAAsB,EAAE,IAAA,CACP,CAAC,CAAA;AAEzB,CAAC,EAAC;AACFY,YAAY,CAACQ,SAAS,GAAGrB,SAAS,CAAA;AAClCa,YAAY,CAAC0C,WAAW,GAAGxD,cAAc;;;;"}
1
+ {"version":3,"file":"AppContainer.js","sources":["../../../src/components/app-container/AppContainer.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useEffect, useRef, useState } from 'react';\nimport { I18nProvider } from '../../react-aria/react-aria/i18n';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { AppContainerProps } from './types';\nimport { AppContainerContext } from './context';\nimport { StyledAppContainer } from './styles';\nimport { AppSidePanelVariant } from '../app-side-panel';\nimport { BreadcrumbItemProps } from '../breadcrumb-item';\nimport { ThemeProvider, useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'AppContainer';\nconst CLASSNAME = 'redsift-app-container';\n\nexport const RadarSvgLinearGradient: React.FC = () => (\n <svg width=\"0\" height=\"0\">\n <linearGradient id=\"radar-gradient-default\" x1=\"100%\" y1=\"100%\" x2=\"0%\" y2=\"0%\">\n <stop stopColor=\"rgba(81, 183, 164, 1)\" offset=\"0%\" />\n <stop stopColor=\"rgba(0, 129, 195, 1)\" offset=\"100%\" />\n </linearGradient>\n <linearGradient id=\"radar-gradient-hover\" x1=\"100%\" y1=\"100%\" x2=\"0%\" y2=\"0%\">\n <stop stopColor=\"rgba(65, 146, 131, 1)\" offset=\"0%\" />\n <stop stopColor=\"rgba(3, 114, 171, 1)\" offset=\"100%\" />\n </linearGradient>\n <linearGradient id=\"radar-gradient-active\" x1=\"100%\" y1=\"100%\" x2=\"0%\" y2=\"0%\">\n <stop stopColor=\"rgba(58, 122, 110, 1)\" offset=\"0%\" />\n <stop stopColor=\"rgba(0, 96, 145, 1)\" offset=\"100%\" />\n </linearGradient>\n </svg>\n);\n\n/**\n * The AppContainer component.\n */\nexport const AppContainer: Comp<AppContainerProps, HTMLDivElement> = forwardRef((props, ref) => {\n const _ref = useRef<HTMLDivElement>();\n const divRef = ref || _ref;\n\n const { children, className, locale, product, theme: propsTheme, isFullScreen = false, ...forwardedProps } = props;\n const theme = useTheme(propsTheme);\n\n const [sidePanelVariant, setSidePanelVariant] = useState<AppSidePanelVariant>(\n isFullScreen ? AppSidePanelVariant.hidden : AppSidePanelVariant.standard\n );\n const [breadcrumbs, setBreadcrumbs] = useState<Omit<BreadcrumbItemProps, 'ref'>[] | undefined>();\n\n useEffect(() => {\n if (isFullScreen && sidePanelVariant !== AppSidePanelVariant.hidden) {\n setSidePanelVariant(AppSidePanelVariant.hidden);\n } else if (!isFullScreen && sidePanelVariant !== AppSidePanelVariant.standard) {\n setSidePanelVariant(AppSidePanelVariant.standard);\n }\n }, [isFullScreen]);\n\n const state = {\n collapseSidePanel() {\n setSidePanelVariant(AppSidePanelVariant.shrinked);\n },\n expandSidePanel() {\n setSidePanelVariant(AppSidePanelVariant.standard);\n },\n setBreadcrumbs(breadcrumbs: Omit<BreadcrumbItemProps, 'ref'>[]) {\n setBreadcrumbs(breadcrumbs);\n },\n product,\n breadcrumbs,\n sidePanelVariant,\n setSidePanelVariant,\n appContainerRef: divRef as RefObject<HTMLDivElement>,\n isFullScreen,\n };\n\n return (\n <StyledAppContainer\n {...forwardedProps}\n id=\"redsift-app-container\"\n $theme={theme}\n $product={product}\n className={classNames(AppContainer.className, className)}\n ref={divRef as RefObject<HTMLDivElement>}\n >\n <AppContainerContext.Provider value={state}>\n <ThemeProvider value={{ theme }}>\n <I18nProvider locale={locale}>{children}</I18nProvider>\n </ThemeProvider>\n </AppContainerContext.Provider>\n <RadarSvgLinearGradient />\n </StyledAppContainer>\n );\n});\nAppContainer.className = CLASSNAME;\nAppContainer.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","RadarSvgLinearGradient","React","createElement","width","height","id","x1","y1","x2","y2","stopColor","offset","AppContainer","forwardRef","props","ref","_ref","useRef","divRef","children","className","locale","product","theme","propsTheme","isFullScreen","forwardedProps","_objectWithoutProperties","_excluded","useTheme","sidePanelVariant","setSidePanelVariant","useState","AppSidePanelVariant","hidden","standard","breadcrumbs","setBreadcrumbs","useEffect","state","collapseSidePanel","shrinked","expandSidePanel","appContainerRef","StyledAppContainer","_extends","$theme","$product","classNames","AppContainerContext","Provider","value","ThemeProvider","I18nProvider","displayName"],"mappings":";;;;;;;;;;;AAWA,MAAMA,cAAc,GAAG,cAAc,CAAA;AACrC,MAAMC,SAAS,GAAG,uBAAuB,CAAA;MAE5BC,sBAAgC,GAAGA,mBAC9CC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,EAAAA,KAAK,EAAC,GAAG;AAACC,EAAAA,MAAM,EAAC,GAAA;AAAG,CACvBH,eAAAA,KAAA,C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CACP,CAAC,CAAA;AAEzB,CAAC,EAAC;AACFY,YAAY,CAACQ,SAAS,GAAGrB,SAAS,CAAA;AAClCa,YAAY,CAAC0C,WAAW,GAAGxD,cAAc;;;;"}
@@ -1,6 +1,6 @@
1
- import React__default from 'react';
1
+ import React from 'react';
2
2
 
3
- const AppContainerContext = /*#__PURE__*/React__default.createContext(null);
3
+ const AppContainerContext = /*#__PURE__*/React.createContext(null);
4
4
 
5
5
  export { AppContainerContext };
6
6
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../src/components/app-container/context.ts"],"sourcesContent":["import React from 'react';\nimport { AppContainerState } from './types';\n\nexport const AppContainerContext =\n React.createContext<AppContainerState | null>(null);\n"],"names":["AppContainerContext","React","createContext"],"mappings":";;AAGO,MAAMA,mBAAmB,gBAC9BC,cAAK,CAACC,aAAa,CAA2B,IAAI;;;;"}
1
+ {"version":3,"file":"context.js","sources":["../../../src/components/app-container/context.ts"],"sourcesContent":["import React from 'react';\nimport { AppContainerState } from './types';\n\nexport const AppContainerContext =\n React.createContext<AppContainerState | null>(null);\n"],"names":["AppContainerContext","React","createContext"],"mappings":";;AAGO,MAAMA,mBAAmB,gBAC9BC,KAAK,CAACC,aAAa,CAA2B,IAAI;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef, useContext } from 'react';
2
+ import React, { forwardRef, useContext } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { AppContainerContext } from '../app-container/context.js';
5
5
  import { useIsLoaded } from '../../hooks/useIsLoaded.js';
@@ -26,7 +26,7 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
26
26
  } = useIsLoaded();
27
27
  const appContainerState = useContext(AppContainerContext);
28
28
  const theme = useTheme(propsTheme);
29
- return /*#__PURE__*/React__default.createElement(StyledAppContent, _extends({}, forwardedProps, {
29
+ return /*#__PURE__*/React.createElement(StyledAppContent, _extends({}, forwardedProps, {
30
30
  $isLoaded: isLoaded,
31
31
  $isSidePanelCollapsed: appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true,
32
32
  $isAppFullScreen: appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.hidden : false,
@@ -1 +1 @@
1
- {"version":3,"file":"AppContent.js","sources":["../../../src/components/app-content/AppContent.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useContext } from 'react';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { AppContainerContext } from '../app-container/context';\nimport { useIsLoaded } from '../../hooks/useIsLoaded';\nimport { StyledAppContent } from './styles';\nimport { AppContentProps } from './types';\nimport { AppSidePanelVariant } from '../app-side-panel';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'AppContent';\nconst CLASSNAME = 'redsift-app-content';\n\n/**\n * The AppContent component.\n */\nexport const AppContent: Comp<AppContentProps, HTMLElement> = forwardRef((props, ref) => {\n const { children, className, theme: propsTheme, ...forwardedProps } = props;\n\n const { isLoaded } = useIsLoaded();\n const appContainerState = useContext(AppContainerContext);\n const theme = useTheme(propsTheme);\n\n return (\n <StyledAppContent\n {...forwardedProps}\n $isLoaded={isLoaded}\n $isSidePanelCollapsed={\n appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true\n }\n $isAppFullScreen={appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.hidden : false}\n $theme={theme}\n className={classNames(AppContent.className, className)}\n ref={ref as RefObject<HTMLElement>}\n >\n {children}\n </StyledAppContent>\n );\n});\nAppContent.className = CLASSNAME;\nAppContent.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","AppContent","forwardRef","props","ref","children","className","theme","propsTheme","forwardedProps","_objectWithoutProperties","_excluded","isLoaded","useIsLoaded","appContainerState","useContext","AppContainerContext","useTheme","React","createElement","StyledAppContent","_extends","$isLoaded","$isSidePanelCollapsed","sidePanelVariant","AppSidePanelVariant","shrinked","$isAppFullScreen","hidden","$theme","classNames","displayName"],"mappings":";;;;;;;;;;AAUA,MAAMA,cAAc,GAAG,YAAY,CAAA;AACnC,MAAMC,SAAS,GAAG,qBAAqB,CAAA;;AAEvC;AACA;AACA;AACO,MAAMC,UAA8C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACvF,MAAM;MAAEC,QAAQ;MAAEC,SAAS;AAAEC,MAAAA,KAAK,EAAEC,UAAAA;AAA8B,KAAC,GAAGL,KAAK;AAAxBM,IAAAA,cAAc,GAAAC,wBAAA,CAAKP,KAAK,EAAAQ,SAAA,CAAA,CAAA;EAE3E,MAAM;AAAEC,IAAAA,QAAAA;GAAU,GAAGC,WAAW,EAAE,CAAA;AAClC,EAAA,MAAMC,iBAAiB,GAAGC,UAAU,CAACC,mBAAmB,CAAC,CAAA;AACzD,EAAA,MAAMT,KAAK,GAAGU,QAAQ,CAACT,UAAU,CAAC,CAAA;EAElC,oBACEU,cAAA,CAAAC,aAAA,CAACC,gBAAgB,EAAAC,QAAA,KACXZ,cAAc,EAAA;AAClBa,IAAAA,SAAS,EAAEV,QAAS;IACpBW,qBAAqB,EACnBT,iBAAiB,GAAGA,iBAAiB,CAACU,gBAAgB,KAAKC,mBAAmB,CAACC,QAAQ,GAAG,IAC3F;IACDC,gBAAgB,EAAEb,iBAAiB,GAAGA,iBAAiB,CAACU,gBAAgB,KAAKC,mBAAmB,CAACG,MAAM,GAAG,KAAM;AAChHC,IAAAA,MAAM,EAAEtB,KAAM;IACdD,SAAS,EAAEwB,UAAU,CAAC7B,UAAU,CAACK,SAAS,EAAEA,SAAS,CAAE;AACvDF,IAAAA,GAAG,EAAEA,GAAAA;AAA8B,GAAA,CAAA,EAElCC,QACe,CAAC,CAAA;AAEvB,CAAC,EAAC;AACFJ,UAAU,CAACK,SAAS,GAAGN,SAAS,CAAA;AAChCC,UAAU,CAAC8B,WAAW,GAAGhC,cAAc;;;;"}
1
+ {"version":3,"file":"AppContent.js","sources":["../../../src/components/app-content/AppContent.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useContext } from 'react';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { AppContainerContext } from '../app-container/context';\nimport { useIsLoaded } from '../../hooks/useIsLoaded';\nimport { StyledAppContent } from './styles';\nimport { AppContentProps } from './types';\nimport { AppSidePanelVariant } from '../app-side-panel';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'AppContent';\nconst CLASSNAME = 'redsift-app-content';\n\n/**\n * The AppContent component.\n */\nexport const AppContent: Comp<AppContentProps, HTMLElement> = forwardRef((props, ref) => {\n const { children, className, theme: propsTheme, ...forwardedProps } = props;\n\n const { isLoaded } = useIsLoaded();\n const appContainerState = useContext(AppContainerContext);\n const theme = useTheme(propsTheme);\n\n return (\n <StyledAppContent\n {...forwardedProps}\n $isLoaded={isLoaded}\n $isSidePanelCollapsed={\n appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true\n }\n $isAppFullScreen={appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.hidden : false}\n $theme={theme}\n className={classNames(AppContent.className, className)}\n ref={ref as RefObject<HTMLElement>}\n >\n {children}\n </StyledAppContent>\n );\n});\nAppContent.className = CLASSNAME;\nAppContent.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","AppContent","forwardRef","props","ref","children","className","theme","propsTheme","forwardedProps","_objectWithoutProperties","_excluded","isLoaded","useIsLoaded","appContainerState","useContext","AppContainerContext","useTheme","React","createElement","StyledAppContent","_extends","$isLoaded","$isSidePanelCollapsed","sidePanelVariant","AppSidePanelVariant","shrinked","$isAppFullScreen","hidden","$theme","classNames","displayName"],"mappings":";;;;;;;;;;AAUA,MAAMA,cAAc,GAAG,YAAY,CAAA;AACnC,MAAMC,SAAS,GAAG,qBAAqB,CAAA;;AAEvC;AACA;AACA;AACO,MAAMC,UAA8C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACvF,MAAM;MAAEC,QAAQ;MAAEC,SAAS;AAAEC,MAAAA,KAAK,EAAEC,UAAAA;AAA8B,KAAC,GAAGL,KAAK;AAAxBM,IAAAA,cAAc,GAAAC,wBAAA,CAAKP,KAAK,EAAAQ,SAAA,CAAA,CAAA;EAE3E,MAAM;AAAEC,IAAAA,QAAAA;GAAU,GAAGC,WAAW,EAAE,CAAA;AAClC,EAAA,MAAMC,iBAAiB,GAAGC,UAAU,CAACC,mBAAmB,CAAC,CAAA;AACzD,EAAA,MAAMT,KAAK,GAAGU,QAAQ,CAACT,UAAU,CAAC,CAAA;EAElC,oBACEU,KAAA,CAAAC,aAAA,CAACC,gBAAgB,EAAAC,QAAA,KACXZ,cAAc,EAAA;AAClBa,IAAAA,SAAS,EAAEV,QAAS;IACpBW,qBAAqB,EACnBT,iBAAiB,GAAGA,iBAAiB,CAACU,gBAAgB,KAAKC,mBAAmB,CAACC,QAAQ,GAAG,IAC3F;IACDC,gBAAgB,EAAEb,iBAAiB,GAAGA,iBAAiB,CAACU,gBAAgB,KAAKC,mBAAmB,CAACG,MAAM,GAAG,KAAM;AAChHC,IAAAA,MAAM,EAAEtB,KAAM;IACdD,SAAS,EAAEwB,UAAU,CAAC7B,UAAU,CAACK,SAAS,EAAEA,SAAS,CAAE;AACvDF,IAAAA,GAAG,EAAEA,GAAAA;AAA8B,GAAA,CAAA,EAElCC,QACe,CAAC,CAAA;AAEvB,CAAC,EAAC;AACFJ,UAAU,CAACK,SAAS,GAAGN,SAAS,CAAA;AAChCC,UAAU,CAAC8B,WAAW,GAAGhC,cAAc;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef, useContext, useEffect } from 'react';
2
+ import React, { forwardRef, useContext, useEffect } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import intlMessages from './intl/index.js';
5
5
  import { AppContainerContext } from '../app-container/context.js';
@@ -49,24 +49,24 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
49
49
  };
50
50
  const computedVariant = appContainerState ? appContainerState.sidePanelVariant : variant;
51
51
  const product = appContainerState && appContainerState.product;
52
- return /*#__PURE__*/React__default.createElement(StyledAppSidePanel, _extends({}, forwardedProps, {
52
+ return /*#__PURE__*/React.createElement(StyledAppSidePanel, _extends({}, forwardedProps, {
53
53
  $theme: theme,
54
54
  $variant: computedVariant,
55
55
  className: classNames(AppSidePanel.className, className),
56
56
  ref: ref
57
- }), /*#__PURE__*/React__default.createElement("div", {
57
+ }), /*#__PURE__*/React.createElement("div", {
58
58
  className: `${AppSidePanel.className}__header`
59
- }, /*#__PURE__*/React__default.createElement("div", {
59
+ }, /*#__PURE__*/React.createElement("div", {
60
60
  className: `${AppSidePanel.className}-header__logo`
61
- }, /*#__PURE__*/React__default.isValidElement(logo) ? logo : logo ? /*#__PURE__*/React__default.createElement("img", {
61
+ }, /*#__PURE__*/React.isValidElement(logo) ? logo : logo ? /*#__PURE__*/React.createElement("img", {
62
62
  src: logo.src,
63
63
  alt: logo.alt
64
- }) : product && (typeof product === 'string' || product.logo) ? /*#__PURE__*/React__default.createElement(Icon, {
64
+ }) : product && (typeof product === 'string' || product.logo) ? /*#__PURE__*/React.createElement(Icon, {
65
65
  icon: typeof product === 'string' ? ProductLogo[product] : product.logo,
66
66
  size: {
67
67
  height: width && width > 1080 ? 41 : 36
68
68
  }
69
- }) : null), /*#__PURE__*/React__default.createElement(IconButton, _extends({
69
+ }) : null), /*#__PURE__*/React.createElement(IconButton, _extends({
70
70
  className: `${AppSidePanel.className}-header__expand-button`
71
71
  }, iconButtonProps, {
72
72
  "aria-label": format('expand'),
@@ -75,7 +75,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
75
75
  ref: iconButtonRef,
76
76
  color: "grey",
77
77
  isDisabled: computedVariant === 'standard'
78
- }))), featuredElements ? /*#__PURE__*/React__default.createElement("div", {
78
+ }))), featuredElements ? /*#__PURE__*/React.createElement("div", {
79
79
  className: `${AppSidePanel.className}__featured`
80
80
  }, featuredElements) : null, children);
81
81
  });
@@ -1 +1 @@
1
- {"version":3,"file":"AppSidePanel.js","sources":["../../../src/components/app-side-panel/AppSidePanel.tsx"],"sourcesContent":["import React, { ComponentProps, forwardRef, MouseEvent, RefObject, useContext, useEffect } from 'react';\nimport classNames from 'classnames';\n\nimport { useMessageFormatter } from '../../react-aria/react-aria/i18n';\nimport intlMessages from './intl';\n\nimport { Comp, ProductLogo } from '../../types';\nimport { IconButton } from '../icon-button';\nimport { AppContainerContext } from '../app-container/context';\nimport { StyledAppSidePanel } from './styles';\nimport { AppSidePanelProps } from './types';\nimport { mdiMenu } from '@redsift/icons';\nimport { Icon } from '../icon';\nimport { useWindowSize } from '../../hooks';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'AppSidePanel';\nconst CLASSNAME = 'redsift-app-side-panel';\n\n/**\n * The AppSidePanel component.\n */\nexport const AppSidePanel: Comp<AppSidePanelProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n children,\n className,\n featuredElements,\n iconButtonProps,\n iconButtonRef,\n logo,\n onOpen,\n theme: propsTheme,\n variant,\n ...forwardedProps\n } = props;\n\n const { width } = useWindowSize();\n\n const appContainerState = useContext(AppContainerContext);\n const theme = useTheme(propsTheme);\n\n const format = useMessageFormatter(intlMessages);\n\n useEffect(() => {\n if (appContainerState && variant && appContainerState.sidePanelVariant !== variant) {\n appContainerState.setSidePanelVariant(variant);\n }\n }, [variant]);\n\n const handleClose = (event: MouseEvent) => {\n onOpen?.(event);\n appContainerState?.expandSidePanel();\n };\n\n const computedVariant = appContainerState ? appContainerState.sidePanelVariant : variant;\n const product = appContainerState && appContainerState.product;\n\n return (\n <StyledAppSidePanel\n {...forwardedProps}\n $theme={theme}\n $variant={computedVariant}\n className={classNames(AppSidePanel.className, className)}\n ref={ref as RefObject<HTMLDivElement>}\n >\n <div className={`${AppSidePanel.className}__header`}>\n <div className={`${AppSidePanel.className}-header__logo`}>\n {React.isValidElement(logo) ? (\n logo\n ) : logo ? (\n <img src={(logo as ComponentProps<'img'>).src} alt={(logo as ComponentProps<'img'>).alt} />\n ) : product && (typeof product === 'string' || product.logo) ? (\n <Icon\n icon={typeof product === 'string' ? ProductLogo[product] : product.logo!}\n size={{ height: width && width > 1080 ? 41 : 36 }}\n />\n ) : null}\n </div>\n <IconButton\n className={`${AppSidePanel.className}-header__expand-button`}\n {...iconButtonProps}\n aria-label={format('expand')}\n icon={mdiMenu}\n onClick={handleClose}\n ref={iconButtonRef as RefObject<HTMLButtonElement>}\n color=\"grey\"\n isDisabled={computedVariant === 'standard'}\n />\n </div>\n {featuredElements ? <div className={`${AppSidePanel.className}__featured`}>{featuredElements}</div> : null}\n {children}\n </StyledAppSidePanel>\n );\n});\nAppSidePanel.className = CLASSNAME;\nAppSidePanel.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","AppSidePanel","forwardRef","props","ref","children","className","featuredElements","iconButtonProps","iconButtonRef","logo","onOpen","theme","propsTheme","variant","forwardedProps","_objectWithoutProperties","_excluded","width","useWindowSize","appContainerState","useContext","AppContainerContext","useTheme","format","useMessageFormatter","intlMessages","useEffect","sidePanelVariant","setSidePanelVariant","handleClose","event","expandSidePanel","computedVariant","product","React","createElement","StyledAppSidePanel","_extends","$theme","$variant","classNames","isValidElement","src","alt","Icon","icon","ProductLogo","size","height","IconButton","mdiMenu","onClick","color","isDisabled","displayName"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAMA,cAAc,GAAG,cAAc,CAAA;AACrC,MAAMC,SAAS,GAAG,wBAAwB,CAAA;;AAE1C;AACA;AACA;AACO,MAAMC,YAAqD,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAC9F,MAAM;MACJC,QAAQ;MACRC,SAAS;MACTC,gBAAgB;MA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AA,MAAM,CAAC,QAAQ,CAAE;AAC7BsB,IAAAA,IAAI,EAAEK,OAAQ;AACdC,IAAAA,OAAO,EAAEtB,WAAY;AACrB1B,IAAAA,GAAG,EAAEK,aAA8C;AACnD4C,IAAAA,KAAK,EAAC,MAAM;IACZC,UAAU,EAAErB,eAAe,KAAK,UAAA;AAAW,GAAA,CAC5C,CACE,CAAC,EACL1B,gBAAgB,gBAAG4B,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAK9B,IAAAA,SAAS,EAAG,CAAA,EAAEL,YAAY,CAACK,SAAU,CAAA,UAAA,CAAA;AAAY,GAAA,EAAEC,gBAAsB,CAAC,GAAG,IAAI,EACzGF,QACiB,CAAC,CAAA;AAEzB,CAAC,EAAC;AACFJ,YAAY,CAACK,SAAS,GAAGN,SAAS,CAAA;AAClCC,YAAY,CAACsD,WAAW,GAAGxD,cAAc;;;;"}
1
+ {"version":3,"file":"AppSidePanel.js","sources":["../../../src/components/app-side-panel/AppSidePanel.tsx"],"sourcesContent":["import React, { ComponentProps, forwardRef, MouseEvent, RefObject, useContext, useEffect } from 'react';\nimport classNames from 'classnames';\n\nimport { useMessageFormatter } from '../../react-aria/react-aria/i18n';\nimport intlMessages from './intl';\n\nimport { Comp, ProductLogo } from '../../types';\nimport { IconButton } from '../icon-button';\nimport { AppContainerContext } from '../app-container/context';\nimport { StyledAppSidePanel } from './styles';\nimport { AppSidePanelProps } from './types';\nimport { mdiMenu } from '@redsift/icons';\nimport { Icon } from '../icon';\nimport { useWindowSize } from '../../hooks';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'AppSidePanel';\nconst CLASSNAME = 'redsift-app-side-panel';\n\n/**\n * The AppSidePanel component.\n */\nexport const AppSidePanel: Comp<AppSidePanelProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n children,\n className,\n featuredElements,\n iconButtonProps,\n iconButtonRef,\n logo,\n onOpen,\n theme: propsTheme,\n variant,\n ...forwardedProps\n } = props;\n\n const { width } = useWindowSize();\n\n const appContainerState = useContext(AppContainerContext);\n const theme = useTheme(propsTheme);\n\n const format = useMessageFormatter(intlMessages);\n\n useEffect(() => {\n if (appContainerState && variant && appContainerState.sidePanelVariant !== variant) {\n appContainerState.setSidePanelVariant(variant);\n }\n }, [variant]);\n\n const handleClose = (event: MouseEvent) => {\n onOpen?.(event);\n appContainerState?.expandSidePanel();\n };\n\n const computedVariant = appContainerState ? appContainerState.sidePanelVariant : variant;\n const product = appContainerState && appContainerState.product;\n\n return (\n <StyledAppSidePanel\n {...forwardedProps}\n $theme={theme}\n $variant={computedVariant}\n className={classNames(AppSidePanel.className, className)}\n ref={ref as RefObject<HTMLDivElement>}\n >\n <div className={`${AppSidePanel.className}__header`}>\n <div className={`${AppSidePanel.className}-header__logo`}>\n {React.isValidElement(logo) ? (\n logo\n ) : logo ? (\n <img src={(logo as ComponentProps<'img'>).src} alt={(logo as ComponentProps<'img'>).alt} />\n ) : product && (typeof product === 'string' || product.logo) ? (\n <Icon\n icon={typeof product === 'string' ? ProductLogo[product] : product.logo!}\n size={{ height: width && width > 1080 ? 41 : 36 }}\n />\n ) : null}\n </div>\n <IconButton\n className={`${AppSidePanel.className}-header__expand-button`}\n {...iconButtonProps}\n aria-label={format('expand')}\n icon={mdiMenu}\n onClick={handleClose}\n ref={iconButtonRef as RefObject<HTMLButtonElement>}\n color=\"grey\"\n isDisabled={computedVariant === 'standard'}\n />\n </div>\n {featuredElements ? <div className={`${AppSidePanel.className}__featured`}>{featuredElements}</div> : null}\n {children}\n </StyledAppSidePanel>\n );\n});\nAppSidePanel.className = CLASSNAME;\nAppSidePanel.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","AppSidePanel","forwardRef","props","ref","children","className","featuredElements","iconButtonProps","iconButtonRef","logo","onOpen","theme","propsTheme","variant","forwardedProps","_objectWithoutProperties","_excluded","width","useWindowSize","appContainerState","useContext","AppContainerContext","useTheme","format","useMessageFormatter","intlMessages","useEffect","sidePanelVariant","setSidePanelVariant","handleClose","event","expandSidePanel","computedVariant","product","React","createElement","StyledAppSidePanel","_extends","$theme","$variant","classNames","isValidElement","src","alt","Icon","icon","ProductLogo","size","height","IconButton","mdiMenu","onClick","color","isDisabled","displayName"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAMA,cAAc,GAAG,cAAc,CAAA;AACrC,MAAMC,SAAS,GAAG,wBAAwB,CAAA;;AAE1C;AACA;AACA;AACO,MAAMC,YAAqD,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAC9F,MAAM;MACJC,QAAQ;MACRC,SAAS;MACTC,gBAAgB;MAChBC,eAAe;MACfC,aAAa;MACbC,IAAI;MACJC,MAAM;AACNC,MAAAA,KAAK,EAAEC,UAAU;AACjBC,MAAAA,OAAAA;AAEF,KAAC,GAAGX,KAAK;AADJY,IAAAA,cAAc,GAAAC,wBAAA,CACfb,KAAK,EAAAc,SAAA,CAAA,CAAA;EAET,MAAM;AAAEC,IAAAA,KAAAA;GAAO,GAAGC,aAAa,EAAE,CAAA;AAEjC,EAAA,MAAMC,iBAAiB,GAAGC,UAAU,CAACC,mBAAmB,CAAC,CAAA;AACzD,EAAA,MAAMV,KAAK,GAAGW,QAAQ,CAACV,UAAU,CAAC,CAAA;AAElC,EAAA,MAAMW,MAAM,GAAGC,mBAAmB,CAACC,YAAY,CAAC,CAAA;AAEhDC,EAAAA,SAAS,CAAC,MAAM;IACd,IAAIP,iBAAiB,IAAIN,OAAO,IAAIM,iBAAiB,CAACQ,gBAAgB,KAAKd,OAAO,EAAE;AAClFM,MAAAA,iBAAiB,CAACS,mBAAmB,CAACf,OAAO,CAAC,CAAA;AAChD,KAAA;AACF,GAAC,EAAE,CAACA,OAAO,CAAC,CAAC,CAAA;EAEb,MAAMgB,WAAW,GAAIC,KAAiB,IAAK;AACzCpB,IAAAA,MAAM,aAANA,MAAM,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAANA,MAAM,CAAGoB,K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O,KAAK,QAAQ,GAAGa,WAAW,CAACb,OAAO,CAAC,GAAGA,OAAO,CAACxB,IAAM;AACzEsC,IAAAA,IAAI,EAAE;MAAEC,MAAM,EAAE/B,KAAK,IAAIA,KAAK,GAAG,IAAI,GAAG,EAAE,GAAG,EAAA;AAAG,KAAA;GACjD,CAAC,GACA,IACD,CAAC,eACNiB,KAAA,CAAAC,aAAA,CAACc,UAAU,EAAAZ,QAAA,CAAA;AACThC,IAAAA,SAAS,EAAG,CAAA,EAAEL,YAAY,CAACK,SAAU,CAAA,sBAAA,CAAA;AAAwB,GAAA,EACzDE,eAAe,EAAA;IACnB,YAAYgB,EAAAA,MAAM,CAAC,QAAQ,CAAE;AAC7BsB,IAAAA,IAAI,EAAEK,OAAQ;AACdC,IAAAA,OAAO,EAAEtB,WAAY;AACrB1B,IAAAA,GAAG,EAAEK,aAA8C;AACnD4C,IAAAA,KAAK,EAAC,MAAM;IACZC,UAAU,EAAErB,eAAe,KAAK,UAAA;AAAW,GAAA,CAC5C,CACE,CAAC,EACL1B,gBAAgB,gBAAG4B,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAK9B,IAAAA,SAAS,EAAG,CAAA,EAAEL,YAAY,CAACK,SAAU,CAAA,UAAA,CAAA;AAAY,GAAA,EAAEC,gBAAsB,CAAC,GAAG,IAAI,EACzGF,QACiB,CAAC,CAAA;AAEzB,CAAC,EAAC;AACFJ,YAAY,CAACK,SAAS,GAAGN,SAAS,CAAA;AAClCC,YAAY,CAACsD,WAAW,GAAGxD,cAAc;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default from 'react';
2
+ import React from 'react';
3
3
  import { useSideNavigationMenuBar } from '../side-navigation-menu-bar/useSideNavigationMenuBar.js';
4
4
  import { SideNavigationMenuBar } from '../side-navigation-menu-bar/SideNavigationMenuBar.js';
5
5
 
@@ -13,7 +13,7 @@ const useAppSidePanel = _ref => {
13
13
  isActive
14
14
  });
15
15
  return {
16
- children: /*#__PURE__*/React__default.createElement(SideNavigationMenuBar, _extends({}, sideNavigationMenuBarProps, {
16
+ children: /*#__PURE__*/React.createElement(SideNavigationMenuBar, _extends({}, sideNavigationMenuBarProps, {
17
17
  "aria-label": "Navigation"
18
18
  }))
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useAppSidePanel.js","sources":["../../../src/components/app-side-panel/useAppSidePanel.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SideNavigationMenuBar,\n useSideNavigationMenuBar,\n UseSideNavigationMenuBarProps,\n} from '../side-navigation-menu-bar';\nimport { AppSidePanelProps } from './types';\n\nexport const useAppSidePanel = ({ items, isActive }: UseSideNavigationMenuBarProps): Omit<AppSidePanelProps, 'ref'> => {\n const sideNavigationMenuBarProps = useSideNavigationMenuBar({\n items,\n isActive,\n });\n\n return {\n children: <SideNavigationMenuBar {...sideNavigationMenuBarProps} aria-label=\"Navigation\" />,\n };\n};\n"],"names":["useAppSidePanel","_ref","items","isActive","sideNavigationMenuBarProps","useSideNavigationMenuBar","children","React","createElement","SideNavigationMenuBar","_extends"],"mappings":";;;;;AAQaA,MAAAA,eAAe,GAAGC,IAAA,IAAwF;EAAA,IAAvF;IAAEC,KAAK;AAAEC,IAAAA,QAAAA;AAAwC,GAAC,GAAAF,IAAA,CAAA;EAChF,MAAMG,0BAA0B,GAAGC,wBAAwB,CAAC;IAC1DH,KAAK;AACLC,IAAAA,QAAAA;AACF,GAAC,CAAC,CAAA;EAEF,OAAO;IACLG,QAAQ,eAAEC,cAAA,CAAAC,aAAA,CAACC,qBAAqB,EAAAC,QAAA,CAAA,EAAA,EAAKN,0BAA0B,EAAA;MAAE,YAAW,EAAA,YAAA;KAAc,CAAA,CAAA;GAC3F,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"useAppSidePanel.js","sources":["../../../src/components/app-side-panel/useAppSidePanel.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SideNavigationMenuBar,\n useSideNavigationMenuBar,\n UseSideNavigationMenuBarProps,\n} from '../side-navigation-menu-bar';\nimport { AppSidePanelProps } from './types';\n\nexport const useAppSidePanel = ({ items, isActive }: UseSideNavigationMenuBarProps): Omit<AppSidePanelProps, 'ref'> => {\n const sideNavigationMenuBarProps = useSideNavigationMenuBar({\n items,\n isActive,\n });\n\n return {\n children: <SideNavigationMenuBar {...sideNavigationMenuBarProps} aria-label=\"Navigation\" />,\n };\n};\n"],"names":["useAppSidePanel","_ref","items","isActive","sideNavigationMenuBarProps","useSideNavigationMenuBar","children","React","createElement","SideNavigationMenuBar","_extends"],"mappings":";;;;;AAQaA,MAAAA,eAAe,GAAGC,IAAA,IAAwF;EAAA,IAAvF;IAAEC,KAAK;AAAEC,IAAAA,QAAAA;AAAwC,GAAC,GAAAF,IAAA,CAAA;EAChF,MAAMG,0BAA0B,GAAGC,wBAAwB,CAAC;IAC1DH,KAAK;AACLC,IAAAA,QAAAA;AACF,GAAC,CAAC,CAAA;EAEF,OAAO;IACLG,QAAQ,eAAEC,KAAA,CAAAC,aAAA,CAACC,qBAAqB,EAAAC,QAAA,CAAA,EAAA,EAAKN,0BAA0B,EAAA;MAAE,YAAW,EAAA,YAAA;KAAc,CAAA,CAAA;GAC3F,CAAA;AACH;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef } from 'react';
2
+ import React, { forwardRef } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { StyledBadge } from './styles.js';
5
5
  import { BadgeVariant } from './types.js';
@@ -27,7 +27,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
27
27
  const theme = useTheme(propsTheme);
28
28
  const color = [...Object.values(NotificationsColorPalette), ...Object.values(PresentationColorPalette)].includes(propsColor) ? propsColor : 'question';
29
29
  const variant = Object.values(BadgeVariant).includes(propsVariant) ? propsVariant : 'dot';
30
- return /*#__PURE__*/React__default.createElement(StyledBadge, _extends({}, forwardedProps, {
30
+ return /*#__PURE__*/React.createElement(StyledBadge, _extends({}, forwardedProps, {
31
31
  $autoBreak: autoBreak,
32
32
  $color: color,
33
33
  $isReversed: isReversed,
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sources":["../../../src/components/badge/Badge.tsx"],"sourcesContent":["import React, { forwardRef, RefObject } from 'react';\nimport classNames from 'classnames';\nimport { NotificationsColorPalette, Comp, PresentationColorPalette } from '../../types';\nimport { StyledBadge } from './styles';\nimport { BadgeProps, BadgeVariant } from './types';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'Badge';\nconst CLASSNAME = 'redsift-badge';\n\n/**\n * The Badge component.\n */\nexport const Badge: Comp<BadgeProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n autoBreak,\n children,\n className,\n color: propsColor,\n isReversed,\n theme: propsTheme,\n variant: propsVariant,\n ...forwardedProps\n } = props;\n\n const theme = useTheme(propsTheme);\n const color = [...Object.values(NotificationsColorPalette), ...Object.values(PresentationColorPalette)].includes(\n propsColor!\n )\n ? propsColor\n : 'question';\n const variant = Object.values(BadgeVariant).includes(propsVariant!) ? propsVariant : 'dot';\n\n return (\n <StyledBadge\n {...forwardedProps}\n $autoBreak={autoBreak}\n $color={color}\n $isReversed={isReversed}\n $theme={theme}\n $variant={variant}\n className={classNames(Badge.className, `${Badge.className}-${variant}`, className)}\n ref={ref as RefObject<HTMLDivElement>}\n >\n {variant === BadgeVariant.standard ? children : null}\n </StyledBadge>\n );\n});\nBadge.className = CLASSNAME;\nBadge.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","Badge","forwardRef","props","ref","autoBreak","children","className","color","propsColor","isReversed","theme","propsTheme","variant","propsVariant","forwardedProps","_objectWithoutProperties","_excluded","useTheme","Object","values","NotificationsColorPalette","PresentationColorPalette","includes","BadgeVariant","React","createElement","StyledBadge","_extends","$autoBreak","$color","$isReversed","$theme","$variant","classNames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AAEN,SAAS,CAAE;AACnFH,IAAAA,GAAG,EAAEA,GAAAA;GAEJS,CAAAA,EAAAA,OAAO,KAAKW,YAAY,CAACW,QAAQ,GAAG7B,QAAQ,GAAG,IACrC,CAAC,CAAA;AAElB,CAAC,EAAC;AACFL,KAAK,CAACM,SAAS,GAAGP,SAAS,CAAA;AAC3BC,KAAK,CAACmC,WAAW,GAAGrC,cAAc;;;;"}
1
+ {"version":3,"file":"Badge.js","sources":["../../../src/components/badge/Badge.tsx"],"sourcesContent":["import React, { forwardRef, RefObject } from 'react';\nimport classNames from 'classnames';\nimport { NotificationsColorPalette, Comp, PresentationColorPalette } from '../../types';\nimport { StyledBadge } from './styles';\nimport { BadgeProps, BadgeVariant } from './types';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'Badge';\nconst CLASSNAME = 'redsift-badge';\n\n/**\n * The Badge component.\n */\nexport const Badge: Comp<BadgeProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n autoBreak,\n children,\n className,\n color: propsColor,\n isReversed,\n theme: propsTheme,\n variant: propsVariant,\n ...forwardedProps\n } = props;\n\n const theme = useTheme(propsTheme);\n const color = [...Object.values(NotificationsColorPalette), ...Object.values(PresentationColorPalette)].includes(\n propsColor!\n )\n ? propsColor\n : 'question';\n const variant = Object.values(BadgeVariant).includes(propsVariant!) ? propsVariant : 'dot';\n\n return (\n <StyledBadge\n {...forwardedProps}\n $autoBreak={autoBreak}\n $color={color}\n $isReversed={isReversed}\n $theme={theme}\n $variant={variant}\n className={classNames(Badge.className, `${Badge.className}-${variant}`, className)}\n ref={ref as RefObject<HTMLDivElement>}\n >\n {variant === BadgeVariant.standard ? children : null}\n </StyledBadge>\n );\n});\nBadge.className = CLASSNAME;\nBadge.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","Badge","forwardRef","props","ref","autoBreak","children","className","color","propsColor","isReversed","theme","propsTheme","variant","propsVariant","forwardedProps","_objectWithoutProperties","_excluded","useTheme","Object","values","NotificationsColorPalette","PresentationColorPalette","includes","BadgeVariant","React","createElement","StyledBadge","_extends","$autoBreak","$color","$isReversed","$theme","$variant","classNames","standard","displayName"],"mappings":";;;;;;;;;AAOA,MAAMA,cAAc,GAAG,OAAO,CAAA;AAC9B,MAAMC,SAAS,GAAG,eAAe,CAAA;;AAEjC;AACA;AACA;AACO,MAAMC,KAAuC,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAChF,MAAM;MACJC,SAAS;MACTC,QAAQ;MACRC,SAAS;AACTC,MAAAA,KAAK,EAAEC,UAAU;MACjBC,UAAU;AACVC,MAAAA,KAAK,EAAEC,UAAU;AACjBC,MAAAA,OAAO,EAAEC,YAAAA;AAEX,KAAC,GAAGX,KAAK;AADJY,IAAAA,cAAc,GAAAC,wBAAA,CACfb,KAAK,EAAAc,SAAA,CAAA,CAAA;AAET,EAAA,MAAMN,KAAK,GAAGO,QAAQ,CAACN,UAAU,CAAC,CAAA;EAClC,MAAMJ,KAAK,GAAG,CAAC,GAAGW,MAAM,CAACC,MAAM,CAACC,yBAAyB,CAAC,EAAE,GAAGF,MAAM,CAACC,MAAM,CAACE,wBAAwB,CAAC,CAAC,CAACC,QAAQ,CAC9Gd,UACF,CAAC,GACGA,UAAU,GACV,UAAU,CAAA;AACd,EAAA,MAAMI,OAAO,GAAGM,MAAM,CAACC,MAAM,CAACI,YAAY,CAAC,CAACD,QAAQ,CAACT,YAAa,CAAC,GAAGA,YAAY,GAAG,KAAK,CAAA;EAE1F,oBACEW,KAAA,CAAAC,aAAA,CAACC,WAAW,EAAAC,QAAA,KACNb,cAAc,EAAA;AAClBc,IAAAA,UAAU,EAAExB,SAAU;AACtByB,IAAAA,MAAM,EAAEtB,KAAM;AACduB,IAAAA,WAAW,EAAErB,UAAW;AACxBsB,IAAAA,MAAM,EAAErB,KAAM;AACdsB,IAAAA,QAAQ,EAAEpB,OAAQ;AAClBN,IAAAA,SAAS,EAAE2B,UAAU,CAACjC,KAAK,CAACM,SAAS,EAAG,CAAA,EAAEN,KAAK,CAACM,SAAU,CAAGM,CAAAA,EAAAA,OAAQ,CAAC,CAAA,EAAEN,SAAS,CAAE;AACnFH,IAAAA,GAAG,EAAEA,GAAAA;GAEJS,CAAAA,EAAAA,OAAO,KAAKW,YAAY,CAACW,QAAQ,GAAG7B,QAAQ,GAAG,IACrC,CAAC,CAAA;AAElB,CAAC,EAAC;AACFL,KAAK,CAACM,SAAS,GAAGP,SAAS,CAAA;AAC3BC,KAAK,CAACmC,WAAW,GAAGrC,cAAc;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef } from 'react';
2
+ import React, { forwardRef } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { warnIfNoAccessibleLabelFound } from '../../utils/warnIfNoAccessibleLabelFound.js';
5
5
  import { StyledBreadcrumbItem } from './styles.js';
@@ -25,7 +25,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
25
25
  forwardedProps = _objectWithoutProperties(props, _excluded);
26
26
  warnIfNoAccessibleLabelFound(props, [children], 'BreadcrumbItem');
27
27
  const theme = useTheme(propsTheme);
28
- return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends({
28
+ return /*#__PURE__*/React.createElement(StyledBreadcrumbItem, _extends({
29
29
  as: as || 'a',
30
30
  role: !isCurrent ? 'link' : undefined,
31
31
  tabIndex: !isDisabled && !isCurrent ? 0 : undefined
@@ -1 +1 @@
1
- {"version":3,"file":"BreadcrumbItem.js","sources":["../../../src/components/breadcrumb-item/BreadcrumbItem.tsx"],"sourcesContent":["import React, { forwardRef, RefObject } from 'react';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { warnIfNoAccessibleLabelFound } from '../../utils/warnIfNoAccessibleLabelFound';\nimport { StyledBreadcrumbItem } from './styles';\nimport { BreadcrumbItemProps } from './types';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'BreadcrumbItem';\nconst CLASSNAME = 'redsift-breadcrumb-item';\n\n/**\n * The BreadcrumbItem components is a list of links to the parent pages of the current page in hierarchical order.\n */\nexport const BreadcrumbItem: Comp<BreadcrumbItemProps, HTMLAnchorElement> = forwardRef((props, ref) => {\n const { as, children, className, href, isCurrent, isDisabled, theme: propsTheme, ...forwardedProps } = props;\n\n warnIfNoAccessibleLabelFound(props, [children], 'BreadcrumbItem');\n\n const theme = useTheme(propsTheme);\n\n return (\n <StyledBreadcrumbItem\n as={(as || 'a') as any}\n role={!isCurrent ? 'link' : undefined}\n tabIndex={!isDisabled && !isCurrent ? 0 : undefined}\n {...forwardedProps}\n $isCurrent={isCurrent}\n $isDisabled={isDisabled}\n $theme={theme}\n aria-current={isCurrent ? 'page' : undefined}\n aria-disabled={isDisabled || isCurrent}\n className={classNames(BreadcrumbItem.className, className)}\n href={!isDisabled && !isCurrent ? href : undefined}\n ref={ref as RefObject<HTMLAnchorElement>}\n >\n {children}\n </StyledBreadcrumbItem>\n );\n});\nBreadcrumbItem.className = CLASSNAME;\nBreadcrumbItem.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","BreadcrumbItem","forwardRef","props","ref","as","children","className","href","isCurrent","isDisabled","theme","propsTheme","forwardedProps","_objectWithoutProperties","_excluded","warnIfNoAccessibleLabelFound","useTheme","React","createElement","StyledBreadcrumbItem","_extends","role","undefined","tabIndex","$isCurrent","$isDisabled","$theme","classNames","displayName"],"mappings":";;;;;;;;AAQA,MAAMA,cAAc,GAAG,gBAAgB,CAAA;AACvC,MAAMC,SAAS,GAAG,yBAAyB,CAAA;;AAE3C;AACA;AACA;AACO,MAAMC,cAA4D,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACrG,MAAM;MAAEC,EAAE;MAAEC,QAAQ;MAAEC,SAAS;MAAEC,IAAI;MAAEC,SAAS;MAAEC,UAAU;AAAEC,MAAAA,KAAK,EAAEC,UAAAA;AAA8B,KAAC,GAAGT,KAAK;AAAxBU,IAAAA,cAAc,GAAAC,wBAAA,CAAKX,KAAK,EAAAY,SAAA,CAAA,CAAA;EAE5GC,4BAA4B,CAACb,KAAK,EAAE,CAACG,QAAQ,CAAC,EAAE,gBAAgB,CAAC,CAAA;AAEjE,EAAA,MAAMK,KAAK,GAAGM,QAAQ,CAACL,UAAU,CAAC,CAAA;AAElC,EAAA,oBACEM,cAAA,CAAAC,aAAA,CAACC,oBAAoB,EAAAC,QAAA,CAAA;IACnBhB,EAAE,EAAGA,EAAE,IAAI,GAAY;AACvBiB,IAAAA,IAAI,EAAE,CAACb,SAAS,GAAG,MAAM,GAAGc,SAAU;IACtCC,QAAQ,EAAE,CAACd,UAAU,IAAI,CAACD,SAAS,GAAG,CAAC,GAAGc,SAAAA;AAAU,GAAA,EAChDV,cAAc,EAAA;AAClBY,IAAAA,UAAU,EAAEhB,SAAU;AACtBiB,IAAAA,WAAW,EAAEhB,UAAW;AACxBiB,IAAAA,MAAM,EAAEhB,KAAM;AACd,IAAA,cAAA,EAAcF,SAAS,GAAG,MAAM,GAAGc,SAAU;IAC7C,eAAeb,EAAAA,UAAU,IAAID,SAAU;IACvCF,SAAS,EAAEqB,UAAU,CAAC3B,cAAc,CAACM,SAAS,EAAEA,SAAS,CAAE;IAC3DC,IAAI,EAAE,CAACE,UAAU,IAAI,CAACD,SAAS,GAAGD,IAAI,GAAGe,SAAU;AACnDnB,IAAAA,GAAG,EAAEA,GAAAA;AAAoC,GAAA,CAAA,EAExCE,QACmB,CAAC,CAAA;AAE3B,CAAC,EAAC;AACFL,cAAc,CAACM,SAAS,GAAGP,SAAS,CAAA;AACpCC,cAAc,CAAC4B,WAAW,GAAG9B,cAAc;;;;"}
1
+ {"version":3,"file":"BreadcrumbItem.js","sources":["../../../src/components/breadcrumb-item/BreadcrumbItem.tsx"],"sourcesContent":["import React, { forwardRef, RefObject } from 'react';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { warnIfNoAccessibleLabelFound } from '../../utils/warnIfNoAccessibleLabelFound';\nimport { StyledBreadcrumbItem } from './styles';\nimport { BreadcrumbItemProps } from './types';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'BreadcrumbItem';\nconst CLASSNAME = 'redsift-breadcrumb-item';\n\n/**\n * The BreadcrumbItem components is a list of links to the parent pages of the current page in hierarchical order.\n */\nexport const BreadcrumbItem: Comp<BreadcrumbItemProps, HTMLAnchorElement> = forwardRef((props, ref) => {\n const { as, children, className, href, isCurrent, isDisabled, theme: propsTheme, ...forwardedProps } = props;\n\n warnIfNoAccessibleLabelFound(props, [children], 'BreadcrumbItem');\n\n const theme = useTheme(propsTheme);\n\n return (\n <StyledBreadcrumbItem\n as={(as || 'a') as any}\n role={!isCurrent ? 'link' : undefined}\n tabIndex={!isDisabled && !isCurrent ? 0 : undefined}\n {...forwardedProps}\n $isCurrent={isCurrent}\n $isDisabled={isDisabled}\n $theme={theme}\n aria-current={isCurrent ? 'page' : undefined}\n aria-disabled={isDisabled || isCurrent}\n className={classNames(BreadcrumbItem.className, className)}\n href={!isDisabled && !isCurrent ? href : undefined}\n ref={ref as RefObject<HTMLAnchorElement>}\n >\n {children}\n </StyledBreadcrumbItem>\n );\n});\nBreadcrumbItem.className = CLASSNAME;\nBreadcrumbItem.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","BreadcrumbItem","forwardRef","props","ref","as","children","className","href","isCurrent","isDisabled","theme","propsTheme","forwardedProps","_objectWithoutProperties","_excluded","warnIfNoAccessibleLabelFound","useTheme","React","createElement","StyledBreadcrumbItem","_extends","role","undefined","tabIndex","$isCurrent","$isDisabled","$theme","classNames","displayName"],"mappings":";;;;;;;;AAQA,MAAMA,cAAc,GAAG,gBAAgB,CAAA;AACvC,MAAMC,SAAS,GAAG,yBAAyB,CAAA;;AAE3C;AACA;AACA;AACO,MAAMC,cAA4D,gBAAGC,UAAU,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