@alphakits/ui 1.27.40 → 1.27.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/back-button/component.js +1 -1
- package/dist/back-button/index.js +1 -1
- package/dist/base-card/component.d.ts +0 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/box/component.d.ts +2 -1
- package/dist/box/component.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-b51476c0.js → capitalize-7c5db72a.js} +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/component-952ec4fa.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/empty-page/component.js +1 -1
- package/dist/empty-page/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/form-loading/index.js +1 -1
- package/dist/form/components/form-wrapper/index.js +1 -1
- package/dist/form/components/index.d.ts +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/base-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/image-base.d.ts +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/types.d.ts +5 -22
- package/dist/image/types.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image/utils.d.ts +1 -3
- package/dist/image/utils.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index-135cab82.js +1 -0
- package/dist/index-32ebbe84.js +1 -0
- package/dist/{index-85176a0a.js → index-4ee65b41.js} +1 -1
- package/dist/{index-32ddaa07.js → index-593e516a.js} +1 -1
- package/dist/{index-5fe06b3e.js → index-8bacc648.js} +1 -1
- package/dist/{index-300e4b0a.js → index-8daaeaf2.js} +1 -1
- package/dist/{index-3d96d5d9.js → index-b0437de9.js} +1 -1
- package/dist/{index-c67829ae.js → index-b90ef332.js} +1 -1
- package/dist/{index-4fb5e31d.js → index-c6aae0cf.js} +1 -1
- package/dist/index-d23adc0f.js +1 -0
- package/dist/{index-00e35ae5.js → index-d29cbd13.js} +1 -1
- package/dist/{index-fdacf967.js → index-ed02b70a.js} +1 -1
- package/dist/{index-9c3e1cca.js → index-fed0fbc5.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.ts +0 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/{isSymbol-64925213.js → isSymbol-86a6ad33.js} +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/page-with-controls/component.js +1 -1
- package/dist/page-with-controls/index.js +1 -1
- package/dist/{parse-query-params-acdb7e55.js → parse-query-params-e3bc19f8.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/options-list/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/{use-image-render-component-d6c046b1.d.ts → use-image-render-component-e7e22720.d.ts} +3 -3
- package/dist/use-image-render-component-e7e22720.js +1 -0
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/PhotoS-47ae71fb.js +0 -1
- package/dist/component-a0f8d4c4.js +0 -1
- package/dist/index-17837953.js +0 -1
- package/dist/index-b5af2c0a.js +0 -1
- package/dist/index-e272d121.js +0 -1
- package/dist/pure-image/component.d.ts +0 -13
- package/dist/pure-image/component.js +0 -1
- package/dist/pure-image/index.d.ts +0 -1
- package/dist/pure-image/index.js +0 -1
- package/dist/pure-image/use-image-state.d.ts +0 -12
- package/dist/pure-image/use-image-state.js +0 -1
- package/dist/pure-image/utils/get-chars-from-text.d.ts +0 -2
- package/dist/pure-image/utils/get-chars-from-text.js +0 -1
- package/dist/use-image-render-component-d6c046b1.js +0 -1
- /package/dist/{ActionCopyM-b640e6b6.js → ActionCopyM-e9fc8d9d.js} +0 -0
- /package/dist/{CancelM-179fc606.js → CancelM-bb891827.js} +0 -0
- /package/dist/{CheckmarkCircleM-7952077b.js → CheckmarkCircleM-26bb0af6.js} +0 -0
- /package/dist/{ChevronBackM-07957d5f.js → ChevronBackM-ed3f8467.js} +0 -0
- /package/dist/{ChevronBackS-a0fe11a6.js → ChevronBackS-79ceb8ee.js} +0 -0
- /package/dist/{ChevronDownS-d856aca2.js → ChevronDownS-a7b81ae7.js} +0 -0
- /package/dist/{ChevronForwardM-42d072a9.js → ChevronForwardM-9fe2622a.js} +0 -0
- /package/dist/{ChevronForwardS-3b7abbb0.js → ChevronForwardS-9c0df525.js} +0 -0
- /package/dist/{ClockCircleM-f4c80946.js → ClockCircleM-73d9a2f3.js} +0 -0
- /package/dist/{CloseM-312c58e8.js → CloseM-f554ab2d.js} +0 -0
- /package/dist/{CloseS-18b4630a.js → CloseS-c38027c6.js} +0 -0
- /package/dist/{ControllerS-e5f76738.js → ControllerS-2a79ebb0.js} +0 -0
- /package/dist/{EditS-c3017fc3.js → EditS-c6ec6ae9.js} +0 -0
- /package/dist/{MinusM-bcac96d3.js → MinusM-31b5bb10.js} +0 -0
- /package/dist/{MoverS-2a6010b0.js → MoverS-9759214d.js} +0 -0
- /package/dist/{NextS-52c4b834.js → NextS-77c04e95.js} +0 -0
- /package/dist/{PlusS-4ea0a677.js → PlusS-a148b7df.js} +0 -0
- /package/dist/{SearchM-8de143f0.js → SearchM-938ad4ad.js} +0 -0
- /package/dist/{TrashM-69023b5b.js → TrashM-ffa10c2e.js} +0 -0
- /package/dist/{YoutubeM-94db7c98.js → YoutubeM-26454381.js} +0 -0
- /package/dist/{_commonjsHelpers-bc812022.js → _commonjsHelpers-56db068a.js} +0 -0
- /package/dist/{colors.module-9986e423.js → colors.module-88cf361e.js} +0 -0
- /package/dist/{component-a13ffe9e.d.ts → component-0be976c0.d.ts} +0 -0
- /package/dist/{component-a13ffe9e.js → component-0be976c0.js} +0 -0
- /package/dist/{component-a0f8d4c4.d.ts → component-952ec4fa.d.ts} +0 -0
- /package/dist/{contact-block-e7382325.d.ts → contact-block-8b1b46ba.d.ts} +0 -0
- /package/dist/{contact-block-e7382325.js → contact-block-8b1b46ba.js} +0 -0
- /package/dist/{gutters.module-c0652b5d.js → gutters.module-ddaacb2d.js} +0 -0
- /package/dist/{index-e947eabe.js → index-2dfc1a26.js} +0 -0
- /package/dist/{index-00e35ae5.d.ts → index-d29cbd13.d.ts} +0 -0
- /package/dist/{index-2f88ed05.js → index-d9eb6b94.js} +0 -0
- /package/dist/{intersection-observer-8686904b.js → intersection-observer-a43c672a.js} +0 -0
- /package/dist/{parse-query-params-acdb7e55.d.ts → parse-query-params-e3bc19f8.d.ts} +0 -0
- /package/dist/{slide-623ee539.d.ts → slide-1172c256.d.ts} +0 -0
- /package/dist/{slide-623ee539.js → slide-1172c256.js} +0 -0
- /package/dist/{step-bar-206f9091.d.ts → step-bar-52184e7c.d.ts} +0 -0
- /package/dist/{step-bar-206f9091.js → step-bar-52184e7c.js} +0 -0
- /package/dist/{tslib.es6-160c07ed.js → tslib.es6-601266b7.js} +0 -0
package/dist/table/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./components/cell/component.js";export{T as Table}from"../component-
|
|
1
|
+
import"./components/cell/component.js";export{T as Table}from"../component-952ec4fa.js";import"../tslib.es6-601266b7.js";import"react";import"classnames";import"../component-0be976c0.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-88cf361e.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/component.js";import"./components/cells/index.js";import"../ChevronForwardS-9c0df525.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/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"../ControllerS-2a79ebb0.js";import"../PlusS-a148b7df.js";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"../CloseS-c38027c6.js";import"../SearchM-938ad4ad.js";import"./hooks/use-table-data.js";import"../parse-query-params-e3bc19f8.js";import"../_commonjsHelpers-56db068a.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"../use-image-render-component-e7e22720.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image/component.js";import"../skeleton/component.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-601266b7.js";import t from"react";import i from"classnames";import{C as o}from"../../../component-0be976c0.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-88cf361e.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var r={cell:"index-module_cell__SVZPV",right:"index-module_right__30pJO",children:"index-module_children__X0572",is_div:"index-module_is_div__XHlH-"},s=function(s){var l,a,n,m=s.dataTestID,d=s.className,c=s.children,p=s.title,h=s.subtitle,_=s.tableProps,g=s.cellProps,u=s.addon,j=s.align,v=s.width,y=s.tag,x=void 0===y?"td":y;return t.createElement(x,e({"data-test-id":m,className:i(r.cell,d,(l={},l[r.is_div]="div"===x,l)),style:{width:v}},_),c?t.createElement("div",{className:i(r.children,(a={},a[r.center]="center"===j,a[r.right]="right"===j,a))},c):t.createElement(o.Base,e({title:void 0===p?"-":p,subtitle:h,className:i((n={},n[r.center]="center"===j,n[r.right]="right"===j,n)),addon:u},g)))};export{s as TableCell};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TableCell}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{TableCell}from"./component.js";import"../../../tslib.es6-601266b7.js";import"react";import"classnames";import"../../../component-0be976c0.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-88cf361e.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{C as r}from"../../../ChevronForwardS-
|
|
1
|
+
import e from"react";import{C as r}from"../../../ChevronForwardS-9c0df525.js";import o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-88cf361e.js";import"../../../typography/title/index.js";import"../../../tslib.es6-601266b7.js";import"../../../typography/title/component.js";var a={header_row:"index-module_header_row__-IYYq",cell:"index-module_cell__c2wSL",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",DESC:"index-module_DESC__p2eV7",ASC:"index-module_ASC__fIiQ-"};function c(c){var l=c.columns,n=c.sort,m=c.order,s=c.addParam;return e.createElement("thead",null,e.createElement("tr",{className:a.header_row},l.map((function(c){var l,d,i=c.accessor&&n===c.accessor,p=i&&"ASC"===m?"DESC":"ASC";return e.createElement("th",{className:o(a.cell,(l={},l[a.clickable]=c.sort,l)),align:c.align,style:{width:c.width||"auto"},onClick:c.sort?function(){return s({order:p,sort:c.accessor})}:void 0},e.createElement(t.Text,{className:a.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},c.header,c.sort&&e.createElement("span",{className:o(a.arrow,a[p],(d={},d[a.accent]=i,d))},e.createElement(r,null))))}))))}export{c as Cells};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-
|
|
1
|
+
import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-88cf361e.js";import"../../../typography/title/index.js";import"../../../tslib.es6-601266b7.js";import"../../../typography/title/component.js";var r="index-module_empty_list__dwgN3",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{view:"title"},o(p)("emptyList")))};export{m as EmptyList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-
|
|
1
|
+
import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-88cf361e.js";import"../../../typography/title/index.js";import"../../../tslib.es6-601266b7.js";import"../../../typography/title/component.js";var r="index-module_empty_list__FWx71",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{view:"title"},o(p)("error")))};export{m as Error};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{memo as e}from"react";import r from"classnames";import{TableCell as o}from"../cell/component.js";import"../../../tslib.es6-
|
|
1
|
+
import t,{memo as e}from"react";import r from"classnames";import{TableCell as o}from"../cell/component.js";import"../../../tslib.es6-601266b7.js";import"../../../component-0be976c0.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-88cf361e.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__tJ38Q",tr:"index-module_tr__bQ4Yc",aniVertical:"index-module_aniVertical__QAeK7"},m=e((function(e){var m=e.columnsLength;return t.createElement(t.Fragment,null,new Array(5).fill(1).map((function(){return t.createElement("tr",{className:r(n.row,n.tr)},new Array(m).fill(1).map((function(){return t.createElement(o,null,t.createElement("div",{className:n.td,style:{width:Math.floor(51*Math.random())+50+"%"}}))})))})))}));export{m as Loading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{C as t}from"../../../ChevronForwardS-
|
|
1
|
+
import e from"react";import{C as t}from"../../../ChevronForwardS-9c0df525.js";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as a}from"../../../typography/component.js";import{translate as r}from"../../languages/index.js";import"../../../tslib.es6-601266b7.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-88cf361e.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_pagination_wrap__kmile",m="index-module_pagination__36rf5",l="index-module_pages_info__9QuwE",s="index-module_prev_btn__UnDy5",c="index-module_disabled_btn__G6J6W",d="index-module_pagination_btn__vexgb",p="index-module_btn__-Zrx2",u="index-module_active__F46kP",_="index-module_select__XysEX";var g=function(g){var f,v,h=g.pagesCount,x=g.currentPage,E=g.recordsPerPage,y=void 0===E?30:E,b=g.total,j=g.language,w=g.addParam,k=function(e,t){for(var n=e-2,o=e+2+1,a=[],r=[],i=0,m=1;m<=t;m++)(1===m||m===t||m>=n&&m<o)&&a.push(m);return a.forEach((function(e){i&&(e-i==2?r.push(i+1):e-i!=1&&r.push("...")),r.push(e),i=e})),r}(x,h),N=1===x,C=x===h;return e.createElement("div",{className:i},e.createElement("div",{className:l},e.createElement(a.Text,{view:"title",weight:"medium",color:"secondary"},r(j)("totalCount")),e.createElement(a.Text,{view:"title",weight:"medium",color:"primary"},b)),k.length>1&&e.createElement("div",{className:m},e.createElement(o,{className:n(s,p,(f={},f[c]=N,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return w({page:x-1})},disabled:N}),k.map((function(t,a){var r;return Number.isFinite(t)?e.createElement(o,{className:n(d,(r={},r[u]=t===x,r)),size:"xs",view:"ghost",key:t,onClick:function(){return w({page:t})}},t):e.createElement(o,{key:t+a,className:n(d),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(p,(v={},v[c]=C,v)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){w({page:x+1})},disabled:C})),e.createElement("select",{value:y,className:_,onChange:function(e){w({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},r(j)("resultsOnPage")+" "+t+" ")}))))};export{g as Pagination};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as
|
|
1
|
+
import e,{useState as t,useEffect as a,useCallback as r}from"react";import{C as o}from"../../../ControllerS-2a79ebb0.js";import{P as n}from"../../../PlusS-a148b7df.js";import{useDebounce as s}from"rooks";import{Button as l}from"../../../button/component.js";import{Flex as m}from"../../../flex/component.js";import{HeaderSearch as i}from"../../../header-search/component.js";import{translate as c}from"../../languages/index.js";import"../../../tslib.es6-601266b7.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../CloseS-c38027c6.js";import"../../../SearchM-938ad4ad.js";var d="index-module_table_header__GXu4u",p="index-module_actions__GZKJC",u="index-module_leftHeaderAddons__W8Ybf",f="index-module_tags__PpKzF",h="index-module_buttons__3CQYG",_=function(_){var x=_.tags,g=_.searchPlaceholder,v=void 0===g?"Type something..":g,b=_.searchText,j=_.hideSearch,C=_.rightHeaderAddons,E=_.leftHeaderAddons,k=_.addParam,T=_.onCreateClick,A=_.onFiltersClick,N=_.createButtonLabel,P=_.showFiltersButton,S=_.filtersButtonLabel,F=_.language,w=t(b),y=w[0],z=w[1],B=t(b),G=B[0],H=B[1];a((function(){var e=(G||"").trim();e?k({searchText:e,page:1}):b&&k({searchText:"",page:1})}),[G]);var K=s(H,500),L=r((function(e){z(e),K(e)}),[]);return e.createElement("div",{className:d},e.createElement("div",{className:p},e.createElement(m,{justify:"start"},E&&e.createElement("div",{className:u},E),!j&&e.createElement(i,{value:y,onChange:L,onClear:function(){L(""),k({searchText:"",page:1})},placeholder:v})),e.createElement("div",{className:h},C,!!T&&e.createElement(l,{dataTestId:"createbtn",onClick:T,view:"primary",leftAddons:e.createElement(n,null),size:"xs"},N||c(F)("create")),P&&e.createElement(l,{leftAddons:e.createElement(o,null),onClick:A,view:"outlined",size:"xs"},S))),!!x.length&&e.createElement("div",{className:f},x))};export{_ as TableHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,d as t}from"../../tslib.es6-
|
|
1
|
+
import{c as r,d as t}from"../../tslib.es6-601266b7.js";import{useState as s,useCallback as a,useEffect as e}from"react";import"../../parse-query-params-e3bc19f8.js";import{getQueryFromUrl as o}from"../utils/get-query-from-url.js";import{serializeData as i}from"../utils/serialize-data.js";import"../../_commonjsHelpers-56db068a.js";import"../utils/sort-array.js";import"../utils/is-object.js";function n(n){var u=this,m=n.promise,c=n.records,p=s([]),l=p[0],f=p[1],d=s(!0),j=d[0],y=d[1],b=s(!1),g=b[0],h=b[1],v=s(0),A=v[0],q=v[1],w=s(1),x=w[0],z=w[1],C=s(),D=C[0],H=C[1],I=a((function(){return r(u,void 0,void 0,(function(){var r,s,a,e;return t(this,(function(t){switch(t.label){case 0:if(r=o(),Array.isArray(c)&&(y(!1),f(i(c,r))),!m)return[3,5];H(r),h(!1),y(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,m(r)];case 2:return s=t.sent().data,a=s.items,e=s.meta,q(e.totalItems),z(e.totalPages),f(a||[]),[3,5];case 3:return t.sent(),h(!0),[3,5];case 4:return y(!1),[7];case 5:return[2]}}))}))}),[c]);return e((function(){Array.isArray(c)&&(y(!1),f(c))}),[c]),{loading:j,error:g,data:l,total:A,params:D,pagesCount:x,updateData:I}}export{n as useTableData};
|
package/dist/table/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "../component-
|
|
1
|
+
export * from "../component-952ec4fa";
|
|
2
2
|
export * from "./components/cell/index";
|
package/dist/table/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as Table}from"../component-
|
|
1
|
+
export{T as Table}from"../component-952ec4fa.js";export{TableCell}from"./components/cell/component.js";import"react";import"classnames";import"./components/cells/index.js";import"../ChevronForwardS-9c0df525.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-88cf361e.js";import"../typography/title/index.js";import"../tslib.es6-601266b7.js";import"../typography/title/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../component-0be976c0.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.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"../ControllerS-2a79ebb0.js";import"../PlusS-a148b7df.js";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"../CloseS-c38027c6.js";import"../SearchM-938ad4ad.js";import"./hooks/use-table-data.js";import"../parse-query-params-e3bc19f8.js";import"../_commonjsHelpers-56db068a.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"../use-image-render-component-e7e22720.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image/component.js";import"../skeleton/component.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";
|
package/dist/table/table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"./components/cells/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"./utils/get-tags.js";export{a as Table}from"../component-
|
|
1
|
+
import"react";import"classnames";import"./components/cells/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"./utils/get-tags.js";export{a as Table}from"../component-952ec4fa.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"../ChevronForwardS-9c0df525.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-88cf361e.js";import"../typography/title/index.js";import"../tslib.es6-601266b7.js";import"../typography/title/component.js";import"./languages/index.js";import"./components/cell/component.js";import"../component-0be976c0.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"../ControllerS-2a79ebb0.js";import"../PlusS-a148b7df.js";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"../CloseS-c38027c6.js";import"../SearchM-938ad4ad.js";import"../parse-query-params-e3bc19f8.js";import"../_commonjsHelpers-56db068a.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/set-query-to-url.js";import"../use-image-render-component-e7e22720.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image/component.js";import"../skeleton/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-601266b7.js";import{q as o,p as s}from"../../parse-query-params-e3bc19f8.js";import{setQueryToUrl as a}from"./set-query-to-url.js";import"../../_commonjsHelpers-56db068a.js";var m=function(m){return a(o(r(r({},s()),m),{arrayFormat:"comma"}))};export{m as addQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r}from"../../tslib.es6-
|
|
1
|
+
import{_ as r}from"../../tslib.es6-601266b7.js";import{p as e}from"../../parse-query-params-e3bc19f8.js";import"../../_commonjsHelpers-56db068a.js";function s(){var s=e(),t=s.limit,o=s.page,a=s.searchText,m=s.sort,i=s.order,p={where:r(s,["limit","page","searchText","sort","order"]),limit:Number(t)||10,page:Number(o)||1};return"ASC"!==i&&"DESC"!==i||(p.order=i),a&&(p.searchText=a),"string"==typeof m&&(p.sort=m),p}export{s as getQueryFromUrl};
|
|
@@ -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-e3bc19f8";
|
|
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-e3bc19f8.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-601266b7.js";import"../../_commonjsHelpers-56db068a.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-e3bc19f8.js";import"../../_commonjsHelpers-56db068a.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"../../
|
|
1
|
+
import"react";import"../../use-image-render-component-e7e22720.js";import"../../image/component.js";export{p as prepareRows}from"../../component-952ec4fa.js";import"classnames";import"../../cell/pure/component.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-88cf361e.js";import"../../typography/title/index.js";import"../../tslib.es6-601266b7.js";import"../../typography/title/component.js";import"../../image/types.js";import"../../image/utils.js";import"../../skeleton/component.js";import"../components/cell/component.js";import"../../component-0be976c0.js";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../components/cells/index.js";import"../../ChevronForwardS-9c0df525.js";import"../components/empty-list/index.js";import"../languages/index.js";import"../components/error/index.js";import"../components/loading/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"../../ControllerS-2a79ebb0.js";import"../../PlusS-a148b7df.js";import"rooks";import"../../flex/component.js";import"../../header-search/component.js";import"../../CloseS-c38027c6.js";import"../../SearchM-938ad4ad.js";import"../hooks/use-table-data.js";import"../../parse-query-params-e3bc19f8.js";import"../../_commonjsHelpers-56db068a.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-601266b7.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 a}from"../../parse-query-params-
|
|
1
|
+
import{p as r,q as a}from"../../parse-query-params-e3bc19f8.js";import{setQueryToUrl as e}from"./set-query-to-url.js";import"../../_commonjsHelpers-56db068a.js";function o(o,t){var m=r();Array.isArray(m[o])&&t?m[o]=m[o].filter((function(r){return r!==t})):delete m[o],e(a(m,{arrayFormat:"comma"}))}export{o as removeQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-601266b7.js";import{p as e,q as t}from"../../parse-query-params-e3bc19f8.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-56db068a.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 e from"react";import{C as t,A as o}from"../CheckmarkCircleM-
|
|
1
|
+
import e from"react";import{C as t,A as o}from"../CheckmarkCircleM-26bb0af6.js";import{C as r}from"../CancelM-bb891827.js";import{C as a}from"../ClockCircleM-73d9a2f3.js";import m from"classnames";import{Typography as n}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-88cf361e.js";import"../typography/title/index.js";import"../tslib.es6-601266b7.js";import"../typography/title/component.js";var l="index-module_icon__xCdQr",i="index-module_text__0SHQw",c={negative:e.createElement(r,null),positive:e.createElement(t,null),secondary:e.createElement(a,null),accent:e.createElement(r,null),attention:e.createElement(o,null)},s=function(t){var o=t.text,r=t.view,a=void 0===r?"secondary":r,s=t.className;return e.createElement(n.Text,{className:m(i,s),tag:"div",view:"caps",weight:"medium",color:a},e.createElement("span",{className:l},c[a])," ",o)};export{s as TableStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TableStatus}from"./component.js";import"react";import"../CheckmarkCircleM-
|
|
1
|
+
export{TableStatus}from"./component.js";import"react";import"../CheckmarkCircleM-26bb0af6.js";import"../CancelM-bb891827.js";import"../ClockCircleM-73d9a2f3.js";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-88cf361e.js";import"../typography/title/index.js";import"../tslib.es6-601266b7.js";import"../typography/title/component.js";
|
package/dist/tag/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{C as t}from"../CloseS-
|
|
1
|
+
import e from"react";import{C as t}from"../CloseS-c38027c6.js";import o from"classnames";import{IconButton as r}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-601266b7.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-88cf361e.js";import"../typography/title/index.js";import"../typography/title/component.js";var s={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"},n=function(n){var m,a=n.text,d=n.onClick,l=n.onCloseClick,p=n.view,c=void 0===p?"primary":p,_=n.weight,u=void 0===_?"regular":_,g=n.leftAddons,x=n.rightAddons,y=n.dataTestId,h=n.size,f=void 0===h?"m":h,j=n.className;return e.createElement("button",{type:"button","data-test-id":y,onClick:d,disabled:!d&&!l,className:o(s.tag,s[c],s[f],(m={},m[s.show_cross]=!!l,m),j)},g&&e.createElement("span",{className:s.leftAddons},g),e.createElement(i.Text,{className:s.text,view:"title",weight:u,color:c},a),x&&e.createElement("span",{className:s.rightAddons},x),!!l&&e.createElement("span",{className:s.rightAddons},e.createElement(r,{icon:t,"data-test-id":y+"_close",type:"button",view:"ghost","aria-label":"close-tag",onClick:function(e){e.stopPropagation(),l()}})))};export{n 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-c38027c6.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-601266b7.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-88cf361e.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Tag as t}from"../tag/component.js";import"../CloseS-
|
|
1
|
+
import o from"react";import{Tag as t}from"../tag/component.js";import"../CloseS-c38027c6.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-601266b7.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-88cf361e.js";import"../typography/title/index.js";import"../typography/title/component.js";var e="index-module_tags__C28AJ",r=function(r){var n=r.tags,i=r.view,m=void 0===i?"primary":i,p=r.onClick,s=r.onCloseClick;return o.createElement("div",{className:e},(null==n?void 0:n.length)&&n.map((function(e){return o.createElement(t,{key:e,text:e,onClick:p,onCloseClick:s,view:m})})))};export{r 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-c38027c6.js";import"classnames";import"../icon-button/component.js";import"../tslib.es6-601266b7.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-88cf361e.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-601266b7.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};
|
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-601266b7.js";import"react";import"react-merge-refs";import"classnames";import"../form-control/component.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-601266b7.js";import t,{forwardRef as n,useRef as r,useCallback as i,useEffect as s}from"react";import m from"react-merge-refs";import{CSSTransition as a}from"react-transition-group";import c from"classnames";import{useClickOutside as l}from"../hooks/useClickOutside/index.js";import{usePrevious as u}from"../hooks/usePrevious/index.js";import{Popover as p}from"../popover/component.js";import{Portal as f}from"../portal/component.js";import{ToastPlate as d}from"../toast-plate/component.js";import"react-popper";import"../stack/context.js";import"../stack/component.js";import"react-dom";import"../portal/utils.js";import"../CheckmarkCircleM-26bb0af6.js";import"../ClockCircleM-73d9a2f3.js";import"../CloseS-c38027c6.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var _="index-module_toastPlate__QcyxC",x="index-module_popover__CzEm-",C="index-module_block__qnPJw",j="index-module_fixed__U9hsM",v={enter:"index-module_enter__mfllY",enterActive:"index-module_enterActive__iRE6x",exit:"index-module_exit__lf3xl",exitActive:"index-module_exitActive__qssLn"},E=n((function(n,E){var k,b=n.anchorElement,h=n.position,M=n.offset,y=n.open,P=n.autoCloseDelay,g=void 0===P?3e3:P,N=n.className,T=n.bottomOffset,A=n.style,L=void 0===A?{}:A,O=n.block,S=n.onMouseEnter,w=n.onMouseLeave,q=n.onTouchStart,D=n.onClose,z=n.getPortalContainer,F=e(n,["anchorElement","position","offset","open","autoCloseDelay","className","bottomOffset","style","block","onMouseEnter","onMouseLeave","onTouchStart","onClose","getPortalContainer"]),J=r(null),Q=r(0),R=u(y),U=i((function(){clearTimeout(Q.current),Q.current=window.setTimeout(D,g)}),[g,D]),Y=i((function(){clearTimeout(Q.current)}),[]),B=i((function(e){Y(),S&&S(e)}),[S,Y]),G=i((function(e){U(),w&&w(e)}),[w,U]),H=i((function(e){Y(),q&&q(e)}),[q,Y]),I=i((function(){D(),Y()}),[D,Y]);l(J,I),s((function(){return y!==R&&y&&U(),function(){Y()}}),[y,R,U,Y]);var K={block:O,onClose:D,onMouseEnter:B,onMouseLeave:G,onTouchStart:H,ref:m([E,J])};return b?t.createElement(p,{open:y,anchorElement:b,position:h,offset:M,popperClassName:c(x,(k={},k[C]=O,k)),transition:{timeout:150},getPortalContainer:z},t.createElement(d,o({},F,{style:L,className:N},K))):t.createElement(f,{getPortalContainer:z},t.createElement(a,{unmountOnExit:!0,in:y,timeout:150,classNames:v},t.createElement(d,o({},F,{className:c(j,_,N),style:o(o({},L),{bottom:T&&T+"px"})},K))))}));export{E 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-601266b7.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"../toast-plate/component.js";import"../CheckmarkCircleM-26bb0af6.js";import"../ClockCircleM-73d9a2f3.js";import"../CloseS-c38027c6.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-601266b7.js";import o from"react";import i from"react-dom";import s from"classnames";import{ToastPlate as r}from"../toast-plate/component.js";import{useTimer as n}from"./use-timer.js";import"../CheckmarkCircleM-26bb0af6.js";import"../ClockCircleM-73d9a2f3.js";import"../CloseS-c38027c6.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,l="index-module_isVisible__kvaxX",m="index-module_mobile__ARgiW",d="index-module_isClosing__fMPDi",p="index-module_toastContent__WxLt6";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var u=function(u){var c,f=u.className;u.children;var v=u.offset,x=void 0===v?108:v,C=u.hasCloser,h=void 0===C||C;u.onClose;var _=u.text;u.onMouseEnter,u.onMouseLeave;var b=u.style,y=u.position,j=void 0===y?"bottom":y,g=u.delay,M=void 0===g?3e3:g,w=e(u,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var E,L=window.innerWidth>600;a.setAttribute("style",(E="position: fixed; z-index: 99999999;",L?E+" "+j+": "+x+"px; right: 30px":E+" top: "+x+"px; right: 30px; left: 30px"));var k=document.createElement("div");k.classList.remove(d),k.setAttribute("id","toast_wrap-"+Math.random()),k.setAttribute("style","margin-bottom: 18px"),a.appendChild(k);var A=function(){k.classList.add(d),setTimeout((function(){null==a||a.removeChild(k)}),300)},N=n(A,M),W=N.pause,z=N.resume;return k.addEventListener("mouseenter",(function(){W()})),k.addEventListener("mouseleave",(function(){z()})),i.render(o.createElement(r,t({hasCloser:h,className:s((c={},c[l]=!0,c[m]=!L,c),f),contentClassName:p,style:t({right:0,position:"relative"},b),role:"alert",onClose:A},w),_),k),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-601266b7.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"../CheckmarkCircleM-26bb0af6.js";import"../ClockCircleM-73d9a2f3.js";import"../CloseS-c38027c6.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-601266b7.js";import o,{forwardRef as l,useCallback as n}from"react";import{A as a,C as d}from"../CheckmarkCircleM-26bb0af6.js";import{C as s}from"../ClockCircleM-73d9a2f3.js";import{C as m}from"../CloseS-c38027c6.js";import c from"classnames";import{Button as i}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var r={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"},_={negative:o.createElement(a,null),attention:o.createElement(a,null),positive:o.createElement(d,null),default:o.createElement(s,null),neutral:o.createElement(s,null),black:null},u=l((function(l,a){var d,s=l.dataTestId,u=l.className,f=l.contentClassName,k=l.hasCloser,p=l.leftAddons,b=l.view,v=void 0===b?"default":b,C=l.title,x=l.children,h=l.bottomAddons,E=l.block,A=l.onClose,N=e(l,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","bottomAddons","block","onClose"]),g=n((function(e){A&&A(e)}),[A]);return o.createElement("div",t({ref:a,className:c(r.component,r[v],(d={},d[r.block]=E,d[r.hasCloser]=k,d),u),"data-test-id":s},N),o.createElement("div",{className:r.contentWrap},p&&o.createElement("div",{className:r.leftAddons},_[v]),_[v]&&!p&&o.createElement("div",{className:r.checkmark},_[v]),o.createElement("div",{className:c(f,r.content)},C&&o.createElement("div",{className:r.title},C),x&&o.createElement("div",{className:r.children},x),h&&o.createElement("div",{className:r.bottomAddons},h)),k&&o.createElement(i,t({className:c(r.closeButton),view:"ghost"},{onClick:g},{"aria-label":"закрыть",leftAddons:o.createElement(m,null)}))))}));export{u as ToastPlate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastPlate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastPlate}from"./component.js";import"../tslib.es6-601266b7.js";import"react";import"../CheckmarkCircleM-26bb0af6.js";import"../ClockCircleM-73d9a2f3.js";import"../CloseS-c38027c6.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-601266b7.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../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";var p="index-module_component__KCXt7",m="index-module_popper__M9HfK",l="index-module_target__nVe99",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,M=f.getPortalContainer,j=f.offset,x=void 0===j?[0,10]:j,b=f.position,y=f.contentClassName,P=f.arrowClassName,R=f.popoverClassName,S=f.updatePopover,D=t(!!E),K=D[0],L=D[1],A=t(null),F=A[0],H=A[1],I=o.useRef(null),V=o.useRef(null),X=r(0),q=function(){K||(L(!0),O&&O())},z=n((function(){K&&(L(!1),N&&N())}),[N,K]),B=function(e){return(!I.current||!I.current.contains(e))&&(!V.current||!V.current.contains(e))};c((function(){var e=function(e){var o=e.target;B(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(X.current)}}),[z]);var G,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),K?z():q()}},Q={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(X.current),X.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(X.current),X.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(X.current),B(o)?X.current=window.setTimeout((function(){z()}),h):q()}},U=void 0===E?K:E,W=n((function(e){I.current=e,H(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:W},(G=function(o){var t={className:u(l,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),Q);default:return{}}}(d.props),a(d,G))),F&&o.createElement(s,{anchorElement:F,open:U,getPortalContainer:M,arrowClassName:P,popperClassName:u(m,R),offset:x,withArrow:!0,position:b,update:S},function(){var t=function(){var o={ref:V,"data-test-id":k,className:u(p,y)};return"hover"===w?e(e({},o),Q):o}();return o.createElement("div",e({},t),v)}()))};export{f 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-601266b7.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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Text as t}from"./text/component.js";import{Title as o}from"./title/index.js";import"react";import"classnames";import"../colors.module-
|
|
1
|
+
import{Text as t}from"./text/component.js";import{Title as o}from"./title/index.js";import"react";import"classnames";import"../colors.module-88cf361e.js";import"../tslib.es6-601266b7.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-88cf361e.js";import"./title/index.js";import"../tslib.es6-601266b7.js";import"./title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-
|
|
1
|
+
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-88cf361e.js";var m={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"},o=function(o){var d,_=o.tag,i=void 0===_?"span":_,l=o.through,u=void 0!==l&&l,p=o.weight,t=void 0===p?"regular":p,n=o.uppercase,s=o.color,c=o.view,h=o.className,g=o.dataTestId,x=o.children;return e.createElement(i,{className:r((d={},d[m.paragraph]="p"===i,d[m.uppercase]=n,d[m.through]=u,d[m[c]]=c,d),h,s&&a[s],m[t]),"data-test-id":g},x)};export{o 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-88cf361e.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-
|
|
1
|
+
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-88cf361e.js";var o=function(o){var t,i=o.tag,m=void 0===i?"div":i,s=o.view,d=void 0===s?"medium":s,c=o.weight,n=void 0===c?"medium":c,l=o.defaultMargins,p=void 0!==l&&l,u=o.color,v=void 0===u?"primary":u,f=o.className,g=o.dataTestId,h=o.uppercase,w=o.through,y=o.children,N=o.styles;return e.createElement(m,{className:r(N.component,f,N["montserrat-"+d],p&&N["margins-"+d],(t={},t[N.uppercase]=h,t[N.through]=w,t),N[n],v&&a[v]),"data-test-id":g},y)};export{o as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-601266b7.js";import e from"react";import{Title as r}from"./component.js";import"classnames";import"../../colors.module-88cf361e.js";var o={component:"common-module_component__l-zRT",bold:"common-module_bold__R07W3",medium:"common-module_medium__IcxXn",regular:"common-module_regular__2NoXt"},l={"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"},n=function(n){return e.createElement(r,m({},n,{styles:m(m({},o),l)}))};export{n as Title};
|
package/dist/{use-image-render-component-d6c046b1.d.ts → use-image-render-component-e7e22720.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ComponentSizes,
|
|
3
|
+
import { ComponentSizes, ImageProps } from "./image/types";
|
|
4
4
|
type UseImageRenderComponent = {
|
|
5
5
|
src?: string;
|
|
6
|
-
resolution?: ImageSizes;
|
|
7
6
|
size: ComponentSizes;
|
|
8
7
|
alt?: string;
|
|
9
8
|
text?: string;
|
|
10
9
|
icon?: React.ReactNode;
|
|
10
|
+
color?: ImageProps['color'];
|
|
11
11
|
};
|
|
12
|
-
declare const useImageRenderComponent: ({ src,
|
|
12
|
+
declare const useImageRenderComponent: ({ src, size, color, alt, text, icon, }: UseImageRenderComponent) => {};
|
|
13
13
|
export { UseImageRenderComponent, useImageRenderComponent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import t,{useRef as n,useEffect as o}from"react";import l from"classnames";import{Spinner as r}from"./spinner/component.js";import{Typography as a}from"./typography/component.js";import{textSizes as i}from"./image/types.js";import{getCharsFromText as c}from"./image/utils.js";var d=function(){return d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var l in t=arguments[n])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},d.apply(this,arguments)};function _(t){return e.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"currentColor",viewBox:"0 0 24 25"},t),e.createElement("path",{fillRule:"evenodd",d:"M6.454 3h11.093c.5 0 .933 0 1.288.029.376.03.75.099 1.109.282a2.85 2.85 0 0 1 1.246 1.245c.183.36.25.733.281 1.108.029.355.029.787.029 1.286v11.088c0 .363 0 .688-.01.97a1 1 0 0 1-.025.398c-.034.353-.105.702-.275 1.037-.273.536-.71.973-1.246 1.247-.36.183-.732.25-1.108.281-.355.029-.786.029-1.286.029H6.45c-.5 0-.93 0-1.286-.029-.375-.03-.749-.098-1.108-.281a2.85 2.85 0 0 1-1.245-1.247c-.172-.337-.242-.686-.276-1.038-.032-.34-.035-.744-.035-1.204V6.954c0-.501 0-.933.029-1.29.03-.375.098-.749.282-1.108A2.85 2.85 0 0 1 4.056 3.31c.36-.184.733-.251 1.109-.282C5.52 3 5.953 3 6.454 3M19.6 16.441V6.987c0-.547 0-.9-.023-1.168-.02-.258-.057-.354-.08-.4a.95.95 0 0 0-.416-.415c-.047-.024-.142-.06-.4-.081a16 16 0 0 0-1.17-.023H6.49c-.549 0-.902 0-1.172.023-.258.02-.354.057-.4.08a.95.95 0 0 0-.415.415c-.024.047-.06.143-.081.401-.022.27-.023.623-.023 1.171v8.642l2.858-3.335.007-.008.016-.019c.182-.212.356-.415.517-.572.173-.17.4-.358.707-.467a1.9 1.9 0 0 1 1.294.009c.306.113.53.305.702.477.158.16.33.366.51.581l2.558 3.07a8 8 0 0 0 .395.456l.012-.01c.093-.078.213-.197.43-.413l.493-.495c.189-.188.37-.369.535-.508.179-.15.409-.314.71-.401a1.9 1.9 0 0 1 1.253.07c.289.119.5.307.66.476.15.157.31.358.478.567zM4.401 18.55c.003.29.01.503.026.675.021.224.054.312.077.356.091.18.237.325.415.416.046.023.142.06.4.08.268.022.621.023 1.168.023h11.026c.547 0 .9 0 1.168-.023.258-.02.353-.057.4-.08a.95.95 0 0 0 .416-.416.6.6 0 0 0 .05-.164l-2.478-3.098a8 8 0 0 0-.388-.466l-.011-.012-.012.01c-.095.08-.218.202-.437.421l-.495.495c-.185.185-.362.363-.525.5-.176.149-.403.31-.7.398-.404.119-.84.102-1.238-.055a1.9 1.9 0 0 1-.66-.46 9 9 0 0 1-.473-.54l-2.558-3.07a9 9 0 0 0-.42-.485l-.012-.012-.012.011a9 9 0 0 0-.433.487zM12.95 8.7a1.9 1.9 0 1 1 3.8 0 1.9 1.9 0 0 1-3.8 0",clipRule:"evenodd"}))}var m=function(){return m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var l in t=arguments[n])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},m.apply(this,arguments)};function s(t){return e.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},t),e.createElement("path",{fillRule:"evenodd",d:"M3.95 1.393h8.11c.366 0 .682 0 .942.02.275.023.549.073.813.207.392.2.712.52.912.913.135.263.184.537.207.812.021.26.021.575.021.94v8.106q.002.398-.008.71a.7.7 0 0 1-.018.29 2.1 2.1 0 0 1-.202.76c-.2.393-.52.714-.912.914a2.1 2.1 0 0 1-.812.206c-.26.022-.575.022-.94.022H3.947c-.365 0-.68 0-.94-.022a2.1 2.1 0 0 1-.813-.206 2.1 2.1 0 0 1-.912-.913 2.1 2.1 0 0 1-.202-.761 10 10 0 0 1-.026-.88V4.287c0-.366 0-.682.021-.943.023-.275.072-.548.207-.812.2-.393.52-.713.912-.913.264-.134.538-.184.813-.206.26-.021.576-.021.942-.021m9.606 9.816V4.312c0-.4 0-.657-.017-.853-.015-.188-.041-.258-.058-.29a.7.7 0 0 0-.302-.302c-.033-.017-.102-.043-.29-.058a12 12 0 0 0-.856-.017H3.977c-.4 0-.659 0-.855.017-.189.015-.258.041-.291.058a.7.7 0 0 0-.302.301c-.017.034-.043.103-.058.291-.016.197-.017.455-.017.856v6.303l2.08-2.427.006-.006.012-.014c.133-.155.26-.303.377-.418a1.4 1.4 0 0 1 .52-.343c.307-.11.643-.107.95.007.224.083.388.223.514.35.116.116.241.267.372.425l1.87 2.244c.142.17.221.264.283.327l.003.003.005-.004c.068-.058.156-.145.314-.302l.361-.362c.138-.137.27-.27.39-.372.132-.11.3-.23.522-.294.305-.088.629-.069.919.051.213.088.367.225.485.35.11.115.227.262.35.414zm-11.1 1.558c.001.211.006.366.018.491.015.164.04.227.055.259a.7.7 0 0 0 .302.301c.033.017.102.043.29.059.196.016.454.016.854.016h8.06c.4 0 .658 0 .854-.016.188-.016.257-.042.29-.059a.7.7 0 0 0 .302-.301.4.4 0 0 0 .036-.117l-1.81-2.262a6 6 0 0 0-.284-.34q-.002-.004-.005-.006l-.004.004c-.07.059-.16.147-.32.308l-.362.362c-.134.135-.265.265-.383.365-.13.11-.296.228-.514.292a1.4 1.4 0 0 1-.908-.04 1.4 1.4 0 0 1-.484-.337c-.109-.11-.226-.25-.347-.396l-1.87-2.244a6 6 0 0 0-.312-.36l-.005.006a6 6 0 0 0-.316.355zm6.238-7.202a1.394 1.394 0 1 1 2.789 0 1.394 1.394 0 0 1-2.789 0m1.4 0-.001-.003-.002-.002h-.005l-.002.002v.006l.002.001h.005l.002-.002z",clipRule:"evenodd"}))}var u={container:"index-module_container__bgmJ2",component:"index-module_component__Jf39Y",addon:"index-module_addon__fLNNt",default:"index-module_default__7yCk8",primary:"index-module_primary__NmfOf","primary-inverted":"index-module_primary-inverted__LgfAy",secondary:"index-module_secondary__mFC44","secondary-inverted":"index-module_secondary-inverted__A3WWS",positive:"index-module_positive__KObTG",negative:"index-module_negative__JSntK",attention:"index-module_attention__xn0w7",accent:"index-module_accent__OKgO0",broken:"index-module_broken__U-IUD",image:"index-module_image__m6QQ3",hint:"index-module_hint__U93qq",hint_text:"index-module_hint_text__iACDk",textContent:"index-module_textContent__zwpfH",xs:"index-module_xs__WMoNb",s:"index-module_s__Hg5M9",m:"index-module_m__C8KqW",l:"index-module_l__bAVTF",xl:"index-module_xl__4V4rQ",auto:"index-module_auto__UzBuJ",xxl:"index-module_xxl__CbPtC",circle:"index-module_circle__a7zSR",ellipse:"index-module_ellipse__omc91",defs:"index-module_defs__-U1g-",textS:"index-module_textS__rn-Mq",textXs:"index-module_textXs__qpkPR",textM:"index-module_textM__mXb7s",textL:"index-module_textL__jV-69"},x={xs:"300x300",s:"300x300",m:"300x300",l:"300x300",xl:"300x300",xxl:"640x640",auto:"640x640"},p=function(e){var d=e.src,m=void 0===d?"":d,p=e.size,f=e.color,v=e.alt,g=e.text,h=e.icon,w=t.useState("loading"),y=w[0],b=w[1],z=n(0),C=function(e){var t=e.src,n=e.size;if((null==t?void 0:t.includes("escapenavigator-images.s3"))&&n){var o=t.split("amazonaws.com/")[1];return"https://d2z3luly8bezbw.cloudfront.net/fit-in/"+x[n]+"/"+o}return t}({src:m,size:p});return o((function(){if(C){z.current=Date.now(),b("loading");var e=new Image;e.src=C,e.onload=function(){b("loaded")},e.onerror=function(){Date.now()-z.current<2e3?setTimeout((function(){e.src=C}),500):b("error")}}else b("error")}),[C,p]),h||("loading"===y?t.createElement(r,{className:u.spinner,size:"s",view:"dark"}):"error"===y&&g?t.createElement(a.Text,{className:l(u.textContent,u[i[p]]),view:"caps",color:f,weight:"bold"},c(g.toUpperCase())):"error"===y?t.createElement(a.Text,{className:u.broken,tag:"div",view:"caps",color:f,weight:"bold"},"xs"===p?t.createElement(s,null):t.createElement(_,null)):t.createElement("img",{className:u.image,src:C,alt:v}))};export{_ as P,u as s,p as u};
|