@alphakits/ui 1.3.22 → 1.4.0
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-5d78437d.js → _commonjsHelpers-19aa6737.js} +0 -0
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.d.ts +6 -18
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/cell/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.d.ts +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.d.ts +2 -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-e10ea314.js → colors.module-204f9cef.js} +0 -0
- package/dist/{common.module-1192285d.js → common.module-5b31c24b.js} +0 -0
- package/dist/component-366387bd.d.ts +14 -0
- package/dist/component-366387bd.js +1 -0
- package/dist/component-e71445f5.d.ts +7 -0
- package/dist/{contact-block-7713e671.d.ts → contact-block-e06ea985.d.ts} +0 -0
- package/dist/{contact-block-7713e671.js → contact-block-e06ea985.js} +0 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/components/contacts-block.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/{formik.esm-47226c46.js → formik.esm-6cef1f7c.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-88a291fc.js → gutters.module-8f3d0759.js} +0 -0
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-ine/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.d.ts +2 -15
- package/dist/image/component.js +1 -1
- package/dist/image/constants.d.ts +13 -0
- package/dist/image/constants.js +1 -0
- package/dist/image/index.d.ts +3 -0
- package/dist/image/index.js +1 -1
- package/dist/image/typings.d.ts +25 -0
- package/dist/image/typings.js +1 -0
- package/dist/{cell/action/component.d.ts → image/use-image-render-component.d.ts} +0 -0
- package/dist/image/use-image-render-component.js +1 -0
- package/dist/image/utils.d.ts +4 -0
- package/dist/image/utils.js +1 -0
- package/dist/index.css +1 -5
- package/dist/index.ts +0 -4
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/intersection-observer-8fbea6f8.js +1 -0
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/{parse-query-params-af66a91d.d.ts → parse-query-params-d21fd9b2.d.ts} +0 -0
- package/dist/{parse-query-params-af66a91d.js → parse-query-params-d21fd9b2.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.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.d.ts +2 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.d.ts +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/options-list/component.d.ts +2 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/options-list/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.d.ts +1 -0
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.d.ts +45 -0
- package/dist/select/presets/use-lazy-loading/index.js +1 -0
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/select/typings.d.ts +7 -0
- package/dist/select/utils.d.ts +13 -1
- package/dist/select/utils.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.d.ts +6 -2
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/row/component.js +1 -1
- package/dist/table/components/row/index.js +1 -1
- package/dist/table/components/rows/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/{tslib.es6-ae23482d.js → tslib.es6-597917f3.js} +0 -0
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/use-image-render-component-ae9e6591.d.ts +13 -0
- package/dist/use-image-render-component-ae9e6591.js +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/vars/alpha-radiuses.css +1 -0
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +8 -14
- package/dist/avatar/hooks/index.d.ts +0 -1
- package/dist/avatar/hooks/index.js +0 -1
- package/dist/avatar/hooks/use-image-loading-state.d.ts +0 -4
- package/dist/avatar/hooks/use-image-loading-state.js +0 -1
- package/dist/avatar/types.d.ts +0 -3
- package/dist/avatar/types.js +0 -1
- package/dist/cell/action/component.js +0 -1
- package/dist/cell/action/index.d.ts +0 -1
- package/dist/cell/action/index.js +0 -1
- package/dist/cell/autopayment/component.d.ts +0 -0
- package/dist/cell/autopayment/component.js +0 -1
- package/dist/cell/autopayment/index.d.ts +0 -1
- package/dist/cell/autopayment/index.js +0 -1
- package/dist/cell/catalog/component.d.ts +0 -0
- package/dist/cell/catalog/component.js +0 -1
- package/dist/cell/catalog/index.d.ts +0 -1
- package/dist/cell/catalog/index.js +0 -1
- package/dist/cell/subscription/component.d.ts +0 -0
- package/dist/cell/subscription/component.js +0 -1
- package/dist/cell/subscription/index.d.ts +0 -1
- package/dist/cell/subscription/index.js +0 -1
- package/dist/cell/transaction/component.d.ts +0 -19
- package/dist/cell/transaction/component.js +0 -1
- package/dist/cell/transaction/index.d.ts +0 -1
- package/dist/cell/transaction/index.js +0 -1
- package/dist/component-5dbe6e58.d.ts +0 -17
- package/dist/component-b5635135.d.ts +0 -63
- package/dist/component-b5635135.js +0 -1
- package/dist/super-ellipse/component.d.ts +0 -10
- package/dist/super-ellipse/component.js +0 -1
- package/dist/super-ellipse/index.d.ts +0 -1
- package/dist/super-ellipse/index.js +0 -1
- package/dist/super-ellipse-button/component.d.ts +0 -9
- package/dist/super-ellipse-button/component.js +0 -1
- package/dist/super-ellipse-button/index.d.ts +0 -1
- package/dist/super-ellipse-button/index.js +0 -1
- package/dist/super-ellipse-pure/component.d.ts +0 -11
- package/dist/super-ellipse-pure/component.js +0 -1
- package/dist/super-ellipse-pure/index.d.ts +0 -1
- package/dist/super-ellipse-pure/index.js +0 -1
- package/dist/super-ellipse-shape/component.d.ts +0 -12
- package/dist/super-ellipse-shape/component.js +0 -1
- package/dist/super-ellipse-shape/index.d.ts +0 -1
- package/dist/super-ellipse-shape/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Row}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Row}from"./component.js";import"../../../tslib.es6-597917f3.js";import"react";import"classnames";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-597917f3.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 p}from"../row/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-204f9cef.js";import"../../../common.module-5b31c24b.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../languages/index.js";import"../../../loader/component.js";var i={empty_list:"index-module_empty_list__2gH8c"},a=function(a){var l=a.onRowClick,s=a.prepareRow,c=a.rows,g=a.loading,d=a.error,u=a.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(p,e({dataTestID:""+m,onClick:function(){l&&l({recordId:r.original.id})},className:t(i.table_row,(n={},n[i.clickable]=!!l,n))},r.getRowProps()),r.cells.map((function(e){return e.render("Cell")})))}))):o.createElement(r,{language:u})};export{a 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-597917f3.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,h=p.onCreateClick,f=p.onDownloadClick,C=p.onFiltersClick,k=p.showFiltersButton,b=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},!!h&&e.createElement(o,{dataTestId:"createbtn",onClick:h,view:"primary",leftAddons:e.createElement(a,null),size:"xs"},r(b)("create")),!!f&&e.createElement(o,{view:"outlined",size:"xs",onClick:f},r(b)("export")),k&&e.createElement(o,{leftAddons:e.createElement(l,null),onClick:C,view:"outlined",size:"xs"},r(b)("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-597917f3.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-d21fd9b2.js";import"../../_commonjsHelpers-19aa6737.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-597917f3.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-204f9cef.js";import"../common.module-5b31c24b.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-d21fd9b2.js";import"../_commonjsHelpers-19aa6737.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-366387bd.js";import"../__internal/utils/getDataTestId.js";import"../cell/pure/component.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-597917f3.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-d21fd9b2.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-204f9cef.js";import"../common.module-5b31c24b.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-19aa6737.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,w=y.tagsBuilder,k=y.promise,P=y.onRowClick,v=y.onCreateClick,E=y.onFiltersClick,_=y.onDownloadClick,q=y.language,D=l(k),T=D.loading,B=D.error,F=D.asyncData,R=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):F)}))}),[F,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:w,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,showFiltersButton:!!E}),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:B,loading:T})))),!C&&o.createElement(i,{language:q,currentPage:G?+G.page:1,recordsPerPage:G?+G.limit:10,pagesCount:+N,addParam:A,total:+R}))};export{y as Table};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-597917f3.js";import{p as s,q as o}from"../../parse-query-params-d21fd9b2.js";import{setQueryToUrl as a}from"./set-query-to-url.js";import"../../_commonjsHelpers-19aa6737.js";function m(m){var p=s();a(o(r(r({},p),m)))}export{m as addQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r}from"../../tslib.es6-
|
|
1
|
+
import{_ as r}from"../../tslib.es6-597917f3.js";import{p as e}from"../../parse-query-params-d21fd9b2.js";import"../../_commonjsHelpers-19aa6737.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-d21fd9b2";
|
|
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-d21fd9b2.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-597917f3.js";import"../../_commonjsHelpers-19aa6737.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-d21fd9b2.js";import"../../_commonjsHelpers-19aa6737.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-597917f3.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 s,a=i[0],c=i[1],d=e[o][a]||a;return r(((s={})[d]=c,s),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-d21fd9b2.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-19aa6737.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-597917f3.js";import{p as e,q as t}from"../../parse-query-params-d21fd9b2.js";import{setQueryToUrl as s}from"./set-query-to-url.js";import"../../_commonjsHelpers-19aa6737.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-597917f3.js";import"../typography/title/component.js";import"../colors.module-204f9cef.js";import"../common.module-5b31c24b.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-597917f3.js";import"../typography/title/component.js";import"../colors.module-204f9cef.js";import"../common.module-5b31c24b.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/tag/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"react";import{CrossCompactM as e}from"alpha-cli-icons";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-597917f3.js";import"../typography/title/component.js";import"../colors.module-204f9cef.js";import"../common.module-5b31c24b.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 t.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)},t.createElement(i.Text,{className:r.text,view:"caps",weight:"medium",color:c},s),!!p&&t.createElement("button",{"data-test-id":d+"_close",type:"button","aria-label":"close-tag",onClick:function(t){t.stopPropagation(),p()}},t.createElement(e,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-597917f3.js";import"../typography/title/component.js";import"../colors.module-204f9cef.js";import"../common.module-5b31c24b.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-597917f3.js";import"../typography/title/component.js";import"../colors.module-204f9cef.js";import"../common.module-5b31c24b.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-597917f3.js";import"../typography/title/component.js";import"../colors.module-204f9cef.js";import"../common.module-5b31c24b.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-597917f3.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"../select/components/options-list/component.js";import"react-virtual";import"axios";import"../toast-notifier/component.js";import"../intersection-observer-8fbea6f8.js";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-204f9cef.js";import"../common.module-5b31c24b.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"../skeleton/component.js";import"../select/components/checkmark/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";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.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,f=p.maxLabel,d=void 0===f?"Maximum players":f,y=p.inputPrefix,b=void 0===y?"чел.":y,v=p.suffix,g=void 0===v?"€":v,x=p.t,h=Object.entries(c||{}),k=o(h[0]&&h[0][0]||2),N=k[0],P=k[1],_=o(h[h.length-1]&&h[h.length-1][0]||6),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,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:d,options:T,selected:E,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]+" "+b,value:Number(o[1]),suffix:g,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-597917f3.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-204f9cef.js";import"../common.module-5b31c24b.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"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"axios";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../intersection-observer-8fbea6f8.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-597917f3.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-597917f3.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-597917f3.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-597917f3.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-597917f3.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-597917f3.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-597917f3.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-597917f3.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-597917f3.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-597917f3.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-597917f3.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-204f9cef.js";import"../common.module-5b31c24b.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-597917f3.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-204f9cef.js";import"../common.module-5b31c24b.js";import"./text/component.js";import"./title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import m from"classnames";import{c as a}from"../../colors.module-204f9cef.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-204f9cef.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"classnames";import
|
|
1
|
+
import e from"classnames";import t from"react";import{c as a}from"../../colors.module-204f9cef.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,f=o.className,u=o.dataTestId,p=o.children,g=o.styles;return t.createElement(m,{className:e(g.component,f,g["montserrat-"+s],l&&g["margins-"+s],g[c],v&&a[v]),"data-test-id":u},p)};export{o as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-597917f3.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-5b31c24b.js";import"classnames";import"../../colors.module-204f9cef.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-597917f3.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-5b31c24b.js";import"classnames";import"../../colors.module-204f9cef.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-597917f3.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-204f9cef.js";import"../../common.module-5b31c24b.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ComponentSizes, ImageSizes } from "./image/index";
|
|
4
|
+
type UseImageRenderComponent = {
|
|
5
|
+
src?: string;
|
|
6
|
+
resolution?: ImageSizes;
|
|
7
|
+
size: ComponentSizes;
|
|
8
|
+
alt?: string;
|
|
9
|
+
text?: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const useImageRenderComponent: ({ src, resolution, size, alt, text, icon, }: UseImageRenderComponent) => {};
|
|
13
|
+
export { UseImageRenderComponent, useImageRenderComponent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{PhotoS as i,PhotoM as r}from"alpha-cli-icons";import _ from"classnames";import{Spinner as d}from"./spinner/component.js";import{Typography as m}from"./typography/component.js";import"./image/typings.js";import{sizes as l,textSizes as a}from"./image/constants.js";import{getSrc as s,getCharsFromText as x}from"./image/utils.js";var c={component:"index-module_component__2SAxI",children:"index-module_children__3-Rrm",default:"index-module_default__9Y9Ry",primary:"index-module_primary__1rcmx","primary-inverted":"index-module_primary-inverted__1Qsti",secondary:"index-module_secondary__V683L","secondary-inverted":"index-module_secondary-inverted__1z_a8",positive:"index-module_positive__11E2V",negative:"index-module_negative__ZEP9w",attention:"index-module_attention__1tSkN",accent:"index-module_accent__3qMH5",broken:"index-module_broken__21rqy",image:"index-module_image__ZF1Gv",hint:"index-module_hint__15-ui",hint_text:"index-module_hint_text__2HO_n",textContent:"index-module_textContent__13aze",xs:"index-module_xs__2Es8v",s:"index-module_s__2D4b3",m:"index-module_m__1Rtr9",l:"index-module_l__3oEwm",xl:"index-module_xl__7Y-se",circle:"index-module_circle__rmY6i",defs:"index-module_defs__-xTo_",textS:"index-module_textS__2QNNE",textXs:"index-module_textXs__ujJjz",textM:"index-module_textM__3vBUB",textL:"index-module_textL__1u8Yh"},u=function(u){var p=u.src,v=void 0===p?"":p,f=u.resolution,g=u.size,y=u.alt,h=u.text,E=u.icon,w=e.useState("loading"),j=w[0],N=w[1],b=t(0),k=f||l[g],z=n((function(){return s(v,k)}),[k,v]);return o((function(){if(z){b.current=Date.now(),N("loading");var e=new Image;e.src=z,e.onload=function(){N("loaded")},e.onerror=function(){Date.now()-b.current<15e3?setTimeout((function(){e.src=z}),1e3):N("error")}}else N("error")}),[z]),E||("loading"===j?e.createElement(d,{className:c.spinner,size:"s",view:"dark"}):"error"===j&&h?e.createElement(m.Text,{className:_(c.textContent,c[a[g]]),view:"component",color:"tertiary",weight:"bold"},x(h.toUpperCase())):"error"===j?e.createElement(m.Text,{className:c.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===g?e.createElement(i,null):e.createElement(r,null)):e.createElement("img",{className:c.image,src:v,alt:y}))};export{c as s,u};
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-
|
|
1
|
+
export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-597917f3.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"../toast-notifier/use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-
|
|
1
|
+
import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-597917f3.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"../../toast-notifier/use-timer.js";var o=function(o){t({view:"positive",title:"Success",text:o,offset:30})},e=function(o){t({view:"negative",title:"Error",text:o,offset:30})};export{e as showError,o as showSuccess};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a}from"../tslib.es6-597917f3.js";import l,{forwardRef as n,useRef as r,useState as o,useCallback as t,Fragment as i}from"react";import s from"react-merge-refs";import m from"classnames";import{Portal as d}from"../portal/component.js";import"react-dom";import"../portal/utils.js";var u="index-module_suffixContainer__2PAjv",f="index-module_suffixVisible__2nCIM",c="index-module_hasSuffix__2OETD",_="index-module_spacer__367Gn",p="index-module_suffix__1tJdT",x="index-module_disabled__SEf2T",C="index-module_readOnly__1gCb6",v=function(v){return n((function(n,E){var N,b,h=n.value,g=n.defaultValue,O=n.onChange,j=n.onClear,y=n.suffix,T=void 0===y?"":y,V=n.placeholder,P=n.className,S=n.disabled,A=n.readOnly,B=n.suffixContainerClassName,D=e(n,["value","defaultValue","onChange","onClear","suffix","placeholder","className","disabled","readOnly","suffixContainerClassName"]),G=void 0===h,I=r(null),J=o(g||""),M=J[0],k=J[1],q=t((function(e,a){O&&O(e,a),G&&k(a.value)}),[O,G]),w=t((function(e){G&&k(""),j&&j(e)}),[j,G]),z=t((function(){return I.current.parentElement}),[]),F=G?M:h;return l.createElement(i,null,l.createElement(v,a({ref:s([E,I]),value:F,disabled:S,readOnly:A,onChange:q,onClear:w,placeholder:V,className:m(P,(N={},N[f]=Boolean(F),N[c]=T,N))},D)),l.createElement(d,{getPortalContainer:z},l.createElement("div",{className:m(u,B)},l.createElement("span",{className:_},F),T&&l.createElement("div",{className:m(p,(b={},b[x]=S,b[C]=A,b))},T))))}))};export{v as withSuffix};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{withSuffix}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{withSuffix}from"./component.js";import"../tslib.es6-597917f3.js";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alphakits/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -25,18 +25,11 @@
|
|
|
25
25
|
"fix": "eslint --fix --ext .ts,.tsx",
|
|
26
26
|
"semantic-release": "semantic-release"
|
|
27
27
|
},
|
|
28
|
-
"browserslist":
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
],
|
|
34
|
-
"development": [
|
|
35
|
-
"last 1 chrome version",
|
|
36
|
-
"last 1 firefox version",
|
|
37
|
-
"last 1 safari version"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
28
|
+
"browserslist": [
|
|
29
|
+
">0.2%",
|
|
30
|
+
"not dead",
|
|
31
|
+
"not op_mini all"
|
|
32
|
+
],
|
|
40
33
|
"dependencies": {
|
|
41
34
|
"@popperjs/core": "^2.3.3",
|
|
42
35
|
"@types/lodash": "^4.14.173",
|
|
@@ -51,6 +44,7 @@
|
|
|
51
44
|
"postcss": "^8.2.9",
|
|
52
45
|
"query-string": "^7.0.1",
|
|
53
46
|
"react-merge-refs": "1.1.0",
|
|
47
|
+
"intersection-observer": "^0.12.0",
|
|
54
48
|
"react-node-resolver": "^2.0.1",
|
|
55
49
|
"react-popper": "^2.2.2",
|
|
56
50
|
"react-swipeable": "^6.1.0",
|
|
@@ -106,7 +100,7 @@
|
|
|
106
100
|
"@typescript-eslint/eslint-plugin": "^4.4.0",
|
|
107
101
|
"@typescript-eslint/parser": "^4.4.0",
|
|
108
102
|
"@wessberg/rollup-plugin-ts": "^1.3.6",
|
|
109
|
-
"alpha-cli-icons": "^1.0.
|
|
103
|
+
"alpha-cli-icons": "^1.0.23",
|
|
110
104
|
"alphakit-presets-lint": "1.0.0",
|
|
111
105
|
"babel-jest": "^26.6.3",
|
|
112
106
|
"babel-preset-env": "^1.7.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./use-image-loading-state";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{useImageLoadingState}from"./use-image-loading-state.js";import"react";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r,{useRef as n}from"react";function e(e){var o=e.src,t=r.useState("loading"),c=t[0],u=t[1],a=n(0);return r.useEffect((function(){if(o){a.current=Date.now();var r=!0;u("loading");var n=new Image;return n.src=o,n.onload=function(){r&&u("loaded")},n.onerror=function(){r&&(Date.now()-a.current<15e3?setTimeout((function(){n.src=o}),1e3):u("error"))},function(){r=!1}}u("error")}),[o]),c}export{e as useImageLoadingState};
|
package/dist/avatar/types.d.ts
DELETED
package/dist/avatar/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=["secondary","primary"];export{r as colors};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{A as Action}from"../../component-b5635135.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/title/index.js";import"../../tslib.es6-ae23482d.js";import"../../typography/title/component.js";import"../../colors.module-e10ea314.js";import"../../common.module-1192285d.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../component-b5635135";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{A as Action}from"../../component-b5635135.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-ae23482d.js";import"../../typography/title/component.js";import"../../colors.module-e10ea314.js";import"../../common.module-1192285d.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
File without changes
|