@mmb-digital/ds-lilly 1.0.138 → 1.0.140

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 (86) hide show
  1. package/cjs/components/Components/ActionBar/ActionBar.js +1 -1
  2. package/cjs/components/Components/Button/Button.js +1 -1
  3. package/cjs/components/Components/Card/Card.js +1 -1
  4. package/cjs/components/Components/Card/Card.js.map +1 -1
  5. package/cjs/components/Components/IconList/IconListItem.js +1 -1
  6. package/cjs/components/Components/Link/Link.js +1 -1
  7. package/cjs/components/Components/NotificationCard/NotificationCardHeader.js +1 -1
  8. package/cjs/components/Components/ProductCard/ProductCard.d.ts +13 -18
  9. package/cjs/components/Components/ProductCard/ProductCard.d.ts.map +1 -1
  10. package/cjs/components/Components/ProductCard/ProductCard.js +1 -1
  11. package/cjs/components/Components/ProductCard/ProductCard.js.map +1 -1
  12. package/cjs/components/Components/ProductHeader/ProductHeader.d.ts +5 -1
  13. package/cjs/components/Components/ProductHeader/ProductHeader.d.ts.map +1 -1
  14. package/cjs/components/Components/ProductHeader/ProductHeader.js +1 -1
  15. package/cjs/components/Components/ProductHeader/ProductHeader.js.map +1 -1
  16. package/cjs/components/Components/Tile/Tile.js +1 -1
  17. package/cjs/components/Components/UserAuth/UserAuth.js +1 -1
  18. package/cjs/components/Form/Autocomplete/Autocomplete.js +1 -1
  19. package/cjs/components/Form/Checkbox/CheckboxItem.js +1 -1
  20. package/cjs/components/Form/Checkbox/CheckboxItem.js.map +1 -1
  21. package/cjs/components/Form/DatePicker/DatePicker.js +1 -1
  22. package/cjs/components/Form/FileUpload/FileUpload.hook.js +1 -1
  23. package/cjs/components/Form/FileUpload/FileUpload.js +1 -1
  24. package/cjs/components/Form/FileUpload/_parts_/FileList.js +1 -1
  25. package/cjs/components/Form/FileUpload/_parts_/MergeDialog.js +1 -1
  26. package/cjs/components/Form/FileUpload/_parts_/MergeImageAdd.js +1 -1
  27. package/cjs/components/Form/FileUpload/_parts_/MergeImageCard.js +1 -1
  28. package/cjs/components/Form/FileUpload/_parts_/MergeImageDetail.js +1 -1
  29. package/cjs/components/Form/FileUpload/_parts_/ModalConfirmContent.js +1 -1
  30. package/cjs/components/Form/FileUpload/_parts_/ModalWaitingContent.js +1 -1
  31. package/cjs/components/Form/FormGroup2/FormGroup2.js +1 -1
  32. package/cjs/components/Form/Input/Input.js +1 -1
  33. package/cjs/components/Form/Input/_elements_/ShowPasswordIcon.js +1 -1
  34. package/cjs/components/Form/Label2/Label2.js +1 -1
  35. package/cjs/components/Form/Multiselect/Multiselect.js +1 -1
  36. package/cjs/components/Form/PersonCount/PersonCount.js +1 -1
  37. package/cjs/components/Form/Radio/Radio.js +1 -1
  38. package/cjs/components/Form/Radio/Radio.js.map +1 -1
  39. package/cjs/components/Form/Select/Select.js +1 -1
  40. package/cjs/components/Form/Select/_elements_/Select2CategorisedOptions.js +1 -1
  41. package/cjs/components/Form/Select/_elements_/Select2Options.js +1 -1
  42. package/cjs/components/Form/Select/_elements_/SelectedOption.js +1 -1
  43. package/cjs/components/Form/Slider/Slider.js +1 -1
  44. package/cjs/components/Form/Slider/Slider.js.map +1 -1
  45. package/cjs/components/Form/Toggle/Toggle.js +1 -1
  46. package/cjs/components/Form/Toggle/Toggle.js.map +1 -1
  47. package/cjs/components/Graphs/AreaChart/_elements_/AreaChartLegend/AreaChartLegend.js +1 -1
  48. package/cjs/components/Graphs/BarChart/BarChart.js +1 -1
  49. package/cjs/components/Graphs/ChartLegend/_elements_/ChartLegendRow.js +1 -1
  50. package/cjs/components/Layout/Header/Header.js +1 -1
  51. package/cjs/components/Layout/MobilePanel/_elements_/Header.js +1 -1
  52. package/cjs/components/Navigation/Menu/_elements_/MenuItem.js +1 -1
  53. package/cjs/components/Navigation/Menu/_elements_/MenuItem.js.map +1 -1
  54. package/cjs/components/Navigation/Menu/_elements_/SecondaryMenuCollapse.js +1 -1
  55. package/cjs/components/Navigation/Stepper/_parts_/Step.js +1 -1
  56. package/cjs/components/Navigation/Tabs/_elements_/TabsBar.js +1 -1
  57. package/cjs/components/Typography/Amount/Amount.js +1 -1
  58. package/cjs/components/Typography/Title/Title.js +1 -1
  59. package/cjs/ds-lilly.css +147 -3
  60. package/cjs/ext/raf/index.js +1 -1
  61. package/cjs/ext/react-is/index.js +1 -1
  62. package/cjs/index.js +1 -1
  63. package/components/Components/ProductCard/ProductCard.d.ts +13 -18
  64. package/components/Components/ProductCard/ProductCard.d.ts.map +1 -1
  65. package/components/Components/ProductCard/ProductCard.js +1 -1
  66. package/components/Components/ProductCard/ProductCard.js.map +1 -1
  67. package/components/Components/ProductHeader/ProductHeader.d.ts +5 -1
  68. package/components/Components/ProductHeader/ProductHeader.d.ts.map +1 -1
  69. package/components/Components/ProductHeader/ProductHeader.js +1 -1
  70. package/components/Components/ProductHeader/ProductHeader.js.map +1 -1
  71. package/ds-lilly.css +147 -3
  72. package/ext/raf/index.js +1 -1
  73. package/ext/react-is/index.js +1 -1
  74. package/package.json +1 -1
  75. /package/assets/{34945142d958dcc8bef9.woff → 07f5a10106e90f507f9a.woff} +0 -0
  76. /package/assets/{16cb9c6a75c99e034ad7.svg → 0bc864abdb5da4fd184a.svg} +0 -0
  77. /package/assets/{ace4dba179788447f1bd.ttf → 50e03bea7eb0670c4ebc.ttf} +0 -0
  78. /package/assets/{512c52751eaff7983f7f.eot → 796091b820afa627b43b.eot} +0 -0
  79. /package/assets/{e99f43d16eab00806cb4.woff → 9f4da6698407fff446c2.woff} +0 -0
  80. /package/assets/{2581e9454abb8b961b3b.gif → c97e2081a52e9e1f98fd.gif} +0 -0
  81. /package/assets/{5a5fd5ca4e486b777add.eot → d0c70188e8f85664723d.eot} +0 -0
  82. /package/assets/{e68eb527e151a148d846.ttf → f172c74ce89e4cce3a15.ttf} +0 -0
  83. /package/assets/{a05b0bd32fe9f73e99f3.eot → fab7747d6f32812f81d8.eot} +0 -0
  84. /package/assets/{3436f7de1422842a79c6.svg → fbaf8b9ac02bd861a2fc.svg} +0 -0
  85. /package/assets/{70e13eb90dbe5ab899b2.gif → fc47084ce3d9fbb65400.gif} +0 -0
  86. /package/assets/{a47b14da988cb77570b5.eot → fc4b6d0b28a6059fc108.eot} +0 -0
