@mmb-digital/ds-lilly 1.0.116 → 1.0.117
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/ContentTable/ContentTableRow.d.ts.map +1 -1
- package/cjs/components/Components/ContentTable/ContentTableRow.js +1 -1
- package/cjs/components/Components/ContentTable/ContentTableRow.js.map +1 -1
- package/cjs/components/Components/Loader/Loader.d.ts.map +1 -1
- package/cjs/components/Components/Loader/Loader.js +1 -1
- package/cjs/components/Components/Loader/Loader.js.map +1 -1
- package/cjs/components/Components/Logo/Logo.d.ts +11 -0
- package/cjs/components/Components/Logo/Logo.d.ts.map +1 -0
- package/cjs/components/Components/Logo/Logo.js +2 -0
- package/cjs/components/Components/Logo/Logo.js.map +1 -0
- package/cjs/components/Components/Logo/index.d.ts +2 -0
- package/cjs/components/Components/Logo/index.d.ts.map +1 -0
- package/cjs/components/Components/Logo/index.js +2 -0
- package/cjs/components/Components/Logo/index.js.map +1 -0
- package/cjs/components/Components/ProductHeader/ProductHeader.js +1 -1
- package/cjs/components/Components/ProductHeader/ProductHeader.js.map +1 -1
- package/cjs/components/Components/index.d.ts +1 -0
- package/cjs/components/Components/index.d.ts.map +1 -1
- package/cjs/components/Components/index.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/FileList.js +1 -1
- package/cjs/components/Form/Slider/Slider.js +1 -1
- package/cjs/components/Graphs/BarChart/BarChart.d.ts +49 -5
- package/cjs/components/Graphs/BarChart/BarChart.d.ts.map +1 -1
- package/cjs/components/Graphs/BarChart/BarChart.js +1 -1
- package/cjs/components/Graphs/BarChart/BarChart.js.map +1 -1
- package/cjs/components/Layout/Header/Header.js +1 -1
- package/cjs/components/Layout/Header/Header.js.map +1 -1
- package/cjs/ds-lilly.css +182 -143
- package/cjs/ext/raf/index.js +1 -1
- package/cjs/ext/react-is/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/components/Components/ContentTable/ContentTableRow.d.ts.map +1 -1
- package/components/Components/ContentTable/ContentTableRow.js +1 -1
- package/components/Components/ContentTable/ContentTableRow.js.map +1 -1
- package/components/Components/Loader/Loader.d.ts.map +1 -1
- package/components/Components/Loader/Loader.js +1 -1
- package/components/Components/Loader/Loader.js.map +1 -1
- package/components/Components/Logo/Logo.d.ts +11 -0
- package/components/Components/Logo/Logo.d.ts.map +1 -0
- package/components/Components/Logo/Logo.js +2 -0
- package/components/Components/Logo/Logo.js.map +1 -0
- package/components/Components/Logo/index.d.ts +2 -0
- package/components/Components/Logo/index.d.ts.map +1 -0
- package/components/Components/Logo/index.js +2 -0
- package/components/Components/Logo/index.js.map +1 -0
- package/components/Components/ProductHeader/ProductHeader.js +1 -1
- package/components/Components/index.d.ts +1 -0
- package/components/Components/index.d.ts.map +1 -1
- package/components/Components/index.js +1 -1
- package/components/Form/FileUpload/_parts_/FileList.js +1 -1
- package/components/Form/Slider/Slider.js +1 -1
- package/components/Graphs/BarChart/BarChart.d.ts +49 -5
- package/components/Graphs/BarChart/BarChart.d.ts.map +1 -1
- package/components/Graphs/BarChart/BarChart.js +1 -1
- package/components/Graphs/BarChart/BarChart.js.map +1 -1
- package/components/Layout/Header/Header.js +1 -1
- package/components/Layout/Header/Header.js.map +1 -1
- package/ds-lilly.css +182 -143
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- /package/assets/{1537b2d37a7a153c5b20.gif → 0f5ce8a883be6457e132.gif} +0 -0
- /package/assets/{6d03ed3acaa644ac1e76.gif → 5f6fb019994ade0a5749.gif} +0 -0
- /package/assets/{b136a0c69c66a9344316.ttf → 73ae4c30abe827766e94.ttf} +0 -0
- /package/assets/{0d061827c25ad77bdee3.eot → 7c53958b3226e2c7a8a6.eot} +0 -0
- /package/assets/{083e931a96f9dd214dcb.woff → 7ccf6056f56c054d686d.woff} +0 -0
- /package/assets/{7166c07b1a32a69af46b.woff → a2d470174b436e85bd86.woff} +0 -0
- /package/assets/{3fb82534f4f13bbc5079.svg → acc9c918e9d2c8f4fe65.svg} +0 -0
- /package/assets/{b4459767296e0240f98c.ttf → b67202eedcf984876190.ttf} +0 -0
- /package/assets/{2a347232163415e780ed.eot → c0e59c17733d9df0e7bf.eot} +0 -0
- /package/assets/{a49dbe0219f106128a84.eot → d10deb67760c5a8768af.eot} +0 -0
- /package/assets/{feadbc9dcc333eedd231.eot → f4bc593c35e86287a255.eot} +0 -0
- /package/assets/{8038faeb8323c8395d2b.svg → fcbeb8a52ab3db1f0779.svg} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTableRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/ContentTable/ContentTableRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAIZ,YAAY,EACZ,SAAS,EAMV,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAA;AAEtE,OAAO,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAS,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAU,mBAAmB,EAAmB,cAAc,EAAE,MAAM,WAAW,CAAA;AAIxF,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sBAAsB;IACtB,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,CAAA;IACvB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mDAAmD;IACnD,2BAA2B,CAAC,EAAE,MAAM,CAAA;IACpC,mDAAmD;IACnD,2BAA2B,CAAC,EAAE,MAAM,CAAA;IACpC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Y,CAAA;IAClC,kCAAkC;IAClC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,2BAA2B;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,0BAA0B;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,6EAA6E;IAC7E,gCAAgC,CAAC,EAAE,OAAO,CAAA;IAC1C,mFAAmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;IAC7D,kDAAkD;IAClD,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,yEAAyE;IACzE,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,0QAA0Q;IAC1Q,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAUD,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ContentTableRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/ContentTable/ContentTableRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAIZ,YAAY,EACZ,SAAS,EAMV,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAA;AAEtE,OAAO,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAS,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAU,mBAAmB,EAAmB,cAAc,EAAE,MAAM,WAAW,CAAA;AAIxF,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,qBAAqB;IACrB,SAAS,CAAC,EAAE,M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S,CAAC,EAAE,SAAS,CAAA;IACrB,wBAAwB;IACxB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,sBAAsB;IACtB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAA;IACvB,0CAA0C;IAC1C,8BAA8B,CAAC,EAAE,SAAS,CAAA;IAC1C,iDAAiD;IACjD,oCAAoC,CAAC,EAAE,MAAM,CAAA;IAC7C,6BAA6B;IAC7B,mBAAmB,CAAC,EAAE,YAAY,CAAA;IAClC,kCAAkC;IAClC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,2BAA2B;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,0BAA0B;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,6EAA6E;IAC7E,gCAAgC,CAAC,EAAE,OAAO,CAAA;IAC1C,mFAAmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;IAC7D,kDAAkD;IAClD,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,yEAAyE;IACzE,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,0QAA0Q;IAC1Q,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAUD,eAAO,MAAM,eAAe,0FAmb3B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),n=require("../../../contexts/ContentTableContext.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 l,a=require("../../../utils/constants.js"),c=require("../../../utils/ucfirst.js"),i=require("../../Typography/Amount/Amount.js"),r=require("../../Typography/Text/Text.js"),s=require("../../Typography/Title/Title.js"),m=require("../Avatar/Avatar.js"),u=require("../Tag/Tag.js"),d=require("./ContentTable.js"),b=require('./../../../ext/framer-motion/dist/es/components/AnimatePresence/index.js'),T=require('./../../../ext/framer-motion/dist/es/render/dom/motion.js');!function(e){e.TEXT="text",e.AMOUNT="amount",e.LINKS="links",e.BUTTONS="buttons",e.TOGGLE="toggle"}(l||(l={}));var _=t.forwardRef((function(_,g){var p,w=_.amount,E=_.amountCurrencyCode,v=_.amountLocale,x=_.amountMaximumFractionDigits,C=_.amountMinimumFractionDigits,R=_.amountSubtitle,h=_.amountSubtitleType,N=_.ariaLabel,f=_.buttons,k=void 0===f?[]:f,y=_.checkbox,S=_.children,A=_.columns,O=void 0===A?[]:A,q=_.customIcon,
|
|
1
|
+
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),n=require("../../../contexts/ContentTableContext.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 l,a=require("../../../utils/constants.js"),c=require("../../../utils/ucfirst.js"),i=require("../../Typography/Amount/Amount.js"),r=require("../../Typography/Text/Text.js"),s=require("../../Typography/Title/Title.js"),m=require("../Avatar/Avatar.js"),u=require("../Tag/Tag.js"),d=require("./ContentTable.js"),b=require('./../../../ext/framer-motion/dist/es/components/AnimatePresence/index.js'),T=require('./../../../ext/framer-motion/dist/es/render/dom/motion.js');!function(e){e.TEXT="text",e.AMOUNT="amount",e.LINKS="links",e.BUTTONS="buttons",e.TOGGLE="toggle"}(l||(l={}));var _=t.forwardRef((function(_,g){var p,w=_.amount,E=_.amountCurrencyCode,v=_.amountLocale,x=_.amountMaximumFractionDigits,C=_.amountMinimumFractionDigits,R=_.amountSubtitle,h=_.amountSubtitleType,N=_.ariaLabel,f=_.buttons,k=void 0===f?[]:f,y=_.checkbox,S=_.children,A=_.columns,O=void 0===A?[]:A,q=_.customIcon,I=_.enableKeyDownEvents,j=void 0===I||I,M=_.iconAriaLabel,D=_.iconBackgroundColor,z=_.iconBadgePosition,B=void 0===z?"bottomRight":z,F=_.iconName,K=_.iconSize,L=void 0===K?"xLarge":K,P=_.id,U=_.imageIcon,G=_.isClickable,H=void 0!==G&&G,Y=_.isCollapsible,V=_.isOpen,X=void 0!==V&&V,J=_.links,Q=_.onClick,W=_.onToggle,Z=_.showClickableOpener,$=void 0!==Z&&Z,ee=_.showSubtitleTagIconForMobileView,te=void 0===ee||ee,ne=_.stackOnMobile,oe=void 0!==ne&&ne,le=_.subtitleTagIconBackgroundColor,ae=_.subtitleTagIconCustomBackgroundColor,ce=_.subtitleTagIconImageUrl,ie=_.subtitleTagIconName,re=_.subtitleTagTestId,se=_.subtitleTagText,me=_.subtitles,ue=void 0===me?[]:me,de=_.testId,be=_.title,Te=_.titleSize,_e=void 0===Te?"h2":Te,ge=_.titleVisual,pe=void 0===ge?"h6":ge,we=_.toggle,Ee=t.useContext(n.default),ve=Ee.columns,xe=Ee.hasCheckboxes,Ce=Ee.hasIcons,Re=Ee.hideSubtitleOnExpand,he=Ee.isCollapsible,Ne=Ee.isHeaderHidden,fe=Ee.isMobileDeviceView,ke=Ee.titleAlignContent,ye=Ee.withoutOpeners,Se=oe&&fe,Ae=t.useState(X),Oe=Ae[0],qe=Ae[1],Ie=!!he&&!ye,je=null!=Y?Y:!!he,Me=t.useMemo((function(){return ve.length+(xe?1:0)+(Ce?1:0)+1+(Ie?1:0)}),[ve.length,xe,Ce,Ie]);t.useEffect((function(){return qe(X)}),[X]);var De=t.useCallback((function(){var e=!Oe;qe(e),W&&W(e)}),[qe,Oe,W]),ze=t.useMemo((function(){return(ie||ce)&&se}),[ie,ce,se]),Be=t.useMemo((function(){return ze?t.createElement(m.Avatar,{backgroundColor:ce?void 0:le,backgroundCustom:ce?ae:void 0,iconName:ie,imageUrl:ce,isIconSizing:!!ce,size:"small",theme:"c-contentTableRow__subtitleIcon"}):void 0}),[ze,le,ae,ce,ie]),Fe=t.useCallback((function(e){H&&Q&&(e.stopPropagation(),Q(e))}),[H,Q]),Ke=t.useCallback((function(e){je&&De(),H&&Fe(e)}),[H,je,Fe,De]),Le=t.useCallback((function(e){if(H){var t=e.key;t!==a.KEYS.Enter&&t!==a.KEYS.Space||(e.preventDefault(),null==Q||Q(e))}}),[H,Q]),Pe=t.useCallback((function(e){switch(e.key){case a.KEYS.Enter:case a.KEYS.Space:e.preventDefault(),De()}}),[De]);return t.createElement(t.Fragment,null,t.createElement("tr",{ref:g,"aria-controls":P?"".concat(P,"-content"):void 0,"aria-expanded":je?Oe:void 0,"aria-label":N,className:o.cx("c-contentTableRow",{"c-contentTableRow--isHeaderHidden":Ne,"c-contentTableRow--collapsible":je,"c-contentTableRow--clickable":H,"c-contentTableRow--collapsible--open":je&&Oe,"c-contentTableRow--stackOnMobile":Se}),"data-testid":de,id:P,role:H||je?"button":void 0,tabIndex:H||je?0:void 0,onClick:Ke,onKeyDown:function(e){H?Le(e):j&&je&&Pe(e)}},y&&t.createElement("td",{className:o.cx("c-contentTableRow__column c-contentTableRow__checkboxColumn")},y?t.createElement("div",{onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){return e.stopPropagation()},onMouseDown:function(e){return e.stopPropagation()}},t.cloneElement(y)):null),U&&t.createElement("td",{className:"c-contentTableRow__column c-contentTableRow__imageIconColumn"},t.createElement("div",{className:"c-contentTableRow__imageIcon"},U)),Ce&&!U&&t.createElement("td",{className:"c-contentTableRow__column c-contentTableRow__iconColumn"},t.createElement("div",e.__assign({className:o.cx("c-contentTableRow__iconColumn__icon","c-contentTableRow__iconColumn__icon".concat(c.ucfirst(B)))},M?{"aria-label":M}:{"aria-hidden":!0}),F&&t.createElement(m.Avatar,{backgroundColor:D,iconName:F,size:L}),q,ze&&fe&&te&&Be)),t.createElement("td",{className:o.cx("c-contentTableRow__column","c-contentTableRow__titleColumn",d.getTextAlignClass(ke),{"c-contentTableRow__titleColumn--no-padding":!Ce})},t.createElement(s.Title,{size:_e,theme:"c-contentTableRow__title",visual:pe},be),!(Re&&Oe)&&(ue.length>0||ze)&&t.createElement("div",{className:o.cx("c-contentTableRow__subtitle",(p={},p["c-contentTableRow__subtitle--".concat(ke)]="left"!==ke,p))},ue.length>0&&t.createElement(r.Text,{component:"div",size:"xSmall",theme:"u-mr--xxSmall",type:"secondary"},ue.map((function(e,n){return t.createElement(t.Fragment,{key:null==e?void 0:e.toString()},n>0&&" | ",e)}))),ze&&!fe&&t.createElement(u.Tag,{iconBackground:le,iconCustomBackground:ae,iconName:ie,imageUrl:ce,testId:re},se))),ve.map((function(e,n){return t.createElement(t.Fragment,{key:"column-".concat(n)},e.type!==l.TEXT||fe&&e.hideOnMobile?null:t.createElement("td",{className:o.cx("c-contentTableRow__column",d.getTextAlignClass(e.alignContent))},O[n]?t.createElement("div",{className:o.cx({"c-contentTableRow__column--hidden":e.hideOnExpand&&Oe})},O[n]):null),(e.type===l.AMOUNT||!e.type)&&!(fe&&e.hideOnMobile)&&t.createElement("td",{className:o.cx("c-contentTableRow__column c-contentTableRow__amountColumn",d.getTextAlignClass(e.alignContent))},void 0!==w?t.createElement("div",{className:o.cx({"c-contentTableRow__column--hidden":e.hideOnExpand&&Oe})},void 0!==w&&t.createElement(i.Amount,{isBold:!0,amount:w,locale:v,maximumFractionDigits:x,minimumFractionDigits:C,unitAfter:E}),R&&t.createElement(r.Text,{component:"div",size:"xSmall",type:h},R)):null),e.type===l.LINKS&&!(fe&&e.hideOnMobile)&&t.createElement("td",{className:o.cx("c-contentTableRow__column c-contentTableRow__linkColumn",d.getTextAlignClass(e.alignContent))},J?t.createElement("div",{className:o.cx({"c-contentTableRow__column--hidden":e.hideOnExpand&&Oe})},J.map((function(e){return t.createElement("div",{key:"l-".concat(e)},t.cloneElement(e,{theme:o.cx(e.props.theme,"c-contentTableRow__link")}))}))):null),e.type===l.BUTTONS&&!(fe&&e.hideOnMobile)&&t.createElement("td",{className:o.cx("c-contentTableRow__column c-contentTableRow__buttonsColumn",d.getTextAlignClass(e.alignContent))},k?t.createElement("div",{className:o.cx({"c-contentTableRow__column--hidden":e.hideOnExpand&&Oe})},k.map((function(e){return t.cloneElement(e,{theme:o.cx(e.props.theme,"c-contentTableRow__button")})}))):null),e.type===l.TOGGLE&&!(fe&&e.hideOnMobile)&&t.createElement("td",{className:o.cx("c-contentTableRow__column c-contentTableRow__toggleColumn",d.getTextAlignClass(e.alignContent))},we?t.createElement("div",{className:o.cx({"c-contentTableRow__column--hidden":e.hideOnExpand&&Oe})},t.cloneElement(we)):null))})),Ie&&t.createElement("td",{className:"c-contentTableRow__column c-contentTableRow__openerColumn"},t.createElement("div",{className:o.cx("c-contentTableRow__openerIcon")},je?t.createElement(m.Avatar,{iconName:"arrowDown",size:"xSmall"}):H&&$?t.createElement(m.Avatar,{iconName:"arrowRight",size:"xSmall"}):null))),je&&S&&t.createElement(b.AnimatePresence,{initial:!1},Oe&&t.createElement("tr",{"aria-labelledby":P,className:"c-contentTableRow__contentRow",id:P?"".concat(P,"-content"):void 0,role:"region"},xe&&!fe&&t.createElement("td",null," "),Ce&&!fe&&t.createElement("td",null," "),t.createElement("td",{className:o.cx("c-contentTableRow__content",{"c-contentTableRow__content--noLeftPadding":xe&&!fe}),colSpan:fe?Me:Ie?Me-1:Me,style:{overflow:"hidden"}},t.createElement(T.motion.div,{key:"content",animate:"open",exit:"collapsed",initial:"collapsed",role:"region",transition:{duration:.6,ease:[.04,.62,.23,.98]},variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}}},S)))))}));_.displayName="forwardRef(ContentTableRow)",exports.ContentTableRow=_;
|
|
2
2
|
//# sourceMappingURL=ContentTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTableRow.js","sources":["../../../../../../src/components/Components/ContentTable/ContentTableRow.tsx"],"sourcesContent":[null],"names":["COLUMN_TYPE","ContentTableRow","forwardRef","_a","ref","amount","amountCurrencyCode","amountLocale","amountMaximumFractionDigits","amountMinimumFractionDigits","amountSubtitle","amountSubtitleType","ariaLabel","_c","buttons","checkbox","children","_d","columns","customIcon","_e","enableKeyDownEvents","iconAriaLabel","iconBackgroundColor","_f","iconBadgePosition","iconName","_g","iconSize","id","imageIcon","_h","isClickable","isCollapsibleProp","isCollapsible","_j","isOpen","links","onClick","onToggle","_k","showClickableOpener","_l","showSubtitleTagIconForMobileView","_m","stackOnMobile","subtitleTagIconBackgroundColor","subtitleTagIconCustomBackgroundColor","subtitleTagIconImageUrl","subtitleTagIconName","subtitleTagTestId","subtitleTagText","_o","subtitles","testId","title","_p","titleSize","_q","titleVisual","toggle","_r","useContext","ContentTableContext","columnsDefinition","hasCheckboxes","hasIcons","hideSubtitleOnExpand","tableIsCollapsible","isHeaderHidden","isMobileDeviceView","titleAlignContent","withoutOpeners","isStackOnMobile","_s","useState","isOpened","setIsOpened","hasOpenerColumn","rowIsCollapsible","columnsCount","useMemo","length","useEffect","handleToggle","useCallback","next","hasSubtitleTag","badgeIcon","React","createElement","Avatar","backgroundColor","undefined","backgroundCustom","imageUrl","size","theme","handleClick","e","stopPropagation","handleRowClick","handleKeyDownClick","key","KEYS","Enter","Space","preventDefault","handleKeyDown","event","Fragment","concat","className","cx","role","tabIndex","onKeyDown","onMouseDown","cloneElement","__assign","ucfirst","getTextAlignClass","Title","visual","_b","Text","component","type","map","subtitle","i","toString","Tag","iconBackground","iconCustomBackground","columnDefinition","TEXT","hideOnMobile","alignContent","hideOnExpand","AMOUNT","Amount","isBold","locale","maximumFractionDigits","minimumFractionDigits","unitAfter","LINKS","link","props","BUTTONS","button","TOGGLE","AnimatePresence","initial","colSpan","style","overflow","motion","div","animate","exit","transition","duration","ease","variants","open","opacity","height","collapsed","displayName"],"mappings":"0hBA6GKA,geAAL,SAAKA,GACHA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,OAAA,QACD,CAND,CAAKA,IAAAA,EAMJ,CAAA,QAEYC,EAAkBC,EAAUA,YACvC,SACEC,EA4CAC,SA3CEC,WACAC,uBACAC,iBACAC,EAA2BL,EAAAK,4BAC3BC,EAA2BN,EAAAM,4BAC3BC,EAAcP,EAAAO,eACdC,EAAkBR,EAAAQ,mBAClBC,EAAST,EAAAS,UACTC,EAAYV,EAAAW,QAAZA,OAAU,IAAAD,EAAA,KACVE,EAAQZ,EAAAY,SACRC,EAAQb,EAAAa,SACRC,YAAAC,aAAU,GAAED,EACZE,eACAC,EAAAjB,EAAAkB,oBAAAA,OAAmB,IAAAD,GAAOA,EAC1BE,EAAanB,EAAAmB,cACbC,EAAmBpB,EAAAoB,oBACnBC,EAAiCrB,EAAAsB,kBAAjCA,OAAoB,IAAAD,EAAA,cAAaA,EACjCE,EAAQvB,EAAAuB,SACRC,aAAAC,aAAW,SAAQD,EACnBE,EAAE1B,EAAA0B,GACFC,EAAS3B,EAAA2B,UACTC,EAAmB5B,EAAA6B,YAAnBA,OAAc,IAAAD,GAAKA,EACJE,EAAiB9B,EAAA+B,cAChCC,WAAAC,cAAcD,EACdE,UACAC,YACAC,aACAC,EAAArC,EAAAsC,oBAAAA,cAA2BD,EAC3BE,GAAuCvC,EAAAwC,iCAAvCA,QAAmC,IAAAD,OACnCE,GAAAzC,EAAA0C,cAAAA,QAAa,IAAAD,IAAQA,GACrBE,GAA8B3C,EAAA2C,+BAC9BC,GAAoC5C,EAAA4C,qCACpCC,GAAuB7C,EAAA6C,wBACvBC,GAAmB9C,EAAA8C,oBACnBC,GAAiB/C,EAAA+C,kBACjBC,qBACAC,GAAAjD,EAAAkD,UAAAA,QAAS,IAAAD,GAAG,GAAEA,GACdE,GAAMnD,EAAAmD,OACNC,GAAKpD,EAAAoD,MACLC,GAAgBrD,EAAAsD,UAAhBA,QAAY,IAAAD,GAAA,QACZE,GAAAvD,EAAAwD,YAAAA,QAAW,IAAAD,GAAG,KAAIA,GAClBE,GAAMzD,EAAAyD,OAIFC,GAUFC,EAAAA,WAAWC,EAAAA,SATJC,GAAiBH,GAAA3C,QAC1B+C,GAAaJ,GAAAI,cACbC,eACAC,GAAoBN,GAAAM,qBACLC,GAAkBP,GAAA3B,cACjCmC,qBACAC,GAAkBT,GAAAS,mBAClBC,GAAiBV,GAAAU,kBACjBC,qBAGIC,GAAkB5B,IAAiByB,GAEnCI,GAA0BC,EAAAA,SAASvC,GAAlCwC,GAAQF,GAAA,GAAEG,GAAWH,GAAA,GACtBI,KAAoBV,KAAuBI,GAC3CO,GAAmB9C,QAAAA,IAAuBmC,GAC1CY,GAAeC,EAAAA,SACnB,WAAM,OAAAjB,GAAkBkB,QAAUjB,GAAgB,EAAI,IAAMC,GAAW,EAAI,GAAK,GAAKY,GAAkB,EAAI,EAAE,GAC7G,CAACd,GAAkBkB,OAAQjB,GAAeC,GAAUY,KAGtDK,aAAU,WAAM,OAAAN,GAAYzC,KAAS,CAACA,IAEtC,IAAMgD,GAAeC,EAAAA,aAAY,WAC/B,IAAMC,GAAQV,GACdC,GAAYS,GACZ/C,GAAYA,EAAS+C,EACtB,GAAE,CAACT,GAAaD,GAAUrC,IAErBgD,GAAiBN,EAAOA,SAC5B,WAAM,OAAChC,IAAuBD,KAA4BG,EAAe,GACzE,CAACF,GAAqBD,GAAyBG,KAE3CqC,GAAYP,EAAAA,SAChB,WACE,OAAAM,GAEME,
|
|
1
|
+
{"version":3,"file":"ContentTableRow.js","sources":["../../../../../../src/components/Components/ContentTable/ContentTableRow.tsx"],"sourcesContent":[null],"names":["COLUMN_TYPE","ContentTableRow","forwardRef","_a","ref","amount","amountCurrencyCode","amountLocale","amountMaximumFractionDigits","amountMinimumFractionDigits","amountSubtitle","amountSubtitleType","ariaLabel","_c","buttons","checkbox","children","_d","columns","customIcon","_e","enableKeyDownEvents","iconAriaLabel","iconBackgroundColor","_f","iconBadgePosition","iconName","_g","iconSize","id","imageIcon","_h","isClickable","isCollapsibleProp","isCollapsible","_j","isOpen","links","onClick","onToggle","_k","showClickableOpener","_l","showSubtitleTagIconForMobileView","_m","stackOnMobile","subtitleTagIconBackgroundColor","subtitleTagIconCustomBackgroundColor","subtitleTagIconImageUrl","subtitleTagIconName","subtitleTagTestId","subtitleTagText","_o","subtitles","testId","title","_p","titleSize","_q","titleVisual","toggle","_r","useContext","ContentTableContext","columnsDefinition","hasCheckboxes","hasIcons","hideSubtitleOnExpand","tableIsCollapsible","isHeaderHidden","isMobileDeviceView","titleAlignContent","withoutOpeners","isStackOnMobile","_s","useState","isOpened","setIsOpened","hasOpenerColumn","rowIsCollapsible","columnsCount","useMemo","length","useEffect","handleToggle","useCallback","next","hasSubtitleTag","badgeIcon","React","createElement","Avatar","backgroundColor","undefined","backgroundCustom","imageUrl","isIconSizing","size","theme","handleClick","e","stopPropagation","handleRowClick","handleKeyDownClick","key","KEYS","Enter","Space","preventDefault","handleKeyDown","event","Fragment","concat","className","cx","role","tabIndex","onKeyDown","onMouseDown","cloneElement","__assign","ucfirst","getTextAlignClass","Title","visual","_b","Text","component","type","map","subtitle","i","toString","Tag","iconBackground","iconCustomBackground","columnDefinition","TEXT","hideOnMobile","alignContent","hideOnExpand","AMOUNT","Amount","isBold","locale","maximumFractionDigits","minimumFractionDigits","unitAfter","LINKS","link","props","BUTTONS","button","TOGGLE","AnimatePresence","initial","colSpan","style","overflow","motion","div","animate","exit","transition","duration","ease","variants","open","opacity","height","collapsed","displayName"],"mappings":"0hBA6GKA,geAAL,SAAKA,GACHA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,Q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AA6CjD,KAAkBK,KAEjEsF,QAAStF,GAAqBU,GAAeF,GAAkBE,GAAe,EAAIA,GAClF6E,MAAO,CAAEC,SAAU,WAEnBrE,EAACC,cAAAqE,SAAOC,IAAG,CACTxD,IAAI,UACJyD,QAAQ,OACRC,KAAK,YACLP,QAAQ,YACRxC,KAAK,SACLgD,WAAY,CAAEC,SAAU,GAAKC,KAAM,CAAC,IAAM,IAAM,IAAM,MACtDC,SAAU,CACRC,KAAM,CAAEC,QAAS,EAAGC,OAAQ,QAC5BC,UAAW,CAAEF,QAAS,EAAGC,OAAQ,KAGlCzJ,MASnB,IAGFf,EAAgB0K,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAG1C,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,wDAAwD;IACxD,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAqBD,eAAO,MAAM,MAAM,wDAAyD,eAAe,KAAG,WAe7F,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 r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var a=require("
|
|
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 r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var a=require("../Logo/Logo.js");exports.Loader=function(s){var t,l=s.children,i=s.isContentPulsing,c=s.size,d=s.testId,o=s.theme,n=function(e){switch(e){case"xSmall":return"c-loader--xSmall";case"small":return"c-loader--small";case"medium":return"c-loader--medium";case"large":default:return"c-loader--large";case"xLarge":return"c-loader--xLarge";case"xxLarge":return"c-loader--xxLarge"}}(c),u=e.createElement(a.Logo,{size:null!=c?c:"large",theme:"c-loader__image"});return e.createElement("div",{className:r.cx("c-loader",n,o),"data-testid":d},e.createElement("div",{className:r.cx("c-loader__sonar1")}),e.createElement("div",{className:r.cx("c-loader__sonar2")}),e.createElement("div",{className:r.cx("c-loader__sonar3")}),e.createElement("div",{className:r.cx("c-loader__content",(t={},t["c-loader__content--pulse"]=i,t))},l||u))};
|
|
2
2
|
//# sourceMappingURL=Loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sources":["../../../../../../src/components/Components/Loader/Loader.tsx"],"sourcesContent":[null],"names":["_a","children","isContentPulsing","size","testId","theme","loaderSizeClass","getLoaderSizeClass","logo","
|
|
1
|
+
{"version":3,"file":"Loader.js","sources":["../../../../../../src/components/Components/Loader/Loader.tsx"],"sourcesContent":[null],"names":["_a","children","isContentPulsing","size","testId","theme","loaderSizeClass","getLoaderSizeClass","logo","React","createElement","Logo","className","cx","_b"],"mappings":"0dAkCsB,SAACA,SAAEC,EAAQD,EAAAC,SAAEC,EAAgBF,EAAAE,iBAAEC,EAAIH,EAAAG,KAAEC,EAAMJ,EAAAI,OAAEC,EAAKL,EAAAK,MAChEC,EApBmB,SAACH,GAC1B,OAAQA,GACN,IAAK,SACH,MAAO,mBACT,IAAK,QACH,MAAO,kBACT,IAAK,SACH,MAAO,mBACT,IAAK,QAML,QACE,MAAO,kBALT,IAAK,SACH,MAAO,mBACT,IAAK,UACH,MAAO,oBAIb,CAG0BI,CAAmBJ,GAErCK,EAAOC,EAAAC,cAACC,EAAAA,KAAK,CAAAR,KAAMA,QAAAA,EAAQ,QAASE,MAAM,oBAEhD,OACEI,EAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAAA,GAAG,WAAYP,EAAiBD,iBAAqBD,GACnEK,EAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAEA,GAAC,sBACnBJ,EAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAEA,GAAC,sBACnBJ,EAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAEA,GAAC,sBACnBJ,EAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAEA,GAAC,qBAAmBC,EAAA,CAAA,EAAIA,EAAC,4BAA6BZ,EAAgBY,KACrFb,GAAYO,GAIrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AvatarSizeType } from '../Avatar/Avatar';
|
|
2
|
+
export type LogoType = 'default' | 'text';
|
|
3
|
+
export type LogoPropsType = {
|
|
4
|
+
size?: AvatarSizeType;
|
|
5
|
+
theme?: string;
|
|
6
|
+
type?: LogoType;
|
|
7
|
+
title?: string;
|
|
8
|
+
decorative?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Logo: ({ decorative, size, theme, title, type }: LogoPropsType) => JSX.Element;
|
|
11
|
+
//# sourceMappingURL=Logo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Logo/Logo.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAU,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGzD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;AAEzC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,IAAI,6CAA0D,aAAa,KAAG,WAQ1F,CAAA"}
|
|
@@ -0,0 +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'),require("../../../utils/classBinder.js"),require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var t=require("../../../utils/hooks.js"),i=require("../Avatar/Avatar.js"),r=require("../MonetaBankLogo/MonetaBankLogo.js");exports.Logo=function(s){var a=s.decorative,o=s.size,u=s.theme,l=s.title,n=s.type,d=void 0===n?"default":n,c=t.useDsIsDarkTheme();return"text"===d?e.createElement(r.MonetaBankLogo,{decorative:a,size:o,theme:u,title:l}):e.createElement(i.Avatar,{iconName:c?"logoWhite":"logo",size:null!=o?o:"large",theme:u})};
|
|
2
|
+
//# sourceMappingURL=Logo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logo.js","sources":["../../../../../../src/components/Components/Logo/Logo.tsx"],"sourcesContent":[null],"names":["_a","decorative","size","theme","title","_b","type","isDark","useDsIsDarkTheme","React","MonetaBankLogo","createElement","Avatar","iconName"],"mappings":"4iBAgBoB,SAACA,GAAE,IAAAC,eAAYC,EAAIF,EAAAE,KAAEC,EAAKH,EAAAG,MAAEC,EAAKJ,EAAAI,MAAEC,EAAgBL,EAAAM,KAAhBA,OAAI,IAAAD,EAAG,UAASA,EAC/DE,EAASC,EAAAA,mBAEf,MAAa,SAATF,EACKG,gBAACC,iBAAc,CAACT,WAAYA,EAAYC,KAAMA,EAAMC,MAAOA,EAAOC,MAAOA,IAG3EK,EAACE,cAAAC,SAAO,CAAAC,SAAUN,EAAS,YAAc,OAAQL,KAAMA,QAAAA,EAAQ,QAASC,MAAOA,GACxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Logo/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),r=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 n=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var o=require("../../Layout/Flex/Flex.js")
|
|
1
|
+
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),r=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 n=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var o=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-slick"),require("../Collapse/Collapse.js");var c=require("../CompactButtons/CompactButtons.js");require("../../../contexts/ContentTableContext.js"),require("../ContentTable/ContentTableRow.js"),require("../DataTable/DataTable.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("react-dom"),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");exports.ProductHeader=function(m){var p=m.actions,_=m.actionsOtherButton,x=m.actionsSize,g=m.amount,b=m.amountHiddenPrefix,v=m.amountHideIcon,y=void 0!==v&&v,j=m.amountIsBold,H=void 0===j||j,q=m.amountIsInline,f=m.amountMaximumFractionDigits,S=void 0===f?2:f,h=m.amountMinimumFractionDigits,C=void 0===h?2:h,z=m.amountSize,k=m.amountType,E=m.amountUnitAfter,T=m.amountUnitBefore,I=m.amountUnitTheme,A=m.belowHeaderContent,L=m.customSubtitle,B=m.customTitle,D=m.externalLink,N=m.isHeaderClickable,F=void 0!==N&&N,w=m.linkTo,M=m.locale,U=m.onHeaderClick,V=m.secondaryAmount,P=m.secondaryAmountHideIcon,W=void 0!==P&&P,O=m.secondaryAmountIsBold,R=m.secondaryAmountIsInline,G=m.secondaryAmountMaximumFractionDigits,K=void 0===G?2:G,J=m.secondaryAmountMinimumFractionDigits,Q=void 0===J?2:J,X=m.secondaryAmountSize,Y=m.secondaryAmountType,Z=m.secondaryAmountUnitAfter,$=m.secondaryAmountUnitBefore,ee=m.secondaryAmountUnitTheme,te=m.secondaryLabel,re=m.secondaryLabelSize,ne=m.size,oe=void 0===ne?"medium":ne,ie=m.subtitle,ae=m.subtitleHiddenPrefix,le=m.subtitleSize,se=m.testId,ue=m.theme,ce=m.title,de=m.titleHiddenPrefix,me=m.titleIconBackgroundColor,pe=void 0===me?"bgBrandDefault":me,_e=m.titleIconBackgroundCustom,xe=m.titleIconColor,ge=m.titleIconName,be=m.titleIconSize,ve=m.titleIconText,ye=m.titleSize,je=void 0===ye?"h2":ye,He=m.titleVisual,qe=m.titleWithoutMargin,fe=void 0===qe||qe,Se=m.topRightButtons,he=m.topRightCustomContent,Ce=r.useHistory(),ze=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"}}}(oe),ke=null!=He?He:ze.titleVisual,Ee=null!=le?le:ze.subtitleSize,Te=null!=re?re:ze.secondaryLabelSize,Ie=null!=z?z:ze.amountSize,Ae=null!=X?X:ze.secondaryAmountSize,Le=null!=be?be:ze.titleIconSize,Be=null!=x?x:ze.actionsSize,De="small"===oe&&!z,Ne="small"===oe&&!X,Fe="xLarge"===oe&&!X,we=B||ce,Me=!!L||"string"==typeof ie,Ue=!!ge||!!ve,Ve=t.Children.count(he)>0,Pe=t.Children.count(Se)>0,We=Ve,Oe=!We&&Pe,Re=!We&&!Oe&&"number"==typeof g,Ge=We||Oe||Re,Ke=!!te||"number"==typeof V,Je=!!(null==p?void 0:p.length),Qe=t.Children.count(A)>0,Xe=!(Ue||Me||Ge||Ke||Je||Qe),Ye=Boolean(w||D),Ze=Boolean(U||Ye),$e=F&&Ze,et=t.useCallback((function(){"function"!=typeof w?w&&Ce.push(w):w()}),[Ce,w]),tt=t.useCallback((function(){D&&window.open(D,"_blank","noopener,noreferrer")}),[D]),rt=t.useCallback((function(){D?tt():w&&et()}),[tt,et,D,w]),nt=t.useCallback((function(e){"preventDefault"in e&&e.preventDefault(),et()}),[et]),ot=t.useCallback((function(){$e&&(U?U():Ye&&rt())}),[rt,Ye,$e,U]),it=t.useCallback((function(e){$e&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),ot()))}),[ot,$e]),at=function(){return w||D?t.createElement(d.Link,{allowEventPropagation:!1,ariaLabel:ce,"data-testid":se?"productHeader-link-".concat(se):void 0,linkUrl:D||("string"==typeof w?w:"#"),target:D?"_blank":void 0,theme:"c-productHeader__titleLink",onClick:D?void 0:nt},t.createElement(l.Title,{isWithoutMargin:fe,size:je,theme:n.cx("c-productHeader__title",{"c-productHeader__title--customVisual":!!He}),visual:ke},de&&t.createElement("span",{className:"u-vHide"},de),we)):t.createElement(l.Title,{isWithoutMargin:fe,size:je,theme:n.cx("c-productHeader__title",{"c-productHeader__title--customVisual":!!He}),visual:ke},de&&t.createElement("span",{className:"u-vHide"},de),we)},lt=$e?{onClick:ot,onKeyDown:it,role:"button",tabIndex:0}:{};if(Xe)return t.createElement("div",e.__assign({},lt,{className:n.cx("c-productHeader c-productHeader--titleOnly",{"c-productHeader--headerClickable":$e,"c-productHeader--headerClickableWithTitleLink":$e&&Ye},ue),"data-testid":se}),at());var st=t.createElement(t.Fragment,null,t.createElement("div",{className:"c-productHeader__colTitle"},at()),Me?t.createElement("div",{className:"c-productHeader__colSubtitle"},L?t.createElement(t.Fragment,null,ae&&t.createElement("span",{className:"u-vHide"},ae),L):t.createElement(a.Text,{size:Ee,theme:n.cx("c-productHeader__subtitle",{"c-productHeader__subtitle--customSize":!!le}),type:"secondary"},ae&&t.createElement("span",{className:"u-vHide"},ae),ie)):null);return t.createElement("div",e.__assign({},lt,{className:n.cx("c-productHeader",{"c-productHeader--withTitleIcon":Ue,"c-productHeader--small":"small"===oe,"c-productHeader--xLarge":"xLarge"===oe,"c-productHeader--headerClickable":$e,"c-productHeader--headerClickableWithTitleLink":$e&&Ye},ue),"data-testid":se}),t.createElement("div",{className:"c-productHeader__layout"},Ue?t.createElement("div",{className:"c-productHeader__colLeft"},t.createElement("div",{className:"c-productHeader__colIcon"},t.createElement(u.Avatar,{backgroundColor:pe,backgroundCustom:_e,color:xe,iconName:ge,size:Le,text:ve})),t.createElement("div",{className:"c-productHeader__colLeftInner"},st)):t.createElement("div",{className:"c-productHeader__colLeft"},st),Ge||Ke?t.createElement("div",{className:"c-productHeader__colRight"},Ge?t.createElement("div",null,We?he:null,Oe?t.createElement(s.ButtonsGroup,null,Se):null,Re?t.createElement(t.Fragment,null,b&&t.createElement("span",{className:"u-vHide"},b),t.createElement(i.Amount,{amount:g,hideIcon:y,isBold:H,isInline:q,locale:M,maximumFractionDigits:S,minimumFractionDigits:C,size:Ie,theme:n.cx("c-productHeader__amount",{"c-productHeader__amount--small":De}),type:k,unitAfter:E,unitBefore:T,unitTheme:I})):null):null,Ke?t.createElement("div",null,te?t.createElement(o.Flex,{alignItems:"baseline",direction:"row",justifyContent:"end",theme:"c-productHeader__secondary"},t.createElement(a.Text,{component:"span",size:Te,theme:n.cx("c-productHeader__secondaryLabel",{"c-productHeader__secondaryLabel--customSize":!!re})},te),"number"==typeof V?t.createElement(i.Amount,{amount:V,hideIcon:W,isBold:O,isInline:R,locale:M,maximumFractionDigits:K,minimumFractionDigits:Q,size:Ae,theme:n.cx("c-productHeader__amount",{"c-productHeader__amount--small":Ne,"c-productHeader__secondaryAmount--xLarge":Fe}),type:Y,unitAfter:Z,unitBefore:$,unitTheme:n.cx(ee,{"c-productHeader__secondaryAmount--xLarge":Fe})}):null):null):null):null),Je?t.createElement("div",{className:"c-productHeader__actions"},t.createElement(c.CompactButtons,{buttons:p,otherButton:_,size:Be})):null,Qe?t.createElement("div",{className:"c-productHeader__below"},A):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","_o","titleWithoutMargin","topRightButtons","topRightCustomContent","history","useHistory","defaultSizes","getDefaultSizesByHeaderSize","resolvedTitleVisual","resolvedSubtitleSize","resolvedSecondaryLabelSize","resolvedAmountSize","resolvedSecondaryAmountSize","resolvedTitleIconSize","resolvedActionsSize","shouldUseSmallAmountTheme","shouldUseSmallSecondaryAmountTheme","shouldUseXLargeSecondaryAmountTheme","titleContent","hasSubtitle","hasIcon","hasTopRightCustomContent","React","Children","count","hasTopRightButtons","showTopRightCustomContent","showTopRightButtons","showAmount","hasTopRight","hasBottomRight","hasActions","length","hasBelowHeaderContent","isTitleOnly","hasTitleLink","Boolean","hasHeaderAction","isWholeHeaderClickable","executeInternalNavigation","useCallback","push","executeExternalNavigation","window","open","executeHeaderLinkAction","onInternalTitleClick","e","preventDefault","handleWholeHeaderClick","handleWholeHeaderKeyDown","key","renderTitle","createElement","Link","allowEventPropagation","ariaLabel","concat","undefined","linkUrl","target","onClick","Title","isWithoutMargin","cx","visual","className","wrapperInteractiveProps","onKeyDown","role","tabIndex","leftContent","Fragment","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":"
|
|
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","_o","titleWithoutMargin","topRightButtons","topRightCustomContent","history","useHistory","defaultSizes","getDefaultSizesByHeaderSize","resolvedTitleVisual","resolvedSubtitleSize","resolvedSecondaryLabelSize","resolvedAmountSize","resolvedSecondaryAmountSize","resolvedTitleIconSize","resolvedActionsSize","shouldUseSmallAmountTheme","shouldUseSmallSecondaryAmountTheme","shouldUseXLargeSecondaryAmountTheme","titleContent","hasSubtitle","hasIcon","hasTopRightCustomContent","React","Children","count","hasTopRightButtons","showTopRightCustomContent","showTopRightButtons","showAmount","hasTopRight","hasBottomRight","hasActions","length","hasBelowHeaderContent","isTitleOnly","hasTitleLink","Boolean","hasHeaderAction","isWholeHeaderClickable","executeInternalNavigation","useCallback","push","executeExternalNavigation","window","open","executeHeaderLinkAction","onInternalTitleClick","e","preventDefault","handleWholeHeaderClick","handleWholeHeaderKeyDown","key","renderTitle","createElement","Link","allowEventPropagation","ariaLabel","concat","undefined","linkUrl","target","onClick","Title","isWithoutMargin","cx","visual","className","wrapperInteractiveProps","onKeyDown","role","tabIndex","leftContent","Fragment","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":"o7EAwN6B,SAACA,OAC5BC,EAAOD,EAAAC,QACPC,EAAkBF,EAAAE,mBAClBC,EAAWH,EAAAG,YACXC,EAAMJ,EAAAI,OACNC,EAAkBL,EAAAK,mBAClBC,mBAAAC,cAAsBD,EACtBE,EAAAR,EAAAS,aAAAA,cAAmBD,EACnBE,EAAcV,EAAAU,eACdC,EAA+BX,EAAAY,4BAA/BA,OAA2B,IAAAD,EAAG,EAACA,EAC/BE,EAA+Bb,EAAAc,4BAA/BA,OAA2B,IAAAD,EAAG,EA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/B,cAAc,cAAc,CAAA;AAC5B,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("./ActionBar/ActionBar.js"),
|
|
1
|
+
"use strict";var e=require("./ActionBar/ActionBar.js"),o=require("./Alert/Alert.js"),r=require("./Avatar/Avatar.js"),t=require("./Badge/Badge.js"),a=require("./Button/Button.js"),s=require("./Button/ButtonsGroup.js"),i=require("./ButtonTooltip/ButtonTooltip.js"),d=require("./Card/Card.js"),n=require("./Card/_elements_/CardCustomTrigger.js"),u=require("./CardView/CardView.js"),l=require("./Carousel/Carousel.js"),p=require("./Collapse/Collapse.js"),x=require("./CompactButtons/CompactButtons.js"),C=require("./ContentTable/ContentTable.js"),j=require("./ContentTable/ContentTableRow.js"),q=require("./DataTable/DataTable.js"),T=require("./DataTable/DataTableItem.js"),D=require("./DataTable/DataTableDivider.js"),M=require("./Divider/Divider.js"),m=require("./Dropdown/Dropdown.js"),L=require("./Dropdown/_elements_/DropdownDivider.js"),g=require("./Dropdown/_elements_/DropdownItem.js"),c=require("./Dropdown/_elements_/DropdownMenu.js"),_=require("./Dropdown/_elements_/DropdownInfoText.js"),w=require("./Dropdown/_elements_/DropdownLoading.js"),I=require("./IconList/IconList.js"),B=require("./IconList/IconListItem.js"),b=require("./Image/Image.js"),S=require("./Link/Link.js"),A=require("./List/List.js"),P=require("./List/ListItem.js"),v=require("./Loader/Loader.js"),f=require("./Logo/Logo.js"),H=require("./Modal/_elements_/ModalContent.js"),k=require("./Modal/_elements_/ModalDialog.js"),N=require("./Modal/_elements_/ModalFooter.js"),h=require("./Modal/_elements_/ModalHeader.js"),R=require("./Modal/Modal.js"),U=require("./Modal/_elements_/Modal.hook.js"),F=require("./MonetaBankLogo/MonetaBankLogo.js"),E=require("./NotificationCard/NotificationCard.js"),V=require("./NotificationCard/NotificationCardHeader.js"),G=require("./Pills/Pills.js"),O=require("./ProductCard/ProductCard.js"),X=require("./ProductHeader/ProductHeader.js"),y=require("./SuperModal/_elements_/SuperModal.js"),z=require("./SuperModal/_elements_/SuperModalContent.js"),J=require("./SuperModal/_elements_/SuperModalHeader.js"),K=require("./SuperModal/_elements_/SuperModalProvider.js"),Q=require("./SuperModal/SuperModal.hook.js"),W=require("./SuperModal/SuperModal.context.js"),Y=require("./Tag/Tag.js"),Z=require("./Tile/Tile.js"),$=require("./Toast/Toast.js"),ee=require("./Toast/Toast.hook.js"),oe=require("./Tooltip/Tooltip.js"),re=require("./UserAuth/UserAuth.js");exports.ActionBar=e.ActionBar,exports.Alert=o.Alert,exports.Avatar=r.Avatar,exports.Badge=t.Badge,exports.Button=a.Button,exports.ButtonsGroup=s.ButtonsGroup,exports.ButtonTooltip=i.ButtonTooltip,exports.Card=d.Card,exports.CardCustomTrigger=n.CardCustomTrigger,exports.CardView=u.CardView,exports.Carousel=l.Carousel,exports.Collapse=p.Collapse,exports.CompactButtons=x.CompactButtons,exports.ContentTable=C.ContentTable,exports.getTextAlignClass=C.getTextAlignClass,exports.ContentTableRow=j.ContentTableRow,exports.DataTable=q.DataTable,exports.DataTableContext=q.DataTableContext,exports.useDataTableContext=q.useDataTableContext,exports.DataTableItem=T.DataTableItem,exports.DataTableDivider=D.DataTableDivider,exports.Divider=M.Divider,exports.Dropdown=m.Dropdown,exports.DropdownDivider=L.DropdownDivider,exports.DropdownItem=g.DropdownItem,exports.DropdownMenu=c.DropdownMenu,exports.DropdownInfoText=_.DropdownInfoText,exports.DropdownLoading=w.DropdownLoading,exports.IconList=I.IconList,exports.IconListItem=B.IconListItem,exports.Image=b.Image,exports.Link=S.Link,exports.List=A.List,exports.ListItem=P.ListItem,exports.Loader=v.Loader,exports.Logo=f.Logo,exports.ModalContent=H.ModalContent,exports.ModalDialog=k.ModalDialog,exports.ModalFooter=N.ModalFooter,exports.ModalHeader=h.ModalHeader,exports.Modal=R.Modal,exports.useModal=U.useModal,exports.MonetaBankLogo=F.MonetaBankLogo,exports.NotificationCard=E.NotificationCard,exports.NotificationCardHeader=V.NotificationCardHeader,exports.Pills=G.Pills,exports.ProductCard=O.ProductCard,exports.ProductHeader=X.ProductHeader,exports.SuperModal=y.default,exports.SuperModalContent=z.default,exports.SuperModalHeader=J.default,exports.SuperModalProvider=K.default,exports.SUPER_MODAL_PREFIX=Q.SUPER_MODAL_PREFIX,exports.useSuperModal=Q.useSuperModal,exports.SuperModalContext=W.SuperModalContext,exports.Tag=Y.Tag,exports.Tile=Z.Tile,exports.ToastContainer=$.ToastContainer,exports.useToast=ee.useToast,exports.Tooltip=oe.Tooltip,exports.UserAuth=re.UserAuth;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -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 r=require("../../../../utils/classBinder.js");require('./../../../../ext/text-mask-addons/dist/textMaskAddons.js');var t=require("../../../Components/Button/Button.js");require('./../../../../ext/tslib/tslib.es6.js');var o=require("../../../Layout/Flex/Flex.js"),n=require("../../../Components/IconList/IconList.js"),i=require("../../../Components/IconList/IconListItem.js");require("
|
|
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 r=require("../../../../utils/classBinder.js");require('./../../../../ext/text-mask-addons/dist/textMaskAddons.js');var t=require("../../../Components/Button/Button.js");require('./../../../../ext/tslib/tslib.es6.js');var o=require("../../../Layout/Flex/Flex.js"),n=require("../../../Components/IconList/IconList.js"),i=require("../../../Components/IconList/IconListItem.js");require("../../../Typography/Amount/Amount.js");var s=require("../../../Typography/Text/Text.js");require('./../../../../ext/camelcase/index.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-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("react-dom"),require("../../../../contexts/ContentTableContext.js"),require("../../../Components/ContentTable/ContentTableRow.js"),require("../../../Components/DataTable/DataTable.js"),require("../../../Components/Link/Link.js"),require("react-router-dom"),require("../../../Components/SuperModal/SuperModal.context.js"),require("../../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("./MergeImageCards.js"),require("../../Select/_elements_/Select2CategorisedOptions.js"),require("../../Select/_elements_/Select2Options.js"),require("../../Slider/Slider.js"),require("../../../../contexts/MobilePanelContext.js");var l=require('./../../../../ext/ramda/es/isNil.js');exports.FileList=function(a){var u=a.disableRemovalOfUploaded,d=a.files,c=a.handleOnDelete,m=a.hideImagePreview,p=void 0!==m&&m,j=a.messages,q=j.ariaForDelete,_=j.multipleUploaderErrors,f=a.onShow,v=a.selectMultiple,x=void 0!==v&&v,g=a.uploadProgress,C=a.uploadedFiles,E=void 0===C?[]:C,y=a.withProgressBar,b=void 0!==y&&y,D=function(e){return function(){return f&&f(e)}},N=function(o){return o.src?e.createElement("div",{className:r.cx("f-fileUpload__imagePreview")},e.createElement("img",{alt:"",className:"file-img",src:o.src}),e.createElement("div",{className:"f-fileUpload__imageOverlay"}),e.createElement(t.Button,{isRounded:!0,"aria-hidden":"true",ariaLabel:"",onlyIconName:"search",theme:"f-fileUpload__overlaySearch",onClick:D(o.id)}),e.createElement(t.Button,{isRounded:!0,ariaLabel:"".concat(q," ").concat(o.name),onlyIconName:"bin",theme:"f-fileUpload__overlayDelete",onClick:(n=o.id,function(){return c&&c(n)})})):e.createElement(e.Fragment,null);var n},h=function(e){return g&&!l.default(g[e.id])},I=function(n){var l,a,d=h(n),m=function(e){return g&&g[e.id]||0}(n),p=n.errors&&(null===(l=n.errors)||void 0===l?void 0:l.length)>0||n.customError,j=!d&&E.some((function(e){return e.id===n.id}));return e.createElement(i.IconListItem,{key:n.id,iconColor:p?"fgErrorDefault":void 0,iconName:p?"triangleExclamation":void 0,iconSize:"medium"},e.createElement(e.Fragment,null,p&&e.createElement(s.Text,{component:"div",size:"small",type:"error",weight:"bold"},"".concat(n.name," ").concat(null==_?void 0:_.didNotUpload)),!p&&e.createElement(e.Fragment,null,e.createElement(o.Flex,{alignItems:"center",justifyContent:"space-between"},e.createElement(t.Button,{size:"small",theme:r.cx("f-fileUpload__fileName",{"is-uploaded":d}),type:"transparent",onClick:D(n.id)},n.name),!(j&&u)&&e.createElement(t.Button,{ariaLabel:"".concat(q," ").concat(n.name),color:"error",onlyIconName:d?"close":"bin",size:"small",type:"transparent",onClick:function(){return c(n.id)}}))),p&&(null===(a=null==n?void 0:n.errors)||void 0===a?void 0:a.map((function(t,o){return e.createElement("div",{key:o,className:r.cx("f-fileUpload__errorDesc")},e.createElement(s.Text,{component:"div",size:"small",type:"error"},_&&_[t.code]))}))),n.customError&&e.createElement("div",{key:"customError",className:r.cx("f-fileUpload__errorDesc")},e.createElement(s.Text,{component:"div",size:"small",type:"error"},n.customError)),d&&e.createElement("div",{className:r.cx("f-fileUpload__progressBar")},e.createElement("div",{className:r.cx("f-fileUpload__progress"),style:{right:"".concat(100-m,"%")}}))))};if(1===d.length&&!x&&b){var T=d[0],w=h(T);return e.createElement(e.Fragment,null,!p&&N(d[0]),(p||w)&&e.createElement(n.IconList,null,d.map(I)))}return p||x||1!==d.length?e.createElement(n.IconList,null,d.map(I)):N(d[0])};
|
|
2
2
|
//# sourceMappingURL=FileList.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),n=require("../../../hocs/withDisabledTooltip.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 r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var o=require("../../Layout/Flex/Flex.js"),a=require("../../Layout/Grid/Col.js");require("../../
|
|
1
|
+
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react"),n=require("../../../hocs/withDisabledTooltip.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 r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var o=require("../../Layout/Flex/Flex.js"),a=require("../../Layout/Grid/Col.js");require("../../Typography/Amount/Amount.js");var i=require("../../Typography/Text/Text.js");require("../../Components/Button/Button.js"),require('./../../../ext/camelcase/index.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-slick"),require("../../Components/Collapse/Collapse.js"),require('./../../../ext/lodash/_baseToString.js');var s=require("../Input/Input.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("react-dom"),require("../../../contexts/ContentTableContext.js"),require("../../Components/ContentTable/ContentTableRow.js"),require("../../Components/DataTable/DataTable.js"),require("../../Components/Link/Link.js"),require("react-router-dom"),require("../../Components/SuperModal/SuperModal.context.js"),require("../Autocomplete/Autocomplete.js");var u=require("../Label2/Label2.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("../FileUpload/_parts_/MergeImageCards.js"),require("../Select/_elements_/Select2CategorisedOptions.js"),require("../Select/_elements_/Select2Options.js"),require("../../../contexts/MobilePanelContext.js");var l=["mousemove"],d=["mouseup"],c=["touchmove"],p=["touchup","touchend","touchcancel"],m=function(e,t,n){return Math.round((n-e)/t)*t+e},g=function(e,t,n){return Math.min(Math.max(n,e),t)},f=function(e,t,n,r){return g(e,t,m(e,n,r))},h=function(e,t,n,r){return g(0,1,(m(e,n,r)-e)/(t-e))},v=function(v){function x(){var e=null!==v&&v.apply(this,arguments)||this;return e.state={dragging:!1,percentage:0},e.onChange=function(t,n){var r,o=e.props,a=o.max,i=o.min,s=o.onChange,u=o.step,l=o.steps;if(l&&l.length>0&&"number"==typeof n&&n){var d=l.reduce((function(e,t){return Math.abs(t-n)<Math.abs(e-n)?t:e}));r=l[l.findIndex((function(e){return e===d}))]}else r="number"==typeof n?f(i,a,u,n):e.getValueFromDragEvent(t);s&&"number"==typeof r&&s(t,Number(r.toFixed(5)))},e.onDragStart=function(t,n){var r=e.props.onDragStart;t.preventDefault(),e.addEventListeners(n),e.setState({dragging:!0}),e.slider&&e.slider.focus(),e.onChange(t),r&&r(t,e.props.value)},e.onDragStop=function(t){var n=e.props.onDragStop;e.removeEventListeners(),e.setState({dragging:!1}),n&&n(t,e.props.value)},e.onDragUpdate=function(t){requestAnimationFrame((function(){e.onChange(t)}))},e.getValueFromClientOffset=function(t,n,r,o,a){if(o&&o.length>0){var i=(a-e.getSliderStartCoordinate())/e.getSliderLength();return o[Math.round(i*(o.length-1))]}return function(e,t,n,r){return g(e,t,m(e,n,r*(t-e)+e))}(t,n,r,(a-e.getSliderStartCoordinate())/e.getSliderLength())},e.getSliderStartCoordinate=function(){return e.slider?e.slider.getBoundingClientRect().left:NaN},e.getSliderEndCoordinate=function(){return e.slider?e.slider.getBoundingClientRect().right:NaN},e.getSliderLength=function(){return e.getSliderEndCoordinate()-e.getSliderStartCoordinate()},e.getValueFromDragEvent=function(t){var n=e.props,r=n.max,o=n.min,a=n.step,i=n.steps,s=function(e){return"number"==typeof e.clientX?e.clientX:e.touches instanceof Object&&e.touches[0]&&"number"==typeof e.touches[0].clientX?e.touches[0].clientX:NaN}(t);return e.getValueFromClientOffset(o,r,a,i,s)},e.getValueFromKeyboardEvent=function(t){if(t&&"string"==typeof t.key){var n=e.props,r=n.max,o=n.min,a=n.step,i=n.steps,s=n.value,u=0;if(i&&i.length>0){var l=i.findIndex((function(e){return e===s}));u=l<0?0:l}switch(t.key){case"ArrowUp":case"ArrowRight":return i&&i.length>0?i[u+1]:a&&s+a;case"ArrowDown":case"ArrowLeft":return i&&i.length>0?i[u-1]:a&&s-a;case"PageUp":return i&&i.length>0?i[u+5]:a&&s+5*a;case"PageDown":return i&&i.length>0?i[u-5]:a&&s-5*a;case"Home":return i&&i.length>0?i[0]:o;case"End":return i&&i.length>0?i[i.length-1]:r;default:return null}}return null},e.addEventListeners=function(t){t?(c.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),p.forEach((function(t){return document.addEventListener(t,e.onDragStop)}))):(l.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),d.forEach((function(t){return document.addEventListener(t,e.onDragStop)})))},e.removeEventListeners=function(){c.forEach((function(t){return document.removeEventListener(t,e.onDragUpdate)})),p.forEach((function(t){return document.removeEventListener(t,e.onDragStop)})),l.forEach((function(t){return document.removeEventListener(t,e.onDragUpdate)})),d.forEach((function(t){return document.removeEventListener(t,e.onDragStop)}))},e.handleBlur=function(t){var n=e.props,r=n.onBlur,o=n.value;r&&r(t,o)},e.handleFocus=function(t){var n=e.props,r=n.onFocus,o=n.value;r&&r(t,o)},e.handleKeyDown=function(t){var n=e.props,r=n.isDisabled,o=n.onKeyDown;if(!r){var a=e.getValueFromKeyboardEvent(t);"number"==typeof a&&(t.preventDefault(),e.onChange(t,a)),o&&o(t,"number"==typeof a?a:e.props.value)}},e.handleKeyPress=function(t){var n=e.props,r=n.isDisabled,o=n.onKeyPress,a=n.value;r||o&&o(t,a)},e.handleKeyUp=function(t){var n=e.props,r=n.isDisabled,o=n.onKeyUp,a=n.value;r||o&&o(t,a)},e.handleMouseDown=function(t){return e.props.isDisabled?void 0:e.onDragStart(t,!1)},e.handleTouchStart=function(t){return e.props.isDisabled?void 0:e.onDragStart(t,!0)},e.handleInputChange=function(t){var n=e.props.onChange;n&&n(void 0,Number(Number(t).toFixed(5)))},e.handleInputBlur=function(t){var n=e.props,r=n.max,o=n.min,a=n.onChange,i=n.step,s=f(o,r,i,Number(t));a&&"number"==typeof s&&a(void 0,Number(s.toFixed(5)))},e}return e.__extends(x,v),x.prototype.componentDidMount=function(){var e=this.props,t=e.max,n=e.min,r=e.step,o=e.value;this.setState({percentage:h(n,t,r,o)})},x.getDerivedStateFromProps=function(e){var t=e.max,n=e.min,r=e.step,o=e.steps,a=e.value;if(o&&o.length>0){var i=o.reduce((function(e,t){return Math.abs(t-a)<Math.abs(e-a)?t:e})),s=o.findIndex((function(e){return e===i}));return{percentage:100/(o.length-1)*s/100}}return{percentage:h(n,t,r,a)}},x.prototype.render=function(){var l=this,d=this.props,c=d.disabledTooltip,p=d.inputProps,m=void 0===p?{name:"sliderInput"}:p,g=d.isDisabled,f=d.label,h=d.max,v=d.maxLabel,x=d.maxLabelSrText,b=d.min,C=d.minLabel,D=d.minLabelSrText,j=d.readOnlyValue,q=d.testId,E=d.theme,S=d.value,_=d.withInput,y=this.state,w=y.dragging,L=y.percentage;return n.withDisabledTooltip({isDisabled:g,disabledTooltip:c})(t.createElement("div",{className:r.cx("f-slider",{"f-slider--dragging":w,"f-slider--disabled":g},E),"data-testid":q},t.createElement(o.Flex,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(a.Col,{md:9,theme:"u-pt--xSmall u-pb--xSmall",xl:8,xs:12},f&&t.createElement(u.Label2,{htmlFor:m.id||"slider-line-".concat(q),id:"slider-label-".concat(q),theme:"f-slider__label"},f)),_&&t.createElement(a.Col,{md:3,xl:4,xs:12},t.createElement(s.Input,e.__assign({},m,{aria:!0,type:"number",value:S.toString(),onBlur:this.handleInputBlur,onChange:this.handleInputChange}))),!_&&j&&t.createElement(a.Col,{md:3,xl:4,xs:12},t.createElement(i.Text,{isTextRight:!0,size:"small",weight:"medium"},j))),t.createElement("div",{ref:function(e){l.slider=e},"aria-disabled":g,"aria-labelledby":"".concat(f?"slider-label-"+q:""),"aria-valuemax":h,"aria-valuemin":b,"aria-valuenow":S,"aria-valuetext":String(S),className:r.cx("f-slider__drag"),id:"slider-line-".concat(q),role:"slider",tabIndex:g?-1:0,onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart},t.createElement("div",{className:r.cx("f-slider__line")}),t.createElement("div",{className:r.cx("f-slider__filledLine"),style:{left:0,right:"".concat(100*(1-L),"%")}}),t.createElement("div",{className:r.cx("f-slider__handle"),style:{left:"".concat(100*L,"%")}})),(C||v)&&t.createElement("div",{className:r.cx("f-slider__labels")},t.createElement("span",null,D&&t.createElement("span",{className:"u-vHide"},D),C),t.createElement("span",null,x&&t.createElement("span",{className:"u-vHide"},x),v))))},x.defaultProps={hideLabels:!1},x}(t.Component);exports.Slider=v;
|
|
2
2
|
//# sourceMappingURL=Slider.js.map
|
|
@@ -1,33 +1,77 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import { Payload } from '../../../types';
|
|
2
|
+
import { ColorType, IconNameType, Payload } from '../../../types';
|
|
3
3
|
import { ComponentPropsType } from '../../../utils';
|
|
4
4
|
export interface BarChartData {
|
|
5
|
+
/** Bar item ID */
|
|
5
6
|
id: string;
|
|
7
|
+
/** Bar item label */
|
|
6
8
|
name: string;
|
|
7
|
-
|
|
8
|
-
color: string;
|
|
9
|
+
/** Bar item value */
|
|
9
10
|
amount: number;
|
|
11
|
+
/** Avatar icon name. Use either `iconName` or `imageUrl` for every item, or do not use icons at all. Do not mix items with icons and items without icons in one chart. */
|
|
12
|
+
iconName?: IconNameType;
|
|
13
|
+
/** Avatar image URL. Use either `iconName` or `imageUrl` for every item, or do not use icons at all. Do not mix items with icons and items without icons in one chart. */
|
|
14
|
+
imageUrl?: string;
|
|
15
|
+
/** Avatar background color */
|
|
16
|
+
backgroundColor?: ColorType;
|
|
17
|
+
/** Avatar custom background color */
|
|
18
|
+
backgroundCustom?: string;
|
|
19
|
+
/** Avatar icon color */
|
|
20
|
+
iconColor?: ColorType;
|
|
21
|
+
/** Bar color */
|
|
22
|
+
barColor?: ColorType;
|
|
23
|
+
/** Bar custom color */
|
|
24
|
+
barCustomColor?: string;
|
|
10
25
|
}
|
|
11
26
|
export interface CustomTickPropsType {
|
|
27
|
+
/** Tick x position */
|
|
12
28
|
x: number;
|
|
29
|
+
/** Tick y position */
|
|
13
30
|
y: number;
|
|
14
|
-
payload
|
|
31
|
+
/** Tick payload value */
|
|
32
|
+
payload: {
|
|
33
|
+
value: string | number;
|
|
34
|
+
};
|
|
35
|
+
/** Tick item index */
|
|
15
36
|
index: number;
|
|
16
37
|
}
|
|
17
38
|
export interface CustomTooltipType {
|
|
39
|
+
/** Flag whether tooltip is active */
|
|
18
40
|
active: boolean;
|
|
41
|
+
/** Tooltip type */
|
|
19
42
|
type: string;
|
|
43
|
+
/** Tooltip payload */
|
|
20
44
|
payload: Payload;
|
|
45
|
+
/** Tooltip label */
|
|
21
46
|
label: string;
|
|
22
47
|
}
|
|
23
48
|
export interface BarChartPropsType extends ComponentPropsType {
|
|
49
|
+
/** Chart data */
|
|
24
50
|
data: BarChartData[];
|
|
51
|
+
/** Bar size */
|
|
25
52
|
barSize?: number;
|
|
53
|
+
/** Callback called on bar click */
|
|
26
54
|
onBarClick?: (bar: BarChartData) => void;
|
|
55
|
+
/** Value step used for calculating chart domain */
|
|
27
56
|
domain?: number;
|
|
57
|
+
/** Axis tick formatter */
|
|
28
58
|
tickFormatter?: (value: number) => string;
|
|
59
|
+
/** Custom tooltip content */
|
|
29
60
|
getTooltipContent?: ({ active, label, payload }: CustomTooltipType) => ReactElement | null;
|
|
61
|
+
/** Left offset for horizontal chart labels */
|
|
30
62
|
leftOffset?: number;
|
|
63
|
+
/** Chart orientation */
|
|
64
|
+
type?: 'horizontal' | 'vertical';
|
|
65
|
+
/** Chart height */
|
|
66
|
+
height?: number;
|
|
67
|
+
/** Flag whether chart grid and value axis are shown */
|
|
68
|
+
showGrid?: boolean;
|
|
69
|
+
/** Flag whether chart text labels are shown */
|
|
70
|
+
showText?: boolean;
|
|
71
|
+
/** Flag whether hover background effect is shown */
|
|
72
|
+
hoverEffect?: boolean;
|
|
73
|
+
/** Flag whether tooltip is shown */
|
|
74
|
+
showTooltip?: boolean;
|
|
31
75
|
}
|
|
32
|
-
export declare const BarChart: ({ barSize, data, domain, getTooltipContent, leftOffset, onBarClick, tickFormatter }: BarChartPropsType) => React.JSX.Element;
|
|
76
|
+
export declare const BarChart: ({ barSize, data, domain, getTooltipContent, height, hoverEffect, leftOffset, onBarClick, showGrid, showText, showTooltip, tickFormatter, type }: BarChartPropsType) => React.JSX.Element;
|
|
33
77
|
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../../../src/components/Graphs/BarChart/BarChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources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