@alphakits/ui 1.31.0 → 1.31.2
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/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/back-button/component.js +1 -1
- package/dist/badge/component.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/box/component.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button-arrow/component.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//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/{capitalize-f61c7a6e.js → capitalize-d32858ed.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/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/checkbox/component.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/colors.module-a7d0efb0.js +1 -0
- package/dist/contact-block-c5889266.js +1 -0
- 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/decorated-item/component.js +1 -1
- package/dist/divider/component.js +1 -1
- package/dist/dot/component.js +1 -1
- package/dist/empty-page/component.js +1 -1
- package/dist/empty-page/index.js +1 -1
- package/dist/flex/component.js +1 -1
- package/dist/flex-columns/component.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-loading/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form-control/component.js +1 -1
- 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/gutters.module-8ae90e74.js +1 -0
- package/dist/header-search/component.js +1 -1
- package/dist/icon-button/component.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-uploader/component.js +1 -1
- package/dist/image-uploader/index.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/info-block-wrapper/component.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/link/component.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/loader/component.js +1 -1
- package/dist/masked-input/component.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-back-button/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/modal.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/page-container/component.js +1 -1
- package/dist/page-loading/component.js +1 -1
- package/dist/page-with-controls/component.js +1 -1
- package/dist/page-with-controls/index.js +1 -1
- 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.d.ts +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.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-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/section-wrapper/component.js +1 -1
- package/dist/select/components/arrow/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/checkmark/component.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/optgroup/component.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/select-search/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel/component.js +1 -1
- package/dist/sidepanel/index.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/skeleton/component.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/spinner/component.js +1 -1
- package/dist/status/component.js +1 -1
- package/dist/step-bar-15ff0e61.js +1 -0
- package/dist/stepped-progress-bar/components/step-bar.js +1 -1
- package/dist/stepped-progress-bar/index.d.ts +1 -1
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/sticker/component.js +1 -1
- package/dist/suffix-input/component.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/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/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/prepare-rows.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/textarea/component.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/tooltip/component.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/use-image-render-component-91131dbc.js +1 -0
- package/dist/welcome-layout/component.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/package.json +7 -5
- package/dist/colors.module-e6546343.js +0 -1
- package/dist/contact-block-79ed0fc7.js +0 -1
- package/dist/gutters.module-40c240ff.js +0 -1
- package/dist/step-bar-96ca328e.js +0 -1
- package/dist/use-image-render-component-d8d9cc09.js +0 -1
- /package/dist/{contact-block-79ed0fc7.d.ts → contact-block-c5889266.d.ts} +0 -0
- /package/dist/{isSymbol-ae03d4c3.js → isSymbol-9701dc6b.js} +0 -0
- /package/dist/{step-bar-96ca328e.d.ts → step-bar-15ff0e61.d.ts} +0 -0
- /package/dist/{use-image-render-component-d8d9cc09.d.ts → use-image-render-component-91131dbc.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import o from"@alphakits/icons/dist/NextS";import e from"classnames";import{IconButton as r}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import t from"react";import o from"@alphakits/icons/dist/NextS";import e from"classnames";import{IconButton as r}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__3ce8x"},p=function(p){var n=p.title,s=p.onClick;return t.createElement("div",{className:e(m.item)},t.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},n),!!s&&t.createElement(r,{icon:o,className:m.copy,size:"s",onClick:s}))};export{p as InfoBlockHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InfoBlockHeader}from"./component.js";import"react";import"@alphakits/icons/dist/NextS";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{InfoBlockHeader}from"./component.js";import"react";import"@alphakits/icons/dist/NextS";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import e from"@alphakits/icons/dist/ActionCopyM";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import t from"react";import e from"@alphakits/icons/dist/ActionCopyM";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__Wtwgt",start:"index-module_start__3kp7e",between:"index-module_between__3JHZ-",rightAddons:"index-module_rightAddons__3HmvT",content:"index-module_content__OwYJI",copy:"index-module_copy__2bD1W"},s=function(s){var p=s.label,a=s.value,c=s.view,l=void 0===c?"between":c,d=s.rightAddons,u=s.withCopyButton,h=s.color,_=void 0===h?"primary":h;return t.createElement("div",{className:o(m.item,m[l])},t.createElement(n.Text,{view:"caps",color:"secondary",weight:"medium"},p,a&&":"),t.createElement("div",{className:m.content},a&&t.createElement(n.Text,{view:"caps",className:m.value,color:_,weight:"medium"},a,u&&t.createElement(i,{icon:e,className:m.copy,size:"s",onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a).then((function(){r({title:"Copied!",view:"positive",offset:30})}))}})),d&&t.createElement("div",{className:m.rightAddons},d)))};export{s as InfoBlockItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InfoBlockItem}from"./component.js";import"react";import"@alphakits/icons/dist/ActionCopyM";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{InfoBlockItem}from"./component.js";import"react";import"@alphakits/icons/dist/ActionCopyM";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import o from"classnames";var i={infoBlock:"index-
|
|
1
|
+
import e from"react";import o from"classnames";var i={infoBlock:"index-module_infoBlock__1U3qw",icon:"index-module_icon__qcssZ",bordered:"index-module_bordered__1Edcl",withHover:"index-module_withHover__1w2MC"},r=function(r){var d=r.children,n=r.view,c=void 0===n?"default":n;return e.createElement("div",{className:o(i.infoBlock,i[c])},d)};export{r as InfoBlockWrapper};
|
package/dist/input/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from"tslib";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 i}from"../button/component.js";import{FormControl as c}from"../form-control/component.js";import{useFocus as u}from"../hooks/useFocus/index.js";import"../loader/component.js";var m={input:"index-
|
|
1
|
+
import{__rest as e,__assign as o}from"tslib";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 i}from"../button/component.js";import{FormControl as c}from"../form-control/component.js";import{useFocus as u}from"../hooks/useFocus/index.js";import"../loader/component.js";var m={input:"index-module_input__2DyE0",hasLabel:"index-module_hasLabel__S2DGf",block:"index-module_block__lH-Pe",clearIcon:"index-module_clearIcon__TO-Pg",errorIcon:"index-module_errorIcon__vVrYK",successIcon:"index-module_successIcon__3MPpw",focusVisible:"index-module_focusVisible__3Adls"},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,g=f.block,x=void 0!==g&&g,k=f.bottomAddons,y=f.dataTestId,A=f.clear,I=void 0!==A&&A,w=f.disabled,E=f.error,M=f.success,L=f.required,V=f.hint,B=f.className,D=f.fieldClassName,j=f.inputClassName,F=f.labelClassName,O=f.addonsClassName,P=f.focusedClassName,q=f.filledClassName,z=f.label,R=f.maxLength,T=void 0===R?100:R,U=f.leftAddons,G=f.onFocus,H=f.onBlur,K=f.onChange,S=f.onClear,Y=f.onClick,J=f.onMouseDown,Q=f.onMouseUp,W=f.rightAddons,X=f.value,Z=f.defaultValue,$=f.wrapperRef,ee=f.readOnly,oe=e(f,["size","type","block","bottomAddons","dataTestId","clear","disabled","error","success","required","hint","className","fieldClassName","inputClassName","labelClassName","addonsClassName","focusedClassName","filledClassName","label","maxLength","leftAddons","onFocus","onBlur","onChange","onClear","onClick","onMouseDown","onMouseUp","rightAddons","value","defaultValue","wrapperRef","readOnly"]),ae=void 0===X,se=s(null),le=u(se,"keyboard")[0],ne=l(!1),re=ne[0],te=ne[1],de=l(Z||""),ie=de[0],ce=de[1],ue=Boolean(ae?ie:X),me=I&&ue&&!w&&!ee,fe=n((function(e){ee||te(!0),G&&G(e)}),[G,ee]),pe=n((function(e){te(!1),H&&H(e)}),[H]),be=n((function(e){K&&K(e,{value:e.target.value}),ae&&ce(e.target.value)}),[K,ae]),Ce=n((function(e){me&&(ae&&ce(""),S&&S(e),se.current&&!re&&se.current.focus())}),[me,re,S,ae]);return a.createElement(c,{ref:$,className:d(B,re&&P,ue&&q),fieldClassName:d(D,(b={},b[m.focusVisible]=le,b)),labelClassName:F,addonsClassName:O,size:_,block:x,required:L,disabled:w,filled:ue||re,focused:re,error:E,label:z,hint:V,leftAddons:U,rightAddons:(me||W||M)&&a.createElement(r,null,me&&a.createElement(i,{type:"button",view:"ghost",disabled:w,"aria-label":"Очистить",className:m.clearButton,onClick:Ce},a.createElement("span",{className:m.clearIcon})),M&&!E&&a.createElement("span",{className:m.successIcon}),W),bottomAddons:k,onClick:Y,onMouseDown:J,onMouseUp:Q},a.createElement("input",o({},oe,{className:d(m.input,(C={},C[m.hasLabel]=z,C),j),disabled:w,onBlur:pe,onFocus:fe,onChange:be,maxLength:T,ref:t([p,se]),type:v,value:ae?ie:X,readOnly:ee,"data-test-id":y,"data-error":!!E,"aria-label":"string"==typeof z?z:void 0})))}));f.defaultProps={type:"text",block:!1};export{f as Input};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as o}from"tslib";import r,{useRef as e,useCallback as n}from"react";import t from"classnames";import{Input as l}from"../../input/component.js";import s from"react-merge-refs";import"../../button/component.js";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../form-control/component.js";var i="index-module_arrow__1XlGC",a="index-module_error__24P-U",c=function(c){var m,p=c.label,d=c.placeholder,u=c.Arrow,f=c.Input,h=void 0===f?l:f,v=c.value,b=c.error,g=c.success,_=c.hint,j=c.disabled,C=c.readOnly,k=c.onInput,w=c.inputProps,x=void 0===w?{}:w,A=c.innerProps,F=e(null),E=A.onClick,P=A.onFocus,y=j||C,I=n((function(o){E&&E(o),F.current&&F.current.focus()}),[E]);return r.createElement(h,o({},x,A,{wrapperRef:s([A.ref,x.wrapperRef]),ref:s([F,x.ref]),disabled:j,readOnly:C,block:!0,label:p,placeholder:d,error:b,success:g,hint:_,onChange:k,onClick:y?void 0:I,onFocus:y?void 0:P,autoComplete:"off",value:v,rightAddons:(u||x.rightAddons)&&r.createElement(r.Fragment,null,x.rightAddons,u&&r.createElement("span",{className:t(i,(m={},m[a]=b,m))},u))}))};export{c as AutocompleteField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import n from"@alphakits/icons/dist/SearchM";import t from"classnames";var l={input:"index-module_input__3hqk_",block:"index-module_block__2qCsa",s:"index-module_s__2n4yx",m:"index-module_m__1pT-G",leftAddons:"index-module_leftAddons__1PuzC"},o=function(o){var a,d=o.value,m=o.onChange,i=o.placeholder,r=o.leftAddons,s=o.block,c=o.size,u=void 0===c?"m":c;return e.createElement("div",{className:t(l.input,l[u],(a={},a[l.block]=s,a))},e.createElement("span",{className:l.leftAddons},r||e.createElement(n,null)),e.createElement("input",{value:d,onChange:function(e){m(e.target.value)},placeholder:i,type:"text"}))};export{o as InputGhost};
|
package/dist/link/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as d}from"tslib";import o,{forwardRef as n,useRef as s}from"react";import t from"react-merge-refs";import a from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var r={component:"index-
|
|
1
|
+
import{__rest as e,__assign as d}from"tslib";import o,{forwardRef as n,useRef as s}from"react";import t from"react-merge-refs";import a from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var r={component:"index-module_component__mLrsz",text:"index-module_text__5dmKq",withAddons:"index-module_withAddons__2J8JN",focused:"index-module_focused__MJGFH",primary:"index-module_primary__316lS",secondary:"index-module_secondary__3Vkve",default:"index-module_default__CAkjM",pseudo:"index-module_pseudo__2IIBH",addons:"index-module_addons__Dp_3j",m:"index-module_m__RxhMn",s:"index-module_s__L8jaf"},l=n((function(n,l){var i,_=n.view,c=void 0===_?"default":_,u=n.pseudo,p=void 0!==u&&u,f=n.leftAddons,x=n.rightAddons,h=n.className,v=n.dataTestId,A=n.children,N=n.size,E=void 0===N?"m":N,g=e(n,["view","pseudo","leftAddons","rightAddons","className","dataTestId","children","size"]),k=s(null),w=m(k,"keyboard")[0],y={className:a(r.component,r[c],(i={},i[r.pseudo]=p,i[r.focused]=w,i[r.withAddons]=f||x,i),h),"data-test-id":v,rel:"_blank"===g.target?"noreferrer noopener":void 0};return o.createElement("a",d({},y,g,{ref:t([k,l])}),f||x?o.createElement(o.Fragment,null,f&&o.createElement("span",{className:r.addons},f),A&&o.createElement("span",null,o.createElement("span",{className:a(r.text,r[E])},A)),x&&o.createElement("span",{className:r.addons},x)):o.createElement("span",{className:a(r.text,r[E])},A))}));export{l as Link};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n={component:"index-module_component__3qzuv",accent:"index-module_accent__CtavO",attention:"index-module_attention__3zvL_",negative:"index-module_negative__1wBaF"},a=function(a){var i=a.className,m=a.dataTestId,r=a.view,p=void 0===r?"accent":r,c=a.text;return t.createElement("div",{className:e(n.component,i,n[p]),"data-test-id":m},t.createElement(o.Text,{view:"title",color:"primary",weight:"medium"},c))};export{a as ListAllert};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
|
package/dist/loader/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import c from"classnames";var t="index-
|
|
1
|
+
import e from"react";import c from"classnames";var t="index-module_component__3CNRP",r=function(r){var a=r.className,m=r.dataTestId;return e.createElement("svg",{height:"24",width:"24",viewBox:"0 0 24 24",className:c(t,a),"data-test-id":m},e.createElement("circle",{cx:"4",cy:"12",r:"2"}),e.createElement("circle",{cx:"12",cy:"12",r:"2"}),e.createElement("circle",{cx:"20",cy:"12",r:"2"}))};export{r as Loader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from"tslib";import r,{useRef as n,useState as t,useCallback as a,useEffect as u}from"react";import l from"react-merge-refs";import m from"classnames";import{createTextMaskInputElement as i}from"text-mask-core";import{Input as s}from"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";var c="index-
|
|
1
|
+
import{__rest as e,__assign as o}from"tslib";import r,{useRef as n,useState as t,useCallback as a,useEffect as u}from"react";import l from"react-merge-refs";import m from"classnames";import{createTextMaskInputElement as i}from"text-mask-core";import{Input as s}from"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";var c="index-module_textHidden__1M-ha",p=" ",f=r.forwardRef((function(p,f){var d,v=p.mask,C=p.value,h=p.defaultValue,g=p.className,k=p.onBeforeDisplay,j=p.onChange,x=p.onClear,V=e(p,["mask","value","defaultValue","className","onBeforeDisplay","onChange","onClear"]),w=n(null),N=n(null),_=t(C||h||""),b=_[0],y=_[1],B=t(!0),D=B[0],E=B[1],M=a((function(e){void 0===e&&(e=""),N.current&&w.current&&(N.current.update(e),y(w.current.value))}),[]),P=a((function(e){M(e.target.value),j&&j(e,{value:e.target.value})}),[j,M]),F=a((function(e){M(""),x&&x(e)}),[x,M]);return u((function(){w.current&&(N.current=i({mask:v,inputElement:w.current,pipe:k,guide:!1,keepCharPositions:!1,showMask:!1,placeholderChar:" ",rawValue:"",currentCaretPosition:0,previousConformedValue:""}))}),[k,v]),u((function(){M(C||h)}),[C,M,h]),u((function(){E(!1)}),[]),r.createElement(s,o({},V,{className:m(g,(d={},d[c]=D,d)),value:b,onChange:P,onClear:F,ref:l([f,w])}))}));export{f as MaskedInput,p as PLACEHOLDER_CHAR};
|
package/dist/menu/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as i}from"./components/content-header/index.js";import{MenuAvatar as n}from"./components/menu-avatar/index.js";import{MenuBackButton as r}from"./components/menu-back-button/index.js";import{MenuButtonsList as s}from"./components/menu-buttons-list/index.js";import{UserButton as m}from"./components/user-button/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as i}from"./components/content-header/index.js";import{MenuAvatar as n}from"./components/menu-avatar/index.js";import{MenuBackButton as r}from"./components/menu-back-button/index.js";import{MenuButtonsList as s}from"./components/menu-buttons-list/index.js";import{UserButton as m}from"./components/user-button/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"@alphakits/icons/dist/NextS";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"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";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"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";var p="index-module_layout_wrapper__1qu9m",c="index-module_left_menu__OxEtW",a="index-module_menu_static__3BAoW",l="index-module_hidden_menu_opened__2ygKE",u="index-module_content_header__2zi9x",d="index-module_content_wrapper__hZL3Q",j="index-module_content_offseted__8iegJ",h="index-module_calendar_view__3YA9w",_=function(_){var k,f,x=_.pathname,g=_.children,v=_.routes,b=_.showBackButton,w=_.userName,y=_.userImage,C=_.userDialogOptions,E=_.profileTitle,M=_.profileImage,N=_.Link,S=_.profileOnClick,L=_.navigate,O=_.t,T=o(),A=T.staticMenu,B=T.setStaticMenu,I=T.showMenu,P=T.ref,W=A||I,z="/"+x.split("/").slice(-1)[0],D=e(c,((k={})[a]=A,k[l]=I,k)),q=e(d,((f={})[j]=A,f[h]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:P,className:D},t.createElement(n,{title:E,showTitle:W,image:M,onClick:S}),b&&t.createElement(r,{showTitle:W,onClick:function(){return L("/app/calendar")}}),t.createElement(s,{routes:v,showLabels:W,currentPath:z,Link:N,t:O})),t.createElement("div",{className:q},t.createElement("div",{className:u},t.createElement(i,{onClick:function(){return B(!A)},title:O("menu."+z)}),t.createElement(m,{photo:y,fullName:w,options:C})),g))};export{_ as Menu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import t from"@alphakits/icons/dist/MoverS";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"tslib";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
1
|
+
import o from"react";import t from"@alphakits/icons/dist/MoverS";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"tslib";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_open_button__kuNgh",m=function(m){var n=m.onClick,p=m.title;return o.createElement("div",null,o.createElement(e,{size:"m",icon:t,onClick:n,className:i}),o.createElement(r.Title,{color:"primary",tag:"div",view:"xsmall",weight:"regular"},p))};export{m 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"@alphakits/icons/dist/MoverS";import"../../icon-button/component.js";import"tslib";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/text/component.js";import"../../colors.module-
|
|
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"@alphakits/icons/dist/MoverS";import"../../icon-button/component.js";import"tslib";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/text/component.js";import"../../colors.module-a7d0efb0.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"@alphakits/icons";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"@alphakits/icons/dist/NextS";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"@alphakits/icons/dist/ClockCircleM";import"../../select/components/select-search/index.js";import"../../hooks/useClickOutside/index.js";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"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../../toast-notifier/use-timer.js";import"../../input/component.js";import"react-virtual";import"intersection-observer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as i}from"../../../typography/component.js";import"@alphakits/icons";import"../../../button/component.js";import"tslib";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-
|
|
1
|
+
import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as i}from"../../../typography/component.js";import"@alphakits/icons";import"../../../button/component.js";import"tslib";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-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var m="index-module_menu_header__3QeXC",r="index-module_text__3zNFW",p="index-module_hidden_text__2l2-G",n=function(n){var s,a=n.showTitle,c=n.title,l=n.image,d=n.onClick;return t.createElement("div",{className:m},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(i.Text,{className:o(r,(s={},s[p]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{n as MenuAvatar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"@alphakits/icons/dist/NextS";import{Divider as n}from"../../../divider/component.js";import"classnames";var a="index-
|
|
1
|
+
import e from"react";import t from"@alphakits/icons/dist/NextS";import{Divider as n}from"../../../divider/component.js";import"classnames";var a="index-module_back_btn_wrapper__2nvj-",r="index-module_back_btn__2lOeR",o=function(o){var l=o.showTitle,m=o.onClick;return e.createElement("div",{className:a},e.createElement("button",{onClick:m,type:"button",className:r},e.createElement("span",null,e.createElement(t,null)),l&&"Go back"),e.createElement(n,{size:"m"}))};export{o as MenuBackButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_menu_button__1xuE3",m="index-module_text__30Pa6",r="index-module_active__KI6J2",n="index-module_leftAddons__2fpYr",d="index-module_rightAddons__30vch",a="index-module_isHidden__3-Jyt",l=function(l){var s,c=l.href,p=l.children,_=l.active,u=l.leftAddons,x=l.rightAddons,h=l.showLabels,y=l.Link;return e.createElement(y,{className:t(i,(s={},s[r]=_,s[a]=!h,s)),to:c},u&&e.createElement("div",{className:n},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:m},p),x&&e.createElement("div",{className:d},x))};export{l 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/text/component.js";import"../../../colors.module-
|
|
1
|
+
import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o="index-module_component__17Zyb",r=function(r){var n=r.routes,p=r.showLabels,i=r.currentPath,m=r.t,a=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===i,key:o.path,href:o.path,Link:a},m("menu."+r))})))};export{r as MenuButtonsList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from"tslib";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as i}from"../../../button/component.js";import{Select as r}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";import"@alphakits/icons";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
1
|
+
import{__assign as o}from"tslib";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as i}from"../../../button/component.js";import{Select as r}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";import"@alphakits/icons";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.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"../../../select/components/select-search/index.js";import"../../../hooks/useClickOutside/index.js";import"../../../input/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"react-dom";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../../../toast-notifier/use-timer.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"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";var s="index-module_option_wrap__sahYD",p="index-module_field_avatar__2rJxH",n=t.memo((function(n){var m=n.options,c=n.fullName,a=n.photo;return t.createElement("div",{className:p},t.createElement(r,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(r){var s=r.innerProps;return t.createElement(i,o({},s,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{n 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"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"@alphakits/icons/dist/NextS";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"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";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"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as t}from"react";import{Button as o}from"../button/component.js";import{Flex as i}from"../flex/component.js";import{Image as r}from"../image/component.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as n}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-
|
|
1
|
+
import e,{useState as t}from"react";import{Button as o}from"../button/component.js";import{Flex as i}from"../flex/component.js";import{Image as r}from"../image/component.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as n}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";var s="index-module_topRow__1RF92",l="index-module_answer__xuRvB",p="index-module_leftSide__3QkAD",c="index-module_title__hNfHl",d="index-module_rightAddons__2qp_t",u="index-module_text__bFMhQ",g=function(g){var h=g.className,x=g.dataTestId,f=g.title,_=g.date,j=g.rightAddons,v=g.answer,y=g.text,w=g.image,E=g.photos,N=void 0===E?[]:E,b=g.withImage,k=void 0===b||b,T=t(!1),F=T[0],A=T[1],R=t(0),S=R[0],z=R[1];return e.createElement("div",{"data-test-id":x,className:h},e.createElement("div",{className:s},e.createElement("div",{className:p},k&&e.createElement(r,{src:w,size:"s",text:f,view:"circle"}),e.createElement(a.Text,{color:"primary",className:c,view:"title",weight:"bold"},f),_&&e.createElement(a.Text,{view:"title",color:"secondary",weight:"regular"},_)),j&&e.createElement("div",{className:d},j)),e.createElement("div",{className:u},e.createElement(a.Text,{view:"primary-medium",color:"primary",weight:"medium"},y),!!v&&e.createElement(a.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},v),!!N.length&&e.createElement(e.Fragment,null,e.createElement(n,{padding:"8px 0"}),e.createElement(i,{justify:"start",gap:"md"},N.map((function(t,i){return e.createElement(o,{view:"ghost",onClick:function(){z(i),A(!0)}},e.createElement(r,{src:t,size:"xl",view:"default"}))}))),e.createElement(m,{photos:N.map((function(e){return{src:e}})),initialSlide:S||0,open:F,onClose:function(){return A(!1)}}))))};export{g as Message};
|
package/dist/message/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Message}from"./component.js";import"react";import"../button/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Message}from"./component.js";import"react";import"../button/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image-gallery/component.js";import"react-images-viewer";import"../padding/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import n,{useState as o,useLayoutEffect as t,useCallback as i,useEffect as r}from"react";import l from"classnames";import{ButtonArrow as
|
|
1
|
+
import{__assign as e}from"tslib";import n,{useState as o,useLayoutEffect as t,useCallback as i,useEffect as r}from"react";import l from"classnames";import{ButtonArrow as a}from"../../../button-arrow/component.js";import"@alphakits/icons";var d="index-module_container__3-Sa_",c="index-module_content__25aRt",s="index-module_button__3SwCL",m="index-module_doubleModal__15LzB",u="index-module_inner__2tqZ4",p="index-module_right__35URA",_="index-module_bg__6Jwib",f={s:488,m:888,full:"96%"},w=function(w){var b,v=w.modal,x=w.t,k=w.index,E=w.dirtyModals,y=w.closeModal,z=w.currentModalId,C=-f[v.props.size]-102,N=o(C),g=N[0],h=N[1];t((function(){setTimeout((function(){return h(0)}),0)}),[]);var L=i((function(e){return!E[e]||confirm(x("common:exitConfirm"))}),[E]),M=i((function(e){var n=v.id;L(e||n)&&(h(C),setTimeout((function(){v.props.closeCallback&&v.props.closeCallback(),y(e||n)}),250))}),[y,L,v,C]);return r((function(){var e=function(e){"27"!==e.key&&"Escape"!==e.key||M(z)};return v.id===z&&(null===window||void 0===window||window.addEventListener("keydown",e)),function(){null===window||void 0===window||window.removeEventListener("keydown",e)}}),[M,z,v.id]),n.createElement(n.Fragment,null,n.createElement("div",{className:d,style:{zIndex:9999998+k}},n.createElement("div",{className:l(p,c),style:{zIndex:9999999+k,width:f[v.props.size],right:g}},n.createElement("div",{className:u},n.createElement(v.modal,e({},v.props,{close:function(){return M()}})),n.createElement(a,{className:l(s,(b={},b[m]=v.props.isDouble,b)),size:"s",type:"close",onClick:function(){return M()}}))),n.createElement("button",{className:_,"aria-label":"close_backdrop",type:"button",onClick:function(){return M()}})))};export{w as Modal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from"tslib";import t,{forwardRef as
|
|
1
|
+
import{__rest as o,__assign as e}from"tslib";import t,{forwardRef as i,useRef as n,useState as s,useCallback as r,useEffect as l}from"react";import a from"react-merge-refs";import{useSwipeable as c,LEFT as m,RIGHT as u,UP as p}from"react-swipeable";import d from"classnames";import{Portal as f}from"../portal/component.js";import{ToastPlate as C}from"../toast-plate/component.js";import{useClickOutside as v}from"./utils/index.js";import"react-dom";import"../portal/utils.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var k="index-module_notificationComponent__YDzix",_="index-module_isVisible__1y-6b",h="index-module_isClosing__1kAgn",M="index-module_toastContent__1EfFL",x="."+k,b=i((function(i,b){var j,y=i.className,E=i.children,w=i.visible,T=i.offset,g=void 0===T?108:T,D=i.hasCloser,L=void 0===D||D,N=i.autoCloseDelay,A=void 0===N?5e3:N,F=i.onClose,O=i.onCloseTimeout,S=i.onMouseEnter,z=i.onMouseLeave,P=i.onClickOutside,V=i.style,Y=o(i,["className","children","visible","offset","hasCloser","autoCloseDelay","onClose","onCloseTimeout","onMouseEnter","onMouseLeave","onClickOutside","style"]),q=n(null),B=n(0),G=n(0),H=s(!1),I=H[0],J=H[1],K=r((function(){B.current=window.setTimeout((function(){O&&O()}),A)}),[A,O]),Q=r((function(){clearTimeout(B.current)}),[]);l((function(){return function(){clearTimeout(G.current)}}),[]),l((function(){return w&&K(),function(){Q()}}),[K,Q,w]);var R=r((function(o){Q(),S&&S(o)}),[S,Q]),U=r((function(o){Q(),K(),z&&z(o)}),[z,K,Q]),W=r((function(o){var e=!!o.target.closest(x);P&&w&&!e&&P(o)}),[P,w]);v(q,W);var X=c({onSwiped:function(o){var e=o.dir;F&&[m,u,p].includes(e)&&(J(!0),G.current=window.setTimeout((function(){J(!1),F()}),100))},delta:100,trackMouse:!0});return t.createElement(f,null,t.createElement("div",e({},X),t.createElement(C,e({className:d(k,(j={},j[_]=w,j[h]=I,j),y),contentClassName:M,style:e({top:g},V),onMouseEnter:R,onMouseLeave:U,ref:a([b,q]),role:w?"alert":void 0,hasCloser:L,onClose:F},Y),E)))}));b.defaultProps={autoCloseDelay:5e3,offset:108};export{b as Notification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";var a="index-
|
|
1
|
+
import e from"react";var a="index-module_pageContainer__1SGLI",l="index-module_image__2Vlah",r="index-module_bg__3H4DG",t=function(t){var n=t.children,i=t.color,m=t.image,c=t.imageDescription;return e.createElement("div",{style:{backgroundColor:i},className:a},m&&e.createElement("section",null,e.createElement("img",{className:l,src:m,alt:c}),e.createElement("div",{className:r})),e.createElement("div",null,n))};export{t as PageContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Loader as
|
|
1
|
+
import e from"react";import{Loader as t}from"../loader/component.js";import"classnames";var o="index-module_component__M4URt",r=function(){return e.createElement("div",{className:o},e.createElement(t,null))};export{r as PageLoading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t,__assign as o}from"tslib";import e from"react";import{Button as r}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Grid as n}from"../grid/component.js";import{Typography as i}from"../typography/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-
|
|
1
|
+
import{__rest as t,__assign as o}from"tslib";import e from"react";import{Button as r}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Grid as n}from"../grid/component.js";import{Typography as i}from"../typography/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-8ae90e74.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var p=function(p){var s=p.children,l=p.buttons;return e.createElement(n.Row,null,e.createElement(n.Col,{width:7},e.createElement(m,{columns:1,gr:32},s)),e.createElement(n.Col,{width:4,offset:1},e.createElement(m,{columns:1,gr:16},l.map((function(m){var n=m.text,p=t(m,["text"]);return e.createElement(r,o({view:"ghost"},p),e.createElement(i.Title,{tag:"div",view:"xxsmall",color:"primary",weight:"regular"},n))})))))};export{p as PageWithControls};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PageWithControls}from"./component.js";import"tslib";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../grid/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-
|
|
1
|
+
export{PageWithControls}from"./component.js";import"tslib";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../grid/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-8ae90e74.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-
|
|
1
|
+
export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-a7d0efb0.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
1
|
+
import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_wrapper__33gwN",m=e((function(e,m){var p=e.label,a=e.value,l=e.id,n=e.className,c=e.onClick;return t.createElement("button",{className:o(i,n),ref:m,id:l,type:"button",onClick:c},t.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),t.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{m as LabeledButton};
|
|
@@ -8,7 +8,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autoco
|
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
fieldComponent?: 'button' | 'iconButton';
|
|
10
10
|
};
|
|
11
|
-
declare const PickerButton: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "hint" | "
|
|
11
|
+
declare const PickerButton: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "hint" | "selected" | "multiple" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "loading"> & {
|
|
12
12
|
size?: PickerButtonSize | undefined;
|
|
13
13
|
icon?: React.ReactNode;
|
|
14
14
|
fieldComponent?: "button" | "iconButton" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as t}from"tslib";import e,{forwardRef as i}from"react";import s 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";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"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../loader/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.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"../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"../icon-button/component.js";var l="index-
|
|
1
|
+
import{__rest as o,__assign as t}from"tslib";import e,{forwardRef as i}from"react";import s 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";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"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../loader/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.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"../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"../icon-button/component.js";var l="index-module_container__jEng4",a=i((function(i,a){var d=i.OptionsList,j=i.Optgroup,u=i.Option,f=i.view,k=i.loading,v=i.size,g=void 0===v?"m":v,h=i.Field,C=i.className,O=i.leftAddons,b=i.icon,x=i.fieldComponent,w=void 0===x?"button":x,z=o(i,["OptionsList","Optgroup","Option","view","loading","size","Field","className","leftAddons","icon","fieldComponent"]);return e.createElement(r,t({},z,{ref:a,Option:u||p,Field:h||c,size:"m"===g?"m":"s",fieldProps:{view:f,loading:k,buttonSize:g,leftAddons:O,icon:b,fieldComponent:w},Optgroup:j||n,OptionsList:d||m,className:s(l,C),selected:[],closeOnSelect:!0}))}));export{a as PickerButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from"tslib";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-
|
|
1
|
+
import{__rest as e,__assign as o}from"tslib";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__eWqdq",open:"index-module_open__1QXrX"},l=function(l){var m=l.buttonSize,a=void 0===m?"m":m,c=l.view,p=l.label,d=l.open;l.multiple,l.rightAddons,l.Arrow;var u=l.innerProps,v=l.className;l.selected,l.selectedMultiple,l.valueRenderer;var b=l.fieldComponent,f=e(l,["buttonSize","view","label","open","multiple","rightAddons","Arrow","innerProps","className","selected","selectedMultiple","valueRenderer","fieldComponent"]),w=o(o({},f),u);return"button"===b?n.createElement(t,o({},w,{rightAddons:f.icon?n.createElement("span",{className:r(s.iconContainer,d&&s.open)},f.icon):null,block:!0,view:c,size:a,className:r(s.component,"primary"===c&&s.primary,v)}),p):n.createElement(i,o({},w,{icon:f.icon,view:"secondary"===c?"secondary":"ghost",size:"xs"===a?"s":a}))};export{l as Field};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"tslib";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"@alphakits/icons/dist/ClockCircleM";import"../button/component.js";import"../loader/component.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";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"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"tslib";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"@alphakits/icons/dist/ClockCircleM";import"../button/component.js";import"../loader/component.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";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"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";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-
|
|
1
|
+
import{__assign as e}from"tslib";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__1hgdm",arrow:"index-module_arrow__2_UGW",enter:"index-module_enter__Red0x",enterActive:"index-module_enterActive__1Fy-k",exit:"index-module_exit__2r-P9",exitActive:"index-module_exitActive__2NLCT"},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,w=void 0===_?d:_,A=f.anchorElement,E=f.offset,N=void 0===E?[0,0]:E,h=f.withArrow,P=void 0!==h&&h,y=f.withTransition,C=void 0===y||y,g=f.position,j=void 0===g?"left":g,k=f.preventFlip,b=f.popperClassName,I=f.arrowClassName,O=f.className,T=f.open,z=f.dataTestId,D=f.update,F=f.transitionDuration,R=void 0===F?w.timeout+"ms":F,G=f.zIndex,L=void 0===G?c.POPOVER:G,U=o(A),V=U[0],W=U[1],q=o(null),B=q[0],H=q[1],J=o(null),K=J[0],M=J[1],Q=n((function(){var e=[{name:"offset",options:{offset:N}}];return P&&e.push({name:"arrow",options:{element:K}}),k&&e.push({name:"flip",options:{fallbackPlacements:[]}}),e}),[N,P,k,K]),S=i(V,B,{placement:j,modifiers:Q()}),X=S.styles,Y=S.attributes,Z=S.update;r((function(){W(A)}),[A]),r((function(){Z&&Z()}),[Z,K,v]),r((function(){D&&Z&&(D.current=Z)}),[Z,D]);var $=function(o,n){return t.createElement("div",e({ref:H,style:e({zIndex:o},X.popper),"data-test-id":z,className:m(p.component,O)},Y.popper),t.createElement("div",{className:m(p.inner,b),style:n},v,P&&t.createElement("div",{ref:M,style:X.arrow,className:m(p.arrow,I)})))};return t.createElement(l,{value:L},(function(o){return t.createElement(s,{getPortalContainer:x},C?t.createElement(a,e({unmountOnExit:!0,classNames:u},w,{in:T}),$(o,{transitionDuration:R})):T&&$(o))}))};export{f as Popover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var r={progress_bar:"index-module_progress_bar__3nlr2",block:"index-module_block__2aONS",inner:"index-module_inner__z5AVV",indicator:"index-module_indicator__2ioud",multicolor:"index-module_multicolor__1ADvJ",_30:"index-module__30__1suFf",_60:"index-module__60__3eFsq",negative:"index-module_negative__6JYfz",positive:"index-module_positive__2XpHn",accent:"index-module_accent__3ZoIe",secondary:"index-module_secondary__146J-",warning:"index-module_warning__1gFQM"},t=function(t){var n,l,m=t.value,_=void 0===m?0:m,d=t.block,a=t.renderValue,c=void 0===a||a,s=t.className,p=void 0===s?"":s,u=t.view,v=void 0===u?"multicolor":u,x=Number(_)&&Number(_)>=0?_:0;return e.createElement("div",{className:o(r.progress_bar,p,(n={},n[r.block]=d,n))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(l={},l[r._30]=x>=30&&"multicolor"===v,l[r._60]=x>=60&&"multicolor"===v,l))}),c&&e.createElement("div",{className:r.inner},e.createElement(i.Text,{view:"title",weight:"medium",color:"primary"},(x>100?100:x)+" %")))};export{t as ProgressBar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from"tslib";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import{__rest as e,__assign as t}from"tslib";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_progress_index__1G7T4",a="index-module_text__1s7bQ",l=function(l){var n=l.onClick,p=l.value,s=l.title,c=l.subtitle,d=e(l,["onClick","value","title","subtitle"]);return o.createElement("button",{type:"button",onClick:n,disabled:!n,className:m},o.createElement("div",{className:a},o.createElement(i.Text,{tag:"div",view:"title",color:"primary",weight:"medium"},s),c&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),o.createElement(r,t({value:p},d)))};export{l as ProgressIndex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ProgressIndex}from"./component.js";import"tslib";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{ProgressIndex}from"./component.js";import"tslib";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
package/dist/radio/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as a}from"tslib";import
|
|
1
|
+
import{__rest as e,__assign as a}from"tslib";import n,{forwardRef as d,useRef as l}from"react";import c from"react-merge-refs";import t from"classnames";import{useFocus as o}from"../hooks/useFocus/index.js";var s={container:"index-module_container__3wj9U",checked:"index-module_checked__2THO5",disabled:"index-module_disabled__nUlq9",circle:"index-module_circle__rCfxn",label:"index-module_label__2f22f",hint:"index-module_hint__2ljb7",focused:"index-module_focused__3gAAB",m:"index-module_m__2yr-A",s:"index-module_s__YbNuM",content:"index-module_content__H6xTw",start:"index-module_start__2IMae",center:"index-module_center__2EfOb",addons:"index-module_addons__vaTct",block:"index-module_block__sXKkt"},i=d((function(d,i){var m,r=d.onChange,_=d.className,u=d.name,b=d.disabled,x=d.dataTestId,h=d.label,f=d.checked,k=d.hint,p=d.size,N=void 0===p?"m":p,g=d.align,E=void 0===g?"center":g,v=d.addons,T=d.block,C=e(d,["onChange","className","name","disabled","dataTestId","label","checked","hint","size","align","addons","block"]),j=l(null),y=o(j,"keyboard")[0];return n.createElement("label",{className:t(s.container,s[N],s[E],_,(m={},m[s.disabled]=b,m[s.checked]=f,m[s.focused]=y,m[s.block]=T,m)),ref:c([j,i])},n.createElement("input",a({type:"radio",onChange:function(e){r&&r(e,{checked:e.target.checked,name:u})},"data-test-id":x,disabled:b,checked:f,name:u},C)),n.createElement("span",{className:s.circle}),n.createElement("span",{className:s.content},n.createElement("span",{className:s.label},h),k&&n.createElement("span",{className:s.hint},k)),v&&n.createElement("span",{className:s.addons},v))}));export{i as Radio};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{FlexColumns as o}from"../flex-columns/component.js";import{Radio as r}from"../radio/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import e from"react";import t from"classnames";import{FlexColumns as o}from"../flex-columns/component.js";import{Radio as r}from"../radio/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__1xpOV",a="index-module_subtitle__1_nhZ",m="index-module_error__3a1A_",l="index-module_buttons_wrap__14ZXK",c="index-module_buttons_wrap_error__1Wgsl",d="index-module_button__14_DV",s="index-module_selected__3lxTQ",u=function(u){var p,_=u.title,g=u.subtitle,y=u.selected,v=u.data,x=void 0===v?[]:v,f=u.onChange,h=u.columns,k=void 0===h?1:h,b=u.gr,w=void 0===b?20:b,E=u.gc,j=void 0===E?20:E,T=u.dataTestId,N=u.error,C=u.view,I=void 0===C?"default":C,V=function(e){return T?"radio_"+T+"_"+e:"radio_"+e};return e.createElement("div",null,(_||g)&&e.createElement("div",{className:i},_&&e.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},_),g&&e.createElement(n.Text,{className:a,tag:"div",view:"caps",color:"secondary",weight:"medium"},g)),"default"===I?e.createElement(o,{columns:k,gr:w,gc:j},null==x?void 0:x.map((function(t,o){return e.createElement(r,{key:t.key+t.content,dataTestId:V(o),onChange:function(){return f(t.key)},checked:t.key===y,label:t.content})}))):e.createElement(o,{columns:x.length,gc:0,gr:0,className:t(l,(p={},p[c]=!!N,p))},x.map((function(o){var r;return e.createElement("button",{type:"button",onClick:function(){return f(o.key)},key:o.key+o.content,className:t(d,(r={},r[s]=o.key===y,r))},e.createElement(n.Text,{view:"title",weight:"regular",color:o.key===y?"primary-inverted":"primary"},o.content))}))),!!N&&e.createElement(n.Text,{className:m,view:"caps",weight:"medium",color:"negative"},N))};export{u as RadioGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{RadioGroup}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../radio/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{RadioGroup}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../radio/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as
|
|
1
|
+
import e,{useState as t}from"react";import o from"@alphakits/icons/dist/ChevronDownS";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{IconButton as c}from"../icon-button/component.js";import{Padding as a}from"../padding/component.js";import{Radio as p}from"../radio/component.js";import{Typography as m}from"../typography/component.js";import"../isSymbol-9701dc6b.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var s={list_head:"index-module_list_head__3yzFD",collapse_btn:"index-module_collapse_btn__3XWT_",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__FLbh7"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.collapsable,b=d.onChange,j=[];null==u||u.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(o){o.locationId===e.id&&(t.parent=e,t.childs.push(o))})),t.parent.id&&j.push(t)}));var v=t(j),y=v[0],E=v[1];return e.createElement("div",null,y.map((function(t,d){var u;return e.createElement(e.Fragment,{key:t.parent.id},e.createElement("div",{className:s.list_head},e.createElement(m.Text,{view:"title",color:"primary",weight:"medium"},t.parent.title),_&&e.createElement(c,{onClick:function(){return function(e){var t=y.map((function(t,o){return o===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),o=y.concat(t);E(o.filter((function(e,t){return o.indexOf(e)===t})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=t.collapsed,u)),icon:o})),!t.collapsed&&e.createElement(a,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!t.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},t.childs.map((function(t){return e.createElement(p,{onChange:function(){return b(t.id)},checked:h===t.id,key:t.id,label:t.title})}))))),d!==(null==y?void 0:y.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};
|