@alphakits/ui 1.22.13 → 1.22.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.d.ts +2 -2
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{component-ff7f22f2.js → component-8f794404.js} +1 -1
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/form-loading/index.js +1 -1
- package/dist/form/components/form-wrapper/index.js +1 -1
- package/dist/form/components/index.d.ts +1 -1
- package/dist/form/components/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/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/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/constants.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/utils.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/{index-1f862647.js → index-0b05795a.js} +1 -1
- package/dist/{index-52466dc0.js → index-582c92f3.js} +2 -2
- package/dist/{index-4f76bb1b.js → index-d4737940.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/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/index.js +1 -1
- package/dist/modal/components/modals/modal.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/modal/utils/delete-property-by-id.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-5fe6ffd9.js → parse-query-params-ebb79e99.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.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/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/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/{use-image-render-component-ac5638f8.js → use-image-render-component-43c8952c.js} +1 -1
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- /package/dist/{_commonjsHelpers-9df6f4dd.js → _commonjsHelpers-48b90302.js} +0 -0
- /package/dist/{colors.module-6721e9a2.js → colors.module-e91d54b0.js} +0 -0
- /package/dist/{common.module-920dfa2f.js → common.module-66ec2a40.js} +0 -0
- /package/dist/{component-ff7f22f2.d.ts → component-8f794404.d.ts} +0 -0
- /package/dist/{component-010e49fc.d.ts → component-c8d8cda8.d.ts} +0 -0
- /package/dist/{component-010e49fc.js → component-c8d8cda8.js} +0 -0
- /package/dist/{contact-block-55bf44ac.d.ts → contact-block-60493d01.d.ts} +0 -0
- /package/dist/{contact-block-55bf44ac.js → contact-block-60493d01.js} +0 -0
- /package/dist/{gutters.module-187a8a87.js → gutters.module-aa0fc314.js} +0 -0
- /package/dist/{index-1f862647.d.ts → index-0b05795a.d.ts} +0 -0
- /package/dist/{index-40643cd7.js → index-c1424f7e.js} +0 -0
- /package/dist/{intersection-observer-aa692db4.js → intersection-observer-2aee57eb.js} +0 -0
- /package/dist/{parse-query-params-5fe6ffd9.d.ts → parse-query-params-ebb79e99.d.ts} +0 -0
- /package/dist/{slide-1598df7f.d.ts → slide-d9e98a81.d.ts} +0 -0
- /package/dist/{slide-1598df7f.js → slide-d9e98a81.js} +0 -0
- /package/dist/{tslib.es6-8358f354.js → tslib.es6-01e4cee9.js} +0 -0
- /package/dist/{use-image-render-component-ac5638f8.d.ts → use-image-render-component-43c8952c.d.ts} +0 -0
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-01e4cee9.js";import e from"react";import r 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-e91d54b0.js";import"../common.module-66ec2a40.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 c="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,h=void 0!==v&&v,g=o(l,["value","currency","showMinorPart","isCanceled"]),f=m({value:u,currency:d,showMinorPart:j}),w=f.majorPart,_=f.minorPart,x=f.currencySymbol,P=g,b=P.className,B=P.color,M=void 0===B?"secondary":B,N=P.view,C=void 0===N?"title":N,q=P.weight,E=void 0===q?"medium":q;return e.createElement(i.Text,t({},g,{view:C,weight:E,color:M,className:r(c,b,(p={},p[n]=h,p))}),w,_&&s,_,!!x&&""+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-01e4cee9.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.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-01e4cee9.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as s}from"react";import l 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__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4",input:"index-module_input__Ims09"},g=d(m),C=o((function(o,m){var d,C=o.value,x=void 0===C?null:C,_=o.integerLength,j=void 0===_?9:_,h=o.suffix,N=void 0===h?"RUR":h,y=o.placeholder,E=void 0===y?"":y,w=o.bold,A=void 0===w||w,R=o.className,S=o.focusedClassName,b=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,k=o.onClear,G=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),H=r(u({value:x,currency:"RUR"}).formatted),J=H[0],L=H[1];i((function(){return f(J,T)!==x?L(u({value:x,currency:"RUR"}).formatted):function(){}}),[x]);var $=a((function(e){L(""),k&&k(e)}),[k]),B=J.split(","),K=B[0],Q=B[1];return n.createElement("div",{className:l(v.container,(d={},d[v.bold]=A,d[v.filled]=Boolean(J),d))},n.createElement(g,t({},G,{suffix:n.createElement(s,null,K,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==Q&&","+Q,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:b,placeholder:E,value:J,className:l(v.component,R),focusedClassName:S,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===J){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],s=i[1],l=a.length;s&&(l+=1,l+=s.slice(0,2).length);var m=o.length-l,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}L(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:$,dataTestId:q,ref:m})))}));export{C as AmountInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AmountInput}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{AmountInput}from"./component.js";import"../tslib.es6-01e4cee9.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
|
|
1
|
+
import e from"react";import o from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-01e4cee9.js";import"react-merge-refs";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-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-43c8952c.js";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";import"../spinner/component.js";import"../image/utils.js";var s={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var p,n=i.src,c=i.text,a=i.slot,l=i.ref,d=i.onClick;return e.createElement(t,{ref:l,onClick:d,className:o([s.wrapper,(p={},p[s.disabled]=!d,p)]),view:"ghost"},e.createElement(r,{resolution:m.xs,view:"circle",size:"s",src:n,text:c}),a&&e.createElement("div",{className:s.slot},a))};export{i as Avatar};
|
package/dist/avatar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-01e4cee9.js";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/title/index.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-43c8952c.js";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../index-
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../index-d4737940.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import{PureImage as i}from"../pure-image/component.js";import"../typography/title/index.js";import"../tslib.es6-01e4cee9.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../_commonjsHelpers-48b90302.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var a="index-module_component__4rFCR",s="index-module_bottomSpace__Di-8N",n="index-module_footer__kIafr",r="index-module_withBorder__r41KZ",d="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",p="index-module_topRightAddons__aPgTC",c="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",v="index-module_titleWrap__LxVjO",g="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",j=function(j){var h,E=j.className,b=j.bottomSpace,f=void 0===b||b,y=j.orientation,N=void 0===y?"vertical":y,A=j.title,L=j.subtitle,w=j.topLeftAddons,R=j.topRightAddons,T=j.bottomRightAddons,M=j.titleAddons,B=j.photo,C=j.href,O=j.scalable,k=void 0!==O&&O,I=j.border,J=void 0!==I&&I,P=j.dataTestId,S=j.onMouseEnter,W=j.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:S,onMouseLeave:W,"data-test-id":P,className:t(a,(h={},h[r]=J,h[d]=k,h[s]=!f,h),E)},!!B&&e.createElement("div",{className:_},e.createElement(i,{src:B,orientation:N,resolution:m.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!f&&e.createElement("div",{className:u})),e.createElement("div",{className:n},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:g,view:"component"},A),!!M&&e.createElement("div",{className:x},M)),e.createElement(o.Text,{tag:"div",view:"primary-medium"},L),!!T&&e.createElement("div",{className:c},T)))};export{j as BaseCard};
|
package/dist/base-card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-01e4cee9.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";import"../image/typings.js";import"../image/constants.js";import"../pure-image/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";
|
|
@@ -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-48b90302.js";import{r}from"../index-582c92f3.js";import{b as o}from"../index-d4737940.js";
|
|
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-48b90302.js";import"../index-582c92f3.js";import"../index-d4737940.js";
|
package/dist/button/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../tslib.es6-01e4cee9.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__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ","outlined-inverted":"index-module_outlined-inverted__Cwspj",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",black:"index-module_black__ah6BZ",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},_=o.forwardRef((function(_,s){var m,c,u=_.children,x=_.view,p=void 0===x?"secondary":x,f=_.leftAddons,b=_.rightAddons,h=_.size,v=void 0===h?"m":h,k=_.block,g=void 0!==k&&k,w=_.className,y=_.dataTestId,E=_.href,N=_.loading,T=void 0!==N&&N,j=_.nowrap,A=void 0!==j&&j,I=e(_,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=r(J,"keyboard")[0],P={className:a(i.component,i[p],i[v],(m={},m[i.focused]=O,m[i.block]=g,m[i.iconOnly]=!u,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},Z=o.createElement(o.Fragment,null,f&&o.createElement("span",{className:i.addons},f),u&&o.createElement("span",{className:a(i.text,(c={},c[i.stretchText]=!(f||b),c))},u),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var z=I.target;return o.createElement("a",d({rel:"_blank"===z?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,s])}),Z)}var R=I,U=R.disabled,B=e(R,["disabled"]);return o.createElement("button",d({},P,B,{disabled:U||T,ref:l([J,s])}),Z)}));export{_ 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-01e4cee9.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-01e4cee9.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{ru as m,de as c,enGB as l}from"date-fns/locale";import{DaysTable as d}from"./components/days-table/component.js";import{Header as h}from"./components/header/сomponent.js";import{MonthsTable as p}from"./components/months-table/сomponent.js";import{YearsTable as u}from"./components/years-table/сomponent.js";import{useCalendar as f}from"./use-calendar.js";import{useDidUpdateEffect as v,monthName as g}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 w="index-module_component__SJQwG",y="index-module_container__3PFvh",M="index-module_sixWeeks__NcW9R",D={ru:m,de:c,en:l},x=o((function(o,m){var c,l=o.className,x=o.defaultView,j=void 0===x?"days":x,P=o.selectorView,k=void 0===P?"full":P,N=o.value,_=o.month,b=o.defaultMonth,C=void 0===b?+new Date:b,E=o.minDate,S=o.maxDate,F=o.selectedFrom,T=o.selectedTo,Y=o.offDays,A=o.events,V=o.onChange,R=o.onMonthChange,W=o.locale,B=void 0===W?"en":W,G=o.shortNames,I=void 0===G||G,J=o.dataTestId,L=n(j),Q=L[0],q=L[1],z=n(!1),H=z[0],K=z[1],O=D[B],U=r((function(){return N?new Date(N):void 0}),[N]),X=r((function(){return i(U||C)}),[]),Z=r((function(){return _?new Date(_):void 0}),[_]),$=r((function(){return E?new Date(E):void 0}),[E]),ee=r((function(){return S?new Date(S):void 0}),[S]),te=f({month:Z,defaultMonth:X,view:Q,minDate:$,maxDate:ee,selected:U,offDays:Y,events:A,onChange:V,onMonthChange:R}),oe=te.activeMonth,ne=te.weeks,re=te.months,se=te.years,ae=te.canSetPrevMonth,ie=te.canSetNextMonth,me=te.setMonthByDate,ce=te.setPrevMonth,le=te.setNextMonth,de=te.highlighted,he=te.getDayProps,pe=te.getMonthProps,ue=te.getYearProps,fe=te.getRootProps,ve=s((function(e){q(Q===e?"days":e)}),[Q]),ge=s((function(e){K(e>0)}),[]),we=s((function(){ce()}),[ce]),ye=s((function(){le()}),[le]),Me=s((function(){ve("months")}),[ve]),De=s((function(){ve("years")}),[ve]);return v((function(){q("days")}),[oe]),v((function(){K(!1)}),[Q]),v((function(){var e=N&&i(N);e&&e.getTime()!==oe.getTime()&&me(e)}),[N]),t.createElement("div",e({},fe({ref:m}),{className:a(w,l,(c={},c[M]=6===ne.length,c)),"data-test-id":J}),t.createElement(h,{month:g(oe,O,!1),year:oe.getFullYear().toString(),prevArrowVisible:ae,nextArrowVisible:ie,onPrevArrowClick:we,onNextArrowClick:ye,onMonthClick:Me,onYearClick:De,view:k,withShadow:H}),t.createElement("div",{className:y},"days"===Q&&t.createElement(d,{locale:O,weeks:ne,activeMonth:oe,selectedFrom:F,selectedTo:T,getDayProps:he,highlighted:de}),"months"===Q&&t.createElement(p,{selectedMonth:oe,selectedLocale:O,shortNames:I,months:re,getMonthProps:pe}),"years"===Q&&t.createElement(u,{selectedYear:oe,years:se,getYearProps:ue,onScroll:ge})))}));export{x as Calendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-01e4cee9.js";import t,{useRef as d,useCallback as a}from"react";import{TransitionGroup as n,CSSTransition as i}from"react-transition-group";import r from"classnames";import{isSameDay as l,isWithinInterval as o,isLastDayOfMonth as m,startOfMonth as s,isToday as _,isEqual as u}from"date-fns";import{Button as c}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__rn902",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",dayName:"index-module_dayName__A3Z6w",day:"index-module_day__BdXjf",event:"index-module_event__BmkeM",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",muted:"index-module_muted__h4D7T",disabled:"index-module_disabled__CNZL7",range:"index-module_range__WYxl2",selected:"index-module_selected__BvMd5",rangeStart:"index-module_rangeStart__N8rLo",rangeEnd:"index-module_rangeEnd__z7AV7",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},f=function(f){var v=f.weeks,h=void 0===v?[]:v,E=f.activeMonth,p=void 0===E?new Date:E,b=f.highlighted,A=f.selectedFrom,D=f.selectedTo,k=f.getDayProps,N=f.locale,T=d(p);T.current=p;var j=y(p),L=j&&(p<j?"right":"left"),w=x(A,D,b),B=Array(7).fill(1).map((function(e,t){var d,a=t+1;return null===(d=null==N?void 0:N.localize)||void 0===d?void 0:d.day(7===a?0:a,{width:"abbreviated"})})),M=a((function(){return B.map((function(e){return t.createElement("th",{className:g.dayName,key:e},e)}))}),[B]);return t.createElement("table",{className:r(g.daysTable,L&&g[L])},t.createElement("thead",null,t.createElement("tr",null,M())),t.createElement(n,{component:null},t.createElement(i,{key:p.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("tbody",null,h.map((function(d,a){return t.createElement("tr",{key:a},d.map((function(d,a){return t.createElement("td",{key:d?d.date.getTime():a},d&&function(d){var a,n=d.selected||A&&l(d.date,A)||D&&l(d.date,D),i=!n&&w&&o(d.date,w),y=1===d.date.getDate(),x=m(d.date),f=y&&i&&w&&d.date>w.start,v=x&&i&&w&&d.date<w.end,h=w&&l(d.date,w.start),E=w&&l(d.date,w.end),p=k(d);return t.createElement(c,e({},p,{ref:function(e){s(d.date).getTime()===T.current.getTime()&&p.ref(e)},type:"button",view:"ghost",size:"xs",disabled:d.disabled,className:r(g.day,(a={},a[g.selected]=n,a[g.range]=i,a[g.rangeStart]=h,a[g.rangeEnd]=E,a[g.transitLeft]=f,a[g.transitRight]=v,a[g.today]=_(d.date),a[g.firstDay]=y,a[g.lastDay]=x,a[g.event]=d.event,a[g.disabled]=d.disabled,a[g.muted]=d.muted,a[g.highlighted]=b&&u(d.date,b),a))}),d.date.getDate())}(d))})))}))))))};export{f as DaysTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DaysTable}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{DaysTable}from"./component.js";import"../../../tslib.es6-01e4cee9.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-01e4cee9.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-01e4cee9.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__-VKks",withShadow:"index-module_withShadow__m2PIV",inner:"index-module_inner__-Aep6",month:"index-module_month__aVSag",year:"index-module_year__ZXtKB",buttonContent:"index-module_buttonContent__xnYVf",monthOnly:"index-module_monthOnly__3hpyp",upDownIcon:"index-module_upDownIcon__-2CFa",arrow:"index-module_arrow__tCsej"},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,p=r.nextArrowVisible,h=void 0===p||p,w=r.onPrevArrowClick,v=r.onNextArrowClick,b=r.onMonthClick,x=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:w,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:b},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:x},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:v,"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-01e4cee9.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-01e4cee9.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as s}from"../../utils.js";import{SelectButton as m}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__Eq4Jn",i="index-module_button__XgrJs",c=function(c){var d=c.selectedMonth,l=c.months,p=void 0===l?[]:l,u=c.getMonthProps,f=c.selectedLocale,h=c.shortNames,j=o((function(e){return d&&r(d,e.date)?"selected":n(e.date)?"outlined":"default"}),[d]);return t.createElement("div",{className:a},p.map((function(o){return t.createElement(m,e({},u(o),{key:o.date.getMonth(),className:i,view:j(o)}),s(o.date,f,h))})))};export{c as MonthsTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-01e4cee9.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-01e4cee9.js";import o,{forwardRef as i}from"react";import s 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__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,c=i.view,_=void 0===c?"default":c,b=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},b,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(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-01e4cee9.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-01e4cee9.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__7bRtn",i="index-module_inner__LF4VE",m="index-module_button__e9zeg",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="."+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:x,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-01e4cee9.js";import"react";import"classnames";import"date-fns";import"date-fns/locale";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";
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { ChangeEvent, MouseEvent } from "react";
|
|
4
4
|
import { CalendarProps } from "../calendar/index";
|
|
5
5
|
import { MaskedInputProps } from "../masked-input/index";
|
|
6
|
-
type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' | '
|
|
6
|
+
type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' | 'rightAddons' | 'onBeforeDisplay'> & {
|
|
7
7
|
block?: boolean;
|
|
8
8
|
className?: string;
|
|
9
9
|
inputClassName?: string;
|
|
@@ -29,7 +29,7 @@ type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' |
|
|
|
29
29
|
onCalendarChange?: CalendarProps['onChange'];
|
|
30
30
|
dataTestId?: string;
|
|
31
31
|
};
|
|
32
|
-
declare const CalendarInput: React.ForwardRefExoticComponent<Omit<MaskedInputProps, "mask" | "value" | "rightAddons" | "onChange" | "
|
|
32
|
+
declare const CalendarInput: React.ForwardRefExoticComponent<Omit<MaskedInputProps, "mask" | "value" | "rightAddons" | "onChange" | "onBeforeDisplay"> & {
|
|
33
33
|
block?: boolean | undefined;
|
|
34
34
|
className?: string | undefined;
|
|
35
35
|
inputClassName?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-01e4cee9.js";import o,{forwardRef as n,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 d}from"../calendar/utils.js";import"date-fns";import{MaskedInput as c}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 g,SUPPORTS_INPUT_TYPE_DATE as h,NATIVE_DATE_FORMAT as b}from"./utils.js";import"date-fns/locale";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-48b90302.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";import"../toast-plate/component.js";import"../index-d4737940.js";import"../toast-notifier/use-timer.js";import"../index-c1424f7e.js";var x="index-module_component__pdVE2",y="index-module_block__wtVLz",_="index-module_calendarContainer__x7A2x",C="index-module_calendarIcon__muPk-",k="index-module_nativeInput__siME6",D=n((function(n,D){var w,E=n.block,M=void 0!==E&&E,N=n.className,I=n.inputClassName,P=n.defaultOpen,T=void 0!==P&&P,F=n.defaultMonth,V=n.defaultValue,O=void 0===V?"":V,A=n.calendarPosition,q=void 0===A?"popover":A,R=n.value,K=n.dataTestId,U=n.minDate,z=n.required,B=n.maxDate,H=n.calendarProps,L=void 0===H?{}:H,G=n.preventFlip,J=n.mobileMode,Q=void 0===J?"popover":J,S=n.wrapperRef,W=void 0===S?null:S,X=n.disabled,Y=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===(R=R&&R.split("-").length?R.split("-").reverse().join("."):R),ne=h&&"native"===Q,ae="input"===Q,re="static"===q&&!ae,ie="popover"===q&&!ne&&!ae,le=a(!1),pe=le[0],me=le[1],se=a(O),de=se[0],ce=se[1],ue=oe?de:R,fe=ue?v(ue).getTime():void 0,ve=d(fe,U,B),je=X||ee,ge=r(null),he=r(null),be=r(null),xe=r(null),ye=i((function(e){"Escape"===e.key&&me(!1)}),[]),_e=i((function(){pe||me(!0)}),[pe]),Ce=i((function(e){me(!0),!pe&&"INPUT"!==e.target.tagName&&xe.current&&xe.current.focus()}),[pe]),ke=i((function(e){xe.current&&!1===xe.current.contains(e.relatedTarget)&&me(!1)}),[]),De=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&xe.current&&(e.preventDefault(),xe.current.focus())}),[]),we=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&&ce(t),Y&&Y(e,{date:o,value:t.split(".").reverse().join("-")}))}),[$,Y,Z,oe]),Ee=i((function(e){var t=e.target.value,o=v(t);we(e,t,o,"input",j(t))}),[we]),Me=i((function(e){var t=v(e.target.value,b),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});we(e,o,t)}),[we]),Ne=i((function(e){we(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),me(!1)}),[we]),Ie=i((function(e){e.preventDefault()}),[]);l((function(){me(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(s,t({},L,{ref:xe,defaultMonth:F,value:ve?fe:void 0,onChange:Ne,minDate:U,maxDate:B})))}),[L,fe,F,Ne,Ie,ve,B,U]);return o.createElement("div",{ref:be,className:m(x,N,(w={},w[y]=M,w)),tabIndex:-1,onKeyDown:je?void 0:ye,onClick:je?void 0:_e,onFocus:je?void 0:Ce,onBlur:ke,"data-test-id":K},o.createElement(c,t({},te,{ref:p([D,ge]),wrapperRef:p([W,he]),className:I,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:g,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:C}),ne&&o.createElement("input",{type:"date",ref:p([D,ge]),defaultValue:O,onChange:Me,className:k})),onKeyDown:De,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&o.createElement(u,{open:pe,anchorElement:he.current,popperClassName:_,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:G},Pe()))}));export{D 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.es6-
|
|
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.es6-01e4cee9.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"date-fns/locale";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-48b90302.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";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../index-d4737940.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-c1424f7e.js";
|
package/dist/card/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-01e4cee9.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-43c8952c.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,s=void 0===n?"default":n,p=r.bottomAddons,a=r.images,l=void 0===a?[]:a,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,j=r.subtitle,u=r.titleAddons;return e.createElement("div",{className:t([m.component,m[s]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:s}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),u),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},j),p))};export{r as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../index-
|
|
1
|
+
import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../index-d4737940.js";import{ImageSizes as r}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../_commonjsHelpers-48b90302.js";import"../../use-image-render-component-43c8952c.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-01e4cee9.js";import"../../typography/title/component.js";import"../../colors.module-e91d54b0.js";import"../../common.module-66ec2a40.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var p=s.images,a=void 0===p?[]:p,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,j=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[j]])},a.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},a.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:a[0],resolution:r.m})))};export{s 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/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-01e4cee9.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-43c8952c.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";
|
|
@@ -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-c8d8cda8.js";import"../../typography/title/index.js";import"../../tslib.es6-01e4cee9.js";import"../../typography/title/component.js";import"../../colors.module-e91d54b0.js";import"../../common.module-66ec2a40.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-c8d8cda8";
|
package/dist/cell/base/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Base}from"../../component-
|
|
1
|
+
export{B as Base}from"../../component-c8d8cda8.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-01e4cee9.js";import"../../typography/title/component.js";import"../../colors.module-e91d54b0.js";import"../../common.module-66ec2a40.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-c8d8cda8.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-01e4cee9.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.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-c8d8cda8.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-01e4cee9.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.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-01e4cee9.js";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__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=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,h=o.children,p=o.className,O=o.dataTestId,f=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));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-01e4cee9.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-01e4cee9.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{h as l,i as m}from"../index-d4737940.js";import i from"classnames";import{useFocus as s}from"../hooks/useFocus/index.js";import"../_commonjsHelpers-48b90302.js";var c={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=a((function(a,r){var _,u=a.checked,b=a.label,x=a.hint,p=a.size,h=void 0===p?"m":p,k=a.align,f=void 0===k?"center":k,E=a.addons,N=a.block,g=a.onChange,I=a.className,v=a.name,j=a.disabled,C=a.dataTestId,y=a.indeterminate,z=void 0!==y&&y,D=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),O=t(null),T=s(O,"keyboard")[0];return d.createElement("label",{className:i(c.component,c[h],c[f],I,(_={},_[c.disabled]=j,_[c.checked]=u,_[c.indeterminate]=z,_[c.focused]=T,_[c.block]=N,_)),ref:o([O,r])},d.createElement("span",{className:c.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:j,checked:u,"data-test-id":C},D)),u&&d.createElement(l,null),z&&!u&&d.createElement("div",{className:c.indeterminateIcon},d.createElement(m,null))),(b||x)&&d.createElement("span",{className:c.content},b&&d.createElement("span",{className:c.label},b),x&&d.createElement("span",{className:c.hint},x)),E&&d.createElement("span",{className:c.addons},E))}));r.defaultProps={indeterminate:!1};export{r 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-01e4cee9.js";import"react";import"react-merge-refs";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";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-01e4cee9.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"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",m="index-module_subtitle__0PkbT",c=function(c){var l=c.title,s=c.subtitle,a=c.selected,d=void 0===a?[]:a,p=c.data,u=void 0===p?[]:p,v=c.onChange,g=c.columns,y=void 0===g?1:g,h=c.gr,j=void 0===h?20:h,x=c.gc,f=void 0===x?20:x,b=c.dataTestId,k=d||[],_=function(e){return b?"checkbox_"+b+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||s)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),s&&t.createElement(r.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),t.createElement(n,{columns:y,gr:j,gc:f},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{c as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-01e4cee9.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";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-e91d54b0.js";import"../common.module-66ec2a40.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-01e4cee9.js";import t,{useState as n}from"react";import{j as o}from"../index-d4737940.js";import r from"classnames";import{Checkbox as l}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"../_commonjsHelpers-48b90302.js";import"react-merge-refs";import"../hooks/useFocus/index.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-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,j=u.selected,_=u.checkableParent,b=u.collapsable,v=u.onChange,E=[],g=Array.isArray(j)?j:[];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&&E.push(t)}));var y=n(E),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?v(g.filter((function(e){return!t.includes(e)}))):v(e(e([],g),t))}))},F=function(e){var n,o,r=e.element;return _?t.createElement(l,{block:!0,checked:(n=r.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(r.childs.map((function(e){return e.id})))},label:""+r.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},r.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(F,{element:e}),b&&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:r(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(l,{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-01e4cee9.js";import"react";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.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-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{k as
|
|
1
|
+
import o from"react";import{k as e,l as t}from"../index-d4737940.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as m}from"../typography/component.js";import"../_commonjsHelpers-48b90302.js";import"../tslib.es6-01e4cee9.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-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i=function(t){var r=t.location,i=t.onClick;return o.createElement(o.Fragment,null,o.createElement(m.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:e,onClick:i,size:"s",view:"ghost"}))},s=function(e){var n=e.onClick;return o.createElement(r,{leftAddons:o.createElement(t,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{s as Addons,i as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{j as n}from"../index-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{j as n}from"../index-d4737940.js";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"../_commonjsHelpers-48b90302.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-01e4cee9.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-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",a="index-module_label__kuH6r",c="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,x=u.label,b=u.content,y=u.expanded,f=u.addons,g=u.children,h=u.disabled,v=o(y),E=v[0],w=v[1];return t((function(){w(y)}),[y]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:l},x&&e.createElement(s.Text,{className:a,color:"secondary",view:"title",weight:"medium"},x),b),e.createElement("div",{className:l},f,e.createElement(i,{onClick:function(){return w(!E)},className:r(c,(j={},j[d]=E,j)),disabled:h,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},g))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"../index-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"../index-d4737940.js";import"../_commonjsHelpers-48b90302.js";import"classnames";import"../collapse/component.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-01e4cee9.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-e91d54b0.js";import"../common.module-66ec2a40.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as u}from"react";import a from"classnames";import{a as c}from"../_commonjsHelpers-
|
|
1
|
+
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as u}from"react";import a from"classnames";import{a as c}from"../_commonjsHelpers-48b90302.js";import{ResizeObserver as l}from"resize-observer";import{Link as f}from"../link/component.js";import"../tslib.es6-01e4cee9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k="[object Null]",z="[object Undefined]",S=x?x.toStringTag:void 0;var C=function(e){return null==e?void 0===e?z:k:S&&S in Object(e)?T(e):N(e)};var L=function(e){return null!=e&&"object"==typeof e},H="[object Symbol]";var $=function(e){return"symbol"==typeof e||L(e)&&C(e)==H},D=NaN,F=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,M=/^0o[0-7]+$/i,P=parseInt;var U=function(e){if("number"==typeof e)return e;if($(e))return D;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=I.test(e);return n||M.test(e)?P(e.slice(2),n?2:8):F.test(e)?D:+e},W="Expected a function",A=Math.max,Q=Math.min;var R=function(e,t,n){var r,o,i,u,a,c,l=0,f=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(W);function m(t){var n=r,i=o;return r=o=void 0,l=t,u=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=i}function y(){var e=p();if(b(e))return h(e);a=setTimeout(y,function(e){var n=t-(e-c);return d?Q(n,i-(e-l)):n}(e))}function h(e){return a=void 0,v&&r?m(e):(r=o=void 0,u)}function j(){var e=p(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return function(e){return l=e,a=setTimeout(y,t),f?m(e):u}(c);if(d)return clearTimeout(a),a=setTimeout(y,t),m(c)}return void 0===a&&(a=setTimeout(y,t)),u}return t=U(t)||0,s(n)&&(f=!!n.leading,i=(d="maxWait"in n)?A(U(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),j.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=c=o=a=void 0},j.flush=function(){return void 0===a?u:h(p())},j},Y="index-module_collapse__ORa-f",q="index-module_content__UDk-m",B="index-module_expandedContent__iQszl",G="index-module_children_wrap__ekYCk",J=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=R((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new l(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=u((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:a(y,Y),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:a(q,h,(s={},s[B]=S,s)),style:$},e.createElement("div",{className:a(G),ref:O},b)),D&&e.createElement(f,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{J as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-48b90302.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-01e4cee9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|