@alphakits/ui 2.0.1 → 2.0.3
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/getDataTestId.d.ts +1 -1
- package/dist/amount/component.d.ts +2 -2
- package/dist/amount/index.module.css +1 -1
- package/dist/amount/index.module.css.js +6 -6
- package/dist/amount-input/component.d.ts +2 -2
- package/dist/amount-input/index.module.css +1 -1
- package/dist/amount-input/index.module.css.js +10 -10
- package/dist/avatar/component.d.ts +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/component.js.map +1 -1
- package/dist/avatar/index.module.css +1 -1
- package/dist/avatar/index.module.css.js +6 -6
- package/dist/back-button/component.d.ts +1 -1
- package/dist/back-button/index.module.css +1 -1
- package/dist/back-button/index.module.css.js +1 -1
- package/dist/badge/component.js +18 -18
- package/dist/badge/component.js.map +1 -1
- package/dist/badge/index.module.css +1 -1
- package/dist/badge/index.module.css.js +32 -32
- package/dist/base-card/index.module.css +1 -1
- package/dist/base-card/index.module.css.js +26 -26
- package/dist/bottom-sheet/component.d.ts +1 -1
- package/dist/bottom-sheet/index.module.css +1 -1
- package/dist/bottom-sheet/index.module.css.js +2 -2
- package/dist/box/component.d.ts +1 -1
- package/dist/box/index.module.css +1 -1
- package/dist/box/index.module.css.js +36 -36
- package/dist/button/component.d.ts +3 -3
- package/dist/button/index.module.css +1 -1
- package/dist/button/index.module.css.js +40 -40
- package/dist/button-arrow/component.d.ts +2 -2
- package/dist/button-arrow/component.js +31 -21
- package/dist/button-arrow/component.js.map +1 -1
- package/dist/button-arrow/index.module.css +1 -1
- package/dist/button-arrow/index.module.css.js +10 -10
- package/dist/calendar/component.d.ts +2 -2
- package/dist/calendar/component.js +55 -49
- package/dist/calendar/component.js.map +1 -1
- package/dist/calendar/components/days-table/component.d.ts +1 -1
- package/dist/calendar/components/days-table/component.js +10 -10
- package/dist/calendar/components/days-table/component.js.map +1 -1
- package/dist/calendar/components/days-table/index.module.css +1 -1
- package/dist/calendar/components/days-table/index.module.css.js +54 -54
- package/dist/calendar/components/header/index.module.css +1 -1
- package/dist/calendar/components/header/index.module.css.js +12 -12
- package/dist/calendar/components/header//321/201omponent.d.ts +1 -1
- package/dist/calendar/components/header//321/201omponent.js +23 -23
- package/dist/calendar/components/header//321/201omponent.js.map +1 -1
- package/dist/calendar/components/months-table/index.module.css +1 -1
- package/dist/calendar/components/months-table/index.module.css.js +4 -4
- package/dist/calendar/components/months-table//321/201omponent.d.ts +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js.map +1 -1
- package/dist/calendar/components/select-button/index.module.css +1 -1
- package/dist/calendar/components/select-button/index.module.css.js +8 -8
- package/dist/calendar/components/select-button//321/201omponent.d.ts +1 -1
- package/dist/calendar/components/years-table/index.module.css +1 -1
- package/dist/calendar/components/years-table/index.module.css.js +6 -6
- package/dist/calendar/components/years-table//321/201omponent.d.ts +1 -1
- package/dist/calendar/index.module.css +1 -1
- package/dist/calendar/index.module.css.js +5 -5
- package/dist/calendar/typings.d.ts +6 -6
- package/dist/calendar/use-calendar.d.ts +2 -2
- package/dist/calendar/use-period.d.ts +4 -4
- package/dist/calendar-input/component.d.ts +2 -2
- package/dist/calendar-input/index.module.css +1 -1
- package/dist/calendar-input/index.module.css.js +10 -10
- package/dist/card/images/index.module.css +1 -1
- package/dist/card/images/index.module.css.js +10 -10
- package/dist/card/index.module.css +1 -1
- package/dist/card/index.module.css.js +6 -6
- package/dist/cell/base/component.d.ts +1 -1
- package/dist/cell/base/index.module.css +1 -1
- package/dist/cell/base/index.module.css.js +10 -10
- package/dist/cell/pure/component.d.ts +2 -2
- package/dist/cell/pure/index.module.css +1 -1
- package/dist/cell/pure/index.module.css.js +22 -22
- package/dist/checkbox/component.d.ts +4 -4
- package/dist/checkbox/index.module.css +1 -1
- package/dist/checkbox/index.module.css.js +30 -30
- package/dist/checkbox-group/component.d.ts +2 -2
- package/dist/checkbox-group/index.module.css +1 -1
- package/dist/checkbox-group/index.module.css.js +1 -1
- package/dist/checkbox-lists/component.d.ts +2 -2
- package/dist/checkbox-lists/index.module.css +1 -1
- package/dist/checkbox-lists/index.module.css.js +6 -6
- package/dist/collapsable-row/component.d.ts +1 -1
- package/dist/collapsable-row/index.module.css +1 -1
- package/dist/collapsable-row/index.module.css.js +10 -10
- package/dist/collapse/component.d.ts +1 -1
- package/dist/collapse/component.js +4 -2
- package/dist/collapse/component.js.map +1 -1
- package/dist/collapse/index.module.css +1 -1
- package/dist/collapse/index.module.css.js +6 -6
- package/dist/copy-button/component.d.ts +1 -1
- package/dist/copy-button/index.module.css +1 -1
- package/dist/copy-button/index.module.css.js +2 -2
- package/dist/date-switcher/index.module.css +1 -1
- package/dist/date-switcher/index.module.css.js +8 -8
- package/dist/decorated-item/index.module.css +1 -1
- package/dist/decorated-item/index.module.css.js +2 -2
- package/dist/divider/component.d.ts +1 -1
- package/dist/divider/index.module.css +1 -1
- package/dist/divider/index.module.css.js +10 -10
- package/dist/dot/component.d.ts +1 -1
- package/dist/dot/index.module.css +1 -1
- package/dist/dot/index.module.css.js +20 -20
- package/dist/empty-page/component.d.ts +1 -1
- package/dist/empty-page/index.module.css +1 -1
- package/dist/empty-page/index.module.css.js +8 -8
- package/dist/flex/component.d.ts +1 -1
- package/dist/flex/index.module.css +1 -1
- package/dist/flex/index.module.css.js +38 -38
- package/dist/flex-columns/index.module.css +1 -1
- package/dist/flex-columns/index.module.css.js +2 -2
- package/dist/footer/index.module.css +1 -1
- package/dist/footer/index.module.css.js +20 -20
- package/dist/form/components/form-loading/index.module.css +1 -1
- package/dist/form/components/form-loading/index.module.css.js +10 -10
- package/dist/form/templates/base-form/index.d.ts +1 -1
- package/dist/form/templates/filters-form/index.d.ts +2 -2
- package/dist/form/templates/rest-form/form.d.ts +1 -1
- package/dist/form/templates/rest-form/index.d.ts +1 -1
- package/dist/form-control/component.d.ts +1 -1
- package/dist/form-control/index.module.css +1 -1
- package/dist/form-control/index.module.css.js +46 -46
- package/dist/grid/col/component.d.ts +1 -1
- package/dist/grid/col/index.module.css +1 -1
- package/dist/grid/col/index.module.css.js +512 -512
- package/dist/grid/gutters.module.css +1 -1
- package/dist/grid/gutters.module.css.js +45 -45
- package/dist/grid/row/component.d.ts +1 -1
- package/dist/grid/row/index.module.css +1 -1
- package/dist/grid/row/index.module.css.js +14 -14
- package/dist/grid/typings.d.ts +6 -6
- package/dist/header-search/component.d.ts +1 -1
- package/dist/header-search/index.module.css +1 -1
- package/dist/header-search/index.module.css.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.d.ts +1 -1
- package/dist/hooks/useFocus/index.d.ts +1 -1
- package/dist/icon-button/component.d.ts +1 -1
- package/dist/icon-button/index.module.css +1 -1
- package/dist/icon-button/index.module.css.js +12 -12
- package/dist/image/image-base.d.ts +1 -1
- package/dist/image/index.module.css +1 -1
- package/dist/image/index.module.css.js +69 -69
- package/dist/image/types.d.ts +3 -3
- package/dist/image/use-image-render-component.d.ts +1 -1
- package/dist/image-gallery/component.d.ts +1 -1
- package/dist/image-uploader/component.d.ts +1 -1
- package/dist/image-uploader/index.module.css +1 -1
- package/dist/image-uploader/index.module.css.js +6 -6
- package/dist/index.js +254 -248
- package/dist/index.js.map +1 -1
- package/dist/info-block-header/index.module.css +1 -1
- package/dist/info-block-header/index.module.css.js +4 -4
- package/dist/info-block-item/index.module.css +1 -1
- package/dist/info-block-item/index.module.css.js +10 -10
- package/dist/info-block-wrapper/index.module.css +1 -1
- package/dist/info-block-wrapper/index.module.css.js +6 -6
- package/dist/input/component.d.ts +2 -2
- package/dist/input/index.module.css +1 -1
- package/dist/input/index.module.css.js +10 -10
- package/dist/input-autocomplete/autocomplete-field/index.d.ts +2 -2
- package/dist/input-autocomplete/autocomplete-field/index.js.map +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.module.css +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.module.css.js +1 -1
- package/dist/input-autocomplete/component.d.ts +3 -3
- package/dist/input-ghost/index.module.css +1 -1
- package/dist/input-ghost/index.module.css.js +12 -12
- package/dist/link/component.d.ts +2 -2
- package/dist/link/index.module.css +1 -1
- package/dist/link/index.module.css.js +23 -23
- package/dist/list-allert/component.d.ts +1 -1
- package/dist/list-allert/index.module.css +1 -1
- package/dist/list-allert/index.module.css.js +5 -5
- package/dist/loader/component.d.ts +1 -1
- package/dist/loader/index.module.css +1 -1
- package/dist/loader/index.module.css.js +1 -1
- package/dist/masked-input/component.d.ts +2 -2
- package/dist/masked-input/index.module.css +1 -1
- package/dist/masked-input/index.module.css.js +4 -4
- package/dist/menu/component.d.ts +2 -2
- package/dist/menu/components/content-header/index.d.ts +1 -1
- package/dist/menu/components/content-header/index.module.css +1 -1
- package/dist/menu/components/content-header/index.module.css.js +1 -1
- package/dist/menu/components/menu-avatar/index.d.ts +1 -1
- package/dist/menu/components/menu-avatar/index.module.css +1 -1
- package/dist/menu/components/menu-avatar/index.module.css.js +2 -2
- package/dist/menu/components/menu-back-button/index.d.ts +1 -1
- package/dist/menu/components/menu-back-button/index.module.css +1 -1
- package/dist/menu/components/menu-back-button/index.module.css.js +6 -6
- package/dist/menu/components/menu-button/index.module.css +1 -1
- package/dist/menu/components/menu-button/index.module.css.js +13 -13
- package/dist/menu/components/menu-buttons-list/index.d.ts +1 -1
- package/dist/menu/components/menu-buttons-list/index.module.css +1 -1
- package/dist/menu/components/menu-buttons-list/index.module.css.js +1 -1
- package/dist/menu/components/user-button/index.d.ts +1 -1
- package/dist/menu/components/user-button/index.module.css +1 -1
- package/dist/menu/components/user-button/index.module.css.js +4 -4
- package/dist/menu/index.module.css +1 -1
- package/dist/menu/index.module.css.js +12 -12
- package/dist/message/component.d.ts +1 -1
- package/dist/message/index.module.css +1 -1
- package/dist/message/index.module.css.js +6 -6
- package/dist/modal/components/modals/index.d.ts +1 -1
- package/dist/modal/components/modals/index.module.css +1 -1
- package/dist/modal/components/modals/index.module.css.js +16 -16
- package/dist/modal/components/modals/modal.d.ts +1 -1
- package/dist/modal/hooks/use-modal.d.ts +1 -1
- package/dist/modal/types.d.ts +6 -6
- package/dist/mq/component.d.ts +1 -1
- package/dist/mq/mq-list.d.ts +19 -0
- package/dist/mq/{mq.json.js → mq-list.js} +1 -1
- package/dist/mq/mq-list.js.map +1 -0
- package/dist/mq/utils.d.ts +2 -2
- package/dist/mq/utils.js +22 -15
- package/dist/mq/utils.js.map +1 -1
- package/dist/notification/component.d.ts +4 -4
- package/dist/notification/index.module.css +1 -1
- package/dist/notification/index.module.css.js +7 -7
- package/dist/page-container/component.d.ts +2 -2
- package/dist/page-container/index.module.css +1 -1
- package/dist/page-container/index.module.css.js +6 -6
- package/dist/page-loading/index.module.css +1 -1
- package/dist/page-loading/index.module.css.js +1 -1
- package/dist/page-with-controls/component.d.ts +3 -3
- package/dist/picker-button/common/labeled-button/index.d.ts +1 -1
- package/dist/picker-button/common/labeled-button/index.module.css +1 -1
- package/dist/picker-button/common/labeled-button/index.module.css.js +4 -4
- package/dist/picker-button/component.d.ts +3 -3
- package/dist/picker-button/field/Component.d.ts +2 -2
- package/dist/picker-button/field/Component.js.map +1 -1
- package/dist/picker-button/field/index.module.css +1 -1
- package/dist/picker-button/field/index.module.css.js +1 -1
- package/dist/picker-button/index.module.css +1 -1
- package/dist/picker-button/index.module.css.js +2 -2
- package/dist/popover/component.d.ts +5 -5
- package/dist/popover/component.js +108 -73
- package/dist/popover/component.js.map +1 -1
- package/dist/popover/index.module.css +1 -1
- package/dist/popover/index.module.css.js +6 -6
- package/dist/portal/component.d.ts +1 -1
- package/dist/progress-bar/component.d.ts +1 -1
- package/dist/progress-bar/index.module.css +1 -1
- package/dist/progress-bar/index.module.css.js +24 -24
- package/dist/progress-index/component.d.ts +1 -1
- package/dist/progress-index/index.module.css +1 -1
- package/dist/progress-index/index.module.css.js +1 -1
- package/dist/radio/component.d.ts +4 -4
- package/dist/radio/index.module.css +1 -1
- package/dist/radio/index.module.css.js +28 -28
- package/dist/radio-group/component.d.ts +1 -1
- package/dist/radio-group/index.module.css +1 -1
- package/dist/radio-group/index.module.css.js +14 -14
- package/dist/radio-groups/component.d.ts +2 -2
- package/dist/radio-groups/index.module.css +1 -1
- package/dist/radio-groups/index.module.css.js +6 -6
- package/dist/section-wrapper/index.module.css +1 -1
- package/dist/section-wrapper/index.module.css.js +4 -4
- package/dist/select/component.d.ts +2 -2
- package/dist/select/component.js +11 -11
- package/dist/select/component.js.map +1 -1
- package/dist/select/components/arrow/index.module.css +1 -1
- package/dist/select/components/arrow/index.module.css.js +4 -4
- package/dist/select/components/base-select/index.module.css +1 -1
- package/dist/select/components/base-select/index.module.css.js +5 -5
- package/dist/select/components/checkmark/index.module.css +1 -1
- package/dist/select/components/checkmark/index.module.css.js +2 -2
- package/dist/select/components/field/component.d.ts +2 -2
- package/dist/select/components/field/component.js +14 -14
- package/dist/select/components/field/component.js.map +1 -1
- package/dist/select/components/field/index.js +2 -2
- package/dist/select/components/field/index.module.css +1 -1
- package/dist/select/components/field/index.module.css.js +14 -14
- package/dist/select/components/index.js +8 -8
- package/dist/select/components/native-select/component.d.ts +1 -1
- package/dist/select/components/optgroup/index.module.css +1 -1
- package/dist/select/components/optgroup/index.module.css.js +6 -6
- package/dist/select/components/option/index.module.css +1 -1
- package/dist/select/components/option/index.module.css.js +18 -18
- package/dist/select/components/options-list/index.module.css +1 -1
- package/dist/select/components/options-list/index.module.css.js +8 -8
- package/dist/select/components/select-search/index.d.ts +3 -3
- package/dist/select/components/select-search/index.js +58 -73
- package/dist/select/components/select-search/index.js.map +1 -1
- package/dist/select/components/select-search/index.module.css +1 -1
- package/dist/select/components/select-search/index.module.css.js +2 -2
- package/dist/select/components/virtual-options-list/component.d.ts +1 -1
- package/dist/select/components/virtual-options-list/index.module.css +1 -1
- package/dist/select/components/virtual-options-list/index.module.css.js +8 -8
- package/dist/select/index.js +10 -10
- package/dist/select/presets/use-lazy-loading/index.d.ts +2 -2
- package/dist/select/presets/use-select-with-loading/hook.d.ts +1 -1
- package/dist/select/presets/use-select-with-loading/index.module.css +1 -1
- package/dist/select/presets/use-select-with-loading/index.module.css.js +2 -2
- package/dist/select/typings.d.ts +10 -10
- package/dist/select/utils.d.ts +5 -5
- package/dist/sidepanel/component.d.ts +2 -2
- package/dist/sidepanel/index.module.css +1 -1
- package/dist/sidepanel/index.module.css.js +10 -10
- package/dist/sidepanel-header/component.d.ts +2 -2
- package/dist/sidepanel-header/index.module.css +1 -1
- package/dist/sidepanel-header/index.module.css.js +12 -12
- package/dist/skeleton/component.d.ts +1 -1
- package/dist/skeleton/index.module.css +1 -1
- package/dist/skeleton/index.module.css.js +3 -3
- package/dist/space/component.d.ts +1 -1
- package/dist/space/index.module.css +1 -1
- package/dist/space/index.module.css.js +10 -10
- package/dist/space/utils.d.ts +3 -3
- package/dist/spinner/component.d.ts +1 -1
- package/dist/spinner/index.module.css +1 -1
- package/dist/spinner/index.module.css.js +21 -21
- package/dist/stack/component.d.ts +1 -1
- package/dist/status/component.d.ts +1 -1
- package/dist/status/index.module.css +1 -1
- package/dist/status/index.module.css.js +26 -26
- package/dist/stepped-progress-bar/components/step-bar.d.ts +2 -2
- package/dist/stepped-progress-bar/index.d.ts +2 -2
- package/dist/stepped-progress-bar/index.module.css +1 -1
- package/dist/stepped-progress-bar/index.module.css.js +24 -24
- package/dist/sticker/index.module.css +1 -1
- package/dist/sticker/index.module.css.js +6 -6
- package/dist/suffix-input/component.d.ts +2 -2
- package/dist/suffix-input/index.module.css +1 -1
- package/dist/suffix-input/index.module.css.js +10 -10
- package/dist/super-list-header/index.module.css +1 -1
- package/dist/super-list-header/index.module.css.js +10 -10
- package/dist/super-list-item/index.module.css +1 -1
- package/dist/super-list-item/index.module.css.js +9 -9
- package/dist/switch/component.d.ts +3 -3
- package/dist/switch/index.module.css +1 -1
- package/dist/switch/index.module.css.js +23 -23
- package/dist/table/columns.d.ts +1 -1
- package/dist/table/components/cell/component.d.ts +1 -1
- package/dist/table/components/cell/index.module.css +1 -1
- package/dist/table/components/cell/index.module.css.js +10 -10
- package/dist/table/components/cells/index.d.ts +2 -3
- package/dist/table/components/cells/index.js +45 -49
- package/dist/table/components/cells/index.js.map +1 -1
- package/dist/table/components/cells/index.module.css +1 -1
- package/dist/table/components/cells/index.module.css.js +18 -18
- package/dist/table/components/empty-list/index.module.css +1 -1
- package/dist/table/components/empty-list/index.module.css.js +2 -2
- package/dist/table/components/error/index.module.css +1 -1
- package/dist/table/components/error/index.module.css.js +2 -2
- package/dist/table/components/loading/index.d.ts +1 -1
- package/dist/table/components/loading/index.module.css +1 -1
- package/dist/table/components/loading/index.module.css.js +4 -4
- package/dist/table/components/pagination/index.d.ts +1 -1
- package/dist/table/components/pagination/index.module.css +1 -1
- package/dist/table/components/pagination/index.module.css.js +18 -18
- package/dist/table/components/table-header/index.d.ts +1 -1
- package/dist/table/components/table-header/index.module.css +1 -1
- package/dist/table/components/table-header/index.module.css.js +11 -11
- package/dist/table/hooks/use-table-data.d.ts +3 -3
- package/dist/table/index.module.css +1 -1
- package/dist/table/index.module.css.js +8 -8
- package/dist/table/table.d.ts +5 -10
- package/dist/table/table.js +110 -214
- package/dist/table/table.js.map +1 -1
- package/dist/table/types.d.ts +10 -10
- package/dist/table/utils/get-tags.d.ts +1 -1
- package/dist/table/utils/prepare-rows.d.ts +1 -1
- package/dist/table-status/component.d.ts +1 -1
- package/dist/table-status/index.module.css +1 -1
- package/dist/table-status/index.module.css.js +4 -4
- package/dist/tag/component.d.ts +1 -1
- package/dist/tag/index.module.css +1 -1
- package/dist/tag/index.module.css.js +15 -15
- package/dist/tags-list/component.d.ts +1 -1
- package/dist/tags-list/index.module.css +1 -1
- package/dist/tags-list/index.module.css.js +1 -1
- package/dist/textarea/component.d.ts +3 -3
- package/dist/textarea/component.js +63 -62
- package/dist/textarea/component.js.map +1 -1
- package/dist/textarea/index.module.css +1 -1
- package/dist/textarea/index.module.css.js +14 -14
- package/dist/theme-provider/component.d.ts +1 -1
- package/dist/theme-provider/default-themes.d.ts +3 -3
- package/dist/toast/component.d.ts +1 -1
- package/dist/toast/index.module.css +1 -1
- package/dist/toast/index.module.css.js +15 -15
- package/dist/toast-notifier/component.d.ts +1 -1
- package/dist/toast-notifier/index.module.css +1 -1
- package/dist/toast-notifier/index.module.css.js +10 -10
- package/dist/toast-plate/component.d.ts +2 -2
- package/dist/toast-plate/index.module.css +1 -1
- package/dist/toast-plate/index.module.css.js +29 -29
- package/dist/tooltip/component.d.ts +2 -2
- package/dist/tooltip/index.module.css +1 -1
- package/dist/tooltip/index.module.css.js +6 -6
- package/dist/typings/api.d.ts +7 -7
- package/dist/typography/colors.d.ts +1 -1
- package/dist/typography/colors.module.css +1 -1
- package/dist/typography/colors.module.css.js +23 -23
- package/dist/typography/text/component.d.ts +1 -1
- package/dist/typography/text/index.module.css +1 -1
- package/dist/typography/text/index.module.css.js +22 -22
- package/dist/typography/title/common.module.css +1 -1
- package/dist/typography/title/common.module.css.js +4 -4
- package/dist/typography/title/component.d.ts +2 -2
- package/dist/typography/title/index.module.css +1 -1
- package/dist/typography/title/index.module.css.js +17 -17
- package/dist/utils/data/currency-codes.d.ts +1 -1
- package/dist/utils/date/index.d.ts +1 -1
- package/dist/utils/debounce.d.ts +8 -0
- package/dist/utils/debounce.js +15 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/format-amount/util.d.ts +1 -1
- package/dist/utils/format-date/index.d.ts +1 -1
- package/dist/utils/get-currency-symbol/util.d.ts +2 -1
- package/dist/utils/get-service-error/index.d.ts +2 -2
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +43 -37
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/safe-stringify.d.ts +2 -0
- package/dist/utils/safe-stringify.js +20 -0
- package/dist/utils/safe-stringify.js.map +1 -0
- package/dist/utils/string.d.ts +2 -0
- package/dist/utils/string.js +7 -0
- package/dist/utils/string.js.map +1 -0
- package/dist/welcome-layout/component.d.ts +1 -1
- package/dist/welcome-layout/index.module.css +1 -1
- package/dist/welcome-layout/index.module.css.js +13 -13
- package/dist/with-suffix/component.d.ts +2 -2
- package/dist/with-suffix/index.module.css +1 -1
- package/dist/with-suffix/index.module.css.js +14 -14
- package/package.json +5 -11
- package/dist/checkbox-lists/mock.d.ts +0 -81
- package/dist/checkbox-lists/mock.js +0 -208
- package/dist/checkbox-lists/mock.js.map +0 -1
- package/dist/collapsable-row/fixtures.d.ts +0 -99
- package/dist/collapsable-row/fixtures.js +0 -182
- package/dist/collapsable-row/fixtures.js.map +0 -1
- package/dist/mq/mq.json.js.map +0 -1
- package/dist/radio-groups/mock.d.ts +0 -9
- package/dist/radio-groups/mock.js +0 -83
- package/dist/radio-groups/mock.js.map +0 -1
|
@@ -1,110 +1,95 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as v, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import a, { useEffect as P, useState as h, useRef as b, useCallback as m, useMemo as j } from "react";
|
|
3
|
+
import E from "@alphakits/icons/dist/SearchS";
|
|
4
4
|
import { useClickOutside as I } from "../../../hooks/useClickOutside/index.js";
|
|
5
5
|
import "../../../toast-notifier/component.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
o.add(e);
|
|
21
|
-
}
|
|
22
|
-
return e;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
const D = d.forwardRef(
|
|
27
|
-
({ inputProps: t, ...o }, s) => {
|
|
28
|
-
const n = d.useRef(null), r = d.useRef(null);
|
|
29
|
-
return g(() => {
|
|
30
|
-
var e;
|
|
31
|
-
(e = n.current) == null || e.focus();
|
|
32
|
-
}, []), /* @__PURE__ */ E("div", { ref: s, children: [
|
|
33
|
-
/* @__PURE__ */ f("div", { style: { padding: "5px 20px" }, children: /* @__PURE__ */ f(
|
|
34
|
-
_,
|
|
6
|
+
import { safeStringify as z } from "../../../utils/safe-stringify.js";
|
|
7
|
+
import { Input as A } from "../../../input/component.js";
|
|
8
|
+
import { BaseSelect as B } from "../base-select/component.js";
|
|
9
|
+
import { OptionsList as F } from "../options-list/component.js";
|
|
10
|
+
import M from "./index.module.css.js";
|
|
11
|
+
const N = a.forwardRef(
|
|
12
|
+
({ inputProps: t, ...i }, e) => {
|
|
13
|
+
const n = a.useRef(null), f = a.useRef(null);
|
|
14
|
+
return P(() => {
|
|
15
|
+
var c;
|
|
16
|
+
(c = n.current) == null || c.focus();
|
|
17
|
+
}, []), /* @__PURE__ */ v("div", { ref: e, children: [
|
|
18
|
+
/* @__PURE__ */ o("div", { style: { padding: "5px 20px" }, children: /* @__PURE__ */ o(
|
|
19
|
+
A,
|
|
35
20
|
{
|
|
36
21
|
size: "s",
|
|
37
|
-
leftAddons: /* @__PURE__ */
|
|
22
|
+
leftAddons: /* @__PURE__ */ o(E, {}),
|
|
38
23
|
...t,
|
|
39
|
-
fieldClassName:
|
|
24
|
+
fieldClassName: M.innerInput,
|
|
40
25
|
block: !0,
|
|
41
26
|
ref: n
|
|
42
27
|
}
|
|
43
28
|
) }),
|
|
44
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ o(F, { ...i, ref: f })
|
|
45
30
|
] });
|
|
46
31
|
}
|
|
47
|
-
),
|
|
32
|
+
), V = ({
|
|
48
33
|
options: t,
|
|
49
|
-
searchType:
|
|
50
|
-
onChange:
|
|
34
|
+
searchType: i = "text",
|
|
35
|
+
onChange: e,
|
|
51
36
|
selected: n = "",
|
|
52
|
-
...
|
|
37
|
+
...f
|
|
53
38
|
}) => {
|
|
54
|
-
const [
|
|
55
|
-
(
|
|
56
|
-
S(
|
|
39
|
+
const [c, l] = h(t), [d, S] = h(""), x = b(null), L = m(
|
|
40
|
+
(O, { value: u }) => {
|
|
41
|
+
S(u);
|
|
57
42
|
try {
|
|
58
|
-
if (!
|
|
59
|
-
const
|
|
60
|
-
(
|
|
43
|
+
if (!u) return l(t);
|
|
44
|
+
const R = String(u).toLowerCase(), w = t.reduce(
|
|
45
|
+
(p, s) => p.concat(s.options ? s.options : [s]),
|
|
61
46
|
[]
|
|
62
|
-
)
|
|
63
|
-
return
|
|
64
|
-
} catch (
|
|
65
|
-
return
|
|
47
|
+
).filter(({ key: p, value: s, content: k }) => z({ key: p, value: s, content: k }).toLowerCase().includes(R));
|
|
48
|
+
return l(w);
|
|
49
|
+
} catch (R) {
|
|
50
|
+
return [];
|
|
66
51
|
}
|
|
67
52
|
},
|
|
68
53
|
[t]
|
|
69
|
-
),
|
|
70
|
-
S(""),
|
|
71
|
-
}, [t]),
|
|
72
|
-
(
|
|
73
|
-
|
|
54
|
+
), r = m(() => {
|
|
55
|
+
S(""), l(t);
|
|
56
|
+
}, [t]), y = m(
|
|
57
|
+
(O) => {
|
|
58
|
+
e == null || e(O), r();
|
|
74
59
|
},
|
|
75
|
-
[
|
|
60
|
+
[e, r]
|
|
76
61
|
);
|
|
77
|
-
I(
|
|
78
|
-
const
|
|
62
|
+
I(x, r);
|
|
63
|
+
const C = j(
|
|
79
64
|
() => ({
|
|
80
|
-
ref:
|
|
65
|
+
ref: x,
|
|
81
66
|
inputProps: {
|
|
82
|
-
onChange:
|
|
83
|
-
value:
|
|
84
|
-
type:
|
|
67
|
+
onChange: L,
|
|
68
|
+
value: d,
|
|
69
|
+
type: i,
|
|
85
70
|
clear: !0,
|
|
86
|
-
onClear:
|
|
71
|
+
onClear: r
|
|
87
72
|
}
|
|
88
73
|
}),
|
|
89
|
-
[
|
|
74
|
+
[L, d, i, r]
|
|
90
75
|
);
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
-
|
|
76
|
+
return /* @__PURE__ */ o(
|
|
77
|
+
B,
|
|
93
78
|
{
|
|
94
|
-
...
|
|
79
|
+
...f,
|
|
95
80
|
selected: n,
|
|
96
|
-
onChange:
|
|
81
|
+
onChange: y,
|
|
97
82
|
showEmptyOptionsList: !0,
|
|
98
|
-
OptionsList:
|
|
99
|
-
filteredOptions:
|
|
83
|
+
OptionsList: N,
|
|
84
|
+
filteredOptions: c,
|
|
100
85
|
options: t,
|
|
101
|
-
optionsListProps:
|
|
86
|
+
optionsListProps: C
|
|
102
87
|
}
|
|
103
88
|
);
|
|
104
89
|
};
|
|
105
90
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
91
|
+
N as CustomOptionsList,
|
|
92
|
+
V as SelectSearch,
|
|
93
|
+
z as safeStringify
|
|
109
94
|
};
|
|
110
95
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/select/components/select-search/index.tsx"],"sourcesContent":["import React, {\n useCallback, useEffect, useMemo, useRef, useState,\n} from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/select/components/select-search/index.tsx"],"sourcesContent":["import React, {\n useCallback, useEffect, useMemo, useRef, useState,\n} from 'react';\nimport SearchS from '@alphakits/icons/dist/SearchS';\nimport { useClickOutside } from 'src/hooks';\nimport { safeStringify } from 'src/utils/safe-stringify';\n\nexport { safeStringify };\nimport { Input } from 'src/input';\nimport { SelectProps } from 'src/select/component';\nimport { OptionsListProps } from 'src/select/typings';\n\nimport { BaseSelect } from '../base-select';\nimport { OptionsList } from '../options-list';\n\nimport styles from './index.module.css';\n\nexport const CustomOptionsList = React.forwardRef<HTMLDivElement, OptionsListProps>(\n ({ inputProps, ...props }, outerRef) => {\n const inputRef = React.useRef<HTMLInputElement>(null);\n const innerListRef = React.useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n inputRef.current?.focus();\n }, []);\n\n return (\n <div ref={ outerRef }>\n <div style={ { padding: '5px 20px' } }>\n <Input\n size=\"s\"\n leftAddons={ <SearchS /> }\n { ...inputProps }\n fieldClassName={ styles.innerInput }\n block={ true }\n ref={ inputRef }\n />\n </div>\n { /* отдельный ref для внутреннего списка — не делим один ref на два DOM-узла */ }\n <OptionsList { ...props } ref={ innerListRef } />\n </div>\n );\n },\n);\n\ntype SelectSearchProps = Omit<SelectProps, 'options'> & {\n options: any;\n searchType?: 'text' | 'number';\n};\n\nexport const SelectSearch = ({\n options,\n searchType = 'text',\n onChange,\n selected = '',\n ...restProps\n}: SelectSearchProps) => {\n const [filteredOptions, setFilteredOptions] = useState(options);\n const [searchText, setSearchText] = useState('');\n const listRef = useRef<HTMLDivElement>(null);\n\n const searchOptions = useCallback(\n (_e: any, { value }: { value: string }) => {\n setSearchText(value);\n\n try {\n if (!value) return setFilteredOptions(options);\n\n const text = String(value).toLowerCase();\n const data = options.reduce(\n (acc: any[], o: any) => acc.concat(o.options ? o.options : [o]),\n [],\n );\n\n const res = data.filter(({ key, value: val, content }: any) =>\n safeStringify({ key, value: val, content }).toLowerCase().includes(text));\n\n return setFilteredOptions(res);\n } catch (error) {\n return [];\n }\n },\n [options],\n );\n\n const handleClear = useCallback(() => {\n setSearchText('');\n setFilteredOptions(options);\n }, [options]);\n\n const handleSelect = useCallback(\n (payload: any) => {\n onChange?.(payload);\n handleClear();\n },\n [onChange, handleClear],\n );\n\n useClickOutside(listRef, handleClear);\n\n const memoOptionsListProps = useMemo(\n () => ({\n ref: listRef,\n inputProps: {\n onChange: searchOptions,\n value: searchText,\n type: searchType,\n clear: true,\n onClear: handleClear,\n },\n }),\n [searchOptions, searchText, searchType, handleClear],\n );\n\n return (\n <BaseSelect\n { ...restProps }\n selected={ selected }\n onChange={ handleSelect }\n showEmptyOptionsList={ true }\n OptionsList={ CustomOptionsList }\n filteredOptions={ filteredOptions }\n options={ options }\n optionsListProps={ memoOptionsListProps as any }\n />\n );\n};\n"],"names":["CustomOptionsList","React","inputProps","props","outerRef","inputRef","innerListRef","useEffect","_a","jsxs","jsx","Input","SearchS","styles","OptionsList","SelectSearch","options","searchType","onChange","selected","restProps","filteredOptions","setFilteredOptions","useState","searchText","setSearchText","listRef","useRef","searchOptions","useCallback","_e","value","text","res","acc","o","key","val","content","safeStringify","error","handleClear","handleSelect","payload","useClickOutside","memoOptionsListProps","useMemo","BaseSelect"],"mappings":";;;;;;;;;;AAiBO,MAAMA,IAAoBC,EAAM;AAAA,EACnC,CAAC,EAAE,YAAAC,GAAY,GAAGC,EAAA,GAASC,MAAa;AACpC,UAAMC,IAAWJ,EAAM,OAAyB,IAAI,GAC9CK,IAAeL,EAAM,OAAuB,IAAI;AAEtD,WAAAM,EAAU,MAAM;;AACZ,OAAAC,IAAAH,EAAS,YAAT,QAAAG,EAAkB;AAAA,IACtB,GAAG,CAAA,CAAE,GAGD,gBAAAC,EAAC,OAAA,EAAI,KAAML,GACP,UAAA;AAAA,MAAA,gBAAAM,EAAC,OAAA,EAAI,OAAQ,EAAE,SAAS,cACpB,UAAA,gBAAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,MAAK;AAAA,UACL,8BAAcC,GAAA,EAAQ;AAAA,UACpB,GAAGV;AAAA,UACL,gBAAiBW,EAAO;AAAA,UACxB,OAAQ;AAAA,UACR,KAAMR;AAAA,QAAA;AAAA,MAAA,GAEd;AAAA,MAEA,gBAAAK,EAACI,GAAA,EAAc,GAAGX,GAAQ,KAAMG,EAAA,CAAe;AAAA,IAAA,GACnD;AAAA,EAER;AACJ,GAOaS,IAAe,CAAC;AAAA,EACzB,SAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,GAAGC;AACP,MAAyB;AACrB,QAAM,CAACC,GAAiBC,CAAkB,IAAIC,EAASP,CAAO,GACxD,CAACQ,GAAYC,CAAa,IAAIF,EAAS,EAAE,GACzCG,IAAUC,EAAuB,IAAI,GAErCC,IAAgBC;AAAA,IAClB,CAACC,GAAS,EAAE,OAAAC,QAA+B;AACvC,MAAAN,EAAcM,CAAK;AAEnB,UAAI;AACA,YAAI,CAACA,EAAO,QAAOT,EAAmBN,CAAO;AAE7C,cAAMgB,IAAO,OAAOD,CAAK,EAAE,YAAA,GAMrBE,IALOjB,EAAQ;AAAA,UACjB,CAACkB,GAAYC,MAAWD,EAAI,OAAOC,EAAE,UAAUA,EAAE,UAAU,CAACA,CAAC,CAAC;AAAA,UAC9D,CAAA;AAAA,QAAC,EAGY,OAAO,CAAC,EAAE,KAAAC,GAAK,OAAOC,GAAK,SAAAC,QACxCC,EAAc,EAAE,KAAAH,GAAK,OAAOC,GAAK,SAAAC,EAAA,CAAS,EAAE,YAAA,EAAc,SAASN,CAAI,CAAC;AAE5E,eAAOV,EAAmBW,CAAG;AAAA,MACjC,SAASO,GAAO;AACZ,eAAO,CAAA;AAAA,MACX;AAAA,IACJ;AAAA,IACA,CAACxB,CAAO;AAAA,EAAA,GAGNyB,IAAcZ,EAAY,MAAM;AAClC,IAAAJ,EAAc,EAAE,GAChBH,EAAmBN,CAAO;AAAA,EAC9B,GAAG,CAACA,CAAO,CAAC,GAEN0B,IAAeb;AAAA,IACjB,CAACc,MAAiB;AACd,MAAAzB,KAAA,QAAAA,EAAWyB,IACXF,EAAA;AAAA,IACJ;AAAA,IACA,CAACvB,GAAUuB,CAAW;AAAA,EAAA;AAG1B,EAAAG,EAAgBlB,GAASe,CAAW;AAEpC,QAAMI,IAAuBC;AAAA,IACzB,OAAO;AAAA,MACH,KAAKpB;AAAA,MACL,YAAY;AAAA,QACR,UAAUE;AAAA,QACV,OAAOJ;AAAA,QACP,MAAMP;AAAA,QACN,OAAO;AAAA,QACP,SAASwB;AAAA,MAAA;AAAA,IACb;AAAA,IAEJ,CAACb,GAAeJ,GAAYP,GAAYwB,CAAW;AAAA,EAAA;AAGvD,SACI,gBAAA/B;AAAA,IAACqC;AAAA,IAAA;AAAA,MACK,GAAG3B;AAAA,MACL,UAAAD;AAAA,MACA,UAAWuB;AAAA,MACX,sBAAuB;AAAA,MACvB,aAAc1C;AAAA,MACd,iBAAAqB;AAAA,MACA,SAAAL;AAAA,MACA,kBAAmB6B;AAAA,IAAA;AAAA,EAAA;AAG/B;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.innerInput_THnf{background-color:var(--color-bg-primary)!important;border-bottom:1px solid var(--color-border-primary)!important;min-height:40px!important;margin:0 -9px!important}.innerInput_THnf:focus{background-color:red!important}.innerInput_THnf:before{display:none!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--select-error-color: var(--color-text-negative);--select-arrow-background: url(https://alfabank.st/icons/icon_chevron-for-select-down_m_black.svg);--select-arrow-hover-opacity: .7;--select-options-list-border-radius: 0 0 4px 4px;--select-options-list-box-shadow: var(--shadow-xs);--select-options-list-offset: 0;--select-options-list-top-padding: 0;--select-options-list-bottom-padding: 0;--select-options-list-empty-placeholder-color: var(--color-text-secondary);--select-option-divider-display: none;--select-option-divider-background: var(--color-border-primary);--select-option-left-padding: var(--gap-s);--select-option-right-padding: var(--gap-s);--select-option-l-left-padding: var(--gap-m);--select-option-l-right-padding: var(--gap-m);--select-option-background: var(--color-bg-primary);--select-option-selected-background: var(--color-bg-primary);--select-option-hover-background: var(--color-bg-secondary);--select-option-active-background: var(--color-bg-tertiary);--select-option-disabled-background: var(--color-bg-primary);--select-option-color: var(--color-text-primary);--select-option-selected-color: var(--color-text-primary);--select-option-hover-color: var(--color-text-primary);--select-option-active-color: var(--color-text-primary);--select-option-disabled-color: var(--color-text-secondary);--select-checkmark-margin: 0 var(--gap-xs) 0 0;--select-checkmark-size: 4px;--select-checkmark-order: 0;--select-checkmark-unselected-opacity: 0;--select-checkmark-background: var(--color-graphic-primary);--select-checkmark-border-radius: var(--border-radius-circle);--select-optgroup-color: var(--color-text-secondary);--select-optgroup-background: var(--color-bg-primary);--select-optgroup-left-padding: var(--gap-s);--select-optgroup-right-padding: var(--gap-s);--select-optgroup-l-left-padding: var(--gap-m);--select-optgroup-l-right-padding: var(--gap-m)}:root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}.
|
|
1
|
+
:root{--select-error-color: var(--color-text-negative);--select-arrow-background: url(https://alfabank.st/icons/icon_chevron-for-select-down_m_black.svg);--select-arrow-hover-opacity: .7;--select-options-list-border-radius: 0 0 4px 4px;--select-options-list-box-shadow: var(--shadow-xs);--select-options-list-offset: 0;--select-options-list-top-padding: 0;--select-options-list-bottom-padding: 0;--select-options-list-empty-placeholder-color: var(--color-text-secondary);--select-option-divider-display: none;--select-option-divider-background: var(--color-border-primary);--select-option-left-padding: var(--gap-s);--select-option-right-padding: var(--gap-s);--select-option-l-left-padding: var(--gap-m);--select-option-l-right-padding: var(--gap-m);--select-option-background: var(--color-bg-primary);--select-option-selected-background: var(--color-bg-primary);--select-option-hover-background: var(--color-bg-secondary);--select-option-active-background: var(--color-bg-tertiary);--select-option-disabled-background: var(--color-bg-primary);--select-option-color: var(--color-text-primary);--select-option-selected-color: var(--color-text-primary);--select-option-hover-color: var(--color-text-primary);--select-option-active-color: var(--color-text-primary);--select-option-disabled-color: var(--color-text-secondary);--select-checkmark-margin: 0 var(--gap-xs) 0 0;--select-checkmark-size: 4px;--select-checkmark-order: 0;--select-checkmark-unselected-opacity: 0;--select-checkmark-background: var(--color-graphic-primary);--select-checkmark-border-radius: var(--border-radius-circle);--select-optgroup-color: var(--color-text-secondary);--select-optgroup-background: var(--color-bg-primary);--select-optgroup-left-padding: var(--gap-s);--select-optgroup-right-padding: var(--gap-s);--select-optgroup-l-left-padding: var(--gap-m);--select-optgroup-l-right-padding: var(--gap-m)}:root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}.virtualOptionsList_2eWn{overflow:auto;width:100%;outline:none;box-sizing:border-box;position:relative}.inner_6DZq{position:relative;width:100%}.virtualRow_0huM{position:absolute;top:0;left:0;width:100%}.virtualRow_0huM:before{content:"";position:absolute;z-index:1;left:var(--select-option-left-padding);right:var(--select-option-right-padding);top:0;height:1px;background:var(--select-option-divider-background);display:var(--select-option-divider-display)}.virtualRow_0huM:first-child:before{display:none}.highlighted_Uxj8:before,.highlighted_Uxj8+.virtualRow_0huM:before{display:none}.emptyPlaceholder_ONTo{padding:var(--gap-m) var(--gap-s);color:var(--select-options-list-empty-placeholder-color)}.l_Z0I4 .emptyPlaceholder_ONTo,.xl_SNx- .emptyPlaceholder_ONTo{padding:var(--gap-xl) var(--gap-m)}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import './index.module.css';
|
|
2
|
-
const
|
|
3
|
-
virtualOptionsList:
|
|
2
|
+
const t = "virtualOptionsList_2eWn", l = "inner_6DZq", i = "virtualRow_0huM", e = "highlighted_Uxj8", o = "emptyPlaceholder_ONTo", n = "l_Z0I4", s = "xl_SNx-", h = {
|
|
3
|
+
virtualOptionsList: t,
|
|
4
4
|
inner: l,
|
|
5
5
|
virtualRow: i,
|
|
6
|
-
highlighted:
|
|
6
|
+
highlighted: e,
|
|
7
7
|
emptyPlaceholder: o,
|
|
8
8
|
l: n,
|
|
9
|
-
xl:
|
|
9
|
+
xl: s
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
h as default,
|
|
13
13
|
o as emptyPlaceholder,
|
|
14
|
-
|
|
14
|
+
e as highlighted,
|
|
15
15
|
l as inner,
|
|
16
16
|
n as l,
|
|
17
|
-
|
|
17
|
+
t as virtualOptionsList,
|
|
18
18
|
i as virtualRow,
|
|
19
|
-
|
|
19
|
+
s as xl
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=index.module.css.js.map
|
package/dist/select/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Select as
|
|
1
|
+
import { Select as e } from "./component.js";
|
|
2
2
|
import { Arrow as p } from "./components/arrow/component.js";
|
|
3
3
|
import { BaseSelect as s } from "./components/base-select/component.js";
|
|
4
|
-
import {
|
|
4
|
+
import { SelectField as f } from "./components/field/component.js";
|
|
5
5
|
import { Optgroup as m } from "./components/optgroup/component.js";
|
|
6
|
-
import { Option as
|
|
7
|
-
import { OptionsList as
|
|
6
|
+
import { Option as l } from "./components/option/component.js";
|
|
7
|
+
import { OptionsList as c } from "./components/options-list/component.js";
|
|
8
8
|
import { VirtualOptionsList as L } from "./components/virtual-options-list/component.js";
|
|
9
|
-
import { useSelectWithLoading as
|
|
9
|
+
import { useSelectWithLoading as d } from "./presets/use-select-with-loading/hook.js";
|
|
10
10
|
import { useLazyLoading as h } from "./presets/use-lazy-loading/index.js";
|
|
11
11
|
import { convertToOptions as b, isGroup as j, isOptionShape as v, joinOptions as w, lastIndexOf as y, processOptions as z, useVisibleOptions as A } from "./utils.js";
|
|
12
12
|
export {
|
|
13
13
|
p as Arrow,
|
|
14
14
|
s as BaseSelect,
|
|
15
|
-
f as Field,
|
|
16
15
|
m as Optgroup,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
l as Option,
|
|
17
|
+
c as OptionsList,
|
|
18
|
+
e as Select,
|
|
19
|
+
f as SelectField,
|
|
20
20
|
L as VirtualOptionsList,
|
|
21
21
|
b as convertToOptions,
|
|
22
22
|
j as isGroup,
|
|
@@ -25,7 +25,7 @@ export {
|
|
|
25
25
|
y as lastIndexOf,
|
|
26
26
|
z as processOptions,
|
|
27
27
|
h as useLazyLoading,
|
|
28
|
-
|
|
28
|
+
d as useSelectWithLoading,
|
|
29
29
|
A as useVisibleOptions
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { OptionShape } from '../../typings';
|
|
3
|
-
|
|
3
|
+
type OptionsFetcherResponse = {
|
|
4
4
|
items: Array<{
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
id: number | string;
|
|
@@ -13,7 +13,7 @@ declare type OptionsFetcherResponse = {
|
|
|
13
13
|
currentPage: number;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type UseLazyLoadingProps = {
|
|
17
17
|
/** Количество элементов на "странице" */
|
|
18
18
|
limit?: number;
|
|
19
19
|
/** Начальный номер "страницы" */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.skeleton_9Xln{position:absolute;top:50%;transform:translateY(-50%);height:16px;width:50%}
|
package/dist/select/typings.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AriaAttributes, FC, FocusEvent, MouseEvent, ReactElement, ReactNode, RefAttributes, UIEvent } from 'react';
|
|
2
2
|
import { InputProps } from '../input';
|
|
3
3
|
import { PopoverProps } from '../popover';
|
|
4
|
-
export
|
|
4
|
+
export type OptionShape = {
|
|
5
5
|
/**
|
|
6
6
|
* Текстовое представление пункта
|
|
7
7
|
*/
|
|
@@ -23,7 +23,7 @@ export declare type OptionShape = {
|
|
|
23
23
|
*/
|
|
24
24
|
value?: any;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type GroupShape = {
|
|
27
27
|
/**
|
|
28
28
|
* Заголовок группы
|
|
29
29
|
*/
|
|
@@ -33,7 +33,7 @@ export declare type GroupShape = {
|
|
|
33
33
|
*/
|
|
34
34
|
options: OptionShape[];
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type BaseSelectProps = {
|
|
37
37
|
filteredOptions?: any[];
|
|
38
38
|
/**
|
|
39
39
|
* Идентификатор для систем автоматизированного тестирования
|
|
@@ -181,7 +181,7 @@ export declare type BaseSelectProps = {
|
|
|
181
181
|
/**
|
|
182
182
|
* Компонент поля
|
|
183
183
|
*/
|
|
184
|
-
Field?: FC<
|
|
184
|
+
Field?: FC<SelectFieldProps>;
|
|
185
185
|
/**
|
|
186
186
|
* Пропсы, которые будут прокинуты в компонент поля
|
|
187
187
|
*/
|
|
@@ -246,7 +246,7 @@ export declare type BaseSelectProps = {
|
|
|
246
246
|
*/
|
|
247
247
|
showEmptyOptionsList?: boolean;
|
|
248
248
|
};
|
|
249
|
-
export
|
|
249
|
+
export type SelectFieldProps = {
|
|
250
250
|
/**
|
|
251
251
|
* Дополнительный класс
|
|
252
252
|
*/
|
|
@@ -318,7 +318,7 @@ export declare type FieldProps = {
|
|
|
318
318
|
*/
|
|
319
319
|
dataTestId?: string;
|
|
320
320
|
};
|
|
321
|
-
export
|
|
321
|
+
export type ArrowProps = {
|
|
322
322
|
/**
|
|
323
323
|
* Дополнительный класс
|
|
324
324
|
*/
|
|
@@ -328,7 +328,7 @@ export declare type ArrowProps = {
|
|
|
328
328
|
*/
|
|
329
329
|
open?: boolean;
|
|
330
330
|
};
|
|
331
|
-
export
|
|
331
|
+
export type OptionsListProps = {
|
|
332
332
|
/**
|
|
333
333
|
* Дополнительный класс
|
|
334
334
|
*/
|
|
@@ -393,7 +393,7 @@ export declare type OptionsListProps = {
|
|
|
393
393
|
inputProps?: InputProps;
|
|
394
394
|
toggleMenu: () => void;
|
|
395
395
|
};
|
|
396
|
-
export
|
|
396
|
+
export type OptgroupProps = {
|
|
397
397
|
/**
|
|
398
398
|
* Размер компонента
|
|
399
399
|
*/
|
|
@@ -407,7 +407,7 @@ export declare type OptgroupProps = {
|
|
|
407
407
|
*/
|
|
408
408
|
children?: ReactNode;
|
|
409
409
|
};
|
|
410
|
-
export
|
|
410
|
+
export type OptionProps = {
|
|
411
411
|
/**
|
|
412
412
|
* Дополнительный класс
|
|
413
413
|
*/
|
|
@@ -455,7 +455,7 @@ export declare type OptionProps = {
|
|
|
455
455
|
role?: string;
|
|
456
456
|
} & RefAttributes<HTMLDivElement> & AriaAttributes;
|
|
457
457
|
};
|
|
458
|
-
export
|
|
458
|
+
export type CheckmarkProps = {
|
|
459
459
|
/**
|
|
460
460
|
* Флаг, данный пункт выбран
|
|
461
461
|
*/
|
package/dist/select/utils.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { BaseSelectProps, GroupShape, OptionShape } from './typings';
|
|
|
3
3
|
export declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
export declare const isOptionShape: (item: OptionShape | string | number | null) => item is OptionShape;
|
|
5
5
|
export declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
6
|
-
selected?: OptionShape
|
|
7
|
-
selectedMultiple?: OptionShape[]
|
|
6
|
+
selected?: OptionShape;
|
|
7
|
+
selectedMultiple?: OptionShape[];
|
|
8
8
|
}) => ReactNode[] | null;
|
|
9
9
|
export declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected']): {
|
|
10
10
|
flatOptions: OptionShape[];
|
|
11
11
|
selectedOptions: OptionShape[];
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type useVisibleOptionsArgs = {
|
|
14
14
|
/**
|
|
15
15
|
* Количество видимых пунктов
|
|
16
16
|
*/
|
|
@@ -34,11 +34,11 @@ declare type useVisibleOptionsArgs = {
|
|
|
34
34
|
};
|
|
35
35
|
export declare function useVisibleOptions({ visibleOptions, listRef, styleTargetRef, open, invalidate, }: useVisibleOptionsArgs): void;
|
|
36
36
|
export declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
|
|
37
|
-
export
|
|
37
|
+
export type OptionsType<T> = Array<{
|
|
38
38
|
key: T;
|
|
39
39
|
content: any;
|
|
40
40
|
}>;
|
|
41
|
-
|
|
41
|
+
type ConvertToOptions = <T extends {
|
|
42
42
|
id: string | number;
|
|
43
43
|
[field: string]: any;
|
|
44
44
|
}>(data: T[], field?: string) => Array<{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TFunction } from '../modal';
|
|
3
|
-
|
|
3
|
+
type Back = {
|
|
4
4
|
back?: () => void;
|
|
5
5
|
t: TFunction;
|
|
6
6
|
} | {
|
|
7
7
|
back?: never;
|
|
8
8
|
t?: never;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type SidepanelProps = {
|
|
11
11
|
title?: string;
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
subtitle?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.header_mPZ5{position:sticky;top:0;z-index:998}.loader_AwSf{padding:32px;box-sizing:border-box}.input_4qiE{height:56px;width:100%;z-index:1000}.footer_gMIp{backdrop-filter:saturate(200%) blur(6px);position:sticky;bottom:0;padding:16px 32px;z-index:99}.footer_gMIp.noSticky_LgCl{position:relative;padding-bottom:32px}.content_3wIE{padding:4px 32px 32px;flex:1}@media(max-width:823px){.content_3wIE{padding:4px 16px 16px!important}.footer_gMIp,.loader_AwSf{padding:16px!important}}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import './index.module.css';
|
|
2
|
-
const
|
|
3
|
-
header:
|
|
2
|
+
const t = "header_mPZ5", o = "loader_AwSf", n = "input_4qiE", e = "footer_gMIp", c = "noSticky_LgCl", r = "content_3wIE", s = {
|
|
3
|
+
header: t,
|
|
4
4
|
loader: o,
|
|
5
5
|
input: n,
|
|
6
|
-
footer:
|
|
7
|
-
noSticky:
|
|
8
|
-
content:
|
|
6
|
+
footer: e,
|
|
7
|
+
noSticky: c,
|
|
8
|
+
content: r
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
r as content,
|
|
12
|
+
s as default,
|
|
13
|
+
e as footer,
|
|
14
|
+
t as header,
|
|
15
15
|
n as input,
|
|
16
16
|
o as loader,
|
|
17
|
-
|
|
17
|
+
c as noSticky
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TFunction } from '../modal';
|
|
3
|
-
|
|
3
|
+
type Back = {
|
|
4
4
|
back?: () => void;
|
|
5
5
|
t: TFunction;
|
|
6
6
|
} | {
|
|
7
7
|
back?: never;
|
|
8
8
|
t?: never;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type SidepanelHeaderProps = {
|
|
11
11
|
/**
|
|
12
12
|
* Кастомный класс
|
|
13
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.wrapper_QxqD{padding:28px 32px 12px;background-color:var(--color-bg-primary);box-sizing:border-box}.heading_XGDy{display:flex;justify-content:space-between;min-height:48px}.title_jwxc,.bottomAddons_3yzd{padding-bottom:8px;padding-top:8px}.rightAddons_aZFa{margin-right:48px;height:48px;display:flex;align-items:center}.noCloser_O7u0{margin-right:0}@media(max-width:823px){.wrapper_QxqD{padding:16px 16px 12px!important}}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import './index.module.css';
|
|
2
|
-
const o = "
|
|
2
|
+
const o = "wrapper_QxqD", t = "heading_XGDy", n = "title_jwxc", s = "bottomAddons_3yzd", d = "rightAddons_aZFa", e = "noCloser_O7u0", r = {
|
|
3
3
|
wrapper: o,
|
|
4
|
-
heading:
|
|
5
|
-
title:
|
|
6
|
-
bottomAddons:
|
|
7
|
-
rightAddons:
|
|
8
|
-
noCloser:
|
|
4
|
+
heading: t,
|
|
5
|
+
title: n,
|
|
6
|
+
bottomAddons: s,
|
|
7
|
+
rightAddons: d,
|
|
8
|
+
noCloser: e
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
s as bottomAddons,
|
|
12
|
+
r as default,
|
|
13
|
+
t as heading,
|
|
14
|
+
e as noCloser,
|
|
15
|
+
d as rightAddons,
|
|
16
|
+
n as title,
|
|
17
17
|
o as wrapper
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--skeleton-background-filter: none;--skeleton-default-color: var(--color-bg-secondary)}.
|
|
1
|
+
:root{--skeleton-background-filter: none;--skeleton-default-color: var(--color-bg-secondary)}.component_-McT{position:relative;display:inline-block;border-radius:var(--gap-2xs);overflow:hidden}.component_-McT>*{visibility:hidden}.component_-McT:before{content:"";position:absolute;border-radius:var(--gap-2xs);inset:0;background:var(--skeleton-default-color);backdrop-filter:var(--skeleton-background-filter)}.animate_-bLC:after{content:"";position:absolute;top:0;left:0;width:500%;height:100%;transform:translate(-80%);animation-name:animation_jl9l;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear;background:linear-gradient(to left,#0000,#0000 40%,#00000006,#0000 60%,#0000)}@keyframes animation_jl9l{0%{transform:translate(-80%)}67%{transform:translate(0)}to{transform:translate(0)}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './index.module.css';
|
|
2
|
-
const n = "
|
|
2
|
+
const n = "component_-McT", t = "animate_-bLC", o = {
|
|
3
3
|
component: n,
|
|
4
|
-
animate:
|
|
4
|
+
animate: t
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
t as animate,
|
|
8
8
|
n as component,
|
|
9
9
|
o as default
|
|
10
10
|
};
|