@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
package/dist/amount/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t,__assign as e}from"tslib";import r from"react";import o from"classnames";import{Typography as a}from"../typography/component.js";import{formatAmount as c,THINSP as i,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as n}from"../utils/format-amount/util.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import{__rest as t,__assign as e}from"tslib";import r from"react";import o from"classnames";import{Typography as a}from"../typography/component.js";import{formatAmount as c,THINSP as i,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as n}from"../utils/format-amount/util.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../utils/data/currency-codes.js";import"../utils/get-currency-symbol/util.js";import"../utils/split-amount/util.js";var m="index-module_component__2swcU",s="index-module_canceled__3PyYS",l=function(l){var p,u,y=l.value,d=l.currency,f=l.type,j=void 0===f?"default":f,v=l.showMinorPart,h=l.isCanceled,x=void 0!==h&&h,P=l.className,E=l.currencyOpacity,_=void 0===E||E,g=t(l,["value","currency","type","showMinorPart","isCanceled","className","currencyOpacity"]),U=c({value:y,currency:d,showMinorPart:v,type:j}),b=U.majorPart,w=U.minorPart,C=U.currencySymbol;return function(t){return"EUR"===t||"USD"===t||"CHF"===t||"GBP"===t||"CAD"===t||"AUD"===t||"TRY"===t||"GEL"===t||"ILS"===t||"UAH"===t}(d)?r.createElement(a.Text,e({},g,{className:o(m,P,(p={},p[s]=x,p))}),!!C&&""+C+i,b,w&&r.createElement("span",{style:{opacity:_?.6:1}},n,w)):r.createElement(a.Text,e({},g,{className:o(m,P,(u={},u[s]=x,u))}),b,w?r.createElement("span",{style:{opacity:_?.6:1}},n,w,!!C&&""+i+C):!!C&&""+i+C)};export{l as Amount};
|
package/dist/amount/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Amount}from"./component.js";import"tslib";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Amount}from"./component.js";import"tslib";import"react";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";import"../utils/format-amount/util.js";import"../utils/data/currency-codes.js";import"../utils/get-currency-symbol/util.js";import"../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from"tslib";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as l}from"react";import s from"classnames";import{getCurrencySymbol as u}from"../utils/get-currency-symbol/util.js";import{Input as m}from"../input/component.js";import{formatAmount as c,THINSP as d}from"../utils/format-amount/util.js";import{withSuffix as f}from"../with-suffix/component.js";import{getAmountValueFromStr as p,getFormattedValue as v}from"./utils/index.js";import"../utils/data/currency-codes.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/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var g={container:"index-
|
|
1
|
+
import{__rest as e,__assign as t}from"tslib";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as l}from"react";import s from"classnames";import{getCurrencySymbol as u}from"../utils/get-currency-symbol/util.js";import{Input as m}from"../input/component.js";import{formatAmount as c,THINSP as d}from"../utils/format-amount/util.js";import{withSuffix as f}from"../with-suffix/component.js";import{getAmountValueFromStr as p,getFormattedValue as v}from"./utils/index.js";import"../utils/data/currency-codes.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/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var g={container:"index-module_container__2mhbV",minorPartAndCurrency:"index-module_minorPartAndCurrency__15-dz",suffixContainer:"index-module_suffixContainer__2A0d0",filled:"index-module_filled__3OdGf",input:"index-module_input__32YSx"},x=f(m),C=o((function(o,m){var f,C=o.value,h=void 0===C?null:C,_=o.integerLength,j=void 0===_?9:_,y=o.suffix,N=void 0===y?"RUR":y,S=o.placeholder,w=void 0===S?"":S,E=o.bold,A=void 0===E||E,b=o.type,q=void 0===b?"default":b,R=o.className,F=o.focusedClassName,I=o.required,P=o.dataTestId,T=o.clear,U=void 0!==T&&T,L=o.allowNegative,W=void 0!==L&&L,$=o.onChange,k=o.onClear,z=e(o,["value","integerLength","suffix","placeholder","bold","type","className","focusedClassName","required","dataTestId","clear","allowNegative","onChange","onClear"]),B="default"===q?h:(h||0)/100,G=r(c({value:B||0,currency:"RUR",type:"default"}).formatted),O=G[0],V=G[1];i((function(){return p(O,"default"===q)!==h?V(c({value:B,currency:"RUR",type:"default"}).formatted):function(){}}),[B]);var Y=a((function(e){V(""),k&&k(e)}),[k]),D=O.replace("-","").split(","),H=D[0],J=D[1],K=O.startsWith("-");return n.createElement("div",{className:s(g.container,(f={},f[g.bold]=A,f[g.filled]=Boolean(O),f))},n.createElement(x,t({},z,{suffix:n.createElement(l,null,K&&"-",H,n.createElement("span",{className:g.minorPartAndCurrency},void 0!==J&&","+J,d,u(N)||N)),suffixContainerClassName:g.suffixContainer,clear:U,required:I,placeholder:w,value:O,className:s(g.component,R),focusedClassName:F,inputClassName:g.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",","),o=n.startsWith("-");if(o){if(!W){var r=t.selectionStart-1;return void window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}n=n.slice(1)}if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){o&&W&&(n="-"+n);var i=v(n,"default"===q);if(i===O){var a=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=a,t.selectionEnd=a}))}else{var l=n.replace("-","").split(/\.|,/),s=l[0],u=l[1],m=s.length;u&&(m+=1+u.slice(0,2).length);var c=i.length-m,d=t.selectionStart+c;window.requestAnimationFrame((function(){t.selectionStart=d,t.selectionEnd=d}))}V(i);var f=i;$&&$(e,{value:p(f.toString(),"default"===q),valueString:f.toString()})}else{var g=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=g,t.selectionEnd=g}))}},onClear:Y,dataTestId:P,ref:m})))}));export{C as AmountInput};
|
package/dist/avatar/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{CheckmarkCircleFillM as
|
|
1
|
+
import e from"react";import{CheckmarkCircleFillM as t}from"@alphakits/icons";import o from"classnames";import{Button as r}from"../button/component.js";import{Image as s}from"../image/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/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";var i={warpper:"index-module_warpper__2dVGP",selected:"index-module_selected__3O1kF",slot:"index-module_slot__3TDiF",disabled:"index-module_disabled__2XVDw"},m=function(m){var p,n=m.src,l=m.text,a=m.slot,c=m.selected,d=m.ref,j=m.onClick;return e.createElement(r,{ref:d,onClick:j,className:o([i.wrapper,(p={},p[i.disabled]=!j,p)]),view:"ghost"},e.createElement(s,{view:"circle",bgColor:"secondary",size:"s",src:n,text:l}),c&&e.createElement("div",{className:o(i.slot,i.selected)},e.createElement(t,null)),a&&e.createElement("div",{className:i.slot},a))};export{m as Avatar};
|
package/dist/avatar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Avatar}from"./component.js";import"react";import"@alphakits/icons";import"classnames";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"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Avatar}from"./component.js";import"react";import"@alphakits/icons";import"classnames";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"../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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{ButtonArrow as o}from"../button-arrow/component.js";import"@alphakits/icons";import"classnames";var e="index-
|
|
1
|
+
import t from"react";import{ButtonArrow as o}from"../button-arrow/component.js";import"@alphakits/icons";import"classnames";var e="index-module_component__3cd0z",n=function(n){var r=n.onClick,c=n.t;return t.createElement("button",{className:e,type:"button",onClick:r},t.createElement(o,{type:"back",size:"s"}),c("common:back"))};export{n as BackButton};
|
package/dist/badge/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import o from"classnames";var i={component:"index-module_component__5WRRd",accent:"index-module_accent__1weps",secondary:"index-module_secondary__181Br",s:"index-module_s__1K4iq",m:"index-module_m__3sU4w",l:"index-module_l__M3AJd",circle:"index-module_circle__Zpb_t",icon:"index-module_icon__3gaRk",positive:"index-module_positive__3hZJS",attention:"index-module_attention__2fDJD",negative:"index-module_negative__1coRU",tertiary:"index-module_tertiary__2cL5q",primary:"index-module_primary__QM7vR",outline:"index-module_outline__10YFz",dot:"index-module_dot__232ho",isHidden:"index-module_isHidden__DWk6v",count:"index-module_count__1XY0R"},n=function(n){var d,_=n.className,t=n.size,m=void 0===t?"m":t,c=n.view,l=void 0===c?"count":c,r=n.visibleIconOutline,u=void 0!==r&&r,a=n.content,s=n.iconColor,x=n.color,v=void 0===x?"secondary":x,p=n.dataTestId,y="count"===l,f=y&&"number"==typeof a&&a<=0,R=y&&a&&a>=100?"99+":a,b="number"==typeof a&&a<10;return e.createElement("div",{className:o(i.component,i[m],i.view,i[v],s&&i[s],(d={},d[i.isHidden]=f,d[i.dot]=!a,d[i.outline]=u,d[i.circle]=b,d),_),"data-test-id":p},R)};export{n as Badge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t from"react";import o from"classnames";import{Image as i}from"../image/component.js";import{Typography as m}from"../typography/component.js";import"../skeleton/component.js";import"../use-image-render-component-
|
|
1
|
+
import{__assign as e}from"tslib";import t from"react";import o from"classnames";import{Image as i}from"../image/component.js";import{Typography as m}from"../typography/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 n="index-module_component__2VrCo",a="index-module_bottomSpace__1HqFh",d="index-module_footer__22pBK",r="index-module_withBorder__mNg1s",s="index-module_scalable__3ytRr",l="index-module_topLeftAddons__2jfzn",p="index-module_topRightAddons__3KPp9",c="index-module_bottomRightAddons__GObvL",_="index-module_imageWrap__1pZd8",u="index-module_shadow__1gDSl",h="index-module_titleWrap__-NK6F",v="index-module_title__2hrRC",g="index-module_titleAddons__D53u8",x=function(o){return t.createElement("a",e({},o),o.children)},E=function(o){return t.createElement("button",e({type:"button"},o),o.children)},b=function(e){var b,f=e.className,N=e.onClick,j=e.bottomSpace,y=void 0===j||j,A=e.title,R=e.subtitle,w=e.topLeftAddons,L=e.topRightAddons,M=e.bottomRightAddons,k=e.titleAddons,S=e.photo,C=e.href,K=e.scalable,P=void 0!==K&&K,T=e.border,z=void 0!==T&&T,B=e.dataTestId,D=e.onMouseEnter,F=e.onMouseLeave,W=N?E:x;return t.createElement(W,{href:C,onMouseEnter:D,onMouseLeave:F,"data-test-id":B,className:o(n,(b={},b[r]=z,b[s]=P,b[a]=!y,b),f)},!!S&&t.createElement("div",{className:_},t.createElement(i,{src:S,size:"auto"}),!!w&&t.createElement("div",{className:l},w),!!L&&t.createElement("div",{className:p},L),!y&&t.createElement("div",{className:u})),t.createElement("div",{className:d},t.createElement("div",{className:h},t.createElement(m.Text,{tag:"div",weight:"bold",className:v,view:"component"},A),!!k&&t.createElement("div",{className:g},k)),t.createElement(m.Text,{tag:"div",view:"primary-medium"},R),!!M&&t.createElement("div",{className:c},M)))};export{b as BaseCard};
|
package/dist/base-card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{BaseCard}from"./component.js";import"tslib";import"react";import"classnames";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{BaseCard}from"./component.js";import"tslib";import"react";import"classnames";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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import o from"react-swipeable-bottom-sheet";import t from"@alphakits/icons/dist/ChevronBackM";var n="index-
|
|
1
|
+
import e from"react";import o from"react-swipeable-bottom-sheet";import t from"@alphakits/icons/dist/ChevronBackM";var n="index-module_back_btn__3BXhH",r=function(r){var a=r.children,i=r.close,l=r.open,p=r.marginTop,c=void 0===p?40:p,m=r.onBackClick;return e.createElement(o,{overflowHeight:0,style:{zIndex:999999,maxWidth:"100%"},marginTop:c,fullScreen:!0,topShadow:!1,open:l,onChange:i,bodyStyle:{borderRadius:c?"21px 21px 0 0 ":"0px",padding:"16px 16px",boxSizing:"border-box"}},!!m&&e.createElement("button",{type:"button",className:n,onClick:m},e.createElement(t,null)),a)};export{r as BottomSheet};
|
package/dist/box/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import d,{useMemo as _}from"react";import n from"classnames";var i,m,e={component:"index-
|
|
1
|
+
import d,{useMemo as _}from"react";import n from"classnames";var i,m,e={component:"index-module_component__2KMXB",border:"index-module_border__1n6sq",radius_xs:"index-module_radius_xs__2FQp9",radius_sm:"index-module_radius_sm__YDper",radius_md:"index-module_radius_md__TKBJt",radius_round:"index-module_radius_round__2tKKO",padding_xxs:"index-module_padding_xxs__UM5qf",padding_xs:"index-module_padding_xs__1wswa",padding_sm:"index-module_padding_sm__2W55L",padding_md:"index-module_padding_md__2Tvd2",padding_ml:"index-module_padding_ml__3SFek",padding_l:"index-module_padding_l__xfEww",padding_xl:"index-module_padding_xl__3Tt1m",padding_xxl:"index-module_padding_xxl__23KLt",margin_xxs:"index-module_margin_xxs__1hdvT",margin_xs:"index-module_margin_xs__2cKg9",margin_sm:"index-module_margin_sm__FfTcF",margin_md:"index-module_margin_md__2_28R",margin_l:"index-module_margin_l__3O4i9",margin_xl:"index-module_margin_xl__2oAhp",margin_xxl:"index-module_margin_xxl__SYats"};!function(d){d[d.xs=8]="xs",d[d.sm=12]="sm",d[d.md=16]="md",d.round="round"}(i||(i={})),function(d){d[d.xxs=4]="xxs",d[d.xs=8]="xs",d[d.sm=12]="sm",d[d.md=16]="md",d[d.ml=20]="ml",d[d.l=20]="l",d[d.xl=24]="xl",d[d.xxl=32]="xxl"}(m||(m={}));var x=function(i){var m,x=i.children,a=i.id,r=i.className,o=i.padding,l=i.paddingCustom,s=i.border,u=i.margin,g=i.marginCustom,p=i.background,t=i.width,c=i.height,f=i.rounded,h=_((function(){var d={};return p&&(d.background=p),l&&(d.padding=l),g&&(d.margin=g),t&&(d.width=t+"px"),c&&(d.height=c+"px"),d}),[p,t,c,l,g]);return d.createElement("div",{id:a,style:h,className:n([r,e.component,(m={},m[e["padding_"+o]]=o,m[e["margin_"+u]]=u,m[e["radius_"+f]]=f,m[e.border]=s,m)])},x)};export{x as Box,i as Radiuses,m as Spaces};
|
package/dist/button/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as d}from"tslib";import o,{useRef as n}from"react";import l from"react-merge-refs";import
|
|
1
|
+
import{__rest as e,__assign as d}from"tslib";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--","outlined-inverted":"index-module_outlined-inverted__1aQ2W",filled:"index-module_filled__1NOTl",transparent:"index-module_transparent__1OxM9",black:"index-module_black__2XnfC",link:"index-module_link__3GC-7",ghost:"index-module_ghost__1b8cF",block:"index-module_block__eEAno",nowrap:"index-module_nowrap__2N2mJ"},_=o.forwardRef((function(_,m){var s,c,u=_.children,x=_.view,f=void 0===x?"secondary":x,p=_.leftAddons,b=_.rightAddons,v=_.size,h=void 0===v?"m":v,k=_.block,g=void 0!==k&&k,y=_.className,N=_.dataTestId,w=_.href,E=_.loading,A=void 0!==E&&E,O=_.nowrap,T=void 0!==O&&O,W=e(_,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),F=n(null),C=r(F,"keyboard")[0],j={className:a(i.component,i[f],i[h],(s={},s[i.focused]=C,s[i.block]=g,s[i.iconOnly]=!u,s[i.nowrap]=T,s[i.loading]=A,s),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=W.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},j,W,{href:w,ref:l([F,m])}),I)}var z=W,G=z.disabled,U=e(z,["disabled"]);return o.createElement("button",d({},j,U,{disabled:G||A,ref:l([F,m])}),I)}));export{_ as Button};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{ChevronForwardS as n,ChevronBackS as l,ChevronUpS as t,ChevronDownS as r,CloseS as c,BackS as o,ChevronForwardM as a,ChevronBackM as m,ChevronUpM as
|
|
1
|
+
import e from"react";import{ChevronForwardS as n,ChevronBackS as l,ChevronUpS as t,ChevronDownS as r,CloseS as c,BackS as o,ChevronForwardM as a,ChevronBackM as m,ChevronUpM as u,ChevronDownM as s,CloseM as d}from"@alphakits/icons";import i from"classnames";var E={component:"index-module_component__2TC-C",s:"index-module_s__2gEiy",m:"index-module_m__2B02h",disabled:"index-module_disabled__2Ds5F"},p=function(p){var _,v=p.type,h=p.size,b=p.disabled,k=p.className,f=p.onClick;return e.createElement("button",{type:"button",disabled:b,onClick:f,className:i(E.component,E[h],(_={},_[E.disabled]=b,_),k)},function(i,E){var p={chevronForward:e.createElement(n,null),chevronBack:e.createElement(l,null),chevronUp:e.createElement(t,null),chevronDown:e.createElement(r,null),close:e.createElement(c,null),back:e.createElement(o,null)},_={chevronForward:e.createElement(a,null),chevronBack:e.createElement(m,null),chevronUp:e.createElement(u,null),chevronDown:e.createElement(s,null),close:e.createElement(d,null),back:e.createElement(o,null)};return"s"===E?p[i]:_[i]}(v,h))};export{p as ButtonArrow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t,{forwardRef as o,useState as n,useMemo as a,useCallback as r}from"react";import s from"classnames";import{startOfMonth as i,isSameDay as m}from"date-fns";import{locales as l}from"../utils/format-date/index.js";import{DaysTable as c}from"./components/days-table/component.js";import{Header as d}from"./components/header/сomponent.js";import{MonthsTable as p}from"./components/months-table/сomponent.js";import{useCalendar as f}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as u}from"./utils.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"react-transition-group";import"../capitalize-
|
|
1
|
+
import{__assign as e}from"tslib";import t,{forwardRef as o,useState as n,useMemo as a,useCallback as r}from"react";import s from"classnames";import{startOfMonth as i,isSameDay as m}from"date-fns";import{locales as l}from"../utils/format-date/index.js";import{DaysTable as c}from"./components/days-table/component.js";import{Header as d}from"./components/header/сomponent.js";import{MonthsTable as p}from"./components/months-table/сomponent.js";import{useCalendar as f}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as u}from"./utils.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"react-transition-group";import"../capitalize-d32858ed.js";import"../isSymbol-9701dc6b.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"@alphakits/icons/dist/ChevronBackS";import"./components/select-button/сomponent.js";import"../flex-columns/component.js";var v="index-module_component__36Ugf",g="index-module_container__sLbJY",w="index-module_sixWeeks__IWOT8",x=l,D=o((function(o,l){var D,y=o.className,M=o.defaultView,j=void 0===M?"days":M,k=o.value,C=o.month,b=o.defaultMonth,P=void 0===b?+new Date:b,N=o.minDate,T=o.maxDate,_=o.selectedFrom,Y=o.selectedTo,S=o.offDays,E=o.events,F=o.onChange,A=o.onMonthChange,V=o.onYearChange,B=o.locale,I=void 0===B?"en":B,L=o.shortNames,W=void 0===L||L,z=o.dataTestId,G=n(j),J=G[0],O=G[1],R=n(!1),U=R[0],q=R[1],H=x[I],K=a((function(){return k?new Date(k):void 0}),[k]),Q=a((function(){return i(K||_||P)}),[]),X=a((function(){return C?new Date(C):void 0}),[C]),Z=a((function(){return N?new Date(N):void 0}),[N]),$=a((function(){return T?new Date(T):void 0}),[T]),ee=f({month:X,defaultMonth:Q,view:J,minDate:Z,maxDate:$,selected:K,offDays:S,events:E,onChange:F,onMonthChange:A,onYearChange:V,setView:O}),te=ee.activeMonth,oe=ee.activeYear,ne=ee.weeks,ae=ee.months,re=ee.canSetPrevMonth,se=ee.canSetNextMonth,ie=ee.setMonthByDate,me=ee.setPrevMonth,le=ee.setNextMonth,ce=ee.setNextYear,de=ee.setPrevYear,pe=ee.highlighted,fe=ee.getDayProps,he=ee.getMonthProps,ue=ee.getRootProps,ve=r((function(e){O(J===e?"days":e)}),[J]),ge=a((function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())}),[]),we=a((function(){return!K||!m(K,ge)}),[K,ge]),xe=r((function(){O("days"),ie(i(ge)),null==F||F(ge.getTime())}),[F,ie,O,ge]),De=r((function(){"days"===J?me():de()}),[me,J,de]),ye=r((function(){"days"===J?le():ce()}),[le,J,ce]),Me=r((function(){ve("months")}),[ve]);return h((function(){q(!1)}),[J]),h((function(){var e=k&&i(k);e&&e.getTime()!==te.getTime()&&ie(e)}),[k]),t.createElement("div",e({},ue({ref:l}),{className:s(v,y,(D={},D[w]=6===ne.length,D)),"data-test-id":z}),t.createElement(d,{month:u(te,H,!1),onTodayClick:xe,showToday:we,year:oe.getFullYear().toString(),prevArrowVisible:re,nextArrowVisible:se,onPrevArrowClick:De,onNextArrowClick:ye,onMonthClick:Me,view:J,withShadow:U}),t.createElement("div",{className:g},"days"===J&&t.createElement(c,{locale:H,weeks:ne,activeMonth:te,selectedFrom:_,selectedTo:Y,getDayProps:fe,highlighted:pe}),"months"===J&&t.createElement(p,{selectedMonth:te,selectedLocale:H,shortNames:W,months:ae,getMonthProps:he})))}));export{D as Calendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t,{useRef as d,useCallback as a}from"react";import{TransitionGroup as i,CSSTransition as n}from"react-transition-group";import r from"classnames";import{isSameDay as o,isWithinInterval as s,isLastDayOfMonth as
|
|
1
|
+
import{__assign as e}from"tslib";import t,{useRef as d,useCallback as a}from"react";import{TransitionGroup as i,CSSTransition as n}from"react-transition-group";import r from"classnames";import{isSameDay as o,isWithinInterval as s,isLastDayOfMonth as m,isBefore as l,endOfDay as _,startOfMonth as u,isToday as c,isEqual as y}from"date-fns";import{c as x}from"../../../capitalize-d32858ed.js";import{Button as g}from"../../../button/component.js";import{Flex as f}from"../../../flex/component.js";import{usePrevious as v}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as p}from"../../utils.js";import"../../../isSymbol-9701dc6b.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var E={daysTable:"index-module_daysTable__wrv0w",daysBody:"index-module_daysBody__3OukK",weekRow:"index-module_weekRow__mCBLi",daysRow:"index-module_daysRow__2UeeM",daysRowDay:"index-module_daysRowDay__1xaax",transitLeft:"index-module_transitLeft__3JIIQ",transitRight:"index-module_transitRight__3civn",day:"index-module_day__3KsAB",range:"index-module_range__3KQft",rangeStart:"index-module_rangeStart__3xC4X",rangeEnd:"index-module_rangeEnd__14fs8",dayName:"index-module_dayName__3GQG1",event:"index-module_event__1Anlr",prev:"index-module_prev__2zEMT",today:"index-module_today__3bYrp",highlighted:"index-module_highlighted__1ORAN",muted:"index-module_muted__ZOKXV",disabled:"index-module_disabled__2J9VX",selected:"index-module_selected__G9daW",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"},h=function(h){var w=h.weeks,b=void 0===w?[]:w,D=h.activeMonth,N=void 0===D?new Date:D,R=h.highlighted,k=h.selectedFrom,A=h.selectedTo,T=h.getDayProps,j=h.locale,B=d(N);B.current=N;var O=v(N),K=O&&(N<O?"right":"left"),M=p(k,A,R),Q=Array(7).fill(1).map((function(e,t){var d,a=t+1;return null===(d=null==j?void 0:j.localize)||void 0===d?void 0:d.day(7===a?0:a,{width:"short"})})),z=a((function(){return Q.map((function(e){return t.createElement("div",{className:E.dayName,key:e},x(e))}))}),[Q]);return t.createElement("div",{className:r(E.daysTable,K&&E[K])},t.createElement("div",{className:E.daysRow},t.createElement(f,null,z())),t.createElement(i,{component:null},t.createElement(n,{key:N.getTime(),timeout:300,classNames:{enter:E.daysEnter,enterActive:E.daysEnterActive,exit:E.daysExit,exitActive:E.daysExitActive}},t.createElement("div",{className:E.daysBody},b.map((function(d,a){return t.createElement(f,{className:E.weekRow,key:a},d.map((function(d,a){return t.createElement("div",{className:E.daysRowDay,key:d?d.date.getTime():a},d&&function(d){var a,i=d.selected||k&&o(d.date,k)||A&&o(d.date,A),n=!i&&M&&s(d.date,M),x=1===d.date.getDate(),f=m(d.date),v=x&&n&&M&&d.date>M.start,p=f&&n&&M&&d.date<M.end,h=M&&o(d.date,M.start),w=M&&o(d.date,M.end),b=T(d),D=l(_(new Date(d.date)),new Date);return t.createElement(g,e({},b,{ref:function(e){u(d.date).getTime()===B.current.getTime()&&b.ref(e)},type:"button",view:"ghost",size:"xs",disabled:d.disabled,className:r(E.day,(a={},a[E.selected]=i,a[E.range]=n,a[E.rangeStart]=h,a[E.rangeEnd]=w,a[E.transitLeft]=v,a[E.transitRight]=p,a[E.today]=c(d.date),a[E.firstDay]=x,a[E.lastDay]=f,a[E.event]=d.event,a[E.prev]=D,a[E.disabled]=d.disabled,a[E.muted]=d.muted||d.disabled,a[E.highlighted]=R&&y(d.date,R),a))}),d.date.getDate())}(d))})))}))))))};export{h as DaysTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DaysTable}from"./component.js";import"tslib";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../capitalize-
|
|
1
|
+
export{DaysTable}from"./component.js";import"tslib";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../capitalize-d32858ed.js";import"../../../isSymbol-9701dc6b.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Header}from"./сomponent.js";import"react";import"@alphakits/icons/dist/ChevronBackS";import"classnames";import"../../../capitalize-
|
|
1
|
+
export{Header}from"./сomponent.js";import"react";import"@alphakits/icons/dist/ChevronBackS";import"classnames";import"../../../capitalize-d32858ed.js";import"../../../isSymbol-9701dc6b.js";import"../../../button/component.js";import"tslib";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 o from"@alphakits/icons/dist/ChevronBackS";import t from"classnames";import{c as i}from"../../../capitalize-
|
|
1
|
+
import e from"react";import o from"@alphakits/icons/dist/ChevronBackS";import t from"classnames";import{c as i}from"../../../capitalize-d32858ed.js";import{Button as a}from"../../../button/component.js";import{SelectButton as l}from"../select-button/сomponent.js";import"../../../isSymbol-9701dc6b.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var r="index-module_header__3t-Ge",n="index-module_withShadow__2PcxI",m="index-module_disabled__lQP1I",s="index-module_buttonContent__1oCn2",d="index-module_selectors__2rVBr",c="index-module_today__1aGQm",_="index-module_arrow__3AWDo",p=function(p){var u,v,h=p.month,w=p.year,x=p.view,b=p.withShadow,k=p.showToday,C=p.onTodayClick,f=p.prevArrowVisible,E=void 0===f||f,N=p.nextArrowVisible,y=void 0===N||N,j=p.onPrevArrowClick,A=p.onNextArrowClick,P=p.onMonthClick;return e.createElement("div",{className:t(r,(u={},u[n]=b,u)),"aria-live":"polite"},e.createElement(l,{view:"filled",className:t((v={},v[m]="months"===x,v)),onClick:"days"===x?P:void 0},e.createElement("span",{className:s},"days"===x?i(h)+" "+w:""+w)),e.createElement("div",{className:d},k&&e.createElement(a,{view:"outlined",className:c,onClick:C,size:"xs"},"today"),e.createElement(a,{view:"ghost",className:_,disabled:!E,onClick:j,"aria-label":"Prev month"},e.createElement(o,null)),e.createElement(a,{view:"ghost",className:_,onClick:A,disabled:!y,"aria-label":"Next month"},e.createElement(o,null))))};export{p as Header};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MonthsTable}from"./сomponent.js";import"tslib";import"react";import"date-fns";import"../../../capitalize-
|
|
1
|
+
export{MonthsTable}from"./сomponent.js";import"tslib";import"react";import"date-fns";import"../../../capitalize-d32858ed.js";import"../../../isSymbol-9701dc6b.js";import"../../../flex-columns/component.js";import"classnames";import"../../utils.js";import"../select-button/сomponent.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t,{useCallback as o}from"react";import{isSameMonth as
|
|
1
|
+
import{__assign as e}from"tslib";import t,{useCallback as o}from"react";import{isSameMonth as m,isThisMonth as r}from"date-fns";import{c as n}from"../../../capitalize-d32858ed.js";import{FlexColumns as s}from"../../../flex-columns/component.js";import{monthName as i}from"../../utils.js";import{SelectButton as a}from"../select-button/сomponent.js";import"../../../isSymbol-9701dc6b.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_monthsTable__TV9qK",l="index-module_button__17dVp",p=function(p){var d=p.selectedMonth,u=p.months,f=void 0===u?[]:u,j=p.getMonthProps,b=p.selectedLocale,h=p.shortNames,_=o((function(e){return d&&m(d,e.date)?"selected":r(e.date)?"outlined":"default"}),[d]);return t.createElement(s,{columns:3,gc:0,gr:8,className:c},f.map((function(o){return t.createElement(a,e({},j(o),{key:o.date.getMonth(),className:l,view:_(o)}),n(i(o.date,b,h)))})))};export{p as MonthsTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as
|
|
1
|
+
import{__rest as e,__assign as o}from"tslib";import d,{forwardRef as i}from"react";import t from"classnames";import{Button as s}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"},r=i((function(i,r){var m,a=i.className,n=i.children,u=i.disabled,c=i.view,_=void 0===c?"default":c,b=e(i,["className","children","disabled","view"]);return d.createElement(s,o({},b,{ref:r,view:"ghost",size:"xs",disabled:u,className:t(l.button,l[_],a,(m={},m[l.disabled]=u,m))}),n)}));export{r as SelectButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";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 c}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 i="index-
|
|
1
|
+
import{__assign as e}from"tslib";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 c}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 i="index-module_yearsTable__1AgBf",m="index-module_inner__3mtXH",s="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]),x=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.current,t="."+s+'[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:i,onScroll:x,ref:v},t.createElement("div",{className:m},f.map((function(r){return t.createElement(c,e({},_(r),{key:r.getFullYear(),view:b(r),className:s}),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";import"react";import"classnames";import"date-fns";import"../utils/format-date/index.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"./components/days-table/component.js";import"react-transition-group";import"../capitalize-
|
|
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";import"react";import"classnames";import"date-fns";import"../utils/format-date/index.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"./components/days-table/component.js";import"react-transition-group";import"../capitalize-d32858ed.js";import"../isSymbol-9701dc6b.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"@alphakits/icons/dist/ChevronBackS";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"../flex-columns/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from"tslib";import o,{forwardRef as n,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import s from"react-merge-refs";import p from"classnames";import{Calendar as m}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"../toast-notifier/component.js";import{formatDate as f}from"../utils/format-date/index.js";import{parseDateString as v,isCompleteDateInput as j,DATE_MASK as h,SUPPORTS_INPUT_TYPE_DATE as k,NATIVE_DATE_FORMAT as C}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-
|
|
1
|
+
import{__rest as e,__assign as t}from"tslib";import o,{forwardRef as n,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import s from"react-merge-refs";import p from"classnames";import{Calendar as m}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"../toast-notifier/component.js";import{formatDate as f}from"../utils/format-date/index.js";import{parseDateString as v,isCompleteDateInput as j,DATE_MASK as h,SUPPORTS_INPUT_TYPE_DATE as k,NATIVE_DATE_FORMAT as C}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-d32858ed.js";import"../isSymbol-9701dc6b.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"@alphakits/icons/dist/ChevronBackS";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"text-mask-core";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";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";var g="index-module_component__LnAss",b="index-module_block__32Idv",y="index-module_calendarContainer__1EzA3",x="index-module_calendarIcon__3btou",_="index-module_nativeInput__2_YME",M=n((function(n,M){var D,E=n.block,w=void 0!==E&&E,N=n.className,I=n.inputClassName,T=n.defaultOpen,A=void 0!==T&&T,F=n.defaultMonth,P=n.defaultValue,O=void 0===P?"":P,V=n.calendarPosition,q=void 0===V?"popover":V,B=n.value,R=n.dataTestId,S=n.minDate,z=n.required,K=n.maxDate,U=n.calendarProps,G=void 0===U?{}:U,L=n.preventFlip,Y=n.mobileMode,H=void 0===Y?"popover":Y,J=n.wrapperRef,Q=void 0===J?null:J,W=n.disabled,X=n.onChange,Z=n.onInputChange,$=n.onCalendarChange,ee=n.readOnly,te=e(n,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),oe=void 0===(B=B&&B.split("-").length?B.split("-").reverse().join("."):B),ne=k&&"native"===H,ae="input"===H,re="static"===q&&!ae,ie="popover"===q&&!ne&&!ae,le=a(!1),se=le[0],pe=le[1],me=a(O),ce=me[0],de=me[1],ue=oe?ce:B,fe=ue?v(ue).getTime():void 0,ve=c(fe,S,K),je=W||ee,he=r(null),ke=r(null),Ce=r(null),ge=r(null),be=i((function(e){"Escape"===e.key&&pe(!1)}),[]),ye=i((function(){se||pe(!0)}),[se]),xe=i((function(e){pe(!0),!se&&"INPUT"!==e.target.tagName&&ge.current&&ge.current.focus()}),[se]),_e=i((function(e){ge.current&&!1===ge.current.contains(e.relatedTarget)&&pe(!1)}),[]),Me=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&ge.current&&(e.preventDefault(),ge.current.focus())}),[]),De=i((function(e,t,o,n,a){void 0===n&&(n="input"),void 0===a&&(a=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),a&&(oe&&de(t),X&&X(e,{date:o,value:t.split(".").reverse().join("-")}))}),[$,X,Z,oe]),Ee=i((function(e){var t=e.target.value,o=v(t);De(e,t,o,"input",j(t))}),[De]),we=i((function(e){var t=v(e.target.value,C),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});De(e,o,t)}),[De]),Ne=i((function(e){De(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),pe(!1)}),[De]),Ie=i((function(e){e.preventDefault()}),[]);l((function(){pe(A)}),[A]);var Te=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(m,t({},G,{ref:ge,defaultMonth:F,value:ve?fe:void 0,onChange:Ne,minDate:S,maxDate:K})))}),[G,fe,F,Ne,Ie,ve,K,S]);return o.createElement("div",{ref:Ce,className:p(g,N,(D={},D[b]=w,D)),tabIndex:-1,onKeyDown:je?void 0:be,onClick:je?void 0:ye,onFocus:je?void 0:xe,onBlur:_e,"data-test-id":R},o.createElement(d,t({},te,{ref:s([M,he]),wrapperRef:s([Q,ke]),className:I,value:ue,required:z,defaultValue:O,disabled:W,readOnly:ee,mask:h,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:x}),ne&&o.createElement("input",{type:"date",ref:s([M,he]),defaultValue:O,onChange:we,className:_})),onKeyDown:Me,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Te(),ie&&o.createElement(u,{open:se,anchorElement:ke.current,popperClassName:y,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:L},Te()))}));export{M as CalendarInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"tslib";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../utils/format-date/index.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-
|
|
1
|
+
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"tslib";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../utils/format-date/index.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-d32858ed.js";import"../isSymbol-9701dc6b.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"@alphakits/icons/dist/ChevronBackS";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"text-mask-core";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";import"../toast-notifier/component.js";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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r,i as u}from"./isSymbol-
|
|
1
|
+
import{_ as r,i as u}from"./isSymbol-9701dc6b.js";var f=function(r,u){for(var f=-1,n=null==r?0:r.length,t=Array(n);++f<n;)t[f]=u(r[f],f,r);return t},n=Array.isArray,t=1/0,e=r?r.prototype:void 0,o=e?e.toString:void 0;var i=function r(e){if("string"==typeof e)return e;if(n(e))return f(e,r)+"";if(u(e))return o?o.call(e):"";var i=e+"";return"0"==i&&1/e==-t?"-0":i};var a=function(r){return null==r?"":i(r)};var d=function(r,u,f){var n=-1,t=r.length;u<0&&(u=-u>t?0:t+u),(f=f>t?t:f)<0&&(f+=t),t=u>f?0:f-u>>>0,u>>>=0;for(var e=Array(t);++n<t;)e[n]=r[n+u];return e};var c=function(r,u,f){var n=r.length;return f=void 0===f?n:f,!u&&f>=n?r:d(r,u,f)},v=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var l=function(r){return v.test(r)};var s=function(r){return r.split("")},p="\\ud800-\\udfff",g="["+p+"]",y="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",A="[^"+p+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",j="[\\ud800-\\udbff][\\udc00-\\udfff]",m="(?:"+y+"|"+h+")"+"?",x="[\\ufe0e\\ufe0f]?",C=x+m+("(?:\\u200d(?:"+[A,b,j].join("|")+")"+x+m+")*"),E="(?:"+[A+y+"?",y,b,j,g].join("|")+")",R=RegExp(h+"(?="+h+")|"+E+C,"g");var S=function(r){return r.match(R)||[]};var w=function(r){return l(r)?S(r):s(r)};var L=function(r){return function(u){u=a(u);var f=l(u)?w(u):void 0,n=f?f[0]:u.charAt(0),t=f?c(f,1).join(""):u.slice(1);return n[r]()+t}}("toUpperCase");var U=function(r){return L(a(r).toLowerCase())};export{U as c};
|
package/dist/card/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.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{CardImages as i}from"./images/index.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"../image/image-base.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";var m={component:"index-module_component__3PnQP",full:"index-module_full__12Sb8",titleWrap:"index-module_titleWrap__3UvvS",content:"index-module_content__sjkL_"},n=function(n){var r=n.view,a=void 0===r?"default":r,s=n.bottomAddons,p=n.images,l=void 0===p?[]:p,c=n.orientation,d=void 0===c?"horizontal":c,g=n.title,u=n.subtitle,v=n.titleAddons;return t.createElement("div",{className:e([m.component,m[a]])},!!l.length&&t.createElement(i,{orientation:d,images:l,view:a}),t.createElement("div",{className:m.content},t.createElement("div",{className:m.titleWrap},t.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),v),t.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};export{n as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import o from"classnames";import{ImageBase as e}from"../../image/image-base.js";import"../../use-image-render-component-
|
|
1
|
+
import t from"react";import o from"classnames";import{ImageBase as e}from"../../image/image-base.js";import"../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";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";import"../../image/types.js";import"../../image/utils.js";var i={container:"index-module_container__2U9Es",content:"index-module_content__2xV1i",full:"index-module_full__273IY",vertical:"index-module_vertical__14AyS",horizontal:"index-module_horizontal__20kzV"},n=function(n){var r=n.images,m=void 0===r?[]:r,a=n.orientation,p=void 0===a?"horizontal":a,s=n.view,l=void 0===s?"default":s;return t.createElement("div",{className:o([i[p],i.container])},t.createElement("div",{className:o([i.content,i[l]])},t.createElement(e,{src:m[0]})))};export{n as CardImages};
|
package/dist/card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Card}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";import"./images/index.js";import"../image/image-base.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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t}from"react";import o from"classnames";import{getDataTestId as m}from"../../__internal/utils/getDataTestId.js";import{useFocus as r}from"../../hooks/useFocus/index.js";import{Typography as i}from"../../typography/component.js";import{Pure as a}from"../pure/component.js";import"../../typography/text/component.js";import"../../colors.module-
|
|
1
|
+
import e,{useRef as t}from"react";import o from"classnames";import{getDataTestId as m}from"../../__internal/utils/getDataTestId.js";import{useFocus as r}from"../../hooks/useFocus/index.js";import{Typography as i}from"../../typography/component.js";import{Pure as a}from"../pure/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 s="index-module_component__2592K",l="index-module_title__3aV9N",n="index-module_subtitle__1qfeh",d="index-module_focused__1vVeT",p=function(p){var c,u=p.className,_=p.dataTestId,f=p.title,x=p.subtitle,y=p.size,g=void 0===y?"m":y,h=p.addon,j=t(null),v=r(j,"keyboard")[0];return e.createElement(a,{slot:h,className:o(s,(c={},c[d]=v,c),u),dataTestId:m("cell-action",_,!0),tabIndex:0,size:g,ref:j},e.createElement(e.Fragment,null,f&&e.createElement(i.Text,{view:"title",color:"primary",weight:"medium",tag:"div",className:l},f),x&&e.createElement(i.Text,{weight:"medium",view:"caps",tag:"div",className:n,color:"secondary"},x)))};export{p as Base};
|
package/dist/cell/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Base as o}from"./base/component.js";import{Pure as t}from"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import{Base as o}from"./base/component.js";import{Pure as t}from"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";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"tslib";import"../typography/title/component.js";var p={Pure:t,Base:o};export{p as Cell};
|
package/dist/cell/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Cell}from"./component.js";import"./base/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Cell}from"./component.js";import"./base/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";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"tslib";import"../typography/title/component.js";import"./pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as r}from"tslib";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as
|
|
1
|
+
import{__rest as e,__assign as r}from"tslib";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}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 m,t=o.slot,_=o.size,s=void 0===_?"m":_,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=((m={})[i.normalOrder]="normal"===v&&t,m[i.reverseOrder]="reverse"===v&&t,m[i[x]]=!0,m);return d.createElement("div",r({ref:n,className:l(i.component,i[s],r({},f),h),"data-test-id":a("cell-pure",N,!0)},O),t&&d.createElement("div",{className:l(i.addon,r({},f))},t),d.createElement("div",{className:l(i.child,r({},f))},p))}));export{n as Pure};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as n}from"tslib";import d,{forwardRef as
|
|
1
|
+
import{__rest as e,__assign as n}from"tslib";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import i from"@alphakits/icons/dist/CheckmarkS";import m from"@alphakits/icons/dist/MinusM";import l 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"},r=a((function(a,r){var _,u=a.checked,b=a.label,h=a.hint,p=a.size,x=void 0===p?"m":p,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,C=a.indeterminate,F=void 0!==C&&C,M=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),P=t(null),T=c(P,"keyboard")[0];return d.createElement("label",{className:l(s.component,s[x],s[f],v,(_={},_[s.disabled]=y,_[s.checked]=u,_[s.indeterminate]=F,_[s.focused]=T,_[s.block]=N,_)),ref:o([P,r])},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},M)),u&&d.createElement(i,null),F&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(m,null))),(b||h)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),h&&d.createElement("span",{className:s.hint},h)),E&&d.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__spreadArray as e}from"tslib";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{Typography as n}from"../typography/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import{__spreadArray as e}from"tslib";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{Typography as n}from"../typography/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";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 r="index-module_text__1gRxq",l="index-module_subtitle__1s_SD",c=function(c){var m=c.title,a=c.subtitle,s=c.selected,d=void 0===s?[]:s,p=c.data,u=void 0===p?[]:p,v=c.onChange,g=c.columns,h=void 0===g?1:g,f=c.disabled,x=c.gr,y=void 0===x?20:x,k=c.gc,b=void 0===k?20:k,_=c.dataTestId,j=d||[],E=function(e){return _?"checkbox_"+_+"_"+e:"checkbox_"+e};return t.createElement("div",null,(m||a)&&t.createElement("div",{className:r},m&&t.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},m),a&&t.createElement(n.Text,{className:l,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(i,{columns:h,gr:y,gc:b},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(i,n){return t.createElement(o,{disabled:f,key:i.key+i.content,dataTestId:E(n),onChange:function(){return t=i.key,void v((null==j?void 0:j.includes(t))?null==j?void 0:j.filter((function(e){return e!==t})):e(e([],j),[t]));var t},checked:null==j?void 0:j.includes(i.key),label:i.content})})))))};export{c as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"tslib";import"react";import"../checkbox/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"tslib";import"react";import"../checkbox/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/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{__spreadArray as e}from"tslib";import t,{useState as n}from"react";import o from"@alphakits/icons/dist/ChevronDownS";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as i}from"../collapse/component.js";import{Divider as c}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 s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"../hooks/useFocus/index.js";import"../isSymbol-
|
|
1
|
+
import{__spreadArray as e}from"tslib";import t,{useState as n}from"react";import o from"@alphakits/icons/dist/ChevronDownS";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as i}from"../collapse/component.js";import{Divider as c}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 s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"../hooks/useFocus/index.js";import"../isSymbol-9701dc6b.js";import"resize-observer";import"../link/component.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 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,b=u.selected,_=u.checkableParent,v=u.collapsable,E=u.disabled,j=u.onChange,g=[],k=Array.isArray(b)?b:[];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&&g.push(t)}));var y=n(g),x=y[0],C=y[1],w=function(t){t.forEach((function(n){(null==k?void 0:k.includes(n))?j(k.filter((function(e){return!t.includes(e)}))):j(e(e([],k),t))}))},z=function(e){var n,o,l=e.element;return _?t.createElement(r,{block:!0,disabled:E,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==k?void 0:k.includes(e))&&(o=!0)})),o),onChange:function(){return w(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var p;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(z,{element:e}),v&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);C(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(p={},p[d.collapse_btn_collapsed]=e.collapsed,p)),icon:o})),!e.collapsed&&t.createElement(s,{padding:"16px 0 0 0"})),t.createElement(i,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1,gr:8},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return w([e.id])},checked:null==k?void 0:k.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(c,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"tslib";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"tslib";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-9701dc6b.js";import"resize-observer";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/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 o from"@alphakits/icons/dist/EditS";import e from"@alphakits/icons/dist/PlusS";import{Button as r}from"../button/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";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/EditS";import e from"@alphakits/icons/dist/PlusS";import{Button as r}from"../button/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";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=function(e){var r=e.location,m=e.onClick;return t.createElement(t.Fragment,null,t.createElement(n.Text,{view:"title",weight:"bold",color:"primary"},r.address),t.createElement(i,{icon:o,onClick:m,size:"s",view:"ghost"}))},s=function(o){var i=o.onClick;return t.createElement(r,{leftAddons:t.createElement(e,null),size:"xs",onClick:i,view:"secondary"},"Добавить квест")};export{s as Addons,m as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import n from"@alphakits/icons/dist/ChevronDownS";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../isSymbol-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import n from"@alphakits/icons/dist/ChevronDownS";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}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 l="index-module_wrapper__3QusV",a="index-module_row__3hqrd",p="index-module_label__36GmD",c="index-module_collapse_button__fSlCm",d="index-module_expanded_icon__1bn0B",_="index-module_collapse_container__2IId1",u=function(u){var x,b=u.label,f=u.content,j=u.expanded,h=u.addons,v=u.children,y=u.disabled,g=o(j),E=g[0],w=g[1];return t((function(){w(j)}),[j]),e.createElement("div",null,e.createElement("div",{className:l},e.createElement("div",{className:a},b&&e.createElement(s.Text,{className:p,color:"secondary",view:"title",weight:"medium"},b),f),e.createElement("div",{className:a},h,e.createElement(i,{onClick:function(){return w(!E)},className:r(c,(x={},x[d]=E,x)),disabled:y,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},v))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../collapse/component.js";import"../isSymbol-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../collapse/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"../icon-button/component.js";import"../button/component.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";
|