@alphakits/ui 1.27.27 → 1.27.28
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/PhotoS-9e6032f3.js +1 -0
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/badge/component.js +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +2 -2
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/box/component.js +1 -1
- package/dist/box/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/use-calendar.js +1 -1
- package/dist/calendar/use-period.js +1 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.js +1 -1
- package/dist/capitalize-0b1c39f0.js +1 -0
- 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/component.js +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +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-42c4e92f.js +1 -0
- package/dist/component-e7fa3a41.js +1 -0
- package/dist/component-f17d87dc.js +1 -0
- package/dist/contact-block-82f5a2e8.js +1 -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-functions.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/decorated-item/component.js +1 -1
- package/dist/decorated-item/index.js +1 -1
- package/dist/divider/component.js +1 -1
- package/dist/divider/index.js +1 -1
- package/dist/dot/component.js +1 -1
- package/dist/dot/index.js +1 -1
- package/dist/flex/component.js +1 -1
- package/dist/flex/index.js +1 -1
- package/dist/flex-columns/component.js +1 -1
- package/dist/flex-columns/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/form-loading/index.js +1 -1
- package/dist/form/components/form-outer/index.js +1 -1
- package/dist/form/components/form-updating/index.js +1 -1
- package/dist/form/components/form-wrapper/index.js +1 -1
- package/dist/form/components/index.d.ts +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/base-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.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/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-7d357b70.js +1 -0
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/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.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.d.ts +0 -13
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-preview/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/components/navigation-bar/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index-04601088.js +1 -0
- package/dist/{index-00def255.js → index-0a8de33a.js} +1 -1
- package/dist/index-2c75fc44.js +1 -0
- package/dist/{index-8347460a.js → index-5a2b7231.js} +1 -1
- package/dist/{index-579985bf.js → index-6036e75d.js} +1 -1
- package/dist/{index-f96da3a0.js → index-701a457e.js} +1 -1
- package/dist/index-74f56566.js +1 -0
- package/dist/index-7539a09d.js +1 -0
- package/dist/index-7ebc58ec.js +1 -0
- package/dist/{index-7cac52e8.js → index-867831c1.js} +1 -1
- package/dist/index-8e0c5af8.js +1 -0
- package/dist/index-920f1c93.js +1 -0
- package/dist/{index-5d5dc52f.js → index-f09fe209.js} +1 -1
- package/dist/index.css +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/info-block-wrapper/component.js +1 -1
- package/dist/info-block-wrapper/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/{isSymbol-6569b777.js → isSymbol-f93a808c.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/loader/component.js +1 -1
- package/dist/loader/index.js +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-back-button/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/components/modals/modal.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/modal/utils/delete-property-by-id.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/page-container/component.js +1 -1
- package/dist/page-container/index.js +1 -1
- package/dist/page-loading/component.js +1 -1
- package/dist/page-loading/index.js +1 -1
- package/dist/{parse-query-params-5917b4fd.js → parse-query-params-40e81a2b.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.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/pure-image/component.js +1 -1
- package/dist/pure-image/index.js +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/section-wrapper/component.js +1 -1
- package/dist/section-wrapper/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/arrow/component.js +1 -1
- package/dist/select/components/arrow/index.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/checkmark/component.js +1 -1
- package/dist/select/components/checkmark/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/optgroup/component.js +1 -1
- package/dist/select/components/optgroup/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/options-list/component.js +1 -1
- package/dist/select/components/options-list/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/skeleton/component.js +1 -1
- package/dist/skeleton/index.js +1 -1
- package/dist/slide-4dd1606c.js +1 -0
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/spinner/component.js +1 -1
- package/dist/spinner/index.js +1 -1
- package/dist/status/component.js +1 -1
- package/dist/status/index.js +1 -1
- package/dist/step-bar-bbdc2cea.js +1 -0
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/sticker/component.js +1 -1
- package/dist/sticker/index.js +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.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/loading/index.js +1 -1
- package/dist/table/components/pagination/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.d.ts +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/prepare-rows.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/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/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/use-image-render-component-0a686f55.d.ts +13 -0
- package/dist/use-image-render-component-0a686f55.js +1 -0
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/vars/typography.css +7 -0
- package/dist/welcome-layout/component.js +1 -1
- package/dist/welcome-layout/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +2 -1
- package/dist/capitalize-da58f14e.js +0 -1
- package/dist/colors.module-bcab070d.js +0 -1
- package/dist/component-8815e62a.js +0 -1
- package/dist/component-dd7178f2.js +0 -1
- package/dist/contact-block-ffd5adcd.js +0 -1
- package/dist/gutters.module-63c85344.js +0 -1
- package/dist/index-21c90eba.js +0 -1
- package/dist/index-290e6c62.js +0 -1
- package/dist/index-54cfd58f.js +0 -1
- package/dist/index-9ce5a5e7.js +0 -1
- package/dist/index-bae76388.js +0 -1
- package/dist/index-d33b2062.js +0 -1
- package/dist/index-fcfe1262.js +0 -1
- package/dist/index.module-2888c6f3.js +0 -1
- package/dist/index.module-37dfdb4b.js +0 -1
- package/dist/index.module-484c9508.js +0 -1
- package/dist/index.module-7efc4510.js +0 -1
- package/dist/index.module-ef79213a.js +0 -1
- package/dist/slide-e3b4aca4.js +0 -1
- package/dist/step-bar-f54b2d63.js +0 -1
- package/dist/style-inject.es-1f59c1d0.js +0 -1
- /package/dist/{ActionCopyM-2f28ae57.js → ActionCopyM-afa39b12.js} +0 -0
- /package/dist/{CheckmarkCircleM-10f50b3f.js → CheckmarkCircleM-1ed02028.js} +0 -0
- /package/dist/{ChevronBackM-47d9cb6d.js → ChevronBackM-1d42946d.js} +0 -0
- /package/dist/{ChevronDownS-5f3ba4f5.js → ChevronDownS-bd90baf8.js} +0 -0
- /package/dist/{ChevronForwardS-78acca51.js → ChevronForwardS-95d0ad40.js} +0 -0
- /package/dist/{ClockCircleM-9cbd1915.js → ClockCircleM-13de520f.js} +0 -0
- /package/dist/{CloseS-c17ee568.js → CloseS-ec25923f.js} +0 -0
- /package/dist/{NextS-2b028cce.js → NextS-4130373c.js} +0 -0
- /package/dist/{PlusS-d3752d5b.js → PlusS-806e430d.js} +0 -0
- /package/dist/{SearchM-9b5d9f79.js → SearchM-03bb40d0.js} +0 -0
- /package/dist/{TrashM-504e1b6e.js → TrashM-dd7e9929.js} +0 -0
- /package/dist/{_commonjsHelpers-97e6d7b1.js → _commonjsHelpers-03353663.js} +0 -0
- /package/dist/{component-dd7178f2.d.ts → component-e7fa3a41.d.ts} +0 -0
- /package/dist/{component-8815e62a.d.ts → component-f17d87dc.d.ts} +0 -0
- /package/dist/{contact-block-ffd5adcd.d.ts → contact-block-82f5a2e8.d.ts} +0 -0
- /package/dist/{index-54cfd58f.d.ts → index-2c75fc44.d.ts} +0 -0
- /package/dist/{index-acf532e5.js → index-496b60c6.js} +0 -0
- /package/dist/{index-14cb6781.js → index-eee25d46.js} +0 -0
- /package/dist/{intersection-observer-044a6fec.js → intersection-observer-74dc9974.js} +0 -0
- /package/dist/{parse-query-params-5917b4fd.d.ts → parse-query-params-40e81a2b.d.ts} +0 -0
- /package/dist/{slide-e3b4aca4.d.ts → slide-4dd1606c.d.ts} +0 -0
- /package/dist/{step-bar-f54b2d63.d.ts → step-bar-bbdc2cea.d.ts} +0 -0
- /package/dist/{tslib.es6-c1295375.js → tslib.es6-054c3e60.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as e from"react";import t from"react";import o from"classnames";import{c as r}from"../../../capitalize-0b1c39f0.js";import{Button as l}from"../../../button/component.js";import{SelectButton as n}from"../select-button/сomponent.js";import"../../../isSymbol-f93a808c.js";import"../../../_commonjsHelpers-03353663.js";import"../../../tslib.es6-054c3e60.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a=function(){return a=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var l in t=arguments[o])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},a.apply(this,arguments)};function i(t){return e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},t),e.createElement("path",{fillRule:"evenodd",d:"M10.833 14.033a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06l5-5a.75.75 0 0 1 1.06 1.06l-4.47 4.47 4.47 4.47a.75.75 0 0 1 0 1.06",clipRule:"evenodd"}))}var m="index-module_header__-VKks",s="index-module_withShadow__m2PIV",c="index-module_disabled__9Dr54",d="index-module_buttonContent__xnYVf",p="index-module_selectors__RA1Pm",u="index-module_arrow__tCsej",v=function(e){var a,v,h=e.month,w=e.year,f=e.view,_=e.withShadow,x=e.prevArrowVisible,b=void 0===x||x,j=e.nextArrowVisible,E=void 0===j||j,g=e.onPrevArrowClick,C=e.onNextArrowClick,k=e.onMonthClick;return t.createElement("div",{className:o(m,(a={},a[s]=_,a)),"aria-live":"polite"},t.createElement(n,{view:"filled",className:o((v={},v[c]="months"===f,v)),onClick:"days"===f?k:void 0},t.createElement("span",{className:d},"days"===f?r(h)+" "+w:""+w)),t.createElement("div",{className:p},b&&t.createElement(l,{view:"ghost",className:u,onClick:g,"aria-label":"Prev month"},t.createElement(i,null)),E&&t.createElement(l,{view:"ghost",className:u,onClick:C,"aria-label":"Next month"},t.createElement(i,null))))};export{v as Header};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-054c3e60.js";import"react";import"../../../capitalize-0b1c39f0.js";import"../../../isSymbol-f93a808c.js";import"../../../_commonjsHelpers-03353663.js";import"../../../index-f09fe209.js";import"../../../index-496b60c6.js";import"../../../index-5a2b7231.js";import"../../../index-7539a09d.js";import"../../../index-7ebc58ec.js";import"../../../flex-columns/component.js";import"classnames";import"../../utils.js";import"../../../index-867831c1.js";import"../select-button/сomponent.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-054c3e60.js";import o,{useCallback as t}from"react";import{c as s}from"../../../capitalize-0b1c39f0.js";import{i as m}from"../../../index-f09fe209.js";import{i as r}from"../../../index-7ebc58ec.js";import{FlexColumns as n}from"../../../flex-columns/component.js";import{monthName as i}from"../../utils.js";import{SelectButton as a}from"../select-button/сomponent.js";import"../../../isSymbol-f93a808c.js";import"../../../_commonjsHelpers-03353663.js";import"../../../index-496b60c6.js";import"../../../index-5a2b7231.js";import"../../../index-7539a09d.js";import"classnames";import"../../../index-867831c1.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_monthsTable__Eq4Jn",p="index-module_button__XgrJs",l=function(l){var d=l.selectedMonth,f=l.months,u=void 0===f?[]:f,j=l.getMonthProps,x=l.selectedLocale,b=l.shortNames,h=t((function(e){return d&&m(d,e.date)?"selected":r(e.date)?"outlined":"default"}),[d]);return o.createElement(n,{columns:3,gc:0,gr:8,className:c},u.map((function(t){return o.createElement(a,e({},j(t),{key:t.date.getMonth(),className:p,view:h(t)}),s(i(t.date,x,b)))})))};export{l as MonthsTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-054c3e60.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as
|
|
1
|
+
import{_ as e,a as d}from"../../../tslib.es6-054c3e60.js";import o,{forwardRef as i}from"react";import s from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,c=i.view,_=void 0===c?"default":c,b=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},b,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[_],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-
|
|
1
|
+
export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-054c3e60.js";import"react";import"../../../index-920f1c93.js";import"../../../index-496b60c6.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-054c3e60.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{i as l,a as s}from"../../../index-920f1c93.js";import{SelectButton as a}from"../select-button/сomponent.js";import"../../../index-496b60c6.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var i="index-module_yearsTable__7bRtn",c="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,_=u.getYearProps,b=u.onScroll,g=r(null),v=o((function(e){return p&&l(p,e)?"selected":s(e)?"outlined":"default"}),[p]),x=o((function(e){b(e.currentTarget.scrollTop)}),[b]);return n((function(){var e=g.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,b(e.scrollTop)}}),[b,p]),t.createElement("div",{className:i,onScroll:x,ref:g},t.createElement("div",{className:c},f.map((function(r){return t.createElement(a,e({},_(r),{key:r.getFullYear(),view:v(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
|
package/dist/calendar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-054c3e60.js";import"react";import"classnames";import"../index-f09fe209.js";import"../index-496b60c6.js";import"../index-5a2b7231.js";import"../index-7539a09d.js";import"../utils/format-date/index.js";import"../index-867831c1.js";import"../index-6036e75d.js";import"../index-eee25d46.js";import"./components/days-table/component.js";import"react-transition-group";import"../capitalize-0b1c39f0.js";import"../isSymbol-f93a808c.js";import"../_commonjsHelpers-03353663.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-74f56566.js";import"../index-04601088.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"../index-7ebc58ec.js";import"../flex-columns/component.js";import"../index-8e0c5af8.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useState as t,useRef as n,useMemo as e,useCallback as r}from"react";import o from"react-merge-refs";import{b as a,d as u}from"../index-
|
|
1
|
+
import{useState as t,useRef as n,useMemo as e,useCallback as r}from"react";import o from"react-merge-refs";import{b as a,d as u}from"../index-7539a09d.js";import{s as i,a as f}from"../index-8e0c5af8.js";import{s as c,h as d,i as s}from"../index-f09fe209.js";import{dateArrayToHashTable as h,generateWeeks as v,generateMonths as g,generateYears as m,limitDate as l,simulateTab as w,modifyDateByShift as p,MONTHS_IN_YEAR as D}from"./utils.js";import"../index-5a2b7231.js";import"../index-496b60c6.js";import"../index-867831c1.js";function M(M){var x=M.defaultMonth,A=M.month,y=M.minDate,b=M.view,k=void 0===b?"days":b,P=M.maxDate,T=M.selected,j=M.events,Y=M.offDays,C=M.onMonthChange,I=M.onYearChange,L=M.onChange,R=M.setView,U=t(x),W=U[0],E=U[1],N=t(x),F=N[0],O=N[1],S=t(),B=S[0],H=S[1],K=void 0===A,V=K?W:A,q=K?F:A,z=n([]),G=n(null),J=e((function(){return y&&c(y)}),[y]),Q=e((function(){return P&&c(P)}),[P]),X=e((function(){return y&&d(y)}),[y]),Z=e((function(){return P&&d(P)}),[P]),$=!J||V>J,_=!Q||V<Q,tt=e((function(){return h(j||[])}),[j]),nt=e((function(){return h(Y||[])}),[Y]),et=e((function(){return v(V,{minDate:y,maxDate:P,selected:T,eventsMap:tt,offDaysMap:nt})}),[P,y,T,V,tt,nt]),rt=e((function(){return g(q,{minMonth:J,maxMonth:Q})}),[J,Q,q]),ot=e((function(){return m(y||i(new Date,5),P||new Date)}),[y,P]),at=r((function(t){K&&(E(t),O(t)),C&&C(t.getTime())}),[C,K]),ut=r((function(t){K&&O(t),I&&I(t.getTime())}),[I,K]),it=r((function(t){at(l(a(V,t),J,Q))}),[at,V,J,Q]),ft=r((function(t){ut(l(f(q,t),X,Z))}),[ut,q,X,Z]),ct=r((function(t){at(l(t,J,Q))}),[Q,J,at]),dt=r((function(){it(1)}),[it]),st=r((function(){it(-1)}),[it]),ht=r((function(){ft(1)}),[ft]),vt=r((function(){ft(-1)}),[ft]),gt=r((function(){return z.current.find((function(t){return document.activeElement===t}))}),[]),mt=r((function(){return z.current.find((function(t){return t&&0===t.tabIndex}))}),[]),lt=r((function(t){t&&(w(t),t.focus())}),[]),wt=r((function(){return lt(mt())}),[lt,mt]),pt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date),r=p(t,e,y,P,nt),o=!1;r<e&&r.getMonth()!==e.getMonth()&&(st(),o=!0),r>e&&r.getMonth()!==e.getMonth()&&(dt(),o=!0);var a=function(){return lt(z.current[r.getDate()-1])};o?setTimeout(a,0):a()}else wt()}),[lt,wt,gt,P,y,nt,dt,st]),Dt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date).getMonth()+t;e>=0&&e<D&<(z.current[e])}else wt()}),[lt,wt,gt]),Mt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date).getFullYear()+t,r=(new Date).getFullYear();e<=r&&e>r-ot.length&<(z.current[e])}else wt()}),[lt,wt,gt,ot.length]),xt=r((function(t){var n=t.currentTarget.dataset.date;n&&ct(new Date(+n)),G.current&&G.current.focus()}),[ct]),At=r((function(t,n){z.current[n]=t}),[]),yt=r((function(t){var n=t.currentTarget.dataset.date;H(n?+n:void 0)}),[]),bt=r((function(){H(void 0)}),[]),kt=r((function(t){var n=t.currentTarget.dataset.date;n&&L&&L(+n)}),[L]),Pt={days:e((function(){return{ArrowLeft:function(){return pt("prev")},ArrowRight:function(){return pt("next")},ArrowUp:function(){return pt("prevWeek")},ArrowDown:function(){return pt("nextWeek")},End:function(){return pt("endOfWeek")},Home:function(){return pt("startOfWeek")},PageUp:function(){return pt("prevMonth")},PageDown:function(){return pt("nextMonth")}}}),[pt]),months:e((function(){return{ArrowLeft:function(){return Dt(-1)},ArrowRight:function(){return Dt(1)},ArrowUp:function(){return Dt(-3)},ArrowDown:function(){return Dt(3)}}}),[Dt]),years:e((function(){return{ArrowLeft:function(){return Mt(1)},ArrowRight:function(){return Mt(-1)},ArrowUp:function(){return Mt(3)},ArrowDown:function(){return Mt(-3)}}}),[Mt])},Tt=r((function(t){var n=Pt[k];t.key in n&&(n[t.key](),t.preventDefault())}),[Pt,k]),jt=!1,Yt=r((function(t){var n=T&&u(T,t.date),e=n;return T&&s(T,V)||jt||t.disabled||(jt=!0,e=!0),{"data-date":t.date.getTime(),"aria-selected":n,ref:function(n){At(n,t.date.getDate()-1)},tabIndex:e?0:-1,onMouseEnter:yt,onMouseLeave:bt,onClick:kt}}),[kt,At,Tt,yt,bt,T]),Ct=r((function(t){var n=s(V,t.date);return{"data-date":t.date.getTime(),"aria-selected":n,ref:function(n){At(n,t.date.getMonth())},tabIndex:n?0:-1,disabled:t.disabled,onClick:function(t){xt(t),R("days")}}}),[V,At,xt,R]),It=r((function(t){var n=t.ref;return{onKeyDown:Tt,ref:o([void 0===n?null:n,G]),tabIndex:-1}}),[Tt]);return{activeMonth:V,activeYear:q,weeks:et,months:rt,canSetPrevMonth:$,canSetNextMonth:_,highlighted:B,setPrevMonth:st,setNextMonth:dt,setNextYear:ht,setPrevYear:vt,setMonthByDate:ct,getDayProps:Yt,getMonthProps:Ct,getRootProps:It}}export{M as useCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useState as i,useCallback as e}from"react";import{useDidUpdateEffect as t}from"./utils.js";import"../index-
|
|
1
|
+
import{useState as i,useCallback as e}from"react";import{useDidUpdateEffect as t}from"./utils.js";import"../index-7539a09d.js";import"../index-5a2b7231.js";import"../index-496b60c6.js";import"../index-f09fe209.js";import"../index-867831c1.js";function o(o){var n=o.onPeriodChange,r=o.initialSelectedFrom,d=o.initialSelectedTo,c=i(r),m=c[0],s=c[1],a=i(d),f=a[0],u=a[1],p=e((function(){s(void 0),u(void 0)}),[]),l=e((function(i){s(i)}),[]),v=e((function(i){u(i)}),[]),x=e((function(i){if(void 0!==i){if(m)return f?void(i>m?u(i):i<m&&(u(void 0),s(i))):(s(Math.min(i,m)),void u(Math.max(i,m)));s(i)}else p()}),[p,m,f]);return t((function(){n&&n(m,f)}),[m,f]),{selectedFrom:m,selectedTo:f,setStart:l,setEnd:v,resetPeriod:p,updatePeriod:x}}export{o as usePeriod};
|
package/dist/calendar/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRef as e,useEffect as n}from"react";import{e as t,d as r,c as a,i as u,s as i,a as o,g as s,b as f,f as c}from"../index-
|
|
1
|
+
import{useRef as e,useEffect as n}from"react";import{e as t,d as r,c as a,i as u,s as i,a as o,g as s,b as f,f as c}from"../index-7539a09d.js";import{s as d,c as v,l as m,e as p,a as l,h as b,f as x,b as k,g as w,m as g,i as h,j as y,d as L}from"../index-f09fe209.js";import{f as T}from"../index-867831c1.js";import"../index-5a2b7231.js";import"../index-496b60c6.js";var j=7,D=12,M=6;function O(e){var n=e.getDay();return 0===n?j-1:n-1}function W(e,n){var a=function(){return Array(j).fill(null)},u=d(e),i=t(d(e)),o=v(m(e)),s=a();return p({start:i,end:o}).reduce((function(e,t){var i=O(t);return s[i]=S(t,u,n),(i===M||r(t,o))&&(e.push(s),s=a()),e}),[])}function E(e,n){return l({start:b(e),end:x(e)}).map((function(e){return A(e,n)}))}function K(e,n){return k({start:w([b(n),b(e)]),end:g([b(n),b(e)])}).reverse()}function S(e,n,t){var i=t.minDate,o=t.maxDate,s=t.selected,f=t.eventsMap,c=void 0===f?{}:f,d=t.offDaysMap,v=(void 0===d?{}:d)[e.getTime()];return{date:e,disabled:i&&a(e,i)||o&&u(e,o)||v,event:c[e.getTime()],selected:s&&r(e,s),muted:!h(e,n)}}function A(e,n){var t=n.minMonth,r=n.maxMonth;return{date:e,disabled:t&&a(e,t)||r&&u(e,r)}}function q(e,n,t){var r=e;return n&&(r=g([n,r])),t&&(r=w([t,r])),new Date(r)}function z(e,n,t){return e&&q(e,n,t).getTime()===new Date(e).getTime()}function B(e,n,t){return T(e,t?"LLL":"LLLL",{locale:n})}function C(e){return e.reduce((function(e,n){return e[i(n).getTime()]=!0,e}),{})}function F(e,n,t){var r=n||t;return e&&r&&e!==r?{start:w([e,r]),end:g([e,r])}:null}function G(e,n,t,r,a){void 0===a&&(a={});for(var u={prev:function(){return s(n,1)},prevWeek:function(){return s(n,7)},prevMonth:function(){return y(n,1)},next:function(){return o(n,1)},nextWeek:function(){return o(n,7)},nextMonth:function(){return f(n,1)},startOfWeek:function(){return c(n,{weekStartsOn:1})},endOfWeek:function(){return i(L(n,{weekStartsOn:1}))}}[e]();a[u.getTime()];){var d=u<n?-1:1;"endOfWeek"===e&&(d=-1),"startOfWeek"===e&&(d=1),u=o(u,d)}return q(u,t,r)}function H(e){if(window.KeyboardEvent){var n=new window.KeyboardEvent("keydown",{bubbles:!0,key:"Tab"});e.dispatchEvent(n)}}function I(t,r){var a=e(!1);n((function(){a.current?t():a.current=!0}),r)}export{j as DAYS_IN_WEEK,D as MONTHS_IN_YEAR,M as SUNDAY_INDEX,S as buildDay,A as buildMonth,C as dateArrayToHashTable,z as dateInLimits,E as generateMonths,W as generateWeeks,K as generateYears,F as getSelectionRange,q as limitDate,G as modifyDateByShift,B as monthName,O as russianWeekDay,H as simulateTab,I as useDidUpdateEffect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,a as e}from"../tslib.es6-c1295375.js";import r,{forwardRef as o,useState as n,useRef as t,useCallback as p,useEffect as i}from"react";import l from"react-merge-refs";import d from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as c}from"../calendar/utils.js";import{MaskedInput as x}from"../masked-input/component.js";import{Popover as m}from"../popover/component.js";import"../toast-notifier/component.js";import{formatDate as g}from"../utils/format-date/index.js";import{parseDateString as u,isCompleteDateInput as b,DATE_MASK as h,SUPPORTS_INPUT_TYPE_DATE as f,NATIVE_DATE_FORMAT as v}from"./utils.js";import{s as w}from"../style-inject.es-1f59c1d0.js";import"../index-5d5dc52f.js";import"../index-acf532e5.js";import"../index-8347460a.js";import"../index-fcfe1262.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-da58f14e.js";import"../isSymbol-6569b777.js";import"../_commonjsHelpers-97e6d7b1.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-bae76388.js";import"../index-d33b2062.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../index-7cac52e8.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-290e6c62.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-21c90eba.js";import"../index-579985bf.js";import"../index-14cb6781.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-10f50b3f.js";import"../ClockCircleM-9cbd1915.js";import"../CloseS-c17ee568.js";import"../toast-notifier/use-timer.js";var y="index-module_component__pdVE2",j="index-module_block__wtVLz",k="index-module_calendarContainer__x7A2x",_="index-module_calendarIcon__muPk-",C="index-module_nativeInput__siME6";w(':root{--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--text-primary-color:var(--color-text-primary);--text-secondary-color:var(--color-text-secondary);--text-tertiary-color:var(--color-text-tertiary);--border-radius:4px;--focus-color:var(--color-border-link);--font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,sans-serif;--disabled-cursor:not-allowed;--arrow-transform:rotate(180deg);--calendar-width:248px;--calendar-height:264px;--calendar-selector-button-width:82px;--calendar-selector-button-gap:3px;--calendar-selector-button-outline-border-color:var(--color-border-key);--calendar-arrow-background:url(https://alfabank.st/icons/icon_arrow-left_m_black.svg);--calendar-select-icon-background:url(https://alfabank.st/icons/icon_arrow-select_m_black.svg);--calendar-header-paddings:0 var(--gap-xs) var(--gap-xs);--calendar-month-only-header-paddings:var(--gap-m) var(--gap-2xl) var(--gap-s);--calendar-month-only-header-font-family:var(--font-family-system);--calendar-month-only-header-font-size:16px;--calendar-month-only-header-font-weight:400;--calendar-day-size:40px;--calendar-day-border-radius:4px;--calendar-today-border-color:var(--color-border-key);--calendar-highlighted-color:var(--color-text-primary);--calendar-highlighted-background:var(--color-graphic-neutral);--calendar-range-color:var(--color-text-primary);--calendar-range-background:color-mix(in srgb,var(--color-graphic-accent) 90%,#fff);--calendar-selected-color:var(--color-text-primary-inverted);--calendar-selected-background:var(--color-graphic-primary);--calendar-disabled-color:var(--color-text-tertiary);--calendar-disabled-background:transparent;--calendar-marker-background:var(--color-graphic-tertiary);--calendar-input-calendar-icon:url(https://alfabank.st/icons/icon_calendar_m_black.svg)}.index-module_component__pdVE2{outline:none;position:relative;width:var(--calendar-width)}.index-module_block__wtVLz{width:100%}.index-module_calendarContainer__x7A2x{border:1px solid var(--color-border-primary);border-radius:8px;-webkit-box-shadow:var(--shadow-s);box-shadow:var(--shadow-s);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block}.index-module_calendarIcon__muPk-{background:var(--calendar-input-calendar-icon);background-position:50%;background-size:cover;display:block;height:24px;width:24px;&:not(:only-child){margin-left:var(--gap-2xs)}}.index-module_nativeInput__siME6{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:1;&::-webkit-calendar-picker-indicator,&::-webkit-inner-spin-button{display:none}}');var M=o((function(o,w){var M,D=o.block,E=void 0!==D&&D,N=o.className,I=o.inputClassName,z=o.defaultOpen,F=void 0!==z&&z,P=o.defaultMonth,V=o.defaultValue,S=void 0===V?"":V,T=o.calendarPosition,O=void 0===T?"popover":T,A=o.value,R=o.dataTestId,U=o.minDate,H=o.required,q=o.maxDate,B=o.calendarProps,K=void 0===B?{}:B,L=o.preventFlip,G=o.mobileMode,J=void 0===G?"popover":G,Q=o.wrapperRef,W=void 0===Q?null:Q,X=o.disabled,Y=o.onChange,Z=o.onInputChange,$=o.onCalendarChange,aa=o.readOnly,ea=a(o,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),ra=void 0===(A=A&&A.split("-").length?A.split("-").reverse().join("."):A),oa=f&&"native"===J,na="input"===J,ta="static"===O&&!na,pa="popover"===O&&!oa&&!na,ia=n(!1),la=ia[0],da=ia[1],sa=n(S),ca=sa[0],xa=sa[1],ma=ra?ca:A,ga=ma?u(ma).getTime():void 0,ua=c(ga,U,q),ba=X||aa,ha=t(null),fa=t(null),va=t(null),wa=t(null),ya=p((function(a){"Escape"===a.key&&da(!1)}),[]),ja=p((function(){la||da(!0)}),[la]),ka=p((function(a){da(!0),!la&&"INPUT"!==a.target.tagName&&wa.current&&wa.current.focus()}),[la]),_a=p((function(a){wa.current&&!1===wa.current.contains(a.relatedTarget)&&da(!1)}),[]),Ca=p((function(a){["ArrowDown","ArrowUp"].includes(a.key)&&wa.current&&(a.preventDefault(),wa.current.focus())}),[]),Ma=p((function(a,e,r,o,n){void 0===o&&(o="input"),void 0===n&&(n=!0),"input"===o&&a&&Z&&Z(a,{value:e,date:r}),"calendar"===o&&$&&$(r.getTime()),n&&(ra&&xa(e),Y&&Y(a,{date:r,value:e.split(".").reverse().join("-")}))}),[$,Y,Z,ra]),Da=p((function(a){var e=a.target.value,r=u(e);Ma(a,e,r,"input",b(e))}),[Ma]),Ea=p((function(a){var e=u(a.target.value,v),r=""===a.target.value?"":g(e,{format:"dd.MM.yyyy"});Ma(a,r,e)}),[Ma]),Na=p((function(a){Ma(null,g(a,{format:"dd.MM.yyyy"}),new Date(a),"calendar"),da(!1)}),[Ma]),Ia=p((function(a){a.preventDefault()}),[]);i((function(){da(F)}),[F]);var za=p((function(){return r.createElement("div",{onMouseDown:Ia},r.createElement(s,e({},K,{ref:wa,defaultMonth:P,value:ua?ga:void 0,onChange:Na,minDate:U,maxDate:q})))}),[K,ga,P,Na,Ia,ua,q,U]);return r.createElement("div",{ref:va,className:d(y,N,(M={},M[j]=E,M)),tabIndex:-1,onKeyDown:ba?void 0:ya,onClick:ba?void 0:ja,onFocus:ba?void 0:ka,onBlur:_a,"data-test-id":R},r.createElement(x,e({},ea,{ref:l([w,ha]),wrapperRef:l([W,fa]),className:I,value:ma,required:H,defaultValue:S,disabled:X,readOnly:aa,mask:h,rightAddons:r.createElement(r.Fragment,null,r.createElement("span",{className:_}),oa&&r.createElement("input",{type:"date",ref:l([w,ha]),defaultValue:S,onChange:Ea,className:C})),onKeyDown:Ca,onChange:Da,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),ta&&za(),pa&&r.createElement(m,{open:la,anchorElement:fa.current,popperClassName:k,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:L},za()))}));export{M as CalendarInput};
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-054c3e60.js";import o,{forwardRef as n,useState as r,useRef as a,useCallback as i,useEffect as m}from"react";import p from"react-merge-refs";import s from"classnames";import{Calendar as l}from"../calendar/component.js";import{dateInLimits as d}from"../calendar/utils.js";import{MaskedInput as c}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import"../toast-notifier/component.js";import{formatDate as f}from"../utils/format-date/index.js";import{parseDateString as j,isCompleteDateInput as v,DATE_MASK as x,SUPPORTS_INPUT_TYPE_DATE as g,NATIVE_DATE_FORMAT as b}from"./utils.js";import"../index-f09fe209.js";import"../index-496b60c6.js";import"../index-5a2b7231.js";import"../index-7539a09d.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-0b1c39f0.js";import"../isSymbol-f93a808c.js";import"../_commonjsHelpers-03353663.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-74f56566.js";import"../index-04601088.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../index-867831c1.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-7ebc58ec.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-8e0c5af8.js";import"../index-6036e75d.js";import"../index-eee25d46.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-1ed02028.js";import"../ClockCircleM-13de520f.js";import"../CloseS-ec25923f.js";import"../toast-notifier/use-timer.js";var h="index-module_component__pdVE2",C="index-module_block__wtVLz",y="index-module_calendarContainer__x7A2x",k="index-module_calendarIcon__muPk-",_="index-module_nativeInput__siME6",M=n((function(n,M){var D,w=n.block,E=void 0!==w&&w,N=n.className,I=n.inputClassName,P=n.defaultOpen,T=void 0!==P&&P,F=n.defaultMonth,V=n.defaultValue,O=void 0===V?"":V,A=n.calendarPosition,q=void 0===A?"popover":A,R=n.value,z=n.dataTestId,K=n.minDate,S=n.required,U=n.maxDate,B=n.calendarProps,H=void 0===B?{}:B,L=n.preventFlip,G=n.mobileMode,J=void 0===G?"popover":G,Q=n.wrapperRef,W=void 0===Q?null:Q,X=n.disabled,Y=n.onChange,Z=n.onInputChange,$=n.onCalendarChange,ee=n.readOnly,te=e(n,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),oe=void 0===(R=R&&R.split("-").length?R.split("-").reverse().join("."):R),ne=g&&"native"===J,re="input"===J,ae="static"===q&&!re,ie="popover"===q&&!ne&&!re,me=r(!1),pe=me[0],se=me[1],le=r(O),de=le[0],ce=le[1],ue=oe?de:R,fe=ue?j(ue).getTime():void 0,je=d(fe,K,U),ve=X||ee,xe=a(null),ge=a(null),be=a(null),he=a(null),Ce=i((function(e){"Escape"===e.key&&se(!1)}),[]),ye=i((function(){pe||se(!0)}),[pe]),ke=i((function(e){se(!0),!pe&&"INPUT"!==e.target.tagName&&he.current&&he.current.focus()}),[pe]),_e=i((function(e){he.current&&!1===he.current.contains(e.relatedTarget)&&se(!1)}),[]),Me=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&he.current&&(e.preventDefault(),he.current.focus())}),[]),De=i((function(e,t,o,n,r){void 0===n&&(n="input"),void 0===r&&(r=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),r&&(oe&&ce(t),Y&&Y(e,{date:o,value:t.split(".").reverse().join("-")}))}),[$,Y,Z,oe]),we=i((function(e){var t=e.target.value,o=j(t);De(e,t,o,"input",v(t))}),[De]),Ee=i((function(e){var t=j(e.target.value,b),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});De(e,o,t)}),[De]),Ne=i((function(e){De(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),se(!1)}),[De]),Ie=i((function(e){e.preventDefault()}),[]);m((function(){se(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(l,t({},H,{ref:he,defaultMonth:F,value:je?fe:void 0,onChange:Ne,minDate:K,maxDate:U})))}),[H,fe,F,Ne,Ie,je,U,K]);return o.createElement("div",{ref:be,className:s(h,N,(D={},D[C]=E,D)),tabIndex:-1,onKeyDown:ve?void 0:Ce,onClick:ve?void 0:ye,onFocus:ve?void 0:ke,onBlur:_e,"data-test-id":z},o.createElement(c,t({},te,{ref:p([M,xe]),wrapperRef:p([W,ge]),className:I,value:ue,required:S,defaultValue:O,disabled:X,readOnly:ee,mask:x,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:k}),ne&&o.createElement("input",{type:"date",ref:p([M,xe]),defaultValue:O,onChange:Ee,className:_})),onKeyDown:Me,onChange:we,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),ae&&Pe(),ie&&o.createElement(u,{open:pe,anchorElement:ge.current,popperClassName:y,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:L},Pe()))}));export{M as CalendarInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-
|
|
1
|
+
export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-054c3e60.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-f09fe209.js";import"../index-496b60c6.js";import"../index-5a2b7231.js";import"../index-7539a09d.js";import"../utils/format-date/index.js";import"../index-867831c1.js";import"../index-6036e75d.js";import"../index-eee25d46.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-0b1c39f0.js";import"../isSymbol-f93a808c.js";import"../_commonjsHelpers-03353663.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-74f56566.js";import"../index-04601088.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-7ebc58ec.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-8e0c5af8.js";import"../masked-input/component.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-1ed02028.js";import"../ClockCircleM-13de520f.js";import"../CloseS-ec25923f.js";import"../toast-notifier/use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e}from"../index-
|
|
1
|
+
import{p as e}from"../index-6036e75d.js";import"../index-5a2b7231.js";import"../index-496b60c6.js";import"../index-eee25d46.js";var t="dd.MM.yyyy",d="yyyy-MM-dd",n=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],i="undefined"!=typeof window,r=i&&a(),o=function(e){return e.length===n.length},u=function(d,n){return void 0===n&&(n=t),e(d,n,new Date)};function a(){var e=document.createElement("input");return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value}export{t as DATE_FORMAT,n as DATE_MASK,i as IS_BROWSER,d as NATIVE_DATE_FORMAT,r as SUPPORTS_INPUT_TYPE_DATE,o as isCompleteDateInput,a as isInputDateSupported,u as parseDateString};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as r,i as u}from"./isSymbol-f93a808c.js";var f=function(r,u){for(var f=-1,n=null==r?0:r.length,t=Array(n);++f<n;)t[f]=u(r[f],f,r);return t},n=Array.isArray,t=1/0,e=r?r.prototype:void 0,o=e?e.toString:void 0;var a=function r(e){if("string"==typeof e)return e;if(n(e))return f(e,r)+"";if(u(e))return o?o.call(e):"";var a=e+"";return"0"==a&&1/e==-t?"-0":a};var i=function(r){return null==r?"":a(r)};var d=function(r,u,f){var n=-1,t=r.length;u<0&&(u=-u>t?0:t+u),(f=f>t?t:f)<0&&(f+=t),t=u>f?0:f-u>>>0,u>>>=0;for(var e=Array(t);++n<t;)e[n]=r[n+u];return e};var c=function(r,u,f){var n=r.length;return f=void 0===f?n:f,!u&&f>=n?r:d(r,u,f)},v=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var l=function(r){return v.test(r)};var s=function(r){return r.split("")},p="\\ud800-\\udfff",g="["+p+"]",y="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",A="[^"+p+"]",j="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="(?:"+y+"|"+h+")"+"?",x="[\\ufe0e\\ufe0f]?",C=x+b+("(?:\\u200d(?:"+[A,j,m].join("|")+")"+x+b+")*"),E="(?:"+[A+y+"?",y,j,m,g].join("|")+")",R=RegExp(h+"(?="+h+")|"+E+C,"g");var S=function(r){return r.match(R)||[]};var w=function(r){return l(r)?S(r):s(r)};var L=function(r){return function(u){u=i(u);var f=l(u)?w(u):void 0,n=f?f[0]:u.charAt(0),t=f?c(f,1).join(""):u.slice(1);return n[r]()+t}}("toUpperCase");var U=function(r){return L(i(r).toLowerCase())};export{U as c};
|
package/dist/card/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";import"swiper/react";import"../PhotoS-9e6032f3.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-0a686f55.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,a=void 0===n?"default":n,s=r.bottomAddons,p=r.images,l=void 0===p?[]:p,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,v=r.titleAddons;return e.createElement("div",{className:t([m.component,m[a]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:a}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),v),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};export{r as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as
|
|
1
|
+
import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as r}from"swiper/react";import"../../PhotoS-9e6032f3.js";import{ImageSizes as i}from"../../image/types.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-0a686f55.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-42c4e92f.js";import"../../typography/title/index.js";import"../../tslib.es6-054c3e60.js";import"../../typography/title/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var a=s.images,p=void 0===a?[]:a,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},p.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},p.map((function(t){return e.createElement(r,{key:t},e.createElement(n,{src:t,resolution:i.m}))}))):e.createElement(n,{src:p[0],resolution:i.m})))};export{s as CardImages};
|
package/dist/card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";import"./images/index.js";import"swiper/react";import"../PhotoS-9e6032f3.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-0a686f55.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-e7fa3a41.js";import"../../typography/text/component.js";import"../../colors.module-42c4e92f.js";import"../../typography/title/index.js";import"../../tslib.es6-054c3e60.js";import"../../typography/title/component.js";import"../pure/component.js";
|
package/dist/cell/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-e7fa3a41.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";
|
package/dist/cell/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../component-
|
|
1
|
+
export * from "../component-e7fa3a41";
|
package/dist/cell/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as Cell}from"../component-
|
|
1
|
+
export{C as Cell}from"../component-e7fa3a41.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../tslib.es6-054c3e60.js";import"../typography/title/component.js";import"./pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a}from"../../tslib.es6-
|
|
1
|
+
import{_ as e,a as r}from"../../tslib.es6-054c3e60.js";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,O=o.dataTestId,f=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));export{n as Pure};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-c1295375.js";import*as r from"react";import c,{forwardRef as a,useRef as d}from"react";import l from"react-merge-refs";import x from"classnames";import{useFocus as n}from"../hooks/useFocus/index.js";import{s as i}from"../style-inject.es-1f59c1d0.js";var t=function(){return t=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a]);return e},t.apply(this,arguments)};function b(e){return r.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},e),r.createElement("path",{fillRule:"evenodd",d:"M14.899 3.73a.75.75 0 0 1 0 1.06l-8.485 8.485a.75.75 0 0 1-1.06 0L1.11 9.034a.75.75 0 1 1 1.06-1.06l3.713 3.712 7.954-7.955a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))}var p=function(){return p=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a]);return e},p.apply(this,arguments)};function s(e){return r.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor",viewBox:"0 0 24 24"},e),r.createElement("path",{fillRule:"evenodd",d:"M4.997 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2h-12a1 1 0 0 1-1-1",clipRule:"evenodd"}))}var h={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"};i(':root{--text-primary-color:var(--color-text-primary);--text-secondary-color:var(--color-text-secondary);--text-tertiary-color:var(--color-text-tertiary);--border-radius:4px;--focus-color:var(--color-border-link);--font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,sans-serif;--disabled-cursor:not-allowed;--arrow-transform:rotate(180deg);--shadow-info-block:0px 4px 4px rgba(0,0,0,.25);--shadow-xs:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04);--shadow-s:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08);--shadow-m:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16);--shadow-l:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24);--shadow-xl:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32);--shadow-xs-hard:0 0 4px rgba(11,31,53,.02),0 2px 4px rgba(11,31,53,.04),0 2px 4px rgba(11,31,53,.16);--shadow-s-hard:0 0 8px rgba(11,31,53,.04),0 4px 8px rgba(11,31,53,.08),0 4px 8px rgba(11,31,53,.16);--shadow-m-hard:0 0 16px rgba(11,31,53,.08),0 8px 16px rgba(11,31,53,.16),0 8px 16px rgba(11,31,53,.16);--shadow-l-hard:0 0 24px rgba(11,31,53,.12),0 12px 24px rgba(11,31,53,.24),0 12px 24px rgba(11,31,53,.16);--shadow-xl-hard:0 0 32px rgba(11,31,53,.16),0 16px 32px rgba(11,31,53,.32),0 16px 32px rgba(11,31,53,.16);--shadow-xs-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04);--shadow-s-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08);--shadow-m-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16);--shadow-l-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24);--shadow-xl-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32);--shadow-xs-hard-up:0 0 4px rgba(11,31,53,.02),0 -2px 4px rgba(11,31,53,.04),0 -2px 4px rgba(11,31,53,.16);--shadow-s-hard-up:0 0 8px rgba(11,31,53,.04),0 -4px 8px rgba(11,31,53,.08),0 -4px 8px rgba(11,31,53,.16);--shadow-m-hard-up:0 0 16px rgba(11,31,53,.08),0 -8px 16px rgba(11,31,53,.16),0 -8px 16px rgba(11,31,53,.16);--shadow-l-hard-up:0 0 24px rgba(11,31,53,.12),0 -12px 24px rgba(11,31,53,.24),0 -12px 24px rgba(11,31,53,.16);--shadow-xl-hard-up:0 0 32px rgba(11,31,53,.16),0 -16px 32px rgba(11,31,53,.32),0 -16px 32px rgba(11,31,53,.16);--radius-s:4px;--radius-m:8px;--radius-l:10px;--radius-circle:50%;--gap-2xs:4px;--gap-xs:8px;--gap-s:12px;--gap-m:16px;--gap-l:20px;--gap-xl:24px;--gap-xxl:28px;--gap-2xl:32px;--gap-3xl:40px;--gap-4xl:48px;--gap-5xl:64px;--gap-6xl:72px;--gap-7xl:96px;--gap-8xl:128px;--gap-2xs-neg:-4px;--gap-xs-neg:-8px;--gap-s-neg:-12px;--gap-m-neg:-16px;--gap-l-neg:-20px;--gap-xl-neg:-24px;--gap-2xl-neg:-32px;--gap-3xl-neg:-40px;--gap-4xl-neg:-48px;--gap-5xl-neg:-64px;--gap-6xl-neg:-72px;--gap-7xl-neg:-96px;--gap-8xl-neg:-128px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--checkbox-hint-color:var(--color-text-secondary);--checkbox-label-color:var(--color-text-primary);--checkbox-bg-color:var(--color-graphic-primary-inverted);--checkbox-border-color:var(--color-graphic-secondary);--checkbox-hover-bg-color:var(--checkbox-bg-color);--checkbox-hover-border-color:color-mix(in srgb,var(--checkbox-border-color) 30%,#fff);--checkbox-active-bg-color:var(--checkbox-bg-color);--checkbox-active-border-color:color-mix(in srgb,var(--checkbox-border-color) 10%,#fff);--checkbox-checked-bg-color:var(--color-graphic-positive);--checkbox-checked-border-color:var(--color-graphic-positive);--checkbox-checked-hover-bg-color:color-mix(in srgb,var(--checkbox-checked-bg-color) 30%,#fff);--checkbox-checked-hover-border-color:var(--checkbox-checked-border-color);--checkbox-checked-active-bg-color:color-mix(in srgb,var(--checkbox-checked-bg-color) 10%,#fff);--checkbox-checked-active-border-color:var(--checkbox-checked-border-color);--checkbox-disabled-bg-color:var(--color-graphic-secondary);--checkbox-disabled-border-color:color-mix(in srgb,var(--color-graphic-secondary) 50%,var(--color-bg-primary));--checkbox-checked-disabled-bg-color:color-mix(in srgb,var(--checkbox-checked-bg-color) 50%,#fff);--checkbox-checked-disabled-border-color:color-mix(in srgb,var(--checkbox-checked-border-color) 50%,#fff)}.index-module_component__DBof3{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.index-module_component__DBof3,.index-module_start__-eplp{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.index-module_center__7CPIE{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.index-module_addons__verD6{line-height:24px;margin-left:auto;padding-left:var(--gap-m)}.index-module_block__n--Tz{width:100%}.index-module_box__ymkhL{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;-ms-flex-negative:0;align-items:center;background-color:var(--checkbox-bg-color);border:1px solid var(--checkbox-border-color);border-radius:var(--border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;flex-shrink:0;height:16px;justify-content:center;margin-top:2px;overflow:hidden;-webkit-transition:background-color .2s ease,border-color .2s ease;transition:background-color .2s ease,border-color .2s ease;width:16px;& svg{color:var(--color-graphic-primary-inverted)}}.index-module_m__3-tIu .index-module_box__ymkhL{height:20px;margin-top:0;width:20px}.index-module_m__3-tIu .index-module_content__tOYo0{margin-left:calc(var(--gap-m) - 2px)}.index-module_s__uZFU0 .index-module_content__tOYo0{margin-left:var(--gap-xs)}.index-module_component__DBof3:hover:not(.index-module_disabled__-UN4G) .index-module_box__ymkhL{background-color:var(--checkbox-hover-bg-color);border-color:var(--checkbox-hover-border-color)}.index-module_component__DBof3:active:not(.index-module_disabled__-UN4G) .index-module_box__ymkhL{background-color:var(--checkbox-active-bg-color);border-color:var(--checkbox-active-border-color)}.index-module_checked__ZISV3 .index-module_box__ymkhL{background-color:var(--checkbox-checked-bg-color);border-color:var(--checkbox-checked-border-color)}.index-module_checked__ZISV3:hover:not(.index-module_disabled__-UN4G) .index-module_box__ymkhL{background-color:var(--checkbox-checked-hover-bg-color);border-color:var(--checkbox-checked-hover-border-color)}.index-module_checked__ZISV3:active:not(.index-module_disabled__-UN4G) .index-module_box__ymkhL{background-color:var(--checkbox-checked-active-bg-color);border-color:var(--checkbox-checked-active-border-color)}.index-module_indeterminate__DwM3O .index-module_box__ymkhL{background-color:var(--checkbox-checked-bg-color);border-color:var(--checkbox-checked-border-color)}.index-module_indeterminate__DwM3O:hover:not(.index-module_disabled__-UN4G) .index-module_box__ymkhL{background-color:var(--checkbox-checked-hover-bg-color);border-color:var(--checkbox-checked-hover-border-color)}.index-module_indeterminate__DwM3O:active:not(.index-module_disabled__-UN4G) .index-module_box__ymkhL{background-color:var(--checkbox-checked-active-bg-color);border-color:var(--checkbox-checked-active-border-color)}.index-module_disabled__-UN4G{cursor:var(--disabled-cursor)}.index-module_disabled__-UN4G .index-module_box__ymkhL{background-color:var(--checkbox-disabled-bg-color);border-color:var(--checkbox-disabled-border-color)}.index-module_disabled__-UN4G.index-module_checked__ZISV3 .index-module_box__ymkhL,.index-module_disabled__-UN4G.index-module_indeterminate__DwM3O .index-module_box__ymkhL{background-color:var(--checkbox-checked-disabled-bg-color);border-color:var(--checkbox-checked-disabled-border-color)}.index-module_focused__d0Y-b .index-module_box__ymkhL{outline:2px solid var(--focus-color);outline-offset:2px}.index-module_content__tOYo0{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.index-module_label__gLQhs{color:var(--checkbox-label-color);display:block;font-family:var(--font-family);font-size:14px;font-weight:500;line-height:20px}.index-module_hint__OQ8A5{color:var(--checkbox-hint-color);display:block;font-family:var(--font-family);font-size:12px;font-weight:500;line-height:20px;padding-top:4px}.index-module_indeterminateIcon__d-ME1{height:16px;width:16px}.index-module_component__DBof3 input{opacity:0;position:absolute;z-index:-1}');var m=a((function(r,a){var i,t=r.checked,p=r.label,m=r.hint,_=r.size,g=void 0===_?"m":_,u=r.align,k=void 0===u?"center":u,v=r.addons,f=r.block,w=r.onChange,y=r.className,N=r.name,E=r.disabled,I=r.dataTestId,L=r.indeterminate,O=void 0!==L&&L,U=e(r,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),D=d(null),G=n(D,"keyboard")[0];return c.createElement("label",{className:x(h.component,h[g],h[k],y,(i={},i[h.disabled]=E,i[h.checked]=t,i[h.indeterminate]=O,i[h.focused]=G,i[h.block]=f,i)),ref:l([D,a])},c.createElement("span",{className:h.box},c.createElement("input",o({type:"checkbox",onChange:function(e){w&&w(e,{checked:e.target.checked,name:N})},disabled:E,checked:t,"data-test-id":I},U)),t&&c.createElement(b,null),O&&!t&&c.createElement("div",{className:h.indeterminateIcon},c.createElement(s,null))),(p||m)&&c.createElement("span",{className:h.content},p&&c.createElement("span",{className:h.label},p),m&&c.createElement("span",{className:h.hint},m)),v&&c.createElement("span",{className:h.addons},v))}));m.defaultProps={indeterminate:!1};export{m as Checkbox};
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-054c3e60.js";import*as t from"react";import a,{forwardRef as l,useRef as d}from"react";import o from"react-merge-refs";import r from"classnames";import{useFocus as i}from"../hooks/useFocus/index.js";var c=function(){return c=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},c.apply(this,arguments)};function s(e){return t.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},e),t.createElement("path",{fillRule:"evenodd",d:"M14.899 3.73a.75.75 0 0 1 0 1.06l-8.485 8.485a.75.75 0 0 1-1.06 0L1.11 9.034a.75.75 0 1 1 1.06-1.06l3.713 3.712 7.954-7.955a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))}var m=function(){return m=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},m.apply(this,arguments)};function u(e){return t.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor",viewBox:"0 0 24 24"},e),t.createElement("path",{fillRule:"evenodd",d:"M4.997 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2h-12a1 1 0 0 1-1-1",clipRule:"evenodd"}))}var _={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"},h=l((function(t,l){var c,m=t.checked,h=t.label,p=t.hint,f=t.size,b=void 0===f?"m":f,x=t.align,v=void 0===x?"center":x,g=t.addons,k=t.block,E=t.onChange,w=t.className,N=t.name,y=t.disabled,O=t.dataTestId,I=t.indeterminate,j=void 0!==I&&I,C=e(t,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),M=d(null),P=i(M,"keyboard")[0];return a.createElement("label",{className:r(_.component,_[b],_[v],w,(c={},c[_.disabled]=y,c[_.checked]=m,c[_.indeterminate]=j,c[_.focused]=P,c[_.block]=k,c)),ref:o([M,l])},a.createElement("span",{className:_.box},a.createElement("input",n({type:"checkbox",onChange:function(e){E&&E(e,{checked:e.target.checked,name:N})},disabled:y,checked:m,"data-test-id":O},C)),m&&a.createElement(s,null),j&&!m&&a.createElement("div",{className:_.indeterminateIcon},a.createElement(u,null))),(h||p)&&a.createElement("span",{className:_.content},h&&a.createElement("span",{className:_.label},h),p&&a.createElement("span",{className:_.hint},p)),g&&a.createElement("span",{className:_.addons},g))}));h.defaultProps={indeterminate:!1};export{h 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-054c3e60.js";import"react";import"react-merge-refs";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-054c3e60.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"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",l=function(l){var m=l.title,a=l.subtitle,d=l.selected,s=void 0===d?[]:d,u=l.data,p=void 0===u?[]:u,v=l.onChange,g=l.columns,f=void 0===g?1:g,y=l.disabled,h=l.gr,x=void 0===h?20:h,b=l.gc,k=void 0===b?20:b,j=l.dataTestId,_=s||[],E=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(m||a)&&t.createElement("div",{className:i},m&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},m),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:f,gr:x,gc:k},t.createElement(t.Fragment,null,null==p?void 0:p.map((function(n,r){return t.createElement(o,{disabled:y,key:n.key+n.content,dataTestId:E(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(e([],_),[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})})))))};export{l as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-054c3e60.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-054c3e60.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-bd90baf8.js";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 s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../isSymbol-f93a808c.js";import"../_commonjsHelpers-03353663.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../typography/title/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,b=u.selected,_=u.checkableParent,j=u.collapsable,v=u.disabled,E=u.onChange,g=[],y=Array.isArray(b)?b:[];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&&g.push(t)}));var x=n(g),k=x[0],C=x[1],F=function(t){t.forEach((function(n){(null==y?void 0:y.includes(n))?E(y.filter((function(e){return!t.includes(e)}))):E(e(e([],y),t))}))},w=function(e){var n,o,l=e.element;return _?t.createElement(r,{block:!0,disabled:v,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==y?void 0:y.includes(e))&&(o=!0)})),o),onChange:function(){return F(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,k.map((function(e,n){var p;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(w,{element:e}),j&&t.createElement(m,{onClick:function(){return function(e){var t=k.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=k.concat(t);C(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(p={},p[d.collapse_btn_collapsed]=e.collapsed,p)),icon:o})),!e.collapsed&&t.createElement(s,{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 F([e.id])},checked:null==y?void 0:y.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==k?void 0:k.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-054c3e60.js";import"react";import"../ChevronDownS-bd90baf8.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-f93a808c.js";import"../_commonjsHelpers-03353663.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/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as e from"react";import t from"react";import{P as o}from"../PlusS-806e430d.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as l}from"../typography/component.js";import"../tslib.es6-054c3e60.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../typography/title/component.js";var i=function(){return i=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)};function c(t){return e.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},t),e.createElement("path",{fillRule:"evenodd",d:"M10.735 1.877c.306-.1.636-.1.942 0 .22.072.389.193.522.306.121.103.253.235.388.37l1.36 1.36c.136.136.269.269.372.39.113.133.235.302.306.523.1.306.1.636 0 .942a1.5 1.5 0 0 1-.306.523c-.103.121-.235.253-.371.389l-.024.024-8.275 8.275a.76.76 0 0 1-.54.224H2.063a.76.76 0 0 1-.762-.762v-3.048c0-.202.08-.396.223-.54L7.62 4.759l2.19-2.19.014-.014c.136-.136.268-.268.39-.37a1.5 1.5 0 0 1 .522-.307M8.158 6.375l-5.334 5.333v1.97h1.97l5.334-5.333zm3.048.892 1.654-1.654a6 6 0 0 0 .304-.316l-.007-.008a6 6 0 0 0-.304-.315l-1.326-1.326a6 6 0 0 0-.314-.303l-.007-.006-.008.006a6 6 0 0 0-.314.304l-.004.003-1.645 1.645z",clipRule:"evenodd"}))}var a=function(e){var o=e.location,r=e.onClick;return t.createElement(t.Fragment,null,t.createElement(l.Text,{view:"title",weight:"bold",color:"primary"},o.address),t.createElement(n,{icon:c,onClick:r,size:"s",view:"ghost"}))},m=function(e){var n=e.onClick;return t.createElement(r,{leftAddons:t.createElement(o,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{m as Addons,a as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-bd90baf8.js";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"../isSymbol-f93a808c.js";import"../_commonjsHelpers-03353663.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-054c3e60.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",c="index-module_label__kuH6r",p="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,f=u.label,x=u.content,b=u.expanded,y=u.addons,h=u.children,v=u.disabled,g=o(b),E=g[0],w=g[1];return t((function(){w(b)}),[b]),e.createElement("div",null,e.createElement("div",{className:a},e.createElement("div",{className:l},f&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},f),x),e.createElement("div",{className:l},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(p,(j={},j[d]=E,j)),disabled:v,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"../ChevronDownS-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-bd90baf8.js";import"classnames";import"../collapse/component.js";import"../isSymbol-f93a808c.js";import"../_commonjsHelpers-03353663.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-054c3e60.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/text/component.js";import"../colors.module-42c4e92f.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as
|
|
1
|
+
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as a}from"react";import u from"classnames";import{a as c,i as s}from"../isSymbol-f93a808c.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../_commonjsHelpers-03353663.js";import"../tslib.es6-054c3e60.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var d=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)},m=function(){return c.Date.now()},v=/\s/;var p=function(e){for(var n=e.length;n--&&v.test(e.charAt(n)););return n},x=/^\s+/;var h=function(e){return e?e.slice(0,p(e)+1).replace(x,""):e},_=NaN,g=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,w=/^0o[0-7]+$/i,y=parseInt;var T=function(e){if("number"==typeof e)return e;if(s(e))return _;if(d(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=d(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=h(e);var t=E.test(e);return t||w.test(e)?y(e.slice(2),t?2:8):g.test(e)?_:+e},b="Expected a function",j=Math.max,k=Math.min;var N=function(e,n,t){var r,i,o,a,u,c,s=0,f=!1,l=!1,v=!0;if("function"!=typeof e)throw new TypeError(b);function p(n){var t=r,o=i;return r=i=void 0,s=n,a=e.apply(o,t)}function x(e){var t=e-c;return void 0===c||t>=n||t<0||l&&e-s>=o}function h(){var e=m();if(x(e))return _(e);u=setTimeout(h,function(e){var t=n-(e-c);return l?k(t,o-(e-s)):t}(e))}function _(e){return u=void 0,v&&r?p(e):(r=i=void 0,a)}function g(){var e=m(),t=x(e);if(r=arguments,i=this,c=e,t){if(void 0===u)return function(e){return s=e,u=setTimeout(h,n),f?p(e):a}(c);if(l)return clearTimeout(u),u=setTimeout(h,n),p(c)}return void 0===u&&(u=setTimeout(h,n)),a}return n=T(n)||0,d(t)&&(f=!!t.leading,o=(l="maxWait"in t)?j(T(t.maxWait)||0,n):o,v="trailing"in t?!!t.trailing:v),g.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=i=u=void 0},g.flush=function(){return void 0===u?a:_(m())},g},z="index-module_collapse__ORa-f",C="index-module_content__UDk-m",L="index-module_expandedContent__iQszl",H="index-module_children_wrap__ekYCk",O=n((function(n,c){var s,d=n.expanded,m=n.defaultExpanded,v=n.collapsedLabel,p=n.expandedLabel,x=n.children,h=n.className,_=n.contentClassName,g=n.id,E=n.onExpandedChange,w=n.onTransitionEnd,y=n.dataTestId,T=n.linkProps,b=void 0===d,j=t(null),k=t(null),O=r(m||d),$=O[0],D=O[1],I=b?$:d,M=i((function(){var e;k.current&&j.current&&(e=I?k.current.offsetHeight:0,j.current.style.height=e+"px")}),[I]),W=i((function(){w&&w(d)}),[d,w]),A=i((function(){b&&D(!I),console.log(I),E&&E()}),[I,E,b]);o((function(){var e=N((function(){return M()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[M]),o((function(){var e=new f(M);return k.current&&e.observe(k.current),function(){e.disconnect()}}),[M]),o((function(){return M()}),[I,M]);var F=a((function(){var e,n=null===(e=j.current)||void 0===e?void 0:e.offsetHeight;return{height:I&&!n?"0px":n+"px"}}),[I]),P=!!p||!!v;return e.createElement("div",{ref:c,className:u(h,z),id:g,"data-test-id":y},e.createElement("div",{onTransitionEnd:W,ref:j,className:u(C,_,(s={},s[L]=I,s)),style:F},e.createElement("div",{className:u(H),ref:k},x)),P&&e.createElement(l,{view:(null==T?void 0:T.view)||"secondary",size:(null==T?void 0:T.size)||"m",pseudo:!0,onClick:A},I?p:v))}));export{O as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-f93a808c.js";import"../_commonjsHelpers-03353663.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-054c3e60.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={primary:"colors-module_primary__f19I7","primary-inverted":"colors-module_primary-inverted__g2GMq",secondary:"colors-module_secondary__Gon7c","secondary-inverted":"colors-module_secondary-inverted__oauNr",positive:"colors-module_positive__Vno8V",attention:"colors-module_attention__ZbzM2",negative:"colors-module_negative__7JvUF",link:"colors-module_link__gqQZ2",disabled:"colors-module_disabled__TPJs4",tertiary:"colors-module_tertiary__e7GJP","tertiary-inverted":"colors-module_tertiary-inverted__jgNuV",accent:"colors-module_accent__-sG9C"};export{o as c};
|