@mmb-digital/ds-lilly 1.0.141 → 1.0.143
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/ProductHeader/ProductHeader.d.ts +7 -5
- 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/Layout/MobilePanel/MobilePanel.d.ts +3 -1
- package/cjs/components/Layout/MobilePanel/MobilePanel.d.ts.map +1 -1
- package/cjs/components/Layout/MobilePanel/MobilePanel.js +1 -1
- package/cjs/components/Layout/MobilePanel/MobilePanel.js.map +1 -1
- package/cjs/components/Layout/MobilePanel/_elements_/Header.d.ts +3 -1
- package/cjs/components/Layout/MobilePanel/_elements_/Header.d.ts.map +1 -1
- package/cjs/components/Layout/MobilePanel/_elements_/Header.js +1 -1
- package/cjs/components/Layout/MobilePanel/_elements_/Header.js.map +1 -1
- package/cjs/components/Navigation/Menu/_elements_/SecondaryMenuSection.d.ts +3 -1
- package/cjs/components/Navigation/Menu/_elements_/SecondaryMenuSection.d.ts.map +1 -1
- package/cjs/components/Navigation/Menu/_elements_/SecondaryMenuSection.js +1 -1
- package/cjs/components/Navigation/Menu/_elements_/SecondaryMenuSection.js.map +1 -1
- package/cjs/ds-lilly.css +7 -3
- package/components/Components/ProductHeader/ProductHeader.d.ts +7 -5
- 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/components/Layout/MobilePanel/MobilePanel.d.ts +3 -1
- package/components/Layout/MobilePanel/MobilePanel.d.ts.map +1 -1
- package/components/Layout/MobilePanel/MobilePanel.js +1 -1
- package/components/Layout/MobilePanel/MobilePanel.js.map +1 -1
- package/components/Layout/MobilePanel/_elements_/Header.d.ts +3 -1
- package/components/Layout/MobilePanel/_elements_/Header.d.ts.map +1 -1
- package/components/Layout/MobilePanel/_elements_/Header.js +1 -1
- package/components/Layout/MobilePanel/_elements_/Header.js.map +1 -1
- package/components/Navigation/Menu/_elements_/SecondaryMenuSection.d.ts +3 -1
- package/components/Navigation/Menu/_elements_/SecondaryMenuSection.d.ts.map +1 -1
- package/components/Navigation/Menu/_elements_/SecondaryMenuSection.js +1 -1
- package/components/Navigation/Menu/_elements_/SecondaryMenuSection.js.map +1 -1
- package/ds-lilly.css +7 -3
- package/ext/raf/index.js +1 -1
- package/ext/react-is/index.js +1 -1
- package/package.json +1 -1
- /package/assets/{3a0aba08d94595e2e053.gif → 28c55589e6cb33dbe832.gif} +0 -0
- /package/assets/{26cb00a61a7d1f041b3a.ttf → 2a401b3d549b6bcdf6a9.ttf} +0 -0
- /package/assets/{91e859b1b0aa10be4a8c.gif → 4fd20f98af33e1a8b400.gif} +0 -0
- /package/assets/{311ef171642d41911fcc.svg → 6001478257cf5db46bdd.svg} +0 -0
- /package/assets/{ce4429ea8a045cb5df19.ttf → 78e828ec6ecbd03bddbc.ttf} +0 -0
- /package/assets/{2cf962a7cf106b6a528b.eot → 7c69a3e3a7d1a9002baa.eot} +0 -0
- /package/assets/{5552d1898cbb932a2d1e.eot → 8b3fca0e341889987613.eot} +0 -0
- /package/assets/{3c0a7e9df9421a093155.svg → 94f6aff663e04c1ae7cf.svg} +0 -0
- /package/assets/{9a5c35b9a5f9e71c886c.eot → b08a49492cc56e797715.eot} +0 -0
- /package/assets/{12fb60603f784467c90b.woff → c4559e3fc8d2179f4296.woff} +0 -0
- /package/assets/{7168dd884c2fb8a07195.woff → d410c7030991b426e4fe.woff} +0 -0
- /package/assets/{e63d6d7f972354f6da97.eot → e0640ebe5d03c618826c.eot} +0 -0
|
@@ -25,8 +25,8 @@ type ProductHeaderBaseProps = {
|
|
|
25
25
|
* `titleIconSize` or `actionsSize`.
|
|
26
26
|
*/
|
|
27
27
|
size?: ProductHeaderSizeProps;
|
|
28
|
-
/** Main title
|
|
29
|
-
title?:
|
|
28
|
+
/** Main title content shown in the top-left area. */
|
|
29
|
+
title?: ReactNode;
|
|
30
30
|
/** Custom title content rendered in the top-left area instead of default `title`. */
|
|
31
31
|
customTitle?: ReactNode;
|
|
32
32
|
/** Title size. */
|
|
@@ -63,12 +63,14 @@ type ProductHeaderBaseProps = {
|
|
|
63
63
|
* keeps its default top alignment, to preserve existing multi-line layouts. Default is 'top'
|
|
64
64
|
*/
|
|
65
65
|
titlePosition?: 'top' | 'center' | 'bottom';
|
|
66
|
+
/** Accessible label for title when title content is not a string. */
|
|
67
|
+
titleAriaLabel?: string;
|
|
66
68
|
/** Internal link or callback used by the title. */
|
|
67
69
|
linkTo?: string | (() => void);
|
|
68
70
|
/** External link used by the title. */
|
|
69
71
|
externalLink?: string;
|
|
70
|
-
/** Secondary
|
|
71
|
-
subtitle?:
|
|
72
|
+
/** Secondary content shown under the title in the left column. */
|
|
73
|
+
subtitle?: ReactNode;
|
|
72
74
|
/** Custom subtitle content (any ReactNode component) rendered under the title instead of default subtitle. */
|
|
73
75
|
customSubtitle?: ReactNode;
|
|
74
76
|
/** Subtitle text size. */
|
|
@@ -144,6 +146,6 @@ type ProductHeaderBaseProps = {
|
|
|
144
146
|
theme?: string;
|
|
145
147
|
};
|
|
146
148
|
export type ProductHeaderPropTypes = ProductHeaderBaseProps & ProductHeaderInteractionProps;
|
|
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;
|
|
149
|
+
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, titleAriaLabel, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titlePosition, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
|
|
148
150
|
export {};
|
|
149
151
|
//# 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,E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6BAA6B,CAAA;AAE3F,eAAO,MAAM,aAAa,ihCA4DvB,sBAAsB,sBAmUxB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),o=require("react-router-dom");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var n=require("../../Layout/Flex/Flex.js"),i=require("../../Typography/Amount/Amount.js"),a=require("../../Typography/Text/Text.js"),l=require("../../Typography/Title/Title.js");require("../Button/Button.js");var c=require("../Button/ButtonsGroup.js"),u=require("../Avatar/Avatar.js");require("../ButtonTooltip/ButtonTooltip.js"),require('./../../../ext/cuid/index.js'),require("../../../contexts/CardContext.js"),require("../../../contexts/FormGroupContext.js"),require("../../../contexts/ModalContext.js"),require("../../../contexts/Select2Context.js"),require("../../../contexts/TabsContext.js"),require("react-dom"),require("react-slick"),require("../Collapse/Collapse.js");var s=require("../CompactButtons/CompactButtons.js");require("../DataTable/DataTable.js"),require("../../../contexts/ContentTableContext.js"),require("../ContentTable/ContentTableRow.js"),require('./../../../ext/lodash/_baseToString.js'),require('./../../../ext/react-text-mask/dist/reactTextMask.js'),require("../Dropdown/_elements_/DropdownDivider.js"),require("../Dropdown/_elements_/DropdownItem.js"),require("../Dropdown/_elements_/DropdownMenu.js"),require("../Dropdown/_elements_/DropdownInfoText.js"),require("../Dropdown/_elements_/DropdownLoading.js");var d=require("../Link/Link.js");require("../SuperModal/SuperModal.context.js"),require("../../Form/Autocomplete/Autocomplete.js"),require('./../../../ext/react-device-detect/dist/lib.js'),require('./../../../ext/@refinanso/images-to-pdf/ext/jspdf/dist/jspdf.es.min.js'),require('./../../../ext/@bugsnag/cuid/index.esm.js'),require('./../../../ext/jspdf/dist/jspdf.es.min.js'),require("../../Form/FileUpload/_parts_/MergeImageCards.js"),require("../../Form/Select/_elements_/Select2CategorisedOptions.js"),require("../../Form/Select/_elements_/Select2Options.js"),require("../../Form/Slider/Slider.js"),require("../../../contexts/MobilePanelContext.js");var m={top:"c-productHeader__colLeft--positionTop",center:"c-productHeader__colLeft--positionCenter",bottom:"c-productHeader__colLeft--positionBottom"},p={top:void 0,center:"c-productHeader__layout--positionCenter",bottom:"c-productHeader__layout--positionBottom"};exports.ProductHeader=function(_){var x=_.actions,g=_.actionsOtherButton,v=_.actionsSize,b=_.amount,H=_.amountHiddenPrefix,y=_.amountHideIcon,j=void 0!==y&&y,q=_.amountIsBold,
|
|
1
|
+
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),o=require("react-router-dom");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var n=require("../../Layout/Flex/Flex.js"),i=require("../../Typography/Amount/Amount.js"),a=require("../../Typography/Text/Text.js"),l=require("../../Typography/Title/Title.js");require("../Button/Button.js");var c=require("../Button/ButtonsGroup.js"),u=require("../Avatar/Avatar.js");require("../ButtonTooltip/ButtonTooltip.js"),require('./../../../ext/cuid/index.js'),require("../../../contexts/CardContext.js"),require("../../../contexts/FormGroupContext.js"),require("../../../contexts/ModalContext.js"),require("../../../contexts/Select2Context.js"),require("../../../contexts/TabsContext.js"),require("react-dom"),require("react-slick"),require("../Collapse/Collapse.js");var s=require("../CompactButtons/CompactButtons.js");require("../DataTable/DataTable.js"),require("../../../contexts/ContentTableContext.js"),require("../ContentTable/ContentTableRow.js"),require('./../../../ext/lodash/_baseToString.js'),require('./../../../ext/react-text-mask/dist/reactTextMask.js'),require("../Dropdown/_elements_/DropdownDivider.js"),require("../Dropdown/_elements_/DropdownItem.js"),require("../Dropdown/_elements_/DropdownMenu.js"),require("../Dropdown/_elements_/DropdownInfoText.js"),require("../Dropdown/_elements_/DropdownLoading.js");var d=require("../Link/Link.js");require("../SuperModal/SuperModal.context.js"),require("../../Form/Autocomplete/Autocomplete.js"),require('./../../../ext/react-device-detect/dist/lib.js'),require('./../../../ext/@refinanso/images-to-pdf/ext/jspdf/dist/jspdf.es.min.js'),require('./../../../ext/@bugsnag/cuid/index.esm.js'),require('./../../../ext/jspdf/dist/jspdf.es.min.js'),require("../../Form/FileUpload/_parts_/MergeImageCards.js"),require("../../Form/Select/_elements_/Select2CategorisedOptions.js"),require("../../Form/Select/_elements_/Select2Options.js"),require("../../Form/Slider/Slider.js"),require("../../../contexts/MobilePanelContext.js");var m={top:"c-productHeader__colLeft--positionTop",center:"c-productHeader__colLeft--positionCenter",bottom:"c-productHeader__colLeft--positionBottom"},p={top:void 0,center:"c-productHeader__layout--positionCenter",bottom:"c-productHeader__layout--positionBottom"};exports.ProductHeader=function(_){var x=_.actions,g=_.actionsOtherButton,v=_.actionsSize,b=_.amount,H=_.amountHiddenPrefix,y=_.amountHideIcon,j=void 0!==y&&y,q=_.amountIsBold,C=void 0===q||q,f=_.amountIsInline,S=_.amountMaximumFractionDigits,h=void 0===S?2:S,z=_.amountMinimumFractionDigits,k=void 0===z?2:z,I=_.amountSize,E=_.amountType,T=_.amountUnitAfter,L=_.amountUnitBefore,A=_.amountUnitTheme,B=_.belowHeaderContent,D=_.customSubtitle,N=_.customTitle,F=_.externalLink,w=_.imageIcon,M=_.imageIconSize,U=_.isHeaderClickable,P=void 0!==U&&U,V=_.linkTo,O=_.locale,R=_.onHeaderClick,W=_.secondaryAmount,G=_.secondaryAmountHideIcon,K=void 0!==G&&G,J=_.secondaryAmountIsBold,Q=_.secondaryAmountIsInline,X=_.secondaryAmountMaximumFractionDigits,Y=void 0===X?2:X,Z=_.secondaryAmountMinimumFractionDigits,$=void 0===Z?2:Z,ee=_.secondaryAmountSize,te=_.secondaryAmountType,oe=_.secondaryAmountUnitAfter,re=_.secondaryAmountUnitBefore,ne=_.secondaryAmountUnitTheme,ie=_.secondaryLabel,ae=_.secondaryLabelSize,le=_.size,ce=void 0===le?"medium":le,ue=_.subtitle,se=_.subtitleHiddenPrefix,de=_.subtitleSize,me=_.testId,pe=_.theme,_e=_.title,xe=_.titleAriaLabel,ge=_.titleHiddenPrefix,ve=_.titleIconBackgroundColor,be=void 0===ve?"bgBrandDefault":ve,He=_.titleIconBackgroundCustom,ye=_.titleIconColor,je=_.titleIconName,qe=_.titleIconSize,Ce=_.titleIconText,fe=_.titlePosition,Se=void 0===fe?"top":fe,he=_.titleSize,ze=void 0===he?"h2":he,ke=_.titleVisual,Ie=_.titleWithoutMargin,Ee=void 0===Ie||Ie,Te=_.topRightButtons,Le=_.topRightCustomContent,Ae=o.useHistory(),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"}}}(ce),De=null!=ke?ke:Be.titleVisual,Ne=null!=de?de:Be.subtitleSize,Fe=null!=ae?ae:Be.secondaryLabelSize,we=null!=I?I:Be.amountSize,Me=null!=ee?ee:Be.secondaryAmountSize,Ue=null!=qe?qe:Be.titleIconSize,Pe=null!=M?M:Be.titleIconSize,Ve=null!=v?v:Be.actionsSize,Oe="small"===ce&&!I,Re="small"===ce&&!ee,We="xLarge"===ce&&!ee,Ge=t.Children.count(D)>0||t.Children.count(ue)>0,Ke=t.Children.count(w)>0,Je=Ke||(!!je||!!Ce),Qe=t.Children.count(Le)>0,Xe=t.Children.count(Te)>0,Ye=Qe,Ze=!Ye&&Xe,$e=!Ye&&!Ze&&"number"==typeof b,et=Ye||Ze||$e,tt=!!ie||"number"==typeof W,ot=!Ge&&!tt,rt=!!(null==x?void 0:x.length),nt=t.Children.count(B)>0,it=!(Je||Ge||et||tt||rt||nt),at=Boolean(V||F),lt=Boolean(R||at),ct=P&<,ut=t.useCallback((function(){"function"!=typeof V?V&&Ae.push(V):V()}),[Ae,V]),st=t.useCallback((function(){F&&window.open(F,"_blank","noopener,noreferrer")}),[F]),dt=t.useCallback((function(){F?st():V&&ut()}),[st,ut,F,V]),mt=t.useCallback((function(e){"preventDefault"in e&&e.preventDefault(),ut()}),[ut]),pt=t.useCallback((function(){ct&&(R?R():at&&dt())}),[dt,at,ct,R]),_t=t.useCallback((function(e){ct&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),pt()))}),[pt,ct]),xt=function(){var e=N?t.createElement(t.Fragment,null,ge&&t.createElement("span",{className:"u-vHide"},ge),N):t.createElement(l.Title,{isWithoutMargin:Ee,size:ze,theme:r.cx("c-productHeader__title",{"c-productHeader__title--customVisual":!!ke}),visual:De},ge&&t.createElement("span",{className:"u-vHide"},ge),_e);return V||F?t.createElement(d.Link,{allowEventPropagation:!1,ariaLabel:null!=xe?xe:"string"==typeof _e?_e:void 0,"data-testid":me?"productHeader-link-".concat(me):void 0,linkUrl:F||("string"==typeof V?V:"#"),target:F?"_blank":void 0,theme:"c-productHeader__titleLink",onClick:F?void 0:mt},e):e},gt=ct?{onClick:pt,onKeyDown:_t,role:"button",tabIndex:0}:{};if(it)return t.createElement("div",e.__assign({},gt,{className:r.cx("c-productHeader c-productHeader--titleOnly",{"c-productHeader--headerClickable":ct,"c-productHeader--headerClickableWithTitleLink":ct&&at},pe),"data-testid":me}),xt());var vt=t.createElement(t.Fragment,null,t.createElement("div",{className:"c-productHeader__colTitle"},xt()),Ge?t.createElement("div",{className:"c-productHeader__colSubtitle"},D?t.createElement(t.Fragment,null,se&&t.createElement("span",{className:"u-vHide"},se),D):t.createElement(a.Text,{size:Ne,theme:r.cx("c-productHeader__subtitle",{"c-productHeader__subtitle--customSize":!!de}),type:"secondary"},se&&t.createElement("span",{className:"u-vHide"},se),ue)):null);return t.createElement("div",e.__assign({},gt,{className:r.cx("c-productHeader",{"c-productHeader--withTitleIcon":Je,"c-productHeader--small":"small"===ce,"c-productHeader--xLarge":"xLarge"===ce,"c-productHeader--headerClickable":ct,"c-productHeader--headerClickableWithTitleLink":ct&&at},pe),"data-testid":me}),t.createElement("div",{className:r.cx("c-productHeader__layout",ot?p[Se]:void 0)},Je?t.createElement("div",{className:r.cx("c-productHeader__colLeft",m[Se])},t.createElement("div",{className:"c-productHeader__colIcon"},Ke?t.createElement("div",{className:r.cx("c-productHeader__imageIcon","c-productHeader__imageIcon--".concat(Pe))},w):t.createElement(u.Avatar,{backgroundColor:be,backgroundCustom:He,color:ye,iconName:je,size:Ue,text:Ce})),t.createElement("div",{className:"c-productHeader__colLeftInner"},vt)):t.createElement("div",{className:"c-productHeader__colLeft"},vt),et||tt?t.createElement("div",{className:"c-productHeader__colRight"},et?t.createElement("div",null,Ye?Le:null,Ze?t.createElement(c.ButtonsGroup,null,Te):null,$e?t.createElement(t.Fragment,null,H&&t.createElement("span",{className:"u-vHide"},H),t.createElement(i.Amount,{amount:b,hideIcon:j,isBold:C,isInline:f,locale:O,maximumFractionDigits:h,minimumFractionDigits:k,size:we,theme:r.cx("c-productHeader__amount",{"c-productHeader__amount--small":Oe}),type:E,unitAfter:T,unitBefore:L,unitTheme:A})):null):null,tt?t.createElement("div",null,ie?t.createElement(n.Flex,{alignItems:"baseline",direction:"row",justifyContent:"end",theme:"c-productHeader__secondary"},t.createElement(a.Text,{component:"span",size:Fe,theme:r.cx("c-productHeader__secondaryLabel",{"c-productHeader__secondaryLabel--customSize":!!ae})},ie),"number"==typeof W?t.createElement(i.Amount,{amount:W,hideIcon:K,isBold:J,isInline:Q,locale:O,maximumFractionDigits:Y,minimumFractionDigits:$,size:Me,theme:r.cx("c-productHeader__amount",{"c-productHeader__amount--small":Re,"c-productHeader__secondaryAmount--xLarge":We}),type:te,unitAfter:oe,unitBefore:re,unitTheme:r.cx(ne,{"c-productHeader__secondaryAmount--xLarge":We})}):null):null):null):null),rt?t.createElement("div",{className:"c-productHeader__actions"},t.createElement(s.CompactButtons,{buttons:x,otherButton:g,size:Ve})):null,nt?t.createElement("div",{className:"c-productHeader__below"},B):null)};
|
|
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","_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","
|
|
1
|
+
{"version":3,"file":"ProductHeader.js","sources":["../../../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"sourcesContent":[null],"names":["titlePositionClassMap","top","center","bottom","layoutPositionClassMap","undefined","_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","titleAriaLabel","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","React","Children","count","hasImageIcon","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":"85EAyCA,IAAMA,EAAqE,CACzEC,IAAK,wCACLC,OAAQ,2CACRC,OAAQ,4CAEJC,EAAkF,CACtFH,SAAKI,EACLH,OAAQ,0CACRC,OAAQ,iEAkMmB,SAACG,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,qBACAC,EAAenB,EAAAmB,gBACfC,EAAkBpB,EAAAoB,mBAClBC,EAAcrB,EAAAqB,eACdC,EAAWtB,EAAAsB,YACXC,EAAYvB,EAAAuB,aACZC,EAASxB,EAAAwB,UACTC,EAAazB,EAAAyB,cACbC,EAAyB1B,EAAA2B,kBAAzBA,OAAiB,IAAAD,GAAQA,EACzBE,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ACN0D,gBAACgE,EAAMA,OAAA,CACLrJ,OAAQ2B,EACR2H,SAAUzH,EACV0H,OAAQzH,EACR0H,SAAUzH,EACVN,OAAQA,EACRgI,sBAAuBxH,EACvByH,sBAAuBvH,EACvBS,KAAMiC,GACN5B,MAAO6E,EAAAA,GAAG,0BAA2B,CACnC,iCAAkC5C,GAClC,2CAA4CC,KAE9C0D,KAAMxG,GACNsH,UAAWrH,GACXsH,WAAYrH,GACZsH,UAAW/B,EAAEA,GAACtF,GAA0B,CACtC,2CAA4C2C,OAG9C,MAEJ,MAEJ,MAEJ,MAGLe,GACCb,EAAKqC,cAAA,MAAA,CAAAC,UAAU,4BACbtC,EAAAqC,cAACyC,iBAAe,CAAAC,QAASvK,EAASwK,YAAavK,EAAoB8C,KAAMoC,MAEzE,KAEHoB,GAAwBf,EAAKqC,cAAA,MAAA,CAAAC,UAAU,0BAA0B3G,GAA4B,KAGpG"}
|
|
@@ -13,6 +13,8 @@ export interface MobilePanelPropsType extends ComponentPropsType, MobilePanelCon
|
|
|
13
13
|
isSecondary?: boolean;
|
|
14
14
|
/** Choose position of Panel. */
|
|
15
15
|
position?: 'left' | 'right';
|
|
16
|
+
/** Removes top padding from the panel body. */
|
|
17
|
+
withoutTopPadding?: boolean;
|
|
16
18
|
}
|
|
17
|
-
export declare const MobilePanel: ({ children, close, closeOnClick, displayBreakpoint, identification, isFocused, isMain, isOpen, isScrolled, isSecondary, open, position, reference, setIsScrolled, testId, theme, toggle }: MobilePanelPropsType) => JSX.Element;
|
|
19
|
+
export declare const MobilePanel: ({ children, close, closeOnClick, displayBreakpoint, identification, isFocused, isMain, isOpen, isScrolled, isSecondary, open, position, reference, setIsScrolled, testId, theme, toggle, withoutTopPadding }: MobilePanelPropsType) => JSX.Element;
|
|
18
20
|
//# sourceMappingURL=MobilePanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobilePanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/MobilePanel/MobilePanel.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxC,OAA2B,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAsB,MAAM,gBAAgB,CAAA;AAEvE,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB,EAAE,sBAAsB;IACtF,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,qEAAqE;IACrE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,mFAAmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC5B;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"MobilePanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/MobilePanel/MobilePanel.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxC,OAA2B,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAsB,MAAM,gBAAgB,CAAA;AAEvE,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB,EAAE,sBAAsB;IACtF,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,qEAAqE;IACrE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,mFAAmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC3B,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,eAAO,MAAM,WAAW,iNAmBrB,oBAAoB,KAAG,WA8DzB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),i=require("../../../constants/global.js"),
|
|
1
|
+
"use strict";var e=require("react"),i=require("../../../constants/global.js"),l=require("../../../contexts/MobilePanelContext.js");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var o=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var s=require("../../../utils/hooks.js"),t=require('./../../../ext/framer-motion/dist/es/render/dom/motion.js');exports.MobilePanel=function(r){var n=r.children,a=r.close,d=r.closeOnClick,c=r.displayBreakpoint,u=void 0===c?"lg":c,m=r.identification,p=r.isFocused,v=r.isMain,P=r.isOpen,q=r.isScrolled,g=r.isSecondary,j=r.open,b=r.position,f=void 0===b?"left":b,k=r.reference,x=r.setIsScrolled,h=r.testId,N=void 0===h?"MobilePanel":h,S=r.theme,y=r.toggle,E=r.withoutTopPadding,M=void 0!==E&&E,I=s.useWindowWidth(),O="left"===f,C={open:{x:0,transition:{duration:.25,ease:[.4,0,.2,1]}},closed:{x:O?"-100%":"100%",transition:{delay:.2,duration:.25,ease:[.4,0,.2,1]}}},F={close:a,closeOnClick:d,identification:m,isFocused:p,isOpen:P,isScrolled:q,open:j,reference:k,setIsScrolled:x,toggle:y};return e.createElement(l.default.Provider,{value:F},I<i.BREAKPOINTS_VALUES[u]&&e.createElement("div",{ref:k,onClick:d?y:void 0},e.createElement(t.motion.div,{animate:P?"open":"closed",className:o.cx("l-mobilePanel",{"l-mobilePanel--main":v},{"l-mobilePanel--open":P},{"l-mobilePanel--right":!O},{"l-mobilePanel--secondary":g},{"l-mobilePanel--scrolled":q},{"l-mobilePanel--withoutTopPadding":M},S),"data-testid":N,id:m,initial:!1,variants:C},n)))};
|
|
2
2
|
//# sourceMappingURL=MobilePanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobilePanel.js","sources":["../../../../../../src/components/Layout/MobilePanel/MobilePanel.tsx"],"sourcesContent":[null],"names":["_a","children","close","closeOnClick","_b","displayBreakpoint","identification","isFocused","isMain","isOpen","isScrolled","isSecondary","open","_c","position","reference","setIsScrolled","_d","testId","theme","toggle","width","useWindowWidth","isLeft","sidebar","x","transition","duration","ease","closed","delay","mobilePanelContext","React","createElement","MobilePanelContext","Provider","value","BREAKPOINTS_VALUES","ref","onClick","undefined","motion","div","animate","className","cx","id","initial","variants"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MobilePanel.js","sources":["../../../../../../src/components/Layout/MobilePanel/MobilePanel.tsx"],"sourcesContent":[null],"names":["_a","children","close","closeOnClick","_b","displayBreakpoint","identification","isFocused","isMain","isOpen","isScrolled","isSecondary","open","_c","position","reference","setIsScrolled","_d","testId","theme","toggle","_e","withoutTopPadding","width","useWindowWidth","isLeft","sidebar","x","transition","duration","ease","closed","delay","mobilePanelContext","React","createElement","MobilePanelContext","Provider","value","BREAKPOINTS_VALUES","ref","onClick","undefined","motion","div","animate","className","cx","id","initial","variants"],"mappings":"opBAuB2B,SAACA,GAC1B,IAAAC,EAAQD,EAAAC,SACRC,EAAKF,EAAAE,MACLC,EAAYH,EAAAG,aACZC,EAAwBJ,EAAAK,kBAAxBA,OAAiB,IAAAD,EAAG,KAAIA,EACxBE,EAAcN,EAAAM,eACdC,EAASP,EAAAO,UACTC,EAAMR,EAAAQ,OACNC,EAAMT,EAAAS,OACNC,EAAUV,EAAAU,WACVC,EAAWX,EAAAW,YACXC,EAAIZ,EAAAY,KACJC,EAAAb,EAAAc,SAAAA,aAAW,OAAMD,EACjBE,EAASf,EAAAe,UACTC,EAAahB,EAAAgB,cACbC,EAAsBjB,EAAAkB,OAAtBA,OAAM,IAAAD,EAAG,cAAaA,EACtBE,UACAC,EAAMpB,EAAAoB,OACNC,EAAyBrB,EAAAsB,kBAAzBA,OAAiB,IAAAD,GAAQA,EAEnBE,EAAQC,EAAAA,iBAERC,EAAsB,SAAbX,EAETY,EAAU,CACdd,KAAM,CACJe,EAAG,EACHC,WAAY,CACVC,SAAU,IACVC,KAAM,CAAC,GAAK,EAAG,GAAK,KAGxBC,OAAQ,CACNJ,EAAGF,EAAS,QAAU,OACtBG,WAAY,CACVI,MAAO,GACPH,SAAU,IACVC,KAAM,CAAC,GAAK,EAAG,GAAK,MAIpBG,EAAqB,CACzB/B,MAAKA,EACLC,aAAYA,EACZG,eAAcA,EACdC,UAASA,EACTE,OAAMA,EACNC,WAAUA,EACVE,KAAIA,EACJG,UAASA,EACTC,cAAaA,EACbI,OAAMA,GAGR,OACEc,EAAAC,cAACC,EAAAA,QAAmBC,SAAS,CAAAC,MAAOL,GACjCV,EAAQgB,qBAAmBlC,IAC1B6B,EAAKC,cAAA,MAAA,CAAAK,IAAKzB,EAAW0B,QAAStC,EAAeiB,OAASsB,GACpDR,EAAAC,cAACQ,EAAMA,OAACC,IACN,CAAAC,QAASpC,EAAS,OAAS,SAC3BqC,UAAWC,EAAAA,GACT,gBACA,CAAE,sBAAuBvC,GACzB,CAAE,sBAAuBC,GACzB,CAAE,wBAAyBgB,GAC3B,CAAE,2BAA4Bd,GAC9B,CAAE,0BAA2BD,GAC7B,CAAE,mCAAoCY,GACtCH,GACD,cACYD,EACb8B,GAAI1C,EACJ2C,SAAS,EACTC,SAAUxB,GAETzB,IAMb"}
|
|
@@ -18,6 +18,8 @@ export interface MobilePanelHeaderPropsType extends ComponentPropsType {
|
|
|
18
18
|
titleSize?: TitleSize;
|
|
19
19
|
/** Title visual size. Use this for matching title visual with desired design. */
|
|
20
20
|
titleVisual?: TitleSize;
|
|
21
|
+
/** Visually hides the header content while keeping it accessible to screen readers. */
|
|
22
|
+
hideContent?: boolean;
|
|
21
23
|
}
|
|
22
|
-
export declare const MobilePanelHeader: ({ allowEventPropagation, children, closeAria, hasClose, image, testId, title, titleSize, titleVisual }: MobilePanelHeaderPropsType) => JSX.Element;
|
|
24
|
+
export declare const MobilePanelHeader: ({ allowEventPropagation, children, closeAria, hasClose, hideContent, image, testId, title, titleSize, titleVisual }: MobilePanelHeaderPropsType) => JSX.Element;
|
|
23
25
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/MobilePanel/_elements_/Header.tsx"],"names":[],"mappings":"AACA,OAAc,EAAY,SAAS,EAA8B,MAAM,OAAO,CAAA;AAG9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,OAAO,EAAS,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,oCAAoC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,qDAAqD;IACrD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IACjC,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,sLAAsL;IACtL,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,iFAAiF;IACjF,WAAW,CAAC,EAAE,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/MobilePanel/_elements_/Header.tsx"],"names":[],"mappings":"AACA,OAAc,EAAY,SAAS,EAA8B,MAAM,OAAO,CAAA;AAG9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,OAAO,EAAS,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,oCAAoC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,qDAAqD;IACrD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IACjC,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,sLAAsL;IACtL,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,iFAAiF;IACjF,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,uFAAuF;IACvF,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAkBD,eAAO,MAAM,iBAAiB,wHAW3B,0BAA0B,KAAG,WAyC/B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("../../../../contexts/MobilePanelContext.js");require("../../../Typography/Amount/Amount.js"),require('./../../../../ext/tslib/tslib.es6.js'),require("../../../../utils/getDisplayName.js"),require("../../../../utils/getIntegerMask.js"),require("../../../../utils/isFilled.js"),require("../../../../utils/isNotFilled.js"),require("../../../../utils/isNotNilNorEmpty.js"),require('./../../../../ext/diacritic/diacritics.js'),require("../../../../utils/classBinder.js"),require('./../../../../ext/text-mask-addons/dist/textMaskAddons.js');var
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../../../contexts/MobilePanelContext.js");require("../../../Typography/Amount/Amount.js"),require('./../../../../ext/tslib/tslib.es6.js'),require("../../../../utils/getDisplayName.js"),require("../../../../utils/getIntegerMask.js"),require("../../../../utils/isFilled.js"),require("../../../../utils/isNotFilled.js"),require("../../../../utils/isNotNilNorEmpty.js"),require('./../../../../ext/diacritic/diacritics.js'),require("../../../../utils/classBinder.js"),require('./../../../../ext/text-mask-addons/dist/textMaskAddons.js');var o=require("../../../Typography/Title/Title.js"),r=require("../../../Components/Button/Button.js"),s=require("../../../Components/Avatar/Avatar.js");require("../../../Components/ButtonTooltip/ButtonTooltip.js"),require('./../../../../ext/cuid/index.js'),require("../../../../contexts/CardContext.js"),require("../../../../contexts/FormGroupContext.js"),require("../../../../contexts/ModalContext.js"),require("../../../../contexts/Select2Context.js"),require("../../../../contexts/TabsContext.js"),require("react-dom"),require("react-slick"),require("../../../Components/Collapse/Collapse.js"),require('./../../../../ext/lodash/_baseToString.js'),require('./../../../../ext/react-text-mask/dist/reactTextMask.js'),require("../../../Components/Dropdown/_elements_/DropdownDivider.js"),require("../../../Components/Dropdown/_elements_/DropdownItem.js"),require("../../../Components/Dropdown/_elements_/DropdownMenu.js"),require("../../../Components/Dropdown/_elements_/DropdownInfoText.js"),require("../../../Components/Dropdown/_elements_/DropdownLoading.js"),require("../../../Components/DataTable/DataTable.js"),require("../../../../contexts/ContentTableContext.js"),require("../../../Components/ContentTable/ContentTableRow.js"),require("../../../Components/Link/Link.js"),require("react-router-dom"),require("../../../Components/SuperModal/SuperModal.context.js"),require("../../../Form/Autocomplete/Autocomplete.js"),require('./../../../../ext/react-device-detect/dist/lib.js'),require('./../../../../ext/@refinanso/images-to-pdf/ext/jspdf/dist/jspdf.es.min.js'),require('./../../../../ext/@bugsnag/cuid/index.esm.js'),require('./../../../../ext/jspdf/dist/jspdf.es.min.js'),require("../../../Form/FileUpload/_parts_/MergeImageCards.js"),require("../../../Form/Select/_elements_/Select2CategorisedOptions.js"),require("../../../Form/Select/_elements_/Select2Options.js"),require("../../../Form/Slider/Slider.js");var i=require('./../../../../ext/framer-motion/dist/es/render/dom/motion.js'),n={open:{opacity:1,transition:{delay:.2,y:{stiffness:1e3,velocity:-100}}},closed:{opacity:0,transition:{y:{stiffness:1e3}}}};exports.MobilePanelHeader=function(l){var a=l.allowEventPropagation,d=l.children,u=l.closeAria,m=l.hasClose,c=l.hideContent,p=void 0!==c&&c,j=l.image,q=l.testId,_=void 0===q?"MobilePanelHeader":q,C=l.title,v=l.titleSize,x=void 0===v?"h1":v,b=l.titleVisual,g=e.useContext(t.default).close;return e.createElement(i.motion.div,{className:"l-mobilePanel__header","data-testid":_,variants:n,onClick:function(e){a||e.stopPropagation()}},m&&u&&e.createElement(r.Button,{size:"small",testId:"MobilePanelCloseButton",theme:"l-mobilePanel__close",type:"transparent",onClick:g},e.createElement("span",{className:"u-vHide"},u),e.createElement(s.Avatar,{iconName:"close"})),e.createElement("div",{className:"l-mobilePanel__headerContent"},j?e.createElement(e.Fragment,null,e.createElement("div",{className:"l-mobilePanel__headerImage"},j),e.createElement("div",{className:p?"u-vHide":void 0},d)):C?e.createElement(e.Fragment,null,e.createElement(o.Title,{size:x,theme:"l-mobilePanel__headerTitle",visual:b},C),e.createElement("div",{className:p?"u-vHide":void 0},d)):e.createElement("div",{className:p?"u-vHide":void 0},d)))};
|
|
2
2
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sources":["../../../../../../../src/components/Layout/MobilePanel/_elements_/Header.tsx"],"sourcesContent":[null],"names":["content","open","opacity","transition","delay","y","stiffness","velocity","closed","_a","allowEventPropagation","children","closeAria","hasClose","image","
|
|
1
|
+
{"version":3,"file":"Header.js","sources":["../../../../../../../src/components/Layout/MobilePanel/_elements_/Header.tsx"],"sourcesContent":[null],"names":["content","open","opacity","transition","delay","y","stiffness","velocity","closed","_a","allowEventPropagation","children","closeAria","hasClose","_b","hideContent","image","_c","testId","title","_d","titleSize","titleVisual","close","useContext","MobilePanelContext","default","React","createElement","motion","div","className","variants","onClick","event","stopPropagation","Button","size","theme","type","Avatar","iconName","Fragment","undefined","Title","visual"],"mappings":"0mFA8BMA,EAAU,CACdC,KAAM,CACJC,QAAS,EACTC,WAAY,CACVC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"}
|
|
@@ -6,8 +6,10 @@ export interface SecondaryMenuSectionPropsType extends ComponentPropsType {
|
|
|
6
6
|
title: ReactNode;
|
|
7
7
|
/** Semantic heading level. */
|
|
8
8
|
titleSize?: Extract<TitleSize, 'h2' | 'h3' | 'h4'>;
|
|
9
|
+
/** Visually hides the section heading while keeping it accessible to screen readers. */
|
|
10
|
+
hideTitle?: boolean;
|
|
9
11
|
/** Secondary menu items rendered within the section. */
|
|
10
12
|
children?: ReactNode;
|
|
11
13
|
}
|
|
12
|
-
export declare const SecondaryMenuSection: ({ children, testId, theme, title, titleSize }: SecondaryMenuSectionPropsType) => JSX.Element;
|
|
14
|
+
export declare const SecondaryMenuSection: ({ children, hideTitle, testId, theme, title, titleSize }: SecondaryMenuSectionPropsType) => JSX.Element;
|
|
13
15
|
//# sourceMappingURL=SecondaryMenuSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryMenuSection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Navigation/Menu/_elements_/SecondaryMenuSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAS,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAGtD,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB;IACvE,uBAAuB;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAA;IAClD,wDAAwD;IACxD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"SecondaryMenuSection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Navigation/Menu/_elements_/SecondaryMenuSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAS,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAGtD,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB;IACvE,uBAAuB;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAA;IAClD,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,eAAO,MAAM,oBAAoB,6DAO9B,6BAA6B,KAAG,WAclC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react");require("../../../../utils/getDisplayName.js"),require("../../../../utils/getIntegerMask.js"),require("../../../../utils/isFilled.js"),require("../../../../utils/isNotFilled.js"),require("../../../../utils/isNotNilNorEmpty.js"),require('./../../../../ext/diacritic/diacritics.js');var i=require("../../../../utils/classBinder.js");require('./../../../../ext/text-mask-addons/dist/textMaskAddons.js'),require("../../../Typography/Amount/Amount.js"),require('./../../../../ext/tslib/tslib.es6.js');var t=require("../../../Typography/Title/Title.js"),s=require("./MenuList.js");exports.SecondaryMenuSection=function(r){var u=r.children,l=r.
|
|
1
|
+
"use strict";var e=require("react");require("../../../../utils/getDisplayName.js"),require("../../../../utils/getIntegerMask.js"),require("../../../../utils/isFilled.js"),require("../../../../utils/isNotFilled.js"),require("../../../../utils/isNotNilNorEmpty.js"),require('./../../../../ext/diacritic/diacritics.js');var i=require("../../../../utils/classBinder.js");require('./../../../../ext/text-mask-addons/dist/textMaskAddons.js'),require("../../../Typography/Amount/Amount.js"),require('./../../../../ext/tslib/tslib.es6.js');var t=require("../../../Typography/Title/Title.js"),s=require("./MenuList.js");exports.SecondaryMenuSection=function(r){var u=r.children,l=r.hideTitle,n=void 0!==l&&l,d=r.testId,a=void 0===d?"SecondaryMenuSection":d,o=r.theme,c=r.title,m=r.titleSize,q=void 0===m?"h3":m;return e.createElement("div",{className:i.cx("m-menu__section",o),"data-testid":a},e.createElement(t.Title,{isWithoutMargin:!0,size:q,theme:i.cx("m-menu__sectionTitle",{"u-vHide":n}),visual:"h5"},c),e.createElement(s.MenuList,null,u))};
|
|
2
2
|
//# sourceMappingURL=SecondaryMenuSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryMenuSection.js","sources":["../../../../../../../src/components/Navigation/Menu/_elements_/SecondaryMenuSection.tsx"],"sourcesContent":[null],"names":["_a","children","_b","testId","theme","title","
|
|
1
|
+
{"version":3,"file":"SecondaryMenuSection.js","sources":["../../../../../../../src/components/Navigation/Menu/_elements_/SecondaryMenuSection.tsx"],"sourcesContent":[null],"names":["_a","children","_b","hideTitle","_c","testId","theme","title","_d","titleSize","React","createElement","className","cx","Title","isWithoutMargin","size","visual","MenuList"],"mappings":"qpBAiBoC,SAACA,OACnCC,EAAQD,EAAAC,SACRC,EAAAF,EAAAG,UAAAA,OAAY,IAAAD,GAAKA,EACjBE,EAA+BJ,EAAAK,OAA/BA,OAAM,IAAAD,EAAG,uBAAsBA,EAC/BE,EAAKN,EAAAM,MACLC,EAAKP,EAAAO,MACLC,EAAAR,EAAAS,UAAAA,OAAY,IAAAD,EAAA,KAAIA,EACgC,OAChDE,EAAKC,cAAA,MAAA,CAAAC,UAAWC,KAAG,kBAAmBP,GAAM,cAAeD,GACzDK,EAAAC,cAACG,QAAK,CACJC,iBAAe,EACfC,KAAMP,EACNH,MAAOO,EAAEA,GAAC,uBAAwB,CAChC,UAAWV,IAEbc,OAAO,MAENV,GAEHG,EAAAC,cAACO,EAAAA,SAAQ,KAAEjB,GAZmC"}
|
package/cjs/ds-lilly.css
CHANGED
|
@@ -3402,6 +3402,10 @@ body.l-body--modalOpen {
|
|
|
3402
3402
|
padding: var(--paddingBodySecondaryMobilePanel);
|
|
3403
3403
|
}
|
|
3404
3404
|
|
|
3405
|
+
.l-mobilePanel--withoutTopPadding .l-mobilePanel__body {
|
|
3406
|
+
padding-top: 0;
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3405
3409
|
.l-mobilePanel--scrolled .l-mobilePanel__header {
|
|
3406
3410
|
box-shadow: var(--boxShadowXXSmall);
|
|
3407
3411
|
}
|
|
@@ -11770,7 +11774,7 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
11770
11774
|
/* Slider */
|
|
11771
11775
|
.slick-loading .slick-list
|
|
11772
11776
|
{
|
|
11773
|
-
background: #fff url('assets/
|
|
11777
|
+
background: #fff url('assets/4fd20f98af33e1a8b400.gif') center center no-repeat;
|
|
11774
11778
|
}
|
|
11775
11779
|
|
|
11776
11780
|
/* Icons */
|
|
@@ -11780,8 +11784,8 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
11780
11784
|
font-weight: normal;
|
|
11781
11785
|
font-style: normal;
|
|
11782
11786
|
|
|
11783
|
-
src: url('assets/
|
|
11784
|
-
src: url('assets/
|
|
11787
|
+
src: url('assets/e0640ebe5d03c618826c.eot');
|
|
11788
|
+
src: url('assets/8b3fca0e341889987613.eot') format('embedded-opentype'), url('assets/c4559e3fc8d2179f4296.woff') format('woff'), url('assets/2a401b3d549b6bcdf6a9.ttf') format('truetype'), url('assets/6001478257cf5db46bdd.svg') format('svg');
|
|
11785
11789
|
}
|
|
11786
11790
|
/* Arrows */
|
|
11787
11791
|
.slick-prev,
|
|
@@ -25,8 +25,8 @@ type ProductHeaderBaseProps = {
|
|
|
25
25
|
* `titleIconSize` or `actionsSize`.
|
|
26
26
|
*/
|
|
27
27
|
size?: ProductHeaderSizeProps;
|
|
28
|
-
/** Main title
|
|
29
|
-
title?:
|
|
28
|
+
/** Main title content shown in the top-left area. */
|
|
29
|
+
title?: ReactNode;
|
|
30
30
|
/** Custom title content rendered in the top-left area instead of default `title`. */
|
|
31
31
|
customTitle?: ReactNode;
|
|
32
32
|
/** Title size. */
|
|
@@ -63,12 +63,14 @@ type ProductHeaderBaseProps = {
|
|
|
63
63
|
* keeps its default top alignment, to preserve existing multi-line layouts. Default is 'top'
|
|
64
64
|
*/
|
|
65
65
|
titlePosition?: 'top' | 'center' | 'bottom';
|
|
66
|
+
/** Accessible label for title when title content is not a string. */
|
|
67
|
+
titleAriaLabel?: string;
|
|
66
68
|
/** Internal link or callback used by the title. */
|
|
67
69
|
linkTo?: string | (() => void);
|
|
68
70
|
/** External link used by the title. */
|
|
69
71
|
externalLink?: string;
|
|
70
|
-
/** Secondary
|
|
71
|
-
subtitle?:
|
|
72
|
+
/** Secondary content shown under the title in the left column. */
|
|
73
|
+
subtitle?: ReactNode;
|
|
72
74
|
/** Custom subtitle content (any ReactNode component) rendered under the title instead of default subtitle. */
|
|
73
75
|
customSubtitle?: ReactNode;
|
|
74
76
|
/** Subtitle text size. */
|
|
@@ -144,6 +146,6 @@ type ProductHeaderBaseProps = {
|
|
|
144
146
|
theme?: string;
|
|
145
147
|
};
|
|
146
148
|
export type ProductHeaderPropTypes = ProductHeaderBaseProps & ProductHeaderInteractionProps;
|
|
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;
|
|
149
|
+
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, titleAriaLabel, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titlePosition, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
|
|
148
150
|
export {};
|
|
149
151
|
//# 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;AA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../../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,
|
|
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,v=g.actionsSize,b=g.amount,j=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,L=g.amountMinimumFractionDigits,T=void 0===L?2:L,k=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.titleAriaLabel,ye=g.titleHiddenPrefix,ve=g.titleIconBackgroundColor,be=void 0===ve?"bgBrandDefault":ve,je=g.titleIconBackgroundCustom,xe=g.titleIconColor,Se=g.titleIconName,he=g.titleIconSize,ze=g.titleIconText,Ce=g.titlePosition,Ie=void 0===Ce?"top":Ce,Ee=g.titleSize,Le=void 0===Ee?"h2":Ee,Te=g.titleVisual,ke=g.titleWithoutMargin,Ae=void 0===ke||ke,Be=g.topRightButtons,De=g.topRightCustomContent,Ne=i(),Fe=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),we=null!=Te?Te:Fe.titleVisual,Me=null!=pe?pe:Fe.subtitleSize,Ue=null!=ce?ce:Fe.secondaryLabelSize,Pe=null!=k?k:Fe.amountSize,Ve=null!=oe?oe:Fe.secondaryAmountSize,Oe=null!=he?he:Fe.titleIconSize,Re=null!=V?V:Fe.titleIconSize,We=null!=v?v:Fe.actionsSize,Ge="small"===me&&!k,Ke="small"===me&&!oe,qe="xLarge"===me&&!oe,Je=t.Children.count(w)>0||t.Children.count(de)>0,Qe=t.Children.count(P)>0,Xe=Qe||(!!Se||!!ze),Ye=t.Children.count(De)>0,Ze=t.Children.count(Be)>0,$e=Ye,et=!$e&&Ze,tt=!$e&&!et&&"number"==typeof b,ot=$e||et||tt,nt=!!le||"number"==typeof q,it=!Je&&!nt,rt=!!(null==H?void 0:H.length),at=t.Children.count(F)>0,lt=!(Xe||Je||ot||nt||rt||at),ct=Boolean(W||U),st=Boolean(K||ct),mt=R&&st,dt=o((function(){"function"!=typeof W?W&&Ne.push(W):W()}),[Ne,W]),ut=o((function(){U&&window.open(U,"_blank","noopener,noreferrer")}),[U]),pt=o((function(){U?ut():W&&dt()}),[ut,dt,U,W]),_t=o((function(e){"preventDefault"in e&&e.preventDefault(),dt()}),[dt]),ft=o((function(){mt&&(K?K():ct&&pt())}),[pt,ct,mt,K]),gt=o((function(e){mt&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),ft()))}),[ft,mt]),Ht=function(){var e=M?t.createElement(n,null,ye&&t.createElement("span",{className:"u-vHide"},ye),M):t.createElement(s,{isWithoutMargin:Ae,size:Le,theme:r("c-productHeader__title",{"c-productHeader__title--customVisual":!!Te}),visual:we},ye&&t.createElement("span",{className:"u-vHide"},ye),ge);return W||U?t.createElement(p,{allowEventPropagation:!1,ariaLabel:null!=He?He:"string"==typeof ge?ge:void 0,"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:_t},e):e},yt=mt?{onClick:ft,onKeyDown:gt,role:"button",tabIndex:0}:{};if(lt)return t.createElement("div",e({},yt,{className:r("c-productHeader c-productHeader--titleOnly",{"c-productHeader--headerClickable":mt,"c-productHeader--headerClickableWithTitleLink":mt&&ct},fe),"data-testid":_e}),Ht());var vt=t.createElement(t.Fragment,null,t.createElement("div",{className:"c-productHeader__colTitle"},Ht()),Je?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:Me,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({},yt,{className:r("c-productHeader",{"c-productHeader--withTitleIcon":Xe,"c-productHeader--small":"small"===me,"c-productHeader--xLarge":"xLarge"===me,"c-productHeader--headerClickable":mt,"c-productHeader--headerClickableWithTitleLink":mt&&ct},fe),"data-testid":_e}),t.createElement("div",{className:r("c-productHeader__layout",it?f[Ie]:void 0)},Xe?t.createElement("div",{className:r("c-productHeader__colLeft",_[Ie])},t.createElement("div",{className:"c-productHeader__colIcon"},Qe?t.createElement("div",{className:r("c-productHeader__imageIcon","c-productHeader__imageIcon--".concat(Re))},P):t.createElement(d,{backgroundColor:be,backgroundCustom:je,color:xe,iconName:Se,size:Oe,text:ze})),t.createElement("div",{className:"c-productHeader__colLeftInner"},vt)):t.createElement("div",{className:"c-productHeader__colLeft"},vt),ot||nt?t.createElement("div",{className:"c-productHeader__colRight"},ot?t.createElement("div",null,$e?De:null,et?t.createElement(m,null,Be):null,tt?t.createElement(t.Fragment,null,j&&t.createElement("span",{className:"u-vHide"},j),t.createElement(l,{amount:b,hideIcon:S,isBold:z,isInline:C,locale:G,maximumFractionDigits:E,minimumFractionDigits:T,size:Pe,theme:r("c-productHeader__amount",{"c-productHeader__amount--small":Ge}),type:A,unitAfter:B,unitBefore:D,unitTheme:N})):null):null,nt?t.createElement("div",null,le?t.createElement(a,{alignItems:"baseline",direction:"row",justifyContent:"end",theme:"c-productHeader__secondary"},t.createElement(c,{component:"span",size:Ue,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:Ve,theme:r("c-productHeader__amount",{"c-productHeader__amount--small":Ke,"c-productHeader__secondaryAmount--xLarge":qe}),type:ne,unitAfter:ie,unitBefore:re,unitTheme:r(ae,{"c-productHeader__secondaryAmount--xLarge":qe})}):null):null):null):null),rt?t.createElement("div",{className:"c-productHeader__actions"},t.createElement(u,{buttons:H,otherButton:y,size:We})):null,at?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","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","
|
|
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","titleAriaLabel","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","React","Children","count","hasImageIcon","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,2CAkMGG,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,qBACAC,EAAenB,EAAAmB,gBACfC,EAAkBpB,EAAAoB,mBAClBC,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,EAAM7B,EAAA6B,OACNC,EAAa9B,EAAA8B,cACbC,EAAe/B,EAAA+B,gBACfC,EAAAhC,EAAAiC,wBAAAA,OAAuB,IAAAD,GAAQA,EAC/BE,EAAqBlC,EAAAkC,sBACrBC,EAAuBnC,EAAAmC,wBACvBC,EAAApC,EAAAqC,qCAAAA,aAAuC,EAAC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,UAAU,4BACbtC,EAAAqC,cAACyC,EAAe,CAAAC,QAASvK,EAASwK,YAAavK,EAAoB8C,KAAMoC,MAEzE,KAEHoB,GAAwBf,EAAKqC,cAAA,MAAA,CAAAC,UAAU,0BAA0B3G,GAA4B,KAGpG"}
|
|
@@ -13,6 +13,8 @@ export interface MobilePanelPropsType extends ComponentPropsType, MobilePanelCon
|
|
|
13
13
|
isSecondary?: boolean;
|
|
14
14
|
/** Choose position of Panel. */
|
|
15
15
|
position?: 'left' | 'right';
|
|
16
|
+
/** Removes top padding from the panel body. */
|
|
17
|
+
withoutTopPadding?: boolean;
|
|
16
18
|
}
|
|
17
|
-
export declare const MobilePanel: ({ children, close, closeOnClick, displayBreakpoint, identification, isFocused, isMain, isOpen, isScrolled, isSecondary, open, position, reference, setIsScrolled, testId, theme, toggle }: MobilePanelPropsType) => JSX.Element;
|
|
19
|
+
export declare const MobilePanel: ({ children, close, closeOnClick, displayBreakpoint, identification, isFocused, isMain, isOpen, isScrolled, isSecondary, open, position, reference, setIsScrolled, testId, theme, toggle, withoutTopPadding }: MobilePanelPropsType) => JSX.Element;
|
|
18
20
|
//# sourceMappingURL=MobilePanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobilePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/MobilePanel/MobilePanel.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxC,OAA2B,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAsB,MAAM,gBAAgB,CAAA;AAEvE,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB,EAAE,sBAAsB;IACtF,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,qEAAqE;IACrE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,mFAAmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC5B;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"MobilePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/MobilePanel/MobilePanel.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxC,OAA2B,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAsB,MAAM,gBAAgB,CAAA;AAEvE,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB,EAAE,sBAAsB;IACtF,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,qEAAqE;IACrE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,mFAAmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC3B,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,eAAO,MAAM,WAAW,iNAmBrB,oBAAoB,KAAG,WA8DzB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{BREAKPOINTS_VALUES as i}from"../../../constants/global.js";import o from"../../../contexts/MobilePanelContext.js";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 t}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{useWindowWidth as l}from"../../../utils/hooks.js";import{motion as s}from'./../../../ext/framer-motion/dist/es/render/dom/motion.js';var n=function(n){var r=n.children,a=n.close,d=n.closeOnClick,m=n.displayBreakpoint,c=void 0===m?"lg":m,p=n.identification,u=n.isFocused,f=n.isMain,
|
|
1
|
+
import e from"react";import{BREAKPOINTS_VALUES as i}from"../../../constants/global.js";import o from"../../../contexts/MobilePanelContext.js";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 t}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{useWindowWidth as l}from"../../../utils/hooks.js";import{motion as s}from'./../../../ext/framer-motion/dist/es/render/dom/motion.js';var n=function(n){var r=n.children,a=n.close,d=n.closeOnClick,m=n.displayBreakpoint,c=void 0===m?"lg":m,p=n.identification,u=n.isFocused,f=n.isMain,g=n.isOpen,j=n.isScrolled,v=n.isSecondary,P=n.open,b=n.position,k=void 0===b?"left":b,x=n.reference,h=n.setIsScrolled,y=n.testId,N=void 0===y?"MobilePanel":y,M=n.theme,S=n.toggle,C=n.withoutTopPadding,E=void 0!==C&&C,F=l(),I="left"===k,O={open:{x:0,transition:{duration:.25,ease:[.4,0,.2,1]}},closed:{x:I?"-100%":"100%",transition:{delay:.2,duration:.25,ease:[.4,0,.2,1]}}},_={close:a,closeOnClick:d,identification:p,isFocused:u,isOpen:g,isScrolled:j,open:P,reference:x,setIsScrolled:h,toggle:S};return e.createElement(o.Provider,{value:_},F<i[c]&&e.createElement("div",{ref:x,onClick:d?S:void 0},e.createElement(s.div,{animate:g?"open":"closed",className:t("l-mobilePanel",{"l-mobilePanel--main":f},{"l-mobilePanel--open":g},{"l-mobilePanel--right":!I},{"l-mobilePanel--secondary":v},{"l-mobilePanel--scrolled":j},{"l-mobilePanel--withoutTopPadding":E},M),"data-testid":N,id:p,initial:!1,variants:O},r)))};export{n as MobilePanel};
|
|
2
2
|
//# sourceMappingURL=MobilePanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobilePanel.js","sources":["../../../../src/components/Layout/MobilePanel/MobilePanel.tsx"],"sourcesContent":[null],"names":["MobilePanel","_a","children","close","closeOnClick","_b","displayBreakpoint","identification","isFocused","isMain","isOpen","isScrolled","isSecondary","open","_c","position","reference","setIsScrolled","_d","testId","theme","toggle","width","useWindowWidth","isLeft","sidebar","x","transition","duration","ease","closed","delay","mobilePanelContext","React","createElement","MobilePanelContext","Provider","value","BREAKPOINTS_VALUES","ref","onClick","undefined","motion","div","animate","className","cx","id","initial","variants"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MobilePanel.js","sources":["../../../../src/components/Layout/MobilePanel/MobilePanel.tsx"],"sourcesContent":[null],"names":["MobilePanel","_a","children","close","closeOnClick","_b","displayBreakpoint","identification","isFocused","isMain","isOpen","isScrolled","isSecondary","open","_c","position","reference","setIsScrolled","_d","testId","theme","toggle","_e","withoutTopPadding","width","useWindowWidth","isLeft","sidebar","x","transition","duration","ease","closed","delay","mobilePanelContext","React","createElement","MobilePanelContext","Provider","value","BREAKPOINTS_VALUES","ref","onClick","undefined","motion","div","animate","className","cx","id","initial","variants"],"mappings":"spBAuBO,IAAMA,EAAc,SAACC,GAC1B,IAAAC,EAAQD,EAAAC,SACRC,EAAKF,EAAAE,MACLC,EAAYH,EAAAG,aACZC,EAAwBJ,EAAAK,kBAAxBA,OAAiB,IAAAD,EAAG,KAAIA,EACxBE,EAAcN,EAAAM,eACdC,EAASP,EAAAO,UACTC,EAAMR,EAAAQ,OACNC,EAAMT,EAAAS,OACNC,EAAUV,EAAAU,WACVC,EAAWX,EAAAW,YACXC,EAAIZ,EAAAY,KACJC,EAAAb,EAAAc,SAAAA,aAAW,OAAMD,EACjBE,EAASf,EAAAe,UACTC,EAAahB,EAAAgB,cACbC,EAAsBjB,EAAAkB,OAAtBA,OAAM,IAAAD,EAAG,cAAaA,EACtBE,UACAC,EAAMpB,EAAAoB,OACNC,EAAyBrB,EAAAsB,kBAAzBA,OAAiB,IAAAD,GAAQA,EAEnBE,EAAQC,IAERC,EAAsB,SAAbX,EAETY,EAAU,CACdd,KAAM,CACJe,EAAG,EACHC,WAAY,CACVC,SAAU,IACVC,KAAM,CAAC,GAAK,EAAG,GAAK,KAGxBC,OAAQ,CACNJ,EAAGF,EAAS,QAAU,OACtBG,WAAY,CACVI,MAAO,GACPH,SAAU,IACVC,KAAM,CAAC,GAAK,EAAG,GAAK,MAIpBG,EAAqB,CACzB/B,MAAKA,EACLC,aAAYA,EACZG,eAAcA,EACdC,UAASA,EACTE,OAAMA,EACNC,WAAUA,EACVE,KAAIA,EACJG,UAASA,EACTC,cAAaA,EACbI,OAAMA,GAGR,OACEc,EAAAC,cAACC,EAAmBC,SAAS,CAAAC,MAAOL,GACjCV,EAAQgB,EAAmBlC,IAC1B6B,EAAKC,cAAA,MAAA,CAAAK,IAAKzB,EAAW0B,QAAStC,EAAeiB,OAASsB,GACpDR,EAAAC,cAACQ,EAAOC,IACN,CAAAC,QAASpC,EAAS,OAAS,SAC3BqC,UAAWC,EACT,gBACA,CAAE,sBAAuBvC,GACzB,CAAE,sBAAuBC,GACzB,CAAE,wBAAyBgB,GAC3B,CAAE,2BAA4Bd,GAC9B,CAAE,0BAA2BD,GAC7B,CAAE,mCAAoCY,GACtCH,GACD,cACYD,EACb8B,GAAI1C,EACJ2C,SAAS,EACTC,SAAUxB,GAETzB,IAMb"}
|
|
@@ -18,6 +18,8 @@ export interface MobilePanelHeaderPropsType extends ComponentPropsType {
|
|
|
18
18
|
titleSize?: TitleSize;
|
|
19
19
|
/** Title visual size. Use this for matching title visual with desired design. */
|
|
20
20
|
titleVisual?: TitleSize;
|
|
21
|
+
/** Visually hides the header content while keeping it accessible to screen readers. */
|
|
22
|
+
hideContent?: boolean;
|
|
21
23
|
}
|
|
22
|
-
export declare const MobilePanelHeader: ({ allowEventPropagation, children, closeAria, hasClose, image, testId, title, titleSize, titleVisual }: MobilePanelHeaderPropsType) => JSX.Element;
|
|
24
|
+
export declare const MobilePanelHeader: ({ allowEventPropagation, children, closeAria, hasClose, hideContent, image, testId, title, titleSize, titleVisual }: MobilePanelHeaderPropsType) => JSX.Element;
|
|
23
25
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/MobilePanel/_elements_/Header.tsx"],"names":[],"mappings":"AACA,OAAc,EAAY,SAAS,EAA8B,MAAM,OAAO,CAAA;AAG9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,OAAO,EAAS,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,oCAAoC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,qDAAqD;IACrD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IACjC,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,sLAAsL;IACtL,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,iFAAiF;IACjF,WAAW,CAAC,EAAE,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/MobilePanel/_elements_/Header.tsx"],"names":[],"mappings":"AACA,OAAc,EAAY,SAAS,EAA8B,MAAM,OAAO,CAAA;AAG9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,OAAO,EAAS,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,oCAAoC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,qDAAqD;IACrD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IACjC,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,sLAAsL;IACtL,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,iFAAiF;IACjF,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,uFAAuF;IACvF,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAkBD,eAAO,MAAM,iBAAiB,wHAW3B,0BAA0B,KAAG,WAyC/B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useContext as t,Fragment as o}from"react";import s from"../../../../contexts/MobilePanelContext.js";import"../../../Typography/Amount/Amount.js";import'./../../../../ext/tslib/tslib.es6.js';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"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Title as
|
|
1
|
+
import e,{useContext as t,Fragment as o}from"react";import s from"../../../../contexts/MobilePanelContext.js";import"../../../Typography/Amount/Amount.js";import'./../../../../ext/tslib/tslib.es6.js';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"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Title as i}from"../../../Typography/Title/Title.js";import{Button as n}from"../../../Components/Button/Button.js";import{Avatar as m}from"../../../Components/Avatar/Avatar.js";import"../../../Components/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"../../../Components/Collapse/Collapse.js";import'./../../../../ext/lodash/_baseToString.js';import'./../../../../ext/react-text-mask/dist/reactTextMask.js';import"../../../Components/Dropdown/_elements_/DropdownDivider.js";import"../../../Components/Dropdown/_elements_/DropdownItem.js";import"../../../Components/Dropdown/_elements_/DropdownMenu.js";import"../../../Components/Dropdown/_elements_/DropdownInfoText.js";import"../../../Components/Dropdown/_elements_/DropdownLoading.js";import"../../../Components/DataTable/DataTable.js";import"../../../../contexts/ContentTableContext.js";import"../../../Components/ContentTable/ContentTableRow.js";import"../../../Components/Link/Link.js";import"react-router-dom";import"../../../Components/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{motion as r}from'./../../../../ext/framer-motion/dist/es/render/dom/motion.js';var l={open:{opacity:1,transition:{delay:.2,y:{stiffness:1e3,velocity:-100}}},closed:{opacity:0,transition:{y:{stiffness:1e3}}}},a=function(a){var d=a.allowEventPropagation,p=a.children,c=a.closeAria,j=a.hasClose,u=a.hideContent,_=void 0!==u&&u,C=a.image,v=a.testId,x=void 0===v?"MobilePanelHeader":v,f=a.title,b=a.titleSize,g=void 0===b?"h1":b,T=a.titleVisual,D=t(s).close;return e.createElement(r.div,{className:"l-mobilePanel__header","data-testid":x,variants:l,onClick:function(e){d||e.stopPropagation()}},j&&c&&e.createElement(n,{size:"small",testId:"MobilePanelCloseButton",theme:"l-mobilePanel__close",type:"transparent",onClick:D},e.createElement("span",{className:"u-vHide"},c),e.createElement(m,{iconName:"close"})),e.createElement("div",{className:"l-mobilePanel__headerContent"},C?e.createElement(o,null,e.createElement("div",{className:"l-mobilePanel__headerImage"},C),e.createElement("div",{className:_?"u-vHide":void 0},p)):f?e.createElement(o,null,e.createElement(i,{size:g,theme:"l-mobilePanel__headerTitle",visual:T},f),e.createElement("div",{className:_?"u-vHide":void 0},p)):e.createElement("div",{className:_?"u-vHide":void 0},p)))};export{a as MobilePanelHeader};
|
|
2
2
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sources":["../../../../../src/components/Layout/MobilePanel/_elements_/Header.tsx"],"sourcesContent":[null],"names":["content","open","opacity","transition","delay","y","stiffness","velocity","closed","MobilePanelHeader","_a","allowEventPropagation","children","closeAria","hasClose","image","
|
|
1
|
+
{"version":3,"file":"Header.js","sources":["../../../../../src/components/Layout/MobilePanel/_elements_/Header.tsx"],"sourcesContent":[null],"names":["content","open","opacity","transition","delay","y","stiffness","velocity","closed","MobilePanelHeader","_a","allowEventPropagation","children","closeAria","hasClose","_b","hideContent","image","_c","testId","title","_d","titleSize","titleVisual","close","useContext","MobilePanelContext","React","createElement","motion","div","className","variants","onClick","event","stopPropagation","Button","size","theme","type","Avatar","iconName","Fragment","undefined","Title","visual"],"mappings":"qiFA8BA,IAAMA,EAAU,CACdC,KAAM,CACJC,QAAS,EACTC,WAAY,CACVC,MAAO,GACPC,EAAG,CAAEC,UAAW,IA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
title: ReactNode;
|
|
7
7
|
/** Semantic heading level. */
|
|
8
8
|
titleSize?: Extract<TitleSize, 'h2' | 'h3' | 'h4'>;
|
|
9
|
+
/** Visually hides the section heading while keeping it accessible to screen readers. */
|
|
10
|
+
hideTitle?: boolean;
|
|
9
11
|
/** Secondary menu items rendered within the section. */
|
|
10
12
|
children?: ReactNode;
|
|
11
13
|
}
|
|
12
|
-
export declare const SecondaryMenuSection: ({ children, testId, theme, title, titleSize }: SecondaryMenuSectionPropsType) => JSX.Element;
|
|
14
|
+
export declare const SecondaryMenuSection: ({ children, hideTitle, testId, theme, title, titleSize }: SecondaryMenuSectionPropsType) => JSX.Element;
|
|
13
15
|
//# sourceMappingURL=SecondaryMenuSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryMenuSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/Navigation/Menu/_elements_/SecondaryMenuSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAS,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAGtD,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB;IACvE,uBAAuB;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAA;IAClD,wDAAwD;IACxD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"SecondaryMenuSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/Navigation/Menu/_elements_/SecondaryMenuSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAS,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAGtD,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB;IACvE,uBAAuB;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAA;IAClD,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,eAAO,MAAM,oBAAoB,6DAO9B,6BAA6B,KAAG,WAclC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";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 i}from"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import"../../../Typography/Amount/Amount.js";import'./../../../../ext/tslib/tslib.es6.js';import{Title as e}from"../../../Typography/Title/Title.js";import{MenuList as s}from"./MenuList.js";var o=function(o){var r=o.children,m=o.
|
|
1
|
+
import t from"react";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 i}from"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import"../../../Typography/Amount/Amount.js";import'./../../../../ext/tslib/tslib.es6.js';import{Title as e}from"../../../Typography/Title/Title.js";import{MenuList as s}from"./MenuList.js";var o=function(o){var r=o.children,m=o.hideTitle,l=void 0!==m&&m,d=o.testId,n=void 0===d?"SecondaryMenuSection":d,a=o.theme,u=o.title,p=o.titleSize,c=void 0===p?"h3":p;return t.createElement("div",{className:i("m-menu__section",a),"data-testid":n},t.createElement(e,{isWithoutMargin:!0,size:c,theme:i("m-menu__sectionTitle",{"u-vHide":l}),visual:"h5"},u),t.createElement(s,null,r))};export{o as SecondaryMenuSection};
|
|
2
2
|
//# sourceMappingURL=SecondaryMenuSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryMenuSection.js","sources":["../../../../../src/components/Navigation/Menu/_elements_/SecondaryMenuSection.tsx"],"sourcesContent":[null],"names":["SecondaryMenuSection","_a","children","_b","testId","theme","title","
|
|
1
|
+
{"version":3,"file":"SecondaryMenuSection.js","sources":["../../../../../src/components/Navigation/Menu/_elements_/SecondaryMenuSection.tsx"],"sourcesContent":[null],"names":["SecondaryMenuSection","_a","children","_b","hideTitle","_c","testId","theme","title","_d","titleSize","React","createElement","className","cx","Title","isWithoutMargin","size","visual","MenuList"],"mappings":"umBAiBO,IAAMA,EAAuB,SAACC,OACnCC,EAAQD,EAAAC,SACRC,EAAAF,EAAAG,UAAAA,OAAY,IAAAD,GAAKA,EACjBE,EAA+BJ,EAAAK,OAA/BA,OAAM,IAAAD,EAAG,uBAAsBA,EAC/BE,EAAKN,EAAAM,MACLC,EAAKP,EAAAO,MACLC,EAAAR,EAAAS,UAAAA,OAAY,IAAAD,EAAA,KAAIA,EACgC,OAChDE,EAAKC,cAAA,MAAA,CAAAC,UAAWC,EAAG,kBAAmBP,GAAM,cAAeD,GACzDK,EAAAC,cAACG,EAAK,CACJC,iBAAe,EACfC,KAAMP,EACNH,MAAOO,EAAG,uBAAwB,CAChC,UAAWV,IAEbc,OAAO,MAENV,GAEHG,EAAAC,cAACO,EAAQ,KAAEjB,GAZmC"}
|
package/ds-lilly.css
CHANGED
|
@@ -3402,6 +3402,10 @@ body.l-body--modalOpen {
|
|
|
3402
3402
|
padding: var(--paddingBodySecondaryMobilePanel);
|
|
3403
3403
|
}
|
|
3404
3404
|
|
|
3405
|
+
.l-mobilePanel--withoutTopPadding .l-mobilePanel__body {
|
|
3406
|
+
padding-top: 0;
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3405
3409
|
.l-mobilePanel--scrolled .l-mobilePanel__header {
|
|
3406
3410
|
box-shadow: var(--boxShadowXXSmall);
|
|
3407
3411
|
}
|
|
@@ -11770,7 +11774,7 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
11770
11774
|
/* Slider */
|
|
11771
11775
|
.slick-loading .slick-list
|
|
11772
11776
|
{
|
|
11773
|
-
background: #fff url('assets/
|
|
11777
|
+
background: #fff url('assets/28c55589e6cb33dbe832.gif') center center no-repeat;
|
|
11774
11778
|
}
|
|
11775
11779
|
|
|
11776
11780
|
/* Icons */
|
|
@@ -11780,8 +11784,8 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
11780
11784
|
font-weight: normal;
|
|
11781
11785
|
font-style: normal;
|
|
11782
11786
|
|
|
11783
|
-
src: url('assets/
|
|
11784
|
-
src: url('assets/
|
|
11787
|
+
src: url('assets/7c69a3e3a7d1a9002baa.eot');
|
|
11788
|
+
src: url('assets/b08a49492cc56e797715.eot') format('embedded-opentype'), url('assets/d410c7030991b426e4fe.woff') format('woff'), url('assets/78e828ec6ecbd03bddbc.ttf') format('truetype'), url('assets/94f6aff663e04c1ae7cf.svg') format('svg');
|
|
11785
11789
|
}
|
|
11786
11790
|
/* Arrows */
|
|
11787
11791
|
.slick-prev,
|
package/ext/raf/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{getDefaultExportFromCjs as e,commonjsGlobal as n}from"../../_virtual/_commonjsHelpers.js";import{__module as t}from"../../_virtual/
|
|
1
|
+
import{getDefaultExportFromCjs as e,commonjsGlobal as n}from"../../_virtual/_commonjsHelpers.js";import{__module as t}from"../../_virtual/index5.js";import{p as a}from"../performance-now/lib/performance-now.js";for(var o=a,r="undefined"==typeof window?n:window,l=["moz","webkit"],c="AnimationFrame",i=r["request"+c],u=r["cancel"+c]||r["cancelRequest"+c],f=0;!i&&f<l.length;f++)i=r[l[f]+"Request"+c],u=r[l[f]+"Cancel"+c]||r[l[f]+"CancelRequest"+c];if(!i||!u){var m=0,s=0,p=[],d=1e3/60;i=function(e){if(0===p.length){var n=o(),t=Math.max(0,d-(n-m));m=t+n,setTimeout((function(){var e=p.slice(0);p.length=0;for(var n=0;n<e.length;n++)if(!e[n].cancelled)try{e[n].callback(m)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(t))}return p.push({handle:++s,callback:e,cancelled:!1}),s},u=function(e){for(var n=0;n<p.length;n++)p[n].handle===e&&(p[n].cancelled=!0)}}t.exports=function(e){return i.call(r,e)},t.exports.cancel=function(){u.apply(r,arguments)},t.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=i,e.cancelAnimationFrame=u};var h=e(t.exports);export{h as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/ext/react-is/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as r}from"../../_virtual/
|
|
1
|
+
import{__module as r}from"../../_virtual/index6.js";import{__require as e}from"./cjs/react-is.production.min.js";import{__require as o}from"./cjs/react-is.development.js";var s;function t(){return s||(s=1,"production"===process.env.NODE_ENV?r.exports=e():r.exports=o()),r.exports}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|