@alphakits/ui 1.26.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActionCopyM-5e33e929.js → ActionCopyM-aca4501c.js} +1 -1
- package/dist/{ChevronBackM-fba8af11.js → ChevronBackM-bac80a87.js} +1 -1
- package/dist/{ChevronDownS-89b29b8f.js → ChevronDownS-e48c820e.js} +1 -1
- package/dist/{ChevronForwardS-3d6d2b68.js → ChevronForwardS-fd267ca8.js} +1 -1
- package/dist/{CloseS-e0d6ea2f.js → CloseS-938dc4b5.js} +1 -1
- package/dist/{NextS-28093c24.js → NextS-0d523e44.js} +1 -1
- package/dist/{PlusS-606545c3.js → PlusS-d9dc08a9.js} +1 -1
- package/dist/{SearchM-777bd08c.js → SearchM-de1036c5.js} +1 -1
- package/dist/{TrashM-463716e4.js → TrashM-fc251401.js} +1 -1
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/use-calendar.js +1 -1
- package/dist/calendar/use-period.js +1 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.js +1 -1
- package/dist/{capitalize-975a400d.js → capitalize-2b847310.js} +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{component-9fedb407.js → component-993c606f.js} +1 -1
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-functions.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/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/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/constants.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image/utils.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/{index-6d9648a1.js → index-32d2f4eb.js} +1 -1
- package/dist/{index-8551c5eb.js → index-33f42ea7.js} +1 -1
- package/dist/index-3c2b3b95.js +1 -0
- package/dist/{index-727a83be.js → index-66addbba.js} +1 -1
- package/dist/{index-db24ac06.js → index-98876e49.js} +1 -1
- package/dist/index-a3520b68.js +1 -0
- package/dist/{index-1c475091.js → index-bf475bde.js} +1 -1
- package/dist/{index-342025a9.js → index-d04ea715.js} +1 -1
- package/dist/{index-0a5eb599.js → index-e7303f7a.js} +1 -1
- package/dist/index-f15a6888.js +1 -0
- package/dist/{index-f1a2a7a7.js → index-f1a543ac.js} +1 -1
- package/dist/{index-88ec1ae7.js → index-fb276998.js} +1 -1
- package/dist/index-fc9f6928.js +1 -0
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/{isSymbol-55f2c979.js → isSymbol-80e06b97.js} +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/{parse-query-params-203800c3.js → parse-query-params-d8539d2e.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/options-list/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/theme-provider/component.d.ts +5 -4
- package/dist/theme-provider/component.js +1 -1
- package/dist/theme-provider/default-themes.d.ts +144 -138
- package/dist/theme-provider/default-themes.js +1 -1
- package/dist/theme-provider/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/{use-image-render-component-aac1035f.js → use-image-render-component-925a2ce3.js} +1 -1
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/get-service-error/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/vars/alpha-colors.css +4 -4
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-0dc9ab49.js +0 -1
- package/dist/index-5668b250.js +0 -1
- package/dist/index-88e9436b.js +0 -1
- package/dist/index-d9c66a89.js +0 -1
- /package/dist/{_commonjsHelpers-567b6d0d.js → _commonjsHelpers-5623a7c7.js} +0 -0
- /package/dist/{_tslib-531dfe1b-28c9f49b.js → _tslib-531dfe1b-69bf11e1.js} +0 -0
- /package/dist/{colors.module-8da3f1d6.js → colors.module-32c2eb4f.js} +0 -0
- /package/dist/{common.module-9f21f2b6.js → common.module-85e264f7.js} +0 -0
- /package/dist/{component-3ea5d4e9.d.ts → component-478987c9.d.ts} +0 -0
- /package/dist/{component-3ea5d4e9.js → component-478987c9.js} +0 -0
- /package/dist/{component-9fedb407.d.ts → component-993c606f.d.ts} +0 -0
- /package/dist/{contact-block-0a60c335.d.ts → contact-block-c3a1ce85.d.ts} +0 -0
- /package/dist/{contact-block-0a60c335.js → contact-block-c3a1ce85.js} +0 -0
- /package/dist/{gutters.module-69876894.js → gutters.module-74d87933.js} +0 -0
- /package/dist/{index-9a94e652.js → index-3b969a51.js} +0 -0
- /package/dist/{index-727a83be.d.ts → index-66addbba.d.ts} +0 -0
- /package/dist/{index-5dedba4f.js → index-969a8be4.js} +0 -0
- /package/dist/{intersection-observer-9add2c0f.js → intersection-observer-ae6658c7.js} +0 -0
- /package/dist/{parse-query-params-203800c3.d.ts → parse-query-params-d8539d2e.d.ts} +0 -0
- /package/dist/{slide-77d8e48e.d.ts → slide-8e2638ef.d.ts} +0 -0
- /package/dist/{slide-77d8e48e.js → slide-8e2638ef.js} +0 -0
- /package/dist/{step-bar-406f31c3.d.ts → step-bar-94069eea.d.ts} +0 -0
- /package/dist/{step-bar-406f31c3.js → step-bar-94069eea.js} +0 -0
- /package/dist/{tslib.es6-4b7a41ea.js → tslib.es6-0b924bd3.js} +0 -0
- /package/dist/{use-image-render-component-aac1035f.d.ts → use-image-render-component-925a2ce3.d.ts} +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-993c606f.js";import"../tslib.es6-0b924bd3.js";import"react";import"classnames";import"../component-478987c9.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../cell/pure/component.js";import"./components/cells/index.js";import"../ChevronForwardS-fd267ca8.js";import"../_tslib-531dfe1b-69bf11e1.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"../PlusS-d9dc08a9.js";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"../CloseS-938dc4b5.js";import"../SearchM-de1036c5.js";import"./hooks/use-table-data.js";import"../parse-query-params-d8539d2e.js";import"../_commonjsHelpers-5623a7c7.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-925a2ce3.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.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-0b924bd3.js";import t from"react";import o from"classnames";import{C as i}from"../../../component-478987c9.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-32c2eb4f.js";import"../../../common.module-85e264f7.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/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,m,n,a=s.dataTestID,p=s.className,d=s.children,c=s.title,h=s.subtitle,_=s.tableProps,g=s.cellProps,u=s.addon,j=s.align,y=s.width,v=s.tag,x=void 0===v?"td":v;return t.createElement(x,e({"data-test-id":a,className:o(r.cell,p,(l={},l[r.is_div]="div"===x,l)),style:{width:y}},_),d?t.createElement("div",{className:o(r.children,(m={},m[r.center]="center"===j,m[r.right]="right"===j,m))},d):t.createElement(i.Base,e({title:void 0===c?"-":c,subtitle:h,className:o((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-0b924bd3.js";import"react";import"classnames";import"../../../component-478987c9.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-32c2eb4f.js";import"../../../common.module-85e264f7.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/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-fd267ca8.js";import o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../_tslib-531dfe1b-69bf11e1.js";import"../../../typography/title/index.js";import"../../../tslib.es6-0b924bd3.js";import"../../../typography/title/component.js";import"../../../colors.module-32c2eb4f.js";import"../../../common.module-85e264f7.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/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,i,d=c.accessor&&n===c.accessor,p=d&&"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],(i={},i[a.accent]=d,i))},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/title/index.js";import"../../../tslib.es6-
|
|
1
|
+
import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-0b924bd3.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-32c2eb4f.js";import"../../../common.module-85e264f7.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_empty_list__dwgN3",p=function(p){var r=p.language;return t.createElement("div",{className:m},t.createElement(e.Text,{view:"title"},o(r)("emptyList")))};export{p 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/title/index.js";import"../../../tslib.es6-
|
|
1
|
+
import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-0b924bd3.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-32c2eb4f.js";import"../../../common.module-85e264f7.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/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 o from"classnames";import{TableCell as r}from"../cell/component.js";import"../../../tslib.es6-
|
|
1
|
+
import t,{memo as e}from"react";import o from"classnames";import{TableCell as r}from"../cell/component.js";import"../../../tslib.es6-0b924bd3.js";import"../../../component-478987c9.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-32c2eb4f.js";import"../../../common.module-85e264f7.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/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:o(n.row,n.tr)},new Array(m).fill(1).map((function(){return t.createElement(r,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-fd267ca8.js";import o from"classnames";import{Button as n}from"../../../button/component.js";import{Typography as r}from"../../../typography/component.js";import{translate as a}from"../../languages/index.js";import"../../../_tslib-531dfe1b-69bf11e1.js";import"../../../tslib.es6-0b924bd3.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-32c2eb4f.js";import"../../../common.module-85e264f7.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var i="index-module_pagination_wrap__kmile",l="index-module_pagination__36rf5",m="index-module_pages_info__9QuwE",s="index-module_prev_btn__UnDy5",c="index-module_disabled_btn__G6J6W",p="index-module_pagination_btn__vexgb",u="index-module_btn__-Zrx2",d="index-module_active__F46kP",g="index-module_select__XysEX";var _=function(_){var f,v,h,b,x,E=_.pagesCount,y=_.currentPage,j=_.recordsPerPage,k=void 0===j?30:j,w=_.total,N=_.language,C=_.addParam,P=function(e,t){for(var o=e-2,n=e+2+1,r=[],a=[],i=0,l=1;l<=t;l++)(1===l||l===t||l>=o&&l<n)&&r.push(l);return r.forEach((function(e){i&&(e-i==2?a.push(i+1):e-i!=1&&a.push("...")),a.push(e),i=e})),a}(y,E),F=1===y,A=y===E;return e.createElement("div",{className:i},e.createElement("div",{className:m},(h=1===y?1:(y-1)*k,x=(b=k*y)>w?w:b,e.createElement(r.Text,{view:"title",weight:"medium",color:"secondary"},a(N)("resultsFromTo")," ",a(N)("from")," ",e.createElement("strong",null,h," "),a(N)("to")," ",e.createElement("strong",null,x,", "," "),a(N)("totalCount")," ",e.createElement("strong",null,w," ")))),P.length>1&&e.createElement("div",{className:l},e.createElement(n,{className:o(s,u,(f={},f[c]=F,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return C({page:y-1})},disabled:F}),P.map((function(t,r){var a;return Number.isFinite(t)?e.createElement(n,{className:o(p,(a={},a[d]=t===y,a)),size:"xs",view:"ghost",key:t,onClick:function(){return C({page:t})}},t):e.createElement(n,{key:t+r,className:o(p),view:"ghost",disabled:!0},"...")})),e.createElement(n,{className:o(u,(v={},v[c]=A,v)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){C({page:y+1})},disabled:A})),e.createElement("select",{value:k,className:g,onChange:function(e){C({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},a(N)("resultsOnPage")+" "+t+" ")}))))};export{_ as Pagination};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as r,useCallback as a}from"react";import{_ as o}from"../../../_tslib-531dfe1b-
|
|
1
|
+
import e,{useState as t,useEffect as r,useCallback as a}from"react";import{_ as o}from"../../../_tslib-531dfe1b-69bf11e1.js";import{P as n}from"../../../PlusS-d9dc08a9.js";import{useDebounce as l}from"rooks";import{Button as s}from"../../../button/component.js";import{Flex as i}from"../../../flex/component.js";import{HeaderSearch as m}from"../../../header-search/component.js";import{translate as c}from"../../languages/index.js";import"../../../tslib.es6-0b924bd3.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../CloseS-938dc4b5.js";import"../../../SearchM-de1036c5.js";var d=function(t){return e.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),e.createElement("path",{d:"M0 0h17v17H0z"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.223 4.303H11.74V1.34H10.26v2.963H8.778v1.481h4.445V4.303zM4.292 8.747H2.81V7.266h4.445v1.481H5.773v5.926H4.292V8.747zm0-7.407h1.482v4.444H4.292V1.34zm7.45 13.333h-1.481V7.266h1.481v7.407z",fill:"currentColor"}))},u="index-module_table_header__GXu4u",h="index-module_actions__GZKJC",p="index-module_leftHeaderAddons__W8Ybf",f="index-module_tags__PpKzF",v="index-module_buttons__3CQYG",g=function(o){var g=o.tags,_=o.searchPlaceholder,x=void 0===_?"Type something..":_,b=o.searchText,E=o.hideSearch,j=o.rightHeaderAddons,C=o.leftHeaderAddons,H=o.addParam,w=o.onCreateClick,z=o.onFiltersClick,k=o.createButtonLabel,T=o.showFiltersButton,V=o.filtersButtonLabel,A=o.language,N=t(b),P=N[0],B=N[1],F=t(b),M=F[0],S=F[1];r((function(){var e=(M||"").trim();e?H({searchText:e,page:1}):b&&H({searchText:"",page:1})}),[M]);var y=l(S,500),G=a((function(e){B(e),y(e)}),[]);return e.createElement("div",{className:u},e.createElement("div",{className:h},e.createElement(i,{justify:"start"},C&&e.createElement("div",{className:p},C),!E&&e.createElement(m,{value:P,onChange:G,onClear:function(){G(""),H({searchText:"",page:1})},placeholder:x})),e.createElement("div",{className:v},j,!!w&&e.createElement(s,{dataTestId:"createbtn",onClick:w,view:"primary",leftAddons:e.createElement(n,null),size:"xs"},k||c(A)("create")),T&&e.createElement(s,{leftAddons:e.createElement(d,null),onClick:z,view:"outlined",size:"xs"},V))),!!g.length&&e.createElement("div",{className:f},g))};export{g 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-0b924bd3.js";import{useState as s,useCallback as a,useEffect as e}from"react";import"../../parse-query-params-d8539d2e.js";import{getQueryFromUrl as o}from"../utils/get-query-from-url.js";import{serializeData as i}from"../utils/serialize-data.js";import"../../_commonjsHelpers-5623a7c7.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],d=p[1],f=s(!0),j=f[0],y=f[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),d(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),d(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),d(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-993c606f";
|
|
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-993c606f.js";export{TableCell}from"./components/cell/component.js";import"react";import"classnames";import"./components/cells/index.js";import"../ChevronForwardS-fd267ca8.js";import"../_tslib-531dfe1b-69bf11e1.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-0b924bd3.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../component-478987c9.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"../PlusS-d9dc08a9.js";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"../CloseS-938dc4b5.js";import"../SearchM-de1036c5.js";import"./hooks/use-table-data.js";import"../parse-query-params-d8539d2e.js";import"../_commonjsHelpers-5623a7c7.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-925a2ce3.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.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-993c606f.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"../ChevronForwardS-fd267ca8.js";import"../_tslib-531dfe1b-69bf11e1.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-0b924bd3.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./languages/index.js";import"./components/cell/component.js";import"../component-478987c9.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"../PlusS-d9dc08a9.js";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"../CloseS-938dc4b5.js";import"../SearchM-de1036c5.js";import"../parse-query-params-d8539d2e.js";import"../_commonjsHelpers-5623a7c7.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-925a2ce3.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.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-0b924bd3.js";import{q as o,p as s}from"../../parse-query-params-d8539d2e.js";import{setQueryToUrl as a}from"./set-query-to-url.js";import"../../_commonjsHelpers-5623a7c7.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-0b924bd3.js";import{p as e}from"../../parse-query-params-d8539d2e.js";import"../../_commonjsHelpers-5623a7c7.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-d8539d2e";
|
|
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-d8539d2e.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-0b924bd3.js";import"../../_commonjsHelpers-5623a7c7.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-d8539d2e.js";import"../../_commonjsHelpers-5623a7c7.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"../../use-image-render-component-
|
|
1
|
+
import"react";import"../../use-image-render-component-925a2ce3.js";import"../../image/component.js";import"../../image/typings.js";import"../../image/constants.js";export{p as prepareRows}from"../../component-993c606f.js";import"classnames";import"../../cell/pure/component.js";import"../../_tslib-531dfe1b-69bf11e1.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-0b924bd3.js";import"../../typography/title/component.js";import"../../colors.module-32c2eb4f.js";import"../../common.module-85e264f7.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";import"../../skeleton/component.js";import"../components/cell/component.js";import"../../component-478987c9.js";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../components/cells/index.js";import"../../ChevronForwardS-fd267ca8.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"../../PlusS-d9dc08a9.js";import"rooks";import"../../flex/component.js";import"../../header-search/component.js";import"../../CloseS-938dc4b5.js";import"../../SearchM-de1036c5.js";import"../hooks/use-table-data.js";import"../../parse-query-params-d8539d2e.js";import"../../_commonjsHelpers-5623a7c7.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-0b924bd3.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],d=i[1],c=e[o][a]||a;return r(((s={})[c]=d,s),t)}),{})}export{t as queryAdapter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,q as
|
|
1
|
+
import{p as r,q as a}from"../../parse-query-params-d8539d2e.js";import{setQueryToUrl as e}from"./set-query-to-url.js";import"../../_commonjsHelpers-5623a7c7.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-0b924bd3.js";import{p as e,q as t}from"../../parse-query-params-d8539d2e.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-5623a7c7.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{_ as t}from"../_tslib-531dfe1b-
|
|
1
|
+
import e from"react";import{_ as t}from"../_tslib-531dfe1b-69bf11e1.js";import l from"classnames";import{Typography as n}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-0b924bd3.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var o=function(l){return e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},l),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{d:"M10.826 12L7.844 9.018l1.179-1.179 2.982 2.982 2.982-2.982 1.179 1.179L13.184 12l2.982 2.982-1.179 1.179-2.982-2.982-2.982 2.982-1.179-1.179L10.826 12z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.005 2c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10zM2.838 12a9.167 9.167 0 1018.334 0 9.167 9.167 0 00-18.334 0z",fill:"currentColor"}))},r="index-module_icon__xCdQr",i="index-module_text__0SHQw",a={negative:e.createElement(o,null),positive:e.createElement((function(l){return e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},l),e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.373 5.373 0 12 0s12 5.373 12 12-5.373 12-12 12S0 18.627 0 12zm17.76-2.967a.818.818 0 00-1.157-1.157l-6.512 6.512-2.694-2.694a.818.818 0 00-1.157 1.157l3.272 3.273c.32.32.838.32 1.157 0l7.091-7.09z",fill:"currentColor"}))}),null),secondary:e.createElement((function(l){return e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},l),e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.001 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm-1-15v5a3 3 0 001.2 2.4l2.6 1.7 1.2-1.6-2.6-1.7a1 1 0 01-.4-.8V7h-2z",fill:"currentColor"}))}),null),accent:e.createElement(o,null),attention:e.createElement((function(l){return e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},l),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.005 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm-1-9V7h2v6h-2zm0 4v-2h2v2h-2z",fill:"currentColor"}))}),null)},m=function(t){var o=t.text,m=t.view,c=void 0===m?"secondary":m,p=t.className;return e.createElement(n.Text,{className:l(i,p),tag:"div",view:"caps",weight:"medium",color:c},e.createElement("span",{className:r},a[c])," ",o)};export{m as TableStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TableStatus}from"./component.js";import"react";import"../_tslib-531dfe1b-
|
|
1
|
+
export{TableStatus}from"./component.js";import"react";import"../_tslib-531dfe1b-69bf11e1.js";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-0b924bd3.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/tag/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{_ as t}from"../_tslib-531dfe1b-
|
|
1
|
+
import e from"react";import{_ as t}from"../_tslib-531dfe1b-69bf11e1.js";import o from"classnames";import{Typography as r}from"../typography/component.js";import{IconButton as n}from"../icon-button/component.js";import"../typography/title/index.js";import"../tslib.es6-0b924bd3.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var i=function(o){return e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},o),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{d:"M10.59 12l-2.585 2.5 1.5 1.5 2.5-2.586 2.5 2.586 1.5-1.5-2.586-2.5 2.586-2.5-1.5-1.5-2.5 2.586L9.505 8l-1.5 1.5L10.59 12z",fill:"currentColor"}))},m={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"},s=function(t){var s,a=t.text,d=t.onClick,l=t.onCloseClick,p=t.view,c=void 0===p?"primary":p,_=t.leftAddons,u=t.rightAddons,g=t.dataTestId,h=t.size,f=void 0===h?"m":h,x=t.className;return e.createElement("button",{type:"button","data-test-id":g,onClick:d,disabled:!d&&!l,className:o(m.tag,m[c],m[f],(s={},s[m.show_cross]=!!l,s),x)},_&&e.createElement("span",{className:m.leftAddons},_),e.createElement(r.Text,{className:m.text,view:"primary-medium",weight:"medium",color:c},a),u&&e.createElement("span",{className:m.rightAddons},u),!!l&&e.createElement("span",{className:m.rightAddons},e.createElement(n,{icon:i,"data-test-id":g+"_close",type:"button",view:"ghost","aria-label":"close-tag",onClick:function(e){e.stopPropagation(),l()}})))};export{s as Tag};
|
package/dist/tag/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tag}from"./component.js";import"react";import"../_tslib-531dfe1b-
|
|
1
|
+
export{Tag}from"./component.js";import"react";import"../_tslib-531dfe1b-69bf11e1.js";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-0b924bd3.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Tag as t}from"../tag/component.js";import"../_tslib-531dfe1b-
|
|
1
|
+
import o from"react";import{Tag as t}from"../tag/component.js";import"../_tslib-531dfe1b-69bf11e1.js";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-0b924bd3.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var e="index-module_tags__C28AJ",r=function(r){var i=r.tags,m=r.view,n=void 0===m?"primary":m,p=r.onClick,s=r.onCloseClick;return o.createElement("div",{className:e},(null==i?void 0:i.length)&&i.map((function(e){return o.createElement(t,{key:e,text:e,onClick:p,onCloseClick:s,view:n})})))};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"../_tslib-531dfe1b-
|
|
1
|
+
export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"../_tslib-531dfe1b-69bf11e1.js";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-0b924bd3.js";import"../typography/title/component.js";import"../colors.module-32c2eb4f.js";import"../common.module-85e264f7.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";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-0b924bd3.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-0b924bd3.js";import"react";import"react-merge-refs";import"classnames";import"../form-control/component.js";import"../hooks/useFocus/index.js";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemesObject } from "./default-themes";
|
|
4
4
|
declare enum THEME {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
DARK = "dark",
|
|
6
|
+
LIGHT = "light"
|
|
7
7
|
}
|
|
8
8
|
declare const LOACAL_STORAGE_THEME_KEY = "theme";
|
|
9
9
|
declare const STYLE_TAG_ID = "theme-styles";
|
|
10
10
|
declare const THEME_DATA_ATTR = "data-theme";
|
|
11
11
|
type ThemeProviderProps = {
|
|
12
|
-
themes:
|
|
12
|
+
themes: ThemesObject;
|
|
13
|
+
selectedTheme?: THEME;
|
|
13
14
|
};
|
|
14
15
|
declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
15
16
|
declare const useTheme: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{createContext as t,useState as n,useEffect as
|
|
1
|
+
import e,{createContext as t,useState as n,useEffect as o,useContext as r}from"react";var c;!function(e){e.DARK="dark",e.LIGHT="light"}(c||(c={}));var a=t({setTheme:function(){},currentTheme:void 0}),m="theme",d="theme-styles",h="data-theme",l=function(t){var r=t.children,l=t.themes,u=t.selectedTheme,i=n(),s=i[0],f=i[1],v=function(e){null===document||void 0===document||document.documentElement.setAttribute(h,e),localStorage.setItem(m,e),f(e)};return o((function(){var e,t,n,o=null===localStorage||void 0===localStorage?void 0:localStorage.getItem(m),r=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?c.DARK:c.LIGHT;v(u||o||r),e=l,t=document.getElementById(d),n="",t||((t=document.createElement("style")).id=d,document.head.appendChild(t)),Object.keys(e).forEach((function(o){n+="html[data-theme='"+o+"'] {";var r=e[o];Object.keys(r).forEach((function(e){var t=r[e];Object.keys(t).forEach((function(o){n+="--color-"+e+"-"+o+": "+t[o]+";\n"}))})),n+="} \n",t.textContent=n}))}),[l,u]),e.createElement(a.Provider,{value:{setTheme:v,currentTheme:s}},r)},u=function(){var e=r(a);return{setTheme:e.setTheme,currentTheme:e.currentTheme}};export{m as LOACAL_STORAGE_THEME_KEY,d as STYLE_TAG_ID,c as THEME,h as THEME_DATA_ATTR,l as ThemeProvider,u as useTheme};
|