@alphakits/ui 1.3.20 → 1.5.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-51fecfef.js → _commonjsHelpers-3e170942.js} +0 -0
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.d.ts +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.d.ts +6 -18
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/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.d.ts +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.d.ts +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/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.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.d.ts +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.d.ts +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.d.ts +2 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-cc121901.js → colors.module-ad73c09a.js} +0 -0
- package/dist/{common.module-d34bb3c5.js → common.module-10ade317.js} +0 -0
- package/dist/component-9ce2c0ee.d.ts +14 -0
- package/dist/component-9ce2c0ee.js +1 -0
- package/dist/component-e71445f5.d.ts +7 -0
- package/dist/{contact-block-e5022060.d.ts → contact-block-cce152f7.d.ts} +0 -0
- package/dist/{contact-block-e5022060.js → contact-block-cce152f7.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/components/contacts-block.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.d.ts +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/{formik.esm-10a4c7bf.js → formik.esm-9b402931.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-6e22a1ed.js → gutters.module-557bd949.js} +0 -0
- 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-ine/index.js +1 -1
- package/dist/icon-button/component.d.ts +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.d.ts +2 -16
- package/dist/image/component.js +1 -1
- package/dist/image/constants.d.ts +13 -0
- package/dist/image/constants.js +1 -0
- package/dist/image/index.d.ts +3 -0
- package/dist/image/index.js +1 -1
- package/dist/image/typings.d.ts +25 -0
- package/dist/image/typings.js +1 -0
- package/dist/{cell/action/component.d.ts → image/use-image-render-component.d.ts} +0 -0
- package/dist/image/use-image-render-component.js +1 -0
- package/dist/image/utils.d.ts +4 -0
- package/dist/image/utils.js +1 -0
- package/dist/index.css +1 -5
- package/dist/index.ts +0 -7
- 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.d.ts +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/intersection-observer-ce86058b.js +1 -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.d.ts +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/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/modal/types.d.ts +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-42783896.d.ts → parse-query-params-d519bf2a.d.ts} +0 -0
- package/dist/{parse-query-params-42783896.js → parse-query-params-d519bf2a.js} +1 -1
- package/dist/picker-button/component.d.ts +2 -2
- 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.d.ts +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.d.ts +2 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.d.ts +2 -2
- 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.d.ts +2 -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.d.ts +1 -0
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.d.ts +45 -0
- package/dist/select/presets/use-lazy-loading/index.js +1 -0
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/select/typings.d.ts +7 -0
- package/dist/select/utils.d.ts +13 -1
- package/dist/select/utils.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/suffix-input/component.d.ts +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.d.ts +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.d.ts +2 -10
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.d.ts +6 -2
- 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/data.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/utils/serialize-data.d.ts +1 -1
- package/dist/table/utils/serialize-data.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.d.ts +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-5f92d514.js → tslib.es6-c88014b9.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-c2070538.d.ts +13 -0
- package/dist/use-image-render-component-c2070538.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.d.ts +3 -0
- package/dist/utils/show-toast/index.js +1 -0
- package/dist/vars/alpha-radiuses.css +1 -0
- package/dist/vars/typography.css +1 -1
- package/dist/with-suffix/component.d.ts +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +9 -14
- package/dist/avatar/hooks/index.d.ts +0 -1
- package/dist/avatar/hooks/index.js +0 -1
- package/dist/avatar/hooks/use-image-loading-state.d.ts +0 -4
- package/dist/avatar/hooks/use-image-loading-state.js +0 -1
- package/dist/avatar/types.d.ts +0 -3
- package/dist/avatar/types.js +0 -1
- package/dist/cell/action/component.js +0 -1
- package/dist/cell/action/index.d.ts +0 -1
- package/dist/cell/action/index.js +0 -1
- package/dist/cell/autopayment/component.d.ts +0 -0
- package/dist/cell/autopayment/component.js +0 -1
- package/dist/cell/autopayment/index.d.ts +0 -1
- package/dist/cell/autopayment/index.js +0 -1
- package/dist/cell/catalog/component.d.ts +0 -0
- package/dist/cell/catalog/component.js +0 -1
- package/dist/cell/catalog/index.d.ts +0 -1
- package/dist/cell/catalog/index.js +0 -1
- package/dist/cell/subscription/component.d.ts +0 -0
- package/dist/cell/subscription/component.js +0 -1
- package/dist/cell/subscription/index.d.ts +0 -1
- package/dist/cell/subscription/index.js +0 -1
- package/dist/cell/transaction/component.d.ts +0 -19
- package/dist/cell/transaction/component.js +0 -1
- package/dist/cell/transaction/index.d.ts +0 -1
- package/dist/cell/transaction/index.js +0 -1
- package/dist/component-5dbe6e58.d.ts +0 -17
- package/dist/component-fa2c94c0.d.ts +0 -63
- package/dist/component-fa2c94c0.js +0 -1
- package/dist/photo-uploader/component.d.ts +0 -22
- package/dist/photo-uploader/component.js +0 -1
- package/dist/photo-uploader/index.d.ts +0 -1
- package/dist/photo-uploader/index.js +0 -1
- package/dist/photo-uploader-multiple/component.d.ts +0 -21
- package/dist/photo-uploader-multiple/component.js +0 -1
- package/dist/photo-uploader-multiple/index.d.ts +0 -1
- package/dist/photo-uploader-multiple/index.js +0 -1
- package/dist/photos/attach/index.d.ts +0 -7
- package/dist/photos/attach/index.js +0 -1
- package/dist/photos/index.d.ts +0 -2
- package/dist/photos/index.js +0 -1
- package/dist/photos/photo/index.d.ts +0 -11
- package/dist/photos/photo/index.js +0 -1
- package/dist/photos/photos/index.d.ts +0 -11
- package/dist/photos/photos/index.js +0 -1
- package/dist/super-ellipse/component.d.ts +0 -10
- package/dist/super-ellipse/component.js +0 -1
- package/dist/super-ellipse/index.d.ts +0 -1
- package/dist/super-ellipse/index.js +0 -1
- package/dist/super-ellipse-button/component.d.ts +0 -9
- package/dist/super-ellipse-button/component.js +0 -1
- package/dist/super-ellipse-button/index.d.ts +0 -1
- package/dist/super-ellipse-button/index.js +0 -1
- package/dist/super-ellipse-pure/component.d.ts +0 -11
- package/dist/super-ellipse-pure/component.js +0 -1
- package/dist/super-ellipse-pure/index.d.ts +0 -1
- package/dist/super-ellipse-pure/index.js +0 -1
- package/dist/super-ellipse-shape/component.d.ts +0 -12
- package/dist/super-ellipse-shape/component.js +0 -1
- package/dist/super-ellipse-shape/index.d.ts +0 -1
- package/dist/super-ellipse-shape/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-c88014b9.js";import n,{useLayoutEffect as o,useEffect as r,useRef as i,useCallback as a,forwardRef as d,createElement as l,useState as s}from"react";import u from"react-merge-refs";import c from"classnames";import{FormControl as m}from"../form-control/component.js";import{useFocus as f}from"../hooks/useFocus/index.js";function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h.apply(this,arguments)}var g="undefined"!=typeof document?o:r,p=function(e,t){"function"!=typeof e?e.current=t:e(t)},b={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},x=function(e){Object.keys(b).forEach((function(t){e.style.setProperty(t,b[t],"important")}))},v=null;var w=function(){},z=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],y="undefined"!=typeof document&&!!document.documentElement.currentStyle,_=function(e){var t,n,r=(n=i(t=e),g((function(){n.current=t})),n);o((function(){var e=function(e){r.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},C=d((function(e,t){var n=e.cacheMeasurements,r=e.maxRows,d=e.minRows,s=e.onChange,u=void 0===s?w:s,c=e.onHeightChange,m=void 0===c?w:c,f=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);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 g=void 0!==f.value,b=i(null),C=function(e,t){var n=i();return a((function(o){e.current=o,n.current&&p(n.current,null),n.current=t,t&&p(t,o)}),[t])}(b,t),R=i(0),S=i(),H=function(){var e=b.current,t=n&&S.current?S.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,o=(n=t,z.reduce((function(e,t){return e[t]=n[t],e}),{})),r=o.boxSizing;return""===r?null:(y&&"border-box"===r&&(o.width=parseFloat(o.width)+parseFloat(o.borderRightWidth)+parseFloat(o.borderLeftWidth)+parseFloat(o.paddingRight)+parseFloat(o.paddingLeft)+"px"),{sizingStyle:o,paddingSize:parseFloat(o.paddingBottom)+parseFloat(o.paddingTop),borderSize:parseFloat(o.borderBottomWidth)+parseFloat(o.borderTopWidth)})}(e);if(t){S.current=t;var o=function(e,t,n,o){void 0===n&&(n=1),void 0===o&&(o=1/0),v||((v=document.createElement("textarea")).setAttribute("tabindex","-1"),v.setAttribute("aria-hidden","true"),x(v)),null===v.parentNode&&document.body.appendChild(v);var r=e.paddingSize,i=e.borderSize,a=e.sizingStyle,d=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;v.style[t]=a[t]})),x(v),v.value=t;var l=function(e,t){var n=v.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);v.value="x";var s=v.scrollHeight-r,u=s*n;"border-box"===d&&(u=u+r+i),l=Math.max(u,l);var c=s*o;return"border-box"===d&&(c=c+r+i),[l=Math.min(c,l),s]}(t,e.value||e.placeholder||"x",d,r),i=o[0],a=o[1];R.current!==i&&(R.current=i,e.style.setProperty("height",i+"px","important"),m(i,{rowHeight:a}))}};return"undefined"!=typeof document&&(o(H),_(H)),l("textarea",h({},f,{onChange:function(e){g||H(),u(e)},ref:C}))})),R={textarea:"index-module_textarea__10WiX",s:"index-module_s__mB-Lv",m:"index-module_m__GBkw0",l:"index-module_l__ZR1ow",hasLabel:"index-module_hasLabel__1xWGU",resizeVertical:"index-module_resizeVertical__1xb4Z",focusVisible:"index-module_focusVisible__2wEmF",filled:"index-module_filled__3c6uz",counter:"index-module_counter__ibP6v"},S=n.forwardRef((function(o,d){var l,h,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,z=o.block,y=void 0!==z&&z,_=o.bottomAddons,S=o.fieldClassName,H=o.className,E=o.dataTestId,F=o.disabled,L=o.error,A=o.hint,N=o.textareaClassName,k=o.label,B=o.leftAddons,W=o.onFocus,T=o.required,V=o.onBlur,j=o.onChange,O=o.onHeightChange,P=o.rightAddons,M=o.maxRows,q=o.minRows,I=o.maxHeight,U=o.resize,G=void 0===U?"none":U,Z=o.value,D=o.defaultValue,X=o.maxLength,J=o.counter,K=o.rows,Q=void 0===K?x?1:3:K,Y=e(o,["autoComplete","autosize","size","block","bottomAddons","fieldClassName","className","dataTestId","disabled","error","hint","textareaClassName","label","leftAddons","onFocus","required","onBlur","onChange","onHeightChange","rightAddons","maxRows","minRows","maxHeight","resize","value","defaultValue","maxLength","counter","rows"]),$=void 0===Z,ee=i(null),te=s(!1),ne=te[0],oe=te[1],re=s(D||""),ie=re[0],ae=re[1],de=f(ee,"keyboard")[0],le=Boolean($?ie:Z);r((function(){x&&I&&ee.current&&ee.current.style&&(ee.current.style.maxHeight=I+"px")}),[ee,x,I]);var se=a((function(e){oe(!0),W&&W(e)}),[W]),ue=a((function(e){oe(!1),V&&V(e)}),[V]),ce=a((function(e){j&&j(e,{value:e.target.value}),$&&ae(e.target.value)}),[j,$]),me=t(t({},Y),{className:c(R.textarea,R[w],(l={},l[R.hasLabel]=k,l[R.filled]=le,l[R.resizeVertical]="vertical"===G,l),N),autoComplete:p,disabled:F,onBlur:ue,onFocus:se,onChange:ce,value:$?ie:Z,rows:Q,ref:u([d,ee]),"data-test-id":E});return n.createElement(m,{className:c(H),fieldClassName:c(S,(h={},h[R.focusVisible]=de,h)),size:w,block:y,required:T,disabled:F,filled:le||ne,focused:ne,error:L,label:k,hint:A,leftAddons:B,rightAddons:P,bottomAddons:_},x?n.createElement(C,t({},me,{maxLength:X,maxRows:M,minRows:q,onHeightChange:O})):n.createElement("textarea",t({maxLength:X},me,{style:{maxHeight:I}})),J&&n.createElement("span",{className:R.counter},($?ie.length:null==Z?void 0:Z.length)+" / "+(X||"-")))}));S.defaultProps={autoComplete:"on",autosize:!0,size:"s",block:!1,resize:"none"};export{S 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-c88014b9.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-c88014b9.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 c from"classnames";import{useClickOutside as l}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__1tURa",x="index-module_popover__2s94c",v="index-module_block__1LQ2N",j="index-module_fixed__2VKTR",E={enter:"index-module_enter__1HqJ_",enterActive:"index-module_enterActive__24lwm",exit:"index-module_exit__1lF2R",exitActive:"index-module_exitActive__1DwuN"},C=n((function(n,C){var b,h=n.anchorElement,k=n.position,N=n.offset,T=n.open,g=n.autoCloseDelay,y=void 0===g?3e3:g,M=n.className,P=n.bottomOffset,w=n.style,A=void 0===w?{}:w,L=n.block,O=n.onMouseEnter,D=n.onMouseLeave,R=n.onTouchStart,S=n.onClose,F=n.getPortalContainer,q=e(n,["anchorElement","position","offset","open","autoCloseDelay","className","bottomOffset","style","block","onMouseEnter","onMouseLeave","onTouchStart","onClose","getPortalContainer"]),H=r(null),J=r(0),K=u(T),Q=i((function(){clearTimeout(J.current),J.current=window.setTimeout(S,y)}),[y,S]),U=i((function(){clearTimeout(J.current)}),[]),V=i((function(e){U(),O&&O(e)}),[O,U]),z=i((function(e){Q(),D&&D(e)}),[D,Q]),B=i((function(e){U(),R&&R(e)}),[R,U]),G=i((function(){S(),U()}),[S,U]);l(H,G),s((function(){return T!==K&&T&&Q(),function(){U()}}),[T,K,Q,U]);var I={block:L,onClose:S,onMouseEnter:V,onMouseLeave:z,onTouchStart:B,ref:m([C,H])};return h?t.createElement(f,{open:T,anchorElement:h,position:k,offset:N,popperClassName:c(x,(b={},b[v]=L,b)),transition:{timeout:150},getPortalContainer:F},t.createElement(p,o({},q,{style:A,className:M},I))):t.createElement(d,{getPortalContainer:F},t.createElement(a,{unmountOnExit:!0,in:T,timeout:150,classNames:E},t.createElement(p,o({},q,{className:c(j,_,M),style:o(o({},A),{bottom:P&&P+"px"})},I))))}));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-c88014b9.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-c88014b9.js";import o from"react";import n from"react-dom";import r from"classnames";import{ToastPlate as s}from"../toast-plate/component.js";import{useTimer as i}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,m="index-module_notificationComponent__372lU",l="index-module_isVisible__3Qu8J",d="index-module_toastContent__3Vxkc";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var u=function(u){var p,c=u.className;u.children;var f=u.offset,v=void 0===f?108:f,h=u.hasCloser,C=void 0===h||h;u.onClose;var _=u.text;u.onMouseEnter,u.onMouseLeave;var b=u.style,x=u.delay,y=void 0===x?3e3:x,E=e(u,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","delay"]);if("undefined"==typeof window)return null;a.setAttribute("style","position: absolute; top: "+v+"px; right: 30px");var j=document.createElement("div");j.setAttribute("id","toast_wrap-"+Math.random()),j.setAttribute("style"," margin-bottom: 18px"),a.appendChild(j);var g=function(){a.removeChild(j)},w=i(g,y),M=w.pause,A=w.resume;return j.addEventListener("mouseenter",(function(){M()})),j.addEventListener("mouseleave",(function(){A()})),n.render(o.createElement(s,t({hasCloser:C,className:r(m,(p={},p[l]=!0,p),c),contentClassName:d,style:t({right:0,position:"relative"},b),role:"alert",onClose:g},E),_),j),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-c88014b9.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-c88014b9.js";import o,{forwardRef as n,useCallback as a}from"react";import{CloseS as l}from"alpha-cli-icons";import i from"classnames";import{Button as s}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var _={component:"index-module_component__1-bP3",hasCloser:"index-module_hasCloser__1tXHy",contentWrap:"index-module_contentWrap__2OfQM",block:"index-module_block__1aVTZ",content:"index-module_content__3WQJx",actionSection:"index-module_actionSection__2uYWg",leftAddons:"index-module_leftAddons__dPWvX",title:"index-module_title__3s4Iy",children:"index-module_children__20qcv",closeButton:"index-module_closeButton__2rWck",negative:"index-module_negative__34lhl",positive:"index-module_positive__2B8L6",toast_enter:"index-module_toast_enter__-zNmP",toast_active_enter:"index-module_toast_active_enter__23TeH",toast_done_enter:"index-module_toast_done_enter__3mlJ0",toast_exit:"index-module_toast_exit__3Q1-3",toast_active_exit:"index-module_toast_active_exit__aBjiS",toast_done_exit:"index-module_toast_done_exit__2LVf4"},d=n((function(n,d){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 N=n.block,b=n.onClose;n.getBadgeIcons;var C=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:i(_.component,(c={},c[_.block]=N,c[_.hasCloser]=x,c),_[p],r),ref:d,"data-test-id":m},C),o.createElement("div",{className:_.contentWrap},o.createElement("div",{className:i(u,_.content)},f&&o.createElement("div",{className:_.title},f),h&&o.createElement("div",{className:_.children},h)),x&&o.createElement(s,t({className:i(_.closeButton),view:"ghost"},{onClick:g},{"aria-label":"закрыть",leftAddons:o.createElement(l,null)}))))}));export{d as ToastPlate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastPlate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastPlate}from"./component.js";import"../tslib.es6-c88014b9.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-c88014b9.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__27XUU",l="index-module_popper__15ABf",m="index-module_target__3lSlZ",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,j=f.getPortalContainer,M=f.offset,x=void 0===M?[0,10]:M,b=f.position,y=f.contentClassName,S=f.arrowClassName,P=f.popoverClassName,R=f.updatePopover,A=t(!!E),D=A[0],L=A[1],U=t(null),B=U[0],F=U[1],I=o.useRef(null),X=o.useRef(null),Z=r(0),q=function(){D||(L(!0),O&&O())},z=n((function(){D&&(L(!1),N&&N())}),[N,D]),G=function(e){return(!I.current||!I.current.contains(e))&&(!X.current||!X.current.contains(e))};c((function(){var e=function(e){var o=e.target;G(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(Z.current)}}),[z]);var H,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),D?z():q()}},K={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(Z.current),Z.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(Z.current),Z.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(Z.current),G(o)?Z.current=window.setTimeout((function(){z()}),h):q()}},Q=void 0===E?D:E,V=n((function(e){I.current=e,F(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:V},(H=function(o){var t={className:u(m,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),K);default:return{}}}(d.props),a(d,H))),B&&o.createElement(s,{anchorElement:B,open:Q,getPortalContainer:j,arrowClassName:S,popperClassName:u(l,P),offset:x,withArrow:!0,position:b,update:R},function(){var t=function(){var o={ref:X,"data-test-id":k,className:u(p,y)};return"hover"===w?e(e({},o),K):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-c88014b9.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-c88014b9.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-ad73c09a.js";import"../common.module-10ade317.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-c88014b9.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-ad73c09a.js";import"../common.module-10ade317.js";import"./text/component.js";import"./title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import a from"classnames";import{c as m}from"../../colors.module-ad73c09a.js";var r={paragraph:"index-module_paragraph__1bRcB","primary-medium":"index-module_primary-medium__Qvb5H","primary-small":"index-module_primary-small__L3Wad",component:"index-module_component__31LM6",title:"index-module_title__f59kW",caps:"index-module_caps__xHQwO",bold:"index-module_bold__3D19m",medium:"index-module_medium__3Fy9j",regular:"index-module_regular__3febp"},d=function(d){var i,o=d.view,l=void 0===o?"primary-medium":o,_=d.tag,p=void 0===_?"span":_,t=d.weight,n=void 0===t?"regular":t,u=d.color,s=d.className,c=d.dataTestId,x=d.children;return e.createElement(p,{className:a((i={},i[r.paragraph]="p"===p,i),s,u&&m[u],r[l],r[n]),"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-ad73c09a.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"classnames";import e from"react";import{c as t}from"../../colors.module-ad73c09a.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,u=o.className,f=o.dataTestId,p=o.children,g=o.styles;return e.createElement(m,{className:a(g.component,u,g["montserrat-"+s],l&&g["margins-"+s],g[c],v&&t[v]),"data-test-id":f},p)};export{o as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-c88014b9.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-10ade317.js";import"classnames";import"../../colors.module-ad73c09a.js";var s={"montserrat-xlarge":"index-module_montserrat-xlarge__2e0T4","montserrat-large":"index-module_montserrat-large__3IoQZ","montserrat-medium":"index-module_montserrat-medium__1C2-N","montserrat-small":"index-module_montserrat-small__7aq7N","montserrat-xsmall":"index-module_montserrat-xsmall__1snHz","margins-xlarge":"index-module_margins-xlarge__3T9s4","margins-large":"index-module_margins-large__uTKMb","margins-medium":"index-module_margins-medium__2WXDU","margins-small":"index-module_margins-small__3jh4c","margins-xsmall":"index-module_margins-xsmall__Eaiy8"},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-c88014b9.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-10ade317.js";import"classnames";import"../../colors.module-ad73c09a.js";var l={"montserrat-xlarge":"index-module_montserrat-xlarge__3_L7c","montserrat-large":"index-module_montserrat-large__25PPi","montserrat-medium":"index-module_montserrat-medium__2-xpj","montserrat-small":"index-module_montserrat-small__iwV-8","montserrat-xsmall":"index-module_montserrat-xsmall__2AlQp","margins-xlarge":"index-module_margins-xlarge__3ay4g","margins-large":"index-module_margins-large__3T8vK","margins-medium":"index-module_margins-medium__1_Ucz","margins-small":"index-module_margins-small__8NNjs","margins-xsmall":"index-module_margins-xsmall__2ENbw"},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-c88014b9.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-ad73c09a.js";import"../../common.module-10ade317.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ComponentSizes, ImageSizes } from "./image/index";
|
|
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{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 x}from"./image/utils.js";var c={component:"index-module_component__2SAxI",children:"index-module_children__3-Rrm",default:"index-module_default__9Y9Ry",primary:"index-module_primary__1rcmx","primary-inverted":"index-module_primary-inverted__1Qsti",secondary:"index-module_secondary__V683L","secondary-inverted":"index-module_secondary-inverted__1z_a8",positive:"index-module_positive__11E2V",negative:"index-module_negative__ZEP9w",attention:"index-module_attention__1tSkN",accent:"index-module_accent__3qMH5",broken:"index-module_broken__21rqy",image:"index-module_image__ZF1Gv",hint:"index-module_hint__15-ui",hint_text:"index-module_hint_text__2HO_n",textContent:"index-module_textContent__13aze",xs:"index-module_xs__2Es8v",s:"index-module_s__2D4b3",m:"index-module_m__1Rtr9",l:"index-module_l__3oEwm",xl:"index-module_xl__7Y-se",circle:"index-module_circle__rmY6i",defs:"index-module_defs__-xTo_",textS:"index-module_textS__2QNNE",textXs:"index-module_textXs__ujJjz",textM:"index-module_textM__3vBUB",textL:"index-module_textL__1u8Yh"},u=function(u){var p=u.src,v=void 0===p?"":p,f=u.resolution,g=u.size,y=u.alt,h=u.text,E=u.icon,w=e.useState("loading"),j=w[0],N=w[1],b=t(0),k=f||l[g],z=n((function(){return s(v,k)}),[k,v]);return o((function(){if(z){b.current=Date.now(),N("loading");var e=new Image;e.src=z,e.onload=function(){N("loaded")},e.onerror=function(){Date.now()-b.current<15e3?setTimeout((function(){e.src=z}),1e3):N("error")}}else N("error")}),[z]),E||("loading"===j?e.createElement(d,{className:c.spinner,size:"s",view:"dark"}):"error"===j&&h?e.createElement(m.Text,{className:_(c.textContent,c[a[g]]),view:"component",color:"tertiary",weight:"bold"},x(h.toUpperCase())):"error"===j?e.createElement(m.Text,{className:c.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===g?e.createElement(i,null):e.createElement(r,null)):e.createElement("img",{className:c.image,src:v,alt:y}))};export{c as s,u};
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"
|
|
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-c88014b9.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-c88014b9.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){t({view:"positive",title:"Success",text:o,offset:30})},e=function(o){t({view:"negative",title:"Error",text:o,offset:30})};export{e as showError,o as showSuccess};
|
package/dist/vars/typography.css
CHANGED
|
@@ -6,7 +6,7 @@ type WithSuffixProps = InputProps & {
|
|
|
6
6
|
suffix?: ReactNode;
|
|
7
7
|
suffixContainerClassName?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
9
|
+
declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "step" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
|
|
10
10
|
value?: string | undefined;
|
|
11
11
|
defaultValue?: string | undefined;
|
|
12
12
|
block?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a}from"../tslib.es6-c88014b9.js";import l,{forwardRef as n,useRef as r,useState as o,useCallback as t,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__2PAjv",f="index-module_suffixVisible__2nCIM",c="index-module_hasSuffix__2OETD",_="index-module_spacer__367Gn",p="index-module_suffix__1tJdT",x="index-module_disabled__SEf2T",C="index-module_readOnly__1gCb6",v=function(v){return n((function(n,E){var b,N,h=n.value,g=n.defaultValue,O=n.onChange,j=n.onClear,y=n.suffix,T=void 0===y?"":y,V=n.placeholder,P=n.className,S=n.disabled,A=n.readOnly,B=n.suffixContainerClassName,D=e(n,["value","defaultValue","onChange","onClear","suffix","placeholder","className","disabled","readOnly","suffixContainerClassName"]),G=void 0===h,I=r(null),J=o(g||""),M=J[0],k=J[1],q=t((function(e,a){O&&O(e,a),G&&k(a.value)}),[O,G]),w=t((function(e){G&&k(""),j&&j(e)}),[j,G]),z=t((function(){return I.current.parentElement}),[]),F=G?M:h;return l.createElement(i,null,l.createElement(v,a({ref:s([E,I]),value:F,disabled:S,readOnly:A,onChange:q,onClear:w,placeholder:V,className:m(P,(b={},b[f]=Boolean(F),b[c]=T,b))},D)),l.createElement(d,{getPortalContainer:z},l.createElement("div",{className:m(u,B)},l.createElement("span",{className:_},F),T&&l.createElement("div",{className:m(p,(N={},N[x]=S,N[C]=A,N))},T))))}))};export{v as withSuffix};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{withSuffix}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{withSuffix}from"./component.js";import"../tslib.es6-c88014b9.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.5.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -25,18 +25,11 @@
|
|
|
25
25
|
"fix": "eslint --fix --ext .ts,.tsx",
|
|
26
26
|
"semantic-release": "semantic-release"
|
|
27
27
|
},
|
|
28
|
-
"browserslist":
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
],
|
|
34
|
-
"development": [
|
|
35
|
-
"last 1 chrome version",
|
|
36
|
-
"last 1 firefox version",
|
|
37
|
-
"last 1 safari version"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
28
|
+
"browserslist": [
|
|
29
|
+
">0.2%",
|
|
30
|
+
"not dead",
|
|
31
|
+
"not op_mini all"
|
|
32
|
+
],
|
|
40
33
|
"dependencies": {
|
|
41
34
|
"@popperjs/core": "^2.3.3",
|
|
42
35
|
"@types/lodash": "^4.14.173",
|
|
@@ -51,6 +44,7 @@
|
|
|
51
44
|
"postcss": "^8.2.9",
|
|
52
45
|
"query-string": "^7.0.1",
|
|
53
46
|
"react-merge-refs": "1.1.0",
|
|
47
|
+
"intersection-observer": "^0.12.0",
|
|
54
48
|
"react-node-resolver": "^2.0.1",
|
|
55
49
|
"react-popper": "^2.2.2",
|
|
56
50
|
"react-swipeable": "^6.1.0",
|
|
@@ -106,12 +100,13 @@
|
|
|
106
100
|
"@typescript-eslint/eslint-plugin": "^4.4.0",
|
|
107
101
|
"@typescript-eslint/parser": "^4.4.0",
|
|
108
102
|
"@wessberg/rollup-plugin-ts": "^1.3.6",
|
|
109
|
-
"alpha-cli-icons": "^1.0.
|
|
103
|
+
"alpha-cli-icons": "^1.0.23",
|
|
110
104
|
"alphakit-presets-lint": "1.0.0",
|
|
111
105
|
"babel-jest": "^26.6.3",
|
|
112
106
|
"babel-preset-env": "^1.7.0",
|
|
113
107
|
"conventional-changelog-cli": "2.0.31",
|
|
114
108
|
"copyfiles": "2.2.0",
|
|
109
|
+
"core-js": "^3.20.0",
|
|
115
110
|
"css-loader": "4.2.2",
|
|
116
111
|
"cz-conventional-changelog": "3.1.0",
|
|
117
112
|
"eslint": "^7.7.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./use-image-loading-state";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{useImageLoadingState}from"./use-image-loading-state.js";import"react";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r,{useRef as n}from"react";function e(e){var o=e.src,t=r.useState("loading"),c=t[0],u=t[1],a=n(0);return r.useEffect((function(){if(o){a.current=Date.now();var r=!0;u("loading");var n=new Image;return n.src=o,n.onload=function(){r&&u("loaded")},n.onerror=function(){r&&(Date.now()-a.current<1e4?setTimeout((function(){n.src=o}),1e3):u("error"))},function(){r=!1}}u("error")}),[o]),c}export{e as useImageLoadingState};
|
package/dist/avatar/types.d.ts
DELETED
package/dist/avatar/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=["secondary","primary"];export{r as colors};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{A as Action}from"../../component-fa2c94c0.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/title/index.js";import"../../tslib.es6-5f92d514.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/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";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../component-fa2c94c0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{A as Action}from"../../component-fa2c94c0.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-5f92d514.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/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";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../divider/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{a as Autopayment}from"../../component-fa2c94c0.js";import"../../typography/title/index.js";import"../../tslib.es6-5f92d514.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"ts-keycode-enum";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/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";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../component-fa2c94c0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as Autopayment}from"../../component-fa2c94c0.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-5f92d514.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/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";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{b as Catalog}from"../../component-fa2c94c0.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/title/index.js";import"../../tslib.es6-5f92d514.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"ts-keycode-enum";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/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";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../component-fa2c94c0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as Catalog}from"../../component-fa2c94c0.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-5f92d514.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/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";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"react";import"classnames";import"ts-keycode-enum";import"../../avatar/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{S as Subscription}from"../../component-fa2c94c0.js";import"../../tslib.es6-5f92d514.js";import"../../__internal/utils/getDataTestId.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../divider/component.js";import"../pure/component.js";import"../transaction/component.js";import"../../amount/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";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../component-fa2c94c0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{S as Subscription}from"../../component-fa2c94c0.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-5f92d514.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/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";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AmountType } from "../../utils/format-amount/util";
|
|
4
|
-
type TransactionProps = {
|
|
5
|
-
slot: React.ReactNode;
|
|
6
|
-
title: string;
|
|
7
|
-
category?: string;
|
|
8
|
-
categoryPercent?: number;
|
|
9
|
-
amount: AmountType;
|
|
10
|
-
type?: 'default' | 'income' | 'hold';
|
|
11
|
-
profit?: number;
|
|
12
|
-
profitType?: 'alfa' | 'cash';
|
|
13
|
-
comment?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
dataTestId?: string;
|
|
16
|
-
onClick?: () => void;
|
|
17
|
-
};
|
|
18
|
-
declare const Transaction: React.FC<TransactionProps>;
|
|
19
|
-
export { TransactionProps, Transaction };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{useRef as t,useCallback as o}from"react";import m from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";import{Amount as r}from"../../amount/component.js";import{useFocus as n}from"../../hooks/useFocus/index.js";import{Typography as l}from"../../typography/component.js";import"../../tslib.es6-5f92d514.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"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";var c="index-module_component__3WKk8",i="index-module_slot__3-oQ0",s="index-module_title__3SCFU",d="index-module_content__T63TF",p="index-module_contentWrapper__3nonU",u="index-module_category__GwY-S",_="index-module_categoryPercent__1zrQk",y="index-module_amount__16vE9",v="index-module_positiveAmount__3qWEM",x="index-module_profit__3NGqk",E="index-module_comment__3FRy7",g="index-module_commentTextWrapper__PKIqe",N="index-module_commentText__2e0YN",f="index-module_focused__1K2z_",j=function(j){var T,w=j.slot,h=j.title,k=j.comment,b=j.category,C=void 0===b?"Другое":b,F=j.amount,I=j.profit,K=j.categoryPercent,P=j.type,W=void 0===P?"default":P,q=j.className,z=j.dataTestId,G=j.onClick,Q=t(null),S=n(Q,"keyboard")[0],U=o((function(e){void 0!==G&&(13===(e.charCode||e.keyCode)&&G())}),[G]);return e.createElement("div",{ref:Q,onKeyPress:U,onClick:G,role:"button",tabIndex:0,className:m(c,(T={},T[f]=S,T),q),"data-test-id":a("cell-transaction",z,!0)},e.createElement("div",{className:i},w),e.createElement("div",{className:d},e.createElement("div",{className:p},e.createElement(l.Text,{className:s,view:"component"},h),C&&e.createElement("div",{className:u},e.createElement(l.Text,{view:"primary-small",color:"secondary"},C),K&&e.createElement(l.Text,{tag:"div",view:"primary-small",color:"secondary",className:_},K,"%")),e.createElement("div",{className:y},"income"===W?e.createElement(l.Text,{view:"component",tag:"div",className:v},"+",e.createElement(r,{view:"title",currency:F.currency,value:F.value})):e.createElement(l.Text,{view:"component",tag:"div"},"-",e.createElement(r,{value:F.value,currency:F.currency})),"hold"===W&&e.createElement(e.Fragment,null," ")),I&&e.createElement(l.Text,{className:x,view:"primary-small",color:"secondary"},"+",I))),k&&e.createElement("div",{className:E},e.createElement("div",{className:g},e.createElement(l.Text,{tag:"div",view:"primary-small",className:N},k))))};export{j as Transaction};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Transaction}from"./component.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../amount/component.js";import"../../tslib.es6-5f92d514.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-cc121901.js";import"../../common.module-d34bb3c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/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"../../hooks/useFocus/index.js";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Action } from "./cell/action/index";
|
|
2
|
-
import { Autopayment } from "./cell/autopayment/index";
|
|
3
|
-
import { Base } from "./cell/base/index";
|
|
4
|
-
import { Catalog } from "./cell/catalog/index";
|
|
5
|
-
import { Pure } from "./cell/pure/index";
|
|
6
|
-
import { Subscription } from "./cell/subscription/index";
|
|
7
|
-
import { Transaction } from "./cell/transaction/index";
|
|
8
|
-
declare const Cell: {
|
|
9
|
-
Pure: typeof Pure;
|
|
10
|
-
Action: typeof Action;
|
|
11
|
-
Catalog: typeof Catalog;
|
|
12
|
-
Autopayment: typeof Autopayment;
|
|
13
|
-
Transaction: typeof Transaction;
|
|
14
|
-
Subscription: typeof Subscription;
|
|
15
|
-
Base: typeof Base;
|
|
16
|
-
};
|
|
17
|
-
export { Cell };
|