@alphakits/ui 1.17.0 → 1.18.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-2cfff74b.js → _commonjsHelpers-598fc4da.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/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.d.ts +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/use-calendar.d.ts +6 -6
- package/dist/calendar-input/component.d.ts +4 -4
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.d.ts +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.d.ts +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.d.ts +6 -6
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-fa56222e.js → colors.module-3b4fd590.js} +0 -0
- package/dist/{common.module-78e1bdef.js → common.module-1f20b0cc.js} +0 -0
- package/dist/{component-f5a1396c.d.ts → component-f392c22f.d.ts} +0 -0
- package/dist/{component-f5a1396c.js → component-f392c22f.js} +0 -0
- package/dist/{contact-block-66af7817.d.ts → contact-block-89f5620b.d.ts} +0 -0
- package/dist/{contact-block-66af7817.js → contact-block-89f5620b.js} +0 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.d.ts +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/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.d.ts +2 -2
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form/utils/remove-undefined-from-object.d.ts +1 -2
- package/dist/form-control/component.d.ts +5 -5
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/{formik.esm-bbafe73a.js → formik.esm-afc2d983.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-3c6d3471.js → gutters.module-4362067b.js} +0 -0
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.d.ts +2 -2
- package/dist/hooks/use-get-one/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/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.d.ts +2 -2
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.d.ts +2 -2
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/{index-255a9b3d.js → index-eba9044b.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.d.ts +7 -7
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{intersection-observer-c2477ad2.js → intersection-observer-02f4f9d8.js} +0 -0
- package/dist/link/component.d.ts +2 -2
- 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 +4 -7
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.d.ts +2 -2
- 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-dedce862.d.ts → parse-query-params-f52e36cf.d.ts} +0 -0
- package/dist/{parse-query-params-dedce862.js → parse-query-params-f52e36cf.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.d.ts +2 -2
- 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 +6 -6
- 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.d.ts +2 -21
- 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.d.ts +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.d.ts +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/select/utils.d.ts +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/{slide-858ffa1a.d.ts → slide-06a2ffa8.d.ts} +3 -3
- package/dist/slide-06a2ffa8.js +1 -0
- 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-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/{swiper-slide-970dfced.js → swiper-slide-44315503.js} +0 -0
- package/dist/switch/component.d.ts +6 -6
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.d.ts +5 -12
- package/dist/table/columns.js +1 -1
- package/dist/table/component.d.ts +5 -7
- 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.d.ts +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.d.ts +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.d.ts +6 -7
- 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.d.ts +3 -3
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.d.ts +13 -10
- package/dist/table/table.js +1 -1
- package/dist/table/types.d.ts +5 -6
- 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/utils/serialize-data.d.ts +2 -1
- package/dist/table/utils/serialize-data.js +1 -1
- package/dist/table/utils/sort-array.d.ts +2 -1
- package/dist/table/utils/sort-array.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 +2 -2
- 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.d.ts +4 -4
- 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-e799146e.js +1 -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.d.ts +3 -3
- 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-93d55cc2.d.ts → use-image-render-component-d9d25b4d.d.ts} +0 -0
- package/dist/{use-image-render-component-93d55cc2.js → use-image-render-component-d9d25b4d.js} +0 -0
- package/dist/utils/get-currency-symbol/util.d.ts +2 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.d.ts +4 -35
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +6 -5
- package/dist/slide-858ffa1a.js +0 -1
- package/dist/tslib.es6-77545e10.js +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-e799146e.js";import a,{forwardRef as d,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=d((function(d,r){var _,u=d.checked,b=d.label,x=d.hint,h=d.size,p=void 0===h?"m":h,k=d.align,f=void 0===k?"center":k,E=d.addons,N=d.block,g=d.onChange,I=d.className,v=d.name,C=d.disabled,y=d.dataTestId,z=d.indeterminate,D=void 0!==z&&z,O=e(d,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return a.createElement("label",{className:i(s.component,s[p],s[f],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=D,_[s.focused]=j,_[s.block]=N,_)),ref:o([T,r])},a.createElement("span",{className:s.box},a.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":y},O)),u&&a.createElement(l,null),D&&!u&&a.createElement("div",{className:s.indeterminateIcon},a.createElement(m,null))),(b||x)&&a.createElement("span",{className:s.content},b&&a.createElement("span",{className:s.label},b),x&&a.createElement("span",{className:s.hint},x)),E&&a.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Checkbox}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Checkbox}from"./component.js";import"../tslib.es6-e799146e.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-e799146e.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",m=function(m){var l=m.title,a=m.subtitle,s=m.selected,p=void 0===s?[]:s,d=m.data,u=void 0===d?[]:d,v=m.onChange,g=m.columns,y=void 0===g?1:g,f=m.gr,h=void 0===f?20:f,x=m.gc,b=void 0===x?20:x,j=m.dataTestId,k=p||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:y,gr:h,gc:b},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{m as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-e799146e.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-e799146e.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-598fc4da.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,b=u.collapsable,v=u.onChange,E=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&E.push(t)}));var y=n(E),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?v(g.filter((function(e){return!t.includes(e)}))):v(e(e([],g),t))}))},F=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),b&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"../tslib.es6-e799146e.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-598fc4da.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-598fc4da.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",c="index-module_label__kuH6r",a="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,f=u.label,x=u.content,b=u.expanded,y=u.addons,h=u.children,g=u.disabled,v=o(b),E=v[0],w=v[1];return t((function(){w(b)}),[b]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:l},f&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},f),x),e.createElement("div",{className:l},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(a,(j={},j[d]=E,j)),disabled:g,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},h))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-598fc4da.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as
|
|
1
|
+
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as a}from"react";import u from"classnames";import{a as c}from"../_commonjsHelpers-598fc4da.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k=x?x.toStringTag:void 0;var z=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?T(e):N(e)};var S=function(e){return null!=e&&"object"==typeof e};var C=function(e){return"symbol"==typeof e||S(e)&&"[object Symbol]"==z(e)},L=/^[-+]0x[0-9a-f]+$/i,H=/^0b[01]+$/i,$=/^0o[0-7]+$/i,D=parseInt;var F=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=H.test(e);return n||$.test(e)?D(e.slice(2),n?2:8):L.test(e)?NaN:+e},I=Math.max,M=Math.min;var P=function(e,t,n){var r,o,i,a,u,c,f=0,l=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,i=o;return r=o=void 0,f=t,a=e.apply(i,n)}function b(e){return f=e,u=setTimeout(h,t),l?m(e):a}function y(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-f>=i}function h(){var e=p();if(y(e))return j(e);u=setTimeout(h,function(e){var n=t-(e-c);return d?M(n,i-(e-f)):n}(e))}function j(e){return u=void 0,v&&r?m(e):(r=o=void 0,a)}function x(){var e=p(),n=y(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return b(c);if(d)return clearTimeout(u),u=setTimeout(h,t),m(c)}return void 0===u&&(u=setTimeout(h,t)),a}return t=F(t)||0,s(n)&&(l=!!n.leading,i=(d="maxWait"in n)?I(F(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==u&&clearTimeout(u),f=0,r=c=o=u=void 0},x.flush=function(){return void 0===u?a:j(p())},x},U="index-module_collapse__ORa-f",W="index-module_content__UDk-m",A="index-module_expandedContent__iQszl",Q="index-module_children_wrap__ekYCk",R=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=P((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new f(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=a((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:u(y,U),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:u(W,h,(s={},s[A]=S,s)),style:$},e.createElement("div",{className:u(Q),ref:O},b)),D&&e.createElement(l,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{R as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-598fc4da.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{TrashM as o}from"alpha-cli-icons";import{Button as e}from"../button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import{TrashM as o}from"alpha-cli-icons";import{Button as e}from"../button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,a=n.fullText;return t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:"secondary"},s),t.createElement(e,{leftAddons:t.createElement(o,null),className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a||s).then((function(){r({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CopyButton}from"./component.js";import"react";import"alpha-cli-icons";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{CopyButton}from"./component.js";import"react";import"alpha-cli-icons";import"../button/component.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/date/component.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ interface FormattedDateProps extends TextProps {
|
|
|
8
8
|
country?: 'RU' | 'DE' | 'EN';
|
|
9
9
|
dataTestId?: string;
|
|
10
10
|
}
|
|
11
|
-
declare const normalizeDate: (date:
|
|
11
|
+
declare const normalizeDate: (date: FormattedDateProps['date'], format?: string, country?: FormattedDateProps['country']) => string;
|
|
12
12
|
declare const FormattedDate: React.FC<FormattedDateProps>;
|
|
13
13
|
export { FormattedDateProps, normalizeDate, FormattedDate };
|
package/dist/date/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as t,a as o}from"../tslib.es6-e799146e.js";import e from"react";import{format as a}from"date-fns";import{ru as r,de as m,enGB as i}from"date-fns/locale";import{Typography as p}from"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s={RU:r,DE:m,EN:i},n=function(t,o,e){void 0===o&&(o="dd.MM.yyyy"),void 0===e&&(e="RU");var r=new Date(t);return"[object Date]"===Object.prototype.toString.call(r)?Number.isNaN(r.getTime())?"invalid date":a(r,o,{locale:s[e]}):"invalid date"},d=function(a){var r=a.className,m=a.dataTestId,i=a.date,s=a.format,d=void 0===s?"dd.MM.yyyy":s,c=a.country,y=void 0===c?"RU":c,l=t(a,["className","dataTestId","date","format","country"]);return e.createElement(p.Text,o({},l,{className:r,"data-test-id":m}),n(i,d,y))};export{d as FormattedDate,n as normalizeDate};
|
package/dist/date/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-e799146e.js";import"react";import"date-fns";import"date-fns/locale";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{ChevronBackM as t,ChevronForwardM as o}from"alpha-cli-icons";import d from"classnames";import{startOfISOWeek as a,parseISO as r,isAfter as i,isBefore as n,isToday as m,format as y,add as s,subDays as
|
|
1
|
+
import e from"react";import{ChevronBackM as t,ChevronForwardM as o}from"alpha-cli-icons";import d from"classnames";import{startOfISOWeek as a,parseISO as r,isAfter as i,isBefore as n,isToday as m,format as y,add as s,subDays as c,subWeeks as p}from"date-fns";import{Button as l}from"../button/component.js";import{IconButton as _}from"../icon-button/component.js";import{Typography as u}from"../typography/component.js";import"../tslib.es6-e799146e.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-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var w={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},M=function(M){var f=M.view,h=void 0===f?"day":f,j=M.startDate,g=M.onChange,v=M.minDate,x=M.maxDate,b=a(r(j)),k="day"===h?r(j):b,E=v?r(v):new Date,D=i(k,E),C=!x||n(k,r(x)),T=m(k);return e.createElement("div",{className:w.date_switcher},e.createElement(_,{disabled:!!v&&!D,onClick:function(){"day"===h&&g(y(c(k,1),"yyyy-MM-dd")),"week"===h&&g(y(p(k,1),"yyyy-MM-dd"))},icon:t}),e.createElement("div",{className:d(w.date_wrap,w[h])},e.createElement(u.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===h?y(k,"dd.MM.yy"):y(k,"dd.MM.yy")+" - "+y(s(k,{days:6}),"dd.MM.yy"))),e.createElement(_,{disabled:!C,onClick:function(){"day"===h&&g(y(s(k,{days:1}),"yyyy-MM-dd")),"week"===h&&g(y(s(k,{days:7}),"yyyy-MM-dd"))},icon:o}),e.createElement(l,{disabled:T,onClick:function(){g(y(new Date,"yyyy-MM-dd"))},view:"ghost"},"Сегодня"))};export{M as DateSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateSwitcher}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"date-fns";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{DateSwitcher}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"date-fns";import"../button/component.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/footer/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-e799146e.js";import t from"react";import{FacebookM as r,YoutubeM as a,InstagramM as n,AppStoreM as m,GooglePlayM as o}from"alpha-cli-icons";import{Grid as l}from"../grid/component.js";import{IconButton as c}from"../icon-button/component.js";import{SectionWrapper as i}from"../section-wrapper/component.js";import{s,C as p}from"../contact-block-89f5620b.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-4362067b.js";import"../grid/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var E=function(E){var d=E.sections,u=void 0===d?[]:d,f=E.contacts,b=void 0===f?[]:f,k=E.company,v=E.email,N=E.address,g=E.facebookLink,j=E.instagramLink,h=E.youtubeLink,x=E.appText,w=E.google,y=E.appstore,B=g||j||h,C=x&&y&&w;return t.createElement(i,{pb:"m",pt:"l",isBlackBg:!0},t.createElement("div",{className:s.wrapper},t.createElement("div",{className:s.row_wrapper},t.createElement(l.Row,null,t.createElement(t.Fragment,null,u.map((function(e){return t.createElement(l.Col,{key:e.title,width:{desktop:2,mobile:12}},t.createElement("div",{className:s.block},t.createElement("span",{className:s.title},e.title),e.items.map((function(e){return t.createElement("a",{key:e.text,className:s.link,href:e.link},e.text)}))))})),t.createElement(l.Col,{key:"cont",width:{desktop:2,mobile:12}},t.createElement("div",{className:s.contacts},b.map((function(e){return t.createElement(p,{key:e.title,title:e.title,value:e.value})})),v&&t.createElement("div",{className:s.email},v),t.createElement("br",null),N&&t.createElement("div",{className:s.text},N),t.createElement("br",null),k&&t.createElement("div",{className:s.text},k),t.createElement("br",null),B&&t.createElement("div",{className:s.buttons},g&&t.createElement(c,e({},{href:g},{icon:r})),h&&t.createElement(c,e({},{href:h},{icon:a})),j&&t.createElement(c,e({},{href:j},{icon:n}))))))))),t.createElement("div",{className:s.bottomBlock},C&&t.createElement(t.Fragment,null,t.createElement("div",{className:s.text},x),t.createElement("div",{className:s.buttons},y&&t.createElement(c,e({},{href:y},{icon:m})),w&&t.createElement(c,e({},{href:w},{icon:o}))))))};export{E as Footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{C as ContactBlock}from"../contact-block-
|
|
1
|
+
import"react";export{C as ContactBlock}from"../contact-block-89f5620b.js";
|
package/dist/footer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Footer}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Footer}from"./component.js";import"../tslib.es6-e799146e.js";import"react";import"alpha-cli-icons";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-4362067b.js";import"../grid/row/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../section-wrapper/component.js";import"../contact-block-89f5620b.js";
|
package/dist/form/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Button as
|
|
1
|
+
import o from"react";import{Button as t}from"../button/component.js";import{FlexColumns as e}from"../flex-columns/component.js";import{Input as n}from"../input/component.js";import{ModalContext as r}from"../modal/context.js";import{RestForm as m}from"./templates/rest-form/index.js";import"../tslib.es6-e799146e.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../modal/components/modals/index.js";import"../modal/components/modal-backgroung/index.js";import"../modal/hooks/use-modal.js";import"uuid";import"alpha-cli-icons";import"../formik.esm-afc2d983.js";import"../index-eba9044b.js";import"../_commonjsHelpers-598fc4da.js";import"../icon-button/component.js";import"../list-allert/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../sidepanel-header/component.js";import"./components/form-footer/index.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./components/form-wrapper/index.js";import"./components/form-updating/index.js";var i={baz:"baz",bar:"bar"},s=function(){var t=o.useState(!0),r=t[0],s=t[1],p=o.useState(!1),a=p[0],c=p[1],l=o.useState(!1),u=l[0],d=l[1];o.useEffect((function(){setTimeout((function(){return s(!1)}),3e3)}),[]);return o.createElement(m,{recordId:8273682763,initialValues:i,customValidationFields:["bar"],save:function(){return new Promise((function(o){c(!0),setTimeout((function(){o(),c(!1)}),3e3)}))},remove:function(){return new Promise((function(o){d(!0),setTimeout((function(){o(),d(!1)}),3e3)}))},title:"custom title",loading:r,submitButtonText:"csdcds",updating:a,removing:u,close:function(){},t:function(o){return o}},(function(t){var r=t.values,m=t.touched,i=t.errors,s=t.handleChange;return o.createElement(e,{columns:1,gr:16,gc:0},o.createElement(n,{label:"baz",value:r.baz,onChange:s("baz"),error:m.baz&&i.baz}),o.createElement(n,{label:"bar",value:r.bar,onChange:s("bar"),error:m.bar&&i.bar}))}))},p=function(){var e=(0,o.useContext(r).openModal)(s);return o.createElement(o.Fragment,null,o.createElement(t,{onClick:e},"open crud modal"))};export{p as Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Button as t}from"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import{Button as t}from"../../../button/component.js";import"../../../tslib.es6-e799146e.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var o="index-module_component__ijVOx",n=function(n){var i=n.submitButtonText,r=void 0===i?"save":i,s=n.submit,a=n.close,m=n.children,c=n.loading,d=n.disabled,l=n.t;return e.createElement("div",{className:o},e.createElement(t,{view:"primary",size:"xs",loading:c,disabled:d,dataTestId:"buttonSave",onClick:function(){return s()}},l(r)),e.createElement(t,{view:"secondary",size:"xs",dataTestId:"buttonCancel",onClick:a},l("cancel")),m)};export{n as FormFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as
|
|
1
|
+
import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as e}from"./form-updating/index.js";import{FormWrapper as t}from"./form-wrapper/index.js";import"react";import"../../button/component.js";import"../../tslib.es6-e799146e.js";import"react-merge-refs";import"classnames";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../skeleton/component.js";import"./form-outer/index.js";var m={Footer:o,Wrapper:t,Updating:e,Loading:r};export{m as Form};
|
package/dist/form/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CrudForm}from"./templates/crud-form/index.js";export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"alpha-cli-icons";import"../formik.esm-
|
|
1
|
+
export{CrudForm}from"./templates/crud-form/index.js";export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"alpha-cli-icons";import"../formik.esm-afc2d983.js";import"../index-eba9044b.js";import"../_commonjsHelpers-598fc4da.js";import"../icon-button/component.js";import"../tslib.es6-e799146e.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../sidepanel-header/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/form-footer/index.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./components/form-wrapper/index.js";import"./utils/get-default-values.js";import"./components/form-updating/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{TrashM as o}from"alpha-cli-icons";import{F as t}from"../../../formik.esm-
|
|
1
|
+
import e from"react";import{TrashM as o}from"alpha-cli-icons";import{F as t}from"../../../formik.esm-afc2d983.js";import{IconButton as r}from"../../../icon-button/component.js";import{SidepanelHeader as m}from"../../../sidepanel-header/component.js";import{FormFooter as n}from"../../components/form-footer/index.js";import{FormLoading as i}from"../../components/form-loading/index.js";import{FormOuter as s}from"../../components/form-outer/index.js";import{FormWrapper as a}from"../../components/form-wrapper/index.js";import{getDefaultValues as l}from"../../utils/get-default-values.js";import"../../../index-eba9044b.js";import"../../../_commonjsHelpers-598fc4da.js";import"../../../tslib.es6-e799146e.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-3b4fd590.js";import"../../../common.module-1f20b0cc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../skeleton/component.js";var p="index-module_header_addons__BmSJ0",d="index-module_disabled_form_inner__F7BtU",c=function(c){var u=c.recordId,f=c.title,j=c.initialValues,b=c.defaultValues,h=c.validationSchema,g=c.submitButtonText,v=c.loading,x=c.updating,y=c.removing,_=c.save,E=c.remove,B=c.close,S=c.t,k=c.children,T=c.headerAddon;if(v)return e.createElement(i,null);var F=!!u&&!!E,V=F||T?e.createElement("div",{className:p},F&&e.createElement(r,{dataTestId:"removeTariffBtn",size:"m",disabled:x,loading:y,onClick:E,icon:o}),T):null;return e.createElement(t,{validationSchema:h,initialValues:l(j,b),onSubmit:_},(function(o){return e.createElement(s,null,e.createElement(m,{rightAddons:V,title:f,border:!1}),e.createElement(a,null,(x||y)&&e.createElement("div",{className:d}),k(o)),e.createElement(n,{t:S,loading:x,disabled:y,submit:o.handleSubmit,submitButtonText:g,close:B}))}))};export{c as CrudForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{F as o}from"../../../formik.esm-
|
|
1
|
+
import e from"react";import{F as o}from"../../../formik.esm-afc2d983.js";import{SidepanelHeader as t}from"../../../sidepanel-header/component.js";import{FormFooter as r}from"../../components/form-footer/index.js";import{FormOuter as m}from"../../components/form-outer/index.js";import{FormWrapper as i}from"../../components/form-wrapper/index.js";import{getDefaultValues as n}from"../../utils/get-default-values.js";import"../../../index-eba9044b.js";import"../../../_commonjsHelpers-598fc4da.js";import"classnames";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-e799146e.js";import"../../../typography/title/component.js";import"../../../colors.module-3b4fd590.js";import"../../../common.module-1f20b0cc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var s=function(s){var p=s.initialValues,l=s.defaultValues,a=s.children,c=s.submitCallback,u=s.close,f=s.t,j=n(p,l);return e.createElement(o,{initialValues:j,onSubmit:function(e){c(e),u()}},(function(o){return e.createElement(m,null,e.createElement(t,{title:f("filters"),border:!1}),e.createElement(i,null,a(o)),e.createElement(r,{t:f,submit:o.handleSubmit,close:u}))}))};export{s as FiltersForm};
|
|
@@ -9,8 +9,8 @@ type Props<T> = {
|
|
|
9
9
|
initialValues: T;
|
|
10
10
|
validate?: (values: T) => void | Record<string, unknown> | Promise<FormikErrors<T>>;
|
|
11
11
|
customValidationFields?: Array<keyof T>;
|
|
12
|
-
save: (values: any) =>
|
|
13
|
-
remove?: () =>
|
|
12
|
+
save: (values: any) => any;
|
|
13
|
+
remove?: () => any;
|
|
14
14
|
loading?: boolean;
|
|
15
15
|
updating?: boolean;
|
|
16
16
|
removing?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{TrashM as t}from"alpha-cli-icons";import{F as o}from"../../../formik.esm-
|
|
1
|
+
import e from"react";import{TrashM as t}from"alpha-cli-icons";import{F as o}from"../../../formik.esm-afc2d983.js";import{IconButton as r}from"../../../icon-button/component.js";import{ListAllert as n}from"../../../list-allert/component.js";import{SidepanelHeader as i}from"../../../sidepanel-header/component.js";import{FormFooter as m}from"../../components/form-footer/index.js";import{FormLoading as s}from"../../components/form-loading/index.js";import{FormOuter as l}from"../../components/form-outer/index.js";import{FormUpdating as a}from"../../components/form-updating/index.js";import{FormWrapper as p}from"../../components/form-wrapper/index.js";import"../../../index-eba9044b.js";import"../../../_commonjsHelpers-598fc4da.js";import"../../../tslib.es6-e799146e.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-3b4fd590.js";import"../../../common.module-1f20b0cc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../skeleton/component.js";var d="index-module_header_addons__Kx-q1",c="index-module_disabled_form_inner__9HqiU";function u(u){var f=u.recordId,j=u.title,b=u.initialValues,v=u.submitButtonText,x=u.loading,g=u.updating,h=u.removing,E=u.customValidationFields,y=u.validate,_=u.save,k=u.remove,T=u.close,q=u.t,A=u.children,B=u.headerAddon,F=u.error,V=u.softError;if(F)return e.createElement("div",null,"Error ");if(x)return e.createElement(s,null);var w,C,H,I=!!f&&!!k,N=I||B?e.createElement("div",{className:d},I&&e.createElement(r,{dataTestId:"removeTariffBtn",size:"m",disabled:g,loading:h,onClick:k,icon:t}),B):null;return e.createElement(o,{validate:(w=y,C=E,w||(C?(H=C,function(e){return H.reduce((function(t,o){return("object"==typeof e?e:{})[o]||(t[o]="Required"),t}),{})}):void 0)),initialValues:b,onSubmit:_},(function(t){var o=V||(t.submitCount&&Object.keys(t.errors).length?e.createElement("div",null,"Pleace fix errors in this form"):void 0);return e.createElement(l,null,(g||h)&&e.createElement(a,null),e.createElement(i,{rightAddons:N,bottomAddons:!!o&&e.createElement(n,{text:o,view:"negative"}),title:j,border:!1}),e.createElement(p,null,(g||h)&&e.createElement("div",{className:c}),A(t)),e.createElement(m,{t:q,disabled:h,submit:t.handleSubmit,submitButtonText:v,close:T}))}))}export{u as RestForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../tslib.es6-e799146e.js";function r(r,t){return Object.entries(t).reduce((function(t,n){var i,o=n[0],s=n[1];return e(((i={})[o]=r[o]||s,i),t)}),{})}export{r as getDefaultValues};
|
|
@@ -30,15 +30,15 @@ declare const FormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
30
30
|
error?: string | boolean | undefined;
|
|
31
31
|
hint?: string | undefined;
|
|
32
32
|
required?: boolean | undefined;
|
|
33
|
-
label?:
|
|
34
|
-
leftAddons?:
|
|
35
|
-
rightAddons?:
|
|
36
|
-
bottomAddons?:
|
|
33
|
+
label?: ReactNode;
|
|
34
|
+
leftAddons?: ReactNode;
|
|
35
|
+
rightAddons?: ReactNode;
|
|
36
|
+
bottomAddons?: ReactNode;
|
|
37
37
|
className?: string | undefined;
|
|
38
38
|
fieldClassName?: string | undefined;
|
|
39
39
|
labelClassName?: string | undefined;
|
|
40
40
|
addonsClassName?: string | undefined;
|
|
41
41
|
dataTestId?: string | undefined;
|
|
42
|
-
children?:
|
|
42
|
+
children?: ReactNode;
|
|
43
43
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
44
44
|
export { FormControlProps, FormControl };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../tslib.es6-e799146e.js";import l from"react";import s from"classnames";var a={component:"index-module_component__88xUs",inner:"index-module_inner__5E-18",inputWrapper:"index-module_inputWrapper__EYDad",input:"index-module_input__28cIX",label:"index-module_label__38axD",labelInner:"index-module_labelInner__EJhNP",addons:"index-module_addons__lhT1R",leftAddons:"index-module_leftAddons__LEkge",rightAddons:"index-module_rightAddons__zsPCo",sub:"index-module_sub__i9z6r",hint:"index-module_hint__RpKM-",block:"index-module_block__flzeK",s:"index-module_s__prKUx",hasLabel:"index-module_hasLabel__ZoVEF",m:"index-module_m__WsWRp",l:"index-module_l__GgDaN",hasLeftAddons:"index-module_hasLeftAddons__SCMwi",hasRightAddons:"index-module_hasRightAddons__-5ME3",disabled:"index-module_disabled__xb0nE",focused:"index-module_focused__gP4eM",hasError:"index-module_hasError__YIyAz",filled:"index-module_filled__eiB1o",error:"index-module_error__kbem3"},n=l.forwardRef((function(n,o){var i,r,t=n.block,_=void 0!==t&&t,m=n.size,u=void 0===m?"s":m,c=n.className,b=n.required,f=n.fieldClassName,h=n.labelClassName,x=n.addonsClassName,p=n.disabled,E=n.focused,N=n.filled,A=n.error,g=n.hint,v=n.label,C=n.leftAddons,k=n.rightAddons,I=n.bottomAddons,L=n.children,R=n.dataTestId,z=e(n,["block","size","className","required","fieldClassName","labelClassName","addonsClassName","disabled","focused","filled","error","hint","label","leftAddons","rightAddons","bottomAddons","children","dataTestId"]),W="string"==typeof A?A:"";return l.createElement("div",{"data-test-id":R,className:s(a.component,c,a[u],(i={},i[a.block]=_,i[a.hasLeftAddons]=C,i[a.hasRightAddons]=k||A,i))},l.createElement("div",d({},z,{className:s(f,a.inner,(r={},r[a.focused]=E,r[a.disabled]=p,r[a.filled]=N,r[a.hasError]=A,r[a.hasLabel]=v,r)),ref:o}),C&&l.createElement("div",{className:s(a.addons,a.leftAddons,x)},C),l.createElement("div",{className:a.inputWrapper},v&&l.createElement("div",{className:s(a.label,h)},l.createElement("span",{className:a.labelInner},b?v+" *":v)),l.createElement("div",{className:a.input},L)),k&&l.createElement("div",{className:s(a.addons,a.rightAddons,x)},k)),I,W&&l.createElement("span",{className:s(a.sub,a.error)},W),g&&!W&&l.createElement("span",{className:s(a.sub,a.hint)},g))}));export{n as FormControl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormControl}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormControl}from"./component.js";import"../tslib.es6-e799146e.js";import"react";import"classnames";
|