@alphakits/ui 1.3.5 → 1.3.9
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-cd9eb70e.js → _commonjsHelpers-3e2d7ba0.js} +0 -0
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.d.ts +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.d.ts +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/cell/action/component.js +1 -1
- package/dist/cell/action/index.d.ts +1 -1
- package/dist/cell/action/index.js +1 -1
- package/dist/cell/autopayment/component.js +1 -1
- package/dist/cell/autopayment/index.d.ts +1 -1
- package/dist/cell/autopayment/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/catalog/component.js +1 -1
- package/dist/cell/catalog/index.d.ts +1 -1
- package/dist/cell/catalog/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.d.ts +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/cell/subscription/component.js +1 -1
- package/dist/cell/subscription/index.d.ts +1 -1
- package/dist/cell/subscription/index.js +1 -1
- package/dist/cell/transaction/component.js +1 -1
- package/dist/cell/transaction/index.js +1 -1
- package/dist/checkbox/component.d.ts +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/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-22639f47.js → colors.module-de146e83.js} +0 -0
- package/dist/{common.module-33138006.js → common.module-a8e01692.js} +0 -0
- package/dist/{component-4ecaaa6f.d.ts → component-0c25076d.d.ts} +0 -0
- package/dist/{component-4ecaaa6f.js → component-0c25076d.js} +0 -0
- package/dist/{contact-block-ab1613a3.d.ts → contact-block-cfe04d80.d.ts} +0 -0
- package/dist/{contact-block-ab1613a3.js → contact-block-cfe04d80.js} +0 -0
- package/dist/copy-button/component.d.ts +10 -0
- package/dist/copy-button/component.js +1 -0
- package/dist/copy-button/index.d.ts +1 -0
- package/dist/copy-button/index.js +1 -0
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/components/contacts-block.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/hooks/index.d.ts +1 -0
- package/dist/form/hooks/index.js +1 -0
- package/dist/form/hooks/use-crud-form-requests.d.ts +20 -0
- package/dist/form/hooks/use-crud-form-requests.js +1 -0
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.d.ts +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.d.ts +23 -0
- package/dist/form/templates/rest-form/index.js +1 -0
- 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-48e0a4f8.js → formik.esm-a384f10f.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-09704653.js → gutters.module-a1dcf2f5.js} +0 -0
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/icon-button/component.d.ts +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.ts +1 -0
- 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.d.ts +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.d.ts +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-4313a920.d.ts → parse-query-params-93174748.d.ts} +0 -0
- package/dist/{parse-query-params-4313a920.js → parse-query-params-93174748.js} +1 -1
- package/dist/photo-uploader/component.js +1 -1
- package/dist/photo-uploader/index.js +1 -1
- package/dist/photo-uploader-multiple/component.js +1 -1
- package/dist/photo-uploader-multiple/index.js +1 -1
- package/dist/picker-button/component.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.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.d.ts +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/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/suffix-input/component.d.ts +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-ellipse-button/component.js +1 -1
- package/dist/super-ellipse-button/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.d.ts +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.d.ts +12 -2
- 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.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.d.ts +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/{tslib.es6-453482d8.js → tslib.es6-9e9df1a1.js} +0 -0
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/with-suffix/component.d.ts +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-9e9df1a1.js";import r from"react";import{ChevronForwardS as o}from"alpha-cli-icons";import t from"classnames";import{Typography as a}from"../../../typography/component.js";import{Row as n}from"../row/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-de146e83.js";import"../../../common.module-a8e01692.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var d={header_row:"index-module_header_row__1Coio",head_cell:"index-module_head_cell__Huons",clickable:"index-module_clickable__1StIl",head_wrapper:"index-module_head_wrapper__5RA17",arrow:"index-module_arrow__28ZHq",accent:"index-module_accent__1mJqP",up:"index-module_up__1VJxJ",down:"index-module_down__23K1t"},l=function(l){var i=l.headerGroups,m=l.addParam,s=l.params;return r.createElement(r.Fragment,null,i.map((function(l){return r.createElement(n,e({className:d.header_row},l.getHeaderGroupProps()),l.headers.map((function(e){var n,l;e.isSorted=(null==s?void 0:s.sort)===e.id,e.isSortedDesc="ASC"===(null==s?void 0:s.order);var i=!e.isSorted||e.isSortedDesc?"down":"up";return r.createElement("th",{className:t(d.head_cell,(n={},n[d.clickable]=e.enableSort,n)),align:"left",onClick:function(){return function(e){return e.enableSort?(e.isSorted&&e.isSortedDesc?m({sort:void 0,order:void 0}):m({sort:e.id,order:e.isSorted?"ASC":"DESC"}),null):null}(e)}},r.createElement(a.Text,{className:d.head_wrapper,tag:"div",view:"caps",color:"secondary",weight:"medium"},e.render("Header").toUpperCase(),e.enableSort&&r.createElement("span",{className:t(d.arrow,d[i],(l={},l[d.accent]=e.isSorted,l))},r.createElement(o,null))))})))})))};export{l as Cells};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-
|
|
1
|
+
import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-9e9df1a1.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-de146e83.js";import"../../../common.module-a8e01692.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_empty_list__428Kf",p=function(p){var r=p.language;return t.createElement("div",{className:m},t.createElement(e.Text,{view:"title"},o(r)("emptyList")))};export{p as EmptyList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{Typography as t}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-9e9df1a1.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-de146e83.js";import"../../../common.module-a8e01692.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var r="index-module_empty_list__eV-Yg",m=function(m){var p=m.language;return e.createElement("div",{className:r},e.createElement(t.Text,{view:"title"},o(p)("error")))};export{m as Error};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{ChevronForwardS as t}from"alpha-cli-icons";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as a}from"../../../typography/component.js";import{translate as r}from"../../languages/index.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import{ChevronForwardS as t}from"alpha-cli-icons";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as a}from"../../../typography/component.js";import{translate as r}from"../../languages/index.js";import"../../../tslib.es6-9e9df1a1.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-de146e83.js";import"../../../common.module-a8e01692.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var i="index-module_pagination_wrap__1Pf2T",l="index-module_pagination__3z3iJ",m="index-module_pages_info__3YNLY",s="index-module_prev_btn__CQ4VT",c="index-module_disabled_btn__1_hCe",p="index-module_pagination_btn__1naj1",u="index-module_btn__4QUl7",d="index-module_active__jRfaP",g="index-module_select__hGK1a";var _=function(_){var f,h,v,x,E,j=_.pagesCount,y=_.currentPage,b=_.recordsPerPage,N=void 0===b?30:b,C=_.total,k=_.language,w=_.addParam,P=function(e,t){for(var n=e-2,o=e+2+1,a=[],r=[],i=0,l=1;l<=t;l++)(1===l||l===t||l>=n&&l<o)&&a.push(l);return a.forEach((function(e){i&&(e-i==2?r.push(i+1):e-i!=1&&r.push("...")),r.push(e),i=e})),r}(y,j),T=1===y,F=y===j;return e.createElement("div",{className:i},e.createElement("div",{className:m},(v=1===y?1:(y-1)*N,E=(x=N*y)>C?C:x,e.createElement(a.Text,{view:"title",weight:"medium",color:"secondary"},r(k)("resultsFromTo")," ",r(k)("from")," ",e.createElement("strong",null,v," "),r(k)("to")," ",e.createElement("strong",null,E," "),r(k)("totalCount")," ",e.createElement("strong",null,C," ")))),P.length>1&&e.createElement("div",{className:l},e.createElement(o,{className:n(s,u,(f={},f[c]=T,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return w({page:y-1})},disabled:T}),P.map((function(t,a){var r;return Number.isFinite(t)?e.createElement(o,{className:n(p,(r={},r[d]=t===y,r)),size:"xs",view:"ghost",key:t,onClick:function(){return w({page:t})}},t):e.createElement(o,{key:t+a,className:n(p),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(u,(h={},h[c]=F,h)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){w({page:y+1})},disabled:F})),e.createElement("select",{value:N,className:g,onChange:function(e){w({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},r(k)("resultsOnPage")+" "+t+" ")}))))};export{_ as Pagination};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,a as e}from"../../../tslib.es6-
|
|
1
|
+
import{_ as a,a as e}from"../../../tslib.es6-9e9df1a1.js";import r from"react";import t from"classnames";var s="index-module_row__1M9Ag",l="index-module_clickable__1L76r",c=function(c){var i,o=c.children,m=c.onClick,n=c.dataTestID,d=c.className,_=a(c,["children","onClick","dataTestID","className"]);return r.createElement("tr",e({onClick:m},_,{"data-test-id":n,className:t(s,d,(i={},i[l]=!!m,i))}),o)};export{c as Row};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Row}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Row}from"./component.js";import"../../../tslib.es6-9e9df1a1.js";import"react";import"classnames";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-9e9df1a1.js";import o from"react";import t from"classnames";import{EmptyList as r}from"../empty-list/index.js";import{Error as n}from"../error/index.js";import{Loading as m}from"../loading/index.js";import{Row as a}from"../row/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-de146e83.js";import"../../../common.module-a8e01692.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../languages/index.js";import"../../../loader/component.js";var p={empty_list:"index-module_empty_list__2gH8c"},i=function(i){var l=i.onRowClick,s=i.prepareRow,c=i.rows,g=i.loading,d=i.error,u=i.language;return d?o.createElement(n,{language:u}):g?o.createElement(m,null):c.length?o.createElement(o.Fragment,null,c.map((function(r){var n;s(r);var m=r.getRowProps().key;return o.createElement(a,e({dataTestID:""+m,onClick:function(){l&&l({recordId:r.original.id})},className:t(p.table_row,(n={},n[p.clickable]=!!l,n))},r.getRowProps()),r.cells.map((function(e){return e.render("Cell")})))}))):o.createElement(r,{language:u})};export{i as Rows};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{SearchM as t,CloseS as n,PlusS as a,ControllerS as l}from"alpha-cli-icons";import{Button as o}from"../../../button/component.js";import{translate as r}from"../../languages/index.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import{SearchM as t,CloseS as n,PlusS as a,ControllerS as l}from"alpha-cli-icons";import{Button as o}from"../../../button/component.js";import{translate as r}from"../../languages/index.js";import"../../../tslib.es6-9e9df1a1.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var i="index-module_table_header__3NmqR",s="index-module_actions__2WmdB",m="index-module_input__2iguo",c="index-module_input_clear_btn__3Reyi",d="index-module_tags__EbdAH",u="index-module_buttons__2n5aF",p=function(p){var _=p.tags,x=p.searchPlaceholder,v=void 0===x?"Type something..":x,E=p.searchText,g=p.addParam,f=p.onCreateClick,h=p.onDownloadClick,C=p.onFiltersClick,k=p.language;return e.createElement("div",{className:i},e.createElement("div",{className:s},e.createElement("div",{className:m},e.createElement(t,null),e.createElement("input",{autoComplete:"none",value:E,onChange:function(e){g({searchText:e.target.value||void 0,page:1})},placeholder:v,type:"text"}),E&&e.createElement(o,{className:c,leftAddons:e.createElement(n,null),view:"ghost",onClick:function(){return g({searchText:""})}})),e.createElement("div",{className:u},!!f&&e.createElement(o,{dataTestId:"createbtn",onClick:f,view:"primary",leftAddons:e.createElement(a,null),size:"xs"},r(k)("create")),!!h&&e.createElement(o,{view:"outlined",size:"xs",onClick:h},r(k)("export")),!!C&&e.createElement(o,{leftAddons:e.createElement(l,null),onClick:C,view:"outlined",size:"xs"},r(k)("filters")))),!!_.length&&e.createElement("div",{className:d},_))};export{p as TableHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,d as r}from"../../tslib.es6-
|
|
1
|
+
import{c as t,d as r}from"../../tslib.es6-9e9df1a1.js";import{useState as e,useCallback as a,useEffect as s}from"react";import{getQueryFromUrl as n}from"../utils/get-query-from-url.js";import"../../parse-query-params-93174748.js";import"../../_commonjsHelpers-3e2d7ba0.js";function o(o){var i=this,u=e(!1),c=u[0],m=u[1],f=e(!1),l=f[0],p=f[1],d=e([]),h=d[0],j=d[1],b=e(0),g=b[0],v=b[1],y=e(1),q=y[0],P=y[1],w=e(),x=w[0],C=w[1],D=a((function(){return t(i,void 0,void 0,(function(){var t,e,a,s;return r(this,(function(r){switch(r.label){case 0:if(t=n(),C(t),!o)return[2];p(!1),m(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,o(t)];case 2:return e=r.sent().data,a=e.items,s=e.meta,v(s.totalItems),P(s.totalPages),j(a),[3,5];case 3:return r.sent(),p(!0),[3,5];case 4:return m(!1),[7];case 5:return[2]}}))}))}),[o]);return s((function(){D()}),[]),{loading:c,error:l,asyncData:h,total:g,params:x,pagesCount:q,fetch:D,setParams:C}}export{o as useTableData};
|
package/dist/table/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Table}from"./component.js";export{Cell}from"./components/cell/component.js";export{Row}from"./components/row/component.js";import"./table.js";import"../tslib.es6-
|
|
1
|
+
export{Table}from"./component.js";export{Cell}from"./components/cell/component.js";export{Row}from"./components/row/component.js";import"./table.js";import"../tslib.es6-9e9df1a1.js";import"react";import"react-table";import"./components/cells/index.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-93174748.js";import"../_commonjsHelpers-3e2d7ba0.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"../component-0c25076d.js";import"ts-keycode-enum";import"../__internal/utils/getDataTestId.js";import"../super-ellipse/component.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";import"../divider/component.js";import"../cell/pure/component.js";import"../avatar/component.js";import"../spinner/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../cell/transaction/component.js";import"../amount/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
|
package/dist/table/table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-9e9df1a1.js";import o,{useState as t,useEffect as r}from"react";import{useTable as a}from"react-table";import{Cells as s}from"./components/cells/index.js";import{Pagination as i}from"./components/pagination/index.js";import{Rows as n}from"./components/rows/index.js";import{TableHeader as m}from"./components/table-header/index.js";import{useTableData as l}from"./hooks/use-table-data.js";import{addQueryParam as p}from"./utils/add-query-param.js";import{getTags as c}from"./utils/get-tags.js";import{removeQueryParam as d}from"./utils/remove-query-param.js";import{resetQueryParam as u}from"./utils/reset-query-param.js";import"../parse-query-params-93174748.js";import{serializeData as g}from"./utils/serialize-data.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./languages/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./utils/get-query-from-url.js";import"./utils/set-query-to-url.js";import"../_commonjsHelpers-3e2d7ba0.js";import"./utils/sort-array.js";import"./utils/is-object.js";var j="index-module_table_wrapper__2Ws0b",f="index-module_table__3VsC2",y=function(y){var h=y.columns,b=y.searchPlaceholder,x=void 0===b?"Поиск по таблице":b,C=y.loadedData,k=y.tagsBuilder,w=y.promise,P=y.onRowClick,v=y.onCreateClick,E=y.onFiltersClick,_=y.onDownloadClick,q=y.language,D=l(w),T=D.loading,R=D.error,B=D.asyncData,F=D.total,G=D.params,N=D.pagesCount,V=D.fetch,z=t([]),H=z[0],S=z[1];r((function(){S([]),setTimeout((function(){S(C?g(C,G):B)}))}),[B,C,G]);var W=function(){return E?E({submitCallback:function(e){return u(e),void V()},initialValues:G}):null},A=function(e){p(e),V()},I=c({params:G,onDelete:function(e,o){d(e,o),V()},tagsBuilder:k,onClick:W}),J=a({columns:h,data:H}),K=J.getTableProps,L=J.getTableBodyProps,M=J.headerGroups,O=J.rows,Q=J.prepareRow;return o.createElement("div",{className:j},o.createElement(m,{language:q,searchText:G?G.searchText:"",addParam:A,searchPlaceholder:x,tags:I,onCreateClick:v,onDownloadClick:_,onFiltersClick:W}),o.createElement("div",{className:f},o.createElement("table",e({},K(),{cellSpacing:"0",cellPadding:"0",style:{width:"100%"}}),o.createElement("thead",null,o.createElement(s,{addParam:A,headerGroups:M,params:G})),o.createElement("tbody",e({},L()),o.createElement(n,{language:q,prepareRow:Q,onRowClick:P,rows:O,error:R,loading:T})))),o.createElement(i,{language:q,currentPage:G?+G.page:1,recordsPerPage:G?+G.limit:10,pagesCount:+N,addParam:A,total:+F}))};export{y as Table};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-9e9df1a1.js";import{p as s,q as o}from"../../parse-query-params-93174748.js";import{setQueryToUrl as a}from"./set-query-to-url.js";import"../../_commonjsHelpers-3e2d7ba0.js";function e(e){var m=s();a(o(r(r({},m),e)))}export{e as addQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r}from"../../tslib.es6-
|
|
1
|
+
import{_ as r}from"../../tslib.es6-9e9df1a1.js";import{p as e}from"../../parse-query-params-93174748.js";import"../../_commonjsHelpers-3e2d7ba0.js";function t(){var t=e(),s=t.limit,o=t.page,a=t.searchText,i=t.sort,m=t.order,p={where:r(t,["limit","page","searchText","sort","order"]),limit:Number(s)||10,page:Number(o)||1};return"ASC"!==m&&"DESC"!==m||(p.order=m),"string"==typeof a&&(p.searchText=a),"string"==typeof i&&(p.sort=i),p}export{t as getQueryFromUrl};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./add-query-param";
|
|
2
2
|
export * from "./get-query-from-url";
|
|
3
3
|
export * from "./get-tags";
|
|
4
|
-
export * from "../../parse-query-params-
|
|
4
|
+
export * from "../../parse-query-params-93174748";
|
|
5
5
|
export * from "./remove-query-param";
|
|
6
6
|
export * from "./reset-query-param";
|
|
7
7
|
export * from "./set-query-to-url";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{addQueryParam}from"./add-query-param.js";export{getQueryFromUrl}from"./get-query-from-url.js";export{getTags}from"./get-tags.js";export{p as parseQueryParams}from"../../parse-query-params-
|
|
1
|
+
export{addQueryParam}from"./add-query-param.js";export{getQueryFromUrl}from"./get-query-from-url.js";export{getTags}from"./get-tags.js";export{p as parseQueryParams}from"../../parse-query-params-93174748.js";export{removeQueryParam}from"./remove-query-param.js";export{resetQueryParam}from"./reset-query-param.js";export{setQueryToUrl}from"./set-query-to-url.js";export{serializeData}from"./serialize-data.js";import"../../tslib.es6-9e9df1a1.js";import"../../_commonjsHelpers-3e2d7ba0.js";import"./sort-array.js";import"./is-object.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{p as parseQueryParams}from"../../parse-query-params-
|
|
1
|
+
export{p as parseQueryParams}from"../../parse-query-params-93174748.js";import"../../_commonjsHelpers-3e2d7ba0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-9e9df1a1.js";var e={dev:{limit:"_limit",page:"_page",sort:"_sort",order:"_order",searchText:"q"},prod:{limit:"limit",page:"page",sort:"sort",order:"order",searchText:"searchText"}};function t(t,o){return Object.entries(t).reduce((function(t,i){var a,s=i[0],d=i[1],c=e[o][s]||s;return r(((a={})[c]=d,a),t)}),{})}export{t as queryAdapter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,q as e}from"../../parse-query-params-
|
|
1
|
+
import{p as r,q as e}from"../../parse-query-params-93174748.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-3e2d7ba0.js";function s(s,t){var a=r();Array.isArray(a[s])&&t?a[s]=a[s].filter((function(r){return r!==t})):delete a[s],o(e(a))}export{s as removeQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-9e9df1a1.js";import{p as e,q as t}from"../../parse-query-params-93174748.js";import{setQueryToUrl as s}from"./set-query-to-url.js";import"../../_commonjsHelpers-3e2d7ba0.js";function o(o){var a=Object.fromEntries(Object.entries(o).filter((function(r){return""!==r[1]}))),i=e(),m=i.searchText,p=i.order,f=i.sort;s(t(r({limit:10,page:1,searchText:m,order:p,sort:f},a)))}export{o as resetQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{CloseMarkM as t,CheckmarkRoudedM as o,ClockRoundM as r,AlertCircleM as m}from"alpha-cli-icons";import n from"classnames";import{Typography as a}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import{CloseMarkM as t,CheckmarkRoudedM as o,ClockRoundM as r,AlertCircleM as m}from"alpha-cli-icons";import n from"classnames";import{Typography as a}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_icon__K7YrF",l="index-module_text__2HEoz",p={negative:e.createElement(t,null),positive:e.createElement(o,null),secondary:e.createElement(r,null),accent:e.createElement(t,null),attention:e.createElement(m,null)},c=function(t){var o=t.text,r=t.view,m=void 0===r?"secondary":r,c=t.className;return e.createElement(a.Text,{className:n(l,c),tag:"div",view:"caps",weight:"medium",color:m},e.createElement("span",{className:i},p[m])," ",o)};export{c as TableStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TableStatus}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{TableStatus}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/tag/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{CrossCompactM as t}from"alpha-cli-icons";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r={tag:"index-module_tag__3K8Ul",s:"index-module_s__2mpbc",m:"index-module_m__3rDzv",show_cross:"index-module_show_cross__3XM5X",text:"index-module_text__3ztOa",primary:"index-module_primary__wgQ3Q","primary-inverted":"index-module_primary-inverted__2Teca"},m=function(m){var a,s=m.text,n=m.onClick,p=m.onCloseClick,l=m.view,c=void 0===l?"primary":l,d=m.dataTestId,_=m.size,u=void 0===_?"m":_,y=m.className;return e.createElement("button",{type:"button","data-test-id":d,onClick:n,disabled:!n&&!p,className:o(r.tag,r[c],r[u],(a={},a[r.show_cross]=!!p,a),y)},e.createElement(i.Text,{className:r.text,view:"caps",weight:"medium",color:c},s),!!p&&e.createElement("button",{"data-test-id":d+"_close",type:"button","aria-label":"close-tag",onClick:function(e){e.stopPropagation(),p()}},e.createElement(t,null)))};export{m as Tag};
|
package/dist/tag/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tag}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Tag}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Tag as t}from"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import o from"react";import{Tag as t}from"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var e="index-module_tags__3C3tK",i=function(i){var r=i.tags,p=i.view,m=void 0===p?"primary":p,n=i.onClick,s=i.onCloseClick;return o.createElement("div",{className:e},(null==r?void 0:r.length)&&r.map((function(e){return o.createElement(t,{key:e,text:e,onClick:n,onCloseClick:s,view:m})})))};export{i as TagsList};
|
package/dist/tags-list/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"../tslib.es6-
|
|
1
|
+
import{a as t}from"../tslib.es6-9e9df1a1.js";import e,{useState as o}from"react";import{AmountInput as r}from"../amount-input/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{ListAllert as m}from"../list-allert/component.js";import{Select as i}from"../select/component.js";import"classnames";import"../select/components/base-select/component.js";import"../form-control/component.js";import"react-virtual";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/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"../amount-input/utils/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../select/utils.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";var s="index-module_allert__3dJD1",p=function(p){var c=p.price,a=p.onChange,l=p.error,u=p.minLabel,j=void 0===u?"Minimal players":u,d=p.maxLabel,f=void 0===d?"Maximum players":d,y=p.inputPrefix,g=void 0===y?"чел.":y,b=p.suffix,v=void 0===b?"€":b,x=p.t,h=Object.entries(c||{}),k=o(h[0]&&h[0][0]||0),N=k[0],P=k[1],_=o(h[h.length-1]&&h[h.length-1][0]||0),E=_[0],w=_[1],C=function(t){for(var e=t.minPlayers,o=t.maxPlayers,r=t.totalPrice,n={},m=+e;m<=+o;m++)n[m]=r[m]||0;return n},I=Array.from({length:Number(E)},(function(t,e){var o=e+1;return{key:o,content:o+" "+x("man",{count:o})}})),T=Array.from({length:Number(50)},(function(t,e){var o=e+1;return{key:o,content:o+" "+x("man",{count:o})}})).filter((function(t){return Number(t.key)>=Number(N)}));return e.createElement(n,{columns:1,gr:16,gc:0},e.createElement(i,{dataTestId:"min_players",label:j,block:!0,options:I,selected:N.toString(),onChange:function(t){var e=t.selected,o=null==e?void 0:e.key;o&&(P(o),Number(o)<=Number(E)&&a(C({minPlayers:o,maxPlayers:E,totalPrice:c})))},required:!0}),e.createElement(i,{dataTestId:"max_players",label:f,options:T,selected:E.toString(),onChange:function(t){var e=t.selected,o=null==e?void 0:e.key;o&&(w(o),Number(o)>=Number(N)&&a(C({minPlayers:N,maxPlayers:o,totalPrice:c})))},required:!0}),Number(N)<=Number(E)&&e.createElement(n,{columns:3,gr:16,gc:16},h.map((function(o){return e.createElement(r,{dataTestId:"price_"+o[0],key:o[0],label:o[0]+" "+g,value:Number(o[1]),suffix:v,onChange:function(e,r){var n,m=r.value,i=1*Number(m)||0,s=o[0];a(t(t({},c),((n={})[s]=null==i?void 0:i.toString(),n)))},required:!0,block:!0})}))),l&&e.createElement(m,{className:s,text:l,view:"negative"}))};export{p as TariffBuilder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TariffBuilder}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{TariffBuilder}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"../amount-input/component.js";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"../amount-input/utils/index.js";import"../flex-columns/component.js";import"../list-allert/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";
|
|
@@ -29,7 +29,7 @@ type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' |
|
|
|
29
29
|
onHeightChange?: (height?: number) => void;
|
|
30
30
|
dataTestId?: string;
|
|
31
31
|
};
|
|
32
|
-
declare const Textarea: React.ForwardRefExoticComponent<Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
|
32
|
+
declare const Textarea: React.ForwardRefExoticComponent<Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "className" | "form" | "slot" | "title" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "name" | "required" | "autoComplete" | "maxLength" | "minLength" | "readOnly" | "wrap" | "rows" | "cols" | "dirName"> & {
|
|
33
33
|
value?: string | undefined;
|
|
34
34
|
defaultValue?: string | undefined;
|
|
35
35
|
required?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-9e9df1a1.js";import n,{useLayoutEffect as o,useEffect as r,useRef as i,useCallback as a,forwardRef as d,createElement as l,useState as s}from"react";import u from"react-merge-refs";import c from"classnames";import{FormControl as m}from"../form-control/component.js";import{useFocus as f}from"../hooks/useFocus/index.js";function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h.apply(this,arguments)}var g="undefined"!=typeof document?o:r,p=function(e,t){"function"!=typeof e?e.current=t:e(t)},x={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},b=function(e){Object.keys(x).forEach((function(t){e.style.setProperty(t,x[t],"important")}))},v=null;var w=function(){},z=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],y="undefined"!=typeof document&&!!document.documentElement.currentStyle,_=function(e){var t,n,r=(n=i(t=e),g((function(){n.current=t})),n);o((function(){var e=function(e){r.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},C=d((function(e,t){var n=e.cacheMeasurements,r=e.maxRows,d=e.minRows,s=e.onChange,u=void 0===s?w:s,c=e.onHeightChange,m=void 0===c?w:c,f=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);if("production"!==process.env.NODE_ENV&&f.style){if("maxHeight"in f.style)throw new Error("Using `style.maxHeight` for <TextareaAutosize/> is not supported. Please use `maxRows`.");if("minHeight"in f.style)throw new Error("Using `style.minHeight` for <TextareaAutosize/> is not supported. Please use `minRows`.")}var g=void 0!==f.value,x=i(null),C=function(e,t){var n=i();return a((function(o){e.current=o,n.current&&p(n.current,null),n.current=t,t&&p(t,o)}),[t])}(x,t),R=i(0),S=i(),H=function(){var e=x.current,t=n&&S.current?S.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,o=(n=t,z.reduce((function(e,t){return e[t]=n[t],e}),{})),r=o.boxSizing;return""===r?null:(y&&"border-box"===r&&(o.width=parseFloat(o.width)+parseFloat(o.borderRightWidth)+parseFloat(o.borderLeftWidth)+parseFloat(o.paddingRight)+parseFloat(o.paddingLeft)+"px"),{sizingStyle:o,paddingSize:parseFloat(o.paddingBottom)+parseFloat(o.paddingTop),borderSize:parseFloat(o.borderBottomWidth)+parseFloat(o.borderTopWidth)})}(e);if(t){S.current=t;var o=function(e,t,n,o){void 0===n&&(n=1),void 0===o&&(o=1/0),v||((v=document.createElement("textarea")).setAttribute("tabindex","-1"),v.setAttribute("aria-hidden","true"),b(v)),null===v.parentNode&&document.body.appendChild(v);var r=e.paddingSize,i=e.borderSize,a=e.sizingStyle,d=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;v.style[t]=a[t]})),b(v),v.value=t;var l=function(e,t){var n=v.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);v.value="x";var s=v.scrollHeight-r,u=s*n;"border-box"===d&&(u=u+r+i),l=Math.max(u,l);var c=s*o;return"border-box"===d&&(c=c+r+i),[l=Math.min(c,l),s]}(t,e.value||e.placeholder||"x",d,r),i=o[0],a=o[1];R.current!==i&&(R.current=i,e.style.setProperty("height",i+"px","important"),m(i,{rowHeight:a}))}};return"undefined"!=typeof document&&(o(H),_(H)),l("textarea",h({},f,{onChange:function(e){g||H(),u(e)},ref:C}))})),R={textarea:"index-module_textarea__10WiX",s:"index-module_s__mB-Lv",m:"index-module_m__GBkw0",l:"index-module_l__ZR1ow",hasLabel:"index-module_hasLabel__1xWGU",resizeVertical:"index-module_resizeVertical__1xb4Z",focusVisible:"index-module_focusVisible__2wEmF",filled:"index-module_filled__3c6uz",counter:"index-module_counter__ibP6v"},S=n.forwardRef((function(o,d){var l,h,g=o.autoComplete,p=void 0===g?"on":g,x=o.autosize,b=void 0===x||x,v=o.size,w=void 0===v?"s":v,z=o.block,y=void 0!==z&&z,_=o.bottomAddons,S=o.fieldClassName,H=o.className,E=o.dataTestId,F=o.disabled,L=o.error,A=o.hint,N=o.textareaClassName,k=o.label,B=o.leftAddons,W=o.onFocus,T=o.required,V=o.onBlur,j=o.onChange,O=o.onHeightChange,P=o.rightAddons,M=o.maxRows,q=o.minRows,I=o.maxHeight,U=o.resize,G=void 0===U?"none":U,Z=o.value,D=o.defaultValue,X=o.maxLength,J=o.counter,K=o.rows,Q=void 0===K?b?1:3:K,Y=e(o,["autoComplete","autosize","size","block","bottomAddons","fieldClassName","className","dataTestId","disabled","error","hint","textareaClassName","label","leftAddons","onFocus","required","onBlur","onChange","onHeightChange","rightAddons","maxRows","minRows","maxHeight","resize","value","defaultValue","maxLength","counter","rows"]),$=void 0===Z,ee=i(null),te=s(!1),ne=te[0],oe=te[1],re=s(D||""),ie=re[0],ae=re[1],de=f(ee,"keyboard")[0],le=Boolean($?ie:Z);r((function(){b&&I&&ee.current&&ee.current.style&&(ee.current.style.maxHeight=I+"px")}),[ee,b,I]);var se=a((function(e){oe(!0),W&&W(e)}),[W]),ue=a((function(e){oe(!1),V&&V(e)}),[V]),ce=a((function(e){j&&j(e,{value:e.target.value}),$&&ae(e.target.value)}),[j,$]),me=t(t({},Y),{className:c(R.textarea,R[w],(l={},l[R.hasLabel]=k,l[R.filled]=le,l[R.resizeVertical]="vertical"===G,l),N),autoComplete:p,disabled:F,onBlur:ue,onFocus:se,onChange:ce,value:$?ie:Z,rows:Q,ref:u([d,ee]),"data-test-id":E});return n.createElement(m,{className:c(H),fieldClassName:c(S,(h={},h[R.focusVisible]=de,h)),size:w,block:y,required:T,disabled:F,filled:le||ne,focused:ne,error:L,label:k,hint:A,leftAddons:B,rightAddons:P,bottomAddons:_},b?n.createElement(C,t({},me,{maxLength:X,maxRows:M,minRows:q,onHeightChange:O})):n.createElement("textarea",t({maxLength:X},me,{style:{maxHeight:I}})),J&&n.createElement("span",{className:R.counter},($?ie.length:null==Z?void 0:Z.length)+" / "+(X||"-")))}));S.defaultProps={autoComplete:"on",autosize:!0,size:"s",block:!1,resize:"none"};export{S as Textarea};
|
package/dist/textarea/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Textarea}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Textarea}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"react-merge-refs";import"classnames";import"../form-control/component.js";import"../hooks/useFocus/index.js";
|
package/dist/toast/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-9e9df1a1.js";import t,{forwardRef as n,useRef as r,useCallback as i,useEffect as s}from"react";import m from"react-merge-refs";import{CSSTransition as a}from"react-transition-group";import c from"classnames";import{useClickOutside as l}from"../hooks/useClickOutside/index.js";import{usePrevious as u}from"../hooks/usePrevious/index.js";import{ToastPlate as p}from"../toast-plate/component.js";import{Popover as f}from"../popover/component.js";import{Portal as d}from"../portal/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-popper";import"../stack/context.js";import"../stack/component.js";import"react-dom";import"../portal/utils.js";var _="index-module_toastPlate__1tURa",x="index-module_popover__2s94c",v="index-module_block__1LQ2N",j="index-module_fixed__2VKTR",E={enter:"index-module_enter__1HqJ_",enterActive:"index-module_enterActive__24lwm",exit:"index-module_exit__1lF2R",exitActive:"index-module_exitActive__1DwuN"},C=n((function(n,C){var h,k=n.anchorElement,b=n.position,N=n.offset,T=n.open,g=n.autoCloseDelay,y=void 0===g?3e3:g,M=n.className,P=n.bottomOffset,w=n.style,A=void 0===w?{}:w,L=n.block,O=n.onMouseEnter,D=n.onMouseLeave,R=n.onTouchStart,S=n.onClose,F=n.getPortalContainer,q=e(n,["anchorElement","position","offset","open","autoCloseDelay","className","bottomOffset","style","block","onMouseEnter","onMouseLeave","onTouchStart","onClose","getPortalContainer"]),H=r(null),J=r(0),K=u(T),Q=i((function(){clearTimeout(J.current),J.current=window.setTimeout(S,y)}),[y,S]),U=i((function(){clearTimeout(J.current)}),[]),V=i((function(e){U(),O&&O(e)}),[O,U]),z=i((function(e){Q(),D&&D(e)}),[D,Q]),B=i((function(e){U(),R&&R(e)}),[R,U]),G=i((function(){S(),U()}),[S,U]);l(H,G),s((function(){return T!==K&&T&&Q(),function(){U()}}),[T,K,Q,U]);var I={block:L,onClose:S,onMouseEnter:V,onMouseLeave:z,onTouchStart:B,ref:m([C,H])};return k?t.createElement(f,{open:T,anchorElement:k,position:b,offset:N,popperClassName:c(x,(h={},h[v]=L,h)),transition:{timeout:150},getPortalContainer:F},t.createElement(p,o({},q,{style:A,className:M},I))):t.createElement(d,{getPortalContainer:F},t.createElement(a,{unmountOnExit:!0,in:T,timeout:150,classNames:E},t.createElement(p,o({},q,{className:c(j,_,M),style:o(o({},A),{bottom:P&&P+"px"})},I))))}));export{C as Toast};
|
package/dist/toast/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Toast}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Toast}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"react-merge-refs";import"react-transition-group";import"classnames";import"../hooks/useClickOutside/index.js";import"../hooks/usePrevious/index.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/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{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-9e9df1a1.js";import o from"react";import n from"react-dom";import r from"classnames";import{ToastPlate as s}from"../toast-plate/component.js";import{useTimer as i}from"./use-timer.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,m="index-module_notificationComponent__372lU",l="index-module_isVisible__3Qu8J",d="index-module_toastContent__3Vxkc";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var u=function(u){var p,c=u.className;u.children;var f=u.offset,v=void 0===f?108:f,h=u.hasCloser,C=void 0===h||h;u.onClose;var _=u.text;u.onMouseEnter,u.onMouseLeave;var x=u.style,b=u.delay,y=void 0===b?3e3:b,E=e(u,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","delay"]);if("undefined"==typeof window)return null;a.setAttribute("style","position: absolute; top: "+v+"px; right: 30px");var j=document.createElement("div");j.setAttribute("id","toast_wrap-"+Math.random()),j.setAttribute("style"," margin-bottom: 18px"),a.appendChild(j);var g=function(){a.removeChild(j)},w=i(g,y),M=w.pause,A=w.resume;return j.addEventListener("mouseenter",(function(){M()})),j.addEventListener("mouseleave",(function(){A()})),n.render(o.createElement(s,t({hasCloser:C,className:r(m,(p={},p[l]=!0,p),c),contentClassName:d,style:t({right:0,position:"relative"},x),role:"alert",onClose:g},E),_),j),null};export{u as ToastNotifier};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastNotifier}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastNotifier}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-9e9df1a1.js";import o,{forwardRef as n,useCallback as a}from"react";import{CloseS as l}from"alpha-cli-icons";import i from"classnames";import{Button as s}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var _={component:"index-module_component__1-bP3",hasCloser:"index-module_hasCloser__1tXHy",contentWrap:"index-module_contentWrap__2OfQM",block:"index-module_block__1aVTZ",content:"index-module_content__3WQJx",actionSection:"index-module_actionSection__2uYWg",leftAddons:"index-module_leftAddons__dPWvX",title:"index-module_title__3s4Iy",children:"index-module_children__20qcv",closeButton:"index-module_closeButton__2rWck",negative:"index-module_negative__34lhl",positive:"index-module_positive__2B8L6",toast_enter:"index-module_toast_enter__-zNmP",toast_active_enter:"index-module_toast_active_enter__23TeH",toast_done_enter:"index-module_toast_done_enter__3mlJ0",toast_exit:"index-module_toast_exit__3Q1-3",toast_active_exit:"index-module_toast_active_exit__aBjiS",toast_done_exit:"index-module_toast_done_exit__2LVf4"},d=n((function(n,d){var c,m=n.dataTestId,r=n.className,u=n.contentClassName,x=n.hasCloser;n.leftAddons;var v=n.view,p=void 0===v?"default":v,f=n.title,h=n.children;n.actionButton;var N=n.block,C=n.onClose;n.getBadgeIcons;var b=e(n,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","actionButton","block","onClose","getBadgeIcons"]),g=a((function(e){C&&C(e)}),[C]);return o.createElement("div",t({className:i(_.component,(c={},c[_.block]=N,c[_.hasCloser]=x,c),_[p],r),ref:d,"data-test-id":m},b),o.createElement("div",{className:_.contentWrap},o.createElement("div",{className:i(u,_.content)},f&&o.createElement("div",{className:_.title},f),h&&o.createElement("div",{className:_.children},h)),x&&o.createElement(s,t({className:i(_.closeButton),view:"ghost"},{onClick:g},{"aria-label":"закрыть",leftAddons:o.createElement(l,null)}))))}));export{d as ToastPlate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastPlate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastPlate}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"alpha-cli-icons";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-9e9df1a1.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var p="index-module_component__27XUU",l="index-module_popper__15ABf",m="index-module_target__3lSlZ",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,j=f.getPortalContainer,M=f.offset,x=void 0===M?[0,10]:M,y=f.position,S=f.contentClassName,b=f.arrowClassName,P=f.popoverClassName,R=f.updatePopover,A=t(!!E),D=A[0],L=A[1],U=t(null),B=U[0],F=U[1],I=o.useRef(null),X=o.useRef(null),Z=r(0),q=function(){D||(L(!0),O&&O())},z=n((function(){D&&(L(!1),N&&N())}),[N,D]),G=function(e){return(!I.current||!I.current.contains(e))&&(!X.current||!X.current.contains(e))};c((function(){var e=function(e){var o=e.target;G(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(Z.current)}}),[z]);var H,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),D?z():q()}},K={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(Z.current),Z.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(Z.current),Z.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(Z.current),G(o)?Z.current=window.setTimeout((function(){z()}),h):q()}},Q=void 0===E?D:E,V=n((function(e){I.current=e,F(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:V},(H=function(o){var t={className:u(m,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),K);default:return{}}}(d.props),a(d,H))),B&&o.createElement(s,{anchorElement:B,open:Q,getPortalContainer:j,arrowClassName:b,popperClassName:u(l,P),offset:x,withArrow:!0,position:y,update:R},function(){var t=function(){var o={ref:X,"data-test-id":k,className:u(p,S)};return"hover"===w?e(e({},o),K):o}();return o.createElement("div",e({},t),v)}()))};export{f as Tooltip};
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tooltip}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Tooltip}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"react-node-resolver";import"classnames";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-
|
|
1
|
+
import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";var m={Title:o,Text:t,TitleResponsive:e};export{m as Typography};
|
package/dist/typography/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-9e9df1a1.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"./text/component.js";import"./title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import m from"classnames";import{c as a}from"../../colors.module-
|
|
1
|
+
import e from"react";import m from"classnames";import{c as a}from"../../colors.module-de146e83.js";var r={paragraph:"index-module_paragraph__1bRcB","primary-medium":"index-module_primary-medium__Qvb5H","primary-small":"index-module_primary-small__L3Wad",component:"index-module_component__31LM6",title:"index-module_title__f59kW",caps:"index-module_caps__xHQwO",bold:"index-module_bold__3D19m",medium:"index-module_medium__3Fy9j",regular:"index-module_regular__3febp"},d=function(d){var i,o=d.view,l=void 0===o?"primary-medium":o,_=d.tag,p=void 0===_?"span":_,t=d.weight,n=void 0===t?"regular":t,u=d.color,s=d.className,c=d.dataTestId,x=d.children;return e.createElement(p,{className:m((i={},i[r.paragraph]="p"===p,i),s,u&&a[u],r[l],r[n]),"data-test-id":c},x)};export{d as Text};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-
|
|
1
|
+
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-de146e83.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"classnames";import t from"react";import{c as a}from"../../colors.module-
|
|
1
|
+
import e from"classnames";import t from"react";import{c as a}from"../../colors.module-de146e83.js";var o=function(o){var r=o.tag,m=void 0===r?"div":r,i=o.view,s=void 0===i?"medium":i,d=o.weight,c=void 0===d?"medium":d,n=o.defaultMargins,l=void 0!==n&&n,v=o.color,u=o.className,f=o.dataTestId,p=o.children,g=o.styles;return t.createElement(m,{className:e(g.component,u,g["montserrat-"+s],l&&g["margins-"+s],g[c],v&&a[v]),"data-test-id":f},p)};export{o as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-9e9df1a1.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-a8e01692.js";import"classnames";import"../../colors.module-de146e83.js";var s={"montserrat-xlarge":"index-module_montserrat-xlarge__2e0T4","montserrat-large":"index-module_montserrat-large__3IoQZ","montserrat-medium":"index-module_montserrat-medium__1C2-N","montserrat-small":"index-module_montserrat-small__7aq7N","montserrat-xsmall":"index-module_montserrat-xsmall__1snHz","margins-xlarge":"index-module_margins-xlarge__3T9s4","margins-large":"index-module_margins-large__uTKMb","margins-medium":"index-module_margins-medium__2WXDU","margins-small":"index-module_margins-small__3jh4c","margins-xsmall":"index-module_margins-xsmall__Eaiy8"},l=function(l){return e.createElement(r,m({},l,{styles:m(m({},a),s)}))};export{l as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-9e9df1a1.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-a8e01692.js";import"classnames";import"../../colors.module-de146e83.js";var l={"montserrat-xlarge":"index-module_montserrat-xlarge__3_L7c","montserrat-large":"index-module_montserrat-large__25PPi","montserrat-medium":"index-module_montserrat-medium__2-xpj","montserrat-small":"index-module_montserrat-small__iwV-8","montserrat-xsmall":"index-module_montserrat-xsmall__2AlQp","margins-xlarge":"index-module_margins-xlarge__3ay4g","margins-large":"index-module_margins-large__3T8vK","margins-medium":"index-module_margins-medium__1_Ucz","margins-small":"index-module_margins-small__8NNjs","margins-xsmall":"index-module_margins-xsmall__2ENbw"},s=function(s){return e.createElement(r,m({},s,{styles:m(m({},a),l)}))};export{s as TitleResponsive};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TitleResponsive}from"./component.js";import"../../tslib.es6-
|
|
1
|
+
export{TitleResponsive}from"./component.js";import"../../tslib.es6-9e9df1a1.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-de146e83.js";import"../../common.module-a8e01692.js";
|
|
@@ -6,7 +6,7 @@ type WithSuffixProps = InputProps & {
|
|
|
6
6
|
suffix?: ReactNode;
|
|
7
7
|
suffixContainerClassName?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
9
|
+
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "step" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
|
|
10
10
|
value?: string | undefined;
|
|
11
11
|
defaultValue?: string | undefined;
|
|
12
12
|
block?: boolean | undefined;
|