@alphakits/ui 1.27.12 → 1.27.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActionCopyM-38f1f467.js → ActionCopyM-2bdd66c8.js} +1 -1
- package/dist/{ChevronBackM-7fa86efc.js → ChevronBackM-1b71446c.js} +1 -1
- package/dist/{ChevronDownS-fc1f4d4c.js → ChevronDownS-b009299d.js} +1 -1
- package/dist/{ChevronForwardS-4aa973e1.js → ChevronForwardS-fc52b839.js} +1 -1
- package/dist/{CloseS-9c74d6cb.js → CloseS-865b9b88.js} +1 -1
- package/dist/{NextS-b085d047.js → NextS-65da91a8.js} +1 -1
- package/dist/{PlusS-532d1a69.js → PlusS-4bd57fd7.js} +1 -1
- package/dist/{SearchM-9445a59a.js → SearchM-2e3eaa2b.js} +1 -1
- package/dist/{TrashM-b6e92adf.js → TrashM-b962ae57.js} +1 -1
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +2 -2
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/use-calendar.js +1 -1
- package/dist/calendar/use-period.js +1 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.js +1 -1
- package/dist/{capitalize-51415256.js → capitalize-58c866f8.js} +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{component-0fb1066f.js → component-52e0a804.js} +1 -1
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-functions.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/form-loading/index.js +1 -1
- package/dist/form/components/form-wrapper/index.js +1 -1
- package/dist/form/components/index.d.ts +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/base-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/constants.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image/utils.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index-266d6fdd.js +1 -0
- package/dist/{index-841fe2c6.js → index-29952c6c.js} +1 -1
- package/dist/index-458ef494.js +1 -0
- package/dist/{index-29f14fbc.js → index-58b1edd2.js} +1 -1
- package/dist/{index-b0dd0bd9.js → index-795c14d7.js} +1 -1
- package/dist/{index-47af6ddf.js → index-7cfcd512.js} +1 -1
- package/dist/{index-faf284ad.js → index-808bd6d9.js} +2 -2
- package/dist/index-b0333770.js +1 -0
- package/dist/index-baf61aa9.js +1 -0
- package/dist/{index-3c7dcc11.js → index-c38ab2db.js} +1 -1
- package/dist/{index-57516782.js → index-dbc20e90.js} +1 -1
- package/dist/index-f265b33b.js +1 -0
- package/dist/{index-94423349.js → index-f986b0e5.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/{isSymbol-73427155.js → isSymbol-b0ae21d1.js} +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/{parse-query-params-f41edc33.js → parse-query-params-553a67df.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/options-list/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/theme-provider/default-themes.d.ts +86 -72
- package/dist/theme-provider/default-themes.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/{use-image-render-component-8c34d9bd.js → use-image-render-component-144778a3.js} +1 -1
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-44cf2fa7.js +0 -1
- package/dist/index-4bfc7969.js +0 -1
- package/dist/index-60fd2ee5.js +0 -1
- package/dist/index-9213e1ea.js +0 -1
- package/dist/index-cbcdc787.js +0 -1
- package/dist/vars/alpha-colors.css +0 -111
- /package/dist/{_commonjsHelpers-e0c6b7ef.js → _commonjsHelpers-1bb341cb.js} +0 -0
- /package/dist/{_tslib-531dfe1b-d58d6add.js → _tslib-531dfe1b-f993547d.js} +0 -0
- /package/dist/{colors.module-d9bd892a.js → colors.module-8fc70952.js} +0 -0
- /package/dist/{common.module-afb5e08e.js → common.module-bda676ae.js} +0 -0
- /package/dist/{component-0fb1066f.d.ts → component-52e0a804.d.ts} +0 -0
- /package/dist/{component-6868e2a0.d.ts → component-ebdbec08.d.ts} +0 -0
- /package/dist/{component-6868e2a0.js → component-ebdbec08.js} +0 -0
- /package/dist/{contact-block-fef0599f.d.ts → contact-block-f9e1ec72.d.ts} +0 -0
- /package/dist/{contact-block-fef0599f.js → contact-block-f9e1ec72.js} +0 -0
- /package/dist/{gutters.module-8eb2bc48.js → gutters.module-73a95127.js} +0 -0
- /package/dist/{index-cd171dbb.js → index-1feda90c.js} +0 -0
- /package/dist/{index-29f14fbc.d.ts → index-58b1edd2.d.ts} +0 -0
- /package/dist/{index-d1047707.js → index-9a284f62.js} +0 -0
- /package/dist/{intersection-observer-67642a39.js → intersection-observer-6697df7e.js} +0 -0
- /package/dist/{parse-query-params-f41edc33.d.ts → parse-query-params-553a67df.d.ts} +0 -0
- /package/dist/{slide-0d1b3c84.d.ts → slide-2eb42764.d.ts} +0 -0
- /package/dist/{slide-0d1b3c84.js → slide-2eb42764.js} +0 -0
- /package/dist/{step-bar-8335602d.d.ts → step-bar-f35d2fe6.d.ts} +0 -0
- /package/dist/{step-bar-8335602d.js → step-bar-f35d2fe6.js} +0 -0
- /package/dist/{tslib.es6-ac33a50c.js → tslib.es6-504584fb.js} +0 -0
- /package/dist/{use-image-render-component-8c34d9bd.d.ts → use-image-render-component-144778a3.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={light:{
|
|
1
|
+
var e={light:{graphic:{primary:"#0E0E0E","primary-inverted":"#FFFFFF",secondary:"#86868A","secondary-inverted":"#85858D",thirdly:"#C1C1C3",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#70BDEB",main:"#2174ef"},text:{primary:"#0E0E0E","primary-inverted":"#E8E8E8",secondary:"rgb(4 4 19 / 55%)",thirdly:"rgb(5 8 29 / 38%)",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#70BDEB",main:"#2174ef"},bg:{primary:"#ffffff","primary-inverted":"#0E0E0E",secondary:"#F2F3F5","secondary-inverted":"#1C1C1E",thirdly:"#E7E8EA",quaternary:"#D5D6DC","special-super-light":"#FDFDFD","special-big-objects":"#F8F8F9",positive:"#63C956","positive-light":"#E8F7E6",negative:"#EC4D3D","negative-light":"#FCE4E2",attention:"#F19938","attention-light":"#FDF0E1",accent:"#70BDEB","accent-light":"#EAF5FC",indigo:"#565AD0","indigo-light":"#E6E6F8",main:"#2174EF"},border:{primary:"#D5D6DC",secondary:"#E7E8EC",thirdly:"#F2F3F5","special-component":"rgb(11 31 53 / 7%)",negative:"#EC4D3D",accent:"#70BDEB",main:"#2174EF",positive:"#63C956",attention:"#F19938"},trans:{primary:"rgba(0, 0, 0, 0.8)","primary-inverted":"rgba(236, 241, 246, 0.8)",secondary:"rgba(23, 23, 30, 0.8)",thirdly:"rgba(54, 64, 71, 0.8)",form:"rgba(255, 255, 255, 0.7)"},status:{purple:"#673ab7",teal:"#008080"},shadow:{secondary:"#f3f5f9"},glass:{footer:"hsla(0,0%,100%,.45)"}},dark:{graphic:{primary:"#E8E8E8","primary-inverted":"#0E0E0E",secondary:"#85858D","secondary-inverted":"#86868A",thirdly:"#49494F",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#70BDEB",main:"#2174ef"},text:{primary:"#E8E8E8","primary-inverted":"#0E0E0E",secondary:"#87878e",thirdly:"#5d5d62",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#70BDEB",main:"#2174ef"},bg:{primary:"#0E0E0E","primary-inverted":"#ffffff",secondary:"#1C1C1E",thirdly:"#27272A","secondary-inverted":"#F2F3F5",quaternary:"#2a2923","special-super-light":"#020202","special-big-objects":"#070706",positive:"#63C956","positive-light":"#E8F7E6",negative:"#EC4D3D","negative-light":"#FCE4E2",attention:"#F19938","attention-light":"#FDF0E1",accent:"#70BDEB","accent-light":"#EAF5FC",indigo:"#565AD0","indigo-light":"#E6E6F8",main:"#2174EF"},border:{primary:"#36363A",secondary:"#27272A",thirdly:"#F2F3F5","special-component":"rgb(11 31 53 / 7%)",negative:"#EC4D3D",accent:"#70BDEB",main:"#2174EF",positive:"#63C956",attention:"#F19938"},trans:{primary:"rgba(236, 241, 246, 0.8)","primary-inverted":"rgba(0, 0, 0, 0.8)",secondary:"rgba(54, 64, 71, 0.8)",thirdly:"rgba(23, 23, 30, 0.8)",form:"rgba(255, 255, 255, 0.7)"},status:{purple:"#673ab7",teal:"#008080"},shadow:{secondary:"#f3f5f9"},glass:{footer:"hsl(0deg 0% 0% / 45%)"}}};export{e as defaultThemes};
|
package/dist/toast/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-504584fb.js";import t,{forwardRef as n,useRef as r,useCallback as i,useEffect as s}from"react";import m from"react-merge-refs";import{CSSTransition as a}from"react-transition-group";import l from"classnames";import{useClickOutside as c}from"../hooks/useClickOutside/index.js";import{usePrevious as u}from"../hooks/usePrevious/index.js";import{Popover as p}from"../popover/component.js";import{Portal as f}from"../portal/component.js";import{ToastPlate as d}from"../toast-plate/component.js";import"react-popper";import"../stack/context.js";import"../stack/component.js";import"react-dom";import"../portal/utils.js";import"../_tslib-531dfe1b-f993547d.js";import"../CloseS-865b9b88.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var _="index-module_toastPlate__QcyxC",x="index-module_popover__CzEm-",v="index-module_block__qnPJw",b="index-module_fixed__U9hsM",j={enter:"index-module_enter__mfllY",enterActive:"index-module_enterActive__iRE6x",exit:"index-module_exit__lf3xl",exitActive:"index-module_exitActive__qssLn"},C=n((function(n,C){var E,h=n.anchorElement,k=n.position,y=n.offset,M=n.open,P=n.autoCloseDelay,g=void 0===P?3e3:P,N=n.className,T=n.bottomOffset,A=n.style,L=void 0===A?{}:A,O=n.block,S=n.onMouseEnter,w=n.onMouseLeave,q=n.onTouchStart,D=n.onClose,z=n.getPortalContainer,F=e(n,["anchorElement","position","offset","open","autoCloseDelay","className","bottomOffset","style","block","onMouseEnter","onMouseLeave","onTouchStart","onClose","getPortalContainer"]),J=r(null),Q=r(0),R=u(M),U=i((function(){clearTimeout(Q.current),Q.current=window.setTimeout(D,g)}),[g,D]),Y=i((function(){clearTimeout(Q.current)}),[]),B=i((function(e){Y(),S&&S(e)}),[S,Y]),G=i((function(e){U(),w&&w(e)}),[w,U]),H=i((function(e){Y(),q&&q(e)}),[q,Y]),I=i((function(){D(),Y()}),[D,Y]);c(J,I),s((function(){return M!==R&&M&&U(),function(){Y()}}),[M,R,U,Y]);var K={block:O,onClose:D,onMouseEnter:B,onMouseLeave:G,onTouchStart:H,ref:m([C,J])};return h?t.createElement(p,{open:M,anchorElement:h,position:k,offset:y,popperClassName:l(x,(E={},E[v]=O,E)),transition:{timeout:150},getPortalContainer:z},t.createElement(d,o({},F,{style:L,className:N},K))):t.createElement(f,{getPortalContainer:z},t.createElement(a,{unmountOnExit:!0,in:M,timeout:150,classNames:j},t.createElement(d,o({},F,{className:l(b,_,N),style:o(o({},L),{bottom:T&&T+"px"})},K))))}));export{C as Toast};
|
package/dist/toast/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Toast}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Toast}from"./component.js";import"../tslib.es6-504584fb.js";import"react";import"react-merge-refs";import"react-transition-group";import"classnames";import"../hooks/useClickOutside/index.js";import"../hooks/usePrevious/index.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"../_tslib-531dfe1b-f993547d.js";import"../CloseS-865b9b88.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-504584fb.js";import o from"react";import s from"react-dom";import i from"classnames";import{ToastPlate as n}from"../toast-plate/component.js";import{useTimer as r}from"./use-timer.js";import"../_tslib-531dfe1b-f993547d.js";import"../CloseS-865b9b88.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,d="index-module_isVisible__kvaxX",l="index-module_mobile__ARgiW",m="index-module_isClosing__fMPDi",p="index-module_toastContent__WxLt6";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var u=function(u){var c,f=u.className;u.children;var v=u.offset,x=void 0===v?108:v,b=u.hasCloser,_=void 0===b||b;u.onClose;var h=u.text;u.onMouseEnter,u.onMouseLeave;var C=u.style,y=u.position,g=void 0===y?"bottom":y,j=u.delay,w=void 0===j?3e3:j,E=e(u,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var L,M=window.innerWidth>600;a.setAttribute("style",(L="position: fixed; z-index: 99999999;",M?L+" "+g+": "+x+"px; right: 30px":L+" top: "+x+"px; right: 30px; left: 30px"));var A=document.createElement("div");A.classList.remove(m),A.setAttribute("id","toast_wrap-"+Math.random()),A.setAttribute("style","margin-bottom: 18px"),a.appendChild(A);var N=function(){A.classList.add(m),setTimeout((function(){null==a||a.removeChild(A)}),300)},W=r(N,w),k=W.pause,z=W.resume;return A.addEventListener("mouseenter",(function(){k()})),A.addEventListener("mouseleave",(function(){z()})),s.render(o.createElement(n,t({hasCloser:_,className:i((c={},c[d]=!0,c[l]=!M,c),f),contentClassName:p,style:t({right:0,position:"relative"},C),role:"alert",onClose:N},E),h),A),null};export{u as ToastNotifier};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastNotifier}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastNotifier}from"./component.js";import"../tslib.es6-504584fb.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"../_tslib-531dfe1b-f993547d.js";import"../CloseS-865b9b88.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-504584fb.js";import n,{forwardRef as o,useCallback as l}from"react";import{_ as a}from"../_tslib-531dfe1b-f993547d.js";import{C as i}from"../CloseS-865b9b88.js";import d from"classnames";import{Button as s}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var c={component:"index-module_component__2FCoC",hasCloser:"index-module_hasCloser__ig0bb",contentWrap:"index-module_contentWrap__-P3Jg",block:"index-module_block__aZI2E",content:"index-module_content__ING2J",actionSection:"index-module_actionSection__pEbKj",leftAddons:"index-module_leftAddons__Odkdf",title:"index-module_title__QZFUh",children:"index-module_children__tKSv7",checkmark:"index-module_checkmark__Uk-P-",closeButton:"index-module_closeButton__mFhAC",negative:"index-module_negative__rdTB6",positive:"index-module_positive__k8leE",default:"index-module_default__yyLQR",toast_enter:"index-module_toast_enter__gcrK7",toast_active_enter:"index-module_toast_active_enter__1PLY6",toast_done_enter:"index-module_toast_done_enter__encRe",toast_exit:"index-module_toast_exit__qTOb8",toast_active_exit:"index-module_toast_active_exit__dUE9W",toast_done_exit:"index-module_toast_done_exit__tGXNW"},r={negative:n.createElement((function(e){return n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{d:"M0 0h25v24H0z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.005 12c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10zm-7.6 4l-2.4-2.4-2.4 2.4-1.6-1.6 2.4-2.4-2.4-2.4 1.6-1.6 2.4 2.4 2.4-2.4 1.6 1.6-2.4 2.4 2.4 2.4-1.6 1.6z",fill:"currentColor"}))}),null),positive:n.createElement((function(e){return n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{d:"M0 0h25v24H0z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.005 12c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10zm-11.5 4l6.5-6.5-1.5-1.5-5 5-2-2-1.5 1.5 3.5 3.5z",fill:"currentColor"}))}),null),default:n.createElement((function(e){return n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{d:"M0 0h25v24H0z"}),n.createElement("path",{d:"M19.076 4.929A9.935 9.935 0 0012.005 2a9.935 9.935 0 00-7.071 2.929A9.935 9.935 0 002.004 12a9.935 9.935 0 002.93 7.071A9.935 9.935 0 0012.004 22a9.935 9.935 0 007.072-2.929A9.935 9.935 0 0022.005 12a9.935 9.935 0 00-2.929-7.071zm-7.071-.195a2.15 2.15 0 012.148 2.149 2.15 2.15 0 01-2.148 2.148 2.15 2.15 0 01-2.149-2.148 2.15 2.15 0 012.149-2.149zm2.734 13.672H9.271v-1.172h1.171v-5.859H9.271v-1.172h4.296v7.031h1.172v1.172z",fill:"currentColor"}))}),null)},m=o((function(o,a){var m,_=o.dataTestId,u=o.className,v=o.contentClassName,h=o.hasCloser;o.leftAddons;var f=o.view,x=void 0===f?"default":f,p=o.title,g=o.children;o.actionButton;var E=o.block,w=o.onClose;o.getBadgeIcons;var C=e(o,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","actionButton","block","onClose","getBadgeIcons"]),b=l((function(e){w&&w(e)}),[w]);return n.createElement("div",t({className:d(c.component,(m={},m[c.block]=E,m[c.hasCloser]=h,m),u),ref:a,"data-test-id":_},C),n.createElement("div",{className:c.contentWrap},n.createElement("div",{className:d(c.checkmark,c[x])},r[x]),n.createElement("div",{className:d(v,c.content)},p&&n.createElement("div",{className:c.title},p),g&&n.createElement("div",{className:c.children},g)),h&&n.createElement(s,t({className:d(c.closeButton),view:"ghost"},{onClick:b},{"aria-label":"закрыть",leftAddons:n.createElement(i,null)}))))}));export{m as ToastPlate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastPlate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastPlate}from"./component.js";import"../tslib.es6-504584fb.js";import"react";import"../_tslib-531dfe1b-f993547d.js";import"../CloseS-865b9b88.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-504584fb.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var p="index-module_component__KCXt7",m="index-module_popper__M9HfK",l="index-module_target__nVe99",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,M=f.getPortalContainer,j=f.offset,x=void 0===j?[0,10]:j,b=f.position,y=f.contentClassName,P=f.arrowClassName,R=f.popoverClassName,S=f.updatePopover,D=t(!!E),K=D[0],L=D[1],A=t(null),F=A[0],H=A[1],I=o.useRef(null),V=o.useRef(null),X=r(0),q=function(){K||(L(!0),O&&O())},z=n((function(){K&&(L(!1),N&&N())}),[N,K]),B=function(e){return(!I.current||!I.current.contains(e))&&(!V.current||!V.current.contains(e))};c((function(){var e=function(e){var o=e.target;B(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(X.current)}}),[z]);var G,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),K?z():q()}},Q={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(X.current),X.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(X.current),X.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(X.current),B(o)?X.current=window.setTimeout((function(){z()}),h):q()}},U=void 0===E?K:E,W=n((function(e){I.current=e,H(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:W},(G=function(o){var t={className:u(l,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),Q);default:return{}}}(d.props),a(d,G))),F&&o.createElement(s,{anchorElement:F,open:U,getPortalContainer:M,arrowClassName:P,popperClassName:u(m,R),offset:x,withArrow:!0,position:b,update:S},function(){var t=function(){var o={ref:V,"data-test-id":k,className:u(p,y)};return"hover"===w?e(e({},o),Q):o}();return o.createElement("div",e({},t),v)}()))};export{f as Tooltip};
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tooltip}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Tooltip}from"./component.js";import"../tslib.es6-504584fb.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{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-
|
|
1
|
+
import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-504584fb.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-8fc70952.js";import"../common.module-bda676ae.js";var m={Title:o,Text:t,TitleResponsive:e};export{m as Typography};
|
package/dist/typography/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-504584fb.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-8fc70952.js";import"../common.module-bda676ae.js";import"./text/component.js";import"./title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import a from"classnames";import{c as r}from"../../colors.module-
|
|
1
|
+
import e from"react";import a from"classnames";import{c as r}from"../../colors.module-8fc70952.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",component:"index-module_component__MPBKM"},d=function(d){var i,o,l=d.view,p=void 0===l?"primary-medium":l,_=d.tag,u=void 0===_?"span":_,s=d.weight,t=void 0===s?"regular":s,n=d.uppercase,c=d.color,x=void 0===c?"primary":c,g=d.className,h=d.dataTestId,v=d.children;return e.createElement(u,{className:a((i={},i[m.paragraph]="p"===u,i),(o={},o[m.uppercase]=n,o),g,x&&r[x],m[p],m[t]),"data-test-id":h},v)};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-8fc70952.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-8fc70952.js";var o=function(o){var t=o.tag,i=void 0===t?"div":t,m=o.view,s=void 0===m?"medium":m,d=o.weight,c=void 0===d?"medium":d,n=o.defaultMargins,l=void 0!==n&&n,v=o.color,f=void 0===v?"primary":v,p=o.className,u=o.dataTestId,g=o.children,h=o.styles;return e.createElement(i,{className:r(h.component,p,h["montserrat-"+s],l&&h["margins-"+s],h[c],f&&a[f]),"data-test-id":u},g)};export{o as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-504584fb.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-bda676ae.js";import"classnames";import"../../colors.module-8fc70952.js";var 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"},s=function(s){return e.createElement(r,m({},s,{styles:m(m({},a),l)}))};export{s as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-504584fb.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-bda676ae.js";import"classnames";import"../../colors.module-8fc70952.js";var l={"montserrat-xlarge":"index-module_montserrat-xlarge__J-ZiR","montserrat-large":"index-module_montserrat-large__kI1Kn","montserrat-medium":"index-module_montserrat-medium__MxBIN","montserrat-small":"index-module_montserrat-small__PuaHc","montserrat-xsmall":"index-module_montserrat-xsmall__5IiBT","margins-xlarge":"index-module_margins-xlarge__fJPKA","margins-large":"index-module_margins-large__9EEcc","margins-medium":"index-module_margins-medium__fgO21","margins-small":"index-module_margins-small__6biA7","margins-xsmall":"index-module_margins-xsmall__qLu13"},s=function(s){return e.createElement(r,m({},s,{styles:m(m({},a),l)}))};export{s as TitleResponsive};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TitleResponsive}from"./component.js";import"../../tslib.es6-
|
|
1
|
+
export{TitleResponsive}from"./component.js";import"../../tslib.es6-504584fb.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-8fc70952.js";import"../../common.module-bda676ae.js";
|
package/dist/{use-image-render-component-8c34d9bd.js → use-image-render-component-144778a3.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{_ as r}from"./_tslib-531dfe1b-
|
|
1
|
+
import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{_ as r}from"./_tslib-531dfe1b-f993547d.js";import i from"classnames";import{Spinner as l}from"./spinner/component.js";import{Typography as d}from"./typography/component.js";import"./image/typings.js";import{sizes as _,textSizes as m}from"./image/constants.js";import{getSrc as a,getCharsFromText as c}from"./image/utils.js";var s=function(t){return e.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{d:"M7.005 2a5 5 0 00-5 5v7.117l6.213-6.079 6.26 6.126 3.124-3.047 4.403 4.296V7a5 5 0 00-5-5h-10z",fill:"currentColor"}),e.createElement("path",{d:"M21.777 18.495l-4.175-4.074-1.432 1.397 4.586 4.488c.458-.52.81-1.134 1.021-1.81zM18.776 21.677L8.218 11.347 2.02 17.409A5 5 0 007.005 22h10a4.99 4.99 0 001.771-.323z",fill:"currentColor"}))},x=function(t){return e.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),e.createElement("path",{d:"M0 0h17v17H0z"}),e.createElement("path",{d:"M4.678 1.34a3.333 3.333 0 00-3.333 3.333v4.745l4.142-4.053L9.66 9.45l2.082-2.032 2.935 2.864V4.673a3.333 3.333 0 00-3.333-3.333H4.678z",fill:"currentColor"}),e.createElement("path",{d:"M14.527 12.337L11.742 9.62l-.955.931 3.057 2.992a3.33 3.33 0 00.681-1.207zM12.525 14.458L5.487 7.571l-4.131 4.042a3.334 3.334 0 003.322 3.06h6.667c.415 0 .813-.076 1.18-.215z",fill:"currentColor"}))},u={container:"index-module_container__bgmJ2",component:"index-module_component__Jf39Y",addon:"index-module_addon__fLNNt",default:"index-module_default__7yCk8",primary:"index-module_primary__NmfOf","primary-inverted":"index-module_primary-inverted__LgfAy",secondary:"index-module_secondary__mFC44","secondary-inverted":"index-module_secondary-inverted__A3WWS",positive:"index-module_positive__KObTG",negative:"index-module_negative__JSntK",attention:"index-module_attention__xn0w7",accent:"index-module_accent__OKgO0",broken:"index-module_broken__U-IUD",image:"index-module_image__m6QQ3",hint:"index-module_hint__U93qq",hint_text:"index-module_hint_text__iACDk",textContent:"index-module_textContent__zwpfH",xs:"index-module_xs__WMoNb",s:"index-module_s__Hg5M9",m:"index-module_m__C8KqW",l:"index-module_l__bAVTF",xl:"index-module_xl__4V4rQ",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"},p=function(r){var p=r.src,f=void 0===p?"":p,g=r.resolution,h=r.size,v=r.alt,w=r.text,y=r.icon,C=e.useState("loading"),E=C[0],b=C[1],M=t(0),z=g||_[h],L=n((function(){return a(f,z)}),[z,f]);return o((function(){if(L){M.current=Date.now(),b("loading");var e=new Image;e.src=L,e.onload=function(){b("loaded")},e.onerror=function(){Date.now()-M.current<15e3?setTimeout((function(){e.src=L}),1e3):b("error")}}else b("error")}),[L]),y||("loading"===E?e.createElement(l,{className:u.spinner,size:"s",view:"dark"}):"error"===E&&w?e.createElement(d.Text,{className:i(u.textContent,u[m[h]]),view:"component",color:"tertiary",weight:"bold"},c(w.toUpperCase())):"error"===E?e.createElement(d.Text,{className:u.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===h?e.createElement(x,null):e.createElement(s,null)):e.createElement("img",{className:u.image,src:f,alt:v}))};export{s as P,u as s,p as u};
|