@alphakits/ui 1.9.3 → 1.9.6
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-16fbb08e.js → _commonjsHelpers-e70ca8ef.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/bottom-sheet/component.d.ts +3 -3
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.d.ts +3 -3
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.d.ts +2 -0
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-cdfbec9b.js → colors.module-42a30aaf.js} +0 -0
- package/dist/{common.module-0d0a0685.js → common.module-de349ff7.js} +0 -0
- package/dist/{component-f9c4ad55.d.ts → component-5c6ad6cd.d.ts} +0 -0
- package/dist/{component-f9c4ad55.js → component-5c6ad6cd.js} +0 -0
- package/dist/{contact-block-2f038c1f.d.ts → contact-block-09c6b44a.d.ts} +0 -0
- package/dist/{contact-block-2f038c1f.js → contact-block-09c6b44a.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.d.ts +3 -3
- 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-42ff528f.js → formik.esm-2ab9e933.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-e41904fe.js → gutters.module-a4aaa1b7.js} +0 -0
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/{index-8cb26c48.js → index-0096ff53.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{intersection-observer-5a9d5b02.js → intersection-observer-b6973251.js} +0 -0
- 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-c424da9c.d.ts → parse-query-params-d8cc9b59.d.ts} +0 -0
- package/dist/{parse-query-params-c424da9c.js → parse-query-params-d8cc9b59.js} +1 -1
- package/dist/picker-button/common/index.d.ts +1 -0
- package/dist/picker-button/common/index.js +1 -0
- package/dist/picker-button/common/labeled-button/index.d.ts +12 -0
- package/dist/picker-button/common/labeled-button/index.js +1 -0
- 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/field/index.js +1 -1
- package/dist/picker-button/index.d.ts +1 -0
- 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.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.d.ts +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/select/typings.d.ts +3 -0
- 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-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/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.d.ts +3 -3
- 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.d.ts +1 -0
- 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-d0c124c7.js → tslib.es6-c41468d6.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/{use-image-render-component-e3f8563e.d.ts → use-image-render-component-dadcaf65.d.ts} +0 -0
- package/dist/{use-image-render-component-e3f8563e.js → use-image-render-component-dadcaf65.js} +0 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +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-c41468d6.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-42a30aaf.js";import"../common.module-de349ff7.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,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,f=void 0!==v&&v,h=o(l,["value","currency","showMinorPart","isCanceled"]),g=m({value:u,currency:d,showMinorPart:j}),w=g.majorPart,_=g.minorPart,x=g.currencySymbol,P=h,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({},h,{view:S,weight:T,color:C,className:e(n,b,(p={},p[c]=f,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-c41468d6.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.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-c41468d6.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-c41468d6.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 o from"react";import{Button as e}from"../button/component.js";import{Image as t}from"../image/component.js";import{ImageSizes as r}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-
|
|
1
|
+
import o from"react";import{Button as e}from"../button/component.js";import{Image as t}from"../image/component.js";import{ImageSizes as r}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-c41468d6.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-dadcaf65.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";var m={warpper:"index-module_warpper__2dVGP",slot:"index-module_slot__3TDiF"},s=function(s){var p=s.src,i=s.text,n=s.slot,a=s.ref,c=s.onClick;return o.createElement(e,{ref:a,onClick:c,disabled:!c,className:m.wrapper,view:"ghost"},o.createElement(t,{resolution:r.xs,view:"circle",size:"s",src:p,text:i}),n&&o.createElement("div",{className:m.slot},n))};export{s as Avatar};
|
package/dist/avatar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Avatar}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{Avatar}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-c41468d6.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-dadcaf65.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
type
|
|
3
|
+
type BottomSheetProps = {
|
|
4
4
|
close: () => void;
|
|
5
5
|
open: boolean;
|
|
6
6
|
marginTop?: number;
|
|
7
7
|
onBackClick?: () => void;
|
|
8
8
|
};
|
|
9
|
-
declare const BottomSheet: React.FC<
|
|
10
|
-
export {
|
|
9
|
+
declare const BottomSheet: React.FC<BottomSheetProps>;
|
|
10
|
+
export { BottomSheetProps, BottomSheet };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"react";import{c as t,u as n}from"../_commonjsHelpers-
|
|
1
|
+
import e from"react";import{c as t,u as n}from"../_commonjsHelpers-e70ca8ef.js";import{r}from"../index-0096ff53.js";import{ChevronBackM as o}from"alpha-cli-icons";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-
|
|
1
|
+
export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-e70ca8ef.js";import"../index-0096ff53.js";import"alpha-cli-icons";
|
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-c41468d6.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-c41468d6.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-c41468d6.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-c41468d6.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-c41468d6.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-c41468d6.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-c41468d6.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-c41468d6.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-c41468d6.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-c41468d6.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 d}from"../../../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../../../tslib.es6-c41468d6.js";import o,{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,c=s.view,_=void 0===c?"default":c,b=e(s,["className","children","disabled","view"]);return o.createElement(t,d({},b,{ref:a,view:"ghost",size:"xs",disabled:u,className:i(l.button,l[_],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-c41468d6.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-c41468d6.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-c41468d6.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-c41468d6.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-e70ca8ef.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-c41468d6.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-e70ca8ef.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"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.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"../../typography/component.js";export{B as Base}from"../../component-5c6ad6cd.js";import"../../typography/title/index.js";import"../../tslib.es6-c41468d6.js";import"../../typography/title/component.js";import"../../colors.module-42a30aaf.js";import"../../common.module-de349ff7.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-5c6ad6cd";
|
package/dist/cell/base/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Base}from"../../component-
|
|
1
|
+
export{B as Base}from"../../component-5c6ad6cd.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-c41468d6.js";import"../../typography/title/component.js";import"../../colors.module-42a30aaf.js";import"../../common.module-de349ff7.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
|
package/dist/cell/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-5c6ad6cd.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c41468d6.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/cell/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-5c6ad6cd.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c41468d6.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as r}from"../../tslib.es6-
|
|
1
|
+
import{_ as e,a as r}from"../../tslib.es6-c41468d6.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 m,t=o.slot,s=o.size,_=void 0===s?"m":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=((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:a(i.component,i[_],r({},f),h),"data-test-id":l("cell-pure",N,!0)},O),t&&d.createElement("div",{className:a(i.addon,r({},f))},t),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-c41468d6.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-c41468d6.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-c41468d6.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-c41468d6.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-42a30aaf.js";import"../common.module-de349ff7.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,a=m.subtitle,s=m.selected,p=void 0===s?[]:s,d=m.data,u=void 0===d?[]:d,v=m.onChange,g=m.columns,f=void 0===g?1:g,y=m.gr,h=void 0===y?20:y,x=m.gc,j=void 0===x?20:x,_=m.dataTestId,b=p||[],k=function(e){return _?"checkbox_"+_+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:f,gr:h,gc:j},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==b?void 0:b.includes(t))?null==b?void 0:b.filter((function(e){return e!==t})):e(b,[t]));var t},checked:null==b?void 0:b.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-c41468d6.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-42a30aaf.js";import"../common.module-de349ff7.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-c41468d6.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-e70ca8ef.js";import"resize-observer";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-42a30aaf.js";import"../common.module-de349ff7.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,v=u.collapsable,E=u.onChange,b=[],g=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 y=n(b),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?E(g.filter((function(e){return!t.includes(e)}))):E(e(g,t))}))},z=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==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(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,x.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(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);k(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 C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.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-c41468d6.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-e70ca8ef.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/title/index.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-c41468d6.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
type
|
|
3
|
+
type CollapsableRowProps = {
|
|
4
4
|
label?: string;
|
|
5
5
|
content?: React.ReactNode;
|
|
6
6
|
expanded?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
addons?: React.ReactNode;
|
|
9
9
|
};
|
|
10
|
-
declare const CollapsableRow: React.FC<
|
|
11
|
-
export {
|
|
10
|
+
declare const CollapsableRow: React.FC<CollapsableRowProps>;
|
|
11
|
+
export { CollapsableRowProps, CollapsableRow };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import m from"classnames";import{Collapse as r}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import m from"classnames";import{Collapse as r}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-e70ca8ef.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-c41468d6.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var a="index-module_wrapper__3QusV",l="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 j,f=u.label,x=u.content,h=u.expanded,y=u.addons,b=u.children,v=u.disabled,g=o(h),E=g[0],N=g[1];return t((function(){N(h)}),[h]),e.createElement("div",null,e.createElement("div",{className:a},e.createElement("div",{className:l},f&&e.createElement(s.Text,{className:p,color:"secondary",view:"title",weight:"medium"},f),x),e.createElement("div",{className:l},y,e.createElement(i,{onClick:function(){return N(!E)},className:m(c,(j={},j[d]=E,j)),disabled:v,view:"ghost",icon:n,size:"s"}))),e.createElement(r,{contentClassName:_,expanded:E},b))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-e70ca8ef.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-c41468d6.js";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/title/index.js";import"../typography/title/component.js";import"../colors.module-42a30aaf.js";import"../common.module-de349ff7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { LinkProps } from "../link/index";
|
|
4
4
|
type CollapseProps = {
|
|
5
5
|
expanded?: boolean;
|
|
6
|
+
defaultExpanded?: boolean;
|
|
6
7
|
collapsedLabel?: string;
|
|
7
8
|
expandedLabel?: string;
|
|
8
9
|
children?: React.ReactNode;
|
|
@@ -11,6 +12,7 @@ type CollapseProps = {
|
|
|
11
12
|
linkProps?: Pick<LinkProps, 'view' | 'size'>;
|
|
12
13
|
id?: string;
|
|
13
14
|
onExpandedChange?: (expanded?: boolean) => void;
|
|
15
|
+
onTransitionEnd?: (expanded?: boolean) => void;
|
|
14
16
|
dataTestId?: string;
|
|
15
17
|
};
|
|
16
18
|
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
|