@alphakits/ui 1.3.12 → 1.3.13
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-384ce665.js → _commonjsHelpers-92085bf8.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/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/cell/action/component.js +1 -1
- package/dist/cell/action/index.d.ts +1 -1
- package/dist/cell/action/index.js +1 -1
- package/dist/cell/autopayment/component.js +1 -1
- package/dist/cell/autopayment/index.d.ts +1 -1
- package/dist/cell/autopayment/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/catalog/component.js +1 -1
- package/dist/cell/catalog/index.d.ts +1 -1
- package/dist/cell/catalog/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/cell/subscription/component.js +1 -1
- package/dist/cell/subscription/index.d.ts +1 -1
- package/dist/cell/subscription/index.js +1 -1
- package/dist/cell/transaction/component.js +1 -1
- package/dist/cell/transaction/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/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-6bf56f8b.js → colors.module-73723470.js} +0 -0
- package/dist/{common.module-22e9c6cc.js → common.module-1f485d03.js} +0 -0
- package/dist/{component-545291a1.d.ts → component-00943b39.d.ts} +0 -0
- package/dist/{component-545291a1.js → component-00943b39.js} +0 -0
- package/dist/{contact-block-034d2f12.d.ts → contact-block-acbf1571.d.ts} +0 -0
- package/dist/{contact-block-034d2f12.js → contact-block-acbf1571.js} +0 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/components/contacts-block.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/{formik.esm-3037be44.js → formik.esm-ebe3d665.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-6dc1b37e.js → gutters.module-e7a2322b.js} +0 -0
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +1 -1
- package/dist/{form/hooks/use-crud-form-requests.d.ts → hooks/use-crud-form-requests/index.d.ts} +2 -5
- package/dist/hooks/use-crud-form-requests/index.js +1 -0
- package/dist/hooks/use-get-ine/index.d.ts +6 -0
- package/dist/hooks/use-get-ine/index.js +1 -0
- 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/index.js +1 -1
- package/dist/index.css +2 -2
- 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/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.d.ts +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/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-3e20e29d.d.ts → parse-query-params-9c2555a5.d.ts} +0 -0
- package/dist/{parse-query-params-3e20e29d.js → parse-query-params-9c2555a5.js} +1 -1
- package/dist/photo-uploader/component.js +1 -1
- package/dist/photo-uploader/index.js +1 -1
- package/dist/photo-uploader-multiple/component.js +1 -1
- package/dist/photo-uploader-multiple/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-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/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-ellipse-button/component.js +1 -1
- package/dist/super-ellipse-button/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-941a96b3.js → tslib.es6-c533c72c.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/with-suffix/component.d.ts +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/form/hooks/index.d.ts +0 -1
- package/dist/form/hooks/index.js +0 -1
- package/dist/form/hooks/use-crud-form-requests.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c533c72c.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_item__3ce8x",r=function(r){var p=r.title;return t.createElement("div",{className:e(m)},t.createElement(o.Text,{view:"title",weight:"medium"},p))};export{r as InfoBlockHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InfoBlockHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{InfoBlockHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c533c72c.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.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"../typography/title/index.js";import"../tslib.es6-c533c72c.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_item__Wtwgt",r="index-module_rightAddons__3HmvT",i="index-module_text__25-SE",s="index-module_value__Pzukh",a=function(a){var p=a.label,c=a.value,l=a.rightAddons,n=a.color,d=void 0===n?"secondary":n;return e.createElement("div",{className:t(m)},e.createElement(o.Text,{className:i,view:"caps",color:"secondary",weight:"medium"},p,":"," "),c&&e.createElement(o.Text,{className:s,view:"caps",color:d,weight:"medium"}," ",c),l&&e.createElement("div",{className:r},l))};export{a as InfoBlockItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{InfoBlockItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{InfoBlockItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c533c72c.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -33,7 +33,7 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' |
|
|
|
33
33
|
onMouseUp?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
34
34
|
dataTestId?: string;
|
|
35
35
|
};
|
|
36
|
-
declare const Input: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "
|
|
36
|
+
declare const Input: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "step" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
|
|
37
37
|
value?: string | undefined;
|
|
38
38
|
defaultValue?: string | undefined;
|
|
39
39
|
block?: boolean | undefined;
|
package/dist/input/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-c533c72c.js";import a,{useRef as s,useState as l,useCallback as n,Fragment as r}from"react";import t from"react-merge-refs";import d from"classnames";import{Button as c}from"../button/component.js";import{FormControl as i}from"../form-control/component.js";import{useFocus as u}from"../hooks/useFocus/index.js";import"../loader/component.js";var m={input:"index-module_input__2DyE0",hasLabel:"index-module_hasLabel__S2DGf",block:"index-module_block__lH-Pe",clearIcon:"index-module_clearIcon__TO-Pg",errorIcon:"index-module_errorIcon__vVrYK",successIcon:"index-module_successIcon__3MPpw",focusVisible:"index-module_focusVisible__3Adls"},f=a.forwardRef((function(f,p){var b,C,N=f.size,_=void 0===N?"m":N,v=f.type,h=void 0===v?"text":v,g=f.block,k=void 0!==g&&g,x=f.bottomAddons,y=f.dataTestId,I=f.clear,A=void 0!==I&&I,w=f.disabled,E=f.error,M=f.success,V=f.required,j=f.hint,B=f.className,D=f.fieldClassName,F=f.inputClassName,O=f.labelClassName,P=f.addonsClassName,q=f.focusedClassName,z=f.filledClassName,L=f.label,R=f.leftAddons,T=f.onFocus,U=f.onBlur,G=f.onChange,H=f.onClear,K=f.onClick,S=f.onMouseDown,Y=f.onMouseUp,J=f.rightAddons,Q=f.value,W=f.defaultValue,X=f.wrapperRef,Z=f.readOnly,$=e(f,["size","type","block","bottomAddons","dataTestId","clear","disabled","error","success","required","hint","className","fieldClassName","inputClassName","labelClassName","addonsClassName","focusedClassName","filledClassName","label","leftAddons","onFocus","onBlur","onChange","onClear","onClick","onMouseDown","onMouseUp","rightAddons","value","defaultValue","wrapperRef","readOnly"]),ee=void 0===Q,oe=s(null),ae=u(oe,"keyboard")[0],se=l(!1),le=se[0],ne=se[1],re=l(W||""),te=re[0],de=re[1],ce=Boolean(ee?te:Q),ie=A&&ce&&!w&&!Z,ue=n((function(e){Z||ne(!0),T&&T(e)}),[T,Z]),me=n((function(e){ne(!1),U&&U(e)}),[U]),fe=n((function(e){G&&G(e,{value:e.target.value}),ee&&de(e.target.value)}),[G,ee]),pe=n((function(e){ie&&(ee&&de(""),H&&H(e),oe.current&&!le&&oe.current.focus())}),[ie,le,H,ee]);return a.createElement(i,{ref:X,className:d(B,le&&q,ce&&z),fieldClassName:d(D,(b={},b[m.focusVisible]=ae,b)),labelClassName:O,addonsClassName:P,size:_,block:k,required:V,disabled:w,filled:ce||le,focused:le,error:E,label:L,hint:j,leftAddons:R,rightAddons:(ie||J||E||M)&&a.createElement(r,null,ie&&a.createElement(c,{type:"button",view:"ghost",disabled:w,"aria-label":"Очистить",className:m.clearButton,onClick:pe},a.createElement("span",{className:m.clearIcon})),E&&a.createElement("span",{className:m.errorIcon}),M&&!E&&a.createElement("span",{className:m.successIcon}),J),bottomAddons:x,onClick:K,onMouseDown:S,onMouseUp:Y},a.createElement("input",o({},$,{className:d(m.input,(C={},C[m.hasLabel]=L,C),F),disabled:w,onBlur:me,onFocus:ue,onChange:fe,ref:t([p,oe]),type:h,value:ee?te:Q,readOnly:Z,"data-test-id":y,"data-error":!!E,"aria-label":"string"==typeof L?L:void 0})))}));f.defaultProps={type:"text",block:!1};export{f as Input};
|
package/dist/input/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Input}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Input}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"react-merge-refs";import"classnames";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";
|
package/dist/link/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-c533c72c.js";import o,{forwardRef as s,useRef as a}from"react";import n from"react-merge-refs";import t from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var r={component:"index-module_component__mLrsz",text:"index-module_text__5dmKq",withAddons:"index-module_withAddons__2J8JN",focused:"index-module_focused__MJGFH",primary:"index-module_primary__316lS",secondary:"index-module_secondary__3Vkve",default:"index-module_default__CAkjM",pseudo:"index-module_pseudo__2IIBH",addons:"index-module_addons__Dp_3j",m:"index-module_m__RxhMn",s:"index-module_s__L8jaf"},l=s((function(s,l){var i,_=s.view,c=void 0===_?"default":_,u=s.pseudo,p=void 0!==u&&u,f=s.leftAddons,x=s.rightAddons,h=s.className,v=s.dataTestId,A=s.children,N=s.size,E=void 0===N?"m":N,g=e(s,["view","pseudo","leftAddons","rightAddons","className","dataTestId","children","size"]),j=a(null),k=m(j,"keyboard")[0],w={className:t(r.component,r[c],(i={},i[r.pseudo]=p,i[r.focused]=k,i[r.withAddons]=f||x,i),h),"data-test-id":v,rel:"_blank"===g.target?"noreferrer noopener":void 0};return o.createElement("a",d({},w,g,{ref:n([j,l])}),f||x?o.createElement(o.Fragment,null,f&&o.createElement("span",{className:r.addons},f),A&&o.createElement("span",null,o.createElement("span",{className:t(r.text,r[E])},A)),x&&o.createElement("span",{className:r.addons},x)):o.createElement("span",{className:t(r.text,r[E])},A))}));export{l as Link};
|
package/dist/link/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Link}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Link}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c533c72c.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var n={component:"index-module_component__3qzuv",accent:"index-module_accent__CtavO",attention:"index-module_attention__3zvL_",negative:"index-module_negative__1wBaF"},m=function(m){var i=m.className,a=m.dataTestId,p=m.view,r=void 0===p?"accent":p,c=m.text;return t.createElement("div",{className:e(n.component,i,n[r]),"data-test-id":a},t.createElement(o.Text,{view:"title",color:r,weight:"medium"},c))};export{m as ListAllert};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c533c72c.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -7,7 +7,7 @@ type MaskedInputProps = InputProps & {
|
|
|
7
7
|
onBeforeDisplay?: TextMaskConfig['pipe'];
|
|
8
8
|
};
|
|
9
9
|
declare const PLACEHOLDER_CHAR = "\u2000";
|
|
10
|
-
declare const MaskedInput: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "
|
|
10
|
+
declare const MaskedInput: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "step" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
|
|
11
11
|
value?: string | undefined;
|
|
12
12
|
defaultValue?: string | undefined;
|
|
13
13
|
block?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as r}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as r}from"../tslib.es6-c533c72c.js";import t,{useRef as n,useState as o,useCallback as a,useEffect as i}from"react";import u from"react-merge-refs";import l from"classnames";import{c as s,u as f,a as c}from"../_commonjsHelpers-92085bf8.js";import{Input as d}from"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";var p=s((function(e,r){e.exports=function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r,t){function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(3);Object.defineProperty(r,"conformToMask",{enumerable:!0,get:function(){return n(o).default}});var a=t(2);Object.defineProperty(r,"adjustCaretPosition",{enumerable:!0,get:function(){return n(a).default}});var i=t(5);Object.defineProperty(r,"createTextMaskInputElement",{enumerable:!0,get:function(){return n(i).default}})},function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.placeholderChar="_",r.strFunction="function"},function(e,r){function t(e){var r=e.previousConformedValue,t=void 0===r?o:r,a=e.previousPlaceholder,i=void 0===a?o:a,u=e.currentCaretPosition,l=void 0===u?0:u,s=e.conformedValue,f=e.rawValue,c=e.placeholderChar,d=e.placeholder,p=e.indexesOfPipedChars,v=void 0===p?n:p,h=e.caretTrapIndexes,m=void 0===h?n:h;if(0===l||!f.length)return 0;var g=f.length,y=t.length,C=d.length,b=s.length,k=g-y,P=k>0;if(k>1&&!P&&0!==y)return l;var x=0,T=void 0,O=void 0;if(!P||t!==s&&s!==d){var j=s.toLowerCase(),w=f.toLowerCase().substr(0,l).split(o).filter((function(e){return-1!==j.indexOf(e)}));O=w[w.length-1];var M=i.substr(0,w.length).split(o).filter((function(e){return e!==c})).length,_=d.substr(0,w.length).split(o).filter((function(e){return e!==c})).length,S=_!==M,V=void 0!==i[w.length-1]&&void 0!==d[w.length-2]&&i[w.length-1]!==c&&i[w.length-1]!==d[w.length-1]&&i[w.length-1]===d[w.length-2];!P&&(S||V)&&M>0&&d.indexOf(O)>-1&&void 0!==f[l]&&(T=!0,O=f[l]);for(var N=v.map((function(e){return j[e]})),A=N.filter((function(e){return e===O})).length,E=w.filter((function(e){return e===O})).length,F=d.substr(0,d.indexOf(c)).split(o).filter((function(e,r){return e===O&&f[r]!==e})).length,R=F+E+A+(T?1:0),I=0,J=0;J<b&&(x=J+1,j[J]===O&&I++,!(I>=R));J++);}else x=l-k;if(P){for(var W=x,q=x;q<=C;q++)if(d[q]===c&&(W=q),d[q]===c||-1!==m.indexOf(q)||q===C)return W}else if(T){for(var B=x-1;B>=0;B--)if(s[B]===O||-1!==m.indexOf(B)||0===B)return B}else for(var D=x;D>=0;D--)if(d[D-1]===c||-1!==m.indexOf(D)||0===D)return D}Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;var n=[],o=""},function(e,r,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,a.isArray)(r)){if((void 0===r?"undefined":o(r))!==i.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");r=r(e,t),r=(0,a.processCaretTraps)(r).maskWithoutCaretTraps}var n=t.guide,s=void 0===n||n,f=t.previousConformedValue,c=void 0===f?l:f,d=t.placeholderChar,p=void 0===d?i.placeholderChar:d,v=t.placeholder,h=void 0===v?(0,a.convertMaskToPlaceholder)(r,p):v,m=t.currentCaretPosition,g=t.keepCharPositions,y=!1===s&&void 0!==c,C=e.length,b=c.length,k=h.length,P=r.length,x=C-b,T=x>0,O=m+(T?-x:0),j=O+Math.abs(x);if(!0===g&&!T){for(var w=l,M=O;M<j;M++)h[M]===p&&(w+=p);e=e.slice(0,O)+w+e.slice(O,C)}for(var _=e.split(l).map((function(e,r){return{char:e,isNew:r>=O&&r<j}})),S=C-1;S>=0;S--){var V=_[S].char;V!==p&&V===h[S>=O&&b===P?S-x:S]&&_.splice(S,1)}var N=l,A=!1;e:for(var E=0;E<k;E++){var F=h[E];if(F===p){if(_.length>0)for(;_.length>0;){var R=_.shift(),I=R.char,J=R.isNew;if(I===p&&!0!==y){N+=p;continue e}if(r[E].test(I)){if(!0===g&&!1!==J&&c!==l&&!1!==s&&T){for(var W=_.length,q=null,B=0;B<W;B++){var D=_[B];if(D.char!==p&&!1===D.isNew)break;if(D.char===p){q=B;break}}null!==q?(N+=I,_.splice(q,1)):E--}else N+=I;continue e}A=!0}!1===y&&(N+=h.substr(E,k));break}N+=F}if(y&&!1===T){for(var H=null,L=0;L<N.length;L++)h[L]===p&&(H=L);N=null!==H?N.substr(0,H+1):l}return{conformedValue:N,meta:{someCharsRejected:A}}}Object.defineProperty(r,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=n;var a=t(4),i=t(1),u=[],l=""},function(e,r,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.placeholderChar;if(!o(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(r))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(r)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?r:e})).join("")}function o(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function a(e){return"string"==typeof e||e instanceof String}function i(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function u(e){return null==e}function l(e){for(var r=[],t=void 0;-1!==(t=e.indexOf(c));)r.push(t),e.splice(t,1);return{maskWithoutCaretTraps:e,indexes:r}}Object.defineProperty(r,"__esModule",{value:!0}),r.convertMaskToPlaceholder=n,r.isArray=o,r.isString=a,r.isNumber=i,r.isNil=u,r.processCaretTraps=l;var s=t(1),f=[],c="[]"},function(e,r,t){function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var r={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:r,update:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=n.inputElement,v=n.mask,m=n.guide,g=n.pipe,y=n.placeholderChar,C=void 0===y?d.placeholderChar:y,b=n.keepCharPositions,k=void 0!==b&&b,P=n.showMask,x=void 0!==P&&P;if(void 0===t&&(t=o.value),t!==r.previousConformedValue){(void 0===v?"undefined":l(v))===h&&void 0!==v.pipe&&void 0!==v.mask&&(g=v.pipe,v=v.mask);var T=void 0,O=void 0;if(v instanceof Array&&(T=(0,c.convertMaskToPlaceholder)(v,C)),!1!==v){var j=i(t),w=o.selectionEnd,M=r.previousConformedValue,_=r.previousPlaceholder,S=void 0;if((void 0===v?"undefined":l(v))===d.strFunction){if(!1===(O=v(j,{currentCaretPosition:w,previousConformedValue:M,placeholderChar:C})))return;var V=(0,c.processCaretTraps)(O);O=V.maskWithoutCaretTraps,S=V.indexes,T=(0,c.convertMaskToPlaceholder)(O,C)}else O=v;var N={previousConformedValue:M,guide:m,placeholderChar:C,pipe:g,placeholder:T,currentCaretPosition:w,keepCharPositions:k},A=(0,f.default)(j,O,N).conformedValue,E=(void 0===g?"undefined":l(g))===d.strFunction,F={};E&&(!1===(F=g(A,u({rawValue:j},N)))?F={value:M,rejected:!0}:(0,c.isString)(F)&&(F={value:F}));var R=E?F.value:A,I=(0,s.default)({previousConformedValue:M,previousPlaceholder:_,conformedValue:R,placeholder:T,rawValue:j,currentCaretPosition:w,placeholderChar:C,indexesOfPipedChars:F.indexesOfPipedChars,caretTrapIndexes:S}),J=R===T&&0===I?x?T:p:R;r.previousConformedValue=J,r.previousPlaceholder=T,o.value!==J&&(o.value=J,a(o,I))}}}}}function a(e,r){document.activeElement===e&&(m?g((function(){return e.setSelectionRange(r,r,v)}),0):e.setSelectionRange(r,r,v))}function i(e){if((0,c.isString)(e))return e;if((0,c.isNumber)(e))return String(e);if(null==e)return p;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(r,"__esModule",{value:!0});var u=Object.assign||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},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=o;var s=n(t(2)),f=n(t(3)),c=t(4),d=t(1),p="",v="none",h="object",m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])}));f(p);var v=p.createTextMaskInputElement;p.textMaskCore;var h="index-module_textHidden__1M-ha",m=" ",g=t.forwardRef((function(s,f){var c,p=s.mask,m=s.value,g=s.defaultValue,y=s.className,C=s.onBeforeDisplay,b=s.onChange,k=s.onClear,P=e(s,["mask","value","defaultValue","className","onBeforeDisplay","onChange","onClear"]),x=n(null),T=n(null),O=o(m||g||""),j=O[0],w=O[1],M=o(!0),_=M[0],S=M[1],V=a((function(e){void 0===e&&(e=""),T.current&&x.current&&(T.current.update(e),w(x.current.value))}),[]),N=a((function(e){V(e.target.value),b&&b(e,{value:e.target.value})}),[b,V]),A=a((function(e){V(""),k&&k(e)}),[k,V]);return i((function(){x.current&&(T.current=v({mask:p,inputElement:x.current,pipe:C,guide:!1,keepCharPositions:!1,showMask:!1,placeholderChar:" ",rawValue:"",currentCaretPosition:0,previousConformedValue:""}))}),[C,p]),i((function(){V(m||g)}),[m,V,g]),i((function(){S(!1)}),[]),t.createElement(d,r({},P,{className:l(y,(c={},c[h]=_,c)),value:j,onChange:N,onClear:A,ref:u([f,x])}))}));export{g as MaskedInput,m as PLACEHOLDER_CHAR};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MaskedInput,PLACEHOLDER_CHAR}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{MaskedInput,PLACEHOLDER_CHAR}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"react-merge-refs";import"classnames";import"../_commonjsHelpers-92085bf8.js";import"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Avatar as m}from"../avatar/component.js";import{Typography as o}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import t from"classnames";import{Avatar as m}from"../avatar/component.js";import{Typography as o}from"../typography/component.js";import"../tslib.es6-c533c72c.js";import"../__internal/utils/getDataTestId.js";import"../spinner/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var a="index-module_wrapper__uOTrP",i="index-module_topRow__1RF92",r="index-module_leftSide__3QkAD",s="index-module_title__hNfHl",l="index-module_rightAddons__2qp_t",n="index-module_text__bFMhQ",p=function(p){var d=p.className,c=p.dataTestId,_=p.title,u=p.date,x=p.rightAddons,g=p.text,v=p.image;return e.createElement("div",{"data-test-id":c,className:t(a,d)},e.createElement("div",{className:i},e.createElement("div",{className:r},e.createElement(m,{size:"x-small",view:"primary",src:v}),e.createElement(o.Text,{className:s,view:"title",weight:"medium"},_),u&&e.createElement(o.Text,{view:"caps",color:"secondary",weight:"medium"},u)),x&&e.createElement("div",{className:l},x)),e.createElement("div",{className:n},e.createElement(o.Text,{view:"primary-small",color:"secondary",weight:"medium"},g)))};export{p as Message};
|
package/dist/message/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Message}from"./component.js";import"react";import"classnames";import"../avatar/component.js";import"../tslib.es6-
|
|
1
|
+
export{Message}from"./component.js";import"react";import"classnames";import"../avatar/component.js";import"../tslib.es6-c533c72c.js";import"../__internal/utils/getDataTestId.js";import"../spinner/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../avatar/hooks/use-image-loading-state.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-c533c72c.js";import n from"react";import t from"classnames";import{ModalBackground as o}from"../modal-backgroung/index.js";var r={container:"index-module_container__3-Sa_",s:"index-module_s__E3xZQ",m:"index-module_m__d-eIU"},a=function(a){var l=a.modals,m=a.closeModal;return l.length?n.createElement(n.Fragment,null,l.map((function(o,a){return n.createElement("div",{style:{zIndex:22+a},className:t(r.container,r[o.props.size]),key:o.id},n.createElement(o.modal,e({},o.props)))})),n.createElement(o,{zIndex:20+l.length,close:function(){m(l[l.length-1].id)}})):null};export{a as Modals};
|
package/dist/modal/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Modals as e}from"./components/modals/index.js";import{useModal as
|
|
1
|
+
import o from"react";import{Modals as e}from"./components/modals/index.js";import{useModal as n}from"./hooks/use-modal.js";import"../tslib.es6-c533c72c.js";import"classnames";import"./components/modal-backgroung/index.js";import"uuid";var t=o.createContext({modals:[],openModal:function(){return function(){}},closeModal:function(){}}),a=function(a){var l=a.children,r=a.t,m=n(r),s=m.modals,c=m.openModal,d=m.closeModal;return o.createElement(t.Provider,{value:{modals:s,openModal:c,closeModal:d}},o.createElement(e,{modals:s,openModal:c,closeModal:d}),l)};export{t as ModalContext,a as ModalProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,a as r}from"../../tslib.es6-
|
|
1
|
+
import{b as o,a as r}from"../../tslib.es6-c533c72c.js";import t from"react";import{v4 as n}from"uuid";var i=function(i){var e=t.useState([]),u=e[0],a=e[1],c=function(o){a(u.filter((function(r){return r.id!==o})))};return{openModal:function(t,e){return void 0===e&&(e="s"),function(s){return f=s,d=n(),void a(o(u,[{id:d,modal:t,props:r({size:e,close:function(){return c(d)},t:i},f)}]));var f,d}},modals:u,closeModal:c}};export{i as useModal};
|
package/dist/modal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ModalContext,ModalProvider}from"./context.js";import"react";import"./components/modals/index.js";import"../tslib.es6-
|
|
1
|
+
export{ModalContext,ModalProvider}from"./context.js";import"react";import"./components/modals/index.js";import"../tslib.es6-c533c72c.js";import"classnames";import"./components/modal-backgroung/index.js";import"./hooks/use-modal.js";import"uuid";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-c533c72c.js";import o from"react";import{Button as r}from"../button/component.js";import{Typography as i}from"../typography/component.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-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__3fHkX",s="index-module_subtitle__1LIP9",l="index-module_button__1AF_t",p=function(p){var n=p.code,a=p.title,c=p.subtitle,d=p.buttonText,u=p.view,v=void 0===u?"primary":u,y=p.size,g=void 0===y?"m":y,j=e(p,["code","title","subtitle","buttonText","view","size"]);return o.createElement("div",{className:m},o.createElement(i.Title,{weight:"bold",color:"primary",tag:"div"},n),o.createElement(i.Title,{weight:"bold",color:"primary",tag:"div"},a),c&&o.createElement(i.Text,{color:"secondary",className:s,tag:"div"},c),(!!(null==j?void 0:j.onClick)||(null==j?void 0:j.href))&&o.createElement(r,t({className:l,view:v,size:g},j),d))};export{p as NotFound};
|
package/dist/not-found/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{NotFound}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{NotFound}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-c533c72c.js";import*as n from"react";import o,{forwardRef as r,useRef as i,useState as a,useCallback as u,useEffect as c}from"react";import s from"react-merge-refs";import l from"classnames";import{Portal as f}from"../portal/component.js";import{ToastPlate as v}from"../toast-plate/component.js";import{useClickOutside as m}from"./utils/index.js";import"react-dom";import"../portal/utils.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(this,arguments)}var d="Left",h="Right",T="Up",w={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},M={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]};function E(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function g(e,t){var n=function(t){t&&"touches"in t&&t.touches.length>1||e((function(e,n){n.trackMouse&&(document.addEventListener("mousemove",o),document.addEventListener("mouseup",a));var r="touches"in t?t.touches[0]:t,i=E([r.clientX,r.clientY],n.rotationAngle);return p({},e,M,{initial:[].concat(i),xy:i,start:t.timeStamp||0})}))},o=function(t){e((function(e,n){if("touches"in t&&t.touches.length>1)return e;var o="touches"in t?t.touches[0]:t,r=E([o.clientX,o.clientY],n.rotationAngle),i=r[0],a=r[1],u=i-e.xy[0],c=a-e.xy[1],s=Math.abs(u),l=Math.abs(c),f=(t.timeStamp||0)-e.start,v=Math.sqrt(s*s+l*l)/(f||1),m=[u/(f||1),c/(f||1)],M=function(e,t,n,o){return e>t?n>0?h:d:o>0?"Down":T}(s,l,u,c),g="number"==typeof n.delta?n.delta:n.delta[M.toLowerCase()]||w.delta;if(s<g&&l<g&&!e.swiping)return e;var C={absX:s,absY:l,deltaX:u,deltaY:c,dir:M,event:t,first:e.first,initial:e.initial,velocity:v,vxvy:m};C.first&&n.onSwipeStart&&n.onSwipeStart(C),n.onSwiping&&n.onSwiping(C);var y=!1;return(n.onSwiping||n.onSwiped||"onSwiped"+M in n)&&(y=!0),y&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),p({},e,{first:!1,eventData:C,swiping:!0})}))},r=function(t){e((function(e,n){var o;if(e.swiping&&e.eventData){o=p({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(o);var r=n["onSwiped"+o.dir];r&&r(o)}else n.onTap&&n.onTap({event:t});return p({},e,M,{eventData:o})}))},i=function(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",a)},a=function(e){i(),r(e)},u=function(e,t){var i=function(){};if(e&&e.addEventListener){var a=[["touchstart",n],["touchmove",o],["touchend",r]];a.forEach((function(n){var o=n[0],r=n[1];return e.addEventListener(o,r,{passive:t})})),i=function(){return a.forEach((function(t){var n=t[0],o=t[1];return e.removeEventListener(n,o)}))}}return i},c={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var o={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),o.cleanUpTouch=void 0),n.trackTouch&&t&&(o.cleanUpTouch=u(t,!n.preventDefaultTouchmoveEvent)),p({},e,{el:t},o)}))}};return t.trackMouse&&(c.onMouseDown=n),[c,u]}function C(e){var t=e.trackMouse,o=n.useRef(p({},M)),r=n.useRef(p({},w));r.current=p({},w,e);var i=n.useMemo((function(){return g((function(e){return o.current=e(o.current,r.current)}),{trackMouse:t})}),[t]),a=i[0],u=i[1];return o.current=function(e,t,n){var o={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),o.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(o.cleanUpTouch=n(e.el,!t.preventDefaultTouchmoveEvent)),p({},e,o)}(o.current,r.current,u),a}var y="index-module_notificationComponent__YDzix",k="index-module_isVisible__1y-6b",D="index-module_isClosing__1kAgn",S="index-module_toastContent__1EfFL",b="."+y,x=r((function(n,r){var p,w=n.className,M=n.children,E=n.visible,g=n.offset,x=void 0===g?108:g,L=n.hasCloser,_=void 0===L||L,j=n.autoCloseDelay,U=void 0===j?5e3:j,O=n.onClose,Y=n.onCloseTimeout,A=n.onMouseEnter,N=n.onMouseLeave,X=n.onClickOutside,P=n.style,R=e(n,["className","children","visible","offset","hasCloser","autoCloseDelay","onClose","onCloseTimeout","onMouseEnter","onMouseLeave","onClickOutside","style"]),F=i(null),q=i(0),z=i(0),I=a(!1),V=I[0],B=I[1],G=u((function(){q.current=window.setTimeout((function(){Y&&Y()}),U)}),[U,Y]),H=u((function(){clearTimeout(q.current)}),[]);c((function(){return function(){clearTimeout(z.current)}}),[]),c((function(){return E&&G(),function(){H()}}),[G,H,E]);var J=u((function(e){H(),A&&A(e)}),[A,H]),K=u((function(e){H(),G(),N&&N(e)}),[N,G,H]),Q=u((function(e){var t=!!e.target.closest(b);X&&E&&!t&&X(e)}),[X,E]);m(F,Q);var W=C({onSwiped:function(e){var t=e.dir;O&&[d,h,T].includes(t)&&(B(!0),z.current=window.setTimeout((function(){B(!1),O()}),100))},delta:100,trackMouse:!0});return o.createElement(f,null,o.createElement("div",t({},W),o.createElement(v,t({className:l(y,(p={},p[k]=E,p[D]=V,p),w),contentClassName:S,style:t({top:x},P),onMouseEnter:J,onMouseLeave:K,ref:s([r,F]),role:E?"alert":void 0,hasCloser:_,onClose:O},R),M)))}));x.defaultProps={autoCloseDelay:5e3,offset:108,hasCloser:!0};export{x as Notification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Notification}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Notification}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./utils/index.js";
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r}from"./_commonjsHelpers-
|
|
1
|
+
import{c as r}from"./_commonjsHelpers-92085bf8.js";var e=new RegExp("%[a-f0-9]{2}","gi"),t=new RegExp("(%[a-f0-9]{2})+","gi");function n(r,e){try{return decodeURIComponent(r.join(""))}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),o=r.slice(e);return Array.prototype.concat.call([],n(t),n(o))}function o(r){try{return decodeURIComponent(r)}catch(a){for(var t=r.match(e),o=1;o<t.length;o++)t=(r=n(t,o).join("")).match(e);return r}}var a=function(r){if("string"!=typeof r)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch(e){return function(r){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=t.exec(r);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(r){var a=o(n[0]);a!==n[0]&&(e[n[0]]=a)}n=t.exec(r)}e["%C2"]="�";for(var c=Object.keys(e),s=0;s<c.length;s++){var i=c[s];r=r.replace(new RegExp(i,"g"),e[i])}return r}(r)}},c=(r,e)=>{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]},s=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;a<n.length;a++){var c=n[a],s=r[c];(o?-1!==e.indexOf(c):e(c,s,r))&&(t[c]=s)}return t},i=r((function(r,e){const t=Symbol("encodeFragmentIdentifier");function n(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(r,e){return e.encode?e.strict?encodeURIComponent(r).replace(/[!'()*]/g,(r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)):encodeURIComponent(r):r}function i(r,e){return e.decode?a(r):r}function u(r){return Array.isArray(r)?r.sort():"object"==typeof r?u(Object.keys(r)).sort(((r,e)=>Number(r)-Number(e))).map((e=>r[e])):r}function l(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function p(r){const e=(r=l(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function f(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function y(r,e){n((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const t=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),a="string"==typeof t&&!o&&i(t,r).includes(r.arrayFormatSeparator);t=a?i(t,r):t;const c=o||a?t.split(r.arrayFormatSeparator).map((e=>i(e,r))):null===t?t:i(t,r);n[e]=c};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?i(t,r):t);const a=null===t?[]:t.split(r.arrayFormatSeparator).map((e=>i(e,r)));void 0!==n[e]?n[e]=[].concat(n[e],a):n[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),o=Object.create(null);if("string"!=typeof r)return o;if(!(r=r.trim().replace(/^[?#&]/,"")))return o;for(const n of r.split("&")){if(""===n)continue;let[r,a]=c(e.decode?n.replace(/\+/g," "):n,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?a:i(a,e),t(i(r,e),a,o)}for(const r of Object.keys(o)){const t=o[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=f(t[r],e);else o[r]=f(t,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce(((r,e)=>{const t=o[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=u(t):r[e]=t,r}),Object.create(null))}e.extract=p,e.parse=y,e.stringify=(r,e)=>{if(!r)return"";n((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],a=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const a=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),"[",a,"]"].join("")]:[...t,[o(e,r),"[",o(a,r),"]=",o(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),"[]"].join("")]:[...t,[o(e,r),"[]=",o(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,a)=>void 0===a||r.skipNull&&null===a||r.skipEmptyString&&""===a?n:(a=null===a?"":a,0===n.length?[[o(t,r),e,o(a,r)].join("")]:[[n,o(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,o(e,r)]:[...t,[o(e,r),"=",o(n,r)].join("")]}}(e),c={};for(const e of Object.keys(r))t(e)||(c[e]=r[e]);const s=Object.keys(c);return!1!==e.sort&&s.sort(e.sort),s.map((t=>{const n=r[t];return void 0===n?"":null===n?o(t,e):Array.isArray(n)?0===n.length&&"bracket-separator"===e.arrayFormat?o(t,e)+"[]":n.reduce(a(t),[]).join("&"):o(t,e)+"="+o(n,e)})).filter((r=>r.length>0)).join("&")},e.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=c(r,"#");return Object.assign({url:t.split("?")[0]||"",query:y(p(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:i(n,e)}:{})},e.stringifyUrl=(r,n)=>{n=Object.assign({encode:!0,strict:!0,[t]:!0},n);const a=l(r.url).split("?")[0]||"",c=e.extract(r.url),s=e.parse(c,{sort:!1}),i=Object.assign(s,r.query);let u=e.stringify(i,n);u&&(u=`?${u}`);let p=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(p=`#${n[t]?o(r.fragmentIdentifier,n):r.fragmentIdentifier}`),`${a}${u}${p}`},e.pick=(r,n,o)=>{o=Object.assign({parseFragmentIdentifier:!0,[t]:!1},o);const{url:a,query:c,fragmentIdentifier:i}=e.parseUrl(r,o);return e.stringifyUrl({url:a,query:s(c,n),fragmentIdentifier:i},o)},e.exclude=(r,t,n)=>{const o=Array.isArray(t)?r=>!t.includes(r):(r,e)=>!t(r,e);return e.pick(r,o,n)}}));i.extract;var u=i.parse,l=i.stringify;function p(){return u(window.location.search)}i.parseUrl,i.stringifyUrl,i.pick,i.exclude;export{p,l as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{useRef as e}from"react";import{PlusS as o}from"alpha-cli-icons";import{FlexColumns as r}from"../flex-columns/component.js";import{IconButton as n}from"../icon-button/component.js";import{Image as i}from"../image/component.js";import{Padding as m}from"../padding/component.js";import{SuperListHeader as a}from"../super-list-header/component.js";import{ToastNotifier as p}from"../toast-notifier/component.js";import{Typography as s}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import t,{useRef as e}from"react";import{PlusS as o}from"alpha-cli-icons";import{FlexColumns as r}from"../flex-columns/component.js";import{IconButton as n}from"../icon-button/component.js";import{Image as i}from"../image/component.js";import{Padding as m}from"../padding/component.js";import{SuperListHeader as a}from"../super-list-header/component.js";import{ToastNotifier as p}from"../toast-notifier/component.js";import{Typography as s}from"../typography/component.js";import"../tslib.es6-c533c72c.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../spinner/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";var c=function(c){var l=c.title,u=c.subtitle,d=c.onChange,f=c.value,g=c.saveImage,j=c.type,v=c.format,h=c.padding,y=void 0===h?"8px 0":h,E=e(null);return t.createElement(t.Fragment,null,t.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:E,onChange:function(t){var e,o=t.target.files[0];(null===(e=E.current)||void 0===e?void 0:e.value)&&(E.current.value="");var r=new FileReader;r.readAsDataURL(o),r.onload=function(){var t=r.result;g({img:t,type:j,format:v}).then((function(t){d(t.data?t.data.src:t.src)})).catch((function(t){return p({title:"Error",offset:32,view:"negative",text:t.message})}))}},multiple:!1}),t.createElement(a,{text:l,leftAddons:!f&&t.createElement(n,{onClick:function(){var t;return null===(t=E.current)||void 0===t?void 0:t.click()},icon:o})}),u&&t.createElement(s.Text,{view:"primary-small",color:"secondary",weight:"medium"},u),f&&t.createElement(t.Fragment,null,t.createElement(m,{padding:y}),t.createElement(r,{columns:3,gc:8,gr:8},t.createElement(i,{src:f,onRemoveClick:function(){return d("")}}))))};export{c as PhotoUploader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PhotoUploader}from"./component.js";import"react";import"alpha-cli-icons";import"../flex-columns/component.js";import"../icon-button/component.js";import"../tslib.es6-
|
|
1
|
+
export{PhotoUploader}from"./component.js";import"react";import"alpha-cli-icons";import"../flex-columns/component.js";import"../icon-button/component.js";import"../tslib.es6-c533c72c.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../spinner/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../padding/component.js";import"../super-list-header/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"../tslib.es6-
|
|
1
|
+
import{b as t}from"../tslib.es6-c533c72c.js";import e,{useRef as o}from"react";import{PlusS as r}from"alpha-cli-icons";import{FlexColumns as n}from"../flex-columns/component.js";import{IconButton as i}from"../icon-button/component.js";import{Image as m}from"../image/component.js";import{Padding as a}from"../padding/component.js";import{SuperListHeader as l}from"../super-list-header/component.js";import{ToastNotifier as p}from"../toast-notifier/component.js";import{Typography as s}from"../typography/component.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../spinner/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";var c=function(c){var u=c.title,f=c.subtitle,d=c.onChange,g=c.values,v=c.saveImage,j=c.type,h=c.format,y=o(null),E=function(e){d((null==g?void 0:g.includes(e))?null==g?void 0:g.filter((function(t){return t!==e})):t(g,[e]))};return e.createElement(e.Fragment,null,e.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:y,onChange:function(t){var e,o=t.target.files[0];(null===(e=y.current)||void 0===e?void 0:e.value)&&(y.current.value="");var r=new FileReader;r.readAsDataURL(o),r.onload=function(){var t=r.result;v({img:t,type:j,format:h}).then((function(t){return E(t.data?t.data.src:t.src)})).catch((function(t){return p({title:"Error",offset:32,view:"negative",text:t.message})}))}},multiple:!1}),e.createElement(l,{text:u,leftAddons:e.createElement(i,{onClick:function(){var t;return null===(t=y.current)||void 0===t?void 0:t.click()},icon:r})}),f&&e.createElement(s.Text,{view:"primary-small",color:"secondary",weight:"medium"},f),g&&!!g.length&&e.createElement(e.Fragment,null,e.createElement(a,{padding:"16px 0"}),e.createElement(n,{columns:3,gc:8,gr:8},null==g?void 0:g.map((function(t){return e.createElement(m,{key:t,src:t,onRemoveClick:function(){return E(t)}})})))))};export{c as PhotoUploaderMultiple};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PhotoUploaderMultiple}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{PhotoUploaderMultiple}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"alpha-cli-icons";import"../flex-columns/component.js";import"../icon-button/component.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../spinner/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../padding/component.js";import"../super-list-header/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";
|
|
@@ -8,7 +8,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autoco
|
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
fieldComponent?: 'button' | 'iconButton';
|
|
10
10
|
};
|
|
11
|
-
declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "
|
|
11
|
+
declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "disabled" | "className" | "dataTestId" | "error" | "label" | "block" | "id" | "onBlur" | "onChange" | "name" | "required" | "fieldClassName" | "preventFlip" | "options" | "defaultOpen" | "valueRenderer" | "Optgroup" | "visibleOptions" | "optionsListClassName" | "optionClassName" | "circularNavigation" | "nativeSelect" | "popoverPosition" | "optionsListWidth" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "OptionsList" | "Option" | "updatePopover" | "showEmptyOptionsList"> & Pick<ButtonProps, "view" | "leftAddons" | "loading"> & {
|
|
12
12
|
size?: "s" | "xs" | "m" | "l" | undefined;
|
|
13
13
|
icon?: React.ReactNode;
|
|
14
14
|
fieldComponent?: "button" | "iconButton" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as o,a as t}from"../tslib.es6-c533c72c.js";import e,{forwardRef as n}from"react";import s from"classnames";import"../select/component.js";import{BaseSelect as i}from"../select/components/base-select/component.js";import"../form-control/component.js";import{Optgroup as p}from"../select/components/optgroup/component.js";import{Option as m}from"../select/components/option/component.js";import{OptionsList as r}from"../select/components/options-list/component.js";import"react-virtual";import"../toast-notifier/component.js";import"axios";import{Field as c}from"./field/Component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../hooks/useFocus/index.js";import"../select/utils.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../select/components/checkmark/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../icon-button/component.js";var l="index-module_container__jEng4",a=n((function(n,a){var d=n.OptionsList,j=n.Optgroup,f=n.Option,u=n.view,g=n.loading,v=n.size,O=void 0===v?"m":v,b=n.Field,_=n.className,k=n.leftAddons,w=n.icon,x=n.fieldComponent,z=void 0===x?"button":x,h=o(n,["OptionsList","Optgroup","Option","view","loading","size","Field","className","leftAddons","icon","fieldComponent"]);return e.createElement(i,t({},h,{ref:a,Option:f||m,Field:b||c,size:"m"===O?"m":"s",fieldProps:{view:u,loading:g,buttonSize:O,leftAddons:k,icon:w,fieldComponent:z},Optgroup:j||p,OptionsList:d||r,className:s(l,_),selected:[],closeOnSelect:!0}))}));export{a as PickerButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../../tslib.es6-c533c72c.js";import n from"react";import r from"classnames";import{Button as t}from"../../button/component.js";import{IconButton as i}from"../../icon-button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";var s={iconContainer:"index-module_iconContainer__eWqdq",open:"index-module_open__1QXrX"},a=function(a){var l=a.buttonSize,m=void 0===l?"m":l,c=a.view,p=a.label,d=a.open;a.multiple,a.rightAddons,a.Arrow;var u=a.innerProps,v=a.className;a.selected,a.selectedMultiple,a.valueRenderer;var b=a.fieldComponent,f=e(a,["buttonSize","view","label","open","multiple","rightAddons","Arrow","innerProps","className","selected","selectedMultiple","valueRenderer","fieldComponent"]),_=o(o({},f),u);return"button"===b?n.createElement(t,o({},_,{rightAddons:f.icon?n.createElement("span",{className:r(s.iconContainer,d&&s.open)},f.icon):null,block:!0,view:c,size:m,className:r(s.component,"primary"===c&&s.primary,v)}),p):n.createElement(i,o({},_,{icon:f.icon,view:"secondary"===c?"secondary":"ghost",size:"xs"===m?"s":m}))};export{a as Field};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Field}from"./Component.js";import"../../tslib.es6-
|
|
1
|
+
export{Field}from"./Component.js";import"../../tslib.es6-c533c72c.js";import"react";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../icon-button/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PickerButton}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{PickerButton}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"axios";import"./field/Component.js";import"../icon-button/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-c533c72c.js";import t,{useState as o,useCallback as n,useEffect as r}from"react";import{usePopper as i}from"react-popper";import{CSSTransition as a}from"react-transition-group";import m from"classnames";import{Portal as s}from"../portal/component.js";import{stackingOrder as c}from"../stack/context.js";import{Stack as l}from"../stack/component.js";import"react-dom";import"../portal/utils.js";var p={component:"index-module_component__1hgdm",arrow:"index-module_arrow__2_UGW",enter:"index-module_enter__Red0x",enterActive:"index-module_enterActive__1Fy-k",exit:"index-module_exit__2r-P9",exitActive:"index-module_exitActive__2NLCT"},d={timeout:150},u={enter:p.enter,enterActive:p.enterActive,exit:p.exit,exitActive:p.exitActive},f=function(f){var v=f.children,x=f.getPortalContainer,_=f.transition,w=void 0===_?d:_,A=f.anchorElement,E=f.offset,N=void 0===E?[0,0]:E,h=f.withArrow,P=void 0!==h&&h,j=f.withTransition,y=void 0===j||j,C=f.position,g=void 0===C?"left":C,k=f.preventFlip,b=f.popperClassName,I=f.arrowClassName,O=f.className,T=f.open,z=f.dataTestId,D=f.update,F=f.transitionDuration,R=void 0===F?w.timeout+"ms":F,G=f.zIndex,L=void 0===G?c.POPOVER:G,U=o(A),V=U[0],W=U[1],q=o(null),B=q[0],H=q[1],J=o(null),K=J[0],M=J[1],Q=n((function(){var e=[{name:"offset",options:{offset:N}}];return P&&e.push({name:"arrow",options:{element:K}}),k&&e.push({name:"flip",options:{fallbackPlacements:[]}}),e}),[N,P,k,K]),S=i(V,B,{placement:g,modifiers:Q()}),X=S.styles,Y=S.attributes,Z=S.update;r((function(){W(A)}),[A]),r((function(){Z&&Z()}),[Z,K,v]),r((function(){D&&Z&&(D.current=Z)}),[Z,D]);var $=function(o,n){return t.createElement("div",e({ref:H,style:e({zIndex:o},X.popper),"data-test-id":z,className:m(p.component,O)},Y.popper),t.createElement("div",{className:m(p.inner,b),style:n},v,P&&t.createElement("div",{ref:M,style:X.arrow,className:m(p.arrow,I)})))};return t.createElement(l,{value:L},(function(o){return t.createElement(s,{getPortalContainer:x},y?t.createElement(a,e({unmountOnExit:!0,classNames:u},w,{in:T}),$(o,{transitionDuration:R})):T&&$(o))}))};export{f as Popover};
|
package/dist/popover/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Popover}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Popover}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"react-popper";import"react-transition-group";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c533c72c.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r={progress_bar:"index-module_progress_bar__3nlr2",block:"index-module_block__2aONS",inner:"index-module_inner__z5AVV",indicator:"index-module_indicator__2ioud",multicolor:"index-module_multicolor__1ADvJ",_30:"index-module__30__1suFf",_60:"index-module__60__3eFsq",negative:"index-module_negative__6JYfz",positive:"index-module_positive__2XpHn",accent:"index-module_accent__3ZoIe",secondary:"index-module_secondary__146J-",warning:"index-module_warning__1gFQM"},t=function(t){var n,m,l=t.value,_=void 0===l?0:l,d=t.block,a=t.renderValue,c=void 0===a||a,s=t.className,p=void 0===s?"":s,u=t.view,v=void 0===u?"multicolor":u,x=Number(_)&&Number(_)>=0?_:0;return e.createElement("div",{className:o(r.progress_bar,p,(n={},n[r.block]=d,n))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(m={},m[r._30]=x>=30&&"multicolor"===v,m[r._60]=x>=60&&"multicolor"===v,m))}),c&&e.createElement("div",{className:r.inner},e.createElement(i.Text,{view:"title",weight:"medium",color:"primary"},(x>100?100:x)+" %")))};export{t as ProgressBar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c533c72c.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-c533c72c.js";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_progress_index__1G7T4",p="index-module_text__1s7bQ",s=function(s){var a=s.onClick,l=s.value,n=s.title,c=s.subtitle,d=e(s,["onClick","value","title","subtitle"]);return o.createElement("button",{type:"button",onClick:a,disabled:!a,className:m},o.createElement("div",{className:p},o.createElement(i.Text,{tag:"div",view:"title",color:"primary",weight:"medium"},n),c&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),o.createElement(r,t({value:l},d)))};export{s as ProgressIndex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ProgressIndex}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ProgressIndex}from"./component.js";import"../tslib.es6-c533c72c.js";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-73723470.js";import"../common.module-1f485d03.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|