@alphakits/ui 1.28.13 → 1.28.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/back-button/component.js +1 -1
- package/dist/back-button/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 -6
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/button-arrow/component.js +1 -1
- package/dist/button-arrow/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.js +1 -1
- package/dist/calendar/use-period.js +1 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.js +1 -1
- package/dist/{capitalize-18078eb5.js → capitalize-1b9b6924.js} +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.d.ts +13 -0
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/component.d.ts +7 -0
- 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/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/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/empty-page/component.js +1 -1
- package/dist/empty-page/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/index.js +1 -1
- package/dist/form/templates/base-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/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.d.ts +13 -2
- 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-preview/index.d.ts +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/context.d.ts +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-gallery/utils/utils.d.ts +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/isSymbol-3e3833dc.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/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.js +1 -1
- package/dist/modal/context.d.ts +1 -0
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/page-with-controls/component.js +1 -1
- package/dist/page-with-controls/index.js +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/portal/utils.d.ts +1 -1
- package/dist/portal/utils.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/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.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel/component.js +1 -1
- package/dist/sidepanel/index.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/{slide-c577cf1d.d.ts → slide-24a95239.d.ts} +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/step-bar-1e3290e5.d.ts +8 -0
- package/dist/stepped-progress-bar/components/step-bar.js +1 -0
- package/dist/stepped-progress-bar/index.d.ts +2 -2
- package/dist/stepped-progress-bar/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/swiper-slide-2d7bd148.js +1 -0
- 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.d.ts +7 -0
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.d.ts +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.d.ts +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.d.ts +38 -0
- 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.d.ts +2 -0
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.d.ts +12 -0
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/use-image-render-component-ca144fdd.js +1 -0
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +16 -11
- package/dist/ActionCopyM-70898595.js +0 -1
- package/dist/CancelM-088e6940.js +0 -1
- package/dist/CheckmarkCircleM-f684cf46.js +0 -1
- package/dist/ChevronBackM-aee18038.js +0 -1
- package/dist/ChevronBackS-299d7d1e.js +0 -1
- package/dist/ChevronDownS-bd371173.js +0 -1
- package/dist/ChevronForwardM-a3a04aa8.js +0 -1
- package/dist/ChevronForwardS-c493a1a1.js +0 -1
- package/dist/ClockCircleM-d218e835.js +0 -1
- package/dist/CloseS-e1864257.js +0 -1
- package/dist/ControllerS-7a9ecca0.js +0 -1
- package/dist/EditS-9cde0683.js +0 -1
- package/dist/MinusM-af938dd8.js +0 -1
- package/dist/MoverS-a1889978.js +0 -1
- package/dist/NextS-4109921c.js +0 -1
- package/dist/PhotoS-b296cb33.js +0 -1
- package/dist/PlusS-15110f9d.js +0 -1
- package/dist/SearchM-ad181eb5.js +0 -1
- package/dist/TrashM-1258ddef.js +0 -1
- package/dist/YoutubeM-d17dbfe8.js +0 -1
- package/dist/_commonjsHelpers-e9fa40dd.js +0 -1
- package/dist/component-4b3baef3.d.ts +0 -7
- package/dist/component-4b3baef3.js +0 -1
- package/dist/component-523d39f3.d.ts +0 -17
- package/dist/component-523d39f3.js +0 -1
- package/dist/component-7fdb3434.d.ts +0 -13
- package/dist/date-functions.d.ts +0 -37
- package/dist/date-functions.js +0 -1
- package/dist/formik.esm-ce308774.js +0 -1
- package/dist/image-gallery/types.d.ts +0 -13
- package/dist/image-gallery/types.js +0 -1
- package/dist/index-056471fd.js +0 -1
- package/dist/index-2fa7de8d.js +0 -1
- package/dist/index-4f62c122.js +0 -1
- package/dist/index-5365bc15.js +0 -1
- package/dist/index-5f244101.js +0 -1
- package/dist/index-73750f1c.js +0 -1
- package/dist/index-820ddb0e.js +0 -9
- package/dist/index-89bc7be5.js +0 -1
- package/dist/index-9943a288.js +0 -1
- package/dist/index-9e297c3c.js +0 -1
- package/dist/index-aa8c3564.js +0 -1
- package/dist/index-e6f864d9.js +0 -1
- package/dist/index-e97180cd.js +0 -1
- package/dist/index-f3950f98.js +0 -1
- package/dist/intersection-observer-e15e78dd.js +0 -1
- package/dist/isSymbol-faa23a32.js +0 -1
- package/dist/parse-query-params-c07afed3.d.ts +0 -2
- package/dist/parse-query-params-c07afed3.js +0 -1
- package/dist/step-bar-a5486816.d.ts +0 -8
- package/dist/stepped-progress-bar/step-bar.js +0 -1
- package/dist/table-fa12db74.d.ts +0 -38
- package/dist/tslib.es6-037db755.js +0 -1
- package/dist/use-image-render-component-5a81ce40.js +0 -1
- /package/dist/{colors.module-0071a3ac.js → colors.module-c9f97d8d.js} +0 -0
- /package/dist/{contact-block-029bb051.d.ts → contact-block-40af9a2b.d.ts} +0 -0
- /package/dist/{contact-block-029bb051.js → contact-block-40af9a2b.js} +0 -0
- /package/dist/{gutters.module-9fbea122.js → gutters.module-3c3e349d.js} +0 -0
- /package/dist/{slide-c577cf1d.js → slide-24a95239.js} +0 -0
- /package/dist/{step-bar-a5486816.js → step-bar-1e3290e5.js} +0 -0
- /package/dist/stepped-progress-bar/{step-bar.d.ts → components/step-bar.d.ts} +0 -0
- /package/dist/{use-image-render-component-5a81ce40.d.ts → use-image-render-component-ca144fdd.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{parse as t}from"date-fns";var e="dd.MM.yyyy",d="yyyy-MM-dd",n=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],r="undefined"!=typeof window,u=r&&o(),a=function(t){return t.length===n.length},i=function(d,n){return void 0===n&&(n=e),t(d,n,new Date)};function o(){var t=document.createElement("input");return t.setAttribute("type","date"),t.setAttribute("value","a"),"a"!==t.value}export{e as DATE_FORMAT,n as DATE_MASK,r as IS_BROWSER,d as NATIVE_DATE_FORMAT,u as SUPPORTS_INPUT_TYPE_DATE,a as isCompleteDateInput,o as isInputDateSupported,i as parseDateString};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r,i as u}from"./isSymbol-
|
|
1
|
+
import{_ as r,i as u}from"./isSymbol-3e3833dc.js";var f=function(r,u){for(var f=-1,n=null==r?0:r.length,t=Array(n);++f<n;)t[f]=u(r[f],f,r);return t},n=Array.isArray,t=1/0,e=r?r.prototype:void 0,o=e?e.toString:void 0;var i=function r(e){if("string"==typeof e)return e;if(n(e))return f(e,r)+"";if(u(e))return o?o.call(e):"";var i=e+"";return"0"==i&&1/e==-t?"-0":i};var a=function(r){return null==r?"":i(r)};var d=function(r,u,f){var n=-1,t=r.length;u<0&&(u=-u>t?0:t+u),(f=f>t?t:f)<0&&(f+=t),t=u>f?0:f-u>>>0,u>>>=0;for(var e=Array(t);++n<t;)e[n]=r[n+u];return e};var c=function(r,u,f){var n=r.length;return f=void 0===f?n:f,!u&&f>=n?r:d(r,u,f)},v=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var l=function(r){return v.test(r)};var s=function(r){return r.split("")},p="\\ud800-\\udfff",g="["+p+"]",y="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",A="[^"+p+"]",j="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="(?:"+y+"|"+h+")"+"?",x="[\\ufe0e\\ufe0f]?",C=x+b+("(?:\\u200d(?:"+[A,j,m].join("|")+")"+x+b+")*"),E="(?:"+[A+y+"?",y,j,m,g].join("|")+")",R=RegExp(h+"(?="+h+")|"+E+C,"g");var S=function(r){return r.match(R)||[]};var w=function(r){return l(r)?S(r):s(r)};var L=function(r){return function(u){u=a(u);var f=l(u)?w(u):void 0,n=f?f[0]:u.charAt(0),t=f?c(f,1).join(""):u.slice(1);return n[r]()+t}}("toUpperCase");var U=function(r){return L(a(r).toLowerCase())};export{U as c};
|
package/dist/card/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"../swiper-slide-2d7bd148.js";import"../image/image-base.js";import"../use-image-render-component-ca144fdd.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,a=void 0===n?"default":n,s=r.bottomAddons,p=r.images,l=void 0===p?[]:p,d=r.orientation,c=void 0===d?"horizontal":d,g=r.title,u=r.subtitle,v=r.titleAddons;return t.createElement("div",{className:e([m.component,m[a]])},!!l.length&&t.createElement(i,{orientation:c,images:l,view:a}),t.createElement("div",{className:m.content},t.createElement("div",{className:m.titleWrap},t.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),v),t.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};export{r as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{
|
|
1
|
+
import e from"react";import t from"classnames";import{S as o,a as i}from"../../swiper-slide-2d7bd148.js";import{ImageBase as r}from"../../image/image-base.js";import"../../use-image-render-component-ca144fdd.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-c9f97d8d.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";import"../../image/types.js";import"../../image/utils.js";var n={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},m=function(m){var a=m.images,s=void 0===a?[]:a,p=m.orientation,l=void 0===p?"horizontal":p,c=m.view,d=void 0===c?"default":c;return e.createElement("div",{className:t([n[l],n.container])},e.createElement("div",{className:t([n.content,n[d]])},s.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},s.map((function(t){return e.createElement(i,{key:t},e.createElement(r,{src:t}))}))):e.createElement(r,{src:s[0]})))};export{m as CardImages};
|
package/dist/card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./images/index.js";import"../swiper-slide-2d7bd148.js";import"../image/image-base.js";import"../use-image-render-component-ca144fdd.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PureProps } from "../pure/component";
|
|
4
|
+
type BaseProps = {
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
subtitle?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: PureProps['size'];
|
|
9
|
+
dataTestId?: string;
|
|
10
|
+
addon?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const Base: React.FC<BaseProps>;
|
|
13
|
+
export { BaseProps, Base };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";
|
|
1
|
+
import e,{useRef as t}from"react";import o from"classnames";import{getDataTestId as m}from"../../__internal/utils/getDataTestId.js";import{useFocus as r}from"../../hooks/useFocus/index.js";import{Typography as i}from"../../typography/component.js";import{Pure as a}from"../pure/component.js";import"../../typography/text/component.js";import"../../colors.module-c9f97d8d.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";var s="index-module_component__BNjZ4",l="index-module_title__VeYlM",n="index-module_subtitle__OOoZr",d="index-module_focused__ootMA",p=function(p){var c,u=p.className,_=p.dataTestId,x=p.title,y=p.subtitle,f=p.size,g=void 0===f?"m":f,j=p.addon,h=t(null),v=r(h,"keyboard")[0];return e.createElement(a,{slot:j,className:o(s,(c={},c[d]=v,c),u),dataTestId:m("cell-action",_,!0),tabIndex:0,size:g,ref:h},e.createElement(e.Fragment,null,x&&e.createElement(i.Text,{view:"title",color:"primary",weight:"medium",tag:"div",className:l},x),y&&e.createElement(i.Text,{weight:"medium",view:"caps",tag:"div",className:n,color:"secondary"},y)))};export{p as Base};
|
package/dist/cell/component.d.ts
CHANGED
package/dist/cell/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Base as o}from"./base/component.js";import{Pure as t}from"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var p={Pure:t,Base:o};export{p as Cell};
|
package/dist/cell/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./component";
|
package/dist/cell/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Cell}from"./component.js";import"./base/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as e,__assign as r}from"tslib";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as i}from"../../__internal/utils/getDataTestId.js";var a={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,_=o.size,s=void 0===_?"m":_,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,O=o.dataTestId,f=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[a.normalOrder]="normal"===v&&m,t[a.reverseOrder]="reverse"===v&&m,t[a[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(a.component,a[s],r({},z),p),"data-test-id":i("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(a.addon,r({},z))},m),d.createElement("div",{className:l(a.child,r({},z))},h))}));export{n as Pure};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as e,__assign as n}from"tslib";import d,{forwardRef as t,useRef as a}from"react";import o from"react-merge-refs";import i from"@alphakits/icons/dist/CheckmarkS";import l from"@alphakits/icons/dist/MinusM";import m 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=t((function(t,r){var _,u=t.checked,b=t.label,h=t.hint,p=t.size,x=void 0===p?"m":p,k=t.align,f=void 0===k?"center":k,E=t.addons,N=t.block,g=t.onChange,I=t.className,v=t.name,C=t.disabled,M=t.dataTestId,y=t.indeterminate,z=void 0!==y&&y,D=e(t,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),O=a(null),T=c(O,"keyboard")[0];return d.createElement("label",{className:m(s.component,s[x],s[f],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=z,_[s.focused]=T,_[s.block]=N,_)),ref:o([O,r])},d.createElement("span",{className:s.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":M},D)),u&&d.createElement(i,null),z&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(l,null))),(b||h)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),h&&d.createElement("span",{className:s.hint},h)),E&&d.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"
|
|
1
|
+
export{Checkbox}from"./component.js";import"tslib";import"react";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__spreadArray as e}from"tslib";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{Typography as n}from"../typography/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";var r="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",l=function(l){var m=l.title,a=l.subtitle,d=l.selected,s=void 0===d?[]:d,p=l.data,u=void 0===p?[]:p,v=l.onChange,g=l.columns,h=void 0===g?1:g,f=l.disabled,k=l.gr,y=void 0===k?20:k,x=l.gc,b=void 0===x?20:x,_=l.dataTestId,j=s||[],E=function(e){return _?"checkbox_"+_+"_"+e:"checkbox_"+e};return t.createElement("div",null,(m||a)&&t.createElement("div",{className:r},m&&t.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},m),a&&t.createElement(n.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(i,{columns:h,gr:y,gc:b},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(i,n){return t.createElement(o,{disabled:f,key:i.key+i.content,dataTestId:E(n),onChange:function(){return t=i.key,void v((null==j?void 0:j.includes(t))?null==j?void 0:j.filter((function(e){return e!==t})):e(e([],j),[t]));var t},checked:null==j?void 0:j.includes(i.key),label:i.content})})))))};export{l as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"tslib";import"react";import"../checkbox/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__spreadArray as e}from"tslib";import t,{useState as n}from"react";import o from"@alphakits/icons/dist/ChevronDownS";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as i}from"../collapse/component.js";import{Divider as c}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 s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"../hooks/useFocus/index.js";import"../isSymbol-3e3833dc.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/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,b=u.checkableParent,v=u.collapsable,E=u.disabled,g=u.onChange,j=[],k=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&&j.push(t)}));var y=n(j),x=y[0],C=y[1],F=function(t){t.forEach((function(n){(null==k?void 0:k.includes(n))?g(k.filter((function(e){return!t.includes(e)}))):g(e(e([],k),t))}))},w=function(e){var n,o,l=e.element;return b?t.createElement(r,{block:!0,disabled:E,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==k?void 0:k.includes(e))&&(o=!0)})),o),onChange:function(){return F(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var p;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(w,{element:e}),v&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);C(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(p={},p[d.collapse_btn_collapsed]=e.collapsed,p)),icon:o})),!e.collapsed&&t.createElement(s,{padding:"16px 0 0 0"})),t.createElement(i,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1,gr:8},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return F([e.id])},checked:null==k?void 0:k.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(c,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"tslib";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-3e3833dc.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/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"react";import o from"@alphakits/icons/dist/EditS";import e from"@alphakits/icons/dist/PlusS";import{Button as r}from"../button/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";var m=function(e){var r=e.location,m=e.onClick;return t.createElement(t.Fragment,null,t.createElement(n.Text,{view:"title",weight:"bold",color:"primary"},r.address),t.createElement(i,{icon:o,onClick:m,size:"s",view:"ghost"}))},s=function(o){var i=o.onClick;return t.createElement(r,{leftAddons:t.createElement(e,null),size:"xs",onClick:i,view:"secondary"},"Добавить квест")};export{s as Addons,m as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import n from"@alphakits/icons/dist/ChevronDownS";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"../isSymbol-3e3833dc.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";var l="index-module_wrapper__tyP5w",a="index-module_row__g6gnE",c="index-module_label__kuH6r",p="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var x,f=u.label,j=u.content,b=u.expanded,h=u.addons,y=u.children,v=u.disabled,g=o(b),E=g[0],w=g[1];return t((function(){w(b)}),[b]),e.createElement("div",null,e.createElement("div",{className:l},e.createElement("div",{className:a},f&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},f),j),e.createElement("div",{className:a},h,e.createElement(i,{onClick:function(){return w(!E)},className:r(p,(x={},x[d]=E,x)),disabled:v,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},y))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../collapse/component.js";import"../isSymbol-3e3833dc.js";import"resize-observer";import"../link/component.js";import"tslib";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/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as
|
|
1
|
+
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as u}from"react";import a from"classnames";import{a as c,i as s}from"../isSymbol-3e3833dc.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";var d=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)},v=function(){return c.Date.now()},m=/\s/;var p=function(e){for(var n=e.length;n--&&m.test(e.charAt(n)););return n},x=/^\s+/;var h=function(e){return e?e.slice(0,p(e)+1).replace(x,""):e},_=NaN,g=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,w=/^0o[0-7]+$/i,y=parseInt;var T=function(e){if("number"==typeof e)return e;if(s(e))return _;if(d(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=d(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=h(e);var t=E.test(e);return t||w.test(e)?y(e.slice(2),t?2:8):g.test(e)?_:+e},b="Expected a function",k=Math.max,N=Math.min;var z=function(e,n,t){var r,i,o,u,a,c,s=0,f=!1,l=!1,m=!0;if("function"!=typeof e)throw new TypeError(b);function p(n){var t=r,o=i;return r=i=void 0,s=n,u=e.apply(o,t)}function x(e){var t=e-c;return void 0===c||t>=n||t<0||l&&e-s>=o}function h(){var e=v();if(x(e))return _(e);a=setTimeout(h,function(e){var t=n-(e-c);return l?N(t,o-(e-s)):t}(e))}function _(e){return a=void 0,m&&r?p(e):(r=i=void 0,u)}function g(){var e=v(),t=x(e);if(r=arguments,i=this,c=e,t){if(void 0===a)return function(e){return s=e,a=setTimeout(h,n),f?p(e):u}(c);if(l)return clearTimeout(a),a=setTimeout(h,n),p(c)}return void 0===a&&(a=setTimeout(h,n)),u}return n=T(n)||0,d(t)&&(f=!!t.leading,o=(l="maxWait"in t)?k(T(t.maxWait)||0,n):o,m="trailing"in t?!!t.trailing:m),g.cancel=function(){void 0!==a&&clearTimeout(a),s=0,r=c=i=a=void 0},g.flush=function(){return void 0===a?u:_(v())},g},C="index-module_collapse__ORa-f",j="index-module_content__UDk-m",L="index-module_expandedContent__iQszl",O="index-module_children_wrap__ekYCk",$=n((function(n,c){var s,d=n.expanded,v=n.defaultExpanded,m=n.collapsedLabel,p=n.expandedLabel,x=n.children,h=n.className,_=n.contentClassName,g=n.id,E=n.onExpandedChange,w=n.onTransitionEnd,y=n.dataTestId,T=n.linkProps,b=void 0===d,k=t(null),N=t(null),$=r(v||d),D=$[0],H=$[1],I=b?D:d,M=i((function(){var e;N.current&&k.current&&(e=I?N.current.offsetHeight:0,k.current.style.height=e+"px")}),[I]),W=i((function(){w&&w(d)}),[d,w]),A=i((function(){b&&H(!I),console.log(I),E&&E()}),[I,E,b]);o((function(){var e=z((function(){return M()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[M]),o((function(){var e=new f(M);return N.current&&e.observe(N.current),function(){e.disconnect()}}),[M]),o((function(){return M()}),[I,M]);var F=u((function(){var e,n=null===(e=k.current)||void 0===e?void 0:e.offsetHeight;return{height:I&&!n?"0px":n+"px"}}),[I]),P=!!p||!!m;return e.createElement("div",{ref:c,className:a(h,C),id:g,"data-test-id":y},e.createElement("div",{onTransitionEnd:W,ref:k,className:a(j,_,(s={},s[L]=I,s)),style:F},e.createElement("div",{className:a(O),ref:N},x)),P&&e.createElement(l,{view:(null==T?void 0:T.view)||"secondary",size:(null==T?void 0:T.size)||"m",pseudo:!0,onClick:A},I?p:m))}));export{$ as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-3e3833dc.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import
|
|
1
|
+
import t from"react";import o from"@alphakits/icons/dist/ActionCopyM";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as r}from"../typography/component.js";import"tslib";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";var p="index-module_wrapper__dZRhL",m="index-module_link_button__VKWD-",n=function(n){var s=n.text,a=n.fullText,c=n.color;return t.createElement("div",{className:p},t.createElement(r.Text,{view:"title",weight:"medium",color:c||"primary"},s),t.createElement(i,{icon:o,className:m,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a||s).then((function(){e({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CopyButton}from"./component.js";import"react";import"
|
|
1
|
+
export{CopyButton}from"./component.js";import"react";import"@alphakits/icons/dist/ActionCopyM";import"../icon-button/component.js";import"tslib";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
package/dist/date/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as t,__assign as o}from"tslib";import e from"react";import{Typography as a}from"../typography/component.js";import"../toast-notifier/component.js";import{formatDate as i}from"../utils/format-date/index.js";import"../typography/text/component.js";import"classnames";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"date-fns";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";var r=function(r){var s=r.className,m=r.dataTestId,p=r.date,l=r.time,n=r.format,c=void 0===n?"dd.MM.yyyy":n,d=r.language,f=void 0===d?"de":d,j=t(r,["className","dataTestId","date","time","format","language"]);return e.createElement(a.Text,o({},j,{className:s,"data-test-id":m}),i(p,{format:c,lang:f,time:l}))};export{r as FormattedDate};
|
package/dist/date/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormattedDate}from"./component.js";import"
|
|
1
|
+
export{FormattedDate}from"./component.js";import"tslib";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"date-fns";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import t from"@alphakits/icons/dist/ChevronBackM";import o from"@alphakits/icons/dist/ChevronForwardM";import a from"classnames";import{startOfISOWeek as r,parseISO as i,isAfter as n,isBefore as d,isToday as m,format as s,add as c,subDays as p,subWeeks as l}from"date-fns";import{Button as y}from"../button/component.js";import{IconButton as _}from"../icon-button/component.js";import{Typography as w}from"../typography/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";var u={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},f="yyyy-MM-dd",h="dd.MM.yy",k=function(k){var v=k.view,x=void 0===v?"day":v,g=k.startDate,j=k.onChange,b=k.minDate,C=k.maxDate,E=k.todayLabel,M=r(i(g)),D="day"===x?i(g):M,T=b?i(b):new Date,z=n(D,T),F=!C||d(D,i(C)),N=m(D);return e.createElement("div",{className:u.date_switcher},e.createElement(_,{disabled:!!b&&!z,onClick:function(){"day"===x&&j(s(p(D,1),f)),"week"===x&&j(s(l(D,1),f))},icon:t}),e.createElement("div",{className:a(u.date_wrap,u[x])},e.createElement(w.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===x?s(D,h):s(D,h)+" - "+s(c(D,{days:6}),h))),e.createElement(_,{disabled:!F,onClick:function(){"day"===x&&j(s(c(D,{days:1}),f)),"week"===x&&j(s(c(D,{days:7}),f))},icon:o}),e.createElement(y,{disabled:N,onClick:function(){j(s(new Date,f))},view:"ghost"},E))};export{k as DateSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateSwitcher}from"./component.js";import"react";import"
|
|
1
|
+
export{DateSwitcher}from"./component.js";import"react";import"@alphakits/icons/dist/ChevronBackM";import"@alphakits/icons/dist/ChevronForwardM";import"classnames";import"date-fns";import"../button/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as e,__assign as t}from"tslib";import o from"react";import r from"classnames";import{Button as i}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Typography as l}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_wrapper__X4Vyh",n="index-module_content__xoB7w",p="index-module_overlay__GChru",c="index-module_image__qJIV8",s=function(s){var d=s.code,u=s.image,v=s.overlay,y=s.title,g=s.subtitle,x=s.buttonText,_=s.view,f=void 0===_?"primary":_,h=s.size,w=void 0===h?"m":h,j=e(s,["code","image","overlay","title","subtitle","buttonText","view","size"]);return o.createElement("div",{className:r(a,v&&p)},u&&o.createElement("img",{alt:y,className:c,src:u}),o.createElement(m,{columns:1,gr:8,className:n},d&&o.createElement(l.Title,{view:"large",weight:"bold",color:"primary",tag:"div"},d),o.createElement(l.Title,{view:"small",weight:"bold",color:"primary",tag:"div"},y),g&&o.createElement(l.Text,{color:"primary",weight:"medium",view:"primary-medium"},g)),(!!(null==j?void 0:j.onClick)||(null==j?void 0:j.href))&&o.createElement(i,t({view:f,size:w},j),x))};export{s as EmptyPage};
|
package/dist/empty-page/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{EmptyPage}from"./component.js";import"
|
|
1
|
+
export{EmptyPage}from"./component.js";import"tslib";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
package/dist/footer/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__assign as e}from"tslib";import t from"react";import o from"@alphakits/icons/dist/AppStoreM";import a from"@alphakits/icons/dist/FacebookM";import r from"@alphakits/icons/dist/GooglePlayM";import m from"@alphakits/icons/dist/InstagramM";import n from"@alphakits/icons/dist/YoutubeM";import{Grid as i}from"../grid/component.js";import{IconButton as l}from"../icon-button/component.js";import{SectionWrapper as c}from"../section-wrapper/component.js";import{s,C as p}from"../contact-block-40af9a2b.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-3c3e349d.js";import"../grid/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var d=function(d){var u=d.sections,E=void 0===u?[]:u,f=d.contacts,k=void 0===f?[]:f,b=d.company,v=d.email,g=d.address,h=d.facebookLink,N=d.instagramLink,j=d.youtubeLink,x=d.appText,w=d.google,y=d.appstore,M=h||N||j,F=x&&y&&w;return t.createElement(c,{pb:"m",pt:"l",isBlackBg:!0},t.createElement("div",{className:s.wrapper},t.createElement("div",{className:s.row_wrapper},t.createElement(i.Row,null,t.createElement(t.Fragment,null,E.map((function(e){return t.createElement(i.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(i.Col,{key:"cont",width:{desktop:2,mobile:12}},t.createElement("div",{className:s.contacts},k.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),g&&t.createElement("div",{className:s.text},g),t.createElement("br",null),b&&t.createElement("div",{className:s.text},b),t.createElement("br",null),M&&t.createElement("div",{className:s.buttons},h&&t.createElement(l,e({},{href:h},{icon:a})),j&&t.createElement(l,e({},{href:j},{icon:n})),N&&t.createElement(l,e({},{href:N},{icon:m}))))))))),t.createElement("div",{className:s.bottomBlock},F&&t.createElement(t.Fragment,null,t.createElement("div",{className:s.text},x),t.createElement("div",{className:s.buttons},y&&t.createElement(l,e({},{href:y},{icon:o})),w&&t.createElement(l,e({},{href:w},{icon:r}))))))};export{d as Footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{C as ContactBlock}from"../contact-block-
|
|
1
|
+
import"react";export{C as ContactBlock}from"../contact-block-40af9a2b.js";
|
package/dist/footer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Footer}from"./component.js";import"
|
|
1
|
+
export{Footer}from"./component.js";import"tslib";import"react";import"@alphakits/icons/dist/AppStoreM";import"@alphakits/icons/dist/FacebookM";import"@alphakits/icons/dist/GooglePlayM";import"@alphakits/icons/dist/InstagramM";import"@alphakits/icons/dist/YoutubeM";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-3c3e349d.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-40af9a2b.js";
|
package/dist/form/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Button as
|
|
1
|
+
import e from"react";import{Button as t}from"../button/component.js";import{FlexColumns as r}from"../flex-columns/component.js";import{Input as o}from"../input/component.js";import{ModalContext as n}from"../modal/context.js";import{showSuccess as a,showError as i}from"../utils/show-toast/index.js";import"date-fns";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import{RestForm as m}from"./templates/rest-form/index.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../modal/components/modals/index.js";import"../modal/components/modals/modal.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../modal/hooks/use-modal.js";import"uuid";import"../modal/utils/delete-property-by-id.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"formik";import"./templates/rest-form/form.js";import"@alphakits/icons/dist/TrashM";import"../flex/component.js";import"../icon-button/component.js";import"../sidepanel/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";var l={baz:"",bar:""},s={buz:"",bur:""},c=function(t){var n=e.useState(!0),l=n[0],c=n[1],u=e.useState(!1),p=u[0],b=u[1],d=e.useState(!1),f=d[0],h=d[1];e.useEffect((function(){setTimeout((function(){return c(!1)}),500)}),[]);return e.createElement(m,{recordId:827368276387,initialValues:s,customValidationFields:["bur"],save:function(){return new Promise((function(e){b(!0),setTimeout((function(){e(),b(!1),a("","Saved")}),3e3)}))},remove:function(){return new Promise((function(e){h(!0),setTimeout((function(){e(),h(!1),i("Some error from server","Error")}),3e3)}))},title:"custom title other",loading:l,submitButtonText:"submit",updating:p,removing:f,close:null==t?void 0:t.close,t:function(e){return e}},(function(t){var n=t.values,a=t.touched,i=t.errors,m=t.handleChange;return e.createElement(r,{columns:1,gr:16,gc:0},e.createElement(o,{label:"buz",value:n.buz,onChange:m("buz"),error:a.buz&&i.buz}),e.createElement(o,{label:"bur",value:n.bur,onChange:m("bur"),error:a.bur&&i.bur}))}))},u=function(s){var u=e.useState(!0),p=u[0],b=u[1],d=e.useState(!1),f=d[0],h=d[1],j=e.useState(!1),v=j[0],g=j[1],C=(0,e.useContext(n).openModal)(c);e.useEffect((function(){setTimeout((function(){return b(!1)}),500)}),[]);return e.createElement(m,{recordId:8273682763,initialValues:l,customValidationFields:["bar"],save:function(){return new Promise((function(e){h(!0),setTimeout((function(){e(),h(!1),a("","Saved")}),3e3)}))},remove:function(){return new Promise((function(e){g(!0),setTimeout((function(){e(),g(!1),i("Some error from server","Error")}),3e3)}))},title:"Настройки",subtitle:"Подпись к заголовку",back:function(){},softError:"Some error",loading:p,submitButtonText:"csdcds",updating:f,removing:v,close:null==s?void 0:s.close,t:function(e){return e}},(function(n){var a=n.values,i=n.touched,m=n.errors,l=n.handleChange;return e.createElement(r,{columns:1,gr:16,gc:0},e.createElement(o,{label:"baz",value:a.baz,onChange:l("baz"),error:i.baz&&m.baz}),e.createElement(o,{label:"bar",value:a.bar,onChange:l("bar"),error:i.bar&&m.bar}),e.createElement(o,{label:"bar",value:a.bar,onChange:l("bar"),error:i.bar&&m.bar}),e.createElement(o,{label:"bar",value:a.bar,onChange:l("bar"),error:i.bar&&m.bar}),e.createElement(o,{label:"bar",value:a.bar,onChange:l("bar"),error:i.bar&&m.bar}),e.createElement(o,{label:"bar",value:a.bar,onChange:l("bar"),error:i.bar&&m.bar}),e.createElement(o,{label:"bar",value:a.bar,onChange:l("bar"),error:i.bar&&m.bar}),e.createElement(o,{label:"bar",value:a.bar,onChange:l("bar"),error:i.bar&&m.bar}),e.createElement(o,{label:"bar",value:a.bar,onChange:l("bar"),error:i.bar&&m.bar}),e.createElement(t,{onClick:C},"openCrudModalOther"))}))},p=function(){var r=(0,e.useContext(n).openModal)(u);return e.createElement(e.Fragment,null,e.createElement(t,{onClick:r},"open crud modal"))};export{p as Component};
|
package/dist/form/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FiltersForm}from"./templates/filters-form/index.js";import"react";import"
|
|
1
|
+
export{FiltersForm}from"./templates/filters-form/index.js";import"react";import"formik";import"../button/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../sidepanel/component.js";import"../flex-columns/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-c9f97d8d.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";import"./utils/get-default-values.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__assign as e}from"tslib";import i from"react";import{Formik as t}from"formik";import{FormLoading as n}from"../../components/form-loading/index.js";import"../../../flex-columns/component.js";import"classnames";import"../../../skeleton/component.js";function o(o){var r=o.loading,a=o.validate,l=o.customValidationFields,m=o.initialValues,u=o.enableReinitialize,c=o.save,s=o.children,f=o.t;if(r)return i.createElement(n,null);var d,p,v;return i.createElement(t,{validate:(d=a,p=l,d||(p?(v=p,function(e){return v.reduce((function(i,t){return("object"==typeof e?e:{})[t]||(i[t]=f("validationErrors:Required")),i}),{})}):void 0)),initialValues:m,enableReinitialize:u,onSubmit:c},(function(i){return s(e({},i))}))}export{o as BaseForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"react";import{Formik as o}from"formik";import{Button as e}from"../../../button/component.js";import{Sidepanel as n}from"../../../sidepanel/component.js";import{getDefaultValues as r}from"../../utils/get-default-values.js";import"tslib";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex-columns/component.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-c9f97d8d.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";var i=function(i){var m=i.initialValues,s=i.defaultValues,p=i.children,a=i.submitCallback,l=i.close,c=i.t,u=r(m,s);return t.createElement(o,{initialValues:u,onSubmit:function(t){a(t),l()}},(function(o){return t.createElement(n,{title:c("filters"),bottomAddons:t.createElement(t.Fragment,null,t.createElement(e,{view:"primary",size:"s",block:!0,dataTestId:"buttonSave",onClick:function(){return o.submitForm()}},c("save")),t.createElement(e,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:l},c("cancel")))},p(o))}))};export{i as FiltersForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as t,__assign as o}from"tslib";import e,{useContext as i,useState as r,useCallback as n,useEffect as m}from"react";import a from"@alphakits/icons/dist/TrashM";import{Button as s}from"../../../button/component.js";import{Flex as l}from"../../../flex/component.js";import{FlexColumns as d}from"../../../flex-columns/component.js";import{IconButton as c}from"../../../icon-button/component.js";import{ModalContext as p}from"../../../modal/context.js";import{Sidepanel as u}from"../../../sidepanel/component.js";import{ToastPlate as b}from"../../../toast-plate/component.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-c9f97d8d.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";function f(f){var h=f.recordId,j=f.title,g=f.subtitle,k=f.headerBottomAddons,v=f.initialValues,y=f.submitButtonText,C=f.customFooter,E=f.loading,x=f.updating,A=f.removing;f.customValidationFields,f.validate,f.save;var V=f.remove,T=f.close,B=f.back,F=f.t,I=f.children,M=f.headerAddon;f.error;var w=f.softError,S=t(f,["recordId","title","subtitle","headerBottomAddons","initialValues","submitButtonText","customFooter","loading","updating","removing","customValidationFields","validate","save","remove","close","back","t","children","headerAddon","error","softError"]),z=i(p),D=z.setModalDirty,P=z.currentModalId,R=r(P)[0],q=S.submitCount,G=S.handleSubmit,H=S.isValid,J=t(S,["submitCount","handleSubmit","isValid"]),K=!!h&&!!V,L=n((function(){D(R,!1),G()}),[J.dirty,R]),N=n((function(){D(R,!1),confirm(F("common:deleteConfirm"))&&(null==V||V())}),[J.dirty,R]);m((function(){E||D(R,J.dirty)}),[J.dirty,E,R]);var O=K||M?e.createElement(e.Fragment,null,M,K&&e.createElement(c,{dataTestId:"removeTariffBtn",size:"m",disabled:x,loading:A,onClick:N,icon:a})):null;return e.createElement(u,{headerRightAddons:O,title:j,subtitle:g,loading:x||A||E,headerBottomAddons:(k||!!w||!H&&!!q)&&e.createElement(d,{columns:1,gr:8},k,!!w&&e.createElement(b,{view:"negative"},w),!H&&!!q&&e.createElement(b,{view:"negative"},"Please correct errors before submitting form.")),back:B,t:F,bottomAddons:C||e.createElement(l,{gap:"md"},e.createElement(s,{view:"primary",size:"s",block:!0,loading:E,disabled:x||A,dataTestId:"buttonSave",onClick:function(){return L()}},F(y||"save")),e.createElement(s,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:T},F("cancel")))},I(o({submitCount:q,isValid:H,handleSubmit:L,initialValues:v},J)))}export{f as Form};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as o,__assign as t}from"tslib";import i from"react";import{Formik as e}from"formik";import{Form as r}from"./form.js";import"@alphakits/icons/dist/TrashM";import"../../../button/component.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex/component.js";import"../../../flex-columns/component.js";import"../../../icon-button/component.js";import"../../../modal/context.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel/component.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-c9f97d8d.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";function n(n){var m=n.enableReinitialize,p=void 0===m||m,s=o(n,["enableReinitialize"]),a=s.loading,l=s.error,c=s.validate,d=s.customValidationFields,u=s.initialValues,j=s.save;if(l)return i.createElement("div",null,"Error ");var f,h,k;return i.createElement(e,{validate:(f=c,h=d,f||(h?(k=h,function(o){return k.reduce((function(t,i){return("object"==typeof o?o:{})[i]||(t[i]=s.t("validationErrors:Required")),t}),{})}):void 0)),initialValues:u,enableReinitialize:p,onSubmit:j},(function(o){return i.createElement(r,t({loading:a},o,s))}))}export{n as RestForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__assign as r}from"tslib";function t(t,e){return Object.entries(e).reduce((function(e,n){var i,o=n[0],u=n[1];return r(((i={})[o]=t[o]||u,i),e)}),{})}export{t as getDefaultValues};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as e,__assign as d}from"tslib";import l from"react";import a from"classnames";var s={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:a(s.component,c,s[u],(i={},i[s.block]=_,i[s.hasLeftAddons]=C,i[s.hasRightAddons]=k||A,i))},l.createElement("div",d({},z,{className:a(f,s.inner,(r={},r[s.focused]=E,r[s.disabled]=p,r[s.filled]=N,r[s.hasError]=A,r[s.hasLabel]=v,r)),ref:o}),C&&l.createElement("div",{className:a(s.addons,s.leftAddons,x)},C),l.createElement("div",{className:s.inputWrapper},v&&l.createElement("div",{className:a(s.label,h)},l.createElement("span",{className:s.labelInner},b?v+" *":v)),l.createElement("div",{className:s.input},L)),k&&l.createElement("div",{className:a(s.addons,s.rightAddons,x)},k)),I,W&&l.createElement("span",{"data-attribute":"form-error",className:a(s.sub,s.error)},W),g&&!W&&l.createElement("span",{className:a(s.sub,s.hint)},g))}));export{n as FormControl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormControl}from"./component.js";import"
|
|
1
|
+
export{FormControl}from"./component.js";import"tslib";import"react";import"classnames";
|