@alphakits/ui 1.17.0 → 1.18.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-2cfff74b.js → _commonjsHelpers-598fc4da.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.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.d.ts +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/use-calendar.d.ts +6 -6
- package/dist/calendar-input/component.d.ts +4 -4
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.d.ts +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.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 +6 -6
- 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-fa56222e.js → colors.module-3b4fd590.js} +0 -0
- package/dist/{common.module-78e1bdef.js → common.module-1f20b0cc.js} +0 -0
- package/dist/{component-f5a1396c.d.ts → component-f392c22f.d.ts} +0 -0
- package/dist/{component-f5a1396c.js → component-f392c22f.js} +0 -0
- package/dist/{contact-block-66af7817.d.ts → contact-block-89f5620b.d.ts} +0 -0
- package/dist/{contact-block-66af7817.js → contact-block-89f5620b.js} +0 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.d.ts +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.d.ts +2 -2
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form/utils/remove-undefined-from-object.d.ts +1 -2
- package/dist/form-control/component.d.ts +5 -5
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/{formik.esm-bbafe73a.js → formik.esm-afc2d983.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-3c6d3471.js → gutters.module-4362067b.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.d.ts +2 -2
- package/dist/hooks/use-get-one/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.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.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.d.ts +2 -2
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.d.ts +2 -2
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/{index-255a9b3d.js → index-eba9044b.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.d.ts +7 -7
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{intersection-observer-c2477ad2.js → intersection-observer-02f4f9d8.js} +0 -0
- package/dist/link/component.d.ts +2 -2
- 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 +4 -7
- 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.d.ts +2 -2
- 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-dedce862.d.ts → parse-query-params-f52e36cf.d.ts} +0 -0
- package/dist/{parse-query-params-dedce862.js → parse-query-params-f52e36cf.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.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 +6 -6
- 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.d.ts +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.d.ts +2 -21
- 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.d.ts +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.d.ts +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/select/utils.d.ts +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/{slide-858ffa1a.d.ts → slide-06a2ffa8.d.ts} +3 -3
- package/dist/slide-06a2ffa8.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.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/{swiper-slide-970dfced.js → swiper-slide-44315503.js} +0 -0
- package/dist/switch/component.d.ts +6 -6
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.d.ts +5 -12
- package/dist/table/columns.js +1 -1
- package/dist/table/component.d.ts +5 -7
- 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.d.ts +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.d.ts +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.d.ts +6 -7
- 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.d.ts +3 -3
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.d.ts +13 -10
- package/dist/table/table.js +1 -1
- package/dist/table/types.d.ts +5 -6
- 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 +2 -1
- package/dist/table/utils/serialize-data.js +1 -1
- package/dist/table/utils/sort-array.d.ts +2 -1
- package/dist/table/utils/sort-array.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 +2 -2
- 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.d.ts +4 -4
- 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-e799146e.js +1 -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.d.ts +3 -3
- 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-93d55cc2.d.ts → use-image-render-component-d9d25b4d.d.ts} +0 -0
- package/dist/{use-image-render-component-93d55cc2.js → use-image-render-component-d9d25b4d.js} +0 -0
- package/dist/utils/get-currency-symbol/util.d.ts +2 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.d.ts +4 -35
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +6 -5
- package/dist/slide-858ffa1a.js +0 -1
- package/dist/tslib.es6-77545e10.js +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Typography as t}from"../../../typography/component.js";import{splitFilename as o}from"../../utils/split-filename.js";import"../../../typography/title/index.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import{Typography as t}from"../../../typography/component.js";import{splitFilename as o}from"../../utils/split-filename.js";import"../../../typography/title/index.js";import"../../../tslib.es6-e799146e.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-3b4fd590.js";import"../../../common.module-1f20b0cc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_info__I8Z23",r="index-module_filenameHead__urP7W",i="index-module_filenameContainer__v5Oht",a=function(a){var l=a.filename,n=o(l),p=n[0],s=n[1];return e.createElement("div",{className:m},e.createElement("div",{className:i},e.createElement(t.Title,{tag:"h1",className:r,view:"xsmall",color:"primary-inverted"},p),e.createElement(t.Title,{tag:"h1",view:"xsmall",color:"primary-inverted"},s)))};export{a as HeaderInfoBlock};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ImageViewer:
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
declare const ImageViewer: FC;
|
|
3
3
|
export { ImageViewer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-e799146e.js";import t,{useContext as o,useRef as r,useCallback as i,useEffect as n,useMemo as s}from"react";import a from"classnames";import l,{EffectFade as c,A11y as m,Controller as p}from"swiper";import{S as u,a as d}from"../../../swiper-slide-44315503.js";import{useFocus as f}from"../../../hooks/useFocus/index.js";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import{GalleryContext as h}from"../../context.js";import{getImageAlt as v,getImageKey as g}from"../../utils/utils.js";import{TestIds as y}from"../../utils/constants.js";import{s as j,S as w}from"../../../slide-06a2ffa8.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"react-dom";import"../../../toast-plate/component.js";import"alpha-cli-icons";import"../../../button/component.js";import"react-merge-refs";import"../../../loader/component.js";import"../../../toast-notifier/use-timer.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-3b4fd590.js";import"../../../common.module-1f20b0cc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";l.use([c,m,p]);var S=function(){var l,c,m,p=o(h),S=p.singleSlide,E=p.images,b=p.imagesMeta,x=p.fullScreen,k=p.currentSlideIndex,I=p.initialSlide,N=p.onClose,T=p.getCurrentImage,C=p.setImageMeta,M=p.setCurrentSlideIndex,A=p.getSwiper,D=p.setSwiper,B=p.slidePrev,L=p.slideNext,P=r(null),R=r(null),_=f(P,"keyboard")[0],V=f(R,"keyboard")[0],F=A(),H=i((function(){var e;M(null!==(e=null==F?void 0:F.activeIndex)&&void 0!==e?e:I)}),[M,F,I]),K=function(e,t){var o=e.currentTarget,r=o.naturalWidth,i=o.naturalHeight;C({width:r,height:i},t)},O=function(e){C({width:0,height:0,broken:!0},e)},U=i((function(e){var t,o,r=e.target,i=(null===(t=P.current)||void 0===t?void 0:t.contains(r))||(null===(o=R.current)||void 0===o?void 0:o.contains(r)),n=Boolean(r.closest("."+j.placeholder));"IMG"===r.tagName||n||i||N()}),[N]);n((function(){!function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=this,o=(t.document||t.ownerDocument).querySelectorAll(e),r=0;o[r]&&o[r]!==t;)++r;return Boolean(o[r])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(window)}),[]);var q=s((function(){var e;return{slidesPerView:1,effect:"fade",fadeEffect:{crossFade:!0},className:a(j.swiper,(e={},e[j.hidden]=x,e)),controller:{control:F},a11y:{slideRole:"img"},initialSlide:I,simulateTouch:!1,onSwiper:D,onSlideChange:H}}),[F,x,I,H,D]),z=!S&&!x,G=(null==F?void 0:F.width)||1,W=(null==F?void 0:F.height)||1,X=G/W,J=T();return t.createElement("div",{className:a(j.component,(l={},l[j.singleSlide]=S,l)),onClick:U},z&&t.createElement("div",{className:a(j.arrow,(c={},c[j.focused]=_,c)),onClick:function(){B()},role:"button",onKeyDown:function(e){"Enter"===e.key&&B()},tabIndex:0,ref:P,"aria-label":"Предыдущее изображение","data-test-id":y.PREV_SLIDE_BUTTON},">"),x&&t.createElement("img",{src:null==J?void 0:J.src,alt:J?v(J,k):"",className:j.fullScreenImage}),t.createElement(u,e({},q),E.map((function(e,o){var r=b[o],i=((null==r?void 0:r.width)||1)/((null==r?void 0:r.height)||1),n=o===k;return t.createElement(d,{key:g(e,o),style:{pointerEvents:n?"auto":"none",transitionProperty:"opacity"}},(function(s){var a=s.isActive;return t.createElement(w,{isActive:a,swiperAspectRatio:X,image:e,swiperHeight:W,meta:r,index:o,imageAspectRatio:i,slideVisible:n,handleLoad:K,handleLoadError:O})}))}))),z&&t.createElement("div",{className:a(j.arrow,(m={},m[j.focused]=V,m)),onClick:function(){L()},role:"button",onKeyDown:function(e){"Enter"===e.key&&L()},tabIndex:0,ref:R,"aria-label":"Следующее изображение","data-test-id":y.NEXT_SLIDE_BUTTON},"<"))};export{S as ImageViewer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../../typography/component.js";import"../../utils/utils.js";import"../../utils/constants.js";export{S as Slide}from"../../../slide-
|
|
1
|
+
import"react";import"classnames";import"../../../typography/component.js";import"../../utils/utils.js";import"../../utils/constants.js";export{S as Slide}from"../../../slide-06a2ffa8.js";import"../../../typography/title/index.js";import"../../../tslib.es6-e799146e.js";import"../../../typography/title/component.js";import"../../../colors.module-3b4fd590.js";import"../../../common.module-1f20b0cc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{NavigationBar}from"./navigation-bar/index.js";export{Header}from"./header/index.js";export{ImagePreview}from"./image-preview/index.js";export{ImageViewer}from"./image-viewer/index.js";import"react";import"../context.js";import"../utils/utils.js";import"../utils/constants.js";import"classnames";import"./header-info-block/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-
|
|
1
|
+
export{NavigationBar}from"./navigation-bar/index.js";export{Header}from"./header/index.js";export{ImagePreview}from"./image-preview/index.js";export{ImageViewer}from"./image-viewer/index.js";import"react";import"../context.js";import"../utils/utils.js";import"../utils/constants.js";import"classnames";import"./header-info-block/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-e799146e.js";import"../../typography/title/component.js";import"../../colors.module-3b4fd590.js";import"../../common.module-1f20b0cc.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../utils/split-filename.js";import"swiper";import"../../swiper-slide-44315503.js";import"../../hooks/useFocus/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"react-dom";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";import"../../slide-06a2ffa8.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ImageGallery}from"./component.js";export{splitFilename}from"./utils/split-filename.js";export{PLACEHOLDER_HEIGHT,PLACEHOLDER_WIDTH,getImageAlt,getImageKey,isSmallImage}from"./utils/utils.js";export{TestIds}from"./utils/constants.js";import"react";import"./components/navigation-bar/index.js";import"./context.js";import"./components/image-preview/index.js";import"classnames";import"./components/header/index.js";import"./components/header-info-block/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{ImageGallery}from"./component.js";export{splitFilename}from"./utils/split-filename.js";export{PLACEHOLDER_HEIGHT,PLACEHOLDER_WIDTH,getImageAlt,getImageKey,isSmallImage}from"./utils/utils.js";export{TestIds}from"./utils/constants.js";import"react";import"./components/navigation-bar/index.js";import"./context.js";import"./components/image-preview/index.js";import"classnames";import"./components/header/index.js";import"./components/header-info-block/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-e799146e.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/image-viewer/index.js";import"swiper";import"../swiper-slide-44315503.js";import"../hooks/useFocus/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../slide-06a2ffa8.js";
|
|
@@ -17,5 +17,5 @@ type Props = {
|
|
|
17
17
|
onUpdate: (photos: string[]) => void;
|
|
18
18
|
setMain?: (photo: string) => void;
|
|
19
19
|
};
|
|
20
|
-
declare const
|
|
21
|
-
export {
|
|
20
|
+
declare const ImageUploader: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
+
export { ImageUploader };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-e799146e.js";import t,{forwardRef as o,useState as i,useRef as r}from"react";import{PlusS as n,HeartStrokeM as m,LoupeM as s,TrashM as a}from"alpha-cli-icons";import{FlexColumns as l}from"../flex-columns/component.js";import{IconButton as p}from"../icon-button/component.js";import{Image as c}from"../image/component.js";import"../image/typings.js";import"../image/constants.js";import{ImageGallery as u}from"../image-gallery/component.js";import{Padding as d}from"../padding/component.js";import{SuperListHeader as g}from"../super-list-header/component.js";import{Typography as f}from"../typography/component.js";import{getServiceError as j}from"../utils/get-service-error/index.js";import{showError as v}from"../utils/show-toast/index.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-d9d25b4d.js";import"../spinner/component.js";import"../image/utils.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../image-gallery/components/navigation-bar/index.js";import"../image-gallery/context.js";import"../image-gallery/utils/utils.js";import"../image-gallery/utils/constants.js";import"../image-gallery/components/image-preview/index.js";import"../image-gallery/components/header/index.js";import"../image-gallery/components/header-info-block/index.js";import"../image-gallery/utils/split-filename.js";import"../image-gallery/components/image-viewer/index.js";import"swiper";import"../swiper-slide-44315503.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";import"../slide-06a2ffa8.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";var y="index-module_image__5DvrD",x="index-module_icon__Xtgbu",h="index-module_controls__XUF4X",w="index-module_main__ZMTqM",E=o((function(o,E){var b=o.value,_=void 0===b?[]:b,k=o.title,N=o.subtitle,C=o.columns,z=void 0===C?3:C,M=o.onUpdate,D=o.uploadRequest,F=o.setMain,T=o.type,X=o.main,q=o.multiple,A=o.error,S=o.className,U=i(!1),I=U[0],R=U[1],Z=i(),B=Z[0];Z[1];var G=i(!1),H=G[0],J=G[1],K=r(null),L=function(t){var o=t.target.files&&t.target.files[0];if(o){var i=new FormData;i.append("file",o),i.append("type",T),J(!0),D({data:i}).then((function(t){var o=t.data.url;M(q?e(e([],_),[o]):[o])})).catch((function(e){var t=j(e).message;v(t)})).finally((function(){return J(!1)}))}};return t.createElement("div",{className:S},t.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:E,onChange:L,multiple:q}),t.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:K,onChange:L,multiple:q}),t.createElement(g,{text:k,leftAddons:t.createElement(p,{onClick:function(){var e;return null===(e=K.current)||void 0===e?void 0:e.click()},icon:n,loading:H})}),N&&t.createElement(f.Text,{view:"primary-small",color:"secondary",weight:"medium"},N),t.createElement(d,{padding:"4px 0"},A&&t.createElement(f.Text,{view:"caps",color:"negative",weight:"medium"},A)),t.createElement(l,{columns:z},_.map((function(e){return t.createElement(c,{className:y,src:e,size:"l",view:"default"},t.createElement("div",{className:h},!!F&&X!==e&&t.createElement(p,{onClick:function(){return F(e)},icon:m,size:"m",view:"secondary",className:x}),t.createElement(p,{onClick:function(){R(!0)},icon:s,size:"m",view:"secondary",className:x}),t.createElement(p,{onClick:function(){return t=e,void M(_.filter((function(e){return e!==t})));var t},icon:a,size:"m",view:"secondary",className:x})),X===e&&t.createElement("div",{className:w},"MAIN"))}))),t.createElement(u,{initialSlide:B,onClose:function(){return R(!1)},open:I,images:_.map((function(e){return{src:e,previewSrc:e}}))}))}));export{E as ImageUploader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{ImageUploader}from"./component.js";import"../tslib.es6-e799146e.js";import"react";import"alpha-cli-icons";import"../flex-columns/component.js";import"classnames";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-3b4fd590.js";import"../common.module-1f20b0cc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-d9d25b4d.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";import"../image-gallery/component.js";import"../image-gallery/components/navigation-bar/index.js";import"../image-gallery/context.js";import"../image-gallery/utils/utils.js";import"../image-gallery/utils/constants.js";import"../image-gallery/components/image-preview/index.js";import"../image-gallery/components/header/index.js";import"../image-gallery/components/header-info-block/index.js";import"../image-gallery/utils/split-filename.js";import"../image-gallery/components/image-viewer/index.js";import"swiper";import"../swiper-slide-44315503.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";import"../slide-06a2ffa8.js";import"../padding/component.js";import"../super-list-header/component.js";import"../utils/show-toast/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as e}from"./_commonjsHelpers-
|
|
1
|
+
import{c as e}from"./_commonjsHelpers-598fc4da.js";
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
|
@@ -6,4 +6,4 @@ import{c as e}from"./_commonjsHelpers-2cfff74b.js";
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,t=o?Symbol.for("react.portal"):60106,n=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,
|
|
9
|
+
*/var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,t=o?Symbol.for("react.portal"):60106,n=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,a=o?Symbol.for("react.context"):60110,i=o?Symbol.for("react.async_mode"):60111,u=o?Symbol.for("react.concurrent_mode"):60111,y=o?Symbol.for("react.forward_ref"):60112,l=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,p=o?Symbol.for("react.memo"):60115,d=o?Symbol.for("react.lazy"):60116,S=o?Symbol.for("react.block"):60121,b=o?Symbol.for("react.fundamental"):60117,$=o?Symbol.for("react.responder"):60118,M=o?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var o=e.$$typeof;switch(o){case r:switch(e=e.type){case i:case u:case n:case s:case c:case l:return e;default:switch(e=e&&e.$$typeof){case a:case y:case d:case p:case f:return e;default:return o}}case t:return o}}}function v(e){return C(e)===u}var P={AsyncMode:i,ConcurrentMode:u,ContextConsumer:a,ContextProvider:f,Element:r,ForwardRef:y,Fragment:n,Lazy:d,Memo:p,Portal:t,Profiler:s,StrictMode:c,Suspense:l,isAsyncMode:function(e){return v(e)||C(e)===i},isConcurrentMode:v,isContextConsumer:function(e){return C(e)===a},isContextProvider:function(e){return C(e)===f},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},isForwardRef:function(e){return C(e)===y},isFragment:function(e){return C(e)===n},isLazy:function(e){return C(e)===d},isMemo:function(e){return C(e)===p},isPortal:function(e){return C(e)===t},isProfiler:function(e){return C(e)===s},isStrictMode:function(e){return C(e)===c},isSuspense:function(e){return C(e)===l},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===s||e===c||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===a||e.$$typeof===y||e.$$typeof===b||e.$$typeof===$||e.$$typeof===M||e.$$typeof===S)},typeOf:C},x=e((function(e,o){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,c=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var o=e.$$typeof;switch(o){case r:var m=e.type;switch(m){case i:case u:case n:case s:case c:case l:return m;default:var S=m&&m.$$typeof;switch(S){case a:case y:case d:case p:case f:return S;default:return o}}case t:return o}}}var v=i,P=u,x=a,w=f,E=r,_=y,F=n,g=d,h=p,R=t,j=s,z=c,A=l,L=!1;function O(e){return C(e)===u}o.AsyncMode=v,o.ConcurrentMode=P,o.ContextConsumer=x,o.ContextProvider=w,o.Element=E,o.ForwardRef=_,o.Fragment=F,o.Lazy=g,o.Memo=h,o.Portal=R,o.Profiler=j,o.StrictMode=z,o.Suspense=A,o.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(e)||C(e)===i},o.isConcurrentMode=O,o.isContextConsumer=function(e){return C(e)===a},o.isContextProvider=function(e){return C(e)===f},o.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},o.isForwardRef=function(e){return C(e)===y},o.isFragment=function(e){return C(e)===n},o.isLazy=function(e){return C(e)===d},o.isMemo=function(e){return C(e)===p},o.isPortal=function(e){return C(e)===t},o.isProfiler=function(e){return C(e)===s},o.isStrictMode=function(e){return C(e)===c},o.isSuspense=function(e){return C(e)===l},o.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===s||e===c||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===a||e.$$typeof===y||e.$$typeof===b||e.$$typeof===$||e.$$typeof===M||e.$$typeof===S)},o.typeOf=C}()}));x.AsyncMode,x.ConcurrentMode,x.ContextConsumer,x.ContextProvider,x.Element,x.ForwardRef,x.Fragment,x.Lazy,x.Memo,x.Portal,x.Profiler,x.StrictMode,x.Suspense,x.isAsyncMode,x.isConcurrentMode,x.isContextConsumer,x.isContextProvider,x.isElement,x.isForwardRef,x.isFragment,x.isLazy,x.isMemo,x.isPortal,x.isProfiler,x.isStrictMode,x.isSuspense,x.isValidElementType,x.typeOf;var w=e((function(e){"production"===process.env.NODE_ENV?e.exports=P:e.exports=x}));export{w as r};
|