@alphakits/ui 1.27.26 → 1.27.28
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/PhotoS-9e6032f3.js +1 -0
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/badge/component.js +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +2 -2
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/box/component.js +1 -1
- package/dist/box/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/use-calendar.js +1 -1
- package/dist/calendar/use-period.js +1 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.js +1 -1
- package/dist/capitalize-0b1c39f0.js +1 -0
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/colors.module-42c4e92f.js +1 -0
- package/dist/component-e7fa3a41.js +1 -0
- package/dist/component-f17d87dc.js +1 -0
- package/dist/contact-block-82f5a2e8.js +1 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-functions.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/decorated-item/component.js +1 -1
- package/dist/decorated-item/index.js +1 -1
- package/dist/divider/component.js +1 -1
- package/dist/divider/index.js +1 -1
- package/dist/dot/component.js +1 -1
- package/dist/dot/index.js +1 -1
- package/dist/flex/component.js +1 -1
- package/dist/flex/index.js +1 -1
- package/dist/flex-columns/component.js +1 -1
- package/dist/flex-columns/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/form-loading/index.js +1 -1
- package/dist/form/components/form-outer/index.js +1 -1
- package/dist/form/components/form-updating/index.js +1 -1
- package/dist/form/components/form-wrapper/index.js +1 -1
- package/dist/form/components/index.d.ts +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/base-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/gutters.module-7d357b70.js +1 -0
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.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.d.ts +0 -13
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-preview/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/components/navigation-bar/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index-04601088.js +1 -0
- package/dist/{index-00def255.js → index-0a8de33a.js} +1 -1
- package/dist/index-2c75fc44.js +1 -0
- package/dist/{index-8347460a.js → index-5a2b7231.js} +1 -1
- package/dist/{index-579985bf.js → index-6036e75d.js} +1 -1
- package/dist/{index-f96da3a0.js → index-701a457e.js} +1 -1
- package/dist/index-74f56566.js +1 -0
- package/dist/index-7539a09d.js +1 -0
- package/dist/index-7ebc58ec.js +1 -0
- package/dist/{index-7cac52e8.js → index-867831c1.js} +1 -1
- package/dist/index-8e0c5af8.js +1 -0
- package/dist/index-920f1c93.js +1 -0
- package/dist/{index-5d5dc52f.js → index-f09fe209.js} +1 -1
- package/dist/index.css +1 -0
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/info-block-wrapper/component.js +1 -1
- package/dist/info-block-wrapper/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/{isSymbol-6569b777.js → isSymbol-f93a808c.js} +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/loader/component.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/page-container/component.js +1 -1
- package/dist/page-container/index.js +1 -1
- package/dist/page-loading/component.js +1 -1
- package/dist/page-loading/index.js +1 -1
- package/dist/{parse-query-params-5917b4fd.js → parse-query-params-40e81a2b.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/pure-image/component.js +1 -1
- package/dist/pure-image/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/section-wrapper/component.js +1 -1
- package/dist/section-wrapper/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/arrow/component.js +1 -1
- package/dist/select/components/arrow/index.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/checkmark/component.js +1 -1
- package/dist/select/components/checkmark/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/optgroup/component.js +1 -1
- package/dist/select/components/optgroup/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/options-list/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/skeleton/component.js +1 -1
- package/dist/skeleton/index.js +1 -1
- package/dist/slide-4dd1606c.js +1 -0
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/spinner/component.js +1 -1
- package/dist/spinner/index.js +1 -1
- package/dist/status/component.js +1 -1
- package/dist/status/index.js +1 -1
- package/dist/step-bar-bbdc2cea.js +1 -0
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/sticker/component.js +1 -1
- package/dist/sticker/index.js +1 -1
- package/dist/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-0a686f55.d.ts +13 -0
- package/dist/use-image-render-component-0a686f55.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/vars/typography.css +7 -0
- package/dist/welcome-layout/component.js +1 -1
- package/dist/welcome-layout/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +3 -3
- package/dist/capitalize-da58f14e.js +0 -1
- package/dist/colors.module-bcab070d.js +0 -1
- package/dist/component-5bf23d95.js +0 -1
- package/dist/component-f9d8d5f8.js +0 -1
- package/dist/contact-block-94aae98c.js +0 -1
- package/dist/gutters.module-eb55c95e.js +0 -1
- package/dist/index-21c90eba.js +0 -1
- package/dist/index-290e6c62.js +0 -1
- package/dist/index-7b4e1fe8.js +0 -1
- package/dist/index-9ce5a5e7.js +0 -1
- package/dist/index-bae76388.js +0 -1
- package/dist/index-d33b2062.js +0 -1
- package/dist/index-fcfe1262.js +0 -1
- package/dist/index.module-484c9508.js +0 -1
- package/dist/index.module-68f5d4b7.js +0 -1
- package/dist/index.module-a5f47b0d.js +0 -1
- package/dist/index.module-b027660d.js +0 -1
- package/dist/index.module-d56fe62a.js +0 -1
- package/dist/slide-673bfe25.js +0 -1
- package/dist/step-bar-3c7c5eda.js +0 -1
- package/dist/style-inject.es-1f59c1d0.js +0 -1
- /package/dist/{ActionCopyM-2f28ae57.js → ActionCopyM-afa39b12.js} +0 -0
- /package/dist/{CheckmarkCircleM-10f50b3f.js → CheckmarkCircleM-1ed02028.js} +0 -0
- /package/dist/{ChevronBackM-47d9cb6d.js → ChevronBackM-1d42946d.js} +0 -0
- /package/dist/{ChevronDownS-5f3ba4f5.js → ChevronDownS-bd90baf8.js} +0 -0
- /package/dist/{ChevronForwardS-78acca51.js → ChevronForwardS-95d0ad40.js} +0 -0
- /package/dist/{ClockCircleM-9cbd1915.js → ClockCircleM-13de520f.js} +0 -0
- /package/dist/{CloseS-c17ee568.js → CloseS-ec25923f.js} +0 -0
- /package/dist/{NextS-2b028cce.js → NextS-4130373c.js} +0 -0
- /package/dist/{PlusS-d3752d5b.js → PlusS-806e430d.js} +0 -0
- /package/dist/{SearchM-9b5d9f79.js → SearchM-03bb40d0.js} +0 -0
- /package/dist/{TrashM-504e1b6e.js → TrashM-dd7e9929.js} +0 -0
- /package/dist/{_commonjsHelpers-97e6d7b1.js → _commonjsHelpers-03353663.js} +0 -0
- /package/dist/{component-f9d8d5f8.d.ts → component-e7fa3a41.d.ts} +0 -0
- /package/dist/{component-5bf23d95.d.ts → component-f17d87dc.d.ts} +0 -0
- /package/dist/{contact-block-94aae98c.d.ts → contact-block-82f5a2e8.d.ts} +0 -0
- /package/dist/{index-7b4e1fe8.d.ts → index-2c75fc44.d.ts} +0 -0
- /package/dist/{index-acf532e5.js → index-496b60c6.js} +0 -0
- /package/dist/{index-14cb6781.js → index-eee25d46.js} +0 -0
- /package/dist/{intersection-observer-044a6fec.js → intersection-observer-74dc9974.js} +0 -0
- /package/dist/{parse-query-params-5917b4fd.d.ts → parse-query-params-40e81a2b.d.ts} +0 -0
- /package/dist/{slide-673bfe25.d.ts → slide-4dd1606c.d.ts} +0 -0
- /package/dist/{step-bar-3c7c5eda.d.ts → step-bar-bbdc2cea.d.ts} +0 -0
- /package/dist/{tslib.es6-c1295375.js → tslib.es6-054c3e60.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as
|
|
1
|
+
import{_ as e,a as l}from"../../../tslib.es6-054c3e60.js";import r,{useState as o,useRef as d,useCallback as t}from"react";import s from"classnames";import{FormControl as a}from"../../../form-control/component.js";import{useFocus as n}from"../../../hooks/useFocus/index.js";import{joinOptions as i}from"../../utils.js";var m="index-module_component__kQ9oL",c="index-module_field__WxOYl",u="index-module_disabled__GQwpw",p="index-module_arrow__4fEBK",_="index-module_placeholder__FY2iP",f="index-module_contentWrapper__MkCc3",v="index-module_value__0Arew",b="index-module_focusVisible__qhc9s",h=function(h){var x,E=h.size,N=void 0===E?"m":E,w=h.open;h.multiple;var A=h.error,k=h.hint,g=h.disabled,j=h.label,C=h.placeholder,F=h.selectedMultiple,M=void 0===F?[]:F,z=h.selected,B=h.rightAddons,P=h.valueRenderer,I=void 0===P?i:P,Q=h.Arrow,R=h.innerProps,T=h.dataTestId,W=h.fieldClassName,Y=e(h,["size","open","multiple","error","hint","disabled","label","placeholder","selectedMultiple","selected","rightAddons","valueRenderer","Arrow","innerProps","dataTestId","fieldClassName"]),q=o(!1),y=q[0],G=q[1],K=d(null),L=n(K,"keyboard")[0],O=t((function(){return G(!0)}),[]),V=t((function(){return G(!1)}),[]),D=I({selected:z,selectedMultiple:M}),H=Boolean(D),J=!!j&&(H||!C);return r.createElement("div",{className:m,ref:K,onFocus:O,onBlur:V},r.createElement(a,l({fieldClassName:s(c,W,(x={},x[u]=g,x[b]=L,x)),block:!0,size:N,focused:w||y,disabled:g,filled:H,label:J&&j,error:A,hint:k,rightAddons:(Q||B)&&r.createElement(r.Fragment,null,B,Q?r.cloneElement(Q,{className:p}):null),"data-test-id":T},Y,R),r.createElement("div",{className:f},C&&!H&&r.createElement("span",{className:_},C),H&&r.createElement("div",{className:v},D))))};export{h as Field};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Field}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Field}from"./component.js";import"../../../tslib.es6-054c3e60.js";import"react";import"classnames";import"../../../form-control/component.js";import"../../../hooks/useFocus/index.js";import"../../utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Arrow}from"./arrow/component.js";export{BaseSelect}from"./base-select/component.js";export{Field}from"./field/component.js";export{Optgroup}from"./optgroup/component.js";export{Option}from"./option/component.js";export{OptionsList}from"./options-list/component.js";export{VirtualOptionsList}from"./virtual-options-list/component.js";import"react";import"classnames";import"../../
|
|
1
|
+
export{Arrow}from"./arrow/component.js";export{BaseSelect}from"./base-select/component.js";export{Field}from"./field/component.js";export{Optgroup}from"./optgroup/component.js";export{Option}from"./option/component.js";export{OptionsList}from"./options-list/component.js";export{VirtualOptionsList}from"./virtual-options-list/component.js";import"react";import"classnames";import"../../tslib.es6-054c3e60.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../utils.js";import"./native-select/component.js";import"../../form-control/component.js";import"../../hooks/useFocus/index.js";import"../../skeleton/component.js";import"./checkmark/component.js";import"../../ClockCircleM-13de520f.js";import"../../button/component.js";import"../../loader/component.js";import"react-virtual";import"../../hooks/usePrevious/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"../../CheckmarkCircleM-1ed02028.js";import"../../CloseS-ec25923f.js";import"../../toast-notifier/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-054c3e60.js";import n,{forwardRef as a,useCallback as o}from"react";import{isGroup as l}from"../../utils.js";var r=function(e){var t=e.option;return n.createElement("option",{value:t.key,disabled:t.disabled},"string"==typeof t.content?t.content:t.key)},i=function(e){var t=e.label,a=e.options;return n.createElement("optgroup",{label:t},a.map((function(e){return n.createElement(r,{option:e,key:e.key})})))},s=a((function(a,s){var m=a.className,c=a.disabled,p=a.multiple,u=a.value,f=a.name,d=a.options,b=a.onChange,k=e(a,["className","disabled","multiple","value","name","options","onChange"]),v=o((function(e){e.stopPropagation()}),[]);return n.createElement("select",t({className:m,disabled:c,multiple:p,name:f,value:u,onChange:b,onClick:v,ref:s},k),d.map((function(e){return l(e)?n.createElement(i,t({},e,{key:e.label})):n.createElement(r,{option:e,key:e.key})})))}));export{s as NativeSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{NativeSelect}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{NativeSelect}from"./component.js";import"../../../tslib.es6-054c3e60.js";import"react";import"../../utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import l from"classnames";var a={optgroup:"index-module_optgroup__ZmZTg",label:"index-module_label__bMMir",l:"index-module_l__3FaC5",xl:"index-module_xl__xp47K"},r=function(r){var o=r.children,m=r.label,t=r.size,n=void 0===t?"s":t;return e.createElement(e.Fragment,null,e.createElement("div",{className:l(a.optgroup,a[n])},e.createElement("span",{className:a.label},m)),o)};export{r as Optgroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Optgroup}from"./component.js";import"react";import"classnames";
|
|
1
|
+
export{Optgroup}from"./component.js";import"react";import"classnames";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-054c3e60.js";import t,{isValidElement as o}from"react";import n from"classnames";import{Skeleton as d}from"../../../skeleton/component.js";import{Checkmark as i}from"../checkmark/component.js";var l={option:"index-module_option__LdOw-",disabled:"index-module_disabled__axDUG",s:"index-module_s__0noye",m:"index-module_m__C5xtP",l:"index-module_l__yH1C-",xl:"index-module_xl__WL6cZ",selected:"index-module_selected__OyyTI",highlighted:"index-module_highlighted__WtdTW",content:"index-module_content__H3UDz",textContent:"index-module_textContent__Hx88Y",skeleton:"index-module_skeleton__braSy"},s=function(s){var m,_,a=s.size,c=void 0===a?"s":a,r=s.className,x=s.option,h=s.children,p=s.selected,u=s.highlighted,g=s.disabled,k=s.Checkmark,v=void 0===k?i:k,b=s.innerProps,f=s.index,y=h||x.content||x.key;return t.createElement("div",e({},b,{className:n(l.option,l[c],r,(m={},m[l.highlighted]=u,m[l.selected]=p,m[l.disabled]=g,m)),"data-test-id":"option-"+f}),v&&t.createElement(v,{selected:p}),t.createElement("div",{className:n(l.content,(_={},_[l.textContent]=!o(y),_))},t.createElement(d,{className:l.skeleton,visible:null==x?void 0:x.loading},y)))};export{s as Option};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Option}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Option}from"./component.js";import"../../../tslib.es6-054c3e60.js";import"react";import"classnames";import"../../../skeleton/component.js";import"../checkmark/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as o,useRef as
|
|
1
|
+
import e,{forwardRef as o,useRef as t,useCallback as n}from"react";import i from"react-merge-refs";import{C as l}from"../../../ClockCircleM-13de520f.js";import r from"classnames";import{Button as s}from"../../../button/component.js";import{useVisibleOptions as a,isGroup as m}from"../../utils.js";import{Optgroup as p}from"../optgroup/component.js";import"../../../tslib.es6-054c3e60.js";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c={optionsList:"index-module_optionsList__fDQ-W",emptyPlaceholder:"index-module_emptyPlaceholder__kjePJ",l:"index-module_l__rGpg6",xl:"index-module_xl__T-5wN",actionButtonWrapper:"index-module_actionButtonWrapper__WBIoZ"},d=o((function(o,d){var u,f=o.size,_=void 0===f?"s":f,v=o.className,x=o.Option,b=o.options,g=void 0===b?[]:b,j=o.actionButton,h=o.Optgroup,k=void 0===h?p:h,E=o.dataTestId,y=o.emptyPlaceholder,B=o.visibleOptions,C=void 0===B?5:B,N=o.onScroll,P=o.toggleMenu,W=o.open,O=t(null),z=(u=0,function(){return u++}),L=n((function(o){return e.createElement(k,{label:o.label,key:o.label,size:_},o.options.map((function(e){return x({option:e,index:z()})})))}),[x,z,_]);return a({visibleOptions:C,listRef:O,open:W,invalidate:g}),0!==g.length||y||j?e.createElement("div",{className:r(c.optionsList,c[_],v),"data-test-id":E,ref:i([O,d]),onScroll:N},g.map((function(e){return m(e)?L(e):x({option:e,index:z()})})),y&&0===g.length&&e.createElement("div",{className:c.emptyPlaceholder},e.createElement(l,null),y),!!j&&e.createElement("div",{className:c.actionButtonWrapper},e.createElement(s,{view:"outlined",size:"xs",onClick:function(){null==j||j.onClick(),P()}},j.label))):null}));export{d as OptionsList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{OptionsList}from"./component.js";import"react";import"react-merge-refs";import"../../../ClockCircleM-
|
|
1
|
+
export{OptionsList}from"./component.js";import"react";import"react-merge-refs";import"../../../ClockCircleM-13de520f.js";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-054c3e60.js";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../utils.js";import"../optgroup/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useState as
|
|
1
|
+
import e,{useRef as t,useState as i,useEffect as o,useMemo as r}from"react";import{useVirtual as n}from"react-virtual";import l from"classnames";import{usePrevious as s}from"../../../hooks/usePrevious/index.js";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import{lastIndexOf as a,useVisibleOptions as m,isGroup as d}from"../../utils.js";import{Optgroup as p}from"../optgroup/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../tslib.es6-054c3e60.js";import"react-dom";import"../../../toast-plate/component.js";import"../../../CheckmarkCircleM-1ed02028.js";import"../../../ClockCircleM-13de520f.js";import"../../../CloseS-ec25923f.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../toast-notifier/use-timer.js";var c={virtualOptionsList:"index-module_virtualOptionsList__2eWn8",inner:"index-module_inner__6DZqj",virtualRow:"index-module_virtualRow__0huMi",highlighted:"index-module_highlighted__Uxj8l",emptyPlaceholder:"index-module_emptyPlaceholder__ONTop",l:"index-module_l__Z0I4S",xl:"index-module_xl__SNx-j"},u=function(u){var v=u.size,f=void 0===v?"s":v,x=u.flatOptions,h=void 0===x?[]:x,g=u.highlightedIndex,_=void 0===g?-1:g,j=u.className,I=u.Option,O=u.open,y=u.options,b=void 0===y?[]:y,k=u.overscan,N=void 0===k?10:k,R=u.Optgroup,T=void 0===R?p:R,C=u.dataTestId,E=u.emptyPlaceholder,P=u.visibleOptions,w=void 0===P?5:P,S=t(null),z=t(null),L=i(0),M=L[0],Z=L[1],q=s(_)||-1,D=n({size:h.length,parentRef:z,overscan:N});o((function(){O&&D.scrollToIndex(_,{align:"end"})}),[O]),o((function(){-1!==_&&(D.virtualItems.some((function(e){return e.index===_}))||D.scrollToIndex(_,{align:"end"}))}),[_]),o((function(){var e=function(e){return!e.disabled},t=h.findIndex(e),i=a(h,e);q<=t&&_===h.length-1&&D.scrollToIndex(i),q>=i&&0===_&&D.scrollToIndex(0)}),[q,_]),o((function(){Z(D.virtualItems.length>1?h.length:1)}),[D.virtualItems.length,h.length]),m({visibleOptions:w,invalidate:M,listRef:S,styleTargetRef:z,open:O});var F=r((function(){var e=0;return b.reduce((function(t,i,o){return d(i)?(t[e]=o,e+=i.options.length):e+=1,t}),{})}),[b]);return e.createElement("div",{className:l(c.virtualOptionsList,c[f],j),ref:z,"data-test-id":C},e.createElement("div",{className:c.inner,style:{height:D.totalSize+"px"},ref:S},D.virtualItems.map((function(t){var i,o=h[t.index],r=b[F[t.index]];return e.createElement("div",{key:t.index,ref:t.measureRef,className:l(c.virtualRow,(i={},i[c.highlighted]=_===t.index,i)),style:{transform:"translateY("+t.start+"px)"}},r&&e.createElement(T,{label:r.label}),!d(o)&&I({option:o,index:t.index}))}))),E&&0===b.length&&e.createElement("div",{className:c.emptyPlaceholder},E))};export{u as VirtualOptionsList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{VirtualOptionsList}from"./component.js";import"react";import"react-virtual";import"classnames";import"../../../hooks/usePrevious/index.js";import"../../../utils/get-service-error/index.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../toast-notifier/component.js";import"../../../tslib.es6-
|
|
1
|
+
export{VirtualOptionsList}from"./component.js";import"react";import"react-virtual";import"classnames";import"../../../hooks/usePrevious/index.js";import"../../../utils/get-service-error/index.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../toast-notifier/component.js";import"../../../tslib.es6-054c3e60.js";import"react-dom";import"../../../toast-plate/component.js";import"../../../CheckmarkCircleM-1ed02028.js";import"../../../ClockCircleM-13de520f.js";import"../../../CloseS-ec25923f.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../toast-notifier/use-timer.js";import"../../utils.js";import"../optgroup/component.js";
|
package/dist/select/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Select}from"./component.js";export{Arrow}from"./components/arrow/component.js";export{BaseSelect}from"./components/base-select/component.js";export{Field}from"./components/field/component.js";export{Optgroup}from"./components/optgroup/component.js";export{Option}from"./components/option/component.js";export{OptionsList}from"./components/options-list/component.js";export{VirtualOptionsList}from"./components/virtual-options-list/component.js";export{useSelectWithLoading}from"./presets/use-select-with-loading/hook.js";export{useLazyLoading}from"./presets/use-lazy-loading/index.js";export{convertToOptions,isGroup,isOptionShape,joinOptions,lastIndexOf,processOptions,useVisibleOptions}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{Select}from"./component.js";export{Arrow}from"./components/arrow/component.js";export{BaseSelect}from"./components/base-select/component.js";export{Field}from"./components/field/component.js";export{Optgroup}from"./components/optgroup/component.js";export{Option}from"./components/option/component.js";export{OptionsList}from"./components/options-list/component.js";export{VirtualOptionsList}from"./components/virtual-options-list/component.js";export{useSelectWithLoading}from"./presets/use-select-with-loading/hook.js";export{useLazyLoading}from"./presets/use-lazy-loading/index.js";export{convertToOptions,isGroup,isOptionShape,joinOptions,lastIndexOf,processOptions,useVisibleOptions}from"./utils.js";import"../tslib.es6-054c3e60.js";import"react";import"classnames";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"./components/native-select/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../skeleton/component.js";import"./components/checkmark/component.js";import"../ClockCircleM-13de520f.js";import"../button/component.js";import"../loader/component.js";import"react-virtual";import"../hooks/usePrevious/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-1ed02028.js";import"../CloseS-ec25923f.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-74dc9974.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{useSelectWithLoading}from"./use-select-with-loading/hook.js";export{useLazyLoading}from"./use-lazy-loading/index.js";import"../../tslib.es6-
|
|
1
|
+
export{useSelectWithLoading}from"./use-select-with-loading/hook.js";export{useLazyLoading}from"./use-lazy-loading/index.js";import"../../tslib.es6-054c3e60.js";import"react";import"../../skeleton/component.js";import"classnames";import"../components/option/component.js";import"../components/checkmark/component.js";import"../utils.js";import"../../intersection-observer-74dc9974.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as n,b as e}from"../../../tslib.es6-054c3e60.js";import t,{useReducer as o,useRef as r,useCallback as i,useEffect as c,useMemo as a}from"react";import{Option as s}from"../../components/option/component.js";import{convertToOptions as l}from"../../utils.js";import"../../../intersection-observer-74dc9974.js";import"classnames";import"../../../skeleton/component.js";import"../../components/checkmark/component.js";var u=300,p={fetchOptionsStart:function(){return{type:"FETCH_OPTIONS_START"}},fetchOptionsBreak:function(){return{type:"FETCH_OPTIONS_BREAK"}},fetchOptionsSuccess:function(n){return{type:"FETCH_OPTIONS_SUCCESS",payload:n}},setIsOpened:function(n){return{type:"SET_IS_OPENED",payload:n}},setQueryString:function(n){return{type:"SET_QUERY_STRING",payload:n}},reset:function(){return{type:"RESET"}}};function d(d){var f=d.limit,h=void 0===f?10:f,S=d.initialPage,T=void 0===S?0:S,g=d.optionsFetcher,m=[],v={opened:!1,page:T,options:m,loading:!1,allOptionsLoaded:!1,searchText:""},O=o((function(t,o){switch(o.type){case"FETCH_OPTIONS_START":return n(n({},t),{loading:!0});case"FETCH_OPTIONS_BREAK":return n(n({},t),{loading:!1});case"FETCH_OPTIONS_SUCCESS":return n(n({},t),{options:e(e([],t.options),o.payload.options),page:t.page+(o.payload.options.length?1:0),allOptionsLoaded:!o.payload.hasMore,loading:!1});case"SET_IS_OPENED":return n(n({},t),{opened:o.payload});case"SET_QUERY_STRING":return n(n({},v),{opened:t.opened,loading:!0,searchText:o.payload});case"RESET":return n({},v);default:return t}}),v),E=O[0],y=E.opened,_=E.page,P=E.options,I=E.loading,C=E.allOptionsLoaded,N=E.searchText,R=O[1],F=r(),b=i((function(){R(p.fetchOptionsStart()),new Promise((function(n,e){var t;null===(t=F.current)||void 0===t||t.call(F),F.current=e,g({page:_,limit:h,searchText:N}).then((function(e){n(e)}))})).then((function(n){var e=l(n.items),t=n.meta,o=t.totalPages,r=t.currentPage;R(p.fetchOptionsSuccess({options:e,hasMore:r<o})),F.current=void 0})).catch((function(n){console.log(n)}))}),[_,h,N,g]),j=r(null);c((function(){var n,e;if(y&&!I&&!C){e=new IntersectionObserver((function(n){n[0].isIntersecting&&(e&&e.disconnect(),b())}),{root:j.current});var t=null===(n=j.current)||void 0===n?void 0:n.querySelectorAll('[role="option"]'),o=null==t?void 0:t[t.length-1];o&&e.observe(o)}return function(){e&&e.disconnect()}}),[_,y,C,T,I,b]);var k=i((function(n){var e,t;n.open?P.length===m.length&&b():(null===(e=F.current)||void 0===e||e.call(F),R(p.fetchOptionsBreak())),R(p.setIsOpened(null!==(t=n.open)&&void 0!==t&&t))}),[m.length,P.length,b]),A=r(),H=r();c((function(){A.current=b}),[b]);var x=i((function(n,e){var t,o;R(p.setQueryString(e.value)),null===(t=F.current)||void 0===t||t.call(F),null===(o=j.current)||void 0===o||o.scrollTo({top:0}),H.current&&clearTimeout(H.current),H.current=setTimeout((function(){var n;null===(n=A.current)||void 0===n||n.call(A)}),u)}),[]),B=a((function(){return Array(I?h:0).fill(0).map((function(n,e){return{key:e,disabled:!0,content:"",loading:!0}}))}),[I,h]),L=i((function(){R(p.reset())}),[]);return{optionsProps:{Option:i((function(e){return t.createElement(s,n({},e,{highlighted:!I&&e.highlighted}))}),[I]),options:e(e([],P),B),optionsListProps:{ref:j,inputProps:{onChange:x,value:N}},onOpen:k},reset:L}}export{d as useLazyLoading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as e}from"../../../tslib.es6-054c3e60.js";import o,{useCallback as n}from"react";import{Skeleton as t}from"../../../skeleton/component.js";import{Option as i}from"../../components/option/component.js";import"classnames";import"../../components/checkmark/component.js";var r={skeleton:"index-module_skeleton__9Xlnt"};function l(l){var m=l.loading,s=void 0!==m&&m,c=l.visibleOptions,a=void 0===c?6:c,p=n((function(n){return o.createElement(i,e({},n,{Checkmark:null,highlighted:!s&&n.highlighted}))}),[s]),d=Array(a).fill(0).map((function(e,n){return{key:n,disabled:!0,content:o.createElement(t,{className:r.skeleton,visible:!0})}}));return s?{Option:p,options:d}:null}export{l as useSelectWithLoading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";var r="index-module_wrapper__QxqDy",m="index-module_heading__XGDyC",a="index-module_bottomAddons__3yzd0",d="index-module_border__lFf3f",i=function(i){var l,s=i.className,n=i.dataTestId,p=i.title,c=i.rightAddons,_=i.bottomAddons,y=i.border;return e.createElement("div",{"data-test-id":n,className:t(r,s,(l={},l[d]=y,l))},e.createElement("div",{className:m},e.createElement(o.Title,{tag:"h3",view:"small",weight:"bold"},p),c&&e.createElement("div",null,c)),_&&e.createElement("div",{className:a},_))};export{i as SidepanelHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import a from"classnames";var t="index-module_component__-McTc",m="index-module_animate__-bLCJ",n=function(n){var r,i=n.visible,c=n.animate,d=void 0===c||c,l=n.className,o=n.dataTestId,s=n.children;return i?e.createElement("div",{className:a(t,(r={},r[m]=d,r),l),"data-test-id":o},s):e.createElement(e.Fragment,null,s)};export{n as Skeleton};
|
package/dist/skeleton/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Skeleton}from"./component.js";import"react";import"classnames";
|
|
1
|
+
export{Skeleton}from"./component.js";import"react";import"classnames";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import i from"classnames";import{Typography as a}from"./typography/component.js";import{isSmallImage as o,getImageAlt as l}from"./image-gallery/utils/utils.js";import{TestIds as r}from"./image-gallery/utils/constants.js";var n={component:"index-module_component__yJfUt",swiper:"index-module_swiper__0SEzT",singleSlide:"index-module_singleSlide__HOytD",hidden:"index-module_hidden__IKndk",slide:"index-module_slide__t9HU8",slideLoading:"index-module_slideLoading__ESWLL",image:"index-module_image__zCKpV",smallImage:"index-module_smallImage__nMX3i",verticalImageFit:"index-module_verticalImageFit__hKfdZ",horizontalImageFit:"index-module_horizontalImageFit__i1Uqw",arrow:"index-module_arrow__VWc0A",focused:"index-module_focused__VrSEy",placeholder:"index-module_placeholder__-VeGJ",brokenImgWrapper:"index-module_brokenImgWrapper__vPNHE",brokenImgIcon:"index-module_brokenImgIcon__1x5bR",fullScreenImage:"index-module_fullScreenImage__w9zge"},d=function(o){var l,r=o.children,d=o.broken,m=o.loading,t=o.withPlaceholder;o.active;var s=d?e.createElement("div",{className:n.brokenImgWrapper},e.createElement("div",{className:n.brokenImgIcon}),e.createElement(a.Text,{view:"primary-small",color:"secondary"},"Bdoken imagge")):r;return e.createElement("div",{className:i(n.slide,(l={},l[n.slideLoading]=m,l))},t?e.createElement("div",{className:n.placeholder},s):s)},m=function(a){var m,t=a.isActive,s=a.meta,_=a.swiperAspectRatio,c=a.imageAspectRatio,g=a.image,u=a.index,p=a.swiperHeight,I=a.slideVisible,x=a.handleLoad,h=a.handleLoadError,v=Boolean(null==s?void 0:s.broken),f=o(s),E=!f&&_>c,b=!f&&_<=c;return e.createElement(d,{active:t,broken:v,loading:!s,withPlaceholder:f||v},e.createElement("img",{src:g.src,alt:l(g,u),className:i((m={},m[n.smallImage]=f,m[n.image]=!f,m[n.verticalImageFit]=E,m[n.horizontalImageFit]=b,m)),onLoad:function(e){return x(e,u)},onError:function(){return h(u)},style:{maxHeight:p+"px"},"data-test-id":I?r.ACTIVE_IMAGE:void 0}))};export{m as S,n as s};
|
package/dist/space/Item.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-054c3e60.js";import t from"react";var a=function(a){var r=a.className,i=a.horizontalSize,l=a.verticalSize,n=a.length,m=a.direction,o=a.index,c=a.children,s=a.divider,d=a.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(s?2:1)}):g=e(e({},o<n&&{marginRight:i/(s?2:1)}),d&&{paddingBottom:l}),null==c?null:t.createElement(t.Fragment,null,t.createElement("div",{className:r,style:g},c),o<n-1&&s&&t.createElement("span",{style:e({width:"100%"},g)},s))};export{a as default};
|
package/dist/space/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-054c3e60.js";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var l={spaceContainer:"index-module_spaceContainer__Onnxn",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__W7-9v",vertical:"index-module_vertical__EjIme",center:"index-module_center__VDiFi",start:"index-module_start__WKuO-",end:"index-module_end__FzVWP",spaceItemFullWidth:"index-module_spaceItemFullWidth__C58tA",spaceItem:"index-module_spaceItem__oUYtC"},o={s:12,m:16,l:20},d=i((function(i,d){var m,s,c=i.children,u=i.className,p=i.align,_=void 0===p?"start":p,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,W=i.wrap,C=void 0!==W&&W,F=i.divider,I=void 0!==F&&F,g=i.fullWidth,y=void 0!==g&&g,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?o[e]:e||0}(e)}))}),[x]),A=z[0],j=z[1],w=r.toArray(c);if(0===w.length)return null;var E=n(l.spaceContainer,l[f],((m={})[l[_]]=_,m[l.spaceContainerFullWidth]=y,m),u),N=n(l.spaceItem,((s={})[l.spaceItemFullWidth]=y,s)),O=w.map((function(e,i){return t.createElement(a,{className:N,key:N+"-"+i,direction:f,horizontalSize:A,verticalSize:j,length:w.length,index:i,wrap:C,divider:I},e)}));return t.createElement("div",{className:E,style:e({},C&&{flexWrap:"wrap",marginBottom:-j}),ref:d},O)}));export{d as Space};
|
package/dist/space/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Space}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Space}from"./component.js";import"../tslib.es6-054c3e60.js";import"react";import"classnames";import"./Item.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import r from"classnames";var d={s:"index-module_s__Xi4z8",m:"index-module_m__ZpMyr",spinnerWrapper:"index-module_spinnerWrapper__VE6YF",spinner:"index-module_spinner__QP-ux",rotate:"index-module_rotate__Qv2Ic",path:"index-module_path__SQCAA",dash:"index-module_dash__PurJL",default:"index-module_default__nPp3J",dark:"index-module_dark__QnOjR",invert:"index-module_invert__6bSD5"},i=function(i){var n=i.size,a=void 0===n?"s":n,t=i.id,_=i.view,s=void 0===_?"default":_,m=i.className,l=i.dataTestId;return e.createElement("div",{id:t,"data-test-id":l,className:r(d.spinnerWrapper,d[a],m)},e.createElement("svg",{className:r(d.spinner,d[a]),preserveAspectRatio:"xMinYMin meet",viewBox:"0 0 50 50"},e.createElement("circle",{className:r(d.path,d[s]),cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})))};export{i as Spinner};
|
package/dist/spinner/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Spinner}from"./component.js";import"react";import"classnames";
|
|
1
|
+
export{Spinner}from"./component.js";import"react";import"classnames";
|
package/dist/status/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import _ from"classnames";var o={component:"index-module_component__ow7Aw",upper_case:"index-module_upper_case__qm11K",soft:"index-module_soft__BdoFt",green:"index-module_green__KVuFt",orange:"index-module_orange__RhVjy",red:"index-module_red__tLzKj",blue:"index-module_blue__Z-Cce",grey:"index-module_grey__0taE9",teal:"index-module_teal__wjFjP",purple:"index-module_purple__xJsve",contrast:"index-module_contrast__Y6fKB"},d=function(d){var n,r=d.className,t=d.view,a=d.color,l=d.children,m=d.dataTestId,u=d.upperCase;return e.createElement("span",{className:_(o.component,o[a],o[t],r,(n={},n[o.upper_case]=u,n)),"data-test-id":m},l)};export{d as Status};
|
package/dist/status/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Status}from"./component.js";import"react";import"classnames";
|
|
1
|
+
export{Status}from"./component.js";import"react";import"classnames";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{memo as i}from"react";import n from"classnames";var o={bar:"index-module_bar__SJw07",positive:"index-module_positive__BV6AP",attention:"index-module_attention__yBWsh",negative:"index-module_negative__JYzop",link:"index-module_link__3hGbM",tertiary:"index-module_tertiary__4dElX",secondary:"index-module_secondary__J2aM7",primary:"index-module_primary__9D-Nm",accent:"index-module_accent__NXKi2",component:"index-module_component__bJPtL",stepsContainer:"index-module_stepsContainer__o8tZI",description:"index-module_description__JRG5S"},t=i((function(i){var t=i.isDone,_=i.view,d=void 0===_?"positive":_;return e.createElement("span",{"data-test-id":t?"on":"off",className:n(o.bar,t&&o[d])})}));export{t as S,o as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{useState as e}from"react";import r from"classnames";import{s as o,S as
|
|
1
|
+
import t,{useState as e}from"react";import r from"classnames";import{s as o,S as a}from"../step-bar-bbdc2cea.js";import{Typography as i}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";var p=function(e){var p=e.maxStep,s=e.description,n=e.step,m=void 0===n?0:n,c=e.view,l=e.dataTestId,d=e.className,v=p<=0?1:p,y="string"==typeof c;return t.createElement("div",{className:r(o.component,d),"data-test-id":l},t.createElement("div",{className:o.stepsContainer},Array.from(Array(v),(function(e,r){return t.createElement(a,{key:r,isDone:r<m,view:y?c:null==c?void 0:c[r]})}))),s&&t.createElement(i.Text,{tag:"div",className:o.description,view:"primary-small"},"Шаг ",m," из ",p,": ",s))},s=function(t){var r=t.maxStep,o=t.initialStep,a=e(void 0===o?1:o),i=a[0],p=a[1];return{step:i,setStep:p,nextStep:function(){p(i<r?i+1:r)},prevStep:function(){p(1===i?i:i-1)}}};export{p as SteppedProgressBar,s as useSteps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";export{S as StepBar}from"../step-bar-
|
|
1
|
+
import"react";import"classnames";export{S as StepBar}from"../step-bar-bbdc2cea.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import n from"classnames";var t={component:"index-module_component__yE8Fi",yellow:"index-module_yellow__e9HEA",white:"index-module_white__vq66g",green:"index-module_green__YtEMp",blue:"index-module_blue__B76YL",gray:"index-module_gray__nmJqT"},o=function(o){var l=o.className,m=o.text,a=o.color,_=o.dataTestId;return e.createElement("div",{className:n(t.component,t[a],l),"data-test-id":_},e.createElement("span",null,m))};export{o as Sticker};
|
package/dist/sticker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Sticker}from"./component.js";import"react";import"classnames";
|
|
1
|
+
export{Sticker}from"./component.js";import"react";import"classnames";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-054c3e60.js";import n,{forwardRef as r,useState as a,useEffect as t,useCallback as i,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{withSuffix as u}from"../with-suffix/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var c={container:"index-module_container__tczFF",minorPartAndCurrency:"index-module_minorPartAndCurrency__0K7XF",suffixContainer:"index-module_suffixContainer__8eIxg",filled:"index-module_filled__nKrpt",input:"index-module_input__SIj3W"},d=u(m),f=r((function(r,m){var u,f=r.value,p=r.suffix,C=r.placeholder,v=void 0===C?"":C,x=r.bold,_=void 0===x||x,N=r.className,j=r.focusedClassName,b=r.required,g=r.dataTestId,h=r.clear,I=void 0!==h&&h,y=r.onChange,E=r.onClear,F=e(r,["value","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","onChange","onClear"]),q=a(f),A=q[0],P=q[1];t((function(){return A!==f?P(f):function(){}}),[f]);var T=i((function(e){P(void 0),E&&E(e)}),[E]);return n.createElement("div",{className:l(c.container,(u={},u[c.bold]=_,u[c.filled]=Boolean(A),u))},n.createElement(d,o({},F,{suffix:n.createElement(s,null,A,n.createElement("span",{className:c.minorPartAndCurrency}," ",p)),suffixContainerClassName:c.suffixContainer,clear:I,required:b,placeholder:v,value:Number.isInteger(f)?""+f:void 0,type:"number",className:l(c.component,N),focusedClassName:j,inputClassName:c.input,onChange:function(e){var o=e.target.value;y&&y(e,{value:Number.isInteger(+o)?+o:void 0})},onClear:T,dataTestId:g,ref:m})))}));export{f as SuffixInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuffixInput}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{SuffixInput}from"./component.js";import"../tslib.es6-054c3e60.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",n="index-module_leftAddons__l-m-3",r="index-module_rightAddons__m-u4n",i=function(i){var s=i.text,a=i.leftAddons,d=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{weight:"bold",tag:"span"},s),a&&e.createElement("div",{className:n},a)),d&&e.createElement("div",{className:r},d))};export{i as SuperListHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-
|
|
1
|
+
export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Dot as
|
|
1
|
+
import e from"react";import t from"classnames";import{Dot as o}from"../dot/component.js";import{Typography as r}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";var i="index-module_component__exnSI",m="index-module_leftSide__t9PJZ",a="index-module_content__Z53Wl",l="index-module_leftAddons__AhXk-",n="index-module_rightAddons__UjV9O",s=function(s){var c=s.text,d=s.rightAddons,p=s.leftAddons,v=s.color,g=void 0===v?"primary":v,_=s.disabled,x=s.className,y=s.weight,h=void 0===y?"regular":y,f=s.hint;return e.createElement("div",{className:t(i,x)},e.createElement("div",{className:m},p&&!_&&e.createElement("div",{className:l},p),_&&e.createElement("div",{className:l},e.createElement(o,{size:"sm",color:"grey"})),e.createElement("div",{className:a},e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},c),f&&e.createElement(r.Text,{color:"secondary",view:"caps",tag:"div"},f))),d&&e.createElement("div",{className:n},"string"==typeof d?e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},d):d))};export{s as SuperListItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuperListItem}from"./component.js";import"react";import"classnames";import"../dot/component.js";import"../
|
|
1
|
+
export{SuperListItem}from"./component.js";import"react";import"classnames";import"../dot/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";
|
package/dist/switch/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a
|
|
1
|
+
import{_ as e,a}from"../tslib.es6-054c3e60.js";import d,{forwardRef as n,useRef as s,useCallback as t}from"react";import o from"react-merge-refs";import c from"classnames";import{useFocus as l}from"../hooks/useFocus/index.js";var m={component:"index-module_component__uXwqU",checked:"index-module_checked__dMpWF",switch:"index-module_switch__c7Qyf",start:"index-module_start__6RfRJ",center:"index-module_center__1n6sQ",addons:"index-module_addons__ZqO-o",block:"index-module_block__m7SjH",content:"index-module_content__hoWfv",label:"index-module_label__earxI",hint:"index-module_hint__LstQQ",reversed:"index-module_reversed__fS7Bs",disabled:"index-module_disabled__s1L6d",focused:"index-module_focused__v7jCm"},r=n((function(n,r){var i,_=n.reversed,u=void 0!==_&&_,h=n.checked,b=void 0!==h&&h,p=n.align,x=void 0===p?"start":p,f=n.addons,k=n.block,v=n.disabled,N=n.label,g=n.hint,E=n.name,j=n.value,w=n.className,C=n.onChange,Q=n.dataTestId,y=e(n,["reversed","checked","align","addons","block","disabled","label","hint","name","value","className","onChange","dataTestId"]),I=s(null),q=l(I,"keyboard")[0],F=t((function(e){C&&C(e,{checked:e.target.checked,name:E})}),[C,E]);return d.createElement("label",{className:c(m.component,m[x],w,(i={},i[m.disabled]=v,i[m.checked]=b,i[m.reversed]=u,i[m.focused]=q,i[m.block]=k,i)),ref:o([I,r])},d.createElement("input",a({type:"checkbox",onChange:F,disabled:v,checked:b,name:E,value:j,"data-test-id":Q},y)),d.createElement("span",{className:m.switch}),(N||g)&&d.createElement("span",{className:m.content},N&&d.createElement("span",{className:m.label},N),g&&d.createElement("span",{className:m.hint},g)),f&&d.createElement("span",{className:m.addons},f))}));export{r as Switch};
|
package/dist/switch/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Switch}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Switch}from"./component.js";import"../tslib.es6-054c3e60.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
|
package/dist/table/columns.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{Button as e}from"../button/component.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import{Button as e}from"../button/component.js";import"../tslib.es6-054c3e60.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";var r=function(){return[{header:"Title",accessor:"title",sort:!0,row:{image:function(){return"https://via.placeholder.com/150"},subtitle:"title"}},{header:"Photo",accessor:"photo",sort:!0,row:{title:function(t){return t.row.title+"awdawd"},image:function(t){return t.row.photo}}},{header:"no icon",row:{icon:function(){return""}}},{header:"Button",align:"right",width:"200px",row:{title:function(r){var o=r.refetch;return t.createElement(e,{onClick:o},"Refetch")},customAddon:function(e){var r=e.row;return t.createElement("div",{style:{background:"red"}},r.title.length)}}}]};export{r as NewColumns};
|
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-f17d87dc.js";import"../tslib.es6-054c3e60.js";import"react";import"classnames";import"../component-e7fa3a41.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/component.js";import"./components/cells/index.js";import"../ChevronForwardS-95d0ad40.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-806e430d.js";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"../CloseS-ec25923f.js";import"../SearchM-03bb40d0.js";import"./hooks/use-table-data.js";import"../parse-query-params-40e81a2b.js";import"../_commonjsHelpers-03353663.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"../PhotoS-9e6032f3.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-0a686f55.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.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-054c3e60.js";import t from"react";import i from"classnames";import{C as o}from"../../../component-e7fa3a41.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-42c4e92f.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-054c3e60.js";import"react";import"classnames";import"../../../component-e7fa3a41.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-42c4e92f.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-95d0ad40.js";import o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-42c4e92f.js";import"../../../typography/title/index.js";import"../../../tslib.es6-054c3e60.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,d=c.addParam;return e.createElement("thead",null,e.createElement("tr",{className:a.header_row},l.map((function(c){var l,s,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 d({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],(s={},s[a.accent]=i,s))},e.createElement(r,null))))}))))}export{c as Cells};
|