@alphakits/ui 1.19.6 → 1.19.8
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/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.js +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/formik.esm-0e80d68e.js +1 -0
- package/dist/grid/col/component.d.ts +3 -2
- package/dist/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/{index-e2d8b848.js → index-add194ef.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{intersection-observer-58ca85f0.js → intersection-observer-1da95e4e.js} +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/parse-query-params-e1b1327a.js +1 -0
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/portal/utils.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/select/typings.d.ts +6 -6
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/{slide-336b22be.js → slide-5b531e44.js} +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +8 -7
- package/dist/formik.esm-8b597e91.js +0 -1
- package/dist/parse-query-params-d6754354.js +0 -1
- package/dist/swiper-slide-b1e969c1.js +0 -1
- /package/dist/{_commonjsHelpers-edce50da.js → _commonjsHelpers-8dcafa78.js} +0 -0
- /package/dist/{colors.module-65a2f130.js → colors.module-e1ab3734.js} +0 -0
- /package/dist/{common.module-e2ffd239.js → common.module-5f5cfa97.js} +0 -0
- /package/dist/{component-3db8e2e6.d.ts → component-622d4e41.d.ts} +0 -0
- /package/dist/{component-3db8e2e6.js → component-622d4e41.js} +0 -0
- /package/dist/{component-5f15e00c.d.ts → component-fcd83d7e.d.ts} +0 -0
- /package/dist/{component-5f15e00c.js → component-fcd83d7e.js} +0 -0
- /package/dist/{contact-block-5e261dbd.d.ts → contact-block-4d43447c.d.ts} +0 -0
- /package/dist/{contact-block-5e261dbd.js → contact-block-4d43447c.js} +0 -0
- /package/dist/{gutters.module-c41ddaee.js → gutters.module-161862d0.js} +0 -0
- /package/dist/{parse-query-params-d6754354.d.ts → parse-query-params-e1b1327a.d.ts} +0 -0
- /package/dist/{slide-336b22be.d.ts → slide-5b531e44.d.ts} +0 -0
- /package/dist/{tslib.es6-8f4a3e78.js → tslib.es6-d79b1619.js} +0 -0
- /package/dist/{use-image-render-component-7db99d7d.d.ts → use-image-render-component-96e779fb.d.ts} +0 -0
- /package/dist/{use-image-render-component-7db99d7d.js → use-image-render-component-96e779fb.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d79b1619.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_item__fXRQg",r=function(r){var p=r.title;return t.createElement("div",{className:e(m)},t.createElement(o.Text,{view:"title",weight:"medium"},p))};export{r as InfoBlockHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InfoBlockHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{InfoBlockHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d79b1619.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import o from"classnames";import{Typography as t}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import o from"classnames";import{Typography as t}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d79b1619.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_item__BUo57",r="index-module_rightAddons__KS2QD",i="index-module_text__xZm1O",a="index-module_value__FOdie",s=function(s){var p=s.label,l=s.value,n=s.rightAddons,c=s.color,d=void 0===c?"secondary":c;return e.createElement("div",{className:o(m)},e.createElement(t.Text,{className:i,view:"caps",color:"secondary",weight:"medium"},p,":"," "),l&&e.createElement(t.Text,{className:a,view:"caps",color:d,weight:"medium"}," ",l),n&&e.createElement("div",{className:r},n))};export{s as InfoBlockItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InfoBlockItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{InfoBlockItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d79b1619.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/input/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-d79b1619.js";import a,{useRef as s,useState as l,useCallback as n,Fragment as r}from"react";import t from"react-merge-refs";import d from"classnames";import{Button as c}from"../button/component.js";import{FormControl as i}from"../form-control/component.js";import{useFocus as u}from"../hooks/useFocus/index.js";import"../loader/component.js";var m={input:"index-module_input__XkSql",hasLabel:"index-module_hasLabel__3lW-T",block:"index-module_block__Lq9-V",clearIcon:"index-module_clearIcon__951a-",errorIcon:"index-module_errorIcon__Z4acu",successIcon:"index-module_successIcon__yfoME",focusVisible:"index-module_focusVisible__3hinw"},f=a.forwardRef((function(f,p){var b,C,N=f.size,_=void 0===N?"m":N,h=f.type,v=void 0===h?"text":h,k=f.block,g=void 0!==k&&k,x=f.bottomAddons,y=f.dataTestId,I=f.clear,A=void 0!==I&&I,w=f.disabled,E=f.error,M=f.success,V=f.required,j=f.hint,q=f.className,B=f.fieldClassName,F=f.inputClassName,L=f.labelClassName,z=f.addonsClassName,D=f.focusedClassName,O=f.filledClassName,R=f.label,T=f.leftAddons,U=f.onFocus,P=f.onBlur,S=f.onChange,W=f.onClear,X=f.onClick,Z=f.onMouseDown,G=f.onMouseUp,H=f.rightAddons,J=f.value,K=f.defaultValue,Q=f.wrapperRef,Y=f.readOnly,$=e(f,["size","type","block","bottomAddons","dataTestId","clear","disabled","error","success","required","hint","className","fieldClassName","inputClassName","labelClassName","addonsClassName","focusedClassName","filledClassName","label","leftAddons","onFocus","onBlur","onChange","onClear","onClick","onMouseDown","onMouseUp","rightAddons","value","defaultValue","wrapperRef","readOnly"]),ee=void 0===J,oe=s(null),ae=u(oe,"keyboard")[0],se=l(!1),le=se[0],ne=se[1],re=l(K||""),te=re[0],de=re[1],ce=Boolean(ee?te:J),ie=A&&ce&&!w&&!Y,ue=n((function(e){Y||ne(!0),U&&U(e)}),[U,Y]),me=n((function(e){ne(!1),P&&P(e)}),[P]),fe=n((function(e){S&&S(e,{value:e.target.value}),ee&&de(e.target.value)}),[S,ee]),pe=n((function(e){ie&&(ee&&de(""),W&&W(e),oe.current&&!le&&oe.current.focus())}),[ie,le,W,ee]);return a.createElement(i,{ref:Q,className:d(q,le&&D,ce&&O),fieldClassName:d(B,(b={},b[m.focusVisible]=ae,b)),labelClassName:L,addonsClassName:z,size:_,block:g,required:V,disabled:w,filled:ce||le,focused:le,error:E,label:R,hint:j,leftAddons:T,rightAddons:(ie||H||E||M)&&a.createElement(r,null,ie&&a.createElement(c,{type:"button",view:"ghost",disabled:w,"aria-label":"Очистить",className:m.clearButton,onClick:pe},a.createElement("span",{className:m.clearIcon})),E&&a.createElement("span",{className:m.errorIcon}),M&&!E&&a.createElement("span",{className:m.successIcon}),H),bottomAddons:x,onClick:X,onMouseDown:Z,onMouseUp:G},a.createElement("input",o({},$,{className:d(m.input,(C={},C[m.hasLabel]=R,C),F),disabled:w,onBlur:me,onFocus:ue,onChange:fe,ref:t([p,oe]),type:v,value:ee?te:J,readOnly:Y,"data-test-id":y,"data-error":!!E,"aria-label":"string"==typeof R?R:void 0})))}));f.defaultProps={type:"text",block:!1};export{f as Input};
|
package/dist/input/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Input}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Input}from"./component.js";import"../tslib.es6-d79b1619.js";import"react";import"react-merge-refs";import"classnames";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var h=i(e);h&&this._unmonitorIntersections(h.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,_=p(e),b=!1;!b&&_;){var w=null,y=1==_.nodeType?window.getComputedStyle(_):{};if("none"==y.display)return null;if(_==this.root||9==_.nodeType)if(b=!0,_==this.root||_==t)o&&!this.root?!n||0==n.width&&0==n.height?(_=null,w=null,v=null):w=n:w=r;else{var I=p(_),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(_=I,w=l(E,T)):(_=null,v=null)}else{var R=_.ownerDocument;_!=R.body&&_!=R.documentElement&&"visible"!=y.overflow&&(w=u(_))}if(w&&(s=w,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100})),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return f(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){o(),i=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.
|
|
1
|
+
!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var h=i(e);h&&this._unmonitorIntersections(h.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,_=p(e),b=!1;!b&&_;){var w=null,y=1==_.nodeType?window.getComputedStyle(_):{};if("none"==y.display)return null;if(_==this.root||9==_.nodeType)if(b=!0,_==this.root||_==t)o&&!this.root?!n||0==n.width&&0==n.height?(_=null,w=null,v=null):w=n:w=r;else{var I=p(_),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(_=I,w=l(E,T)):(_=null,v=null)}else{var R=_.ownerDocument;_!=R.body&&_!=R.documentElement&&"visible"!=y.overflow&&(w=u(_))}if(w&&(s=w,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100})),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return f(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){o(),i=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,o)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function f(t,e){for(var o=e;o;){if(o==t)return!0;o=p(o)}return!1}function p(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function d(t){return t&&9===t.nodeType}}();
|
package/dist/link/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../tslib.es6-d79b1619.js";import o,{forwardRef as s,useRef as n}from"react";import a from"react-merge-refs";import t from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var r={component:"index-module_component__hqvbj",text:"index-module_text__zFBAJ",withAddons:"index-module_withAddons__R-v34",focused:"index-module_focused__mZChf",primary:"index-module_primary__7QnHL",secondary:"index-module_secondary__CXgR1",default:"index-module_default__axx5g",pseudo:"index-module_pseudo__eQCgC",addons:"index-module_addons__rF1Ob",m:"index-module_m__k1NeY",s:"index-module_s__0pCnE"},l=s((function(s,l){var i,_=s.view,c=void 0===_?"default":_,u=s.pseudo,p=void 0!==u&&u,x=s.leftAddons,f=s.rightAddons,h=s.className,v=s.dataTestId,g=s.children,A=s.size,E=void 0===A?"m":A,N=e(s,["view","pseudo","leftAddons","rightAddons","className","dataTestId","children","size"]),b=n(null),w=m(b,"keyboard")[0],y={className:t(r.component,r[c],(i={},i[r.pseudo]=p,i[r.focused]=w,i[r.withAddons]=x||f,i),h),"data-test-id":v,rel:"_blank"===N.target?"noreferrer noopener":void 0};return o.createElement("a",d({},y,N,{ref:a([b,l])}),x||f?o.createElement(o.Fragment,null,x&&o.createElement("span",{className:r.addons},x),g&&o.createElement("span",null,o.createElement("span",{className:t(r.text,r[E])},g)),f&&o.createElement("span",{className:r.addons},f)):o.createElement("span",{className:t(r.text,r[E])},g))}));export{l as Link};
|
package/dist/link/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Link}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Link}from"./component.js";import"../tslib.es6-d79b1619.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d79b1619.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var n={component:"index-module_component__1zepl",accent:"index-module_accent__37BTV",attention:"index-module_attention__zzR-C",negative:"index-module_negative__SXrwC"},m=function(m){var i=m.className,p=m.dataTestId,r=m.view,a=void 0===r?"accent":r,c=m.text;return t.createElement("div",{className:e(n.component,i,n[a]),"data-test-id":p},t.createElement(o.Text,{view:"title",color:a,weight:"medium"},c))};export{m as ListAllert};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d79b1619.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as r}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as r}from"../tslib.es6-d79b1619.js";import t,{useRef as n,useState as o,useCallback as a,useEffect as i}from"react";import u from"react-merge-refs";import l from"classnames";import{c as s,u as f,a as c}from"../_commonjsHelpers-8dcafa78.js";import{Input as d}from"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";var p=s((function(e,r){e.exports=function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r,t){function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(3);Object.defineProperty(r,"conformToMask",{enumerable:!0,get:function(){return n(o).default}});var a=t(2);Object.defineProperty(r,"adjustCaretPosition",{enumerable:!0,get:function(){return n(a).default}});var i=t(5);Object.defineProperty(r,"createTextMaskInputElement",{enumerable:!0,get:function(){return n(i).default}})},function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.placeholderChar="_",r.strFunction="function"},function(e,r){function t(e){var r=e.previousConformedValue,t=void 0===r?o:r,a=e.previousPlaceholder,i=void 0===a?o:a,u=e.currentCaretPosition,l=void 0===u?0:u,s=e.conformedValue,f=e.rawValue,c=e.placeholderChar,d=e.placeholder,p=e.indexesOfPipedChars,v=void 0===p?n:p,h=e.caretTrapIndexes,m=void 0===h?n:h;if(0===l||!f.length)return 0;var g=f.length,y=t.length,C=d.length,b=s.length,k=g-y,P=k>0;if(k>1&&!P&&0!==y)return l;var x=0,T=void 0,O=void 0;if(!P||t!==s&&s!==d){var j=s.toLowerCase(),w=f.toLowerCase().substr(0,l).split(o).filter((function(e){return-1!==j.indexOf(e)}));O=w[w.length-1];var M=i.substr(0,w.length).split(o).filter((function(e){return e!==c})).length,_=d.substr(0,w.length).split(o).filter((function(e){return e!==c})).length,S=_!==M,V=void 0!==i[w.length-1]&&void 0!==d[w.length-2]&&i[w.length-1]!==c&&i[w.length-1]!==d[w.length-1]&&i[w.length-1]===d[w.length-2];!P&&(S||V)&&M>0&&d.indexOf(O)>-1&&void 0!==f[l]&&(T=!0,O=f[l]);for(var N=v.map((function(e){return j[e]})),A=N.filter((function(e){return e===O})).length,E=w.filter((function(e){return e===O})).length,F=d.substr(0,d.indexOf(c)).split(o).filter((function(e,r){return e===O&&f[r]!==e})).length,I=F+E+A+(T?1:0),R=0,J=0;J<b&&(x=J+1,j[J]===O&&R++,!(R>=I));J++);}else x=l-k;if(P){for(var L=x,W=x;W<=C;W++)if(d[W]===c&&(L=W),d[W]===c||-1!==m.indexOf(W)||W===C)return L}else if(T){for(var q=x-1;q>=0;q--)if(s[q]===O||-1!==m.indexOf(q)||0===q)return q}else for(var B=x;B>=0;B--)if(d[B-1]===c||-1!==m.indexOf(B)||0===B)return B}Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;var n=[],o=""},function(e,r,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,a.isArray)(r)){if((void 0===r?"undefined":o(r))!==i.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");r=r(e,t),r=(0,a.processCaretTraps)(r).maskWithoutCaretTraps}var n=t.guide,s=void 0===n||n,f=t.previousConformedValue,c=void 0===f?l:f,d=t.placeholderChar,p=void 0===d?i.placeholderChar:d,v=t.placeholder,h=void 0===v?(0,a.convertMaskToPlaceholder)(r,p):v,m=t.currentCaretPosition,g=t.keepCharPositions,y=!1===s&&void 0!==c,C=e.length,b=c.length,k=h.length,P=r.length,x=C-b,T=x>0,O=m+(T?-x:0),j=O+Math.abs(x);if(!0===g&&!T){for(var w=l,M=O;M<j;M++)h[M]===p&&(w+=p);e=e.slice(0,O)+w+e.slice(O,C)}for(var _=e.split(l).map((function(e,r){return{char:e,isNew:r>=O&&r<j}})),S=C-1;S>=0;S--){var V=_[S].char;V!==p&&V===h[S>=O&&b===P?S-x:S]&&_.splice(S,1)}var N=l,A=!1;e:for(var E=0;E<k;E++){var F=h[E];if(F===p){if(_.length>0)for(;_.length>0;){var I=_.shift(),R=I.char,J=I.isNew;if(R===p&&!0!==y){N+=p;continue e}if(r[E].test(R)){if(!0===g&&!1!==J&&c!==l&&!1!==s&&T){for(var L=_.length,W=null,q=0;q<L;q++){var B=_[q];if(B.char!==p&&!1===B.isNew)break;if(B.char===p){W=q;break}}null!==W?(N+=R,_.splice(W,1)):E--}else N+=R;continue e}A=!0}!1===y&&(N+=h.substr(E,k));break}N+=F}if(y&&!1===T){for(var D=null,H=0;H<N.length;H++)h[H]===p&&(D=H);N=null!==D?N.substr(0,D+1):l}return{conformedValue:N,meta:{someCharsRejected:A}}}Object.defineProperty(r,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=n;var a=t(4),i=t(1),u=[],l=""},function(e,r,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.placeholderChar;if(!o(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(r))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(r)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?r:e})).join("")}function o(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function a(e){return"string"==typeof e||e instanceof String}function i(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function u(e){return null==e}function l(e){for(var r=[],t=void 0;-1!==(t=e.indexOf(c));)r.push(t),e.splice(t,1);return{maskWithoutCaretTraps:e,indexes:r}}Object.defineProperty(r,"__esModule",{value:!0}),r.convertMaskToPlaceholder=n,r.isArray=o,r.isString=a,r.isNumber=i,r.isNil=u,r.processCaretTraps=l;var s=t(1),f=[],c="[]"},function(e,r,t){function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var r={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:r,update:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=n.inputElement,v=n.mask,m=n.guide,g=n.pipe,y=n.placeholderChar,C=void 0===y?d.placeholderChar:y,b=n.keepCharPositions,k=void 0!==b&&b,P=n.showMask,x=void 0!==P&&P;if(void 0===t&&(t=o.value),t!==r.previousConformedValue){(void 0===v?"undefined":l(v))===h&&void 0!==v.pipe&&void 0!==v.mask&&(g=v.pipe,v=v.mask);var T=void 0,O=void 0;if(v instanceof Array&&(T=(0,c.convertMaskToPlaceholder)(v,C)),!1!==v){var j=i(t),w=o.selectionEnd,M=r.previousConformedValue,_=r.previousPlaceholder,S=void 0;if((void 0===v?"undefined":l(v))===d.strFunction){if(!1===(O=v(j,{currentCaretPosition:w,previousConformedValue:M,placeholderChar:C})))return;var V=(0,c.processCaretTraps)(O);O=V.maskWithoutCaretTraps,S=V.indexes,T=(0,c.convertMaskToPlaceholder)(O,C)}else O=v;var N={previousConformedValue:M,guide:m,placeholderChar:C,pipe:g,placeholder:T,currentCaretPosition:w,keepCharPositions:k},A=(0,f.default)(j,O,N).conformedValue,E=(void 0===g?"undefined":l(g))===d.strFunction,F={};E&&(!1===(F=g(A,u({rawValue:j},N)))?F={value:M,rejected:!0}:(0,c.isString)(F)&&(F={value:F}));var I=E?F.value:A,R=(0,s.default)({previousConformedValue:M,previousPlaceholder:_,conformedValue:I,placeholder:T,rawValue:j,currentCaretPosition:w,placeholderChar:C,indexesOfPipedChars:F.indexesOfPipedChars,caretTrapIndexes:S}),J=I===T&&0===R?x?T:p:I;r.previousConformedValue=J,r.previousPlaceholder=T,o.value!==J&&(o.value=J,a(o,R))}}}}}function a(e,r){document.activeElement===e&&(m?g((function(){return e.setSelectionRange(r,r,v)}),0):e.setSelectionRange(r,r,v))}function i(e){if((0,c.isString)(e))return e;if((0,c.isNumber)(e))return String(e);if(null==e)return p;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(r,"__esModule",{value:!0});var u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=o;var s=n(t(2)),f=n(t(3)),c=t(4),d=t(1),p="",v="none",h="object",m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])}));f(p);var v=p.createTextMaskInputElement;p.textMaskCore;var h="index-module_textHidden__dIPJL",m=" ",g=t.forwardRef((function(s,f){var c,p=s.mask,m=s.value,g=s.defaultValue,y=s.className,C=s.onBeforeDisplay,b=s.onChange,k=s.onClear,P=e(s,["mask","value","defaultValue","className","onBeforeDisplay","onChange","onClear"]),x=n(null),T=n(null),O=o(m||g||""),j=O[0],w=O[1],M=o(!0),_=M[0],S=M[1],V=a((function(e){void 0===e&&(e=""),T.current&&x.current&&(T.current.update(e),w(x.current.value))}),[]),N=a((function(e){V(e.target.value),b&&b(e,{value:e.target.value})}),[b,V]),A=a((function(e){V(""),k&&k(e)}),[k,V]);return i((function(){x.current&&(T.current=v({mask:p,inputElement:x.current,pipe:C,guide:!1,keepCharPositions:!1,showMask:!1,placeholderChar:" ",rawValue:"",currentCaretPosition:0,previousConformedValue:""}))}),[C,p]),i((function(){V(m||g)}),[m,V,g]),i((function(){S(!1)}),[]),t.createElement(d,r({},P,{className:l(y,(c={},c[h]=_,c)),value:j,onChange:N,onClear:A,ref:u([f,x])}))}));export{g as MaskedInput,m as PLACEHOLDER_CHAR};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MaskedInput,PLACEHOLDER_CHAR}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{MaskedInput,PLACEHOLDER_CHAR}from"./component.js";import"../tslib.es6-d79b1619.js";import"react";import"react-merge-refs";import"classnames";import"../_commonjsHelpers-8dcafa78.js";import"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";
|
package/dist/menu/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as n}from"./components/content-header/index.js";import{MenuAvatar as r}from"./components/menu-avatar/index.js";import{MenuBackButton as m}from"./components/menu-back-button/index.js";import{MenuButtonsList as i}from"./components/menu-buttons-list/index.js";import{UserButton as s}from"./components/user-button/index.js";import"alpha-cli-icons";import"../icon-button/component.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import t from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as n}from"./components/content-header/index.js";import{MenuAvatar as r}from"./components/menu-avatar/index.js";import{MenuBackButton as m}from"./components/menu-back-button/index.js";import{MenuButtonsList as i}from"./components/menu-buttons-list/index.js";import{UserButton as s}from"./components/user-button/index.js";import"alpha-cli-icons";import"../icon-button/component.js";import"../tslib.es6-d79b1619.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../avatar/component.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-96e779fb.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";import"../divider/component.js";import"./components/menu-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-1da95e4e.js";var p="index-module_layout_wrapper__amEhE",c="index-module_left_menu__N5dgM",a="index-module_menu_static__FNEjo",l="index-module_hidden_menu_opened__X0hFE",u="index-module_content_header__WlsJj",j="index-module_content_wrapper__6MsO6",d="index-module_content_offseted__wo5Xl",_="index-module_calendar_view__PeL0k",f=function(f){var h,g,x=f.pathname,v=f.children,k=f.routes,b=f.showBackButton,E=f.userName,w=f.userImage,y=f.userDialogOptions,N=f.profileTitle,M=f.profileImage,C=f.Link,L=f.profileOnClick,T=f.navigate,F=f.t,I=o(),O=I.staticMenu,B=I.setStaticMenu,D=I.showMenu,P=I.ref,W=O||D,X="/"+x.split("/").slice(-1)[0],z=t(c,((h={})[a]=O,h[l]=D,h)),J=t(j,((g={})[d]=O,g[_]=x.startsWith("/app/calendar"),g));return e.createElement("div",{className:t(p)},e.createElement("div",{ref:P,className:z},e.createElement(r,{title:N,showTitle:W,image:M,onClick:L}),b&&e.createElement(m,{showTitle:W,onClick:function(){return T("/app/calendar")}}),e.createElement(i,{routes:k,showLabels:W,currentPath:X,Link:C,t:F})),e.createElement("div",{className:J},e.createElement("div",{className:u},e.createElement(n,{onClick:function(){return B(!O)},title:F("menu."+X)}),e.createElement(s,{photo:w,fullName:E,options:y})),v))};export{f as Menu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{MenuOutlineM as t}from"alpha-cli-icons";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"../../../tslib.es6-
|
|
1
|
+
import o from"react";import{MenuOutlineM as t}from"alpha-cli-icons";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"../../../tslib.es6-d79b1619.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-e1ab3734.js";import"../../../common.module-5f5cfa97.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_open_button__a4IKw",i=function(i){var p=i.onClick,n=i.title;return o.createElement("div",null,o.createElement(e,{size:"m",icon:t,onClick:p,className:m}),o.createElement(r.Title,{tag:"div",view:"xsmall",weight:"regular"},n))};export{i as ContentHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"alpha-cli-icons";import"../../icon-button/component.js";import"../../tslib.es6-
|
|
1
|
+
export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"alpha-cli-icons";import"../../icon-button/component.js";import"../../tslib.es6-d79b1619.js";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-e1ab3734.js";import"../../common.module-5f5cfa97.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../avatar/component.js";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-96e779fb.js";import"../../spinner/component.js";import"../../image/typings.js";import"../../image/constants.js";import"../../image/utils.js";import"../../divider/component.js";import"./menu-button/index.js";import"../../select/component.js";import"../../select/components/arrow/component.js";import"../../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../../select/utils.js";import"../../select/components/native-select/component.js";import"../../select/components/field/component.js";import"../../form-control/component.js";import"../../select/components/optgroup/component.js";import"../../select/components/option/component.js";import"../../select/components/checkmark/component.js";import"../../select/components/options-list/component.js";import"react-virtual";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"../../toast-notifier/use-timer.js";import"../../intersection-observer-1da95e4e.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import o from"classnames";import{Avatar as t}from"../../../avatar/component.js";import{Typography as m}from"../../../typography/component.js";import"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import o from"classnames";import{Avatar as t}from"../../../avatar/component.js";import{Typography as m}from"../../../typography/component.js";import"../../../button/component.js";import"../../../tslib.es6-d79b1619.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../use-image-render-component-96e779fb.js";import"alpha-cli-icons";import"../../../spinner/component.js";import"../../../image/typings.js";import"../../../image/constants.js";import"../../../image/utils.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-e1ab3734.js";import"../../../common.module-5f5cfa97.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var i="index-module_menu_header__CELkb",r="index-module_text__RyE4x",n="index-module_hidden_text__94pZC",p=function(p){var s,a=p.showTitle,c=p.title,l=p.image,d=p.onClick;return e.createElement("div",{className:i},e.createElement(t,{onClick:function(){d&&d()},src:l,text:c}),e.createElement(m.Text,{className:o(r,(s={},s[n]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{p as MenuAvatar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-d79b1619.js";import"../../../typography/title/component.js";import"../../../colors.module-e1ab3734.js";import"../../../common.module-5f5cfa97.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_menu_button__I-v-u",i="index-module_text__L8D-Q",r="index-module_active__1v-Nx",n="index-module_leftAddons__eaiZB",s="index-module_rightAddons__RCmVm",d="index-module_isHidden__MDpf0",a=function(a){var l,p=a.href,c=a.children,_=a.active,u=a.leftAddons,x=a.rightAddons,h=a.showLabels,y=a.Link;return e.createElement(y,{className:t(m,(l={},l[r]=_,l[d]=!h,l)),to:p},u&&e.createElement("div",{className:n},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:i},c),x&&e.createElement("div",{className:s},x))};export{a as MenuButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-
|
|
1
|
+
import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-d79b1619.js";import"../../../typography/title/component.js";import"../../../colors.module-e1ab3734.js";import"../../../common.module-5f5cfa97.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var o="index-module_component__HYQZU",r=function(r){var n=r.routes,p=r.showLabels,m=r.currentPath,i=r.t,s=r.Link;return t.createElement("div",{className:o},!!n.length&&n.map((function(o){var r="/"+o.path.split("/").slice(-1)[0];return t.createElement(e,{showLabels:p,leftAddons:o.icon,active:r===m,key:o.path,href:o.path,Link:s},i("menu."+r))})))};export{r as MenuButtonsList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../../../tslib.es6-
|
|
1
|
+
import{a as o}from"../../../tslib.es6-d79b1619.js";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as r}from"../../../button/component.js";import{Select as n}from"../../../select/component.js";import"classnames";import"../../../select/components/base-select/component.js";import"../../../form-control/component.js";import"../../../select/components/options-list/component.js";import"react-virtual";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import"../../../intersection-observer-1da95e4e.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-e1ab3734.js";import"../../../common.module-5f5cfa97.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../use-image-render-component-96e779fb.js";import"alpha-cli-icons";import"../../../spinner/component.js";import"../../../image/typings.js";import"../../../image/constants.js";import"../../../image/utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../select/components/arrow/component.js";import"../../../select/components/field/component.js";import"../../../select/utils.js";import"../../../select/components/optgroup/component.js";import"../../../select/components/option/component.js";import"../../../select/components/checkmark/component.js";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../toast-plate/component.js";import"../../../toast-notifier/use-timer.js";var s="index-module_option_wrap__H32lk",p="index-module_field_avatar__qjMv6",i=t.memo((function(i){var m=i.options,c=i.fullName,a=i.photo;return t.createElement("div",{className:p},t.createElement(n,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(n){var s=n.innerProps;return t.createElement(r,o({},s,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{i as UserButton};
|
package/dist/menu/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"alpha-cli-icons";import"../icon-button/component.js";import"../tslib.es6-
|
|
1
|
+
export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"alpha-cli-icons";import"../icon-button/component.js";import"../tslib.es6-d79b1619.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-96e779fb.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"../divider/component.js";import"./components/menu-buttons-list/index.js";import"./components/menu-button/index.js";import"./components/user-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-1da95e4e.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{FlexColumns as m}from"../flex-columns/component.js";import{Image as o}from"../image/component.js";import"../image/typings.js";import"../image/constants.js";import{Padding as i}from"../padding/component.js";import{Typography as r}from"../typography/component.js";import"../skeleton/component.js";import"../use-image-render-component-
|
|
1
|
+
import e from"react";import t from"classnames";import{FlexColumns as m}from"../flex-columns/component.js";import{Image as o}from"../image/component.js";import"../image/typings.js";import"../image/constants.js";import{Padding as i}from"../padding/component.js";import{Typography as r}from"../typography/component.js";import"../skeleton/component.js";import"../use-image-render-component-96e779fb.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";import"../typography/title/index.js";import"../tslib.es6-d79b1619.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var a="index-module_wrapper__dIA-f",n="index-module_topRow__IFW6P",s="index-module_image__3meIy",l="index-module_answer__tTLUV",p="index-module_leftSide__vZvXK",c="index-module_title__9s63W",d="index-module_rightAddons__fhvSp",g="index-module_text__U4-9Q",u=function(u){var _=u.className,x=u.dataTestId,v=u.title,j=u.date,y=u.rightAddons,f=u.answer,h=u.text,E=u.image,w=u.photos,N=void 0===w?[]:w,T=u.withImage,I=void 0===T||T;return e.createElement("div",{"data-test-id":x,className:t(a,_)},e.createElement("div",{className:n},e.createElement("div",{className:p},I&&e.createElement(o,{src:E,size:"xs",text:v,view:"circle"}),e.createElement(r.Text,{className:c,view:"title",weight:"medium"},v),j&&e.createElement(r.Text,{view:"caps",color:"secondary",weight:"medium"},j)),y&&e.createElement("div",{className:d},y)),e.createElement("div",{className:g},e.createElement(r.Text,{view:"primary-small",color:"primary",weight:"medium"},h),!!f&&e.createElement(e.Fragment,null,e.createElement(i,{padding:"8px 0"}),e.createElement(r.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},f)),!!N.length&&e.createElement(e.Fragment,null,e.createElement(i,{padding:"8px 0"}),e.createElement(m,{columns:4,gr:16,gc:16},N.map((function(t){return e.createElement(o,{className:s,src:t,size:"m",view:"default"})}))))))};export{u as Message};
|
package/dist/message/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Message}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Message}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d79b1619.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-96e779fb.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";import"../padding/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-d79b1619.js";import n from"react";import l from"classnames";import{ModalBackground as o}from"../modal-backgroung/index.js";var t={container:"index-module_container__WE0Kf",s:"index-module_s__JvxOZ",m:"index-module_m__CQ8zo",l:"index-module_l__3dLPn",xl:"index-module_xl__MNkSH"},r=function(r){var m=r.modals,a=r.closeModal;return m.length?n.createElement(n.Fragment,null,m.map((function(o,r){return n.createElement("div",{style:{zIndex:22+r},className:l(t.container,t[o.props.size]),key:o.id},n.createElement(o.modal,e({},o.props)))})),n.createElement(o,{zIndex:20+m.length,close:function(){a(m[m.length-1].id)}})):null};export{r as Modals};
|
package/dist/modal/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Modals as e}from"./components/modals/index.js";import{useModal as
|
|
1
|
+
import o from"react";import{Modals as e}from"./components/modals/index.js";import{useModal as n}from"./hooks/use-modal.js";import"../tslib.es6-d79b1619.js";import"classnames";import"./components/modal-backgroung/index.js";import"uuid";var t=o.createContext({modals:[],openModal:function(){return function(){}},closeModal:function(){}}),a=function(a){var l=a.children,r=a.t,m=n(r),s=m.modals,d=m.openModal,c=m.closeModal;return o.createElement(t.Provider,{value:{modals:s,openModal:d,closeModal:c}},o.createElement(e,{modals:s,openModal:d,closeModal:c}),l)};export{t as ModalContext,a as ModalProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as o,a as t}from"../../tslib.es6-d79b1619.js";import n from"react";import{v4 as r}from"uuid";var i=function(i){var u=n.useState([]),e=u[0],a=u[1],f=function(o){a(e.filter((function(t){return t.id!==o})))};return{openModal:function(n,u){void 0===u&&(u="s");return function(s,c){!function(t){a(o(o([],e),[t]))}(function(o,e){var a=r();return{id:a,modal:n,props:t({size:u,close:function(){f(a),e&&e()},t:i},o)}}(s,c))}},modals:e,closeModal:f}};export{i as useModal};
|
package/dist/modal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ModalContext,ModalProvider}from"./context.js";import"react";import"./components/modals/index.js";import"../tslib.es6-
|
|
1
|
+
export{ModalContext,ModalProvider}from"./context.js";import"react";import"./components/modals/index.js";import"../tslib.es6-d79b1619.js";import"classnames";import"./components/modal-backgroung/index.js";import"./hooks/use-modal.js";import"uuid";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-d79b1619.js";import o from"react";import{Button as i}from"../button/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__G5OhU",s="index-module_subtitle__G-Y2c",l="index-module_button__fcSEi",p=function(p){var a=p.code,n=p.title,c=p.subtitle,d=p.buttonText,u=p.view,v=void 0===u?"primary":u,y=p.size,b=void 0===y?"m":y,g=e(p,["code","title","subtitle","buttonText","view","size"]);return o.createElement("div",{className:m},o.createElement(r.Title,{weight:"bold",color:"primary",tag:"div"},a),o.createElement(r.Title,{weight:"bold",color:"primary",tag:"div"},n),c&&o.createElement(r.Text,{color:"secondary",className:s,tag:"div"},c),(!!(null==g?void 0:g.onClick)||(null==g?void 0:g.href))&&o.createElement(i,t({className:l,view:v,size:b},g),d))};export{p as NotFound};
|
package/dist/not-found/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{NotFound}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{NotFound}from"./component.js";import"../tslib.es6-d79b1619.js";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-d79b1619.js";import*as n from"react";import o,{forwardRef as r,useRef as i,useState as a,useCallback as u,useEffect as c}from"react";import s from"react-merge-refs";import l from"classnames";import{Portal as f}from"../portal/component.js";import{ToastPlate as v}from"../toast-plate/component.js";import{useClickOutside as m}from"./utils/index.js";import"react-dom";import"../portal/utils.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(this,arguments)}var d="Left",h="Right",T="Up",w={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},g={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},M="mousemove",k="mouseup";function E(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function C(e,t){var n=function(t){t&&"touches"in t&&t.touches.length>1||e((function(e,n){n.trackMouse&&(document.addEventListener(M,o),document.addEventListener(k,a));var r="touches"in t?t.touches[0]:t,i=E([r.clientX,r.clientY],n.rotationAngle);return p({},e,g,{initial:[].concat(i),xy:i,start:t.timeStamp||0})}))},o=function(t){e((function(e,n){if("touches"in t&&t.touches.length>1)return e;var o="touches"in t?t.touches[0]:t,r=E([o.clientX,o.clientY],n.rotationAngle),i=r[0],a=r[1],u=i-e.xy[0],c=a-e.xy[1],s=Math.abs(u),l=Math.abs(c),f=(t.timeStamp||0)-e.start,v=Math.sqrt(s*s+l*l)/(f||1),m=[u/(f||1),c/(f||1)],g=function(e,t,n,o){return e>t?n>0?h:d:o>0?"Down":T}(s,l,u,c),M="number"==typeof n.delta?n.delta:n.delta[g.toLowerCase()]||w.delta;if(s<M&&l<M&&!e.swiping)return e;var k={absX:s,absY:l,deltaX:u,deltaY:c,dir:g,event:t,first:e.first,initial:e.initial,velocity:v,vxvy:m};k.first&&n.onSwipeStart&&n.onSwipeStart(k),n.onSwiping&&n.onSwiping(k);var C=!1;return(n.onSwiping||n.onSwiped||"onSwiped"+g in n)&&(C=!0),C&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),p({},e,{first:!1,eventData:k,swiping:!0})}))},r=function(t){e((function(e,n){var o;if(e.swiping&&e.eventData){o=p({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(o);var r=n["onSwiped"+o.dir];r&&r(o)}else n.onTap&&n.onTap({event:t});return p({},e,g,{eventData:o})}))},i=function(){document.removeEventListener(M,o),document.removeEventListener(k,a)},a=function(e){i(),r(e)},u=function(e,t){var i=function(){};if(e&&e.addEventListener){var a=[["touchstart",n],["touchmove",o],["touchend",r]];a.forEach((function(n){var o=n[0],r=n[1];return e.addEventListener(o,r,{passive:t})})),i=function(){return a.forEach((function(t){var n=t[0],o=t[1];return e.removeEventListener(n,o)}))}}return i},c={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var o={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),o.cleanUpTouch=void 0),n.trackTouch&&t&&(o.cleanUpTouch=u(t,!n.preventDefaultTouchmoveEvent)),p({},e,{el:t},o)}))}};return t.trackMouse&&(c.onMouseDown=n),[c,u]}function y(e){var t=e.trackMouse,o=n.useRef(p({},g)),r=n.useRef(p({},w));r.current=p({},w,e,{delta:void 0===e.delta?w.delta:e.delta,rotationAngle:void 0===e.rotationAngle?w.rotationAngle:e.rotationAngle,trackTouch:void 0===e.trackTouch?w.trackTouch:e.trackTouch});var i=n.useMemo((function(){return C((function(e){return o.current=e(o.current,r.current)}),{trackMouse:t})}),[t]),a=i[0],u=i[1];return o.current=function(e,t,n){var o={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),o.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(o.cleanUpTouch=n(e.el,!t.preventDefaultTouchmoveEvent)),p({},e,o)}(o.current,r.current,u),a}var D="index-module_notificationComponent__khhkj",S="index-module_isVisible__snkQ9",b="index-module_isClosing__wPaVu",_="index-module_toastContent__gDwuN",x="."+D,L=r((function(n,r){var p,w=n.className,g=n.children,M=n.visible,k=n.offset,E=void 0===k?108:k,C=n.hasCloser,L=void 0===C||C,j=n.autoCloseDelay,U=void 0===j?5e3:j,A=n.onClose,N=n.onCloseTimeout,O=n.onMouseEnter,P=n.onMouseLeave,X=n.onClickOutside,Y=n.style,R=e(n,["className","children","visible","offset","hasCloser","autoCloseDelay","onClose","onCloseTimeout","onMouseEnter","onMouseLeave","onClickOutside","style"]),V=i(null),q=i(0),F=i(0),I=a(!1),Q=I[0],z=I[1],B=u((function(){q.current=window.setTimeout((function(){N&&N()}),U)}),[U,N]),G=u((function(){clearTimeout(q.current)}),[]);c((function(){return function(){clearTimeout(F.current)}}),[]),c((function(){return M&&B(),function(){G()}}),[B,G,M]);var H=u((function(e){G(),O&&O(e)}),[O,G]),J=u((function(e){G(),B(),P&&P(e)}),[P,B,G]),K=u((function(e){var t=!!e.target.closest(x);X&&M&&!t&&X(e)}),[X,M]);m(V,K);var W=y({onSwiped:function(e){var t=e.dir;A&&[d,h,T].includes(t)&&(z(!0),F.current=window.setTimeout((function(){z(!1),A()}),100))},delta:100,trackMouse:!0});return o.createElement(f,null,o.createElement("div",t({},W),o.createElement(v,t({className:l(D,(p={},p[S]=M,p[b]=Q,p),w),contentClassName:_,style:t({top:E},Y),onMouseEnter:H,onMouseLeave:J,ref:s([r,V]),role:M?"alert":void 0,hasCloser:L,onClose:A},R),g)))}));L.defaultProps={autoCloseDelay:5e3,offset:108};export{L as Notification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Notification}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Notification}from"./component.js";import"../tslib.es6-d79b1619.js";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./utils/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r}from"./_commonjsHelpers-8dcafa78.js";var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function o(r,e){try{return[decodeURIComponent(r.join(""))]}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],o(t),o(n))}function a(r){try{return decodeURIComponent(r)}catch(a){for(var e=r.match(t)||[],n=1;n<e.length;n++)e=(r=o(e,n).join("")).match(t)||[];return r}}var c=function(r){if("string"!=typeof r)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch(e){return function(r){for(var e={"%FE%FF":"��","%FF%FE":"��"},t=n.exec(r);t;){try{e[t[0]]=decodeURIComponent(t[0])}catch(r){var o=a(t[0]);o!==t[0]&&(e[t[0]]=o)}t=n.exec(r)}e["%C2"]="�";for(var c=Object.keys(e),s=0;s<c.length;s++){var i=c[s];r=r.replace(new RegExp(i,"g"),e[i])}return r}(r)}},s=(r,e)=>{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]},i=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;a<n.length;a++){var c=n[a],s=r[c];(o?-1!==e.indexOf(c):e(c,s,r))&&(t[c]=s)}return t},l=r((function(r,e){const t=Symbol("encodeFragmentIdentifier");function n(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(r,e){return e.encode?e.strict?encodeURIComponent(r).replace(/[!'()*]/g,(r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)):encodeURIComponent(r):r}function a(r,e){return e.decode?c(r):r}function l(r){return Array.isArray(r)?r.sort():"object"==typeof r?l(Object.keys(r)).sort(((r,e)=>Number(r)-Number(e))).map((e=>r[e])):r}function u(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function p(r){const e=(r=u(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function f(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function y(r,e){n((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const t=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"colon-list-separator":return(r,t,n)=>{e=/(:list)$/.exec(r),r=r.replace(/:list$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),c="string"==typeof t&&!o&&a(t,r).includes(r.arrayFormatSeparator);t=c?a(t,r):t;const s=o||c?t.split(r.arrayFormatSeparator).map((e=>a(e,r))):null===t?t:a(t,r);n[e]=s};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?a(t,r):t);const c=null===t?[]:t.split(r.arrayFormatSeparator).map((e=>a(e,r)));void 0!==n[e]?n[e]=[].concat(n[e],c):n[e]=c};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),o=Object.create(null);if("string"!=typeof r)return o;if(!(r=r.trim().replace(/^[?#&]/,"")))return o;for(const n of r.split("&")){if(""===n)continue;let[r,c]=s(e.decode?n.replace(/\+/g," "):n,"=");c=void 0===c?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?c:a(c,e),t(a(r,e),c,o)}for(const r of Object.keys(o)){const t=o[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=f(t[r],e);else o[r]=f(t,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce(((r,e)=>{const t=o[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=l(t):r[e]=t,r}),Object.create(null))}e.extract=p,e.parse=y,e.stringify=(r,e)=>{if(!r)return"";n((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],a=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const a=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),"[",a,"]"].join("")]:[...t,[o(e,r),"[",o(a,r),"]=",o(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),"[]"].join("")]:[...t,[o(e,r),"[]=",o(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),":list="].join("")]:[...t,[o(e,r),":list=",o(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,a)=>void 0===a||r.skipNull&&null===a||r.skipEmptyString&&""===a?n:(a=null===a?"":a,0===n.length?[[o(t,r),e,o(a,r)].join("")]:[[n,o(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,o(e,r)]:[...t,[o(e,r),"=",o(n,r)].join("")]}}(e),c={};for(const e of Object.keys(r))t(e)||(c[e]=r[e]);const s=Object.keys(c);return!1!==e.sort&&s.sort(e.sort),s.map((t=>{const n=r[t];return void 0===n?"":null===n?o(t,e):Array.isArray(n)?0===n.length&&"bracket-separator"===e.arrayFormat?o(t,e)+"[]":n.reduce(a(t),[]).join("&"):o(t,e)+"="+o(n,e)})).filter((r=>r.length>0)).join("&")},e.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=s(r,"#");return Object.assign({url:t.split("?")[0]||"",query:y(p(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:a(n,e)}:{})},e.stringifyUrl=(r,n)=>{n=Object.assign({encode:!0,strict:!0,[t]:!0},n);const a=u(r.url).split("?")[0]||"",c=e.extract(r.url),s=e.parse(c,{sort:!1}),i=Object.assign(s,r.query);let l=e.stringify(i,n);l&&(l=`?${l}`);let p=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(p=`#${n[t]?o(r.fragmentIdentifier,n):r.fragmentIdentifier}`),`${a}${l}${p}`},e.pick=(r,n,o)=>{o=Object.assign({parseFragmentIdentifier:!0,[t]:!1},o);const{url:a,query:c,fragmentIdentifier:s}=e.parseUrl(r,o);return e.stringifyUrl({url:a,query:i(c,n),fragmentIdentifier:s},o)},e.exclude=(r,t,n)=>{const o=Array.isArray(t)?r=>!t.includes(r):(r,e)=>!t(r,e);return e.pick(r,o,n)}}));l.extract;var u=l.parse,p=l.stringify;function f(){return u(window.location.search)}l.parseUrl,l.stringifyUrl,l.pick,l.exclude;export{f as p,p as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-
|
|
1
|
+
export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-d79b1619.js";import"../../typography/title/component.js";import"../../colors.module-e1ab3734.js";import"../../common.module-5f5cfa97.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-d79b1619.js";import"../../../typography/title/component.js";import"../../../colors.module-e1ab3734.js";import"../../../common.module-5f5cfa97.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_wrapper__Y-b0g",i=e((function(e,i){var p=e.label,a=e.value,n=e.id,l=e.className,s=e.onClick;return t.createElement("button",{className:o(m,l),ref:i,id:n,type:"button",onClick:s},t.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),t.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{i as LabeledButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as o,a as t}from"../tslib.es6-d79b1619.js";import e,{forwardRef as s}from"react";import i from"classnames";import"../select/component.js";import{BaseSelect as r}from"../select/components/base-select/component.js";import"../form-control/component.js";import{Optgroup as n}from"../select/components/optgroup/component.js";import{Option as p}from"../select/components/option/component.js";import{OptionsList as m}from"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"../intersection-observer-1da95e4e.js";import{Field as c}from"./field/Component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../hooks/useFocus/index.js";import"../select/utils.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../icon-button/component.js";var l="index-module_container__cXs3V",a=s((function(s,a){var d=s.OptionsList,j=s.Optgroup,f=s.Option,u=s.view,v=s.loading,g=s.size,O=void 0===g?"m":g,b=s.Field,k=s.className,w=s.leftAddons,x=s.icon,_=s.fieldComponent,z=void 0===_?"button":_,h=o(s,["OptionsList","Optgroup","Option","view","loading","size","Field","className","leftAddons","icon","fieldComponent"]);return e.createElement(r,t({},h,{ref:a,Option:f||p,Field:b||c,size:"m"===O?"m":"s",fieldProps:{view:u,loading:v,buttonSize:O,leftAddons:w,icon:x,fieldComponent:z},Optgroup:j||n,OptionsList:d||m,className:i(l,k),selected:[],closeOnSelect:!0}))}));export{a as PickerButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../../tslib.es6-d79b1619.js";import n from"react";import r from"classnames";import{Button as t}from"../../button/component.js";import{IconButton as i}from"../../icon-button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";var s={iconContainer:"index-module_iconContainer__XeDrL",open:"index-module_open__OjX8o"},a=function(a){var l=a.buttonSize,m=void 0===l?"m":l,c=a.view,p=a.label,d=a.open;a.multiple,a.rightAddons,a.Arrow;var u=a.innerProps,v=a.className;a.selected,a.selectedMultiple,a.valueRenderer;var b=a.fieldComponent,f=e(a,["buttonSize","view","label","open","multiple","rightAddons","Arrow","innerProps","className","selected","selectedMultiple","valueRenderer","fieldComponent"]),_=o(o({},f),u);return"button"===b?n.createElement(t,o({},_,{rightAddons:f.icon?n.createElement("span",{className:r(s.iconContainer,d&&s.open)},f.icon):null,block:!0,view:c,size:m,className:r(s.component,"primary"===c&&s.primary,v)}),p):n.createElement(i,o({},_,{icon:f.icon,view:"secondary"===c?"secondary":"ghost",size:"xs"===m?"s":m}))};export{a as Field};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Field}from"./Component.js";import"../../tslib.es6-
|
|
1
|
+
export{Field}from"./Component.js";import"../../tslib.es6-d79b1619.js";import"react";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../icon-button/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"../tslib.es6-
|
|
1
|
+
export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"../tslib.es6-d79b1619.js";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-1da95e4e.js";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e1ab3734.js";import"../common.module-5f5cfa97.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-d79b1619.js";import t,{useState as o,useCallback as n,useEffect as r}from"react";import{usePopper as i}from"react-popper";import{CSSTransition as a}from"react-transition-group";import m from"classnames";import{Portal as s}from"../portal/component.js";import{stackingOrder as c}from"../stack/context.js";import{Stack as l}from"../stack/component.js";import"react-dom";import"../portal/utils.js";var p={component:"index-module_component__M4dAZ",arrow:"index-module_arrow__rhviH",enter:"index-module_enter__3MWR1",enterActive:"index-module_enterActive__pPMD0",exit:"index-module_exit__4hKAj",exitActive:"index-module_exitActive__vWe9J"},d={timeout:150},u={enter:p.enter,enterActive:p.enterActive,exit:p.exit,exitActive:p.exitActive},f=function(f){var v=f.children,x=f.getPortalContainer,_=f.transition,A=void 0===_?d:_,w=f.anchorElement,E=f.offset,h=void 0===E?[0,0]:E,N=f.withArrow,j=void 0!==N&&N,P=f.withTransition,b=void 0===P||P,y=f.position,C=void 0===y?"left":y,g=f.preventFlip,k=f.popperClassName,D=f.arrowClassName,I=f.className,M=f.open,O=f.dataTestId,z=f.update,R=f.transitionDuration,T=void 0===R?A.timeout+"ms":R,W=f.zIndex,F=void 0===W?c.POPOVER:W,H=o(w),J=H[0],K=H[1],V=o(null),Z=V[0],q=V[1],B=o(null),G=B[0],L=B[1],Q=n((function(){var e=[{name:"offset",options:{offset:h}}];return j&&e.push({name:"arrow",options:{element:G}}),g&&e.push({name:"flip",options:{fallbackPlacements:[]}}),e}),[h,j,g,G]),S=i(J,Z,{placement:C,modifiers:Q()}),U=S.styles,X=S.attributes,Y=S.update;r((function(){K(w)}),[w]),r((function(){Y&&Y()}),[Y,G,v]),r((function(){z&&Y&&(z.current=Y)}),[Y,z]);var $=function(o,n){return t.createElement("div",e({ref:q,style:e({zIndex:o},U.popper),"data-test-id":O,className:m(p.component,I)},X.popper),t.createElement("div",{className:m(p.inner,k),style:n},v,j&&t.createElement("div",{ref:L,style:U.arrow,className:m(p.arrow,D)})))};return t.createElement(l,{value:F},(function(o){return t.createElement(s,{getPortalContainer:x},b?t.createElement(a,e({unmountOnExit:!0,classNames:u},A,{in:M}),$(o,{transitionDuration:T})):M&&$(o))}))};export{f as Popover};
|
package/dist/popover/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Popover}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Popover}from"./component.js";import"../tslib.es6-d79b1619.js";import"react";import"react-popper";import"react-transition-group";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
|
package/dist/portal/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t="alfa-portal-container";var e=function(){return document.querySelector("[
|
|
1
|
+
var t="alfa-portal-container";var e=function(){return document.querySelector("["+t+"]")||((e=document.createElement("div")).setAttribute(t,""),document.body.appendChild(e),e);var e};function n(t,e){"function"==typeof t?t(e):t&&(t.current=e)}export{t as PORTAL_CONTAINER_ATTRIBUTE,e as getDefaultPortalContainer,n as setRef};
|