@mmb-digital/ds-lilly 1.0.33 → 1.0.35
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/Modal/_elements_/Modal.hook.d.ts.map +1 -1
- package/cjs/components/Components/Modal/_elements_/Modal.hook.js +1 -1
- package/cjs/components/Components/Modal/_elements_/Modal.hook.js.map +1 -1
- package/cjs/components/Components/SuperModal/_elements_/SuperModal.d.ts.map +1 -1
- package/cjs/components/Components/SuperModal/_elements_/SuperModal.js +1 -1
- package/cjs/components/Components/SuperModal/_elements_/SuperModal.js.map +1 -1
- package/cjs/components/Components/Tile/Tile.d.ts +7 -3
- package/cjs/components/Components/Tile/Tile.d.ts.map +1 -1
- package/cjs/components/Components/Tile/Tile.js +1 -1
- package/cjs/components/Components/Tile/Tile.js.map +1 -1
- package/cjs/components/Form/Slider/Slider.d.ts +5 -1
- package/cjs/components/Form/Slider/Slider.d.ts.map +1 -1
- package/cjs/components/Form/Slider/Slider.js +1 -1
- package/cjs/components/Form/Slider/Slider.js.map +1 -1
- package/cjs/ds-lilly.css +3 -3
- package/components/Components/Modal/_elements_/Modal.hook.d.ts.map +1 -1
- package/components/Components/Modal/_elements_/Modal.hook.js +1 -1
- package/components/Components/Modal/_elements_/Modal.hook.js.map +1 -1
- package/components/Components/SuperModal/_elements_/SuperModal.d.ts.map +1 -1
- package/components/Components/SuperModal/_elements_/SuperModal.js +1 -1
- package/components/Components/SuperModal/_elements_/SuperModal.js.map +1 -1
- package/components/Components/Tile/Tile.d.ts +7 -3
- package/components/Components/Tile/Tile.d.ts.map +1 -1
- package/components/Components/Tile/Tile.js +1 -1
- package/components/Components/Tile/Tile.js.map +1 -1
- package/components/Form/Slider/Slider.d.ts +5 -1
- package/components/Form/Slider/Slider.d.ts.map +1 -1
- package/components/Form/Slider/Slider.js +1 -1
- package/components/Form/Slider/Slider.js.map +1 -1
- package/ds-lilly.css +3 -3
- package/package.json +2 -2
- /package/assets/{55c994489ca2f48e6318.ttf → 03fb3fbdc287c5f83d1d.ttf} +0 -0
- /package/assets/{2f7827bbb08a189fd291.eot → 306b36d181b6cffa942c.eot} +0 -0
- /package/assets/{44d17eddc33cc6701289.eot → 40f98d71b76c5ce1253f.eot} +0 -0
- /package/assets/{161b3f75209f9a5924b0.gif → 526c4fb60211f6380aca.gif} +0 -0
- /package/assets/{8e85ee284c8d57bb1119.eot → 52921319f6d7a5c767c6.eot} +0 -0
- /package/assets/{ba1b766731a49de9eb0c.woff → 5cd765ff1ac065d1afd6.woff} +0 -0
- /package/assets/{c85a3464f9ad77540011.woff → 7969fd87f20daf9e6479.woff} +0 -0
- /package/assets/{d206b71675f8d1cadaf7.ttf → 8c8d20a859a81daf4e55.ttf} +0 -0
- /package/assets/{4d37bd6029c241103058.svg → 8ea75d53e56f30ee68ee.svg} +0 -0
- /package/assets/{8ce2a45cdcfb2291e928.svg → a0a44e4efa22a8436e70.svg} +0 -0
- /package/assets/{af3a2b40c1ac9d68a2cb.eot → b6ad2b0672c448d65335.eot} +0 -0
- /package/assets/{20b3d6041c3cf4e1ad40.gif → c9a98430136bdff4410e.gif} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.hook.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Components/Modal/_elements_/Modal.hook.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAS,cAAc,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,yCAAyC;IACzC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,6CAA6C;IAC7C,SAAS,EAAE,OAAO,CAAA;IAClB,wBAAwB;IACxB,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,KAAK,GAAG,CAAC,OAAO,CAAA;IACjE,mEAAmE;IACnE,UAAU,EAAE,gBAAgB,CAAA;CAC7B;AAKD,UAAU,iBAAiB;IACzB,sDAAsD;IACtD,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC,yCAAyC;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,QAAQ,0EAKlB,iBAAiB,KAAQ,
|
|
1
|
+
{"version":3,"file":"Modal.hook.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Components/Modal/_elements_/Modal.hook.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAS,cAAc,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,yCAAyC;IACzC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,6CAA6C;IAC7C,SAAS,EAAE,OAAO,CAAA;IAClB,wBAAwB;IACxB,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,KAAK,GAAG,CAAC,OAAO,CAAA;IACjE,mEAAmE;IACnE,UAAU,EAAE,gBAAgB,CAAA;CAC7B;AAKD,UAAU,iBAAiB;IACzB,sDAAsD;IACtD,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC,yCAAyC;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,QAAQ,0EAKlB,iBAAiB,KAAQ,aAqI3B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require('./../../../../ext/cuid/index.js'),t=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 i=require("../../../../utils/constants.js"),n=require("../../../../utils/hooks.js"),o=require("../Modal.js"),u='a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select';exports.useModal=function(
|
|
1
|
+
"use strict";var e=require('./../../../../ext/cuid/index.js'),t=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 i=require("../../../../utils/constants.js"),n=require("../../../../utils/hooks.js"),o=require("../Modal.js"),u='a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select';exports.useModal=function(r){var s=void 0===r?{}:r,l=s.disableCloseByEscape,d=void 0!==l&&l,a=s.disableCloseByOutsideClick,c=void 0!==a&&a,f=s.onHide,v=s.onShow,m=t.useMemo((function(){return"modal_".concat(e.default())}),[]),p=t.useState(!1),y=p[0],E=p[1],q=t.useState(!1),b=q[0],h=q[1],j=t.createRef(),w=function(){f&&f(),E(!1)},k=function(){v&&v(),E(!0)},x=function(e){y&&j.current==e.target&&!c&&w()};t.useEffect((function(){return window.addEventListener("mousedown",x),function(){window.removeEventListener("mousedown",x)}}));var M=new Map([[i.KEYS.Escape,function(){d||w()}],[i.KEYS.Tab,function(e){var t,i=null===(t=j.current)||void 0===t?void 0:t.querySelectorAll(u),n=i?Array.from(i).findIndex((function(e){return e===document.activeElement})):0;if(b||(h(!0),i&&i[n+1].focus(),e.preventDefault()),i&&i.length>0){var o=i[0],r=i[i.length-1],s=e.shiftKey,l=document.activeElement;s||l!==r||(o.focus(),e.preventDefault()),s&&l===o&&(r.focus(),e.preventDefault())}}]]);n.useEventListener("keydown",(function(e){if(y){var t=M.get(e.key);return t&&t(e)}}));var g=function(e){return document.body.classList.remove(e)};t.useEffect((function(){var e,t=document.activeElement;return y?(e="l-body--modalOpen",document.body.classList.add(e),setTimeout((function(){var e,t,i=null===(e=j.current)||void 0===e?void 0:e.querySelectorAll(u),n=null;null==i||i.forEach((function(e){e===document.activeElement&&(n=e)})),n||i&&(null===(t=i[0])||void 0===t||t.focus())}),300)):g("l-body--modalOpen"),function(){y&&(null==t||t.focus()),g("l-body--modalOpen")}}),[y]);var S={disableDefaultCloseBehavior:c,disableCloseByEscape:d,isVisible:y,isFocused:b,reference:j,identification:m,hide:w,show:k};return{hide:w,show:k,isVisible:y,Modal:o.Modal,modalProps:S}};
|
|
2
2
|
//# sourceMappingURL=Modal.hook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.hook.js","sources":["../../../../../../../src/components/Components/Modal/_elements_/Modal.hook.tsx"],"sourcesContent":[null],"names":["focusableModalElementsSelector","_a","_b","_c","disableCloseByEscape","_d","disableCloseByOutsideClick","onHide","onShow","identification","useMemo","concat","createId","_e","useState","isVisible","setIsVisible","_f","isFocused","setIsFocused","
|
|
1
|
+
{"version":3,"file":"Modal.hook.js","sources":["../../../../../../../src/components/Components/Modal/_elements_/Modal.hook.tsx"],"sourcesContent":[null],"names":["focusableModalElementsSelector","_a","_b","_c","disableCloseByEscape","_d","disableCloseByOutsideClick","onHide","onShow","identification","useMemo","concat","createId","_e","useState","isVisible","setIsVisible","_f","isFocused","setIsFocused","reference","createRef","handleHideWithCallbacks","handleShowWithCallbacks","mouseDownListener","event","current","target","useEffect","window","addEventListener","removeEventListener","keyListenersMap","Map","KEYS","Escape","Tab","focusableModalElements","querySelectorAll","activeElementPos","Array","from","findIndex","element","document","activeElement","focus","preventDefault","length","firstElement","lastElement","shiftKey","useEventListener","listener","get","key","removeBodyClass","className","body","classList","remove","beforeActive","add","setTimeout","focusedElementInModal","forEach","e","modalProps","disableDefaultCloseBehavior","hide","show","Modal"],"mappings":"imBAuBMA,EACJ,sHAasB,SAACC,OAAAC,OAKF,IAAAD,EAAA,CAAA,IAJrBE,EAAAD,EAAAE,qBAAAA,OAAoB,IAAAD,GAAQA,EAC5BE,+BAAAC,cAAkCD,EAClCE,EAAML,EAAAK,OACNC,EAAMN,EAAAM,OAEAC,EAAiBC,EAAAA,SAAQ,WAAM,MAAA,SAAAC,OAASC,EAAAA,aAAc,IACtDC,EAA4BC,EAAAA,UAAS,GAApCC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GACxBI,EAA4BH,EAAAA,UAAS,GAApCI,EAASD,EAAA,GAAEE,EAAYF,EAAA,GAExBG,EAAYC,EAAAA,YAEZC,EAA0B,WAC9Bf,GAAUA,IACVS,GAAa,EACf,EAEMO,EAA0B,WAC9Bf,GAAUA,IACVQ,GAAa,EACf,EAEMQ,EAAoB,SAACC,GAErBV,GAAaK,EAAUM,SAAWD,EAAME,SAAWrB,GACrDgB,GAEJ,EAEAM,EAAAA,WAAU,WAGR,OAFAC,OAAOC,iBAAiB,YAAaN,GAE9B,WACLK,OAAOE,oBAAoB,YAAaP,EAC1C,CACF,IAEA,IAsCMQ,EAAkB,IAAIC,IAAI,CAC9B,CAACC,EAAIA,KAACC,OAPa,WACd/B,GACHkB,GAEJ,GAIE,CAACY,EAAIA,KAACE,IAxCa,SAACX,SACdY,EAA0C,QAAjBpC,EAAAmB,EAAUM,eAAO,IAAAzB,OAAA,EAAAA,EAAEqC,iBAA8BtC,GAE1EuC,EAAmBF,EACrBG,MAAMC,KAAKJ,GAAwBK,WAAU,SAACC,GAAY,OAAAA,IAAYC,SAASC,aAArB,IAC1D,EAQJ,GANK3B,IACHC,GAA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/C,EACNR,UAASA,EACTwD,MAAKA,EAAAA,MACLJ,WAAUA,EAEd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Components/SuperModal/_elements_/SuperModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAA;AAI7D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAKD,QAAA,MAAM,UAAU,4CAAoE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SuperModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Components/SuperModal/_elements_/SuperModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAA;AAI7D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAKD,QAAA,MAAM,UAAU,4CAAoE,mBAAmB,sBAgFtG,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});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 t=require("../../../../utils/classBinder.js");require('./../../../../ext/text-mask-addons/dist/textMaskAddons.js');var r=require("../../../../utils/constants.js"),i=require('./../../../../ext/framer-motion/dist/es/render/dom/motion.js');exports.default=function(n){var o=n.children,s=n.isContentScrolled,u=void 0!==s&&s,a=n.testId,d=void 0===a?"SuperModal":a,l=e.useState(!1),c=l[0],f=l[1],m="superModal",v=new Map([[r.KEYS.Tab,function(e){var t
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});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 t=require("../../../../utils/classBinder.js");require('./../../../../ext/text-mask-addons/dist/textMaskAddons.js');var r=require("../../../../utils/constants.js"),i=require('./../../../../ext/framer-motion/dist/es/render/dom/motion.js');exports.default=function(n){var o=n.children,s=n.isContentScrolled,u=void 0!==s&&s,a=n.testId,d=void 0===a?"SuperModal":a,l=e.useState(!1),c=l[0],f=l[1],m="superModal",v=new Map([[r.KEYS.Tab,function(e){var t,r=null===(t=document.getElementById(m))||void 0===t?void 0:t.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select, [tabindex]:not([tabindex="-1"])'),i=document.activeElement,n=r?Array.from(r).findIndex((function(e){return e===i})):0;if(c||(f(!0),r&&r[n+1].focus(),e.preventDefault()),r&&r.length>0){var o=r[0],s=r[r.length-1],u=e.shiftKey;u||i!==s||(o.focus(),e.preventDefault()),u&&i===o&&(s.focus(),e.preventDefault())}}]]),p=function(e){var t=v.get(e.key);return t&&t(e)};return e.useEffect((function(){return window.addEventListener("keydown",p),function(){window.removeEventListener("keydown",p)}})),e.useEffect((function(){var e=document.activeElement;return function(){null==e||e.focus()}}),[]),e.createElement(i.motion.section,{key:"key_".concat(m),animate:{y:0},"aria-labeledBy":"superModal_title","aria-modal":"true",className:t.cx("c-superModal",{"c-superModal--scrolled":u}),"data-testid":d,exit:{y:"100%"},id:m,initial:{y:"100%"},role:"dialog",transition:{duration:.3}},o)};
|
|
2
2
|
//# sourceMappingURL=SuperModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperModal.js","sources":["../../../../../../../src/components/Components/SuperModal/_elements_/SuperModal.tsx"],"sourcesContent":[null],"names":["_a","children","_b","isContentScrolled","_c","testId","_d","useState","isFocused","setIsFocused","identification","keyListenersMap","Map","KEYS","Tab","event","
|
|
1
|
+
{"version":3,"file":"SuperModal.js","sources":["../../../../../../../src/components/Components/SuperModal/_elements_/SuperModal.tsx"],"sourcesContent":[null],"names":["_a","children","_b","isContentScrolled","_c","testId","_d","useState","isFocused","setIsFocused","identification","keyListenersMap","Map","KEYS","Tab","event","focusableModalElements","document","getElementById","querySelectorAll","activeElement","activeElementPos","Array","from","findIndex","element","focus","preventDefault","length","firstElement","lastElement","shiftKey","keyDownListener","listener","get","key","useEffect","window","addEventListener","removeEventListener","beforeActive","React","createElement","motion","section","concat","animate","y","className","cx","exit","id","initial","role","transition","duration"],"mappings":"0oBAcmB,SAACA,GAAE,IAAAC,EAAQD,EAAAC,SAAEC,EAAyBF,EAAAG,kBAAzBA,OAAoB,IAAAD,GAAKA,EAAEE,EAAqBJ,EAAAK,OAArBA,OAAM,IAAAD,EAAG,aAAYA,EACxEE,EAA4BC,EAAAA,UAAS,GAApCC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GAExBI,EAAiB,aAqCjBC,EAAkB,IAAIC,IAAI,CAAC,CAACC,EAAIA,KAACC,IAnClB,SAACC,SACdC,EAC2B,QADFhB,EAAAiB,SAC5BC,eAAeR,UAAe,IAAAV,OAAA,EAAAA,EAC7BmB,iBAVN,uIAYUC,EAAkBH,SAAQG,cAE5BC,EAAmBL,EACrBM,MAAMC,KAAKP,GAAwBQ,WAAU,SAACC,GAAY,OAAAA,IAAYL,KACtE,EAQJ,GANKZ,IACHC,GAAa,GACbO,GAA0BA,EAAuBK,EAAmB,GAAGK,QACvEX,EAAMY,kBAGJX,GAA0BA,EAAuBY,OAAS,EAAG,CAC/D,IAAMC,EAAeb,EAAuB,GACtCc,EAAcd,EAAuBA,EAAuBY,OAAS,GAEnEG,EAAahB,EAAKgB,SAErBA,GAAYX,IAAkBU,IACjCD,EAAaH,QACbX,EAAMY,kBAGJI,GAAYX,IAAkBS,IAChCC,EAAYJ,QACZX,EAAMY,iBAET,CACH,KAIMK,EAAkB,SAACjB,GACvB,IAAMkB,EAAWtB,EAAgBuB,IAAInB,EAAMoB,KAC3C,OAAOF,GAAYA,EAASlB,EAC9B,EAkBA,OAhBAqB,EAAAA,WAAU,WAGR,OAFAC,OAAOC,iBAAiB,UAAWN,GAE5B,WACLK,OAAOE,oBAAoB,UAAWP,EACxC,CACF,IAEAI,EAAAA,WAAU,WACR,IAAMI,EAAevB,SAASG,cAC9B,OAAO,WAELoB,SAAAA,EAAcd,OAChB,CACD,GAAE,IAGDe,EAAAC,cAACC,EAAAA,OAAOC,QACN,CAAAT,IAAK,OAAAU,OAAOnC,GACZoC,QAAS,CAAEC,EAAG,oBACC,mBAAkB,aACtB,OACXC,UAAWC,KAAG,eAAgB,CAAE,yBAA0B9C,IAAoB,cACjEE,EACb6C,KAAM,CAAEH,EAAG,QACXI,GAAIzC,EACJ0C,QAAS,CAAEL,EAAG,QACdM,KAAK,SACLC,WAAY,CAAEC,SAAU,KAEvBtD,EAGP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, SyntheticEvent } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { IconNameType } from '../../../types';
|
|
3
3
|
import { ComponentPropsType } from '../../../utils';
|
|
4
4
|
import { TitleSize } from '../../Typography';
|
|
@@ -6,7 +6,7 @@ import { AvatarSizeType } from '../Avatar';
|
|
|
6
6
|
export type IconStyle = 'fill' | 'transparent';
|
|
7
7
|
export interface TilePropsType extends ComponentPropsType {
|
|
8
8
|
/** Size of title. Used for it's basic purpose = defining page navigation priority. Please follow standard **[rules](https://www.w3.org/WAI/test-evaluate/preliminary/#headings)**. */
|
|
9
|
-
titleSize
|
|
9
|
+
titleSize?: TitleSize;
|
|
10
10
|
/** Children to be rendered in the main container. */
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
/** Name of icon */
|
|
@@ -26,6 +26,10 @@ export interface TilePropsType extends ComponentPropsType {
|
|
|
26
26
|
/** Icon size enum type */
|
|
27
27
|
iconSize?: AvatarSizeType;
|
|
28
28
|
perex?: ReactNode;
|
|
29
|
+
/** When you need to use Tile without rendering heading */
|
|
30
|
+
withoutTitle?: boolean;
|
|
31
|
+
/** React component or string specifying the HTML tag to use without title. */
|
|
32
|
+
component?: React.ElementType;
|
|
29
33
|
}
|
|
30
|
-
export declare const Tile: ({ children, iconName, iconSize, iconStyle, isDisabled, isSelectable, isSelected, linkTo, onClick, perex, testId, theme, titleSize }: TilePropsType) => JSX.Element;
|
|
34
|
+
export declare const Tile: ({ children, component, iconName, iconSize, iconStyle, isDisabled, isSelectable, isSelected, linkTo, onClick, perex, testId, theme, titleSize, withoutTitle }: TilePropsType) => JSX.Element;
|
|
31
35
|
//# sourceMappingURL=Tile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,EAAe,MAAM,OAAO,CAAA;AAErE,OAAO,EAAa,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AAEvD,OAAO,EAAe,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAU,cAAc,EAAE,MAAM,WAAW,CAAA;AAElD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,aAAa,CAAA;AAE9C,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,sLAAsL;IACtL,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2BAA2B;IAC3B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IACrC,iBAAiB;IACjB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAC9B;AAaD,eAAO,MAAM,IAAI,iKAgBd,aAAa,KAAG,WAiDlB,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
|
|
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 t=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js'),require("../../Form/Autocomplete/Autocomplete.js");var r=require("../../Form/Checkbox/Checkbox.js");require('./../../../ext/tslib/tslib.es6.js'),require('./../../../ext/cuid/index.js'),require('./../../../ext/react-device-detect/dist/lib.js');var i=require("../Avatar/Avatar.js");require("../Button/Button.js"),require("../ButtonTooltip/ButtonTooltip.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"),require('./../../../ext/lodash/_baseToString.js'),require('./../../../ext/react-text-mask/dist/reactTextMask.js'),require("../../Typography/Amount/Amount.js");var o=require("../../Typography/Text/Text.js"),s=require("../../Typography/Title/Title.js");require("../Dropdown/_elements_/DropdownDivider.js"),require("../Dropdown/_elements_/DropdownItem.js"),require("../Dropdown/_elements_/DropdownMenu.js"),require("../../../contexts/ContentTableContext.js"),require("../ContentTable/ContentTableRow.js"),require("../Link/Link.js"),require("react-dom"),require("react-router-dom"),require("../../../contexts/MobilePanelContext.js"),require("../SuperModal/SuperModal.context.js"),require("../UserAuth/UserAuth.js"),require("../dataTable/DataTable.js"),require("../../Form/Select/_elements_/Select2CategorisedOptions.js"),require("../../Form/Select/_elements_/Select2Options.js"),require("../../Form/Slider/Slider.js");var l={fill:{backgroundColor:"bgBrandBold",color:"fgInverseDefault"},transparent:{backgroundColor:void 0,color:"fgBrandDefault"}};exports.Tile=function(n){var a=n.children,u=n.component,c=n.iconName,d=n.iconSize,m=void 0===d?"large":d,q=n.iconStyle,j=void 0===q?"transparent":q,p=n.isDisabled,x=void 0!==p&&p,_=n.isSelectable,b=n.isSelected,C=void 0!==b&&b,v=n.linkTo,T=n.onClick,k=n.perex,h=n.testId,g=n.theme,S=n.titleSize,D=n.withoutTitle,A=e.useCallback((function(e){!x&&v||e.preventDefault(),T&&!x&&T(e)}),[x,v,T]);return e.createElement("a",{className:t.cx("c-tile",g,{"c-tile--selected":C,"c-tile--disabled":x}),"data-testid":h,href:v||void 0,onClick:A},_&&e.createElement(r.Checkbox,{name:"tileCheckbox",theme:"c-tile__checkbox",value:C}),!!c&&e.createElement(i.Avatar,{backgroundColor:l[j].backgroundColor,color:l[j].color,iconName:c,size:m,theme:"c-tile__icon"}),e.createElement("div",{className:t.cx("c-tile__label",{"c-tile__label-icon":!!c})},D?e.createElement(o.Text,{component:u||"p",theme:"c-tile__title"},a):e.createElement(s.Title,{size:S||"h2",theme:"c-tile__title"},a)),k&&e.createElement("span",{className:"c-tile__perex"},k))};
|
|
2
2
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sources":["../../../../../../src/components/Components/Tile/Tile.tsx"],"sourcesContent":[null],"names":["avatarProps","fill","backgroundColor","color","transparent","undefined","_a","children","iconName","_b","iconSize","_c","iconStyle","_d","isDisabled","isSelectable","_e","isSelected","linkTo","onClick","perex","testId","theme","titleSize","handleOnClick","useCallback","e","preventDefault","React","className","cx","href","createElement","Checkbox","name","value","Avatar","size","Title"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tile.js","sources":["../../../../../../src/components/Components/Tile/Tile.tsx"],"sourcesContent":[null],"names":["avatarProps","fill","backgroundColor","color","transparent","undefined","_a","children","component","iconName","_b","iconSize","_c","iconStyle","_d","isDisabled","isSelectable","_e","isSelected","linkTo","onClick","perex","testId","theme","titleSize","withoutTitle","handleOnClick","useCallback","e","preventDefault","React","className","cx","href","createElement","Checkbox","name","value","Avatar","size","Text","Title"],"mappings":"k+DAsCA,IAAMA,EAAqF,CACzFC,KAAM,CACJC,gBAAiB,cACjBC,MAAO,oBAETC,YAAa,CACXF,qBAAiBG,EACjBF,MAAO,gCAIS,SAACG,OACnBC,EAAQD,EAAAC,SACRC,EAASF,EAAAE,UACTC,EAAQH,EAAAG,SACRC,EAAAJ,EAAAK,SAAAA,OAAW,IAAAD,EAAA,QAAOA,EAClBE,EAAyBN,EAAAO,UAAzBA,OAAS,IAAAD,EAAG,cAAaA,EACzBE,EAAAR,EAAAS,WAAAA,OAAa,IAAAD,GAAKA,EAClBE,EAAYV,EAAAU,aACZC,EAAkBX,EAAAY,WAAlBA,OAAU,IAAAD,GAAQA,EAClBE,EAAMb,EAAAa,OACNC,EAAOd,EAAAc,QACPC,EAAKf,EAAAe,MACLC,EAAMhB,EAAAgB,OACNC,EAAKjB,EAAAiB,MACLC,EAASlB,EAAAkB,UACTC,EAAYnB,EAAAmB,aAENC,EAAgBC,eACpB,SAACC,IACKb,GAAeI,GACjBS,EAAEC,iBAGAT,IAAYL,GACdK,EAAQQ,EAEX,GACD,CAACb,EAAYI,EAAQC,IAGvB,OACEU,qBACEC,UAAWC,EAAEA,GAAC,SAAUT,EAAO,CAC7B,mBAAoBL,EACpB,mBAAoBH,IACpB,cACWO,EACbW,KAAMd,QAAUd,EAChBe,QAASM,GAERV,GAAgBc,EAAAI,cAACC,EAAAA,SAAQ,CAACC,KAAK,eAAeb,MAAM,mBAAmBc,MAAOnB,MAE5ET,GACDqB,EAAAI,cAACI,EAAAA,OACC,CAAApC,gBAAiBF,EAAYa,GAAWX,gBACxCC,MAAOH,EAAYa,GAAWV,MAC9BM,SAAUA,EACV8B,KAAM5B,EACNY,MAAM,iBAGVO,EAAAI,cAAA,MAAA,CAAKH,UAAWC,EAAEA,GAAC,gBAAiB,CAAE,uBAAwBvB,KAC3DgB,EACCK,EAACI,cAAAM,EAAAA,MAAKhC,UAAWA,GAAwB,IAAKe,MAAM,iBACjDhB,GAGHuB,EAAAI,cAACO,EAAKA,MAAA,CAACF,KAAMf,GAAwB,KAAMD,MAAM,iBAC9ChB,IAINc,GAASS,EAAMI,cAAA,OAAA,CAAAH,UAAU,iBAAiBV,GAGjD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, KeyboardEvent, ReactElement, SyntheticEvent } from 'react';
|
|
1
|
+
import { Component, KeyboardEvent, ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { FormField2Value } from '../../../types';
|
|
3
3
|
import { ComponentPropsType, DisabledTooltipPropsType } from '../../../utils';
|
|
4
4
|
import { InputPropsType } from '../Input';
|
|
@@ -43,6 +43,10 @@ export interface SliderPropsType extends ComponentPropsType, DisabledTooltipProp
|
|
|
43
43
|
readOnlyValue?: string;
|
|
44
44
|
/** Label value */
|
|
45
45
|
label?: string;
|
|
46
|
+
/** Screen reader only text for min label (e.g. "Minimum value:") */
|
|
47
|
+
minLabelSrText?: ReactNode;
|
|
48
|
+
/** Screen reader only text for max label (e.g. "Maximum value:") */
|
|
49
|
+
maxLabelSrText?: ReactNode;
|
|
46
50
|
}
|
|
47
51
|
type State = {
|
|
48
52
|
dragging: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGhG,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAM,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAGjF,OAAO,EAAS,cAAc,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,eAAgB,SAAQ,kBAAkB,EAAE,wBAAwB;IACnF,qBAAqB;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,uBAAuB;IACvB,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IAChC,uBAAuB;IACvB,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IAChC,+BAA+B;IAC/B,G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AI,CAAA;IAC9B,KAAK,EAAG,eAAe,CAAA;IAEvB,UAAU,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CAGzD;IAED,WAAW,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CAG1D;IAED,aAAa,UAAW,cAAc,cAAc,CAAC,KAAG,IAAI,CAY3D;IAED,cAAc,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CAM7D;IAED,WAAW,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CAM1D;IAED,eAAe,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CACK;IAEpE,gBAAgB,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CACG;IAEnE,iBAAiB,UAAW,eAAe,UAG1C;IAED,eAAe,UAAW,eAAe,UAKxC;IAED,MAAM,IAAI,GAAG,CAAC,OAAO;CAoGtB"}
|
|
@@ -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("../../Components/Button/Button.js"),require("../../../contexts/MobilePanelContext.js"),require('./../../../ext/cuid/index.js'),require('./../../../ext/camelcase/index.js'),require("../../Components/ButtonTooltip/ButtonTooltip.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 i=require("../Input/Input.js");require("../../Typography/Amount/Amount.js");var s=require("../../Typography/Text/Text.js");require("../../Components/Dropdown/_elements_/DropdownDivider.js"),require("../../Components/Dropdown/_elements_/DropdownItem.js"),require("../../Components/Dropdown/_elements_/DropdownMenu.js"),require("../../../contexts/ContentTableContext.js"),require("../../Components/ContentTable/ContentTableRow.js"),require("../../Components/Link/Link.js"),require("react-dom"),require("react-router-dom"),require("../../Components/SuperModal/SuperModal.context.js"),require("../Autocomplete/Autocomplete.js"),require('./../../../ext/react-device-detect/dist/lib.js'),require("../Select/_elements_/Select2CategorisedOptions.js"),require("../Select/_elements_/Select2Options.js"),require("../../Components/UserAuth/UserAuth.js"),require("../../Components/dataTable/DataTable.js");var u=["mousemove"],l=["mouseup"],d=["touchmove"],c=["touchup","touchend","touchcancel"],p=function(e,t,n){return Math.round((n-e)/t)*t+e},m=function(e,t,n){return Math.min(Math.max(n,e),t)},h=function(e,t,n,r){return m(e,t,p(e,n,r))},g=function(e,t,n,r){return m(0,1,(p(e,n,r)-e)/(t-e))},f=function(f){function v(){var e=null!==f&&f.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?h(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 m(e,t,p(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?(d.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),c.forEach((function(t){return document.addEventListener(t,e.onDragStop)}))):(u.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),l.forEach((function(t){return document.addEventListener(t,e.onDragStop)})))},e.removeEventListeners=function(){d.forEach((function(t){return document.removeEventListener(t,e.onDragUpdate)})),c.forEach((function(t){return document.removeEventListener(t,e.onDragStop)})),u.forEach((function(t){return document.removeEventListener(t,e.onDragUpdate)})),l.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=h(o,r,i,Number(t));a&&"number"==typeof s&&a(void 0,Number(s.toFixed(5)))},e}return e.__extends(v,f),v.prototype.componentDidMount=function(){var e=this.props,t=e.max,n=e.min,r=e.step,o=e.value;this.setState({percentage:g(n,t,r,o)})},v.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:g(n,t,r,a)}},v.prototype.render=function(){var u=this,l=this.props,d=l.disabledTooltip,c=l.inputProps,p=void 0===c?{name:"sliderInput"}:c,m=l.isDisabled,h=l.label,g=l.max,f=l.maxLabel,v=l.
|
|
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("../../Components/Button/Button.js"),require("../../../contexts/MobilePanelContext.js"),require('./../../../ext/cuid/index.js'),require('./../../../ext/camelcase/index.js'),require("../../Components/ButtonTooltip/ButtonTooltip.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 i=require("../Input/Input.js");require("../../Typography/Amount/Amount.js");var s=require("../../Typography/Text/Text.js");require("../../Components/Dropdown/_elements_/DropdownDivider.js"),require("../../Components/Dropdown/_elements_/DropdownItem.js"),require("../../Components/Dropdown/_elements_/DropdownMenu.js"),require("../../../contexts/ContentTableContext.js"),require("../../Components/ContentTable/ContentTableRow.js"),require("../../Components/Link/Link.js"),require("react-dom"),require("react-router-dom"),require("../../Components/SuperModal/SuperModal.context.js"),require("../Autocomplete/Autocomplete.js"),require('./../../../ext/react-device-detect/dist/lib.js'),require("../Select/_elements_/Select2CategorisedOptions.js"),require("../Select/_elements_/Select2Options.js"),require("../../Components/UserAuth/UserAuth.js"),require("../../Components/dataTable/DataTable.js");var u=["mousemove"],l=["mouseup"],d=["touchmove"],c=["touchup","touchend","touchcancel"],p=function(e,t,n){return Math.round((n-e)/t)*t+e},m=function(e,t,n){return Math.min(Math.max(n,e),t)},h=function(e,t,n,r){return m(e,t,p(e,n,r))},g=function(e,t,n,r){return m(0,1,(p(e,n,r)-e)/(t-e))},f=function(f){function v(){var e=null!==f&&f.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?h(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 m(e,t,p(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?(d.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),c.forEach((function(t){return document.addEventListener(t,e.onDragStop)}))):(u.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),l.forEach((function(t){return document.addEventListener(t,e.onDragStop)})))},e.removeEventListeners=function(){d.forEach((function(t){return document.removeEventListener(t,e.onDragUpdate)})),c.forEach((function(t){return document.removeEventListener(t,e.onDragStop)})),u.forEach((function(t){return document.removeEventListener(t,e.onDragUpdate)})),l.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=h(o,r,i,Number(t));a&&"number"==typeof s&&a(void 0,Number(s.toFixed(5)))},e}return e.__extends(v,f),v.prototype.componentDidMount=function(){var e=this.props,t=e.max,n=e.min,r=e.step,o=e.value;this.setState({percentage:g(n,t,r,o)})},v.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:g(n,t,r,a)}},v.prototype.render=function(){var u=this,l=this.props,d=l.disabledTooltip,c=l.inputProps,p=void 0===c?{name:"sliderInput"}:c,m=l.isDisabled,h=l.label,g=l.max,f=l.maxLabel,v=l.maxLabelSrText,x=l.min,b=l.minLabel,C=l.minLabelSrText,D=l.readOnlyValue,q=l.testId,E=l.theme,S=l.value,j=l.withInput,y=this.state,_=y.dragging,w=y.percentage;return n.withDisabledTooltip({isDisabled:m,disabledTooltip:d})(t.createElement("div",{className:r.cx("f-slider",{"f-slider--dragging":_,"f-slider--disabled":m},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},h&&t.createElement(s.Text,{size:"small"},h)),j&&t.createElement(a.Col,{md:3,xl:4,xs:12},t.createElement(i.Input,e.__assign({},p,{type:"number",value:S.toString(),onBlur:this.handleInputBlur,onChange:this.handleInputChange}))),!j&&D&&t.createElement(a.Col,{md:3,xl:4,xs:12},t.createElement(s.Text,{isTextRight:!0,size:"small",weight:"medium"},D))),t.createElement("div",{ref:function(e){u.slider=e},"aria-valuemax":g,"aria-valuemin":x,"aria-valuenow":S,className:r.cx("f-slider__drag"),role:"slider",tabIndex:m?-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-w),"%")}}),t.createElement("div",{className:r.cx("f-slider__handle"),style:{left:"".concat(100*w,"%")}})),(b||f)&&t.createElement("div",{className:r.cx("f-slider__labels")},t.createElement("span",null,C&&t.createElement("span",{className:"u-vHide"},C),b),t.createElement("span",null,v&&t.createElement("span",{className:"u-vHide"},v),f))))},v.defaultProps={hideLabels:!1},v}(t.Component);exports.Slider=f;
|
|
2
2
|
//# sourceMappingURL=Slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":["../../../../../../src/components/Form/Slider/Slider.tsx"],"sourcesContent":[null],"names":["mouseUpdateEvents","mouseStopEvents","touchUpdateEvents","touchStopEvents","round","offset","multiple","value","Math","clamp","min","max","normalizeValue","step","getPercentageFromValue","Slider","_super","_this","state","dragging","percentage","onChange","event","customValue","_a","props","steps","length","closest_1","reduce","prev","curr","abs","findIndex","getValueFromDragEvent","Number","toFixed","onDragStart","touch","preventDefault","addEventListeners","setState","slider","focus","onDragStop","removeEventListeners","onDragUpdate","requestAnimationFrame","getValueFromClientOffset","getSliderStartCoordinate","getSliderLength","getValueFromPercentage","getBoundingClientRect","left","NaN","getSliderEndCoordinate","right","clientX","touches","Object","getClientOffsetFromEvent","getValueFromKeyboardEvent","key","value_1","index","valueIndex","forEach","name","document","addEventListener","removeEventListener","handleBlur","onBlur","handleFocus","onFocus","handleKeyDown","isDisabled","onKeyDown","handleKeyPress","onKeyPress","handleKeyUp","onKeyUp","handleMouseDown","undefined","handleTouchStart","handleInputChange","handleInputBlur","normalizedValue","__extends","prototype","componentDidMount","this","getDerivedStateFromProps","nextProps","closest_2","closestIndex","render","disabledTooltip","_b","inputProps","label","maxLabel","minLabel","readOnlyValue","testId","theme","withInput","_c","withDisabledTooltip","React","className","cx","createElement","Flex","alignItems","justifyContent","wrap","Col","md","xl","xs","Text","size","Input","__assign","type","toString","isTextRight","weight","ref","role","tabIndex","onMouseDown","onTouchStart","style","concat","defaultProps","hideLabels","Component"],"mappings":"+
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":["../../../../../../src/components/Form/Slider/Slider.tsx"],"sourcesContent":[null],"names":["mouseUpdateEvents","mouseStopEvents","touchUpdateEvents","touchStopEvents","round","offset","multiple","value","Math","clamp","min","max","normalizeValue","step","getPercentageFromValue","Slider","_super","_this","state","dragging","percentage","onChange","event","customValue","_a","props","steps","length","closest_1","reduce","prev","curr","abs","findIndex","getValueFromDragEvent","Number","toFixed","onDragStart","touch","preventDefault","addEventListeners","setState","slider","focus","onDragStop","removeEventListeners","onDragUpdate","requestAnimationFrame","getValueFromClientOffset","getSliderStartCoordinate","getSliderLength","getValueFromPercentage","getBoundingClientRect","left","NaN","getSliderEndCoordinate","right","clientX","touches","Object","getClientOffsetFromEvent","getValueFromKeyboardEvent","key","value_1","index","valueIndex","forEach","name","document","addEventListener","removeEventListener","handleBlur","onBlur","handleFocus","onFocus","handleKeyDown","isDisabled","onKeyDown","handleKeyPress","onKeyPress","handleKeyUp","onKeyUp","handleMouseDown","undefined","handleTouchStart","handleInputChange","handleInputBlur","normalizedValue","__extends","prototype","componentDidMount","this","getDerivedStateFromProps","nextProps","closest_2","closestIndex","render","disabledTooltip","_b","inputProps","label","maxLabel","maxLabelSrText","minLabel","minLabelSrText","readOnlyValue","testId","theme","withInput","_c","withDisabledTooltip","React","className","cx","createElement","Flex","alignItems","justifyContent","wrap","Col","md","xl","xs","Text","size","Input","__assign","type","toString","isTextRight","weight","ref","role","tabIndex","onMouseDown","onTouchStart","style","concat","defaultProps","hideLabels","Component"],"mappings":"+kEA8DA,IAAMA,EAAoB,CAAC,aACrBC,EAAkB,CAAC,WACnBC,EAAoB,CAAC,aACrBC,EAAkB,CAAC,UAAW,WAAY,eAE1CC,EAAQ,SAACC,EAAgBC,EAAkBC,GAC/C,OAAAC,KAAKJ,OAAOG,EAAQF,GAAUC,GAAYA,EAAWD,CAArD,EAEII,EAAQ,SAACC,EAAaC,EAAaJ,GAA0B,OAAAC,KAAKE,IAAIF,KAAKG,IAAI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AWR,GAC7CD,GAEHQ,EAAAG,cAAA,OAAA,KACGZ,GAAkBS,EAAMG,cAAA,OAAA,CAAAF,UAAU,WAAWV,GAC7CD,OAnTNtF,EAAA2H,aAAe,CACpBC,YAAY,GAyTf5H,EA3TD,CAA4B6H"}
|
package/cjs/ds-lilly.css
CHANGED
|
@@ -9784,7 +9784,7 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
9784
9784
|
/* Slider */
|
|
9785
9785
|
.slick-loading .slick-list
|
|
9786
9786
|
{
|
|
9787
|
-
background: #fff url('assets/
|
|
9787
|
+
background: #fff url('assets/c9a98430136bdff4410e.gif') center center no-repeat;
|
|
9788
9788
|
}
|
|
9789
9789
|
|
|
9790
9790
|
/* Icons */
|
|
@@ -9794,8 +9794,8 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
9794
9794
|
font-weight: normal;
|
|
9795
9795
|
font-style: normal;
|
|
9796
9796
|
|
|
9797
|
-
src: url('assets/
|
|
9798
|
-
src: url('assets/
|
|
9797
|
+
src: url('assets/306b36d181b6cffa942c.eot');
|
|
9798
|
+
src: url('assets/40f98d71b76c5ce1253f.eot') format('embedded-opentype'), url('assets/5cd765ff1ac065d1afd6.woff') format('woff'), url('assets/8c8d20a859a81daf4e55.ttf') format('truetype'), url('assets/8ea75d53e56f30ee68ee.svg') format('svg');
|
|
9799
9799
|
}
|
|
9800
9800
|
/* Arrows */
|
|
9801
9801
|
.slick-prev,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.hook.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Modal/_elements_/Modal.hook.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAS,cAAc,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,yCAAyC;IACzC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,6CAA6C;IAC7C,SAAS,EAAE,OAAO,CAAA;IAClB,wBAAwB;IACxB,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,KAAK,GAAG,CAAC,OAAO,CAAA;IACjE,mEAAmE;IACnE,UAAU,EAAE,gBAAgB,CAAA;CAC7B;AAKD,UAAU,iBAAiB;IACzB,sDAAsD;IACtD,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC,yCAAyC;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,QAAQ,0EAKlB,iBAAiB,KAAQ,
|
|
1
|
+
{"version":3,"file":"Modal.hook.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Modal/_elements_/Modal.hook.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAS,cAAc,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,yCAAyC;IACzC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,6CAA6C;IAC7C,SAAS,EAAE,OAAO,CAAA;IAClB,wBAAwB;IACxB,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,KAAK,GAAG,CAAC,OAAO,CAAA;IACjE,mEAAmE;IACnE,UAAU,EAAE,gBAAgB,CAAA;CAC7B;AAKD,UAAU,iBAAiB;IACzB,sDAAsD;IACtD,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC,yCAAyC;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,QAAQ,0EAKlB,iBAAiB,KAAQ,aAqI3B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from'./../../../../ext/cuid/index.js';import{useMemo as t,useState as o,createRef as i,useEffect as n}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"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import{KEYS as s}from"../../../../utils/constants.js";import{useEventListener as r}from"../../../../utils/hooks.js";import{Modal as l}from"../Modal.js";var u='a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select',d=function(d){var c=void 0===d?{}:d,a=c.disableCloseByEscape,m=void 0!==a&&a,f=c.disableCloseByOutsideClick,p=void 0!==f&&f,v=c.onHide,y=c.onShow,b=t((function(){return"modal_".concat(e())}),[]),h=o(!1),j=h[0],w=h[1],E=o(!1),k=E[0],
|
|
1
|
+
import e from'./../../../../ext/cuid/index.js';import{useMemo as t,useState as o,createRef as i,useEffect as n}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"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import{KEYS as s}from"../../../../utils/constants.js";import{useEventListener as r}from"../../../../utils/hooks.js";import{Modal as l}from"../Modal.js";var u='a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select',d=function(d){var c=void 0===d?{}:d,a=c.disableCloseByEscape,m=void 0!==a&&a,f=c.disableCloseByOutsideClick,p=void 0!==f&&f,v=c.onHide,y=c.onShow,b=t((function(){return"modal_".concat(e())}),[]),h=o(!1),j=h[0],w=h[1],E=o(!1),k=E[0],x=E[1],g=i(),B=function(){v&&v(),w(!1)},C=function(){y&&y(),w(!0)},D=function(e){j&&g.current==e.target&&!p&&B()};n((function(){return window.addEventListener("mousedown",D),function(){window.removeEventListener("mousedown",D)}}));var M=new Map([[s.Escape,function(){m||B()}],[s.Tab,function(e){var t,o=null===(t=g.current)||void 0===t?void 0:t.querySelectorAll(u),i=o?Array.from(o).findIndex((function(e){return e===document.activeElement})):0;if(k||(x(!0),o&&o[i+1].focus(),e.preventDefault()),o&&o.length>0){var n=o[0],s=o[o.length-1],r=e.shiftKey,l=document.activeElement;r||l!==s||(n.focus(),e.preventDefault()),r&&l===n&&(s.focus(),e.preventDefault())}}]]);r("keydown",(function(e){if(j){var t=M.get(e.key);return t&&t(e)}}));var N=function(e){return document.body.classList.remove(e)};return n((function(){var e,t=document.activeElement;return j?(e="l-body--modalOpen",document.body.classList.add(e),setTimeout((function(){var e,t,o=null===(e=g.current)||void 0===e?void 0:e.querySelectorAll(u),i=null;null==o||o.forEach((function(e){e===document.activeElement&&(i=e)})),i||o&&(null===(t=o[0])||void 0===t||t.focus())}),300)):N("l-body--modalOpen"),function(){j&&(null==t||t.focus()),N("l-body--modalOpen")}}),[j]),{hide:B,show:C,isVisible:j,Modal:l,modalProps:{disableDefaultCloseBehavior:p,disableCloseByEscape:m,isVisible:j,isFocused:k,reference:g,identification:b,hide:B,show:C}}};export{d as useModal};
|
|
2
2
|
//# sourceMappingURL=Modal.hook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.hook.js","sources":["../../../../../src/components/Components/Modal/_elements_/Modal.hook.tsx"],"sourcesContent":[null],"names":["focusableModalElementsSelector","useModal","_a","_b","_c","disableCloseByEscape","_d","disableCloseByOutsideClick","onHide","onShow","identification","useMemo","concat","createId","_e","useState","isVisible","setIsVisible","_f","isFocused","setIsFocused","
|
|
1
|
+
{"version":3,"file":"Modal.hook.js","sources":["../../../../../src/components/Components/Modal/_elements_/Modal.hook.tsx"],"sourcesContent":[null],"names":["focusableModalElementsSelector","useModal","_a","_b","_c","disableCloseByEscape","_d","disableCloseByOutsideClick","onHide","onShow","identification","useMemo","concat","createId","_e","useState","isVisible","setIsVisible","_f","isFocused","setIsFocused","reference","createRef","handleHideWithCallbacks","handleShowWithCallbacks","mouseDownListener","event","current","target","useEffect","window","addEventListener","removeEventListener","keyListenersMap","Map","KEYS","Escape","Tab","focusableModalElements","querySelectorAll","activeElementPos","Array","from","findIndex","element","document","activeElement","focus","preventDefault","length","firstElement","lastElement","shiftKey","useEventListener","listener","get","key","removeBodyClass","className","body","classList","remove","beforeActive","add","setTimeout","focusedElementInModal","forEach","e","hide","show","Modal","modalProps","disableDefaultCloseBehavior"],"mappings":"0pBAuBA,IAAMA,EACJ,qGAaWC,EAAW,SAACC,OAAAC,OAKF,IAAAD,EAAA,CAAA,IAJrBE,EAAAD,EAAAE,qBAAAA,OAAoB,IAAAD,GAAQA,EAC5BE,+BAAAC,cAAkCD,EAClCE,EAAML,EAAAK,OACNC,EAAMN,EAAAM,OAEAC,EAAiBC,GAAQ,WAAM,MAAA,SAAAC,OAASC,OAAc,IACtDC,EAA4BC,GAAS,GAApCC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GACxBI,EAA4BH,GAAS,GAApCI,EAASD,EAAA,GAAEE,EAAYF,EAAA,GAExBG,EAAYC,IAEZC,EAA0B,WAC9Bf,GAAUA,IACVS,GAAa,EACf,EAEMO,EAA0B,WAC9Bf,GAAUA,IACVQ,GAAa,EACf,EAEMQ,EAAoB,SAACC,GAErBV,GAAaK,EAAUM,SAAWD,EAAME,SAAWrB,GACrDgB,GAEJ,EAEAM,GAAU,WAGR,OAFAC,OAAOC,iBAAiB,YAAaN,GAE9B,WACLK,OAAOE,oBAAoB,YAAaP,EAC1C,CACF,IAEA,IAsCM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B,UAAI,IAAAnC,GAAAA,EAAA4C,QAExD,GAAE,MAEHU,EAAgB,qBAGX,WACDzC,IACF8C,SAAAA,EAAcf,SAEhBU,EAAgB,oBAClB,CACF,GAAG,CAACzC,IAaG,CACLoD,KAAM7C,EACN8C,KAAM7C,EACNR,UAASA,EACTsD,MAAKA,EACLC,WAhBiB,CACjBC,4BAA6BjE,EAC7BF,qBAAoBA,EACpBW,UAASA,EACTG,UAASA,EACTE,UAASA,EACTX,eAAcA,EACd0D,KAAM7C,EACN8C,KAAM7C,GAUV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/SuperModal/_elements_/SuperModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAA;AAI7D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAKD,QAAA,MAAM,UAAU,4CAAoE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SuperModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/SuperModal/_elements_/SuperModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAA;AAI7D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAKD,QAAA,MAAM,UAAU,4CAAoE,mBAAmB,sBAgFtG,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t,{useState as e,useEffect 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 o}from"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import{KEYS as n}from"../../../../utils/constants.js";import{motion as r}from'./../../../../ext/framer-motion/dist/es/render/dom/motion.js';var a=function(a){var s=a.children,d=a.isContentScrolled,l=void 0!==d&&d,u=a.testId,
|
|
1
|
+
import t,{useState as e,useEffect 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 o}from"../../../../utils/classBinder.js";import'./../../../../ext/text-mask-addons/dist/textMaskAddons.js';import{KEYS as n}from"../../../../utils/constants.js";import{motion as r}from'./../../../../ext/framer-motion/dist/es/render/dom/motion.js';var a=function(a){var s=a.children,d=a.isContentScrolled,l=void 0!==d&&d,u=a.testId,c=void 0===u?"SuperModal":u,m=e(!1),p=m[0],f=m[1],v="superModal",y=new Map([[n.Tab,function(t){var e,i=null===(e=document.getElementById(v))||void 0===e?void 0:e.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select, [tabindex]:not([tabindex="-1"])'),o=document.activeElement,n=i?Array.from(i).findIndex((function(t){return t===o})):0;if(p||(f(!0),i&&i[n+1].focus(),t.preventDefault()),i&&i.length>0){var r=i[0],a=i[i.length-1],s=t.shiftKey;s||o!==a||(r.focus(),t.preventDefault()),s&&o===r&&(a.focus(),t.preventDefault())}}]]),j=function(t){var e=y.get(t.key);return e&&e(t)};return i((function(){return window.addEventListener("keydown",j),function(){window.removeEventListener("keydown",j)}})),i((function(){var t=document.activeElement;return function(){null==t||t.focus()}}),[]),t.createElement(r.section,{key:"key_".concat(v),animate:{y:0},"aria-labeledBy":"superModal_title","aria-modal":"true",className:o("c-superModal",{"c-superModal--scrolled":l}),"data-testid":c,exit:{y:"100%"},id:v,initial:{y:"100%"},role:"dialog",transition:{duration:.3}},s)};export{a as default};
|
|
2
2
|
//# sourceMappingURL=SuperModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperModal.js","sources":["../../../../../src/components/Components/SuperModal/_elements_/SuperModal.tsx"],"sourcesContent":[null],"names":["SuperModal","_a","children","_b","isContentScrolled","_c","testId","_d","useState","isFocused","setIsFocused","identification","keyListenersMap","Map","KEYS","Tab","event","
|
|
1
|
+
{"version":3,"file":"SuperModal.js","sources":["../../../../../src/components/Components/SuperModal/_elements_/SuperModal.tsx"],"sourcesContent":[null],"names":["SuperModal","_a","children","_b","isContentScrolled","_c","testId","_d","useState","isFocused","setIsFocused","identification","keyListenersMap","Map","KEYS","Tab","event","focusableModalElements","document","getElementById","querySelectorAll","activeElement","activeElementPos","Array","from","findIndex","element","focus","preventDefault","length","firstElement","lastElement","shiftKey","keyDownListener","listener","get","key","useEffect","window","addEventListener","removeEventListener","beforeActive","React","createElement","motion","section","concat","animate","y","className","cx","exit","id","initial","role","transition","duration"],"mappings":"mlBAWA,IAGMA,EAAa,SAACC,GAAE,IAAAC,EAAQD,EAAAC,SAAEC,EAAyBF,EAAAG,kBAAzBA,OAAoB,IAAAD,GAAKA,EAAEE,EAAqBJ,EAAAK,OAArBA,OAAM,IAAAD,EAAG,aAAYA,EACxEE,EAA4BC,GAAS,GAApCC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GAExBI,EAAiB,aAqCjBC,EAAkB,IAAIC,IAAI,CAAC,CAACC,EAAKC,IAnClB,SAACC,SACdC,EAC2B,QADFhB,EAAAiB,SAC5BC,eAAeR,UAAe,IAAAV,OAAA,EAAAA,EAC7BmB,iBAVN,uIAYUC,EAAkBH,SAAQG,cAE5BC,EAAmBL,EACrBM,MAAMC,KAAKP,GAAwBQ,WAAU,SAACC,GAAY,OAAAA,IAAYL,KACtE,EAQJ,GANKZ,IACHC,GAAa,GACbO,GAA0BA,EAAuBK,EAAmB,GAAGK,QACvEX,EAAMY,kBAGJX,GAA0BA,EAAuBY,OAAS,EAAG,CAC/D,IAAMC,EAAeb,EAAuB,GACtCc,EAAcd,EAAuBA,EAAuBY,OAAS,GAEnEG,EAAahB,EAAKgB,SAErBA,GAAYX,IAAkBU,IACjCD,EAAaH,QACbX,EAAMY,kBAGJI,GAAYX,IAAkBS,IAChCC,EAAYJ,QACZX,EAAMY,iBAET,CACH,KAIMK,EAAkB,SAACjB,GACvB,IAAMkB,EAAWtB,EAAgBuB,IAAInB,EAAMoB,KAC3C,OAAOF,GAAYA,EAASlB,EAC9B,EAkBA,OAhBAqB,GAAU,WAGR,OAFAC,OAAOC,iBAAiB,UAAWN,GAE5B,WACLK,OAAOE,oBAAoB,UAAWP,EACxC,CACF,IAEAI,GAAU,WACR,IAAMI,EAAevB,SAASG,cAC9B,OAAO,WAELoB,SAAAA,EAAcd,OAChB,CACD,GAAE,IAGDe,EAAAC,cAACC,EAAOC,QACN,CAAAT,IAAK,OAAAU,OAAOnC,GACZoC,QAAS,CAAEC,EAAG,oBACC,mBAAkB,aACtB,OACXC,UAAWC,EAAG,eAAgB,CAAE,yBAA0B9C,IAAoB,cACjEE,EACb6C,KAAM,CAAEH,EAAG,QACXI,GAAIzC,EACJ0C,QAAS,CAAEL,EAAG,QACdM,KAAK,SACLC,WAAY,CAAEC,SAAU,KAEvBtD,EAGP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, SyntheticEvent } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { IconNameType } from '../../../types';
|
|
3
3
|
import { ComponentPropsType } from '../../../utils';
|
|
4
4
|
import { TitleSize } from '../../Typography';
|
|
@@ -6,7 +6,7 @@ import { AvatarSizeType } from '../Avatar';
|
|
|
6
6
|
export type IconStyle = 'fill' | 'transparent';
|
|
7
7
|
export interface TilePropsType extends ComponentPropsType {
|
|
8
8
|
/** Size of title. Used for it's basic purpose = defining page navigation priority. Please follow standard **[rules](https://www.w3.org/WAI/test-evaluate/preliminary/#headings)**. */
|
|
9
|
-
titleSize
|
|
9
|
+
titleSize?: TitleSize;
|
|
10
10
|
/** Children to be rendered in the main container. */
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
/** Name of icon */
|
|
@@ -26,6 +26,10 @@ export interface TilePropsType extends ComponentPropsType {
|
|
|
26
26
|
/** Icon size enum type */
|
|
27
27
|
iconSize?: AvatarSizeType;
|
|
28
28
|
perex?: ReactNode;
|
|
29
|
+
/** When you need to use Tile without rendering heading */
|
|
30
|
+
withoutTitle?: boolean;
|
|
31
|
+
/** React component or string specifying the HTML tag to use without title. */
|
|
32
|
+
component?: React.ElementType;
|
|
29
33
|
}
|
|
30
|
-
export declare const Tile: ({ children, iconName, iconSize, iconStyle, isDisabled, isSelectable, isSelected, linkTo, onClick, perex, testId, theme, titleSize }: TilePropsType) => JSX.Element;
|
|
34
|
+
export declare const Tile: ({ children, component, iconName, iconSize, iconStyle, isDisabled, isSelectable, isSelected, linkTo, onClick, perex, testId, theme, titleSize, withoutTitle }: TilePropsType) => JSX.Element;
|
|
31
35
|
//# sourceMappingURL=Tile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,EAAe,MAAM,OAAO,CAAA;AAErE,OAAO,EAAa,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AAEvD,OAAO,EAAe,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAU,cAAc,EAAE,MAAM,WAAW,CAAA;AAElD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,aAAa,CAAA;AAE9C,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,sLAAsL;IACtL,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2BAA2B;IAC3B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IACrC,iBAAiB;IACjB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAC9B;AAaD,eAAO,MAAM,IAAI,iKAgBd,aAAa,KAAG,WAiDlB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t,{useCallback 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"../../Form/Autocomplete/Autocomplete.js";import{Checkbox as i}from"../../Form/Checkbox/Checkbox.js";import'./../../../ext/tslib/tslib.es6.js';import'./../../../ext/cuid/index.js';import'./../../../ext/react-device-detect/dist/lib.js';import{Avatar as r}from"../Avatar/Avatar.js";import"../Button/Button.js";import"../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"../Collapse/Collapse.js";import'./../../../ext/lodash/_baseToString.js';import'./../../../ext/react-text-mask/dist/reactTextMask.js';import"../../Typography/Amount/Amount.js";import{
|
|
1
|
+
import t,{useCallback 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"../../Form/Autocomplete/Autocomplete.js";import{Checkbox as i}from"../../Form/Checkbox/Checkbox.js";import'./../../../ext/tslib/tslib.es6.js';import'./../../../ext/cuid/index.js';import'./../../../ext/react-device-detect/dist/lib.js';import{Avatar as r}from"../Avatar/Avatar.js";import"../Button/Button.js";import"../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"../Collapse/Collapse.js";import'./../../../ext/lodash/_baseToString.js';import'./../../../ext/react-text-mask/dist/reactTextMask.js';import"../../Typography/Amount/Amount.js";import{Text as s}from"../../Typography/Text/Text.js";import{Title as l}from"../../Typography/Title/Title.js";import"../Dropdown/_elements_/DropdownDivider.js";import"../Dropdown/_elements_/DropdownItem.js";import"../Dropdown/_elements_/DropdownMenu.js";import"../../../contexts/ContentTableContext.js";import"../ContentTable/ContentTableRow.js";import"../Link/Link.js";import"react-dom";import"react-router-dom";import"../../../contexts/MobilePanelContext.js";import"../SuperModal/SuperModal.context.js";import"../UserAuth/UserAuth.js";import"../dataTable/DataTable.js";import"../../Form/Select/_elements_/Select2CategorisedOptions.js";import"../../Form/Select/_elements_/Select2Options.js";import"../../Form/Slider/Slider.js";var m={fill:{backgroundColor:"bgBrandBold",color:"fgInverseDefault"},transparent:{backgroundColor:void 0,color:"fgBrandDefault"}},n=function(n){var a=n.children,c=n.component,p=n.iconName,d=n.iconSize,u=void 0===d?"large":d,j=n.iconStyle,_=void 0===j?"transparent":j,x=n.isDisabled,b=void 0!==x&&x,C=n.isSelectable,h=n.isSelected,k=void 0!==h&&h,T=n.linkTo,g=n.onClick,v=n.perex,f=n.testId,S=n.theme,D=n.titleSize,N=n.withoutTitle,y=e((function(t){!b&&T||t.preventDefault(),g&&!b&&g(t)}),[b,T,g]);return t.createElement("a",{className:o("c-tile",S,{"c-tile--selected":k,"c-tile--disabled":b}),"data-testid":f,href:T||void 0,onClick:y},C&&t.createElement(i,{name:"tileCheckbox",theme:"c-tile__checkbox",value:k}),!!p&&t.createElement(r,{backgroundColor:m[_].backgroundColor,color:m[_].color,iconName:p,size:u,theme:"c-tile__icon"}),t.createElement("div",{className:o("c-tile__label",{"c-tile__label-icon":!!p})},N?t.createElement(s,{component:c||"p",theme:"c-tile__title"},a):t.createElement(l,{size:D||"h2",theme:"c-tile__title"},a)),v&&t.createElement("span",{className:"c-tile__perex"},v))};export{n as Tile};
|
|
2
2
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sources":["../../../../src/components/Components/Tile/Tile.tsx"],"sourcesContent":[null],"names":["avatarProps","fill","backgroundColor","color","transparent","undefined","Tile","_a","children","iconName","_b","iconSize","_c","iconStyle","_d","isDisabled","isSelectable","_e","isSelected","linkTo","onClick","perex","testId","theme","titleSize","handleOnClick","useCallback","e","preventDefault","React","className","cx","href","createElement","Checkbox","name","value","Avatar","size","Title"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tile.js","sources":["../../../../src/components/Components/Tile/Tile.tsx"],"sourcesContent":[null],"names":["avatarProps","fill","backgroundColor","color","transparent","undefined","Tile","_a","children","component","iconName","_b","iconSize","_c","iconStyle","_d","isDisabled","isSelectable","_e","isSelected","linkTo","onClick","perex","testId","theme","titleSize","withoutTitle","handleOnClick","useCallback","e","preventDefault","React","className","cx","href","createElement","Checkbox","name","value","Avatar","size","Text","Title"],"mappings":"05DAsCA,IAAMA,EAAqF,CACzFC,KAAM,CACJC,gBAAiB,cACjBC,MAAO,oBAETC,YAAa,CACXF,qBAAiBG,EACjBF,MAAO,mBAIEG,EAAO,SAACC,OACnBC,EAAQD,EAAAC,SACRC,EAASF,EAAAE,UACTC,EAAQH,EAAAG,SACRC,EAAAJ,EAAAK,SAAAA,OAAW,IAAAD,EAAA,QAAOA,EAClBE,EAAyBN,EAAAO,UAAzBA,OAAS,IAAAD,EAAG,cAAaA,EACzBE,EAAAR,EAAAS,WAAAA,OAAa,IAAAD,GAAKA,EAClBE,EAAYV,EAAAU,aACZC,EAAkBX,EAAAY,WAAlBA,OAAU,IAAAD,GAAQA,EAClBE,EAAMb,EAAAa,OACNC,EAAOd,EAAAc,QACPC,EAAKf,EAAAe,MACLC,EAAMhB,EAAAgB,OACNC,EAAKjB,EAAAiB,MACLC,EAASlB,EAAAkB,UACTC,EAAYnB,EAAAmB,aAENC,EAAgBC,GACpB,SAACC,IACKb,GAAeI,GACjBS,EAAEC,iBAGAT,IAAYL,GACdK,EAAQQ,EAEX,GACD,CAACb,EAAYI,EAAQC,IAGvB,OACEU,qBACEC,UAAWC,EAAG,SAAUT,EAAO,CAC7B,mBAAoBL,EACpB,mBAAoBH,IACpB,cACWO,EACbW,KAAMd,QAAUf,EAChBgB,QAASM,GAERV,GAAgBc,EAAAI,cAACC,EAAQ,CAACC,KAAK,eAAeb,MAAM,mBAAmBc,MAAOnB,MAE5ET,GACDqB,EAAAI,cAACI,EACC,CAAArC,gBAAiBF,EAAYc,GAAWZ,gBACxCC,MAAOH,EAAYc,GAAWX,MAC9BO,SAAUA,EACV8B,KAAM5B,EACNY,MAAM,iBAGVO,EAAAI,cAAA,MAAA,CAAKH,UAAWC,EAAG,gBAAiB,CAAE,uBAAwBvB,KAC3DgB,EACCK,EAACI,cAAAM,GAAKhC,UAAWA,GAAwB,IAAKe,MAAM,iBACjDhB,GAGHuB,EAAAI,cAACO,EAAK,CAACF,KAAMf,GAAwB,KAAMD,MAAM,iBAC9ChB,IAINc,GAASS,EAAMI,cAAA,OAAA,CAAAH,UAAU,iBAAiBV,GAGjD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, KeyboardEvent, ReactElement, SyntheticEvent } from 'react';
|
|
1
|
+
import { Component, KeyboardEvent, ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { FormField2Value } from '../../../types';
|
|
3
3
|
import { ComponentPropsType, DisabledTooltipPropsType } from '../../../utils';
|
|
4
4
|
import { InputPropsType } from '../Input';
|
|
@@ -43,6 +43,10 @@ export interface SliderPropsType extends ComponentPropsType, DisabledTooltipProp
|
|
|
43
43
|
readOnlyValue?: string;
|
|
44
44
|
/** Label value */
|
|
45
45
|
label?: string;
|
|
46
|
+
/** Screen reader only text for min label (e.g. "Minimum value:") */
|
|
47
|
+
minLabelSrText?: ReactNode;
|
|
48
|
+
/** Screen reader only text for max label (e.g. "Maximum value:") */
|
|
49
|
+
maxLabelSrText?: ReactNode;
|
|
46
50
|
}
|
|
47
51
|
type State = {
|
|
48
52
|
dragging: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS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AAS,OAAO,KAAG,IAAI,CAS1E;IAED,UAAU,UAAW,KAAK,KAAG,IAAI,CAMhC;IAED,YAAY,UAAW,KAAK,KAAG,IAAI,CAIlC;IAED,wBAAwB,SAChB,MAAM,QACN,MAAM,SACL,MAAM,UACL,MAAM,MAAM,CAAC,UAEb,MAAM,KACb,MAAM,CAQR;IAED,wBAAwB,QAAO,MAAM,CAAkE;IAEvG,sBAAsB,QAAO,MAAM,CAAmE;IAEtG,eAAe,QAAO,MAAM,CAAmE;IAE/F,qBAAqB,UAAW,KAAK,GAAG,cAAc,KAAG,MAAM,CAK9D;IAED,yBAAyB,UAAW,aAAa,KAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CA8B5E;IAED,iBAAiB,UAAW,OAAO,KAAG,IAAI,CAQzC;IAED,oBAAoB,QAAO,IAAI,CAK9B;IAED,MAAM,EAAG,cAAc,GAAG,IAAI,CAAA;IAC9B,KAAK,EAAG,eAAe,CAAA;IAEvB,UAAU,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CAGzD;IAED,WAAW,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CAG1D;IAED,aAAa,UAAW,cAAc,cAAc,CAAC,KAAG,IAAI,CAY3D;IAED,cAAc,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CAM7D;IAED,WAAW,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CAM1D;IAED,eAAe,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CACK;IAEpE,gBAAgB,UAAW,eAAe,cAAc,CAAC,KAAG,IAAI,CACG;IAEnE,iBAAiB,UAAW,eAAe,UAG1C;IAED,eAAe,UAAW,eAAe,UAKxC;IAED,MAAM,IAAI,GAAG,CAAC,OAAO;CAoGtB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__extends as e,__assign as t}from'./../../../ext/tslib/tslib.es6.js';import n,{Component as o}from"react";import{withDisabledTooltip as r}from"../../../hocs/withDisabledTooltip.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 a}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Flex as i}from"../../Layout/Flex/Flex.js";import{Col as s}from"../../Layout/Grid/Col.js";import"../../Components/Button/Button.js";import"../../../contexts/MobilePanelContext.js";import'./../../../ext/cuid/index.js';import'./../../../ext/camelcase/index.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 l}from"../Input/Input.js";import"../../Typography/Amount/Amount.js";import{Text as u}from"../../Typography/Text/Text.js";import"../../Components/Dropdown/_elements_/DropdownDivider.js";import"../../Components/Dropdown/_elements_/DropdownItem.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"../Autocomplete/Autocomplete.js";import'./../../../ext/react-device-detect/dist/lib.js';import"../Select/_elements_/Select2CategorisedOptions.js";import"../Select/_elements_/Select2Options.js";import"../../Components/UserAuth/UserAuth.js";import"../../Components/dataTable/DataTable.js";var p=["mousemove"],d=["mouseup"],m=["touchmove"],c=["touchup","touchend","touchcancel"],f=function(e,t,n){return Math.round((n-e)/t)*t+e},h=function(e,t,n){return Math.min(Math.max(n,e),t)},g=function(e,t,n,o){return h(e,t,f(e,n,o))},v=function(e,t,n,o){return h(0,1,(f(e,n,o)-e)/(t-e))},b=function(o){function b(){var e=null!==o&&o.apply(this,arguments)||this;return e.state={dragging:!1,percentage:0},e.onChange=function(t,n){var o,r=e.props,a=r.max,i=r.min,s=r.onChange,l=r.step,u=r.steps;if(u&&u.length>0&&"number"==typeof n&&n){var p=u.reduce((function(e,t){return Math.abs(t-n)<Math.abs(e-n)?t:e}));o=u[u.findIndex((function(e){return e===p}))]}else o="number"==typeof n?g(i,a,l,n):e.getValueFromDragEvent(t);s&&"number"==typeof o&&s(t,Number(o.toFixed(5)))},e.onDragStart=function(t,n){var o=e.props.onDragStart;t.preventDefault(),e.addEventListeners(n),e.setState({dragging:!0}),e.slider&&e.slider.focus(),e.onChange(t),o&&o(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,o,r,a){if(r&&r.length>0){var i=(a-e.getSliderStartCoordinate())/e.getSliderLength();return r[Math.round(i*(r.length-1))]}return function(e,t,n,o){return h(e,t,f(e,n,o*(t-e)+e))}(t,n,o,(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,o=n.max,r=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(r,o,a,i,s)},e.getValueFromKeyboardEvent=function(t){if(t&&"string"==typeof t.key){var n=e.props,o=n.max,r=n.min,a=n.step,i=n.steps,s=n.value,l=0;if(i&&i.length>0){var u=i.findIndex((function(e){return e===s}));l=u<0?0:u}switch(t.key){case"ArrowUp":case"ArrowRight":return i&&i.length>0?i[l+1]:a&&s+a;case"ArrowDown":case"ArrowLeft":return i&&i.length>0?i[l-1]:a&&s-a;case"PageUp":return i&&i.length>0?i[l+5]:a&&s+5*a;case"PageDown":return i&&i.length>0?i[l-5]:a&&s-5*a;case"Home":return i&&i.length>0?i[0]:r;case"End":return i&&i.length>0?i[i.length-1]:o;default:return null}}return null},e.addEventListeners=function(t){t?(m.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),c.forEach((function(t){return document.addEventListener(t,e.onDragStop)}))):(p.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),d.forEach((function(t){return document.addEventListener(t,e.onDragStop)})))},e.removeEventListeners=function(){m.forEach((function(t){return document.removeEventListener(t,e.onDragUpdate)})),c.forEach((function(t){return document.removeEventListener(t,e.onDragStop)})),p.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,o=n.onBlur,r=n.value;o&&o(t,r)},e.handleFocus=function(t){var n=e.props,o=n.onFocus,r=n.value;o&&o(t,r)},e.handleKeyDown=function(t){var n=e.props,o=n.isDisabled,r=n.onKeyDown;if(!o){var a=e.getValueFromKeyboardEvent(t);"number"==typeof a&&(t.preventDefault(),e.onChange(t,a)),r&&r(t,"number"==typeof a?a:e.props.value)}},e.handleKeyPress=function(t){var n=e.props,o=n.isDisabled,r=n.onKeyPress,a=n.value;o||r&&r(t,a)},e.handleKeyUp=function(t){var n=e.props,o=n.isDisabled,r=n.onKeyUp,a=n.value;o||r&&r(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,o=n.max,r=n.min,a=n.onChange,i=n.step,s=g(r,o,i,Number(t));a&&"number"==typeof s&&a(void 0,Number(s.toFixed(5)))},e}return e(b,o),b.prototype.componentDidMount=function(){var e=this.props,t=e.max,n=e.min,o=e.step,r=e.value;this.setState({percentage:v(n,t,o,r)})},b.getDerivedStateFromProps=function(e){var t=e.max,n=e.min,o=e.step,r=e.steps,a=e.value;if(r&&r.length>0){var i=r.reduce((function(e,t){return Math.abs(t-a)<Math.abs(e-a)?t:e})),s=r.findIndex((function(e){return e===i}));return{percentage:100/(r.length-1)*s/100}}return{percentage:v(n,t,o,a)}},b.prototype.render=function(){var e=this,o=this.props,p=o.disabledTooltip,d=o.inputProps,m=void 0===d?{name:"sliderInput"}:d,c=o.isDisabled,f=o.label,h=o.max,g=o.maxLabel,v=o.
|
|
1
|
+
import{__extends as e,__assign as t}from'./../../../ext/tslib/tslib.es6.js';import n,{Component as o}from"react";import{withDisabledTooltip as r}from"../../../hocs/withDisabledTooltip.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 a}from"../../../utils/classBinder.js";import'./../../../ext/text-mask-addons/dist/textMaskAddons.js';import{Flex as i}from"../../Layout/Flex/Flex.js";import{Col as s}from"../../Layout/Grid/Col.js";import"../../Components/Button/Button.js";import"../../../contexts/MobilePanelContext.js";import'./../../../ext/cuid/index.js';import'./../../../ext/camelcase/index.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 l}from"../Input/Input.js";import"../../Typography/Amount/Amount.js";import{Text as u}from"../../Typography/Text/Text.js";import"../../Components/Dropdown/_elements_/DropdownDivider.js";import"../../Components/Dropdown/_elements_/DropdownItem.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"../Autocomplete/Autocomplete.js";import'./../../../ext/react-device-detect/dist/lib.js';import"../Select/_elements_/Select2CategorisedOptions.js";import"../Select/_elements_/Select2Options.js";import"../../Components/UserAuth/UserAuth.js";import"../../Components/dataTable/DataTable.js";var p=["mousemove"],d=["mouseup"],m=["touchmove"],c=["touchup","touchend","touchcancel"],f=function(e,t,n){return Math.round((n-e)/t)*t+e},h=function(e,t,n){return Math.min(Math.max(n,e),t)},g=function(e,t,n,o){return h(e,t,f(e,n,o))},v=function(e,t,n,o){return h(0,1,(f(e,n,o)-e)/(t-e))},b=function(o){function b(){var e=null!==o&&o.apply(this,arguments)||this;return e.state={dragging:!1,percentage:0},e.onChange=function(t,n){var o,r=e.props,a=r.max,i=r.min,s=r.onChange,l=r.step,u=r.steps;if(u&&u.length>0&&"number"==typeof n&&n){var p=u.reduce((function(e,t){return Math.abs(t-n)<Math.abs(e-n)?t:e}));o=u[u.findIndex((function(e){return e===p}))]}else o="number"==typeof n?g(i,a,l,n):e.getValueFromDragEvent(t);s&&"number"==typeof o&&s(t,Number(o.toFixed(5)))},e.onDragStart=function(t,n){var o=e.props.onDragStart;t.preventDefault(),e.addEventListeners(n),e.setState({dragging:!0}),e.slider&&e.slider.focus(),e.onChange(t),o&&o(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,o,r,a){if(r&&r.length>0){var i=(a-e.getSliderStartCoordinate())/e.getSliderLength();return r[Math.round(i*(r.length-1))]}return function(e,t,n,o){return h(e,t,f(e,n,o*(t-e)+e))}(t,n,o,(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,o=n.max,r=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(r,o,a,i,s)},e.getValueFromKeyboardEvent=function(t){if(t&&"string"==typeof t.key){var n=e.props,o=n.max,r=n.min,a=n.step,i=n.steps,s=n.value,l=0;if(i&&i.length>0){var u=i.findIndex((function(e){return e===s}));l=u<0?0:u}switch(t.key){case"ArrowUp":case"ArrowRight":return i&&i.length>0?i[l+1]:a&&s+a;case"ArrowDown":case"ArrowLeft":return i&&i.length>0?i[l-1]:a&&s-a;case"PageUp":return i&&i.length>0?i[l+5]:a&&s+5*a;case"PageDown":return i&&i.length>0?i[l-5]:a&&s-5*a;case"Home":return i&&i.length>0?i[0]:r;case"End":return i&&i.length>0?i[i.length-1]:o;default:return null}}return null},e.addEventListeners=function(t){t?(m.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),c.forEach((function(t){return document.addEventListener(t,e.onDragStop)}))):(p.forEach((function(t){return document.addEventListener(t,e.onDragUpdate)})),d.forEach((function(t){return document.addEventListener(t,e.onDragStop)})))},e.removeEventListeners=function(){m.forEach((function(t){return document.removeEventListener(t,e.onDragUpdate)})),c.forEach((function(t){return document.removeEventListener(t,e.onDragStop)})),p.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,o=n.onBlur,r=n.value;o&&o(t,r)},e.handleFocus=function(t){var n=e.props,o=n.onFocus,r=n.value;o&&o(t,r)},e.handleKeyDown=function(t){var n=e.props,o=n.isDisabled,r=n.onKeyDown;if(!o){var a=e.getValueFromKeyboardEvent(t);"number"==typeof a&&(t.preventDefault(),e.onChange(t,a)),r&&r(t,"number"==typeof a?a:e.props.value)}},e.handleKeyPress=function(t){var n=e.props,o=n.isDisabled,r=n.onKeyPress,a=n.value;o||r&&r(t,a)},e.handleKeyUp=function(t){var n=e.props,o=n.isDisabled,r=n.onKeyUp,a=n.value;o||r&&r(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,o=n.max,r=n.min,a=n.onChange,i=n.step,s=g(r,o,i,Number(t));a&&"number"==typeof s&&a(void 0,Number(s.toFixed(5)))},e}return e(b,o),b.prototype.componentDidMount=function(){var e=this.props,t=e.max,n=e.min,o=e.step,r=e.value;this.setState({percentage:v(n,t,o,r)})},b.getDerivedStateFromProps=function(e){var t=e.max,n=e.min,o=e.step,r=e.steps,a=e.value;if(r&&r.length>0){var i=r.reduce((function(e,t){return Math.abs(t-a)<Math.abs(e-a)?t:e})),s=r.findIndex((function(e){return e===i}));return{percentage:100/(r.length-1)*s/100}}return{percentage:v(n,t,o,a)}},b.prototype.render=function(){var e=this,o=this.props,p=o.disabledTooltip,d=o.inputProps,m=void 0===d?{name:"sliderInput"}:d,c=o.isDisabled,f=o.label,h=o.max,g=o.maxLabel,v=o.maxLabelSrText,b=o.min,x=o.minLabel,C=o.minLabelSrText,D=o.readOnlyValue,E=o.testId,S=o.theme,j=o.value,y=o.withInput,w=this.state,_=w.dragging,L=w.percentage;return r({isDisabled:c,disabledTooltip:p})(n.createElement("div",{className:a("f-slider",{"f-slider--dragging":_,"f-slider--disabled":c},S),"data-testid":E},n.createElement(i,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},n.createElement(s,{md:9,theme:"u-pt--xSmall u-pb--xSmall",xl:8,xs:12},f&&n.createElement(u,{size:"small"},f)),y&&n.createElement(s,{md:3,xl:4,xs:12},n.createElement(l,t({},m,{type:"number",value:j.toString(),onBlur:this.handleInputBlur,onChange:this.handleInputChange}))),!y&&D&&n.createElement(s,{md:3,xl:4,xs:12},n.createElement(u,{isTextRight:!0,size:"small",weight:"medium"},D))),n.createElement("div",{ref:function(t){e.slider=t},"aria-valuemax":h,"aria-valuemin":b,"aria-valuenow":j,className:a("f-slider__drag"),role:"slider",tabIndex:c?-1:0,onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart},n.createElement("div",{className:a("f-slider__line")}),n.createElement("div",{className:a("f-slider__filledLine"),style:{left:0,right:"".concat(100*(1-L),"%")}}),n.createElement("div",{className:a("f-slider__handle"),style:{left:"".concat(100*L,"%")}})),(x||g)&&n.createElement("div",{className:a("f-slider__labels")},n.createElement("span",null,C&&n.createElement("span",{className:"u-vHide"},C),x),n.createElement("span",null,v&&n.createElement("span",{className:"u-vHide"},v),g))))},b.defaultProps={hideLabels:!1},b}(o);export{b as Slider};
|
|
2
2
|
//# sourceMappingURL=Slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":["../../../../src/components/Form/Slider/Slider.tsx"],"sourcesContent":[null],"names":["mouseUpdateEvents","mouseStopEvents","touchUpdateEvents","touchStopEvents","round","offset","multiple","value","Math","clamp","min","max","normalizeValue","step","getPercentageFromValue","Slider","_super","_this","state","dragging","percentage","onChange","event","customValue","_a","props","steps","length","closest_1","reduce","prev","curr","abs","findIndex","getValueFromDragEvent","Number","toFixed","onDragStart","touch","preventDefault","addEventListeners","setState","slider","focus","onDragStop","removeEventListeners","onDragUpdate","requestAnimationFrame","getValueFromClientOffset","getSliderStartCoordinate","getSliderLength","getValueFromPercentage","getBoundingClientRect","left","NaN","getSliderEndCoordinate","right","clientX","touches","Object","getClientOffsetFromEvent","getValueFromKeyboardEvent","key","value_1","index","valueIndex","forEach","name","document","addEventListener","removeEventListener","handleBlur","onBlur","handleFocus","onFocus","handleKeyDown","isDisabled","onKeyDown","handleKeyPress","onKeyPress","handleKeyUp","onKeyUp","handleMouseDown","undefined","handleTouchStart","handleInputChange","handleInputBlur","normalizedValue","__extends","prototype","componentDidMount","this","getDerivedStateFromProps","nextProps","closest_2","closestIndex","render","disabledTooltip","_b","inputProps","label","maxLabel","minLabel","readOnlyValue","testId","theme","withInput","_c","withDisabledTooltip","React","className","cx","createElement","Flex","alignItems","justifyContent","wrap","Col","md","xl","xs","Text","size","Input","__assign","type","toString","isTextRight","weight","ref","role","tabIndex","onMouseDown","onTouchStart","style","concat","defaultProps","hideLabels","Component"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":["../../../../src/components/Form/Slider/Slider.tsx"],"sourcesContent":[null],"names":["mouseUpdateEvents","mouseStopEvents","touchUpdateEvents","touchStopEvents","round","offset","multiple","value","Math","clamp","min","max","normalizeValue","step","getPercentageFromValue","Slider","_super","_this","state","dragging","percentage","onChange","event","customValue","_a","props","steps","length","closest_1","reduce","prev","curr","abs","findIndex","getValueFromDragEvent","Number","toFixed","onDragStart","touch","preventDefault","addEventListeners","setState","slider","focus","onDragStop","removeEventListeners","onDragUpdate","requestAnimationFrame","getValueFromClientOffset","getSliderStartCoordinate","getSliderLength","getValueFromPercentage","getBoundingClientRect","left","NaN","getSliderEndCoordinate","right","clientX","touches","Object","getClientOffsetFromEvent","getValueFromKeyboardEvent","key","value_1","index","valueIndex","forEach","name","document","addEventListener","removeEventListener","handleBlur","onBlur","handleFocus","onFocus","handleKeyDown","isDisabled","onKeyDown","handleKeyPress","onKeyPress","handleKeyUp","onKeyUp","handleMouseDown","undefined","handleTouchStart","handleInputChange","handleInputBlur","normalizedValue","__extends","prototype","componentDidMount","this","getDerivedStateFromProps","nextProps","closest_2","closestIndex","render","disabledTooltip","_b","inputProps","label","maxLabel","maxLabelSrText","minLabel","minLabelSrText","readOnlyValue","testId","theme","withInput","_c","withDisabledTooltip","React","className","cx","createElement","Flex","alignItems","justifyContent","wrap","Col","md","xl","xs","Text","size","Input","__assign","type","toString","isTextRight","weight","ref","role","tabIndex","onMouseDown","onTouchStart","style","concat","defaultProps","hideLabels","Component"],"mappings":"0jEA8DA,IAAMA,EAAoB,CAAC,aACrBC,EAAkB,CAAC,WACnBC,EAAoB,CAAC,aACrBC,EAAkB,CAAC,UAAW,WAAY,eAE1CC,EAAQ,SAACC,EAAgBC,EAAkBC,GAC/C,OAAAC,KAAKJ,OAAOG,EAAQF,GAAUC,GAAYA,EAAWD,CAArD,EAEII,EAAQ,SAACC,EAAaC,EAAaJ,GAA0B,OAAAC,KAAKE,IAAIF,KAAKG,IAAIJ,EAAOG,GAAMC,EAA/B,EAE7DC,EAAiB,SAACF,EAAaC,EAAaE,EAAcN,GAC9D,OAAAE,EAAMC,EAAKC,EAAKP,EAAMM,EAAKG,EAAMN,GAAjC,EAKIO,EAAyB,SAACJ,EAAaC,EAAaE,EAAcN,GACtE,OAAAE,EAAM,EAAG,GAAIL,EAAMM,EAAKG,EAAMN,GAASG,IAAQC,EAAMD,GAArD,EAiBFK,EAAA,SAAAC,GAAA,SAAAD,yDAKEE,EAAAC,MAAe,CACbC,UAAU,EACVC,WAAY,GAwBdH,EAAAI,SAAW,SAACC,EAA+BC,GACnC,IACFhB,EADEiB,EAAsCP,EAAKQ,MAAzCd,QAAKD,QAAKW,aAAUR,SAAMa,UAElC,GAAIA,GAASA,EAAMC,OAAS,GAA4B,iBAAhBJ,GAA4BA,EAAa,CAC/E,IAAMK,EAAUF,EAAMG,QAAO,SAACC,EAAMC,GAClC,OAAAvB,KAAKwB,IAAID,EAAOR,GAAef,KAAKwB,IAAIF,EAAOP,GAAeQ,EAAOD,CAArE,IAEFvB,EAAQmB,EAAMA,EAAMO,WAAU,SAACpB,GAAS,OAAAA,IAASe,CAAO,IACzD,MACCrB,EACyB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KP,kBAEnB2B,EAAAG,cAAA,MAAA,CAAKF,UAAWC,EAAG,oBACnBF,EACEG,cAAA,MAAA,CAAAF,UAAWC,EAAG,wBACduB,MAAO,CACLnF,KAAM,EACNG,MAAO,UAAsB,KAAlB,EAAIpC,GAAoB,QAGvC2F,EACEG,cAAA,MAAA,CAAAF,UAAWC,EAAG,oBACduB,MAAO,CACLnF,KAAM,GAAAoF,OAAgB,IAAbrH,EAAmB,UAIhCmF,GAAYF,IACZU,EAAKG,cAAA,MAAA,CAAAF,UAAWC,EAAG,qBACjBF,EAAAG,cAAA,OAAA,KACGV,GAAkBO,EAAMG,cAAA,OAAA,CAAAF,UAAU,WAAWR,GAC7CD,GAEHQ,EAAAG,cAAA,OAAA,KACGZ,GAAkBS,EAAMG,cAAA,OAAA,CAAAF,UAAU,WAAWV,GAC7CD,OAnTNtF,EAAA2H,aAAe,CACpBC,YAAY,GAyTf5H,EA3TD,CAA4B6H"}
|
package/ds-lilly.css
CHANGED
|
@@ -9784,7 +9784,7 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
9784
9784
|
/* Slider */
|
|
9785
9785
|
.slick-loading .slick-list
|
|
9786
9786
|
{
|
|
9787
|
-
background: #fff url('assets/
|
|
9787
|
+
background: #fff url('assets/526c4fb60211f6380aca.gif') center center no-repeat;
|
|
9788
9788
|
}
|
|
9789
9789
|
|
|
9790
9790
|
/* Icons */
|
|
@@ -9794,8 +9794,8 @@ body.dark .u-fg--fgWhiteDefault {
|
|
|
9794
9794
|
font-weight: normal;
|
|
9795
9795
|
font-style: normal;
|
|
9796
9796
|
|
|
9797
|
-
src: url('assets/
|
|
9798
|
-
src: url('assets/
|
|
9797
|
+
src: url('assets/b6ad2b0672c448d65335.eot');
|
|
9798
|
+
src: url('assets/52921319f6d7a5c767c6.eot') format('embedded-opentype'), url('assets/7969fd87f20daf9e6479.woff') format('woff'), url('assets/03fb3fbdc287c5f83d1d.ttf') format('truetype'), url('assets/a0a44e4efa22a8436e70.svg') format('svg');
|
|
9799
9799
|
}
|
|
9800
9800
|
/* Arrows */
|
|
9801
9801
|
.slick-prev,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"module": "./index.js",
|
|
4
4
|
"typings": "./index.d.ts",
|
|
5
5
|
"name": "@mmb-digital/ds-lilly",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.35",
|
|
7
7
|
"description": "MMB LILLY design system",
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
9
|
"sideEffects": [
|
|
@@ -49,4 +49,4 @@
|
|
|
49
49
|
},
|
|
50
50
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
|
51
51
|
"private": false
|
|
52
|
-
}
|
|
52
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|