@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,159 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AriaAttributes, FC, FocusEvent, MouseEvent, ReactElement, ReactNode, RefAttributes, UIEvent } from 'react';
|
|
3
|
+
import { InputProps } from "../input/index";
|
|
4
|
+
import { PopoverProps } from "../popover/index";
|
|
5
|
+
type OptionShape = {
|
|
6
|
+
key: number | string;
|
|
7
|
+
content?: ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
value?: any;
|
|
11
|
+
};
|
|
12
|
+
type GroupShape = {
|
|
13
|
+
label?: string;
|
|
14
|
+
options: OptionShape[];
|
|
15
|
+
};
|
|
16
|
+
type BaseSelectProps = {
|
|
17
|
+
dataTestId?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
offset?: PopoverProps['offset'];
|
|
20
|
+
withArrow?: boolean;
|
|
21
|
+
popoverOuterClassname?: string;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
fieldClassName?: string;
|
|
24
|
+
optionsListClassName?: string;
|
|
25
|
+
optionClassName?: string;
|
|
26
|
+
options: Array<OptionShape | GroupShape>;
|
|
27
|
+
actionButton?: {
|
|
28
|
+
label: string;
|
|
29
|
+
onClick: () => void;
|
|
30
|
+
};
|
|
31
|
+
id?: string;
|
|
32
|
+
name?: string;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
defaultOpen?: boolean;
|
|
35
|
+
open?: boolean;
|
|
36
|
+
multiple?: boolean;
|
|
37
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'xs';
|
|
38
|
+
optionsSize?: 's' | 'm' | 'l' | 'xl' | 'xs';
|
|
39
|
+
block?: boolean;
|
|
40
|
+
optionsListWidth?: 'content' | 'field';
|
|
41
|
+
label?: ReactNode;
|
|
42
|
+
placeholder?: string;
|
|
43
|
+
error?: string | boolean;
|
|
44
|
+
hint?: string;
|
|
45
|
+
autocomplete?: boolean;
|
|
46
|
+
allowUnselect?: boolean;
|
|
47
|
+
closeOnSelect?: boolean;
|
|
48
|
+
circularNavigation?: boolean;
|
|
49
|
+
preventFlip?: boolean;
|
|
50
|
+
selected?: Array<string | number | OptionShape> | string | number | OptionShape | null;
|
|
51
|
+
nativeSelect?: boolean;
|
|
52
|
+
popoverPosition?: PopoverProps['position'];
|
|
53
|
+
visibleOptions?: number;
|
|
54
|
+
valueRenderer?: ({ selected, selectedMultiple, }: {
|
|
55
|
+
selected?: OptionShape;
|
|
56
|
+
selectedMultiple: OptionShape[];
|
|
57
|
+
}) => ReactNode;
|
|
58
|
+
Arrow?: FC<ArrowProps> | null | false;
|
|
59
|
+
Field?: FC<FieldProps>;
|
|
60
|
+
fieldProps?: Record<string, unknown>;
|
|
61
|
+
optionsListProps?: Record<string, unknown>;
|
|
62
|
+
optionProps?: Record<string, unknown>;
|
|
63
|
+
OptionsList?: FC<OptionsListProps>;
|
|
64
|
+
Optgroup?: FC<OptgroupProps>;
|
|
65
|
+
Option?: FC<OptionProps>;
|
|
66
|
+
onChange?: (payload: {
|
|
67
|
+
selected: OptionShape | null;
|
|
68
|
+
selectedMultiple: OptionShape[];
|
|
69
|
+
name?: string;
|
|
70
|
+
}) => void;
|
|
71
|
+
onOpen?: (payload: {
|
|
72
|
+
open?: boolean;
|
|
73
|
+
name?: string;
|
|
74
|
+
}) => void;
|
|
75
|
+
onBlur?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
|
|
76
|
+
onFocus?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
|
|
77
|
+
onScroll?: (event: UIEvent<HTMLDivElement>) => void;
|
|
78
|
+
updatePopover?: PopoverProps['update'];
|
|
79
|
+
zIndexPopover?: PopoverProps['zIndex'];
|
|
80
|
+
showEmptyOptionsList?: boolean;
|
|
81
|
+
};
|
|
82
|
+
type FieldProps = {
|
|
83
|
+
className?: string;
|
|
84
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'xs';
|
|
85
|
+
selected?: OptionShape;
|
|
86
|
+
selectedMultiple?: OptionShape[];
|
|
87
|
+
multiple?: boolean;
|
|
88
|
+
open?: boolean;
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
label?: ReactNode;
|
|
91
|
+
placeholder?: string;
|
|
92
|
+
error?: string | boolean;
|
|
93
|
+
success?: boolean;
|
|
94
|
+
hint?: string;
|
|
95
|
+
Arrow?: ReactElement | false | null;
|
|
96
|
+
valueRenderer?: BaseSelectProps['valueRenderer'];
|
|
97
|
+
innerProps: {
|
|
98
|
+
onBlur?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
|
|
99
|
+
onFocus?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
|
|
100
|
+
onClick?: (event: MouseEvent<HTMLDivElement | HTMLInputElement>) => void;
|
|
101
|
+
tabIndex: number;
|
|
102
|
+
id: string;
|
|
103
|
+
} & RefAttributes<HTMLDivElement | HTMLInputElement> & AriaAttributes;
|
|
104
|
+
dataTestId?: string;
|
|
105
|
+
};
|
|
106
|
+
type ArrowProps = {
|
|
107
|
+
className?: string;
|
|
108
|
+
open?: boolean;
|
|
109
|
+
};
|
|
110
|
+
type OptionsListProps = {
|
|
111
|
+
className?: string;
|
|
112
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'xs';
|
|
113
|
+
Option: (props: {
|
|
114
|
+
option: OptionShape;
|
|
115
|
+
index: number;
|
|
116
|
+
}) => JSX.Element | null;
|
|
117
|
+
options?: Array<OptionShape | GroupShape>;
|
|
118
|
+
flatOptions?: OptionShape[];
|
|
119
|
+
actionButton?: {
|
|
120
|
+
label: string;
|
|
121
|
+
onClick: () => void;
|
|
122
|
+
};
|
|
123
|
+
highlightedIndex?: number;
|
|
124
|
+
open?: boolean;
|
|
125
|
+
Optgroup?: BaseSelectProps['Optgroup'];
|
|
126
|
+
emptyPlaceholder?: string | ReactNode;
|
|
127
|
+
visibleOptions?: number;
|
|
128
|
+
onScroll?: (event: UIEvent<HTMLDivElement>) => void;
|
|
129
|
+
dataTestId?: string;
|
|
130
|
+
inputProps?: InputProps;
|
|
131
|
+
toggleMenu: () => void;
|
|
132
|
+
};
|
|
133
|
+
type OptgroupProps = {
|
|
134
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'xs';
|
|
135
|
+
label?: string;
|
|
136
|
+
children?: ReactNode;
|
|
137
|
+
};
|
|
138
|
+
type OptionProps = {
|
|
139
|
+
className?: string;
|
|
140
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'xs';
|
|
141
|
+
children?: ReactNode;
|
|
142
|
+
option: OptionShape;
|
|
143
|
+
index: number;
|
|
144
|
+
selected?: boolean;
|
|
145
|
+
highlighted?: boolean;
|
|
146
|
+
disabled?: boolean;
|
|
147
|
+
Checkmark?: FC<CheckmarkProps>;
|
|
148
|
+
innerProps?: {
|
|
149
|
+
id?: string;
|
|
150
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
151
|
+
onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
152
|
+
onMouseMove?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
153
|
+
role?: string;
|
|
154
|
+
} & RefAttributes<HTMLDivElement> & AriaAttributes;
|
|
155
|
+
};
|
|
156
|
+
type CheckmarkProps = {
|
|
157
|
+
selected?: boolean;
|
|
158
|
+
};
|
|
159
|
+
export { OptionShape, GroupShape, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings";
|
|
3
|
+
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
|
+
declare const isOptionShape: (item: OptionShape | string | number | null) => item is OptionShape;
|
|
5
|
+
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
6
|
+
selected?: OptionShape | undefined;
|
|
7
|
+
selectedMultiple?: OptionShape[] | undefined;
|
|
8
|
+
}) => ReactNode[] | null;
|
|
9
|
+
declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected']): {
|
|
10
|
+
flatOptions: OptionShape[];
|
|
11
|
+
selectedOptions: OptionShape[];
|
|
12
|
+
};
|
|
13
|
+
type useVisibleOptionsArgs = {
|
|
14
|
+
visibleOptions: number;
|
|
15
|
+
listRef: RefObject<HTMLElement>;
|
|
16
|
+
styleTargetRef?: RefObject<HTMLElement>;
|
|
17
|
+
open?: boolean;
|
|
18
|
+
invalidate?: unknown;
|
|
19
|
+
};
|
|
20
|
+
declare function useVisibleOptions({ visibleOptions, listRef, styleTargetRef, open, invalidate, }: useVisibleOptionsArgs): void;
|
|
21
|
+
declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
|
|
22
|
+
type OptionsType<T> = Array<{
|
|
23
|
+
key: T;
|
|
24
|
+
content: any;
|
|
25
|
+
}>;
|
|
26
|
+
type ConvertToOptions = <T extends {
|
|
27
|
+
id: string | number;
|
|
28
|
+
[field: string]: any;
|
|
29
|
+
}>(data: T[], field?: string) => Array<{
|
|
30
|
+
key: T['id'];
|
|
31
|
+
content: any;
|
|
32
|
+
}>;
|
|
33
|
+
declare const convertToOptions: ConvertToOptions;
|
|
34
|
+
export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, lastIndexOf, OptionsType, convertToOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isValidElement as t,cloneElement as n,useEffect as e}from"react";var r=function(t){return Object.prototype.hasOwnProperty.call(t,"options")},i=function(t){return!!t&&Object.prototype.hasOwnProperty.call(t,"key")},o=function(e){var r=e.selected,i=e.selectedMultiple||(r?[r]:[]);return i.length?i.reduce((function(e,r,o){return t(r.content)?e.push(n(r.content,{key:r.key})):e.push(r.content),o<i.length-1&&e.push(", "),e}),[]):null};function c(t,n){void 0===n&&(n=[]);var e=[],o=Array.isArray(n)?n:[n],c=o.filter(i),u=o.filter((function(t){return"string"==typeof t||"number"==typeof t})),l=function(t){e.push(t),function(t){return u.includes(t.key)}(t)&&c.push(t)};return t.forEach((function(t){r(t)?t.options.forEach(l):l(t)})),{flatOptions:e,selectedOptions:c}}function u(t){var n=t.visibleOptions,r=t.listRef,i=t.styleTargetRef,o=void 0===i?r:i,c=t.open,u=t.invalidate;e((function(){var t=r.current,e=o.current;if(c&&t&&e){var i=[].slice.call(t.children,0,n+1),u=i.slice(0,n).reduce((function(t,n){return t+n.clientHeight}),0);n<t.children.length&&(u+=Math.round(i[i.length-1].clientHeight/2)),e.style.height=u+"px"}}),[r,c,o,n,u])}var l=function(t,n){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return e;return-1},f=function(t,n){return t.map((function(t){return{key:t.id,content:n&&t[n]||t.title||t.name}}))};export{f as convertToOptions,r as isGroup,i as isOptionShape,o as joinOptions,l as lastIndexOf,c as processOptions,u as useVisibleOptions};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TFunction } from "../modal/index";
|
|
4
|
+
type Back = {
|
|
5
|
+
back?: () => void;
|
|
6
|
+
t: TFunction;
|
|
7
|
+
} | {
|
|
8
|
+
back?: never;
|
|
9
|
+
t?: never;
|
|
10
|
+
};
|
|
11
|
+
type SidepanelProps = {
|
|
12
|
+
title?: string;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
headerRightAddons?: React.ReactNode;
|
|
16
|
+
headerBottomAddons?: React.ReactNode;
|
|
17
|
+
bottomAddons?: React.ReactNode;
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
noCloser?: boolean;
|
|
20
|
+
noStickyFooter?: boolean;
|
|
21
|
+
noStickyHeader?: boolean;
|
|
22
|
+
} & Back;
|
|
23
|
+
declare const Sidepanel: React.FC<SidepanelProps>;
|
|
24
|
+
export { SidepanelProps, Sidepanel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e,__assign as t}from"tslib";import o from"react";import n from"classnames";import{FlexColumns as r}from"../flex-columns/component.js";import{SidepanelHeader as m}from"../sidepanel-header/component.js";import{Skeleton as i}from"../skeleton/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"../typography/title/component.js";var d="index-module_header__mPZ5T",a="index-module_loader__AwSf2",l="index-module_input__4qiE9",s="index-module_footer__gMIpz",c="index-module_noSticky__LgClY",p="index-module_content__3wIEH",u=function(u){var _,h=u.dataTestId,y=u.title,f=u.loading,g=u.headerRightAddons,b=u.subtitle,j=u.noCloser,x=u.headerBottomAddons,A=u.noStickyFooter,k=u.noStickyHeader,E=u.bottomAddons,v=u.children,S=e(u,["dataTestId","title","loading","headerRightAddons","subtitle","noCloser","headerBottomAddons","noStickyFooter","noStickyHeader","bottomAddons","children"]);return o.createElement(o.Fragment,null,f?o.createElement(r,{className:a,columns:1,gr:20},new Array(7).fill("").map((function(e,t){return o.createElement(i,{key:t,animate:!0,visible:!0,className:l})}))):o.createElement("div",null,o.createElement(m,t({title:y,className:k?void 0:d,subtitle:b,noCloser:j,dataTestId:h,rightAddons:g,bottomAddons:x},S)),o.createElement("div",{className:p},v),E&&o.createElement("div",{className:n(s,(_={},_[c]=A,_))},E)))};export{u as Sidepanel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Sidepanel}from"./component.js";import"tslib";import"react";import"classnames";import"../flex-columns/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TFunction } from "../modal/index";
|
|
4
|
+
type Back = {
|
|
5
|
+
back?: () => void;
|
|
6
|
+
t: TFunction;
|
|
7
|
+
} | {
|
|
8
|
+
back?: never;
|
|
9
|
+
t?: never;
|
|
10
|
+
};
|
|
11
|
+
type SidepanelHeaderProps = {
|
|
12
|
+
className?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
rightAddons?: React.ReactNode;
|
|
15
|
+
bottomAddons?: React.ReactNode;
|
|
16
|
+
noCloser?: boolean;
|
|
17
|
+
dataTestId?: string;
|
|
18
|
+
subtitle?: string;
|
|
19
|
+
} & Back;
|
|
20
|
+
declare const SidepanelHeader: React.FC<SidepanelHeaderProps>;
|
|
21
|
+
export { SidepanelHeaderProps, SidepanelHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import t from"classnames";import{BackButton as o}from"../back-button/component.js";import{FlexColumns as r}from"../flex-columns/component.js";import{Typography as m}from"../typography/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_wrapper__QxqDy",l="index-module_heading__XGDyC",a="index-module_title__jwxcv",n="index-module_bottomAddons__3yzd0",s="index-module_rightAddons__aZFaJ",c="index-module_noCloser__O7u0p",d=function(t){var o=t.title,i=t.subtitle;return e.createElement(r,{columns:1,gr:4,className:a},e.createElement(m.Title,{color:"primary",tag:"div",view:"small",weight:"bold"},o),i&&e.createElement(m.Text,{view:"title",weight:"regular",color:"secondary"},i))},p=function(r){var m,a=r.className,p=r.dataTestId,u=r.title,_=r.rightAddons,x=r.back,y=r.subtitle,b=r.t,g=r.bottomAddons,v=r.noCloser;return e.createElement("div",{"data-test-id":p,className:t(i,a)},(x||u||_)&&e.createElement("div",{className:l},x&&b&&e.createElement(o,{onClick:x,t:b}),!x&&u&&e.createElement(d,{title:u,subtitle:y}),_&&e.createElement("div",{className:t(s,(m={},m[c]=!!v,m))},_)),!!x&&u&&e.createElement(d,{title:u,subtitle:y}),!!g&&e.createElement("div",{className:n},g))};export{p as SidepanelHeader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";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"tslib";import"../typography/title/component.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type SkeletonProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
animate?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
dataTestId?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Skeleton: React.FC<SkeletonProps>;
|
|
11
|
+
export { SkeletonProps, Skeleton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import a from"classnames";var t="index-module_component__-McTc",m="index-module_animate__-bLCJ",n=function(n){var r,i=n.visible,c=n.animate,d=void 0===c||c,l=n.className,o=n.dataTestId,s=n.children;return i?e.createElement("div",{className:a(t,(r={},r[m]=d,r),l),"data-test-id":o},s):e.createElement(e.Fragment,null,s)};export{n as Skeleton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Skeleton}from"./component.js";import"react";import"classnames";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Direction } from "./utils";
|
|
4
|
+
interface ItemProps {
|
|
5
|
+
className: string;
|
|
6
|
+
horizontalSize: number;
|
|
7
|
+
verticalSize: number;
|
|
8
|
+
length: number;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
index: number;
|
|
11
|
+
direction?: Direction;
|
|
12
|
+
divider?: string | React.ReactNode;
|
|
13
|
+
wrap?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const Item: (props: ItemProps) => JSX.Element | null;
|
|
16
|
+
export { Item as default, ItemProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import t from"react";var r=function(r){var a=r.className,i=r.horizontalSize,l=r.verticalSize,n=r.length,m=r.direction,o=r.index,c=r.children,d=r.divider,s=r.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(d?2:1)}):g=e(e({},o<n&&{marginRight:i/(d?2:1)}),s&&{paddingBottom:l}),null==c?null:t.createElement(t.Fragment,null,t.createElement("div",{className:a,style:g},c),o<n-1&&d&&t.createElement("span",{style:e({width:"100%"},g)},d))};export{r as default};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { Direction, Align, Size } from "./utils";
|
|
5
|
+
type SpaceProps = {
|
|
6
|
+
align?: Align;
|
|
7
|
+
direction?: Direction;
|
|
8
|
+
size?: Size | [Size, Size];
|
|
9
|
+
className?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
dataTestId?: string;
|
|
12
|
+
wrap?: boolean;
|
|
13
|
+
divider?: string | ReactNode;
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export { SpaceProps, Space };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var l={spaceContainer:"index-module_spaceContainer__Onnxn",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__W7-9v",vertical:"index-module_vertical__EjIme",center:"index-module_center__VDiFi",start:"index-module_start__WKuO-",end:"index-module_end__FzVWP",spaceItemFullWidth:"index-module_spaceItemFullWidth__C58tA",spaceItem:"index-module_spaceItem__oUYtC"},o={s:12,m:16,l:20},d=i((function(i,d){var m,c,s=i.children,u=i.className,p=i.align,_=void 0===p?"start":p,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,W=i.wrap,C=void 0!==W&&W,F=i.divider,I=void 0!==F&&F,g=i.fullWidth,y=void 0!==g&&g,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?o[e]:e||0}(e)}))}),[x]),A=z[0],w=z[1],E=r.toArray(s);if(0===E.length)return null;var N=n(l.spaceContainer,l[f],((m={})[l[_]]=_,m[l.spaceContainerFullWidth]=y,m),u),j=n(l.spaceItem,((c={})[l.spaceItemFullWidth]=y,c)),O=E.map((function(e,i){return t.createElement(a,{className:j,key:j+"-"+i,direction:f,horizontalSize:A,verticalSize:w,length:E.length,index:i,wrap:C,divider:I},e)}));return t.createElement("div",{className:N,style:e({},C&&{flexWrap:"wrap",marginBottom:-w}),ref:d},O)}));export{d as Space};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Space}from"./component.js";import"tslib";import"react";import"classnames";import"./Item.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type Align = 'start' | 'end' | 'center';
|
|
4
|
+
type Direction = 'horizontal' | 'vertical';
|
|
5
|
+
type Size = 's' | 'm' | 'l' | number;
|
|
6
|
+
declare const SpaceContext: React.Context<{
|
|
7
|
+
length: number;
|
|
8
|
+
horizontalSize: number;
|
|
9
|
+
verticalSize: number;
|
|
10
|
+
}>;
|
|
11
|
+
export { Align, Direction, Size, SpaceContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";var t=e.createContext({length:0,horizontalSize:0,verticalSize:0});export{t as SpaceContext};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type SpinnerProps = {
|
|
3
|
+
visible?: boolean;
|
|
4
|
+
size?: 's' | 'm';
|
|
5
|
+
className?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
view?: 'default' | 'dark' | 'invert';
|
|
8
|
+
dataTestId?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
11
|
+
export { SpinnerProps, Spinner };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import r from"classnames";var d={s:"index-module_s__Xi4z8",m:"index-module_m__ZpMyr",spinnerWrapper:"index-module_spinnerWrapper__VE6YF",spinner:"index-module_spinner__QP-ux",rotate:"index-module_rotate__Qv2Ic",path:"index-module_path__SQCAA",dash:"index-module_dash__PurJL",default:"index-module_default__nPp3J",dark:"index-module_dark__QnOjR",invert:"index-module_invert__6bSD5"},i=function(i){var n=i.size,a=void 0===n?"s":n,t=i.id,_=i.view,s=void 0===_?"default":_,m=i.className,l=i.dataTestId;return e.createElement("div",{id:t,"data-test-id":l,className:r(d.spinnerWrapper,d[a],m)},e.createElement("svg",{className:r(d.spinner,d[a]),preserveAspectRatio:"xMinYMin meet",viewBox:"0 0 50 50"},e.createElement("circle",{className:r(d.path,d[s]),cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})))};export{i as Spinner};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Spinner}from"./component.js";import"react";import"classnames";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r,{useContext as e}from"react";import{stackingOrder as t,StackingContext as o}from"./context.js";var a=function(a){var i=a.children,m=a.value,n=void 0===m?t.DEFAULT:m,v=e(o),c=Math.max(n,v),l=c+1;return r.createElement(o.Provider,{value:l},i(c))};export{a as Stack};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const stackingOrder: {
|
|
3
|
+
FOCUSED: number;
|
|
4
|
+
DEFAULT: number;
|
|
5
|
+
POPOVER: number;
|
|
6
|
+
MODAL: number;
|
|
7
|
+
TOAST: number;
|
|
8
|
+
};
|
|
9
|
+
declare const StackingContext: import("react").Context<number>;
|
|
10
|
+
export { stackingOrder, StackingContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as r}from"react";var O={FOCUSED:2,DEFAULT:10,POPOVER:999999999,MODAL:9e4,TOAST:9999999999},A=r(O.DEFAULT);export{A as StackingContext,O as stackingOrder};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{StackingContext,stackingOrder}from"./context.js";export{Stack}from"./component.js";import"react";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type StatusProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
upperCase?: boolean;
|
|
5
|
+
view: 'contrast' | 'soft';
|
|
6
|
+
size?: 's' | 'm';
|
|
7
|
+
color: 'green' | 'orange' | 'red' | 'blue' | 'grey' | 'teal' | 'purple';
|
|
8
|
+
dataTestId?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Status: FC<StatusProps>;
|
|
11
|
+
export { StatusProps, Status };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import _ from"classnames";var o={component:"index-module_component__ow7Aw",upper_case:"index-module_upper_case__qm11K",m:"index-module_m__oJfGX",s:"index-module_s__caYRs",soft:"index-module_soft__BdoFt",green:"index-module_green__KVuFt",orange:"index-module_orange__RhVjy",red:"index-module_red__tLzKj",blue:"index-module_blue__Z-Cce",grey:"index-module_grey__0taE9",teal:"index-module_teal__wjFjP",purple:"index-module_purple__xJsve",contrast:"index-module_contrast__Y6fKB"},d=function(d){var n,r=d.className,t=d.view,a=d.color,m=d.children,l=d.dataTestId,s=d.upperCase,u=d.size,i=void 0===u?"s":u;return e.createElement("span",{className:_(o.component,o[a],o[i],o[t],r,(n={},n[o.upper_case]=s,n)),"data-test-id":l},m)};export{d as Status};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Status}from"./component.js";import"react";import"classnames";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type SteppedProgressBarView = 'positive' | 'negative' | 'attention' | 'link' | 'tertiary' | 'secondary' | 'primary' | 'accent';
|
|
3
|
+
type StepBarProps = {
|
|
4
|
+
isDone: boolean;
|
|
5
|
+
view?: SteppedProgressBarView;
|
|
6
|
+
};
|
|
7
|
+
declare const StepBar: FC<StepBarProps>;
|
|
8
|
+
export { SteppedProgressBarView, StepBar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{memo as i}from"react";import n from"classnames";var o={bar:"index-module_bar__SJw07",positive:"index-module_positive__BV6AP",attention:"index-module_attention__yBWsh",negative:"index-module_negative__JYzop",link:"index-module_link__3hGbM",tertiary:"index-module_tertiary__4dElX",secondary:"index-module_secondary__J2aM7",primary:"index-module_primary__9D-Nm",accent:"index-module_accent__NXKi2",component:"index-module_component__bJPtL",stepsContainer:"index-module_stepsContainer__o8tZI",description:"index-module_description__JRG5S"},t=i((function(i){var t=i.isDone,_=i.view,d=void 0===_?"positive":_;return e.createElement("span",{"data-test-id":t?"on":"off",className:n(o.bar,t&&o[d])})}));export{t as S,o as s};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"react";import"classnames";export{S as StepBar}from"../../step-bar-35269c17.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { SteppedProgressBarView } from "../step-bar-35269c17";
|
|
5
|
+
type SteppedProgressBarProps = {
|
|
6
|
+
maxStep: number;
|
|
7
|
+
description?: string;
|
|
8
|
+
step?: number;
|
|
9
|
+
view?: SteppedProgressBarView | SteppedProgressBarView[];
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const SteppedProgressBar: FC<SteppedProgressBarProps>;
|
|
14
|
+
declare const useSteps: ({ maxStep, initialStep, }: {
|
|
15
|
+
maxStep: number;
|
|
16
|
+
initialStep?: number | undefined;
|
|
17
|
+
}) => {
|
|
18
|
+
step: number;
|
|
19
|
+
setStep: React.Dispatch<React.SetStateAction<number>>;
|
|
20
|
+
nextStep: () => void;
|
|
21
|
+
prevStep: () => void;
|
|
22
|
+
};
|
|
23
|
+
export { SteppedProgressBarProps, SteppedProgressBar, useSteps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useState as e}from"react";import r from"classnames";import{Typography as o}from"../typography/component.js";import{s as a,S as i}from"../step-bar-35269c17.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n=function(e){var n=e.maxStep,p=e.description,s=e.step,m=void 0===s?0:s,c=e.view,l=e.dataTestId,d=e.className,y=n<=0?1:n,v="string"==typeof c;return t.createElement("div",{className:r(a.component,d),"data-test-id":l},t.createElement("div",{className:a.stepsContainer},Array.from(Array(y),(function(e,r){return t.createElement(i,{key:r,isDone:r<m,view:v?c:null==c?void 0:c[r]})}))),p&&t.createElement(o.Text,{color:"secondary",tag:"div",className:a.description,view:"primary-small"},p))},p=function(t){var r=t.maxStep,o=t.initialStep,a=e(void 0===o?1:o),i=a[0],n=a[1];return{step:i,setStep:n,nextStep:function(){n(i<r?i+1:r)},prevStep:function(){n(1===i?i:i-1)}}};export{n as SteppedProgressBar,p as useSteps};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface StickerProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
color: 'yellow' | 'green' | 'white' | 'gray';
|
|
6
|
+
text: string;
|
|
7
|
+
dataTestId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Sticker: React.FC<StickerProps>;
|
|
10
|
+
export { StickerProps, Sticker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import n from"classnames";var t={component:"index-module_component__yE8Fi",yellow:"index-module_yellow__e9HEA",white:"index-module_white__vq66g",green:"index-module_green__YtEMp",blue:"index-module_blue__B76YL",gray:"index-module_gray__nmJqT"},o=function(o){var l=o.className,m=o.text,a=o.color,_=o.dataTestId;return e.createElement("div",{className:n(t.component,t[a],l),"data-test-id":_},e.createElement("span",null,m))};export{o as Sticker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Sticker}from"./component.js";import"react";import"classnames";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { InputProps } from "../input/index";
|
|
4
|
+
type SuffixInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
|
|
5
|
+
value: number | undefined | null;
|
|
6
|
+
suffix?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
bold?: boolean;
|
|
9
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
10
|
+
value: number | undefined | null;
|
|
11
|
+
}) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const SuffixInput: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "onChange" | "value"> & {
|
|
14
|
+
value: number | undefined | null;
|
|
15
|
+
suffix?: string | undefined;
|
|
16
|
+
required?: boolean | undefined;
|
|
17
|
+
bold?: boolean | undefined;
|
|
18
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
19
|
+
value: number | undefined | null;
|
|
20
|
+
}) => void;
|
|
21
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
+
export { SuffixInputProps, SuffixInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e,__assign as o}from"tslib";import n,{forwardRef as r,useState as t,useEffect as a,useCallback as i,Fragment as l}from"react";import m from"classnames";import{Input as s}from"../input/component.js";import{withSuffix as u}from"../with-suffix/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var d={container:"index-module_container__tczFF",minorPartAndCurrency:"index-module_minorPartAndCurrency__0K7XF",suffixContainer:"index-module_suffixContainer__8eIxg",filled:"index-module_filled__nKrpt",input:"index-module_input__SIj3W"},c=u(s),f=r((function(r,s){var u,f=r.value,p=r.suffix,C=r.placeholder,v=void 0===C?"":C,x=r.bold,_=void 0===x||x,N=r.className,j=r.focusedClassName,b=r.required,g=r.dataTestId,h=r.clear,I=void 0!==h&&h,y=r.onChange,E=r.onClear,F=e(r,["value","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","onChange","onClear"]),q=t(f),A=q[0],P=q[1];a((function(){return A!==f?P(f):function(){}}),[f]);var T=i((function(e){P(void 0),E&&E(e)}),[E]);return n.createElement("div",{className:m(d.container,(u={},u[d.bold]=_,u[d.filled]=Boolean(A),u))},n.createElement(c,o({},F,{suffix:n.createElement(l,null,A,n.createElement("span",{className:d.minorPartAndCurrency}," ",p)),suffixContainerClassName:d.suffixContainer,clear:I,required:b,placeholder:v,value:Number.isInteger(f)?""+f:void 0,type:"number",className:m(d.component,N),focusedClassName:j,inputClassName:d.input,onChange:function(e){var o=e.target.value;y&&y(e,{value:Number.isInteger(+o)?+o:void 0})},onClear:T,dataTestId:g,ref:s})))}));export{f as SuffixInput};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{SuffixInput}from"./component.js";import"tslib";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface SuperListHeaderProps {
|
|
4
|
+
text: string;
|
|
5
|
+
handleClick?: () => void;
|
|
6
|
+
rightAddons?: React.ReactNode;
|
|
7
|
+
leftAddons?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const SuperListHeader: React.FC<SuperListHeaderProps>;
|
|
10
|
+
export { SuperListHeaderProps, SuperListHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",r="index-module_leftAddons__l-m-3",n="index-module_rightAddons__m-u4n",i=function(i){var a=i.text,l=i.leftAddons,d=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},a),l&&e.createElement("div",{className:r},l)),d&&e.createElement("div",{className:n},d))};export{i as SuperListHeader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface SuperListItemProps {
|
|
4
|
+
text: string;
|
|
5
|
+
rightAddons?: React.ReactNode | string;
|
|
6
|
+
leftAddons?: React.ReactNode;
|
|
7
|
+
color?: 'primary' | 'negative';
|
|
8
|
+
weight?: 'bold' | 'regular' | 'medium';
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
hint?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const SuperListItem: React.FC<SuperListItemProps>;
|
|
14
|
+
export { SuperListItemProps, SuperListItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import t from"classnames";import{Dot as o}from"../dot/component.js";import{Typography as r}from"../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 i="index-module_component__exnSI",m="index-module_leftSide__t9PJZ",a="index-module_content__Z53Wl",l="index-module_leftAddons__AhXk-",n="index-module_rightAddons__UjV9O",d=function(d){var c=d.text,s=d.rightAddons,p=d.leftAddons,v=d.color,g=void 0===v?"primary":v,_=d.disabled,x=d.className,y=d.weight,h=void 0===y?"regular":y,f=d.hint;return e.createElement("div",{className:t(i,x)},e.createElement("div",{className:m},p&&!_&&e.createElement("div",{className:l},p),_&&e.createElement("div",{className:l},e.createElement(o,{size:"sm",color:"grey"})),e.createElement("div",{className:a},e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},c),f&&e.createElement(r.Text,{color:"secondary",view:"caps",tag:"div"},f))),s&&e.createElement("div",{className:n},"string"==typeof s?e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},s):s))};export{d as SuperListItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{SuperListItem}from"./component.js";import"react";import"classnames";import"../dot/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";
|