@alphakits/ui 1.10.6 → 1.10.9
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-99c331b9.js → _commonjsHelpers-c57336e5.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/badge/component.d.ts +1 -1
- package/dist/bottom-sheet/component.d.ts +1 -0
- package/dist/bottom-sheet/component.js +2 -2
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.d.ts +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/card/component.d.ts +14 -0
- package/dist/card/component.js +1 -0
- package/dist/card/images/index.d.ts +5 -0
- package/dist/card/images/index.js +1 -0
- package/dist/card/index.d.ts +1 -0
- package/dist/card/index.js +1 -0
- 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 +2 -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.d.ts +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.d.ts +1 -0
- 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-2e12c97c.js → colors.module-03d5ce61.js} +0 -0
- package/dist/{common.module-c29fa559.js → common.module-b68de633.js} +0 -0
- package/dist/{component-9bc6b322.d.ts → component-b6984226.d.ts} +0 -0
- package/dist/component-b6984226.js +1 -0
- package/dist/{contact-block-c858f4e2.d.ts → contact-block-4eed9f4b.d.ts} +0 -0
- package/dist/{contact-block-c858f4e2.js → contact-block-4eed9f4b.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/flex-columns/component.d.ts +1 -0
- 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.d.ts +1 -0
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/form-outer/index.d.ts +3 -1
- package/dist/form/components/form-wrapper/index.d.ts +3 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.d.ts +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.d.ts +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/formik.esm-62468f27.js +1 -0
- 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-d32e21e9.js → gutters.module-b4fa1cdc.js} +0 -0
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.d.ts +4 -8
- 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.d.ts +6 -0
- package/dist/image/image-base.js +1 -0
- package/dist/image/index.js +1 -1
- package/dist/image/typings.d.ts +1 -0
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/{index-f031fd41.js → index-448089cc.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.ts +1 -0
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.d.ts +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-ghost/component.d.ts +1 -1
- package/dist/{intersection-observer-cc764d79.js → intersection-observer-5ad2ac98.js} +0 -0
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.d.ts +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-button/index.d.ts +1 -0
- 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.d.ts +2 -0
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modal-backgroung/index.d.ts +1 -0
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.d.ts +1 -0
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.d.ts +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/mq/component.d.ts +4 -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/padding/component.d.ts +1 -0
- package/dist/{parse-query-params-203420a3.d.ts → parse-query-params-2329ed30.d.ts} +0 -0
- package/dist/parse-query-params-2329ed30.js +1 -0
- 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 +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.d.ts +2 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/portal/component.d.ts +1 -2
- 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.d.ts +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/section-wrapper/component.d.ts +1 -0
- 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.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/skeleton/component.d.ts +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/switch/component.d.ts +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.d.ts +1 -0
- 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.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.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-98e2398d.js → tslib.es6-826105f1.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-665bb25a.d.ts → use-image-render-component-738f8f63.d.ts} +0 -0
- package/dist/{use-image-render-component-665bb25a.js → use-image-render-component-738f8f63.js} +0 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/welcome-layout/component.d.ts +1 -0
- package/dist/with-suffix/component.d.ts +2 -2
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +2 -2
- package/dist/component-9bc6b322.js +0 -1
- package/dist/formik.esm-ffdb8182.js +0 -1
- package/dist/parse-query-params-203420a3.js +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface CardProps {
|
|
4
|
+
view?: 'default' | 'compact' | 'full';
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
images?: string[];
|
|
8
|
+
bottomAddons?: React.ReactNode;
|
|
9
|
+
titleAddons?: React.ReactNode;
|
|
10
|
+
imagesAddons?: React.ReactNode;
|
|
11
|
+
orientation?: 'vertival' | 'horizontal';
|
|
12
|
+
}
|
|
13
|
+
declare const Card: React.FC<CardProps>;
|
|
14
|
+
export { CardProps, Card };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-826105f1.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-738f8f63.js";import"../spinner/component.js";import"../image/utils.js";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},n=function(n){var r=n.view,a=void 0===r?"default":r,s=n.bottomAddons,p=n.images,l=void 0===p?[]:p,c=n.orientation,d=void 0===c?"horizontal":c,g=n.title,u=n.subtitle,v=n.titleAddons;return e.createElement("div",{className:t([m.component,m[a]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:a}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),v),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};export{n as Card};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useEffect as r,useLayoutEffect as t,createContext as n,forwardRef as i,useState as l,useRef as a}from"react";import o from"classnames";import s,{Navigation as c,Pagination as p}from"swiper";import"alpha-cli-icons";import{ImageSizes as d}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as u}from"../../image/image-base.js";import"../../use-image-render-component-738f8f63.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-826105f1.js";import"../../typography/title/component.js";import"../../colors.module-03d5ce61.js";import"../../common.module-b68de633.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";function f(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function m(e,r){const t=["__proto__","constructor","prototype"];Object.keys(r).filter((e=>t.indexOf(e)<0)).forEach((t=>{void 0===e[t]?e[t]=r[t]:f(r[t])&&f(e[t])&&Object.keys(r[t]).length>0?r[t].__swiper__?e[t]=r[t]:m(e[t],r[t]):e[t]=r[t]}))}function v(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function g(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function h(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function w(e){void 0===e&&(e="");const r=e.split(" ").map((e=>e.trim())).filter((e=>!!e)),t=[];return r.forEach((e=>{t.indexOf(e)<0&&t.push(e)})),t.join(" ")}const E=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function b(e,r){let t=r.slidesPerView;if(r.breakpoints){const e=s.prototype.getBreakpoint(r.breakpoints),n=e in r.breakpoints?r.breakpoints[e]:void 0;n&&n.slidesPerView&&(t=n.slidesPerView)}let n=Math.ceil(parseFloat(r.loopedSlides||t,10));return n+=r.loopAdditionalSlides,n>e.length&&(n=e.length),n}function _(r){const t=[];return e.Children.toArray(r).forEach((e=>{e.type&&"SwiperSlide"===e.type.displayName?t.push(e):e.props&&e.props.children&&_(e.props.children).forEach((e=>t.push(e)))})),t}function y(r){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(r).forEach((e=>{if(e.type&&"SwiperSlide"===e.type.displayName)t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){const r=_(e.props.children);r.length>0?r.forEach((e=>t.push(e))):n["container-end"].push(e)}else n["container-end"].push(e)})),{slides:t,slots:n}}function x(e){let{swiper:r,slides:t,passedParams:n,changedParams:i,nextEl:l,prevEl:a,scrollbarEl:o,paginationEl:s}=e;const c=i.filter((e=>"children"!==e&&"direction"!==e)),{params:p,pagination:d,navigation:u,scrollbar:v,virtual:g,thumbs:h}=r;let w,E,b,_,y;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&p.thumbs&&!p.thumbs.swiper&&(w=!0),i.includes("controller")&&n.controller&&n.controller.control&&p.controller&&!p.controller.control&&(E=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(p.pagination||!1===p.pagination)&&d&&!d.el&&(b=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(p.scrollbar||!1===p.scrollbar)&&v&&!v.el&&(_=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(p.navigation||!1===p.navigation)&&u&&!u.prevEl&&!u.nextEl&&(y=!0);if(c.forEach((e=>{if(f(p[e])&&f(n[e]))m(p[e],n[e]);else{const i=n[e];!0!==i&&!1!==i||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?p[e]=n[e]:!1===i&&r[t=e]&&(r[t].destroy(),"navigation"===t?(p[t].prevEl=void 0,p[t].nextEl=void 0,r[t].prevEl=void 0,r[t].nextEl=void 0):(p[t].el=void 0,r[t].el=void 0))}var t})),c.includes("controller")&&!E&&r.controller&&r.controller.control&&p.controller&&p.controller.control&&(r.controller.control=p.controller.control),i.includes("children")&&g&&p.virtual.enabled?(g.slides=t,g.update(!0)):i.includes("children")&&r.lazy&&r.params.lazy.enabled&&r.lazy.load(),w){h.init()&&h.update(!0)}E&&(r.controller.control=p.controller.control),b&&(s&&(p.pagination.el=s),d.init(),d.render(),d.update()),_&&(o&&(p.scrollbar.el=o),v.init(),v.updateSize(),v.setTranslate()),y&&(l&&(p.navigation.nextEl=l),a&&(p.navigation.prevEl=a),u.init(),u.update()),i.includes("allowSlideNext")&&(r.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(r.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&r.changeDirection(n.direction,!1),r.update()}function S(e,n){return"undefined"==typeof window?r(e,n):t(e,n)}const P=n(null),O=n(null);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},j.apply(this,arguments)}const k=i((function(t,n){let{className:i,tag:o="div",wrapperTag:c="div",children:p,onSwiper:d,...u}=void 0===t?{}:t,_=!1;const[P,k]=l("swiper"),[C,N]=l(null),[z,$]=l(!1),A=a(!1),B=a(null),D=a(null),T=a(null),V=a(null),G=a(null),M=a(null),I=a(null),F=a(null),{params:R,passedParams:H,rest:W,events:L}=function(e){void 0===e&&(e={});const r={on:{}},t={},n={};m(r,s.defaults),m(r,s.extendedDefaults),r._emitClasses=!0,r.init=!1;const i={},l=E.map((e=>e.replace(/_/,"")));return Object.keys(e).forEach((a=>{l.indexOf(a)>=0?f(e[a])?(r[a]={},n[a]={},m(r[a],e[a]),m(n[a],e[a])):(r[a]=e[a],n[a]=e[a]):0===a.search(/on[A-Z]/)&&"function"==typeof e[a]?t[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:i[a]=e[a]})),["navigation","pagination","scrollbar"].forEach((e=>{!0===r[e]&&(r[e]={}),!1===r[e]&&delete r[e]})),{params:r,passedParams:n,rest:i,events:t}}(u),{slides:q,slots:Q}=y(p),U=()=>{$(!z)};Object.assign(R.on,{_containerClasses(e,r){k(r)}});const Z=()=>{if(Object.assign(R.on,L),_=!0,D.current=new s(R),D.current.loopCreate=()=>{},D.current.loopDestroy=()=>{},R.loop&&(D.current.loopedSlides=b(q,R)),D.current.virtual&&D.current.params.virtual.enabled){D.current.virtual.slides=q;const e={cache:!1,slides:q,renderExternal:N,renderExternalUpdate:!1};m(D.current.params.virtual,e),m(D.current.originalParams.virtual,e)}};B.current||Z(),D.current&&D.current.on("_beforeBreakpoint",U);return r((()=>()=>{D.current&&D.current.off("_beforeBreakpoint",U)})),r((()=>{!A.current&&D.current&&(D.current.emitSlidesClasses(),A.current=!0)})),S((()=>{if(n&&(n.current=B.current),B.current)return D.current.destroyed&&Z(),function(e,r){let{el:t,nextEl:n,prevEl:i,paginationEl:l,scrollbarEl:a,swiper:o}=e;v(r)&&n&&i&&(o.params.navigation.nextEl=n,o.originalParams.navigation.nextEl=n,o.params.navigation.prevEl=i,o.originalParams.navigation.prevEl=i),g(r)&&l&&(o.params.pagination.el=l,o.originalParams.pagination.el=l),h(r)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(t)}({el:B.current,nextEl:G.current,prevEl:M.current,paginationEl:I.current,scrollbarEl:F.current,swiper:D.current},R),d&&d(D.current),()=>{D.current&&!D.current.destroyed&&D.current.destroy(!0,!1)}}),[]),S((()=>{!_&&L&&D.current&&Object.keys(L).forEach((e=>{D.current.on(e,L[e])}));const e=function(e,r,t,n){const i=[];if(!r)return i;const l=e=>{i.indexOf(e)<0&&i.push(e)},a=n.map((e=>e.key)),o=t.map((e=>e.key));return a.join("")!==o.join("")&&l("children"),n.length!==t.length&&l("children"),E.filter((e=>"_"===e[0])).map((e=>e.replace(/_/,""))).forEach((t=>{if(t in e&&t in r)if(f(e[t])&&f(r[t])){const n=Object.keys(e[t]),i=Object.keys(r[t]);n.length!==i.length?l(t):(n.forEach((n=>{e[t][n]!==r[t][n]&&l(t)})),i.forEach((n=>{e[t][n]!==r[t][n]&&l(t)})))}else e[t]!==r[t]&&l(t)})),i}(H,T.current,q,V.current);return T.current=H,V.current=q,e.length&&D.current&&!D.current.destroyed&&x({swiper:D.current,slides:q,passedParams:H,changedParams:e,nextEl:G.current,prevEl:M.current,scrollbarEl:F.current,paginationEl:I.current}),()=>{L&&D.current&&Object.keys(L).forEach((e=>{D.current.off(e,L[e])}))}})),S((()=>{var e;!(e=D.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}),[C]),e.createElement(o,j({ref:B,className:w(`${P}${i?` ${i}`:""}`)},W),e.createElement(O.Provider,{value:D.current},Q["container-start"],e.createElement(c,{className:"swiper-wrapper"},Q["wrapper-start"],R.virtual?function(r,t,n){if(!n)return null;const i=r.isHorizontal()?{[r.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`};return t.filter(((e,r)=>r>=n.from&&r<=n.to)).map((t=>e.cloneElement(t,{swiper:r,style:i})))}(D.current,q,C):!R.loop||D.current&&D.current.destroyed?q.map((r=>e.cloneElement(r,{swiper:D.current}))):function(r,t,n){const i=t.map(((t,n)=>e.cloneElement(t,{swiper:r,"data-swiper-slide-index":n})));function l(r,t,i){return e.cloneElement(r,{key:`${r.key}-duplicate-${t}-${i}`,className:`${r.props.className||""} ${n.slideDuplicateClass}`})}if(n.loopFillGroupWithBlank){const r=n.slidesPerGroup-i.length%n.slidesPerGroup;if(r!==n.slidesPerGroup)for(let t=0;t<r;t+=1){const r=e.createElement("div",{className:`${n.slideClass} ${n.slideBlankClass}`});i.push(r)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=i.length);const a=b(i,n),o=[],s=[];return i.forEach(((e,r)=>{r<a&&s.push(l(e,r,"prepend")),r<i.length&&r>=i.length-a&&o.push(l(e,r,"append"))})),r&&(r.loopedSlides=a),[...o,...i,...s]}(D.current,q,R),Q["wrapper-end"]),v(R)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:M,className:"swiper-button-prev"}),e.createElement("div",{ref:G,className:"swiper-button-next"})),h(R)&&e.createElement("div",{ref:F,className:"swiper-scrollbar"}),g(R)&&e.createElement("div",{ref:I,className:"swiper-pagination"}),Q["container-end"]))}));function C(){return C=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},C.apply(this,arguments)}k.displayName="Swiper";const N=i((function(r,t){let{tag:n="div",children:i,className:o="",swiper:s,zoom:c,virtualIndex:p,...d}=void 0===r?{}:r;const u=a(null),[f,m]=l("swiper-slide");function v(e,r,t){r===u.current&&m(t)}S((()=>{if(t&&(t.current=u.current),u.current&&s){if(!s.destroyed)return s.on("_slideClass",v),()=>{s&&s.off("_slideClass",v)};"swiper-slide"!==f&&m("swiper-slide")}})),S((()=>{s&&u.current&&!s.destroyed&&m(s.getSlideClasses(u.current))}),[s]);const g={isActive:f.indexOf("swiper-slide-active")>=0||f.indexOf("swiper-slide-duplicate-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isDuplicate:f.indexOf("swiper-slide-duplicate")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0||f.indexOf("swiper-slide-duplicate-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0||f.indexOf("swiper-slide-duplicate-next")>=0},h=()=>"function"==typeof i?i(g):i;return e.createElement(n,C({ref:u,className:w(`${f}${o?` ${o}`:""}`),"data-swiper-slide-index":p},d),e.createElement(P.Provider,{value:g},c?e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof c?c:void 0},h()):h()))}));N.displayName="SwiperSlide";var z={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},$=function(r){var t=r.images,n=void 0===t?[]:t,i=r.orientation,l=void 0===i?"horizontal":i,a=r.view,s=void 0===a?"default":a;return e.createElement("div",{className:o([z[l],z.container])},e.createElement("div",{className:o([z.content,z[s]])},n.length>1?e.createElement(k,{spaceBetween:0,slidesPerView:1,modules:[c,p]},n.map((function(r){return e.createElement(N,{key:r},e.createElement(u,{src:r,resolution:d.m}))}))):e.createElement(u,{src:n[0],resolution:d.m})))};export{$ as CardImages};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-826105f1.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-738f8f63.js";import"../spinner/component.js";import"../image/utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-b6984226.js";import"../../typography/title/index.js";import"../../tslib.es6-826105f1.js";import"../../typography/title/component.js";import"../../colors.module-03d5ce61.js";import"../../common.module-b68de633.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-b6984226";
|
package/dist/cell/base/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Base}from"../../component-
|
|
1
|
+
export{B as Base}from"../../component-b6984226.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-826105f1.js";import"../../typography/title/component.js";import"../../colors.module-03d5ce61.js";import"../../common.module-b68de633.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
|
package/dist/cell/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-b6984226.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-826105f1.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/cell/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-b6984226.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-826105f1.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
type ComponentProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
5
6
|
slot?: React.ReactNode;
|
|
6
7
|
order?: 'normal' | 'reverse';
|
|
7
8
|
direction?: 'horizontal' | 'vertical';
|
|
@@ -10,5 +11,5 @@ type ComponentProps = {
|
|
|
10
11
|
dataTestId?: string;
|
|
11
12
|
};
|
|
12
13
|
type PureProps = Omit<HTMLAttributes<HTMLDivElement>, 'slot'> & ComponentProps;
|
|
13
|
-
declare const Pure: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "className" | "
|
|
14
|
+
declare const Pure: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "color" | "className" | "children" | "style" | "title" | "defaultChecked" | "defaultValue" | "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" | "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" | "onChange" | "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" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "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"> & ComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
15
|
export { PureProps, Pure };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as r}from"../../tslib.es6-
|
|
1
|
+
import{_ as e,a as r}from"../../tslib.es6-826105f1.js";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,f=o.dataTestId,O=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",f,!0)},O),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));export{n as Pure};
|
package/dist/cell/pure/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Pure}from"./component.js";import"../../tslib.es6-
|
|
1
|
+
export{Pure}from"./component.js";import"../../tslib.es6-826105f1.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
|
|
@@ -18,7 +18,7 @@ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange'> & {
|
|
|
18
18
|
dataTestId?: string;
|
|
19
19
|
indeterminate?: boolean;
|
|
20
20
|
};
|
|
21
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Pick<NativeProps, "className" | "form" | "slot" | "style" | "title" | "pattern" | "
|
|
21
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Pick<NativeProps, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "value" | "type" | "defaultChecked" | "defaultValue" | "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" | "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" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "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" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "src" | "alt" | "required" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width"> & {
|
|
22
22
|
checked?: boolean | undefined;
|
|
23
23
|
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
24
24
|
checked: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-826105f1.js";import a,{forwardRef as d,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=d((function(d,r){var _,u=d.checked,b=d.label,x=d.hint,h=d.size,p=void 0===h?"m":h,k=d.align,f=void 0===k?"center":k,E=d.addons,N=d.block,g=d.onChange,I=d.className,v=d.name,C=d.disabled,y=d.dataTestId,z=d.indeterminate,D=void 0!==z&&z,O=e(d,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return a.createElement("label",{className:i(s.component,s[p],s[f],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=D,_[s.focused]=j,_[s.block]=N,_)),ref:o([T,r])},a.createElement("span",{className:s.box},a.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":y},O)),u&&a.createElement(l,null),D&&!u&&a.createElement("div",{className:s.indeterminateIcon},a.createElement(m,null))),(b||x)&&a.createElement("span",{className:s.content},b&&a.createElement("span",{className:s.label},b),x&&a.createElement("span",{className:s.hint},x)),E&&a.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Checkbox}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Checkbox}from"./component.js";import"../tslib.es6-826105f1.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -12,6 +12,6 @@ type CheckboxGroupProps = <T>(props: {
|
|
|
12
12
|
data: Data<T>;
|
|
13
13
|
onChange: (values: T[]) => void;
|
|
14
14
|
dataTestId?: string;
|
|
15
|
-
} & FlexColumnsProps) => React.
|
|
15
|
+
} & FlexColumnsProps) => React.ReactNode;
|
|
16
16
|
declare const CheckboxGroup: CheckboxGroupProps;
|
|
17
17
|
export { CheckboxGroupProps, CheckboxGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-826105f1.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",m=function(m){var l=m.title,a=m.subtitle,s=m.selected,d=void 0===s?[]:s,p=m.data,u=void 0===p?[]:p,v=m.onChange,g=m.columns,y=void 0===g?1:g,h=m.gr,f=void 0===h?20:h,x=m.gc,b=void 0===x?20:x,j=m.dataTestId,k=d||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:y,gr:f,gc:b},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(k,[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{m as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-826105f1.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-826105f1.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-c57336e5.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,b=u.collapsable,v=u.onChange,E=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&E.push(t)}));var y=n(E),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?v(g.filter((function(e){return!t.includes(e)}))):v(e(g,t))}))},F=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),b&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"../tslib.es6-826105f1.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-c57336e5.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-c57336e5.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",c="index-module_label__kuH6r",a="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,x=u.label,f=u.content,y=u.expanded,b=u.addons,h=u.children,g=u.disabled,v=o(y),E=v[0],w=v[1];return t((function(){w(y)}),[y]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:l},x&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},x),f),e.createElement("div",{className:l},b,e.createElement(i,{onClick:function(){return w(!E)},className:r(a,(j={},j[d]=E,j)),disabled:g,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},h))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-c57336e5.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as u}from"react";import a from"classnames";import{a as c}from"../_commonjsHelpers-
|
|
1
|
+
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as u}from"react";import a from"classnames";import{a as c}from"../_commonjsHelpers-c57336e5.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k=x?x.toStringTag:void 0;var z=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?T(e):N(e)};var S=function(e){return null!=e&&"object"==typeof e};var C=function(e){return"symbol"==typeof e||S(e)&&"[object Symbol]"==z(e)},L=/^[-+]0x[0-9a-f]+$/i,H=/^0b[01]+$/i,$=/^0o[0-7]+$/i,D=parseInt;var F=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=H.test(e);return n||$.test(e)?D(e.slice(2),n?2:8):L.test(e)?NaN:+e},I=Math.max,M=Math.min;var P=function(e,t,n){var r,o,i,u,a,c,f=0,l=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,i=o;return r=o=void 0,f=t,u=e.apply(i,n)}function b(e){return f=e,a=setTimeout(h,t),l?m(e):u}function y(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-f>=i}function h(){var e=p();if(y(e))return j(e);a=setTimeout(h,function(e){var n=t-(e-c);return d?M(n,i-(e-f)):n}(e))}function j(e){return a=void 0,v&&r?m(e):(r=o=void 0,u)}function x(){var e=p(),n=y(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return b(c);if(d)return clearTimeout(a),a=setTimeout(h,t),m(c)}return void 0===a&&(a=setTimeout(h,t)),u}return t=F(t)||0,s(n)&&(l=!!n.leading,i=(d="maxWait"in n)?I(F(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==a&&clearTimeout(a),f=0,r=c=o=a=void 0},x.flush=function(){return void 0===a?u:j(p())},x},U="index-module_collapse__ORa-f",W="index-module_content__UDk-m",A="index-module_expandedContent__iQszl",Q="index-module_children_wrap__ekYCk",R=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=P((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new f(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=u((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:a(y,U),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:a(W,h,(s={},s[A]=S,s)),style:$},e.createElement("div",{className:a(Q),ref:O},b)),D&&e.createElement(l,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{R as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-c57336e5.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useRef as t}from"react";import o from"classnames";import{getDataTestId as r}from"./__internal/utils/getDataTestId.js";import{useFocus as a}from"./hooks/useFocus/index.js";import{Typography as m}from"./typography/component.js";import{Pure as i}from"./cell/pure/component.js";var l="index-module_component__BNjZ4",s="index-module_title__VeYlM",n="index-module_subtitle__OOoZr",d="index-module_focused__ootMA",c=function(i){var c,p=i.className,_=i.dataTestId,f=i.order,x=void 0===f?"normal":f,v=i.title,g=i.subtitle,j=i.size,y=void 0===j?"m":j,N=i.addon,T=t(null),b=a(T,"keyboard")[0];return e.createElement(u.Pure,{slot:N,className:o(l,(c={},c[d]=b,c),p),dataTestId:r("cell-action",_,!0),order:x,tabIndex:0,size:y,ref:T},e.createElement(e.Fragment,null,v&&e.createElement(m.Text,{view:"title",color:"primary",weight:"medium",tag:"div",className:s},v),g&&e.createElement(m.Text,{weight:"medium",view:"caps",tag:"div",className:n,color:"secondary"},g)))},u={Pure:i,Base:c};export{c as B,u as C};
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{Button as o}from"../button/component.js";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import{Button as o}from"../button/component.js";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r="index-module_wrapper__dZRhL",n="index-module_link_button__VKWD-",m=function(m){var p=m.link,s=m.notifierText,a=m.visibleLink,c=m.icon;return t.createElement("div",{className:r},t.createElement(o,{leftAddons:c,className:n,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(p).then((function(){e({title:s,view:"positive",offset:30})}))},view:"ghost"}),t.createElement(i.Text,{view:"title",weight:"medium",color:"secondary"},a||p))};export{m as CopyButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CopyButton}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{CopyButton}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/date/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as t,a as o}from"../tslib.es6-826105f1.js";import e from"react";import{format as a}from"date-fns";import{ru as r,de as m,enGB as i}from"date-fns/locale";import{Typography as p}from"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s={RU:r,DE:m,EN:i},d=function(t,o,e){void 0===o&&(o="dd.MM.yyyy"),void 0===e&&(e="RU");var r=new Date(t);return"[object Date]"===Object.prototype.toString.call(r)?Number.isNaN(r.getTime())?"invalid date":a(r,o,{locale:s[e]}):"invalid date"},n=function(a){var r=a.className,m=a.dataTestId,i=a.date,s=a.format,n=void 0===s?"dd.MM.yyyy":s,c=a.country,y=void 0===c?"RU":c,l=t(a,["className","dataTestId","date","format","country"]);return e.createElement(p.Text,o({},l,{className:r,"data-test-id":m}),d(i,n,y))};export{n as FormattedDate,d as normalizeDate};
|
package/dist/date/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-826105f1.js";import"react";import"date-fns";import"date-fns/locale";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{ChevronBackM as t,ChevronForwardM as o}from"alpha-cli-icons";import d from"classnames";import{startOfISOWeek as a,parseISO as r,isAfter as i,isBefore as n,isToday as m,format as y,add as s,subDays as
|
|
1
|
+
import e from"react";import{ChevronBackM as t,ChevronForwardM as o}from"alpha-cli-icons";import d from"classnames";import{startOfISOWeek as a,parseISO as r,isAfter as i,isBefore as n,isToday as m,format as y,add as s,subDays as p,subWeeks as c}from"date-fns";import{Button as l}from"../button/component.js";import{IconButton as _}from"../icon-button/component.js";import{Typography as u}from"../typography/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var w={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},M=function(M){var f=M.view,h=void 0===f?"day":f,j=M.startDate,g=M.onChange,v=M.minDate,x=M.maxDate,b=a(r(j)),k="day"===h?r(j):b,E=v?r(v):new Date,D=i(k,E),C=!x||n(k,r(x)),T=m(k);return e.createElement("div",{className:w.date_switcher},e.createElement(_,{disabled:!!v&&!D,onClick:function(){"day"===h&&g(y(p(k,1),"yyyy-MM-dd")),"week"===h&&g(y(c(k,1),"yyyy-MM-dd"))},icon:t}),e.createElement("div",{className:d(w.date_wrap,w[h])},e.createElement(u.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===h?y(k,"dd.MM.yy"):y(k,"dd.MM.yy")+" - "+y(s(k,{days:6}),"dd.MM.yy"))),e.createElement(_,{disabled:!C,onClick:function(){"day"===h&&g(y(s(k,{days:1}),"yyyy-MM-dd")),"week"===h&&g(y(s(k,{days:7}),"yyyy-MM-dd"))},icon:o}),e.createElement(l,{disabled:T,onClick:function(){g(y(new Date,"yyyy-MM-dd"))},view:"ghost"},"Сегодня"))};export{M as DateSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateSwitcher}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"date-fns";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{DateSwitcher}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"date-fns";import"../button/component.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/footer/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-826105f1.js";import t from"react";import{AppStoreM as o,GooglePlayM as r,FacebookM as a,YoutubeM as m,InstagramM as n}from"alpha-cli-icons";import{Grid as i}from"../grid/component.js";import{IconButton as c}from"../icon-button/component.js";import{useMatchMedia as s}from"../mq/use-match-media.js";import{Padding as l}from"../padding/component.js";import{SectionWrapper as p}from"../section-wrapper/component.js";import{ContactsBlock as d}from"./components/contacts-block.js";import{s as f}from"../contact-block-4eed9f4b.js";import"../grid/row/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-b4fa1cdc.js";import"../grid/col/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../mq/utils.js";var u=function(u){var E=u.sections,g=void 0===E?[]:E,b=u.contacts,j=void 0===b?[]:b,k=u.company,v=u.email,h=u.address,x=u.agbText,N=u.agbLink,w=void 0===N?"":N,y=u.facebookLink,L=u.instagramLink,B=u.youtubeLink,T=u.appText,q=u.google,F=u.appstore,C=s("(max-width: 712px)")[0],R=y||L||B,_=T&&F&&q;return t.createElement(p,{pb:"m",pt:"l",isBlackBg:!0},t.createElement(t.Fragment,null,t.createElement("div",{className:f.wrapper},t.createElement(i.Row,{className:f.row_wrapper,justify:"left"},!!g.length&&g.map((function(e){var o;return t.createElement(i.Col,{key:e.title,width:{desktop:4,mobile:12}},t.createElement("div",{className:f.block},e.title&&t.createElement("span",{className:f.title},e.title),!!(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)&&e.items.map((function(e){return t.createElement("a",{key:e.text,className:f.link,href:e.link},e.text)}))))}))),t.createElement(d,{contacts:j,email:v,address:h,agbLink:w,agbText:x})),t.createElement("div",{className:f.bottomBlock},_&&t.createElement("div",{className:f.left},T&&t.createElement("span",{className:f.description},T),t.createElement("div",{className:f.buttons},F&&t.createElement(c,e({},{href:F},{icon:o})),q&&t.createElement(c,e({},{href:q},{icon:r})))),(k||R)&&t.createElement("div",{className:f.right},k&&t.createElement("span",null,k),!C&&R&&t.createElement(l,{padding:"8px"}),t.createElement("div",{className:f.buttons},y&&t.createElement(c,e({},{href:y},{icon:a})),B&&t.createElement(c,e({},{href:B},{icon:m})),L&&t.createElement(c,e({},{href:L},{icon:n})))))))};export{u as Footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{s as t,C as a}from"../../contact-block-
|
|
1
|
+
import e from"react";import{s as t,C as a}from"../../contact-block-4eed9f4b.js";var l=function(l){var n=l.contacts,c=l.email,r=l.address,s=l.agbText,i=l.agbLink;return(null==n?void 0:n.length)||c||r||i||s?e.createElement("div",{className:t.contacts},!!(null==n?void 0:n.length)&&n.map((function(t){return e.createElement(a,{key:t.title,title:t.title,value:t.value,description:t.description})})),c&&e.createElement("span",{className:t.email},c),r&&e.createElement("span",{className:t.description},r),s&&e.createElement("a",{className:t.link,href:i},s)):null};export{l as ContactsBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{C as ContactBlock}from"../contact-block-
|
|
1
|
+
import"react";export{C as ContactBlock}from"../contact-block-4eed9f4b.js";
|
package/dist/footer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Footer}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Footer}from"./component.js";import"../tslib.es6-826105f1.js";import"react";import"alpha-cli-icons";import"../grid/component.js";import"../grid/row/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-b4fa1cdc.js";import"../grid/col/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../mq/use-match-media.js";import"../mq/utils.js";import"../padding/component.js";import"../section-wrapper/component.js";import"./components/contacts-block.js";import"../contact-block-4eed9f4b.js";
|
package/dist/form/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Button as
|
|
1
|
+
import o from"react";import{Button as t}from"../button/component.js";import{FlexColumns as e}from"../flex-columns/component.js";import{Input as n}from"../input/component.js";import{ModalContext as r}from"../modal/context.js";import{RestForm as m}from"./templates/rest-form/index.js";import"../tslib.es6-826105f1.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../modal/components/modals/index.js";import"../modal/components/modal-backgroung/index.js";import"../modal/hooks/use-modal.js";import"uuid";import"alpha-cli-icons";import"../formik.esm-62468f27.js";import"../index-448089cc.js";import"../_commonjsHelpers-c57336e5.js";import"../icon-button/component.js";import"../list-allert/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-03d5ce61.js";import"../common.module-b68de633.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../sidepanel-header/component.js";import"./components/form-footer/index.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./components/form-wrapper/index.js";import"./components/form-updating/index.js";var i={baz:"baz",bar:"bar"},s=function(){var t=o.useState(!0),r=t[0],s=t[1],p=o.useState(!1),a=p[0],c=p[1],l=o.useState(!1),u=l[0],d=l[1];o.useEffect((function(){setTimeout((function(){return s(!1)}),3e3)}),[]);return o.createElement(m,{recordId:8273682763,initialValues:i,customValidationFields:["bar"],save:function(){return new Promise((function(o){c(!0),setTimeout((function(){o(),c(!1)}),3e3)}))},remove:function(){return new Promise((function(o){d(!0),setTimeout((function(){o(),d(!1)}),3e3)}))},title:"custom title",loading:r,submitButtonText:"csdcds",updating:a,removing:u,close:function(){},t:function(o){return o}},(function(t){var r=t.values,m=t.touched,i=t.errors,s=t.handleChange;return o.createElement(e,{columns:1,gr:16,gc:0},o.createElement(n,{label:"baz",value:r.baz,onChange:s("baz"),error:m.baz&&i.baz}),o.createElement(n,{label:"bar",value:r.bar,onChange:s("bar"),error:m.bar&&i.bar}))}))},p=function(){var e=(0,o.useContext(r).openModal)(s);return o.createElement(o.Fragment,null,o.createElement(t,{onClick:e},"open crud modal"))};export{p as Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Button as t}from"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import{Button as t}from"../../../button/component.js";import"../../../tslib.es6-826105f1.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var o="index-module_component__ijVOx",n=function(n){var i=n.submitButtonText,r=void 0===i?"save":i,s=n.submit,a=n.close,m=n.children,c=n.loading,d=n.disabled,l=n.t;return e.createElement("div",{className:o},e.createElement(t,{view:"primary",size:"xs",loading:c,disabled:d,dataTestId:"buttonSave",onClick:function(){return s()}},l(r)),e.createElement(t,{view:"secondary",size:"xs",dataTestId:"buttonCancel",onClick:a},l("cancel")),m)};export{n as FormFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as t}from"./form-updating/index.js";import{FormWrapper as
|
|
1
|
+
import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as t}from"./form-updating/index.js";import{FormWrapper as m}from"./form-wrapper/index.js";import"react";import"../../button/component.js";import"../../tslib.es6-826105f1.js";import"react-merge-refs";import"classnames";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../skeleton/component.js";import"./form-outer/index.js";var e={Footer:o,Wrapper:m,Updating:t,Loading:r};export{e as Form};
|