@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.
- package/cjs/components/Components/ActionBar/ActionBar.js +1 -1
- package/cjs/components/Components/Button/Button.js +1 -1
- package/cjs/components/Components/Card/Card.js +1 -1
- package/cjs/components/Components/Card/Card.js.map +1 -1
- package/cjs/components/Components/IconList/IconListItem.js +1 -1
- package/cjs/components/Components/Link/Link.js +1 -1
- package/cjs/components/Components/NotificationCard/NotificationCardHeader.js +1 -1
- package/cjs/components/Components/ProductCard/ProductCard.d.ts +13 -18
- package/cjs/components/Components/ProductCard/ProductCard.d.ts.map +1 -1
- package/cjs/components/Components/ProductCard/ProductCard.js +1 -1
- package/cjs/components/Components/ProductCard/ProductCard.js.map +1 -1
- package/cjs/components/Components/ProductHeader/ProductHeader.d.ts +5 -1
- package/cjs/components/Components/ProductHeader/ProductHeader.d.ts.map +1 -1
- package/cjs/components/Components/ProductHeader/ProductHeader.js +1 -1
- package/cjs/components/Components/ProductHeader/ProductHeader.js.map +1 -1
- package/cjs/components/Components/Tile/Tile.js +1 -1
- package/cjs/components/Components/UserAuth/UserAuth.js +1 -1
- package/cjs/components/Form/Autocomplete/Autocomplete.js +1 -1
- package/cjs/components/Form/Checkbox/CheckboxItem.js +1 -1
- package/cjs/components/Form/Checkbox/CheckboxItem.js.map +1 -1
- package/cjs/components/Form/DatePicker/DatePicker.js +1 -1
- package/cjs/components/Form/FileUpload/FileUpload.hook.js +1 -1
- package/cjs/components/Form/FileUpload/FileUpload.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/FileList.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/MergeDialog.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/MergeImageAdd.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/MergeImageCard.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/MergeImageDetail.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/ModalConfirmContent.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/ModalWaitingContent.js +1 -1
- package/cjs/components/Form/FormGroup2/FormGroup2.js +1 -1
- package/cjs/components/Form/Input/Input.js +1 -1
- package/cjs/components/Form/Input/_elements_/ShowPasswordIcon.js +1 -1
- package/cjs/components/Form/Label2/Label2.js +1 -1
- package/cjs/components/Form/Multiselect/Multiselect.js +1 -1
- package/cjs/components/Form/PersonCount/PersonCount.js +1 -1
- package/cjs/components/Form/Radio/Radio.js +1 -1
- package/cjs/components/Form/Radio/Radio.js.map +1 -1
- package/cjs/components/Form/Select/Select.js +1 -1
- package/cjs/components/Form/Select/_elements_/Select2CategorisedOptions.js +1 -1
- package/cjs/components/Form/Select/_elements_/Select2Options.js +1 -1
- package/cjs/components/Form/Select/_elements_/SelectedOption.js +1 -1
- package/cjs/components/Form/Slider/Slider.js +1 -1
- package/cjs/components/Form/Slider/Slider.js.map +1 -1
- package/cjs/components/Form/Toggle/Toggle.js +1 -1
- package/cjs/components/Form/Toggle/Toggle.js.map +1 -1
- package/cjs/components/Graphs/AreaChart/_elements_/AreaChartLegend/AreaChartLegend.js +1 -1
- package/cjs/components/Graphs/BarChart/BarChart.js +1 -1
- package/cjs/components/Graphs/ChartLegend/_elements_/ChartLegendRow.js +1 -1
- package/cjs/components/Layout/Header/Header.js +1 -1
- package/cjs/components/Layout/MobilePanel/_elements_/Header.js +1 -1
- package/cjs/components/Navigation/Menu/_elements_/MenuItem.js +1 -1
- package/cjs/components/Navigation/Menu/_elements_/MenuItem.js.map +1 -1
- package/cjs/components/Navigation/Menu/_elements_/SecondaryMenuCollapse.js +1 -1
- package/cjs/components/Navigation/Stepper/_parts_/Step.js +1 -1
- package/cjs/components/Navigation/Tabs/_elements_/TabsBar.js +1 -1
- package/cjs/components/Typography/Amount/Amount.js +1 -1
- package/cjs/components/Typography/Title/Title.js +1 -1
- package/cjs/ds-lilly.css +147 -3
- package/cjs/ext/raf/index.js +1 -1
- package/cjs/ext/react-is/index.js +1 -1
- package/cjs/index.js +1 -1
- package/components/Components/ProductCard/ProductCard.d.ts +13 -18
- package/components/Components/ProductCard/ProductCard.d.ts.map +1 -1
- package/components/Components/ProductCard/ProductCard.js +1 -1
- package/components/Components/ProductCard/ProductCard.js.map +1 -1
- package/components/Components/ProductHeader/ProductHeader.d.ts +5 -1
- package/components/Components/ProductHeader/ProductHeader.d.ts.map +1 -1
- package/components/Components/ProductHeader/ProductHeader.js +1 -1
- package/components/Components/ProductHeader/ProductHeader.js.map +1 -1
- package/ds-lilly.css +147 -3
- package/ext/raf/index.js +1 -1
- package/ext/react-is/index.js +1 -1
- package/package.json +1 -1
- /package/assets/{34945142d958dcc8bef9.woff → 07f5a10106e90f507f9a.woff} +0 -0
- /package/assets/{16cb9c6a75c99e034ad7.svg → 0bc864abdb5da4fd184a.svg} +0 -0
- /package/assets/{ace4dba179788447f1bd.ttf → 50e03bea7eb0670c4ebc.ttf} +0 -0
- /package/assets/{512c52751eaff7983f7f.eot → 796091b820afa627b43b.eot} +0 -0
- /package/assets/{e99f43d16eab00806cb4.woff → 9f4da6698407fff446c2.woff} +0 -0
- /package/assets/{2581e9454abb8b961b3b.gif → c97e2081a52e9e1f98fd.gif} +0 -0
- /package/assets/{5a5fd5ca4e486b777add.eot → d0c70188e8f85664723d.eot} +0 -0
- /package/assets/{e68eb527e151a148d846.ttf → f172c74ce89e4cce3a15.ttf} +0 -0
- /package/assets/{a05b0bd32fe9f73e99f3.eot → fab7747d6f32812f81d8.eot} +0 -0
- /package/assets/{3436f7de1422842a79c6.svg → fbaf8b9ac02bd861a2fc.svg} +0 -0
- /package/assets/{70e13eb90dbe5ab899b2.gif → fc47084ce3d9fbb65400.gif} +0 -0
- /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
|
|
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
|
-
/**
|
|
11
|
+
/** Enables interactive card styles and arrow. */
|
|
11
12
|
isInteractive?: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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/Components/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAkC,MAAM,OAAO,CAAA;AAKlF,OAAO,EAA2B,QAAQ,EAAE,MAAM,SAAS,CAAA;AAG3D,OAAO,EAAiB,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEhG,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,aAAa,CAAA;AAE7D,
|
|
1
|
+
{"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAkC,MAAM,OAAO,CAAA;AAKlF,OAAO,EAA2B,QAAQ,EAAE,MAAM,SAAS,CAAA;AAG3D,OAAO,EAAiB,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEhG,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,aAAa,CAAA;AAE7D,MAAM,MAAM,mCAAmC,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE7E,KAAK,wBAAwB,GAAG;IAC9B,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iDAAiD;IACjD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,mCAAmC,CAAA;CAC/D,CAAA;AAED,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,SAAS,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,M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A;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
|
|
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","
|
|
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"],"mappings":"y8BA0FO,IAAMA,EAAc,SAACC,GAC1B,IAAAC,EAAsBD,EAAAE,WAAtBA,OAAU,IAAAD,EAAG,UAASA,EACtBE,EAAUH,EAAAG,WACV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ACNzD,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,iBA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C1C,yBAAyB,CAAC,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,
|
|
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,wBAAw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{__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
|
|
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&<},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&<},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","
|
|
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,OAA8B,IAAAD,EAAA,EAACA,EAC/BE,EAAUf,EAAAe,WACVC,EAAUhB,EAAAgB,WACVC,EAAejB,EAAAiB,gBACfC,EAAgBlB,EAAAkB,iBAChBC,EAAenB,EAAAmB,gBACfC,uBACAC,EAAcrB,EAAAqB,eACdC,EAAWtB,EAAAsB,YACXC,EAAYvB,EAAAuB,aACZC,EAASxB,EAAAwB,UACTC,EAAazB,EAAAyB,cACbC,EAAyB1B,EAAA2B,kBAAzBA,OAAiB,IAAAD,GAAQA,EACzBE,EAAM5B,EAAA4B,OACNC,WACAC,EAAa9B,EAAA8B,cACbC,EAAe/B,EAAA+B,gBACfC,EAA+BhC,EAAAiC,wBAA/BA,OAAuB,IAAAD,GAAQA,EAC/BE,EAAqBlC,EAAAkC,sBACrBC,EAAuBnC,EAAAmC,wBACvBC,EAAApC,EAAAqC,qCAAAA,OAAoC,IAAAD,EAAG,EAACA,EACxCE,GAAAtC,E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