@mmb-digital/ds-lilly 1.0.0-alpha.4 → 1.0.0-alpha.6
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/Dropdown/Dropdown.d.ts +3 -1
- package/cjs/components/Components/Dropdown/Dropdown.d.ts.map +1 -1
- package/cjs/components/Components/Dropdown/Dropdown.js +1 -1
- package/cjs/components/Components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Form/DatePicker/DatePicker.d.ts +3 -3
- package/cjs/components/Form/DatePicker/DatePicker.d.ts.map +1 -1
- package/cjs/components/Form/DatePicker/DatePicker.js +1 -1
- package/cjs/components/Form/DatePicker/DatePicker.js.map +1 -1
- package/cjs/components/Form/Multiselect/Multiselect.d.ts.map +1 -1
- package/cjs/components/Form/Multiselect/Multiselect.js +1 -1
- package/cjs/components/Form/Multiselect/Multiselect.js.map +1 -1
- package/cjs/components/Navigation/Stepper/Stepper.d.ts +2 -2
- package/cjs/components/Navigation/Stepper/Stepper.d.ts.map +1 -1
- package/cjs/components/Navigation/Stepper/_parts_/Step.d.ts.map +1 -1
- package/cjs/components/Navigation/Stepper/_parts_/Step.js +1 -1
- package/cjs/components/Navigation/Stepper/_parts_/Step.js.map +1 -1
- package/cjs/ds-lilly.css +75 -24
- package/cjs/ext/date-fns/differenceInBusinessDays.js +1 -1
- package/cjs/ext/date-fns/differenceInBusinessDays.js.map +1 -1
- package/cjs/ext/date-fns/format.js +1 -1
- package/cjs/ext/date-fns/format.js.map +1 -1
- package/cjs/ext/date-fns/format2.js +1 -1
- package/cjs/ext/date-fns/format2.js.map +1 -1
- package/cjs/ext/date-fns/formatISO9075.js +1 -1
- package/cjs/ext/date-fns/formatISO9075.js.map +1 -1
- package/cjs/ext/date-fns/formatRFC3339.js +1 -1
- package/cjs/ext/date-fns/formatRFC3339.js.map +1 -1
- package/cjs/ext/date-fns/formatRFC7231.js +1 -1
- package/cjs/ext/date-fns/formatRFC7231.js.map +1 -1
- package/cjs/ext/date-fns/index.js +1 -1
- package/cjs/ext/date-fns/index.js.map +1 -1
- package/cjs/ext/date-fns/isMatch.js +1 -1
- package/cjs/ext/date-fns/isMatch.js.map +1 -1
- package/cjs/ext/date-fns/isValid.js +1 -1
- package/cjs/ext/date-fns/isValid.js.map +1 -1
- package/cjs/ext/date-fns/isValid2.js +1 -1
- package/cjs/ext/date-fns/isValid2.js.map +1 -1
- package/cjs/ext/date-fns/lightFormat.js +1 -1
- package/cjs/ext/date-fns/lightFormat.js.map +1 -1
- package/cjs/ext/react-datepicker/dist/react-datepicker.min.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/utils/index.js +1 -1
- package/cjs/utils/parseDateValue.d.ts +2 -0
- package/cjs/utils/parseDateValue.d.ts.map +1 -1
- package/cjs/utils/parseDateValue.js +1 -1
- package/cjs/utils/parseDateValue.js.map +1 -1
- package/components/Components/Dropdown/Dropdown.d.ts +3 -1
- package/components/Components/Dropdown/Dropdown.d.ts.map +1 -1
- package/components/Components/Dropdown/Dropdown.js +1 -1
- package/components/Components/Dropdown/Dropdown.js.map +1 -1
- package/components/Form/DatePicker/DatePicker.d.ts +3 -3
- package/components/Form/DatePicker/DatePicker.d.ts.map +1 -1
- package/components/Form/DatePicker/DatePicker.js +1 -1
- package/components/Form/DatePicker/DatePicker.js.map +1 -1
- package/components/Form/Multiselect/Multiselect.d.ts.map +1 -1
- package/components/Form/Multiselect/Multiselect.js +1 -1
- package/components/Form/Multiselect/Multiselect.js.map +1 -1
- package/components/Navigation/Stepper/Stepper.d.ts +2 -2
- package/components/Navigation/Stepper/Stepper.d.ts.map +1 -1
- package/components/Navigation/Stepper/_parts_/Step.d.ts.map +1 -1
- package/components/Navigation/Stepper/_parts_/Step.js +1 -1
- package/components/Navigation/Stepper/_parts_/Step.js.map +1 -1
- package/ds-lilly.css +75 -24
- package/ext/date-fns/differenceInBusinessDays.js +1 -1
- package/ext/date-fns/differenceInBusinessDays.js.map +1 -1
- package/ext/date-fns/format.js +1 -1
- package/ext/date-fns/format.js.map +1 -1
- package/ext/date-fns/format2.js +1 -1
- package/ext/date-fns/format2.js.map +1 -1
- package/ext/date-fns/formatISO9075.js +1 -1
- package/ext/date-fns/formatISO9075.js.map +1 -1
- package/ext/date-fns/formatRFC3339.js +1 -1
- package/ext/date-fns/formatRFC3339.js.map +1 -1
- package/ext/date-fns/formatRFC7231.js +1 -1
- package/ext/date-fns/formatRFC7231.js.map +1 -1
- package/ext/date-fns/index.js +1 -1
- package/ext/date-fns/index.js.map +1 -1
- package/ext/date-fns/isMatch.js +1 -1
- package/ext/date-fns/isMatch.js.map +1 -1
- package/ext/date-fns/isValid.js +1 -1
- package/ext/date-fns/isValid.js.map +1 -1
- package/ext/date-fns/isValid2.js +1 -1
- package/ext/date-fns/isValid2.js.map +1 -1
- package/ext/date-fns/lightFormat.js +1 -1
- package/ext/date-fns/lightFormat.js.map +1 -1
- package/ext/react-datepicker/dist/react-datepicker.min.js +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/index.js +1 -1
- package/utils/parseDateValue.d.ts +2 -0
- package/utils/parseDateValue.d.ts.map +1 -1
- package/utils/parseDateValue.js +1 -1
- package/utils/parseDateValue.js.map +1 -1
- /package/assets/{154a34b27713ce60ed87.ttf → 0144096826fba60c6b42.ttf} +0 -0
- /package/assets/{29b223051fcdc7e647a0.ttf → 07397a2b6aafb84679e0.ttf} +0 -0
- /package/assets/{10146f5a107bfe9737e0.eot → 23bb9886bdd0dc44dff6.eot} +0 -0
- /package/assets/{72397667f316684c1ff6.svg → 46aada24ff89321385d2.svg} +0 -0
- /package/assets/{274e10c008ea8aa50da6.gif → 7cb188cf12d09151747a.gif} +0 -0
- /package/assets/{596bf97f56b7c6c7abad.woff → 7d9de53606f21f2f6c45.woff} +0 -0
- /package/assets/{56db5bf5e458eeeeb90b.eot → 7e361d8bd5c55bf6c21c.eot} +0 -0
- /package/assets/{918cf18b4b3ca0c91376.eot → d40c7e6631a0d677a706.eot} +0 -0
- /package/assets/{cd0adb734822b7516b9c.woff → d9c1330c1f1ced96701f.woff} +0 -0
- /package/assets/{e148828367c82bf994ea.svg → f5385a37dd88672e239c.svg} +0 -0
- /package/assets/{d0da91c728d096b8fc29.gif → f71f0ecf662dfd59d6bb.gif} +0 -0
- /package/assets/{e4aef169e3e6a64573c1.eot → ff96897ac09f3966a01a.eot} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from'./../../../ext/tslib/tslib.es6.js';import o from'./../../../ext/cuid/index.js';import{cs as n}from'./../../../ext/date-fns/locale/cs.js';import{enGB as s}from'./../../../ext/date-fns/locale/en-GB.js';import r,{useState as
|
|
1
|
+
import{__rest as e,__assign as t}from'./../../../ext/tslib/tslib.es6.js';import o from'./../../../ext/cuid/index.js';import{cs as n}from'./../../../ext/date-fns/locale/cs.js';import{enGB as s}from'./../../../ext/date-fns/locale/en-GB.js';import r,{useState as a,useEffect as i,useCallback as l,useMemo as d}from"react";import m from'./../../../ext/react-datepicker/dist/react-datepicker.min.js';import{isMobile as p,isTablet as u}from'./../../../ext/react-device-detect/dist/lib.js';import"../../../utils/getDisplayName.js";import"../../../utils/getIntegerMask.js";import"../../../utils/isFilled.js";import"../../../utils/isNotFilled.js";import"../../../utils/isNotNilNorEmpty.js";import'./../../../ext/diacritic/diacritics.js';import{cx as c}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{parseCzechDate as f,parseUnixDate as j,formatMonthDate as y,isDate as C,parseDate as b}from"../../../utils/parseDateValue.js";import{Avatar as v}from"../../Components/Avatar/Avatar.js";import{Button as g}from"../../Components/Button/Button.js";import"../../Components/ButtonTooltip/ButtonTooltip.js";import"../../../contexts/CardContext.js";import"../../../contexts/FormGroupContext.js";import"../../../contexts/ModalContext.js";import"../../../contexts/Select2Context.js";import"../../../contexts/TabsContext.js";import"react-slick";import"../../Components/Collapse/Collapse.js";import'./../../../ext/lodash/_baseToString.js';import{Input as x}from"../Input/Input.js";import"../../Typography/Amount/Amount.js";import"../../Components/Dropdown/_elements_/DropdownMenu.js";import"../../../contexts/ContentTableContext.js";import"../../Components/ContentTable/ContentTableRow.js";import"../../Components/Link/Link.js";import"react-dom";import"react-router-dom";import"../../Components/SuperModal/SuperModal.context.js";import'./../../../ext/lodash.debounce/index.js';import"../../../contexts/MobilePanelContext.js";import"../Slider/Slider.js";import"../../Components/UserAuth/UserAuth.js";import{formatDate as h}from'./../../../ext/date-fns/format.js';import{parse as T}from'./../../../ext/date-fns/parse.js';import{isValid as D}from'./../../../ext/date-fns/isValid.js';var M=function(M){var w=M.ariaLabel,_=M.customInputType,I=void 0===_?"default":_,S=M.dateFormat,k=void 0===S?"ISO":S,E=M.disabledTooltip,F=M.isDisabled,N=void 0!==F&&F,O=M.language,A=void 0===O?"cs":O,B=M.onChange,L=M.placeholder,P=M.settings,z=M.theme,G=M.value,R=e(M,["ariaLabel","customInputType","dateFormat","disabledTooltip","isDisabled","language","onChange","placeholder","settings","theme","value"]),U=a(),V=U[0],Y=U[1],q=a(!1),H=q[0],J=q[1],K=a(!1),Q=K[0],W=K[1],X=a(),Z=X[0],$=X[1],ee=p||u;i((function(){var e=f(G),t=j(G),o=t||e||G,n=o?new Date(o):void 0,s=n?y(n,A):void 0,r=n?oe(k,n):void 0;J(!!e),W(!!t),Y(r),$(s)}),[G,k,I,Z,A]);var te=l((function(e,t){if(t)return Q?"".concat(t.getTime()):H?h(t,"d. M. yyyy"):"ISO"===e?h(new Date(t),"yyyy-MM-dd"):"".concat(new Date(t).getTime())}),[H,Q]),oe=function(e,t){if("object"==typeof t)return t;if(t){if("ISO"===e){var o=T(t,"yyyy-MM-dd",new Date);return D(o)?o:new Date(t)}return new Date(parseInt("".concat(t)))}},ne=l((function(e){null==e||e.setHours(1,30),Y(e);var t=te(k,e);B(t)}),[k,B,te]),se=l((function(e){"string"==typeof e&&ne(oe("ISO",e))}),[ne]),re=l((function(e){if("string"==typeof e)if(C(e)){var t=b(e.replace(/\s/g,""));ne(t)}else Y(void 0),B(void 0)}),[ne,B]),ae=l((function(e){e&&ne(e)}),[ne]),ie=d((function(){return o()}),[]);return r.createElement(r.Fragment,null,ee?r.createElement(x,t({"data-onopen":ie},R,{disabledTooltip:E,isDisabled:N,type:"date",value:te("ISO",V),onChange:se})):r.createElement(m,t({preventOpenOnFocus:!0,showMonthDropdown:!0,showYearDropdown:!0,autoFocus:!1,className:c(z),customInput:"monthInput"===I?r.createElement("div",null,r.createElement(g,{allowEventPropagation:!0,ariaLabel:w,disabledTooltip:E,isDisabled:N,size:"small",type:"border"},r.createElement(v,{isLeft:!0,iconName:"calendar",size:"xSmall"}),null==Z?void 0:Z.toString())):r.createElement(x,t({"data-onopen":ie},R,{disabledTooltip:E,isDisabled:N,suffixIconName:"calendar",type:"text"})),dateFormat:"en"===A?"d/M/yyyy":"d. M. yyyy",dateFormatCalendar:" ",disabled:N,locale:"en"===A?s:n,placeholderText:L,popperClassName:"custom-datepicker",renderMonthContent:function(e,t,o){return r.createElement("span",null,o)},selected:V,showMonthYearPicker:"monthInput"===I,onCalendarOpen:function(){var e;return null===(e=document.querySelector('[data-onopen="'.concat(ie,'"]')))||void 0===e?void 0:e.blur()},onChangeRaw:re},P||{},{onChange:ae})))};export{M as DatePicker};
|
|
2
2
|
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.js","sources":["../../../../src/components/Form/DatePicker/DatePicker.tsx"],"sourcesContent":[null],"names":["DatePicker","_a","ariaLabel","_b","customInputType","
|
|
1
|
+
{"version":3,"file":"DatePicker.js","sources":["../../../../src/components/Form/DatePicker/DatePicker.tsx"],"sourcesContent":[null],"names":["DatePicker","_a","ariaLabel","_b","customInputType","_c","dateFormat","disabledTooltip","_d","isDisabled","_e","language","onChange","placeholder","settings","theme","value","props","__rest","_f","useState","dateValue","setDateValue","_g","isCzechDateType","setIsCzechDateType","_h","isUnixDateType","setIsUnixDateType","_j","monthInputValue","setMonthInputValue","hasNativeCalendar","isMobile","isTablet","useEffect","czechValue","parseCzechDate","unixValue","parseUnixDate","correctValue","correctDate","Date","undefined","formattedMonthValue","formatMonthDate","formattedDateValue","formatValue","formatDate","useCallback","format","getTime","dateFns.format","date","dateFns.parse","dateFns.isValid","parseInt","handleChange","setHours","outValue","handleNativeInputChange","handleInputChange","isDate","parseDate","replace","handlePickerChange","generatedId","useMemo","createId","React","createElement","Fragment","Input","__assign","type","ReactDatePicker","preventOpenOnFocus","showMonthDropdown","showYearDropdown","autoFocus","className","cx","customInput","Button","allowEventPropagation","size","Avatar","isLeft","iconName","toString","suffixIconName","dateFormatCalendar","disabled","locale","enGB","cs","placeholderText","popperClassName","renderMonthContent","month","shortMonth","longMonth","selected","showMonthYearPicker","onCalendarOpen","document","querySelector","concat","blur","onChangeRaw"],"mappings":"owEAgDO,IAAMA,EAAa,SAACC,GACzB,IAAAC,EAASD,EAAAC,UACTC,EAA2BF,EAAAG,gBAA3BA,OAAkB,IAAAD,EAAA,UAASA,EAC3BE,EAAkBJ,EAAAK,WAAlBA,OAAa,IAAAD,EAAA,MAAKA,EAClBE,EAAeN,EAAAM,gBACfC,EAAkBP,EAAAQ,WAAlBA,OAAU,IAAAD,GAAQA,EAClBE,EAAeT,EAAAU,SAAfA,OAAQ,IAAAD,EAAG,KAAIA,EACfE,EAAQX,EAAAW,SACRC,EAAWZ,EAAAY,YACXC,EAAQb,EAAAa,SACRC,EAAKd,EAAAc,MACLC,UACGC,EAZsBC,EAAAjB,EAAA,CAAA,YAAA,kBAAA,aAAA,kBAAA,aAAA,WAAA,WAAA,cAAA,WAAA,QAAA,UAcnBkB,EAA4BC,IAA3BC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GACxBI,EAAwCH,GAAkB,GAAzDI,EAAeD,EAAA,GAAEE,EAAkBF,EAAA,GACpCG,EAAsCN,GAAkB,GAAvDO,EAAcD,EAAA,GAAEE,EAAiBF,E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gB,WAAM,IAAAvG,EAAA,OAAwD,QAAxDA,EAAAwG,SAASC,cAAc,iBAAiBC,OAAAzC,iBAAgB,IAAAjE,OAAA,EAAAA,EAAE2G,MAAM,EAGtFC,YAAahD,IACR/C,GAAY,GAAG,CAGpBF,SAAUqD,MAKpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Multiselect.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Multiselect/Multiselect.tsx"],"names":[],"mappings":"AAAA,OAAc,
|
|
1
|
+
{"version":3,"file":"Multiselect.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Multiselect/Multiselect.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAW,SAAS,EAA8B,MAAM,OAAO,CAAA;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAQpD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAA;AAE3C,UAAU,QAAQ;IAChB,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,4BAA4B;IAC5B,KAAK,EAAE,aAAa,CAAA;CACrB;AAED,UAAU,oBAAqB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAAC;IACpF,wBAAwB;IACxB,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,mCAAmC;IACnC,KAAK,EAAE,aAAa,EAAE,CAAA;IACtB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,IAAI,CAAA;IACpD,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,IAAI,CAAA;IAC1C,gCAAgC;IAChC,uBAAuB,EAAE,SAAS,CAAA;CACnC;AAED,eAAO,MAAM,WAAW,oNAoBrB,oBAAoB,KAAG,WAkJzB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e}from'./../../../ext/tslib/tslib.es6.js';import t,{useRef as o,useState as n,useEffect as r,Fragment as i}from"react";import"../../../utils/getDisplayName.js";import"../../../utils/getIntegerMask.js";import"../../../utils/isFilled.js";import"../../../utils/isNotFilled.js";import"../../../utils/isNotNilNorEmpty.js";import'./../../../ext/diacritic/diacritics.js';import{cx as s}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{KEYS as a}from"../../../utils/constants.js";import'./../../../ext/moment/dist/locale/cs.js';import{Avatar as l}from"../../Components/Avatar/Avatar.js";import{Button as m}from"../../Components/Button/Button.js";import"../../Components/ButtonTooltip/ButtonTooltip.js";import'./../../../ext/cuid/index.js';import"../../../contexts/CardContext.js";import"../../../contexts/FormGroupContext.js";import"../../../contexts/ModalContext.js";import"../../../contexts/Select2Context.js";import"../../../contexts/TabsContext.js";import"react-slick";import"../../Components/Collapse/Collapse.js";import'./../../../ext/lodash/_baseToString.js';import{Dropdown as c}from"../../Components/Dropdown/Dropdown.js";import{DropdownItem as p}from"../../Components/Dropdown/_elements_/DropdownItem.js";import"../../Components/Dropdown/_elements_/DropdownMenu.js";import"../../../contexts/ContentTableContext.js";import"../../Components/ContentTable/ContentTableRow.js";import"../../Typography/Amount/Amount.js";import"../../Components/Link/Link.js";import"react-dom";import"react-router-dom";import"../../Components/SuperModal/SuperModal.context.js";import'./../../../ext/lodash.debounce/index.js';import{FormGroup2 as d}from"../FormGroup2/FormGroup2.js";import{SelectedOption as u}from"../Select/_elements_/SelectedOption.js";import'./../../../ext/react-device-detect/dist/lib.js';import'./../../../ext/react-text-mask/dist/reactTextMask.js';import"../../../contexts/MobilePanelContext.js";import"../Slider/Slider.js";import"../../Components/UserAuth/UserAuth.js";var b=function(b){var j=b.confirmationButtonLabel,f=b.disabledTooltip,C=b.error,h=b.hasError,x=b.hasWarning,_=b.help,v=b.isDisabled,g=b.items,k=b.label,w=b.labelTooltip,E=b.name,D=b.onChange,T=b.onFocus,S=b.onSelectionChange,y=b.placeholder,F=b.testId,N=b.theme,A=b.value,I=void 0===A?[]:A,M=b.warning,B=o(null),W=n(!1),G=W[0],L=W[1],P=n(I),U=P[0],z=P[1],K=n(-1),O=K[0],R=K[1],V={disabledTooltip:f,error:C,hasError:!!C||h,hasWarning:!!M||x,help:_,isDisabled:v,label:k,labelFor:"".concat(E,"_button"),labelTooltip:w,name:E,warning:M};r((function(){z(I)}),[I]);var q=function(){D(U)},H=function(e,t){J(t)},J=function(e){z((function(t){if(t.includes(e)){var o=t.filter((function(t){return t!==e}));return S&&S(o),o}var n=t.concat(e);return S&&S(n),n}))},Q=g.filter((function(e){return I.includes(e.value)})).map((function(e){return e.label})).join(", "),X=I.length>0?t.createElement(u,{label:Q}):null;return t.createElement(d,e({theme:s({"f-group2--open":G},N)},V),t.createElement("div",{onKeyDown:function(e){switch(e.key){case a.Space:e.preventDefault(),J(g[O].value);break;case a.Enter:e.preventDefault(),q(),B.current&&B.current.click()}}},t.createElement(c,{hasSameWidthAsTrigger:!0,interactive:!0,dropdownId:"".concat(E,"_dropdown"),selectionConfirmationComponent:t.createElement(i,null,t.createElement(m,{ref:B,allowEventPropagation:!0,isBlock:!0,testId:"".concat(E,"_confirm_button"),type:"transparent",onClick:q},j)),trigger:"click",triggerComponent:t.createElement("div",{className:"f-controlWrap","data-testid":F,role:"combobox"},t.createElement("button",{"aria-expanded":G,"aria-haspopup":"listbox","aria-invalid":!!C,"aria-label":Q,"aria-labelledby":"".concat(E,"_label ").concat(E),className:s("f-control2 f-control2--select"),disabled:v,id:"".concat(E,"_button"),name:E,type:"button",onFocus:T},t.createElement("span",{className:s("f-control2__".concat(X?"value":"placeholder"))},X||y),t.createElement(l,{iconName:"arrowDown",size:"xSmall",theme:"f-control2__selectIcon"}))),onItemFocusChange:R,onVisibleChange:function(e){z(I),L(e)}},g.map((function(e){var o=U.includes(e.value);return t.createElement(p,{key:e.value,withCheckbox:!0,isDisabled:e.isDisabled,isSelected:o,testId:"".concat(E,"_").concat(e.value),value:e.value,onClick:H},e.label)})))))};export{b as Multiselect};
|
|
2
2
|
//# sourceMappingURL=Multiselect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Multiselect.js","sources":["../../../../src/components/Form/Multiselect/Multiselect.tsx"],"sourcesContent":[null],"names":["Multiselect","_a","confirmationButtonLabel","disabledTooltip","error","hasError","hasWarning","help","isDisabled","items","label","labelTooltip","name","onChange","onFocus","onSelectionChange","placeholder","testId","theme","_b","value","warning","_c","useState","isDropdownVisible","setIsDropdownVisible","_d","currentSelection","setCurrentSelection","
|
|
1
|
+
{"version":3,"file":"Multiselect.js","sources":["../../../../src/components/Form/Multiselect/Multiselect.tsx"],"sourcesContent":[null],"names":["Multiselect","_a","confirmationButtonLabel","disabledTooltip","error","hasError","hasWarning","help","isDisabled","items","label","labelTooltip","name","onChange","onFocus","onSelectionChange","placeholder","testId","theme","_b","value","warning","confirmButtonRef","useRef","_c","useState","isDropdownVisible","setIsDropdownVisible","_d","currentSelection","setCurrentSelection","_e","focusedItemIndex","setFocusedItemIndex","fromGroupProps","labelFor","concat","useEffect","handleConfirmSelection","handleOptionClick","event","itemValue","setNewCurrentSelection","prev","includes","next_1","filter","item","next","selectedItemsLabel","map","join","buttonValue","length","React","SelectedOption","createElement","FormGroup2","__assign","cx","onKeyDown","key","KEYS","Space","preventDefault","Enter","current","click","Dropdown","hasSameWidthAsTrigger","interactive","dropdownId","selectionConfirmationComponent","Fragment","Button","ref","allowEventPropagation","isBlock","type","onClick","trigger","triggerComponent","className","role","disabled","id","Avatar","iconName","size","onItemFocusChange","onVisibleChange","state","isSelected","DropdownItem","withCheckbox"],"mappings":"6jEAkCO,IAAMA,EAAc,SAACC,OAC1BC,EAAuBD,EAAAC,wBACvBC,EAAeF,EAAAE,gBACfC,EAAKH,EAAAG,MACLC,EAAQJ,EAAAI,SACRC,EAAUL,EAAAK,WACVC,EAAIN,EAA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AzEoB,SAACC,GAC3B7D,EAAoBV,GACpBO,EAAqBgE,EACvB,GAwESlF,EAAMyC,KAAI,SAACH,GACV,IAAM6C,EAAa/D,EAAiBe,SAASG,EAAK3B,OAClD,OACEkC,gBAACuC,EAAY,CACXhC,IAAKd,EAAK3B,MACV0E,cACA,EAAAtF,WAAYuC,EAAKvC,WACjBoF,WAAYA,EACZ3E,OAAQ,GAAGmB,OAAAxB,cAAQmC,EAAK3B,OACxBA,MAAO2B,EAAK3B,MACZ2D,QAASxC,GAERQ,EAAKrC,MAGZ,MAKV"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { ComponentPropsType } from '../../../utils';
|
|
3
3
|
import { TitleSize } from '../../Typography/Title';
|
|
4
4
|
export interface StepperPropsType extends ComponentPropsType {
|
|
@@ -13,7 +13,7 @@ export interface StepperPropsType extends ComponentPropsType {
|
|
|
13
13
|
}
|
|
14
14
|
type StepType = {
|
|
15
15
|
label: ReactNode;
|
|
16
|
-
substeps?:
|
|
16
|
+
substeps?: ReactNode[];
|
|
17
17
|
};
|
|
18
18
|
export declare const Stepper: ({ current: { isLoading, step, substep }, stepTitleSize, stepTitleVisual, steps, testId, theme }: StepperPropsType) => JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigation/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAc,
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigation/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,eAAe,CAAC,EAAE,SAAS,CAAA;CAC5B;AAED,KAAK,QAAQ,GAAG;IACd,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,OAAO,oGAOjB,gBAAgB,KAAG,WA8BrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../../src/components/Navigation/Stepper/_parts_/Step.tsx"],"names":[],"mappings":"AAAA,OAAc,
|
|
1
|
+
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../../src/components/Navigation/Stepper/_parts_/Step.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAKlD,OAAO,EAAS,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,SAAS,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,sLAAsL;IACtL,SAAS,EAAE,SAAS,CAAA;IACpB,iFAAiF;IACjF,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,eAAO,MAAM,IAAI,0GAUd,aAAa,KAAG,WA4BlB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";import"../../../../utils/getDisplayName.js";import"../../../../utils/getIntegerMask.js";import"../../../../utils/isFilled.js";import"../../../../utils/isNotFilled.js";import"../../../../utils/isNotNilNorEmpty.js";import'./../../../../ext/diacritic/diacritics.js';import{cx as
|
|
1
|
+
import t,{Fragment as e}from"react";import"../../../../utils/getDisplayName.js";import"../../../../utils/getIntegerMask.js";import"../../../../utils/isFilled.js";import"../../../../utils/isNotFilled.js";import"../../../../utils/isNotNilNorEmpty.js";import'./../../../../ext/diacritic/diacritics.js';import{cx as o}from"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import'./../../../../ext/moment/dist/locale/cs.js';import'./../../../../ext/tslib/tslib.es6.js';import{Avatar as s}from"../../../Components/Avatar/Avatar.js";import"../../../Components/Button/Button.js";import"../../../Components/ButtonTooltip/ButtonTooltip.js";import'./../../../../ext/cuid/index.js';import"../../../../contexts/CardContext.js";import"../../../../contexts/FormGroupContext.js";import"../../../../contexts/ModalContext.js";import"../../../../contexts/Select2Context.js";import"../../../../contexts/TabsContext.js";import"react-slick";import"../../../Components/Collapse/Collapse.js";import'./../../../../ext/lodash/_baseToString.js';import'./../../../../ext/react-text-mask/dist/reactTextMask.js';import"../../../Typography/Amount/Amount.js";import{Title as i}from"../../../Typography/Title/Title.js";import"../../../Components/Dropdown/_elements_/DropdownMenu.js";import"../../../../contexts/ContentTableContext.js";import"../../../Components/ContentTable/ContentTableRow.js";import"../../../Components/Link/Link.js";import"react-dom";import"react-router-dom";import"../../../Components/SuperModal/SuperModal.context.js";import'./../../../../ext/lodash.debounce/index.js';import'./../../../../ext/react-device-detect/dist/lib.js';import{Col as m}from"../../../Layout/Grid/Col.js";import{Row as r}from"../../../Layout/Grid/Row.js";import"../../../../contexts/MobilePanelContext.js";import"../../../Form/Slider/Slider.js";import"../../../Components/UserAuth/UserAuth.js";var n=function(n){var p=n.isActive,l=n.isDone,a=n.isLoading,d=n.isNextUp,c=n.label,u=n.stepNumber,j=n.substepProgress,_=n.titleSize,x=n.titleVisual,C=o("m-stepper__item",{"m-stepper__item--done":l,"m-stepper__item--active":p||a});return t.createElement("li",{className:C},t.createElement("div",{className:"m-stepper__content"},t.createElement(r,{theme:o("m-stepper__line",{"m-stepper__line--with-substep":0!==j})},(0!==j||l)&&t.createElement(e,null,t.createElement(m,{xs:l?12:j}),!l&&j<12&&t.createElement(m,{xs:12-j}))),t.createElement("div",{className:"m-stepper__icon"},l&&t.createElement(s,{iconName:"tick"}),a&&t.createElement(s,{iconName:"loading"}),(d||p)&&u),t.createElement(i,{size:_,theme:"m-stepper__title",visual:x},c)))};export{n as Step};
|
|
2
2
|
//# sourceMappingURL=Step.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.js","sources":["../../../../../src/components/Navigation/Stepper/_parts_/Step.tsx"],"sourcesContent":[null],"names":["Step","_a","isActive","isDone","isLoading","isNextUp","label","stepNumber","substepProgress","titleSize","titleVisual","itemClassName","cx","React","createElement","className","Row","theme","Col","xs","Avatar","iconName","Title","size","visual"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Step.js","sources":["../../../../../src/components/Navigation/Stepper/_parts_/Step.tsx"],"sourcesContent":[null],"names":["Step","_a","isActive","isDone","isLoading","isNextUp","label","stepNumber","substepProgress","titleSize","titleVisual","itemClassName","cx","React","createElement","className","Row","theme","Fragment","Col","xs","Avatar","iconName","Title","size","visual"],"mappings":"i7DAqBO,IAAMA,EAAO,SAACC,OACnBC,EAAQD,EAAAC,SACRC,EAAMF,EAAAE,OACNC,EAASH,EAAAG,UACTC,EAAQJ,EAAAI,SACRC,UACAC,EAAUN,EAAAM,WACVC,EAAeP,EAAAO,gBACfC,EAASR,EAAAQ,UACTC,EAAWT,EAAAS,YAELC,EAAgBC,EAAG,kBAAmB,CAC1C,wBAAyBT,EACzB,0BAA2BD,GAAYE,IAGzC,OACES,EAAAC,cAAA,KAAA,CAAIC,UAAWJ,GACbE,EAAKC,cAAA,MAAA,CAAAC,UAAU,sBACbF,EAACC,cAAAE,EAAI,CAAAC,MAAOL,EAAG,kBAAmB,CAAE,gCAAqD,IAApBJ,MAC7C,IAApBA,GAAyBL,IACzBU,EAAAC,cAACI,EAAQ,KACPL,EAAAC,cAACK,EAAG,CAACC,GAAIjB,EAAS,GAAMK,KACrBL,GAAUK,EAAkB,IAAOK,EAACC,cAAAK,GAAIC,GAAK,GAAKZ,MAI3DK,EAAKC,cAAA,MAAA,CAAAC,UAAU,mBACZZ,GAAUU,EAACC,cAAAO,GAAOC,SAAS,SAC3BlB,GAAaS,EAACC,cAAAO,GAAOC,SAAS,aAC7BjB,GAAYH,IAAaK,GAE7BM,EAAAC,cAACS,EAAM,CAAAC,KAAMf,EAAWQ,MAAM,mBAAmBQ,OAAQf,GACtDJ,IAKX"}
|
package/ds-lilly.css
CHANGED
|
@@ -1473,6 +1473,15 @@ body {
|
|
|
1473
1473
|
--fontSizeListMobileMenu: var(--fontSizeSmall);
|
|
1474
1474
|
--marginTopItemMobileMenu: 0;
|
|
1475
1475
|
--paddingLinkMobileMenu: var(--spaceMedium) var(--spaceXSmall);
|
|
1476
|
+
--fontSizeTitleStepper: var(--fontSizeXSmall);
|
|
1477
|
+
--fontSizeIconStepper: var(--fontSizeSmall);
|
|
1478
|
+
--fontWeightIconStepper: var(--fontWeightBold);
|
|
1479
|
+
--colorIconStepper: var(--fgInverseDefault);
|
|
1480
|
+
--colorTitleStepper: var(--fgNeutralSubtlest);
|
|
1481
|
+
--colorActiveTitleStepper: var(--fgNeutralDefault);
|
|
1482
|
+
--fontWeightItemDoneTitleStepper: var(--fontWeightBold);
|
|
1483
|
+
--leftLineStepper: calc(50% + 35px);
|
|
1484
|
+
--widthLineStepper: calc(100% - 45px);
|
|
1476
1485
|
--fontSizeAmount: var(--fontSizeMedium);
|
|
1477
1486
|
--fontWeightAmount: var(--fontWeightNormal);
|
|
1478
1487
|
--lineHeightAmount: var(--lineHeightMedium);
|
|
@@ -7290,6 +7299,9 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
7290
7299
|
z-index: 1;
|
|
7291
7300
|
}
|
|
7292
7301
|
|
|
7302
|
+
.custom-datepicker {
|
|
7303
|
+
z-index: 1000 !important;
|
|
7304
|
+
}
|
|
7293
7305
|
.custom-datepicker .react-datepicker {
|
|
7294
7306
|
border: 0 !important;
|
|
7295
7307
|
box-shadow: var(--boxShadowXXSmall);
|
|
@@ -7310,9 +7322,11 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
7310
7322
|
padding-bottom: 3px;
|
|
7311
7323
|
}
|
|
7312
7324
|
.custom-datepicker .react-datepicker__triangle {
|
|
7325
|
+
display: none;
|
|
7313
7326
|
stroke: unset !important;
|
|
7314
|
-
|
|
7315
|
-
|
|
7327
|
+
margin-top: 1px;
|
|
7328
|
+
fill: var(--fgInverseDefault) !important;
|
|
7329
|
+
color: var(--fgInverseDefault) !important;
|
|
7316
7330
|
}
|
|
7317
7331
|
.custom-datepicker .react-datepicker-year-header {
|
|
7318
7332
|
background: var(--bgBrandDefaultHover);
|
|
@@ -7325,6 +7339,7 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
7325
7339
|
}
|
|
7326
7340
|
.custom-datepicker .react-datepicker__header {
|
|
7327
7341
|
padding-top: 0;
|
|
7342
|
+
border-bottom: none;
|
|
7328
7343
|
}
|
|
7329
7344
|
.custom-datepicker .react-datepicker__header__dropdown {
|
|
7330
7345
|
background: var(--bgBrandDefaultHover);
|
|
@@ -7341,15 +7356,18 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
7341
7356
|
line-height: 26px;
|
|
7342
7357
|
height: 26px;
|
|
7343
7358
|
user-select: none;
|
|
7359
|
+
color: var(--bgBrandBold);
|
|
7344
7360
|
}
|
|
7345
7361
|
.custom-datepicker .react-datepicker__month-option:hover, .custom-datepicker .react-datepicker__month-option:focus, .custom-datepicker .react-datepicker__year-option:hover, .custom-datepicker .react-datepicker__year-option:focus {
|
|
7346
|
-
background:
|
|
7347
|
-
color: var(--bgBrandBold);
|
|
7362
|
+
background: none;
|
|
7348
7363
|
cursor: pointer;
|
|
7349
7364
|
outline: 0;
|
|
7365
|
+
font-weight: 600;
|
|
7350
7366
|
}
|
|
7351
|
-
.custom-datepicker .react-datepicker__month-option--selected_month, .custom-datepicker .react-datepicker__month-option--selected_year, .custom-datepicker .react-datepicker__year-option--selected_month, .custom-datepicker .react-datepicker__year-option--selected_year {
|
|
7352
|
-
|
|
7367
|
+
.custom-datepicker .react-datepicker__month-option--selected_month, .custom-datepicker .react-datepicker__month-option--selected_year, .custom-datepicker .react-datepicker__month-option--selected_month:hover, .custom-datepicker .react-datepicker__month-option--selected_year:hover, .custom-datepicker .react-datepicker__year-option--selected_month, .custom-datepicker .react-datepicker__year-option--selected_year, .custom-datepicker .react-datepicker__year-option--selected_month:hover, .custom-datepicker .react-datepicker__year-option--selected_year:hover {
|
|
7368
|
+
background: var(--bgBrandBold);
|
|
7369
|
+
color: var(--fgInverseDefault);
|
|
7370
|
+
font-weight: 500;
|
|
7353
7371
|
}
|
|
7354
7372
|
.custom-datepicker .react-datepicker__month-option--selected, .custom-datepicker .react-datepicker__year-option--selected {
|
|
7355
7373
|
display: none;
|
|
@@ -7401,9 +7419,9 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
7401
7419
|
height: 2.25rem;
|
|
7402
7420
|
line-height: 2.25rem;
|
|
7403
7421
|
margin: 0.025rem;
|
|
7404
|
-
color: var(--
|
|
7422
|
+
color: var(--bgBrandBold);
|
|
7405
7423
|
}
|
|
7406
|
-
.custom-datepicker .react-datepicker__month-text--outside-month, .custom-datepicker .react-datepicker__day--outside-month {
|
|
7424
|
+
.custom-datepicker .react-datepicker__month-text--outside-month, .custom-datepicker .react-datepicker__month-text--disabled, .custom-datepicker .react-datepicker__day--outside-month, .custom-datepicker .react-datepicker__day--disabled {
|
|
7407
7425
|
color: var(--fgDisabledDefault);
|
|
7408
7426
|
}
|
|
7409
7427
|
.custom-datepicker .react-datepicker__month-text:hover, .custom-datepicker .react-datepicker__month-text:focus, .custom-datepicker .react-datepicker__day:hover, .custom-datepicker .react-datepicker__day:focus {
|
|
@@ -7413,6 +7431,13 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
7413
7431
|
cursor: pointer;
|
|
7414
7432
|
outline: 0;
|
|
7415
7433
|
}
|
|
7434
|
+
.custom-datepicker .react-datepicker__month-text--disabled:hover, .custom-datepicker .react-datepicker__month-text--disabled:focus, .custom-datepicker .react-datepicker__day--disabled:hover, .custom-datepicker .react-datepicker__day--disabled:focus {
|
|
7435
|
+
background: unset !important;
|
|
7436
|
+
cursor: default !important;
|
|
7437
|
+
color: var(--fgDisabledDefault) !important;
|
|
7438
|
+
outline: unset !important;
|
|
7439
|
+
border-color: unset !important;
|
|
7440
|
+
}
|
|
7416
7441
|
.custom-datepicker .react-datepicker__month-text--selected, .custom-datepicker .react-datepicker__month-text--today, .custom-datepicker .react-datepicker__month-text--keyboard-selected, .custom-datepicker .react-datepicker__month-text:hover, .custom-datepicker .react-datepicker__month-text:focus, .custom-datepicker .react-datepicker__day--selected, .custom-datepicker .react-datepicker__day--today, .custom-datepicker .react-datepicker__day--keyboard-selected, .custom-datepicker .react-datepicker__day:hover, .custom-datepicker .react-datepicker__day:focus {
|
|
7417
7442
|
border-radius: 50% !important;
|
|
7418
7443
|
}
|
|
@@ -7440,11 +7465,11 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
7440
7465
|
border-radius: 20px !important;
|
|
7441
7466
|
}
|
|
7442
7467
|
.custom-datepicker .react-datepicker__month-dropdown, .custom-datepicker .react-datepicker__year-dropdown {
|
|
7443
|
-
border-radius:
|
|
7444
|
-
border:
|
|
7445
|
-
box-shadow:
|
|
7446
|
-
background: var(--fgInverseDefault);
|
|
7447
|
-
color: var(--fgNeutralDefault);
|
|
7468
|
+
border-radius: var(--borderRadiusControl2);
|
|
7469
|
+
border: var(--borderControl2);
|
|
7470
|
+
box-shadow: none;
|
|
7471
|
+
background: var(--fgInverseDefault) !important;
|
|
7472
|
+
color: var(--fgNeutralDefault) !important;
|
|
7448
7473
|
}
|
|
7449
7474
|
.custom-datepicker .react-datepicker__month-read-view, .custom-datepicker .react-datepicker__year-read-view, .custom-datepicker .react-datepicker__month-option {
|
|
7450
7475
|
visibility: visible !important;
|
|
@@ -8330,8 +8355,10 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
8330
8355
|
.m-stepper__icon {
|
|
8331
8356
|
align-items: center;
|
|
8332
8357
|
background: var(--bgNeutralDefault);
|
|
8358
|
+
font-size: var(--fontSizeIconStepper);
|
|
8359
|
+
font-weight: var(--fontWeightIconStepper);
|
|
8333
8360
|
border-radius: 50%;
|
|
8334
|
-
color: var(--
|
|
8361
|
+
color: var(--colorIconStepper);
|
|
8335
8362
|
display: flex;
|
|
8336
8363
|
height: 32px;
|
|
8337
8364
|
justify-content: center;
|
|
@@ -8345,23 +8372,25 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
8345
8372
|
}
|
|
8346
8373
|
|
|
8347
8374
|
.m-stepper__title {
|
|
8375
|
+
color: var(--colorTitleStepper);
|
|
8348
8376
|
display: inline-block;
|
|
8349
|
-
font-size: var(--
|
|
8377
|
+
font-size: var(--fontSizeTitleStepper);
|
|
8350
8378
|
font-weight: normal;
|
|
8351
8379
|
line-height: var(--lineHeightSmall);
|
|
8352
8380
|
margin: var(--spaceXSmall) 0 0 0;
|
|
8353
8381
|
}
|
|
8354
8382
|
|
|
8355
8383
|
.m-stepper__line {
|
|
8356
|
-
background: var(--bgNeutralDefault);
|
|
8357
8384
|
display: block;
|
|
8358
8385
|
height: 2px;
|
|
8359
|
-
left:
|
|
8386
|
+
left: var(--leftLineStepper);
|
|
8360
8387
|
position: absolute;
|
|
8361
8388
|
top: 16px;
|
|
8362
|
-
width:
|
|
8389
|
+
width: var(--widthLineStepper);
|
|
8390
|
+
background: var(--bgNeutralDefault);
|
|
8363
8391
|
}
|
|
8364
8392
|
.m-stepper__line .col {
|
|
8393
|
+
float: left;
|
|
8365
8394
|
height: 2px;
|
|
8366
8395
|
}
|
|
8367
8396
|
|
|
@@ -8369,15 +8398,37 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
8369
8398
|
font-weight: var(--fontWeightBold);
|
|
8370
8399
|
}
|
|
8371
8400
|
|
|
8401
|
+
.m-stepper__item--active .m-stepper__title,
|
|
8402
|
+
.m-stepper__item--done .m-stepper__title {
|
|
8403
|
+
color: var(--colorActiveTitleStepper);
|
|
8404
|
+
font-weight: var(--fontWeightItemDoneTitleStepper);
|
|
8405
|
+
}
|
|
8372
8406
|
.m-stepper__item--active .m-stepper__icon,
|
|
8373
8407
|
.m-stepper__item--done .m-stepper__icon {
|
|
8374
8408
|
background: var(--bgBrandBold);
|
|
8375
|
-
color: var(--fgInverseDefault);
|
|
8376
8409
|
}
|
|
8377
|
-
.m-stepper__item--active .m-stepper__line .col,
|
|
8378
|
-
.m-stepper__item--done .m-stepper__line .col {
|
|
8410
|
+
.m-stepper__item--active .m-stepper__line .col:first-child,
|
|
8411
|
+
.m-stepper__item--done .m-stepper__line .col:first-child {
|
|
8412
|
+
background: var(--bgBrandBold);
|
|
8413
|
+
}
|
|
8414
|
+
|
|
8415
|
+
.m-stepper__item--active .m-stepper__line--with-substep {
|
|
8416
|
+
background: none;
|
|
8417
|
+
}
|
|
8418
|
+
.m-stepper__item--active .m-stepper__line .col:first-child {
|
|
8379
8419
|
background: var(--bgBrandBold);
|
|
8380
8420
|
}
|
|
8421
|
+
.m-stepper__item--active .m-stepper__line .col:nth-child(2) {
|
|
8422
|
+
position: relative;
|
|
8423
|
+
}
|
|
8424
|
+
.m-stepper__item--active .m-stepper__line .col:nth-child(2)::before {
|
|
8425
|
+
content: "";
|
|
8426
|
+
position: absolute;
|
|
8427
|
+
left: 10px;
|
|
8428
|
+
height: 100%;
|
|
8429
|
+
width: calc(100% - 10px);
|
|
8430
|
+
background: var(--bgNeutralDefault);
|
|
8431
|
+
}
|
|
8381
8432
|
|
|
8382
8433
|
.u-vHide {
|
|
8383
8434
|
border: 0;
|
|
@@ -9268,7 +9319,7 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
9268
9319
|
/* Slider */
|
|
9269
9320
|
.slick-loading .slick-list
|
|
9270
9321
|
{
|
|
9271
|
-
background: #fff url('assets/
|
|
9322
|
+
background: #fff url('assets/f71f0ecf662dfd59d6bb.gif') center center no-repeat;
|
|
9272
9323
|
}
|
|
9273
9324
|
|
|
9274
9325
|
/* Icons */
|
|
@@ -9278,8 +9329,8 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
9278
9329
|
font-weight: normal;
|
|
9279
9330
|
font-style: normal;
|
|
9280
9331
|
|
|
9281
|
-
src: url('assets/
|
|
9282
|
-
src: url('assets/
|
|
9332
|
+
src: url('assets/7e361d8bd5c55bf6c21c.eot');
|
|
9333
|
+
src: url('assets/d40c7e6631a0d677a706.eot') format('embedded-opentype'), url('assets/d9c1330c1f1ced96701f.woff') format('woff'), url('assets/0144096826fba60c6b42.ttf') format('truetype'), url('assets/f5385a37dd88672e239c.svg') format('svg');
|
|
9283
9334
|
}
|
|
9284
9335
|
/* Arrows */
|
|
9285
9336
|
.slick-prev,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as e}from"../../_virtual/differenceInBusinessDays.js";import{__require as r}from"./addDays.js";import{__require as s}from"./differenceInCalendarDays.js";import{__require as a}from"./isSameDay.js";import{__require as i}from"./
|
|
1
|
+
import{__exports as e}from"../../_virtual/differenceInBusinessDays.js";import{__require as r}from"./addDays.js";import{__require as s}from"./differenceInCalendarDays.js";import{__require as a}from"./isSameDay.js";import{__require as i}from"./isValid2.js";import{__require as t}from"./isWeekend.js";import{__require as n}from"./toDate.js";var o;function f(){if(o)return e;o=1,e.differenceInBusinessDays=function(e,r){const s=(0,D.toDate)(e);let a=(0,D.toDate)(r);if(!(0,_.isValid)(s)||!(0,_.isValid)(a))return NaN;const i=(0,d.differenceInCalendarDays)(s,a),t=i<0?-1:1,n=Math.trunc(i/7);let o=5*n;a=(0,f.addDays)(a,7*n);for(;!(0,u.isSameDay)(s,a);)o+=(0,m.isWeekend)(a)?0:t,a=(0,f.addDays)(a,t);return 0===o?0:o};var f=r(),d=s(),u=a(),_=i(),m=t(),D=n();return e}export{f as __require};
|
|
2
2
|
//# sourceMappingURL=differenceInBusinessDays.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"differenceInBusinessDays.js","sources":["../../../node_modules/date-fns/differenceInBusinessDays.js"],"sourcesContent":["\"use strict\";\nexports.differenceInBusinessDays = differenceInBusinessDays;\nvar _index = require(\"./addDays.js\");\nvar _index2 = require(\"./differenceInCalendarDays.js\");\nvar _index3 = require(\"./isSameDay.js\");\nvar _index4 = require(\"./isValid.js\");\nvar _index5 = require(\"./isWeekend.js\");\nvar _index6 = require(\"./toDate.js\");\n\n/**\n * @name differenceInBusinessDays\n * @category Day Helpers\n * @summary Get the number of business days between the given dates.\n *\n * @description\n * Get the number of business day periods between the given dates.\n * Business days being days that arent in the weekend.\n * Like `differenceInCalendarDays`, the function removes the times from\n * the dates before calculating the difference.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of business days\n *\n * @example\n * // How many business days are between\n * // 10 January 2014 and 20 July 2014?\n * const result = differenceInBusinessDays(\n * new Date(2014, 6, 20),\n * new Date(2014, 0, 10)\n * )\n * //=> 136\n *\n * // How many business days are between\n * // 30 November 2021 and 1 November 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 30),\n * new Date(2021, 10, 1)\n * )\n * //=> 21\n *\n * // How many business days are between\n * // 1 November 2021 and 1 December 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 11, 1)\n * )\n * //=> -22\n *\n * // How many business days are between\n * // 1 November 2021 and 1 November 2021 ?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 10, 1)\n * )\n * //=> 0\n */\nfunction differenceInBusinessDays(dateLeft, dateRight) {\n const _dateLeft = (0, _index6.toDate)(dateLeft);\n let _dateRight = (0, _index6.toDate)(dateRight);\n\n if (!(0, _index4.isValid)(_dateLeft) || !(0, _index4.isValid)(_dateRight))\n return NaN;\n\n const calendarDifference = (0, _index2.differenceInCalendarDays)(\n _dateLeft,\n _dateRight,\n );\n const sign = calendarDifference < 0 ? -1 : 1;\n\n const weeks = Math.trunc(calendarDifference / 7);\n\n let result = weeks * 5;\n _dateRight = (0, _index.addDays)(_dateRight, weeks * 7);\n\n // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week\n while (!(0, _index3.isSameDay)(_dateLeft, _dateRight)) {\n // sign is used to account for both negative and positive differences\n result += (0, _index5.isWeekend)(_dateRight) ? 0 : sign;\n _dateRight = (0, _index.addDays)(_dateRight, sign);\n }\n\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\n"],"names":["differenceInBusinessDays_1","differenceInBusinessDays","dateLeft","dateRight","_dateLeft","_index6","toDate","_dateRight","_index4","isValid","NaN","calendarDifference","_index2","differenceInCalendarDays","sign","weeks","Math","trunc","result","_index","addDays","_index3","isSameDay","_index5","isWeekend","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":"
|
|
1
|
+
{"version":3,"file":"differenceInBusinessDays.js","sources":["../../../node_modules/date-fns/differenceInBusinessDays.js"],"sourcesContent":["\"use strict\";\nexports.differenceInBusinessDays = differenceInBusinessDays;\nvar _index = require(\"./addDays.js\");\nvar _index2 = require(\"./differenceInCalendarDays.js\");\nvar _index3 = require(\"./isSameDay.js\");\nvar _index4 = require(\"./isValid.js\");\nvar _index5 = require(\"./isWeekend.js\");\nvar _index6 = require(\"./toDate.js\");\n\n/**\n * @name differenceInBusinessDays\n * @category Day Helpers\n * @summary Get the number of business days between the given dates.\n *\n * @description\n * Get the number of business day periods between the given dates.\n * Business days being days that arent in the weekend.\n * Like `differenceInCalendarDays`, the function removes the times from\n * the dates before calculating the difference.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of business days\n *\n * @example\n * // How many business days are between\n * // 10 January 2014 and 20 July 2014?\n * const result = differenceInBusinessDays(\n * new Date(2014, 6, 20),\n * new Date(2014, 0, 10)\n * )\n * //=> 136\n *\n * // How many business days are between\n * // 30 November 2021 and 1 November 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 30),\n * new Date(2021, 10, 1)\n * )\n * //=> 21\n *\n * // How many business days are between\n * // 1 November 2021 and 1 December 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 11, 1)\n * )\n * //=> -22\n *\n * // How many business days are between\n * // 1 November 2021 and 1 November 2021 ?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 10, 1)\n * )\n * //=> 0\n */\nfunction differenceInBusinessDays(dateLeft, dateRight) {\n const _dateLeft = (0, _index6.toDate)(dateLeft);\n let _dateRight = (0, _index6.toDate)(dateRight);\n\n if (!(0, _index4.isValid)(_dateLeft) || !(0, _index4.isValid)(_dateRight))\n return NaN;\n\n const calendarDifference = (0, _index2.differenceInCalendarDays)(\n _dateLeft,\n _dateRight,\n );\n const sign = calendarDifference < 0 ? -1 : 1;\n\n const weeks = Math.trunc(calendarDifference / 7);\n\n let result = weeks * 5;\n _dateRight = (0, _index.addDays)(_dateRight, weeks * 7);\n\n // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week\n while (!(0, _index3.isSameDay)(_dateLeft, _dateRight)) {\n // sign is used to account for both negative and positive differences\n result += (0, _index5.isWeekend)(_dateRight) ? 0 : sign;\n _dateRight = (0, _index.addDays)(_dateRight, sign);\n }\n\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\n"],"names":["differenceInBusinessDays_1","differenceInBusinessDays","dateLeft","dateRight","_dateLeft","_index6","toDate","_dateRight","_index4","isValid","NaN","calendarDifference","_index2","differenceInCalendarDays","sign","weeks","Math","trunc","result","_index","addDays","_index3","isSameDay","_index5","isWeekend","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":"uXACgCA,EAAAC,yBA2DhC,SAAkCC,EAAUC,GAC1C,MAAMC,GAAY,EAAIC,EAAQC,QAAQJ,GACtC,IAAIK,GAAa,EAAIF,EAAQC,QAAQH,GAErC,KAAK,EAAIK,EAAQC,SAASL,MAAe,EAAII,EAAQC,SAASF,GAC5D,OAAOG,IAET,MAAMC,GAAqB,EAAIC,EAAQC,0BACrCT,EACAG,GAEIO,EAAOH,EAAqB,GAAK,EAAI,EAErCI,EAAQC,KAAKC,MAAMN,EAAqB,GAE9C,IAAIO,EAAiB,EAARH,EACbR,GAAa,EAAIY,EAAOC,SAASb,EAAoB,EAARQ,GAG7C,OAAQ,EAAIM,EAAQC,WAAWlB,EAAWG,IAExCW,IAAU,EAAIK,EAAQC,WAAWjB,GAAc,EAAIO,EACnDP,GAAa,EAAIY,EAAOC,SAASb,EAAYO,GAI/C,OAAkB,IAAXI,EAAe,EAAIA,CAC5B,EArFA,IAAIC,EAASM,IACTb,EAAUc,IACVL,EAAUM,IACVnB,EAAUoB,IACVL,EAAUM,IACVxB,EAAUyB","x_google_ignoreList":[0]}
|
package/ext/date-fns/format.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{getDefaultOptions as e}from"./_lib/defaultOptions.js";import{formatters as t}from"./_lib/format/formatters.js";import{longFormatters as o}from"./_lib/format/longFormatters.js";import{isProtectedWeekYearToken as r,isProtectedDayOfYearToken as a,warnOrThrowProtectedError as n}from"./_lib/protectedTokens.js";import{isValid as i}from"./
|
|
1
|
+
import{getDefaultOptions as e}from"./_lib/defaultOptions.js";import{formatters as t}from"./_lib/format/formatters.js";import{longFormatters as o}from"./_lib/format/longFormatters.js";import{isProtectedWeekYearToken as r,isProtectedDayOfYearToken as a,warnOrThrowProtectedError as n}from"./_lib/protectedTokens.js";import{isValid as i}from"./isValid.js";import{toDate as s}from"./toDate2.js";import{enUS as l}from"./locale/en-US.js";const c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f=/^'([^]*?)'?$/,p=/''/g,u=/[a-zA-Z]/;function k(f,p,k){const w=e(),g=k?.locale??w.locale??l,h=k?.firstWeekContainsDate??k?.locale?.options?.firstWeekContainsDate??w.firstWeekContainsDate??w.locale?.options?.firstWeekContainsDate??1,j=k?.weekStartsOn??k?.locale?.options?.weekStartsOn??w.weekStartsOn??w.locale?.options?.weekStartsOn??0,D=s(f);if(!i(D))throw new RangeError("Invalid time value");let v=p.match(m).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,o[t])(e,g.formatLong)}return e})).join("").match(c).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const o=e[0];if("'"===o)return{isToken:!1,value:d(e)};if(t[o])return{isToken:!0,value:e};if(o.match(u))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return{isToken:!1,value:e}}));g.localize.preprocessor&&(v=g.localize.preprocessor(D,v));const T={firstWeekContainsDate:h,weekStartsOn:j,locale:g};return v.map((e=>{if(!e.isToken)return e.value;const o=e.value;(!k?.useAdditionalWeekYearTokens&&r(o)||!k?.useAdditionalDayOfYearTokens&&a(o))&&n(o,p,String(f));return(0,t[o[0]])(D,o,g.localize,T)})).join("")}function d(e){const t=e.match(f);return t?t[1].replace(p,"'"):e}export{k as default,k as format,k as formatDate,t as formatters,o as longFormatters};
|
|
2
2
|
//# sourceMappingURL=format.js.map
|