@alphakits/ui 1.22.13 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionCopyM-4612ae55.js +1 -0
- package/dist/ChevronBackM-e08196fc.js +1 -0
- package/dist/ChevronDownS-3c2a8cb9.js +1 -0
- package/dist/ChevronForwardS-be7c5619.js +1 -0
- package/dist/CloseS-8fccfe57.js +1 -0
- package/dist/NextS-6adf289c.js +1 -0
- package/dist/PlusS-e193bd6f.js +1 -0
- package/dist/SearchM-1bdcfc0d.js +1 -0
- package/dist/TrashM-f7dd4b23.js +1 -0
- package/dist/_tslib-531dfe1b-379f2f77.js +1 -0
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.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 +10 -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.d.ts +0 -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.d.ts +0 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.d.ts +2 -2
- 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/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-4d0a0294.js +1 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-functions.d.ts +41 -0
- package/dist/date-functions.js +1 -0
- package/dist/date-switcher/component.d.ts +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/flex-columns/component.d.ts +1 -1
- package/dist/flex-columns/component.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.d.ts +7 -0
- 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/filters-form/index.d.ts +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.d.ts +1 -1
- package/dist/form/templates/rest-form/form.js +1 -1
- package/dist/form/templates/rest-form/index.d.ts +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-27298e4e.js +1 -0
- package/dist/index-2e98adce.js +1 -0
- package/dist/index-39871cd2.js +1 -0
- package/dist/index-3ff95ce5.js +1 -0
- package/dist/index-478e7023.js +1 -0
- package/dist/index-5639a451.js +1 -0
- package/dist/index-5a1575b3.js +1 -0
- package/dist/index-5b6847a7.js +1 -0
- package/dist/index-6e902d9b.js +1 -0
- package/dist/index-704ecb28.js +1 -0
- package/dist/index-7f3b247f.js +1 -0
- package/dist/index-87e96bc0.js +1 -0
- package/dist/index-917c6b56.js +1 -0
- package/dist/index-a669b543.js +1 -0
- package/dist/index-c2fe189e.js +1 -0
- package/dist/index-c702bc3b.js +1 -0
- 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/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-5fe6ffd9.js → parse-query-params-fad225de.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/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.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/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.d.ts +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/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/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-47853e16.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 +3 -2
- package/dist/component-ff7f22f2.js +0 -1
- package/dist/index-1f862647.d.ts +0 -7
- package/dist/index-1f862647.js +0 -1
- package/dist/index-40643cd7.js +0 -1
- package/dist/index-4f76bb1b.js +0 -1
- package/dist/index-52466dc0.js +0 -9
- package/dist/table/data.d.ts +0 -35
- package/dist/table/data.js +0 -1
- package/dist/use-image-render-component-ac5638f8.js +0 -1
- /package/dist/{_commonjsHelpers-9df6f4dd.js → _commonjsHelpers-79edb509.js} +0 -0
- /package/dist/{colors.module-6721e9a2.js → colors.module-5b0a330b.js} +0 -0
- /package/dist/{common.module-920dfa2f.js → common.module-0d7cdf7f.js} +0 -0
- /package/dist/{component-ff7f22f2.d.ts → component-4d0a0294.d.ts} +0 -0
- /package/dist/{component-010e49fc.d.ts → component-a905d72e.d.ts} +0 -0
- /package/dist/{component-010e49fc.js → component-a905d72e.js} +0 -0
- /package/dist/{contact-block-55bf44ac.d.ts → contact-block-c54116cf.d.ts} +0 -0
- /package/dist/{contact-block-55bf44ac.js → contact-block-c54116cf.js} +0 -0
- /package/dist/{gutters.module-187a8a87.js → gutters.module-bd78f5cb.js} +0 -0
- /package/dist/{intersection-observer-aa692db4.js → intersection-observer-1b96bdb1.js} +0 -0
- /package/dist/{parse-query-params-5fe6ffd9.d.ts → parse-query-params-fad225de.d.ts} +0 -0
- /package/dist/{slide-1598df7f.d.ts → slide-b6707907.d.ts} +0 -0
- /package/dist/{slide-1598df7f.js → slide-b6707907.js} +0 -0
- /package/dist/{tslib.es6-8358f354.js → tslib.es6-8158ebfc.js} +0 -0
- /package/dist/{use-image-render-component-ac5638f8.d.ts → use-image-render-component-47853e16.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useState as
|
|
1
|
+
import{useState as i,useCallback as e}from"react";import{useDidUpdateEffect as t}from"./utils.js";import"../index-c702bc3b.js";import"../index-a669b543.js";import"../index-6e902d9b.js";import"../index-5a1575b3.js";import"../index-7f3b247f.js";function o(o){var n=o.onPeriodChange,r=o.initialSelectedFrom,d=o.initialSelectedTo,c=i(r),m=c[0],s=c[1],a=i(d),f=a[0],u=a[1],p=e((function(){s(void 0),u(void 0)}),[]),l=e((function(i){s(i)}),[]),v=e((function(i){u(i)}),[]),x=e((function(i){if(void 0!==i){if(m)return f?void(i>m?u(i):i<m&&(u(void 0),s(i))):(s(Math.min(i,m)),void u(Math.max(i,m)));s(i)}else p()}),[p,m,f]);return t((function(){n&&n(m,f)}),[m,f]),{selectedFrom:m,selectedTo:f,setStart:l,setEnd:v,resetPeriod:p,updatePeriod:x}}export{o as usePeriod};
|
package/dist/calendar/utils.d.ts
CHANGED
package/dist/calendar/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRef as
|
|
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-c702bc3b.js";import{s as d,c as v,l as m,e as b,a as p,h as l,f as x,b as k,g as w,m as g,i as h,j as y,d as L}from"../index-5a1575b3.js";import{f as T}from"../index-7f3b247f.js";import"../index-a669b543.js";import"../index-6e902d9b.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 b({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 p({start:l(e),end:x(e)}).map((function(e){return A(e,n)}))}function K(e,n){return k({start:w([l(n),l(e)]),end:g([l(n),l(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};
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { ChangeEvent, MouseEvent } from "react";
|
|
4
4
|
import { CalendarProps } from "../calendar/index";
|
|
5
5
|
import { MaskedInputProps } from "../masked-input/index";
|
|
6
|
-
type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' | '
|
|
6
|
+
type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' | 'rightAddons' | 'onBeforeDisplay'> & {
|
|
7
7
|
block?: boolean;
|
|
8
8
|
className?: string;
|
|
9
9
|
inputClassName?: string;
|
|
@@ -29,7 +29,7 @@ type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' |
|
|
|
29
29
|
onCalendarChange?: CalendarProps['onChange'];
|
|
30
30
|
dataTestId?: string;
|
|
31
31
|
};
|
|
32
|
-
declare const CalendarInput: React.ForwardRefExoticComponent<Omit<MaskedInputProps, "mask" | "value" | "rightAddons" | "onChange" | "
|
|
32
|
+
declare const CalendarInput: React.ForwardRefExoticComponent<Omit<MaskedInputProps, "mask" | "value" | "rightAddons" | "onChange" | "onBeforeDisplay"> & {
|
|
33
33
|
block?: boolean | undefined;
|
|
34
34
|
className?: string | undefined;
|
|
35
35
|
inputClassName?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-8158ebfc.js";import o,{forwardRef as n,useState as r,useRef as a,useCallback as i,useEffect as p}from"react";import m 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 b,SUPPORTS_INPUT_TYPE_DATE as x,NATIVE_DATE_FORMAT as g}from"./utils.js";import"../index-5a1575b3.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-c702bc3b.js";import"../index-3ff95ce5.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-5b6847a7.js";import"../index-704ecb28.js";import"../hooks/usePrevious/index.js";import"../index-7f3b247f.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-917c6b56.js";import"../calendar/components/years-table/сomponent.js";import"../index-c2fe189e.js";import"../index-39871cd2.js";import"../calendar/use-calendar.js";import"../index-478e7023.js";import"../_commonjsHelpers-79edb509.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"../_tslib-531dfe1b-379f2f77.js";import"../CloseS-8fccfe57.js";import"../toast-notifier/use-timer.js";import"../index-27298e4e.js";import"../index-87e96bc0.js";import"../index-2e98adce.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,K=n.dataTestId,U=n.minDate,z=n.required,B=n.maxDate,H=n.calendarProps,L=void 0===H?{}:H,S=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=x&&"native"===J,re="input"===J,ae="static"===q&&!re,ie="popover"===q&&!ne&&!re,pe=r(!1),me=pe[0],se=pe[1],le=r(O),de=le[0],ce=le[1],ue=oe?de:R,fe=ue?j(ue).getTime():void 0,je=d(fe,U,B),ve=X||ee,be=a(null),xe=a(null),ge=a(null),he=a(null),ye=i((function(e){"Escape"===e.key&&se(!1)}),[]),_e=i((function(){me||se(!0)}),[me]),Ce=i((function(e){se(!0),!me&&"INPUT"!==e.target.tagName&&he.current&&he.current.focus()}),[me]),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,r){void 0===n&&(n="input"),void 0===r&&(r=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),r&&(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()}),[]);p((function(){se(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(l,t({},L,{ref:he,defaultMonth:F,value:je?fe:void 0,onChange:Ne,minDate:U,maxDate:B})))}),[L,fe,F,Ne,Ie,je,B,U]);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":K},o.createElement(c,t({},te,{ref:m([D,be]),wrapperRef:m([W,xe]),className:I,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:b,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:C}),ne&&o.createElement("input",{type:"date",ref:m([D,be]),defaultValue:O,onChange:Me,className:k})),onKeyDown:De,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),ae&&Pe(),ie&&o.createElement(u,{open:me,anchorElement:xe.current,popperClassName:_,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:S},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-8158ebfc.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-5a1575b3.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-c702bc3b.js";import"../index-3ff95ce5.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-5b6847a7.js";import"../index-704ecb28.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../index-7f3b247f.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-917c6b56.js";import"../calendar/components/years-table/сomponent.js";import"../index-c2fe189e.js";import"../index-39871cd2.js";import"../calendar/use-calendar.js";import"../index-478e7023.js";import"../masked-input/component.js";import"../_commonjsHelpers-79edb509.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"../_tslib-531dfe1b-379f2f77.js";import"../CloseS-8fccfe57.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-27298e4e.js";import"../index-87e96bc0.js";import"../index-2e98adce.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{p as e}from"../index-27298e4e.js";import"../index-a669b543.js";import"../index-6e902d9b.js";import"../index-87e96bc0.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&&a(),o=function(e){return e.length===n.length},u=function(d,n){return void 0===n&&(n=t),e(d,n,new Date)};function a(){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,o as isCompleteDateInput,a as isInputDateSupported,u as parseDateString};
|
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-8158ebfc.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"../_tslib-531dfe1b-379f2f77.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-47853e16.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,p=r.bottomAddons,a=r.images,l=void 0===a?[]:a,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),p))};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"../../
|
|
1
|
+
import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../_tslib-531dfe1b-379f2f77.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-47853e16.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-8158ebfc.js";import"../../typography/title/component.js";import"../../colors.module-5b0a330b.js";import"../../common.module-0d7cdf7f.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 p=s.images,a=void 0===p?[]:p,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]])},a.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},a.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:a[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-8158ebfc.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"../_tslib-531dfe1b-379f2f77.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-47853e16.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-a905d72e.js";import"../../typography/title/index.js";import"../../tslib.es6-8158ebfc.js";import"../../typography/title/component.js";import"../../colors.module-5b0a330b.js";import"../../common.module-0d7cdf7f.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-a905d72e";
|
package/dist/cell/base/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Base}from"../../component-
|
|
1
|
+
export{B as Base}from"../../component-a905d72e.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-8158ebfc.js";import"../../typography/title/component.js";import"../../colors.module-5b0a330b.js";import"../../common.module-0d7cdf7f.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-a905d72e.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-8158ebfc.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.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-a905d72e.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-8158ebfc.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.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-8158ebfc.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,f=o.dataTestId,O=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",f,!0)},O),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-8158ebfc.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-8158ebfc.js";import t,{forwardRef as a,useRef as d}from"react";import l from"react-merge-refs";import{_ as o}from"../_tslib-531dfe1b-379f2f77.js";import i from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var c=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=m(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(c,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-8158ebfc.js";import"react";import"react-merge-refs";import"../_tslib-531dfe1b-379f2f77.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-8158ebfc.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-379f2f77.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",m="index-module_subtitle__0PkbT",c=function(c){var l=c.title,s=c.subtitle,a=c.selected,d=void 0===a?[]:a,p=c.data,u=void 0===p?[]:p,v=c.onChange,f=c.columns,g=void 0===f?1:f,y=c.gr,b=void 0===y?20:y,h=c.gc,x=void 0===h?20:h,j=c.dataTestId,k=d||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||s)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),s&&t.createElement(r.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),t.createElement(n,{columns:g,gr:b,gc:x},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{c as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-8158ebfc.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"../_tslib-531dfe1b-379f2f77.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-5b0a330b.js";import"../common.module-0d7cdf7f.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-8158ebfc.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-3c2a8cb9.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 p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"../_tslib-531dfe1b-379f2f77.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-79edb509.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-5b0a330b.js";import"../common.module-0d7cdf7f.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,_=u.checkableParent,j=u.collapsable,v=u.onChange,E=[],g=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&&E.push(t)}));var y=n(E),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?v(g.filter((function(e){return!t.includes(e)}))):v(e(e([],g),t))}))},F=function(e){var n,o,r=e.element;return _?t.createElement(l,{block:!0,checked:(n=r.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(r.childs.map((function(e){return e.id})))},label:""+r.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},r.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),j&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:r(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(l,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"../tslib.es6-8158ebfc.js";import"react";import"../ChevronDownS-3c2a8cb9.js";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-79edb509.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-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{_ as t}from"../_tslib-531dfe1b-379f2f77.js";import{P as o}from"../PlusS-e193bd6f.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-8158ebfc.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-5b0a330b.js";import"../common.module-0d7cdf7f.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{
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-3c2a8cb9.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-379f2f77.js";import"../_commonjsHelpers-79edb509.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8158ebfc.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-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",a="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,f=u.content,x=u.expanded,y=u.addons,h=u.children,v=u.disabled,g=o(x),E=g[0],w=g[1];return t((function(){w(x)}),[x]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:l},b&&e.createElement(s.Text,{className:a,color:"secondary",view:"title",weight:"medium"},b),f),e.createElement("div",{className:l},y,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"../
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-3c2a8cb9.js";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-79edb509.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8158ebfc.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-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as u}from"react";import a from"classnames";import{a as c}from"../_commonjsHelpers-
|
|
1
|
+
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as u}from"react";import a from"classnames";import{a as c}from"../_commonjsHelpers-79edb509.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k="[object Null]",z="[object Undefined]",S=x?x.toStringTag:void 0;var C=function(e){return null==e?void 0===e?z:k:S&&S in Object(e)?T(e):N(e)};var L=function(e){return null!=e&&"object"==typeof e},H="[object Symbol]";var $=function(e){return"symbol"==typeof e||L(e)&&C(e)==H},D=NaN,F=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,M=/^0o[0-7]+$/i,P=parseInt;var U=function(e){if("number"==typeof e)return e;if($(e))return D;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=I.test(e);return n||M.test(e)?P(e.slice(2),n?2:8):F.test(e)?D:+e},W="Expected a function",A=Math.max,Q=Math.min;var R=function(e,t,n){var r,o,i,u,a,c,f=0,l=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(W);function m(t){var n=r,i=o;return r=o=void 0,f=t,u=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-f>=i}function y(){var e=p();if(b(e))return h(e);a=setTimeout(y,function(e){var n=t-(e-c);return d?Q(n,i-(e-f)):n}(e))}function h(e){return a=void 0,v&&r?m(e):(r=o=void 0,u)}function j(){var e=p(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(y,t),l?m(e):u}(c);if(d)return clearTimeout(a),a=setTimeout(y,t),m(c)}return void 0===a&&(a=setTimeout(y,t)),u}return t=U(t)||0,s(n)&&(l=!!n.leading,i=(d="maxWait"in n)?A(U(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),j.cancel=function(){void 0!==a&&clearTimeout(a),f=0,r=c=o=a=void 0},j.flush=function(){return void 0===a?u:h(p())},j},Y="index-module_collapse__ORa-f",q="index-module_content__UDk-m",B="index-module_expandedContent__iQszl",G="index-module_children_wrap__ekYCk",J=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=R((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new f(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=u((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:a(y,Y),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:a(q,h,(s={},s[B]=S,s)),style:$},e.createElement("div",{className:a(G),ref:O},b)),D&&e.createElement(l,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{J as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-79edb509.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as n}from"react";import r 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 u}from"./table/components/table-header/index.js";import{useTableData as d}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-47853e16.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 E(e){var l=e.columns,o=e.data,n=e.refetch,r=o.map((function(e){return{row:e,cells:l.map((function(l){var o,r,a,i,c,s,m,u,d,p,f=j((null===(o=l.row)||void 0===o?void 0:o.title)||l.accessor,e,n);if(null===(r=l.row)||void 0===r?void 0:r.image){var b=w(null===(a=l.row)||void 0===a?void 0:a.image,e,n);p=b?t.createElement(v,{src:b,text:null==f?void 0:f.toString(),view:"ellipse"}):t.createElement(v,{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,n);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,n));return t.createElement(_.Cell,{title:f,align:l.align,subtitle:(null===(u=l.row)||void 0===u?void 0:u.subtitle)&&j(null===(d=l.row)||void 0===d?void 0:d.subtitle,e,n),addon:p})}))}}));return r}var x={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function C(e){var g=e.columns,v=e.searchPlaceholder,w=void 0===v?"Поиск по таблице":v,j=e.records,C=e.hideSearch,_=e.rightHeaderAddons,k=e.leftHeaderAddons,y=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=d({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=n((function(){return E({columns:g,data:z,refetch:N||K})}),[z,g]),Z=R||B;return t.createElement("div",{className:r(x.table_wrapper,x[A])},(!C||_||k||T||q)&&t.createElement(u,{language:D,hideSearch:C,rightHeaderAddons:_,leftHeaderAddons:k,searchText:(null==I?void 0:I.searchText)||"",addParam:W,searchPlaceholder:w,filtersButtonLabel:y,tags:X,onCreateClick:M,createButtonLabel:P,onFiltersClick:U,showFiltersButton:!!q}),t.createElement("div",{className:x.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,n=e.cells;return t.createElement("tr",{onClick:function(){return e=o,null==H?void 0:H(e,K);var e},className:r((l={},l[x.clickable]=!!H,l)),style:{visibility:Z?"collapse":"visible"}},n.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:C};export{_ as T,C as a,E as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"react";import{A as o}from"../ActionCopyM-4612ae55.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-379f2f77.js";import"../tslib.es6-8158ebfc.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-8fccfe57.js";import"../toast-notifier/use-timer.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.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,c=n.fullText;return t.createElement("div",{className:m},t.createElement(r.Text,{view:"title",weight:"medium",color:"secondary"},s),t.createElement(e,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(c||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"../
|
|
1
|
+
export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-4612ae55.js";import"../_tslib-531dfe1b-379f2f77.js";import"../icon-button/component.js";import"../tslib.es6-8158ebfc.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-8fccfe57.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/date/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-8158ebfc.js";import a from"react";import{f as o}from"../index-7f3b247f.js";import{p as r}from"../index-27298e4e.js";import{p as m,c as i}from"../index-2e98adce.js";import{r as s,d,e as p}from"../index-3ff95ce5.js";import{Typography as n}from"../typography/component.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-87e96bc0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var y={ru:s,de:d,en:p,pl:m,cs:i},c=function(e){var t,a=e.date,m=e.time,i=e.format,s=void 0===i?"dd MMMM yyyy, HH:mm":i,d=e.language,p=void 0===d?"de":d;try{if("number"==typeof a||"object"==typeof a||a.includes("Z"))t=new Date(a);else{var n=3===a.split("-").length?"yyyy-MM-dd":"dd.MM.yyyy",c=m?" "+m.split(":")[0]+":"+m.split(":")[1]:"";c&&(n+=" HH:mm"),t=r(a+c,n,new Date)}return o(t,s,{locale:y[p]})}catch(e){return"Invalid date"}},l=function(o){var r=o.className,m=o.dataTestId,i=o.date,s=o.time,d=o.format,p=void 0===d?"dd.MM.yyyy":d,y=o.language,l=void 0===y?"de":y,f=e(o,["className","dataTestId","date","time","format","language"]);return a.createElement(n.Text,t({},f,{className:r,"data-test-id":m}),c({date:i,format:p,language:l,time:s}))};export{l as FormattedDate,c as normalizeDate};
|
package/dist/date/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-8158ebfc.js";import"react";import"../index-7f3b247f.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-27298e4e.js";import"../index-87e96bc0.js";import"../index-2e98adce.js";import"../index-3ff95ce5.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { default as add } from 'date-fns/add';
|
|
2
|
+
export { default as addDays } from 'date-fns/addDays';
|
|
3
|
+
export { default as addMonths } from 'date-fns/addMonths';
|
|
4
|
+
export { default as eachDayOfInterval } from 'date-fns/eachDayOfInterval';
|
|
5
|
+
export { default as eachMonthOfInterval } from 'date-fns/eachMonthOfInterval';
|
|
6
|
+
export { default as eachYearOfInterval } from 'date-fns/eachYearOfInterval';
|
|
7
|
+
export { default as endOfISOWeek } from 'date-fns/endOfISOWeek';
|
|
8
|
+
export { default as endOfWeek } from 'date-fns/endOfWeek';
|
|
9
|
+
export { default as endOfYear } from 'date-fns/endOfYear';
|
|
10
|
+
export { default as format } from 'date-fns/format';
|
|
11
|
+
export { default as isAfter } from 'date-fns/isAfter';
|
|
12
|
+
export { default as isBefore } from 'date-fns/isBefore';
|
|
13
|
+
export { default as isEqual } from 'date-fns/isEqual';
|
|
14
|
+
export { default as isLastDayOfMonth } from 'date-fns/isLastDayOfMonth';
|
|
15
|
+
export { default as isSameDay } from 'date-fns/isSameDay';
|
|
16
|
+
export { default as isSameMonth } from 'date-fns/isSameMonth';
|
|
17
|
+
export { default as isSameYear } from 'date-fns/isSameYear';
|
|
18
|
+
export { default as isThisMonth } from 'date-fns/isThisMonth';
|
|
19
|
+
export { default as isThisYear } from 'date-fns/isThisYear';
|
|
20
|
+
export { default as isToday } from 'date-fns/isToday';
|
|
21
|
+
export { default as isWithinInterval } from 'date-fns/isWithinInterval';
|
|
22
|
+
export { default as lastDayOfMonth } from 'date-fns/lastDayOfMonth';
|
|
23
|
+
export { default as max } from 'date-fns/max';
|
|
24
|
+
export { default as min } from 'date-fns/min';
|
|
25
|
+
export { default as parse } from 'date-fns/parse';
|
|
26
|
+
export { default as parseISO } from 'date-fns/parseISO';
|
|
27
|
+
export { default as setYear } from 'date-fns/setYear';
|
|
28
|
+
export { default as startOfDay } from 'date-fns/startOfDay';
|
|
29
|
+
export { default as startOfISOWeek } from 'date-fns/startOfISOWeek';
|
|
30
|
+
export { default as startOfMonth } from 'date-fns/startOfMonth';
|
|
31
|
+
export { default as startOfWeek } from 'date-fns/startOfWeek';
|
|
32
|
+
export { default as startOfYear } from 'date-fns/startOfYear';
|
|
33
|
+
export { default as subDays } from 'date-fns/subDays';
|
|
34
|
+
export { default as subMonths } from 'date-fns/subMonths';
|
|
35
|
+
export { default as subWeeks } from 'date-fns/subWeeks';
|
|
36
|
+
export { default as subYears } from 'date-fns/subYears';
|
|
37
|
+
export { default as cs } from 'date-fns/locale/cs';
|
|
38
|
+
export { default as de } from 'date-fns/locale/de';
|
|
39
|
+
export { default as enGB } from 'date-fns/locale/en-GB';
|
|
40
|
+
export { default as pl } from 'date-fns/locale/pl';
|
|
41
|
+
export { default as ru } from 'date-fns/locale/ru';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as add,p as parseISO,s as subWeeks}from"./index-5639a451.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-c702bc3b.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-5a1575b3.js";export{f as format}from"./index-7f3b247f.js";export{i as isEqual,a as isLastDayOfMonth,b as isWithinInterval}from"./index-5b6847a7.js";export{i as isSameYear}from"./index-c2fe189e.js";export{i as isThisMonth}from"./index-917c6b56.js";export{i as isThisYear}from"./index-39871cd2.js";export{i as isToday}from"./index-704ecb28.js";export{p as parse}from"./index-27298e4e.js";export{s as setYear,a as subYears}from"./index-478e7023.js";export{c as cs,p as pl}from"./index-2e98adce.js";export{d as de,e as enGB,r as ru}from"./index-3ff95ce5.js";import"./index-6e902d9b.js";import"./index-a669b543.js";import"./index-87e96bc0.js";
|
|
@@ -7,5 +7,5 @@ interface DateSwitcherProps {
|
|
|
7
7
|
maxDate?: string;
|
|
8
8
|
todayLabel: string;
|
|
9
9
|
}
|
|
10
|
-
declare const DateSwitcher: ({ view, startDate, onChange, minDate, maxDate, todayLabel }: DateSwitcherProps) => JSX.Element;
|
|
10
|
+
declare const DateSwitcher: ({ view, startDate, onChange, minDate, maxDate, todayLabel, }: DateSwitcherProps) => JSX.Element;
|
|
11
11
|
export { DateSwitcherProps, DateSwitcher };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{
|
|
1
|
+
import e from"react";import{C as t}from"../ChevronBackM-e08196fc.js";import{_ as o}from"../_tslib-531dfe1b-379f2f77.js";import r from"classnames";import{Button as a}from"../button/component.js";import{p as i,a as n,s as m}from"../index-5639a451.js";import{f as s}from"../index-7f3b247f.js";import{e as d,i as c,c as p,g as l}from"../index-c702bc3b.js";import{i as f}from"../index-704ecb28.js";import{IconButton as y}from"../icon-button/component.js";import{Typography as w}from"../typography/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-87e96bc0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.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"}))},b={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},h="yyyy-MM-dd",u="dd.MM.yy",_=function(o){var _=o.view,x=void 0===_?"day":_,g=o.startDate,v=o.onChange,k=o.minDate,E=o.maxDate,C=o.todayLabel,M=d(i(g)),D="day"===x?i(g):M,z=k?i(k):new Date,T=c(D,z),B=!E||p(D,i(E)),H=f(D);return e.createElement("div",{className:b.date_switcher},e.createElement(y,{disabled:!!k&&!T,onClick:function(){"day"===x&&v(s(l(D,1),h)),"week"===x&&v(s(m(D,1),h))},icon:t}),e.createElement("div",{className:r(b.date_wrap,b[x])},e.createElement(w.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===x?s(D,u):s(D,u)+" - "+s(n(D,{days:6}),u))),e.createElement(y,{disabled:!B,onClick:function(){"day"===x&&v(s(n(D,{days:1}),h)),"week"===x&&v(s(n(D,{days:7}),h))},icon:j}),e.createElement(a,{disabled:H,onClick:function(){v(s(new Date,h))},view:"ghost"},C))};export{_ as DateSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateSwitcher}from"./component.js";import"react";import"../
|
|
1
|
+
export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-e08196fc.js";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../button/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-5639a451.js";import"../index-c702bc3b.js";import"../index-a669b543.js";import"../index-6e902d9b.js";import"../index-87e96bc0.js";import"../index-7f3b247f.js";import"../index-704ecb28.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import r from"classnames";var a="index-module_flexColumns__aTLJX",o=function(o){var m=o.children,l=o.columns,i=void 0===l?3:l,n=o.gr,s=void 0===n?20:n,t=o.gc,d=void 0===t?20:t,c=o.className;return e.createElement("div",{className:r(a,c),style:{gridTemplateColumns:"1fr ".repeat(i),gridRowGap:s+"px",gridColumnGap:d+"px"}},m)};export{o as FlexColumns};
|
package/dist/footer/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-8158ebfc.js";import t from"react";import{_ as l}from"../_tslib-531dfe1b-379f2f77.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-c54116cf.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-bd78f5cb.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"}))},h=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"}))},d=function(l){var d=l.sections,v=void 0===d?[]:d,u=l.contacts,f=void 0===u?[]:u,E=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},f.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),E&&t.createElement("div",{className:o.text},E),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:h})),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{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-c54116cf.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-8158ebfc.js";import"react";import"../_tslib-531dfe1b-379f2f77.js";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-bd78f5cb.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-c54116cf.js";
|