@alphakits/ui 1.12.0 → 1.13.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-41876487.js → _commonjsHelpers-574db133.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.d.ts +23 -0
- package/dist/base-card/component.js +1 -0
- package/dist/base-card/index.d.ts +1 -0
- package/dist/base-card/index.js +1 -0
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.d.ts +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.d.ts +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.d.ts +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.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-30824c96.js → colors.module-62c10744.js} +0 -0
- package/dist/{common.module-b1cb01b9.js → common.module-c2dc20dc.js} +0 -0
- package/dist/{component-6fff2544.d.ts → component-d8e1f709.d.ts} +0 -0
- package/dist/{component-6fff2544.js → component-d8e1f709.js} +0 -0
- package/dist/{contact-block-c5360b56.d.ts → contact-block-ef85c111.d.ts} +0 -0
- package/dist/{contact-block-c5360b56.js → contact-block-ef85c111.js} +0 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/{formik.esm-86bde9ad.js → formik.esm-a104bbab.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-84198022.js → gutters.module-69ade321.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 +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/{index-5b404708.js → index-26b00167.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.ts +2 -0
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.d.ts +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{intersection-observer-afb0169a.js → intersection-observer-c2c58cbd.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.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/{parse-query-params-229a150d.d.ts → parse-query-params-cd0273f3.d.ts} +0 -0
- package/dist/{parse-query-params-229a150d.js → parse-query-params-cd0273f3.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 +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.d.ts +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.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.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/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/sticker/component.d.ts +10 -0
- package/dist/sticker/component.js +1 -0
- package/dist/sticker/index.d.ts +1 -0
- package/dist/sticker/index.js +1 -0
- 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.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/row/component.js +1 -1
- package/dist/table/components/row/index.js +1 -1
- package/dist/table/components/rows/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.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-c796da42.js → tslib.es6-dd100923.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-c4a9797a.d.ts → use-image-render-component-9ad2e1cf.d.ts} +0 -0
- package/dist/{use-image-render-component-c4a9797a.js → use-image-render-component-9ad2e1cf.js} +0 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- 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 +1 -1
|
File without changes
|
package/dist/amount/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as o,a as t}from"../tslib.es6-dd100923.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as s,THINSP as c}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var a="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,h=void 0!==v&&v,g=o(l,["value","currency","showMinorPart","isCanceled"]),f=m({value:u,currency:d,showMinorPart:j}),w=f.majorPart,_=f.minorPart,x=f.currencySymbol,P=g,b=P.className,B=P.color,M=void 0===B?"secondary":B,N=P.view,C=void 0===N?"title":N,q=P.weight,E=void 0===q?"medium":q;return r.createElement(i.Text,t({},g,{view:C,weight:E,color:M,className:e(a,b,(p={},p[n]=h,p))}),w,_&&s,_,!!x&&""+c+c+x)};export{l as Amount};
|
package/dist/amount/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Amount}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Amount}from"./component.js";import"../tslib.es6-dd100923.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
|
|
@@ -14,7 +14,7 @@ type AmountInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
|
|
|
14
14
|
valueString: string;
|
|
15
15
|
}) => void;
|
|
16
16
|
};
|
|
17
|
-
declare const AmountInput: React.ForwardRefExoticComponent<Pick<InputProps, "
|
|
17
|
+
declare const AmountInput: React.ForwardRefExoticComponent<Pick<InputProps, "disabled" | "color" | "className" | "dataTestId" | "children" | "form" | "list" | "error" | "label" | "slot" | "style" | "title" | "pattern" | "leftAddons" | "rightAddons" | "size" | "block" | "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" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "hint" | "bottomAddons" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width" | "clear" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef"> & {
|
|
18
18
|
value?: number | null | undefined;
|
|
19
19
|
suffix?: string | undefined;
|
|
20
20
|
required?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-dd100923.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as l}from"react";import s from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",bold:"index-module_bold__tpPht",input:"index-module_input__Ims09",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4"},g=d(m),_=o((function(o,m){var d,_=o.value,x=void 0===_?null:_,C=o.integerLength,h=void 0===C?9:C,j=o.suffix,N=void 0===j?"RUR":j,y=o.placeholder,b=void 0===y?"":y,E=o.bold,w=void 0===E||E,A=o.className,R=o.focusedClassName,S=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,k=o.onClear,G=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),H=r(u({value:x,currency:"RUR"}).formatted),J=H[0],L=H[1];i((function(){return f(J,T)!==x?L(u({value:x,currency:"RUR"}).formatted):function(){}}),[x]);var $=a((function(e){L(""),k&&k(e)}),[k]),B=J.split(","),K=B[0],Q=B[1];return n.createElement("div",{className:s(v.container,(d={},d[v.bold]=w,d[v.filled]=Boolean(J),d))},n.createElement(g,t({},G,{suffix:n.createElement(l,null,K,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==Q&&","+Q,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:S,placeholder:b,value:J,className:s(v.component,A),focusedClassName:R,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+h+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===J){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],l=i[1],s=a.length;l&&(s+=1,s+=l.slice(0,2).length);var m=o.length-s,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}L(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:$,dataTestId:q,ref:m})))}));export{_ as AmountInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AmountInput}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{AmountInput}from"./component.js";import"../tslib.es6-dd100923.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
|
package/dist/avatar/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-
|
|
1
|
+
import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-dd100923.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-9ad2e1cf.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";var s={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var p,n=i.src,c=i.text,a=i.slot,l=i.ref,d=i.onClick;return o.createElement(t,{ref:l,onClick:d,className:e([s.wrapper,(p={},p[s.disabled]=!d,p)]),view:"ghost"},o.createElement(r,{resolution:m.xs,view:"circle",size:"s",src:n,text:c}),a&&o.createElement("div",{className:s.slot},a))};export{i as Avatar};
|
package/dist/avatar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-dd100923.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-62c10744.js";import"../common.module-c2dc20dc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-9ad2e1cf.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
interface BaseCardProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
bottomSpace?: boolean;
|
|
7
|
+
orientation?: 'vertical' | 'horizontal';
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle: string;
|
|
10
|
+
border?: boolean;
|
|
11
|
+
scalable?: boolean;
|
|
12
|
+
topLeftAddons?: ReactNode;
|
|
13
|
+
topRightAddons?: ReactNode;
|
|
14
|
+
bottomRightAddons?: ReactNode;
|
|
15
|
+
titleAddons?: ReactNode;
|
|
16
|
+
photo?: string;
|
|
17
|
+
href: string;
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
onMouseEnter?: () => void;
|
|
20
|
+
onMouseLeave?: () => void;
|
|
21
|
+
}
|
|
22
|
+
declare const BaseCard: React.FC<BaseCardProps>;
|
|
23
|
+
export { BaseCardProps, BaseCard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"alpha-cli-icons";import{ImageSizes as i}from"../image/typings.js";import"../image/constants.js";import{PureImage as m}from"../pure-image/component.js";import"../typography/title/index.js";import"../tslib.es6-dd100923.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var a="index-module_component__4rFCR",d="index-module_bottomSpace__Di-8N",n="index-module_footer__kIafr",s="index-module_withBorder__r41KZ",r="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",p="index-module_topRightAddons__aPgTC",c="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",v="index-module_titleWrap__LxVjO",g="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",h=function(h){var j,E=h.className,f=h.bottomSpace,y=void 0===f||f,N=h.orientation,b=void 0===N?"vertical":N,A=h.title,L=h.subtitle,w=h.topLeftAddons,R=h.topRightAddons,T=h.bottomRightAddons,M=h.titleAddons,B=h.photo,C=h.href,O=h.scalable,k=void 0!==O&&O,I=h.border,J=void 0!==I&&I,P=h.dataTestId,S=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:S,onMouseLeave:W,"data-test-id":P,className:t(a,(j={},j[s]=J,j[r]=k,j[d]=!y,j),E)},!!B&&e.createElement("div",{className:_},e.createElement(m,{src:B,orientation:b,resolution:i.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!y&&e.createElement("div",{className:u})),e.createElement("div",{className:n},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:g,view:"component"},A),!!M&&e.createElement("div",{className:x},M)),e.createElement(o.Text,{tag:"div",view:"primary-medium"},L),!!T&&e.createElement("div",{className:c},T)))};export{h as BaseCard};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-dd100923.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../pure-image/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"react";import{c as t,u as n}from"../_commonjsHelpers-
|
|
1
|
+
import e from"react";import{c as t,u as n}from"../_commonjsHelpers-574db133.js";import{r}from"../index-26b00167.js";import{ChevronBackM as o}from"alpha-cli-icons";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-
|
|
1
|
+
export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-574db133.js";import"../index-26b00167.js";import"alpha-cli-icons";
|
package/dist/button/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../tslib.es6-dd100923.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import r from"classnames";import{useFocus as a}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},s=o.forwardRef((function(s,_){var m,c,u=s.children,x=s.view,f=void 0===x?"secondary":x,p=s.leftAddons,b=s.rightAddons,h=s.size,g=void 0===h?"m":h,v=s.block,k=void 0!==v&&v,w=s.className,y=s.dataTestId,E=s.href,N=s.loading,T=void 0!==N&&N,j=s.nowrap,A=void 0!==j&&j,I=e(s,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=a(J,"keyboard")[0],P={className:r(i.component,i[f],i[g],(m={},m[i.focused]=O,m[i.block]=k,m[i.iconOnly]=!u,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},z=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:r(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var R=I.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,_])}),z)}var U=I,Z=U.disabled,F=e(U,["disabled"]);return o.createElement("button",d({},P,F,{disabled:Z||T,ref:l([J,_])}),z)}));export{s as Button};
|
package/dist/button/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Button}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Button}from"./component.js";import"../tslib.es6-dd100923.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-dd100923.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import a from"classnames";import{startOfMonth as i}from"date-fns";import{DaysTable as m}from"./components/days-table/component.js";import{Header as c}from"./components/header/сomponent.js";import{MonthsTable as l}from"./components/months-table/сomponent.js";import{YearsTable as d}from"./components/years-table/сomponent.js";import{useCalendar as u}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as p}from"./utils.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";var f="index-module_component__SJQwG",v="index-module_container__3PFvh",g="index-module_sixWeeks__NcW9R",w=o((function(o,w){var y,M=o.className,D=o.defaultView,j=void 0===D?"days":D,x=o.selectorView,P=void 0===x?"full":x,b=o.value,k=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,N=o.minDate,E=o.maxDate,S=o.selectedFrom,F=o.selectedTo,T=o.offDays,Y=o.events,A=o.onChange,V=o.onMonthChange,R=o.t,W=void 0===R?function(e){return e}:R,B=o.dataTestId,G=n(j),I=G[0],J=G[1],O=n(!1),Q=O[0],q=O[1],z=r((function(){return b?new Date(b):void 0}),[b]),H=r((function(){return i(z||C)}),[]),K=r((function(){return k?new Date(k):void 0}),[k]),L=r((function(){return N?new Date(N):void 0}),[N]),U=r((function(){return E?new Date(E):void 0}),[E]),X=u({month:K,defaultMonth:H,view:I,minDate:L,maxDate:U,selected:z,offDays:T,events:Y,onChange:A,onMonthChange:V}),Z=X.activeMonth,$=X.weeks,ee=X.months,te=X.years,oe=X.canSetPrevMonth,ne=X.canSetNextMonth,re=X.setMonthByDate,se=X.setPrevMonth,ae=X.setNextMonth,ie=X.highlighted,me=X.getDayProps,ce=X.getMonthProps,le=X.getYearProps,de=X.getRootProps,ue=s((function(e){J(I===e?"days":e)}),[I]),he=s((function(e){q(e>0)}),[]),pe=s((function(){se()}),[se]),fe=s((function(){ae()}),[ae]),ve=s((function(){ue("months")}),[ue]),ge=s((function(){ue("years")}),[ue]);return h((function(){J("days")}),[Z]),h((function(){q(!1)}),[I]),h((function(){var e=b&&i(b);e&&e.getTime()!==Z.getTime()&&re(e)}),[b]),t.createElement("div",e({},de({ref:w}),{className:a(f,M,(y={},y[g]=6===$.length,y)),"data-test-id":B}),t.createElement(c,{month:p(Z,W("calendar.monthes",{returnObjects:!0})),year:Z.getFullYear().toString(),prevArrowVisible:oe,nextArrowVisible:ne,onPrevArrowClick:pe,onNextArrowClick:fe,onMonthClick:ve,onYearClick:ge,view:P,withShadow:Q}),t.createElement("div",{className:v},"days"===I&&t.createElement(m,{t:W,weeks:$,activeMonth:Z,selectedFrom:S,selectedTo:F,getDayProps:me,highlighted:ie}),"months"===I&&t.createElement(l,{selectedMonth:Z,t:W,months:ee,getMonthProps:ce}),"years"===I&&t.createElement(d,{selectedYear:Z,years:te,getYearProps:le,onScroll:he})))}));export{w as Calendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-dd100923.js";import t,{useRef as a,useCallback as d}from"react";import{TransitionGroup as r,CSSTransition as i}from"react-transition-group";import n from"classnames";import{startOfMonth as s,isToday as l,isEqual as o,isSameDay as m,isWithinInterval as _,isLastDayOfMonth as c}from"date-fns";import{Button as u}from"../../../button/component.js";import{usePrevious as y}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as x}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var g={daysTable:"index-module_daysTable__rn902",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",dayName:"index-module_dayName__A3Z6w",day:"index-module_day__BdXjf",event:"index-module_event__BmkeM",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",disabled:"index-module_disabled__CNZL7",range:"index-module_range__WYxl2",selected:"index-module_selected__BvMd5",rangeStart:"index-module_rangeStart__N8rLo",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},f=function(f){var h=f.weeks,v=void 0===h?[]:h,E=f.activeMonth,p=void 0===E?new Date:E,b=f.highlighted,k=f.selectedFrom,D=f.selectedTo,j=f.getDayProps,A=f.t,N=a(p);N.current=p;var T=y(p),L=T&&(p<T?"right":"left"),w=x(k,D,b),B=A("calendar.weekDays",{returnObjects:!0}),M=d((function(){return B.map((function(e){return t.createElement("th",{className:g.dayName,key:e},e)}))}),[B]);return t.createElement("table",{className:n(g.daysTable,L&&g[L])},t.createElement("thead",null,t.createElement("tr",null,M())),t.createElement(r,{component:null},t.createElement(i,{key:p.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("tbody",null,v.map((function(a,d){return t.createElement("tr",{key:d},a.map((function(a,d){return t.createElement("td",{key:a?a.date.getTime():d},a&&function(a){var d,r=a.selected||k&&m(a.date,k)||D&&m(a.date,D),i=!r&&w&&_(a.date,w),y=1===a.date.getDate(),x=c(a.date),f=y&&i&&w&&a.date>w.start,h=x&&i&&w&&a.date<w.end,v=w&&m(a.date,w.start),E=j(a);return t.createElement(u,e({},E,{ref:function(e){s(a.date).getTime()===N.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:a.disabled,className:n(g.day,(d={},d[g.selected]=r,d[g.range]=i,d[g.rangeStart]=v,d[g.transitLeft]=f,d[g.transitRight]=h,d[g.today]=l(a.date),d[g.firstDay]=y,d[g.lastDay]=x,d[g.event]=a.event,d[g.disabled]=a.disabled,d[g.highlighted]=b&&o(a.date,b),d))}),a.date.getDate())}(a))})))}))))))};export{f as DaysTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DaysTable}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{DaysTable}from"./component.js";import"../../../tslib.es6-dd100923.js";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-dd100923.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-dd100923.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__-VKks",withShadow:"index-module_withShadow__m2PIV",inner:"index-module_inner__-Aep6",month:"index-module_month__aVSag",year:"index-module_year__ZXtKB",buttonContent:"index-module_buttonContent__xnYVf",monthOnly:"index-module_monthOnly__3hpyp",upDownIcon:"index-module_upDownIcon__-2CFa",arrow:"index-module_arrow__tCsej"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,p=r.nextArrowVisible,h=void 0===p||p,w=r.onPrevArrowClick,v=r.onNextArrowClick,b=r.onMonthClick,x=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:w,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:b},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:x},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:v,"aria-label":"Следующий месяц"})))};export{r as Header};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-dd100923.js";import"react";import"date-fns";import"../../utils.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-dd100923.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as m}from"../../utils.js";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_monthsTable__Eq4Jn",i="index-module_button__XgrJs",d=function(d){var c=d.selectedMonth,l=d.months,u=void 0===l?[]:l,p=d.getMonthProps,f=d.t,j=o((function(e){return c&&r(c,e.date)?"selected":n(e.date)?"outlined":"default"}),[c]);return t.createElement("div",{className:a},u.map((function(o){return t.createElement(s,e({},p(o),{key:o.date.getTime(),className:i,view:j(o)}),m(o.date,f("calendar.monthes",{returnObjects:!0})))})))};export{d as MonthsTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-dd100923.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../../../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../../../tslib.es6-dd100923.js";import o,{forwardRef as i}from"react";import s from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,_=i.view,b=void 0===_?"default":_,c=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},c,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[b],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-dd100923.js";import"react";import"date-fns";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-dd100923.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_yearsTable__7bRtn",i="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var d=u.selectedYear,p=u.years,f=void 0===p?[]:p,_=u.getYearProps,g=u.onScroll,v=r(null),b=o((function(e){return d&&l(d,e)?"selected":a(e)?"outlined":"default"}),[d]),x=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,g(e.scrollTop)}}),[g,d]),t.createElement("div",{className:c,onScroll:x,ref:v},t.createElement("div",{className:i},f.map((function(r){return t.createElement(s,e({},_(r),{key:r.getFullYear(),view:b(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
|
package/dist/calendar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-dd100923.js";import"react";import"classnames";import"date-fns";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"./components/years-table/сomponent.js";
|
|
@@ -29,7 +29,7 @@ type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' |
|
|
|
29
29
|
onCalendarChange?: CalendarProps['onChange'];
|
|
30
30
|
dataTestId?: string;
|
|
31
31
|
};
|
|
32
|
-
declare const CalendarInput: React.ForwardRefExoticComponent<Pick<MaskedInputProps, "
|
|
32
|
+
declare const CalendarInput: React.ForwardRefExoticComponent<Pick<MaskedInputProps, "disabled" | "color" | "className" | "dataTestId" | "children" | "form" | "list" | "error" | "label" | "slot" | "style" | "title" | "pattern" | "leftAddons" | "size" | "block" | "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" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "hint" | "bottomAddons" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "wrapperRef"> & {
|
|
33
33
|
block?: boolean | undefined;
|
|
34
34
|
className?: string | undefined;
|
|
35
35
|
inputClassName?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-dd100923.js";import t,{forwardRef as o,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import p from"react-merge-refs";import m from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as d}from"../calendar/utils.js";import"date-fns";import{MaskedInput as c}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import{parseDateString as f,isCompleteDateInput as v,NATIVE_DATE_FORMAT as j,formatDate as g,DATE_MASK as h,SUPPORTS_INPUT_TYPE_DATE as b}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../_commonjsHelpers-574db133.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var _="index-module_component__pdVE2",C="index-module_block__wtVLz",x="index-module_calendarContainer__x7A2x",k="index-module_calendarIcon__muPk-",D="index-module_nativeInput__siME6",w=o((function(o,w){var E,N=o.block,y=void 0!==N&&N,I=o.className,M=o.inputClassName,P=o.defaultOpen,T=void 0!==P&&P,F=o.defaultMonth,V=o.defaultValue,O=void 0===V?"":V,A=o.calendarPosition,q=void 0===A?"popover":A,R=o.value,K=o.dataTestId,U=o.minDate,z=o.required,B=o.maxDate,H=o.calendarProps,L=void 0===H?{}:H,G=o.preventFlip,J=o.mobileMode,Q=void 0===J?"popover":J,S=o.wrapperRef,W=void 0===S?null:S,X=o.disabled,Y=o.onChange,Z=o.onInputChange,$=o.onCalendarChange,ee=o.readOnly,ne=e(o,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),te=void 0===R,oe=b&&"native"===Q,ae="input"===Q,re="static"===q&&!ae,ie="popover"===q&&!oe&&!ae,le=a(!1),pe=le[0],me=le[1],se=a(O),de=se[0],ce=se[1],ue=te?de:R,fe=ue?f(ue).getTime():void 0,ve=d(fe,U,B),je=X||ee,ge=r(null),he=r(null),be=r(null),_e=r(null),Ce=i((function(e){"Escape"===e.key&&me(!1)}),[]),xe=i((function(){pe||me(!0)}),[pe]),ke=i((function(e){me(!0),!pe&&"INPUT"!==e.target.tagName&&_e.current&&_e.current.focus()}),[pe]),De=i((function(e){_e.current&&!1===_e.current.contains(e.relatedTarget)&&me(!1)}),[]),we=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&_e.current&&(e.preventDefault(),_e.current.focus())}),[]),Ee=i((function(e,n,t,o,a){void 0===o&&(o="input"),void 0===a&&(a=!0),"input"===o&&e&&Z&&Z(e,{value:n,date:t}),"calendar"===o&&$&&$(t.getTime()),a&&(te&&ce(n),Y&&Y(e,{date:t,value:n}))}),[$,Y,Z,te]),Ne=i((function(e){var n=e.target.value,t=f(n);Ee(e,n,t,"input",v(n))}),[Ee]),ye=i((function(e){var n=f(e.target.value,j),t=""===e.target.value?"":g(n);Ee(e,t,n)}),[Ee]),Ie=i((function(e){Ee(null,g(e),new Date(e),"calendar"),me(!1)}),[Ee]),Me=i((function(e){e.preventDefault()}),[]);l((function(){me(T)}),[T]);var Pe=i((function(){return t.createElement("div",{onMouseDown:Me},t.createElement(s,n({},L,{t:L.t,ref:_e,defaultMonth:F,value:ve?fe:void 0,onChange:Ie,minDate:U,maxDate:B})))}),[L,fe,F,Ie,Me,ve,B,U]);return t.createElement("div",{ref:be,className:m(_,I,(E={},E[C]=y,E)),tabIndex:-1,onKeyDown:je?void 0:Ce,onClick:je?void 0:xe,onFocus:je?void 0:ke,onBlur:De,"data-test-id":K},t.createElement(c,n({},ne,{ref:p([w,ge]),wrapperRef:p([W,he]),className:M,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:h,rightAddons:t.createElement(t.Fragment,null,t.createElement("span",{className:k}),oe&&t.createElement("input",{type:"date",ref:p([w,ge]),defaultValue:O,onChange:ye,className:D})),onKeyDown:we,onChange:Ne,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&t.createElement(u,{open:pe,anchorElement:he.current,popperClassName:x,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:G},Pe()))}));export{w as CalendarInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,formatDate,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,formatDate,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-dd100923.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"../_commonjsHelpers-574db133.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
|
package/dist/card/component.js
CHANGED
|
@@ -1 +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-
|
|
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-dd100923.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.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-9ad2e1cf.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};
|
|
@@ -1 +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-c4a9797a.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-c796da42.js";import"../../typography/title/component.js";import"../../colors.module-30824c96.js";import"../../common.module-b1cb01b9.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(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]:m(r[t])&&m(e[t])&&Object.keys(r[t]).length>0?r[t].__swiper__?e[t]=r[t]:f(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 b=["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 E(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,b,E,_,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&&(b=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(p.pagination||!1===p.pagination)&&d&&!d.el&&(E=!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(m(p[e])&&m(n[e]))f(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")&&!b&&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)}b&&(r.controller.control=p.controller.control),E&&(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={};f(r,s.defaults),f(r,s.extendedDefaults),r._emitClasses=!0,r.init=!1;const i={},l=b.map((e=>e.replace(/_/,"")));return Object.keys(e).forEach((a=>{l.indexOf(a)>=0?m(e[a])?(r[a]={},n[a]={},f(r[a],e[a]),f(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=E(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};f(D.current.params.virtual,e),f(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"),b.filter((e=>"_"===e[0])).map((e=>e.replace(/_/,""))).forEach((t=>{if(t in e&&t in r)if(m(e[t])&&m(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=E(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),[m,f]=l("swiper-slide");function v(e,r,t){r===u.current&&f(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"!==m&&f("swiper-slide")}})),S((()=>{s&&u.current&&!s.destroyed&&f(s.getSlideClasses(u.current))}),[s]);const g={isActive:m.indexOf("swiper-slide-active")>=0||m.indexOf("swiper-slide-duplicate-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isDuplicate:m.indexOf("swiper-slide-duplicate")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0||m.indexOf("swiper-slide-duplicate-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0||m.indexOf("swiper-slide-duplicate-next")>=0},h=()=>"function"==typeof i?i(g):i;return e.createElement(n,C({ref:u,className:w(`${m}${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};
|
|
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-9ad2e1cf.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-dd100923.js";import"../../typography/title/component.js";import"../../colors.module-62c10744.js";import"../../common.module-c2dc20dc.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(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]:m(r[t])&&m(e[t])&&Object.keys(r[t]).length>0?r[t].__swiper__?e[t]=r[t]:f(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 _(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 b(r){const t=[];return e.Children.toArray(r).forEach((e=>{e.type&&"SwiperSlide"===e.type.displayName?t.push(e):e.props&&e.props.children&&b(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=b(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&&(_=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(p.scrollbar||!1===p.scrollbar)&&v&&!v.el&&(b=!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(m(p[e])&&m(n[e]))f(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),_&&(s&&(p.pagination.el=s),d.init(),d.render(),d.update()),b&&(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,b=!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={};f(r,s.defaults),f(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?m(e[a])?(r[a]={},n[a]={},f(r[a],e[a]),f(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),b=!0,D.current=new s(R),D.current.loopCreate=()=>{},D.current.loopDestroy=()=>{},R.loop&&(D.current.loopedSlides=_(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};f(D.current.params.virtual,e),f(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((()=>{!b&&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(m(e[t])&&m(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=_(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),[m,f]=l("swiper-slide");function v(e,r,t){r===u.current&&f(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"!==m&&f("swiper-slide")}})),S((()=>{s&&u.current&&!s.destroyed&&f(s.getSlideClasses(u.current))}),[s]);const g={isActive:m.indexOf("swiper-slide-active")>=0||m.indexOf("swiper-slide-duplicate-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isDuplicate:m.indexOf("swiper-slide-duplicate")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0||m.indexOf("swiper-slide-duplicate-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0||m.indexOf("swiper-slide-duplicate-next")>=0},h=()=>"function"==typeof i?i(g):i;return e.createElement(n,C({ref:u,className:w(`${m}${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};
|
package/dist/card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-dd100923.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.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-9ad2e1cf.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-d8e1f709.js";import"../../typography/title/index.js";import"../../tslib.es6-dd100923.js";import"../../typography/title/component.js";import"../../colors.module-62c10744.js";import"../../common.module-c2dc20dc.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-d8e1f709";
|
package/dist/cell/base/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Base}from"../../component-
|
|
1
|
+
export{B as Base}from"../../component-d8e1f709.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-dd100923.js";import"../../typography/title/component.js";import"../../colors.module-62c10744.js";import"../../common.module-c2dc20dc.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-d8e1f709.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-dd100923.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.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-d8e1f709.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-dd100923.js";import"../typography/title/component.js";import"../colors.module-62c10744.js";import"../common.module-c2dc20dc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
|