@alphakits/ui 1.3.5 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_commonjsHelpers-cd9eb70e.js → _commonjsHelpers-3e2d7ba0.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-22639f47.js → colors.module-de146e83.js} +0 -0
- package/dist/{common.module-33138006.js → common.module-a8e01692.js} +0 -0
- package/dist/{component-4ecaaa6f.d.ts → component-0c25076d.d.ts} +0 -0
- package/dist/{component-4ecaaa6f.js → component-0c25076d.js} +0 -0
- package/dist/{contact-block-ab1613a3.d.ts → contact-block-cfe04d80.d.ts} +0 -0
- package/dist/{contact-block-ab1613a3.js → contact-block-cfe04d80.js} +0 -0
- package/dist/copy-button/component.d.ts +10 -0
- package/dist/copy-button/component.js +1 -0
- package/dist/copy-button/index.d.ts +1 -0
- package/dist/copy-button/index.js +1 -0
- 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/hooks/index.d.ts +1 -0
- package/dist/form/hooks/index.js +1 -0
- package/dist/form/hooks/use-crud-form-requests.d.ts +20 -0
- package/dist/form/hooks/use-crud-form-requests.js +1 -0
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.d.ts +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/index.d.ts +23 -0
- package/dist/form/templates/rest-form/index.js +1 -0
- 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-48e0a4f8.js → formik.esm-a384f10f.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-09704653.js → gutters.module-a1dcf2f5.js} +0 -0
- package/dist/heading/component.js +1 -1
- package/dist/heading/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/index.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.ts +1 -0
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.d.ts +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/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-4313a920.d.ts → parse-query-params-93174748.d.ts} +0 -0
- package/dist/{parse-query-params-4313a920.js → parse-query-params-93174748.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/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.d.ts +12 -2
- 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-453482d8.js → tslib.es6-9e9df1a1.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
|
@@ -20,7 +20,7 @@ type RadioProps = Omit<NativeProps, 'size' | 'type' | 'onChange' | 'checked' | '
|
|
|
20
20
|
name?: string;
|
|
21
21
|
}) => void;
|
|
22
22
|
};
|
|
23
|
-
declare const Radio: React.ForwardRefExoticComponent<Pick<NativeProps, "
|
|
23
|
+
declare const Radio: React.ForwardRefExoticComponent<Pick<NativeProps, "form" | "slot" | "style" | "title" | "pattern" | "children" | "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" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "list" | "step" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
|
|
24
24
|
dataTestId?: string | undefined;
|
|
25
25
|
hint?: ReactNode;
|
|
26
26
|
label?: ReactNode;
|
package/dist/radio/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a}from"../tslib.es6-9e9df1a1.js";import n,{forwardRef as d,useRef as l}from"react";import c from"react-merge-refs";import t from"classnames";import{useFocus as s}from"../hooks/useFocus/index.js";var o={container:"index-module_container__3wj9U",checked:"index-module_checked__2THO5",disabled:"index-module_disabled__nUlq9",circle:"index-module_circle__rCfxn",label:"index-module_label__2f22f",hint:"index-module_hint__2ljb7",focused:"index-module_focused__3gAAB",m:"index-module_m__2yr-A",s:"index-module_s__YbNuM",content:"index-module_content__H6xTw",start:"index-module_start__2IMae",center:"index-module_center__2EfOb",addons:"index-module_addons__vaTct",block:"index-module_block__sXKkt"},i=d((function(d,i){var m,r=d.onChange,_=d.className,u=d.name,b=d.disabled,x=d.dataTestId,f=d.label,h=d.checked,k=d.hint,p=d.size,N=void 0===p?"m":p,g=d.align,E=void 0===g?"center":g,v=d.addons,T=d.block,j=e(d,["onChange","className","name","disabled","dataTestId","label","checked","hint","size","align","addons","block"]),C=l(null),y=s(C,"keyboard")[0];return n.createElement("label",{className:t(o.container,o[N],o[E],_,(m={},m[o.disabled]=b,m[o.checked]=h,m[o.focused]=y,m[o.block]=T,m)),ref:c([C,i])},n.createElement("input",a({type:"radio",onChange:function(e){r&&r(e,{checked:e.target.checked,name:u})},"data-test-id":x,disabled:b,checked:h,name:u},j)),n.createElement("span",{className:o.circle}),n.createElement("span",{className:o.content},n.createElement("span",{className:o.label},f),k&&n.createElement("span",{className:o.hint},k)),v&&n.createElement("span",{className:o.addons},v))}));export{i as Radio};
|
package/dist/radio/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Radio}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Radio}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{FlexColumns as t}from"../flex-columns/component.js";import{Radio as o}from"../radio/component.js";import{Typography as r}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import{FlexColumns as t}from"../flex-columns/component.js";import{Radio as o}from"../radio/component.js";import{Typography as r}from"../typography/component.js";import"../tslib.es6-9e9df1a1.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var n="index-module_text__1xpOV",i="index-module_subtitle__1_nhZ",m=function(m){var a=m.title,c=m.subtitle,s=m.selected,l=m.data,p=void 0===l?[]:l,d=m.onChange,u=m.columns,g=void 0===u?1:u,y=m.gr,v=void 0===y?20:y,h=m.gc,f=void 0===h?20:h,j=m.dataTestId,x=function(e){return j?"radio_"+j+"_"+e:"radio_"+e};return e.createElement("div",null,(a||c)&&e.createElement("div",{className:n},a&&e.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},a),c&&e.createElement(r.Text,{className:i,tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),e.createElement(t,{columns:g,gr:v,gc:f},null==p?void 0:p.map((function(t,r){return e.createElement(o,{key:t.key,dataTestId:x(r),onChange:function(){return d(t.key)},checked:t.key===s,label:t.content})}))))};export{m as RadioGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{RadioGroup}from"./component.js";import"react";import"../flex-columns/component.js";import"../radio/component.js";import"../tslib.es6-
|
|
1
|
+
export{RadioGroup}from"./component.js";import"react";import"../flex-columns/component.js";import"../radio/component.js";import"../tslib.es6-9e9df1a1.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o}from"react";import{ChevronDownS as t}from"alpha-cli-icons";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as
|
|
1
|
+
import e,{useState as o}from"react";import{ChevronDownS as t}from"alpha-cli-icons";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{IconButton as p}from"../icon-button/component.js";import{Padding as c}from"../padding/component.js";import{Radio as m}from"../radio/component.js";import{Typography as a}from"../typography/component.js";import"../_commonjsHelpers-3e2d7ba0.js";import"../link/component.js";import"../tslib.es6-9e9df1a1.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s={list_head:"index-module_list_head__3yzFD",collapse_btn:"index-module_collapse_btn__3XWT_",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__FLbh7"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.onChange,j=[];null==u||u.forEach((function(e){var o={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(t){t.locationId===e.id&&(o.parent=e,o.childs.push(t))})),o.parent.id&&j.push(o)}));var y=o(j),g=y[0],v=y[1];return e.createElement("div",null,g.map((function(o,d){var u;return e.createElement(e.Fragment,{key:o.parent.id},e.createElement("div",{className:s.list_head},e.createElement(a.Text,{view:"title",color:"primary",weight:"medium"},o.parent.title),e.createElement(p,{onClick:function(){return function(e){var o=g.map((function(o,t){return t===e&&(o.collapsed?o.collapsed=!1:o.collapsed=!0),o})),t=g.concat(o);v(t.filter((function(e,o){return t.indexOf(e)===o})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=o.collapsed,u)),icon:t})),!o.collapsed&&e.createElement(c,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!o.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},o.childs.map((function(o){return e.createElement(m,{onChange:function(){return _(o.id)},checked:h===o.id,key:o.id,label:o.title})}))))),d!==(null==g?void 0:g.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{RadioGroups}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-
|
|
1
|
+
export{RadioGroups}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-3e2d7ba0.js";import"../link/component.js";import"../tslib.es6-9e9df1a1.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../radio/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -5,7 +5,7 @@ import { BaseSelectProps } from "./typings";
|
|
|
5
5
|
type SelectProps = Omit<BaseSelectProps, 'fieldProps'> & {
|
|
6
6
|
fieldProps?: FormControlProps & Record<string, unknown>;
|
|
7
7
|
};
|
|
8
|
-
declare const Select: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "
|
|
8
|
+
declare const Select: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "error" | "className" | "dataTestId" | "label" | "size" | "block" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "disabled" | "name" | "required" | "fieldClassName" | "hint" | "multiple" | "selected" | "preventFlip" | "options" | "defaultOpen" | "valueRenderer" | "Optgroup" | "visibleOptions" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "popoverPosition" | "optionsListWidth" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "Arrow" | "Field" | "OptionsList" | "Option" | "updatePopover" | "showEmptyOptionsList"> & {
|
|
9
9
|
fieldProps?: (React.HTMLAttributes<HTMLDivElement> & {
|
|
10
10
|
block?: boolean | undefined;
|
|
11
11
|
size?: "s" | "xs" | "m" | "l" | "xl" | undefined;
|
package/dist/select/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-9e9df1a1.js";import r,{forwardRef as p}from"react";import{Arrow as n}from"./components/arrow/component.js";import{BaseSelect as e}from"./components/base-select/component.js";import{Field as m}from"./components/field/component.js";import{Optgroup as s}from"./components/optgroup/component.js";import{Option as i}from"./components/option/component.js";import{OptionsList as c}from"./components/options-list/component.js";import"classnames";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"./utils.js";import"./components/native-select/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"./components/checkmark/component.js";var a=p((function(p,a){var j=p.Arrow,l=p.Field,f=p.OptionsList,u=p.Optgroup,d=p.Option,O=o(p,["Arrow","Field","OptionsList","Optgroup","Option"]);return r.createElement(e,t({ref:a,Option:d||i,Field:l||m,Optgroup:u||s,OptionsList:f||c,Arrow:j||n},O))}));export{a as Select};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t,_ as n}from"../../../tslib.es6-
|
|
1
|
+
import{a as e,b as t,_ as n}from"../../../tslib.es6-9e9df1a1.js";import o,{forwardRef as i,useRef as r,useMemo as a,useCallback as s,useEffect as l,useLayoutEffect as d}from"react";import p from"react-merge-refs";import c from"classnames";import{useMultipleSelection as u,useCombobox as m}from"downshift";import{ResizeObserver as v}from"resize-observer";import{getDataTestId as f}from"../../../__internal/utils/getDataTestId.js";import{Popover as g}from"../../../popover/component.js";import{processOptions as h}from"../../utils.js";import{NativeSelect as b}from"../native-select/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";var I="index-module_component__34JKG",y="index-module_popoverInner__1dabe",k="index-module_optionsList__3HreC",x="index-module_nativeSelect__xVDP8",O="index-module_block__2Uhdo",_=i((function(i,_){var w,C=i.dataTestId,E=void 0===C?"":C,P=i.className,N=i.fieldClassName,S=i.optionsListClassName,D=i.optionClassName,T=i.options,j=i.autocomplete,L=void 0!==j&&j,z=i.multiple,F=void 0!==z&&z,M=i.allowUnselect,R=void 0!==M&&M,B=i.disabled,K=void 0!==B&&B,A=i.closeOnSelect,U=void 0===A?!F:A,H=i.circularNavigation,W=void 0!==H&&H,q=i.nativeSelect,G=void 0!==q&&q,J=i.defaultOpen,V=void 0!==J&&J,Q=i.popoverPosition,X=void 0===Q?"bottom-start":Q,Y=i.preventFlip,Z=void 0===Y||Y,$=i.optionsListWidth,ee=void 0===$?"field":$,te=i.name,ne=i.id,oe=i.required,ie=i.selected,re=i.size,ae=void 0===re?"m":re,se=i.optionsSize,le=void 0===se?ae:se,de=i.error,pe=i.hint,ce=i.block,ue=void 0===ce||ce,me=i.label,ve=i.placeholder,fe=i.fieldProps,ge=void 0===fe?{}:fe,he=i.optionsListProps,be=void 0===he?{}:he,Ie=i.optionProps,ye=void 0===Ie?{}:Ie,ke=i.valueRenderer,xe=i.onChange,Oe=i.onOpen,_e=i.onFocus,we=i.onBlur,Ce=i.Arrow,Ee=i.Field,Pe=void 0===Ee?function(){return null}:Ee,Ne=i.OptionsList,Se=void 0===Ne?function(){return null}:Ne,De=i.Optgroup,Te=void 0===De?function(){return null}:De,je=i.Option,Le=void 0===je?function(){return null}:je,ze=i.updatePopover,Fe=i.showEmptyOptionsList,Me=void 0!==Fe&&Fe,Re=i.visibleOptions,Be=r(null),Ke=r(null),Ae=r(null),Ue=a((function(){return h(T||[],ie)}),[T,ie]),He=Ue.flatOptions,We=Ue.selectedOptions,qe={itemToString:function(e){return e?e.key.toString():""},onSelectedItemsChange:function(e){if(xe){var t=e.selectedItems,n=void 0===t?[]:t;xe({selectedMultiple:n,selected:n.length?n[0]:null,name:te})}},stateReducer:function(e,t){var n=t.type,o=t.changes;return R||n!==u.stateChangeTypes.DropdownKeyDownBackspace?o:e}};void 0!==ie&&(qe.selectedItems=We);var Ge=u(qe),Je=Ge.selectedItems,Ve=Ge.addSelectedItem,Qe=Ge.setSelectedItems,Xe=Ge.removeSelectedItem,Ye=Ge.getDropdownProps,Ze=m({id:ne,circularNavigation:W,items:He,itemToString:function(){return""},defaultHighlightedIndex:0===Je.length?0:void 0,onIsOpenChange:function(e){Oe&&Oe({open:e.isOpen,name:te})},stateReducer:function(t,n){var o=n.type,i=n.changes,r=i.selectedItem;switch(o){case m.stateChangeTypes.InputKeyDownEnter:case m.stateChangeTypes.ItemClick:if(r&&!r.disabled){var a=Je.includes(r),s=R||F&&Je.length>1;a&&s&&Xe(r),a||(F?Ve(r):Qe([r]))}return e(e({},i),{isOpen:!U,highlightedIndex:t.isOpen&&!U?t.highlightedIndex:i.highlightedIndex});default:return i}}}),$e=Ze.isOpen,et=Ze.getMenuProps,tt=Ze.getInputProps,nt=Ze.getItemProps,ot=Ze.getComboboxProps,it=Ze.getLabelProps,rt=Ze.highlightedIndex,at=Ze.toggleMenu,st=Ze.openMenu,lt=et({ref:Ae},{suppressRefError:!0}),dt=tt(Ye({ref:p([_,Ke])})),pt=s((function(e){Qe(t(e.target.options).reduce((function(e,t,n){return t.selected?e.concat(He[n]):e}),[]))}),[He,Qe]),ct=s((function(t){var i=t.option,r=t.index,a=n(t,["option","index"]);return o.createElement(o.Fragment,{key:i.key},Le(e(e(e({},ye),a),{className:D,innerProps:nt({index:r,item:i,disabled:i.disabled,onMouseDown:function(e){return e.preventDefault()}}),index:r,option:i,size:le,disabled:i.disabled,highlighted:r===rt,selected:Je.includes(i)})))}),[ye,D,nt,le,rt,Je,Le]);l((function(){V&&st()}),[V,st]);var ut=s((function(){if(Ae.current){var e="field"===ee?"width":"minWidth",t=Be.current?Be.current.getBoundingClientRect().width:0;Ae.current.setAttribute("style",""),Ae.current.style[e]=t+"px"}}),[ee]);l((function(){var e=new v(ut);return Be.current&&e.observe(Be.current),function(){e.disconnect()}}),[ut,$e,ee]),d(ut,[$e,ee,T,Je]);var mt=s((function(){return Je.map((function(e){return o.createElement("input",{type:"hidden",name:te,value:e.key,key:e.key})}))}),[Je,te]),vt=s((function(){var t=F?Je.map((function(e){return e.key.toString()})):(Je[0]||{}).key.toString();return o.createElement(b,e({},lt,{className:x,disabled:K,multiple:F,name:te,value:t,onChange:pt,options:T}))}),[F,Je,K,te,pt,T,lt]),ft=He.length>0||Me;return o.createElement("div",e({},ot(e(e({ref:Be},K&&{"aria-disabled":!0}),{className:c(I,(w={},w[O]=ue,w),P)})),{onKeyDown:K?void 0:function(e){dt.onKeyDown(e),L&&!$e&&1===e.key.length&&st(),![" ","Enter"].includes(e.key)||L||G||(e.preventDefault(),$e&&-1!==rt||at())},tabIndex:-1,id:"kekekekekek","data-test-id":f("combobox",E)}),G&&vt(),o.createElement(Pe,e({selectedMultiple:Je,selected:Je[0],multiple:F,open:$e,disabled:K,size:ae,placeholder:ve,label:me&&o.createElement("span",e({},it()),oe?me+" *":me),Arrow:Ce&&o.createElement(Ce,{open:$e}),error:de,hint:pe,valueRenderer:ke,className:N,innerProps:{onBlur:function(e){we&&we(e),dt.onBlur(e)},onFocus:K?void 0:function(e){_e&&_e(e),L&&!$e&&st()},onClick:K?void 0:function(e){L&&"INPUT"===e.target.tagName?st():at()},tabIndex:G||K?-1:0,ref:p([dt.ref]),id:dt.id,"aria-labelledby":dt["aria-labelledby"],"aria-controls":dt["aria-controls"],"aria-autocomplete":L?dt["aria-autocomplete"]:void 0},dataTestId:f("field",E)},ge)),te&&!G&&mt(),!G&&o.createElement(g,{open:$e,withTransition:!1,anchorElement:Ke.current,position:X,preventFlip:Z,popperClassName:y,update:ze},ft&&o.createElement("div",e({},lt,{className:c(S,k)}),o.createElement(Se,e({},be,{flatOptions:He,highlightedIndex:rt,open:$e,size:ae,options:T,Optgroup:Te,Option:ct,visibleOptions:Re,dataTestId:f("options-list",E)})))))}));export{_ as BaseSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{BaseSelect}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{BaseSelect}from"./component.js";import"../../../tslib.es6-9e9df1a1.js";import"react";import"react-merge-refs";import"classnames";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"../../utils.js";import"../native-select/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as l}from"../../../tslib.es6-
|
|
1
|
+
import{_ as e,a as l}from"../../../tslib.es6-9e9df1a1.js";import r,{useState as o,useRef as d,useCallback as a}from"react";import t from"classnames";import{FormControl as s}from"../../../form-control/component.js";import{useFocus as n}from"../../../hooks/useFocus/index.js";import{joinOptions as i}from"../../utils.js";var m="index-module_component__vfzkT",c="index-module_field__1aUsO",u="index-module_disabled__3SuAx",p="index-module_arrow__3uEBv",_="index-module_placeholder__eqMpp",f="index-module_contentWrapper__1YCpa",v="index-module_value__3iHA6",b="index-module_focusVisible__3vNfu",x=function(x){var h,N=x.size,E=void 0===N?"m":N,A=x.open;x.multiple;var g=x.error,j=x.hint,k=x.disabled,z=x.label,C=x.placeholder,M=x.selectedMultiple,w=void 0===M?[]:M,B=x.selected,F=x.rightAddons,T=x.valueRenderer,I=void 0===T?i:T,P=x.Arrow,R=x.innerProps,q=x.dataTestId,y=x.fieldClassName,H=e(x,["size","open","multiple","error","hint","disabled","label","placeholder","selectedMultiple","selected","rightAddons","valueRenderer","Arrow","innerProps","dataTestId","fieldClassName"]),O=o(!1),S=O[0],U=O[1],V=d(null),W=n(V,"keyboard")[0],Y=a((function(){return U(!0)}),[]),D=a((function(){return U(!1)}),[]),G=I({selected:B,selectedMultiple:w}),J=Boolean(G),K=!!z&&(J||!C);return r.createElement("div",{className:m,ref:V,onFocus:Y,onBlur:D},r.createElement(s,l({fieldClassName:t(c,y,(h={},h[u]=k,h[b]=W,h)),block:!0,size:E,focused:A||S,disabled:k,filled:J,label:K&&z,error:g,hint:j,rightAddons:(P||F)&&r.createElement(r.Fragment,null,F,P?r.cloneElement(P,{className:p}):null),"data-test-id":q},H,R),r.createElement("div",{className:f},C&&!J&&r.createElement("span",{className:_},C),J&&r.createElement("div",{className:v},G))))};export{x as Field};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Field}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Field}from"./component.js";import"../../../tslib.es6-9e9df1a1.js";import"react";import"classnames";import"../../../form-control/component.js";import"../../../hooks/useFocus/index.js";import"../../utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Arrow}from"./arrow/component.js";export{BaseSelect}from"./base-select/component.js";export{Field}from"./field/component.js";export{Optgroup}from"./optgroup/component.js";export{Option}from"./option/component.js";export{OptionsList}from"./options-list/component.js";export{VirtualOptionsList}from"./virtual-options-list/component.js";import"react";import"classnames";import"../../tslib.es6-
|
|
1
|
+
export{Arrow}from"./arrow/component.js";export{BaseSelect}from"./base-select/component.js";export{Field}from"./field/component.js";export{Optgroup}from"./optgroup/component.js";export{Option}from"./option/component.js";export{OptionsList}from"./options-list/component.js";export{VirtualOptionsList}from"./virtual-options-list/component.js";import"react";import"classnames";import"../../tslib.es6-9e9df1a1.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"../utils.js";import"./native-select/component.js";import"../../form-control/component.js";import"../../hooks/useFocus/index.js";import"./checkmark/component.js";import"react-virtual";import"../../hooks/usePrevious/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../../../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../../../tslib.es6-9e9df1a1.js";import n,{forwardRef as a,useCallback as o}from"react";import{isGroup as l}from"../../utils.js";var r=function(e){var t=e.option;return n.createElement("option",{value:t.key,disabled:t.disabled},"string"==typeof t.content?t.content:t.key)},i=function(e){var t=e.label,a=e.options;return n.createElement("optgroup",{label:t},a.map((function(e){return n.createElement(r,{option:e,key:e.key})})))},s=a((function(a,s){var m=a.className,p=a.disabled,c=a.multiple,u=a.value,f=a.name,d=a.options,b=a.onChange,k=e(a,["className","disabled","multiple","value","name","options","onChange"]),v=o((function(e){e.stopPropagation()}),[]);return n.createElement("select",t({className:m,disabled:p,multiple:c,name:f,value:u,onChange:b,onClick:v,ref:s},k),d.map((function(e){return l(e)?n.createElement(i,t({},e,{key:e.label})):n.createElement(r,{option:e,key:e.key})})))}));export{s as NativeSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{NativeSelect}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{NativeSelect}from"./component.js";import"../../../tslib.es6-9e9df1a1.js";import"react";import"../../utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-9e9df1a1.js";import t,{isValidElement as d}from"react";import i from"classnames";import{Checkmark as n}from"../checkmark/component.js";var o={option:"index-module_option__1Y-nZ",disabled:"index-module_disabled__3qFlt",s:"index-module_s__3ZiXJ",m:"index-module_m__3U_ko",l:"index-module_l__3AFdi",xl:"index-module_xl__37OwE",selected:"index-module_selected__3VkZj",highlighted:"index-module_highlighted__3bn_O",content:"index-module_content__3lPGB",textContent:"index-module_textContent__343E2"},l=function(l){var _,m,s=l.size,a=void 0===s?"s":s,c=l.className,r=l.option,x=l.children,h=l.selected,p=l.highlighted,u=l.disabled,g=l.Checkmark,k=void 0===g?n:g,b=l.innerProps,f=l.index,v=x||r.content||r.key;return t.createElement("div",e({},b,{className:i(o.option,o[a],c,(_={},_[o.highlighted]=p,_[o.selected]=h,_[o.disabled]=u,_)),"data-test-id":"option-"+f}),k&&t.createElement(k,{selected:h}),t.createElement("div",{className:i(o.content,(m={},m[o.textContent]=!d(v),m))},v))};export{l as Option};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Option}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Option}from"./component.js";import"../../../tslib.es6-9e9df1a1.js";import"react";import"classnames";import"../checkmark/component.js";
|
package/dist/select/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Select}from"./component.js";export{Arrow}from"./components/arrow/component.js";export{BaseSelect}from"./components/base-select/component.js";export{Field}from"./components/field/component.js";export{Optgroup}from"./components/optgroup/component.js";export{Option}from"./components/option/component.js";export{OptionsList}from"./components/options-list/component.js";export{VirtualOptionsList}from"./components/virtual-options-list/component.js";export{useSelectWithLoading}from"./presets/use-select-with-loading/hook.js";export{isGroup,isOptionShape,joinOptions,lastIndexOf,processOptions,useVisibleOptions}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{Select}from"./component.js";export{Arrow}from"./components/arrow/component.js";export{BaseSelect}from"./components/base-select/component.js";export{Field}from"./components/field/component.js";export{Optgroup}from"./components/optgroup/component.js";export{Option}from"./components/option/component.js";export{OptionsList}from"./components/options-list/component.js";export{VirtualOptionsList}from"./components/virtual-options-list/component.js";export{useSelectWithLoading}from"./presets/use-select-with-loading/hook.js";export{isGroup,isOptionShape,joinOptions,lastIndexOf,processOptions,useVisibleOptions}from"./utils.js";import"../tslib.es6-9e9df1a1.js";import"react";import"classnames";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"./components/native-select/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"./components/checkmark/component.js";import"react-virtual";import"../hooks/usePrevious/index.js";import"../skeleton/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{useSelectWithLoading}from"./use-select-with-loading/hook.js";import"../../tslib.es6-
|
|
1
|
+
export{useSelectWithLoading}from"./use-select-with-loading/hook.js";import"../../tslib.es6-9e9df1a1.js";import"react";import"../../skeleton/component.js";import"classnames";import"../components/option/component.js";import"../components/checkmark/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-9e9df1a1.js";import o,{useCallback as n}from"react";import{Skeleton as t}from"../../../skeleton/component.js";import{Option as i}from"../../components/option/component.js";import"classnames";import"../../components/checkmark/component.js";var r="index-module_skeleton__3exug";function m(m){var s=m.loading,l=void 0!==s&&s,a=m.visibleOptions,c=void 0===a?6:a,p=n((function(n){return o.createElement(i,e({},n,{Checkmark:null,highlighted:!l&&n.highlighted}))}),[l]),d=Array(c).fill(0).map((function(e,n){return{key:n,disabled:!0,content:o.createElement(t,{className:r,visible:!0})}}));return l?{Option:p,options:d}:null}export{m as useSelectWithLoading};
|
|
@@ -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-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r="index-module_wrapper__2MUBI",m="index-module_heading__1vASq",a="index-module_bottomAddons__2aL0E",i="index-module_border__2rk9E",d=function(d){var s,n=d.className,l=d.dataTestId,p=d.title,c=d.rightAddons,_=d.bottomAddons,y=d.border;return e.createElement("div",{"data-test-id":l,className:t(r,n,(s={},s[i]=y,s))},e.createElement("div",{className:m},e.createElement(o.Title,{tag:"h3",view:"xsmall",weight:"bold"},p),c&&e.createElement("div",null,c)),_&&e.createElement("div",{className:a},_))};export{d as SidepanelHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/space/Item.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-9e9df1a1.js";import*as t from"react";var a=function(a){var r=a.className,i=a.horizontalSize,l=a.verticalSize,n=a.length,m=a.direction,o=a.index,s=a.children,c=a.divider,d=a.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(c?2:1)}):g=e(e({},o<n&&{marginRight:i/(c?2:1)}),d&&{paddingBottom:l}),null==s?null:t.createElement(t.Fragment,null,t.createElement("div",{className:r,style:g},s),o<n-1&&c&&t.createElement("span",{style:e({width:"100%"},g)},c))};export{a as default};
|
package/dist/space/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-9e9df1a1.js";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var o={spaceContainer:"index-module_spaceContainer__3Dq0d",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__xJUHo",vertical:"index-module_vertical__on3nF",center:"index-module_center__7A1ZE",start:"index-module_start__1K4MQ",end:"index-module_end__o7H21",spaceItemFullWidth:"index-module_spaceItemFullWidth__jOTm4",spaceItem:"index-module_spaceItem__2F_mi"},l={s:12,m:16,l:20},d=i((function(i,d){var m,s,c=i.children,u=i.className,_=i.align,p=void 0===_?"start":_,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,F=i.wrap,W=void 0!==F&&F,I=i.divider,g=void 0!==I&&I,y=i.fullWidth,C=void 0!==y&&y,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?l[e]:e||0}(e)}))}),[x]),A=z[0],j=z[1],w=r.toArray(c);if(0===w.length)return null;var E=n(o.spaceContainer,o[f],((m={})[o[p]]=p,m[o.spaceContainerFullWidth]=C,m),u),N=n(o.spaceItem,((s={})[o.spaceItemFullWidth]=C,s)),H=w.map((function(e,i){return t.createElement(a,{className:N,key:N+"-"+i,direction:f,horizontalSize:A,verticalSize:j,length:w.length,index:i,wrap:W,divider:g},e)}));return t.createElement("div",{className:E,style:e({},W&&{flexWrap:"wrap",marginBottom:-j}),ref:d},H)}));export{d as Space};
|
package/dist/space/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Space}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Space}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"classnames";import"./Item.js";
|
|
@@ -10,7 +10,7 @@ type SuffixInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
|
|
|
10
10
|
value: string;
|
|
11
11
|
}) => void;
|
|
12
12
|
};
|
|
13
|
-
declare const SuffixInput: React.ForwardRefExoticComponent<Pick<InputProps, "
|
|
13
|
+
declare const SuffixInput: React.ForwardRefExoticComponent<Pick<InputProps, "error" | "className" | "dataTestId" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "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" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "step" | "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"> & {
|
|
14
14
|
value: string;
|
|
15
15
|
suffix?: string | undefined;
|
|
16
16
|
required?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-9e9df1a1.js";import n,{forwardRef as r,useState as a,useEffect as t,useCallback as i,Fragment as l}from"react";import s from"classnames";import{Input as m}from"../input/component.js";import{withSuffix as d}from"../with-suffix/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"../portal/component.js";import"react-dom";import"../portal/utils.js";var c={container:"index-module_container__17_Uh",minorPartAndCurrency:"index-module_minorPartAndCurrency__KGrfs",bold:"index-module_bold__mBp14",input:"index-module_input__2zS2T",suffixContainer:"index-module_suffixContainer__3DlRH",filled:"index-module_filled__2oM1c"},u=d(m),f=r((function(r,m){var d,f=r.value,p=r.suffix,_=r.placeholder,C=void 0===_?"":_,x=r.bold,v=void 0===x||x,N=r.className,h=r.focusedClassName,j=r.required,b=r.dataTestId,g=r.clear,E=void 0!==g&&g,q=r.onChange,A=r.onClear,T=e(r,["value","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","onChange","onClear"]),w=a(f),y=w[0],I=w[1];t((function(){return y!==f?I(f):function(){}}),[f]);var P=i((function(e){I(""),A&&A(e)}),[A]);return n.createElement("div",{className:s(c.container,(d={},d[c.bold]=v,d[c.filled]=Boolean(y),d))},n.createElement(u,o({},T,{suffix:n.createElement(l,null,y,n.createElement("span",{className:c.minorPartAndCurrency}," ",p)),suffixContainerClassName:c.suffixContainer,clear:E,required:j,placeholder:C,value:y,className:s(c.component,N),focusedClassName:h,inputClassName:c.input,onChange:function(e){var o=e.target,n=o.value;if(n===y){var r=o.selectionStart;window.requestAnimationFrame((function(){o.selectionStart=r,o.selectionEnd=r}))}I(n),q&&q(e,{value:n})},onClear:P,dataTestId:b,ref:m})))}));export{f as SuffixInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuffixInput}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{SuffixInput}from"./component.js";import"../tslib.es6-9e9df1a1.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"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as s}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as s}from"../tslib.es6-9e9df1a1.js";import o from"react";import r from"classnames";import{Button as t}from"../button/component.js";import{SuperEllipse as m}from"../super-ellipse/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";var p="component-module_component__2ITBq",a="component-module_superEllipse__ArZlb",l=function(l){var n=l.children,i=l.className,c=l.superEllipseProps,u=void 0===c?{}:c,d=u.className,_=e(u,["className"]),f=e(l,["children","className","superEllipseProps"]);return o.createElement(t,s({view:"ghost",className:r(p,i)},f),o.createElement(m,s({className:r(a,d),view:"secondary"},_),n))};export{l as SuperEllipseButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuperEllipseButton}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{SuperEllipseButton}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../super-ellipse/component.js";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"classnames";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var o="index-module_component__3E6RG",m="index-module_leftSide__27t82",r="index-module_leftAddons__1hmka",n="index-module_rightAddons__oESgN",i=function(i){var s=i.text,a=i.leftAddons,p=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{weight:"bold",tag:"span"},s),a&&e.createElement("div",{className:r},a)),p&&e.createElement("div",{className:n},p))};export{i as SuperListHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"classnames";import"../colors.module-de146e83.js";import"../common.module-a8e01692.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-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_component__2owJP",a="index-module_leftSide__dDCo_",r="index-module_leftAddons__gqGvn",s="index-module_disabled_dot__2wF8s",d="index-module_rightAddons__QpHoK",i=function(i){var n=i.text,l=i.rightAddons,p=i.leftAddons,c=i.color,_=void 0===c?"secondary":c,g=i.disabled,v=i.className,y=i.weight,u=void 0===y?"regular":y;return e.createElement("div",{className:t(m,v)},e.createElement("div",{className:a},p&&!g&&e.createElement("div",{className:r},p),g&&e.createElement("div",{className:r},e.createElement("span",{className:s})),e.createElement(o.Text,{weight:u,color:_,view:"title",tag:"span"},n)),l&&e.createElement("div",{className:d},l))};export{i as SuperListItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuperListItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{SuperListItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-9e9df1a1.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -16,7 +16,7 @@ type SwitchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'hint' |
|
|
|
16
16
|
}) => void;
|
|
17
17
|
dataTestId?: string;
|
|
18
18
|
};
|
|
19
|
-
declare const Switch: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
19
|
+
declare const Switch: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "size" | "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" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
|
|
20
20
|
checked?: boolean | undefined;
|
|
21
21
|
label?: ReactNode;
|
|
22
22
|
hint?: ReactNode;
|
package/dist/switch/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a}from"../tslib.es6-9e9df1a1.js";import d,{forwardRef as n,useRef as s,useCallback as t}from"react";import c from"react-merge-refs";import l from"classnames";import{useFocus as o}from"../hooks/useFocus/index.js";var m={component:"index-module_component__1AP_p",checked:"index-module_checked__2oqiY",switch:"index-module_switch__GR_yw",start:"index-module_start__2JC_c",center:"index-module_center__HJdzR",addons:"index-module_addons__2n-cM",block:"index-module_block__3g4Ka",content:"index-module_content__2AI9y",label:"index-module_label__3gE5K",hint:"index-module_hint__2uMpX",reversed:"index-module_reversed__TQn2L",disabled:"index-module_disabled__1-qzh",focused:"index-module_focused__2WhHc"},i=n((function(n,i){var r,_=n.reversed,u=void 0!==_&&_,h=n.checked,b=void 0!==h&&h,p=n.align,k=void 0===p?"start":p,x=n.addons,f=n.block,v=n.disabled,g=n.label,E=n.hint,N=n.name,w=n.value,y=n.className,C=n.onChange,I=n.dataTestId,T=e(n,["reversed","checked","align","addons","block","disabled","label","hint","name","value","className","onChange","dataTestId"]),j=s(null),q=o(j,"keyboard")[0],z=t((function(e){C&&C(e,{checked:e.target.checked,name:N})}),[C,N]);return d.createElement("label",{className:l(m.component,m[k],y,(r={},r[m.disabled]=v,r[m.checked]=b,r[m.reversed]=u,r[m.focused]=q,r[m.block]=f,r)),ref:c([j,i])},d.createElement("input",a({type:"checkbox",onChange:z,disabled:v,checked:b,name:N,value:w,"data-test-id":I},T)),d.createElement("span",{className:m.switch}),(g||E)&&d.createElement("span",{className:m.content},g&&d.createElement("span",{className:m.label},g),E&&d.createElement("span",{className:m.hint},E)),x&&d.createElement("span",{className:m.addons},x))}));export{i as Switch};
|
package/dist/switch/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Switch}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Switch}from"./component.js";import"../tslib.es6-9e9df1a1.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
|
package/dist/table/columns.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const ClientsColumns: (t: any) => {
|
|
2
|
+
declare const ClientsColumns: (t: any) => ({
|
|
3
3
|
Header: any;
|
|
4
4
|
accessor: string;
|
|
5
5
|
Cell: ({ row: { original } }: {
|
|
@@ -7,5 +7,15 @@ declare const ClientsColumns: (t: any) => {
|
|
|
7
7
|
original: any;
|
|
8
8
|
};
|
|
9
9
|
}) => JSX.Element;
|
|
10
|
-
|
|
10
|
+
enableSort?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
Header: any;
|
|
13
|
+
accessor: string;
|
|
14
|
+
enableSort: boolean;
|
|
15
|
+
Cell: ({ row: { original } }: {
|
|
16
|
+
row: {
|
|
17
|
+
original: any;
|
|
18
|
+
};
|
|
19
|
+
}) => JSX.Element;
|
|
20
|
+
})[];
|
|
11
21
|
export { ClientsColumns };
|
package/dist/table/columns.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{Table as o}from"./component.js";import"classnames";import"ts-keycode-enum";import"../cell/pure/component.js";import"./components/cell/component.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import{Table as o}from"./component.js";import"classnames";import"ts-keycode-enum";import"../cell/pure/component.js";import"./components/cell/component.js";import"../tslib.es6-9e9df1a1.js";import"../component-0c25076d.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../super-ellipse/component.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../divider/component.js";import"../avatar/component.js";import"../spinner/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../cell/transaction/component.js";import"../amount/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"./components/row/component.js";import"./table.js";import"react-table";import"./components/cells/index.js";import"alpha-cli-icons";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-93174748.js";import"../_commonjsHelpers-3e2d7ba0.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";var e=function(e){return[{Header:e("tables.certificate"),accessor:"title",Cell:function(e){var r=e.row.original;return t.createElement(o.Cell,{title:r.title})}},{Header:e("tables.order"),accessor:"description",enableSort:!0,Cell:function(e){var r=e.row.original;return t.createElement(o.Cell,{title:r.time})}}]};export{e as ClientsColumns};
|
package/dist/table/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Cell as o}from"./components/cell/component.js";import{Row as t}from"./components/row/component.js";import{Table as e}from"./table.js";import"../tslib.es6-
|
|
1
|
+
import{Cell as o}from"./components/cell/component.js";import{Row as t}from"./components/row/component.js";import{Table as e}from"./table.js";import"../tslib.es6-9e9df1a1.js";import"react";import"classnames";import"../component-0c25076d.js";import"ts-keycode-enum";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../super-ellipse/component.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-de146e83.js";import"../common.module-a8e01692.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../divider/component.js";import"../cell/pure/component.js";import"../avatar/component.js";import"../spinner/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../cell/transaction/component.js";import"../amount/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"react-table";import"./components/cells/index.js";import"alpha-cli-icons";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-93174748.js";import"../_commonjsHelpers-3e2d7ba0.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";var s={Cell:o,Row:t,TableComponent:e};export{s as Table};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,a as
|
|
1
|
+
import{_ as t,a as e}from"../../../tslib.es6-9e9df1a1.js";import o from"react";import s from"classnames";import{C as m}from"../../../component-0c25076d.js";import"ts-keycode-enum";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../super-ellipse/component.js";import"../../../super-ellipse-pure/component.js";import"../../../super-ellipse-shape/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-de146e83.js";import"../../../common.module-a8e01692.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../divider/component.js";import"../../../cell/pure/component.js";import"../../../avatar/component.js";import"../../../spinner/component.js";import"../../../avatar/hooks/use-image-loading-state.js";import"../../../cell/transaction/component.js";import"../../../amount/component.js";import"../../../utils/format-amount/util.js";import"../../../utils/get-currency-symbol/util.js";import"../../../utils/data/currency-codes.js";import"../../../utils/split-amount/util.js";var r="index-module_cell__OF2zH",p="index-module_children__35FGz",i=function(i){var n=i.dataTestID,a=i.className,l=i.children,c=t(i,["dataTestID","className","children"]);return o.createElement("td",e({"data-test-id":n,className:s(r,a)},c),l?o.createElement("div",{className:s(p)},l):o.createElement(m.Base,e({},c)))};export{i as Cell};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Cell}from"./component.js";import"../../../tslib.es6-
|
|
1
|
+
export{Cell}from"./component.js";import"../../../tslib.es6-9e9df1a1.js";import"react";import"classnames";import"../../../component-0c25076d.js";import"ts-keycode-enum";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../super-ellipse/component.js";import"../../../super-ellipse-pure/component.js";import"../../../super-ellipse-shape/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-de146e83.js";import"../../../common.module-a8e01692.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../divider/component.js";import"../../../cell/pure/component.js";import"../../../avatar/component.js";import"../../../spinner/component.js";import"../../../avatar/hooks/use-image-loading-state.js";import"../../../cell/transaction/component.js";import"../../../amount/component.js";import"../../../utils/format-amount/util.js";import"../../../utils/get-currency-symbol/util.js";import"../../../utils/data/currency-codes.js";import"../../../utils/split-amount/util.js";
|