@alphakits/ui 1.10.9 → 1.10.11
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-c57336e5.js → _commonjsHelpers-2200265a.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/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.d.ts +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.d.ts +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.d.ts +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-03d5ce61.js → colors.module-fdef9b82.js} +0 -0
- package/dist/{common.module-b68de633.js → common.module-05b45c43.js} +0 -0
- package/dist/{component-b6984226.d.ts → component-20cb6564.d.ts} +0 -0
- package/dist/{component-b6984226.js → component-20cb6564.js} +0 -0
- package/dist/{contact-block-4eed9f4b.d.ts → contact-block-2a55b35d.d.ts} +0 -0
- package/dist/{contact-block-4eed9f4b.js → contact-block-2a55b35d.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-62468f27.js → formik.esm-7e28e586.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-b4fa1cdc.js → gutters.module-43246042.js} +0 -0
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.d.ts +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/{index-448089cc.js → index-b9b0450e.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.d.ts +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{intersection-observer-5ad2ac98.js → intersection-observer-5592775d.js} +0 -0
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.d.ts +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/{parse-query-params-2329ed30.d.ts → parse-query-params-46fb4ac1.d.ts} +0 -0
- package/dist/{parse-query-params-2329ed30.js → parse-query-params-46fb4ac1.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.d.ts +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.d.ts +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.d.ts +2 -0
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.d.ts +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/suffix-input/component.d.ts +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.d.ts +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/row/component.js +1 -1
- package/dist/table/components/row/index.js +1 -1
- package/dist/table/components/rows/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.d.ts +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/{tslib.es6-826105f1.js → tslib.es6-444ada29.js} +0 -0
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/{use-image-render-component-738f8f63.d.ts → use-image-render-component-a564176c.d.ts} +0 -0
- package/dist/{use-image-render-component-738f8f63.js → use-image-render-component-a564176c.js} +0 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.d.ts +2 -2
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange'> & {
|
|
|
18
18
|
dataTestId?: string;
|
|
19
19
|
indeterminate?: boolean;
|
|
20
20
|
};
|
|
21
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Pick<NativeProps, "
|
|
21
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Pick<NativeProps, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "src" | "alt" | "required" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width"> & {
|
|
22
22
|
checked?: boolean | undefined;
|
|
23
23
|
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
24
24
|
checked: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-444ada29.js";import a,{forwardRef as d,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=d((function(d,r){var _,u=d.checked,b=d.label,x=d.hint,h=d.size,p=void 0===h?"m":h,k=d.align,f=void 0===k?"center":k,E=d.addons,N=d.block,g=d.onChange,I=d.className,v=d.name,C=d.disabled,y=d.dataTestId,z=d.indeterminate,D=void 0!==z&&z,O=e(d,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return a.createElement("label",{className:i(s.component,s[p],s[f],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=D,_[s.focused]=j,_[s.block]=N,_)),ref:o([T,r])},a.createElement("span",{className:s.box},a.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":y},O)),u&&a.createElement(l,null),D&&!u&&a.createElement("div",{className:s.indeterminateIcon},a.createElement(m,null))),(b||x)&&a.createElement("span",{className:s.content},b&&a.createElement("span",{className:s.label},b),x&&a.createElement("span",{className:s.hint},x)),E&&a.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Checkbox}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Checkbox}from"./component.js";import"../tslib.es6-444ada29.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-444ada29.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",m=function(m){var l=m.title,a=m.subtitle,s=m.selected,d=void 0===s?[]:s,p=m.data,u=void 0===p?[]:p,v=m.onChange,g=m.columns,y=void 0===g?1:g,f=m.gr,h=void 0===f?20:f,x=m.gc,b=void 0===x?20:x,j=m.dataTestId,k=d||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:y,gr:h,gc:b},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(k,[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{m as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-444ada29.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-444ada29.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-2200265a.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,b=u.collapsable,v=u.onChange,E=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&E.push(t)}));var y=n(E),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?v(g.filter((function(e){return!t.includes(e)}))):v(e(g,t))}))},F=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),b&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"../tslib.es6-444ada29.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-2200265a.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-444ada29.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-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-2200265a.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-444ada29.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-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",a="index-module_row__g6gnE",l="index-module_label__kuH6r",c="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,x=u.label,f=u.content,b=u.expanded,y=u.addons,h=u.children,g=u.disabled,v=o(b),E=v[0],w=v[1];return t((function(){w(b)}),[b]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:a},x&&e.createElement(s.Text,{className:l,color:"secondary",view:"title",weight:"medium"},x),f),e.createElement("div",{className:a},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(c,(j={},j[d]=E,j)),disabled:g,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},h))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-2200265a.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-444ada29.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as
|
|
1
|
+
import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as a}from"react";import u from"classnames";import{a as c}from"../_commonjsHelpers-2200265a.js";import{ResizeObserver as l}from"resize-observer";import{Link as f}from"../link/component.js";import"../tslib.es6-444ada29.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k=x?x.toStringTag:void 0;var z=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?T(e):N(e)};var S=function(e){return null!=e&&"object"==typeof e};var C=function(e){return"symbol"==typeof e||S(e)&&"[object Symbol]"==z(e)},L=/^[-+]0x[0-9a-f]+$/i,H=/^0b[01]+$/i,$=/^0o[0-7]+$/i,D=parseInt;var F=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=H.test(e);return n||$.test(e)?D(e.slice(2),n?2:8):L.test(e)?NaN:+e},I=Math.max,M=Math.min;var P=function(e,t,n){var r,o,i,a,u,c,l=0,f=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function b(e){return l=e,u=setTimeout(h,t),f?m(e):a}function y(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=i}function h(){var e=p();if(y(e))return j(e);u=setTimeout(h,function(e){var n=t-(e-c);return d?M(n,i-(e-l)):n}(e))}function j(e){return u=void 0,v&&r?m(e):(r=o=void 0,a)}function x(){var e=p(),n=y(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return b(c);if(d)return clearTimeout(u),u=setTimeout(h,t),m(c)}return void 0===u&&(u=setTimeout(h,t)),a}return t=F(t)||0,s(n)&&(f=!!n.leading,i=(d="maxWait"in n)?I(F(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=c=o=u=void 0},x.flush=function(){return void 0===u?a:j(p())},x},U="index-module_collapse__ORa-f",W="index-module_content__UDk-m",A="index-module_expandedContent__iQszl",Q="index-module_children_wrap__ekYCk",R=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=P((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new l(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=a((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:u(y,U),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:u(W,h,(s={},s[A]=S,s)),style:$},e.createElement("div",{className:u(Q),ref:O},b)),D&&e.createElement(f,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{R as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-2200265a.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-444ada29.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{Button as o}from"../button/component.js";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import t from"react";import{Button as o}from"../button/component.js";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-444ada29.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r="index-module_wrapper__dZRhL",n="index-module_link_button__VKWD-",m=function(m){var p=m.link,s=m.notifierText,a=m.visibleLink,c=m.icon;return t.createElement("div",{className:r},t.createElement(o,{leftAddons:c,className:n,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(p).then((function(){e({title:s,view:"positive",offset:30})}))},view:"ghost"}),t.createElement(i.Text,{view:"title",weight:"medium",color:"secondary"},a||p))};export{m as CopyButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CopyButton}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{CopyButton}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-444ada29.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/date/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as t,a as o}from"../tslib.es6-444ada29.js";import e from"react";import{format as a}from"date-fns";import{ru as r,de as m,enGB as i}from"date-fns/locale";import{Typography as p}from"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s={RU:r,DE:m,EN:i},d=function(t,o,e){void 0===o&&(o="dd.MM.yyyy"),void 0===e&&(e="RU");var r=new Date(t);return"[object Date]"===Object.prototype.toString.call(r)?Number.isNaN(r.getTime())?"invalid date":a(r,o,{locale:s[e]}):"invalid date"},n=function(a){var r=a.className,m=a.dataTestId,i=a.date,s=a.format,n=void 0===s?"dd.MM.yyyy":s,c=a.country,y=void 0===c?"RU":c,l=t(a,["className","dataTestId","date","format","country"]);return e.createElement(p.Text,o({},l,{className:r,"data-test-id":m}),d(i,n,y))};export{n as FormattedDate,d as normalizeDate};
|
package/dist/date/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-444ada29.js";import"react";import"date-fns";import"date-fns/locale";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{ChevronBackM as t,ChevronForwardM as o}from"alpha-cli-icons";import d from"classnames";import{startOfISOWeek as a,parseISO as r,isAfter as i,isBefore as n,isToday as m,format as y,add as s,subDays as p,subWeeks as c}from"date-fns";import{Button as l}from"../button/component.js";import{IconButton as _}from"../icon-button/component.js";import{Typography as u}from"../typography/component.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import{ChevronBackM as t,ChevronForwardM as o}from"alpha-cli-icons";import d from"classnames";import{startOfISOWeek as a,parseISO as r,isAfter as i,isBefore as n,isToday as m,format as y,add as s,subDays as p,subWeeks as c}from"date-fns";import{Button as l}from"../button/component.js";import{IconButton as _}from"../icon-button/component.js";import{Typography as u}from"../typography/component.js";import"../tslib.es6-444ada29.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var w={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},M=function(M){var f=M.view,h=void 0===f?"day":f,j=M.startDate,g=M.onChange,v=M.minDate,x=M.maxDate,b=a(r(j)),k="day"===h?r(j):b,E=v?r(v):new Date,D=i(k,E),C=!x||n(k,r(x)),T=m(k);return e.createElement("div",{className:w.date_switcher},e.createElement(_,{disabled:!!v&&!D,onClick:function(){"day"===h&&g(y(p(k,1),"yyyy-MM-dd")),"week"===h&&g(y(c(k,1),"yyyy-MM-dd"))},icon:t}),e.createElement("div",{className:d(w.date_wrap,w[h])},e.createElement(u.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===h?y(k,"dd.MM.yy"):y(k,"dd.MM.yy")+" - "+y(s(k,{days:6}),"dd.MM.yy"))),e.createElement(_,{disabled:!C,onClick:function(){"day"===h&&g(y(s(k,{days:1}),"yyyy-MM-dd")),"week"===h&&g(y(s(k,{days:7}),"yyyy-MM-dd"))},icon:o}),e.createElement(l,{disabled:T,onClick:function(){g(y(new Date,"yyyy-MM-dd"))},view:"ghost"},"Сегодня"))};export{M as DateSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateSwitcher}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"date-fns";import"../button/component.js";import"../tslib.es6-
|
|
1
|
+
export{DateSwitcher}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"date-fns";import"../button/component.js";import"../tslib.es6-444ada29.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/footer/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-444ada29.js";import t from"react";import{AppStoreM as o,GooglePlayM as a,FacebookM as r,YoutubeM as m,InstagramM as n}from"alpha-cli-icons";import{Grid as i}from"../grid/component.js";import{IconButton as s}from"../icon-button/component.js";import{useMatchMedia as c}from"../mq/use-match-media.js";import{Padding as l}from"../padding/component.js";import{SectionWrapper as p}from"../section-wrapper/component.js";import{ContactsBlock as d}from"./components/contacts-block.js";import{s as f}from"../contact-block-2a55b35d.js";import"../grid/row/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-43246042.js";import"../grid/col/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../mq/utils.js";var u=function(u){var E=u.sections,g=void 0===E?[]:E,b=u.contacts,j=void 0===b?[]:b,k=u.company,v=u.email,h=u.address,x=u.agbText,N=u.agbLink,w=void 0===N?"":N,y=u.facebookLink,L=u.instagramLink,B=u.youtubeLink,T=u.appText,q=u.google,F=u.appstore,C=c("(max-width: 712px)")[0],R=y||L||B,_=T&&F&&q;return t.createElement(p,{pb:"m",pt:"l",isBlackBg:!0},t.createElement(t.Fragment,null,t.createElement("div",{className:f.wrapper},t.createElement(i.Row,{className:f.row_wrapper,justify:"left"},!!g.length&&g.map((function(e){var o;return t.createElement(i.Col,{key:e.title,width:{desktop:4,mobile:12}},t.createElement("div",{className:f.block},e.title&&t.createElement("span",{className:f.title},e.title),!!(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)&&e.items.map((function(e){return t.createElement("a",{key:e.text,className:f.link,href:e.link},e.text)}))))}))),t.createElement(d,{contacts:j,email:v,address:h,agbLink:w,agbText:x})),t.createElement("div",{className:f.bottomBlock},_&&t.createElement("div",{className:f.left},T&&t.createElement("span",{className:f.description},T),t.createElement("div",{className:f.buttons},F&&t.createElement(s,e({},{href:F},{icon:o})),q&&t.createElement(s,e({},{href:q},{icon:a})))),(k||R)&&t.createElement("div",{className:f.right},k&&t.createElement("span",null,k),!C&&R&&t.createElement(l,{padding:"8px"}),t.createElement("div",{className:f.buttons},y&&t.createElement(s,e({},{href:y},{icon:r})),B&&t.createElement(s,e({},{href:B},{icon:m})),L&&t.createElement(s,e({},{href:L},{icon:n})))))))};export{u as Footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{s as t,C as a}from"../../contact-block-
|
|
1
|
+
import e from"react";import{s as t,C as a}from"../../contact-block-2a55b35d.js";var l=function(l){var n=l.contacts,c=l.email,r=l.address,s=l.agbText,i=l.agbLink;return(null==n?void 0:n.length)||c||r||i||s?e.createElement("div",{className:t.contacts},!!(null==n?void 0:n.length)&&n.map((function(t){return e.createElement(a,{key:t.title,title:t.title,value:t.value,description:t.description})})),c&&e.createElement("span",{className:t.email},c),r&&e.createElement("span",{className:t.description},r),s&&e.createElement("a",{className:t.link,href:i},s)):null};export{l as ContactsBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{C as ContactBlock}from"../contact-block-
|
|
1
|
+
import"react";export{C as ContactBlock}from"../contact-block-2a55b35d.js";
|
package/dist/footer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Footer}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Footer}from"./component.js";import"../tslib.es6-444ada29.js";import"react";import"alpha-cli-icons";import"../grid/component.js";import"../grid/row/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-43246042.js";import"../grid/col/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../mq/use-match-media.js";import"../mq/utils.js";import"../padding/component.js";import"../section-wrapper/component.js";import"./components/contacts-block.js";import"../contact-block-2a55b35d.js";
|
package/dist/form/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Button as
|
|
1
|
+
import o from"react";import{Button as e}from"../button/component.js";import{FlexColumns as t}from"../flex-columns/component.js";import{Input as n}from"../input/component.js";import{ModalContext as r}from"../modal/context.js";import{RestForm as m}from"./templates/rest-form/index.js";import"../tslib.es6-444ada29.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../modal/components/modals/index.js";import"../modal/components/modal-backgroung/index.js";import"../modal/hooks/use-modal.js";import"uuid";import"alpha-cli-icons";import"../formik.esm-7e28e586.js";import"../index-b9b0450e.js";import"../_commonjsHelpers-2200265a.js";import"../icon-button/component.js";import"../list-allert/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../sidepanel-header/component.js";import"./components/form-footer/index.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./components/form-wrapper/index.js";import"./components/form-updating/index.js";var i={baz:"baz",bar:"bar"},s=function(){var e=o.useState(!0),r=e[0],s=e[1],p=o.useState(!1),a=p[0],c=p[1],l=o.useState(!1),u=l[0],d=l[1];o.useEffect((function(){setTimeout((function(){return s(!1)}),3e3)}),[]);return o.createElement(m,{recordId:8273682763,initialValues:i,customValidationFields:["bar"],save:function(){return new Promise((function(o){c(!0),setTimeout((function(){o(),c(!1)}),3e3)}))},remove:function(){return new Promise((function(o){d(!0),setTimeout((function(){o(),d(!1)}),3e3)}))},title:"custom title",loading:r,submitButtonText:"csdcds",updating:a,removing:u,close:function(){},t:function(o){return o}},(function(e){var r=e.values,m=e.touched,i=e.errors,s=e.handleChange;return o.createElement(t,{columns:1,gr:16,gc:0},o.createElement(n,{label:"baz",value:r.baz,onChange:s("baz"),error:m.baz&&i.baz}),o.createElement(n,{label:"bar",value:r.bar,onChange:s("bar"),error:m.bar&&i.bar}))}))},p=function(){var t=(0,o.useContext(r).openModal)(s);return o.createElement(o.Fragment,null,o.createElement(e,{onClick:t},"open crud modal"))};export{p as Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Button as t}from"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
import e from"react";import{Button as t}from"../../../button/component.js";import"../../../tslib.es6-444ada29.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var o="index-module_component__ijVOx",n=function(n){var i=n.submitButtonText,a=void 0===i?"save":i,r=n.submit,s=n.close,m=n.children,c=n.loading,d=n.disabled,l=n.t;return e.createElement("div",{className:o},e.createElement(t,{view:"primary",size:"xs",loading:c,disabled:d,dataTestId:"buttonSave",onClick:function(){return r()}},l(a)),e.createElement(t,{view:"secondary",size:"xs",dataTestId:"buttonCancel",onClick:s},l("cancel")),m)};export{n as FormFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as t}from"./form-updating/index.js";import{FormWrapper as m}from"./form-wrapper/index.js";import"react";import"../../button/component.js";import"../../tslib.es6-
|
|
1
|
+
import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as t}from"./form-updating/index.js";import{FormWrapper as m}from"./form-wrapper/index.js";import"react";import"../../button/component.js";import"../../tslib.es6-444ada29.js";import"react-merge-refs";import"classnames";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../skeleton/component.js";import"./form-outer/index.js";var e={Footer:o,Wrapper:m,Updating:t,Loading:r};export{e as Form};
|
package/dist/form/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CrudForm}from"./templates/crud-form/index.js";export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"alpha-cli-icons";import"../formik.esm-
|
|
1
|
+
export{CrudForm}from"./templates/crud-form/index.js";export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"alpha-cli-icons";import"../formik.esm-7e28e586.js";import"../index-b9b0450e.js";import"../_commonjsHelpers-2200265a.js";import"../icon-button/component.js";import"../tslib.es6-444ada29.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../sidepanel-header/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/form-footer/index.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./components/form-wrapper/index.js";import"./utils/get-default-values.js";import"./components/form-updating/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{TrashM as o}from"alpha-cli-icons";import{F as t}from"../../../formik.esm-
|
|
1
|
+
import e from"react";import{TrashM as o}from"alpha-cli-icons";import{F as t}from"../../../formik.esm-7e28e586.js";import{IconButton as r}from"../../../icon-button/component.js";import{SidepanelHeader as m}from"../../../sidepanel-header/component.js";import{FormFooter as n}from"../../components/form-footer/index.js";import{FormLoading as i}from"../../components/form-loading/index.js";import{FormOuter as s}from"../../components/form-outer/index.js";import{FormWrapper as a}from"../../components/form-wrapper/index.js";import{getDefaultValues as l}from"../../utils/get-default-values.js";import"../../../index-b9b0450e.js";import"../../../_commonjsHelpers-2200265a.js";import"../../../tslib.es6-444ada29.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";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-fdef9b82.js";import"../../../common.module-05b45c43.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../skeleton/component.js";var p="index-module_header_addons__BmSJ0",d="index-module_disabled_form_inner__F7BtU",c=function(c){var u=c.recordId,f=c.title,j=c.initialValues,b=c.defaultValues,h=c.validationSchema,g=c.submitButtonText,v=c.loading,x=c.updating,y=c.removing,_=c.save,E=c.remove,B=c.close,S=c.t,k=c.children,T=c.headerAddon;if(v)return e.createElement(i,null);var F=!!u&&!!E,V=F||T?e.createElement("div",{className:p},F&&e.createElement(r,{dataTestId:"removeTariffBtn",size:"m",disabled:x,loading:y,onClick:E,icon:o}),T):null;return e.createElement(t,{validationSchema:h,initialValues:l(j,b),onSubmit:_},(function(o){return e.createElement(s,null,e.createElement(m,{rightAddons:V,title:f,border:!1}),e.createElement(a,null,(x||y)&&e.createElement("div",{className:d}),k(o)),e.createElement(n,{t:S,loading:x,disabled:y,submit:o.handleSubmit,submitButtonText:g,close:B}))}))};export{c as CrudForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{F as o}from"../../../formik.esm-
|
|
1
|
+
import e from"react";import{F as o}from"../../../formik.esm-7e28e586.js";import{SidepanelHeader as t}from"../../../sidepanel-header/component.js";import{FormFooter as r}from"../../components/form-footer/index.js";import{FormOuter as m}from"../../components/form-outer/index.js";import{FormWrapper as i}from"../../components/form-wrapper/index.js";import{getDefaultValues as n}from"../../utils/get-default-values.js";import"../../../index-b9b0450e.js";import"../../../_commonjsHelpers-2200265a.js";import"classnames";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-444ada29.js";import"../../../typography/title/component.js";import"../../../colors.module-fdef9b82.js";import"../../../common.module-05b45c43.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var s=function(s){var p=s.initialValues,l=s.defaultValues,a=s.children,c=s.submitCallback,u=s.close,f=s.t,j=n(p,l);return e.createElement(o,{initialValues:j,onSubmit:function(e){c(e),u()}},(function(o){return e.createElement(m,null,e.createElement(t,{title:f("filters"),border:!1}),e.createElement(i,null,a(o)),e.createElement(r,{t:f,submit:o.handleSubmit,close:u}))}))};export{s as FiltersForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{TrashM as t}from"alpha-cli-icons";import{F as o}from"../../../formik.esm-
|
|
1
|
+
import e from"react";import{TrashM as t}from"alpha-cli-icons";import{F as o}from"../../../formik.esm-7e28e586.js";import{IconButton as r}from"../../../icon-button/component.js";import{ListAllert as n}from"../../../list-allert/component.js";import{SidepanelHeader as i}from"../../../sidepanel-header/component.js";import{FormFooter as m}from"../../components/form-footer/index.js";import{FormLoading as s}from"../../components/form-loading/index.js";import{FormOuter as a}from"../../components/form-outer/index.js";import{FormUpdating as l}from"../../components/form-updating/index.js";import{FormWrapper as p}from"../../components/form-wrapper/index.js";import"../../../index-b9b0450e.js";import"../../../_commonjsHelpers-2200265a.js";import"../../../tslib.es6-444ada29.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";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-fdef9b82.js";import"../../../common.module-05b45c43.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../skeleton/component.js";var d="index-module_header_addons__Kx-q1",c="index-module_disabled_form_inner__9HqiU";function u(u){var f=u.recordId,j=u.title,b=u.initialValues,v=u.submitButtonText,x=u.loading,g=u.updating,h=u.removing,E=u.customValidationFields,y=u.validate,_=u.save,k=u.remove,T=u.close,q=u.t,A=u.children,B=u.headerAddon,F=u.error,N=u.softError;if(F)return e.createElement("div",null,"Ошибка ");if(x)return e.createElement(s,null);var S,V,w,C=!!f&&!!k,H=C||B?e.createElement("div",{className:d},C&&e.createElement(r,{dataTestId:"removeTariffBtn",size:"m",disabled:g,loading:h,onClick:k,icon:t}),B):null;return e.createElement(o,{validate:(S=y,V=E,S||(V?(w=V,function(e){return w.reduce((function(t,o){return("object"==typeof e?e:{})[o]||(t[o]="Required"),t}),{})}):void 0)),initialValues:b,onSubmit:_},(function(t){var o=N||(t.submitCount?JSON.stringify(t.errors):void 0);return e.createElement(a,null,(g||h)&&e.createElement(l,null),e.createElement(i,{rightAddons:H,bottomAddons:!!o&&e.createElement(n,{text:o,view:"negative"}),title:j,border:!1}),e.createElement(p,null,(g||h)&&e.createElement("div",{className:c}),A(t)),e.createElement(m,{t:q,disabled:h,submit:t.handleSubmit,submitButtonText:v,close:T}))}))}export{u as RestForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-444ada29.js";function e(e,t){return Object.entries(t).reduce((function(t,n){var a,i=n[0],o=n[1];return r(((a={})[i]=e[i]||o,a),t)}),{})}export{e as getDefaultValues};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../tslib.es6-444ada29.js";import l from"react";import s from"classnames";var a={component:"index-module_component__88xUs",inner:"index-module_inner__5E-18",inputWrapper:"index-module_inputWrapper__EYDad",input:"index-module_input__28cIX",label:"index-module_label__38axD",labelInner:"index-module_labelInner__EJhNP",addons:"index-module_addons__lhT1R",leftAddons:"index-module_leftAddons__LEkge",rightAddons:"index-module_rightAddons__zsPCo",sub:"index-module_sub__i9z6r",hint:"index-module_hint__RpKM-",block:"index-module_block__flzeK",s:"index-module_s__prKUx",hasLabel:"index-module_hasLabel__ZoVEF",m:"index-module_m__WsWRp",l:"index-module_l__GgDaN",hasLeftAddons:"index-module_hasLeftAddons__SCMwi",hasRightAddons:"index-module_hasRightAddons__-5ME3",disabled:"index-module_disabled__xb0nE",focused:"index-module_focused__gP4eM",hasError:"index-module_hasError__YIyAz",filled:"index-module_filled__eiB1o",error:"index-module_error__kbem3"},n=l.forwardRef((function(n,o){var i,r,t=n.block,_=void 0!==t&&t,m=n.size,u=void 0===m?"s":m,c=n.className,b=n.required,f=n.fieldClassName,h=n.labelClassName,x=n.addonsClassName,p=n.disabled,E=n.focused,N=n.filled,A=n.error,g=n.hint,v=n.label,C=n.leftAddons,k=n.rightAddons,I=n.bottomAddons,L=n.children,R=n.dataTestId,z=e(n,["block","size","className","required","fieldClassName","labelClassName","addonsClassName","disabled","focused","filled","error","hint","label","leftAddons","rightAddons","bottomAddons","children","dataTestId"]),W="string"==typeof A?A:"";return l.createElement("div",{"data-test-id":R,className:s(a.component,c,a[u],(i={},i[a.block]=_,i[a.hasLeftAddons]=C,i[a.hasRightAddons]=k||A,i))},l.createElement("div",d({},z,{className:s(f,a.inner,(r={},r[a.focused]=E,r[a.disabled]=p,r[a.filled]=N,r[a.hasError]=A,r[a.hasLabel]=v,r)),ref:o}),C&&l.createElement("div",{className:s(a.addons,a.leftAddons,x)},C),l.createElement("div",{className:a.inputWrapper},v&&l.createElement("div",{className:s(a.label,h)},l.createElement("span",{className:a.labelInner},b?v+" *":v)),l.createElement("div",{className:a.input},L)),k&&l.createElement("div",{className:s(a.addons,a.rightAddons,x)},k)),I,W&&l.createElement("span",{className:s(a.sub,a.error)},W),g&&!W&&l.createElement("span",{className:s(a.sub,a.hint)},g))}));export{n as FormControl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormControl}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormControl}from"./component.js";import"../tslib.es6-444ada29.js";import"react";import"classnames";
|