@alphakits/ui 1.27.38 → 1.27.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/back-button/component.js +1 -1
- package/dist/back-button/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +1 -1
- 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-fcfa170c.js → capitalize-b51476c0.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-e5f80ca9.js → component-a0f8d4c4.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-c7c0bb93.js → index-00e35ae5.js} +1 -1
- package/dist/index-17837953.js +1 -0
- package/dist/{index-c34bdeba.js → index-300e4b0a.js} +1 -1
- package/dist/{index-11cbf2c0.js → index-32ddaa07.js} +1 -1
- package/dist/{index-a6c0e771.js → index-3d96d5d9.js} +1 -1
- package/dist/{index-f15bda1c.js → index-4fb5e31d.js} +1 -1
- package/dist/{index-886fe48a.js → index-5fe06b3e.js} +1 -1
- package/dist/{index-6cb23aa9.js → index-85176a0a.js} +1 -1
- package/dist/index-9c3e1cca.js +1 -0
- package/dist/index-b5af2c0a.js +1 -0
- package/dist/{index-05631003.js → index-c67829ae.js} +1 -1
- package/dist/index-e272d121.js +1 -0
- package/dist/{index-c94d9c55.js → index-fdacf967.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-0a0fd15a.js → isSymbol-64925213.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/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-44816ef9.js → parse-query-params-acdb7e55.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/options-list/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/theme-provider/default-themes.d.ts +1 -1
- package/dist/theme-provider/default-themes.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/{use-image-render-component-a26c6e03.js → use-image-render-component-d6c046b1.js} +1 -1
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-0834aa94.js +0 -1
- package/dist/index-50e90886.js +0 -1
- package/dist/index-92d8bfdb.js +0 -1
- package/dist/index-e5226de8.js +0 -1
- /package/dist/{ActionCopyM-2d960936.js → ActionCopyM-b640e6b6.js} +0 -0
- /package/dist/{CancelM-938a9d41.js → CancelM-179fc606.js} +0 -0
- /package/dist/{CheckmarkCircleM-3ded194f.js → CheckmarkCircleM-7952077b.js} +0 -0
- /package/dist/{ChevronBackM-59cde9c2.js → ChevronBackM-07957d5f.js} +0 -0
- /package/dist/{ChevronBackS-aa5c337b.js → ChevronBackS-a0fe11a6.js} +0 -0
- /package/dist/{ChevronDownS-1fae53bb.js → ChevronDownS-d856aca2.js} +0 -0
- /package/dist/{ChevronForwardM-73706f0a.js → ChevronForwardM-42d072a9.js} +0 -0
- /package/dist/{ChevronForwardS-40f3f4e9.js → ChevronForwardS-3b7abbb0.js} +0 -0
- /package/dist/{ClockCircleM-6a4298cd.js → ClockCircleM-f4c80946.js} +0 -0
- /package/dist/{CloseM-6e97ffda.js → CloseM-312c58e8.js} +0 -0
- /package/dist/{CloseS-60ab9198.js → CloseS-18b4630a.js} +0 -0
- /package/dist/{ControllerS-2e26c54c.js → ControllerS-e5f76738.js} +0 -0
- /package/dist/{EditS-afa2c456.js → EditS-c3017fc3.js} +0 -0
- /package/dist/{MinusM-30fb1b85.js → MinusM-bcac96d3.js} +0 -0
- /package/dist/{MoverS-13cf902a.js → MoverS-2a6010b0.js} +0 -0
- /package/dist/{NextS-87837351.js → NextS-52c4b834.js} +0 -0
- /package/dist/{PhotoS-31c33dee.js → PhotoS-47ae71fb.js} +0 -0
- /package/dist/{PlusS-47433dfe.js → PlusS-4ea0a677.js} +0 -0
- /package/dist/{SearchM-d19f3418.js → SearchM-8de143f0.js} +0 -0
- /package/dist/{TrashM-d7909c17.js → TrashM-69023b5b.js} +0 -0
- /package/dist/{YoutubeM-78ed204e.js → YoutubeM-94db7c98.js} +0 -0
- /package/dist/{_commonjsHelpers-f3b56e29.js → _commonjsHelpers-bc812022.js} +0 -0
- /package/dist/{colors.module-9479b34d.js → colors.module-9986e423.js} +0 -0
- /package/dist/{component-e5f80ca9.d.ts → component-a0f8d4c4.d.ts} +0 -0
- /package/dist/{component-1ba201ed.d.ts → component-a13ffe9e.d.ts} +0 -0
- /package/dist/{component-1ba201ed.js → component-a13ffe9e.js} +0 -0
- /package/dist/{contact-block-45af69f4.d.ts → contact-block-e7382325.d.ts} +0 -0
- /package/dist/{contact-block-45af69f4.js → contact-block-e7382325.js} +0 -0
- /package/dist/{gutters.module-2f40e187.js → gutters.module-c0652b5d.js} +0 -0
- /package/dist/{index-c7c0bb93.d.ts → index-00e35ae5.d.ts} +0 -0
- /package/dist/{index-23f26c42.js → index-2f88ed05.js} +0 -0
- /package/dist/{index-933bb8ff.js → index-e947eabe.js} +0 -0
- /package/dist/{intersection-observer-d1e20a8e.js → intersection-observer-8686904b.js} +0 -0
- /package/dist/{parse-query-params-44816ef9.d.ts → parse-query-params-acdb7e55.d.ts} +0 -0
- /package/dist/{slide-fe22eeb2.d.ts → slide-623ee539.d.ts} +0 -0
- /package/dist/{slide-fe22eeb2.js → slide-623ee539.js} +0 -0
- /package/dist/{step-bar-3528f98d.d.ts → step-bar-206f9091.d.ts} +0 -0
- /package/dist/{step-bar-3528f98d.js → step-bar-206f9091.js} +0 -0
- /package/dist/{tslib.es6-1f7096d9.js → tslib.es6-160c07ed.js} +0 -0
- /package/dist/{use-image-render-component-a26c6e03.d.ts → use-image-render-component-d6c046b1.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-52c4b834.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-160c07ed.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-9986e423.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-52c4b834.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-160c07ed.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-9986e423.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-b640e6b6.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-160c07ed.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-7952077b.js";import"../ClockCircleM-f4c80946.js";import"../CloseS-18b4630a.js";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-9986e423.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 p=s.label,c=s.value,a=s.view,l=void 0===a?"between":a,d=s.rightAddons,u=s.withCopyButton,y=s.color,_=void 0===y?"primary":y;return e.createElement("div",{className:o(n.item,n[l])},e.createElement(m.Text,{view:"caps",color:"secondary",weight:"medium"},p,c&&":"),e.createElement("div",{className:n.content},c&&e.createElement(m.Text,{view:"caps",className:n.value,color:_,weight:"medium"},c,u&&e.createElement(i,{icon:t,className:n.copy,size:"s",onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(c).then((function(){r({title:"Copied!",view:"positive",offset:30})}))}})),d&&e.createElement("div",{className:n.rightAddons},d)))};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-b640e6b6.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-160c07ed.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-7952077b.js";import"../ClockCircleM-f4c80946.js";import"../CloseS-18b4630a.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9986e423.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-160c07ed.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-160c07ed.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-160c07ed.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-160c07ed.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-8686904b.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-f4c80946.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-7952077b.js";import"../CloseS-18b4630a.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,b=r.value,I=r.success,x=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:b,inputProps:g,readOnly:x,success:I},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-160c07ed.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-f4c80946.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-7952077b.js";import"../CloseS-18b4630a.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-8686904b.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-8de143f0.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-8de143f0.js";import"classnames";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./_commonjsHelpers-
|
|
1
|
+
import{a as t}from"./_commonjsHelpers-bc812022.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 b=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},f=Object.prototype.toString;var j=function(t){return f.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)?b(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-160c07ed.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-160c07ed.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-9986e423.js";import"../typography/title/index.js";import"../tslib.es6-160c07ed.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-9986e423.js";import"../typography/title/index.js";import"../tslib.es6-160c07ed.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-160c07ed.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-bc812022.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-160c07ed.js";import"react";import"react-merge-refs";import"classnames";import"../_commonjsHelpers-bc812022.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-2a6010b0.js";import"../icon-button/component.js";import"../tslib.es6-160c07ed.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-9986e423.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-d6c046b1.js";import"../PhotoS-47ae71fb.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../NextS-52c4b834.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-f4c80946.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-7952077b.js";import"../CloseS-18b4630a.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-8686904b.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-2a6010b0.js";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"../../../tslib.es6-160c07ed.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-9986e423.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-2a6010b0.js";import"../../icon-button/component.js";import"../../tslib.es6-160c07ed.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-9986e423.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-d6c046b1.js";import"../../PhotoS-47ae71fb.js";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"../../NextS-52c4b834.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-f4c80946.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-7952077b.js";import"../../CloseS-18b4630a.js";import"../../toast-notifier/use-timer.js";import"../../intersection-observer-8686904b.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-160c07ed.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-d6c046b1.js";import"../../../PhotoS-47ae71fb.js";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../typography/text/component.js";import"../../../colors.module-9986e423.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-52c4b834.js";import{Divider as n}from"../../../divider/component.js";import"classnames";var r="index-module_back_btn_wrapper__hkZkN",a="index-module_back_btn__Ak25Q",m=function(m){var o=m.showTitle,c=m.onClick;return e.createElement("div",{className:r},e.createElement("button",{onClick:c,type:"button",className:a},e.createElement("span",null,e.createElement(t,null)),o&&"Go back"),e.createElement(n,{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-9986e423.js";import"../../../typography/title/index.js";import"../../../tslib.es6-160c07ed.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",n="index-module_leftAddons__eaiZB",d="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,v=a.Link;return e.createElement(v,{className:t(m,(l={},l[r]=_,l[s]=!h,l)),to:c},u&&e.createElement("div",{className:n},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:i},p),x&&e.createElement("div",{className:d},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-9986e423.js";import"../../../typography/title/index.js";import"../../../tslib.es6-160c07ed.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-160c07ed.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-8686904b.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-9986e423.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-d6c046b1.js";import"../../../PhotoS-47ae71fb.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-f4c80946.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-7952077b.js";import"../../../CloseS-18b4630a.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-2a6010b0.js";import"../icon-button/component.js";import"../tslib.es6-160c07ed.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-9986e423.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-d6c046b1.js";import"../PhotoS-47ae71fb.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"../NextS-52c4b834.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-f4c80946.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-7952077b.js";import"../CloseS-18b4630a.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-8686904b.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 n}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 n}from"../typography/component.js";import"../tslib.es6-160c07ed.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-d6c046b1.js";import"../PhotoS-47ae71fb.js";import"../spinner/component.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-9986e423.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-7952077b.js";import"../ClockCircleM-f4c80946.js";import"../CloseS-18b4630a.js";import"../toast-notifier/use-timer.js";import"../slide-623ee539.js";import"swiper/swiper.min.css";var a="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,y=j.date,f=j.rightAddons,w=j.answer,h=j.text,_=j.image,E=j.photos,b=void 0===E?[]:E,k=j.withImage,N=void 0===k||k,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:a},e.createElement("div",{className:p},N&&e.createElement(o,{src:_,size:"s",text:v,view:"circle"}),e.createElement(n.Text,{className:c,view:"title",weight:"bold"},v),y&&e.createElement(n.Text,{view:"title",color:"secondary",weight:"regular"},y)),f&&e.createElement("div",{className:d},f)),e.createElement("div",{className:g},e.createElement(n.Text,{view:"primary-medium",color:"primary",weight:"medium"},h),!!w&&e.createElement(n.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},w),!!b.length&&e.createElement(e.Fragment,null,e.createElement(s,{padding:"8px 0"}),e.createElement(r,{justify:"start",gap:"md"},b.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:b.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-160c07ed.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-9986e423.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-d6c046b1.js";import"../PhotoS-47ae71fb.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-7952077b.js";import"../ClockCircleM-f4c80946.js";import"../CloseS-18b4630a.js";import"../toast-notifier/use-timer.js";import"../slide-623ee539.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 e}from"./modal.js";import"../../../tslib.es6-160c07ed.js";import"../../../CloseM-312c58e8.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var r=function(r){var t=r.modals,m=r.dirtyModals,s=r.closeModal,a=r.currentModalId;return o.createElement(o.Fragment,null,t.map((function(r,t){return o.createElement(e,{key:r.id,t:r.props.t,index:t,modal:r,dirtyModals:m,closeModal:s,currentModalId:a})})))};export{r as Modals};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-160c07ed.js";import n,{useState as o,useLayoutEffect as t,useCallback as i,useEffect as r}from"react";import{C as s}from"../../../CloseM-312c58e8.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 a={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-"},d={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?-d[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:a.container,style:{zIndex:99998+f}},n.createElement("div",{className:c(a[u.props.position],a.content),style:{zIndex:99999+f,width:d[u.props.size],right:x}},n.createElement("div",{className:a.inner},n.createElement(u.modal,e({},u.props,{close:function(){return h()}}))),n.createElement(l,{className:a.button,size:"s",view:"right"===u.props.position?"black":"ghost",leftAddons:n.createElement(s,null),onClick:function(){return h()}})),n.createElement("button",{className:a.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 a}from"./hooks/use-modal.js";import"react-dom";import"../portal/utils.js";import"./components/modals/modal.js";import"../tslib.es6-
|
|
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 a}from"./hooks/use-modal.js";import"react-dom";import"../portal/utils.js";import"./components/modals/modal.js";import"../tslib.es6-160c07ed.js";import"../CloseM-312c58e8.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 d=o.createContext({modals:[],currentModalId:"",openModal:function(){return function(){}},setModalDirty:function(){}}),l=function(l){var n=l.children,m=l.t,s=a(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(d.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{d 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-160c07ed.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-160c07ed.js";import"../CloseM-312c58e8.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-160c07ed.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-160c07ed.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-7952077b.js";import"../ClockCircleM-f4c80946.js";import"../CloseS-18b4630a.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 b(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 D(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=b([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=b([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 j(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 D((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,b=void 0===S?5e3:S,D=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()}),b)}),[b,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=j({onSwiped:function(e){var t=e.dir;D&&[d,h,T].includes(t)&&(z(!0),F.current=window.setTimeout((function(){z(!1),D()}),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:D},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-160c07ed.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-7952077b.js";import"../ClockCircleM-f4c80946.js";import"../CloseS-18b4630a.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-160c07ed.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-c0652b5d.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-9986e423.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-160c07ed.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-c0652b5d.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9986e423.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r}from"./_commonjsHelpers-
|
|
1
|
+
import{c as r}from"./_commonjsHelpers-bc812022.js";var e=r=>encodeURIComponent(r).replace(/[!'()*]/g,(r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)),t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),o=new RegExp("("+t+")+","gi");function a(r,e){try{return[decodeURIComponent(r.join(""))]}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],a(t),a(n))}function s(r){try{return decodeURIComponent(r)}catch(o){for(var e=r.match(n)||[],t=1;t<e.length;t++)e=(r=a(e,t).join("")).match(n)||[];return r}}var c=function(r){if("string"!=typeof r)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch(e){return function(r){for(var e={"%FE%FF":"��","%FF%FE":"��"},t=o.exec(r);t;){try{e[t[0]]=decodeURIComponent(t[0])}catch(r){var n=s(t[0]);n!==t[0]&&(e[t[0]]=n)}t=o.exec(r)}e["%C2"]="�";for(var a=Object.keys(e),c=0;c<a.length;c++){var i=a[c];r=r.replace(new RegExp(i,"g"),e[i])}return r}(r)}},i=(r,e)=>{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]},l=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;a<n.length;a++){var s=n[a],c=r[s];(o?-1!==e.indexOf(s):e(s,c,r))&&(t[s]=c)}return t},u=r((function(r,t){const n=Symbol("encodeFragmentIdentifier");function o(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function a(r,t){return t.encode?t.strict?e(r):encodeURIComponent(r):r}function s(r,e){return e.decode?c(r):r}function u(r){return Array.isArray(r)?r.sort():"object"==typeof r?u(Object.keys(r)).sort(((r,e)=>Number(r)-Number(e))).map((e=>r[e])):r}function p(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function f(r){const e=(r=p(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function y(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function m(r,e){o((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const t=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"colon-list-separator":return(r,t,n)=>{e=/(:list)$/.exec(r),r=r.replace(/:list$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),a="string"==typeof t&&!o&&s(t,r).includes(r.arrayFormatSeparator);t=a?s(t,r):t;const c=o||a?t.split(r.arrayFormatSeparator).map((e=>s(e,r))):null===t?t:s(t,r);n[e]=c};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?s(t,r):t);const a=null===t?[]:t.split(r.arrayFormatSeparator).map((e=>s(e,r)));void 0!==n[e]?n[e]=[].concat(n[e],a):n[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),n=Object.create(null);if("string"!=typeof r)return n;if(!(r=r.trim().replace(/^[?#&]/,"")))return n;for(const o of r.split("&")){if(""===o)continue;let[r,a]=i(e.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?a:s(a,e),t(s(r,e),a,n)}for(const r of Object.keys(n)){const t=n[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=y(t[r],e);else n[r]=y(t,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((r,e)=>{const t=n[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=u(t):r[e]=t,r}),Object.create(null))}t.extract=f,t.parse=m,t.stringify=(r,e)=>{if(!r)return"";o((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],n=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[a(e,r),"[",o,"]"].join("")]:[...t,[a(e,r),"[",a(o,r),"]=",a(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[a(e,r),"[]"].join("")]:[...t,[a(e,r),"[]=",a(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[a(e,r),":list="].join("")]:[...t,[a(e,r),":list=",a(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[a(t,r),e,a(o,r)].join("")]:[[n,a(o,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,a(e,r)]:[...t,[a(e,r),"=",a(n,r)].join("")]}}(e),s={};for(const e of Object.keys(r))t(e)||(s[e]=r[e]);const c=Object.keys(s);return!1!==e.sort&&c.sort(e.sort),c.map((t=>{const o=r[t];return void 0===o?"":null===o?a(t,e):Array.isArray(o)?0===o.length&&"bracket-separator"===e.arrayFormat?a(t,e)+"[]":o.reduce(n(t),[]).join("&"):a(t,e)+"="+a(o,e)})).filter((r=>r.length>0)).join("&")},t.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=i(r,"#");return Object.assign({url:t.split("?")[0]||"",query:m(f(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:s(n,e)}:{})},t.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0,[n]:!0},e);const o=p(r.url).split("?")[0]||"",s=t.extract(r.url),c=t.parse(s,{sort:!1}),i=Object.assign(c,r.query);let l=t.stringify(i,e);l&&(l=`?${l}`);let u=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(u=`#${e[n]?a(r.fragmentIdentifier,e):r.fragmentIdentifier}`),`${o}${l}${u}`},t.pick=(r,e,o)=>{o=Object.assign({parseFragmentIdentifier:!0,[n]:!1},o);const{url:a,query:s,fragmentIdentifier:c}=t.parseUrl(r,o);return t.stringifyUrl({url:a,query:l(s,e),fragmentIdentifier:c},o)},t.exclude=(r,e,n)=>{const o=Array.isArray(e)?r=>!e.includes(r):(r,t)=>!e(r,t);return t.pick(r,o,n)}}));u.extract;var p=u.parse,f=u.stringify;function y(){return p(window.location.search,{arrayFormat:"comma",parseBooleans:!0,parseNumbers:!0})}u.parseUrl,u.stringifyUrl,u.pick,u.exclude;export{y as p,f as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-
|
|
1
|
+
export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-9986e423.js";import"../../typography/title/index.js";import"../../tslib.es6-160c07ed.js";import"../../typography/title/component.js";
|