@alphakits/ui 1.30.39 → 1.30.40
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/package.json +1 -1
- package/dist/__internal/utils/clear-text.d.ts +0 -2
- package/dist/__internal/utils/clear-text.js +0 -1
- package/dist/__internal/utils/getDataTestId.d.ts +0 -2
- package/dist/__internal/utils/getDataTestId.js +0 -1
- package/dist/__internal/utils/index.d.ts +0 -2
- package/dist/__internal/utils/index.js +0 -1
- package/dist/amount/component.d.ts +0 -22
- package/dist/amount/component.js +0 -1
- package/dist/amount/index.d.ts +0 -1
- package/dist/amount/index.js +0 -1
- package/dist/amount-input/component.d.ts +0 -34
- package/dist/amount-input/component.js +0 -1
- package/dist/amount-input/index.d.ts +0 -1
- package/dist/amount-input/index.js +0 -1
- package/dist/amount-input/utils/index.d.ts +0 -3
- package/dist/amount-input/utils/index.js +0 -1
- package/dist/avatar/component.d.ts +0 -10
- package/dist/avatar/component.js +0 -1
- package/dist/avatar/index.d.ts +0 -1
- package/dist/avatar/index.js +0 -1
- package/dist/back-button/component.d.ts +0 -9
- package/dist/back-button/component.js +0 -1
- package/dist/back-button/index.d.ts +0 -1
- package/dist/back-button/index.js +0 -1
- package/dist/badge/component.d.ts +0 -14
- package/dist/badge/component.js +0 -1
- package/dist/badge/index.d.ts +0 -1
- package/dist/badge/index.js +0 -1
- package/dist/base-card/component.d.ts +0 -23
- package/dist/base-card/component.js +0 -1
- package/dist/base-card/index.d.ts +0 -1
- package/dist/base-card/index.js +0 -1
- package/dist/bottom-sheet/component.d.ts +0 -11
- package/dist/bottom-sheet/component.js +0 -1
- package/dist/bottom-sheet/index.d.ts +0 -1
- package/dist/bottom-sheet/index.js +0 -1
- package/dist/box/component.d.ts +0 -34
- package/dist/box/component.js +0 -1
- package/dist/box/index.d.ts +0 -1
- package/dist/box/index.js +0 -1
- package/dist/button/component.d.ts +0 -21
- package/dist/button/component.js +0 -1
- package/dist/button/index.d.ts +0 -1
- package/dist/button/index.js +0 -1
- package/dist/button-arrow/component.d.ts +0 -12
- package/dist/button-arrow/component.js +0 -1
- package/dist/button-arrow/index.d.ts +0 -1
- package/dist/button-arrow/index.js +0 -1
- package/dist/calendar/component.d.ts +0 -26
- package/dist/calendar/component.js +0 -1
- package/dist/calendar/components/days-table/component.d.ts +0 -15
- package/dist/calendar/components/days-table/component.js +0 -1
- package/dist/calendar/components/days-table/index.d.ts +0 -1
- package/dist/calendar/components/days-table/index.js +0 -1
- package/dist/calendar/components/header/index.d.ts +0 -1
- package/dist/calendar/components/header/index.js +0 -1
- package/dist/calendar/components/header//321/201omponent.d.ts +0 -17
- package/dist/calendar/components/header//321/201omponent.js +0 -1
- package/dist/calendar/components/months-table/index.d.ts +0 -1
- package/dist/calendar/components/months-table/index.js +0 -1
- package/dist/calendar/components/months-table//321/201omponent.d.ts +0 -11
- package/dist/calendar/components/months-table//321/201omponent.js +0 -1
- package/dist/calendar/components/select-button/index.d.ts +0 -1
- package/dist/calendar/components/select-button/index.js +0 -1
- package/dist/calendar/components/select-button//321/201omponent.d.ts +0 -12
- package/dist/calendar/components/select-button//321/201omponent.js +0 -1
- package/dist/calendar/components/years-table/index.d.ts +0 -1
- package/dist/calendar/components/years-table/index.js +0 -1
- package/dist/calendar/components/years-table//321/201omponent.d.ts +0 -9
- package/dist/calendar/components/years-table//321/201omponent.js +0 -1
- package/dist/calendar/index.d.ts +0 -4
- package/dist/calendar/index.js +0 -1
- package/dist/calendar/typings.d.ts +0 -16
- package/dist/calendar/typings.js +0 -1
- package/dist/calendar/use-calendar.d.ts +0 -57
- package/dist/calendar/use-calendar.js +0 -1
- package/dist/calendar/use-period.d.ts +0 -14
- package/dist/calendar/use-period.js +0 -1
- package/dist/calendar/utils.d.ts +0 -40
- package/dist/calendar/utils.js +0 -1
- package/dist/calendar-input/component.d.ts +0 -58
- package/dist/calendar-input/component.js +0 -1
- package/dist/calendar-input/index.d.ts +0 -2
- package/dist/calendar-input/index.js +0 -1
- package/dist/calendar-input/utils.d.ts +0 -9
- package/dist/calendar-input/utils.js +0 -1
- package/dist/capitalize-2b9fa5e2.js +0 -1
- package/dist/card/component.d.ts +0 -14
- package/dist/card/component.js +0 -1
- package/dist/card/images/index.d.ts +0 -5
- package/dist/card/images/index.js +0 -1
- package/dist/card/index.d.ts +0 -1
- package/dist/card/index.js +0 -1
- package/dist/cell/base/component.d.ts +0 -13
- package/dist/cell/base/component.js +0 -1
- package/dist/cell/component.d.ts +0 -7
- package/dist/cell/component.js +0 -1
- package/dist/cell/index.d.ts +0 -1
- package/dist/cell/index.js +0 -1
- package/dist/cell/pure/component.d.ts +0 -15
- package/dist/cell/pure/component.js +0 -1
- package/dist/cell/pure/index.d.ts +0 -1
- package/dist/cell/pure/index.js +0 -1
- package/dist/checkbox/component.d.ts +0 -36
- package/dist/checkbox/component.js +0 -1
- package/dist/checkbox/index.d.ts +0 -1
- package/dist/checkbox/index.js +0 -1
- package/dist/checkbox-group/component.d.ts +0 -18
- package/dist/checkbox-group/component.js +0 -1
- package/dist/checkbox-group/index.d.ts +0 -1
- package/dist/checkbox-group/index.js +0 -1
- package/dist/checkbox-lists/component.d.ts +0 -21
- package/dist/checkbox-lists/component.js +0 -1
- package/dist/checkbox-lists/index.d.ts +0 -1
- package/dist/checkbox-lists/index.js +0 -1
- package/dist/checkbox-lists/mock.d.ts +0 -82
- package/dist/checkbox-lists/mock.js +0 -1
- package/dist/collapsable-row/addons.d.ts +0 -7
- package/dist/collapsable-row/addons.js +0 -1
- package/dist/collapsable-row/component.d.ts +0 -12
- package/dist/collapsable-row/component.js +0 -1
- package/dist/collapsable-row/fixtures.d.ts +0 -100
- package/dist/collapsable-row/fixtures.js +0 -1
- package/dist/collapsable-row/index.d.ts +0 -1
- package/dist/collapsable-row/index.js +0 -1
- package/dist/collapse/component.d.ts +0 -19
- package/dist/collapse/component.js +0 -1
- package/dist/collapse/index.d.ts +0 -1
- package/dist/collapse/index.js +0 -1
- package/dist/colors.module-f837aabc.js +0 -1
- package/dist/contact-block-430fa14f.d.ts +0 -8
- package/dist/contact-block-430fa14f.js +0 -1
- package/dist/copy-button/component.d.ts +0 -9
- package/dist/copy-button/component.js +0 -1
- package/dist/copy-button/index.d.ts +0 -1
- package/dist/copy-button/index.js +0 -1
- package/dist/date/component.d.ts +0 -13
- package/dist/date/component.js +0 -1
- package/dist/date/index.d.ts +0 -1
- package/dist/date/index.js +0 -1
- package/dist/date-switcher/component.d.ts +0 -11
- package/dist/date-switcher/component.js +0 -1
- package/dist/date-switcher/index.d.ts +0 -1
- package/dist/date-switcher/index.js +0 -1
- package/dist/decorated-item/component.d.ts +0 -13
- package/dist/decorated-item/component.js +0 -1
- package/dist/decorated-item/index.d.ts +0 -1
- package/dist/decorated-item/index.js +0 -1
- package/dist/divider/component.d.ts +0 -10
- package/dist/divider/component.js +0 -1
- package/dist/divider/index.d.ts +0 -1
- package/dist/divider/index.js +0 -1
- package/dist/dot/component.d.ts +0 -7
- package/dist/dot/component.js +0 -1
- package/dist/dot/index.d.ts +0 -1
- package/dist/dot/index.js +0 -1
- package/dist/empty-page/component.d.ts +0 -14
- package/dist/empty-page/component.js +0 -1
- package/dist/empty-page/index.d.ts +0 -1
- package/dist/empty-page/index.js +0 -1
- package/dist/flex/component.d.ts +0 -24
- package/dist/flex/component.js +0 -1
- package/dist/flex/index.d.ts +0 -1
- package/dist/flex/index.js +0 -1
- package/dist/flex-columns/component.d.ts +0 -11
- package/dist/flex-columns/component.js +0 -1
- package/dist/flex-columns/index.d.ts +0 -1
- package/dist/flex-columns/index.js +0 -1
- package/dist/footer/component.d.ts +0 -27
- package/dist/footer/component.js +0 -1
- package/dist/footer/contact-block.d.ts +0 -0
- package/dist/footer/contact-block.js +0 -1
- package/dist/footer/index.d.ts +0 -1
- package/dist/footer/index.js +0 -1
- package/dist/form/component.d.ts +0 -3
- package/dist/form/component.js +0 -1
- package/dist/form/components/form-loading/index.d.ts +0 -4
- package/dist/form/components/form-loading/index.js +0 -1
- package/dist/form/index.d.ts +0 -1
- package/dist/form/index.js +0 -1
- package/dist/form/templates/base-form/index.d.ts +0 -17
- package/dist/form/templates/base-form/index.js +0 -1
- package/dist/form/templates/filters-form/index.d.ts +0 -15
- package/dist/form/templates/filters-form/index.js +0 -1
- package/dist/form/templates/rest-form/form.d.ts +0 -6
- package/dist/form/templates/rest-form/form.js +0 -1
- package/dist/form/templates/rest-form/index.d.ts +0 -31
- package/dist/form/templates/rest-form/index.js +0 -1
- package/dist/form/utils/get-default-values.d.ts +0 -2
- package/dist/form/utils/get-default-values.js +0 -1
- package/dist/form/utils/remove-undefined-from-object.d.ts +0 -4
- package/dist/form/utils/remove-undefined-from-object.js +0 -1
- package/dist/form-control/component.d.ts +0 -44
- package/dist/form-control/component.js +0 -1
- package/dist/form-control/index.d.ts +0 -1
- package/dist/form-control/index.js +0 -1
- package/dist/grid/col/component.d.ts +0 -16
- package/dist/grid/col/component.js +0 -1
- package/dist/grid/col/index.d.ts +0 -1
- package/dist/grid/col/index.js +0 -1
- package/dist/grid/component.d.ts +0 -8
- package/dist/grid/component.js +0 -1
- package/dist/grid/index.d.ts +0 -1
- package/dist/grid/index.js +0 -1
- package/dist/grid/row/component.d.ts +0 -14
- package/dist/grid/row/component.js +0 -1
- package/dist/grid/row/index.d.ts +0 -1
- package/dist/grid/row/index.js +0 -1
- package/dist/grid/typings.d.ts +0 -16
- package/dist/grid/typings.js +0 -1
- package/dist/grid/utils/index.d.ts +0 -3
- package/dist/grid/utils/index.js +0 -1
- package/dist/gutters.module-d3b93abb.js +0 -1
- package/dist/header-search/component.d.ts +0 -10
- package/dist/header-search/component.js +0 -1
- package/dist/header-search/index.d.ts +0 -1
- package/dist/header-search/index.js +0 -1
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/index.js +0 -1
- package/dist/hooks/use-crud-form-requests/index.d.ts +0 -17
- package/dist/hooks/use-crud-form-requests/index.js +0 -1
- package/dist/hooks/use-get-one/index.d.ts +0 -8
- package/dist/hooks/use-get-one/index.js +0 -1
- package/dist/hooks/useClickOutside/index.d.ts +0 -4
- package/dist/hooks/useClickOutside/index.js +0 -1
- package/dist/hooks/useFocus/index.d.ts +0 -5
- package/dist/hooks/useFocus/index.js +0 -1
- package/dist/hooks/usePrevious/index.d.ts +0 -2
- package/dist/hooks/usePrevious/index.js +0 -1
- package/dist/icon-button/component.d.ts +0 -20
- package/dist/icon-button/component.js +0 -1
- package/dist/icon-button/index.d.ts +0 -1
- package/dist/icon-button/index.js +0 -1
- package/dist/image/component.d.ts +0 -5
- package/dist/image/component.js +0 -1
- package/dist/image/image-base.d.ts +0 -6
- package/dist/image/image-base.js +0 -1
- package/dist/image/index.d.ts +0 -2
- package/dist/image/index.js +0 -1
- package/dist/image/types.d.ts +0 -27
- package/dist/image/types.js +0 -1
- package/dist/image/use-image-render-component.d.ts +0 -0
- package/dist/image/use-image-render-component.js +0 -1
- package/dist/image/utils.d.ts +0 -2
- package/dist/image/utils.js +0 -1
- package/dist/image-gallery/component.d.ts +0 -11
- package/dist/image-gallery/component.js +0 -1
- package/dist/image-gallery/index.d.ts +0 -1
- package/dist/image-gallery/index.js +0 -1
- package/dist/image-uploader/component.d.ts +0 -25
- package/dist/image-uploader/component.js +0 -1
- package/dist/image-uploader/index.d.ts +0 -1
- package/dist/image-uploader/index.js +0 -1
- package/dist/index.css +0 -1
- package/dist/index.ts +0 -93
- package/dist/info-block-header/component.d.ts +0 -8
- package/dist/info-block-header/component.js +0 -1
- package/dist/info-block-header/index.d.ts +0 -1
- package/dist/info-block-header/index.js +0 -1
- package/dist/info-block-item/component.d.ts +0 -12
- package/dist/info-block-item/component.js +0 -1
- package/dist/info-block-item/index.d.ts +0 -1
- package/dist/info-block-item/index.js +0 -1
- package/dist/info-block-wrapper/component.d.ts +0 -8
- package/dist/info-block-wrapper/component.js +0 -1
- package/dist/info-block-wrapper/index.d.ts +0 -1
- package/dist/info-block-wrapper/index.js +0 -1
- package/dist/input/component.d.ts +0 -68
- package/dist/input/component.js +0 -1
- package/dist/input/index.d.ts +0 -1
- package/dist/input/index.js +0 -1
- package/dist/input-autocomplete/autocomplete-field/index.d.ts +0 -6
- package/dist/input-autocomplete/autocomplete-field/index.js +0 -1
- package/dist/input-autocomplete/component.d.ts +0 -86
- package/dist/input-autocomplete/component.js +0 -1
- package/dist/input-autocomplete/index.d.ts +0 -1
- package/dist/input-autocomplete/index.js +0 -1
- package/dist/input-ghost/component.d.ts +0 -12
- package/dist/input-ghost/component.js +0 -1
- package/dist/input-ghost/index.d.ts +0 -1
- package/dist/input-ghost/index.js +0 -1
- package/dist/isSymbol-7d47cb2a.js +0 -1
- package/dist/link/component.d.ts +0 -29
- package/dist/link/component.js +0 -1
- package/dist/link/index.d.ts +0 -1
- package/dist/link/index.js +0 -1
- package/dist/list-allert/component.d.ts +0 -10
- package/dist/list-allert/component.js +0 -1
- package/dist/list-allert/index.d.ts +0 -1
- package/dist/list-allert/index.js +0 -1
- package/dist/loader/component.d.ts +0 -8
- package/dist/loader/component.js +0 -1
- package/dist/loader/index.d.ts +0 -1
- package/dist/loader/index.js +0 -1
- package/dist/masked-input/component.d.ts +0 -45
- package/dist/masked-input/component.js +0 -1
- package/dist/masked-input/index.d.ts +0 -1
- package/dist/masked-input/index.js +0 -1
- package/dist/menu/component.d.ts +0 -25
- package/dist/menu/component.js +0 -1
- package/dist/menu/components/content-header/index.d.ts +0 -8
- package/dist/menu/components/content-header/index.js +0 -1
- package/dist/menu/components/index.d.ts +0 -5
- package/dist/menu/components/index.js +0 -1
- package/dist/menu/components/menu-avatar/index.d.ts +0 -10
- package/dist/menu/components/menu-avatar/index.js +0 -1
- package/dist/menu/components/menu-back-button/index.d.ts +0 -8
- package/dist/menu/components/menu-back-button/index.js +0 -1
- package/dist/menu/components/menu-button/index.d.ts +0 -13
- package/dist/menu/components/menu-button/index.js +0 -1
- package/dist/menu/components/menu-buttons-list/index.d.ts +0 -13
- package/dist/menu/components/menu-buttons-list/index.js +0 -1
- package/dist/menu/components/user-button/index.d.ts +0 -10
- package/dist/menu/components/user-button/index.js +0 -1
- package/dist/menu/hooks/use-menu.d.ts +0 -8
- package/dist/menu/hooks/use-menu.js +0 -1
- package/dist/menu/index.d.ts +0 -1
- package/dist/menu/index.js +0 -1
- package/dist/message/component.d.ts +0 -16
- package/dist/message/component.js +0 -1
- package/dist/message/index.d.ts +0 -1
- package/dist/message/index.js +0 -1
- package/dist/modal/components/modals/index.d.ts +0 -9
- package/dist/modal/components/modals/index.js +0 -1
- package/dist/modal/components/modals/modal.d.ts +0 -10
- package/dist/modal/components/modals/modal.js +0 -1
- package/dist/modal/context.d.ts +0 -10
- package/dist/modal/context.js +0 -1
- package/dist/modal/hooks/use-modal.d.ts +0 -12
- package/dist/modal/hooks/use-modal.js +0 -1
- package/dist/modal/index.d.ts +0 -2
- package/dist/modal/index.js +0 -1
- package/dist/modal/types.d.ts +0 -27
- package/dist/modal/types.js +0 -1
- package/dist/modal/utils/delete-property-by-id.d.ts +0 -4
- package/dist/modal/utils/delete-property-by-id.js +0 -1
- package/dist/modal/utils/is-last.d.ts +0 -2
- package/dist/modal/utils/is-last.js +0 -1
- package/dist/mq/component.d.ts +0 -11
- package/dist/mq/component.js +0 -1
- package/dist/mq/index.d.ts +0 -2
- package/dist/mq/index.js +0 -1
- package/dist/mq/use-match-media.d.ts +0 -2
- package/dist/mq/use-match-media.js +0 -1
- package/dist/mq/utils.d.ts +0 -5
- package/dist/mq/utils.js +0 -1
- package/dist/notification/component.d.ts +0 -35
- package/dist/notification/component.js +0 -1
- package/dist/notification/index.d.ts +0 -1
- package/dist/notification/index.js +0 -1
- package/dist/notification/utils/index.d.ts +0 -4
- package/dist/notification/utils/index.js +0 -1
- package/dist/padding/component.d.ts +0 -9
- package/dist/padding/component.js +0 -1
- package/dist/padding/index.d.ts +0 -1
- package/dist/padding/index.js +0 -1
- package/dist/page-container/component.d.ts +0 -15
- package/dist/page-container/component.js +0 -1
- package/dist/page-container/index.d.ts +0 -1
- package/dist/page-container/index.js +0 -1
- package/dist/page-loading/component.d.ts +0 -3
- package/dist/page-loading/component.js +0 -1
- package/dist/page-loading/index.d.ts +0 -1
- package/dist/page-loading/index.js +0 -1
- package/dist/page-with-controls/component.d.ts +0 -24
- package/dist/page-with-controls/component.js +0 -1
- package/dist/page-with-controls/index.d.ts +0 -1
- package/dist/page-with-controls/index.js +0 -1
- package/dist/picker-button/common/index.d.ts +0 -1
- package/dist/picker-button/common/index.js +0 -1
- package/dist/picker-button/common/labeled-button/index.d.ts +0 -12
- package/dist/picker-button/common/labeled-button/index.js +0 -1
- package/dist/picker-button/component.d.ts +0 -16
- package/dist/picker-button/component.js +0 -1
- package/dist/picker-button/field/Component.d.ts +0 -11
- package/dist/picker-button/field/Component.js +0 -1
- package/dist/picker-button/field/index.d.ts +0 -1
- package/dist/picker-button/field/index.js +0 -1
- package/dist/picker-button/index.d.ts +0 -2
- package/dist/picker-button/index.js +0 -1
- package/dist/popover/component.d.ts +0 -28
- package/dist/popover/component.js +0 -1
- package/dist/popover/index.d.ts +0 -1
- package/dist/popover/index.js +0 -1
- package/dist/portal/component.d.ts +0 -7
- package/dist/portal/component.js +0 -1
- package/dist/portal/index.d.ts +0 -1
- package/dist/portal/index.js +0 -1
- package/dist/portal/utils.d.ts +0 -5
- package/dist/portal/utils.js +0 -1
- package/dist/progress-bar/component.d.ts +0 -11
- package/dist/progress-bar/component.js +0 -1
- package/dist/progress-bar/index.d.ts +0 -1
- package/dist/progress-bar/index.js +0 -1
- package/dist/progress-index/component.d.ts +0 -11
- package/dist/progress-index/component.js +0 -1
- package/dist/progress-index/index.d.ts +0 -1
- package/dist/progress-index/index.js +0 -1
- package/dist/radio/component.d.ts +0 -40
- package/dist/radio/component.js +0 -1
- package/dist/radio/index.d.ts +0 -1
- package/dist/radio/index.js +0 -1
- package/dist/radio-group/component.d.ts +0 -18
- package/dist/radio-group/component.js +0 -1
- package/dist/radio-group/index.d.ts +0 -1
- package/dist/radio-group/index.js +0 -1
- package/dist/radio-groups/component.d.ts +0 -19
- package/dist/radio-groups/component.js +0 -1
- package/dist/radio-groups/index.d.ts +0 -1
- package/dist/radio-groups/index.js +0 -1
- package/dist/radio-groups/mock.d.ts +0 -10
- package/dist/radio-groups/mock.js +0 -1
- package/dist/section-wrapper/component.d.ts +0 -12
- package/dist/section-wrapper/component.js +0 -1
- package/dist/section-wrapper/index.d.ts +0 -1
- package/dist/section-wrapper/index.js +0 -1
- package/dist/select/component.d.ts +0 -32
- package/dist/select/component.js +0 -1
- package/dist/select/components/arrow/component.d.ts +0 -4
- package/dist/select/components/arrow/component.js +0 -1
- package/dist/select/components/arrow/index.d.ts +0 -1
- package/dist/select/components/arrow/index.js +0 -1
- package/dist/select/components/base-select/component.d.ts +0 -5
- package/dist/select/components/base-select/component.js +0 -1
- package/dist/select/components/base-select/index.d.ts +0 -1
- package/dist/select/components/base-select/index.js +0 -1
- package/dist/select/components/checkmark/component.d.ts +0 -4
- package/dist/select/components/checkmark/component.js +0 -1
- package/dist/select/components/checkmark/index.d.ts +0 -1
- package/dist/select/components/checkmark/index.js +0 -1
- package/dist/select/components/field/component.d.ts +0 -5
- package/dist/select/components/field/component.js +0 -1
- package/dist/select/components/field/index.d.ts +0 -1
- package/dist/select/components/field/index.js +0 -1
- package/dist/select/components/index.d.ts +0 -7
- package/dist/select/components/index.js +0 -1
- package/dist/select/components/native-select/component.d.ts +0 -13
- package/dist/select/components/native-select/component.js +0 -1
- package/dist/select/components/native-select/index.d.ts +0 -1
- package/dist/select/components/native-select/index.js +0 -1
- package/dist/select/components/optgroup/component.d.ts +0 -4
- package/dist/select/components/optgroup/component.js +0 -1
- package/dist/select/components/optgroup/index.d.ts +0 -1
- package/dist/select/components/optgroup/index.js +0 -1
- package/dist/select/components/option/component.d.ts +0 -4
- package/dist/select/components/option/component.js +0 -1
- package/dist/select/components/option/index.d.ts +0 -1
- package/dist/select/components/option/index.js +0 -1
- package/dist/select/components/options-list/component.d.ts +0 -5
- package/dist/select/components/options-list/component.js +0 -1
- package/dist/select/components/options-list/index.d.ts +0 -1
- package/dist/select/components/options-list/index.js +0 -1
- package/dist/select/components/select-search/index.d.ts +0 -11
- package/dist/select/components/select-search/index.js +0 -1
- package/dist/select/components/virtual-options-list/component.d.ts +0 -7
- package/dist/select/components/virtual-options-list/component.js +0 -1
- package/dist/select/components/virtual-options-list/index.d.ts +0 -1
- package/dist/select/components/virtual-options-list/index.js +0 -1
- package/dist/select/index.d.ts +0 -5
- package/dist/select/index.js +0 -1
- package/dist/select/presets/index.d.ts +0 -2
- package/dist/select/presets/index.js +0 -1
- package/dist/select/presets/use-lazy-loading/index.d.ts +0 -45
- package/dist/select/presets/use-lazy-loading/index.js +0 -1
- package/dist/select/presets/use-select-with-loading/hook.d.ts +0 -11
- package/dist/select/presets/use-select-with-loading/hook.js +0 -1
- package/dist/select/typings.d.ts +0 -159
- package/dist/select/typings.js +0 -1
- package/dist/select/utils.d.ts +0 -34
- package/dist/select/utils.js +0 -1
- package/dist/sidepanel/component.d.ts +0 -24
- package/dist/sidepanel/component.js +0 -1
- package/dist/sidepanel/index.d.ts +0 -1
- package/dist/sidepanel/index.js +0 -1
- package/dist/sidepanel-header/component.d.ts +0 -21
- package/dist/sidepanel-header/component.js +0 -1
- package/dist/sidepanel-header/index.d.ts +0 -1
- package/dist/sidepanel-header/index.js +0 -1
- package/dist/skeleton/component.d.ts +0 -11
- package/dist/skeleton/component.js +0 -1
- package/dist/skeleton/index.d.ts +0 -1
- package/dist/skeleton/index.js +0 -1
- package/dist/space/Item.d.ts +0 -16
- package/dist/space/Item.js +0 -1
- package/dist/space/component.d.ts +0 -17
- package/dist/space/component.js +0 -1
- package/dist/space/index.d.ts +0 -1
- package/dist/space/index.js +0 -1
- package/dist/space/utils.d.ts +0 -11
- package/dist/space/utils.js +0 -1
- package/dist/spinner/component.d.ts +0 -11
- package/dist/spinner/component.js +0 -1
- package/dist/spinner/index.d.ts +0 -1
- package/dist/spinner/index.js +0 -1
- package/dist/stack/component.d.ts +0 -7
- package/dist/stack/component.js +0 -1
- package/dist/stack/context.d.ts +0 -10
- package/dist/stack/context.js +0 -1
- package/dist/stack/index.d.ts +0 -2
- package/dist/stack/index.js +0 -1
- package/dist/status/component.d.ts +0 -11
- package/dist/status/component.js +0 -1
- package/dist/status/index.d.ts +0 -1
- package/dist/status/index.js +0 -1
- package/dist/step-bar-ca252463.d.ts +0 -8
- package/dist/step-bar-ca252463.js +0 -1
- package/dist/stepped-progress-bar/components/step-bar.d.ts +0 -0
- package/dist/stepped-progress-bar/components/step-bar.js +0 -1
- package/dist/stepped-progress-bar/index.d.ts +0 -23
- package/dist/stepped-progress-bar/index.js +0 -1
- package/dist/sticker/component.d.ts +0 -10
- package/dist/sticker/component.js +0 -1
- package/dist/sticker/index.d.ts +0 -1
- package/dist/sticker/index.js +0 -1
- package/dist/suffix-input/component.d.ts +0 -22
- package/dist/suffix-input/component.js +0 -1
- package/dist/suffix-input/index.d.ts +0 -1
- package/dist/suffix-input/index.js +0 -1
- package/dist/super-list-header/component.d.ts +0 -10
- package/dist/super-list-header/component.js +0 -1
- package/dist/super-list-header/index.d.ts +0 -1
- package/dist/super-list-header/index.js +0 -1
- package/dist/super-list-item/component.d.ts +0 -14
- package/dist/super-list-item/component.js +0 -1
- package/dist/super-list-item/index.d.ts +0 -1
- package/dist/super-list-item/index.js +0 -1
- package/dist/switch/component.d.ts +0 -33
- package/dist/switch/component.js +0 -1
- package/dist/switch/index.d.ts +0 -1
- package/dist/switch/index.js +0 -1
- package/dist/table/columns.d.ts +0 -7
- package/dist/table/columns.js +0 -1
- package/dist/table/component.d.ts +0 -7
- package/dist/table/component.js +0 -1
- package/dist/table/components/cell/component.d.ts +0 -18
- package/dist/table/components/cell/component.js +0 -1
- package/dist/table/components/cell/index.d.ts +0 -1
- package/dist/table/components/cell/index.js +0 -1
- package/dist/table/components/cells/index.d.ts +0 -10
- package/dist/table/components/cells/index.js +0 -1
- package/dist/table/components/empty-list/index.d.ts +0 -5
- package/dist/table/components/empty-list/index.js +0 -1
- package/dist/table/components/error/index.d.ts +0 -5
- package/dist/table/components/error/index.js +0 -1
- package/dist/table/components/loading/index.d.ts +0 -7
- package/dist/table/components/loading/index.js +0 -1
- package/dist/table/components/pagination/index.d.ts +0 -12
- package/dist/table/components/pagination/index.js +0 -1
- package/dist/table/components/table-header/index.d.ts +0 -20
- package/dist/table/components/table-header/index.js +0 -1
- package/dist/table/hooks/use-table-data.d.ts +0 -20
- package/dist/table/hooks/use-table-data.js +0 -1
- package/dist/table/index.d.ts +0 -2
- package/dist/table/index.js +0 -1
- package/dist/table/languages/index.d.ts +0 -2
- package/dist/table/languages/index.js +0 -1
- package/dist/table/table.d.ts +0 -39
- package/dist/table/table.js +0 -1
- package/dist/table/types.d.ts +0 -75
- package/dist/table/types.js +0 -1
- package/dist/table/utils/add-query-param.d.ts +0 -3
- package/dist/table/utils/add-query-param.js +0 -1
- package/dist/table/utils/get-query-from-url.d.ts +0 -3
- package/dist/table/utils/get-query-from-url.js +0 -1
- package/dist/table/utils/get-tags.d.ts +0 -10
- package/dist/table/utils/get-tags.js +0 -1
- package/dist/table/utils/index.d.ts +0 -8
- package/dist/table/utils/index.js +0 -1
- package/dist/table/utils/is-object.d.ts +0 -2
- package/dist/table/utils/is-object.js +0 -1
- package/dist/table/utils/parse-query-params.d.ts +0 -2
- package/dist/table/utils/parse-query-params.js +0 -1
- package/dist/table/utils/prepare-rows.d.ts +0 -12
- package/dist/table/utils/prepare-rows.js +0 -1
- package/dist/table/utils/query-adapter.d.ts +0 -2
- package/dist/table/utils/query-adapter.js +0 -1
- package/dist/table/utils/remove-query-param.d.ts +0 -2
- package/dist/table/utils/remove-query-param.js +0 -1
- package/dist/table/utils/reset-query-param.d.ts +0 -4
- package/dist/table/utils/reset-query-param.js +0 -1
- package/dist/table/utils/serialize-data.d.ts +0 -3
- package/dist/table/utils/serialize-data.js +0 -1
- package/dist/table/utils/set-query-to-url.d.ts +0 -2
- package/dist/table/utils/set-query-to-url.js +0 -1
- package/dist/table/utils/sort-array.d.ts +0 -2
- package/dist/table/utils/sort-array.js +0 -1
- package/dist/table-status/component.d.ts +0 -9
- package/dist/table-status/component.js +0 -1
- package/dist/table-status/index.d.ts +0 -1
- package/dist/table-status/index.js +0 -1
- package/dist/tag/component.d.ts +0 -17
- package/dist/tag/component.js +0 -1
- package/dist/tag/index.d.ts +0 -1
- package/dist/tag/index.js +0 -1
- package/dist/tags-list/component.d.ts +0 -10
- package/dist/tags-list/component.js +0 -1
- package/dist/tags-list/index.d.ts +0 -1
- package/dist/tags-list/index.js +0 -1
- package/dist/textarea/component.d.ts +0 -60
- package/dist/textarea/component.js +0 -1
- package/dist/textarea/index.d.ts +0 -1
- package/dist/textarea/index.js +0 -1
- package/dist/theme-provider/component.d.ts +0 -20
- package/dist/theme-provider/component.js +0 -1
- package/dist/theme-provider/default-themes.d.ts +0 -165
- package/dist/theme-provider/default-themes.js +0 -1
- package/dist/theme-provider/index.d.ts +0 -2
- package/dist/theme-provider/index.js +0 -1
- package/dist/toast/component.d.ts +0 -29
- package/dist/toast/component.js +0 -1
- package/dist/toast/index.d.ts +0 -1
- package/dist/toast/index.js +0 -1
- package/dist/toast-notifier/component.d.ts +0 -12
- package/dist/toast-notifier/component.js +0 -1
- package/dist/toast-notifier/index.d.ts +0 -1
- package/dist/toast-notifier/index.js +0 -1
- package/dist/toast-notifier/use-timer.d.ts +0 -7
- package/dist/toast-notifier/use-timer.js +0 -1
- package/dist/toast-plate/component.d.ts +0 -30
- package/dist/toast-plate/component.js +0 -1
- package/dist/toast-plate/index.d.ts +0 -1
- package/dist/toast-plate/index.js +0 -1
- package/dist/tooltip/component.d.ts +0 -23
- package/dist/tooltip/component.js +0 -1
- package/dist/tooltip/index.d.ts +0 -1
- package/dist/tooltip/index.js +0 -1
- package/dist/typings/api.d.ts +0 -18
- package/dist/typings/api.js +0 -1
- package/dist/typography/colors.d.ts +0 -3
- package/dist/typography/colors.js +0 -1
- package/dist/typography/component.d.ts +0 -8
- package/dist/typography/component.js +0 -1
- package/dist/typography/index.d.ts +0 -1
- package/dist/typography/index.js +0 -1
- package/dist/typography/text/component.d.ts +0 -17
- package/dist/typography/text/component.js +0 -1
- package/dist/typography/text/index.d.ts +0 -1
- package/dist/typography/text/index.js +0 -1
- package/dist/typography/title/component.d.ts +0 -22
- package/dist/typography/title/component.js +0 -1
- package/dist/typography/title/index.d.ts +0 -4
- package/dist/typography/title/index.js +0 -1
- package/dist/use-image-render-component-09e36a01.d.ts +0 -13
- package/dist/use-image-render-component-09e36a01.js +0 -1
- package/dist/utils/data/currency-codes.d.ts +0 -35
- package/dist/utils/data/currency-codes.js +0 -1
- package/dist/utils/format-amount/util.d.ts +0 -12
- package/dist/utils/format-amount/util.js +0 -1
- package/dist/utils/format-date/index.d.ts +0 -21
- package/dist/utils/format-date/index.js +0 -1
- package/dist/utils/get-currency-symbol/util.d.ts +0 -2
- package/dist/utils/get-currency-symbol/util.js +0 -1
- package/dist/utils/get-service-error/index.d.ts +0 -21
- package/dist/utils/get-service-error/index.js +0 -1
- package/dist/utils/get-service-error/is-axios-error.d.ts +0 -3
- package/dist/utils/get-service-error/is-axios-error.js +0 -1
- package/dist/utils/get-service-error/is-network-error.d.ts +0 -2
- package/dist/utils/get-service-error/is-network-error.js +0 -1
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/index.js +0 -1
- package/dist/utils/show-toast/index.d.ts +0 -3
- package/dist/utils/show-toast/index.js +0 -1
- package/dist/utils/split-amount/util.d.ts +0 -2
- package/dist/utils/split-amount/util.js +0 -1
- package/dist/welcome-layout/component.d.ts +0 -10
- package/dist/welcome-layout/component.js +0 -1
- package/dist/welcome-layout/index.d.ts +0 -1
- package/dist/welcome-layout/index.js +0 -1
- package/dist/with-suffix/component.d.ts +0 -44
- package/dist/with-suffix/component.js +0 -1
- package/dist/with-suffix/index.d.ts +0 -1
- package/dist/with-suffix/index.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function r(r){return r.replace(/\n+/g,"").trim()}export{r as clearText};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=function(o,r,t){var e=o.toLowerCase();return r?r+"-"+e+(t?"-root":""):e+(t?"-root":"")};export{o as getDataTestId};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{getDataTestId}from"./getDataTestId.js";export{clearText}from"./clear-text.js";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { CurrencyCodes } from "../utils/data/currency-codes";
|
|
4
|
-
import { TextProps } from "../typography/text/index";
|
|
5
|
-
import { AmountValueType } from "../utils/format-amount/util";
|
|
6
|
-
type AmountFormat = {
|
|
7
|
-
showMinorPart?: boolean;
|
|
8
|
-
currency?: CurrencyCodes;
|
|
9
|
-
} | {
|
|
10
|
-
showMinorPart?: never;
|
|
11
|
-
currency?: string;
|
|
12
|
-
};
|
|
13
|
-
type AmountProps = {
|
|
14
|
-
value: number;
|
|
15
|
-
type?: AmountValueType;
|
|
16
|
-
currencyOpacity?: boolean;
|
|
17
|
-
isCanceled?: boolean;
|
|
18
|
-
className?: string;
|
|
19
|
-
dataTestId?: string;
|
|
20
|
-
} & TextProps & AmountFormat;
|
|
21
|
-
declare const Amount: React.FC<AmountProps>;
|
|
22
|
-
export { AmountFormat, AmountProps, Amount };
|
package/dist/amount/component.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as t,__assign as e}from"tslib";import r from"react";import o from"classnames";import{Typography as a}from"../typography/component.js";import{formatAmount as c,THINSP as i,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as n}from"../utils/format-amount/util.js";import"../typography/text/component.js";import"../colors.module-f837aabc.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../utils/data/currency-codes.js";import"../utils/get-currency-symbol/util.js";import"../utils/split-amount/util.js";var m="index-module_component__B2c28",s="index-module_canceled__q9BBN",l=function(l){var p,u,y=l.value,d=l.currency,f=l.type,j=void 0===f?"default":f,v=l.showMinorPart,h=l.isCanceled,x=void 0!==h&&h,E=l.className,P=l.currencyOpacity,_=void 0===P||P,g=t(l,["value","currency","type","showMinorPart","isCanceled","className","currencyOpacity"]),N=c({value:y,currency:d,showMinorPart:v,type:j}),b=N.majorPart,B=N.minorPart,C=N.currencySymbol;return function(t){return"EUR"===t||"USD"===t||"CHF"===t||"GBP"===t||"CAD"===t||"AUD"===t||"TRY"===t||"GEL"===t||"ILS"===t||"UAH"===t}(d)?r.createElement(a.Text,e({},g,{className:o(m,E,(p={},p[s]=x,p))}),!!C&&""+C+i,b,B&&r.createElement("span",{style:{opacity:_?.6:1}},n,B)):r.createElement(a.Text,e({},g,{className:o(m,E,(u={},u[s]=x,u))}),b,B?r.createElement("span",{style:{opacity:_?.6:1}},n,B,!!C&&""+i+C):!!C&&""+i+C)};export{l as Amount};
|
package/dist/amount/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
package/dist/amount/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Amount}from"./component.js";import"tslib";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f837aabc.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../utils/format-amount/util.js";import"../utils/data/currency-codes.js";import"../utils/get-currency-symbol/util.js";import"../utils/split-amount/util.js";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { CurrencyCodes } from "../utils/data/currency-codes";
|
|
4
|
-
import { InputProps } from "../input/index";
|
|
5
|
-
import { AmountValueType } from "../utils/format-amount/util";
|
|
6
|
-
type AmountInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
|
|
7
|
-
value?: number | undefined | null;
|
|
8
|
-
type?: AmountValueType;
|
|
9
|
-
suffix?: CurrencyCodes;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
integerLength?: number;
|
|
12
|
-
minority?: number;
|
|
13
|
-
bold?: boolean;
|
|
14
|
-
allowNegative?: boolean;
|
|
15
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
16
|
-
value: number | null;
|
|
17
|
-
valueString: string;
|
|
18
|
-
}) => void;
|
|
19
|
-
};
|
|
20
|
-
declare const AmountInput: React.ForwardRefExoticComponent<Omit<InputProps, "value" | "type" | "onChange"> & {
|
|
21
|
-
value?: number | undefined | null;
|
|
22
|
-
type?: AmountValueType | undefined;
|
|
23
|
-
suffix?: "CHF" | "EUR" | "RUR" | "RUB" | "USD" | "GBP" | "SEK" | "DKK" | "NOK" | "CZK" | "PLN" | "HUF" | "RSD" | "BGN" | "HRK" | "RON" | "MKD" | "BAM" | "ALL" | "ISK" | "UAH" | "BYN" | "MDL" | "GEL" | "TRY" | "CAD" | "AUD" | "ILS" | undefined;
|
|
24
|
-
required?: boolean | undefined;
|
|
25
|
-
integerLength?: number | undefined;
|
|
26
|
-
minority?: number | undefined;
|
|
27
|
-
bold?: boolean | undefined;
|
|
28
|
-
allowNegative?: boolean | undefined;
|
|
29
|
-
onChange?: ((e: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
30
|
-
value: number | null;
|
|
31
|
-
valueString: string;
|
|
32
|
-
}) => void) | undefined;
|
|
33
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
34
|
-
export { AmountInputProps, AmountInput };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from"tslib";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as l}from"react";import s from"classnames";import{getCurrencySymbol as u}from"../utils/get-currency-symbol/util.js";import{Input as m}from"../input/component.js";import{formatAmount as c,THINSP as d}from"../utils/format-amount/util.js";import{withSuffix as f}from"../with-suffix/component.js";import{getAmountValueFromStr as p,getFormattedValue as v}from"./utils/index.js";import"../utils/data/currency-codes.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var g={container:"index-module_container__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4",input:"index-module_input__Ims09"},C=f(m),x=o((function(o,m){var f,x=o.value,h=void 0===x?null:x,_=o.integerLength,j=void 0===_?9:_,y=o.suffix,N=void 0===y?"RUR":y,w=o.placeholder,S=void 0===w?"":w,E=o.bold,A=void 0===E||E,q=o.type,R=void 0===q?"default":q,b=o.className,F=o.focusedClassName,I=o.required,P=o.dataTestId,T=o.clear,U=void 0!==T&&T,k=o.allowNegative,G=void 0!==k&&k,H=o.onChange,J=o.onClear,L=e(o,["value","integerLength","suffix","placeholder","bold","type","className","focusedClassName","required","dataTestId","clear","allowNegative","onChange","onClear"]),W="default"===R?h:(h||0)/100,$=r(c({value:W||0,currency:"RUR",type:"default"}).formatted),B=$[0],K=$[1];i((function(){return p(B,"default"===R)!==h?K(c({value:W,currency:"RUR",type:"default"}).formatted):function(){}}),[W]);var Q=a((function(e){K(""),J&&J(e)}),[J]),z=B.replace("-","").split(","),D=z[0],M=z[1],O=B.startsWith("-");return n.createElement("div",{className:s(g.container,(f={},f[g.bold]=A,f[g.filled]=Boolean(B),f))},n.createElement(C,t({},L,{suffix:n.createElement(l,null,O&&"-",D,n.createElement("span",{className:g.minorPartAndCurrency},void 0!==M&&","+M,d,u(N)||N)),suffixContainerClassName:g.suffixContainer,clear:U,required:I,placeholder:S,value:B,className:s(g.component,b),focusedClassName:F,inputClassName:g.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",","),o=n.startsWith("-");if(o){if(!G){var r=t.selectionStart-1;return void window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}n=n.slice(1)}if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){o&&G&&(n="-"+n);var i=v(n,"default"===R);if(i===B){var a=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=a,t.selectionEnd=a}))}else{var l=n.replace("-","").split(/\.|,/),s=l[0],u=l[1],m=s.length;u&&(m+=1+u.slice(0,2).length);var c=i.length-m,d=t.selectionStart+c;window.requestAnimationFrame((function(){t.selectionStart=d,t.selectionEnd=d}))}K(i);var f=i;H&&H(e,{value:p(f.toString(),"default"===R),valueString:f.toString()})}else{var g=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=g,t.selectionEnd=g}))}},onClear:Q,dataTestId:P,ref:m})))}));export{x as AmountInput};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{AmountInput}from"./component.js";import"tslib";import"react";import"classnames";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{formatAmount as r}from"../../utils/format-amount/util.js";import"../../utils/data/currency-codes.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/split-amount/util.js";function t(t,u){var e=t.startsWith("-"),i=t.replace("-","").split(","),l=i[0],a=i[1],s=r({value:Number(l),currency:"RUR",type:"default"}).majorPart;return t?u?e?"-"+s:s:!a&&t.includes(",")?e?"-"+s+",":s+",":a?e?"-"+s+","+a.slice(0,2):s+","+a.slice(0,2):e?"-"+s:s:t}function u(r,t){if(!r)return null;var u=r.startsWith("-"),e=r.replace(/[^0-9,]/g,"").replace(",","."),i=Number(e);if(Number.isNaN(i))return null;var l=t?Math.round(i):Math.round(100*i);return u?-l:l}export{u as getAmountValueFromStr,t as getFormattedValue};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ImageProps } from "../image/index";
|
|
4
|
-
type AvatarProps = {
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
slot?: React.ReactNode;
|
|
7
|
-
ref?: any;
|
|
8
|
-
} & Pick<ImageProps, 'src' | 'text'>;
|
|
9
|
-
declare const Avatar: React.FC<AvatarProps>;
|
|
10
|
-
export { AvatarProps, Avatar };
|
package/dist/avatar/component.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f837aabc.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-09e36a01.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var s={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var m,p=i.src,n=i.text,a=i.slot,c=i.ref,l=i.onClick;return o.createElement(t,{ref:c,onClick:l,className:e([s.wrapper,(m={},m[s.disabled]=!l,m)]),view:"ghost"},o.createElement(r,{view:"circle",bgColor:"secondary",size:"s",src:p,text:n}),a&&o.createElement("div",{className:s.slot},a))};export{i as Avatar};
|
package/dist/avatar/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
package/dist/avatar/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f837aabc.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-09e36a01.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TFunction } from "../modal/index";
|
|
4
|
-
type BackButtonProps = {
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
t: TFunction;
|
|
7
|
-
};
|
|
8
|
-
declare const BackButton: React.FC<BackButtonProps>;
|
|
9
|
-
export { BackButtonProps, BackButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"react";import{ButtonArrow as o}from"../button-arrow/component.js";import"@alphakits/icons";import"classnames";var e="index-module_component__jvHy6",n=function(n){var r=n.onClick,m=n.t;return t.createElement("button",{className:e,type:"button",onClick:r},t.createElement(o,{type:"back",size:"s"}),m("common:back"))};export{n as BackButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{BackButton}from"./component.js";import"react";import"../button-arrow/component.js";import"@alphakits/icons";import"classnames";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface BadgeProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
view?: 'icon' | 'count';
|
|
6
|
-
color?: 'accent' | 'secondary';
|
|
7
|
-
size?: 's' | 'm' | 'l';
|
|
8
|
-
visibleIconOutline?: boolean;
|
|
9
|
-
content?: React.ReactNode | number | string;
|
|
10
|
-
iconColor?: 'positive' | 'attention' | 'negative' | 'tertiary' | 'secondary' | 'primary';
|
|
11
|
-
dataTestId?: string;
|
|
12
|
-
}
|
|
13
|
-
declare const Badge: ({ className, size, view, visibleIconOutline, content, iconColor, color, dataTestId, }: BadgeProps) => JSX.Element;
|
|
14
|
-
export { BadgeProps, Badge };
|
package/dist/badge/component.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import i from"classnames";var o={component:"index-module_component__ZLNal",accent:"index-module_accent__i-f-9",secondary:"index-module_secondary__TJV0f",s:"index-module_s__VUGf4",m:"index-module_m__vUD5Q",l:"index-module_l__Qq577",circle:"index-module_circle__uaS5F",icon:"index-module_icon__AmgAJ",positive:"index-module_positive__nd8ht",attention:"index-module_attention__gK6W9",negative:"index-module_negative__Q3IOC",tertiary:"index-module_tertiary__PJi6-",primary:"index-module_primary__6z3ni",outline:"index-module_outline__59f8v",dot:"index-module_dot__m71m2",isHidden:"index-module_isHidden__wpIC-",count:"index-module_count__UWIMK"},n=function(n){var d,_=n.className,t=n.size,m=void 0===t?"m":t,l=n.view,c=void 0===l?"count":l,u=n.visibleIconOutline,a=void 0!==u&&u,r=n.content,s=n.iconColor,x=n.color,v=void 0===x?"secondary":x,p=n.dataTestId,f="count"===c,y=f&&"number"==typeof r&&r<=0,I=f&&r&&r>=100?"99+":r,g="number"==typeof r&&r<10;return e.createElement("div",{className:i(o.component,o[m],o.view,o[v],s&&o[s],(d={},d[o.isHidden]=y,d[o.dot]=!r,d[o.outline]=a,d[o.circle]=g,d),_),"data-test-id":p},I)};export{n as Badge};
|
package/dist/badge/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
package/dist/badge/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Badge}from"./component.js";import"react";import"classnames";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
interface BaseCardProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
bottomSpace?: boolean;
|
|
7
|
-
title: string;
|
|
8
|
-
subtitle: string;
|
|
9
|
-
border?: boolean;
|
|
10
|
-
scalable?: boolean;
|
|
11
|
-
topLeftAddons?: ReactNode;
|
|
12
|
-
topRightAddons?: ReactNode;
|
|
13
|
-
bottomRightAddons?: ReactNode;
|
|
14
|
-
titleAddons?: ReactNode;
|
|
15
|
-
photo?: string;
|
|
16
|
-
href?: string;
|
|
17
|
-
onClick?: () => void;
|
|
18
|
-
dataTestId?: string;
|
|
19
|
-
onMouseEnter?: () => void;
|
|
20
|
-
onMouseLeave?: () => void;
|
|
21
|
-
}
|
|
22
|
-
declare const BaseCard: React.FC<BaseCardProps>;
|
|
23
|
-
export { BaseCardProps, BaseCard };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t from"react";import o from"classnames";import{Image as i}from"../image/component.js";import{Typography as m}from"../typography/component.js";import"../skeleton/component.js";import"../use-image-render-component-09e36a01.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-f837aabc.js";import"../typography/title/index.js";import"../typography/title/component.js";var n="index-module_component__4rFCR",a="index-module_bottomSpace__Di-8N",r="index-module_footer__kIafr",d="index-module_withBorder__r41KZ",s="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",c="index-module_topRightAddons__aPgTC",p="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",h="index-module_titleWrap__LxVjO",v="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",g=function(o){return t.createElement("a",e({},o),o.children)},E=function(o){return t.createElement("button",e({type:"button"},o),o.children)},f=function(e){var f,b=e.className,j=e.onClick,N=e.bottomSpace,y=void 0===N||N,A=e.title,L=e.subtitle,k=e.topLeftAddons,w=e.topRightAddons,M=e.bottomRightAddons,R=e.titleAddons,T=e.photo,C=e.href,P=e.scalable,B=void 0!==P&&P,O=e.border,S=void 0!==O&&O,z=e.dataTestId,I=e.onMouseEnter,J=e.onMouseLeave,W=j?E:g;return t.createElement(W,{href:C,onMouseEnter:I,onMouseLeave:J,"data-test-id":z,className:o(n,(f={},f[d]=S,f[s]=B,f[a]=!y,f),b)},!!T&&t.createElement("div",{className:_},t.createElement(i,{src:T,size:"auto"}),!!k&&t.createElement("div",{className:l},k),!!w&&t.createElement("div",{className:c},w),!y&&t.createElement("div",{className:u})),t.createElement("div",{className:r},t.createElement("div",{className:h},t.createElement(m.Text,{tag:"div",weight:"bold",className:v,view:"component"},A),!!R&&t.createElement("div",{className:x},R)),t.createElement(m.Text,{tag:"div",view:"primary-medium"},L),!!M&&t.createElement("div",{className:p},M)))};export{f as BaseCard};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
package/dist/base-card/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{BaseCard}from"./component.js";import"tslib";import"react";import"classnames";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f837aabc.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-09e36a01.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type BottomSheetProps = {
|
|
4
|
-
close: () => void;
|
|
5
|
-
open: boolean;
|
|
6
|
-
marginTop?: number;
|
|
7
|
-
onBackClick?: () => void;
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare const BottomSheet: React.FC<BottomSheetProps>;
|
|
11
|
-
export { BottomSheetProps, BottomSheet };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import o from"react-swipeable-bottom-sheet";import t from"@alphakits/icons/dist/ChevronBackM";var n="index-module_back_btn__mnINK",r=function(r){var a=r.children,i=r.close,l=r.open,p=r.marginTop,c=void 0===p?40:p,m=r.onBackClick;return e.createElement(o,{overflowHeight:0,style:{zIndex:999999,maxWidth:"100%"},marginTop:c,fullScreen:!0,topShadow:!1,open:l,onChange:i,bodyStyle:{borderRadius:c?"21px 21px 0 0 ":"0px",padding:"16px 16px",boxSizing:"border-box"}},!!m&&e.createElement("button",{type:"button",className:n,onClick:m},e.createElement(t,null)),a)};export{r as BottomSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{BottomSheet}from"./component.js";import"react";import"react-swipeable-bottom-sheet";import"@alphakits/icons/dist/ChevronBackM";
|
package/dist/box/component.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
declare enum Radiuses {
|
|
4
|
-
xs = 8,
|
|
5
|
-
sm = 12,
|
|
6
|
-
md = 16,
|
|
7
|
-
round = "round"
|
|
8
|
-
}
|
|
9
|
-
declare enum Spaces {
|
|
10
|
-
xxs = 4,
|
|
11
|
-
xs = 8,
|
|
12
|
-
sm = 12,
|
|
13
|
-
md = 16,
|
|
14
|
-
ml = 20,
|
|
15
|
-
l = 20,
|
|
16
|
-
xl = 24,
|
|
17
|
-
xxl = 32
|
|
18
|
-
}
|
|
19
|
-
type Props = {
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
className?: string;
|
|
22
|
-
background?: string;
|
|
23
|
-
border?: boolean;
|
|
24
|
-
id?: string;
|
|
25
|
-
width?: number;
|
|
26
|
-
height?: number;
|
|
27
|
-
rounded?: keyof typeof Radiuses;
|
|
28
|
-
padding?: keyof typeof Spaces;
|
|
29
|
-
paddingCustom?: string;
|
|
30
|
-
margin?: keyof typeof Spaces;
|
|
31
|
-
marginCustom?: string;
|
|
32
|
-
};
|
|
33
|
-
declare const Box: ({ children, id, className, padding, paddingCustom, border, margin, marginCustom, background, width, height, rounded, }: Props) => JSX.Element;
|
|
34
|
-
export { Radiuses, Spaces, Box };
|
package/dist/box/component.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import d,{useMemo as _}from"react";import n from"classnames";var i,m,e={component:"index-module_component__YjVTb",border:"index-module_border__TUVsy",radius_xs:"index-module_radius_xs__bmWFQ",radius_sm:"index-module_radius_sm__q3Ff8",radius_md:"index-module_radius_md__MRxAw",radius_round:"index-module_radius_round__Bdob-",padding_xxs:"index-module_padding_xxs__E4iU5",padding_xs:"index-module_padding_xs__pA1AX",padding_sm:"index-module_padding_sm__LlAl9",padding_md:"index-module_padding_md__61jy2",padding_ml:"index-module_padding_ml__93sp8",padding_l:"index-module_padding_l__0zzJe",padding_xl:"index-module_padding_xl__gRaym",padding_xxl:"index-module_padding_xxl__xZWpU",margin_xxs:"index-module_margin_xxs__zOtxs",margin_xs:"index-module_margin_xs__dH-RC",margin_sm:"index-module_margin_sm__qOkyT",margin_md:"index-module_margin_md__j3rLL",margin_l:"index-module_margin_l__t4LCH",margin_xl:"index-module_margin_xl__NBeg9",margin_xxl:"index-module_margin_xxl__PH7Av"};!function(d){d[d.xs=8]="xs",d[d.sm=12]="sm",d[d.md=16]="md",d.round="round"}(i||(i={})),function(d){d[d.xxs=4]="xxs",d[d.xs=8]="xs",d[d.sm=12]="sm",d[d.md=16]="md",d[d.ml=20]="ml",d[d.l=20]="l",d[d.xl=24]="xl",d[d.xxl=32]="xxl"}(m||(m={}));var x=function(i){var m,x=i.children,a=i.id,r=i.className,l=i.padding,o=i.paddingCustom,s=i.border,u=i.margin,g=i.marginCustom,p=i.background,t=i.width,c=i.height,b=i.rounded,f=_((function(){var d={};return p&&(d.background=p),o&&(d.padding=o),g&&(d.margin=g),t&&(d.width=t+"px"),c&&(d.height=c+"px"),d}),[p,t,c,o,g]);return d.createElement("div",{id:a,style:f,className:n([r,e.component,(m={},m[e["padding_"+l]]=l,m[e["margin_"+u]]=u,m[e["radius_"+b]]=b,m[e.border]=s,m)])},x)};export{x as Box,i as Radiuses,m as Spaces};
|
package/dist/box/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
package/dist/box/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Box,Radiuses,Spaces}from"./component.js";import"react";import"classnames";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react";
|
|
4
|
-
interface ButtonProps {
|
|
5
|
-
view?: 'primary' | 'secondary' | 'outlined' | 'filled' | 'transparent' | 'link' | 'ghost' | 'black' | 'outlined-inverted';
|
|
6
|
-
leftAddons?: React.ReactNode;
|
|
7
|
-
rightAddons?: React.ReactNode;
|
|
8
|
-
size?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
9
|
-
block?: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
href?: AnchorHTMLAttributes<HTMLAnchorElement>['href'];
|
|
12
|
-
dataTestId?: string;
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
nowrap?: boolean;
|
|
15
|
-
children?: string | React.ReactNode;
|
|
16
|
-
}
|
|
17
|
-
type AnchorButtonProps = ButtonProps & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
18
|
-
type NativeButtonProps = ButtonProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
19
|
-
type IButtonProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
20
|
-
declare const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
21
|
-
export { ButtonProps, IButtonProps, Button };
|
package/dist/button/component.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e,__assign as d}from"tslib";import o,{useRef as n}from"react";import l from"react-merge-refs";import r from"classnames";import{useFocus as a}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ","outlined-inverted":"index-module_outlined-inverted__Cwspj",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",black:"index-module_black__ah6BZ",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},_=o.forwardRef((function(_,s){var m,u,c=_.children,x=_.view,p=void 0===x?"secondary":x,f=_.leftAddons,b=_.rightAddons,h=_.size,v=void 0===h?"m":h,k=_.block,g=void 0!==k&&k,w=_.className,y=_.dataTestId,E=_.href,N=_.loading,T=void 0!==N&&N,j=_.nowrap,A=void 0!==j&&j,I=e(_,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=a(J,"keyboard")[0],P={className:r(i.component,i[p],i[v],(m={},m[i.focused]=O,m[i.block]=g,m[i.iconOnly]=!c,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},Z=o.createElement(o.Fragment,null,f&&o.createElement("span",{className:i.addons},f),c&&o.createElement("span",{className:r(i.text,(u={},u[i.stretchText]=!(f||b),u))},c),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var z=I.target;return o.createElement("a",d({rel:"_blank"===z?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,s])}),Z)}var R=I,U=R.disabled,B=e(R,["disabled"]);return o.createElement("button",d({},P,B,{disabled:U||T,ref:l([J,s])}),Z)}));export{_ as Button};
|
package/dist/button/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
package/dist/button/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Button}from"./component.js";import"tslib";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type Direction = 'chevronForward' | 'chevronBack' | 'chevronUp' | 'chevronDown' | 'close' | 'back';
|
|
4
|
-
type ButtonArrowProps = {
|
|
5
|
-
type: Direction;
|
|
6
|
-
size: 's' | 'm';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare const ButtonArrow: React.FC<ButtonArrowProps>;
|
|
12
|
-
export { ButtonArrowProps, ButtonArrow };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import{ChevronForwardS as n,ChevronBackS as l,ChevronUpS as t,ChevronDownS as r,CloseS as c,BackS as o,ChevronForwardM as a,ChevronBackM as m,ChevronUpM as d,ChevronDownM as u,CloseM as s}from"@alphakits/icons";import i from"classnames";var E={component:"index-module_component__Q8zO5",s:"index-module_s__fszCk",m:"index-module_m__dd2gY",disabled:"index-module_disabled__eNM7V"},p=function(p){var _,v=p.type,b=p.size,h=p.disabled,k=p.className,f=p.onClick;return e.createElement("button",{type:"button",disabled:h,onClick:f,className:i(E.component,E[b],(_={},_[E.disabled]=h,_),k)},function(i,E){var p={chevronForward:e.createElement(n,null),chevronBack:e.createElement(l,null),chevronUp:e.createElement(t,null),chevronDown:e.createElement(r,null),close:e.createElement(c,null),back:e.createElement(o,null)},_={chevronForward:e.createElement(a,null),chevronBack:e.createElement(m,null),chevronUp:e.createElement(d,null),chevronDown:e.createElement(u,null),close:e.createElement(s,null),back:e.createElement(o,null)};return"s"===E?p[i]:_[i]}(v,b))};export{p as ButtonArrow};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{ButtonArrow}from"./component.js";import"react";import"@alphakits/icons";import"classnames";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { locales } from "../utils/format-date/index";
|
|
4
|
-
import { View } from "./typings";
|
|
5
|
-
type ExternalLocale = keyof typeof locales;
|
|
6
|
-
type CalendarProps = {
|
|
7
|
-
className?: string;
|
|
8
|
-
defaultView?: View;
|
|
9
|
-
value?: number;
|
|
10
|
-
month?: number;
|
|
11
|
-
defaultMonth?: number;
|
|
12
|
-
minDate?: number;
|
|
13
|
-
maxDate?: number;
|
|
14
|
-
selectedFrom?: number;
|
|
15
|
-
selectedTo?: number;
|
|
16
|
-
events?: Array<Date | number>;
|
|
17
|
-
offDays?: Array<Date | number>;
|
|
18
|
-
onMonthChange?: (month: number) => void;
|
|
19
|
-
onYearChange?: (year: number) => void;
|
|
20
|
-
onChange?: (date: number) => void;
|
|
21
|
-
dataTestId?: string;
|
|
22
|
-
locale?: ExternalLocale;
|
|
23
|
-
shortNames?: boolean;
|
|
24
|
-
};
|
|
25
|
-
declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
export { ExternalLocale, CalendarProps, Calendar };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t,{forwardRef as o,useState as n,useMemo as a,useCallback as r}from"react";import s from"classnames";import{startOfMonth as i,isSameDay as m}from"date-fns";import{locales as l}from"../utils/format-date/index.js";import{DaysTable as c}from"./components/days-table/component.js";import{Header as d}from"./components/header/сomponent.js";import{MonthsTable as p}from"./components/months-table/сomponent.js";import{useCalendar as f}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as u}from"./utils.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"react-transition-group";import"../capitalize-2b9fa5e2.js";import"../isSymbol-7d47cb2a.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"@alphakits/icons/dist/ChevronBackS";import"./components/select-button/сomponent.js";import"../flex-columns/component.js";var v="index-module_component__SJQwG",g="index-module_container__3PFvh",w="index-module_sixWeeks__NcW9R",x=l,D=o((function(o,l){var D,y=o.className,M=o.defaultView,j=void 0===M?"days":M,k=o.value,C=o.month,P=o.defaultMonth,b=void 0===P?+new Date:P,N=o.minDate,_=o.maxDate,T=o.selectedFrom,S=o.selectedTo,Y=o.offDays,F=o.events,E=o.onChange,A=o.onMonthChange,V=o.onYearChange,B=o.locale,G=void 0===B?"en":B,R=o.shortNames,W=void 0===R||R,z=o.dataTestId,I=n(j),J=I[0],L=I[1],Q=n(!1),q=Q[0],H=Q[1],K=x[G],O=a((function(){return k?new Date(k):void 0}),[k]),U=a((function(){return i(O||T||b)}),[]),X=a((function(){return C?new Date(C):void 0}),[C]),Z=a((function(){return N?new Date(N):void 0}),[N]),$=a((function(){return _?new Date(_):void 0}),[_]),ee=f({month:X,defaultMonth:U,view:J,minDate:Z,maxDate:$,selected:O,offDays:Y,events:F,onChange:E,onMonthChange:A,onYearChange:V,setView:L}),te=ee.activeMonth,oe=ee.activeYear,ne=ee.weeks,ae=ee.months,re=ee.canSetPrevMonth,se=ee.canSetNextMonth,ie=ee.setMonthByDate,me=ee.setPrevMonth,le=ee.setNextMonth,ce=ee.setNextYear,de=ee.setPrevYear,pe=ee.highlighted,fe=ee.getDayProps,he=ee.getMonthProps,ue=ee.getRootProps,ve=r((function(e){L(J===e?"days":e)}),[J]),ge=a((function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())}),[]),we=a((function(){return!O||!m(O,ge)}),[O,ge]),xe=r((function(){L("days"),ie(i(ge)),null==E||E(ge.getTime())}),[E,ie,L,ge]),De=r((function(){"days"===J?me():de()}),[me,J,de]),ye=r((function(){"days"===J?le():ce()}),[le,J,ce]),Me=r((function(){ve("months")}),[ve]);return h((function(){H(!1)}),[J]),h((function(){var e=k&&i(k);e&&e.getTime()!==te.getTime()&&ie(e)}),[k]),t.createElement("div",e({},ue({ref:l}),{className:s(v,y,(D={},D[w]=6===ne.length,D)),"data-test-id":z}),t.createElement(d,{month:u(te,K,!1),onTodayClick:xe,showToday:we,year:oe.getFullYear().toString(),prevArrowVisible:re,nextArrowVisible:se,onPrevArrowClick:De,onNextArrowClick:ye,onMonthClick:Me,view:J,withShadow:q}),t.createElement("div",{className:g},"days"===J&&t.createElement(c,{locale:K,weeks:ne,activeMonth:te,selectedFrom:T,selectedTo:S,getDayProps:fe,highlighted:pe}),"months"===J&&t.createElement(p,{selectedMonth:te,selectedLocale:K,shortNames:W,months:ae,getMonthProps:he})))}));export{D as Calendar};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC, RefCallback } from 'react';
|
|
2
|
-
import { Day } from "../../typings";
|
|
3
|
-
type DaysTableProps = {
|
|
4
|
-
weeks?: Day[][];
|
|
5
|
-
activeMonth?: Date;
|
|
6
|
-
selectedFrom?: Date | number;
|
|
7
|
-
selectedTo?: Date | number;
|
|
8
|
-
highlighted?: Date | number;
|
|
9
|
-
getDayProps: (day: Day) => Record<string, unknown> & {
|
|
10
|
-
ref: RefCallback<HTMLButtonElement>;
|
|
11
|
-
};
|
|
12
|
-
locale: Locale;
|
|
13
|
-
};
|
|
14
|
-
declare const DaysTable: FC<DaysTableProps>;
|
|
15
|
-
export { DaysTableProps, DaysTable };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t,{useRef as d,useCallback as a}from"react";import{TransitionGroup as i,CSSTransition as n}from"react-transition-group";import r from"classnames";import{isSameDay as o,isWithinInterval as s,isLastDayOfMonth as l,isBefore as m,endOfDay as _,startOfMonth as u,isToday as c,isEqual as y}from"date-fns";import{c as x}from"../../../capitalize-2b9fa5e2.js";import{Button as f}from"../../../button/component.js";import{Flex as v}from"../../../flex/component.js";import{usePrevious as g}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as p}from"../../utils.js";import"../../../isSymbol-7d47cb2a.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var h={daysTable:"index-module_daysTable__rn902",daysBody:"index-module_daysBody__jxkTG",weekRow:"index-module_weekRow__RtmOy",daysRow:"index-module_daysRow__hDh-2",daysRowDay:"index-module_daysRowDay__B3Q4q",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",day:"index-module_day__BdXjf",range:"index-module_range__WYxl2",rangeStart:"index-module_rangeStart__N8rLo",rangeEnd:"index-module_rangeEnd__z7AV7",dayName:"index-module_dayName__A3Z6w",event:"index-module_event__BmkeM",prev:"index-module_prev__YZSqn",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",muted:"index-module_muted__h4D7T",disabled:"index-module_disabled__CNZL7",selected:"index-module_selected__BvMd5",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},E=function(E){var w=E.weeks,b=void 0===w?[]:w,D=E.activeMonth,k=void 0===D?new Date:D,R=E.highlighted,N=E.selectedFrom,j=E.selectedTo,A=E.getDayProps,T=E.locale,B=d(k);B.current=k;var L=g(k),S=L&&(k<L?"right":"left"),z=p(N,j,R),M=Array(7).fill(1).map((function(e,t){var d,a=t+1;return null===(d=null==T?void 0:T.localize)||void 0===d?void 0:d.day(7===a?0:a,{width:"short"})})),V=a((function(){return M.map((function(e){return t.createElement("div",{className:h.dayName,key:e},x(e))}))}),[M]);return t.createElement("div",{className:r(h.daysTable,S&&h[S])},t.createElement("div",{className:h.daysRow},t.createElement(v,null,V())),t.createElement(i,{component:null},t.createElement(n,{key:k.getTime(),timeout:300,classNames:{enter:h.daysEnter,enterActive:h.daysEnterActive,exit:h.daysExit,exitActive:h.daysExitActive}},t.createElement("div",{className:h.daysBody},b.map((function(d,a){return t.createElement(v,{className:h.weekRow,key:a},d.map((function(d,a){return t.createElement("div",{className:h.daysRowDay,key:d?d.date.getTime():a},d&&function(d){var a,i=d.selected||N&&o(d.date,N)||j&&o(d.date,j),n=!i&&z&&s(d.date,z),x=1===d.date.getDate(),v=l(d.date),g=x&&n&&z&&d.date>z.start,p=v&&n&&z&&d.date<z.end,E=z&&o(d.date,z.start),w=z&&o(d.date,z.end),b=A(d),D=m(_(new Date(d.date)),new Date);return t.createElement(f,e({},b,{ref:function(e){u(d.date).getTime()===B.current.getTime()&&b.ref(e)},type:"button",view:"ghost",size:"xs",disabled:d.disabled,className:r(h.day,(a={},a[h.selected]=i,a[h.range]=n,a[h.rangeStart]=E,a[h.rangeEnd]=w,a[h.transitLeft]=g,a[h.transitRight]=p,a[h.today]=c(d.date),a[h.firstDay]=x,a[h.lastDay]=v,a[h.event]=d.event,a[h.prev]=D,a[h.disabled]=d.disabled,a[h.muted]=d.muted||d.disabled,a[h.highlighted]=R&&y(d.date,R),a))}),d.date.getDate())}(d))})))}))))))};export{E as DaysTable};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{DaysTable}from"./component.js";import"tslib";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../capitalize-2b9fa5e2.js";import"../../../isSymbol-7d47cb2a.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./\u0441omponent";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Header}from"./сomponent.js";import"react";import"@alphakits/icons/dist/ChevronBackS";import"classnames";import"../../../capitalize-2b9fa5e2.js";import"../../../isSymbol-7d47cb2a.js";import"../../../button/component.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FC, MouseEvent } from 'react';
|
|
2
|
-
import { View } from "../../typings";
|
|
3
|
-
type HeaderProps = {
|
|
4
|
-
month?: string;
|
|
5
|
-
year?: string;
|
|
6
|
-
view: View;
|
|
7
|
-
withShadow?: boolean;
|
|
8
|
-
prevArrowVisible?: boolean;
|
|
9
|
-
nextArrowVisible?: boolean;
|
|
10
|
-
onPrevArrowClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
-
onNextArrowClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
-
onTodayClick: () => void;
|
|
13
|
-
showToday: boolean;
|
|
14
|
-
onMonthClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
15
|
-
};
|
|
16
|
-
declare const Header: FC<HeaderProps>;
|
|
17
|
-
export { HeaderProps, Header };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import o from"@alphakits/icons/dist/ChevronBackS";import t from"classnames";import{c as i}from"../../../capitalize-2b9fa5e2.js";import{Button as a}from"../../../button/component.js";import{SelectButton as l}from"../select-button/сomponent.js";import"../../../isSymbol-7d47cb2a.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var r="index-module_header__-VKks",n="index-module_withShadow__m2PIV",m="index-module_disabled__9Dr54",s="index-module_buttonContent__xnYVf",d="index-module_selectors__RA1Pm",c="index-module_today__PnSF2",_="index-module_arrow__tCsej",p=function(p){var u,v,h=p.month,w=p.year,b=p.view,x=p.withShadow,k=p.showToday,f=p.onTodayClick,C=p.prevArrowVisible,E=void 0===C||C,N=p.nextArrowVisible,y=void 0===N||N,j=p.onPrevArrowClick,A=p.onNextArrowClick,P=p.onMonthClick;return e.createElement("div",{className:t(r,(u={},u[n]=x,u)),"aria-live":"polite"},e.createElement(l,{view:"filled",className:t((v={},v[m]="months"===b,v)),onClick:"days"===b?P:void 0},e.createElement("span",{className:s},"days"===b?i(h)+" "+w:""+w)),e.createElement("div",{className:d},k&&e.createElement(a,{view:"outlined",className:c,onClick:f,size:"xs"},"today"),e.createElement(a,{view:"ghost",className:_,disabled:!E,onClick:j,"aria-label":"Prev month"},e.createElement(o,null)),e.createElement(a,{view:"ghost",className:_,onClick:A,disabled:!y,"aria-label":"Next month"},e.createElement(o,null))))};export{p as Header};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./\u0441omponent";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{MonthsTable}from"./сomponent.js";import"tslib";import"react";import"date-fns";import"../../../capitalize-2b9fa5e2.js";import"../../../isSymbol-7d47cb2a.js";import"../../../flex-columns/component.js";import"classnames";import"../../utils.js";import"../select-button/сomponent.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Month } from "../../typings";
|
|
3
|
-
type MonthsTableProps = {
|
|
4
|
-
months?: Month[];
|
|
5
|
-
selectedMonth?: Date;
|
|
6
|
-
getMonthProps: (day: Month) => Record<string, unknown>;
|
|
7
|
-
selectedLocale: Locale;
|
|
8
|
-
shortNames: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const MonthsTable: FC<MonthsTableProps>;
|
|
11
|
-
export { MonthsTableProps, MonthsTable };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as m}from"date-fns";import{c as n}from"../../../capitalize-2b9fa5e2.js";import{FlexColumns as s}from"../../../flex-columns/component.js";import{monthName as a}from"../../utils.js";import{SelectButton as i}from"../select-button/сomponent.js";import"../../../isSymbol-7d47cb2a.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_monthsTable__Eq4Jn",l="index-module_button__XgrJs",p=function(p){var d=p.selectedMonth,u=p.months,f=void 0===u?[]:u,b=p.getMonthProps,j=p.selectedLocale,h=p.shortNames,g=o((function(e){return d&&r(d,e.date)?"selected":m(e.date)?"outlined":"default"}),[d]);return t.createElement(s,{columns:3,gc:0,gr:8,className:c},f.map((function(o){return t.createElement(i,e({},b(o),{key:o.date.getMonth(),className:l,view:g(o)}),n(a(o.date,j,h)))})))};export{p as MonthsTable};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./\u0441omponent";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{SelectButton}from"./сomponent.js";import"tslib";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes } from "react";
|
|
4
|
-
type SelectButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
-
className?: string;
|
|
6
|
-
view?: 'default' | 'filled' | 'outlined' | 'selected';
|
|
7
|
-
};
|
|
8
|
-
declare const SelectButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
|
-
className?: string | undefined;
|
|
10
|
-
view?: "default" | "outlined" | "filled" | "selected" | undefined;
|
|
11
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
export { SelectButtonProps, SelectButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e,__assign as d}from"tslib";import o,{forwardRef as i}from"react";import t from"classnames";import{Button as l}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var s={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"},r=i((function(i,r){var m,a=i.className,n=i.children,u=i.disabled,b=i.view,c=void 0===b?"default":b,_=e(i,["className","children","disabled","view"]);return o.createElement(l,d({},_,{ref:r,view:"ghost",size:"xs",disabled:u,className:t(s.button,s[c],a,(m={},m[s.disabled]=u,m))}),n)}));export{r as SelectButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./\u0441omponent";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{YearsTable}from"./сomponent.js";import"tslib";import"react";import"date-fns";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,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
type YearsTableProps = {
|
|
3
|
-
years?: Date[];
|
|
4
|
-
selectedYear?: Date;
|
|
5
|
-
getYearProps: (year: Date) => Record<string, unknown>;
|
|
6
|
-
onScroll: (scrollTop: number) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const YearsTable: FC<YearsTableProps>;
|
|
9
|
-
export { YearsTableProps, YearsTable };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as c}from"../select-button/сomponent.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",s="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,g=u.onScroll,v=r(null),b=o((function(e){return p&&l(p,e)?"selected":a(e)?"outlined":"default"}),[p]),x=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.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,g(e.scrollTop)}}),[g,p]),t.createElement("div",{className:i,onScroll:x,ref:v},t.createElement("div",{className:s},f.map((function(r){return t.createElement(c,e({},_(r),{key:r.getFullYear(),view:b(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
|
package/dist/calendar/index.d.ts
DELETED
package/dist/calendar/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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";import"react";import"classnames";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"./components/days-table/component.js";import"react-transition-group";import"../capitalize-2b9fa5e2.js";import"../isSymbol-7d47cb2a.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"@alphakits/icons/dist/ChevronBackS";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"../flex-columns/component.js";
|