@mmb-digital/ds-lilly 1.0.133 → 1.0.135
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 +11 -1
- package/cjs/components/Components/ProductHeader/ProductHeader.d.ts.map +1 -1
- package/cjs/components/Components/ProductHeader/ProductHeader.js +1 -1
- package/cjs/components/Components/ProductHeader/ProductHeader.js.map +1 -1
- package/cjs/ds-lilly.css +26 -4
- package/components/Components/ProductHeader/ProductHeader.d.ts +11 -1
- package/components/Components/ProductHeader/ProductHeader.d.ts.map +1 -1
- package/components/Components/ProductHeader/ProductHeader.js +1 -1
- package/components/Components/ProductHeader/ProductHeader.js.map +1 -1
- package/ds-lilly.css +26 -4
- package/package.json +1 -1
- /package/assets/{1f891eba1acff3750505.eot → 16c97ea333890919dc4c.eot} +0 -0
- /package/assets/{d7a8e0c1a5ca540d1ca1.ttf → 21f6e0e0f63ad22ef7ac.ttf} +0 -0
- /package/assets/{65a2d3eb6e40faf592ba.gif → 3add6024cec1a36876d8.gif} +0 -0
- /package/assets/{3adc75f26dbf60bb9d31.svg → 4e9565604802ee3295f9.svg} +0 -0
- /package/assets/{f86ba397725387239428.ttf → 94c70b251653e096918a.ttf} +0 -0
- /package/assets/{e4bedbbb079597366644.woff → 9c122000980c1250bf88.woff} +0 -0
- /package/assets/{6d5c8bcb65cb688b693e.eot → a123e92021116d422840.eot} +0 -0
- /package/assets/{fbc9c0bc46d219eadf3b.woff → b37b7e06825a8103c8cd.woff} +0 -0
- /package/assets/{7435dc3f057d6f18f76a.eot → bb9447df7939cb657519.eot} +0 -0
- /package/assets/{75da87a07daa6ababa9a.eot → df537df7b92686e73fad.eot} +0 -0
- /package/assets/{f7fab978fd72569e7c6c.svg → f0e1216b2a58c5978f35.svg} +0 -0
- /package/assets/{dfa0dd5e16461b6c78da.gif → ffe01a12956cfbce7191.gif} +0 -0
|
@@ -49,6 +49,16 @@ type ProductHeaderBaseProps = {
|
|
|
49
49
|
titleIconSize?: AvatarSizeType;
|
|
50
50
|
/** Visually hidden prefix rendered before the title (for screen readers). */
|
|
51
51
|
titleHiddenPrefix?: ReactElement;
|
|
52
|
+
/**
|
|
53
|
+
* Vertical alignment of the title icon relative to the title/content next to it.
|
|
54
|
+
* - Has a visible effect only when `titleIconName`/`titleIconText` is set.
|
|
55
|
+
* - If the header has a single line of content on BOTH sides (no `subtitle`/`customSubtitle` AND no
|
|
56
|
+
* `secondaryLabel`/`secondaryAmount`), it also aligns the whole row — the icon+title block together with
|
|
57
|
+
* `topRightButtons` / `topRightCustomContent` / `amount` on the right.
|
|
58
|
+
* - If a subtitle or secondary/bottom-right content is present, this prop has no effect and the header
|
|
59
|
+
* keeps its default top alignment, to preserve existing multi-line layouts. Default is 'top'
|
|
60
|
+
*/
|
|
61
|
+
titlePosition?: 'top' | 'center' | 'bottom';
|
|
52
62
|
/** Internal link or callback used by the title. */
|
|
53
63
|
linkTo?: string | (() => void);
|
|
54
64
|
/** External link used by the title. */
|
|
@@ -130,6 +140,6 @@ type ProductHeaderBaseProps = {
|
|
|
130
140
|
theme?: string;
|
|
131
141
|
};
|
|
132
142
|
export type ProductHeaderPropTypes = ProductHeaderBaseProps & ProductHeaderInteractionProps;
|
|
133
|
-
export declare const ProductHeader: ({ actions, actionsOtherButton, actionsSize, amount, amountHiddenPrefix, amountHideIcon, amountIsBold, amountIsInline, amountMaximumFractionDigits, amountMinimumFractionDigits, amountSize, amountType, amountUnitAfter, amountUnitBefore, amountUnitTheme, belowHeaderContent, customSubtitle, customTitle, externalLink, isHeaderClickable, linkTo, locale, onHeaderClick, secondaryAmount, secondaryAmountHideIcon, secondaryAmountIsBold, secondaryAmountIsInline, secondaryAmountMaximumFractionDigits, secondaryAmountMinimumFractionDigits, secondaryAmountSize, secondaryAmountType, secondaryAmountUnitAfter, secondaryAmountUnitBefore, secondaryAmountUnitTheme, secondaryLabel, secondaryLabelSize, size, subtitle, subtitleHiddenPrefix, subtitleSize, testId, theme, title, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
|
|
143
|
+
export declare const ProductHeader: ({ actions, actionsOtherButton, actionsSize, amount, amountHiddenPrefix, amountHideIcon, amountIsBold, amountIsInline, amountMaximumFractionDigits, amountMinimumFractionDigits, amountSize, amountType, amountUnitAfter, amountUnitBefore, amountUnitTheme, belowHeaderContent, customSubtitle, customTitle, externalLink, isHeaderClickable, linkTo, locale, onHeaderClick, secondaryAmount, secondaryAmountHideIcon, secondaryAmountIsBold, secondaryAmountIsInline, secondaryAmountMaximumFractionDigits, secondaryAmountMinimumFractionDigits, secondaryAmountSize, secondaryAmountType, secondaryAmountUnitAfter, secondaryAmountUnitBefore, secondaryAmountUnitTheme, secondaryLabel, secondaryLabelSize, size, subtitle, subtitleHiddenPrefix, subtitleSize, testId, theme, title, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titlePosition, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
|
|
134
144
|
export {};
|
|
135
145
|
//# 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,
|
|
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,EA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f,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GAAG,6BAA6B,CAAA;AAE3F,eAAO,MAAM,aAAa,u+BAyDvB,sBAAsB,sBAwTxB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),
|
|
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 s=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 c=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,v=_.actionsOtherButton,b=_.actionsSize,g=_.amount,y=_.amountHiddenPrefix,H=_.amountHideIcon,j=void 0!==H&&H,q=_.amountIsBold,f=void 0===q||q,C=_.amountIsInline,S=_.amountMaximumFractionDigits,h=void 0===S?2:S,z=_.amountMinimumFractionDigits,k=void 0===z?2:z,E=_.amountSize,T=_.amountType,I=_.amountUnitAfter,L=_.amountUnitBefore,A=_.amountUnitTheme,B=_.belowHeaderContent,D=_.customSubtitle,F=_.customTitle,N=_.externalLink,w=_.isHeaderClickable,M=void 0!==w&&w,U=_.linkTo,P=_.locale,V=_.onHeaderClick,O=_.secondaryAmount,R=_.secondaryAmountHideIcon,W=void 0!==R&&R,G=_.secondaryAmountIsBold,K=_.secondaryAmountIsInline,J=_.secondaryAmountMaximumFractionDigits,Q=void 0===J?2:J,X=_.secondaryAmountMinimumFractionDigits,Y=void 0===X?2:X,Z=_.secondaryAmountSize,$=_.secondaryAmountType,ee=_.secondaryAmountUnitAfter,te=_.secondaryAmountUnitBefore,oe=_.secondaryAmountUnitTheme,re=_.secondaryLabel,ne=_.secondaryLabelSize,ie=_.size,ae=void 0===ie?"medium":ie,le=_.subtitle,se=_.subtitleHiddenPrefix,ue=_.subtitleSize,ce=_.testId,de=_.theme,me=_.title,pe=_.titleHiddenPrefix,_e=_.titleIconBackgroundColor,xe=void 0===_e?"bgBrandDefault":_e,ve=_.titleIconBackgroundCustom,be=_.titleIconColor,ge=_.titleIconName,ye=_.titleIconSize,He=_.titleIconText,je=_.titlePosition,qe=void 0===je?"top":je,fe=_.titleSize,Ce=void 0===fe?"h2":fe,Se=_.titleVisual,he=_.titleWithoutMargin,ze=void 0===he||he,ke=_.topRightButtons,Ee=_.topRightCustomContent,Te=o.useHistory(),Ie=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"}}}(ae),Le=null!=Se?Se:Ie.titleVisual,Ae=null!=ue?ue:Ie.subtitleSize,Be=null!=ne?ne:Ie.secondaryLabelSize,De=null!=E?E:Ie.amountSize,Fe=null!=Z?Z:Ie.secondaryAmountSize,Ne=null!=ye?ye:Ie.titleIconSize,we=null!=b?b:Ie.actionsSize,Me="small"===ae&&!E,Ue="small"===ae&&!Z,Pe="xLarge"===ae&&!Z,Ve=!!D||"string"==typeof le,Oe=!!ge||!!He,Re=t.Children.count(Ee)>0,We=t.Children.count(ke)>0,Ge=Re,Ke=!Ge&&We,Je=!Ge&&!Ke&&"number"==typeof g,Qe=Ge||Ke||Je,Xe=!!re||"number"==typeof O,Ye=!Ve&&!Xe,Ze=!!(null==x?void 0:x.length),$e=t.Children.count(B)>0,et=!(Oe||Ve||Qe||Xe||Ze||$e),tt=Boolean(U||N),ot=Boolean(V||tt),rt=M&&ot,nt=t.useCallback((function(){"function"!=typeof U?U&&Te.push(U):U()}),[Te,U]),it=t.useCallback((function(){N&&window.open(N,"_blank","noopener,noreferrer")}),[N]),at=t.useCallback((function(){N?it():U&&nt()}),[it,nt,N,U]),lt=t.useCallback((function(e){"preventDefault"in e&&e.preventDefault(),nt()}),[nt]),st=t.useCallback((function(){rt&&(V?V():tt&&at())}),[at,tt,rt,V]),ut=t.useCallback((function(e){rt&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),st()))}),[st,rt]),ct=function(){var e=F?t.createElement(t.Fragment,null,pe&&t.createElement("span",{className:"u-vHide"},pe),F):t.createElement(l.Title,{isWithoutMargin:ze,size:Ce,theme:r.cx("c-productHeader__title",{"c-productHeader__title--customVisual":!!Se}),visual:Le},pe&&t.createElement("span",{className:"u-vHide"},pe),me);return U||N?t.createElement(d.Link,{allowEventPropagation:!1,ariaLabel:me,"data-testid":ce?"productHeader-link-".concat(ce):void 0,linkUrl:N||("string"==typeof U?U:"#"),target:N?"_blank":void 0,theme:"c-productHeader__titleLink",onClick:N?void 0:lt},e):e},dt=rt?{onClick:st,onKeyDown:ut,role:"button",tabIndex:0}:{};if(et)return t.createElement("div",e.__assign({},dt,{className:r.cx("c-productHeader c-productHeader--titleOnly",{"c-productHeader--headerClickable":rt,"c-productHeader--headerClickableWithTitleLink":rt&&tt},de),"data-testid":ce}),ct());var mt=t.createElement(t.Fragment,null,t.createElement("div",{className:"c-productHeader__colTitle"},ct()),Ve?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:Ae,theme:r.cx("c-productHeader__subtitle",{"c-productHeader__subtitle--customSize":!!ue}),type:"secondary"},se&&t.createElement("span",{className:"u-vHide"},se),le)):null);return t.createElement("div",e.__assign({},dt,{className:r.cx("c-productHeader",{"c-productHeader--withTitleIcon":Oe,"c-productHeader--small":"small"===ae,"c-productHeader--xLarge":"xLarge"===ae,"c-productHeader--headerClickable":rt,"c-productHeader--headerClickableWithTitleLink":rt&&tt},de),"data-testid":ce}),t.createElement("div",{className:r.cx("c-productHeader__layout",Ye?p[qe]:void 0)},Oe?t.createElement("div",{className:r.cx("c-productHeader__colLeft",m[qe])},t.createElement("div",{className:"c-productHeader__colIcon"},t.createElement(u.Avatar,{backgroundColor:xe,backgroundCustom:ve,color:be,iconName:ge,size:Ne,text:He})),t.createElement("div",{className:"c-productHeader__colLeftInner"},mt)):t.createElement("div",{className:"c-productHeader__colLeft"},mt),Qe||Xe?t.createElement("div",{className:"c-productHeader__colRight"},Qe?t.createElement("div",null,Ge?Ee:null,Ke?t.createElement(s.ButtonsGroup,null,ke):null,Je?t.createElement(t.Fragment,null,y&&t.createElement("span",{className:"u-vHide"},y),t.createElement(i.Amount,{amount:g,hideIcon:j,isBold:f,isInline:C,locale:P,maximumFractionDigits:h,minimumFractionDigits:k,size:De,theme:r.cx("c-productHeader__amount",{"c-productHeader__amount--small":Me}),type:T,unitAfter:I,unitBefore:L,unitTheme:A})):null):null,Xe?t.createElement("div",null,re?t.createElement(n.Flex,{alignItems:"baseline",direction:"row",justifyContent:"end",theme:"c-productHeader__secondary"},t.createElement(a.Text,{component:"span",size:Be,theme:r.cx("c-productHeader__secondaryLabel",{"c-productHeader__secondaryLabel--customSize":!!ne})},re),"number"==typeof O?t.createElement(i.Amount,{amount:O,hideIcon:W,isBold:G,isInline:K,locale:P,maximumFractionDigits:Q,minimumFractionDigits:Y,size:Fe,theme:r.cx("c-productHeader__amount",{"c-productHeader__amount--small":Ue,"c-productHeader__secondaryAmount--xLarge":Pe}),type:$,unitAfter:ee,unitBefore:te,unitTheme:r.cx(oe,{"c-productHeader__secondaryAmount--xLarge":Pe})}):null):null):null):null),Ze?t.createElement("div",{className:"c-productHeader__actions"},t.createElement(c.CompactButtons,{buttons:x,otherButton:v,size:we})):null,$e?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":["_a","actions","actionsOtherButton","actionsSize","amount","amountHiddenPrefix","_b","amountHideIcon","_c","amountIsBold","amountIsInline","_d","amountMaximumFractionDigits","_e","amountMinimumFractionDigits","amountSize","amountType","amountUnitAfter","amountUnitBefore","amountUnitTheme","belowHeaderContent","customSubtitle","customTitle","externalLink","_f","isHeaderClickable","linkTo","locale","onHeaderClick","secondaryAmount","_g","secondaryAmountHideIcon","secondaryAmountIsBold","secondaryAmountIsInline","_h","secondaryAmountMaximumFractionDigits","_j","secondaryAmountMinimumFractionDigits","secondaryAmountSize","secondaryAmountType","secondaryAmountUnitAfter","secondaryAmountUnitBefore","secondaryAmountUnitTheme","secondaryLabel","secondaryLabelSize","_k","size","subtitle","subtitleHiddenPrefix","subtitleSize","testId","theme","title","titleHiddenPrefix","_l","titleIconBackgroundColor","titleIconBackgroundCustom","titleIconColor","titleIconName","titleIconSize","titleIconText","_m","titleSize","titleVisual","
|
|
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","_f","isHeaderClickable","linkTo","locale","onHeaderClick","secondaryAmount","_g","secondaryAmountHideIcon","secondaryAmountIsBold","secondaryAmountIsInline","_h","secondaryAmountMaximumFractionDigits","_j","secondaryAmountMinimumFractionDigits","secondaryAmountSize","secondaryAmountType","secondaryAmountUnitAfter","secondaryAmountUnitBefore","secondaryAmountUnitTheme","secondaryLabel","secondaryLabelSize","_k","size","subtitle","subtitleHiddenPrefix","subtitleSize","testId","theme","title","titleHiddenPrefix","_l","titleIconBackgroundColor","titleIconBackgroundCustom","titleIconColor","titleIconName","titleIconSize","titleIconText","_m","titlePosition","_o","titleSize","titleVisual","_p","titleWithoutMargin","topRightButtons","topRightCustomContent","history","useHistory","defaultSizes","getDefaultSizesByHeaderSize","resolvedTitleVisual","resolvedSubtitleSize","resolvedSecondaryLabelSize","resolvedAmountSize","resolvedSecondaryAmountSize","resolvedTitleIconSize","resolvedActionsSize","shouldUseSmallAmountTheme","shouldUseSmallSecondaryAmountTheme","shouldUseXLargeSecondaryAmountTheme","hasSubtitle","hasIcon","hasTopRightCustomContent","React","Children","count","hasTopRightButtons","showTopRightCustomContent","showTopRightButtons","showAmount","hasTopRight","hasBottomRight","isSingleLineRow","hasActions","length","hasBelowHeaderContent","isTitleOnly","hasTitleLink","Boolean","hasHeaderAction","isWholeHeaderClickable","executeInternalNavigation","useCallback","push","executeExternalNavigation","window","open","executeHeaderLinkAction","onInternalTitleClick","e","preventDefault","handleWholeHeaderClick","handleWholeHeaderKeyDown","key","renderTitle","titleInner","Fragment","createElement","className","Title","isWithoutMargin","cx","visual","Link","allowEventPropagation","ariaLabel","concat","linkUrl","target","onClick","wrapperInteractiveProps","onKeyDown","role","tabIndex","leftContent","Text","type","Avatar","backgroundColor","backgroundCustom","color","iconName","text","ButtonsGroup","Amount","hideIcon","isBold","isInline","maximumFractionDigits","minimumFractionDigits","unitAfter","unitBefore","unitTheme","Flex","alignItems","direction","justifyContent","component","CompactButtons","buttons","otherButton"],"mappings":"85EAyCA,IAAMA,EAAqE,CACzEC,IAAK,wCACLC,OAAQ,2CACRC,OAAQ,4CAEJC,EAAkF,CACtFH,SAAKI,EACLH,OAAQ,0CACRC,OAAQ,iEA4LmB,SAACG,OAC5BC,EAAOD,EAAAC,QACPC,EAAkBF,EAAAE,mBAClBC,EAAWH,EAAAG,YACXC,EAAMJ,EAAAI,OACNC,EAAkBL,EAAAK,mBAClBC,EAAsBN,EAAAO,eAAtBA,OAAc,IAAAD,GAAQA,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ACHsB,UAAU,OACVnH,KAAM8B,GACNzB,MAAO0E,EAAEA,GAAC,kCAAmC,CAC3C,gDAAiDjF,MAGlDD,IAGyB,iBAApBd,EACN0D,gBAAC6D,EAAMA,OAAA,CACLhJ,OAAQyB,EACRwH,SAAUtH,EACVuH,OAAQtH,EACRuH,SAAUtH,EACVN,OAAQA,EACR6H,sBAAuBrH,EACvBsH,sBAAuBpH,EACvBS,KAAMgC,GACN3B,MAAO0E,EAAAA,GAAG,0BAA2B,CACnC,iCAAkC3C,GAClC,2CAA4CC,KAE9CyD,KAAMrG,EACNmH,UAAWlH,GACXmH,WAAYlH,GACZmH,UAAW/B,EAAEA,GAACnF,GAA0B,CACtC,2CAA4CyC,OAG9C,MAEJ,MAEJ,MAEJ,MAGLc,GACCV,EAAKkC,cAAA,MAAA,CAAAC,UAAU,4BACbnC,EAAAkC,cAACyC,iBAAe,CAAAC,QAASlK,EAASmK,YAAalK,EAAoB4C,KAAMkC,MAEzE,KAEHmB,GAAwBZ,EAAKkC,cAAA,MAAA,CAAAC,UAAU,0BAA0BtG,GAA4B,KAGpG"}
|
package/cjs/ds-lilly.css
CHANGED
|
@@ -5264,7 +5264,8 @@ body.l-body--modalOpen {
|
|
|
5264
5264
|
flex-direction: column;
|
|
5265
5265
|
max-height: var(--maxHeightDropdown);
|
|
5266
5266
|
padding: var(--spaceXSmall) 0;
|
|
5267
|
-
|
|
5267
|
+
text-align: left;
|
|
5268
|
+
z-index: 4610;
|
|
5268
5269
|
}
|
|
5269
5270
|
.c-dropdown--fullWidth {
|
|
5270
5271
|
width: 100%;
|
|
@@ -7497,6 +7498,14 @@ body.dark .c-logo__svg {
|
|
|
7497
7498
|
column-gap: var(--spaceXXXSmall);
|
|
7498
7499
|
}
|
|
7499
7500
|
|
|
7501
|
+
.c-productHeader__layout--positionCenter {
|
|
7502
|
+
align-items: center;
|
|
7503
|
+
}
|
|
7504
|
+
|
|
7505
|
+
.c-productHeader__layout--positionBottom {
|
|
7506
|
+
align-items: flex-end;
|
|
7507
|
+
}
|
|
7508
|
+
|
|
7500
7509
|
.c-productHeader__colLeft {
|
|
7501
7510
|
display: flex;
|
|
7502
7511
|
flex-direction: column;
|
|
@@ -7519,6 +7528,18 @@ body.dark .c-logo__svg {
|
|
|
7519
7528
|
flex-wrap: nowrap;
|
|
7520
7529
|
}
|
|
7521
7530
|
|
|
7531
|
+
.c-productHeader--withTitleIcon .c-productHeader__colLeft--positionTop {
|
|
7532
|
+
align-items: flex-start;
|
|
7533
|
+
}
|
|
7534
|
+
|
|
7535
|
+
.c-productHeader--withTitleIcon .c-productHeader__colLeft--positionCenter {
|
|
7536
|
+
align-items: center;
|
|
7537
|
+
}
|
|
7538
|
+
|
|
7539
|
+
.c-productHeader--withTitleIcon .c-productHeader__colLeft--positionBottom {
|
|
7540
|
+
align-items: flex-end;
|
|
7541
|
+
}
|
|
7542
|
+
|
|
7522
7543
|
.c-productHeader--withTitleIcon .c-productHeader__colLeftInner {
|
|
7523
7544
|
display: flex;
|
|
7524
7545
|
flex-direction: column;
|
|
@@ -9326,6 +9347,7 @@ body.dark .c-logo__svg {
|
|
|
9326
9347
|
transition: var(--transition);
|
|
9327
9348
|
vertical-align: middle;
|
|
9328
9349
|
width: 36px;
|
|
9350
|
+
flex-shrink: 0;
|
|
9329
9351
|
margin-top: 3px;
|
|
9330
9352
|
}
|
|
9331
9353
|
.f-toggle--active .f-toggle__toggler {
|
|
@@ -11497,7 +11519,7 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
11497
11519
|
/* Slider */
|
|
11498
11520
|
.slick-loading .slick-list
|
|
11499
11521
|
{
|
|
11500
|
-
background: #fff url('assets/
|
|
11522
|
+
background: #fff url('assets/ffe01a12956cfbce7191.gif') center center no-repeat;
|
|
11501
11523
|
}
|
|
11502
11524
|
|
|
11503
11525
|
/* Icons */
|
|
@@ -11507,8 +11529,8 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
11507
11529
|
font-weight: normal;
|
|
11508
11530
|
font-style: normal;
|
|
11509
11531
|
|
|
11510
|
-
src: url('assets/
|
|
11511
|
-
src: url('assets/
|
|
11532
|
+
src: url('assets/a123e92021116d422840.eot');
|
|
11533
|
+
src: url('assets/bb9447df7939cb657519.eot') format('embedded-opentype'), url('assets/b37b7e06825a8103c8cd.woff') format('woff'), url('assets/21f6e0e0f63ad22ef7ac.ttf') format('truetype'), url('assets/f0e1216b2a58c5978f35.svg') format('svg');
|
|
11512
11534
|
}
|
|
11513
11535
|
/* Arrows */
|
|
11514
11536
|
.slick-prev,
|
|
@@ -49,6 +49,16 @@ type ProductHeaderBaseProps = {
|
|
|
49
49
|
titleIconSize?: AvatarSizeType;
|
|
50
50
|
/** Visually hidden prefix rendered before the title (for screen readers). */
|
|
51
51
|
titleHiddenPrefix?: ReactElement;
|
|
52
|
+
/**
|
|
53
|
+
* Vertical alignment of the title icon relative to the title/content next to it.
|
|
54
|
+
* - Has a visible effect only when `titleIconName`/`titleIconText` is set.
|
|
55
|
+
* - If the header has a single line of content on BOTH sides (no `subtitle`/`customSubtitle` AND no
|
|
56
|
+
* `secondaryLabel`/`secondaryAmount`), it also aligns the whole row — the icon+title block together with
|
|
57
|
+
* `topRightButtons` / `topRightCustomContent` / `amount` on the right.
|
|
58
|
+
* - If a subtitle or secondary/bottom-right content is present, this prop has no effect and the header
|
|
59
|
+
* keeps its default top alignment, to preserve existing multi-line layouts. Default is 'top'
|
|
60
|
+
*/
|
|
61
|
+
titlePosition?: 'top' | 'center' | 'bottom';
|
|
52
62
|
/** Internal link or callback used by the title. */
|
|
53
63
|
linkTo?: string | (() => void);
|
|
54
64
|
/** External link used by the title. */
|
|
@@ -130,6 +140,6 @@ type ProductHeaderBaseProps = {
|
|
|
130
140
|
theme?: string;
|
|
131
141
|
};
|
|
132
142
|
export type ProductHeaderPropTypes = ProductHeaderBaseProps & ProductHeaderInteractionProps;
|
|
133
|
-
export declare const ProductHeader: ({ actions, actionsOtherButton, actionsSize, amount, amountHiddenPrefix, amountHideIcon, amountIsBold, amountIsInline, amountMaximumFractionDigits, amountMinimumFractionDigits, amountSize, amountType, amountUnitAfter, amountUnitBefore, amountUnitTheme, belowHeaderContent, customSubtitle, customTitle, externalLink, isHeaderClickable, linkTo, locale, onHeaderClick, secondaryAmount, secondaryAmountHideIcon, secondaryAmountIsBold, secondaryAmountIsInline, secondaryAmountMaximumFractionDigits, secondaryAmountMinimumFractionDigits, secondaryAmountSize, secondaryAmountType, secondaryAmountUnitAfter, secondaryAmountUnitBefore, secondaryAmountUnitTheme, secondaryLabel, secondaryLabelSize, size, subtitle, subtitleHiddenPrefix, subtitleSize, testId, theme, title, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
|
|
143
|
+
export declare const ProductHeader: ({ actions, actionsOtherButton, actionsSize, amount, amountHiddenPrefix, amountHideIcon, amountIsBold, amountIsInline, amountMaximumFractionDigits, amountMinimumFractionDigits, amountSize, amountType, amountUnitAfter, amountUnitBefore, amountUnitTheme, belowHeaderContent, customSubtitle, customTitle, externalLink, isHeaderClickable, linkTo, locale, onHeaderClick, secondaryAmount, secondaryAmountHideIcon, secondaryAmountIsBold, secondaryAmountIsInline, secondaryAmountMaximumFractionDigits, secondaryAmountMinimumFractionDigits, secondaryAmountSize, secondaryAmountType, secondaryAmountUnitAfter, secondaryAmountUnitBefore, secondaryAmountUnitTheme, secondaryLabel, secondaryLabelSize, size, subtitle, subtitleHiddenPrefix, subtitleSize, testId, theme, title, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titlePosition, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
|
|
134
144
|
export {};
|
|
135
145
|
//# 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,
|
|
1
|
+
{"version":3,"file":"ProductHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAY,YAAY,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAA;AAG7G,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAG/D,OAAO,EAAU,cAAc,EAAE,UAAU,EAAQ,YAAY,EAAS,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC3G,OAAO,EAAU,cAAc,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAgB,UAAU,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAG5E,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAE5E,KAAK,2BAA2B,GAAG;IACjC,6CAA6C;IAC7C,iBAAiB,EAAE,IAAI,CAAA;IACvB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,KAAK,CAAA;IACzB,kDAAkD;IAClD,aAAa,CAAC,EAAE,KAAK,CAAA;CACtB,CAAA;AAED,KAAK,6BAA6B,GAAG,2BAA2B,GAAG,yBAAyB,CAAA;AA+D5F,KAAK,sBAAsB,GAAG;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,sBAAsB,CAAA;IAI7B,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qFAAq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BAAwB,EAAE,CAAA;IACpC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,kBAAkB,CAAC,EAAE,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC,CAAA;IACzE,6IAA6I;IAC7I,kBAAkB,CAAC,EAAE,SAAS,CAAA;IAI9B,qGAAqG;IACrG,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GAAG,6BAA6B,CAAA;AAE3F,eAAO,MAAM,aAAa,u+BAyDvB,sBAAsB,sBAwTxB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from'./../../../ext/tslib/tslib.es6.js';import t,{useCallback as o}from"react";import{useHistory as
|
|
1
|
+
import{__assign as e}from'./../../../ext/tslib/tslib.es6.js';import t,{useCallback as o,Fragment as n}from"react";import{useHistory as i}from"react-router-dom";import"../../../utils/getDisplayName.js";import"../../../utils/getIntegerMask.js";import"../../../utils/isFilled.js";import"../../../utils/isNotFilled.js";import"../../../utils/isNotNilNorEmpty.js";import'./../../../ext/diacritic/diacritics.js';import{cx as r}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Flex as a}from"../../Layout/Flex/Flex.js";import{Amount as l}from"../../Typography/Amount/Amount.js";import{Text as s}from"../../Typography/Text/Text.js";import{Title as c}from"../../Typography/Title/Title.js";import"../Button/Button.js";import{ButtonsGroup as m}from"../Button/ButtonsGroup.js";import{Avatar as d}from"../Avatar/Avatar.js";import"../ButtonTooltip/ButtonTooltip.js";import'./../../../ext/cuid/index.js';import"../../../contexts/CardContext.js";import"../../../contexts/FormGroupContext.js";import"../../../contexts/ModalContext.js";import"../../../contexts/Select2Context.js";import"../../../contexts/TabsContext.js";import"react-dom";import"react-slick";import"../Collapse/Collapse.js";import{CompactButtons as u}from"../CompactButtons/CompactButtons.js";import"../DataTable/DataTable.js";import"../../../contexts/ContentTableContext.js";import"../ContentTable/ContentTableRow.js";import'./../../../ext/lodash/_baseToString.js';import'./../../../ext/react-text-mask/dist/reactTextMask.js';import"../Dropdown/_elements_/DropdownDivider.js";import"../Dropdown/_elements_/DropdownItem.js";import"../Dropdown/_elements_/DropdownMenu.js";import"../Dropdown/_elements_/DropdownInfoText.js";import"../Dropdown/_elements_/DropdownLoading.js";import{Link as p}from"../Link/Link.js";import"../SuperModal/SuperModal.context.js";import"../../Form/Autocomplete/Autocomplete.js";import'./../../../ext/react-device-detect/dist/lib.js';import'./../../../ext/@refinanso/images-to-pdf/ext/jspdf/dist/jspdf.es.min.js';import'./../../../ext/@bugsnag/cuid/index.esm.js';import'./../../../ext/jspdf/dist/jspdf.es.min.js';import"../../Form/FileUpload/_parts_/MergeImageCards.js";import"../../Form/Select/_elements_/Select2CategorisedOptions.js";import"../../Form/Select/_elements_/Select2Options.js";import"../../Form/Slider/Slider.js";import"../../../contexts/MobilePanelContext.js";var _={top:"c-productHeader__colLeft--positionTop",center:"c-productHeader__colLeft--positionCenter",bottom:"c-productHeader__colLeft--positionBottom"},f={top:void 0,center:"c-productHeader__layout--positionCenter",bottom:"c-productHeader__layout--positionBottom"},y=function(y){var g=y.actions,H=y.actionsOtherButton,j=y.actionsSize,b=y.amount,v=y.amountHiddenPrefix,x=y.amountHideIcon,S=void 0!==x&&x,h=y.amountIsBold,z=void 0===h||h,C=y.amountIsInline,E=y.amountMaximumFractionDigits,I=void 0===E?2:E,T=y.amountMinimumFractionDigits,k=void 0===T?2:T,L=y.amountSize,A=y.amountType,B=y.amountUnitAfter,D=y.amountUnitBefore,N=y.amountUnitTheme,F=y.belowHeaderContent,w=y.customSubtitle,M=y.customTitle,U=y.externalLink,P=y.isHeaderClickable,V=void 0!==P&&P,O=y.linkTo,R=y.locale,W=y.onHeaderClick,G=y.secondaryAmount,K=y.secondaryAmountHideIcon,q=void 0!==K&&K,J=y.secondaryAmountIsBold,Q=y.secondaryAmountIsInline,X=y.secondaryAmountMaximumFractionDigits,Y=void 0===X?2:X,Z=y.secondaryAmountMinimumFractionDigits,$=void 0===Z?2:Z,ee=y.secondaryAmountSize,te=y.secondaryAmountType,oe=y.secondaryAmountUnitAfter,ne=y.secondaryAmountUnitBefore,ie=y.secondaryAmountUnitTheme,re=y.secondaryLabel,ae=y.secondaryLabelSize,le=y.size,se=void 0===le?"medium":le,ce=y.subtitle,me=y.subtitleHiddenPrefix,de=y.subtitleSize,ue=y.testId,pe=y.theme,_e=y.title,fe=y.titleHiddenPrefix,ye=y.titleIconBackgroundColor,ge=void 0===ye?"bgBrandDefault":ye,He=y.titleIconBackgroundCustom,je=y.titleIconColor,be=y.titleIconName,ve=y.titleIconSize,xe=y.titleIconText,Se=y.titlePosition,he=void 0===Se?"top":Se,ze=y.titleSize,Ce=void 0===ze?"h2":ze,Ee=y.titleVisual,Ie=y.titleWithoutMargin,Te=void 0===Ie||Ie,ke=y.topRightButtons,Le=y.topRightCustomContent,Ae=i(),Be=function(e){switch(e){case"small":return{amountSize:"small",secondaryAmountSize:"xSmall",titleIconSize:"medium",actionsSize:"small"};case"medium":default:return{titleVisual:"h5",subtitleSize:"small",amountSize:"large",secondaryAmountSize:"small",titleIconSize:"medium",actionsSize:"small",secondaryLabelSize:"small"};case"large":return{titleVisual:"h4",subtitleSize:"small",amountSize:"xLarge",secondaryAmountSize:"small",titleIconSize:"large",secondaryLabelSize:"small"};case"xLarge":return{titleVisual:"h3",amountSize:"xLarge",titleIconSize:"xLarge"}}}(se),De=null!=Ee?Ee:Be.titleVisual,Ne=null!=de?de:Be.subtitleSize,Fe=null!=ae?ae:Be.secondaryLabelSize,we=null!=L?L:Be.amountSize,Me=null!=ee?ee:Be.secondaryAmountSize,Ue=null!=ve?ve:Be.titleIconSize,Pe=null!=j?j:Be.actionsSize,Ve="small"===se&&!L,Oe="small"===se&&!ee,Re="xLarge"===se&&!ee,We=!!w||"string"==typeof ce,Ge=!!be||!!xe,Ke=t.Children.count(Le)>0,qe=t.Children.count(ke)>0,Je=Ke,Qe=!Je&&qe,Xe=!Je&&!Qe&&"number"==typeof b,Ye=Je||Qe||Xe,Ze=!!re||"number"==typeof G,$e=!We&&!Ze,et=!!(null==g?void 0:g.length),tt=t.Children.count(F)>0,ot=!(Ge||We||Ye||Ze||et||tt),nt=Boolean(O||U),it=Boolean(W||nt),rt=V&&it,at=o((function(){"function"!=typeof O?O&&Ae.push(O):O()}),[Ae,O]),lt=o((function(){U&&window.open(U,"_blank","noopener,noreferrer")}),[U]),st=o((function(){U?lt():O&&at()}),[lt,at,U,O]),ct=o((function(e){"preventDefault"in e&&e.preventDefault(),at()}),[at]),mt=o((function(){rt&&(W?W():nt&&st())}),[st,nt,rt,W]),dt=o((function(e){rt&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),mt()))}),[mt,rt]),ut=function(){var e=M?t.createElement(n,null,fe&&t.createElement("span",{className:"u-vHide"},fe),M):t.createElement(c,{isWithoutMargin:Te,size:Ce,theme:r("c-productHeader__title",{"c-productHeader__title--customVisual":!!Ee}),visual:De},fe&&t.createElement("span",{className:"u-vHide"},fe),_e);return O||U?t.createElement(p,{allowEventPropagation:!1,ariaLabel:_e,"data-testid":ue?"productHeader-link-".concat(ue):void 0,linkUrl:U||("string"==typeof O?O:"#"),target:U?"_blank":void 0,theme:"c-productHeader__titleLink",onClick:U?void 0:ct},e):e},pt=rt?{onClick:mt,onKeyDown:dt,role:"button",tabIndex:0}:{};if(ot)return t.createElement("div",e({},pt,{className:r("c-productHeader c-productHeader--titleOnly",{"c-productHeader--headerClickable":rt,"c-productHeader--headerClickableWithTitleLink":rt&&nt},pe),"data-testid":ue}),ut());var _t=t.createElement(t.Fragment,null,t.createElement("div",{className:"c-productHeader__colTitle"},ut()),We?t.createElement("div",{className:"c-productHeader__colSubtitle"},w?t.createElement(t.Fragment,null,me&&t.createElement("span",{className:"u-vHide"},me),w):t.createElement(s,{size:Ne,theme:r("c-productHeader__subtitle",{"c-productHeader__subtitle--customSize":!!de}),type:"secondary"},me&&t.createElement("span",{className:"u-vHide"},me),ce)):null);return t.createElement("div",e({},pt,{className:r("c-productHeader",{"c-productHeader--withTitleIcon":Ge,"c-productHeader--small":"small"===se,"c-productHeader--xLarge":"xLarge"===se,"c-productHeader--headerClickable":rt,"c-productHeader--headerClickableWithTitleLink":rt&&nt},pe),"data-testid":ue}),t.createElement("div",{className:r("c-productHeader__layout",$e?f[he]:void 0)},Ge?t.createElement("div",{className:r("c-productHeader__colLeft",_[he])},t.createElement("div",{className:"c-productHeader__colIcon"},t.createElement(d,{backgroundColor:ge,backgroundCustom:He,color:je,iconName:be,size:Ue,text:xe})),t.createElement("div",{className:"c-productHeader__colLeftInner"},_t)):t.createElement("div",{className:"c-productHeader__colLeft"},_t),Ye||Ze?t.createElement("div",{className:"c-productHeader__colRight"},Ye?t.createElement("div",null,Je?Le:null,Qe?t.createElement(m,null,ke):null,Xe?t.createElement(t.Fragment,null,v&&t.createElement("span",{className:"u-vHide"},v),t.createElement(l,{amount:b,hideIcon:S,isBold:z,isInline:C,locale:R,maximumFractionDigits:I,minimumFractionDigits:k,size:we,theme:r("c-productHeader__amount",{"c-productHeader__amount--small":Ve}),type:A,unitAfter:B,unitBefore:D,unitTheme:N})):null):null,Ze?t.createElement("div",null,re?t.createElement(a,{alignItems:"baseline",direction:"row",justifyContent:"end",theme:"c-productHeader__secondary"},t.createElement(s,{component:"span",size:Fe,theme:r("c-productHeader__secondaryLabel",{"c-productHeader__secondaryLabel--customSize":!!ae})},re),"number"==typeof G?t.createElement(l,{amount:G,hideIcon:q,isBold:J,isInline:Q,locale:R,maximumFractionDigits:Y,minimumFractionDigits:$,size:Me,theme:r("c-productHeader__amount",{"c-productHeader__amount--small":Oe,"c-productHeader__secondaryAmount--xLarge":Re}),type:te,unitAfter:oe,unitBefore:ne,unitTheme:r(ie,{"c-productHeader__secondaryAmount--xLarge":Re})}):null):null):null):null),et?t.createElement("div",{className:"c-productHeader__actions"},t.createElement(u,{buttons:g,otherButton:H,size:Pe})):null,tt?t.createElement("div",{className:"c-productHeader__below"},F):null)};export{y as ProductHeader};
|
|
2
2
|
//# sourceMappingURL=ProductHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductHeader.js","sources":["../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"sourcesContent":[null],"names":["ProductHeader","_a","actions","actionsOtherButton","actionsSize","amount","amountHiddenPrefix","_b","amountHideIcon","_c","amountIsBold","amountIsInline","_d","amountMaximumFractionDigits","_e","amountMinimumFractionDigits","amountSize","amountType","amountUnitAfter","amountUnitBefore","amountUnitTheme","belowHeaderContent","customSubtitle","customTitle","externalLink","_f","isHeaderClickable","linkTo","locale","onHeaderClick","secondaryAmount","_g","secondaryAmountHideIcon","secondaryAmountIsBold","secondaryAmountIsInline","_h","secondaryAmountMaximumFractionDigits","_j","secondaryAmountMinimumFractionDigits","secondaryAmountSize","secondaryAmountType","secondaryAmountUnitAfter","secondaryAmountUnitBefore","secondaryAmountUnitTheme","secondaryLabel","secondaryLabelSize","_k","size","subtitle","subtitleHiddenPrefix","subtitleSize","testId","theme","title","titleHiddenPrefix","_l","titleIconBackgroundColor","titleIconBackgroundCustom","titleIconColor","titleIconName","titleIconSize","titleIconText","_m","titleSize","titleVisual","
|
|
1
|
+
{"version":3,"file":"ProductHeader.js","sources":["../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"sourcesContent":[null],"names":["titlePositionClassMap","top","center","bottom","layoutPositionClassMap","undefined","ProductHeader","_a","actions","actionsOtherButton","actionsSize","amount","amountHiddenPrefix","_b","amountHideIcon","_c","amountIsBold","amountIsInline","_d","amountMaximumFractionDigits","_e","amountMinimumFractionDigits","amountSize","amountType","amountUnitAfter","amountUnitBefore","amountUnitTheme","belowHeaderContent","customSubtitle","customTitle","externalLink","_f","isHeaderClickable","linkTo","locale","onHeaderClick","secondaryAmount","_g","secondaryAmountHideIcon","secondaryAmountIsBold","secondaryAmountIsInline","_h","secondaryAmountMaximumFractionDigits","_j","secondaryAmountMinimumFractionDigits","secondaryAmountSize","secondaryAmountType","secondaryAmountUnitAfter","secondaryAmountUnitBefore","secondaryAmountUnitTheme","secondaryLabel","secondaryLabelSize","_k","size","subtitle","subtitleHiddenPrefix","subtitleSize","testId","theme","title","titleHiddenPrefix","_l","titleIconBackgroundColor","titleIconBackgroundCustom","titleIconColor","titleIconName","titleIconSize","titleIconText","_m","titlePosition","_o","titleSize","titleVisual","_p","titleWithoutMargin","topRightButtons","topRightCustomContent","history","useHistory","defaultSizes","getDefaultSizesByHeaderSize","resolvedTitleVisual","resolvedSubtitleSize","resolvedSecondaryLabelSize","resolvedAmountSize","resolvedSecondaryAmountSize","resolvedTitleIconSize","resolvedActionsSize","shouldUseSmallAmountTheme","shouldUseSmallSecondaryAmountTheme","shouldUseXLargeSecondaryAmountTheme","hasSubtitle","hasIcon","hasTopRightCustomContent","React","Children","count","hasTopRightButtons","showTopRightCustomContent","showTopRightButtons","showAmount","hasTopRight","hasBottomRight","isSingleLineRow","hasActions","length","hasBelowHeaderContent","isTitleOnly","hasTitleLink","Boolean","hasHeaderAction","isWholeHeaderClickable","executeInternalNavigation","useCallback","push","executeExternalNavigation","window","open","executeHeaderLinkAction","onInternalTitleClick","e","preventDefault","handleWholeHeaderClick","handleWholeHeaderKeyDown","key","renderTitle","titleInner","Fragment","createElement","className","Title","isWithoutMargin","cx","visual","Link","allowEventPropagation","ariaLabel","concat","linkUrl","target","onClick","wrapperInteractiveProps","onKeyDown","role","tabIndex","leftContent","Text","type","Avatar","backgroundColor","backgroundCustom","color","iconName","text","ButtonsGroup","Amount","hideIcon","isBold","isInline","maximumFractionDigits","minimumFractionDigits","unitAfter","unitBefore","unitTheme","Flex","alignItems","direction","justifyContent","component","CompactButtons","buttons","otherButton"],"mappings":"m7EAyCA,IAAMA,EAAqE,CAC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AEH4E,GACCR,EAAAkC,cAAA,MAAA,KACG9E,GACC4C,EAAAkC,cAACoC,EAAI,CAACC,WAAW,WAAWC,UAAU,MAAMC,eAAe,MAAM7G,MAAM,8BACrEoC,EAAAkC,cAACkB,EAAI,CACHsB,UAAU,OACVnH,KAAM8B,GACNzB,MAAO0E,EAAG,kCAAmC,CAC3C,gDAAiDjF,MAGlDD,IAGyB,iBAApBd,EACN0D,gBAAC6D,EAAM,CACLhJ,OAAQyB,EACRwH,SAAUtH,EACVuH,OAAQtH,EACRuH,SAAUtH,EACVN,OAAQA,EACR6H,sBAAuBrH,EACvBsH,sBAAuBpH,EACvBS,KAAMgC,GACN3B,MAAO0E,EAAG,0BAA2B,CACnC,iCAAkC3C,GAClC,2CAA4CC,KAE9CyD,KAAMrG,GACNmH,UAAWlH,GACXmH,WAAYlH,GACZmH,UAAW/B,EAAGnF,GAA0B,CACtC,2CAA4CyC,OAG9C,MAEJ,MAEJ,MAEJ,MAGLc,GACCV,EAAKkC,cAAA,MAAA,CAAAC,UAAU,4BACbnC,EAAAkC,cAACyC,EAAe,CAAAC,QAASlK,EAASmK,YAAalK,EAAoB4C,KAAMkC,MAEzE,KAEHmB,GAAwBZ,EAAKkC,cAAA,MAAA,CAAAC,UAAU,0BAA0BtG,GAA4B,KAGpG"}
|
package/ds-lilly.css
CHANGED
|
@@ -5264,7 +5264,8 @@ body.l-body--modalOpen {
|
|
|
5264
5264
|
flex-direction: column;
|
|
5265
5265
|
max-height: var(--maxHeightDropdown);
|
|
5266
5266
|
padding: var(--spaceXSmall) 0;
|
|
5267
|
-
|
|
5267
|
+
text-align: left;
|
|
5268
|
+
z-index: 4610;
|
|
5268
5269
|
}
|
|
5269
5270
|
.c-dropdown--fullWidth {
|
|
5270
5271
|
width: 100%;
|
|
@@ -7497,6 +7498,14 @@ body.dark .c-logo__svg {
|
|
|
7497
7498
|
column-gap: var(--spaceXXXSmall);
|
|
7498
7499
|
}
|
|
7499
7500
|
|
|
7501
|
+
.c-productHeader__layout--positionCenter {
|
|
7502
|
+
align-items: center;
|
|
7503
|
+
}
|
|
7504
|
+
|
|
7505
|
+
.c-productHeader__layout--positionBottom {
|
|
7506
|
+
align-items: flex-end;
|
|
7507
|
+
}
|
|
7508
|
+
|
|
7500
7509
|
.c-productHeader__colLeft {
|
|
7501
7510
|
display: flex;
|
|
7502
7511
|
flex-direction: column;
|
|
@@ -7519,6 +7528,18 @@ body.dark .c-logo__svg {
|
|
|
7519
7528
|
flex-wrap: nowrap;
|
|
7520
7529
|
}
|
|
7521
7530
|
|
|
7531
|
+
.c-productHeader--withTitleIcon .c-productHeader__colLeft--positionTop {
|
|
7532
|
+
align-items: flex-start;
|
|
7533
|
+
}
|
|
7534
|
+
|
|
7535
|
+
.c-productHeader--withTitleIcon .c-productHeader__colLeft--positionCenter {
|
|
7536
|
+
align-items: center;
|
|
7537
|
+
}
|
|
7538
|
+
|
|
7539
|
+
.c-productHeader--withTitleIcon .c-productHeader__colLeft--positionBottom {
|
|
7540
|
+
align-items: flex-end;
|
|
7541
|
+
}
|
|
7542
|
+
|
|
7522
7543
|
.c-productHeader--withTitleIcon .c-productHeader__colLeftInner {
|
|
7523
7544
|
display: flex;
|
|
7524
7545
|
flex-direction: column;
|
|
@@ -9326,6 +9347,7 @@ body.dark .c-logo__svg {
|
|
|
9326
9347
|
transition: var(--transition);
|
|
9327
9348
|
vertical-align: middle;
|
|
9328
9349
|
width: 36px;
|
|
9350
|
+
flex-shrink: 0;
|
|
9329
9351
|
margin-top: 3px;
|
|
9330
9352
|
}
|
|
9331
9353
|
.f-toggle--active .f-toggle__toggler {
|
|
@@ -11497,7 +11519,7 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
11497
11519
|
/* Slider */
|
|
11498
11520
|
.slick-loading .slick-list
|
|
11499
11521
|
{
|
|
11500
|
-
background: #fff url('assets/
|
|
11522
|
+
background: #fff url('assets/3add6024cec1a36876d8.gif') center center no-repeat;
|
|
11501
11523
|
}
|
|
11502
11524
|
|
|
11503
11525
|
/* Icons */
|
|
@@ -11507,8 +11529,8 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
11507
11529
|
font-weight: normal;
|
|
11508
11530
|
font-style: normal;
|
|
11509
11531
|
|
|
11510
|
-
src: url('assets/
|
|
11511
|
-
src: url('assets/
|
|
11532
|
+
src: url('assets/16c97ea333890919dc4c.eot');
|
|
11533
|
+
src: url('assets/df537df7b92686e73fad.eot') format('embedded-opentype'), url('assets/9c122000980c1250bf88.woff') format('woff'), url('assets/94c70b251653e096918a.ttf') format('truetype'), url('assets/4e9565604802ee3295f9.svg') format('svg');
|
|
11512
11534
|
}
|
|
11513
11535
|
/* Arrows */
|
|
11514
11536
|
.slick-prev,
|
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
|