@alphakits/ui 1.27.27 → 1.27.29
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-888e6e0c.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-da58f14e.js → capitalize-5d26c09d.js} +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/colors.module-dee57c29.js +1 -0
- package/dist/component-1852eed1.js +1 -0
- package/dist/component-75e0e7b6.js +1 -0
- package/dist/contact-block-813441b9.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-1e0c1369.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-200440e1.js +1 -0
- package/dist/index-2fa5f0ff.js +1 -0
- package/dist/index-36969ea7.js +1 -0
- package/dist/{index-00def255.js → index-6177f5e3.js} +1 -1
- package/dist/{index-579985bf.js → index-69b4d678.js} +1 -1
- package/dist/index-72b153ca.js +1 -0
- package/dist/{index-5d5dc52f.js → index-74c7ea5e.js} +1 -1
- package/dist/{index-8347460a.js → index-9a229f94.js} +1 -1
- package/dist/index-a487f3e1.js +1 -0
- package/dist/index-eb5ee370.js +1 -0
- package/dist/{index-f96da3a0.js → index-eef797c6.js} +2 -2
- package/dist/index-fd5802fb.js +1 -0
- package/dist/{index-7cac52e8.js → index-ff0ff21f.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-2f4ce52c.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.d.ts +2 -2
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/types.d.ts +5 -3
- 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-a869615f.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-98ce8f96.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.d.ts +1 -0
- package/dist/status/component.js +1 -1
- package/dist/status/index.js +1 -1
- package/dist/step-bar-2137118d.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-b09b57f4.d.ts +13 -0
- package/dist/use-image-render-component-b09b57f4.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 -2
- package/dist/colors.module-bcab070d.js +0 -1
- package/dist/component-8815e62a.js +0 -1
- package/dist/component-dd7178f2.js +0 -1
- package/dist/contact-block-ffd5adcd.js +0 -1
- package/dist/gutters.module-63c85344.js +0 -1
- package/dist/index-21c90eba.js +0 -1
- package/dist/index-290e6c62.js +0 -1
- package/dist/index-54cfd58f.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-2888c6f3.js +0 -1
- package/dist/index.module-37dfdb4b.js +0 -1
- package/dist/index.module-484c9508.js +0 -1
- package/dist/index.module-7efc4510.js +0 -1
- package/dist/index.module-ef79213a.js +0 -1
- package/dist/slide-e3b4aca4.js +0 -1
- package/dist/step-bar-f54b2d63.js +0 -1
- package/dist/style-inject.es-1f59c1d0.js +0 -1
- /package/dist/{ActionCopyM-2f28ae57.js → ActionCopyM-66c0b0d4.js} +0 -0
- /package/dist/{CheckmarkCircleM-10f50b3f.js → CheckmarkCircleM-ab70fc95.js} +0 -0
- /package/dist/{ChevronBackM-47d9cb6d.js → ChevronBackM-f221b96d.js} +0 -0
- /package/dist/{ChevronDownS-5f3ba4f5.js → ChevronDownS-1b1b979a.js} +0 -0
- /package/dist/{ChevronForwardS-78acca51.js → ChevronForwardS-0117b7b4.js} +0 -0
- /package/dist/{ClockCircleM-9cbd1915.js → ClockCircleM-4239c494.js} +0 -0
- /package/dist/{CloseS-c17ee568.js → CloseS-c67b27a4.js} +0 -0
- /package/dist/{NextS-2b028cce.js → NextS-9d66362a.js} +0 -0
- /package/dist/{PlusS-d3752d5b.js → PlusS-c9e4359e.js} +0 -0
- /package/dist/{SearchM-9b5d9f79.js → SearchM-b0f02c73.js} +0 -0
- /package/dist/{TrashM-504e1b6e.js → TrashM-d4062058.js} +0 -0
- /package/dist/{_commonjsHelpers-97e6d7b1.js → _commonjsHelpers-df4d639f.js} +0 -0
- /package/dist/{component-8815e62a.d.ts → component-1852eed1.d.ts} +0 -0
- /package/dist/{component-dd7178f2.d.ts → component-75e0e7b6.d.ts} +0 -0
- /package/dist/{contact-block-ffd5adcd.d.ts → contact-block-813441b9.d.ts} +0 -0
- /package/dist/{index-54cfd58f.d.ts → index-200440e1.d.ts} +0 -0
- /package/dist/{index-14cb6781.js → index-58997b72.js} +0 -0
- /package/dist/{index-acf532e5.js → index-e874f104.js} +0 -0
- /package/dist/{intersection-observer-044a6fec.js → intersection-observer-80f4ad58.js} +0 -0
- /package/dist/{parse-query-params-5917b4fd.d.ts → parse-query-params-a869615f.d.ts} +0 -0
- /package/dist/{slide-e3b4aca4.d.ts → slide-98ce8f96.d.ts} +0 -0
- /package/dist/{step-bar-f54b2d63.d.ts → step-bar-2137118d.d.ts} +0 -0
- /package/dist/{tslib.es6-c1295375.js → tslib.es6-e419faf4.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-e419faf4.js";import o,{forwardRef as l,useCallback as n}from"react";import{A as a,C as d}from"../CheckmarkCircleM-ab70fc95.js";import{C as s}from"../ClockCircleM-4239c494.js";import{C as m}from"../CloseS-c67b27a4.js";import c from"classnames";import{Button as i}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var r={component:"index-module_component__2FCoC",hasCloser:"index-module_hasCloser__ig0bb",block:"index-module_block__aZI2E",positive:"index-module_positive__k8leE",checkmark:"index-module_checkmark__Uk-P-",attention:"index-module_attention__qo9dl",negative:"index-module_negative__rdTB6",default:"index-module_default__yyLQR",neutral:"index-module_neutral__KAatw",black:"index-module_black__c7gBa",closeButton:"index-module_closeButton__mFhAC",contentWrap:"index-module_contentWrap__-P3Jg",content:"index-module_content__ING2J",leftAddons:"index-module_leftAddons__Odkdf",title:"index-module_title__QZFUh",children:"index-module_children__tKSv7",bottomAddons:"index-module_bottomAddons__ixVcA"},_={negative:o.createElement(a,null),attention:o.createElement(a,null),positive:o.createElement(d,null),default:o.createElement(s,null),neutral:o.createElement(s,null),black:null},u=l((function(l,a){var d,s=l.dataTestId,u=l.className,f=l.contentClassName,k=l.hasCloser,p=l.leftAddons,v=l.view,C=void 0===v?"default":v,b=l.title,x=l.children,h=l.bottomAddons,E=l.block,A=l.onClose,N=e(l,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","bottomAddons","block","onClose"]),g=n((function(e){A&&A(e)}),[A]);return o.createElement("div",t({ref:a,className:c(r.component,r[C],(d={},d[r.block]=E,d[r.hasCloser]=k,d),u),"data-test-id":s},N),o.createElement("div",{className:r.contentWrap},p&&o.createElement("div",{className:r.leftAddons},_[C]),_[C]&&!p&&o.createElement("div",{className:r.checkmark},_[C]),o.createElement("div",{className:c(f,r.content)},b&&o.createElement("div",{className:r.title},b),x&&o.createElement("div",{className:r.children},x),h&&o.createElement("div",{className:r.bottomAddons},h)),k&&o.createElement(i,t({className:c(r.closeButton),view:"ghost"},{onClick:g},{"aria-label":"закрыть",leftAddons:o.createElement(m,null)}))))}));export{u as ToastPlate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastPlate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastPlate}from"./component.js";import"../tslib.es6-e419faf4.js";import"react";import"../CheckmarkCircleM-ab70fc95.js";import"../ClockCircleM-4239c494.js";import"../CloseS-c67b27a4.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as e}from"../tslib.es6-e419faf4.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var p="index-module_component__KCXt7",m="index-module_popper__M9HfK",l="index-module_target__nVe99",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,M=f.getPortalContainer,j=f.offset,x=void 0===j?[0,10]:j,y=f.position,b=f.contentClassName,P=f.arrowClassName,R=f.popoverClassName,S=f.updatePopover,D=t(!!E),K=D[0],L=D[1],A=t(null),F=A[0],H=A[1],I=o.useRef(null),V=o.useRef(null),X=r(0),q=function(){K||(L(!0),O&&O())},z=n((function(){K&&(L(!1),N&&N())}),[N,K]),B=function(e){return(!I.current||!I.current.contains(e))&&(!V.current||!V.current.contains(e))};c((function(){var e=function(e){var o=e.target;B(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(X.current)}}),[z]);var G,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),K?z():q()}},Q={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(X.current),X.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(X.current),X.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(X.current),B(o)?X.current=window.setTimeout((function(){z()}),h):q()}},U=void 0===E?K:E,W=n((function(e){I.current=e,H(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:W},(G=function(o){var t={className:u(l,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),Q);default:return{}}}(d.props),a(d,G))),F&&o.createElement(s,{anchorElement:F,open:U,getPortalContainer:M,arrowClassName:P,popperClassName:u(m,R),offset:x,withArrow:!0,position:y,update:S},function(){var t=function(){var o={ref:V,"data-test-id":k,className:u(p,b)};return"hover"===w?e(e({},o),Q):o}();return o.createElement("div",e({},t),v)}()))};export{f as Tooltip};
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tooltip}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Tooltip}from"./component.js";import"../tslib.es6-e419faf4.js";import"react";import"react-node-resolver";import"classnames";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Text as t}from"./text/component.js";import{Title as o}from"./title/index.js";import"react";import"classnames";import"../colors.module-
|
|
1
|
+
import{Text as t}from"./text/component.js";import{Title as o}from"./title/index.js";import"react";import"classnames";import"../colors.module-dee57c29.js";import"../tslib.es6-e419faf4.js";import"./title/component.js";var e={Title:o,Text:t};export{e as Typography};
|
package/dist/typography/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-
|
|
1
|
+
export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-dee57c29.js";import"./title/index.js";import"../tslib.es6-e419faf4.js";import"./title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-dee57c29.js";var m={paragraph:"index-module_paragraph__msaC8","primary-medium":"index-module_primary-medium__LhYfj","primary-small":"index-module_primary-small__lYM88",title:"index-module_title__O9czO",caps:"index-module_caps__l7Eqh",uppercase:"index-module_uppercase__JVKeT",bold:"index-module_bold__RuoQM",medium:"index-module_medium__YL230",regular:"index-module_regular__h8gTH",through:"index-module_through__3EDOt",component:"index-module_component__MPBKM"},d=function(d){var o,_=d.tag,i=void 0===_?"span":_,l=d.through,u=void 0!==l&&l,p=d.weight,t=void 0===p?"regular":p,n=d.uppercase,s=d.color,c=d.view,h=d.className,g=d.dataTestId,x=d.children;return e.createElement(i,{className:r((o={},o[m.paragraph]="p"===i,o[m.uppercase]=n,o[m.through]=u,o[m[c]]=c,o),h,s&&a[s],m[t]),"data-test-id":g},x)};export{d as Text};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-
|
|
1
|
+
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-dee57c29.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import r from"classnames";import{c as
|
|
1
|
+
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-dee57c29.js";var o=function(o){var t,i=o.tag,m=void 0===i?"div":i,s=o.view,d=void 0===s?"medium":s,c=o.weight,n=void 0===c?"medium":c,l=o.defaultMargins,p=void 0!==l&&l,u=o.color,v=void 0===u?"primary":u,g=o.className,h=o.dataTestId,f=o.uppercase,w=o.through,y=o.children,N=o.styles;return e.createElement(m,{className:r(N.component,g,N["montserrat-"+d],p&&N["margins-"+d],(t={},t[N.uppercase]=f,t[N.through]=w,t),N[n],v&&a[v]),"data-test-id":h},y)};export{o as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-e419faf4.js";import e from"react";import{Title as r}from"./component.js";import"classnames";import"../../colors.module-dee57c29.js";var o={component:"common-module_component__l-zRT",bold:"common-module_bold__R07W3",medium:"common-module_medium__IcxXn",regular:"common-module_regular__2NoXt"},l={"montserrat-xlarge":"index-module_montserrat-xlarge__hdgbt","montserrat-large":"index-module_montserrat-large__Go4Ju","montserrat-medium":"index-module_montserrat-medium__KJdm0","montserrat-small":"index-module_montserrat-small__T0UeA","montserrat-xsmall":"index-module_montserrat-xsmall__9757S","montserrat-xxsmall":"index-module_montserrat-xxsmall__5pe-b","margins-xlarge":"index-module_margins-xlarge__o0X6K","margins-large":"index-module_margins-large__njSHO","margins-medium":"index-module_margins-medium__ir-Bn","margins-small":"index-module_margins-small__F4y4n","margins-xsmall":"index-module_margins-xsmall__69GSc",uppercase:"index-module_uppercase__NG5Qa",through:"index-module_through__ezTzC"},a=function(a){return e.createElement(r,m({},a,{styles:m(m({},o),l)}))};export{a as Title};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ComponentSizes, ImageSizes } from "./image/types";
|
|
4
|
+
type UseImageRenderComponent = {
|
|
5
|
+
src?: string;
|
|
6
|
+
resolution?: ImageSizes;
|
|
7
|
+
size: ComponentSizes;
|
|
8
|
+
alt?: string;
|
|
9
|
+
text?: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const useImageRenderComponent: ({ src, resolution, size, alt, text, icon, }: UseImageRenderComponent) => {};
|
|
13
|
+
export { UseImageRenderComponent, useImageRenderComponent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{P as i,a as _}from"./PhotoS-888e6e0c.js";import r from"classnames";import{Spinner as d}from"./spinner/component.js";import{Typography as m}from"./typography/component.js";import{sizes as l,textSizes as a}from"./image/types.js";import{getSrc as x,getCharsFromText as s}from"./image/utils.js";var c={container:"index-module_container__bgmJ2",component:"index-module_component__Jf39Y",addon:"index-module_addon__fLNNt",default:"index-module_default__7yCk8",primary:"index-module_primary__NmfOf","primary-inverted":"index-module_primary-inverted__LgfAy",secondary:"index-module_secondary__mFC44","secondary-inverted":"index-module_secondary-inverted__A3WWS",positive:"index-module_positive__KObTG",negative:"index-module_negative__JSntK",attention:"index-module_attention__xn0w7",accent:"index-module_accent__OKgO0",broken:"index-module_broken__U-IUD",image:"index-module_image__m6QQ3",hint:"index-module_hint__U93qq",hint_text:"index-module_hint_text__iACDk",textContent:"index-module_textContent__zwpfH",xs:"index-module_xs__WMoNb",s:"index-module_s__Hg5M9",m:"index-module_m__C8KqW",l:"index-module_l__bAVTF",xl:"index-module_xl__4V4rQ",xxl:"index-module_xxl__CbPtC",circle:"index-module_circle__a7zSR",ellipse:"index-module_ellipse__omc91",defs:"index-module_defs__-U1g-",textS:"index-module_textS__rn-Mq",textXs:"index-module_textXs__qpkPR",textM:"index-module_textM__mXb7s",textL:"index-module_textL__jV-69"},u=function(u){var p=u.src,f=void 0===p?"":p,g=u.resolution,v=u.size,y=u.alt,b=u.text,w=u.icon,C=e.useState("loading"),h=C[0],N=C[1],k=t(0),S=g||l[v],j=n((function(){return x(f,S)}),[S,f]);return o((function(){if(j){k.current=Date.now(),N("loading");var e=new Image;e.src=j,e.onload=function(){N("loaded")},e.onerror=function(){Date.now()-k.current<15e3?setTimeout((function(){e.src=j}),1e3):N("error")}}else N("error")}),[j]),w||("loading"===h?e.createElement(d,{className:c.spinner,size:"s",view:"dark"}):"error"===h&&b?e.createElement(m.Text,{className:r(c.textContent,c[a[v]]),view:"component",color:"tertiary",weight:"bold"},s(b.toUpperCase())):"error"===h?e.createElement(m.Text,{className:c.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===v?e.createElement(i,null):e.createElement(_,null)):e.createElement("img",{className:c.image,src:f,alt:y}))};export{c as s,u};
|