@alphakits/ui 1.16.6 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_commonjsHelpers-d789a53e.js → _commonjsHelpers-2cfff74b.js} +0 -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/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.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/{colors.module-6d340fca.js → colors.module-fa56222e.js} +0 -0
- package/dist/{common.module-3989bad6.js → common.module-78e1bdef.js} +0 -0
- package/dist/{component-3d20d5a5.d.ts → component-f5a1396c.d.ts} +0 -0
- package/dist/{component-3d20d5a5.js → component-f5a1396c.js} +0 -0
- package/dist/{contact-block-2e54ad04.d.ts → contact-block-66af7817.d.ts} +0 -0
- package/dist/{contact-block-2e54ad04.js → contact-block-66af7817.js} +0 -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-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/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.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/{formik.esm-546605b0.js → formik.esm-bbafe73a.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-f3aa8e44.js → gutters.module-3c6d3471.js} +0 -0
- 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/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-gallery/component.d.ts +11 -0
- package/dist/image-gallery/component.js +1 -0
- package/dist/image-gallery/components/header/index.d.ts +3 -0
- package/dist/image-gallery/components/header/index.js +1 -0
- package/dist/image-gallery/components/header-info-block/index.d.ts +6 -0
- package/dist/image-gallery/components/header-info-block/index.js +1 -0
- package/dist/image-gallery/components/image-preview/index.d.ts +11 -0
- package/dist/image-gallery/components/image-preview/index.js +1 -0
- package/dist/image-gallery/components/image-viewer/index.d.ts +3 -0
- package/dist/image-gallery/components/image-viewer/index.js +1 -0
- package/dist/image-gallery/components/image-viewer/slide.d.ts +0 -0
- package/dist/image-gallery/components/image-viewer/slide.js +1 -0
- package/dist/image-gallery/components/index.d.ts +4 -0
- package/dist/image-gallery/components/index.js +1 -0
- package/dist/image-gallery/components/navigation-bar/index.d.ts +3 -0
- package/dist/image-gallery/components/navigation-bar/index.js +1 -0
- package/dist/image-gallery/context.d.ts +24 -0
- package/dist/image-gallery/context.js +1 -0
- package/dist/image-gallery/index.d.ts +2 -0
- package/dist/image-gallery/index.js +1 -0
- package/dist/image-gallery/types.d.ts +13 -0
- package/dist/image-gallery/types.js +1 -0
- package/dist/image-gallery/utils/constants.d.ts +11 -0
- package/dist/image-gallery/utils/constants.js +1 -0
- package/dist/image-gallery/utils/index.d.ts +3 -0
- package/dist/image-gallery/utils/index.js +1 -0
- package/dist/image-gallery/utils/split-filename.d.ts +2 -0
- package/dist/image-gallery/utils/split-filename.js +1 -0
- package/dist/image-gallery/utils/utils.d.ts +7 -0
- package/dist/image-gallery/utils/utils.js +1 -0
- package/dist/image-uploader/component.d.ts +21 -0
- package/dist/image-uploader/component.js +1 -0
- package/dist/image-uploader/index.d.ts +1 -0
- package/dist/image-uploader/index.js +1 -0
- package/dist/{index-d25cd963.js → index-255a9b3d.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.ts +2 -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/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{intersection-observer-78efcda0.js → intersection-observer-c2477ad2.js} +0 -0
- 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-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/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.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-5d639cfa.d.ts → parse-query-params-dedce862.d.ts} +0 -0
- package/dist/{parse-query-params-5d639cfa.js → parse-query-params-dedce862.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/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/slide-858ffa1a.d.ts +16 -0
- package/dist/slide-858ffa1a.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/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/swiper-slide-970dfced.js +1 -0
- 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/pagination/index.js +1 -1
- package/dist/table/components/row/component.js +1 -1
- package/dist/table/components/row/index.js +1 -1
- package/dist/table/components/rows/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.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/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/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/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/{tslib.es6-f5dc6c5d.js → tslib.es6-77545e10.js} +0 -0
- 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-2055732d.d.ts → use-image-render-component-93d55cc2.d.ts} +0 -0
- package/dist/use-image-render-component-93d55cc2.js +1 -0
- 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 +6 -2
- package/dist/use-image-render-component-2055732d.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TariffBuilder}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{TariffBuilder}from"./component.js";import"../tslib.es6-77545e10.js";import"react";import"../amount-input/component.js";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"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../amount-input/utils/index.js";import"../flex-columns/component.js";import"../list-allert/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fa56222e.js";import"../common.module-78e1bdef.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";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"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../intersection-observer-c2477ad2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-77545e10.js";import*as o from"react";import n,{useLayoutEffect as r,useEffect as i,useCallback as a,useRef as d,forwardRef as s,createElement as l,useState as u}from"react";import c from"react-merge-refs";import m from"classnames";import{FormControl as f}from"../form-control/component.js";import{useFocus as h}from"../hooks/useFocus/index.js";function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},g.apply(this,arguments)}var p="undefined"!=typeof document?r:i,b=function(e,t){"function"!=typeof e?e.current=t:e(t)},x={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},v=function(e){Object.keys(x).forEach((function(t){e.style.setProperty(t,x[t],"important")}))},w=null;var y=function(){},z=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],_="undefined"!=typeof document&&!!document.documentElement.currentStyle,C=function(e){var t,n,i=(t=e,n=o.useRef(t),p((function(){n.current=t})),n);r((function(){var e=function(e){i.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},R=s((function(e,t){var o=e.cacheMeasurements,n=e.maxRows,i=e.minRows,s=e.onChange,u=void 0===s?y:s,c=e.onHeightChange,m=void 0===c?y:c,f=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);if("production"!==process.env.NODE_ENV&&f.style){if("maxHeight"in f.style)throw new Error("Using `style.maxHeight` for <TextareaAutosize/> is not supported. Please use `maxRows`.");if("minHeight"in f.style)throw new Error("Using `style.minHeight` for <TextareaAutosize/> is not supported. Please use `minRows`.")}var h=void 0!==f.value,p=d(null),x=function(e,t){var o=d();return a((function(n){e.current=n,o.current&&b(o.current,null),o.current=t,t&&b(t,n)}),[t])}(p,t),R=d(0),S=d(),H=function(){var e=p.current,t=o&&S.current?S.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var o,n=(o=t,z.reduce((function(e,t){return e[t]=o[t],e}),{})),r=n.boxSizing;return""===r?null:(_&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}(e);if(t){S.current=t;var r=function(e,t,o,n){void 0===o&&(o=1),void 0===n&&(n=1/0),w||((w=document.createElement("textarea")).setAttribute("tabindex","-1"),w.setAttribute("aria-hidden","true"),v(w)),null===w.parentNode&&document.body.appendChild(w);var r=e.paddingSize,i=e.borderSize,a=e.sizingStyle,d=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;w.style[t]=a[t]})),v(w),w.value=t;var s=function(e,t){var o=w.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?o+t.borderSize:o-t.paddingSize}(0,e);w.value="x";var l=w.scrollHeight-r,u=l*o;"border-box"===d&&(u=u+r+i),s=Math.max(u,s);var c=l*n;return"border-box"===d&&(c=c+r+i),[s=Math.min(c,s),l]}(t,e.value||e.placeholder||"x",i,n),a=r[0],d=r[1];R.current!==a&&(R.current=a,e.style.setProperty("height",a+"px","important"),m(a,{rowHeight:d}))}};return"undefined"!=typeof document&&(r(H),C(H)),l("textarea",g({},f,{onChange:function(e){h||H(),u(e)},ref:x}))})),S={textarea:"index-module_textarea__91cCo",s:"index-module_s__EnuHV",m:"index-module_m__etAWo",l:"index-module_l__pP38o",hasLabel:"index-module_hasLabel__sk25A",resizeVertical:"index-module_resizeVertical__kct5e",focusVisible:"index-module_focusVisible__bLwRO",filled:"index-module_filled__t8LRd",counter:"index-module_counter__psEqA"},H=n.forwardRef((function(o,r){var s,l,g=o.autoComplete,p=void 0===g?"on":g,b=o.autosize,x=void 0===b||b,v=o.size,w=void 0===v?"s":v,y=o.block,z=void 0!==y&&y,_=o.bottomAddons,C=o.fieldClassName,H=o.className,A=o.dataTestId,E=o.disabled,L=o.error,F=o.hint,N=o.textareaClassName,k=o.label,V=o.leftAddons,W=o.onFocus,B=o.required,O=o.onBlur,T=o.onChange,j=o.onHeightChange,P=o.rightAddons,q=o.maxRows,M=o.minRows,I=o.maxHeight,U=o.resize,D=void 0===U?"none":U,G=o.value,J=o.defaultValue,K=o.maxLength,Q=o.counter,X=o.rows,Y=void 0===X?x?1:3:X,Z=e(o,["autoComplete","autosize","size","block","bottomAddons","fieldClassName","className","dataTestId","disabled","error","hint","textareaClassName","label","leftAddons","onFocus","required","onBlur","onChange","onHeightChange","rightAddons","maxRows","minRows","maxHeight","resize","value","defaultValue","maxLength","counter","rows"]),$=void 0===G,ee=d(null),te=u(!1),oe=te[0],ne=te[1],re=u(J||""),ie=re[0],ae=re[1],de=h(ee,"keyboard")[0],se=Boolean($?ie:G);i((function(){x&&I&&ee.current&&ee.current.style&&(ee.current.style.maxHeight=I+"px")}),[ee,x,I]);var le=a((function(e){ne(!0),W&&W(e)}),[W]),ue=a((function(e){ne(!1),O&&O(e)}),[O]),ce=a((function(e){T&&T(e,{value:e.target.value}),$&&ae(e.target.value)}),[T,$]),me=t(t({},Z),{className:m(S.textarea,S[w],(s={},s[S.hasLabel]=k,s[S.filled]=se,s[S.resizeVertical]="vertical"===D,s),N),autoComplete:p,disabled:E,onBlur:ue,onFocus:le,onChange:ce,value:$?ie:G,rows:Y,ref:c([r,ee]),"data-test-id":A});return n.createElement(f,{className:m(H),fieldClassName:m(C,(l={},l[S.focusVisible]=de,l)),size:w,block:z,required:B,disabled:E,filled:se||oe,focused:oe,error:L,label:k,hint:F,leftAddons:V,rightAddons:P,bottomAddons:_},x?n.createElement(R,t({},me,{maxLength:K,maxRows:q,minRows:M,onHeightChange:j})):n.createElement("textarea",t({maxLength:K},me,{style:{maxHeight:I}})),Q&&n.createElement("span",{className:S.counter},($?ie.length:null==G?void 0:G.length)+" / "+(K||"-")))}));H.defaultProps={autoComplete:"on",autosize:!0,size:"s",block:!1,resize:"none"};export{H as Textarea};
|
package/dist/textarea/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Textarea}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Textarea}from"./component.js";import"../tslib.es6-77545e10.js";import"react";import"react-merge-refs";import"classnames";import"../form-control/component.js";import"../hooks/useFocus/index.js";
|
package/dist/toast/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-77545e10.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{ToastPlate as p}from"../toast-plate/component.js";import{Popover as f}from"../popover/component.js";import{Portal as d}from"../portal/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-popper";import"../stack/context.js";import"../stack/component.js";import"react-dom";import"../portal/utils.js";var _="index-module_toastPlate__QcyxC",x="index-module_popover__CzEm-",v="index-module_block__qnPJw",E="index-module_fixed__U9hsM",C={enter:"index-module_enter__mfllY",enterActive:"index-module_enterActive__iRE6x",exit:"index-module_exit__lf3xl",exitActive:"index-module_exitActive__qssLn"},j=n((function(n,j){var h,k=n.anchorElement,b=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,w=n.onMouseEnter,S=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(),w&&w(e)}),[w,Y]),G=i((function(e){U(),S&&S(e)}),[S,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([j,J])};return k?t.createElement(f,{open:M,anchorElement:k,position:b,offset:y,popperClassName:l(x,(h={},h[v]=O,h)),transition:{timeout:150},getPortalContainer:z},t.createElement(p,o({},F,{style:L,className:N},K))):t.createElement(d,{getPortalContainer:z},t.createElement(a,{unmountOnExit:!0,in:M,timeout:150,classNames:C},t.createElement(p,o({},F,{className:l(E,_,N),style:o(o({},L),{bottom:T&&T+"px"})},K))))}));export{j 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-77545e10.js";import"react";import"react-merge-refs";import"react-transition-group";import"classnames";import"../hooks/useClickOutside/index.js";import"../hooks/usePrevious/index.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-77545e10.js";import o from"react";import i from"react-dom";import n from"classnames";import{ToastPlate as s}from"../toast-plate/component.js";import{useTimer as r}from"./use-timer.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,d="index-module_notificationComponent__vue40",l="index-module_isVisible__kvaxX",m="index-module_mobile__ARgiW",p="index-module_isClosing__fMPDi",u="index-module_toastContent__WxLt6";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var c=function(c){var f,v=c.className;c.children;var x=c.offset,_=void 0===x?108:x,h=c.hasCloser,C=void 0===h||h;c.onClose;var b=c.text;c.onMouseEnter,c.onMouseLeave;var y=c.style,g=c.position,w=void 0===g?"bottom":g,E=c.delay,L=void 0===E?3e3:E,j=e(c,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var M=window.innerWidth>600;a.setAttribute("style",M?"position: fixed; "+w+": "+_+"px; right: 30px":"position: fixed; top: "+_+"px; right: 30px; left: 30px");var A=document.createElement("div");A.classList.remove(p),A.setAttribute("id","toast_wrap-"+Math.random()),A.setAttribute("style","margin-bottom: 18px"),a.appendChild(A);var N=function(){A.classList.add(p),setTimeout((function(){null==a||a.removeChild(A)}),300)},W=r(N,L),k=W.pause,D=W.resume;return A.addEventListener("mouseenter",(function(){k()})),A.addEventListener("mouseleave",(function(){D()})),i.render(o.createElement(s,t({hasCloser:C,className:n(d,(f={},f[l]=!0,f[m]=!M,f),v),contentClassName:u,style:t({right:0,position:"relative"},y),role:"alert",onClose:N},j),b),A),null};export{c as ToastNotifier};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastNotifier}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastNotifier}from"./component.js";import"../tslib.es6-77545e10.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";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-77545e10.js";import o,{forwardRef as n,useCallback as a}from"react";import{CloseS as i}from"alpha-cli-icons";import l from"classnames";import{Button as d}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var s={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",closeButton:"index-module_closeButton__mFhAC",negative:"index-module_negative__rdTB6",positive:"index-module_positive__k8leE",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"},_=n((function(n,_){var c,m=n.dataTestId,r=n.className,u=n.contentClassName,x=n.hasCloser;n.leftAddons;var v=n.view,p=void 0===v?"default":v,f=n.title,h=n.children;n.actionButton;var C=n.block,b=n.onClose;n.getBadgeIcons;var N=e(n,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","actionButton","block","onClose","getBadgeIcons"]),g=a((function(e){b&&b(e)}),[b]);return o.createElement("div",t({className:l(s.component,(c={},c[s.block]=C,c[s.hasCloser]=x,c),s[p],r),ref:_,"data-test-id":m},N),o.createElement("div",{className:s.contentWrap},o.createElement("div",{className:l(u,s.content)},f&&o.createElement("div",{className:s.title},f),h&&o.createElement("div",{className:s.children},h)),x&&o.createElement(d,t({className:l(s.closeButton),view:"ghost"},{onClick:g},{"aria-label":"закрыть",leftAddons:o.createElement(i,null)}))))}));export{_ as ToastPlate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastPlate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastPlate}from"./component.js";import"../tslib.es6-77545e10.js";import"react";import"alpha-cli-icons";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-77545e10.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-77545e10.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";
|
|
File without changes
|
|
@@ -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-77545e10.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-fa56222e.js";import"../common.module-78e1bdef.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-77545e10.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-fa56222e.js";import"../common.module-78e1bdef.js";import"./text/component.js";import"./title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import a from"classnames";import{c as m}from"../../colors.module-
|
|
1
|
+
import e from"react";import a from"classnames";import{c as m}from"../../colors.module-fa56222e.js";var r={paragraph:"index-module_paragraph__msaC8","primary-medium":"index-module_primary-medium__LhYfj","primary-small":"index-module_primary-small__lYM88",component:"index-module_component__MPBKM",title:"index-module_title__O9czO",caps:"index-module_caps__l7Eqh",bold:"index-module_bold__RuoQM",medium:"index-module_medium__YL230",regular:"index-module_regular__h8gTH"},d=function(d){var i,o=d.view,l=void 0===o?"primary-medium":o,_=d.tag,t=void 0===_?"span":_,p=d.weight,u=void 0===p?"regular":p,n=d.color,s=d.className,c=d.dataTestId,x=d.children;return e.createElement(t,{className:a((i={},i[r.paragraph]="p"===t,i),s,n&&m[n],r[l],r[u]),"data-test-id":c},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-fa56222e.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"classnames";import a from"react";import{c as t}from"../../colors.module-
|
|
1
|
+
import e from"classnames";import a from"react";import{c as t}from"../../colors.module-fa56222e.js";var o=function(o){var r=o.tag,m=void 0===r?"div":r,i=o.view,s=void 0===i?"medium":i,d=o.weight,c=void 0===d?"medium":d,n=o.defaultMargins,l=void 0!==n&&n,v=o.color,f=o.className,u=o.dataTestId,p=o.children,g=o.styles;return a.createElement(m,{className:e(g.component,f,g["montserrat-"+s],l&&g["margins-"+s],g[c],v&&t[v]),"data-test-id":u},p)};export{o as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-77545e10.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-78e1bdef.js";import"classnames";import"../../colors.module-fa56222e.js";var s={"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","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"},l=function(l){return e.createElement(r,m({},l,{styles:m(m({},a),s)}))};export{l as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-77545e10.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-78e1bdef.js";import"classnames";import"../../colors.module-fa56222e.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-77545e10.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-fa56222e.js";import"../../common.module-78e1bdef.js";
|
package/dist/{use-image-render-component-2055732d.d.ts → use-image-render-component-93d55cc2.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{PhotoS as i,PhotoM as r}from"alpha-cli-icons";import _ from"classnames";import{Spinner as m}from"./spinner/component.js";import{Typography as d}from"./typography/component.js";import"./image/typings.js";import{sizes as l,textSizes as a}from"./image/constants.js";import{getSrc as s,getCharsFromText as x}from"./image/utils.js";var c={component:"index-module_component__Jf39Y",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",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,w=u.text,b=u.icon,h=e.useState("loading"),C=h[0],k=h[1],j=t(0),E=g||l[v],N=n((function(){return s(f,E)}),[E,f]);return o((function(){if(N){j.current=Date.now(),k("loading");var e=new Image;e.src=N,e.onload=function(){k("loaded")},e.onerror=function(){Date.now()-j.current<15e3?setTimeout((function(){e.src=N}),1e3):k("error")}}else k("error")}),[N]),b||("loading"===C?e.createElement(m,{className:c.spinner,size:"s",view:"dark"}):"error"===C&&w?e.createElement(d.Text,{className:_(c.textContent,c[a[v]]),view:"component",color:"tertiary",weight:"bold"},x(w.toUpperCase())):"error"===C?e.createElement(d.Text,{className:c.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===v?e.createElement(i,null):e.createElement(r,null)):e.createElement("img",{className:c.image,src:f,alt:y}))};export{c as s,u};
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-
|
|
1
|
+
export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-77545e10.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-
|
|
1
|
+
import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-77545e10.js";import"react";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var o=function(o,e,i){void 0===e&&(e="Success"),void 0===i&&(i=30),t({view:"positive",title:e,text:o,offset:i})},e=function(o,e,i){void 0===e&&(e="Error"),void 0===i&&(i=30),t({view:"negative",title:e,text:o,offset:i})};export{e as showError,o as showSuccess};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a}from"../tslib.es6-77545e10.js";import l,{forwardRef as n,useRef as r,useState as t,useCallback as o,Fragment as i}from"react";import s from"react-merge-refs";import m from"classnames";import{Portal as d}from"../portal/component.js";import"react-dom";import"../portal/utils.js";var u="index-module_suffixContainer__L2XY5",f="index-module_suffixVisible__Yc0TG",c="index-module_hasSuffix__k5IuB",_="index-module_spacer__ylEiI",p="index-module_suffix__rQNLe",x="index-module_disabled__tntct",C="index-module_readOnly__tm8U3",v=function(v){return n((function(n,N){var E,h,b=n.value,g=n.defaultValue,y=n.onChange,O=n.onClear,j=n.suffix,V=void 0===j?"":j,B=n.placeholder,I=n.className,L=n.disabled,Y=n.readOnly,k=n.suffixContainerClassName,G=e(n,["value","defaultValue","onChange","onClear","suffix","placeholder","className","disabled","readOnly","suffixContainerClassName"]),P=void 0===b,Q=r(null),S=t(g||""),T=S[0],U=S[1],X=o((function(e,a){y&&y(e,a),P&&U(a.value)}),[y,P]),q=o((function(e){P&&U(""),O&&O(e)}),[O,P]),w=o((function(){return Q.current.parentElement}),[]),z=P?T:b;return l.createElement(i,null,l.createElement(v,a({ref:s([N,Q]),value:z,disabled:L,readOnly:Y,onChange:X,onClear:q,placeholder:B,className:m(I,(E={},E[f]=Boolean(z),E[c]=V,E))},G)),l.createElement(d,{getPortalContainer:w},l.createElement("div",{className:m(u,k)},l.createElement("span",{className:_},z),V&&l.createElement("div",{className:m(p,(h={},h[x]=L,h[C]=Y,h))},V))))}))};export{v as withSuffix};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{withSuffix}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{withSuffix}from"./component.js";import"../tslib.es6-77545e10.js";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alphakits/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -38,9 +38,11 @@
|
|
|
38
38
|
"classnames": "^2.2.6",
|
|
39
39
|
"date-fns": "^2.19.0",
|
|
40
40
|
"downshift": "5.4.7",
|
|
41
|
+
"element-closest": "^3.0.2",
|
|
41
42
|
"formik": "^2.2.9",
|
|
42
43
|
"globby": "^11.0.3",
|
|
43
44
|
"intersection-observer": "^0.12.0",
|
|
45
|
+
"intl-tel-input": "^17.0.19",
|
|
44
46
|
"lodash": "4.17.21",
|
|
45
47
|
"postcss": "^8.2.9",
|
|
46
48
|
"query-string": "^7.0.1",
|
|
@@ -50,13 +52,14 @@
|
|
|
50
52
|
"react-swipeable": "^6.1.0",
|
|
51
53
|
"react-swipeable-bottom-sheet": "^1.1.2",
|
|
52
54
|
"react-table": "^7.7.0",
|
|
55
|
+
"react-telephone-input": "^5.0.0",
|
|
53
56
|
"react-text-mask": "^5.4.3",
|
|
54
57
|
"react-textarea-autosize": "^8.3.2",
|
|
55
58
|
"react-transition-group": "^4.4.1",
|
|
56
59
|
"react-virtual": "^2.6.1",
|
|
57
60
|
"react-window": "1.8.6",
|
|
58
61
|
"resize-observer": "1.0.0",
|
|
59
|
-
"swiper": "
|
|
62
|
+
"swiper": "6.8.4",
|
|
60
63
|
"text-mask-core": "^5.1.2",
|
|
61
64
|
"ts-keycode-enum": "1.0.6",
|
|
62
65
|
"uuid": "8.3.2"
|
|
@@ -89,6 +92,7 @@
|
|
|
89
92
|
"@testing-library/user-event": "^10.0.0",
|
|
90
93
|
"@types/autosize": "3.0.7",
|
|
91
94
|
"@types/classnames": "^2.2.10",
|
|
95
|
+
"@types/element-closest": "^3.0.0",
|
|
92
96
|
"@types/jest": "^25.1.4",
|
|
93
97
|
"@types/node": "^13.9.1",
|
|
94
98
|
"@types/react": "^16.9.23",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{PhotoS as i,PhotoM as r}from"alpha-cli-icons";import _ from"classnames";import{Spinner as d}from"./spinner/component.js";import{Typography as m}from"./typography/component.js";import"./image/typings.js";import{sizes as l,textSizes as a}from"./image/constants.js";import{getSrc as s,getCharsFromText as c}from"./image/utils.js";var x={component:"index-module_component__Jf39Y",children:"index-module_children__FCnNZ",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",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,h=u.text,w=u.icon,b=e.useState("loading"),C=b[0],k=b[1],N=t(0),j=g||l[v],E=n((function(){return s(f,j)}),[j,f]);return o((function(){if(E){N.current=Date.now(),k("loading");var e=new Image;e.src=E,e.onload=function(){k("loaded")},e.onerror=function(){Date.now()-N.current<15e3?setTimeout((function(){e.src=E}),1e3):k("error")}}else k("error")}),[E]),w||("loading"===C?e.createElement(d,{className:x.spinner,size:"s",view:"dark"}):"error"===C&&h?e.createElement(m.Text,{className:_(x.textContent,x[a[v]]),view:"component",color:"tertiary",weight:"bold"},c(h.toUpperCase())):"error"===C?e.createElement(m.Text,{className:x.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===v?e.createElement(i,null):e.createElement(r,null)):e.createElement("img",{className:x.image,src:f,alt:y}))};export{x as s,u};
|