package/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./utils/polyfills.js"),o=require("./utils/getDisplayName.js"),t=require("./utils/getIntegerMask.js"),r=require("./utils/isFilled.js"),s=require("./utils/isNotFilled.js"),n=require("./utils/isNotNilNorEmpty.js"),p=require("./utils/parseIntValue.js"),a=require("./utils/stripDiacritics.js"),i=require("./utils/trimLeadingZeros.js"),u=require("./utils/classBinder.js"),l=require("./utils/configureDecimalMask.js"),m=require("./utils/constants.js"),d=require("./utils/hooks.js"),c=require("./utils/noop.js"),x=require("./utils/parseDecimalValue.js"),C=require("./utils/parseDateValue.js"),T=require("./utils/ucfirst.js"),j=require("./utils/mimeType.js"),q=require("./constants/global.js"),M=require("./contexts/CardContext.js"),D=require("./contexts/FormGroupContext.js"),S=require("./contexts/ModalContext.js"),g=require("./contexts/Select2Context.js"),L=require("./contexts/TabsContext.js"),_=require("./types/colors.js"),b=require("./hocs/withDisabledTooltip.js"),I=require("./components/Components/ActionBar/ActionBar.js"),A=require("./components/Components/Alert/Alert.js"),h=require("./components/Components/Avatar/Avatar.js"),y=require("./components/Components/Badge/Badge.js"),B=require("./components/Components/Button/Button.js"),P=require("./components/Components/Button/ButtonsGroup.js"),F=require("./components/Components/ButtonTooltip/ButtonTooltip.js"),N=require("./components/Components/Card/Card.js"),w=require("./components/Components/Card/_elements_/CardCustomTrigger.js"),f=require("./components/Components/CardView/CardView.js"),v=require("./components/Components/Carousel/Carousel.js"),E=require("./components/Components/Collapse/Collapse.js"),k=require("./components/Components/CompactButtons/CompactButtons.js"),O=require("./components/Components/ComparisonTable/ComparisonTable.js"),H=require("./components/Components/ContentTable/ContentTable.js"),R=require("./components/Components/ContentTable/ContentTableRow.js"),U=require("./components/Components/DataTable/DataTable.js"),G=require("./components/Components/DataTable/DataTableItem.js"),V=require("./components/Components/DataTable/DataTableDivider.js"),K=require("./components/Components/Divider/Divider.js"),W=require("./components/Components/Dropdown/Dropdown.js"),z=require("./components/Components/Dropdown/_elements_/DropdownDivider.js"),Z=require("./components/Components/Dropdown/_elements_/DropdownItem.js"),X=require("./components/Components/Dropdown/_elements_/DropdownMenu.js"),Y=require("./components/Components/Dropdown/_elements_/DropdownInfoText.js"),J=require("./components/Components/Dropdown/_elements_/DropdownLoading.js"),Q=require("./components/Components/IconList/IconList.js"),$=require("./components/Components/IconList/IconListItem.js"),ee=require("./components/Components/Image/Image.js"),oe=require("./components/Components/Link/Link.js"),te=require("./components/Components/List/List.js"),re=require("./components/Components/List/ListItem.js"),se=require("./components/Components/Loader/Loader.js"),ne=require("./components/Components/Logo/Logo.js"),pe=require("./components/Components/Modal/_elements_/ModalContent.js"),ae=require("./components/Components/Modal/_elements_/ModalDialog.js"),ie=require("./components/Components/Modal/_elements_/ModalFooter.js"),ue=require("./components/Components/Modal/_elements_/ModalHeader.js"),le=require("./components/Components/Modal/Modal.js"),me=require("./components/Components/Modal/_elements_/Modal.hook.js"),de=require("./components/Components/MonetaBankLogo/MonetaBankLogo.js"),ce=require("./components/Components/NotificationCard/NotificationCard.js"),xe=require("./components/Components/NotificationCard/NotificationCardHeader.js"),Ce=require("./components/Components/Pills/Pills.js"),Te=require("./components/Components/ProductCard/ProductCard.js"),je=require("./components/Components/ProductHeader/ProductHeader.js"),qe=require("./components/Components/SuperModal/_elements_/SuperModal.js"),Me=require("./components/Components/SuperModal/_elements_/SuperModalContent.js"),De=require("./components/Components/SuperModal/_elements_/SuperModalHeader.js"),Se=require("./components/Components/SuperModal/_elements_/SuperModalProvider.js"),ge=require("./components/Components/SuperModal/SuperModal.hook.js"),Le=require("./components/Components/SuperModal/SuperModal.context.js"),_e=require("./components/Components/Tag/Tag.js"),be=require("./components/Components/Tile/Tile.js"),Ie=require("./components/Components/Toast/Toast.js"),Ae=require("./components/Components/Toast/Toast.hook.js"),he=require("./components/Components/Tooltip/Tooltip.js"),ye=require("./components/Components/UserAuth/UserAuth.js"),Be=require("./components/Form/Autocomplete/Autocomplete.js"),Pe=require("./components/Form/Checkbox/Checkbox.js"),Fe=require("./components/Form/DatePicker/DatePicker.js"),Ne=require("./components/Form/FileUpload/FileUpload.js"),we=require("./components/Form/FileUpload/FileUpload.hook.js"),fe=require("./components/Form/FormGroup2/FormGroup2.js"),ve=require("./components/Form/Input/Input.js"),Ee=require("./components/Form/Label2/Label2.js"),ke=require("./components/Form/Multiselect/Multiselect.js"),Oe=require("./components/Form/PersonCount/PersonCount.js"),He=require("./components/Form/Radio/Radio.js"),Re=require("./components/Form/Select/_elements_/Select2CategorisedOptions.js"),Ue=require("./components/Form/Select/_elements_/Select2Options.js"),Ge=require("./components/Form/Select/_elements_/SelectedOption.js"),Ve=require("./components/Form/Select/Select.js"),Ke=require("./components/Form/Slider/Slider.js"),We=require("./components/Form/Textarea/Textarea.js"),ze=require("./components/Form/Toggle/Toggle.js"),Ze=require("./components/Graphs/AreaChart/AreaChart.js"),Xe=require("./components/Graphs/BarChart/BarChart.js"),Ye=require("./components/Graphs/ChartLegend/ChartLegend.js"),Je=require("./components/Graphs/PieChartExtended/PieChartExtended.js"),Qe=require("./components/Layout/App/App.js"),$e=require("./components/Layout/App/AppContent.js"),eo=require("./components/Layout/App/AppMain.js"),oo=require("./components/Layout/Box/Box.js"),to=require("./components/Layout/Flex/Flex.js"),ro=require("./components/Layout/Grid/Col.js"),so=require("./components/Layout/Grid/Row.js"),no=require("./components/Layout/Header/Header.js"),po=require("./components/Layout/MobilePanel/MobilePanel.js"),ao=require("./components/Layout/MobilePanel/MobilePanel.hook.js"),io=require("./components/Layout/Sidebar/Sidebar.js"),uo=require("./components/Navigation/Menu/Menu.js"),lo=require("./components/Navigation/Menu/_elements_/MenuItem.js"),mo=require("./components/Navigation/Menu/_elements_/MenuList.js"),co=require("./components/Navigation/Menu/_elements_/SubMenu.js"),xo=require("./components/Navigation/Menu/_elements_/SubMenuItem.js"),Co=require("./components/Navigation/Menu/_elements_/SecondaryMenuCollapse.js"),To=require("./components/Navigation/Menu/_elements_/SecondaryMenuItem.js"),jo=require("./components/Navigation/Menu/_elements_/SecondaryMenuSection.js"),qo=require("./components/Navigation/Stepper/Stepper.js"),Mo=require("./components/Navigation/Tabs/Tabs.js"),Do=require("./components/Navigation/Tabs/_elements_/TabListItem.js"),So=require("./components/Navigation/Tabs/_elements_/TabsBar.js"),go=require("./components/Typography/Amount/Amount.js"),Lo=require("./components/Typography/Text/Text.js"),_o=require("./components/Typography/Title/Title.js");e.customPolyfills(),exports.getDisplayName=o.getDisplayName,exports.getIntegerMask=t.getIntegerMask,exports.isFilled=r.isFilled,exports.isNotFilled=s.isNotFilled,exports.isNotNilNorEmpty=n.isNotNilNorEmpty,exports.parseIntValue=p.parseIntValue,exports.stripDiacritics=a.stripDiacritics,exports.trimLeadingZeros=i.trimLeadingZeros,exports.cx=u.cx,exports.configureDecimalMask=l.configureDecimalMask,exports.BANK_ACCOUNT_ITEMS_AUTOCOMPLETE_THRESHOLD=m.BANK_ACCOUNT_ITEMS_AUTOCOMPLETE_THRESHOLD,exports.BREAKPOINTS=m.BREAKPOINTS,exports.KEYS=m.KEYS,exports.readIsDark=d.readIsDark,exports.useContainerDimensions=d.useContainerDimensions,exports.useDsIsDarkTheme=d.useDsIsDarkTheme,exports.useEventListener=d.useEventListener,exports.useHoverActive=d.useHoverActive,exports.useOnScreen=d.useOnScreen,exports.useThemeDetector=d.useThemeDetector,exports.useWindowSize=d.useWindowSize,exports.useWindowWidth=d.useWindowWidth,exports.noop=c.noop,exports.parseDecimalValue=x.parseDecimalValue,exports.formatDate=C.formatDate,exports.formatMonthDate=C.formatMonthDate,exports.isDate=C.isDate,exports.isPartOfDate=C.isPartOfDate,exports.isValidDate=C.isValidDate,exports.parseCzechDate=C.parseCzechDate,exports.parseDate=C.parseDate,exports.parseMonthDate=C.parseMonthDate,exports.parseUnixDate=C.parseUnixDate,exports.ucfirst=T.ucfirst,exports.matchMimeType=j.matchMimeType,exports.BREAKPOINTS_VALUES=q.BREAKPOINTS_VALUES,exports.CARD_WIDTH_BREAKPOINT=q.CARD_WIDTH_BREAKPOINT,exports.MOBILE_PANEL_WIDTH=q.MOBILE_PANEL_WIDTH,exports.CardContext=M.default,exports.FormGroupContext=D.default,exports.ModalContext=S.default,exports.Select2Context=g.default,exports.TabsContext=L.default,exports.mapBackgroundColorType=_.mapBackgroundColorType,exports.mapBorderColorType=_.mapBorderColorType,exports.mapCategoryColorType=_.mapCategoryColorType,exports.mapForegroundColorType=_.mapForegroundColorType,exports.mapGradientColorType=_.mapGradientColorType,exports.mapShadowType=_.mapShadowType,exports.mapSurfaceColorType=_.mapSurfaceColorType,exports.mapThirdPartyColorType=_.mapThirdPartyColorType,exports.withDisabledTooltip=b.withDisabledTooltip,exports.ActionBar=I.ActionBar,exports.Alert=A.Alert,exports.Avatar=h.Avatar,exports.Badge=y.Badge,exports.Button=B.Button,exports.ButtonsGroup=P.ButtonsGroup,exports.ButtonTooltip=F.ButtonTooltip,exports.Card=N.Card,exports.CardCustomTrigger=w.CardCustomTrigger,exports.CardView=f.CardView,exports.Carousel=v.Carousel,exports.Collapse=E.Collapse,exports.CompactButtons=k.CompactButtons,exports.ComparisonTable=O.ComparisonTable,exports.ContentTable=H.ContentTable,exports.getTextAlignClass=H.getTextAlignClass,exports.ContentTableRow=R.ContentTableRow,exports.DataTable=U.DataTable,exports.DataTableContext=U.DataTableContext,exports.useDataTableContext=U.useDataTableContext,exports.DataTableItem=G.DataTableItem,exports.DataTableDivider=V.DataTableDivider,exports.Divider=K.Divider,exports.Dropdown=W.Dropdown,exports.DropdownDivider=z.DropdownDivider,exports.DropdownItem=Z.DropdownItem,exports.DropdownMenu=X.DropdownMenu,exports.DropdownInfoText=Y.DropdownInfoText,exports.DropdownLoading=J.DropdownLoading,exports.IconList=Q.IconList,exports.IconListItem=$.IconListItem,exports.Image=ee.Image,exports.Link=oe.Link,exports.List=te.List,exports.ListItem=re.ListItem,exports.Loader=se.Loader,exports.Logo=ne.Logo,exports.ModalContent=pe.ModalContent,exports.ModalDialog=ae.ModalDialog,exports.ModalFooter=ie.ModalFooter,exports.ModalHeader=ue.ModalHeader,exports.Modal=le.Modal,exports.useModal=me.useModal,exports.MonetaBankLogo=de.MonetaBankLogo,exports.NotificationCard=ce.NotificationCard,exports.NotificationCardHeader=xe.NotificationCardHeader,exports.Pills=Ce.Pills,exports.ProductCard=Te.ProductCard,exports.ProductHeader=je.ProductHeader,exports.SuperModal=qe.default,exports.SuperModalContent=Me.default,exports.SuperModalHeader=De.default,exports.SuperModalProvider=Se.default,exports.SUPER_MODAL_PREFIX=ge.SUPER_MODAL_PREFIX,exports.useSuperModal=ge.useSuperModal,exports.SuperModalContext=Le.SuperModalContext,exports.Tag=_e.Tag,exports.Tile=be.Tile,exports.ToastContainer=Ie.ToastContainer,exports.useToast=Ae.useToast,exports.Tooltip=he.Tooltip,exports.UserAuth=ye.UserAuth,exports.Autocomplete=Be.Autocomplete,exports.AutocompleteDropdownContentContainer=Be.AutocompleteDropdownContentContainer,exports.Checkbox=Pe.Checkbox,exports.DatePicker=Fe.DatePicker,exports.FileUpload=Ne.FileUpload,exports.useFileUpload=we.useFileUpload,exports.FormGroup2=fe.FormGroup2,exports.Input=ve.Input,exports.Label2=Ee.Label2,exports.Multiselect=ke.Multiselect,exports.PersonCount=Oe.PersonCount,exports.Radio=He.Radio,exports.Select2CategorisedOptions=Re.Select2CategorisedOptions,exports.Select2Options=Ue.Select2Options,exports.SelectedOption=Ge.SelectedOption,exports.Select=Ve.Select,exports.Slider=Ke.Slider,exports.Textarea=We.Textarea,exports.Toggle=ze.Toggle,exports.AreaChart=Ze.AreaChart,exports.BarChart=Xe.BarChart,exports.ChartLegend=Ye.ChartLegend,exports.PieChartExtended=Je.PieChartExtended,exports.App=Qe.App,exports.AppContent=$e.AppContent,exports.AppMain=eo.AppMain,exports.Box=oo.Box,exports.Flex=to.Flex,exports.Col=ro.Col,exports.Row=so.Row,exports.Header=no.Header,exports.MobilePanel=po.MobilePanel,exports.useMobilePanel=ao.useMobilePanel,exports.Sidebar=io.Sidebar,exports.Menu=uo.Menu,exports.MenuItem=lo.MenuItem,exports.MenuList=mo.MenuList,exports.SubMenu=co.SubMenu,exports.SubMenuItem=xo.SubMenuItem,exports.SecondaryMenuCollapse=Co.SecondaryMenuCollapse,exports.SecondaryMenuItem=To.SecondaryMenuItem,exports.SecondaryMenuSection=jo.SecondaryMenuSection,exports.Stepper=qo.Stepper,exports.Tabs=Mo.Tabs,exports.TabListItem=Do.TabListItem,exports.TabsBar=So.TabsBar,exports.Amount=go.Amount,exports.Text=Lo.Text,exports.Title=_o.Title;
1
+ "use strict";var e=require("./utils/polyfills.js"),o=require("./utils/getDisplayName.js"),t=require("./utils/getIntegerMask.js"),r=require("./utils/isFilled.js"),s=require("./utils/isNotFilled.js"),n=require("./utils/isNotNilNorEmpty.js"),p=require("./utils/parseIntValue.js"),a=require("./utils/stripDiacritics.js"),i=require("./utils/trimLeadingZeros.js"),u=require("./utils/classBinder.js"),l=require("./utils/configureDecimalMask.js"),m=require("./utils/constants.js"),d=require("./utils/hooks.js"),c=require("./utils/noop.js"),x=require("./utils/parseDecimalValue.js"),C=require("./utils/parseDateValue.js"),T=require("./utils/ucfirst.js"),j=require("./utils/mimeType.js"),q=require("./constants/global.js"),M=require("./contexts/CardContext.js"),D=require("./contexts/FormGroupContext.js"),S=require("./contexts/ModalContext.js"),g=require("./contexts/Select2Context.js"),L=require("./contexts/TabsContext.js"),_=require("./types/colors.js"),b=require("./components/Components/ActionBar/ActionBar.js"),I=require("./components/Components/Alert/Alert.js"),A=require("./components/Components/Avatar/Avatar.js"),h=require("./components/Components/Badge/Badge.js"),y=require("./components/Components/Button/Button.js"),B=require("./components/Components/Button/ButtonsGroup.js"),P=require("./components/Components/ButtonTooltip/ButtonTooltip.js"),F=require("./components/Components/Card/Card.js"),N=require("./components/Components/Card/_elements_/CardCustomTrigger.js"),w=require("./components/Components/CardView/CardView.js"),f=require("./components/Components/Carousel/Carousel.js"),v=require("./components/Components/Collapse/Collapse.js"),E=require("./components/Components/CompactButtons/CompactButtons.js"),k=require("./components/Components/ComparisonTable/ComparisonTable.js"),O=require("./components/Components/ContentTable/ContentTable.js"),H=require("./components/Components/ContentTable/ContentTableRow.js"),R=require("./components/Components/DataTable/DataTable.js"),U=require("./components/Components/DataTable/DataTableItem.js"),G=require("./components/Components/DataTable/DataTableDivider.js"),V=require("./components/Components/Divider/Divider.js"),K=require("./components/Components/Dropdown/Dropdown.js"),W=require("./components/Components/Dropdown/_elements_/DropdownDivider.js"),z=require("./components/Components/Dropdown/_elements_/DropdownItem.js"),Z=require("./components/Components/Dropdown/_elements_/DropdownMenu.js"),X=require("./components/Components/Dropdown/_elements_/DropdownInfoText.js"),Y=require("./components/Components/Dropdown/_elements_/DropdownLoading.js"),J=require("./components/Components/IconList/IconList.js"),Q=require("./components/Components/IconList/IconListItem.js"),$=require("./components/Components/Image/Image.js"),ee=require("./components/Components/Link/Link.js"),oe=require("./components/Components/List/List.js"),te=require("./components/Components/List/ListItem.js"),re=require("./components/Components/Loader/Loader.js"),se=require("./components/Components/Logo/Logo.js"),ne=require("./components/Components/Modal/_elements_/ModalContent.js"),pe=require("./components/Components/Modal/_elements_/ModalDialog.js"),ae=require("./components/Components/Modal/_elements_/ModalFooter.js"),ie=require("./components/Components/Modal/_elements_/ModalHeader.js"),ue=require("./components/Components/Modal/Modal.js"),le=require("./components/Components/Modal/_elements_/Modal.hook.js"),me=require("./components/Components/MonetaBankLogo/MonetaBankLogo.js"),de=require("./components/Components/NotificationCard/NotificationCard.js"),ce=require("./components/Components/NotificationCard/NotificationCardHeader.js"),xe=require("./components/Components/Pills/Pills.js"),Ce=require("./components/Components/ProductCard/ProductCard.js"),Te=require("./components/Components/ProductHeader/ProductHeader.js"),je=require("./components/Components/SuperModal/_elements_/SuperModal.js"),qe=require("./components/Components/SuperModal/_elements_/SuperModalContent.js"),Me=require("./components/Components/SuperModal/_elements_/SuperModalHeader.js"),De=require("./components/Components/SuperModal/_elements_/SuperModalProvider.js"),Se=require("./components/Components/SuperModal/SuperModal.hook.js"),ge=require("./components/Components/SuperModal/SuperModal.context.js"),Le=require("./components/Components/Tag/Tag.js"),_e=require("./components/Components/Tile/Tile.js"),be=require("./components/Components/Toast/Toast.js"),Ie=require("./components/Components/Toast/Toast.hook.js"),Ae=require("./components/Components/Tooltip/Tooltip.js"),he=require("./components/Components/UserAuth/UserAuth.js"),ye=require("./components/Form/Autocomplete/Autocomplete.js"),Be=require("./components/Form/Checkbox/Checkbox.js"),Pe=require("./components/Form/DatePicker/DatePicker.js"),Fe=require("./components/Form/FileUpload/FileUpload.js"),Ne=require("./components/Form/FileUpload/FileUpload.hook.js"),we=require("./components/Form/FormGroup2/FormGroup2.js"),fe=require("./components/Form/Input/Input.js"),ve=require("./components/Form/Label2/Label2.js"),Ee=require("./components/Form/Multiselect/Multiselect.js"),ke=require("./components/Form/PersonCount/PersonCount.js"),Oe=require("./components/Form/Radio/Radio.js"),He=require("./components/Form/Select/_elements_/Select2CategorisedOptions.js"),Re=require("./components/Form/Select/_elements_/Select2Options.js"),Ue=require("./components/Form/Select/_elements_/SelectedOption.js"),Ge=require("./components/Form/Select/Select.js"),Ve=require("./components/Form/Slider/Slider.js"),Ke=require("./components/Form/Textarea/Textarea.js"),We=require("./components/Form/Toggle/Toggle.js"),ze=require("./components/Graphs/AreaChart/AreaChart.js"),Ze=require("./components/Graphs/BarChart/BarChart.js"),Xe=require("./components/Graphs/ChartLegend/ChartLegend.js"),Ye=require("./components/Graphs/PieChartExtended/PieChartExtended.js"),Je=require("./components/Layout/App/App.js"),Qe=require("./components/Layout/App/AppContent.js"),$e=require("./components/Layout/App/AppMain.js"),eo=require("./components/Layout/Box/Box.js"),oo=require("./components/Layout/Flex/Flex.js"),to=require("./components/Layout/Grid/Col.js"),ro=require("./components/Layout/Grid/Row.js"),so=require("./components/Layout/Header/Header.js"),no=require("./components/Layout/MobilePanel/MobilePanel.js"),po=require("./components/Layout/MobilePanel/MobilePanel.hook.js"),ao=require("./components/Layout/Sidebar/Sidebar.js"),io=require("./components/Navigation/Menu/Menu.js"),uo=require("./components/Navigation/Menu/_elements_/MenuItem.js"),lo=require("./components/Navigation/Menu/_elements_/MenuList.js"),mo=require("./components/Navigation/Menu/_elements_/SubMenu.js"),co=require("./components/Navigation/Menu/_elements_/SubMenuItem.js"),xo=require("./components/Navigation/Menu/_elements_/SecondaryMenuCollapse.js"),Co=require("./components/Navigation/Menu/_elements_/SecondaryMenuItem.js"),To=require("./components/Navigation/Menu/_elements_/SecondaryMenuSection.js"),jo=require("./components/Navigation/Stepper/Stepper.js"),qo=require("./components/Navigation/Tabs/Tabs.js"),Mo=require("./components/Navigation/Tabs/_elements_/TabListItem.js"),Do=require("./components/Navigation/Tabs/_elements_/TabsBar.js"),So=require("./components/Typography/Amount/Amount.js"),go=require("./components/Typography/Text/Text.js"),Lo=require("./components/Typography/Title/Title.js"),_o=require("./hocs/withDisabledTooltip.js");e.customPolyfills(),exports.getDisplayName=o.getDisplayName,exports.getIntegerMask=t.getIntegerMask,exports.isFilled=r.isFilled,exports.isNotFilled=s.isNotFilled,exports.isNotNilNorEmpty=n.isNotNilNorEmpty,exports.parseIntValue=p.parseIntValue,exports.stripDiacritics=a.stripDiacritics,exports.trimLeadingZeros=i.trimLeadingZeros,exports.cx=u.cx,exports.configureDecimalMask=l.configureDecimalMask,exports.BANK_ACCOUNT_ITEMS_AUTOCOMPLETE_THRESHOLD=m.BANK_ACCOUNT_ITEMS_AUTOCOMPLETE_THRESHOLD,exports.BREAKPOINTS=m.BREAKPOINTS,exports.KEYS=m.KEYS,exports.readIsDark=d.readIsDark,exports.useContainerDimensions=d.useContainerDimensions,exports.useDsIsDarkTheme=d.useDsIsDarkTheme,exports.useEventListener=d.useEventListener,exports.useHoverActive=d.useHoverActive,exports.useOnScreen=d.useOnScreen,exports.useThemeDetector=d.useThemeDetector,exports.useWindowSize=d.useWindowSize,exports.useWindowWidth=d.useWindowWidth,exports.noop=c.noop,exports.parseDecimalValue=x.parseDecimalValue,exports.formatDate=C.formatDate,exports.formatMonthDate=C.formatMonthDate,exports.isDate=C.isDate,exports.isPartOfDate=C.isPartOfDate,exports.isValidDate=C.isValidDate,exports.parseCzechDate=C.parseCzechDate,exports.parseDate=C.parseDate,exports.parseMonthDate=C.parseMonthDate,exports.parseUnixDate=C.parseUnixDate,exports.ucfirst=T.ucfirst,exports.matchMimeType=j.matchMimeType,exports.BREAKPOINTS_VALUES=q.BREAKPOINTS_VALUES,exports.CARD_WIDTH_BREAKPOINT=q.CARD_WIDTH_BREAKPOINT,exports.MOBILE_PANEL_WIDTH=q.MOBILE_PANEL_WIDTH,exports.CardContext=M.default,exports.FormGroupContext=D.default,exports.ModalContext=S.default,exports.Select2Context=g.default,exports.TabsContext=L.default,exports.mapBackgroundColorType=_.mapBackgroundColorType,exports.mapBorderColorType=_.mapBorderColorType,exports.mapCategoryColorType=_.mapCategoryColorType,exports.mapForegroundColorType=_.mapForegroundColorType,exports.mapGradientColorType=_.mapGradientColorType,exports.mapShadowType=_.mapShadowType,exports.mapSurfaceColorType=_.mapSurfaceColorType,exports.mapThirdPartyColorType=_.mapThirdPartyColorType,exports.ActionBar=b.ActionBar,exports.Alert=I.Alert,exports.Avatar=A.Avatar,exports.Badge=h.Badge,exports.Button=y.Button,exports.ButtonsGroup=B.ButtonsGroup,exports.ButtonTooltip=P.ButtonTooltip,exports.Card=F.Card,exports.CardCustomTrigger=N.CardCustomTrigger,exports.CardView=w.CardView,exports.Carousel=f.Carousel,exports.Collapse=v.Collapse,exports.CompactButtons=E.CompactButtons,exports.ComparisonTable=k.ComparisonTable,exports.ContentTable=O.ContentTable,exports.getTextAlignClass=O.getTextAlignClass,exports.ContentTableRow=H.ContentTableRow,exports.DataTable=R.DataTable,exports.DataTableContext=R.DataTableContext,exports.useDataTableContext=R.useDataTableContext,exports.DataTableItem=U.DataTableItem,exports.DataTableDivider=G.DataTableDivider,exports.Divider=V.Divider,exports.Dropdown=K.Dropdown,exports.DropdownDivider=W.DropdownDivider,exports.DropdownItem=z.DropdownItem,exports.DropdownMenu=Z.DropdownMenu,exports.DropdownInfoText=X.DropdownInfoText,exports.DropdownLoading=Y.DropdownLoading,exports.IconList=J.IconList,exports.IconListItem=Q.IconListItem,exports.Image=$.Image,exports.Link=ee.Link,exports.List=oe.List,exports.ListItem=te.ListItem,exports.Loader=re.Loader,exports.Logo=se.Logo,exports.ModalContent=ne.ModalContent,exports.ModalDialog=pe.ModalDialog,exports.ModalFooter=ae.ModalFooter,exports.ModalHeader=ie.ModalHeader,exports.Modal=ue.Modal,exports.useModal=le.useModal,exports.MonetaBankLogo=me.MonetaBankLogo,exports.NotificationCard=de.NotificationCard,exports.NotificationCardHeader=ce.NotificationCardHeader,exports.Pills=xe.Pills,exports.ProductCard=Ce.ProductCard,exports.ProductHeader=Te.ProductHeader,exports.SuperModal=je.default,exports.SuperModalContent=qe.default,exports.SuperModalHeader=Me.default,exports.SuperModalProvider=De.default,exports.SUPER_MODAL_PREFIX=Se.SUPER_MODAL_PREFIX,exports.useSuperModal=Se.useSuperModal,exports.SuperModalContext=ge.SuperModalContext,exports.Tag=Le.Tag,exports.Tile=_e.Tile,exports.ToastContainer=be.ToastContainer,exports.useToast=Ie.useToast,exports.Tooltip=Ae.Tooltip,exports.UserAuth=he.UserAuth,exports.Autocomplete=ye.Autocomplete,exports.AutocompleteDropdownContentContainer=ye.AutocompleteDropdownContentContainer,exports.Checkbox=Be.Checkbox,exports.DatePicker=Pe.DatePicker,exports.FileUpload=Fe.FileUpload,exports.useFileUpload=Ne.useFileUpload,exports.FormGroup2=we.FormGroup2,exports.Input=fe.Input,exports.Label2=ve.Label2,exports.Multiselect=Ee.Multiselect,exports.PersonCount=ke.PersonCount,exports.Radio=Oe.Radio,exports.Select2CategorisedOptions=He.Select2CategorisedOptions,exports.Select2Options=Re.Select2Options,exports.SelectedOption=Ue.SelectedOption,exports.Select=Ge.Select,exports.Slider=Ve.Slider,exports.Textarea=Ke.Textarea,exports.Toggle=We.Toggle,exports.AreaChart=ze.AreaChart,exports.BarChart=Ze.BarChart,exports.ChartLegend=Xe.ChartLegend,exports.PieChartExtended=Ye.PieChartExtended,exports.App=Je.App,exports.AppContent=Qe.AppContent,exports.AppMain=$e.AppMain,exports.Box=eo.Box,exports.Flex=oo.Flex,exports.Col=to.Col,exports.Row=ro.Row,exports.Header=so.Header,exports.MobilePanel=no.MobilePanel,exports.useMobilePanel=po.useMobilePanel,exports.Sidebar=ao.Sidebar,exports.Menu=io.Menu,exports.MenuItem=uo.MenuItem,exports.MenuList=lo.MenuList,exports.SubMenu=mo.SubMenu,exports.SubMenuItem=co.SubMenuItem,exports.SecondaryMenuCollapse=xo.SecondaryMenuCollapse,exports.SecondaryMenuItem=Co.SecondaryMenuItem,exports.SecondaryMenuSection=To.SecondaryMenuSection,exports.Stepper=jo.Stepper,exports.Tabs=qo.Tabs,exports.TabListItem=Mo.TabListItem,exports.TabsBar=Do.TabsBar,exports.Amount=So.Amount,exports.Text=go.Text,exports.Title=Lo.Title,exports.withDisabledTooltip=_o.withDisabledTooltip;
2
2
  //# sourceMappingURL=index.js.map
