@alphakits/ui 1.27.35 → 1.27.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/back-button/component.js +1 -1
- package/dist/back-button/index.js +1 -1
- package/dist/base-card/component.d.ts +2 -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-4f57efc0.js → capitalize-492ff1ce.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/component.js +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{component-0964813d.js → component-74d452c1.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/empty-page/component.js +1 -1
- package/dist/empty-page/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/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/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image-gallery/component.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-a7f524c0.js → index-0f39f9e9.js} +1 -1
- package/dist/{index-ff52e1e7.js → index-1256325b.js} +1 -1
- package/dist/index-20708147.js +1 -0
- package/dist/index-27ce9a2c.js +1 -0
- package/dist/{index-e5aaea7a.js → index-2d267dff.js} +2 -2
- package/dist/{index-6dfe8c16.js → index-5f90b010.js} +1 -1
- package/dist/{index-55bbbbcf.js → index-bcdd7b8a.js} +1 -1
- package/dist/{index-b6b5bedf.js → index-c0941e74.js} +1 -1
- package/dist/{index-95c2d7ac.js → index-cba7c765.js} +1 -1
- package/dist/index-cbc07ef9.js +1 -0
- package/dist/{index-a1b15e4c.js → index-d722f187.js} +1 -1
- package/dist/{index-acf7aeeb.js → index-e12ee049.js} +1 -1
- package/dist/{index-a6f32c83.js → index-e4a9f5ac.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-99305541.js +1 -0
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.d.ts +3 -2
- 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/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/page-with-controls/component.js +1 -1
- package/dist/page-with-controls/index.js +1 -1
- package/dist/{parse-query-params-d048e76d.js → parse-query-params-59f79bce.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/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/{use-image-render-component-12d1451a.js → use-image-render-component-9a1618b8.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/vars/alpha-radiuses.css +3 -3
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-0411c0aa.js +0 -1
- package/dist/index-b95dd1d6.js +0 -1
- package/dist/index-d443d11d.js +0 -1
- package/dist/isSymbol-f51f753c.js +0 -1
- /package/dist/{ActionCopyM-6bd62545.js → ActionCopyM-6281efb7.js} +0 -0
- /package/dist/{CancelM-995789e5.js → CancelM-8b7837fa.js} +0 -0
- /package/dist/{CheckmarkCircleM-eaa97efe.js → CheckmarkCircleM-4df7d377.js} +0 -0
- /package/dist/{ChevronBackM-35b93368.js → ChevronBackM-f377912f.js} +0 -0
- /package/dist/{ChevronBackS-104cbda8.js → ChevronBackS-f1a96775.js} +0 -0
- /package/dist/{ChevronDownS-3f25432e.js → ChevronDownS-28945d3b.js} +0 -0
- /package/dist/{ChevronForwardM-85dbdbb5.js → ChevronForwardM-fd565dcb.js} +0 -0
- /package/dist/{ChevronForwardS-c349a0d5.js → ChevronForwardS-2bfdd927.js} +0 -0
- /package/dist/{ClockCircleM-15f6a0b3.js → ClockCircleM-8d45840a.js} +0 -0
- /package/dist/{CloseM-e136970c.js → CloseM-f800d8c8.js} +0 -0
- /package/dist/{CloseS-9e8f6473.js → CloseS-e501137c.js} +0 -0
- /package/dist/{ControllerS-ac9ae58d.js → ControllerS-194d86d5.js} +0 -0
- /package/dist/{EditS-b08c9a76.js → EditS-d015da1b.js} +0 -0
- /package/dist/{MinusM-1dfa530d.js → MinusM-6c2efbfe.js} +0 -0
- /package/dist/{MoverS-e424fe97.js → MoverS-27bb6134.js} +0 -0
- /package/dist/{NextS-c12e2647.js → NextS-00c07aa8.js} +0 -0
- /package/dist/{PhotoS-4f30de63.js → PhotoS-7a7ca986.js} +0 -0
- /package/dist/{PlusS-e229b25e.js → PlusS-5223b9b5.js} +0 -0
- /package/dist/{SearchM-18e1942a.js → SearchM-50fd8177.js} +0 -0
- /package/dist/{TrashM-49764f64.js → TrashM-cfb86ef5.js} +0 -0
- /package/dist/{YoutubeM-447fe180.js → YoutubeM-8edd8555.js} +0 -0
- /package/dist/{_commonjsHelpers-0eca42d1.js → _commonjsHelpers-ff1e5e50.js} +0 -0
- /package/dist/{colors.module-3ac4bc04.js → colors.module-4cf3dce4.js} +0 -0
- /package/dist/{component-0964813d.d.ts → component-74d452c1.d.ts} +0 -0
- /package/dist/{component-71ad1557.d.ts → component-abed4991.d.ts} +0 -0
- /package/dist/{component-71ad1557.js → component-abed4991.js} +0 -0
- /package/dist/{contact-block-09064200.d.ts → contact-block-7b78b706.d.ts} +0 -0
- /package/dist/{contact-block-09064200.js → contact-block-7b78b706.js} +0 -0
- /package/dist/{gutters.module-26480e92.js → gutters.module-c6b42a55.js} +0 -0
- /package/dist/{index-ff52e1e7.d.ts → index-1256325b.d.ts} +0 -0
- /package/dist/{index-a4031e60.js → index-3c46eca4.js} +0 -0
- /package/dist/{index-ce8b0f42.js → index-ccb5e023.js} +0 -0
- /package/dist/{intersection-observer-887e09c3.js → intersection-observer-618833f4.js} +0 -0
- /package/dist/{parse-query-params-d048e76d.d.ts → parse-query-params-59f79bce.d.ts} +0 -0
- /package/dist/{slide-9b7c1f39.d.ts → slide-0efacc2b.d.ts} +0 -0
- /package/dist/{slide-9b7c1f39.js → slide-0efacc2b.js} +0 -0
- /package/dist/{step-bar-f503a45f.d.ts → step-bar-27bb1acc.d.ts} +0 -0
- /package/dist/{step-bar-f503a45f.js → step-bar-27bb1acc.js} +0 -0
- /package/dist/{tslib.es6-bf9f8d77.js → tslib.es6-e8c381d5.js} +0 -0
- /package/dist/{use-image-render-component-12d1451a.d.ts → use-image-render-component-9a1618b8.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{N as o}from"../NextS-
|
|
1
|
+
import t from"react";import{N as o}from"../NextS-00c07aa8.js";import e from"classnames";import{IconButton as m}from"../icon-button/component.js";import{Typography as r}from"../typography/component.js";import"../tslib.es6-e8c381d5.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var i={item:"index-module_item__fXRQg"},p=function(p){var n=p.title,s=p.onClick;return t.createElement("div",{className:e(i.item)},t.createElement(r.Text,{view:"title",weight:"bold"},n),!!s&&t.createElement(m,{icon:o,className:i.copy,size:"s",onClick:s}))};export{p as InfoBlockHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InfoBlockHeader}from"./component.js";import"react";import"../NextS-
|
|
1
|
+
export{InfoBlockHeader}from"./component.js";import"react";import"../NextS-00c07aa8.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-e8c381d5.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{A as t}from"../ActionCopyM-
|
|
1
|
+
import e from"react";import{A as t}from"../ActionCopyM-6281efb7.js";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as m}from"../typography/component.js";import"../tslib.es6-e8c381d5.js";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"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var n={item:"index-module_item__BUo57",start:"index-module_start__G65gS",between:"index-module_between__yyp2w",rightAddons:"index-module_rightAddons__KS2QD",content:"index-module_content__Q7Zy2",copy:"index-module_copy__msKVu"},s=function(s){var c=s.label,p=s.value,a=s.view,d=void 0===a?"between":a,l=s.rightAddons,u=s.withCopyButton,y=s.color,_=void 0===y?"primary":y;return e.createElement("div",{className:o(n.item,n[d])},e.createElement(m.Text,{view:"caps",color:"secondary",weight:"medium"},c,p&&":"),e.createElement("div",{className:n.content},p&&e.createElement(m.Text,{view:"caps",className:n.value,color:_,weight:"medium"},p,u&&e.createElement(i,{icon:t,className:n.copy,size:"s",onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(p).then((function(){r({title:"Copied!",view:"positive",offset:30})}))}})),l&&e.createElement("div",{className:n.rightAddons},l)))};export{s as InfoBlockItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InfoBlockItem}from"./component.js";import"react";import"../ActionCopyM-
|
|
1
|
+
export{InfoBlockItem}from"./component.js";import"react";import"../ActionCopyM-6281efb7.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-e8c381d5.js";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"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
package/dist/input/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-e8c381d5.js";import a,{useRef as s,useState as l,useCallback as n,Fragment as r}from"react";import t from"react-merge-refs";import d from"classnames";import{Button as c}from"../button/component.js";import{FormControl as i}from"../form-control/component.js";import{useFocus as u}from"../hooks/useFocus/index.js";import"../loader/component.js";var m={input:"index-module_input__XkSql",hasLabel:"index-module_hasLabel__3lW-T",block:"index-module_block__Lq9-V",clearIcon:"index-module_clearIcon__951a-",errorIcon:"index-module_errorIcon__Z4acu",successIcon:"index-module_successIcon__yfoME",focusVisible:"index-module_focusVisible__3hinw"},f=a.forwardRef((function(f,p){var b,C,N=f.size,_=void 0===N?"m":N,h=f.type,v=void 0===h?"text":h,k=f.block,g=void 0!==k&&k,x=f.bottomAddons,y=f.dataTestId,I=f.clear,A=void 0!==I&&I,w=f.disabled,E=f.error,M=f.success,V=f.required,j=f.hint,q=f.className,B=f.fieldClassName,L=f.inputClassName,F=f.labelClassName,z=f.addonsClassName,D=f.focusedClassName,O=f.filledClassName,R=f.label,T=f.leftAddons,U=f.onFocus,P=f.onBlur,S=f.onChange,W=f.onClear,X=f.onClick,Z=f.onMouseDown,G=f.onMouseUp,H=f.rightAddons,J=f.value,K=f.defaultValue,Q=f.wrapperRef,Y=f.readOnly,$=e(f,["size","type","block","bottomAddons","dataTestId","clear","disabled","error","success","required","hint","className","fieldClassName","inputClassName","labelClassName","addonsClassName","focusedClassName","filledClassName","label","leftAddons","onFocus","onBlur","onChange","onClear","onClick","onMouseDown","onMouseUp","rightAddons","value","defaultValue","wrapperRef","readOnly"]),ee=void 0===J,oe=s(null),ae=u(oe,"keyboard")[0],se=l(!1),le=se[0],ne=se[1],re=l(K||""),te=re[0],de=re[1],ce=Boolean(ee?te:J),ie=A&&ce&&!w&&!Y,ue=n((function(e){Y||ne(!0),U&&U(e)}),[U,Y]),me=n((function(e){ne(!1),P&&P(e)}),[P]),fe=n((function(e){S&&S(e,{value:e.target.value}),ee&&de(e.target.value)}),[S,ee]),pe=n((function(e){ie&&(ee&&de(""),W&&W(e),oe.current&&!le&&oe.current.focus())}),[ie,le,W,ee]);return a.createElement(i,{ref:Q,className:d(q,le&&D,ce&&O),fieldClassName:d(B,(b={},b[m.focusVisible]=ae,b)),labelClassName:F,addonsClassName:z,size:_,block:g,required:V,disabled:w,filled:ce||le,focused:le,error:E,label:R,hint:j,leftAddons:T,rightAddons:(ie||H||M)&&a.createElement(r,null,ie&&a.createElement(c,{type:"button",view:"ghost",disabled:w,"aria-label":"Очистить",className:m.clearButton,onClick:pe},a.createElement("span",{className:m.clearIcon})),M&&!E&&a.createElement("span",{className:m.successIcon}),H),bottomAddons:x,onClick:X,onMouseDown:Z,onMouseUp:G},a.createElement("input",o({},$,{className:d(m.input,(C={},C[m.hasLabel]=R,C),L),disabled:w,onBlur:me,onFocus:ue,onChange:fe,maxLength:100,ref:t([p,oe]),type:v,value:ee?te:J,readOnly:Y,"data-test-id":y,"data-error":!!E,"aria-label":"string"==typeof R?R:void 0})))}));f.defaultProps={type:"text",block:!1};export{f as Input};
|
package/dist/input/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Input}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Input}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"react-merge-refs";import"classnames";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as e}from"../../tslib.es6-e8c381d5.js";import r,{useRef as o,useCallback as n}from"react";import t from"classnames";import{Input as s}from"../../input/component.js";import l from"react-merge-refs";import"../../button/component.js";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../form-control/component.js";var a="index-module_arrow__qrJxu",i="index-module_error__z8Onx",c=function(c){var m,p=c.label,d=c.placeholder,u=c.Arrow,f=c.Input,h=void 0===f?s:f,v=c.value,b=c.error,g=c.success,j=c.hint,x=c.disabled,_=c.readOnly,k=c.onInput,w=c.inputProps,A=void 0===w?{}:w,C=c.innerProps,F=o(null),E=C.onClick,O=C.onFocus,y=x||_,I=n((function(e){E&&E(e),F.current&&F.current.focus()}),[E]);return r.createElement(h,e({},A,C,{wrapperRef:l([C.ref,A.wrapperRef]),ref:l([F,A.ref]),disabled:x,readOnly:_,block:!0,label:p,placeholder:d,error:b,success:g,hint:j,onChange:k,onClick:y?void 0:I,onFocus:y?void 0:O,autoComplete:"off",value:v,rightAddons:(u||A.rightAddons)&&r.createElement(r.Fragment,null,A.rightAddons,u&&r.createElement("span",{className:t(a,(m={},m[i]=b,m))},u))}))};export{c as AutocompleteField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as o,a as t}from"../tslib.es6-e8c381d5.js";import e,{forwardRef as r}from"react";import"../select/component.js";import"classnames";import{BaseSelect as s}from"../select/components/base-select/component.js";import"../form-control/component.js";import{Optgroup as p}from"../select/components/optgroup/component.js";import{Option as n}from"../select/components/option/component.js";import{OptionsList as i}from"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"../intersection-observer-618833f4.js";import{AutocompleteField as m}from"./autocomplete-field/index.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../hooks/useFocus/index.js";import"../select/utils.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../ClockCircleM-8d45840a.js";import"../button/component.js";import"../loader/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../input/component.js";var c=r((function(r,c){var l=r.OptionsList,a=void 0===l?i:l,u=r.Optgroup,j=void 0===u?p:u,d=r.Option,f=void 0===d?n:d,v=r.Input,O=r.inputProps,g=void 0===O?{}:O,k=r.onInput,I=r.value,x=r.success,b=r.readOnly,C=r.closeOnSelect,h=void 0!==C&&C,P=r.options,S=o(r,["OptionsList","Optgroup","Option","Input","inputProps","onInput","value","success","readOnly","closeOnSelect","options"]);return e.createElement(s,t({ref:c,autocomplete:!0,options:P,closeOnSelect:h,Option:f,Field:m,fieldProps:{Input:v,onInput:k,value:I,inputProps:g,readOnly:b,success:x},Optgroup:j,OptionsList:a},S))}));export{c as InputAutocomplete};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InputAutocomplete}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{InputAutocomplete}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"../select/component.js";import"../select/components/arrow/component.js";import"classnames";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"../ClockCircleM-8d45840a.js";import"../button/component.js";import"../loader/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-618833f4.js";import"./autocomplete-field/index.js";import"../input/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{S as l}from"../SearchM-
|
|
1
|
+
import e from"react";import{S as l}from"../SearchM-50fd8177.js";import t from"classnames";var n={input:"index-module_input__Sx0kB",block:"index-module_block__vmjqb",s:"index-module_s__5THxm",m:"index-module_m__Xkulo",leftAddons:"index-module_leftAddons__tJy0W"},o=function(o){var a,d=o.value,m=o.onChange,r=o.placeholder,c=o.leftAddons,i=o.block,s=o.size,u=void 0===s?"m":s;return e.createElement("div",{className:t(n.input,n[u],(a={},a[n.block]=i,a))},e.createElement("span",{className:n.leftAddons},c||e.createElement(l,null)),e.createElement("input",{value:d,onChange:function(e){m(e.target.value)},placeholder:r,type:"text"}))};export{o as InputGhost};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InputGhost}from"./component.js";import"react";import"../SearchM-
|
|
1
|
+
export{InputGhost}from"./component.js";import"react";import"../SearchM-50fd8177.js";import"classnames";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./_commonjsHelpers-ff1e5e50.js";var e="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,r=e||o||Function("return this")(),n=r.Symbol,c=Object.prototype,a=c.hasOwnProperty,l=c.toString,i=n?n.toStringTag:void 0;var f=function(t){var e=a.call(t,i),o=t[i];try{t[i]=void 0;var r=!0}catch(t){}var n=l.call(t);return r&&(e?t[i]=o:delete t[i]),n},b=Object.prototype.toString;var j=function(t){return b.call(t)},u="[object Null]",s="[object Undefined]",v=n?n.toStringTag:void 0;var p=function(t){return null==t?void 0===t?s:u:v&&v in Object(t)?f(t):j(t)};var y=function(t){return null!=t&&"object"==typeof t},O="[object Symbol]";var d=function(t){return"symbol"==typeof t||y(t)&&p(t)==O};export{n as _,r as a,d as i};
|
package/dist/link/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../tslib.es6-e8c381d5.js";import o,{forwardRef as s,useRef as n}from"react";import a from"react-merge-refs";import t from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var r={component:"index-module_component__hqvbj",text:"index-module_text__zFBAJ",withAddons:"index-module_withAddons__R-v34",focused:"index-module_focused__mZChf",primary:"index-module_primary__7QnHL",secondary:"index-module_secondary__CXgR1",default:"index-module_default__axx5g",pseudo:"index-module_pseudo__eQCgC",addons:"index-module_addons__rF1Ob",m:"index-module_m__k1NeY",s:"index-module_s__0pCnE"},l=s((function(s,l){var i,_=s.view,c=void 0===_?"default":_,u=s.pseudo,p=void 0!==u&&u,x=s.leftAddons,f=s.rightAddons,h=s.className,v=s.dataTestId,g=s.children,A=s.size,E=void 0===A?"m":A,N=e(s,["view","pseudo","leftAddons","rightAddons","className","dataTestId","children","size"]),b=n(null),w=m(b,"keyboard")[0],y={className:t(r.component,r[c],(i={},i[r.pseudo]=p,i[r.focused]=w,i[r.withAddons]=x||f,i),h),"data-test-id":v,rel:"_blank"===N.target?"noreferrer noopener":void 0};return o.createElement("a",d({},y,N,{ref:a([b,l])}),x||f?o.createElement(o.Fragment,null,x&&o.createElement("span",{className:r.addons},x),g&&o.createElement("span",null,o.createElement("span",{className:t(r.text,r[E])},g)),f&&o.createElement("span",{className:r.addons},f)):o.createElement("span",{className:t(r.text,r[E])},g))}));export{l as Link};
|
package/dist/link/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Link}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Link}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../tslib.es6-e8c381d5.js";import"../typography/title/component.js";var n={component:"index-module_component__1zepl",accent:"index-module_accent__37BTV",attention:"index-module_attention__zzR-C",negative:"index-module_negative__SXrwC"},i=function(i){var m=i.className,r=i.dataTestId,a=i.view,p=void 0===a?"accent":a,c=i.text;return e.createElement("div",{className:t(n.component,m,n[p]),"data-test-id":r},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium"},c))};export{i as ListAllert};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../tslib.es6-e8c381d5.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as r}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as r}from"../tslib.es6-e8c381d5.js";import t,{useRef as n,useState as o,useCallback as a,useEffect as i}from"react";import u from"react-merge-refs";import l from"classnames";import{c as s,u as f,a as c}from"../_commonjsHelpers-ff1e5e50.js";import{Input as d}from"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";var p=s((function(e,r){e.exports=function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r,t){function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(3);Object.defineProperty(r,"conformToMask",{enumerable:!0,get:function(){return n(o).default}});var a=t(2);Object.defineProperty(r,"adjustCaretPosition",{enumerable:!0,get:function(){return n(a).default}});var i=t(5);Object.defineProperty(r,"createTextMaskInputElement",{enumerable:!0,get:function(){return n(i).default}})},function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.placeholderChar="_",r.strFunction="function"},function(e,r){function t(e){var r=e.previousConformedValue,t=void 0===r?o:r,a=e.previousPlaceholder,i=void 0===a?o:a,u=e.currentCaretPosition,l=void 0===u?0:u,s=e.conformedValue,f=e.rawValue,c=e.placeholderChar,d=e.placeholder,p=e.indexesOfPipedChars,v=void 0===p?n:p,h=e.caretTrapIndexes,m=void 0===h?n:h;if(0===l||!f.length)return 0;var g=f.length,y=t.length,C=d.length,b=s.length,k=g-y,P=k>0;if(k>1&&!P&&0!==y)return l;var x=0,T=void 0,O=void 0;if(!P||t!==s&&s!==d){var j=s.toLowerCase(),w=f.toLowerCase().substr(0,l).split(o).filter((function(e){return-1!==j.indexOf(e)}));O=w[w.length-1];var M=i.substr(0,w.length).split(o).filter((function(e){return e!==c})).length,_=d.substr(0,w.length).split(o).filter((function(e){return e!==c})).length,S=_!==M,V=void 0!==i[w.length-1]&&void 0!==d[w.length-2]&&i[w.length-1]!==c&&i[w.length-1]!==d[w.length-1]&&i[w.length-1]===d[w.length-2];!P&&(S||V)&&M>0&&d.indexOf(O)>-1&&void 0!==f[l]&&(T=!0,O=f[l]);for(var N=v.map((function(e){return j[e]})),A=N.filter((function(e){return e===O})).length,E=w.filter((function(e){return e===O})).length,F=d.substr(0,d.indexOf(c)).split(o).filter((function(e,r){return e===O&&f[r]!==e})).length,I=F+E+A+(T?1:0),R=0,J=0;J<b&&(x=J+1,j[J]===O&&R++,!(R>=I));J++);}else x=l-k;if(P){for(var L=x,W=x;W<=C;W++)if(d[W]===c&&(L=W),d[W]===c||-1!==m.indexOf(W)||W===C)return L}else if(T){for(var q=x-1;q>=0;q--)if(s[q]===O||-1!==m.indexOf(q)||0===q)return q}else for(var B=x;B>=0;B--)if(d[B-1]===c||-1!==m.indexOf(B)||0===B)return B}Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;var n=[],o=""},function(e,r,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,a.isArray)(r)){if((void 0===r?"undefined":o(r))!==i.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");r=r(e,t),r=(0,a.processCaretTraps)(r).maskWithoutCaretTraps}var n=t.guide,s=void 0===n||n,f=t.previousConformedValue,c=void 0===f?l:f,d=t.placeholderChar,p=void 0===d?i.placeholderChar:d,v=t.placeholder,h=void 0===v?(0,a.convertMaskToPlaceholder)(r,p):v,m=t.currentCaretPosition,g=t.keepCharPositions,y=!1===s&&void 0!==c,C=e.length,b=c.length,k=h.length,P=r.length,x=C-b,T=x>0,O=m+(T?-x:0),j=O+Math.abs(x);if(!0===g&&!T){for(var w=l,M=O;M<j;M++)h[M]===p&&(w+=p);e=e.slice(0,O)+w+e.slice(O,C)}for(var _=e.split(l).map((function(e,r){return{char:e,isNew:r>=O&&r<j}})),S=C-1;S>=0;S--){var V=_[S].char;V!==p&&V===h[S>=O&&b===P?S-x:S]&&_.splice(S,1)}var N=l,A=!1;e:for(var E=0;E<k;E++){var F=h[E];if(F===p){if(_.length>0)for(;_.length>0;){var I=_.shift(),R=I.char,J=I.isNew;if(R===p&&!0!==y){N+=p;continue e}if(r[E].test(R)){if(!0===g&&!1!==J&&c!==l&&!1!==s&&T){for(var L=_.length,W=null,q=0;q<L;q++){var B=_[q];if(B.char!==p&&!1===B.isNew)break;if(B.char===p){W=q;break}}null!==W?(N+=R,_.splice(W,1)):E--}else N+=R;continue e}A=!0}!1===y&&(N+=h.substr(E,k));break}N+=F}if(y&&!1===T){for(var D=null,H=0;H<N.length;H++)h[H]===p&&(D=H);N=null!==D?N.substr(0,D+1):l}return{conformedValue:N,meta:{someCharsRejected:A}}}Object.defineProperty(r,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=n;var a=t(4),i=t(1),u=[],l=""},function(e,r,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.placeholderChar;if(!o(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(r))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(r)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?r:e})).join("")}function o(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function a(e){return"string"==typeof e||e instanceof String}function i(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function u(e){return null==e}function l(e){for(var r=[],t=void 0;-1!==(t=e.indexOf(c));)r.push(t),e.splice(t,1);return{maskWithoutCaretTraps:e,indexes:r}}Object.defineProperty(r,"__esModule",{value:!0}),r.convertMaskToPlaceholder=n,r.isArray=o,r.isString=a,r.isNumber=i,r.isNil=u,r.processCaretTraps=l;var s=t(1),f=[],c="[]"},function(e,r,t){function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var r={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:r,update:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=n.inputElement,v=n.mask,m=n.guide,g=n.pipe,y=n.placeholderChar,C=void 0===y?d.placeholderChar:y,b=n.keepCharPositions,k=void 0!==b&&b,P=n.showMask,x=void 0!==P&&P;if(void 0===t&&(t=o.value),t!==r.previousConformedValue){(void 0===v?"undefined":l(v))===h&&void 0!==v.pipe&&void 0!==v.mask&&(g=v.pipe,v=v.mask);var T=void 0,O=void 0;if(v instanceof Array&&(T=(0,c.convertMaskToPlaceholder)(v,C)),!1!==v){var j=i(t),w=o.selectionEnd,M=r.previousConformedValue,_=r.previousPlaceholder,S=void 0;if((void 0===v?"undefined":l(v))===d.strFunction){if(!1===(O=v(j,{currentCaretPosition:w,previousConformedValue:M,placeholderChar:C})))return;var V=(0,c.processCaretTraps)(O);O=V.maskWithoutCaretTraps,S=V.indexes,T=(0,c.convertMaskToPlaceholder)(O,C)}else O=v;var N={previousConformedValue:M,guide:m,placeholderChar:C,pipe:g,placeholder:T,currentCaretPosition:w,keepCharPositions:k},A=(0,f.default)(j,O,N).conformedValue,E=(void 0===g?"undefined":l(g))===d.strFunction,F={};E&&(!1===(F=g(A,u({rawValue:j},N)))?F={value:M,rejected:!0}:(0,c.isString)(F)&&(F={value:F}));var I=E?F.value:A,R=(0,s.default)({previousConformedValue:M,previousPlaceholder:_,conformedValue:I,placeholder:T,rawValue:j,currentCaretPosition:w,placeholderChar:C,indexesOfPipedChars:F.indexesOfPipedChars,caretTrapIndexes:S}),J=I===T&&0===R?x?T:p:I;r.previousConformedValue=J,r.previousPlaceholder=T,o.value!==J&&(o.value=J,a(o,R))}}}}}function a(e,r){document.activeElement===e&&(m?g((function(){return e.setSelectionRange(r,r,v)}),0):e.setSelectionRange(r,r,v))}function i(e){if((0,c.isString)(e))return e;if((0,c.isNumber)(e))return String(e);if(null==e)return p;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(r,"__esModule",{value:!0});var u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=o;var s=n(t(2)),f=n(t(3)),c=t(4),d=t(1),p="",v="none",h="object",m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])}));f(p);var v=p.createTextMaskInputElement;p.textMaskCore;var h="index-module_textHidden__dIPJL",m=" ",g=t.forwardRef((function(s,f){var c,p=s.mask,m=s.value,g=s.defaultValue,y=s.className,C=s.onBeforeDisplay,b=s.onChange,k=s.onClear,P=e(s,["mask","value","defaultValue","className","onBeforeDisplay","onChange","onClear"]),x=n(null),T=n(null),O=o(m||g||""),j=O[0],w=O[1],M=o(!0),_=M[0],S=M[1],V=a((function(e){void 0===e&&(e=""),T.current&&x.current&&(T.current.update(e),w(x.current.value))}),[]),N=a((function(e){V(e.target.value),b&&b(e,{value:e.target.value})}),[b,V]),A=a((function(e){V(""),k&&k(e)}),[k,V]);return i((function(){x.current&&(T.current=v({mask:p,inputElement:x.current,pipe:C,guide:!1,keepCharPositions:!1,showMask:!1,placeholderChar:" ",rawValue:"",currentCaretPosition:0,previousConformedValue:""}))}),[C,p]),i((function(){V(m||g)}),[m,V,g]),i((function(){S(!1)}),[]),t.createElement(d,r({},P,{className:l(y,(c={},c[h]=_,c)),value:j,onChange:N,onClear:A,ref:u([f,x])}))}));export{g as MaskedInput,m as PLACEHOLDER_CHAR};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MaskedInput,PLACEHOLDER_CHAR}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{MaskedInput,PLACEHOLDER_CHAR}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"react-merge-refs";import"classnames";import"../_commonjsHelpers-ff1e5e50.js";import"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";
|
package/dist/menu/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as n}from"./components/content-header/index.js";import{MenuAvatar as r}from"./components/menu-avatar/index.js";import{MenuBackButton as m}from"./components/menu-back-button/index.js";import{MenuButtonsList as i}from"./components/menu-buttons-list/index.js";import{UserButton as s}from"./components/user-button/index.js";import"../MoverS-
|
|
1
|
+
import e from"react";import t from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as n}from"./components/content-header/index.js";import{MenuAvatar as r}from"./components/menu-avatar/index.js";import{MenuBackButton as m}from"./components/menu-back-button/index.js";import{MenuButtonsList as i}from"./components/menu-buttons-list/index.js";import{UserButton as s}from"./components/user-button/index.js";import"../MoverS-27bb6134.js";import"../icon-button/component.js";import"../tslib.es6-e8c381d5.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-9a1618b8.js";import"../PhotoS-7a7ca986.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../NextS-00c07aa8.js";import"../divider/component.js";import"./components/menu-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"../ClockCircleM-8d45840a.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-618833f4.js";var p="index-module_layout_wrapper__amEhE",c="index-module_left_menu__N5dgM",a="index-module_menu_static__FNEjo",l="index-module_hidden_menu_opened__X0hFE",u="index-module_content_header__WlsJj",j="index-module_content_wrapper__6MsO6",d="index-module_content_offseted__wo5Xl",_="index-module_calendar_view__PeL0k",f=function(f){var h,x,g=f.pathname,k=f.children,v=f.routes,b=f.showBackButton,E=f.userName,w=f.userImage,y=f.userDialogOptions,C=f.profileTitle,N=f.profileImage,M=f.Link,S=f.profileOnClick,L=f.navigate,T=f.t,F=o(),I=F.staticMenu,O=F.setStaticMenu,P=F.showMenu,B=F.ref,D=I||P,W="/"+g.split("/").slice(-1)[0],X=t(c,((h={})[a]=I,h[l]=P,h)),z=t(j,((x={})[d]=I,x[_]=g.startsWith("/app/calendar"),x));return e.createElement("div",{className:t(p)},e.createElement("div",{ref:B,className:X},e.createElement(r,{title:C,showTitle:D,image:N,onClick:S}),b&&e.createElement(m,{showTitle:D,onClick:function(){return L("/app/calendar")}}),e.createElement(i,{routes:v,showLabels:D,currentPath:W,Link:M,t:T})),e.createElement("div",{className:z},e.createElement("div",{className:u},e.createElement(n,{onClick:function(){return O(!I)},title:T("menu."+W)}),e.createElement(s,{photo:w,fullName:E,options:y})),k))};export{f as Menu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{M as t}from"../../../MoverS-
|
|
1
|
+
import o from"react";import{M as t}from"../../../MoverS-27bb6134.js";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"../../../tslib.es6-e8c381d5.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-4cf3dce4.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var m="index-module_open_button__a4IKw",i=function(i){var n=i.onClick,p=i.title;return o.createElement("div",null,o.createElement(e,{size:"m",icon:t,onClick:n,className:m}),o.createElement(r.Title,{tag:"div",view:"xsmall",weight:"regular"},p))};export{i as ContentHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"../../MoverS-
|
|
1
|
+
export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"../../MoverS-27bb6134.js";import"../../icon-button/component.js";import"../../tslib.es6-e8c381d5.js";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-4cf3dce4.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-9a1618b8.js";import"../../PhotoS-7a7ca986.js";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"../../NextS-00c07aa8.js";import"../../divider/component.js";import"./menu-button/index.js";import"../../select/component.js";import"../../select/components/arrow/component.js";import"../../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../../select/utils.js";import"../../select/components/native-select/component.js";import"../../select/components/field/component.js";import"../../form-control/component.js";import"../../select/components/optgroup/component.js";import"../../select/components/option/component.js";import"../../select/components/checkmark/component.js";import"../../select/components/options-list/component.js";import"../../ClockCircleM-8d45840a.js";import"react-virtual";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"../../CheckmarkCircleM-4df7d377.js";import"../../CloseS-e501137c.js";import"../../toast-notifier/use-timer.js";import"../../intersection-observer-618833f4.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Avatar as o}from"../../../avatar/component.js";import{Typography as m}from"../../../typography/component.js";import"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import t from"classnames";import{Avatar as o}from"../../../avatar/component.js";import{Typography as m}from"../../../typography/component.js";import"../../../button/component.js";import"../../../tslib.es6-e8c381d5.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../use-image-render-component-9a1618b8.js";import"../../../PhotoS-7a7ca986.js";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../typography/text/component.js";import"../../../colors.module-4cf3dce4.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var r="index-module_menu_header__CELkb",i="index-module_text__RyE4x",n="index-module_hidden_text__94pZC",p=function(p){var s,a=p.showTitle,c=p.title,l=p.image,d=p.onClick;return e.createElement("div",{className:r},e.createElement(o,{onClick:function(){d&&d()},src:l,text:c}),e.createElement(m.Text,{className:t(i,(s={},s[n]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{p as MenuAvatar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{N as t}from"../../../NextS-
|
|
1
|
+
import e from"react";import{N as t}from"../../../NextS-00c07aa8.js";import{Divider as a}from"../../../divider/component.js";import"classnames";var n="index-module_back_btn_wrapper__hkZkN",r="index-module_back_btn__Ak25Q",m=function(m){var o=m.showTitle,c=m.onClick;return e.createElement("div",{className:n},e.createElement("button",{onClick:c,type:"button",className:r},e.createElement("span",null,e.createElement(t,null)),o&&"Go back"),e.createElement(a,{size:"m"}))};export{m as MenuBackButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-4cf3dce4.js";import"../../../typography/title/index.js";import"../../../tslib.es6-e8c381d5.js";import"../../../typography/title/component.js";var m="index-module_menu_button__I-v-u",i="index-module_text__L8D-Q",r="index-module_active__1v-Nx",d="index-module_leftAddons__eaiZB",n="index-module_rightAddons__RCmVm",s="index-module_isHidden__MDpf0",a=function(a){var l,c=a.href,p=a.children,_=a.active,u=a.leftAddons,x=a.rightAddons,h=a.showLabels,f=a.Link;return e.createElement(f,{className:t(m,(l={},l[r]=_,l[s]=!h,l)),to:c},u&&e.createElement("div",{className:d},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:i},p),x&&e.createElement("div",{className:n},x))};export{a as MenuButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
1
|
+
import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-4cf3dce4.js";import"../../../typography/title/index.js";import"../../../tslib.es6-e8c381d5.js";import"../../../typography/title/component.js";var o="index-module_component__HYQZU",r=function(r){var n=r.routes,p=r.showLabels,i=r.currentPath,m=r.t,s=r.Link;return t.createElement("div",{className:o},!!n.length&&n.map((function(o){var r="/"+o.path.split("/").slice(-1)[0];return t.createElement(e,{showLabels:p,leftAddons:o.icon,active:r===i,key:o.path,href:o.path,Link:s},m("menu."+r))})))};export{r as MenuButtonsList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../../../tslib.es6-
|
|
1
|
+
import{a as o}from"../../../tslib.es6-e8c381d5.js";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as r}from"../../../button/component.js";import{Select as s}from"../../../select/component.js";import"classnames";import"../../../select/components/base-select/component.js";import"../../../form-control/component.js";import"../../../select/components/options-list/component.js";import"react-virtual";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import"../../../intersection-observer-618833f4.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-4cf3dce4.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-9a1618b8.js";import"../../../PhotoS-7a7ca986.js";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../select/components/arrow/component.js";import"../../../select/components/field/component.js";import"../../../select/utils.js";import"../../../select/components/optgroup/component.js";import"../../../select/components/option/component.js";import"../../../select/components/checkmark/component.js";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";import"../../../ClockCircleM-8d45840a.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../toast-plate/component.js";import"../../../CheckmarkCircleM-4df7d377.js";import"../../../CloseS-e501137c.js";import"../../../toast-notifier/use-timer.js";var p="index-module_option_wrap__H32lk",i="index-module_field_avatar__qjMv6",n=t.memo((function(n){var m=n.options,c=n.fullName,a=n.photo;return t.createElement("div",{className:i},t.createElement(s,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:p,Field:function(s){var p=s.innerProps;return t.createElement(r,o({},p,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{n as UserButton};
|
package/dist/menu/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"../MoverS-
|
|
1
|
+
export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"../MoverS-27bb6134.js";import"../icon-button/component.js";import"../tslib.es6-e8c381d5.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-9a1618b8.js";import"../PhotoS-7a7ca986.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"../NextS-00c07aa8.js";import"../divider/component.js";import"./components/menu-buttons-list/index.js";import"./components/menu-button/index.js";import"./components/user-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"../ClockCircleM-8d45840a.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-618833f4.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as t}from"react";import{Button as i}from"../button/component.js";import{Flex as r}from"../flex/component.js";import{Image as o}from"../image/component.js";import"../image/types.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as s}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import e,{useState as t}from"react";import{Button as i}from"../button/component.js";import{Flex as r}from"../flex/component.js";import{Image as o}from"../image/component.js";import"../image/types.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as s}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-9a1618b8.js";import"../PhotoS-7a7ca986.js";import"../spinner/component.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../image-gallery/components/navigation-bar/index.js";import"../image-gallery/context.js";import"../image-gallery/utils/utils.js";import"../image-gallery/utils/constants.js";import"../image-gallery/components/image-preview/index.js";import"../image-gallery/components/header/index.js";import"../image-gallery/components/header-info-block/index.js";import"../image-gallery/utils/split-filename.js";import"../image-gallery/components/image-viewer/index.js";import"element-closest";import"swiper";import"swiper/react";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../slide-0efacc2b.js";import"swiper/swiper.min.css";var n="index-module_topRow__IFW6P",l="index-module_answer__tTLUV",p="index-module_leftSide__vZvXK",c="index-module_title__9s63W",d="index-module_rightAddons__fhvSp",g="index-module_text__U4-9Q",j=function(j){var u=j.className,x=j.dataTestId,v=j.title,f=j.date,y=j.rightAddons,w=j.answer,h=j.text,_=j.image,E=j.photos,k=void 0===E?[]:E,N=j.withImage,b=void 0===N||N,C=t(!1),S=C[0],T=C[1],F=t(0),I=F[0],z=F[1];return e.createElement("div",{"data-test-id":x,className:u},e.createElement("div",{className:n},e.createElement("div",{className:p},b&&e.createElement(o,{src:_,size:"s",text:v,view:"circle"}),e.createElement(a.Text,{className:c,view:"title",weight:"bold"},v),f&&e.createElement(a.Text,{view:"title",color:"secondary",weight:"regular"},f)),y&&e.createElement("div",{className:d},y)),e.createElement("div",{className:g},e.createElement(a.Text,{view:"primary-medium",color:"primary",weight:"medium"},h),!!w&&e.createElement(a.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},w),!!k.length&&e.createElement(e.Fragment,null,e.createElement(s,{padding:"8px 0"}),e.createElement(r,{justify:"start",gap:"md"},k.map((function(t,r){return e.createElement(i,{view:"ghost",onClick:function(){z(r),T(!0)}},e.createElement(o,{src:t,size:"xl",view:"default"}))}))),e.createElement(m,{initialSlide:I,onClose:function(){return T(!1)},open:S,images:k.map((function(e){return{src:e,previewSrc:e}}))}))))};export{j as Message};
|
package/dist/message/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Message}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{Message}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-9a1618b8.js";import"../PhotoS-7a7ca986.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image-gallery/component.js";import"../image-gallery/components/navigation-bar/index.js";import"../image-gallery/context.js";import"../image-gallery/utils/utils.js";import"../image-gallery/utils/constants.js";import"../image-gallery/components/image-preview/index.js";import"../image-gallery/components/header/index.js";import"../image-gallery/components/header-info-block/index.js";import"../image-gallery/utils/split-filename.js";import"../image-gallery/components/image-viewer/index.js";import"element-closest";import"swiper";import"swiper/react";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../slide-0efacc2b.js";import"swiper/swiper.min.css";import"../padding/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Modal as
|
|
1
|
+
import o from"react";import{Modal as r}from"./modal.js";import"../../../tslib.es6-e8c381d5.js";import"../../../CloseM-f800d8c8.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var e=function(e){var t=e.modals,m=e.dirtyModals,s=e.closeModal,a=e.currentModalId;return o.createElement(o.Fragment,null,t.map((function(e,t){return o.createElement(r,{key:e.id,t:e.props.t,index:t,modal:e,dirtyModals:m,closeModal:s,currentModalId:a})})))};export{e as Modals};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ModalObject } from "../../types";
|
|
2
|
+
import { ModalObject, TFunction } from "../../types";
|
|
3
3
|
import { ModalsProps } from "./index";
|
|
4
4
|
type ModalProps = {
|
|
5
5
|
modal: ModalObject;
|
|
6
6
|
index: number;
|
|
7
|
+
t: TFunction;
|
|
7
8
|
} & Pick<ModalsProps, 'dirtyModals' | 'closeModal' | 'currentModalId'>;
|
|
8
|
-
declare const Modal: ({ modal, index, dirtyModals, closeModal, currentModalId, }: ModalProps) => JSX.Element;
|
|
9
|
+
declare const Modal: ({ modal, t, index, dirtyModals, closeModal, currentModalId, }: ModalProps) => JSX.Element;
|
|
9
10
|
export { Modal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-e8c381d5.js";import n,{useState as o,useLayoutEffect as t,useCallback as i,useEffect as r}from"react";import{C as s}from"../../../CloseM-f800d8c8.js";import c from"classnames";import{Button as l}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var d={container:"index-module_container__WE0Kf",inner:"index-module_inner__Zsdb4",button:"index-module_button__js2WJ",content:"index-module_content__p1kcf",center:"index-module_center__nguyp",right:"index-module_right__e065r",bg:"index-module_bg__8ZfP-"},a={s:488,m:888,full:"96%"},m=function(m){var u=m.modal,p=m.t,f=m.index,_=m.dirtyModals,b=m.closeModal,w=m.currentModalId,v="right"===u.props.position?-a[u.props.size]-102:void 0,g=o(v),x=g[0],k=g[1];t((function(){"right"===u.props.position&&setTimeout((function(){return k(0)}),0)}),[]);var E=i((function(e){return!_[e]||confirm(p("common:exitConfirm"))}),[_]),h=i((function(e){var n=u.id;E(e||n)&&(k(v),setTimeout((function(){u.props.closeCallback&&u.props.closeCallback(),b(e||n)}),"right"===u.props.position?250:0))}),[b,E,u,v]);return r((function(){var e=function(e){"27"!==e.key&&"Escape"!==e.key||h(w)};return u.id===w&&(null===window||void 0===window||window.addEventListener("keydown",e)),function(){null===window||void 0===window||window.removeEventListener("keydown",e)}}),[h,w,u.id]),n.createElement(n.Fragment,null,n.createElement("div",{className:d.container,style:{zIndex:99998+f}},n.createElement("div",{className:c(d[u.props.position],d.content),style:{zIndex:99999+f,width:a[u.props.size],right:x}},n.createElement("div",{className:d.inner},n.createElement(u.modal,e({},u.props,{close:function(){return h()}}))),n.createElement(l,{className:d.button,size:"s",view:"right"===u.props.position?"black":"ghost",leftAddons:n.createElement(s,null),onClick:function(){return h()}})),n.createElement("button",{className:d.bg,"aria-label":"close_backdrop",type:"button",onClick:function(){return h()}})))};export{m as Modal};
|
package/dist/modal/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{useCallback as t}from"react";import{Portal as e}from"../portal/component.js";import{Modals as r}from"./components/modals/index.js";import{useModal as
|
|
1
|
+
import o,{useCallback as t}from"react";import{Portal as e}from"../portal/component.js";import{Modals as r}from"./components/modals/index.js";import{useModal as d}from"./hooks/use-modal.js";import"react-dom";import"../portal/utils.js";import"./components/modals/modal.js";import"../tslib.es6-e8c381d5.js";import"../CloseM-f800d8c8.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"uuid";import"./utils/delete-property-by-id.js";var a=o.createContext({modals:[],currentModalId:"",openModal:function(){return function(){}},setModalDirty:function(){}}),l=function(l){var n=l.children,m=l.t,s=d(m),i=s.modals,c=s.openModal,p=s.setModalDirty,u=s.currentModalId,M=s.dirtyModals,y=s.closeModal;if(!document.querySelectorAll('[data-type="modal-root"]')[0]){var f=document.createElement("div");f.setAttribute("data-type","modal-root"),document.body.appendChild(f)}var j=t((function(){return document.querySelectorAll('[data-type="modal-root"]')[0]}),[]);return o.createElement(a.Provider,{value:{modals:i,openModal:c,setModalDirty:p,currentModalId:u}},o.createElement(e,{getPortalContainer:j},o.createElement(r,{modals:i,dirtyModals:M,closeModal:y,openModal:c,setModalDirty:p,currentModalId:u})),n)};export{a as ModalContext,l as ModalProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t,a as o}from"../../tslib.es6-
|
|
1
|
+
import{b as t,a as o}from"../../tslib.es6-e8c381d5.js";import n,{useEffect as r}from"react";import{v4 as i}from"uuid";import{deletePropertyById as e}from"../utils/delete-property-by-id.js";var u=function(u){var d=n.useState([]),s=d[0],a=d[1],c=n.useState(""),l=c[0],f=c[1],p=n.useState({}),m=p[0],v=p[1];r((function(){var o,n=null===(o=t([],s).pop())||void 0===o?void 0:o.id;f(n||""),document.body.style.overflow=s.length?"hidden":"unset"}),[s]);return{openModal:function(n,r,e){void 0===r&&(r="s"),void 0===e&&(e="right");return function(d,s){!function(o){a((function(n){return t(t([],n),[o])}))}(function(t,d){return{id:i(),modal:n,props:o({size:r,position:e,closeCallback:d,t:u},t)}}(d,s))}},modals:s,setModalDirty:function(t,n){v((function(r){var i;return o(o({},r),((i={})[t]=n,i))}))},currentModalId:l,dirtyModals:m,closeModal:function(t){v((function(o){return e(o,t)})),a((function(o){return o.filter((function(o){return o.id!==t}))}))}}};export{u as useModal};
|
package/dist/modal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ModalContext,ModalProvider}from"./context.js";import"react";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./components/modals/index.js";import"./components/modals/modal.js";import"../tslib.es6-
|
|
1
|
+
export{ModalContext,ModalProvider}from"./context.js";import"react";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./components/modals/index.js";import"./components/modals/modal.js";import"../tslib.es6-e8c381d5.js";import"../CloseM-f800d8c8.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./hooks/use-modal.js";import"uuid";import"./utils/delete-property-by-id.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as e}from"../../tslib.es6-e8c381d5.js";var r=function(r,t){var a=e({},r);return delete a[t],a};export{r as deletePropertyById};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-e8c381d5.js";import*as n from"react";import o,{forwardRef as r,useRef as i,useState as a,useCallback as u,useEffect as c}from"react";import s from"react-merge-refs";import l from"classnames";import{Portal as f}from"../portal/component.js";import{ToastPlate as v}from"../toast-plate/component.js";import{useClickOutside as m}from"./utils/index.js";import"react-dom";import"../portal/utils.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(this,arguments)}var d="Left",h="Right",T="Up",w="Down",k={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},M={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},g="mousemove",C="mouseup",E="touchend",y="touchmove",S="touchstart";function D(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function j(e,t){var n=function(t){t&&"touches"in t&&t.touches.length>1||e((function(e,n){n.trackMouse&&(document.addEventListener(g,o),document.addEventListener(C,a));var r="touches"in t?t.touches[0]:t,i=D([r.clientX,r.clientY],n.rotationAngle);return p({},e,M,{initial:[].concat(i),xy:i,start:t.timeStamp||0})}))},o=function(t){e((function(e,n){if("touches"in t&&t.touches.length>1)return e;var o="touches"in t?t.touches[0]:t,r=D([o.clientX,o.clientY],n.rotationAngle),i=r[0],a=r[1],u=i-e.xy[0],c=a-e.xy[1],s=Math.abs(u),l=Math.abs(c),f=(t.timeStamp||0)-e.start,v=Math.sqrt(s*s+l*l)/(f||1),m=[u/(f||1),c/(f||1)],M=function(e,t,n,o){return e>t?n>0?h:d:o>0?w:T}(s,l,u,c),g="number"==typeof n.delta?n.delta:n.delta[M.toLowerCase()]||k.delta;if(s<g&&l<g&&!e.swiping)return e;var C={absX:s,absY:l,deltaX:u,deltaY:c,dir:M,event:t,first:e.first,initial:e.initial,velocity:v,vxvy:m};C.first&&n.onSwipeStart&&n.onSwipeStart(C),n.onSwiping&&n.onSwiping(C);var E=!1;return(n.onSwiping||n.onSwiped||"onSwiped"+M in n)&&(E=!0),E&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),p({},e,{first:!1,eventData:C,swiping:!0})}))},r=function(t){e((function(e,n){var o;if(e.swiping&&e.eventData){o=p({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(o);var r=n["onSwiped"+o.dir];r&&r(o)}else n.onTap&&n.onTap({event:t});return p({},e,M,{eventData:o})}))},i=function(){document.removeEventListener(g,o),document.removeEventListener(C,a)},a=function(e){i(),r(e)},u=function(e,t){var i=function(){};if(e&&e.addEventListener){var a=[[S,n],[y,o],[E,r]];a.forEach((function(n){var o=n[0],r=n[1];return e.addEventListener(o,r,{passive:t})})),i=function(){return a.forEach((function(t){var n=t[0],o=t[1];return e.removeEventListener(n,o)}))}}return i},c={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var o={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),o.cleanUpTouch=void 0),n.trackTouch&&t&&(o.cleanUpTouch=u(t,!n.preventDefaultTouchmoveEvent)),p({},e,{el:t},o)}))}};return t.trackMouse&&(c.onMouseDown=n),[c,u]}function b(e){var t=e.trackMouse,o=n.useRef(p({},M)),r=n.useRef(p({},k));r.current=p({},k,e,{delta:void 0===e.delta?k.delta:e.delta,rotationAngle:void 0===e.rotationAngle?k.rotationAngle:e.rotationAngle,trackTouch:void 0===e.trackTouch?k.trackTouch:e.trackTouch});var i=n.useMemo((function(){return j((function(e){return o.current=e(o.current,r.current)}),{trackMouse:t})}),[t]),a=i[0],u=i[1];return o.current=function(e,t,n){var o={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),o.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(o.cleanUpTouch=n(e.el,!t.preventDefaultTouchmoveEvent)),p({},e,o)}(o.current,r.current,u),a}var _="index-module_notificationComponent__khhkj",x="index-module_isVisible__snkQ9",L="index-module_isClosing__wPaVu",U="index-module_toastContent__gDwuN",A="."+_,N=r((function(n,r){var p,w=n.className,k=n.children,M=n.visible,g=n.offset,C=void 0===g?108:g,E=n.hasCloser,y=void 0===E||E,S=n.autoCloseDelay,D=void 0===S?5e3:S,j=n.onClose,N=n.onCloseTimeout,O=n.onMouseEnter,P=n.onMouseLeave,X=n.onClickOutside,Y=n.style,R=e(n,["className","children","visible","offset","hasCloser","autoCloseDelay","onClose","onCloseTimeout","onMouseEnter","onMouseLeave","onClickOutside","style"]),V=i(null),q=i(0),F=i(0),I=a(!1),Q=I[0],z=I[1],B=u((function(){q.current=window.setTimeout((function(){N&&N()}),D)}),[D,N]),G=u((function(){clearTimeout(q.current)}),[]);c((function(){return function(){clearTimeout(F.current)}}),[]),c((function(){return M&&B(),function(){G()}}),[B,G,M]);var H=u((function(e){G(),O&&O(e)}),[O,G]),J=u((function(e){G(),B(),P&&P(e)}),[P,B,G]),K=u((function(e){var t=!!e.target.closest(A);X&&M&&!t&&X(e)}),[X,M]);m(V,K);var W=b({onSwiped:function(e){var t=e.dir;j&&[d,h,T].includes(t)&&(z(!0),F.current=window.setTimeout((function(){z(!1),j()}),100))},delta:100,trackMouse:!0});return o.createElement(f,null,o.createElement("div",t({},W),o.createElement(v,t({className:l(_,(p={},p[x]=M,p[L]=Q,p),w),contentClassName:U,style:t({top:C},Y),onMouseEnter:H,onMouseLeave:J,ref:s([r,V]),role:M?"alert":void 0,hasCloser:y,onClose:j},R),k)))}));N.defaultProps={autoCloseDelay:5e3,offset:108};export{N as Notification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Notification}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Notification}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./utils/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as t,a as o}from"../tslib.es6-e8c381d5.js";import e from"react";import{Button as r}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Grid as n}from"../grid/component.js";import{Typography as i}from"../typography/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-c6b42a55.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var p=function(p){var s=p.children,c=p.buttons;return e.createElement(n.Row,null,e.createElement(n.Col,{width:7},e.createElement(m,{columns:1,gr:32},s)),e.createElement(n.Col,{width:4,offset:1},e.createElement(m,{columns:1,gr:16},c.map((function(m){var n=m.text,p=t(m,["text"]);return e.createElement(r,o({view:"ghost"},p),e.createElement(i.Title,{tag:"div",view:"xxsmall",color:"primary",weight:"regular"},n))})))))};export{p as PageWithControls};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PageWithControls}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{PageWithControls}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../grid/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-c6b42a55.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
|