@alphakits/ui 1.30.40 → 1.30.42
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/__internal/utils/clear-text.d.ts +2 -0
- package/dist/__internal/utils/clear-text.js +1 -0
- package/dist/__internal/utils/getDataTestId.d.ts +2 -0
- package/dist/__internal/utils/getDataTestId.js +1 -0
- package/dist/__internal/utils/index.d.ts +2 -0
- package/dist/__internal/utils/index.js +1 -0
- package/dist/amount/component.d.ts +22 -0
- package/dist/amount/component.js +1 -0
- package/dist/amount/index.d.ts +1 -0
- package/dist/amount/index.js +1 -0
- package/dist/amount-input/component.d.ts +34 -0
- package/dist/amount-input/component.js +1 -0
- package/dist/amount-input/index.d.ts +1 -0
- package/dist/amount-input/index.js +1 -0
- package/dist/amount-input/utils/index.d.ts +3 -0
- package/dist/amount-input/utils/index.js +1 -0
- package/dist/avatar/component.d.ts +11 -0
- package/dist/avatar/component.js +1 -0
- package/dist/avatar/index.d.ts +1 -0
- package/dist/avatar/index.js +1 -0
- package/dist/back-button/component.d.ts +9 -0
- package/dist/back-button/component.js +1 -0
- package/dist/back-button/index.d.ts +1 -0
- package/dist/back-button/index.js +1 -0
- package/dist/badge/component.d.ts +14 -0
- package/dist/badge/component.js +1 -0
- package/dist/badge/index.d.ts +1 -0
- package/dist/badge/index.js +1 -0
- package/dist/base-card/component.d.ts +23 -0
- package/dist/base-card/component.js +1 -0
- package/dist/base-card/index.d.ts +1 -0
- package/dist/base-card/index.js +1 -0
- package/dist/bottom-sheet/component.d.ts +11 -0
- package/dist/bottom-sheet/component.js +1 -0
- package/dist/bottom-sheet/index.d.ts +1 -0
- package/dist/bottom-sheet/index.js +1 -0
- package/dist/box/component.d.ts +34 -0
- package/dist/box/component.js +1 -0
- package/dist/box/index.d.ts +1 -0
- package/dist/box/index.js +1 -0
- package/dist/button/component.d.ts +21 -0
- package/dist/button/component.js +1 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button/index.js +1 -0
- package/dist/button-arrow/component.d.ts +12 -0
- package/dist/button-arrow/component.js +1 -0
- package/dist/button-arrow/index.d.ts +1 -0
- package/dist/button-arrow/index.js +1 -0
- package/dist/calendar/component.d.ts +26 -0
- package/dist/calendar/component.js +1 -0
- package/dist/calendar/components/days-table/component.d.ts +15 -0
- package/dist/calendar/components/days-table/component.js +1 -0
- package/dist/calendar/components/days-table/index.d.ts +1 -0
- package/dist/calendar/components/days-table/index.js +1 -0
- package/dist/calendar/components/header/index.d.ts +1 -0
- package/dist/calendar/components/header/index.js +1 -0
- package/dist/calendar/components/header//321/201omponent.d.ts +17 -0
- package/dist/calendar/components/header//321/201omponent.js +1 -0
- package/dist/calendar/components/months-table/index.d.ts +1 -0
- package/dist/calendar/components/months-table/index.js +1 -0
- package/dist/calendar/components/months-table//321/201omponent.d.ts +11 -0
- package/dist/calendar/components/months-table//321/201omponent.js +1 -0
- package/dist/calendar/components/select-button/index.d.ts +1 -0
- package/dist/calendar/components/select-button/index.js +1 -0
- package/dist/calendar/components/select-button//321/201omponent.d.ts +12 -0
- package/dist/calendar/components/select-button//321/201omponent.js +1 -0
- package/dist/calendar/components/years-table/index.d.ts +1 -0
- package/dist/calendar/components/years-table/index.js +1 -0
- package/dist/calendar/components/years-table//321/201omponent.d.ts +9 -0
- package/dist/calendar/components/years-table//321/201omponent.js +1 -0
- package/dist/calendar/index.d.ts +4 -0
- package/dist/calendar/index.js +1 -0
- package/dist/calendar/typings.d.ts +16 -0
- package/dist/calendar/typings.js +1 -0
- package/dist/calendar/use-calendar.d.ts +57 -0
- package/dist/calendar/use-calendar.js +1 -0
- package/dist/calendar/use-period.d.ts +14 -0
- package/dist/calendar/use-period.js +1 -0
- package/dist/calendar/utils.d.ts +40 -0
- package/dist/calendar/utils.js +1 -0
- package/dist/calendar-input/component.d.ts +58 -0
- package/dist/calendar-input/component.js +1 -0
- package/dist/calendar-input/index.d.ts +2 -0
- package/dist/calendar-input/index.js +1 -0
- package/dist/calendar-input/utils.d.ts +9 -0
- package/dist/calendar-input/utils.js +1 -0
- package/dist/capitalize-a9bfbe29.js +1 -0
- package/dist/card/component.d.ts +14 -0
- package/dist/card/component.js +1 -0
- package/dist/card/images/index.d.ts +5 -0
- package/dist/card/images/index.js +1 -0
- package/dist/card/index.d.ts +1 -0
- package/dist/card/index.js +1 -0
- package/dist/cell/base/component.d.ts +13 -0
- package/dist/cell/base/component.js +1 -0
- package/dist/cell/component.d.ts +7 -0
- package/dist/cell/component.js +1 -0
- package/dist/cell/index.d.ts +1 -0
- package/dist/cell/index.js +1 -0
- package/dist/cell/pure/component.d.ts +15 -0
- package/dist/cell/pure/component.js +1 -0
- package/dist/cell/pure/index.d.ts +1 -0
- package/dist/cell/pure/index.js +1 -0
- package/dist/checkbox/component.d.ts +36 -0
- package/dist/checkbox/component.js +1 -0
- package/dist/checkbox/index.d.ts +1 -0
- package/dist/checkbox/index.js +1 -0
- package/dist/checkbox-group/component.d.ts +18 -0
- package/dist/checkbox-group/component.js +1 -0
- package/dist/checkbox-group/index.d.ts +1 -0
- package/dist/checkbox-group/index.js +1 -0
- package/dist/checkbox-lists/component.d.ts +21 -0
- package/dist/checkbox-lists/component.js +1 -0
- package/dist/checkbox-lists/index.d.ts +1 -0
- package/dist/checkbox-lists/index.js +1 -0
- package/dist/checkbox-lists/mock.d.ts +82 -0
- package/dist/checkbox-lists/mock.js +1 -0
- package/dist/collapsable-row/addons.d.ts +7 -0
- package/dist/collapsable-row/addons.js +1 -0
- package/dist/collapsable-row/component.d.ts +12 -0
- package/dist/collapsable-row/component.js +1 -0
- package/dist/collapsable-row/fixtures.d.ts +100 -0
- package/dist/collapsable-row/fixtures.js +1 -0
- package/dist/collapsable-row/index.d.ts +1 -0
- package/dist/collapsable-row/index.js +1 -0
- package/dist/collapse/component.d.ts +19 -0
- package/dist/collapse/component.js +1 -0
- package/dist/collapse/index.d.ts +1 -0
- package/dist/collapse/index.js +1 -0
- package/dist/colors.module-f96393ec.js +1 -0
- package/dist/contact-block-ed9cc9d3.d.ts +8 -0
- package/dist/contact-block-ed9cc9d3.js +1 -0
- package/dist/copy-button/component.d.ts +9 -0
- package/dist/copy-button/component.js +1 -0
- package/dist/copy-button/index.d.ts +1 -0
- package/dist/copy-button/index.js +1 -0
- package/dist/date/component.d.ts +13 -0
- package/dist/date/component.js +1 -0
- package/dist/date/index.d.ts +1 -0
- package/dist/date/index.js +1 -0
- package/dist/date-switcher/component.d.ts +11 -0
- package/dist/date-switcher/component.js +1 -0
- package/dist/date-switcher/index.d.ts +1 -0
- package/dist/date-switcher/index.js +1 -0
- package/dist/decorated-item/component.d.ts +13 -0
- package/dist/decorated-item/component.js +1 -0
- package/dist/decorated-item/index.d.ts +1 -0
- package/dist/decorated-item/index.js +1 -0
- package/dist/divider/component.d.ts +10 -0
- package/dist/divider/component.js +1 -0
- package/dist/divider/index.d.ts +1 -0
- package/dist/divider/index.js +1 -0
- package/dist/dot/component.d.ts +7 -0
- package/dist/dot/component.js +1 -0
- package/dist/dot/index.d.ts +1 -0
- package/dist/dot/index.js +1 -0
- package/dist/empty-page/component.d.ts +14 -0
- package/dist/empty-page/component.js +1 -0
- package/dist/empty-page/index.d.ts +1 -0
- package/dist/empty-page/index.js +1 -0
- package/dist/flex/component.d.ts +24 -0
- package/dist/flex/component.js +1 -0
- package/dist/flex/index.d.ts +1 -0
- package/dist/flex/index.js +1 -0
- package/dist/flex-columns/component.d.ts +11 -0
- package/dist/flex-columns/component.js +1 -0
- package/dist/flex-columns/index.d.ts +1 -0
- package/dist/flex-columns/index.js +1 -0
- package/dist/footer/component.d.ts +27 -0
- package/dist/footer/component.js +1 -0
- package/dist/footer/contact-block.d.ts +0 -0
- package/dist/footer/contact-block.js +1 -0
- package/dist/footer/index.d.ts +1 -0
- package/dist/footer/index.js +1 -0
- package/dist/form/component.d.ts +3 -0
- package/dist/form/component.js +1 -0
- package/dist/form/components/form-loading/index.d.ts +4 -0
- package/dist/form/components/form-loading/index.js +1 -0
- package/dist/form/index.d.ts +1 -0
- package/dist/form/index.js +1 -0
- package/dist/form/templates/base-form/index.d.ts +17 -0
- package/dist/form/templates/base-form/index.js +1 -0
- package/dist/form/templates/filters-form/index.d.ts +15 -0
- package/dist/form/templates/filters-form/index.js +1 -0
- package/dist/form/templates/rest-form/form.d.ts +6 -0
- package/dist/form/templates/rest-form/form.js +1 -0
- package/dist/form/templates/rest-form/index.d.ts +31 -0
- package/dist/form/templates/rest-form/index.js +1 -0
- package/dist/form/utils/get-default-values.d.ts +2 -0
- package/dist/form/utils/get-default-values.js +1 -0
- package/dist/form/utils/remove-undefined-from-object.d.ts +4 -0
- package/dist/form/utils/remove-undefined-from-object.js +1 -0
- package/dist/form-control/component.d.ts +44 -0
- package/dist/form-control/component.js +1 -0
- package/dist/form-control/index.d.ts +1 -0
- package/dist/form-control/index.js +1 -0
- package/dist/grid/col/component.d.ts +16 -0
- package/dist/grid/col/component.js +1 -0
- package/dist/grid/col/index.d.ts +1 -0
- package/dist/grid/col/index.js +1 -0
- package/dist/grid/component.d.ts +8 -0
- package/dist/grid/component.js +1 -0
- package/dist/grid/index.d.ts +1 -0
- package/dist/grid/index.js +1 -0
- package/dist/grid/row/component.d.ts +14 -0
- package/dist/grid/row/component.js +1 -0
- package/dist/grid/row/index.d.ts +1 -0
- package/dist/grid/row/index.js +1 -0
- package/dist/grid/typings.d.ts +16 -0
- package/dist/grid/typings.js +1 -0
- package/dist/grid/utils/index.d.ts +3 -0
- package/dist/grid/utils/index.js +1 -0
- package/dist/gutters.module-abc0a059.js +1 -0
- package/dist/header-search/component.d.ts +10 -0
- package/dist/header-search/component.js +1 -0
- package/dist/header-search/index.d.ts +1 -0
- package/dist/header-search/index.js +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-crud-form-requests/index.d.ts +17 -0
- package/dist/hooks/use-crud-form-requests/index.js +1 -0
- package/dist/hooks/use-get-one/index.d.ts +8 -0
- package/dist/hooks/use-get-one/index.js +1 -0
- package/dist/hooks/useClickOutside/index.d.ts +4 -0
- package/dist/hooks/useClickOutside/index.js +1 -0
- package/dist/hooks/useFocus/index.d.ts +5 -0
- package/dist/hooks/useFocus/index.js +1 -0
- package/dist/hooks/usePrevious/index.d.ts +2 -0
- package/dist/hooks/usePrevious/index.js +1 -0
- package/dist/icon-button/component.d.ts +20 -0
- package/dist/icon-button/component.js +1 -0
- package/dist/icon-button/index.d.ts +1 -0
- package/dist/icon-button/index.js +1 -0
- package/dist/image/component.d.ts +5 -0
- package/dist/image/component.js +1 -0
- package/dist/image/image-base.d.ts +6 -0
- package/dist/image/image-base.js +1 -0
- package/dist/image/index.d.ts +2 -0
- package/dist/image/index.js +1 -0
- package/dist/image/types.d.ts +27 -0
- package/dist/image/types.js +1 -0
- package/dist/image/use-image-render-component.d.ts +0 -0
- package/dist/image/use-image-render-component.js +1 -0
- package/dist/image/utils.d.ts +2 -0
- package/dist/image/utils.js +1 -0
- package/dist/image-gallery/component.d.ts +11 -0
- package/dist/image-gallery/component.js +1 -0
- package/dist/image-gallery/index.d.ts +1 -0
- package/dist/image-gallery/index.js +1 -0
- package/dist/image-uploader/component.d.ts +25 -0
- package/dist/image-uploader/component.js +1 -0
- package/dist/image-uploader/index.d.ts +1 -0
- package/dist/image-uploader/index.js +1 -0
- package/dist/index.css +1 -0
- package/dist/index.ts +93 -0
- package/dist/info-block-header/component.d.ts +8 -0
- package/dist/info-block-header/component.js +1 -0
- package/dist/info-block-header/index.d.ts +1 -0
- package/dist/info-block-header/index.js +1 -0
- package/dist/info-block-item/component.d.ts +12 -0
- package/dist/info-block-item/component.js +1 -0
- package/dist/info-block-item/index.d.ts +1 -0
- package/dist/info-block-item/index.js +1 -0
- package/dist/info-block-wrapper/component.d.ts +8 -0
- package/dist/info-block-wrapper/component.js +1 -0
- package/dist/info-block-wrapper/index.d.ts +1 -0
- package/dist/info-block-wrapper/index.js +1 -0
- package/dist/input/component.d.ts +68 -0
- package/dist/input/component.js +1 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +1 -0
- package/dist/input-autocomplete/autocomplete-field/index.d.ts +6 -0
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -0
- package/dist/input-autocomplete/component.d.ts +86 -0
- package/dist/input-autocomplete/component.js +1 -0
- package/dist/input-autocomplete/index.d.ts +1 -0
- package/dist/input-autocomplete/index.js +1 -0
- package/dist/input-ghost/component.d.ts +12 -0
- package/dist/input-ghost/component.js +1 -0
- package/dist/input-ghost/index.d.ts +1 -0
- package/dist/input-ghost/index.js +1 -0
- package/dist/isSymbol-98d98352.js +1 -0
- package/dist/link/component.d.ts +29 -0
- package/dist/link/component.js +1 -0
- package/dist/link/index.d.ts +1 -0
- package/dist/link/index.js +1 -0
- package/dist/list-allert/component.d.ts +10 -0
- package/dist/list-allert/component.js +1 -0
- package/dist/list-allert/index.d.ts +1 -0
- package/dist/list-allert/index.js +1 -0
- package/dist/loader/component.d.ts +8 -0
- package/dist/loader/component.js +1 -0
- package/dist/loader/index.d.ts +1 -0
- package/dist/loader/index.js +1 -0
- package/dist/masked-input/component.d.ts +45 -0
- package/dist/masked-input/component.js +1 -0
- package/dist/masked-input/index.d.ts +1 -0
- package/dist/masked-input/index.js +1 -0
- package/dist/menu/component.d.ts +25 -0
- package/dist/menu/component.js +1 -0
- package/dist/menu/components/content-header/index.d.ts +8 -0
- package/dist/menu/components/content-header/index.js +1 -0
- package/dist/menu/components/index.d.ts +5 -0
- package/dist/menu/components/index.js +1 -0
- package/dist/menu/components/menu-avatar/index.d.ts +10 -0
- package/dist/menu/components/menu-avatar/index.js +1 -0
- package/dist/menu/components/menu-back-button/index.d.ts +8 -0
- package/dist/menu/components/menu-back-button/index.js +1 -0
- package/dist/menu/components/menu-button/index.d.ts +13 -0
- package/dist/menu/components/menu-button/index.js +1 -0
- package/dist/menu/components/menu-buttons-list/index.d.ts +13 -0
- package/dist/menu/components/menu-buttons-list/index.js +1 -0
- package/dist/menu/components/user-button/index.d.ts +10 -0
- package/dist/menu/components/user-button/index.js +1 -0
- package/dist/menu/hooks/use-menu.d.ts +8 -0
- package/dist/menu/hooks/use-menu.js +1 -0
- package/dist/menu/index.d.ts +1 -0
- package/dist/menu/index.js +1 -0
- package/dist/message/component.d.ts +16 -0
- package/dist/message/component.js +1 -0
- package/dist/message/index.d.ts +1 -0
- package/dist/message/index.js +1 -0
- package/dist/modal/components/modals/index.d.ts +9 -0
- package/dist/modal/components/modals/index.js +1 -0
- package/dist/modal/components/modals/modal.d.ts +10 -0
- package/dist/modal/components/modals/modal.js +1 -0
- package/dist/modal/context.d.ts +10 -0
- package/dist/modal/context.js +1 -0
- package/dist/modal/hooks/use-modal.d.ts +12 -0
- package/dist/modal/hooks/use-modal.js +1 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.js +1 -0
- package/dist/modal/types.d.ts +27 -0
- package/dist/modal/types.js +1 -0
- package/dist/modal/utils/delete-property-by-id.d.ts +4 -0
- package/dist/modal/utils/delete-property-by-id.js +1 -0
- package/dist/modal/utils/is-last.d.ts +2 -0
- package/dist/modal/utils/is-last.js +1 -0
- package/dist/mq/component.d.ts +11 -0
- package/dist/mq/component.js +1 -0
- package/dist/mq/index.d.ts +2 -0
- package/dist/mq/index.js +1 -0
- package/dist/mq/use-match-media.d.ts +2 -0
- package/dist/mq/use-match-media.js +1 -0
- package/dist/mq/utils.d.ts +5 -0
- package/dist/mq/utils.js +1 -0
- package/dist/notification/component.d.ts +35 -0
- package/dist/notification/component.js +1 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/index.js +1 -0
- package/dist/notification/utils/index.d.ts +4 -0
- package/dist/notification/utils/index.js +1 -0
- package/dist/padding/component.d.ts +9 -0
- package/dist/padding/component.js +1 -0
- package/dist/padding/index.d.ts +1 -0
- package/dist/padding/index.js +1 -0
- package/dist/page-container/component.d.ts +15 -0
- package/dist/page-container/component.js +1 -0
- package/dist/page-container/index.d.ts +1 -0
- package/dist/page-container/index.js +1 -0
- package/dist/page-loading/component.d.ts +3 -0
- package/dist/page-loading/component.js +1 -0
- package/dist/page-loading/index.d.ts +1 -0
- package/dist/page-loading/index.js +1 -0
- package/dist/page-with-controls/component.d.ts +24 -0
- package/dist/page-with-controls/component.js +1 -0
- package/dist/page-with-controls/index.d.ts +1 -0
- package/dist/page-with-controls/index.js +1 -0
- package/dist/picker-button/common/index.d.ts +1 -0
- package/dist/picker-button/common/index.js +1 -0
- package/dist/picker-button/common/labeled-button/index.d.ts +12 -0
- package/dist/picker-button/common/labeled-button/index.js +1 -0
- package/dist/picker-button/component.d.ts +16 -0
- package/dist/picker-button/component.js +1 -0
- package/dist/picker-button/field/Component.d.ts +11 -0
- package/dist/picker-button/field/Component.js +1 -0
- package/dist/picker-button/field/index.d.ts +1 -0
- package/dist/picker-button/field/index.js +1 -0
- package/dist/picker-button/index.d.ts +2 -0
- package/dist/picker-button/index.js +1 -0
- package/dist/popover/component.d.ts +28 -0
- package/dist/popover/component.js +1 -0
- package/dist/popover/index.d.ts +1 -0
- package/dist/popover/index.js +1 -0
- package/dist/portal/component.d.ts +7 -0
- package/dist/portal/component.js +1 -0
- package/dist/portal/index.d.ts +1 -0
- package/dist/portal/index.js +1 -0
- package/dist/portal/utils.d.ts +5 -0
- package/dist/portal/utils.js +1 -0
- package/dist/progress-bar/component.d.ts +11 -0
- package/dist/progress-bar/component.js +1 -0
- package/dist/progress-bar/index.d.ts +1 -0
- package/dist/progress-bar/index.js +1 -0
- package/dist/progress-index/component.d.ts +11 -0
- package/dist/progress-index/component.js +1 -0
- package/dist/progress-index/index.d.ts +1 -0
- package/dist/progress-index/index.js +1 -0
- package/dist/radio/component.d.ts +40 -0
- package/dist/radio/component.js +1 -0
- package/dist/radio/index.d.ts +1 -0
- package/dist/radio/index.js +1 -0
- package/dist/radio-group/component.d.ts +18 -0
- package/dist/radio-group/component.js +1 -0
- package/dist/radio-group/index.d.ts +1 -0
- package/dist/radio-group/index.js +1 -0
- package/dist/radio-groups/component.d.ts +19 -0
- package/dist/radio-groups/component.js +1 -0
- package/dist/radio-groups/index.d.ts +1 -0
- package/dist/radio-groups/index.js +1 -0
- package/dist/radio-groups/mock.d.ts +10 -0
- package/dist/radio-groups/mock.js +1 -0
- package/dist/section-wrapper/component.d.ts +12 -0
- package/dist/section-wrapper/component.js +1 -0
- package/dist/section-wrapper/index.d.ts +1 -0
- package/dist/section-wrapper/index.js +1 -0
- package/dist/select/component.d.ts +32 -0
- package/dist/select/component.js +1 -0
- package/dist/select/components/arrow/component.d.ts +4 -0
- package/dist/select/components/arrow/component.js +1 -0
- package/dist/select/components/arrow/index.d.ts +1 -0
- package/dist/select/components/arrow/index.js +1 -0
- package/dist/select/components/base-select/component.d.ts +5 -0
- package/dist/select/components/base-select/component.js +1 -0
- package/dist/select/components/base-select/index.d.ts +1 -0
- package/dist/select/components/base-select/index.js +1 -0
- package/dist/select/components/checkmark/component.d.ts +4 -0
- package/dist/select/components/checkmark/component.js +1 -0
- package/dist/select/components/checkmark/index.d.ts +1 -0
- package/dist/select/components/checkmark/index.js +1 -0
- package/dist/select/components/field/component.d.ts +5 -0
- package/dist/select/components/field/component.js +1 -0
- package/dist/select/components/field/index.d.ts +1 -0
- package/dist/select/components/field/index.js +1 -0
- package/dist/select/components/index.d.ts +7 -0
- package/dist/select/components/index.js +1 -0
- package/dist/select/components/native-select/component.d.ts +13 -0
- package/dist/select/components/native-select/component.js +1 -0
- package/dist/select/components/native-select/index.d.ts +1 -0
- package/dist/select/components/native-select/index.js +1 -0
- package/dist/select/components/optgroup/component.d.ts +4 -0
- package/dist/select/components/optgroup/component.js +1 -0
- package/dist/select/components/optgroup/index.d.ts +1 -0
- package/dist/select/components/optgroup/index.js +1 -0
- package/dist/select/components/option/component.d.ts +4 -0
- package/dist/select/components/option/component.js +1 -0
- package/dist/select/components/option/index.d.ts +1 -0
- package/dist/select/components/option/index.js +1 -0
- package/dist/select/components/options-list/component.d.ts +5 -0
- package/dist/select/components/options-list/component.js +1 -0
- package/dist/select/components/options-list/index.d.ts +1 -0
- package/dist/select/components/options-list/index.js +1 -0
- package/dist/select/components/select-search/index.d.ts +11 -0
- package/dist/select/components/select-search/index.js +1 -0
- package/dist/select/components/virtual-options-list/component.d.ts +7 -0
- package/dist/select/components/virtual-options-list/component.js +1 -0
- package/dist/select/components/virtual-options-list/index.d.ts +1 -0
- package/dist/select/components/virtual-options-list/index.js +1 -0
- package/dist/select/index.d.ts +5 -0
- package/dist/select/index.js +1 -0
- package/dist/select/presets/index.d.ts +2 -0
- package/dist/select/presets/index.js +1 -0
- package/dist/select/presets/use-lazy-loading/index.d.ts +45 -0
- package/dist/select/presets/use-lazy-loading/index.js +1 -0
- package/dist/select/presets/use-select-with-loading/hook.d.ts +11 -0
- package/dist/select/presets/use-select-with-loading/hook.js +1 -0
- package/dist/select/typings.d.ts +159 -0
- package/dist/select/typings.js +1 -0
- package/dist/select/utils.d.ts +34 -0
- package/dist/select/utils.js +1 -0
- package/dist/sidepanel/component.d.ts +24 -0
- package/dist/sidepanel/component.js +1 -0
- package/dist/sidepanel/index.d.ts +1 -0
- package/dist/sidepanel/index.js +1 -0
- package/dist/sidepanel-header/component.d.ts +21 -0
- package/dist/sidepanel-header/component.js +1 -0
- package/dist/sidepanel-header/index.d.ts +1 -0
- package/dist/sidepanel-header/index.js +1 -0
- package/dist/skeleton/component.d.ts +11 -0
- package/dist/skeleton/component.js +1 -0
- package/dist/skeleton/index.d.ts +1 -0
- package/dist/skeleton/index.js +1 -0
- package/dist/space/Item.d.ts +16 -0
- package/dist/space/Item.js +1 -0
- package/dist/space/component.d.ts +17 -0
- package/dist/space/component.js +1 -0
- package/dist/space/index.d.ts +1 -0
- package/dist/space/index.js +1 -0
- package/dist/space/utils.d.ts +11 -0
- package/dist/space/utils.js +1 -0
- package/dist/spinner/component.d.ts +11 -0
- package/dist/spinner/component.js +1 -0
- package/dist/spinner/index.d.ts +1 -0
- package/dist/spinner/index.js +1 -0
- package/dist/stack/component.d.ts +7 -0
- package/dist/stack/component.js +1 -0
- package/dist/stack/context.d.ts +10 -0
- package/dist/stack/context.js +1 -0
- package/dist/stack/index.d.ts +2 -0
- package/dist/stack/index.js +1 -0
- package/dist/status/component.d.ts +11 -0
- package/dist/status/component.js +1 -0
- package/dist/status/index.d.ts +1 -0
- package/dist/status/index.js +1 -0
- package/dist/step-bar-35269c17.d.ts +8 -0
- package/dist/step-bar-35269c17.js +1 -0
- package/dist/stepped-progress-bar/components/step-bar.d.ts +0 -0
- package/dist/stepped-progress-bar/components/step-bar.js +1 -0
- package/dist/stepped-progress-bar/index.d.ts +23 -0
- package/dist/stepped-progress-bar/index.js +1 -0
- package/dist/sticker/component.d.ts +10 -0
- package/dist/sticker/component.js +1 -0
- package/dist/sticker/index.d.ts +1 -0
- package/dist/sticker/index.js +1 -0
- package/dist/suffix-input/component.d.ts +22 -0
- package/dist/suffix-input/component.js +1 -0
- package/dist/suffix-input/index.d.ts +1 -0
- package/dist/suffix-input/index.js +1 -0
- package/dist/super-list-header/component.d.ts +10 -0
- package/dist/super-list-header/component.js +1 -0
- package/dist/super-list-header/index.d.ts +1 -0
- package/dist/super-list-header/index.js +1 -0
- package/dist/super-list-item/component.d.ts +14 -0
- package/dist/super-list-item/component.js +1 -0
- package/dist/super-list-item/index.d.ts +1 -0
- package/dist/super-list-item/index.js +1 -0
- package/dist/switch/component.d.ts +33 -0
- package/dist/switch/component.js +1 -0
- package/dist/switch/index.d.ts +1 -0
- package/dist/switch/index.js +1 -0
- package/dist/table/columns.d.ts +7 -0
- package/dist/table/columns.js +1 -0
- package/dist/table/component.d.ts +7 -0
- package/dist/table/component.js +1 -0
- package/dist/table/components/cell/component.d.ts +18 -0
- package/dist/table/components/cell/component.js +1 -0
- package/dist/table/components/cell/index.d.ts +1 -0
- package/dist/table/components/cell/index.js +1 -0
- package/dist/table/components/cells/index.d.ts +10 -0
- package/dist/table/components/cells/index.js +1 -0
- package/dist/table/components/empty-list/index.d.ts +5 -0
- package/dist/table/components/empty-list/index.js +1 -0
- package/dist/table/components/error/index.d.ts +5 -0
- package/dist/table/components/error/index.js +1 -0
- package/dist/table/components/loading/index.d.ts +7 -0
- package/dist/table/components/loading/index.js +1 -0
- package/dist/table/components/pagination/index.d.ts +12 -0
- package/dist/table/components/pagination/index.js +1 -0
- package/dist/table/components/table-header/index.d.ts +20 -0
- package/dist/table/components/table-header/index.js +1 -0
- package/dist/table/hooks/use-table-data.d.ts +20 -0
- package/dist/table/hooks/use-table-data.js +1 -0
- package/dist/table/index.d.ts +2 -0
- package/dist/table/index.js +1 -0
- package/dist/table/languages/index.d.ts +2 -0
- package/dist/table/languages/index.js +1 -0
- package/dist/table/table.d.ts +39 -0
- package/dist/table/table.js +1 -0
- package/dist/table/types.d.ts +75 -0
- package/dist/table/types.js +1 -0
- package/dist/table/utils/add-query-param.d.ts +3 -0
- package/dist/table/utils/add-query-param.js +1 -0
- package/dist/table/utils/get-query-from-url.d.ts +3 -0
- package/dist/table/utils/get-query-from-url.js +1 -0
- package/dist/table/utils/get-tags.d.ts +10 -0
- package/dist/table/utils/get-tags.js +1 -0
- package/dist/table/utils/index.d.ts +8 -0
- package/dist/table/utils/index.js +1 -0
- package/dist/table/utils/is-object.d.ts +2 -0
- package/dist/table/utils/is-object.js +1 -0
- package/dist/table/utils/parse-query-params.d.ts +2 -0
- package/dist/table/utils/parse-query-params.js +1 -0
- package/dist/table/utils/prepare-rows.d.ts +12 -0
- package/dist/table/utils/prepare-rows.js +1 -0
- package/dist/table/utils/query-adapter.d.ts +2 -0
- package/dist/table/utils/query-adapter.js +1 -0
- package/dist/table/utils/remove-query-param.d.ts +2 -0
- package/dist/table/utils/remove-query-param.js +1 -0
- package/dist/table/utils/reset-query-param.d.ts +4 -0
- package/dist/table/utils/reset-query-param.js +1 -0
- package/dist/table/utils/serialize-data.d.ts +3 -0
- package/dist/table/utils/serialize-data.js +1 -0
- package/dist/table/utils/set-query-to-url.d.ts +2 -0
- package/dist/table/utils/set-query-to-url.js +1 -0
- package/dist/table/utils/sort-array.d.ts +2 -0
- package/dist/table/utils/sort-array.js +1 -0
- package/dist/table-status/component.d.ts +9 -0
- package/dist/table-status/component.js +1 -0
- package/dist/table-status/index.d.ts +1 -0
- package/dist/table-status/index.js +1 -0
- package/dist/tag/component.d.ts +17 -0
- package/dist/tag/component.js +1 -0
- package/dist/tag/index.d.ts +1 -0
- package/dist/tag/index.js +1 -0
- package/dist/tags-list/component.d.ts +10 -0
- package/dist/tags-list/component.js +1 -0
- package/dist/tags-list/index.d.ts +1 -0
- package/dist/tags-list/index.js +1 -0
- package/dist/textarea/component.d.ts +60 -0
- package/dist/textarea/component.js +1 -0
- package/dist/textarea/index.d.ts +1 -0
- package/dist/textarea/index.js +1 -0
- package/dist/theme-provider/component.d.ts +20 -0
- package/dist/theme-provider/component.js +1 -0
- package/dist/theme-provider/default-themes.d.ts +165 -0
- package/dist/theme-provider/default-themes.js +1 -0
- package/dist/theme-provider/index.d.ts +2 -0
- package/dist/theme-provider/index.js +1 -0
- package/dist/toast/component.d.ts +29 -0
- package/dist/toast/component.js +1 -0
- package/dist/toast/index.d.ts +1 -0
- package/dist/toast/index.js +1 -0
- package/dist/toast-notifier/component.d.ts +12 -0
- package/dist/toast-notifier/component.js +1 -0
- package/dist/toast-notifier/index.d.ts +1 -0
- package/dist/toast-notifier/index.js +1 -0
- package/dist/toast-notifier/use-timer.d.ts +7 -0
- package/dist/toast-notifier/use-timer.js +1 -0
- package/dist/toast-plate/component.d.ts +30 -0
- package/dist/toast-plate/component.js +1 -0
- package/dist/toast-plate/index.d.ts +1 -0
- package/dist/toast-plate/index.js +1 -0
- package/dist/tooltip/component.d.ts +23 -0
- package/dist/tooltip/component.js +1 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +1 -0
- package/dist/typings/api.d.ts +18 -0
- package/dist/typings/api.js +1 -0
- package/dist/typography/colors.d.ts +3 -0
- package/dist/typography/colors.js +1 -0
- package/dist/typography/component.d.ts +8 -0
- package/dist/typography/component.js +1 -0
- package/dist/typography/index.d.ts +1 -0
- package/dist/typography/index.js +1 -0
- package/dist/typography/text/component.d.ts +17 -0
- package/dist/typography/text/component.js +1 -0
- package/dist/typography/text/index.d.ts +1 -0
- package/dist/typography/text/index.js +1 -0
- package/dist/typography/title/component.d.ts +22 -0
- package/dist/typography/title/component.js +1 -0
- package/dist/typography/title/index.d.ts +4 -0
- package/dist/typography/title/index.js +1 -0
- package/dist/use-image-render-component-5c5e30dc.d.ts +13 -0
- package/dist/use-image-render-component-5c5e30dc.js +1 -0
- package/dist/utils/data/currency-codes.d.ts +35 -0
- package/dist/utils/data/currency-codes.js +1 -0
- package/dist/utils/format-amount/util.d.ts +12 -0
- package/dist/utils/format-amount/util.js +1 -0
- package/dist/utils/format-date/index.d.ts +21 -0
- package/dist/utils/format-date/index.js +1 -0
- package/dist/utils/get-currency-symbol/util.d.ts +2 -0
- package/dist/utils/get-currency-symbol/util.js +1 -0
- package/dist/utils/get-service-error/index.d.ts +21 -0
- package/dist/utils/get-service-error/index.js +1 -0
- package/dist/utils/get-service-error/is-axios-error.d.ts +3 -0
- package/dist/utils/get-service-error/is-axios-error.js +1 -0
- package/dist/utils/get-service-error/is-network-error.d.ts +2 -0
- package/dist/utils/get-service-error/is-network-error.js +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/show-toast/index.d.ts +3 -0
- package/dist/utils/show-toast/index.js +1 -0
- package/dist/utils/split-amount/util.d.ts +2 -0
- package/dist/utils/split-amount/util.js +1 -0
- package/dist/welcome-layout/component.d.ts +10 -0
- package/dist/welcome-layout/component.js +1 -0
- package/dist/welcome-layout/index.d.ts +1 -0
- package/dist/welcome-layout/index.js +1 -0
- package/dist/with-suffix/component.d.ts +44 -0
- package/dist/with-suffix/component.js +1 -0
- package/dist/with-suffix/index.d.ts +1 -0
- package/dist/with-suffix/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { KeyboardEvent, MouseEvent, Ref } from 'react';
|
|
3
|
+
import { Day, Month, View } from "./typings";
|
|
4
|
+
type UseCalendarProps = {
|
|
5
|
+
view?: View;
|
|
6
|
+
month?: Date;
|
|
7
|
+
year?: Date;
|
|
8
|
+
defaultMonth: Date;
|
|
9
|
+
minDate?: Date;
|
|
10
|
+
maxDate?: Date;
|
|
11
|
+
selected?: Date;
|
|
12
|
+
events?: Array<Date | number>;
|
|
13
|
+
offDays?: Array<Date | number>;
|
|
14
|
+
onMonthChange?: (month: number) => void;
|
|
15
|
+
onYearChange?: (year: number) => void;
|
|
16
|
+
onChange?: (date: number) => void;
|
|
17
|
+
setView: (value: View) => void;
|
|
18
|
+
};
|
|
19
|
+
declare function useCalendar({ defaultMonth, month, minDate, view, maxDate, selected, events, offDays, onMonthChange, onYearChange, onChange, setView, }: UseCalendarProps): {
|
|
20
|
+
activeMonth: Date;
|
|
21
|
+
activeYear: Date;
|
|
22
|
+
weeks: Day[][];
|
|
23
|
+
months: Month[];
|
|
24
|
+
canSetPrevMonth: boolean;
|
|
25
|
+
canSetNextMonth: boolean;
|
|
26
|
+
highlighted: number | Date | undefined;
|
|
27
|
+
setPrevMonth: () => void;
|
|
28
|
+
setNextMonth: () => void;
|
|
29
|
+
setNextYear: () => void;
|
|
30
|
+
setPrevYear: () => void;
|
|
31
|
+
setMonthByDate: (newMonth: Date) => void;
|
|
32
|
+
getDayProps: (day: Day) => {
|
|
33
|
+
'data-date': number;
|
|
34
|
+
'aria-selected': boolean | undefined;
|
|
35
|
+
ref: (node: HTMLButtonElement) => void;
|
|
36
|
+
tabIndex: number;
|
|
37
|
+
onMouseEnter: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
38
|
+
onMouseLeave: () => void;
|
|
39
|
+
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
40
|
+
};
|
|
41
|
+
getMonthProps: (selectedMonth: Month) => {
|
|
42
|
+
'data-date': number;
|
|
43
|
+
'aria-selected': boolean;
|
|
44
|
+
ref: (node: HTMLButtonElement) => void;
|
|
45
|
+
tabIndex: number;
|
|
46
|
+
disabled: boolean | undefined;
|
|
47
|
+
onClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
48
|
+
};
|
|
49
|
+
getRootProps: ({ ref }: {
|
|
50
|
+
ref?: Ref<HTMLDivElement> | undefined;
|
|
51
|
+
}) => {
|
|
52
|
+
onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
53
|
+
ref: (instance: HTMLDivElement | null) => void;
|
|
54
|
+
tabIndex: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export { UseCalendarProps, useCalendar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as t,useRef as n,useMemo as e,useCallback as r}from"react";import o from"react-merge-refs";import{startOfMonth as u,startOfYear as a,subYears as i,addMonths as f,addYears as c,isSameDay as d,isSameMonth as s}from"date-fns";import{dateArrayToHashTable as v,generateWeeks as g,generateMonths as h,generateYears as l,limitDate as w,simulateTab as m,modifyDateByShift as D,MONTHS_IN_YEAR as M}from"./utils.js";function p(p){var x=p.defaultMonth,A=p.month,y=p.minDate,k=p.view,P=void 0===k?"days":k,T=p.maxDate,b=p.selected,Y=p.events,C=p.offDays,I=p.onMonthChange,L=p.onYearChange,R=p.onChange,U=p.setView,W=t(x),E=W[0],N=W[1],F=t(x),O=F[0],S=F[1],j=t(),B=j[0],H=j[1],K=void 0===A,V=K?E:A,q=K?O:A,z=n([]),G=n(null),J=e((function(){return y&&u(y)}),[y]),Q=e((function(){return T&&u(T)}),[T]),X=e((function(){return y&&a(y)}),[y]),Z=e((function(){return T&&a(T)}),[T]),$=!J||V>J,_=!Q||V<Q,tt=e((function(){return v(Y||[])}),[Y]),nt=e((function(){return v(C||[])}),[C]),et=e((function(){return g(V,{minDate:y,maxDate:T,selected:b,eventsMap:tt,offDaysMap:nt})}),[T,y,b,V,tt,nt]),rt=e((function(){return h(q,{minMonth:J,maxMonth:Q})}),[J,Q,q]),ot=e((function(){return l(y||i(new Date,5),T||new Date)}),[y,T]),ut=r((function(t){K&&(N(t),S(t)),I&&I(t.getTime())}),[I,K]),at=r((function(t){K&&S(t),L&&L(t.getTime())}),[L,K]),it=r((function(t){ut(w(f(V,t),J,Q))}),[ut,V,J,Q]),ft=r((function(t){at(w(c(q,t),X,Z))}),[at,q,X,Z]),ct=r((function(t){ut(w(t,J,Q))}),[Q,J,ut]),dt=r((function(){it(1)}),[it]),st=r((function(){it(-1)}),[it]),vt=r((function(){ft(1)}),[ft]),gt=r((function(){ft(-1)}),[ft]),ht=r((function(){return z.current.find((function(t){return document.activeElement===t}))}),[]),lt=r((function(){return z.current.find((function(t){return t&&0===t.tabIndex}))}),[]),wt=r((function(t){t&&(m(t),t.focus())}),[]),mt=r((function(){return wt(lt())}),[wt,lt]),Dt=r((function(t){var n=ht();if(n&&n.dataset.date){var e=new Date(+n.dataset.date),r=D(t,e,y,T,nt),o=!1;r<e&&r.getMonth()!==e.getMonth()&&(st(),o=!0),r>e&&r.getMonth()!==e.getMonth()&&(dt(),o=!0);var u=function(){return wt(z.current[r.getDate()-1])};o?setTimeout(u,0):u()}else mt()}),[wt,mt,ht,T,y,nt,dt,st]),Mt=r((function(t){var n=ht();if(n&&n.dataset.date){var e=new Date(+n.dataset.date).getMonth()+t;e>=0&&e<M&&wt(z.current[e])}else mt()}),[wt,mt,ht]),pt=r((function(t){var n=ht();if(n&&n.dataset.date){var e=new Date(+n.dataset.date).getFullYear()+t,r=(new Date).getFullYear();e<=r&&e>r-ot.length&&wt(z.current[e])}else mt()}),[wt,mt,ht,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)}),[]),kt=r((function(){H(void 0)}),[]),Pt=r((function(t){var n=t.currentTarget.dataset.date;n&&R&&R(+n)}),[R]),Tt={days:e((function(){return{ArrowLeft:function(){return Dt("prev")},ArrowRight:function(){return Dt("next")},ArrowUp:function(){return Dt("prevWeek")},ArrowDown:function(){return Dt("nextWeek")},End:function(){return Dt("endOfWeek")},Home:function(){return Dt("startOfWeek")},PageUp:function(){return Dt("prevMonth")},PageDown:function(){return Dt("nextMonth")}}}),[Dt]),months:e((function(){return{ArrowLeft:function(){return Mt(-1)},ArrowRight:function(){return Mt(1)},ArrowUp:function(){return Mt(-3)},ArrowDown:function(){return Mt(3)}}}),[Mt]),years:e((function(){return{ArrowLeft:function(){return pt(1)},ArrowRight:function(){return pt(-1)},ArrowUp:function(){return pt(3)},ArrowDown:function(){return pt(-3)}}}),[pt])},bt=r((function(t){var n=Tt[P];t.key in n&&(n[t.key](),t.preventDefault())}),[Tt,P]),Yt=!1,Ct=r((function(t){var n=b&&d(b,t.date),e=n;return b&&s(b,V)||Yt||t.disabled||(Yt=!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:kt,onClick:Pt}}),[Pt,At,bt,yt,kt,b]),It=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),U("days")}}}),[V,At,xt,U]),Lt=r((function(t){var n=t.ref;return{onKeyDown:bt,ref:o([void 0===n?null:n,G]),tabIndex:-1}}),[bt]);return{activeMonth:V,activeYear:q,weeks:et,months:rt,canSetPrevMonth:$,canSetNextMonth:_,highlighted:B,setPrevMonth:st,setNextMonth:dt,setNextYear:vt,setPrevYear:gt,setMonthByDate:ct,getDayProps:Ct,getMonthProps:It,getRootProps:Lt}}export{p as useCalendar};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type UsePeriodProps = {
|
|
2
|
+
onPeriodChange?: (selectedFrom?: number, selectedTo?: number) => void;
|
|
3
|
+
initialSelectedFrom?: number;
|
|
4
|
+
initialSelectedTo?: number;
|
|
5
|
+
};
|
|
6
|
+
declare function usePeriod({ onPeriodChange, initialSelectedFrom, initialSelectedTo, }: UsePeriodProps): {
|
|
7
|
+
selectedFrom: number | undefined;
|
|
8
|
+
selectedTo: number | undefined;
|
|
9
|
+
setStart: (date?: number | undefined) => void;
|
|
10
|
+
setEnd: (date?: number | undefined) => void;
|
|
11
|
+
resetPeriod: () => void;
|
|
12
|
+
updatePeriod: (date?: number | undefined) => void;
|
|
13
|
+
};
|
|
14
|
+
export { usePeriod };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as t,useCallback as e}from"react";import{useDidUpdateEffect as i}from"./utils.js";import"date-fns";function o(o){var n=o.onPeriodChange,r=o.initialSelectedFrom,d=o.initialSelectedTo,a=t(r),c=a[0],f=a[1],u=t(d),m=u[0],s=u[1],l=e((function(){f(void 0),s(void 0)}),[]),v=e((function(t){f(t)}),[]),p=e((function(t){s(t)}),[]),h=e((function(t){if(void 0!==t){if(c)return m?void(t>c?s(t):t<c&&(s(void 0),f(t))):(f(Math.min(t,c)),void s(Math.max(t,c)));f(t)}else l()}),[l,c,m]);return i((function(){n&&n(c,m)}),[c,m]),{selectedFrom:c,selectedTo:m,setStart:v,setEnd:p,resetPeriod:l,updatePeriod:h}}export{o as usePeriod};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DateShift, Day, Month, SpecialDays } from "./typings";
|
|
2
|
+
declare const DAYS_IN_WEEK = 7;
|
|
3
|
+
declare const MONTHS_IN_YEAR = 12;
|
|
4
|
+
declare const SUNDAY_INDEX = 6;
|
|
5
|
+
declare function russianWeekDay(date: Date): number;
|
|
6
|
+
declare function generateWeeks(month: Date, options: {
|
|
7
|
+
minDate?: Date;
|
|
8
|
+
maxDate?: Date;
|
|
9
|
+
selected?: Date;
|
|
10
|
+
eventsMap?: SpecialDays;
|
|
11
|
+
offDaysMap?: SpecialDays;
|
|
12
|
+
}): Day[][];
|
|
13
|
+
declare function generateMonths(year: Date, options: {
|
|
14
|
+
minMonth?: Date;
|
|
15
|
+
maxMonth?: Date;
|
|
16
|
+
}): Month[];
|
|
17
|
+
declare function generateYears(minYear: Date, maxYear: Date): Date[];
|
|
18
|
+
declare function buildDay(day: Date, firstDay: Date, options: {
|
|
19
|
+
minDate?: Date;
|
|
20
|
+
maxDate?: Date;
|
|
21
|
+
selected?: Date;
|
|
22
|
+
eventsMap?: SpecialDays;
|
|
23
|
+
offDaysMap?: SpecialDays;
|
|
24
|
+
}): Day;
|
|
25
|
+
declare function buildMonth(month: Date, options: {
|
|
26
|
+
minMonth?: Date;
|
|
27
|
+
maxMonth?: Date;
|
|
28
|
+
}): Month;
|
|
29
|
+
declare function limitDate(date: Date | number, minDate?: Date | number, maxDate?: Date | number): Date;
|
|
30
|
+
declare function dateInLimits(date?: Date | number | null, minDate?: Date | number, maxDate?: Date | number): boolean | 0 | null | undefined;
|
|
31
|
+
declare function monthName(month: Date, locale: Locale, shortNames: boolean): string;
|
|
32
|
+
declare function dateArrayToHashTable(arr: Array<Date | number>): Record<number, boolean>;
|
|
33
|
+
declare function getSelectionRange(from?: Date | number, to?: Date | number, highlighted?: Date | number): {
|
|
34
|
+
start: Date;
|
|
35
|
+
end: Date;
|
|
36
|
+
} | null;
|
|
37
|
+
declare function modifyDateByShift(shift: DateShift, date: Date, minDate?: Date, maxDate?: Date, offDaysMap?: Record<number, boolean>): Date;
|
|
38
|
+
declare function simulateTab(node: HTMLElement): void;
|
|
39
|
+
declare function useDidUpdateEffect(fn: () => void, deps: unknown[]): void;
|
|
40
|
+
export { DAYS_IN_WEEK, MONTHS_IN_YEAR, SUNDAY_INDEX, russianWeekDay, generateWeeks, generateMonths, generateYears, buildDay, buildMonth, limitDate, dateInLimits, monthName, dateArrayToHashTable, getSelectionRange, modifyDateByShift, simulateTab, useDidUpdateEffect };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useRef as n,useEffect as e}from"react";import{startOfMonth as t,startOfISOWeek as r,endOfISOWeek as u,lastDayOfMonth as i,eachDayOfInterval as o,isSameDay as a,eachMonthOfInterval as f,startOfYear as c,endOfYear as d,eachYearOfInterval as v,min as s,max as m,isBefore as l,isAfter as p,isSameMonth as k,format as w,startOfDay as b,addDays as g,subDays as y,subMonths as T,addMonths as h,startOfWeek as x,endOfWeek as D}from"date-fns";var M=7,O=12,W=6;function E(n){var e=n.getDay();return 0===e?M-1:e-1}function L(n,e){var f=function(){return Array(M).fill(null)},c=t(n),d=r(t(n)),v=u(i(n)),s=f();return o({start:d,end:v}).reduce((function(n,t){var r=E(t);return s[r]=A(t,c,e),(r===W||a(t,v))&&(n.push(s),s=f()),n}),[])}function K(n,e){return f({start:c(n),end:d(n)}).map((function(n){return j(n,e)}))}function S(n,e){return v({start:s([c(e),c(n)]),end:m([c(e),c(n)])}).reverse()}function A(n,e,t){var r=t.minDate,u=t.maxDate,i=t.selected,o=t.eventsMap,f=void 0===o?{}:o,c=t.offDaysMap,d=(void 0===c?{}:c)[n.getTime()];return{date:n,disabled:r&&l(n,r)||u&&p(n,u)||d,event:f[n.getTime()],selected:i&&a(n,i),muted:!k(n,e)}}function j(n,e){var t=e.minMonth,r=e.maxMonth;return{date:n,disabled:t&&l(n,t)||r&&p(n,r)}}function q(n,e,t){var r=n;return e&&(r=m([e,r])),t&&(r=s([t,r])),new Date(r)}function z(n,e,t){return n&&q(n,e,t).getTime()===new Date(n).getTime()}function B(n,e,t){return w(n,"LLL",{locale:e})}function C(n){return n.reduce((function(n,e){return n[b(e).getTime()]=!0,n}),{})}function F(n,e,t){var r=e||t;return n&&r&&n!==r?{start:s([n,r]),end:m([n,r])}:null}function G(n,e,t,r,u){void 0===u&&(u={});for(var i={prev:function(){return y(e,1)},prevWeek:function(){return y(e,7)},prevMonth:function(){return T(e,1)},next:function(){return g(e,1)},nextWeek:function(){return g(e,7)},nextMonth:function(){return h(e,1)},startOfWeek:function(){return x(e,{weekStartsOn:1})},endOfWeek:function(){return b(D(e,{weekStartsOn:1}))}}[n]();u[i.getTime()];){var o=i<e?-1:1;"endOfWeek"===n&&(o=-1),"startOfWeek"===n&&(o=1),i=g(i,o)}return q(i,t,r)}function H(n){if(window.KeyboardEvent){var e=new window.KeyboardEvent("keydown",{bubbles:!0,key:"Tab"});n.dispatchEvent(e)}}function I(t,r){var u=n(!1);e((function(){u.current?t():u.current=!0}),r)}export{M as DAYS_IN_WEEK,O as MONTHS_IN_YEAR,W as SUNDAY_INDEX,A as buildDay,j as buildMonth,C as dateArrayToHashTable,z as dateInLimits,K as generateMonths,L as generateWeeks,S as generateYears,F as getSelectionRange,q as limitDate,G as modifyDateByShift,B as monthName,E as russianWeekDay,H as simulateTab,I as useDidUpdateEffect};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ChangeEvent, MouseEvent } from "react";
|
|
4
|
+
import { CalendarProps } from "../calendar/index";
|
|
5
|
+
import { MaskedInputProps } from "../masked-input/index";
|
|
6
|
+
type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' | 'rightAddons' | 'onBeforeDisplay'> & {
|
|
7
|
+
block?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
inputClassName?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
calendarProps?: CalendarProps;
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
defaultOpen?: boolean;
|
|
15
|
+
defaultMonth?: number;
|
|
16
|
+
minDate?: number;
|
|
17
|
+
maxDate?: number;
|
|
18
|
+
calendarPosition?: 'static' | 'popover';
|
|
19
|
+
preventFlip?: boolean;
|
|
20
|
+
mobileMode?: 'native' | 'popover' | 'input';
|
|
21
|
+
onChange?: (event: ChangeEvent<HTMLInputElement> | MouseEvent<HTMLButtonElement> | null, payload: {
|
|
22
|
+
date: Date;
|
|
23
|
+
value: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
onInputChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
|
|
26
|
+
value: string;
|
|
27
|
+
date: Date;
|
|
28
|
+
}) => void;
|
|
29
|
+
onCalendarChange?: CalendarProps['onChange'];
|
|
30
|
+
dataTestId?: string;
|
|
31
|
+
};
|
|
32
|
+
declare const CalendarInput: React.ForwardRefExoticComponent<Omit<MaskedInputProps, "mask" | "rightAddons" | "onChange" | "value" | "onBeforeDisplay"> & {
|
|
33
|
+
block?: boolean | undefined;
|
|
34
|
+
className?: string | undefined;
|
|
35
|
+
inputClassName?: string | undefined;
|
|
36
|
+
required?: boolean | undefined;
|
|
37
|
+
calendarProps?: CalendarProps | undefined;
|
|
38
|
+
value?: string | undefined;
|
|
39
|
+
defaultValue?: string | undefined;
|
|
40
|
+
defaultOpen?: boolean | undefined;
|
|
41
|
+
defaultMonth?: number | undefined;
|
|
42
|
+
minDate?: number | undefined;
|
|
43
|
+
maxDate?: number | undefined;
|
|
44
|
+
calendarPosition?: "static" | "popover" | undefined;
|
|
45
|
+
preventFlip?: boolean | undefined;
|
|
46
|
+
mobileMode?: "input" | "popover" | "native" | undefined;
|
|
47
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement> | MouseEvent<HTMLButtonElement> | null, payload: {
|
|
48
|
+
date: Date;
|
|
49
|
+
value: string;
|
|
50
|
+
}) => void) | undefined;
|
|
51
|
+
onInputChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
|
|
52
|
+
value: string;
|
|
53
|
+
date: Date;
|
|
54
|
+
}) => void) | undefined;
|
|
55
|
+
onCalendarChange?: CalendarProps['onChange'];
|
|
56
|
+
dataTestId?: string | undefined;
|
|
57
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
58
|
+
export { CalendarInputProps, CalendarInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e,__assign as t}from"tslib";import o,{forwardRef as n,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import s from"react-merge-refs";import p from"classnames";import{Calendar as m}from"../calendar/component.js";import{dateInLimits as c}from"../calendar/utils.js";import"date-fns";import{MaskedInput as d}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 v,isCompleteDateInput as j,DATE_MASK as h,SUPPORTS_INPUT_TYPE_DATE as k,NATIVE_DATE_FORMAT as C}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-a9bfbe29.js";import"../isSymbol-98d98352.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"@alphakits/icons/dist/ChevronBackS";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"text-mask-core";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"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";var g="index-module_component__pdVE2",b="index-module_block__wtVLz",x="index-module_calendarContainer__x7A2x",y="index-module_calendarIcon__muPk-",M="index-module_nativeInput__siME6",_=n((function(n,_){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,A=void 0===V?"":V,O=n.calendarPosition,q=void 0===O?"popover":O,B=n.value,R=n.dataTestId,S=n.minDate,z=n.required,K=n.maxDate,U=n.calendarProps,G=void 0===U?{}:U,L=n.preventFlip,H=n.mobileMode,J=void 0===H?"popover":H,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===(B=B&&B.split("-").length?B.split("-").reverse().join("."):B),ne=k&&"native"===J,ae="input"===J,re="static"===q&&!ae,ie="popover"===q&&!ne&&!ae,le=a(!1),se=le[0],pe=le[1],me=a(A),ce=me[0],de=me[1],ue=oe?ce:B,fe=ue?v(ue).getTime():void 0,ve=c(fe,S,K),je=X||ee,he=r(null),ke=r(null),Ce=r(null),ge=r(null),be=i((function(e){"Escape"===e.key&&pe(!1)}),[]),xe=i((function(){se||pe(!0)}),[se]),ye=i((function(e){pe(!0),!se&&"INPUT"!==e.target.tagName&&ge.current&&ge.current.focus()}),[se]),Me=i((function(e){ge.current&&!1===ge.current.contains(e.relatedTarget)&&pe(!1)}),[]),_e=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&ge.current&&(e.preventDefault(),ge.current.focus())}),[]),De=i((function(e,t,o,n,a){void 0===n&&(n="input"),void 0===a&&(a=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),a&&(oe&&de(t),Y&&Y(e,{date:o,value:t.split(".").reverse().join("-")}))}),[$,Y,Z,oe]),we=i((function(e){var t=e.target.value,o=v(t);De(e,t,o,"input",j(t))}),[De]),Ee=i((function(e){var t=v(e.target.value,C),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"),pe(!1)}),[De]),Ie=i((function(e){e.preventDefault()}),[]);l((function(){pe(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(m,t({},G,{ref:ge,defaultMonth:F,value:ve?fe:void 0,onChange:Ne,minDate:S,maxDate:K})))}),[G,fe,F,Ne,Ie,ve,K,S]);return o.createElement("div",{ref:Ce,className:p(g,N,(D={},D[b]=E,D)),tabIndex:-1,onKeyDown:je?void 0:be,onClick:je?void 0:xe,onFocus:je?void 0:ye,onBlur:Me,"data-test-id":R},o.createElement(d,t({},te,{ref:s([_,he]),wrapperRef:s([W,ke]),className:I,value:ue,required:z,defaultValue:A,disabled:X,readOnly:ee,mask:h,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:y}),ne&&o.createElement("input",{type:"date",ref:s([_,he]),defaultValue:A,onChange:Ee,className:M})),onKeyDown:_e,onChange:we,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&o.createElement(u,{open:se,anchorElement:ke.current,popperClassName:x,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:L},Pe()))}));export{_ as CalendarInput};
|
|
@@ -0,0 +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";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../utils/format-date/index.js";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-a9bfbe29.js";import"../isSymbol-98d98352.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"@alphakits/icons/dist/ChevronBackS";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"text-mask-core";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"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const DATE_FORMAT = "dd.MM.yyyy";
|
|
2
|
+
declare const NATIVE_DATE_FORMAT = "yyyy-MM-dd";
|
|
3
|
+
declare const DATE_MASK: (string | RegExp)[];
|
|
4
|
+
declare const IS_BROWSER: boolean;
|
|
5
|
+
declare const SUPPORTS_INPUT_TYPE_DATE: boolean;
|
|
6
|
+
declare const isCompleteDateInput: (input: string) => boolean;
|
|
7
|
+
declare const parseDateString: (value: string, dateFormat?: string) => Date;
|
|
8
|
+
declare function isInputDateSupported(): boolean;
|
|
9
|
+
export { DATE_FORMAT, NATIVE_DATE_FORMAT, DATE_MASK, IS_BROWSER, SUPPORTS_INPUT_TYPE_DATE, isCompleteDateInput, parseDateString, isInputDateSupported };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{parse as t}from"date-fns";var e="dd.MM.yyyy",d="yyyy-MM-dd",n=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],r="undefined"!=typeof window,u=r&&o(),a=function(t){return t.length===n.length},i=function(d,n){return void 0===n&&(n=e),t(d,n,new Date)};function o(){var t=document.createElement("input");return t.setAttribute("type","date"),t.setAttribute("value","a"),"a"!==t.value}export{e as DATE_FORMAT,n as DATE_MASK,r as IS_BROWSER,d as NATIVE_DATE_FORMAT,u as SUPPORTS_INPUT_TYPE_DATE,a as isCompleteDateInput,o as isInputDateSupported,i as parseDateString};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as r,i as u}from"./isSymbol-98d98352.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 i=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 i=e+"";return"0"==i&&1/e==-t?"-0":i};var a=function(r){return null==r?"":i(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 v=function(r,u,f){var n=r.length;return f=void 0===f?n:f,!u&&f>=n?r:d(r,u,f)},c=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var l=function(r){return c.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=a(u);var f=l(u)?w(u):void 0,n=f?f[0]:u.charAt(0),t=f?v(f,1).join(""):u.slice(1);return n[r]()+t}}("toUpperCase");var U=function(r){return L(a(r).toLowerCase())};export{U as c};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface CardProps {
|
|
4
|
+
view?: 'default' | 'compact' | 'full';
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
images?: string[];
|
|
8
|
+
bottomAddons?: React.ReactNode;
|
|
9
|
+
titleAddons?: React.ReactNode;
|
|
10
|
+
imagesAddons?: React.ReactNode;
|
|
11
|
+
orientation?: 'vertival' | 'horizontal';
|
|
12
|
+
}
|
|
13
|
+
declare const Card: React.FC<CardProps>;
|
|
14
|
+
export { CardProps, Card };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";import e 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-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"../image/image-base.js";import"../use-image-render-component-5c5e30dc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},n=function(n){var r=n.view,a=void 0===r?"default":r,s=n.bottomAddons,p=n.images,l=void 0===p?[]:p,c=n.orientation,d=void 0===c?"horizontal":c,g=n.title,u=n.subtitle,v=n.titleAddons;return t.createElement("div",{className:e([m.component,m[a]])},!!l.length&&t.createElement(i,{orientation:d,images:l,view:a}),t.createElement("div",{className:m.content},t.createElement("div",{className:m.titleWrap},t.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),v),t.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};export{n as Card};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";import o from"classnames";import{ImageBase as e}from"../../image/image-base.js";import"../../use-image-render-component-5c5e30dc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-f96393ec.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";import"../../image/types.js";import"../../image/utils.js";var i={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"},n=function(n){var r=n.images,m=void 0===r?[]:r,a=n.orientation,p=void 0===a?"horizontal":a,s=n.view,c=void 0===s?"default":s;return t.createElement("div",{className:o([i[p],i.container])},t.createElement("div",{className:o([i.content,i[c]])},t.createElement(e,{src:m[0]})))};export{n as CardImages};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./images/index.js";import"../image/image-base.js";import"../use-image-render-component-5c5e30dc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PureProps } from "../pure/component";
|
|
4
|
+
type BaseProps = {
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
subtitle?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: PureProps['size'];
|
|
9
|
+
dataTestId?: string;
|
|
10
|
+
addon?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const Base: React.FC<BaseProps>;
|
|
13
|
+
export { BaseProps, Base };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useRef as t}from"react";import o from"classnames";import{getDataTestId as m}from"../../__internal/utils/getDataTestId.js";import{useFocus as r}from"../../hooks/useFocus/index.js";import{Typography as i}from"../../typography/component.js";import{Pure as a}from"../pure/component.js";import"../../typography/text/component.js";import"../../colors.module-f96393ec.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";var s="index-module_component__BNjZ4",l="index-module_title__VeYlM",n="index-module_subtitle__OOoZr",p="index-module_focused__ootMA",d=function(d){var c,u=d.className,_=d.dataTestId,x=d.title,y=d.subtitle,f=d.size,g=void 0===f?"m":f,j=d.addon,h=t(null),v=r(h,"keyboard")[0];return e.createElement(a,{slot:j,className:o(s,(c={},c[p]=v,c),u),dataTestId:m("cell-action",_,!0),tabIndex:0,size:g,ref:h},e.createElement(e.Fragment,null,x&&e.createElement(i.Text,{view:"title",color:"primary",weight:"medium",tag:"div",className:l},x),y&&e.createElement(i.Text,{weight:"medium",view:"caps",tag:"div",className:n,color:"secondary"},y)))};export{d as Base};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Base as o}from"./base/component.js";import{Pure as t}from"./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-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var p={Pure:t,Base:o};export{p as Cell};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Cell}from"./component.js";import"./base/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-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./pure/component.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { HTMLAttributes } from "react";
|
|
4
|
+
type ComponentProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
slot?: React.ReactNode;
|
|
7
|
+
order?: 'normal' | 'reverse';
|
|
8
|
+
direction?: 'horizontal' | 'vertical';
|
|
9
|
+
size?: 's' | 'm' | 'l';
|
|
10
|
+
className?: string;
|
|
11
|
+
dataTestId?: string;
|
|
12
|
+
};
|
|
13
|
+
type PureProps = Omit<HTMLAttributes<HTMLDivElement>, 'slot'> & ComponentProps;
|
|
14
|
+
declare const Pure: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "slot"> & ComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export { PureProps, Pure };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e,__assign as r}from"tslib";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as i}from"../../__internal/utils/getDataTestId.js";var a={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,_=o.size,s=void 0===_?"m":_,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={})[a.normalOrder]="normal"===v&&m,t[a.reverseOrder]="reverse"===v&&m,t[a[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(a.component,a[s],r({},z),p),"data-test-id":i("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(a.addon,r({},z))},m),d.createElement("div",{className:l(a.child,r({},z))},h))}));export{n as Pure};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
|
|
4
|
+
type NativeProps = InputHTMLAttributes<HTMLInputElement>;
|
|
5
|
+
type Align = 'start' | 'center';
|
|
6
|
+
type CheckboxProps = Omit<NativeProps, 'size' | 'onChange'> & {
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, payload: {
|
|
9
|
+
checked: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
hint?: ReactNode;
|
|
14
|
+
size?: 's' | 'm';
|
|
15
|
+
align?: Align;
|
|
16
|
+
addons?: React.ReactNode;
|
|
17
|
+
block?: boolean;
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
indeterminate?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size" | "onChange"> & {
|
|
22
|
+
checked?: boolean | undefined;
|
|
23
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, payload: {
|
|
24
|
+
checked: boolean;
|
|
25
|
+
name?: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
label?: ReactNode;
|
|
28
|
+
hint?: ReactNode;
|
|
29
|
+
size?: "s" | "m" | undefined;
|
|
30
|
+
align?: Align | undefined;
|
|
31
|
+
addons?: React.ReactNode;
|
|
32
|
+
block?: boolean | undefined;
|
|
33
|
+
dataTestId?: string | undefined;
|
|
34
|
+
indeterminate?: boolean | undefined;
|
|
35
|
+
} & React.RefAttributes<HTMLLabelElement>>;
|
|
36
|
+
export { CheckboxProps, Checkbox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e,__assign as n}from"tslib";import d,{forwardRef as t,useRef as a}from"react";import o from"react-merge-refs";import i from"@alphakits/icons/dist/CheckmarkS";import l from"@alphakits/icons/dist/MinusM";import m 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=t((function(t,r){var _,u=t.checked,b=t.label,h=t.hint,p=t.size,x=void 0===p?"m":p,k=t.align,f=void 0===k?"center":k,E=t.addons,N=t.block,g=t.onChange,I=t.className,v=t.name,C=t.disabled,M=t.dataTestId,y=t.indeterminate,z=void 0!==y&&y,D=e(t,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),O=a(null),T=c(O,"keyboard")[0];return d.createElement("label",{className:m(s.component,s[x],s[f],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=z,_[s.focused]=T,_[s.block]=N,_)),ref:o([O,r])},d.createElement("span",{className:s.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":M},D)),u&&d.createElement(i,null),z&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(l,null))),(b||h)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),h&&d.createElement("span",{className:s.hint},h)),E&&d.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Checkbox}from"./component.js";import"tslib";import"react";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FlexColumnsProps } from "../flex-columns/index";
|
|
4
|
+
type Data<T> = Array<{
|
|
5
|
+
key: T;
|
|
6
|
+
content: string;
|
|
7
|
+
}>;
|
|
8
|
+
type CheckboxGroupProps = <T>(props: {
|
|
9
|
+
title?: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
selected: T[];
|
|
12
|
+
data: Data<T>;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onChange: (values: T[]) => void;
|
|
15
|
+
dataTestId?: string;
|
|
16
|
+
} & FlexColumnsProps) => React.ReactElement;
|
|
17
|
+
declare const CheckboxGroup: CheckboxGroupProps;
|
|
18
|
+
export { CheckboxGroupProps, CheckboxGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__spreadArray as e}from"tslib";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{Typography as n}from"../typography/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"../typography/title/component.js";var r="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",l=function(l){var m=l.title,a=l.subtitle,s=l.selected,d=void 0===s?[]:s,p=l.data,u=void 0===p?[]:p,v=l.onChange,g=l.columns,h=void 0===g?1:g,f=l.disabled,k=l.gr,y=void 0===k?20:k,x=l.gc,b=void 0===x?20:x,_=l.dataTestId,j=d||[],E=function(e){return _?"checkbox_"+_+"_"+e:"checkbox_"+e};return t.createElement("div",null,(m||a)&&t.createElement("div",{className:r},m&&t.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},m),a&&t.createElement(n.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(i,{columns:h,gr:y,gc:b},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(i,n){return t.createElement(o,{disabled:f,key:i.key+i.content,dataTestId:E(n),onChange:function(){return t=i.key,void v((null==j?void 0:j.includes(t))?null==j?void 0:j.filter((function(e){return e!==t})):e(e([],j),[t]));var t},checked:null==j?void 0:j.includes(i.key),label:i.content})})))))};export{l as CheckboxGroup};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"tslib";import"react";import"../checkbox/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Child = {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
locationId: number;
|
|
6
|
+
};
|
|
7
|
+
type Parent = {
|
|
8
|
+
id: number;
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
interface CheckboxGroupsProps {
|
|
12
|
+
parents: Parent[];
|
|
13
|
+
childs: Child[];
|
|
14
|
+
selected: number[];
|
|
15
|
+
onChange: (values: number[]) => void;
|
|
16
|
+
checkableParent?: boolean;
|
|
17
|
+
collapsable?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const CheckboxGroups: ({ parents, childs, selected, checkableParent, collapsable, disabled, onChange, }: CheckboxGroupsProps) => JSX.Element;
|
|
21
|
+
export { CheckboxGroupsProps, CheckboxGroups };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__spreadArray as e}from"tslib";import t,{useState as n}from"react";import o from"@alphakits/icons/dist/ChevronDownS";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as i}from"../collapse/component.js";import{Divider as c}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"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"../hooks/useFocus/index.js";import"../isSymbol-98d98352.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.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,_=u.selected,b=u.checkableParent,v=u.collapsable,E=u.disabled,g=u.onChange,j=[],k=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&&j.push(t)}));var y=n(j),x=y[0],C=y[1],F=function(t){t.forEach((function(n){(null==k?void 0:k.includes(n))?g(k.filter((function(e){return!t.includes(e)}))):g(e(e([],k),t))}))},w=function(e){var n,o,l=e.element;return b?t.createElement(r,{block:!0,disabled:E,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==k?void 0:k.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,x.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}),v&&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);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(i,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1,gr:8},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return F([e.id])},checked:null==k?void 0:k.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(c,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"tslib";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"@alphakits/icons/dist/CheckmarkS";import"@alphakits/icons/dist/MinusM";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-98d98352.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-f96393ec.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare const locations: {
|
|
2
|
+
title: string;
|
|
3
|
+
address: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
howToFind: string;
|
|
6
|
+
disinfection: string;
|
|
7
|
+
wifi: boolean;
|
|
8
|
+
wardrobe: boolean;
|
|
9
|
+
freeParking: boolean;
|
|
10
|
+
parking: boolean;
|
|
11
|
+
ventilation: boolean;
|
|
12
|
+
waitingAreaSize: number;
|
|
13
|
+
neededEmployees: number;
|
|
14
|
+
sortPosition: number;
|
|
15
|
+
id: number;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
profile: string;
|
|
18
|
+
}[];
|
|
19
|
+
declare const questrooms: ({
|
|
20
|
+
title: string;
|
|
21
|
+
video: string;
|
|
22
|
+
photo: string;
|
|
23
|
+
photos: string[];
|
|
24
|
+
time: number;
|
|
25
|
+
break: number;
|
|
26
|
+
type: string;
|
|
27
|
+
minAge: number;
|
|
28
|
+
difficult: number;
|
|
29
|
+
fear: number;
|
|
30
|
+
teaser: string;
|
|
31
|
+
legend: string;
|
|
32
|
+
importantInformation: string;
|
|
33
|
+
hasActors: boolean;
|
|
34
|
+
neededModerators: number;
|
|
35
|
+
schedulePeriod: number;
|
|
36
|
+
languages: string[];
|
|
37
|
+
defaultLanguage: string;
|
|
38
|
+
minDaysForFreeCanceling: number;
|
|
39
|
+
awailableForNavigator: boolean;
|
|
40
|
+
awailableForWidgets: boolean;
|
|
41
|
+
ticketSystem: boolean;
|
|
42
|
+
questroomIds: never[];
|
|
43
|
+
walletId: string;
|
|
44
|
+
locationId: number;
|
|
45
|
+
sortPosition: number;
|
|
46
|
+
id: number;
|
|
47
|
+
uid: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
profile: string;
|
|
50
|
+
} | {
|
|
51
|
+
title: string;
|
|
52
|
+
video: string;
|
|
53
|
+
photo: string;
|
|
54
|
+
photos: string[];
|
|
55
|
+
time: number;
|
|
56
|
+
break: number;
|
|
57
|
+
type: string;
|
|
58
|
+
minAge: number;
|
|
59
|
+
difficult: number;
|
|
60
|
+
fear: number;
|
|
61
|
+
teaser: string;
|
|
62
|
+
legend: string;
|
|
63
|
+
importantInformation: string;
|
|
64
|
+
hasActors: boolean;
|
|
65
|
+
neededModerators: number;
|
|
66
|
+
schedulePeriod: number;
|
|
67
|
+
languages: string[];
|
|
68
|
+
defaultLanguage: string;
|
|
69
|
+
minDaysForFreeCanceling: number;
|
|
70
|
+
awailableForNavigator: boolean;
|
|
71
|
+
awailableForWidgets: boolean;
|
|
72
|
+
ticketSystem: boolean;
|
|
73
|
+
questroomIds: never[];
|
|
74
|
+
walletId: string;
|
|
75
|
+
locationId: number;
|
|
76
|
+
sortPosition: number;
|
|
77
|
+
id: number;
|
|
78
|
+
uid: number;
|
|
79
|
+
createdAt: string;
|
|
80
|
+
profile: string;
|
|
81
|
+
})[];
|
|
82
|
+
export { locations, questrooms };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[{title:"Central Accountability Architect",address:"398 Metz Mews",phone:"453-960-8170",howToFind:"Dooley Square",disinfection:"molestiae consequatur non",wifi:!0,wardrobe:!0,freeParking:!0,parking:!1,ventilation:!1,waitingAreaSize:95,neededEmployees:5,sortPosition:10,id:1,createdAt:"cd3ba579-026f-4fdc-9bd6-7e8c6de1717a",profile:"1"},{title:"Investor Optimization Director",address:"089 Forrest Highway",phone:"390-373-4707",howToFind:"Zoe Courts",disinfection:"repellat quam nisi",wifi:!1,wardrobe:!1,freeParking:!0,parking:!0,ventilation:!0,waitingAreaSize:89,neededEmployees:10,sortPosition:6,id:2,createdAt:"900d4ebc-f3cf-44d4-b184-ba894dea9389",profile:"1"},{title:"Lead Research Liaison",address:"69665 Moen Key",phone:"429-918-0646",howToFind:"Fabiola Ways",disinfection:"assumenda temporibus autem",wifi:!1,wardrobe:!1,freeParking:!0,parking:!0,ventilation:!1,waitingAreaSize:20,neededEmployees:5,sortPosition:5,id:3,createdAt:"c9f3c68a-f9cf-4251-9fd1-43dace424182",profile:"1"},{title:"International Assurance Associate",address:"766 MacGyver Valleys",phone:"676-980-9807",howToFind:"Lang Spur",disinfection:"tempore quae esse",wifi:!1,wardrobe:!0,freeParking:!0,parking:!0,ventilation:!0,waitingAreaSize:38,neededEmployees:7,sortPosition:6,id:4,createdAt:"2165b7c8-f03a-4730-af4f-05bc9c7fb264",profile:"1"}],a=[{title:"Dynamic Applications Coordinator",video:"f8b61843-64f5-4bfb-9f76-dd495cb75fb5",photo:"http://placeimg.com/640/480/technics",photos:["http://placeimg.com/640/480/food"],time:94976,break:22117,type:"VR",minAge:18,difficult:5,fear:10,teaser:"Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support",legend:"The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients",importantInformation:"Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support",hasActors:!1,neededModerators:6,schedulePeriod:7803,languages:["ru"],defaultLanguage:"ru",minDaysForFreeCanceling:5,awailableForNavigator:!1,awailableForWidgets:!1,ticketSystem:!0,questroomIds:[],walletId:"62a1490f-6e25-4dea-83a9-1fb7604c0575",locationId:1,sortPosition:7,id:345345,uid:"952322b8-1a03-4ec3-b26e-6b38cb6a67e1",createdAt:"2e27729a-8580-43fe-9e4c-3e1f20a7b5e5",profile:"1"},{title:"Principal Response Liaison",video:"de9ca5f7-b471-42d0-bc30-125162208ced",photo:"http://placeimg.com/640/480/people",photos:["http://placeimg.com/640/480/city"],time:16379,break:20789,type:"VR",minAge:16,difficult:1,fear:2,teaser:"The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality",legend:"The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients",importantInformation:"New ABC 13 9370, 13.3, 5th Gen CoreA5-8250U, 8GB RAM, 256GB SSD, power UHD Graphics, OS 10 Home, OS Office A & J 2016",hasActors:!0,neededModerators:5,schedulePeriod:29793,languages:["ru"],defaultLanguage:"ru",minDaysForFreeCanceling:8,awailableForNavigator:!1,awailableForWidgets:!0,ticketSystem:!0,questroomIds:[],walletId:"1da9a23f-bc4f-41c0-8fb6-cd28d12d7898",locationId:3,sortPosition:6,id:345345,uid:"dbaca4f7-d7c4-4fec-9859-2ac08dd07056",createdAt:"119ff39c-d0e5-4f9c-9302-6abc405e1a68",profile:"1"},{title:"Corporate Metrics Producer",video:"5d30bfba-3f3f-4fa7-b15f-c6f3ca87dc5d",photo:"http://placeimg.com/640/480/people",photos:["http://placeimg.com/640/480/nature"],time:83659,break:38135,type:"Escape room",minAge:14,difficult:8,fear:9,teaser:"The Apollotech B340 is an affordable wireless mouse with reliable connectivity, 12 months battery life and modern design",legend:"The Football Is Good For Training And Recreational Purposes",importantInformation:"The automobile layout consists of a front-engine design, with transaxle-type transmissions mounted at the rear of the engine and four wheel drive",hasActors:!1,neededModerators:3,schedulePeriod:77886,languages:["ru"],defaultLanguage:"ru",minDaysForFreeCanceling:6,awailableForNavigator:!0,awailableForWidgets:!0,ticketSystem:!0,questroomIds:[],walletId:"62a1490f-6e25-4dea-83a9-1fb7604c0575",locationId:3,sortPosition:10,id:3232,uid:435,createdAt:"59d4d79c-fc49-42d5-858f-a5ea997b259a",profile:"1"},{title:"International Division Associate",video:"86ebe48a-8b55-4ab7-98d8-18c2114679a4",photo:"http://placeimg.com/640/480/technics",photos:["http://placeimg.com/640/480/nightlife"],time:14309,break:29278,type:"VR",minAge:12,difficult:8,fear:9,teaser:"New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart",legend:"Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support",importantInformation:"The Apollotech B340 is an affordable wireless mouse with reliable connectivity, 12 months battery life and modern design",hasActors:!0,neededModerators:4,schedulePeriod:51071,languages:["ru"],defaultLanguage:"ru",minDaysForFreeCanceling:8,awailableForNavigator:!0,awailableForWidgets:!1,ticketSystem:!0,questroomIds:[],walletId:"1da9a23f-bc4f-41c0-8fb6-cd28d12d7898",locationId:4,sortPosition:8,id:234,uid:"2b2d59c0-689a-4049-9b98-51cfa73eb500",createdAt:"591b55b2-648e-4da6-802f-e44649557cb8",profile:"1"}];export{e as locations,a as questrooms};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";import o from"@alphakits/icons/dist/EditS";import e from"@alphakits/icons/dist/PlusS";import{Button as r}from"../button/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"../typography/title/component.js";var m=function(e){var r=e.location,m=e.onClick;return t.createElement(t.Fragment,null,t.createElement(n.Text,{view:"title",weight:"bold",color:"primary"},r.address),t.createElement(i,{icon:o,onClick:m,size:"s",view:"ghost"}))},s=function(o){var i=o.onClick;return t.createElement(r,{leftAddons:t.createElement(e,null),size:"xs",onClick:i,view:"secondary"},"Добавить квест")};export{s as Addons,m as Content};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type CollapsableRowProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
content?: React.ReactNode;
|
|
7
|
+
expanded?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
addons?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare const CollapsableRow: React.FC<CollapsableRowProps>;
|
|
12
|
+
export { CollapsableRowProps, CollapsableRow };
|