@alphakits/ui 1.27.12 → 1.27.13
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/{ActionCopyM-38f1f467.js → ActionCopyM-7b6a12ed.js} +1 -1
- package/dist/{ChevronBackM-7fa86efc.js → ChevronBackM-5dfb5941.js} +1 -1
- package/dist/{ChevronDownS-fc1f4d4c.js → ChevronDownS-1d597b62.js} +1 -1
- package/dist/{ChevronForwardS-4aa973e1.js → ChevronForwardS-6714b901.js} +1 -1
- package/dist/{CloseS-9c74d6cb.js → CloseS-1cf477a0.js} +1 -1
- package/dist/{NextS-b085d047.js → NextS-8aaa01cf.js} +1 -1
- package/dist/{PlusS-532d1a69.js → PlusS-9985f515.js} +1 -1
- package/dist/{SearchM-9445a59a.js → SearchM-de3d3d19.js} +1 -1
- package/dist/{TrashM-b6e92adf.js → TrashM-4e8cf57e.js} +1 -1
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +2 -2
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/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-51415256.js → capitalize-dc7f650b.js} +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{component-0fb1066f.js → component-c24290f5.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-functions.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/form-loading/index.js +1 -1
- package/dist/form/components/form-wrapper/index.js +1 -1
- package/dist/form/components/index.d.ts +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/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/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/constants.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image/utils.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index-0679fb4a.js +1 -0
- package/dist/{index-29f14fbc.js → index-19d66436.js} +1 -1
- package/dist/index-3b3576e9.js +1 -0
- package/dist/{index-3c7dcc11.js → index-400c129e.js} +1 -1
- package/dist/index-5a43d2a2.js +1 -0
- package/dist/index-6c47f166.js +1 -0
- package/dist/{index-b0dd0bd9.js → index-7321d835.js} +1 -1
- package/dist/{index-841fe2c6.js → index-87865a01.js} +1 -1
- package/dist/{index-47af6ddf.js → index-a08d34d7.js} +1 -1
- package/dist/{index-cbcdc787.js → index-a4462ff9.js} +1 -1
- package/dist/{index-94423349.js → index-a554a369.js} +1 -1
- package/dist/{index-faf284ad.js → index-e2a7f76c.js} +1 -1
- package/dist/{index-57516782.js → index-f17e289c.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-73427155.js → isSymbol-1e9a7112.js} +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/{parse-query-params-f41edc33.js → parse-query-params-d25242df.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/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-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/theme-provider/default-themes.d.ts +6 -0
- package/dist/theme-provider/default-themes.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/{use-image-render-component-8c34d9bd.js → use-image-render-component-749fd1fb.js} +1 -1
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-44cf2fa7.js +0 -1
- package/dist/index-4bfc7969.js +0 -1
- package/dist/index-60fd2ee5.js +0 -1
- package/dist/index-9213e1ea.js +0 -1
- /package/dist/{_commonjsHelpers-e0c6b7ef.js → _commonjsHelpers-d18ade07.js} +0 -0
- /package/dist/{_tslib-531dfe1b-d58d6add.js → _tslib-531dfe1b-07c947cb.js} +0 -0
- /package/dist/{colors.module-d9bd892a.js → colors.module-bad46263.js} +0 -0
- /package/dist/{common.module-afb5e08e.js → common.module-e63bd441.js} +0 -0
- /package/dist/{component-6868e2a0.d.ts → component-6f9a7019.d.ts} +0 -0
- /package/dist/{component-6868e2a0.js → component-6f9a7019.js} +0 -0
- /package/dist/{component-0fb1066f.d.ts → component-c24290f5.d.ts} +0 -0
- /package/dist/{contact-block-fef0599f.d.ts → contact-block-66512ecd.d.ts} +0 -0
- /package/dist/{contact-block-fef0599f.js → contact-block-66512ecd.js} +0 -0
- /package/dist/{gutters.module-8eb2bc48.js → gutters.module-95d8db23.js} +0 -0
- /package/dist/{index-29f14fbc.d.ts → index-19d66436.d.ts} +0 -0
- /package/dist/{index-d1047707.js → index-38643eed.js} +0 -0
- /package/dist/{index-cd171dbb.js → index-a81131ad.js} +0 -0
- /package/dist/{intersection-observer-67642a39.js → intersection-observer-37e23a64.js} +0 -0
- /package/dist/{parse-query-params-f41edc33.d.ts → parse-query-params-d25242df.d.ts} +0 -0
- /package/dist/{slide-0d1b3c84.d.ts → slide-a657c000.d.ts} +0 -0
- /package/dist/{slide-0d1b3c84.js → slide-a657c000.js} +0 -0
- /package/dist/{step-bar-8335602d.d.ts → step-bar-605b8ce2.d.ts} +0 -0
- /package/dist/{step-bar-8335602d.js → step-bar-605b8ce2.js} +0 -0
- /package/dist/{tslib.es6-ac33a50c.js → tslib.es6-8ca8591b.js} +0 -0
- /package/dist/{use-image-render-component-8c34d9bd.d.ts → use-image-render-component-749fd1fb.d.ts} +0 -0
package/dist/calendar/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRef as e,useEffect as n}from"react";import{e as t,d as r,c as a,i as u,s as i,a as o,g as s,b as f,f as c}from"../index-
|
|
1
|
+
import{useRef as e,useEffect as n}from"react";import{e as t,d as r,c as a,i as u,s as i,a as o,g as s,b as f,f as c}from"../index-87865a01.js";import{s as d,c as v,l as m,e as p,a as l,h as x,f as b,b as k,g as w,m as g,i as h,j as y,d as L}from"../index-a554a369.js";import{f as T}from"../index-400c129e.js";import"../index-a08d34d7.js";import"../index-38643eed.js";var j=7,D=12,M=6;function O(e){var n=e.getDay();return 0===n?j-1:n-1}function W(e,n){var a=function(){return Array(j).fill(null)},u=d(e),i=t(d(e)),o=v(m(e)),s=a();return p({start:i,end:o}).reduce((function(e,t){var i=O(t);return s[i]=S(t,u,n),(i===M||r(t,o))&&(e.push(s),s=a()),e}),[])}function E(e,n){return l({start:x(e),end:b(e)}).map((function(e){return A(e,n)}))}function K(e,n){return k({start:w([x(n),x(e)]),end:g([x(n),x(e)])}).reverse()}function S(e,n,t){var i=t.minDate,o=t.maxDate,s=t.selected,f=t.eventsMap,c=void 0===f?{}:f,d=t.offDaysMap,v=(void 0===d?{}:d)[e.getTime()];return{date:e,disabled:i&&a(e,i)||o&&u(e,o)||v,event:c[e.getTime()],selected:s&&r(e,s),muted:!h(e,n)}}function A(e,n){var t=n.minMonth,r=n.maxMonth;return{date:e,disabled:t&&a(e,t)||r&&u(e,r)}}function q(e,n,t){var r=e;return n&&(r=g([n,r])),t&&(r=w([t,r])),new Date(r)}function z(e,n,t){return e&&q(e,n,t).getTime()===new Date(e).getTime()}function B(e,n,t){return T(e,t?"LLL":"LLLL",{locale:n})}function C(e){return e.reduce((function(e,n){return e[i(n).getTime()]=!0,e}),{})}function F(e,n,t){var r=n||t;return e&&r&&e!==r?{start:w([e,r]),end:g([e,r])}:null}function G(e,n,t,r,a){void 0===a&&(a={});for(var u={prev:function(){return s(n,1)},prevWeek:function(){return s(n,7)},prevMonth:function(){return y(n,1)},next:function(){return o(n,1)},nextWeek:function(){return o(n,7)},nextMonth:function(){return f(n,1)},startOfWeek:function(){return c(n,{weekStartsOn:1})},endOfWeek:function(){return i(L(n,{weekStartsOn:1}))}}[e]();a[u.getTime()];){var d=u<n?-1:1;"endOfWeek"===e&&(d=-1),"startOfWeek"===e&&(d=1),u=o(u,d)}return q(u,t,r)}function H(e){if(window.KeyboardEvent){var n=new window.KeyboardEvent("keydown",{bubbles:!0,key:"Tab"});e.dispatchEvent(n)}}function I(t,r){var a=e(!1);n((function(){a.current?t():a.current=!0}),r)}export{j as DAYS_IN_WEEK,D as MONTHS_IN_YEAR,M as SUNDAY_INDEX,S as buildDay,A as buildMonth,C as dateArrayToHashTable,z as dateInLimits,E as generateMonths,W as generateWeeks,K as generateYears,F as getSelectionRange,q as limitDate,G as modifyDateByShift,B as monthName,O as russianWeekDay,H as simulateTab,I as useDidUpdateEffect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-8ca8591b.js";import o,{forwardRef as n,useState as a,useRef as r,useCallback as i,useEffect as m}from"react";import p from"react-merge-refs";import s from"classnames";import{Calendar as l}from"../calendar/component.js";import{dateInLimits as d}from"../calendar/utils.js";import{MaskedInput as c}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import"../toast-notifier/component.js";import{formatDate as f}from"../utils/format-date/index.js";import{parseDateString as j,isCompleteDateInput as v,DATE_MASK as x,SUPPORTS_INPUT_TYPE_DATE as b,NATIVE_DATE_FORMAT as g}from"./utils.js";import"../index-a554a369.js";import"../index-38643eed.js";import"../index-a08d34d7.js";import"../index-87865a01.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-dc7f650b.js";import"../isSymbol-1e9a7112.js";import"../_commonjsHelpers-d18ade07.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-a4462ff9.js";import"../index-6c47f166.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../index-400c129e.js";import"../calendar/components/header/сomponent.js";import"../_tslib-531dfe1b-07c947cb.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-3b3576e9.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-5a43d2a2.js";import"../index-7321d835.js";import"../index-a81131ad.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"../CloseS-1cf477a0.js";import"../toast-notifier/use-timer.js";var h="index-module_component__pdVE2",y="index-module_block__wtVLz",_="index-module_calendarContainer__x7A2x",C="index-module_calendarIcon__muPk-",k="index-module_nativeInput__siME6",D=n((function(n,D){var w,E=n.block,M=void 0!==E&&E,N=n.className,I=n.inputClassName,P=n.defaultOpen,T=void 0!==P&&P,F=n.defaultMonth,V=n.defaultValue,O=void 0===V?"":V,A=n.calendarPosition,q=void 0===A?"popover":A,R=n.value,z=n.dataTestId,K=n.minDate,S=n.required,U=n.maxDate,B=n.calendarProps,H=void 0===B?{}:B,L=n.preventFlip,G=n.mobileMode,J=void 0===G?"popover":G,Q=n.wrapperRef,W=void 0===Q?null:Q,X=n.disabled,Y=n.onChange,Z=n.onInputChange,$=n.onCalendarChange,ee=n.readOnly,te=e(n,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),oe=void 0===(R=R&&R.split("-").length?R.split("-").reverse().join("."):R),ne=b&&"native"===J,ae="input"===J,re="static"===q&&!ae,ie="popover"===q&&!ne&&!ae,me=a(!1),pe=me[0],se=me[1],le=a(O),de=le[0],ce=le[1],ue=oe?de:R,fe=ue?j(ue).getTime():void 0,je=d(fe,K,U),ve=X||ee,xe=r(null),be=r(null),ge=r(null),he=r(null),ye=i((function(e){"Escape"===e.key&&se(!1)}),[]),_e=i((function(){pe||se(!0)}),[pe]),Ce=i((function(e){se(!0),!pe&&"INPUT"!==e.target.tagName&&he.current&&he.current.focus()}),[pe]),ke=i((function(e){he.current&&!1===he.current.contains(e.relatedTarget)&&se(!1)}),[]),De=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&he.current&&(e.preventDefault(),he.current.focus())}),[]),we=i((function(e,t,o,n,a){void 0===n&&(n="input"),void 0===a&&(a=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),a&&(oe&&ce(t),Y&&Y(e,{date:o,value:t.split(".").reverse().join("-")}))}),[$,Y,Z,oe]),Ee=i((function(e){var t=e.target.value,o=j(t);we(e,t,o,"input",v(t))}),[we]),Me=i((function(e){var t=j(e.target.value,g),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});we(e,o,t)}),[we]),Ne=i((function(e){we(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),se(!1)}),[we]),Ie=i((function(e){e.preventDefault()}),[]);m((function(){se(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(l,t({},H,{ref:he,defaultMonth:F,value:je?fe:void 0,onChange:Ne,minDate:K,maxDate:U})))}),[H,fe,F,Ne,Ie,je,U,K]);return o.createElement("div",{ref:ge,className:s(h,N,(w={},w[y]=M,w)),tabIndex:-1,onKeyDown:ve?void 0:ye,onClick:ve?void 0:_e,onFocus:ve?void 0:Ce,onBlur:ke,"data-test-id":z},o.createElement(c,t({},te,{ref:p([D,xe]),wrapperRef:p([W,be]),className:I,value:ue,required:S,defaultValue:O,disabled:X,readOnly:ee,mask:x,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:C}),ne&&o.createElement("input",{type:"date",ref:p([D,xe]),defaultValue:O,onChange:Me,className:k})),onKeyDown:De,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&o.createElement(u,{open:pe,anchorElement:be.current,popperClassName:_,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:L},Pe()))}));export{D as CalendarInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-8ca8591b.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-a554a369.js";import"../index-38643eed.js";import"../index-a08d34d7.js";import"../index-87865a01.js";import"../utils/format-date/index.js";import"../index-400c129e.js";import"../index-7321d835.js";import"../index-a81131ad.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-dc7f650b.js";import"../isSymbol-1e9a7112.js";import"../_commonjsHelpers-d18ade07.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-a4462ff9.js";import"../index-6c47f166.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../_tslib-531dfe1b-07c947cb.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-3b3576e9.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-5a43d2a2.js";import"../masked-input/component.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CloseS-1cf477a0.js";import"../toast-notifier/use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e}from"../index-7321d835.js";import"../index-a08d34d7.js";import"../index-38643eed.js";import"../index-a81131ad.js";var t="dd.MM.yyyy",d="yyyy-MM-dd",n=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],i="undefined"!=typeof window,r=i&&u(),a=function(e){return e.length===n.length},o=function(d,n){return void 0===n&&(n=t),e(d,n,new Date)};function u(){var e=document.createElement("input");return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value}export{t as DATE_FORMAT,n as DATE_MASK,i as IS_BROWSER,d as NATIVE_DATE_FORMAT,r as SUPPORTS_INPUT_TYPE_DATE,a as isCompleteDateInput,u as isInputDateSupported,o as parseDateString};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r,i as u}from"./isSymbol-
|
|
1
|
+
import{_ as r,i as u}from"./isSymbol-1e9a7112.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 a=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 a=e+"";return"0"==a&&1/e==-t?"-0":a};var i=function(r){return null==r?"":a(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 v=function(r,u,f){var n=r.length;return f=void 0===f?n:f,!u&&f>=n?r:d(r,u,f)},c=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var l=function(r){return c.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=i(u);var f=l(u)?w(u):void 0,n=f?f[0]:u.charAt(0),t=f?v(f,1).join(""):u.slice(1);return n[r]()+t}}("toUpperCase");var U=function(r){return L(i(r).toLowerCase())};export{U as c};
|
package/dist/card/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"../_tslib-531dfe1b-07c947cb.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-749fd1fb.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,s=void 0===n?"default":n,a=r.bottomAddons,p=r.images,l=void 0===p?[]:p,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,j=r.titleAddons;return e.createElement("div",{className:t([m.component,m[s]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:s}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),j),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),a))};export{r as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../_tslib-531dfe1b-
|
|
1
|
+
import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../_tslib-531dfe1b-07c947cb.js";import{ImageSizes as r}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-749fd1fb.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-8ca8591b.js";import"../../typography/title/component.js";import"../../colors.module-bad46263.js";import"../../common.module-e63bd441.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var a=s.images,p=void 0===a?[]:a,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},p.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},p.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:p[0],resolution:r.m})))};export{s as CardImages};
|
package/dist/card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"../_tslib-531dfe1b-07c947cb.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-749fd1fb.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-6f9a7019.js";import"../../typography/title/index.js";import"../../tslib.es6-8ca8591b.js";import"../../typography/title/component.js";import"../../colors.module-bad46263.js";import"../../common.module-e63bd441.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-6f9a7019";
|
package/dist/cell/base/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Base}from"../../component-
|
|
1
|
+
export{B as Base}from"../../component-6f9a7019.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-8ca8591b.js";import"../../typography/title/component.js";import"../../colors.module-bad46263.js";import"../../common.module-e63bd441.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
|
package/dist/cell/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-6f9a7019.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/cell/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-6f9a7019.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as r}from"../../tslib.es6-
|
|
1
|
+
import{_ as e,a as r}from"../../tslib.es6-8ca8591b.js";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,O=o.dataTestId,f=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));export{n as Pure};
|
package/dist/cell/pure/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Pure}from"./component.js";import"../../tslib.es6-
|
|
1
|
+
export{Pure}from"./component.js";import"../../tslib.es6-8ca8591b.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-8ca8591b.js";import t,{forwardRef as a,useRef as d}from"react";import l from"react-merge-refs";import{_ as o}from"../_tslib-531dfe1b-07c947cb.js";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var m=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{d:"M0 0h16v16H0z"}),t.createElement("path",{d:"M14.667 5.014l-7.741 7.764-5.592-5.645L2.863 5.6l3.932 3.94 6.195-6.207 1.677 1.68z",fill:"currentColor"}))},s=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M13.027 10.974H2.86v2.048H21.147v-2.048h-8.12z",fill:"currentColor"}))},r={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"},_=a((function(a,o){var _,u=a.checked,h=a.label,b=a.hint,p=a.size,x=void 0===p?"m":p,f=a.align,E=void 0===f?"center":f,k=a.addons,v=a.block,g=a.onChange,w=a.className,N=a.name,I=a.disabled,z=a.dataTestId,C=a.indeterminate,M=void 0!==C&&C,H=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),j=d(null),y=c(j,"keyboard")[0];return t.createElement("label",{className:i(r.component,r[x],r[E],w,(_={},_[r.disabled]=I,_[r.checked]=u,_[r.indeterminate]=M,_[r.focused]=y,_[r.block]=v,_)),ref:l([j,o])},t.createElement("span",{className:r.box},t.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:N})},disabled:I,checked:u,"data-test-id":z},H)),u&&t.createElement(m,null),M&&!u&&t.createElement("div",{className:r.indeterminateIcon},t.createElement(s,null))),(h||b)&&t.createElement("span",{className:r.content},h&&t.createElement("span",{className:r.label},h),b&&t.createElement("span",{className:r.hint},b)),k&&t.createElement("span",{className:r.addons},k))}));_.defaultProps={indeterminate:!1};export{_ 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-8ca8591b.js";import"react";import"react-merge-refs";import"../_tslib-531dfe1b-07c947cb.js";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-8ca8591b.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"../_tslib-531dfe1b-07c947cb.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",l=function(l){var m=l.title,a=l.subtitle,s=l.selected,d=void 0===s?[]:s,p=l.data,u=void 0===p?[]:p,v=l.onChange,b=l.columns,g=void 0===b?1:b,y=l.disabled,f=l.gr,h=void 0===f?20:f,x=l.gc,j=void 0===x?20:x,k=l.dataTestId,_=d||[],E=function(e){return k?"checkbox_"+k+"_"+e:"checkbox_"+e};return t.createElement("div",null,(m||a)&&t.createElement("div",{className:i},m&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},m),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:g,gr:h,gc:j},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{disabled:y,key:n.key+n.content,dataTestId:E(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(e([],_),[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})})))))};export{l as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-8ca8591b.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"../_tslib-531dfe1b-07c947cb.js";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.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-8ca8591b.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-1d597b62.js";import r from"classnames";import{Checkbox as l}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../isSymbol-1e9a7112.js";import"../_commonjsHelpers-d18ade07.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-bad46263.js";import"../common.module-e63bd441.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,b=u.selected,j=u.checkableParent,_=u.collapsable,v=u.disabled,E=u.onChange,g=[],y=Array.isArray(b)?b:[];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&&g.push(t)}));var x=n(g),k=x[0],C=x[1],F=function(t){t.forEach((function(n){(null==y?void 0:y.includes(n))?E(y.filter((function(e){return!t.includes(e)}))):E(e(e([],y),t))}))},w=function(e){var n,o,r=e.element;return j?t.createElement(l,{block:!0,disabled:v,checked:(n=r.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==y?void 0:y.includes(e))&&(o=!0)})),o),onChange:function(){return F(r.childs.map((function(e){return e.id})))},label:""+r.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},r.parent.title)};return t.createElement("div",null,k.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}),_&&t.createElement(m,{onClick:function(){return function(e){var t=k.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=k.concat(t);C(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:r(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(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(l,{onChange:function(){return F([e.id])},checked:null==y?void 0:y.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==k?void 0:k.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-8ca8591b.js";import"react";import"../ChevronDownS-1d597b62.js";import"../_tslib-531dfe1b-07c947cb.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-1e9a7112.js";import"../_commonjsHelpers-d18ade07.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-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{_ as t}from"../_tslib-531dfe1b-
|
|
1
|
+
import e from"react";import{_ as t}from"../_tslib-531dfe1b-07c947cb.js";import{P as o}from"../PlusS-9985f515.js";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-8ca8591b.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-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var l=function(o){return e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},o),e.createElement("path",{d:"M0 0h17v16H0z"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.761 4.836c.031.075.047.155.046.236l-.043.03a.427.427 0 010 .087.617.617 0 010 .147.732.732 0 01-.135.203l-1.746 1.71-6.684 6.72a.615.615 0 01-.467.178H2.125a.615.615 0 01-.615-.615v-2.607a.615.615 0 01.178-.437l6.72-6.72 1.74-1.74a.613.613 0 01.437-.178.615.615 0 01.437.178l2.607 2.607a.615.615 0 01.133.2zM2.74 12.916h1.74l6.105-6.104-1.74-1.74-6.105 6.105v1.74zm6.972-8.711l1.74 1.74.867-.873-1.734-1.734-.873.867zm.017 8.692a.625.625 0 000 1.25h4.156a.625.625 0 100-1.25H9.729z",fill:"currentColor"}))},m=function(t){var o=t.location,r=t.onClick;return e.createElement(e.Fragment,null,e.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},o.address),e.createElement(n,{icon:l,onClick:r,size:"s",view:"ghost"}))},s=function(t){var n=t.onClick;return e.createElement(r,{leftAddons:e.createElement(o,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{s as Addons,m as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-1d597b62.js";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../isSymbol-1e9a7112.js";import"../_commonjsHelpers-d18ade07.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8ca8591b.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-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",a="index-module_row__g6gnE",l="index-module_label__kuH6r",c="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,b=u.label,x=u.content,y=u.expanded,f=u.addons,h=u.children,v=u.disabled,g=o(y),E=g[0],w=g[1];return t((function(){w(y)}),[y]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:a},b&&e.createElement(s.Text,{className:l,color:"secondary",view:"title",weight:"medium"},b),x),e.createElement("div",{className:a},f,e.createElement(i,{onClick:function(){return w(!E)},className:r(c,(j={},j[d]=E,j)),disabled:v,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"../ChevronDownS-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-1d597b62.js";import"../_tslib-531dfe1b-07c947cb.js";import"classnames";import"../collapse/component.js";import"../isSymbol-1e9a7112.js";import"../_commonjsHelpers-d18ade07.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8ca8591b.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-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as a}from"react";import u from"classnames";import{a as c,i as s}from"../isSymbol-
|
|
1
|
+
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as a}from"react";import u from"classnames";import{a as c,i as s}from"../isSymbol-1e9a7112.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../_commonjsHelpers-d18ade07.js";import"../tslib.es6-8ca8591b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var d=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)},m=function(){return c.Date.now()},v=/\s/;var p=function(e){for(var n=e.length;n--&&v.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 b=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},T="Expected a function",j=Math.max,k=Math.min;var N=function(e,n,t){var r,i,o,a,u,c,s=0,f=!1,l=!1,v=!0;if("function"!=typeof e)throw new TypeError(T);function p(n){var t=r,o=i;return r=i=void 0,s=n,a=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=m();if(x(e))return _(e);u=setTimeout(h,function(e){var t=n-(e-c);return l?k(t,o-(e-s)):t}(e))}function _(e){return u=void 0,v&&r?p(e):(r=i=void 0,a)}function g(){var e=m(),t=x(e);if(r=arguments,i=this,c=e,t){if(void 0===u)return function(e){return s=e,u=setTimeout(h,n),f?p(e):a}(c);if(l)return clearTimeout(u),u=setTimeout(h,n),p(c)}return void 0===u&&(u=setTimeout(h,n)),a}return n=b(n)||0,d(t)&&(f=!!t.leading,o=(l="maxWait"in t)?j(b(t.maxWait)||0,n):o,v="trailing"in t?!!t.trailing:v),g.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=i=u=void 0},g.flush=function(){return void 0===u?a:_(m())},g},z="index-module_collapse__ORa-f",C="index-module_content__UDk-m",L="index-module_expandedContent__iQszl",H="index-module_children_wrap__ekYCk",O=n((function(n,c){var s,d=n.expanded,m=n.defaultExpanded,v=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,b=n.linkProps,T=void 0===d,j=t(null),k=t(null),O=r(m||d),$=O[0],D=O[1],I=T?$:d,M=i((function(){var e;k.current&&j.current&&(e=I?k.current.offsetHeight:0,j.current.style.height=e+"px")}),[I]),W=i((function(){w&&w(d)}),[d,w]),A=i((function(){T&&D(!I),console.log(I),E&&E()}),[I,E,T]);o((function(){var e=N((function(){return M()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[M]),o((function(){var e=new f(M);return k.current&&e.observe(k.current),function(){e.disconnect()}}),[M]),o((function(){return M()}),[I,M]);var F=a((function(){var e,n=null===(e=j.current)||void 0===e?void 0:e.offsetHeight;return{height:I&&!n?"0px":n+"px"}}),[I]),P=!!p||!!v;return e.createElement("div",{ref:c,className:u(h,z),id:g,"data-test-id":y},e.createElement("div",{onTransitionEnd:W,ref:j,className:u(C,_,(s={},s[L]=I,s)),style:F},e.createElement("div",{className:u(H),ref:k},x)),P&&e.createElement(l,{view:(null==b?void 0:b.view)||"secondary",size:(null==b?void 0:b.size)||"m",pseudo:!0,onClick:A},I?p:v))}));export{O 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-1e9a7112.js";import"../_commonjsHelpers-d18ade07.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8ca8591b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as r}from"react";import n from"classnames";import{Cells as a}from"./table/components/cells/index.js";import{EmptyList as i}from"./table/components/empty-list/index.js";import{Error as c}from"./table/components/error/index.js";import{Loading as s}from"./table/components/loading/index.js";import{Pagination as m}from"./table/components/pagination/index.js";import{TableHeader as d}from"./table/components/table-header/index.js";import{useTableData as u}from"./table/hooks/use-table-data.js";import{addQueryParam as p}from"./table/utils/add-query-param.js";import{getTags as f}from"./table/utils/get-tags.js";import{P as g}from"./use-image-render-component-
|
|
1
|
+
import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as r}from"react";import n from"classnames";import{Cells as a}from"./table/components/cells/index.js";import{EmptyList as i}from"./table/components/empty-list/index.js";import{Error as c}from"./table/components/error/index.js";import{Loading as s}from"./table/components/loading/index.js";import{Pagination as m}from"./table/components/pagination/index.js";import{TableHeader as d}from"./table/components/table-header/index.js";import{useTableData as u}from"./table/hooks/use-table-data.js";import{addQueryParam as p}from"./table/utils/add-query-param.js";import{getTags as f}from"./table/utils/get-tags.js";import{P as g}from"./use-image-render-component-749fd1fb.js";import{Image as v}from"./image/component.js";import"./image/typings.js";import"./image/constants.js";import"./cell/pure/component.js";import{removeQueryParam as b}from"./table/utils/remove-query-param.js";import{resetQueryParam as h}from"./table/utils/reset-query-param.js";function w(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function j(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function C(e){var l=e.columns,o=e.data,r=e.refetch,n=o.map((function(e){return{row:e,cells:l.map((function(l){var o,n,a,i,c,s,m,d,u,p,f=j((null===(o=l.row)||void 0===o?void 0:o.title)||l.accessor,e,r);if(null===(n=l.row)||void 0===n?void 0:n.image){var b=w(null===(a=l.row)||void 0===a?void 0:a.image,e,r);p=b?t.createElement(v,{bgColor:"secondary",src:b,text:null==f?void 0:f.toString(),view:"ellipse"}):t.createElement(v,{bgColor:"secondary",icon:t.createElement(g,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else if(null===(i=l.row)||void 0===i?void 0:i.icon){var h=w(null===(c=l.row)||void 0===c?void 0:c.icon,e,r);p=t.createElement(v,{icon:h||t.createElement(g,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else(null===(s=l.row)||void 0===s?void 0:s.customAddon)&&(p=w(null===(m=l.row)||void 0===m?void 0:m.customAddon,e,r));return t.createElement(_.Cell,{title:f,align:l.align,subtitle:(null===(d=l.row)||void 0===d?void 0:d.subtitle)&&j(null===(u=l.row)||void 0===u?void 0:u.subtitle,e,r),addon:p})}))}}));return n}var E={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function x(e){var g=e.columns,v=e.searchPlaceholder,w=void 0===v?"Поиск по таблице":v,j=e.records,x=e.hideSearch,_=e.rightHeaderAddons,y=e.leftHeaderAddons,k=e.filtersButtonLabel,P=e.createButtonLabel,B=e.loading,S=e.height,A=void 0===S?"fill":S,L=e.tagsBuilder,F=e.promise,H=e.onRowClick,T=e.onCreateClick,q=e.onFiltersClick,N=e.refetch,D=e.language,Q=u({promise:F,records:j}),R=Q.loading,V=Q.error,z=Q.data,G=Q.total,I=Q.params,J=Q.pagesCount,K=Q.updateData,M=T?function(){return T(K)}:void 0,O=l((function(e){h(e),K()}),[]);o((function(){K()}),[]);var U=function(){return q?q({submitCallback:function(e){return O(e)},initialValues:I}):null},W=function(e){p(e),K()},X=f({params:(null==I?void 0:I.where)||{},onDelete:function(e,t){b(e,t),K()},tagsBuilder:L,onClick:U}),Y=r((function(){return C({columns:g,data:z,refetch:N||K})}),[z,g]),Z=R||B;return t.createElement("div",{className:n(E.table_wrapper,E[A])},(!x||_||y||T||q)&&t.createElement(d,{language:D,hideSearch:x,rightHeaderAddons:_,leftHeaderAddons:y,searchText:(null==I?void 0:I.searchText)||"",addParam:W,searchPlaceholder:w,filtersButtonLabel:k,tags:X,onCreateClick:M,createButtonLabel:P,onFiltersClick:U,showFiltersButton:!!q}),t.createElement("div",{className:E.table},t.createElement("table",{cellSpacing:"0",cellPadding:"0"},t.createElement(a,{sort:null==I?void 0:I.sort,order:null==I?void 0:I.order,addParam:W,columns:g}),t.createElement("tbody",null,V&&t.createElement(c,{language:D}),!Y.length&&!Z&&!V&&t.createElement(i,{language:D}),Z&&t.createElement(s,{columnsLength:g.length}),Y.map((function(e){var l,o=e.row,r=e.cells;return t.createElement("tr",{onClick:function(){return e=o,null==H?void 0:H(e,K);var e},className:n((l={},l[E.clickable]=!!H,l)),style:{visibility:Z?"collapse":"visible"}},r.map((function(e){return e})))}))))),!!F&&t.createElement(m,{language:D,currentPage:I?+I.page:1,recordsPerPage:I?+I.limit:10,pagesCount:+J,addParam:W,total:+G}))}var _={Cell:e,TableComponent:x};export{_ as T,x as a,C as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{A as t}from"../ActionCopyM-
|
|
1
|
+
import o from"react";import{A as t}from"../ActionCopyM-7b6a12ed.js";import{IconButton as e}from"../icon-button/component.js";import{ToastNotifier as i}from"../toast-notifier/component.js";import{Typography as r}from"../typography/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../tslib.es6-8ca8591b.js";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"../CloseS-1cf477a0.js";import"../toast-notifier/use-timer.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.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,c=n.color;return o.createElement("div",{className:m},o.createElement(r.Text,{view:"title",weight:"medium",color:c||"primary"},s),o.createElement(e,{icon:t,className:p,onClick:function(o){o.stopPropagation(),navigator.clipboard.writeText(a||s).then((function(){i({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-
|
|
1
|
+
export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-7b6a12ed.js";import"../_tslib-531dfe1b-07c947cb.js";import"../icon-button/component.js";import"../tslib.es6-8ca8591b.js";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"../CloseS-1cf477a0.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
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-8ca8591b.js";import e from"react";import{Typography as m}from"../typography/component.js";import"../toast-notifier/component.js";import{formatDate as r}from"../utils/format-date/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"react-dom";import"../toast-plate/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../CloseS-1cf477a0.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../index-a08d34d7.js";import"../index-38643eed.js";import"../index-400c129e.js";import"../index-7321d835.js";import"../index-a81131ad.js";var i=function(i){var s=i.className,a=i.dataTestId,p=i.date,n=i.time,d=i.format,c=void 0===d?"dd.MM.yyyy":d,j=i.language,l=void 0===j?"de":j,f=t(i,["className","dataTestId","date","time","format","language"]);return e.createElement(m.Text,o({},f,{className:s,"data-test-id":a}),r(p,{format:c,lang:l,time:n}))};export{i as FormattedDate};
|
package/dist/date/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormattedDate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormattedDate}from"./component.js";import"../tslib.es6-8ca8591b.js";import"react";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../CloseS-1cf477a0.js";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"../index-a08d34d7.js";import"../index-38643eed.js";import"../index-400c129e.js";import"../index-7321d835.js";import"../index-a81131ad.js";
|
package/dist/date-functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as add,p as parseISO,s as subWeeks}from"./index-
|
|
1
|
+
export{a as add,p as parseISO,s as subWeeks}from"./index-f17e289c.js";export{a as addDays,b as addMonths,i as isAfter,c as isBefore,d as isSameDay,s as startOfDay,e as startOfISOWeek,f as startOfWeek,g as subDays}from"./index-87865a01.js";export{a as addYears,s as subYears}from"./index-5a43d2a2.js";export{e as eachDayOfInterval,a as eachMonthOfInterval,b as eachYearOfInterval,c as endOfISOWeek,d as endOfWeek,f as endOfYear,i as isSameMonth,l as lastDayOfMonth,m as max,g as min,s as startOfMonth,h as startOfYear,j as subMonths}from"./index-a554a369.js";export{f as format}from"./index-400c129e.js";export{i as isEqual,a as isLastDayOfMonth,b as isWithinInterval}from"./index-a4462ff9.js";export{i as isSameYear,a as isThisYear}from"./index-0679fb4a.js";export{i as isThisMonth}from"./index-3b3576e9.js";export{i as isToday}from"./index-6c47f166.js";export{p as parse}from"./index-7321d835.js";import{t as r}from"./index-a08d34d7.js";import{r as t,t as o}from"./index-38643eed.js";import"./index-a81131ad.js";function n(a,s){t(2,arguments);var e=o(a),i=r(s);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(i),e)}export{n as setYear};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{C as t}from"../ChevronBackM-
|
|
1
|
+
import e from"react";import{C as t}from"../ChevronBackM-5dfb5941.js";import{_ as o}from"../_tslib-531dfe1b-07c947cb.js";import a from"classnames";import{Button as r}from"../button/component.js";import{p as i,a as n,s as m}from"../index-f17e289c.js";import{f as s}from"../index-400c129e.js";import{e as d,i as p,c,g as l}from"../index-87865a01.js";import{i as y}from"../index-6c47f166.js";import{IconButton as f}from"../icon-button/component.js";import{Typography as w}from"../typography/component.js";import"../tslib.es6-8ca8591b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-38643eed.js";import"../index-a08d34d7.js";import"../index-a81131ad.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var j=function(t){return e.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{d:"M13.655 12l-5.5 5.5 1.5 1.5 7-7-7-7-1.5 1.5 5.5 5.5z",fill:"currentColor"}))},h={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},u="yyyy-MM-dd",_="dd.MM.yy",x=function(o){var x=o.view,b=void 0===x?"day":x,g=o.startDate,v=o.onChange,k=o.minDate,E=o.maxDate,C=o.todayLabel,M=d(i(g)),D="day"===b?i(g):M,z=k?i(k):new Date,T=p(D,z),B=!E||c(D,i(E)),H=y(D);return e.createElement("div",{className:h.date_switcher},e.createElement(f,{disabled:!!k&&!T,onClick:function(){"day"===b&&v(s(l(D,1),u)),"week"===b&&v(s(m(D,1),u))},icon:t}),e.createElement("div",{className:a(h.date_wrap,h[b])},e.createElement(w.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===b?s(D,_):s(D,_)+" - "+s(n(D,{days:6}),_))),e.createElement(f,{disabled:!B,onClick:function(){"day"===b&&v(s(n(D,{days:1}),u)),"week"===b&&v(s(n(D,{days:7}),u))},icon:j}),e.createElement(r,{disabled:H,onClick:function(){v(s(new Date,u))},view:"ghost"},C))};export{x as DateSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-
|
|
1
|
+
export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-5dfb5941.js";import"../_tslib-531dfe1b-07c947cb.js";import"classnames";import"../button/component.js";import"../tslib.es6-8ca8591b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-f17e289c.js";import"../index-87865a01.js";import"../index-a08d34d7.js";import"../index-38643eed.js";import"../index-a81131ad.js";import"../index-400c129e.js";import"../index-6c47f166.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.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-8ca8591b.js";import t from"react";import{_ as l}from"../_tslib-531dfe1b-07c947cb.js";import{Grid as n}from"../grid/component.js";import{IconButton as r}from"../icon-button/component.js";import{SectionWrapper as a}from"../section-wrapper/component.js";import{s as o,C as c}from"../contact-block-66512ecd.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-95d8db23.js";import"../grid/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var m=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v25H0z"}),t.createElement("path",{d:"M6.292 20.96l.926-1.586h-3.16l-.121.21-.083.166a1.364 1.364 0 002.438 1.21zM17.477 15.283l-3.125-5.418-1.584 2.713 4.833 8.377.103.154a1.364 1.364 0 002.26-1.517l-.914-1.582 1.591.002.185-.012a1.364 1.364 0 001.179-1.352l-.013-.185a1.364 1.364 0 00-1.35-1.178l-3.165-.002z",fill:"currentColor"}),t.createElement("path",{d:"M14.87 6.25a1.364 1.364 0 00-2.437-1.209l-.438.744-.423-.738-.104-.154a1.364 1.364 0 00-1.759-.345l-.154.103a1.364 1.364 0 00-.346 1.76l1.205 2.085-3.966 6.789h-3.08l-.185.012a1.364 1.364 0 00.185 2.715h10.96l-1.574-2.728-3.148-.001 5.182-8.866.082-.166z",fill:"currentColor"}))},i=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M13.462 8.875v-2.5c0-.69.653-1.25 1.458-1.25h1.458V2h-2.916c-2.417 0-4.375 1.679-4.375 3.75v3.125H6.17V12h2.917v10h4.375V12h2.916l1.459-3.125h-4.375z",fill:"currentColor"}))},s=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M6.184 2.255a1.557 1.557 0 00-1.571-.08l8.472 8.999 2.77-2.95-9.671-5.97zm-2.35.753c-.107.24-.164.507-.164.781v16.46c0 .276.058.54.166.774l8.469-9.018-8.47-8.997zm9.252 9.826l-8.458 9.008c.224.11.463.158.701.158.295 0 .589-.075.855-.244l9.673-5.978-2.77-2.944zm6.453-2.336a.198.198 0 00-.01-.007l-2.686-1.658-2.977 3.17 2.98 3.164 2.693-1.664c.5-.322.798-.884.798-1.503 0-.62-.299-1.181-.798-1.502z",fill:"currentColor"}))},p=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.005 7a5 5 0 100 10 5 5 0 000-10zm0 8.125A3.13 3.13 0 018.88 12a3.129 3.129 0 013.125-3.125A3.129 3.129 0 0115.13 12a3.13 3.13 0 01-3.125 3.125z",fill:"currentColor"}),t.createElement("path",{d:"M18.045 6.625a.666.666 0 11-1.332 0 .666.666 0 011.332 0z",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.755 2h-7.5a6.25 6.25 0 00-6.25 6.25v7.5A6.25 6.25 0 008.255 22h7.5a6.25 6.25 0 006.25-6.25v-7.5A6.25 6.25 0 0015.755 2zm4.375 13.75a4.38 4.38 0 01-4.375 4.375h-7.5A4.38 4.38 0 013.88 15.75v-7.5a4.38 4.38 0 014.375-4.375h7.5A4.38 4.38 0 0120.13 8.25v7.5z",fill:"currentColor"}))},d=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.579 4.987a3.87 3.87 0 00-3.574 3.86v6.292A3.871 3.871 0 005.579 19l1.783.137h9.286l1.783-.137a3.87 3.87 0 003.574-3.86V8.846a3.868 3.868 0 00-3.574-3.859l-1.783-.137H7.362l-1.783.137zm9.857 6.625l-5.512 2.923V8.747l5.511 2.865z",fill:"currentColor"}))},h=function(l){var h=l.sections,v=void 0===h?[]:h,u=l.contacts,E=void 0===u?[]:u,f=l.company,w=l.email,g=l.address,b=l.facebookLink,z=l.instagramLink,x=l.youtubeLink,k=l.appText,M=l.google,j=l.appstore,N=b||z||x,C=k&&j&&M;return t.createElement(a,{pb:"m",pt:"l",isBlackBg:!0},t.createElement("div",{className:o.wrapper},t.createElement("div",{className:o.row_wrapper},t.createElement(n.Row,null,t.createElement(t.Fragment,null,v.map((function(e){return t.createElement(n.Col,{key:e.title,width:{desktop:2,mobile:12}},t.createElement("div",{className:o.block},t.createElement("span",{className:o.title},e.title),e.items.map((function(e){return t.createElement("a",{key:e.text,className:o.link,href:e.link},e.text)}))))})),t.createElement(n.Col,{key:"cont",width:{desktop:2,mobile:12}},t.createElement("div",{className:o.contacts},E.map((function(e){return t.createElement(c,{key:e.title,title:e.title,value:e.value})})),w&&t.createElement("div",{className:o.email},w),t.createElement("br",null),g&&t.createElement("div",{className:o.text},g),t.createElement("br",null),f&&t.createElement("div",{className:o.text},f),t.createElement("br",null),N&&t.createElement("div",{className:o.buttons},b&&t.createElement(r,e({},{href:b},{icon:i})),x&&t.createElement(r,e({},{href:x},{icon:d})),z&&t.createElement(r,e({},{href:z},{icon:p}))))))))),t.createElement("div",{className:o.bottomBlock},C&&t.createElement(t.Fragment,null,t.createElement("div",{className:o.text},k),t.createElement("div",{className:o.buttons},j&&t.createElement(r,e({},{href:j},{icon:m})),M&&t.createElement(r,e({},{href:M},{icon:s}))))))};export{h as Footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{C as ContactBlock}from"../contact-block-
|
|
1
|
+
import"react";export{C as ContactBlock}from"../contact-block-66512ecd.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-8ca8591b.js";import"react";import"../_tslib-531dfe1b-07c947cb.js";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-95d8db23.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-66512ecd.js";
|
package/dist/form/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Button as o}from"../button/component.js";import{FlexColumns as t}from"../flex-columns/component.js";import{Input as r}from"../input/component.js";import{ModalContext as n}from"../modal/context.js";import{showSuccess as m,showError as i}from"../utils/show-toast/index.js";import{RestForm as s}from"./templates/rest-form/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import{Button as o}from"../button/component.js";import{FlexColumns as t}from"../flex-columns/component.js";import{Input as r}from"../input/component.js";import{ModalContext as n}from"../modal/context.js";import{showSuccess as m,showError as i}from"../utils/show-toast/index.js";import{RestForm as s}from"./templates/rest-form/index.js";import"../tslib.es6-8ca8591b.js";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"../CloseS-1cf477a0.js";import"../_tslib-531dfe1b-07c947cb.js";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"../toast-notifier/use-timer.js";import"../index-19d66436.js";import"../index-e2a7f76c.js";import"../_commonjsHelpers-d18ade07.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./templates/rest-form/form.js";import"../TrashM-4e8cf57e.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-bad46263.js";import"../common.module-e63bd441.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-updating/index.js";var a={baz:"",bar:""},u={buz:"",bur:""},l=function(o){var n=e.useState(!0),a=n[0],l=n[1],c=e.useState(!1),p=c[0],d=c[1],f=e.useState(!1),b=f[0],j=f[1];e.useEffect((function(){setTimeout((function(){return l(!1)}),500)}),[]);return e.createElement(s,{recordId:827368276387,initialValues:u,customValidationFields:["bur"],save:function(){return new Promise((function(e){d(!0),setTimeout((function(){e(),d(!1),m("","Saved")}),3e3)}))},remove:function(){return new Promise((function(e){j(!0),setTimeout((function(){e(),j(!1),i("Some error from server","Error")}),3e3)}))},title:"custom title other",loading:a,submitButtonText:"submit",updating:p,removing:b,close:null==o?void 0:o.close,t:function(e){return e}},(function(o){var n=o.values,m=o.touched,i=o.errors,s=o.handleChange;return e.createElement(t,{columns:1,gr:16,gc:0},e.createElement(r,{label:"buz",value:n.buz,onChange:s("buz"),error:m.buz&&i.buz}),e.createElement(r,{label:"bur",value:n.bur,onChange:s("bur"),error:m.bur&&i.bur}))}))},c=function(u){var c=e.useState(!0),p=c[0],d=c[1],f=e.useState(!1),b=f[0],j=f[1],g=e.useState(!1),v=g[0],h=g[1],x=(0,e.useContext(n).openModal)(l);e.useEffect((function(){setTimeout((function(){return d(!1)}),500)}),[]);return e.createElement(s,{recordId:8273682763,initialValues:a,customValidationFields:["bar"],save:function(){return new Promise((function(e){j(!0),setTimeout((function(){e(),j(!1),m("","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",loading:p,submitButtonText:"csdcds",updating:b,removing:v,close:null==u?void 0:u.close,t:function(e){return e}},(function(n){var m=n.values,i=n.touched,s=n.errors,a=n.handleChange;return e.createElement(t,{columns:1,gr:16,gc:0},e.createElement(r,{label:"baz",value:m.baz,onChange:a("baz"),error:i.baz&&s.baz}),e.createElement(r,{label:"bar",value:m.bar,onChange:a("bar"),error:i.bar&&s.bar}),e.createElement(o,{onClick:x},"openCrudModalOther"))}))},p=function(){var t=(0,e.useContext(n).openModal)(c);return e.createElement(e.Fragment,null,e.createElement(o,{onClick:t},"open crud modal"))};export{p as Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useEffect as o}from"react";import{Button as n}from"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
import e,{useRef as t,useEffect as o}from"react";import{Button as n}from"../../../button/component.js";import"../../../tslib.es6-8ca8591b.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var r="index-module_component__ijVOx",i=function(i){var a=i.submitButtonText,s=void 0===a?"save":a,c=i.customFooter,l=i.submit,m=i.close,u=i.children,d=i.loading,p=i.disabled,v=i.t,b=t(null);return o((function(){var e;null===(e=null==b?void 0:b.current)||void 0===e||e.focus()}),[b]),e.createElement("div",{className:r},c||e.createElement(e.Fragment,null,e.createElement(n,{view:"primary",size:"xs",loading:d,disabled:p,dataTestId:"buttonSave",onClick:function(){return l()},ref:b},v(s)),e.createElement(n,{view:"secondary",size:"xs",dataTestId:"buttonCancel",onClick:m},v("cancel")),u))};export{i as FormFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Skeleton as t}from"../../../skeleton/component.js";import{FormOuter as l}from"../form-outer/index.js";import{a as m}from"../../../index-
|
|
1
|
+
import e from"react";import{Skeleton as t}from"../../../skeleton/component.js";import{FormOuter as l}from"../form-outer/index.js";import{a as m}from"../../../index-19d66436.js";import"classnames";import"../../../index-e2a7f76c.js";import"../../../_commonjsHelpers-d18ade07.js";var a="index-module_header__UtYpF",n="index-module_title__mrNu8",s="index-module_addon__-bw-y",i="index-module_input__MEN8P",r="index-module_buttons__PtGvG",c="index-module_button__hWCWD",o=function(){return e.createElement(e.Fragment,null,e.createElement(t,{visible:!0,className:i}),e.createElement(t,{visible:!0,className:i}),e.createElement(t,{visible:!0,className:i}),e.createElement(t,{visible:!0,className:i}),e.createElement(t,{visible:!0,className:i}))},d=function(){return e.createElement(l,null,e.createElement("div",{className:a},e.createElement(t,{visible:!0,className:n}),e.createElement(t,{visible:!0,className:s})),e.createElement(m,null,e.createElement(o,null)),e.createElement("div",{className:r},e.createElement(t,{visible:!0,className:c}),e.createElement(t,{visible:!0,className:c})))};export{d as FormLoading,o as FormLoadingCompact};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{a as FormWrapper}from"../../../index-
|
|
1
|
+
import"react";export{a as FormWrapper}from"../../../index-19d66436.js";import"../../../index-e2a7f76c.js";import"../../../_commonjsHelpers-d18ade07.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormFooter } from "./form-footer/index";
|
|
2
2
|
import { FormLoading } from "./form-loading/index";
|
|
3
3
|
import { FormUpdating } from "./form-updating/index";
|
|
4
|
-
import { FormWrapper } from "../../index-
|
|
4
|
+
import { FormWrapper } from "../../index-19d66436";
|
|
5
5
|
type FormProps = {
|
|
6
6
|
Footer: typeof FormFooter;
|
|
7
7
|
Wrapper: typeof FormWrapper;
|
|
@@ -1 +1 @@
|
|
|
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{a as m}from"../../index-
|
|
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{a as m}from"../../index-19d66436.js";import"react";import"../../button/component.js";import"../../tslib.es6-8ca8591b.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";import"../../index-e2a7f76c.js";import"../../_commonjsHelpers-d18ade07.js";var t={Footer:o,Wrapper:m,Updating:e,Loading:r};export{t as Form};
|
package/dist/form/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"../index-
|
|
1
|
+
export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"../index-19d66436.js";import"../index-e2a7f76c.js";import"../_commonjsHelpers-d18ade07.js";import"../sidepanel-header/component.js";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/form-footer/index.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./components/form-outer/index.js";import"./utils/get-default-values.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-updating/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-8ca8591b.js";import i from"react";import{F as t}from"../../../index-19d66436.js";import{FormLoadingCompact as n}from"../../components/form-loading/index.js";import"../../../index-e2a7f76c.js";import"../../../_commonjsHelpers-d18ade07.js";import"../../../skeleton/component.js";import"classnames";import"../../components/form-outer/index.js";function o(o){var r=o.loading,a=o.validate,m=o.customValidationFields,s=o.initialValues,l=o.enableReinitialize,c=o.save,d=o.children,u=o.t;if(r)return i.createElement(n,null);var p,f,j;return i.createElement(t,{validate:(p=a,f=m,p||(f?(j=f,function(e){return j.reduce((function(i,t){return("object"==typeof e?e:{})[t]||(i[t]=u("validationErrors:Required")),i}),{})}):void 0)),initialValues:s,enableReinitialize:l,onSubmit:c},(function(i){return d(e({},i))}))}export{o as BaseForm};
|