@@ -2,27 +2,22 @@ import React, { ReactNode } from 'react';
2
2
  import { CardSize } from '../Card';
3
3
  import { ProductHeaderPropTypes, ProductHeaderSizeProps } from '../ProductHeader';
4
4
  export type ProductCardBackground = 'default' | 'transparent';
5
+ export type ProductCardInteractiveArrowPosition = 'top' | 'center' | 'bottom';
5
6
  type ProductCardClickBehavior = {
6
7
  /** Makes the whole header area clickable without using the collapse arrow. */
7
- isHeaderClickable: true;
8
- /** Click handler for the header area. */
8
+ isHeaderClickable?: boolean;
9
+ /** Click handler for the header area or the whole card. */
9
10
  onClick?: () => void;
10
- /** Makes the whole card interactive. */
11
+ /** Enables interactive card styles and arrow. */
11
12
  isInteractive?: boolean;
12
- } | {
13
- /** Makes the whole header area clickable without using the collapse arrow. */
14
- isHeaderClickable?: false;
15
- /** Click handler for the interactive card. */
16
- onClick?: () => void;
17
- /** Makes the whole card interactive with hover and click styles. */
18
- isInteractive: true;
19
- } | {
20
- /** Makes the whole header area clickable without using the collapse arrow. */
21
- isHeaderClickable?: false;
22
- /** Cannot be used without `isInteractive` or `isHeaderClickable`. */
23
- onClick?: never;
24
- /** Makes the whole card interactive with hover and click styles. */
25
- isInteractive?: false;
13
+ /**
14
+ * Vertical position of the arrow displayed for an interactive ProductCard.
15
+ * - `top` aligns the arrow with the ProductHeader.
16
+ * - `center` aligns the arrow with the whole ProductCard.
17
+ * - `bottom` aligns the arrow with table/custom content.
18
+ * Default is `center`.
19
+ */
20
+ interactiveArrowPosition?: ProductCardInteractiveArrowPosition;
26
21
  };
