@alphakits/ui 1.3.17 → 1.3.18
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/{_commonjsHelpers-140c7557.js → _commonjsHelpers-89c81dfd.js} +0 -0
- 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/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-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/cell/action/component.js +1 -1
- package/dist/cell/action/index.d.ts +1 -1
- package/dist/cell/action/index.js +1 -1
- package/dist/cell/autopayment/component.js +1 -1
- package/dist/cell/autopayment/index.d.ts +1 -1
- package/dist/cell/autopayment/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/catalog/component.js +1 -1
- package/dist/cell/catalog/index.d.ts +1 -1
- package/dist/cell/catalog/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/cell/subscription/component.js +1 -1
- package/dist/cell/subscription/index.d.ts +1 -1
- package/dist/cell/subscription/index.js +1 -1
- package/dist/cell/transaction/component.js +1 -1
- package/dist/cell/transaction/index.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.d.ts +11 -10
- 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/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-c9ce0af0.js → colors.module-f961689b.js} +0 -0
- package/dist/{common.module-ec30844d.js → common.module-41a6f81b.js} +0 -0
- package/dist/{component-1d434af3.d.ts → component-d8fcf81b.d.ts} +0 -0
- package/dist/{component-1d434af3.js → component-d8fcf81b.js} +0 -0
- package/dist/{contact-block-12d27551.d.ts → contact-block-7fe50f47.d.ts} +0 -0
- package/dist/{contact-block-12d27551.js → contact-block-7fe50f47.js} +0 -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/footer/component.js +1 -1
- package/dist/footer/components/contacts-block.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-672ec488.js → formik.esm-4ebd83ab.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-a42f52fa.js → gutters.module-24d5e0ce.js} +0 -0
- 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-ine/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/index.js +1 -1
- package/dist/index.css +2 -2
- 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/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/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-85cf5a9e.d.ts → parse-query-params-b4e2e6f7.d.ts} +0 -0
- package/dist/{parse-query-params-85cf5a9e.js → parse-query-params-b4e2e6f7.js} +1 -1
- package/dist/photo-uploader/component.js +1 -1
- package/dist/photo-uploader/index.js +1 -1
- package/dist/photo-uploader-multiple/component.js +1 -1
- package/dist/photo-uploader-multiple/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/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.d.ts +8 -7
- 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-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.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-ellipse-button/component.js +1 -1
- package/dist/super-ellipse-button/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.d.ts +2 -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/pagination/index.js +1 -1
- package/dist/table/components/row/component.js +1 -1
- package/dist/table/components/row/index.js +1 -1
- package/dist/table/components/rows/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.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/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/{tslib.es6-9f8cff33.js → tslib.es6-e6668063.js} +0 -0
- 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/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
|
File without changes
|
package/dist/amount/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as o,a as t}from"../tslib.es6-e6668063.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as s,THINSP as a}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var n="index-module_component__2swcU",c="index-module_canceled__3PyYS",l=function(l){var p,u=l.value,y=l.currency,d=l.showMinorPart,j=void 0!==d&&d,v=l.isCanceled,h=void 0!==v&&v,f=o(l,["value","currency","showMinorPart","isCanceled"]),g=m({value:u,currency:y,showMinorPart:j}),w=g.majorPart,_=g.minorPart,x=g.currencySymbol,P=f,b=P.className,M=P.color,C=void 0===M?"secondary":M,N=P.view,S=void 0===N?"title":N,E=P.weight,T=void 0===E?"medium":E;return r.createElement(i.Text,t({},f,{view:S,weight:T,color:C,className:e(n,b,(p={},p[c]=h,p))}),w,_&&s,_,!!x&&""+a+a+x)};export{l as Amount};
|
package/dist/amount/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Amount}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Amount}from"./component.js";import"../tslib.es6-e6668063.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-e6668063.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as l}from"react";import s from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__2mhbV",minorPartAndCurrency:"index-module_minorPartAndCurrency__15-dz",bold:"index-module_bold__x8KEu",input:"index-module_input__32YSx",suffixContainer:"index-module_suffixContainer__2A0d0",filled:"index-module_filled__3OdGf"},x=d(m),_=o((function(o,m){var d,_=o.value,g=void 0===_?null:_,C=o.integerLength,h=void 0===C?9:C,j=o.suffix,N=void 0===j?"RUR":j,b=o.placeholder,E=void 0===b?"":b,y=o.bold,S=void 0===y||y,w=o.className,A=o.focusedClassName,R=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,L=o.onClear,$=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),k=r(u({value:g,currency:"RUR"}).formatted),z=k[0],B=k[1];i((function(){return f(z,T)!==g?B(u({value:g,currency:"RUR"}).formatted):function(){}}),[g]);var G=a((function(e){B(""),L&&L(e)}),[L]),K=z.split(","),O=K[0],V=K[1];return n.createElement("div",{className:s(v.container,(d={},d[v.bold]=S,d[v.filled]=Boolean(z),d))},n.createElement(x,t({},$,{suffix:n.createElement(l,null,O,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==V&&","+V,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:R,placeholder:E,value:z,className:s(v.component,w),focusedClassName:A,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+h+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===z){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],l=i[1],s=a.length;l&&(s+=1,s+=l.slice(0,2).length);var m=o.length-s,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}B(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:G,dataTestId:q,ref:m})))}));export{_ as AmountInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AmountInput}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{AmountInput}from"./component.js";import"../tslib.es6-e6668063.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
|
package/dist/avatar/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-e6668063.js";import o from"react";import m from"classnames";import{getDataTestId as a}from"../__internal/utils/getDataTestId.js";import{Spinner as s}from"../spinner/component.js";import{Typography as i}from"../typography/component.js";import{useImageLoadingState as n}from"./hooks/use-image-loading-state.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var l={secondary:"colors-module_secondary__cR9Vl",primary:"colors-module_primary__2_6sy"},r={component:"index-module_component__20hZK",textContent:"index-module_textContent__cMHs0","x-small":"index-module_x-small__3K1a-",small:"index-module_small__n-9xn",medium:"index-module_medium__1JqBX",large:"index-module_large__3OwxY",textS:"index-module_textS__4jRtR",textXs:"index-module_textXs__kkvci",textM:"index-module_textM__2AJGm",textL:"index-module_textL__3PBdh",img:"index-module_img__xjv2H",withImage:"index-module_withImage__1ULBv"},d={small:"textS","x-small":"textXs",medium:"textM",large:"textL"},_=function(_){var p,x=_.children,c=_.className,u=_.size,g=void 0===u?"small":u,v=_.view,y=void 0===v?"secondary":v,h=_.dataTestId,j=_.src,f=_.alt,w=_.text,N=_.darknessOn,I=void 0===N||N,k=e(_,["children","className","size","view","dataTestId","src","alt","text","darknessOn"]),b=null,C=n({src:j}),E=j&&"loaded"===C;return b=E?o.createElement("img",t({alt:f,src:j,className:r.img},k)):"loading"===C?o.createElement(s,{size:"s",view:"default"}):w?o.createElement(i.Text,{className:m(r.textContent,r[d[g]]),view:"component",weight:"bold"},function(e){void 0===e&&(e="NN");var t=e.split(" ");return t.length>=2?t[0][0]+t[1][0]:t[0][0]+t[0][1]}(w.toUpperCase())):x,o.createElement("div",{className:m(c,r.component,r[g],l[y],(p={},p[r.withImage]=E&&I,p)),"data-test-id":a("avatar",h,!0)},b)};export{_ as Avatar};
|
package/dist/avatar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Avatar}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Avatar}from"./component.js";import"../tslib.es6-e6668063.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../spinner/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./hooks/use-image-loading-state.js";
|
package/dist/button/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-e6668063.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import a from"classnames";import{useFocus as r}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__3evG9",focused:"index-module_focused__1ad3i",loading:"index-module_loading__2y4OS",text:"index-module_text__1-k8W",addons:"index-module_addons__16WFC",stretchText:"index-module_stretchText__1WRNW",loader:"index-module_loader__29UAj",xs:"index-module_xs__3qlRe",iconOnly:"index-module_iconOnly__1yP2o",s:"index-module_s__12NZU",m:"index-module_m__21Y1e",l:"index-module_l__i91Wc",primary:"index-module_primary__CH1sF",secondary:"index-module_secondary__2eIxt",outlined:"index-module_outlined__3Ys--",filled:"index-module_filled__1NOTl",transparent:"index-module_transparent__1OxM9",link:"index-module_link__3GC-7",ghost:"index-module_ghost__1b8cF",block:"index-module_block__eEAno",nowrap:"index-module_nowrap__2N2mJ"},s=o.forwardRef((function(s,_){var m,c,u=s.children,x=s.view,f=void 0===x?"secondary":x,p=s.leftAddons,b=s.rightAddons,h=s.size,v=void 0===h?"m":h,g=s.block,k=void 0!==g&&g,y=s.className,N=s.dataTestId,w=s.href,E=s.loading,A=void 0!==E&&E,O=s.nowrap,T=void 0!==O&&O,F=e(s,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),W=n(null),j=r(W,"keyboard")[0],C={className:a(i.component,i[f],i[v],(m={},m[i.focused]=j,m[i.block]=k,m[i.iconOnly]=!u,m[i.nowrap]=T,m[i.loading]=A,m),y),"data-test-id":N||null},I=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:a(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),A&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(w){var R=F.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},C,F,{href:w,ref:l([W,_])}),I)}var z=F,G=z.disabled,U=e(z,["disabled"]);return o.createElement("button",d({},C,U,{disabled:G||A,ref:l([W,_])}),I)}));export{s as Button};
|
package/dist/button/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Button}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Button}from"./component.js";import"../tslib.es6-e6668063.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-e6668063.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import a from"classnames";import{startOfMonth as i}from"date-fns";import{DaysTable as m}from"./components/days-table/component.js";import{Header as c}from"./components/header/сomponent.js";import{MonthsTable as l}from"./components/months-table/сomponent.js";import{YearsTable as d}from"./components/years-table/сomponent.js";import{useCalendar as u}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as p}from"./utils.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";var f="index-module_component__36Ugf",v="index-module_container__sLbJY",g="index-module_sixWeeks__IWOT8",w=o((function(o,w){var y,M=o.className,D=o.defaultView,j=void 0===D?"days":D,x=o.selectorView,P=void 0===x?"full":x,b=o.value,k=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,E=o.minDate,N=o.maxDate,T=o.selectedFrom,Y=o.selectedTo,S=o.offDays,A=o.events,F=o.onChange,V=o.onMonthChange,I=o.t,O=void 0===I?function(e){return e}:I,W=o.dataTestId,B=n(j),J=B[0],L=B[1],R=n(!1),U=R[0],q=R[1],z=r((function(){return b?new Date(b):void 0}),[b]),G=r((function(){return i(z||C)}),[]),H=r((function(){return k?new Date(k):void 0}),[k]),K=r((function(){return E?new Date(E):void 0}),[E]),Q=r((function(){return N?new Date(N):void 0}),[N]),X=u({month:H,defaultMonth:G,view:J,minDate:K,maxDate:Q,selected:z,offDays:S,events:A,onChange:F,onMonthChange:V}),Z=X.activeMonth,$=X.weeks,ee=X.months,te=X.years,oe=X.canSetPrevMonth,ne=X.canSetNextMonth,re=X.setMonthByDate,se=X.setPrevMonth,ae=X.setNextMonth,ie=X.highlighted,me=X.getDayProps,ce=X.getMonthProps,le=X.getYearProps,de=X.getRootProps,ue=s((function(e){L(J===e?"days":e)}),[J]),he=s((function(e){q(e>0)}),[]),pe=s((function(){se()}),[se]),fe=s((function(){ae()}),[ae]),ve=s((function(){ue("months")}),[ue]),ge=s((function(){ue("years")}),[ue]);return h((function(){L("days")}),[Z]),h((function(){q(!1)}),[J]),h((function(){var e=b&&i(b);e&&e.getTime()!==Z.getTime()&&re(e)}),[b]),t.createElement("div",e({},de({ref:w}),{className:a(f,M,(y={},y[g]=6===$.length,y)),"data-test-id":W}),t.createElement(c,{month:p(Z,O("calendar.monthes",{returnObjects:!0})),year:Z.getFullYear().toString(),prevArrowVisible:oe,nextArrowVisible:ne,onPrevArrowClick:pe,onNextArrowClick:fe,onMonthClick:ve,onYearClick:ge,view:P,withShadow:U}),t.createElement("div",{className:v},"days"===J&&t.createElement(m,{t:O,weeks:$,activeMonth:Z,selectedFrom:T,selectedTo:Y,getDayProps:me,highlighted:ie}),"months"===J&&t.createElement(l,{selectedMonth:Z,t:O,months:ee,getMonthProps:ce}),"years"===J&&t.createElement(d,{selectedYear:Z,years:te,getYearProps:le,onScroll:he})))}));export{w as Calendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-e6668063.js";import t,{useRef as a,useCallback as d}from"react";import{TransitionGroup as n,CSSTransition as r}from"react-transition-group";import i from"classnames";import{startOfMonth as s,isToday as o,isEqual as l,isSameDay as m,isWithinInterval as _,isLastDayOfMonth as c}from"date-fns";import{Button as u}from"../../../button/component.js";import{usePrevious as y}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as x}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var g={daysTable:"index-module_daysTable__wrv0w",transitLeft:"index-module_transitLeft__3JIIQ",transitRight:"index-module_transitRight__3civn",dayName:"index-module_dayName__3GQG1",day:"index-module_day__3KsAB",event:"index-module_event__1Anlr",today:"index-module_today__3bYrp",highlighted:"index-module_highlighted__1ORAN",disabled:"index-module_disabled__2J9VX",range:"index-module_range__3KQft",selected:"index-module_selected__G9daW",rangeStart:"index-module_rangeStart__3xC4X",firstDay:"index-module_firstDay__1OgOO",lastDay:"index-module_lastDay__1MFMc",left:"index-module_left__1g9nk",daysEnter:"index-module_daysEnter__3-3QZ",daysEnterActive:"index-module_daysEnterActive__1gNQI",daysExit:"index-module_daysExit__3xHhs",daysExitActive:"index-module_daysExitActive__UbBEm",right:"index-module_right__HquKl"},f=function(f){var h=f.weeks,v=void 0===h?[]:h,E=f.activeMonth,p=void 0===E?new Date:E,b=f.highlighted,A=f.selectedFrom,D=f.selectedTo,k=f.getDayProps,N=f.t,T=a(p);T.current=p;var j=y(p),w=j&&(p<j?"right":"left"),O=x(A,D,b),Q=N("calendar.weekDays",{returnObjects:!0}),R=d((function(){return Q.map((function(e){return t.createElement("th",{className:g.dayName,key:e},e)}))}),[Q]);return t.createElement("table",{className:i(g.daysTable,w&&g[w])},t.createElement("thead",null,t.createElement("tr",null,R())),t.createElement(n,{component:null},t.createElement(r,{key:p.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("tbody",null,v.map((function(a,d){return t.createElement("tr",{key:d},a.map((function(a,d){return t.createElement("td",{key:a?a.date.getTime():d},a&&function(a){var d,n=a.selected||A&&m(a.date,A)||D&&m(a.date,D),r=!n&&O&&_(a.date,O),y=1===a.date.getDate(),x=c(a.date),f=y&&r&&O&&a.date>O.start,h=x&&r&&O&&a.date<O.end,v=O&&m(a.date,O.start),E=k(a);return t.createElement(u,e({},E,{ref:function(e){s(a.date).getTime()===T.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:a.disabled,className:i(g.day,(d={},d[g.selected]=n,d[g.range]=r,d[g.rangeStart]=v,d[g.transitLeft]=f,d[g.transitRight]=h,d[g.today]=o(a.date),d[g.firstDay]=y,d[g.lastDay]=x,d[g.event]=a.event,d[g.disabled]=a.disabled,d[g.highlighted]=b&&l(a.date,b),d))}),a.date.getDate())}(a))})))}))))))};export{f as DaysTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DaysTable}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{DaysTable}from"./component.js";import"../../../tslib.es6-e6668063.js";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-e6668063.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-e6668063.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__3t-Ge",withShadow:"index-module_withShadow__2PcxI",inner:"index-module_inner__30TaX",month:"index-module_month__C4t8t",year:"index-module_year__2Pz0b",buttonContent:"index-module_buttonContent__1oCn2",monthOnly:"index-module_monthOnly__3Y0zC",upDownIcon:"index-module_upDownIcon__17nsW",arrow:"index-module_arrow__3AWDo"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,w=r.nextArrowVisible,h=void 0===w||w,p=r.onPrevArrowClick,b=r.onNextArrowClick,v=r.onMonthClick,C=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:p,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:v},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:C},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:b,"aria-label":"Следующий месяц"})))};export{r as Header};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-e6668063.js";import"react";import"date-fns";import"../../utils.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-e6668063.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as m}from"../../utils.js";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_monthsTable__TV9qK",i="index-module_button__17dVp",d=function(d){var c=d.selectedMonth,l=d.months,p=void 0===l?[]:l,u=d.getMonthProps,f=d.t,j=o((function(e){return c&&r(c,e.date)?"selected":n(e.date)?"outlined":"default"}),[c]);return t.createElement("div",{className:a},p.map((function(o){return t.createElement(s,e({},u(o),{key:o.date.getTime(),className:i,view:j(o)}),m(o.date,f("calendar.monthes",{returnObjects:!0})))})))};export{d as MonthsTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-e6668063.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../../../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../../../tslib.es6-e6668063.js";import d,{forwardRef as s}from"react";import i from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__2Guss",disabled:"index-module_disabled__22rwG",filled:"index-module_filled__3oXk4",outlined:"index-module_outlined__2aOvU",selected:"index-module_selected__2DRa6"},a=s((function(s,a){var r,m=s.className,n=s.children,u=s.disabled,_=s.view,c=void 0===_?"default":_,b=e(s,["className","children","disabled","view"]);return d.createElement(t,o({},b,{ref:a,view:"ghost",size:"xs",disabled:u,className:i(l.button,l[c],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-e6668063.js";import"react";import"date-fns";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-e6668063.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_yearsTable__1AgBf",i="index-module_inner__3mtXH",m="index-module_button__11VGj",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,_=u.getYearProps,g=u.onScroll,v=r(null),b=o((function(e){return p&&l(p,e)?"selected":a(e)?"outlined":"default"}),[p]),j=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,g(e.scrollTop)}}),[g,p]),t.createElement("div",{className:c,onScroll:j,ref:v},t.createElement("div",{className:i},f.map((function(r){return t.createElement(s,e({},_(r),{key:r.getFullYear(),view:b(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
|
package/dist/calendar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-e6668063.js";import"react";import"classnames";import"date-fns";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"./components/years-table/сomponent.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-e6668063.js";import t,{forwardRef as o,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import p from"react-merge-refs";import m from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as c}from"../calendar/utils.js";import"date-fns";import{MaskedInput as d}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import{parseDateString as f,isCompleteDateInput as v,NATIVE_DATE_FORMAT as j,formatDate as g,DATE_MASK as h,SUPPORTS_INPUT_TYPE_DATE as b}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../_commonjsHelpers-89c81dfd.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var _="index-module_component__LnAss",C="index-module_block__32Idv",k="index-module_calendarContainer__1EzA3",x="index-module_calendarIcon__3btou",D="index-module_nativeInput__2_YME",E=o((function(o,E){var w,N=o.block,y=void 0!==N&&N,I=o.className,M=o.inputClassName,T=o.defaultOpen,F=void 0!==T&&T,P=o.defaultMonth,A=o.defaultValue,O=void 0===A?"":A,V=o.calendarPosition,q=void 0===V?"popover":V,R=o.value,K=o.dataTestId,U=o.minDate,z=o.required,B=o.maxDate,H=o.calendarProps,L=void 0===H?{}:H,Y=o.preventFlip,G=o.mobileMode,J=void 0===G?"popover":G,Q=o.wrapperRef,S=void 0===Q?null:Q,W=o.disabled,X=o.onChange,Z=o.onInputChange,$=o.onCalendarChange,ee=o.readOnly,ne=e(o,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),te=void 0===R,oe=b&&"native"===J,ae="input"===J,re="static"===q&&!ae,ie="popover"===q&&!oe&&!ae,le=a(!1),pe=le[0],me=le[1],se=a(O),ce=se[0],de=se[1],ue=te?ce:R,fe=ue?f(ue).getTime():void 0,ve=c(fe,U,B),je=W||ee,ge=r(null),he=r(null),be=r(null),_e=r(null),Ce=i((function(e){"Escape"===e.key&&me(!1)}),[]),ke=i((function(){pe||me(!0)}),[pe]),xe=i((function(e){me(!0),!pe&&"INPUT"!==e.target.tagName&&_e.current&&_e.current.focus()}),[pe]),De=i((function(e){_e.current&&!1===_e.current.contains(e.relatedTarget)&&me(!1)}),[]),Ee=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&_e.current&&(e.preventDefault(),_e.current.focus())}),[]),we=i((function(e,n,t,o,a){void 0===o&&(o="input"),void 0===a&&(a=!0),"input"===o&&e&&Z&&Z(e,{value:n,date:t}),"calendar"===o&&$&&$(t.getTime()),a&&(te&&de(n),X&&X(e,{date:t,value:n}))}),[$,X,Z,te]),Ne=i((function(e){var n=e.target.value,t=f(n);we(e,n,t,"input",v(n))}),[we]),ye=i((function(e){var n=f(e.target.value,j),t=""===e.target.value?"":g(n);we(e,t,n)}),[we]),Ie=i((function(e){we(null,g(e),new Date(e),"calendar"),me(!1)}),[we]),Me=i((function(e){e.preventDefault()}),[]);l((function(){me(F)}),[F]);var Te=i((function(){return t.createElement("div",{onMouseDown:Me},t.createElement(s,n({},L,{t:L.t,ref:_e,defaultMonth:P,value:ve?fe:void 0,onChange:Ie,minDate:U,maxDate:B})))}),[L,fe,P,Ie,Me,ve,B,U]);return t.createElement("div",{ref:be,className:m(_,I,(w={},w[C]=y,w)),tabIndex:-1,onKeyDown:je?void 0:Ce,onClick:je?void 0:ke,onFocus:je?void 0:xe,onBlur:De,"data-test-id":K},t.createElement(d,n({},ne,{ref:p([E,ge]),wrapperRef:p([S,he]),className:M,value:ue,required:z,defaultValue:O,disabled:W,readOnly:ee,mask:h,rightAddons:t.createElement(t.Fragment,null,t.createElement("span",{className:x}),oe&&t.createElement("input",{type:"date",ref:p([E,ge]),defaultValue:O,onChange:ye,className:D})),onKeyDown:Ee,onChange:Ne,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Te(),ie&&t.createElement(u,{open:pe,anchorElement:he.current,popperClassName:k,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:Y},Te()))}));export{E as CalendarInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,formatDate,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,formatDate,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-e6668063.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"../_commonjsHelpers-89c81dfd.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{A as Action}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{A as Action}from"../../component-d8fcf81b.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-d8fcf81b";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Action}from"../../component-
|
|
1
|
+
export{A as Action}from"../../component-d8fcf81b.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../divider/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{a as Autopayment}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../divider/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{a as Autopayment}from"../../component-d8fcf81b.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"ts-keycode-enum";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-d8fcf81b";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Autopayment}from"../../component-
|
|
1
|
+
export{a as Autopayment}from"../../component-d8fcf81b.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{B as Base}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{B as Base}from"../../component-d8fcf81b.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"ts-keycode-enum";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-d8fcf81b";
|
package/dist/cell/base/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Base}from"../../component-
|
|
1
|
+
export{B as Base}from"../../component-d8fcf81b.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{b as Catalog}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{b as Catalog}from"../../component-d8fcf81b.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"ts-keycode-enum";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-d8fcf81b";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as Catalog}from"../../component-
|
|
1
|
+
export{b as Catalog}from"../../component-d8fcf81b.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
package/dist/cell/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-d8fcf81b.js";import"./pure/component.js";import"./transaction/component.js";import"react";import"classnames";import"ts-keycode-enum";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../super-ellipse/component.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-e6668063.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../divider/component.js";import"../avatar/component.js";import"../spinner/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../amount/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
|
package/dist/cell/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-d8fcf81b.js";import"react";import"classnames";import"ts-keycode-enum";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../super-ellipse/component.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-e6668063.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../divider/component.js";import"./pure/component.js";import"../avatar/component.js";import"../spinner/component.js";import"../avatar/hooks/use-image-loading-state.js";import"./transaction/component.js";import"../amount/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as r}from"../../tslib.es6-
|
|
1
|
+
import{_ as e,a as r}from"../../tslib.es6-e6668063.js";import d,{forwardRef as o}from"react";import a from"classnames";import{getDataTestId as l}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__1-n7X",s:"index-module_s__1EjLa",m:"index-module_m__2W-Ki",l:"index-module_l__3-a7m",horizontal:"index-module_horizontal__3TyOF",normalOrder:"index-module_normalOrder__2lVPG",reverseOrder:"index-module_reverseOrder__3HvPd",vertical:"index-module_vertical__n6pzF",addon:"index-module_addon__1NNHT",child:"index-module_child__l7HAT"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"s":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,p=o.children,h=o.className,N=o.dataTestId,O=e(o,["slot","size","order","direction","children","className","dataTestId"]),f=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:a(i.component,i[_],r({},f),h),"data-test-id":l("cell-pure",N,!0)},O),m&&d.createElement("div",{className:a(i.addon,r({},f))},m),d.createElement("div",{className:a(i.child,r({},f))},p))}));export{n as Pure};
|
package/dist/cell/pure/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Pure}from"./component.js";import"../../tslib.es6-
|
|
1
|
+
export{Pure}from"./component.js";import"../../tslib.es6-e6668063.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"ts-keycode-enum";import"../../avatar/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{S as Subscription}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"ts-keycode-enum";import"../../avatar/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{S as Subscription}from"../../component-d8fcf81b.js";import"../../tslib.es6-e6668063.js";import"../../__internal/utils/getDataTestId.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../divider/component.js";import"../pure/component.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-d8fcf81b";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as Subscription}from"../../component-
|
|
1
|
+
export{S as Subscription}from"../../component-d8fcf81b.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e6668063.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useCallback as o}from"react";import m from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";import{Amount as r}from"../../amount/component.js";import{useFocus as n}from"../../hooks/useFocus/index.js";import{Typography as l}from"../../typography/component.js";import"../../tslib.es6-
|
|
1
|
+
import e,{useRef as t,useCallback as o}from"react";import m from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";import{Amount as r}from"../../amount/component.js";import{useFocus as n}from"../../hooks/useFocus/index.js";import{Typography as l}from"../../typography/component.js";import"../../tslib.es6-e6668063.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";var i="index-module_component__3WKk8",c="index-module_slot__3-oQ0",s="index-module_title__3SCFU",d="index-module_content__T63TF",p="index-module_contentWrapper__3nonU",u="index-module_category__GwY-S",_="index-module_categoryPercent__1zrQk",y="index-module_amount__16vE9",v="index-module_positiveAmount__3qWEM",x="index-module_profit__3NGqk",E="index-module_comment__3FRy7",f="index-module_commentTextWrapper__PKIqe",g="index-module_commentText__2e0YN",N="index-module_focused__1K2z_",j=function(j){var T,w=j.slot,h=j.title,k=j.comment,b=j.category,C=void 0===b?"Другое":b,F=j.amount,I=j.profit,K=j.categoryPercent,P=j.type,W=void 0===P?"default":P,q=j.className,z=j.dataTestId,G=j.onClick,Q=t(null),S=n(Q,"keyboard")[0],U=o((function(e){void 0!==G&&(13===(e.charCode||e.keyCode)&&G())}),[G]);return e.createElement("div",{ref:Q,onKeyPress:U,onClick:G,role:"button",tabIndex:0,className:m(i,(T={},T[N]=S,T),q),"data-test-id":a("cell-transaction",z,!0)},e.createElement("div",{className:c},w),e.createElement("div",{className:d},e.createElement("div",{className:p},e.createElement(l.Text,{className:s,view:"component"},h),C&&e.createElement("div",{className:u},e.createElement(l.Text,{view:"primary-small",color:"secondary"},C),K&&e.createElement(l.Text,{tag:"div",view:"primary-small",color:"secondary",className:_},K,"%")),e.createElement("div",{className:y},"income"===W?e.createElement(l.Text,{view:"component",tag:"div",className:v},"+",e.createElement(r,{view:"title",currency:F.currency,value:F.value})):e.createElement(l.Text,{view:"component",tag:"div"},"-",e.createElement(r,{value:F.value,currency:F.currency})),"hold"===W&&e.createElement(e.Fragment,null," ")),I&&e.createElement(l.Text,{className:x,view:"primary-small",color:"secondary"},"+",I))),k&&e.createElement("div",{className:E},e.createElement("div",{className:f},e.createElement(l.Text,{tag:"div",view:"primary-small",className:g},k))))};export{j as Transaction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Transaction}from"./component.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../amount/component.js";import"../../tslib.es6-
|
|
1
|
+
export{Transaction}from"./component.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../amount/component.js";import"../../tslib.es6-e6668063.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-f961689b.js";import"../../common.module-41a6f81b.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";import"../../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-e6668063.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__3Wme6",start:"index-module_start__2N8TM",center:"index-module_center__1E74d",addons:"index-module_addons__3fJ7i",block:"index-module_block__1OUFu",box:"index-module_box__Q4_WE",m:"index-module_m__ydO-e",content:"index-module_content__zuheb",s:"index-module_s__3bmdq",disabled:"index-module_disabled__2P71z",checked:"index-module_checked__32R7P",indeterminate:"index-module_indeterminate__UGp1F",focused:"index-module_focused__1edDS",label:"index-module_label__3bygF",hint:"index-module_hint__2GuKu",indeterminateIcon:"index-module_indeterminateIcon__2d73Z"},_=a((function(a,_){var r,u=a.checked,b=a.label,x=a.hint,h=a.size,p=void 0===h?"m":h,k=a.align,f=void 0===k?"center":k,E=a.addons,N=a.block,g=a.onChange,v=a.className,I=a.name,y=a.disabled,z=a.dataTestId,F=a.indeterminate,C=void 0!==F&&F,P=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return d.createElement("label",{className:i(s.component,s[p],s[f],v,(r={},r[s.disabled]=y,r[s.checked]=u,r[s.indeterminate]=C,r[s.focused]=j,r[s.block]=N,r)),ref:o([T,_])},d.createElement("span",{className:s.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:I})},disabled:y,checked:u,"data-test-id":z},P)),u&&d.createElement(l,null),C&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(m,null))),(b||x)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),x&&d.createElement("span",{className:s.hint},x)),E&&d.createElement("span",{className:s.addons},E))}));_.defaultProps={indeterminate:!1};export{_ as Checkbox};
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Checkbox}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Checkbox}from"./component.js";import"../tslib.es6-e6668063.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { FlexColumnsProps } from "../flex-columns/index";
|
|
3
|
-
type Data = {
|
|
4
|
-
key:
|
|
4
|
+
type Data<T> = Array<{
|
|
5
|
+
key: T;
|
|
5
6
|
content: string;
|
|
6
|
-
}
|
|
7
|
-
type CheckboxGroupProps = {
|
|
7
|
+
}>;
|
|
8
|
+
type CheckboxGroupProps = <T>(props: {
|
|
8
9
|
title?: string;
|
|
9
10
|
subtitle?: string;
|
|
10
|
-
selected:
|
|
11
|
-
data: Data
|
|
12
|
-
onChange: (values:
|
|
11
|
+
selected: T[];
|
|
12
|
+
data: Data<T>;
|
|
13
|
+
onChange: (values: T[]) => void;
|
|
13
14
|
dataTestId?: string;
|
|
14
|
-
} & FlexColumnsProps;
|
|
15
|
-
declare const CheckboxGroup:
|
|
15
|
+
} & FlexColumnsProps) => React.ReactElement;
|
|
16
|
+
declare const CheckboxGroup: CheckboxGroupProps;
|
|
16
17
|
export { CheckboxGroupProps, CheckboxGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-e6668063.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__1gRxq",c="index-module_subtitle__1s_SD",m=function(m){var l=m.title,s=m.subtitle,a=m.selected,p=void 0===a?[]:a,d=m.data,u=void 0===d?[]:d,v=m.onChange,g=m.columns,y=void 0===g?1:g,f=m.gr,h=void 0===f?20:f,x=m.gc,b=void 0===x?20:x,j=m.dataTestId,_=p||[],k=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||s)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),s&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),t.createElement(n,{columns:y,gr:h,gc:b},null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:k(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(_,[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})}))))};export{m as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-e6668063.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-e6668063.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-89c81dfd.js";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__14m8q",collapse_btn:"index-module_collapse_btn__1eM1e",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__p0RhY"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,E=u.onChange,b=[],v=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&b.push(t)}));var g=n(b),y=g[0],x=g[1],k=function(t){t.forEach((function(n){(null==v?void 0:v.includes(n))?E(v.filter((function(e){return!t.includes(e)}))):E(e(v,t))}))},C=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==v?void 0:v.includes(e))&&(o=!0)})),o),onChange:function(){return k(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,y.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(C,{element:e}),t.createElement(m,{onClick:function(){return function(e){var t=y.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=y.concat(t);x(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return k([e.id])},checked:null==v?void 0:v.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==y?void 0:y.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"../tslib.es6-e6668063.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-89c81dfd.js";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f961689b.js";import"../common.module-41a6f81b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|