@alphakits/ui 1.27.25 → 1.27.26
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/badge/component.js +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +2 -2
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/box/component.js +1 -1
- package/dist/box/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-384f979c.js → capitalize-da58f14e.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/colors.module-bcab070d.js +1 -0
- package/dist/component-5bf23d95.js +1 -0
- package/dist/component-f9d8d5f8.js +1 -0
- package/dist/contact-block-94aae98c.js +1 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-functions.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/decorated-item/component.js +1 -1
- package/dist/decorated-item/index.js +1 -1
- package/dist/divider/component.js +1 -1
- package/dist/divider/index.js +1 -1
- package/dist/dot/component.js +1 -1
- package/dist/dot/index.js +1 -1
- package/dist/flex/component.js +1 -1
- package/dist/flex/index.js +1 -1
- package/dist/flex-columns/component.js +1 -1
- package/dist/flex-columns/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-outer/index.js +1 -1
- package/dist/form/components/form-updating/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/gutters.module-eb55c95e.js +1 -0
- 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.d.ts +5 -0
- package/dist/image/component.js +1 -1
- package/dist/image/image-base.d.ts +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.d.ts +2 -1
- package/dist/image/index.js +1 -1
- package/dist/{component-51c8ea13.d.ts → image/types.d.ts} +13 -3
- package/dist/image/types.js +1 -0
- package/dist/image/use-image-render-component.d.ts +13 -0
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image/utils.d.ts +4 -0
- package/dist/image/utils.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-preview/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/components/navigation-bar/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-5755b61f.js → index-00def255.js} +1 -1
- package/dist/index-21c90eba.js +1 -0
- package/dist/index-290e6c62.js +1 -0
- package/dist/{index-1b2b7d3c.js → index-579985bf.js} +1 -1
- package/dist/{index-2a108426.js → index-5d5dc52f.js} +1 -1
- package/dist/index-7b4e1fe8.js +1 -0
- package/dist/{index-520e77a1.js → index-7cac52e8.js} +1 -1
- package/dist/{index-b9ed46c7.js → index-8347460a.js} +1 -1
- package/dist/index-9ce5a5e7.js +1 -0
- package/dist/{index-f8a1eba5.js → index-bae76388.js} +1 -1
- package/dist/index-d33b2062.js +1 -0
- package/dist/{index-8539f504.js → index-f96da3a0.js} +1 -1
- package/dist/index-fcfe1262.js +1 -0
- package/dist/index.module-484c9508.js +1 -0
- package/dist/index.module-68f5d4b7.js +1 -0
- package/dist/index.module-a5f47b0d.js +1 -0
- package/dist/index.module-b027660d.js +1 -0
- package/dist/index.module-d56fe62a.js +1 -0
- 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/info-block-wrapper/component.js +1 -1
- package/dist/info-block-wrapper/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-b88a0de4.js → isSymbol-6569b777.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/loader/component.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/page-container/component.js +1 -1
- package/dist/page-container/index.js +1 -1
- package/dist/page-loading/component.js +1 -1
- package/dist/page-loading/index.js +1 -1
- package/dist/{parse-query-params-6e3e63f6.js → parse-query-params-5917b4fd.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/pure-image/component.js +1 -1
- package/dist/pure-image/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/section-wrapper/component.js +1 -1
- package/dist/section-wrapper/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/arrow/component.js +1 -1
- package/dist/select/components/arrow/index.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/checkmark/component.js +1 -1
- package/dist/select/components/checkmark/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/optgroup/component.js +1 -1
- package/dist/select/components/optgroup/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/skeleton/component.js +1 -1
- package/dist/skeleton/index.js +1 -1
- package/dist/slide-673bfe25.js +1 -0
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/spinner/component.js +1 -1
- package/dist/spinner/index.js +1 -1
- package/dist/status/component.js +1 -1
- package/dist/status/index.js +1 -1
- package/dist/step-bar-3c7c5eda.js +1 -0
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/sticker/component.js +1 -1
- package/dist/sticker/index.js +1 -1
- package/dist/style-inject.es-1f59c1d0.js +1 -0
- 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.d.ts +0 -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/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/typography.css +6 -468
- package/dist/welcome-layout/component.js +1 -1
- package/dist/welcome-layout/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/colors.module-2decc275.js +0 -1
- package/dist/common.module-338f6899.js +0 -1
- package/dist/component-2ec0ce7d.js +0 -1
- package/dist/component-55e0096f.js +0 -1
- package/dist/component-d41e8fc0.d.ts +0 -27
- package/dist/component-d41e8fc0.js +0 -1
- package/dist/contact-block-b175ecda.js +0 -1
- package/dist/gutters.module-8921e4e8.js +0 -1
- package/dist/image/constants.d.ts +0 -0
- package/dist/image/constants.js +0 -1
- package/dist/index-26e7253e.js +0 -1
- package/dist/index-3910a960.js +0 -1
- package/dist/index-75e350b3.js +0 -1
- package/dist/index-91292492.js +0 -1
- package/dist/index-ac8f923e.js +0 -1
- package/dist/index-bbf57729.js +0 -1
- package/dist/index.css +0 -1
- package/dist/slide-cf5f5962.js +0 -1
- package/dist/step-bar-82f811db.js +0 -1
- package/dist/typography/title-responsive/component.d.ts +0 -4
- package/dist/typography/title-responsive/component.js +0 -1
- package/dist/typography/title-responsive/index.d.ts +0 -1
- package/dist/typography/title-responsive/index.js +0 -1
- /package/dist/{ActionCopyM-f1ec6baf.js → ActionCopyM-2f28ae57.js} +0 -0
- /package/dist/{CheckmarkCircleM-9fee95d7.js → CheckmarkCircleM-10f50b3f.js} +0 -0
- /package/dist/{ChevronBackM-b680a2bf.js → ChevronBackM-47d9cb6d.js} +0 -0
- /package/dist/{ChevronDownS-1d0cd0b8.js → ChevronDownS-5f3ba4f5.js} +0 -0
- /package/dist/{ChevronForwardS-fbada9a5.js → ChevronForwardS-78acca51.js} +0 -0
- /package/dist/{ClockCircleM-5a65944a.js → ClockCircleM-9cbd1915.js} +0 -0
- /package/dist/{CloseS-e3bf07e5.js → CloseS-c17ee568.js} +0 -0
- /package/dist/{NextS-f557c3aa.js → NextS-2b028cce.js} +0 -0
- /package/dist/{PlusS-fe985248.js → PlusS-d3752d5b.js} +0 -0
- /package/dist/{SearchM-bf3ee83e.js → SearchM-9b5d9f79.js} +0 -0
- /package/dist/{TrashM-0c9bc3f1.js → TrashM-504e1b6e.js} +0 -0
- /package/dist/{_commonjsHelpers-cbd5d6a0.js → _commonjsHelpers-97e6d7b1.js} +0 -0
- /package/dist/{component-55e0096f.d.ts → component-5bf23d95.d.ts} +0 -0
- /package/dist/{component-2ec0ce7d.d.ts → component-f9d8d5f8.d.ts} +0 -0
- /package/dist/{contact-block-b175ecda.d.ts → contact-block-94aae98c.d.ts} +0 -0
- /package/dist/{index-2ef8f7b7.js → index-14cb6781.js} +0 -0
- /package/dist/{index-ac8f923e.d.ts → index-7b4e1fe8.d.ts} +0 -0
- /package/dist/{index-d2ad1ddb.js → index-acf532e5.js} +0 -0
- /package/dist/{intersection-observer-6b2fdc2d.js → intersection-observer-044a6fec.js} +0 -0
- /package/dist/{parse-query-params-6e3e63f6.d.ts → parse-query-params-5917b4fd.d.ts} +0 -0
- /package/dist/{slide-cf5f5962.d.ts → slide-673bfe25.d.ts} +0 -0
- /package/dist/{step-bar-82f811db.d.ts → step-bar-3c7c5eda.d.ts} +0 -0
- /package/dist/{tslib.es6-e42882d6.js → tslib.es6-c1295375.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./add-query-param";
|
|
2
2
|
export * from "./get-query-from-url";
|
|
3
3
|
export * from "./get-tags";
|
|
4
|
-
export * from "../../parse-query-params-
|
|
4
|
+
export * from "../../parse-query-params-5917b4fd";
|
|
5
5
|
export * from "./remove-query-param";
|
|
6
6
|
export * from "./reset-query-param";
|
|
7
7
|
export * from "./set-query-to-url";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{addQueryParam}from"./add-query-param.js";export{getQueryFromUrl}from"./get-query-from-url.js";export{getTags}from"./get-tags.js";export{p as parseQueryParams}from"../../parse-query-params-
|
|
1
|
+
export{addQueryParam}from"./add-query-param.js";export{getQueryFromUrl}from"./get-query-from-url.js";export{getTags}from"./get-tags.js";export{p as parseQueryParams}from"../../parse-query-params-5917b4fd.js";export{removeQueryParam}from"./remove-query-param.js";export{resetQueryParam}from"./reset-query-param.js";export{setQueryToUrl}from"./set-query-to-url.js";export{serializeData}from"./serialize-data.js";import"../../tslib.es6-c1295375.js";import"../../_commonjsHelpers-97e6d7b1.js";import"./sort-array.js";import"./is-object.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{p as parseQueryParams}from"../../parse-query-params-
|
|
1
|
+
export{p as parseQueryParams}from"../../parse-query-params-5917b4fd.js";import"../../_commonjsHelpers-97e6d7b1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"../../
|
|
1
|
+
import"react";import"../../index.module-d56fe62a.js";import"../../image/component.js";import"../../image/types.js";export{p as prepareRows}from"../../component-5bf23d95.js";import"classnames";import"../../colors.module-bcab070d.js";import"../../typography/text/component.js";import"../../typography/title/index.js";import"../../component-f9d8d5f8.js";import"../../cell/pure/component.js";import"../components/cell/component.js";import"../../style-inject.es-1f59c1d0.js";import"../../skeleton/component.js";import"../../index.module-a5f47b0d.js";import"../../typography/component.js";import"../../tslib.es6-c1295375.js";import"../../typography/title/component.js";import"../../image/use-image-render-component.js";import"../../spinner/component.js";import"../../index.module-b027660d.js";import"../../image/utils.js";import"../components/cells/index.js";import"../../ChevronForwardS-78acca51.js";import"../components/empty-list/index.js";import"../languages/index.js";import"../components/error/index.js";import"../components/loading/index.js";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../components/pagination/index.js";import"../../button/component.js";import"react-merge-refs";import"../../loader/component.js";import"../components/table-header/index.js";import"../../PlusS-d3752d5b.js";import"rooks";import"../../flex/component.js";import"../../header-search/component.js";import"../../CloseS-c17ee568.js";import"../../SearchM-9b5d9f79.js";import"../hooks/use-table-data.js";import"../../parse-query-params-5917b4fd.js";import"../../_commonjsHelpers-97e6d7b1.js";import"./get-query-from-url.js";import"./serialize-data.js";import"./sort-array.js";import"./is-object.js";import"./add-query-param.js";import"./set-query-to-url.js";import"./get-tags.js";import"./remove-query-param.js";import"./reset-query-param.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-c1295375.js";var e={dev:{limit:"_limit",page:"_page",sort:"_sort",order:"_order",searchText:"q"},prod:{limit:"limit",page:"page",sort:"sort",order:"order",searchText:"searchText"}};function t(t,o){return Object.entries(t).reduce((function(t,i){var s,a=i[0],c=i[1],d=e[o][a]||a;return r(((s={})[d]=c,s),t)}),{})}export{t as queryAdapter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,q as e}from"../../parse-query-params-
|
|
1
|
+
import{p as r,q as e}from"../../parse-query-params-5917b4fd.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-97e6d7b1.js";function a(a,t){var m=r();Array.isArray(m[a])&&t?m[a]=m[a].filter((function(r){return r!==t})):delete m[a],o(e(m,{arrayFormat:"comma"}))}export{a as removeQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-c1295375.js";import{p as e,q as t}from"../../parse-query-params-5917b4fd.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-97e6d7b1.js";function s(s){var a=Object.fromEntries(Object.entries(s).filter((function(r){return""!==r[1]}))),m=e(),i=m.searchText,p=m.order,c=m.sort;o(t(r({limit:10,page:1,searchText:i,order:p,sort:c},a),{arrayFormat:"comma"}))}export{s as resetQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t from"react";import{C as r,A as o}from"../CheckmarkCircleM-
|
|
1
|
+
import*as e from"react";import t from"react";import{C as r,A as o}from"../CheckmarkCircleM-10f50b3f.js";import{C as i}from"../ClockCircleM-9cbd1915.js";import n from"classnames";import{Typography as l}from"../typography/component.js";import{s as a}from"../style-inject.es-1f59c1d0.js";import"../typography/text/component.js";import"../colors.module-bcab070d.js";import"../typography/title/index.js";import"../tslib.es6-c1295375.js";import"../typography/title/component.js";var m=function(){return m=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)};function c(t){return e.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:23,height:24,fill:"currentColor",viewBox:"0 0 23 24"},t),e.createElement("path",{fillRule:"evenodd",d:"M21 12a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0m-2.111 0a7.389 7.389 0 0 1-11.483 6.152L17.652 7.906A7.35 7.35 0 0 1 18.889 12M16.24 6.332A7.389 7.389 0 0 0 5.832 16.741z",clipRule:"evenodd"}))}var s="index-module_icon__xCdQr",p="index-module_text__0SHQw";a(".index-module_icon__xCdQr{display:flex;margin-right:8px;min-width:24px}.index-module_text__0SHQw{align-items:center;display:block;display:flex!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}");var d={negative:t.createElement(c,null),positive:t.createElement(r,null),secondary:t.createElement(i,null),accent:t.createElement(c,null),attention:t.createElement(o,null)},f=function(e){var r=e.text,o=e.view,i=void 0===o?"secondary":o,a=e.className;return t.createElement(l.Text,{className:n(p,a),tag:"div",view:"caps",weight:"medium",color:i},t.createElement("span",{className:s},d[i])," ",r)};export{f as TableStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TableStatus}from"./component.js";import"react";import"../CheckmarkCircleM-
|
|
1
|
+
export{TableStatus}from"./component.js";import"react";import"../CheckmarkCircleM-10f50b3f.js";import"../ClockCircleM-9cbd1915.js";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-bcab070d.js";import"../style-inject.es-1f59c1d0.js";import"../typography/title/index.js";import"../tslib.es6-c1295375.js";import"../typography/title/component.js";
|
package/dist/tag/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"react";import{C as e}from"../CloseS-c17ee568.js";import r from"classnames";import{IconButton as p}from"../icon-button/component.js";import{Typography as o}from"../typography/component.js";import{s as x}from"../style-inject.es-1f59c1d0.js";import"../tslib.es6-c1295375.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-bcab070d.js";import"../typography/title/index.js";import"../typography/title/component.js";var d={tag:"index-module_tag__ePuZ7",s:"index-module_s__JQOAw",m:"index-module_m__6q9L4",text:"index-module_text__cc9CM",primary:"index-module_primary__nTVdF","primary-inverted":"index-module_primary-inverted__G6REX",leftAddons:"index-module_leftAddons__EODuG",rightAddons:"index-module_rightAddons__ERYKA"};x(':root{--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.index-module_tag__ePuZ7{align-items:center;border:none;border-radius:100px;cursor:default;display:flex;justify-content:space-between;outline:none;padding:0 16px;pointer-events:none}.index-module_tag__ePuZ7.index-module_s__JQOAw{min-height:24px}.index-module_tag__ePuZ7.index-module_m__6q9L4{min-height:32px}.index-module_tag__ePuZ7:not(:disabled){cursor:pointer;pointer-events:auto}.index-module_text__cc9CM{white-space:nowrap!important}.index-module_primary__nTVdF{background-color:var(--color-bg-secondary)}.index-module_primary__nTVdF svg{color:var(--color-text-primary)}.index-module_primary__nTVdF:hover{background-color:color-mix(in srgb,var(--color-bg-secondary),var(--color-bg-primary-inverted) 10%)}.index-module_primary-inverted__G6REX{background-color:var(--color-bg-primary-inverted)}.index-module_primary-inverted__G6REX svg{color:var(--color-graphic-primary-inverted)}.index-module_primary-inverted__G6REX:hover{background-color:color-mix(in srgb,var(--color-bg-primary-inverted),var(--color-bg-primary) 10%)}.index-module_leftAddons__EODuG,.index-module_rightAddons__ERYKA{align-items:center;display:flex;flex-shrink:0}.index-module_leftAddons__EODuG{margin:0 var(--gap-xs) 0 0}.index-module_rightAddons__ERYKA{margin:0 0 0 var(--gap-xs)}');var t=function(x){var t,n=x.text,g=x.onClick,i=x.onCloseClick,s=x.view,l=void 0===s?"primary":s,m=x.weight,b=void 0===m?"regular":m,c=x.leftAddons,_=x.rightAddons,u=x.dataTestId,h=x.size,y=void 0===h?"m":h,v=x.className;return a.createElement("button",{type:"button","data-test-id":u,onClick:g,disabled:!g&&!i,className:r(d.tag,d[l],d[y],(t={},t[d.show_cross]=!!i,t),v)},c&&a.createElement("span",{className:d.leftAddons},c),a.createElement(o.Text,{className:d.text,view:"title",weight:b,color:l},n),_&&a.createElement("span",{className:d.rightAddons},_),!!i&&a.createElement("span",{className:d.rightAddons},a.createElement(p,{icon:e,"data-test-id":u+"_close",type:"button",view:"ghost","aria-label":"close-tag",onClick:function(a){a.stopPropagation(),i()}})))};export{t as Tag};
|
package/dist/tag/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tag}from"./component.js";import"react";import"../CloseS-
|
|
1
|
+
export{Tag}from"./component.js";import"react";import"../CloseS-c17ee568.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-c1295375.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../style-inject.es-1f59c1d0.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-bcab070d.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import p from"react";import{Tag as a}from"../tag/component.js";import{s as x}from"../style-inject.es-1f59c1d0.js";import"../CloseS-c17ee568.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-c1295375.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-bcab070d.js";import"../typography/title/index.js";import"../typography/title/component.js";var r="index-module_tags__C28AJ";x(':root{--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.index-module_tags__C28AJ{align-items:flex-start;display:flex;flex-wrap:wrap}.index-module_tags__C28AJ>:not(:last-child){margin:0 8px 6px 0}.index-module_tag__fO5-b{align-items:center;border:none;border-radius:4px;cursor:default;display:flex;justify-content:space-between;min-height:24px;outline:none;padding:0 12px;pointer-events:none}.index-module_tag__fO5-b svg{color:var(--color-graphic-thirdly)}.index-module_tag__fO5-b:hover svg{color:color-mix(in srgb,var(--color-graphic-thirdly) 80%,#000)}.index-module_tag__fO5-b:not(:disabled){cursor:pointer;padding:0 4px 0 12px;pointer-events:auto}.index-module_primary__cGy0p{background-color:var(--color-bg-secondary)}.index-module_primary-inverted__YSFT6{background-color:var(--color-bg-primary-inverted)}');var o=function(x){var o=x.tags,e=x.view,g=void 0===e?"primary":e,s=x.onClick,n=x.onCloseClick;return p.createElement("div",{className:r},(null==o?void 0:o.length)&&o.map((function(x){return p.createElement(a,{key:x,text:x,onClick:s,onCloseClick:n,view:g})})))};export{o as TagsList};
|
package/dist/tags-list/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"../CloseS-
|
|
1
|
+
export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"../CloseS-c17ee568.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-c1295375.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../style-inject.es-1f59c1d0.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-bcab070d.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-e42882d6.js";import*as o from"react";import n,{useLayoutEffect as r,useEffect as i,useRef as a,useCallback as d,forwardRef as s,createElement as l,useState as u}from"react";import c from"react-merge-refs";import m from"classnames";import{FormControl as f}from"../form-control/component.js";import{useFocus as h}from"../hooks/useFocus/index.js";function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},g.apply(this,arguments)}var p="undefined"!=typeof document?r:i,b=function(e,t){"function"!=typeof e?e.current=t:e(t)},x={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},v=function(e){Object.keys(x).forEach((function(t){e.style.setProperty(t,x[t],"important")}))},w=null,y=function(e,t){var o=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?o+t.borderSize:o-t.paddingSize};var z=function(){},_=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],C="undefined"!=typeof document&&!!document.documentElement.currentStyle,R=function(e){var t,n,i=(t=e,n=o.useRef(t),p((function(){n.current=t})),n);r((function(){var e=function(e){i.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},S=s((function(e,t){var o=e.cacheMeasurements,n=e.maxRows,i=e.minRows,s=e.onChange,u=void 0===s?z:s,c=e.onHeightChange,m=void 0===c?z:c,f=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);if("production"!==process.env.NODE_ENV&&f.style){if("maxHeight"in f.style)throw new Error("Using `style.maxHeight` for <TextareaAutosize/> is not supported. Please use `maxRows`.");if("minHeight"in f.style)throw new Error("Using `style.minHeight` for <TextareaAutosize/> is not supported. Please use `minRows`.")}var h=void 0!==f.value,p=a(null),x=function(e,t){var o=a();return d((function(n){e.current=n,o.current&&b(o.current,null),o.current=t,t&&b(t,n)}),[t])}(p,t),S=a(0),H=a(),A=function(){var e=p.current,t=o&&H.current?H.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var o,n=(o=t,_.reduce((function(e,t){return e[t]=o[t],e}),{})),r=n.boxSizing;return""===r?null:(C&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}(e);if(t){H.current=t;var r=function(e,t,o,n){void 0===o&&(o=1),void 0===n&&(n=1/0),w||((w=document.createElement("textarea")).setAttribute("tabindex","-1"),w.setAttribute("aria-hidden","true"),v(w)),null===w.parentNode&&document.body.appendChild(w);var r=e.paddingSize,i=e.borderSize,a=e.sizingStyle,d=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;w.style[t]=a[t]})),v(w),w.value=t;var s=y(w,e);w.value="x";var l=w.scrollHeight-r,u=l*o;"border-box"===d&&(u=u+r+i),s=Math.max(u,s);var c=l*n;return"border-box"===d&&(c=c+r+i),[s=Math.min(c,s),l]}(t,e.value||e.placeholder||"x",i,n),a=r[0],d=r[1];S.current!==a&&(S.current=a,e.style.setProperty("height",a+"px","important"),m(a,{rowHeight:d}))}};return"undefined"!=typeof document&&(r(A),R(A)),l("textarea",g({},f,{onChange:function(e){h||A(),u(e)},ref:x}))})),H={textarea:"index-module_textarea__91cCo",s:"index-module_s__EnuHV",m:"index-module_m__etAWo",l:"index-module_l__pP38o",hasLabel:"index-module_hasLabel__sk25A",resizeVertical:"index-module_resizeVertical__kct5e",focusVisible:"index-module_focusVisible__bLwRO",filled:"index-module_filled__t8LRd",counter:"index-module_counter__psEqA"},A=n.forwardRef((function(o,r){var s,l,g=o.autoComplete,p=void 0===g?"on":g,b=o.autosize,x=void 0===b||b,v=o.size,w=void 0===v?"s":v,y=o.block,z=void 0!==y&&y,_=o.bottomAddons,C=o.fieldClassName,R=o.className,A=o.dataTestId,E=o.disabled,L=o.error,F=o.hint,N=o.textareaClassName,k=o.label,O=o.leftAddons,V=o.onFocus,W=o.required,j=o.onBlur,B=o.onChange,T=o.onHeightChange,P=o.rightAddons,q=o.maxRows,M=o.minRows,I=o.maxHeight,U=o.resize,D=void 0===U?"none":U,G=o.value,J=o.defaultValue,K=o.maxLength,Q=void 0===K?500:K,X=o.counter,Y=o.rows,Z=void 0===Y?x?1:3:Y,$=e(o,["autoComplete","autosize","size","block","bottomAddons","fieldClassName","className","dataTestId","disabled","error","hint","textareaClassName","label","leftAddons","onFocus","required","onBlur","onChange","onHeightChange","rightAddons","maxRows","minRows","maxHeight","resize","value","defaultValue","maxLength","counter","rows"]),ee=void 0===G,te=a(null),oe=u(!1),ne=oe[0],re=oe[1],ie=u(J||""),ae=ie[0],de=ie[1],se=h(te,"keyboard")[0],le=Boolean(ee?ae:G);i((function(){x&&I&&te.current&&te.current.style&&(te.current.style.maxHeight=I+"px")}),[te,x,I]);var ue=d((function(e){re(!0),V&&V(e)}),[V]),ce=d((function(e){re(!1),j&&j(e)}),[j]),me=d((function(e){B&&B(e,{value:e.target.value}),ee&&de(e.target.value)}),[B,ee]),fe=t(t({},$),{className:m(H.textarea,H[w],(s={},s[H.hasLabel]=k,s[H.filled]=le,s[H.resizeVertical]="vertical"===D,s),N),autoComplete:p,disabled:E,onBlur:ce,onFocus:ue,onChange:me,value:ee?ae:G,rows:Z,ref:c([r,te]),"data-test-id":A});return n.createElement(f,{className:m(R),fieldClassName:m(C,(l={},l[H.focusVisible]=se,l)),size:w,block:z,required:W,disabled:E,filled:le||ne,focused:ne,error:L,label:k,hint:F,leftAddons:O,rightAddons:P,bottomAddons:_},x?n.createElement(S,t({},fe,{maxLength:Q,maxRows:q,minRows:M,onHeightChange:T})):n.createElement("textarea",t({maxLength:Q},fe,{style:{maxHeight:I}})),X&&n.createElement("span",{className:H.counter},(ee?ae.length:null==G?void 0:G.length)+" / "+(Q||"-")))}));A.defaultProps={autoComplete:"on",autosize:!0,size:"s",block:!1,resize:"none"};export{A as Textarea};
|
|
1
|
+
import{_ as e,a}from"../tslib.es6-c1295375.js";import*as t from"react";import o,{useLayoutEffect as r,useEffect as i,useRef as n,useCallback as l,forwardRef as d,createElement as p,useState as x}from"react";import s from"react-merge-refs";import u from"classnames";import{FormControl as g}from"../form-control/component.js";import{useFocus as c}from"../hooks/useFocus/index.js";import{s as m}from"../style-inject.es-1f59c1d0.js";function h(){return h=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},h.apply(this,arguments)}var _="undefined"!=typeof document?r:i,b=function(e,a){"function"!=typeof e?e.current=a:e(a)},f={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},v=function(e){Object.keys(f).forEach((function(a){e.style.setProperty(a,f[a],"important")}))},w=null,y=function(e,a){var t=e.scrollHeight;return"border-box"===a.sizingStyle.boxSizing?t+a.borderSize:t-a.paddingSize};var C=function(){},z=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],k="undefined"!=typeof document&&!!document.documentElement.currentStyle,A=function(e){var a,o,i=(a=e,o=t.useRef(a),_((function(){o.current=a})),o);r((function(){var e=function(e){i.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},L=d((function(e,a){var t=e.cacheMeasurements,o=e.maxRows,i=e.minRows,d=e.onChange,x=void 0===d?C:d,s=e.onHeightChange,u=void 0===s?C:s,g=function(e,a){if(null==e)return{};var t,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t=i[o],a.indexOf(t)>=0||(r[t]=e[t]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);if("production"!==process.env.NODE_ENV&&g.style){if("maxHeight"in g.style)throw new Error("Using `style.maxHeight` for <TextareaAutosize/> is not supported. Please use `maxRows`.");if("minHeight"in g.style)throw new Error("Using `style.minHeight` for <TextareaAutosize/> is not supported. Please use `minRows`.")}var c=void 0!==g.value,m=n(null),_=function(e,a){var t=n();return l((function(o){e.current=o,t.current&&b(t.current,null),t.current=a,a&&b(a,o)}),[a])}(m,a),f=n(0),L=n(),R=function(){var e=m.current,a=t&&L.current?L.current:function(e){var a=window.getComputedStyle(e);if(null===a)return null;var t,o=(t=a,z.reduce((function(e,a){return e[a]=t[a],e}),{})),r=o.boxSizing;return""===r?null:(k&&"border-box"===r&&(o.width=parseFloat(o.width)+parseFloat(o.borderRightWidth)+parseFloat(o.borderLeftWidth)+parseFloat(o.paddingRight)+parseFloat(o.paddingLeft)+"px"),{sizingStyle:o,paddingSize:parseFloat(o.paddingBottom)+parseFloat(o.paddingTop),borderSize:parseFloat(o.borderBottomWidth)+parseFloat(o.borderTopWidth)})}(e);if(a){L.current=a;var r=function(e,a,t,o){void 0===t&&(t=1),void 0===o&&(o=1/0),w||((w=document.createElement("textarea")).setAttribute("tabindex","-1"),w.setAttribute("aria-hidden","true"),v(w)),null===w.parentNode&&document.body.appendChild(w);var r=e.paddingSize,i=e.borderSize,n=e.sizingStyle,l=n.boxSizing;Object.keys(n).forEach((function(e){var a=e;w.style[a]=n[a]})),v(w),w.value=a;var d=y(w,e);w.value="x";var p=w.scrollHeight-r,x=p*t;"border-box"===l&&(x=x+r+i),d=Math.max(x,d);var s=p*o;return"border-box"===l&&(s=s+r+i),[d=Math.min(s,d),p]}(a,e.value||e.placeholder||"x",i,o),n=r[0],l=r[1];f.current!==n&&(f.current=n,e.style.setProperty("height",n+"px","important"),u(n,{rowHeight:l}))}};return"undefined"!=typeof document&&(r(R),A(R)),p("textarea",h({},g,{onChange:function(e){c||R(),x(e)},ref:_}))})),R={textarea:"index-module_textarea__91cCo",s:"index-module_s__EnuHV",m:"index-module_m__etAWo",l:"index-module_l__pP38o",hasLabel:"index-module_hasLabel__sk25A",resizeVertical:"index-module_resizeVertical__kct5e",focusVisible:"index-module_focusVisible__bLwRO",filled:"index-module_filled__t8LRd",counter:"index-module_counter__psEqA"};m(':root{--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--text-primary-color:var(--color-text-primary);--text-secondary-color:var(--color-text-secondary);--text-tertiary-color:var(--color-text-tertiary);--border-radius:4px;--focus-color:var(--color-border-link);--font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,sans-serif;--disabled-cursor:not-allowed;--arrow-transform:rotate(180deg);--textarea-s-min-height:128px!important;--textarea-m-min-height:138px!important;--textarea-l-min-height:148px!important;--textarea-s-padding-top:14px;--textarea-m-padding-top:18px;--textarea-l-padding-top:24px;--textarea-s-filled-margin-top:23px;--textarea-m-filled-margin-top:28px;--textarea-l-filled-margin-top:34px;--textarea-s-filled-min-height:calc(var(--textarea-s-min-height) - var(--textarea-s-filled-margin-top));--textarea-m-filled-min-height:calc(var(--textarea-m-min-height) - var(--textarea-m-filled-margin-top));--textarea-l-filled-min-height:calc(var(--textarea-l-min-height) - var(--textarea-l-filled-margin-top))}.index-module_textarea__91cCo{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:var(--input-color);display:block;font-family:var(--font-family);font-size:16px!important;font-weight:400;height:100%;line-height:20px;margin:0;outline:none;position:relative;resize:none;width:100%}.index-module_textarea__91cCo.index-module_s__EnuHV{padding-bottom:var(--gap-xs);padding-top:var(--textarea-s-padding-top)}.index-module_textarea__91cCo.index-module_m__etAWo{padding-bottom:var(--gap-xs);padding-top:var(--textarea-m-padding-top)}.index-module_textarea__91cCo.index-module_l__pP38o{padding-bottom:var(--gap-xs);padding-top:var(--textarea-l-padding-top)}.index-module_textarea__91cCo::-webkit-input-placeholder{color:var(--input-placeholder-color);-webkit-transition:opacity .2s ease,color .2s ease;transition:opacity .2s ease,color .2s ease}.index-module_textarea__91cCo::placeholder{color:var(--input-placeholder-color);transition:opacity .2s ease,color .2s ease}.index-module_hasLabel__sk25A::-webkit-input-placeholder{color:var(--input-with-label-placeholder-color);opacity:0}.index-module_hasLabel__sk25A::placeholder{color:var(--input-with-label-placeholder-color);opacity:0}.index-module_resizeVertical__kct5e{resize:vertical}.index-module_textarea__91cCo.index-module_s__EnuHV{min-height:var(--textarea-s-min-height)}.index-module_textarea__91cCo.index-module_m__etAWo{min-height:var(--textarea-m-min-height)}.index-module_textarea__91cCo.index-module_l__pP38o{min-height:var(--textarea-l-min-height)}.index-module_textarea__91cCo:disabled{color:var(--input-disabled-color);cursor:var(--disabled-cursor)}.index-module_textarea__91cCo:read-only{color:var(--input-read-only-color);cursor:var(--disabled-cursor)}.index-module_textarea__91cCo:focus.index-module_hasLabel__sk25A::-webkit-input-placeholder{opacity:1}.index-module_textarea__91cCo:focus.index-module_hasLabel__sk25A::placeholder{opacity:1}.index-module_textarea__91cCo:focus::-webkit-input-placeholder{color:var(--input-focus-placeholder-color)}.index-module_textarea__91cCo:focus::placeholder{color:var(--input-focus-placeholder-color)}.index-module_focusVisible__bLwRO{outline:2px solid var(--focus-color);outline-offset:2px}.index-module_textarea__91cCo.index-module_filled__t8LRd.index-module_hasLabel__sk25A{padding-top:0!important}.index-module_textarea__91cCo.index-module_filled__t8LRd.index-module_hasLabel__sk25A.index-module_s__EnuHV{height:var(--textarea-s-filled-min-height);margin-top:var(--textarea-s-filled-margin-top);min-height:var(--textarea-s-filled-min-height)}.index-module_textarea__91cCo.index-module_filled__t8LRd.index-module_hasLabel__sk25A.index-module_m__etAWo{height:var(--textarea-m-filled-min-height);margin-top:var(--textarea-m-filled-margin-top);min-height:var(--textarea-m-filled-min-height)}.index-module_textarea__91cCo.index-module_filled__t8LRd.index-module_hasLabel__sk25A.index-module_l__pP38o{height:var(--textarea-l-filled-min-height);margin-top:var(--textarea-l-filled-margin-top);min-height:var(--textarea-l-filled-min-height)}.index-module_counter__psEqA{color:var(--color-text-secondary);cursor:text;font-size:10px;opacity:0;padding:0!important;pointer-events:none;position:absolute;right:8px;top:5px;transition:opacity .4s ease-in-out}.index-module_textarea__91cCo:focus~.index-module_counter__psEqA{opacity:1}');var H=o.forwardRef((function(t,r){var d,p,m=t.autoComplete,h=void 0===m?"on":m,_=t.autosize,b=void 0===_||_,f=t.size,v=void 0===f?"s":f,w=t.block,y=void 0!==w&&w,C=t.bottomAddons,z=t.fieldClassName,k=t.className,A=t.dataTestId,H=t.disabled,S=t.error,E=t.hint,F=t.textareaClassName,N=t.label,V=t.leftAddons,W=t.onFocus,O=t.required,j=t.onBlur,B=t.onChange,P=t.onHeightChange,T=t.rightAddons,q=t.maxRows,I=t.minRows,M=t.maxHeight,U=t.resize,D=void 0===U?"none":U,G=t.value,J=t.defaultValue,K=t.maxLength,Q=void 0===K?500:K,X=t.counter,Y=t.rows,Z=void 0===Y?b?1:3:Y,$=e(t,["autoComplete","autosize","size","block","bottomAddons","fieldClassName","className","dataTestId","disabled","error","hint","textareaClassName","label","leftAddons","onFocus","required","onBlur","onChange","onHeightChange","rightAddons","maxRows","minRows","maxHeight","resize","value","defaultValue","maxLength","counter","rows"]),ee=void 0===G,ae=n(null),te=x(!1),oe=te[0],re=te[1],ie=x(J||""),ne=ie[0],le=ie[1],de=c(ae,"keyboard")[0],pe=Boolean(ee?ne:G);i((function(){b&&M&&ae.current&&ae.current.style&&(ae.current.style.maxHeight=M+"px")}),[ae,b,M]);var xe=l((function(e){re(!0),W&&W(e)}),[W]),se=l((function(e){re(!1),j&&j(e)}),[j]),ue=l((function(e){B&&B(e,{value:e.target.value}),ee&&le(e.target.value)}),[B,ee]),ge=a(a({},$),{className:u(R.textarea,R[v],(d={},d[R.hasLabel]=N,d[R.filled]=pe,d[R.resizeVertical]="vertical"===D,d),F),autoComplete:h,disabled:H,onBlur:se,onFocus:xe,onChange:ue,value:ee?ne:G,rows:Z,ref:s([r,ae]),"data-test-id":A});return o.createElement(g,{className:u(k),fieldClassName:u(z,(p={},p[R.focusVisible]=de,p)),size:v,block:y,required:O,disabled:H,filled:pe||oe,focused:oe,error:S,label:N,hint:E,leftAddons:V,rightAddons:T,bottomAddons:C},b?o.createElement(L,a({},ge,{maxLength:Q,maxRows:q,minRows:I,onHeightChange:P})):o.createElement("textarea",a({maxLength:Q},ge,{style:{maxHeight:M}})),X&&o.createElement("span",{className:R.counter},(ee?ne.length:null==G?void 0:G.length)+" / "+(Q||"-")))}));H.defaultProps={autoComplete:"on",autosize:!0,size:"s",block:!1,resize:"none"};export{H as Textarea};
|
package/dist/textarea/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Textarea}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Textarea}from"./component.js";import"../tslib.es6-c1295375.js";import"react";import"react-merge-refs";import"classnames";import"../form-control/component.js";import"../style-inject.es-1f59c1d0.js";import"../hooks/useFocus/index.js";
|
package/dist/toast/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-c1295375.js";import a,{forwardRef as r,useRef as t,useCallback as p,useEffect as x}from"react";import s from"react-merge-refs";import{CSSTransition as n}from"react-transition-group";import i from"classnames";import{useClickOutside as l}from"../hooks/useClickOutside/index.js";import{usePrevious as m}from"../hooks/usePrevious/index.js";import{Popover as d}from"../popover/component.js";import{Portal as g}from"../portal/component.js";import{ToastPlate as c}from"../toast-plate/component.js";import{s as u}from"../style-inject.es-1f59c1d0.js";import"react-popper";import"../stack/context.js";import"../stack/component.js";import"react-dom";import"../portal/utils.js";import"../CheckmarkCircleM-10f50b3f.js";import"../ClockCircleM-9cbd1915.js";import"../CloseS-c17ee568.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var b="index-module_toastPlate__QcyxC",f="index-module_popover__CzEm-",_="index-module_block__qnPJw",h="index-module_fixed__U9hsM",w="index-module_enter__mfllY",v="index-module_enterActive__iRE6x",y="index-module_exit__lf3xl",k="index-module_exitActive__qssLn";u(':root{--text-primary-color:var(--color-text-primary);--text-secondary-color:var(--color-text-secondary);--text-tertiary-color:var(--color-text-tertiary);--border-radius:4px;--focus-color:var(--color-border-link);--font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,sans-serif;--disabled-cursor:not-allowed;--arrow-transform:rotate(180deg);--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--toast-box-shadow:var(--shadow-m)}.index-module_popover__CzEm-,.index-module_toastPlate__QcyxC{box-shadow:var(--toast-box-shadow)}.index-module_popover__CzEm-{border:none;border-radius:var(--toast-plate-border-radius);z-index:110000}.index-module_block__qnPJw{width:100%}.index-module_fixed__U9hsM{bottom:var(--gap-2xl);position:fixed;transition:opacity .15s ease-in-out,-webkit-transform .15s ease-in-out;transition:opacity .15s ease-in-out,transform .15s ease-in-out;transition:opacity .15s ease-in-out,transform .15s ease-in-out,-webkit-transform .15s ease-in-out;z-index:110000}.index-module_fixed__U9hsM.index-module_enter__mfllY{opacity:0;-webkit-transform:scale(.98);transform:scale(.98)}.index-module_fixed__U9hsM.index-module_enterActive__iRE6x,.index-module_fixed__U9hsM.index-module_exit__lf3xl{opacity:1;-webkit-transform:scale(1);transform:scale(1)}.index-module_fixed__U9hsM.index-module_exitActive__qssLn{opacity:0;-webkit-transform:scale(.98);transform:scale(.98)}');var C={enter:w,enterActive:v,exit:y,exitActive:k},j=r((function(r,u){var w,v=r.anchorElement,y=r.position,k=r.offset,j=r.open,E=r.autoCloseDelay,M=void 0===E?3e3:E,P=r.className,S=r.bottomOffset,U=r.style,N=void 0===U?{}:U,A=r.block,T=r.onMouseEnter,z=r.onMouseLeave,L=r.onTouchStart,O=r.onClose,q=r.getPortalContainer,R=e(r,["anchorElement","position","offset","open","autoCloseDelay","className","bottomOffset","style","block","onMouseEnter","onMouseLeave","onTouchStart","onClose","getPortalContainer"]),D=t(null),F=t(0),H=m(j),I=p((function(){clearTimeout(F.current),F.current=window.setTimeout(O,M)}),[M,O]),J=p((function(){clearTimeout(F.current)}),[]),Q=p((function(e){J(),T&&T(e)}),[T,J]),Y=p((function(e){I(),z&&z(e)}),[z,I]),B=p((function(e){J(),L&&L(e)}),[L,J]),G=p((function(){O(),J()}),[O,J]);l(D,G),x((function(){return j!==H&&j&&I(),function(){J()}}),[j,H,I,J]);var K={block:A,onClose:O,onMouseEnter:Q,onMouseLeave:Y,onTouchStart:B,ref:s([u,D])};return v?a.createElement(d,{open:j,anchorElement:v,position:y,offset:k,popperClassName:i(f,(w={},w[_]=A,w)),transition:{timeout:150},getPortalContainer:q},a.createElement(c,o({},R,{style:N,className:P},K))):a.createElement(g,{getPortalContainer:q},a.createElement(n,{unmountOnExit:!0,in:j,timeout:150,classNames:C},a.createElement(c,o({},R,{className:i(h,b,P),style:o(o({},N),{bottom:S&&S+"px"})},K))))}));export{j as Toast};
|
package/dist/toast/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Toast}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Toast}from"./component.js";import"../tslib.es6-c1295375.js";import"react";import"react-merge-refs";import"react-transition-group";import"classnames";import"../hooks/useClickOutside/index.js";import"../hooks/usePrevious/index.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../style-inject.es-1f59c1d0.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-10f50b3f.js";import"../ClockCircleM-9cbd1915.js";import"../CloseS-c17ee568.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as
|
|
1
|
+
import{_ as t,a as e}from"../tslib.es6-c1295375.js";import o from"react";import i from"react-dom";import r from"classnames";import{ToastPlate as s}from"../toast-plate/component.js";import{useTimer as n}from"./use-timer.js";import{s as a}from"../style-inject.es-1f59c1d0.js";import"../CheckmarkCircleM-10f50b3f.js";import"../ClockCircleM-9cbd1915.js";import"../CloseS-c17ee568.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var l,d="index-module_isVisible__kvaxX",m="index-module_mobile__ARgiW",c="index-module_isClosing__fMPDi",p="index-module_toastContent__WxLt6";a(':root{--text-primary-color:var(--color-text-primary);--text-secondary-color:var(--color-text-secondary);--text-tertiary-color:var(--color-text-tertiary);--border-radius:4px;--focus-color:var(--color-border-link);--font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,sans-serif;--disabled-cursor:not-allowed;--arrow-transform:rotate(180deg);--notification-desktop-content-width:278px}.index-module_notificationComponent__vue40{display:inline-flex;max-width:calc(100vw - var(--gap-xl));position:fixed;right:var(--gap-s);-webkit-transform:translateY(-500px);transform:translateY(-500px);transition:-webkit-transform .2s ease-out;transition:transform .2s ease-out;transition:transform .2s ease-out,-webkit-transform .2s ease-out;-webkit-user-select:none;user-select:none;visibility:hidden;width:calc(100% - var(--gap-xl));z-index:999999999999}.index-module_isVisible__kvaxX{-webkit-transform:translate(0);transform:translate(0);visibility:visible}.index-module_mobile__ARgiW{width:100%!important}.index-module_isClosing__fMPDi{-webkit-transform:translate(100vw);transform:translate(100vw);transition:-webkit-transform .2s ease-out;transition:transform .2s ease-out;transition:transform .2s ease-out,-webkit-transform .2s ease-out}.index-module_progress__MhyUZ{bottom:6px;box-sizing:border-box;height:5px;position:absolute;width:90%}@media screen and (min-width:600px){.index-module_notificationComponent__vue40{right:var(--gap-4xl);-webkit-transform:translate(0);transform:translate(0);width:auto}.index-module_isClosing__fMPDi{-webkit-transform:translate(calc(var(--notification-desktop-content-width) + var(--gap-4xl) + 300px));transform:translate(calc(var(--notification-desktop-content-width) + var(--gap-4xl) + 300px))}.index-module_toastContent__WxLt6{width:var(--notification-desktop-content-width)}}'),"undefined"!=typeof window&&((l=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(l));var u=function(a){var u,f=a.className;a.children;var x=a.offset,v=void 0===x?108:x,_=a.hasCloser,b=void 0===_||_;a.onClose;var w=a.text;a.onMouseEnter,a.onMouseLeave;var h=a.style,g=a.position,y=void 0===g?"bottom":g,C=a.delay,k=void 0===C?3e3:C,j=t(a,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var M,L=window.innerWidth>600;l.setAttribute("style",(M="position: fixed; z-index: 99999999;",L?M+" "+y+": "+v+"px; right: 30px":M+" top: "+v+"px; right: 30px; left: 30px"));var E=document.createElement("div");E.classList.remove(c),E.setAttribute("id","toast_wrap-"+Math.random()),E.setAttribute("style","margin-bottom: 18px"),l.appendChild(E);var A=function(){E.classList.add(c),setTimeout((function(){null==l||l.removeChild(E)}),300)},N=n(A,k),W=N.pause,z=N.resume;return E.addEventListener("mouseenter",(function(){W()})),E.addEventListener("mouseleave",(function(){z()})),i.render(o.createElement(s,e({hasCloser:b,className:r((u={},u[d]=!0,u[m]=!L,u),f),contentClassName:p,style:e({right:0,position:"relative"},h),role:"alert",onClose:A},j),w),E),null};export{u as ToastNotifier};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastNotifier}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastNotifier}from"./component.js";import"../tslib.es6-c1295375.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"../CheckmarkCircleM-10f50b3f.js";import"../ClockCircleM-9cbd1915.js";import"../CloseS-c17ee568.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../style-inject.es-1f59c1d0.js";import"./use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as
|
|
1
|
+
import{_ as o,a as e}from"../tslib.es6-c1295375.js";import a,{forwardRef as r,useCallback as t}from"react";import{A as l,C as n}from"../CheckmarkCircleM-10f50b3f.js";import{C as d}from"../ClockCircleM-9cbd1915.js";import{C as i}from"../CloseS-c17ee568.js";import p from"classnames";import{Button as x}from"../button/component.js";import{s as c}from"../style-inject.es-1f59c1d0.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var s={component:"index-module_component__2FCoC",hasCloser:"index-module_hasCloser__ig0bb",block:"index-module_block__aZI2E",positive:"index-module_positive__k8leE",checkmark:"index-module_checkmark__Uk-P-",attention:"index-module_attention__qo9dl",negative:"index-module_negative__rdTB6",default:"index-module_default__yyLQR",neutral:"index-module_neutral__KAatw",black:"index-module_black__c7gBa",closeButton:"index-module_closeButton__mFhAC",contentWrap:"index-module_contentWrap__-P3Jg",content:"index-module_content__ING2J",leftAddons:"index-module_leftAddons__Odkdf",title:"index-module_title__QZFUh",children:"index-module_children__tKSv7",bottomAddons:"index-module_bottomAddons__ixVcA"};c(':root{--text-primary-color:var(--color-text-primary);--text-secondary-color:var(--color-text-secondary);--text-tertiary-color:var(--color-text-tertiary);--border-radius:4px;--focus-color:var(--color-border-link);--font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,sans-serif;--disabled-cursor:not-allowed;--arrow-transform:rotate(180deg);--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--toast-plate-bg-color:var(--color-bg-secondary-inverted);--toast-plate-bg-color-negative:var(--color-bg-negative);--toast-plate-bg-color-positive:var(--color-bg-positive);--toast-plate-border-radius:8px;--toast-plate-title-font-weight:700;--toast-plate-action-align:center;--toast-plate-action-padding:0 var(--gap-2xl);--toast-plate-action-divider-display:block}.index-module_component__2FCoC{background-color:var(--toast-plate-bg-color);border-radius:var(--toast-plate-border-radius);box-sizing:border-box;color:var(--color-text-primary);display:inline-flex;flex-direction:column;min-height:56px;padding:var(--gap-m);position:relative;width:100%}.index-module_component__2FCoC.index-module_hasCloser__ig0bb{padding-right:56px}.index-module_component__2FCoC.index-module_block__aZI2E{display:flex;width:100%}.index-module_component__2FCoC.index-module_positive__k8leE{background-color:color-mix(in srgb,var(--color-bg-positive) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-positive)}.index-module_component__2FCoC.index-module_positive__k8leE .index-module_checkmark__Uk-P- svg{color:var(--color-graphic-positive)}.index-module_component__2FCoC.index-module_attention__qo9dl{background-color:color-mix(in srgb,var(--color-bg-attention) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-attention)}.index-module_component__2FCoC.index-module_attention__qo9dl .index-module_checkmark__Uk-P- svg{color:var(--color-graphic-attention)}.index-module_component__2FCoC.index-module_negative__rdTB6{background-color:color-mix(in srgb,var(--color-bg-negative) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-negative)}.index-module_component__2FCoC.index-module_negative__rdTB6 .index-module_checkmark__Uk-P- svg{color:var(--color-graphic-negative)}.index-module_component__2FCoC.index-module_default__yyLQR{background-color:color-mix(in srgb,var(--color-bg-accent) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-accent)}.index-module_component__2FCoC.index-module_default__yyLQR .index-module_checkmark__Uk-P- svg{color:var(--color-graphic-accent)}.index-module_component__2FCoC.index-module_neutral__KAatw{background-color:var(--color-bg-secondary);border:1px solid var(--color-border-primary)}.index-module_component__2FCoC.index-module_neutral__KAatw .index-module_checkmark__Uk-P- svg{color:var(--color-graphic-secondary)}.index-module_component__2FCoC.index-module_black__c7gBa{background-color:var(--color-bg-primary-inverted);color:var(--color-text-primary-inverted)}.index-module_component__2FCoC.index-module_black__c7gBa .index-module_checkmark__Uk-P- svg{color:var(--color-graphic-primaty-inverted)}.index-module_component__2FCoC.index-module_black__c7gBa .index-module_closeButton__mFhAC{color:var(--color-text-primary-inverted)!important}.index-module_contentWrap__-P3Jg{display:flex;justify-content:space-between}.index-module_content__ING2J{display:flex;flex:1;flex-direction:column;padding-left:12px}.index-module_leftAddons__Odkdf{align-items:flex-start;display:flex;flex-shrink:0;padding-right:var(--gap-s)}.index-module_title__QZFUh{font-family:var(--font-family);font-size:16px;font-weight:700;font-weight:var(--toast-plate-title-font-weight);line-height:24px;margin-bottom:4px}.index-module_children__tKSv7{font-family:var(--font-family);font-size:12px;font-weight:500;line-height:24px;margin-top:4px}.index-module_bottomAddons__ixVcA{margin-top:16px}.index-module_closeButton__mFhAC{align-items:flex-start!important;bottom:var(--gap-s)!important;color:var(--color-text-primary)!important;cursor:pointer!important;display:flex!important;padding:var(--gap-2xs)!important;position:absolute!important;right:var(--gap-s)!important;top:var(--gap-m)!important;transition:opacity .2s ease-out!important}.index-module_closeButton__mFhAC:hover{opacity:.7!important}.index-module_closeButton__mFhAC:active{opacity:.5!important}');var m={negative:a.createElement(l,null),attention:a.createElement(l,null),positive:a.createElement(n,null),default:a.createElement(d,null),neutral:a.createElement(d,null),black:null},_=r((function(r,l){var n,d=r.dataTestId,c=r.className,_=r.contentClassName,g=r.hasCloser,b=r.leftAddons,u=r.view,v=void 0===u?"default":u,h=r.title,f=r.children,k=r.bottomAddons,C=r.block,y=r.onClose,w=o(r,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","bottomAddons","block","onClose"]),F=t((function(o){y&&y(o)}),[y]);return a.createElement("div",e({ref:l,className:p(s.component,s[v],(n={},n[s.block]=C,n[s.hasCloser]=g,n),c),"data-test-id":d},w),a.createElement("div",{className:s.contentWrap},b&&a.createElement("div",{className:s.leftAddons},m[v]),m[v]&&!b&&a.createElement("div",{className:s.checkmark},m[v]),a.createElement("div",{className:p(_,s.content)},h&&a.createElement("div",{className:s.title},h),f&&a.createElement("div",{className:s.children},f),k&&a.createElement("div",{className:s.bottomAddons},k)),g&&a.createElement(x,e({className:p(s.closeButton),view:"ghost"},{onClick:F},{"aria-label":"закрыть",leftAddons:a.createElement(i,null)}))))}));export{_ as ToastPlate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastPlate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastPlate}from"./component.js";import"../tslib.es6-c1295375.js";import"react";import"../CheckmarkCircleM-10f50b3f.js";import"../ClockCircleM-9cbd1915.js";import"../CloseS-c17ee568.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../style-inject.es-1f59c1d0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as r}from"../tslib.es6-c1295375.js";import p,{useState as a,useRef as o,useCallback as e,useEffect as n,cloneElement as t}from"react";import x from"react-node-resolver";import s from"classnames";import{Popover as g}from"../popover/component.js";import{s as i}from"../style-inject.es-1f59c1d0.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";var u="index-module_component__KCXt7",l="index-module_popper__M9HfK",c="index-module_target__nVe99";i(':root{--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--tooltip-border-color:var(--color-border-primary);--tooltip-z-index:1}.index-module_component__KCXt7{font-family:var(--font-family);font-size:12px;font-weight:500;line-height:24px;padding:var(--gap-s) var(--gap-m)}.index-module_popper__M9HfK{border-radius:var(--radius-m)}.index-module_target__nVe99{cursor:pointer}');var d=function(i){var d=i.children,m=i.content,b=i.trigger,f=void 0===b?"hover":b,h=i.onCloseDelay,v=void 0===h?300:h,w=i.onOpenDelay,_=void 0===w?300:w,C=i.dataTestId,y=i.onClose,T=i.onOpen,k=i.open,M=i.getPortalContainer,N=i.offset,O=void 0===N?[0,10]:N,j=i.position,E=i.contentClassName,S=i.arrowClassName,K=i.popoverClassName,R=i.updatePopover,D=a(!!k),F=D[0],H=D[1],P=a(null),z=P[0],I=P[1],L=p.useRef(null),U=p.useRef(null),V=o(0),X=function(){F||(H(!0),T&&T())},A=e((function(){F&&(H(!1),y&&y())}),[y,F]),B=function(r){return(!L.current||!L.current.contains(r))&&(!U.current||!U.current.contains(r))};n((function(){var r=function(r){var p=r.target;B(p)&&A()};return document.body.addEventListener("click",r),function(){document.body.removeEventListener("click",r),clearTimeout(V.current)}}),[A]);var q,G={onClick:function(r){d.props.onClick&&d.props.onClick(r),F?A():X()}},J={onMouseOver:function(r){d.props.onMouseOver&&d.props.onMouseOver(r),clearTimeout(V.current),V.current=window.setTimeout((function(){X()}),_)},onMouseOut:function(r){d.props.onMouseOut&&d.props.onMouseOut(r),clearTimeout(V.current),V.current=window.setTimeout((function(){A()}),v)},onTouchStart:function(r){d.props.onTouchStart&&d.props.onTouchStart(r);var p=r.target;clearTimeout(V.current),B(p)?V.current=window.setTimeout((function(){A()}),v):X()}},Q=void 0===k?F:k,W=e((function(r){L.current=r,I(L.current)}),[]);return p.createElement(p.Fragment,null,p.createElement(x,{innerRef:W},(q=function(p){var a={className:s(c,p.className)};switch(f){case"click":return r(r({},a),G);case"hover":return r(r({},a),J);default:return{}}}(d.props),t(d,q))),z&&p.createElement(g,{anchorElement:z,open:Q,getPortalContainer:M,arrowClassName:S,popperClassName:s(l,K),offset:O,withArrow:!0,position:j,update:R},function(){var a=function(){var p={ref:U,"data-test-id":C,className:s(u,E)};return"hover"===f?r(r({},p),J):p}();return p.createElement("div",r({},a),m)}()))};export{d as Tooltip};
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tooltip}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Tooltip}from"./component.js";import"../tslib.es6-c1295375.js";import"react";import"react-node-resolver";import"classnames";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"../style-inject.es-1f59c1d0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Text as
|
|
1
|
+
import{Text as t}from"./text/component.js";import{Title as o}from"./title/index.js";import"react";import"classnames";import"../colors.module-bcab070d.js";import"../style-inject.es-1f59c1d0.js";import"../tslib.es6-c1295375.js";import"./title/component.js";var e={Title:o,Text:t};export{e as Typography};
|
package/dist/typography/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-
|
|
1
|
+
export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-bcab070d.js";import"../style-inject.es-1f59c1d0.js";import"./title/index.js";import"../tslib.es6-c1295375.js";import"./title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"react";import p from"classnames";import{c as x}from"../../colors.module-bcab070d.js";import{s as e}from"../../style-inject.es-1f59c1d0.js";var r={paragraph:"index-module_paragraph__msaC8","primary-medium":"index-module_primary-medium__LhYfj","primary-small":"index-module_primary-small__lYM88",title:"index-module_title__O9czO",caps:"index-module_caps__l7Eqh",uppercase:"index-module_uppercase__JVKeT",bold:"index-module_bold__RuoQM",medium:"index-module_medium__YL230",regular:"index-module_regular__h8gTH",through:"index-module_through__3EDOt",component:"index-module_component__MPBKM"};e(':root{--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--text-paragraph-margin-bottom:0 0 var(--gap-s)}.index-module_paragraph__msaC8{margin:var(--text-paragraph-margin-bottom);padding:0}.index-module_primary-medium__LhYfj{font-family:var(--font-family);font-size:14px;font-weight:500;line-height:24px}.index-module_primary-small__lYM88{font-family:var(--font-family);font-size:12px;font-weight:500;line-height:24px}.index-module_title__O9czO{font-size:14px}.index-module_caps__l7Eqh,.index-module_title__O9czO{font-family:var(--font-family);font-weight:500;line-height:20px}.index-module_caps__l7Eqh{font-size:12px}.index-module_uppercase__JVKeT{text-transform:uppercase}.index-module_bold__RuoQM{font-weight:700}.index-module_medium__YL230{font-weight:500}.index-module_regular__h8gTH{font-weight:400}.index-module_through__3EDOt{text-decoration:line-through}.index-module_component__MPBKM{color:inherit;font-family:var(--font-family);font-size:16px;font-weight:500;line-height:20px}');var g=function(e){var g,o=e.tag,d=void 0===o?"span":o,l=e.through,i=void 0!==l&&l,n=e.weight,t=void 0===n?"regular":n,s=e.uppercase,m=e.color,h=e.view,_=e.className,u=e.dataTestId,b=e.children;return a.createElement(d,{className:p((g={},g[r.paragraph]="p"===d,g[r.uppercase]=s,g[r.through]=i,g[r[h]]=h,g),_,m&&x[m],r[t]),"data-test-id":u},b)};export{g as Text};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-
|
|
1
|
+
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-bcab070d.js";import"../../style-inject.es-1f59c1d0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import r from"classnames";import{c as
|
|
1
|
+
import e from"react";import r from"classnames";import{c as t}from"../../colors.module-bcab070d.js";import"../../style-inject.es-1f59c1d0.js";var a=function(a){var o,s=a.tag,i=void 0===s?"div":s,m=a.view,d=void 0===m?"medium":m,c=a.weight,n=void 0===c?"medium":c,l=a.defaultMargins,p=void 0!==l&&l,u=a.color,v=void 0===u?"primary":u,f=a.className,g=a.dataTestId,h=a.uppercase,j=a.through,y=a.children,b=a.styles;return e.createElement(i,{className:r(b.component,f,b["montserrat-"+d],p&&b["margins-"+d],(o={},o[b.uppercase]=h,o[b.through]=j,o),b[n],v&&t[v]),"data-test-id":g},y)};export{a as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"../../tslib.es6-c1295375.js";import x from"react";import{Title as p}from"./component.js";import{s as e}from"../../style-inject.es-1f59c1d0.js";import"classnames";import"../../colors.module-bcab070d.js";var r={component:"common-module_component__l-zRT",bold:"common-module_bold__R07W3",medium:"common-module_medium__IcxXn",regular:"common-module_regular__2NoXt"};e(".common-module_component__l-zRT{margin:0;padding:0}.common-module_bold__R07W3{font-weight:700!important}.common-module_medium__IcxXn{font-weight:500!important}.common-module_regular__2NoXt{font-weight:400!important}");var o={"montserrat-xlarge":"index-module_montserrat-xlarge__hdgbt","montserrat-large":"index-module_montserrat-large__Go4Ju","montserrat-medium":"index-module_montserrat-medium__KJdm0","montserrat-small":"index-module_montserrat-small__T0UeA","montserrat-xsmall":"index-module_montserrat-xsmall__9757S","montserrat-xxsmall":"index-module_montserrat-xxsmall__5pe-b","margins-xlarge":"index-module_margins-xlarge__o0X6K","margins-large":"index-module_margins-large__njSHO","margins-medium":"index-module_margins-medium__ir-Bn","margins-small":"index-module_margins-small__F4y4n","margins-xsmall":"index-module_margins-xsmall__69GSc",uppercase:"index-module_uppercase__NG5Qa",through:"index-module_through__ezTzC"};e(':root{--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.index-module_montserrat-xlarge__hdgbt{font-family:var(--font-family);font-size:48px;font-weight:400;line-height:64px}.index-module_montserrat-large__Go4Ju{font-family:var(--font-family);font-size:40px;font-weight:400;line-height:48px}.index-module_montserrat-medium__KJdm0{font-family:var(--font-family);font-size:32px;font-weight:400;line-height:40px}.index-module_montserrat-small__T0UeA{font-family:var(--font-family);font-size:24px;font-weight:400;line-height:32px}.index-module_montserrat-xsmall__9757S{font-family:var(--font-family);font-size:20px;font-weight:400;line-height:24px}.index-module_montserrat-xxsmall__5pe-b{font-family:var(--font-family);font-size:18px;font-weight:500;line-height:24px}.index-module_margins-xlarge__o0X6K{margin:0 0 var(--gap-xl)}.index-module_margins-large__njSHO,.index-module_margins-medium__ir-Bn{margin:var(--gap-4xl) 0 var(--gap-xl)}.index-module_margins-small__F4y4n,.index-module_margins-xsmall__69GSc{margin:var(--gap-3xl) 0 var(--gap-m)}.index-module_uppercase__NG5Qa{text-transform:uppercase}.index-module_through__ezTzC{text-decoration:line-through}');var m=function(e){return x.createElement(p,a({},e,{styles:a(a({},r),o)}))};export{m as Title};
|