27
22
  type ProductCardTableRow = {
28
23
  label: ReactNode;
@@ -79,6 +74,6 @@ export type ProductCardPropTypes = Omit<ProductHeaderPropTypes, 'isHeaderClickab
79
74
  /** Additional classes applied to header. */
80
75
  headerTheme?: string;
81
76
  };
82
- export declare const ProductCard: ({ background, cardTestId, children, customContent, dividerTheme, headerSize, headerTheme, initialState, isCollapsible, isHeaderClickable, isInteractive, onClick, size, tableContentAlignment, tableDisableStackingOnMobile, tableFirstColumnSecondary, tableGaps, tableIsBold, tableRows, tableTheme, tableWiderContent, theme, withDivider, ...productHeaderProps }: ProductCardPropTypes) => React.JSX.Element;
77
+ export declare const ProductCard: ({ background, cardTestId, children, customContent, dividerTheme, headerSize, headerTheme, initialState, interactiveArrowPosition, isCollapsible, isHeaderClickable, isInteractive, onClick, size, tableContentAlignment, tableDisableStackingOnMobile, tableFirstColumnSecondary, tableGaps, tableIsBold, tableRows, tableTheme, tableWiderContent, theme, withDivider, ...productHeaderProps }: ProductCardPropTypes) => React.JSX.Element;
83
78
  export {};
84
79
  //# sourceMappingURL=ProductCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../../src/components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xC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qCAAqC;IACrC,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,oDAAoD;IACpD,UAAU,CAAC,EAAE,SAAS,GAAG,aAAa,CAAA;IACtC;;;;OAIG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAA;IACnC,yEAAyE;IACzE,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,sEAAsE;IACtE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sDAAsD;IACtD,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAA;IACjC,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,sEAAsE;IACtE,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,qCAAqC;IACrC,qBAAqB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnD,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnD,gFAAgF;IAChF,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAEH,eAAO,MAAM,WAAW,oYA0BrB,oBAAoB,sBAyQtB,CAAA"}
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as t}from'./../../../ext/tslib/tslib.es6.js';import r,{useState as o,useMemo as a,useCallback as i,Fragment as n}from"react";import{useHistory as l}from"react-router-dom";import"../../../utils/getDisplayName.js";import"../../../utils/getIntegerMask.js";import"../../../utils/isFilled.js";import"../../../utils/isNotFilled.js";import"../../../utils/isNotNilNorEmpty.js";import'./../../../ext/diacritic/diacritics.js';import{cx as d}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Avatar as c}from"../Avatar/Avatar.js";import{Card as s}from"../Card/Card.js";import{CardCustomTrigger as m}from"../Card/_elements_/CardCustomTrigger.js";import{DataTable as u}from"../DataTable/DataTable.js";import{DataTableItem as p}from"../DataTable/DataTableItem.js";import{Divider as C}from"../Divider/Divider.js";import{ProductHeader as b}from"../ProductHeader/ProductHeader.js";var v=function(v){var h=v.background,f=void 0===h?"default":h,k=v.cardTestId,_=v.children,g=v.customContent,E=v.dividerTheme,I=v.headerSize,T=void 0===I?"medium":I,j=v.headerTheme,w=v.initialState,y=void 0!==w&&w,D=v.isCollapsible,S=void 0!==D&&D,N=v.isHeaderClickable,A=void 0!==N&&N,B=v.isInteractive,x=void 0!==B&&B,z=v.onClick,M=v.size,F=void 0===M?"large":M,H=v.tableContentAlignment,O=void 0===H?"left":H,P=v.tableDisableStackingOnMobile,L=void 0!==P&&P,R=v.tableFirstColumnSecondary,G=void 0===R||R,W=v.tableGaps,K=void 0===W?"small":W,U=v.tableIsBold,q=void 0!==U&&U,J=v.tableRows,Q=v.tableTheme,V=v.tableWiderContent,X=void 0!==V&&V,Y=v.theme,Z=v.withDivider,$=void 0!==Z&&Z,ee=e(v,["background","cardTestId","children","customContent","dividerTheme","headerSize","headerTheme","initialState","isCollapsible","isHeaderClickable","isInteractive","onClick","size","tableContentAlignment","tableDisableStackingOnMobile","tableFirstColumnSecondary","tableGaps","tableIsBold","tableRows","tableTheme","tableWiderContent","theme","withDivider"]),te=l(),re=o(y),oe=re[0],ae=re[1],ie=Array.isArray(J)&&J.length>0,ne=r.Children.count(g)>0,le=ie||ne,de=Boolean(ee.linkTo||ee.externalLink),ce=Boolean(z||de),se=A&&ce,me=Boolean(S&&x&&z&&!se),ue="transparent"===f?{backgroundColor:"transparent",borderColor:"noBorder",shadowSize:"no"}:{},pe=a((function(){return null!=k?k:ee.testId?"productCard-".concat(ee.testId):"productCard"}),[k,ee.testId]),Ce=function(){return ae((function(e){return!e}))},be=ee.externalLink,ve=ee.linkTo,he=i((function(){be?window.open(be,"_blank","noopener,noreferrer"):"function"!=typeof ve?ve&&te.push(ve):ve()}),[be,te,ve]),fe=i((function(){se&&(z?z():de&&he())}),[he,de,se,z]),ke=i((function(e){se&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),fe()))}),[fe,se]),_e=function(){S&&Ce(),z&&z()},ge=function(e){e.stopPropagation(),Ce()},Ee=function(){return le?r.createElement("div",{className:"c-productCard__headerExtra"},$&&r.createElement(C,{theme:d("c-productCard__divider",E)}),ie?r.createElement("div",{className:d("c-productCard__table",Q)},r.createElement(u,{contentAlignment:O,disableStackingOnMobile:L,firstColumnSecondary:G,gaps:K,isBold:q,widerContent:X},J.map((function(e,t){return r.createElement(p,{key:"productCard-tableRow-".concat(t),firstColumnSecondary:e.firstColumnSecondary,isBold:e.isBold,label:e.label,perex:e.perex,testId:e.testId,theme:e.theme},e.content)})))):null,ne&&r.createElement("div",{className:"c-productCard__customContent"},g)):null},Ie=function(){var e=se?{onClick:fe,onKeyDown:ke,role:"button",tabIndex:0}:{};return r.createElement("div",t({},e,{className:d("c-productCard__headerArea",{"c-productCard__headerArea--clickable":se,"c-productCard__headerArea--withSharedTitleLink":se&&de&&!z})}),r.createElement(b,t({theme:j},ee,{size:T})),Ee())};return S?r.createElement(s,t({},ue,{hasCustomTrigger:!0,isCollapsible:!0,header:r.createElement(n,null,se?Ie():r.createElement("div",{onClick:function(e){e.stopPropagation(),me?null==z||z():_e()}},r.createElement(b,t({},ee,{size:T,theme:j})),Ee()),!oe&&r.createElement(m,null,r.createElement("div",{className:"c-productCard__collapsible--trigger",id:ee.testId?"productCard-".concat(ee.testId,"-collapsible-closed"):"productCard-collapsible-closed",onClick:ge},r.createElement(c,{iconName:"arrowDown"})))),isInteractive:x,isOpen:oe,size:F,testId:pe,theme:d("c-productCard__position",{"c-card--interactive--open":oe},Y),onClick:se||me?void 0:_e}),r.createElement("div",null,_,oe&&r.createElement(m,null,r.createElement("div",{className:"c-productCard__collapsible--trigger",id:ee.testId?"productCard-".concat(ee.testId,"-collapsible-opened"):"productCard-collapsible-opened",onClick:ge},r.createElement(c,{iconName:"arrowUp"}))))):r.createElement(s,t({},ue,{isInteractive:x,size:F,testId:null!=k?k:ee.testId,theme:Y,onClick:se?void 0:_e}),Ie())};export{v as ProductCard};
1
+ import{__rest as e,__assign as t}from'./../../../ext/tslib/tslib.es6.js';import r,{useState as a,useMemo as o,useCallback as i,Fragment as n}from"react";import{useHistory as l}from"react-router-dom";import"../../../utils/getDisplayName.js";import"../../../utils/getIntegerMask.js";import"../../../utils/isFilled.js";import"../../../utils/isNotFilled.js";import"../../../utils/isNotNilNorEmpty.js";import'./../../../ext/diacritic/diacritics.js';import{cx as d}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Avatar as c}from"../Avatar/Avatar.js";import{Card as s}from"../Card/Card.js";import{CardCustomTrigger as m}from"../Card/_elements_/CardCustomTrigger.js";import{DataTable as u}from"../DataTable/DataTable.js";import{DataTableItem as p}from"../DataTable/DataTableItem.js";import{Divider as C}from"../Divider/Divider.js";import{ProductHeader as b}from"../ProductHeader/ProductHeader.js";var v=function(v){var h=v.background,_=void 0===h?"default":h,f=v.cardTestId,E=v.children,k=v.customContent,g=v.dividerTheme,w=v.headerSize,I=void 0===w?"medium":w,A=v.headerTheme,T=v.initialState,N=void 0!==T&&T,j=v.interactiveArrowPosition,x=void 0===j?"center":j,y=v.isCollapsible,D=void 0!==y&&y,S=v.isHeaderClickable,z=void 0!==S&&S,B=v.isInteractive,P=void 0!==B&&B,M=v.onClick,O=v.size,W=void 0===O?"large":O,F=v.tableContentAlignment,H=void 0===F?"left":F,R=v.tableDisableStackingOnMobile,L=void 0!==R&&R,G=v.tableFirstColumnSecondary,K=void 0===G||G,U=v.tableGaps,q=void 0===U?"small":U,J=v.tableIsBold,Q=void 0!==J&&J,V=v.tableRows,X=v.tableTheme,Y=v.tableWiderContent,Z=void 0!==Y&&Y,$=v.theme,ee=v.withDivider,te=void 0!==ee&&ee,re=e(v,["background","cardTestId","children","customContent","dividerTheme","headerSize","headerTheme","initialState","interactiveArrowPosition","isCollapsible","isHeaderClickable","isInteractive","onClick","size","tableContentAlignment","tableDisableStackingOnMobile","tableFirstColumnSecondary","tableGaps","tableIsBold","tableRows","tableTheme","tableWiderContent","theme","withDivider"]),ae=l(),oe=a(N),ie=oe[0],ne=oe[1],le=Array.isArray(V)&&V.length>0,de=r.Children.count(k)>0,ce=le||de,se=!D&&P,me=Boolean(re.linkTo||re.externalLink),ue=Boolean(M||me),pe=z&&ue,Ce=Boolean(D&&P&&M&&!pe),be="transparent"===_?{backgroundColor:"transparent",borderColor:"noBorder",shadowSize:"no"}:{},ve=o((function(){return null!=f?f:re.testId?"productCard-".concat(re.testId):"productCard"}),[f,re.testId]),he=function(){return ne((function(e){return!e}))},_e=re.externalLink,fe=re.linkTo,Ee=i((function(){_e?window.open(_e,"_blank","noopener,noreferrer"):"function"!=typeof fe?fe&&ae.push(fe):fe()}),[_e,ae,fe]),ke=i((function(){pe&&(M?M():me&&Ee())}),[Ee,me,pe,M]),ge=i((function(e){pe&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),ke()))}),[ke,pe]),we=function(){D&&he(),M&&M()},Ie=function(e){e.stopPropagation(),he()},Ae=function(){return ce?r.createElement("div",{className:"c-productCard__headerExtra"},te&&r.createElement(C,{theme:d("c-productCard__divider",g)}),r.createElement("div",{className:"c-productCard__headerExtraContent"},le?r.createElement("div",{className:d("c-productCard__table",X)},r.createElement(u,{contentAlignment:H,disableStackingOnMobile:L,firstColumnSecondary:K,gaps:q,isBold:Q,widerContent:Z},V.map((function(e,t){return r.createElement(p,{key:"productCard-tableRow-".concat(t),firstColumnSecondary:e.firstColumnSecondary,isBold:e.isBold,label:e.label,perex:e.perex,testId:e.testId,theme:e.theme},e.content)})))):null,de&&r.createElement("div",{className:"c-productCard__customContent"},k))):null},Te=function(){return r.createElement("div",{"aria-hidden":"true",className:"c-productCard__interactiveArrow"},r.createElement(c,{iconName:"arrowRight",size:"small"}))},Ne=function(){var e,a=pe?{onClick:ke,onKeyDown:ge,role:"button",tabIndex:0}:{};return r.createElement("div",t({},a,{className:d("c-productCard__headerArea",(e={"c-productCard__headerArea--clickable":pe,"c-productCard__headerArea--withSharedTitleLink":pe&&me&&!M,"c-productCard__headerArea--withInteractiveArrow":se,"c-productCard__headerArea--withExtraContent":se&&ce},e["c-productCard__headerArea--arrow-".concat(x)]=se,e))}),r.createElement(b,t({theme:A},re,{size:I})),ce?r.createElement("div",{className:d("c-productCard__headerExtraWrapper",{"c-productCard__headerExtraWrapper--withInteractiveArrow":se&&"bottom"===x,"c-productCard__headerExtraWrapper--withTable":se&&"bottom"===x&&le})},Ae(),se&&"bottom"===x&&Te()):null,se&&(!ce||"bottom"!==x)&&Te())};return D?r.createElement(s,t({},be,{hasCustomTrigger:!0,isCollapsible:!0,header:r.createElement(n,null,pe?Ne():r.createElement("div",{onClick:function(e){e.stopPropagation(),Ce?null==M||M():we()}},r.createElement(b,t({},re,{size:I,theme:A})),Ae()),!ie&&r.createElement(m,null,r.createElement("div",{className:"c-productCard__collapsible--trigger",id:re.testId?"productCard-".concat(re.testId,"-collapsible-closed"):"productCard-collapsible-closed",onClick:Ie},r.createElement(c,{iconName:"arrowDown"})))),isInteractive:P,isOpen:ie,size:W,testId:ve,theme:d("c-productCard__position",{"c-card--interactive--open":ie},$),onClick:pe||Ce?void 0:we}),r.createElement("div",null,E,ie&&r.createElement(m,null,r.createElement("div",{className:"c-productCard__collapsible--trigger",id:re.testId?"productCard-".concat(re.testId,"-collapsible-opened"):"productCard-collapsible-opened",onClick:Ie},r.createElement(c,{iconName:"arrowUp"}))))):r.createElement(s,t({},be,{withoutOpener:!0,isInteractive:P,size:W,testId:null!=f?f:re.testId,theme:$,onClick:pe?void 0:we}),Ne())};export{v as ProductCard};
2
2
  //# sourceMappingURL=ProductCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.js","sources":["../../../../src/components/Components/ProductCard/ProductCard.tsx"],"sourcesContent":[null],"names":["ProductCard","_a","_b","background","cardTestId","children","customContent","dividerTheme","_c","headerSize","headerTheme","_d","initialState","_e","isCollapsible","_f","isHeaderClickable","_g","isInteractive","onClick","_h","size","_j","tableContentAlignment","_k","tableDisableStackingOnMobile","_l","tableFirstColumnSecondary","_m","tableGaps","_o","tableIsBold","tableRows","tableTheme","_p","tableWiderContent","theme","_q","withDivider","productHeaderProps","__rest","history","useHistory","_r","useState","isOpen","setIsOpen","hasTable","Array","isArray","length","hasCustomContent","React","Children","count","hasExtraHeaderContent","hasTitleLink","Boolean","linkTo","externalLink","hasHeaderAction","isWholeHeaderClickable","separateHeaderAndCollapseClick","transparentCardProps","backgroundColor","borderColor","shadowSize","resolvedCardTestId","useMemo","testId","concat","toggleOpen","prev","executeHeaderNavigation","useCallback","window","open","push","handleWholeHeaderClick","handleWholeHeaderKeyDown","e","key","preventDefault","handleDefaultClick","handleArrowToggleClick","stopPropagation","renderExtraHeaderContent","createElement","className","Divider","cx","DataTable","contentAlignment","disableStackingOnMobile","firstColumnSecondary","gaps","isBold","widerContent","map","row","idx","DataTableItem","label","perex","content","renderHeaderArea","interactiveProps","onKeyDown","role","tabIndex","ProductHeader","__assign","Card","hasCustomTrigger","header","Fragment","CardCustomTrigger","id","Avatar","iconName","undefined"],"mappings":"y8BAiGO,IAAMA,EAAc,SAACC,GAC1B,IAAAC,EAAsBD,EAAAE,WAAtBA,OAAU,IAAAD,EAAG,UAASA,EACtBE,EAAUH,EAAAG,WACVC,EAAQJ,EAAAI,SACRC,EAAaL,EAAAK,cACbC,EAAYN,EAAAM,aACZC,EAAAP,EAAAQ,WAAAA,OAAa,IAAAD,EAAA,SAAQA,EACrBE,EAAWT,EAAAS,YACXC,EAAoBV,EAAAW,aAApBA,OAAY,IAAAD,GAAQA,EACpBE,EAAAZ,EAAAa,cAAAA,OAA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ACE9E,GAAmB8B,OACf,eAAAC,OAAe/B,GAAmB8B,OAA2B,uBAC7D,iCAENlD,QAASiE,IAEThC,EAAAmC,cAAC+B,EAAM,CAACC,SAAS,gBAnEzBnE,gBAAC4D,EAAID,EAAA,CAAA,EACChD,GACJ,CAAA7C,cAAeA,EACfG,KAAMA,EACNgD,OAAQjE,QAAAA,EAAcmC,GAAmB8B,OACzCjC,MAAOA,EACPjB,QAAU0C,QAA8C2D,EAArBrC,KAElCsB,KAkET"}
1
+ {"version":3,"file":"ProductCard.js","sources":["../../../../src/components/Components/ProductCard/ProductCard.tsx"],"sourcesContent":[null],"names":["ProductCard","_a","_b","background","cardTestId","children","customContent","dividerTheme","_c","headerSize","headerTheme","_d","initialState","_e","interactiveArrowPosition","_f","isCollapsible","_g","isHeaderClickable","_h","isInteractive","onClick","_j","size","_k","tableContentAlignment","_l","tableDisableStackingOnMobile","_m","tableFirstColumnSecondary","_o","tableGaps","_p","tableIsBold","tableRows","tableTheme","_q","tableWiderContent","theme","_r","withDivider","productHeaderProps","__rest","history","useHistory","_s","useState","isOpen","setIsOpen","hasTable","Array","isArray","length","hasCustomContent","React","Children","count","hasExtraHeaderContent","hasCustomInteractiveArrow","hasTitleLink","Boolean","linkTo","externalLink","hasHeaderAction","isWholeHeaderClickable","separateHeaderAndCollapseClick","transparentCardProps","backgroundColor","borderColor","shadowSize","resolvedCardTestId","useMemo","testId","concat","toggleOpen","prev","executeHeaderNavigation","useCallback","window","open","push","handleWholeHeaderClick","handleWholeHeaderKeyDown","e","key","preventDefault","handleDefaultClick","handleArrowToggleClick","stopPropagation","renderExtraHeaderContent","createElement","className","Divider","cx","DataTable","contentAlignment","disableStackingOnMobile","firstColumnSecondary","gaps","isBold","widerContent","map","row","idx","DataTableItem","label","perex","content","renderInteractiveArrow","Avatar","iconName","renderHeaderArea","interactiveProps","onKeyDown","role","tabIndex","ProductHeader","__assign","Card","hasCustomTrigger","header","Fragment","CardCustomTrigger","id","undefined","withoutOpener"],"mapp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,EAiBHsC,EAAAoC,cAAC4B,EAAID,EAAA,CAAA,EACCnD,GAAoB,CACxBqD,kBAAgB,EAChBvG,eAAa,EACbwG,OACElE,gBAACmE,EAAQ,KACNzD,GACC+C,KAEAzD,EAAKoC,cAAA,MAAA,CAAArE,QA1IoC,SAAC8D,GAClDA,EAAEK,kBAEEvB,GACF5C,SAAAA,IAIFiE,IACF,GAkIYhC,EAACoC,cAAA0B,EAAkBC,EAAA,CAAA,EAAA5E,GAAoB,CAAAlB,KAAMd,EAAY6B,MAAO5B,KAC/D+E,OAIH1C,IACAO,EAAAoC,cAACgC,EAAiB,KAChBpE,EACEoC,cAAA,MAAA,CAAAC,UAAU,sCACVgC,GACElF,GAAmB+B,OACf,eAAAC,OAAehC,GAAmB+B,OAA2B,uBAC7D,iCAENnD,QAASkE,IAETjC,EAACoC,cAAAmB,EAAO,CAAAC,SAAS,iBAM3B1F,cAAeA,EACf2B,OAAQA,GACRxB,KAAMA,EACNiD,OAAQF,GACRhC,MAAOuD,EAAG,0BAA2B,CAAE,4BAA6B9C,IAAUT,GAC9EjB,QAAS2C,IAA0BC,QAAiC2D,EAAYtC,KAEhFhC,EAAAoC,cAAA,MAAA,KACGrF,EAEA0C,IACCO,EAAAoC,cAACgC,EAAiB,KAChBpE,EACEoC,cAAA,MAAA,CAAAC,UAAU,sCACVgC,GACElF,GAAmB+B,OACf,eAAAC,OAAehC,GAAmB+B,OAA2B,uBAC7D,iCAENnD,QAASkE,IAETjC,EAAAoC,cAACmB,EAAM,CAACC,SAAS,gBApEzBxD,gBAACgE,EAAID,EAAA,CAAA,EACCnD,GACJ,CAAA2D,eACA,EAAAzG,cAAeA,EACfG,KAAMA,EACNiD,OAAQpE,QAAAA,EAAcqC,GAAmB+B,OACzClC,MAAOA,EACPjB,QAAU2C,QAA8C4D,EAArBtC,KAElCyB,KAkET"}
@@ -47,6 +47,10 @@ type ProductHeaderBaseProps = {
47
47
  titleIconBackgroundCustom?: string;
48
48
  /** Size of icon rendered to the left of the title. */
49
49
  titleIconSize?: AvatarSizeType;
50
+ /** Custom image or visual rendered to the left of the title instead of the default icon Avatar. */
51
+ imageIcon?: ReactNode;
52
+ /** Size of the custom image rendered to the left of the title. */
53
+ imageIconSize?: AvatarSizeType;
50
54
  /** Visually hidden prefix rendered before the title (for screen readers). */
51
55
  titleHiddenPrefix?: ReactElement;
52
56
  /**
@@ -140,6 +144,6 @@ type ProductHeaderBaseProps = {
140
144
  theme?: string;
141
145
  };
142
146
  export type ProductHeaderPropTypes = ProductHeaderBaseProps & ProductHeaderInteractionProps;
143
- export declare const ProductHeader: ({ actions, actionsOtherButton, actionsSize, amount, amountHiddenPrefix, amountHideIcon, amountIsBold, amountIsInline, amountMaximumFractionDigits, amountMinimumFractionDigits, amountSize, amountType, amountUnitAfter, amountUnitBefore, amountUnitTheme, belowHeaderContent, customSubtitle, customTitle, externalLink, isHeaderClickable, linkTo, locale, onHeaderClick, secondaryAmount, secondaryAmountHideIcon, secondaryAmountIsBold, secondaryAmountIsInline, secondaryAmountMaximumFractionDigits, secondaryAmountMinimumFractionDigits, secondaryAmountSize, secondaryAmountType, secondaryAmountUnitAfter, secondaryAmountUnitBefore, secondaryAmountUnitTheme, secondaryLabel, secondaryLabelSize, size, subtitle, subtitleHiddenPrefix, subtitleSize, testId, theme, title, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titlePosition, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
147
+ export declare const ProductHeader: ({ actions, actionsOtherButton, actionsSize, amount, amountHiddenPrefix, amountHideIcon, amountIsBold, amountIsInline, amountMaximumFractionDigits, amountMinimumFractionDigits, amountSize, amountType, amountUnitAfter, amountUnitBefore, amountUnitTheme, belowHeaderContent, customSubtitle, customTitle, externalLink, imageIcon, imageIconSize, isHeaderClickable, linkTo, locale, onHeaderClick, secondaryAmount, secondaryAmountHideIcon, secondaryAmountIsBold, secondaryAmountIsInline, secondaryAmountMaximumFractionDigits, secondaryAmountMinimumFractionDigits, secondaryAmountSize, secondaryAmountType, secondaryAmountUnitAfter, secondaryAmountUnitBefore, secondaryAmountUnitTheme, secondaryLabel, secondaryLabelSize, size, subtitle, subtitleHiddenPrefix, subtitleSize, testId, theme, title, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titlePosition, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
144
148
  export {};
145
149
  //# sourceMappingURL=ProductHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAY,YAAY,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAA;AAG7G,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAG/D,OAAO,EAAU,cAAc,EAAE,UAAU,EAAQ,YAAY,EAAS,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC3G,OAAO,EAAU,cAAc,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAgB,UAAU,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAG5E,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAE5E,KAAK,2BAA2B,GAAG;IACjC,6CAA6C;IAC7C,iBAAiB,EAAE,IAAI,CAAA;IACvB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,KA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EAAE,MAAM,CAAA;IAClC,yCAAyC;IACzC,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,uCAAuC;IACvC,wBAAwB,CAAC,EAAE,KAAK,CAAA;IAChC,oDAAoD;IACpD,oCAAoC,CAAC,EAAE,MAAM,CAAA;IAC7C,oDAAoD;IACpD,oCAAoC,CAAC,EAAE,MAAM,CAAA;IAI7C,sDAAsD;IACtD,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACpC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,kBAAkB,CAAC,EAAE,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC,CAAA;IACzE,6IAA6I;IAC7I,kBAAkB,CAAC,EAAE,SAAS,CAAA;IAI9B,qGAAqG;IACrG,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GAAG,6BAA6B,CAAA;AAE3F,eAAO,MAAM,aAAa,u+BAyDvB,sBAAsB,sBAwTxB,CAAA"}
1
+ {"version":3,"file":"ProductHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAY,YAAY,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAA;AAG7G,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAG/D,OAAO,EAAU,cAAc,EAAE,UAAU,EAAQ,YAAY,EAAS,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC3G,OAAO,EAAU,cAAc,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAgB,UAAU,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,cAAc,EA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e}from'./../../../ext/tslib/tslib.es6.js';import t,{useCallback as o,Fragment as n}from"react";import{useHistory as i}from"react-router-dom";import"../../../utils/getDisplayName.js";import"../../../utils/getIntegerMask.js";import"../../../utils/isFilled.js";import"../../../utils/isNotFilled.js";import"../../../utils/isNotNilNorEmpty.js";import'./../../../ext/diacritic/diacritics.js';import{cx as r}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Flex as a}from"../../Layout/Flex/Flex.js";import{Amount as l}from"../../Typography/Amount/Amount.js";import{Text as s}from"../../Typography/Text/Text.js";import{Title as c}from"../../Typography/Title/Title.js";import"../Button/Button.js";import{ButtonsGroup as m}from"../Button/ButtonsGroup.js";import{Avatar as d}from"../Avatar/Avatar.js";import"../ButtonTooltip/ButtonTooltip.js";import'./../../../ext/cuid/index.js';import"../../../contexts/CardContext.js";import"../../../contexts/FormGroupContext.js";import"../../../contexts/ModalContext.js";import"../../../contexts/Select2Context.js";import"../../../contexts/TabsContext.js";import"react-dom";import"react-slick";import"../Collapse/Collapse.js";import{CompactButtons as u}from"../CompactButtons/CompactButtons.js";import"../DataTable/DataTable.js";import"../../../contexts/ContentTableContext.js";import"../ContentTable/ContentTableRow.js";import'./../../../ext/lodash/_baseToString.js';import'./../../../ext/react-text-mask/dist/reactTextMask.js';import"../Dropdown/_elements_/DropdownDivider.js";import"../Dropdown/_elements_/DropdownItem.js";import"../Dropdown/_elements_/DropdownMenu.js";import"../Dropdown/_elements_/DropdownInfoText.js";import"../Dropdown/_elements_/DropdownLoading.js";import{Link as p}from"../Link/Link.js";import"../SuperModal/SuperModal.context.js";import"../../Form/Autocomplete/Autocomplete.js";import'./../../../ext/react-device-detect/dist/lib.js';import'./../../../ext/@refinanso/images-to-pdf/ext/jspdf/dist/jspdf.es.min.js';import'./../../../ext/@bugsnag/cuid/index.esm.js';import'./../../../ext/jspdf/dist/jspdf.es.min.js';import"../../Form/FileUpload/_parts_/MergeImageCards.js";import"../../Form/Select/_elements_/Select2CategorisedOptions.js";import"../../Form/Select/_elements_/Select2Options.js";import"../../Form/Slider/Slider.js";import"../../../contexts/MobilePanelContext.js";var _={top:"c-productHeader__colLeft--positionTop",center:"c-productHeader__colLeft--positionCenter",bottom:"c-productHeader__colLeft--positionBottom"},f={top:void 0,center:"c-productHeader__layout--positionCenter",bottom:"c-productHeader__layout--positionBottom"},y=function(y){var g=y.actions,H=y.actionsOtherButton,j=y.actionsSize,b=y.amount,v=y.amountHiddenPrefix,x=y.amountHideIcon,S=void 0!==x&&x,h=y.amountIsBold,z=void 0===h||h,C=y.amountIsInline,E=y.amountMaximumFractionDigits,I=void 0===E?2:E,T=y.amountMinimumFractionDigits,k=void 0===T?2:T,L=y.amountSize,A=y.amountType,B=y.amountUnitAfter,D=y.amountUnitBefore,N=y.amountUnitTheme,F=y.belowHeaderContent,w=y.customSubtitle,M=y.customTitle,U=y.externalLink,P=y.isHeaderClickable,V=void 0!==P&&P,O=y.linkTo,R=y.locale,W=y.onHeaderClick,G=y.secondaryAmount,K=y.secondaryAmountHideIcon,q=void 0!==K&&K,J=y.secondaryAmountIsBold,Q=y.secondaryAmountIsInline,X=y.secondaryAmountMaximumFractionDigits,Y=void 0===X?2:X,Z=y.secondaryAmountMinimumFractionDigits,$=void 0===Z?2:Z,ee=y.secondaryAmountSize,te=y.secondaryAmountType,oe=y.secondaryAmountUnitAfter,ne=y.secondaryAmountUnitBefore,ie=y.secondaryAmountUnitTheme,re=y.secondaryLabel,ae=y.secondaryLabelSize,le=y.size,se=void 0===le?"medium":le,ce=y.subtitle,me=y.subtitleHiddenPrefix,de=y.subtitleSize,ue=y.testId,pe=y.theme,_e=y.title,fe=y.titleHiddenPrefix,ye=y.titleIconBackgroundColor,ge=void 0===ye?"bgBrandDefault":ye,He=y.titleIconBackgroundCustom,je=y.titleIconColor,be=y.titleIconName,ve=y.titleIconSize,xe=y.titleIconText,Se=y.titlePosition,he=void 0===Se?"top":Se,ze=y.titleSize,Ce=void 0===ze?"h2":ze,Ee=y.titleVisual,Ie=y.titleWithoutMargin,Te=void 0===Ie||Ie,ke=y.topRightButtons,Le=y.topRightCustomContent,Ae=i(),Be=function(e){switch(e){case"small":return{amountSize:"small",secondaryAmountSize:"xSmall",titleIconSize:"medium",actionsSize:"small"};case"medium":default:return{titleVisual:"h5",subtitleSize:"small",amountSize:"large",secondaryAmountSize:"small",titleIconSize:"medium",actionsSize:"small",secondaryLabelSize:"small"};case"large":return{titleVisual:"h4",subtitleSize:"small",amountSize:"xLarge",secondaryAmountSize:"small",titleIconSize:"large",secondaryLabelSize:"small"};case"xLarge":return{titleVisual:"h3",amountSize:"xLarge",titleIconSize:"xLarge"}}}(se),De=null!=Ee?Ee:Be.titleVisual,Ne=null!=de?de:Be.subtitleSize,Fe=null!=ae?ae:Be.secondaryLabelSize,we=null!=L?L:Be.amountSize,Me=null!=ee?ee:Be.secondaryAmountSize,Ue=null!=ve?ve:Be.titleIconSize,Pe=null!=j?j:Be.actionsSize,Ve="small"===se&&!L,Oe="small"===se&&!ee,Re="xLarge"===se&&!ee,We=!!w||"string"==typeof ce,Ge=!!be||!!xe,Ke=t.Children.count(Le)>0,qe=t.Children.count(ke)>0,Je=Ke,Qe=!Je&&qe,Xe=!Je&&!Qe&&"number"==typeof b,Ye=Je||Qe||Xe,Ze=!!re||"number"==typeof G,$e=!We&&!Ze,et=!!(null==g?void 0:g.length),tt=t.Children.count(F)>0,ot=!(Ge||We||Ye||Ze||et||tt),nt=Boolean(O||U),it=Boolean(W||nt),rt=V&&it,at=o((function(){"function"!=typeof O?O&&Ae.push(O):O()}),[Ae,O]),lt=o((function(){U&&window.open(U,"_blank","noopener,noreferrer")}),[U]),st=o((function(){U?lt():O&&at()}),[lt,at,U,O]),ct=o((function(e){"preventDefault"in e&&e.preventDefault(),at()}),[at]),mt=o((function(){rt&&(W?W():nt&&st())}),[st,nt,rt,W]),dt=o((function(e){rt&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),mt()))}),[mt,rt]),ut=function(){var e=M?t.createElement(n,null,fe&&t.createElement("span",{className:"u-vHide"},fe),M):t.createElement(c,{isWithoutMargin:Te,size:Ce,theme:r("c-productHeader__title",{"c-productHeader__title--customVisual":!!Ee}),visual:De},fe&&t.createElement("span",{className:"u-vHide"},fe),_e);return O||U?t.createElement(p,{allowEventPropagation:!1,ariaLabel:_e,"data-testid":ue?"productHeader-link-".concat(ue):void 0,linkUrl:U||("string"==typeof O?O:"#"),target:U?"_blank":void 0,theme:"c-productHeader__titleLink",onClick:U?void 0:ct},e):e},pt=rt?{onClick:mt,onKeyDown:dt,role:"button",tabIndex:0}:{};if(ot)return t.createElement("div",e({},pt,{className:r("c-productHeader c-productHeader--titleOnly",{"c-productHeader--headerClickable":rt,"c-productHeader--headerClickableWithTitleLink":rt&&nt},pe),"data-testid":ue}),ut());var _t=t.createElement(t.Fragment,null,t.createElement("div",{className:"c-productHeader__colTitle"},ut()),We?t.createElement("div",{className:"c-productHeader__colSubtitle"},w?t.createElement(t.Fragment,null,me&&t.createElement("span",{className:"u-vHide"},me),w):t.createElement(s,{size:Ne,theme:r("c-productHeader__subtitle",{"c-productHeader__subtitle--customSize":!!de}),type:"secondary"},me&&t.createElement("span",{className:"u-vHide"},me),ce)):null);return t.createElement("div",e({},pt,{className:r("c-productHeader",{"c-productHeader--withTitleIcon":Ge,"c-productHeader--small":"small"===se,"c-productHeader--xLarge":"xLarge"===se,"c-productHeader--headerClickable":rt,"c-productHeader--headerClickableWithTitleLink":rt&&nt},pe),"data-testid":ue}),t.createElement("div",{className:r("c-productHeader__layout",$e?f[he]:void 0)},Ge?t.createElement("div",{className:r("c-productHeader__colLeft",_[he])},t.createElement("div",{className:"c-productHeader__colIcon"},t.createElement(d,{backgroundColor:ge,backgroundCustom:He,color:je,iconName:be,size:Ue,text:xe})),t.createElement("div",{className:"c-productHeader__colLeftInner"},_t)):t.createElement("div",{className:"c-productHeader__colLeft"},_t),Ye||Ze?t.createElement("div",{className:"c-productHeader__colRight"},Ye?t.createElement("div",null,Je?Le:null,Qe?t.createElement(m,null,ke):null,Xe?t.createElement(t.Fragment,null,v&&t.createElement("span",{className:"u-vHide"},v),t.createElement(l,{amount:b,hideIcon:S,isBold:z,isInline:C,locale:R,maximumFractionDigits:I,minimumFractionDigits:k,size:we,theme:r("c-productHeader__amount",{"c-productHeader__amount--small":Ve}),type:A,unitAfter:B,unitBefore:D,unitTheme:N})):null):null,Ze?t.createElement("div",null,re?t.createElement(a,{alignItems:"baseline",direction:"row",justifyContent:"end",theme:"c-productHeader__secondary"},t.createElement(s,{component:"span",size:Fe,theme:r("c-productHeader__secondaryLabel",{"c-productHeader__secondaryLabel--customSize":!!ae})},re),"number"==typeof G?t.createElement(l,{amount:G,hideIcon:q,isBold:J,isInline:Q,locale:R,maximumFractionDigits:Y,minimumFractionDigits:$,size:Me,theme:r("c-productHeader__amount",{"c-productHeader__amount--small":Oe,"c-productHeader__secondaryAmount--xLarge":Re}),type:te,unitAfter:oe,unitBefore:ne,unitTheme:r(ie,{"c-productHeader__secondaryAmount--xLarge":Re})}):null):null):null):null),et?t.createElement("div",{className:"c-productHeader__actions"},t.createElement(u,{buttons:g,otherButton:H,size:Pe})):null,tt?t.createElement("div",{className:"c-productHeader__below"},F):null)};export{y as ProductHeader};
1
+ import{__assign as e}from'./../../../ext/tslib/tslib.es6.js';import t,{useCallback as o,Fragment as n}from"react";import{useHistory as i}from"react-router-dom";import"../../../utils/getDisplayName.js";import"../../../utils/getIntegerMask.js";import"../../../utils/isFilled.js";import"../../../utils/isNotFilled.js";import"../../../utils/isNotNilNorEmpty.js";import'./../../../ext/diacritic/diacritics.js';import{cx as r}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Flex as a}from"../../Layout/Flex/Flex.js";import{Amount as l}from"../../Typography/Amount/Amount.js";import{Text as c}from"../../Typography/Text/Text.js";import{Title as s}from"../../Typography/Title/Title.js";import"../Button/Button.js";import{ButtonsGroup as m}from"../Button/ButtonsGroup.js";import{Avatar as d}from"../Avatar/Avatar.js";import"../ButtonTooltip/ButtonTooltip.js";import'./../../../ext/cuid/index.js';import"../../../contexts/CardContext.js";import"../../../contexts/FormGroupContext.js";import"../../../contexts/ModalContext.js";import"../../../contexts/Select2Context.js";import"../../../contexts/TabsContext.js";import"react-dom";import"react-slick";import"../Collapse/Collapse.js";import{CompactButtons as u}from"../CompactButtons/CompactButtons.js";import"../DataTable/DataTable.js";import"../../../contexts/ContentTableContext.js";import"../ContentTable/ContentTableRow.js";import'./../../../ext/lodash/_baseToString.js';import'./../../../ext/react-text-mask/dist/reactTextMask.js';import"../Dropdown/_elements_/DropdownDivider.js";import"../Dropdown/_elements_/DropdownItem.js";import"../Dropdown/_elements_/DropdownMenu.js";import"../Dropdown/_elements_/DropdownInfoText.js";import"../Dropdown/_elements_/DropdownLoading.js";import{Link as p}from"../Link/Link.js";import"../SuperModal/SuperModal.context.js";import"../../Form/Autocomplete/Autocomplete.js";import'./../../../ext/react-device-detect/dist/lib.js';import'./../../../ext/@refinanso/images-to-pdf/ext/jspdf/dist/jspdf.es.min.js';import'./../../../ext/@bugsnag/cuid/index.esm.js';import'./../../../ext/jspdf/dist/jspdf.es.min.js';import"../../Form/FileUpload/_parts_/MergeImageCards.js";import"../../Form/Select/_elements_/Select2CategorisedOptions.js";import"../../Form/Select/_elements_/Select2Options.js";import"../../Form/Slider/Slider.js";import"../../../contexts/MobilePanelContext.js";var _={top:"c-productHeader__colLeft--positionTop",center:"c-productHeader__colLeft--positionCenter",bottom:"c-productHeader__colLeft--positionBottom"},f={top:void 0,center:"c-productHeader__layout--positionCenter",bottom:"c-productHeader__layout--positionBottom"},g=function(g){var H=g.actions,y=g.actionsOtherButton,j=g.actionsSize,v=g.amount,b=g.amountHiddenPrefix,x=g.amountHideIcon,S=void 0!==x&&x,h=g.amountIsBold,z=void 0===h||h,C=g.amountIsInline,I=g.amountMaximumFractionDigits,E=void 0===I?2:I,T=g.amountMinimumFractionDigits,k=void 0===T?2:T,L=g.amountSize,A=g.amountType,B=g.amountUnitAfter,D=g.amountUnitBefore,N=g.amountUnitTheme,F=g.belowHeaderContent,w=g.customSubtitle,M=g.customTitle,U=g.externalLink,P=g.imageIcon,V=g.imageIconSize,O=g.isHeaderClickable,R=void 0!==O&&O,W=g.linkTo,G=g.locale,K=g.onHeaderClick,q=g.secondaryAmount,J=g.secondaryAmountHideIcon,Q=void 0!==J&&J,X=g.secondaryAmountIsBold,Y=g.secondaryAmountIsInline,Z=g.secondaryAmountMaximumFractionDigits,$=void 0===Z?2:Z,ee=g.secondaryAmountMinimumFractionDigits,te=void 0===ee?2:ee,oe=g.secondaryAmountSize,ne=g.secondaryAmountType,ie=g.secondaryAmountUnitAfter,re=g.secondaryAmountUnitBefore,ae=g.secondaryAmountUnitTheme,le=g.secondaryLabel,ce=g.secondaryLabelSize,se=g.size,me=void 0===se?"medium":se,de=g.subtitle,ue=g.subtitleHiddenPrefix,pe=g.subtitleSize,_e=g.testId,fe=g.theme,ge=g.title,He=g.titleHiddenPrefix,ye=g.titleIconBackgroundColor,je=void 0===ye?"bgBrandDefault":ye,ve=g.titleIconBackgroundCustom,be=g.titleIconColor,xe=g.titleIconName,Se=g.titleIconSize,he=g.titleIconText,ze=g.titlePosition,Ce=void 0===ze?"top":ze,Ie=g.titleSize,Ee=void 0===Ie?"h2":Ie,Te=g.titleVisual,ke=g.titleWithoutMargin,Le=void 0===ke||ke,Ae=g.topRightButtons,Be=g.topRightCustomContent,De=i(),Ne=function(e){switch(e){case"small":return{amountSize:"small",secondaryAmountSize:"xSmall",titleIconSize:"medium",actionsSize:"small"};case"medium":default:return{titleVisual:"h5",subtitleSize:"small",amountSize:"large",secondaryAmountSize:"small",titleIconSize:"medium",actionsSize:"small",secondaryLabelSize:"small"};case"large":return{titleVisual:"h4",subtitleSize:"small",amountSize:"xLarge",secondaryAmountSize:"small",titleIconSize:"large",secondaryLabelSize:"small"};case"xLarge":return{titleVisual:"h3",amountSize:"xLarge",titleIconSize:"xLarge"}}}(me),Fe=null!=Te?Te:Ne.titleVisual,we=null!=pe?pe:Ne.subtitleSize,Me=null!=ce?ce:Ne.secondaryLabelSize,Ue=null!=L?L:Ne.amountSize,Pe=null!=oe?oe:Ne.secondaryAmountSize,Ve=null!=Se?Se:Ne.titleIconSize,Oe=null!=V?V:Ne.titleIconSize,Re=null!=j?j:Ne.actionsSize,We="small"===me&&!L,Ge="small"===me&&!oe,Ke="xLarge"===me&&!oe,qe=!!w||"string"==typeof de,Je=t.Children.count(P)>0,Qe=Je||(!!xe||!!he),Xe=t.Children.count(Be)>0,Ye=t.Children.count(Ae)>0,Ze=Xe,$e=!Ze&&Ye,et=!Ze&&!$e&&"number"==typeof v,tt=Ze||$e||et,ot=!!le||"number"==typeof q,nt=!qe&&!ot,it=!!(null==H?void 0:H.length),rt=t.Children.count(F)>0,at=!(Qe||qe||tt||ot||it||rt),lt=Boolean(W||U),ct=Boolean(K||lt),st=R&&ct,mt=o((function(){"function"!=typeof W?W&&De.push(W):W()}),[De,W]),dt=o((function(){U&&window.open(U,"_blank","noopener,noreferrer")}),[U]),ut=o((function(){U?dt():W&&mt()}),[dt,mt,U,W]),pt=o((function(e){"preventDefault"in e&&e.preventDefault(),mt()}),[mt]),_t=o((function(){st&&(K?K():lt&&ut())}),[ut,lt,st,K]),ft=o((function(e){st&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),_t()))}),[_t,st]),gt=function(){var e=M?t.createElement(n,null,He&&t.createElement("span",{className:"u-vHide"},He),M):t.createElement(s,{isWithoutMargin:Le,size:Ee,theme:r("c-productHeader__title",{"c-productHeader__title--customVisual":!!Te}),visual:Fe},He&&t.createElement("span",{className:"u-vHide"},He),ge);return W||U?t.createElement(p,{allowEventPropagation:!1,ariaLabel:ge,"data-testid":_e?"productHeader-link-".concat(_e):void 0,linkUrl:U||("string"==typeof W?W:"#"),target:U?"_blank":void 0,theme:"c-productHeader__titleLink",onClick:U?void 0:pt},e):e},Ht=st?{onClick:_t,onKeyDown:ft,role:"button",tabIndex:0}:{};if(at)return t.createElement("div",e({},Ht,{className:r("c-productHeader c-productHeader--titleOnly",{"c-productHeader--headerClickable":st,"c-productHeader--headerClickableWithTitleLink":st&&lt},fe),"data-testid":_e}),gt());var yt=t.createElement(t.Fragment,null,t.createElement("div",{className:"c-productHeader__colTitle"},gt()),qe?t.createElement("div",{className:"c-productHeader__colSubtitle"},w?t.createElement(t.Fragment,null,ue&&t.createElement("span",{className:"u-vHide"},ue),w):t.createElement(c,{size:we,theme:r("c-productHeader__subtitle",{"c-productHeader__subtitle--customSize":!!pe}),type:"secondary"},ue&&t.createElement("span",{className:"u-vHide"},ue),de)):null);return t.createElement("div",e({},Ht,{className:r("c-productHeader",{"c-productHeader--withTitleIcon":Qe,"c-productHeader--small":"small"===me,"c-productHeader--xLarge":"xLarge"===me,"c-productHeader--headerClickable":st,"c-productHeader--headerClickableWithTitleLink":st&&lt},fe),"data-testid":_e}),t.createElement("div",{className:r("c-productHeader__layout",nt?f[Ce]:void 0)},Qe?t.createElement("div",{className:r("c-productHeader__colLeft",_[Ce])},t.createElement("div",{className:"c-productHeader__colIcon"},Je?t.createElement("div",{className:r("c-productHeader__imageIcon","c-productHeader__imageIcon--".concat(Oe))},P):t.createElement(d,{backgroundColor:je,backgroundCustom:ve,color:be,iconName:xe,size:Ve,text:he})),t.createElement("div",{className:"c-productHeader__colLeftInner"},yt)):t.createElement("div",{className:"c-productHeader__colLeft"},yt),tt||ot?t.createElement("div",{className:"c-productHeader__colRight"},tt?t.createElement("div",null,Ze?Be:null,$e?t.createElement(m,null,Ae):null,et?t.createElement(t.Fragment,null,b&&t.createElement("span",{className:"u-vHide"},b),t.createElement(l,{amount:v,hideIcon:S,isBold:z,isInline:C,locale:G,maximumFractionDigits:E,minimumFractionDigits:k,size:Ue,theme:r("c-productHeader__amount",{"c-productHeader__amount--small":We}),type:A,unitAfter:B,unitBefore:D,unitTheme:N})):null):null,ot?t.createElement("div",null,le?t.createElement(a,{alignItems:"baseline",direction:"row",justifyContent:"end",theme:"c-productHeader__secondary"},t.createElement(c,{component:"span",size:Me,theme:r("c-productHeader__secondaryLabel",{"c-productHeader__secondaryLabel--customSize":!!ce})},le),"number"==typeof q?t.createElement(l,{amount:q,hideIcon:Q,isBold:X,isInline:Y,locale:G,maximumFractionDigits:$,minimumFractionDigits:te,size:Pe,theme:r("c-productHeader__amount",{"c-productHeader__amount--small":Ge,"c-productHeader__secondaryAmount--xLarge":Ke}),type:ne,unitAfter:ie,unitBefore:re,unitTheme:r(ae,{"c-productHeader__secondaryAmount--xLarge":Ke})}):null):null):null):null),it?t.createElement("div",{className:"c-productHeader__actions"},t.createElement(u,{buttons:H,otherButton:y,size:Re})):null,rt?t.createElement("div",{className:"c-productHeader__below"},F):null)};export{g as ProductHeader};
2
2
  //# sourceMappingURL=ProductHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductHeader.js","sources":["../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"sourcesContent":[null],"names":["titlePositionClassMap","top","center","bottom","layoutPositionClassMap","undefined","ProductHeader","_a","actions","actionsOtherButton","actionsSize","amount","amountHiddenPrefix","_b","amountHideIcon","_c","amountIsBold","amountIsInline","_d","amountMaximumFractionDigits","_e","amountMinimumFractionDigits","amountSize","amountType","amountUnitAfter","amountUnitBefore","amountUnitTheme","belowHeaderContent","customSubtitle","customTitle","externalLink","_f","isHeaderClickable","linkTo","locale","onHeaderClick","secondaryAmount","_g","secondaryAmountHideIcon","secondaryAmountIsBold","secondaryAmountIsInline","_h","secondaryAmountMaximumFractionDigits","_j","secondaryAmountMinimumFractionDigits","secondaryAmountSize","secondaryAmountType","secondaryAmountUnitAfter","secondaryAmountUnitBefore","secondaryAmountUnitTheme","secondaryLabel","secondaryLabelSize","_k","size","subtitle","subtitleHiddenPrefix","subtitleSize","testId","theme","title","titleHiddenPrefix","_l","titleIconBackgroundColor","titleIconBackgroundCustom","titleIconColor","titleIconName","titleIconSize","titleIconText","_m","titlePosition","_o","titleSize","titleVisual","_p","titleWithoutMargin","topRightButtons","topRightCustomContent","history","useHistory","defaultSizes","getDefaultSizesByHeaderSize","resolvedTitleVisual","resolvedSubtitleSize","resolvedSecondaryLabelSize","resolvedAmountSize","resolvedSecondaryAmountSize","resolvedTitleIconSize","resolvedActionsSize","shouldUseSmallAmountTheme","shouldUseSmallSecondaryAmountTheme","shouldUseXLargeSecondaryAmountTheme","hasSubtitle","hasIcon","hasTopRightCustomContent","React","Children","count","hasTopRightButtons","showTopRightCustomContent","showTopRightButtons","showAmount","hasTopRight","hasBottomRight","isSingleLineRow","hasActions","length","hasBelowHeaderContent","isTitleOnly","hasTitleLink","Boolean","hasHeaderAction","isWholeHeaderClickable","executeInternalNavigation","useCallback","push","executeExternalNavigation","window","open","executeHeaderLinkAction","onInternalTitleClick","e","preventDefault","handleWholeHeaderClick","handleWholeHeaderKeyDown","key","renderTitle","titleInner","Fragment","createElement","className","Title","isWithoutMargin","cx","visual","Link","allowEventPropagation","ariaLabel","concat","linkUrl","target","onClick","wrapperInteractiveProps","onKeyDown","role","tabIndex","leftContent","Text","type","Avatar","backgroundColor","backgroundCustom","color","iconName","text","ButtonsGroup","Amount","hideIcon","isBold","isInline","maximumFractionDigits","minimumFractionDigits","unitAfter","unitBefore","unitTheme","Flex","alignItems","direction","justifyContent","component","CompactButtons","buttons","otherButton"],"mappings":"m7EAyCA,IAAMA,EAAqE,CACzEC,IAAK,wCACLC,OAAQ,2CACRC,OAAQ,4CAEJC,EAAkF,CACtFH,SAAKI,EACLH,OAAQ,0CACRC,OAAQ,2CA4LGG,EAAgB,SAACC,OAC5BC,EAAOD,EAAAC,QACPC,EAAkBF,EAAAE,mBAClBC,EAAWH,EAAAG,YACXC,EAAMJ,EAAAI,OACNC,EAAkBL,EAAAK,mBAClBC,EAAsBN,EAAAO,eAAtBA,OAAc,IAAAD,GAAQA,EACtBE,EAAmBR,EAAAS,aAAnBA,OAAY,IAAAD,GAAOA,EACnBE,EAAcV,EAAAU,eACdC,EAAA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BrH,EACvBsH,sBAAuBpH,EACvBS,KAAMgC,GACN3B,MAAO0E,EAAG,0BAA2B,CACnC,iCAAkC3C,GAClC,2CAA4CC,KAE9CyD,KAAMrG,GACNmH,UAAWlH,GACXmH,WAAYlH,GACZmH,UAAW/B,EAAGnF,GAA0B,CACtC,2CAA4CyC,OAG9C,MAEJ,MAEJ,MAEJ,MAGLc,GACCV,EAAKkC,cAAA,MAAA,CAAAC,UAAU,4BACbnC,EAAAkC,cAACyC,EAAe,CAAAC,QAASlK,EAASmK,YAAalK,EAAoB4C,KAAMkC,MAEzE,KAEHmB,GAAwBZ,EAAKkC,cAAA,MAAA,CAAAC,UAAU,0BAA0BtG,GAA4B,KAGpG"}
1
+ {"version":3,"file":"ProductHeader.js","sources":["../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"sourcesContent":[null],"names":["titlePositionClassMap","top","center","bottom","layoutPositionClassMap","undefined","ProductHeader","_a","actions","actionsOtherButton","actionsSize","amount","amountHiddenPrefix","_b","amountHideIcon","_c","amountIsBold","amountIsInline","_d","amountMaximumFractionDigits","_e","amountMinimumFractionDigits","amountSize","amountType","amountUnitAfter","amountUnitBefore","amountUnitTheme","belowHeaderContent","customSubtitle","customTitle","externalLink","imageIcon","imageIconSize","_f","isHeaderClickable","linkTo","locale","onHeaderClick","secondaryAmount","_g","secondaryAmountHideIcon","secondaryAmountIsBold","secondaryAmountIsInline","_h","secondaryAmountMaximumFractionDigits","_j","secondaryAmountMinimumFractionDigits","secondaryAmountSize","secondaryAmountType","secondaryAmountUnitAfter","secondaryAmountUnitBefore","secondaryAmountUnitTheme","secondaryLabel","secondaryLabelSize","_k","size","subtitle","subtitleHiddenPrefix","subtitleSize","testId","theme","title","titleHiddenPrefix","_l","titleIconBackgroundColor","titleIconBackgroundCustom","titleIconColor","titleIconName","titleIconSize","titleIconText","_m","titlePosition","_o","titleSize","titleVisual","_p","titleWithoutMargin","topRightButtons","topRightCustomContent","history","useHistory","defaultSizes","getDefaultSizesByHeaderSize","resolvedTitleVisual","resolvedSubtitleSize","resolvedSecondaryLabelSize","resolvedAmountSize","resolvedSecondaryAmountSize","resolvedTitleIconSize","resolvedImageIconSize","resolvedActionsSize","shouldUseSmallAmountTheme","shouldUseSmallSecondaryAmountTheme","shouldUseXLargeSecondaryAmountTheme","hasSubtitle","hasImageIcon","React","Children","count","hasTitleIcon","hasTopRightCustomContent","hasTopRightButtons","showTopRightCustomContent","showTopRightButtons","showAmount","hasTopRight","hasBottomRight","isSingleLineRow","hasActions","length","hasBelowHeaderContent","isTitleOnly","hasTitleLink","Boolean","hasHeaderAction","isWholeHeaderClickable","executeInternalNavigation","useCallback","push","executeExternalNavigation","window","open","executeHeaderLinkAction","onInternalTitleClick","e","preventDefault","handleWholeHeaderClick","handleWholeHeaderKeyDown","key","renderTitle","titleInner","Fragment","createElement","className","Title","isWithoutMargin","cx","visual","Link","allowEventPropagation","ariaLabel","concat","linkUrl","target","onClick","wrapperInteractiveProps","onKeyDown","role","tabIndex","leftContent","Text","type","Avatar","backgroundColor","backgroundCustom","color","iconName","text","ButtonsGroup","Amount","hideIcon","isBold","isInline","maximumFractionDigits","minimumFractionDigits","unitAfter","unitBefore","unitTheme","Flex","alignItems","direction","justifyContent","component","CompactButtons","buttons","otherButton"],"mappings":"m7EAyCA,IAAMA,EAAqE,CACzEC,IAAK,wCACLC,OAAQ,2CACRC,OAAQ,4CAEJC,EAAkF,CACtFH,SAAKI,EACLH,OAAQ,0CACRC,OAAQ,2CAgMGG,EAAgB,SAACC,OAC5BC,EAAOD,EAAAC,QACPC,EAAkBF,EAAAE,mBAClBC,EAAWH,EAAAG,YACXC,EAAMJ,EAAAI,OACNC,uBACAC,EAAAN,EAAAO,eAAAA,OAAiB,IAAAD,KACjBE,EAAAR,EAAAS,aAAAA,OAAe,IAAAD,KACfE,EAAcV,EAAAU,eACdC,EAA+BX,EAAAY,4BAA/BA,OAA8B,IAAAD,EAAA,EAACA,EAC/BE,EAA+Bb,EAAAc,4BAA/BA,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