@sk-web-gui/core 2.3.0 → 2.4.0
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/cjs/components/accordion.js +0 -5
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/progress-stepper.js +11 -1
- package/dist/cjs/components/progress-stepper.js.map +1 -1
- package/dist/esm/components/accordion.js +0 -5
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/progress-stepper.js +11 -1
- package/dist/esm/components/progress-stepper.js.map +1 -1
- package/dist/types/accordion/index.d.ts +2 -0
- package/dist/types/accordion/src/accordion/accordion-item.d.ts +8 -0
- package/dist/types/accordion/src/accordion/accordion.d.ts +25 -0
- package/dist/types/accordion/src/accordion/index.d.ts +10 -0
- package/dist/types/accordion/src/disclosure/disclosure.d.ts +53 -0
- package/dist/types/accordion/src/disclosure/index.d.ts +4 -0
- package/dist/types/accordion/src/disclosure/styles.d.ts +1 -0
- package/dist/types/accordion/src/index.d.ts +4 -0
- package/dist/types/accordion/stories/accordion.stories.d.ts +8 -0
- package/dist/types/accordion/stories/disclosure.stories.d.ts +9 -0
- package/dist/types/avatar/index.d.ts +2 -0
- package/dist/types/avatar/src/avatar.d.ts +17 -0
- package/dist/types/avatar/src/index.d.ts +8 -0
- package/dist/types/avatar/stories/avatar.stories.d.ts +8 -0
- package/dist/types/badge/index.d.ts +2 -0
- package/dist/types/badge/src/badge.d.ts +12 -0
- package/dist/types/badge/src/index.d.ts +8 -0
- package/dist/types/badge/stories/badge.stories.d.ts +8 -0
- package/dist/types/breadcrumb/index.d.ts +2 -0
- package/dist/types/breadcrumb/src/breadcrumb.d.ts +41 -0
- package/dist/types/breadcrumb/src/index.d.ts +11 -0
- package/dist/types/breadcrumb/stories/breadcrumb.stories.d.ts +7 -0
- package/dist/types/button/index.d.ts +2 -0
- package/dist/types/button/src/button-group.d.ts +15 -0
- package/dist/types/button/src/button.d.ts +49 -0
- package/dist/types/button/src/index.d.ts +11 -0
- package/dist/types/button/src/styles.d.ts +1 -0
- package/dist/types/button/stories/announcement.d.ts +5 -0
- package/dist/types/button/stories/button-group.stories.d.ts +8 -0
- package/dist/types/button/stories/button.stories.d.ts +7 -0
- package/dist/types/card/index.d.ts +2 -0
- package/dist/types/card/src/card.d.ts +60 -0
- package/dist/types/card/src/index.d.ts +21 -0
- package/dist/types/card/src/meta-card.d.ts +42 -0
- package/dist/types/card/stories/card.stories.d.ts +4 -0
- package/dist/types/card/stories/meta-card.stories.d.ts +4 -0
- package/dist/types/chip/index.d.ts +2 -0
- package/dist/types/chip/src/chip.d.ts +7 -0
- package/dist/types/chip/src/index.d.ts +4 -0
- package/dist/types/chip/stories/chip.stories.d.ts +12 -0
- package/dist/types/components/accordion.d.ts +0 -5
- package/dist/types/components/progress-stepper.d.ts +10 -0
- package/dist/types/cookie-consent/index.d.ts +2 -0
- package/dist/types/cookie-consent/src/cookie-consent.d.ts +32 -0
- package/dist/types/cookie-consent/src/index.d.ts +15 -0
- package/dist/types/cookie-consent/stories/cookie-consent.stories.d.ts +7 -0
- package/dist/types/core/src/aria-plugin.d.ts +4 -0
- package/dist/types/core/src/base.d.ts +53 -0
- package/dist/types/core/src/colors.d.ts +643 -0
- package/dist/types/core/src/components/accordion.d.ts +164 -0
- package/dist/types/core/src/components/alert.d.ts +21 -0
- package/dist/types/core/src/components/avatar.d.ts +26 -0
- package/dist/types/core/src/components/badge.d.ts +21 -0
- package/dist/types/core/src/components/breadcrumb.d.ts +28 -0
- package/dist/types/core/src/components/button-group.d.ts +25 -0
- package/dist/types/core/src/components/button.d.ts +201 -0
- package/dist/types/core/src/components/card.d.ts +135 -0
- package/dist/types/core/src/components/checkbox.d.ts +108 -0
- package/dist/types/core/src/components/chip.d.ts +34 -0
- package/dist/types/core/src/components/code.d.ts +8 -0
- package/dist/types/core/src/components/combobox.d.ts +72 -0
- package/dist/types/core/src/components/cookie-consent.d.ts +35 -0
- package/dist/types/core/src/components/dialog.d.ts +5 -0
- package/dist/types/core/src/components/divider.d.ts +50 -0
- package/dist/types/core/src/components/dot.d.ts +43 -0
- package/dist/types/core/src/components/filter.d.ts +14 -0
- package/dist/types/core/src/components/footer.d.ts +27 -0
- package/dist/types/core/src/components/forms.d.ts +24 -0
- package/dist/types/core/src/components/header.d.ts +28 -0
- package/dist/types/core/src/components/icon.d.ts +38 -0
- package/dist/types/core/src/components/input.d.ts +214 -0
- package/dist/types/core/src/components/kbd.d.ts +7 -0
- package/dist/types/core/src/components/label.d.ts +27 -0
- package/dist/types/core/src/components/link.d.ts +43 -0
- package/dist/types/core/src/components/list.d.ts +52 -0
- package/dist/types/core/src/components/logo.d.ts +48 -0
- package/dist/types/core/src/components/menu-vertical.d.ts +215 -0
- package/dist/types/core/src/components/menubar.d.ts +35 -0
- package/dist/types/core/src/components/modal.d.ts +45 -0
- package/dist/types/core/src/components/pagination.d.ts +101 -0
- package/dist/types/core/src/components/popup-menu.d.ts +138 -0
- package/dist/types/core/src/components/progress-bar.d.ts +13 -0
- package/dist/types/core/src/components/progress-stepper.d.ts +60 -0
- package/dist/types/core/src/components/radio.d.ts +125 -0
- package/dist/types/core/src/components/search-field.d.ts +34 -0
- package/dist/types/core/src/components/select.d.ts +141 -0
- package/dist/types/core/src/components/snackbar.d.ts +30 -0
- package/dist/types/core/src/components/spinner.d.ts +10 -0
- package/dist/types/core/src/components/switch.d.ts +64 -0
- package/dist/types/core/src/components/table-autotable.d.ts +221 -0
- package/dist/types/core/src/components/table.d.ts +11 -0
- package/dist/types/core/src/components/tabs.d.ts +14 -0
- package/dist/types/core/src/components/tooltip.d.ts +53 -0
- package/dist/types/core/src/components/user-menu.d.ts +14 -0
- package/dist/types/core/src/data-plugin.d.ts +4 -0
- package/dist/types/core/src/index.d.ts +6 -0
- package/dist/types/core/src/plugin.d.ts +12 -0
- package/dist/types/core/src/preset.d.ts +18 -0
- package/dist/types/core/src/theme.d.ts +4 -0
- package/dist/types/core/src/units.d.ts +251 -0
- package/dist/types/core/src/with-opacity.d.ts +4 -0
- package/dist/types/divider/index.d.ts +2 -0
- package/dist/types/divider/src/divider-section.d.ts +12 -0
- package/dist/types/divider/src/divider.d.ts +8 -0
- package/dist/types/divider/src/index.d.ts +10 -0
- package/dist/types/divider/src/styles.d.ts +1 -0
- package/dist/types/divider/stories/divider-section.stories.d.ts +8 -0
- package/dist/types/divider/stories/divider.stories.d.ts +8 -0
- package/dist/types/filter/index.d.ts +2 -0
- package/dist/types/filter/src/filter-item.d.ts +7 -0
- package/dist/types/filter/src/filter-label.d.ts +7 -0
- package/dist/types/filter/src/filter.d.ts +6 -0
- package/dist/types/filter/src/index.d.ts +12 -0
- package/dist/types/filter/stories/filter.stories.d.ts +7 -0
- package/dist/types/forms/index.d.ts +2 -0
- package/dist/types/forms/src/checkbox/checkbox-group.d.ts +46 -0
- package/dist/types/forms/src/checkbox/checkbox.d.ts +39 -0
- package/dist/types/forms/src/checkbox/index.d.ts +10 -0
- package/dist/types/forms/src/checkbox/styles.d.ts +2 -0
- package/dist/types/forms/src/combobox/combobox-context.d.ts +42 -0
- package/dist/types/forms/src/combobox/combobox-input.d.ts +44 -0
- package/dist/types/forms/src/combobox/combobox-list.d.ts +8 -0
- package/dist/types/forms/src/combobox/combobox-option.d.ts +11 -0
- package/dist/types/forms/src/combobox/combobox.d.ts +6 -0
- package/dist/types/forms/src/combobox/index.d.ts +15 -0
- package/dist/types/forms/src/combobox/styles.d.ts +1 -0
- package/dist/types/forms/src/date-picker/date-picker.d.ts +7 -0
- package/dist/types/forms/src/date-picker/index.d.ts +8 -0
- package/dist/types/forms/src/form-control/index.d.ts +40 -0
- package/dist/types/forms/src/form-error-message/index.d.ts +8 -0
- package/dist/types/forms/src/form-helper-text/index.d.ts +8 -0
- package/dist/types/forms/src/form-label/index.d.ts +20 -0
- package/dist/types/forms/src/index.d.ts +26 -0
- package/dist/types/forms/src/input/index.d.ts +13 -0
- package/dist/types/forms/src/input/input.d.ts +26 -0
- package/dist/types/forms/src/input/styles.d.ts +1 -0
- package/dist/types/forms/src/input-addin/index.d.ts +12 -0
- package/dist/types/forms/src/input-group/index.d.ts +11 -0
- package/dist/types/forms/src/input-group/styles.d.ts +1 -0
- package/dist/types/forms/src/radio/index.d.ts +10 -0
- package/dist/types/forms/src/radio/radio-group.d.ts +48 -0
- package/dist/types/forms/src/radio/radio.d.ts +32 -0
- package/dist/types/forms/src/radio/styles.d.ts +3 -0
- package/dist/types/forms/src/select/index.d.ts +18 -0
- package/dist/types/forms/src/select/styles.d.ts +1 -0
- package/dist/types/forms/src/switch/index.d.ts +8 -0
- package/dist/types/forms/src/switch/switchcomponent.d.ts +9 -0
- package/dist/types/forms/src/text-field/index.d.ts +8 -0
- package/dist/types/forms/src/text-field/text-field.d.ts +6 -0
- package/dist/types/forms/src/textarea/index.d.ts +12 -0
- package/dist/types/forms/stories/check.d.ts +5 -0
- package/dist/types/forms/stories/checkbox-group.stories.d.ts +11 -0
- package/dist/types/forms/stories/checkbox.stories.d.ts +8 -0
- package/dist/types/forms/stories/combobox.stories.d.ts +19 -0
- package/dist/types/forms/stories/date-picker.stories.d.ts +21 -0
- package/dist/types/forms/stories/form-control.stories.d.ts +10 -0
- package/dist/types/forms/stories/input.stories.d.ts +21 -0
- package/dist/types/forms/stories/radio-group.stories.d.ts +11 -0
- package/dist/types/forms/stories/radio.stories.d.ts +14 -0
- package/dist/types/forms/stories/select.stories.d.ts +10 -0
- package/dist/types/forms/stories/switch.stories.d.ts +8 -0
- package/dist/types/forms/stories/text-field.stories.d.ts +18 -0
- package/dist/types/forms/stories/textarea.stories.d.ts +42 -0
- package/dist/types/icon/index.d.ts +2 -0
- package/dist/types/icon/src/icon-padded.d.ts +4 -0
- package/dist/types/icon/src/icon.d.ts +20 -0
- package/dist/types/icon/src/index.d.ts +10 -0
- package/dist/types/icon/stories/icon-padded.stories.d.ts +8 -0
- package/dist/types/icon/stories/icon.stories.d.ts +8 -0
- package/dist/types/image/index.d.ts +2 -0
- package/dist/types/image/src/image.d.ts +28 -0
- package/dist/types/image/src/index.d.ts +4 -0
- package/dist/types/image/src/use-image.d.ts +52 -0
- package/dist/types/image/stories/image.stories.d.ts +8 -0
- package/dist/types/label/index.d.ts +2 -0
- package/dist/types/label/src/index.d.ts +8 -0
- package/dist/types/label/src/label.d.ts +8 -0
- package/dist/types/label/stories/label.stories.d.ts +8 -0
- package/dist/types/layout/index.d.ts +2 -0
- package/dist/types/layout/src/footer/footer-list-item.d.ts +4 -0
- package/dist/types/layout/src/footer/footer-list.d.ts +4 -0
- package/dist/types/layout/src/footer/footer.d.ts +6 -0
- package/dist/types/layout/src/footer/index.d.ts +14 -0
- package/dist/types/layout/src/header/header.d.ts +17 -0
- package/dist/types/layout/src/header/index.d.ts +8 -0
- package/dist/types/layout/src/index.d.ts +4 -0
- package/dist/types/layout/stories/footer.stories.d.ts +7 -0
- package/dist/types/layout/stories/header.stories.d.ts +5 -0
- package/dist/types/link/index.d.ts +2 -0
- package/dist/types/link/src/index.d.ts +12 -0
- package/dist/types/link/src/link.d.ts +21 -0
- package/dist/types/link/src/styles.d.ts +1 -0
- package/dist/types/link/stories/link.stories.d.ts +12 -0
- package/dist/types/list/index.d.ts +2 -0
- package/dist/types/list/src/index.d.ts +12 -0
- package/dist/types/list/src/list.d.ts +28 -0
- package/dist/types/list/stories/list.stories.d.ts +7 -0
- package/dist/types/logo/index.d.ts +2 -0
- package/dist/types/logo/src/assets/index.d.ts +2 -0
- package/dist/types/logo/src/assets/logo-svg.d.ts +2 -0
- package/dist/types/logo/src/assets/symbol-svg.d.ts +2 -0
- package/dist/types/logo/src/index.d.ts +4 -0
- package/dist/types/logo/src/logo.d.ts +38 -0
- package/dist/types/logo/stories/logo.stories.d.ts +8 -0
- package/dist/types/menu-vertical/index.d.ts +2 -0
- package/dist/types/menu-vertical/src/index.d.ts +25 -0
- package/dist/types/menu-vertical/src/menu-vertical-backbutton.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical-context.d.ts +62 -0
- package/dist/types/menu-vertical/src/menu-vertical-header.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical-item.d.ts +26 -0
- package/dist/types/menu-vertical/src/menu-vertical-label.d.ts +7 -0
- package/dist/types/menu-vertical/src/menu-vertical-nav.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical-sidebar.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical-submenu-button.d.ts +25 -0
- package/dist/types/menu-vertical/src/menu-vertical-tool-item.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical.d.ts +14 -0
- package/dist/types/menu-vertical/stories/menu-vertical-sidebar.stories.d.ts +8 -0
- package/dist/types/menu-vertical/stories/menu-vertical.stories.d.ts +8 -0
- package/dist/types/menubar/index.d.ts +2 -0
- package/dist/types/menubar/src/index.d.ts +11 -0
- package/dist/types/menubar/src/menubar-item.d.ts +15 -0
- package/dist/types/menubar/src/menubar.d.ts +18 -0
- package/dist/types/menubar/stories/menubar.stories.d.ts +7 -0
- package/dist/types/modal/index.d.ts +2 -0
- package/dist/types/modal/src/confirm/confirm.d.ts +17 -0
- package/dist/types/modal/src/confirm/index.d.ts +1 -0
- package/dist/types/modal/src/dialog/dialog-buttons.d.ts +6 -0
- package/dist/types/modal/src/dialog/dialog-content.d.ts +6 -0
- package/dist/types/modal/src/dialog/dialog.d.ts +7 -0
- package/dist/types/modal/src/dialog/index.d.ts +12 -0
- package/dist/types/modal/src/index.d.ts +6 -0
- package/dist/types/modal/src/modal/index.d.ts +13 -0
- package/dist/types/modal/src/modal/modal-content.d.ts +5 -0
- package/dist/types/modal/src/modal/modal-footer.d.ts +5 -0
- package/dist/types/modal/src/modal/modal.d.ts +27 -0
- package/dist/types/modal/stories/confirm.stories.d.ts +10 -0
- package/dist/types/modal/stories/dialog.stories.d.ts +6 -0
- package/dist/types/modal/stories/modal.stories.d.ts +7 -0
- package/dist/types/pagination/index.d.ts +2 -0
- package/dist/types/pagination/src/index.d.ts +8 -0
- package/dist/types/pagination/src/pagination.d.ts +19 -0
- package/dist/types/pagination/src/styles.d.ts +1 -0
- package/dist/types/pagination/stories/pagination.stories.d.ts +8 -0
- package/dist/types/popup-menu/index.d.ts +2 -0
- package/dist/types/popup-menu/src/index.d.ts +18 -0
- package/dist/types/popup-menu/src/popup-menu-button.d.ts +2 -0
- package/dist/types/popup-menu/src/popup-menu-group.d.ts +5 -0
- package/dist/types/popup-menu/src/popup-menu-item.d.ts +11 -0
- package/dist/types/popup-menu/src/popup-menu-items.d.ts +20 -0
- package/dist/types/popup-menu/src/popup-menu-panel.d.ts +6 -0
- package/dist/types/popup-menu/src/popup-menu.d.ts +53 -0
- package/dist/types/popup-menu/src/popupmenu-context.d.ts +18 -0
- package/dist/types/popup-menu/src/styles.d.ts +1 -0
- package/dist/types/popup-menu/stories/popup-menu.stories.d.ts +9 -0
- package/dist/types/progress-bar/index.d.ts +2 -0
- package/dist/types/progress-bar/src/index.d.ts +8 -0
- package/dist/types/progress-bar/src/progress-bar.d.ts +18 -0
- package/dist/types/progress-bar/src/styles.d.ts +0 -0
- package/dist/types/progress-bar/stories/progress-bar.stories.d.ts +8 -0
- package/dist/types/progress-stepper/index.d.ts +2 -0
- package/dist/types/progress-stepper/src/index.d.ts +8 -0
- package/dist/types/progress-stepper/src/progress-step.d.ts +13 -0
- package/dist/types/progress-stepper/src/progress-stepper.d.ts +12 -0
- package/dist/types/progress-stepper/stories/progress-stepper.stories.d.ts +8 -0
- package/dist/types/react/index.d.ts +2 -0
- package/dist/types/react/src/index.d.ts +70 -0
- package/dist/types/searchfield/index.d.ts +2 -0
- package/dist/types/searchfield/src/index.d.ts +18 -0
- package/dist/types/searchfield/src/searchfield-suggestions-input.d.ts +9 -0
- package/dist/types/searchfield/src/searchfield-suggestions-list.d.ts +5 -0
- package/dist/types/searchfield/src/searchfield-suggestions-option.d.ts +5 -0
- package/dist/types/searchfield/src/searchfield-suggestions.d.ts +5 -0
- package/dist/types/searchfield/src/searchfield.d.ts +27 -0
- package/dist/types/searchfield/stories/searchfield-suggestions.stories.d.ts +8 -0
- package/dist/types/searchfield/stories/searchfield.stories.d.ts +6 -0
- package/dist/types/snackbar/index.d.ts +2 -0
- package/dist/types/snackbar/src/index.d.ts +8 -0
- package/dist/types/snackbar/src/snackbar.d.ts +11 -0
- package/dist/types/snackbar/stories/snackbar.stories.d.ts +8 -0
- package/dist/types/spinner/index.d.ts +2 -0
- package/dist/types/spinner/src/assets/spinner-square.d.ts +265 -0
- package/dist/types/spinner/src/index.d.ts +4 -0
- package/dist/types/spinner/src/spinner.d.ts +14 -0
- package/dist/types/spinner/stories/spinner.stories.d.ts +8 -0
- package/dist/types/table/index.d.ts +2 -0
- package/dist/types/table/src/auto-table.d.ts +48 -0
- package/dist/types/table/src/index.d.ts +24 -0
- package/dist/types/table/src/table-body.d.ts +2 -0
- package/dist/types/table/src/table-footer.d.ts +2 -0
- package/dist/types/table/src/table-header-column.d.ts +6 -0
- package/dist/types/table/src/table-header.d.ts +6 -0
- package/dist/types/table/src/table-row-column.d.ts +6 -0
- package/dist/types/table/src/table-row.d.ts +2 -0
- package/dist/types/table/src/table-sort-button.d.ts +8 -0
- package/dist/types/table/src/table.d.ts +9 -0
- package/dist/types/table/stories/autotable.stories.d.ts +10 -0
- package/dist/types/table/stories/table.stories.d.ts +11 -0
- package/dist/types/tabs/index.d.ts +2 -0
- package/dist/types/tabs/src/index.d.ts +15 -0
- package/dist/types/tabs/src/tabs-button.d.ts +7 -0
- package/dist/types/tabs/src/tabs-content.d.ts +6 -0
- package/dist/types/tabs/src/tabs-context.d.ts +8 -0
- package/dist/types/tabs/src/tabs-item.d.ts +6 -0
- package/dist/types/tabs/src/tabs.d.ts +11 -0
- package/dist/types/tabs/stories/tabs.stories.d.ts +12 -0
- package/dist/types/text/index.d.ts +2 -0
- package/dist/types/text/src/index.d.ts +8 -0
- package/dist/types/text/src/text.d.ts +10 -0
- package/dist/types/text/stories/text.stories.d.ts +7 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/src/colors.d.ts +1410 -0
- package/dist/types/theme/src/create-memo-class.d.ts +1 -0
- package/dist/types/theme/src/create-theme-vars/calc.d.ts +19 -0
- package/dist/types/theme/src/create-theme-vars/create-theme-vars.d.ts +9 -0
- package/dist/types/theme/src/create-theme-vars/css-var.d.ts +7 -0
- package/dist/types/theme/src/create-theme-vars/index.d.ts +4 -0
- package/dist/types/theme/src/create-theme-vars/theme-tokens.d.ts +8 -0
- package/dist/types/theme/src/create-theme-vars/to-css-var.d.ts +2 -0
- package/dist/types/theme/src/default-theme.d.ts +4 -0
- package/dist/types/theme/src/gui-provider.d.ts +34 -0
- package/dist/types/theme/src/index.d.ts +14 -0
- package/dist/types/theme/src/types.d.ts +54 -0
- package/dist/types/theme/src/units.d.ts +226 -0
- package/dist/types/theme/src/use-safe-effect.d.ts +2 -0
- package/dist/types/theme/src/utils.d.ts +1 -0
- package/dist/types/toast/index.d.ts +2 -0
- package/dist/types/toast/src/index.d.ts +7 -0
- package/dist/types/toast/src/toast.d.ts +62 -0
- package/dist/types/toasted-notes/index.d.ts +2 -0
- package/dist/types/toasted-notes/src/Alert.d.ts +8 -0
- package/dist/types/toasted-notes/src/Message.d.ts +26 -0
- package/dist/types/toasted-notes/src/Positions.d.ts +9 -0
- package/dist/types/toasted-notes/src/Toast.d.ts +13 -0
- package/dist/types/toasted-notes/src/ToastManager.d.ts +45 -0
- package/dist/types/toasted-notes/src/index.d.ts +4 -0
- package/dist/types/toasted-notes/src/useTimeout.d.ts +3 -0
- package/dist/types/tooltip/index.d.ts +2 -0
- package/dist/types/tooltip/src/index.d.ts +8 -0
- package/dist/types/tooltip/src/tooltip.d.ts +14 -0
- package/dist/types/tooltip/stories/tooltip.stories.d.ts +9 -0
- package/dist/types/user-menu/index.d.ts +2 -0
- package/dist/types/user-menu/src/index.d.ts +8 -0
- package/dist/types/user-menu/src/user-menu.d.ts +32 -0
- package/dist/types/user-menu/stories/user-menu.stories.d.ts +8 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/src/assertion.d.ts +5 -0
- package/dist/types/utils/src/children.d.ts +8 -0
- package/dist/types/utils/src/color.d.ts +10 -0
- package/dist/types/utils/src/index.d.ts +20 -0
- package/dist/types/utils/src/object.d.ts +6 -0
- package/dist/types/utils/src/refs.d.ts +5 -0
- package/dist/types/utils/src/slug.d.ts +1 -0
- package/dist/types/utils/src/types.d.ts +56 -0
- package/dist/types/utils/src/use-on-element-outside.d.ts +39 -0
- package/dist/types/utils/src/walk-object.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export * from '@sk-web-gui/accordion';
|
|
2
|
+
export type * from '@sk-web-gui/accordion';
|
|
3
|
+
export * from '@sk-web-gui/avatar';
|
|
4
|
+
export type * from '@sk-web-gui/avatar';
|
|
5
|
+
export * from '@sk-web-gui/badge';
|
|
6
|
+
export type * from '@sk-web-gui/badge';
|
|
7
|
+
export * from '@sk-web-gui/breadcrumb';
|
|
8
|
+
export type * from '@sk-web-gui/breadcrumb';
|
|
9
|
+
export * from '@sk-web-gui/button';
|
|
10
|
+
export type * from '@sk-web-gui/button';
|
|
11
|
+
export * from '@sk-web-gui/card';
|
|
12
|
+
export type * from '@sk-web-gui/card';
|
|
13
|
+
export * from '@sk-web-gui/chip';
|
|
14
|
+
export type * from '@sk-web-gui/chip';
|
|
15
|
+
export * from '@sk-web-gui/cookie-consent';
|
|
16
|
+
export type * from '@sk-web-gui/cookie-consent';
|
|
17
|
+
export * from '@sk-web-gui/divider';
|
|
18
|
+
export type * from '@sk-web-gui/divider';
|
|
19
|
+
export * from '@sk-web-gui/filter';
|
|
20
|
+
export type * from '@sk-web-gui/filter';
|
|
21
|
+
export * from '@sk-web-gui/forms';
|
|
22
|
+
export type * from '@sk-web-gui/forms';
|
|
23
|
+
export * from '@sk-web-gui/icon';
|
|
24
|
+
export type * from '@sk-web-gui/icon';
|
|
25
|
+
export * from '@sk-web-gui/image';
|
|
26
|
+
export type * from '@sk-web-gui/image';
|
|
27
|
+
export * from '@sk-web-gui/label';
|
|
28
|
+
export type * from '@sk-web-gui/label';
|
|
29
|
+
export * from '@sk-web-gui/layout';
|
|
30
|
+
export type * from '@sk-web-gui/layout';
|
|
31
|
+
export * from '@sk-web-gui/link';
|
|
32
|
+
export type * from '@sk-web-gui/link';
|
|
33
|
+
export * from '@sk-web-gui/menu-vertical';
|
|
34
|
+
export type * from '@sk-web-gui/menu-vertical';
|
|
35
|
+
export * from '@sk-web-gui/menubar';
|
|
36
|
+
export type * from '@sk-web-gui/menubar';
|
|
37
|
+
export * from '@sk-web-gui/modal';
|
|
38
|
+
export type * from '@sk-web-gui/modal';
|
|
39
|
+
export * from '@sk-web-gui/pagination';
|
|
40
|
+
export type * from '@sk-web-gui/pagination';
|
|
41
|
+
export * from '@sk-web-gui/popup-menu';
|
|
42
|
+
export type * from '@sk-web-gui/popup-menu';
|
|
43
|
+
export * from '@sk-web-gui/progress-bar';
|
|
44
|
+
export type * from '@sk-web-gui/progress-bar';
|
|
45
|
+
export * from '@sk-web-gui/progress-stepper';
|
|
46
|
+
export type * from '@sk-web-gui/progress-stepper';
|
|
47
|
+
export * from '@sk-web-gui/searchfield';
|
|
48
|
+
export type * from '@sk-web-gui/searchfield';
|
|
49
|
+
export * from '@sk-web-gui/snackbar';
|
|
50
|
+
export type * from '@sk-web-gui/snackbar';
|
|
51
|
+
export * from '@sk-web-gui/spinner';
|
|
52
|
+
export type * from '@sk-web-gui/spinner';
|
|
53
|
+
export * from '@sk-web-gui/table';
|
|
54
|
+
export type * from '@sk-web-gui/table';
|
|
55
|
+
export * from '@sk-web-gui/tabs';
|
|
56
|
+
export type * from '@sk-web-gui/tabs';
|
|
57
|
+
export * from '@sk-web-gui/text';
|
|
58
|
+
export type * from '@sk-web-gui/text';
|
|
59
|
+
export * from '@sk-web-gui/theme';
|
|
60
|
+
export type * from '@sk-web-gui/theme';
|
|
61
|
+
export * from '@sk-web-gui/tooltip';
|
|
62
|
+
export type * from '@sk-web-gui/tooltip';
|
|
63
|
+
export * from '@sk-web-gui/user-menu';
|
|
64
|
+
export type * from '@sk-web-gui/user-menu';
|
|
65
|
+
export * from '@sk-web-gui/utils';
|
|
66
|
+
export type * from '@sk-web-gui/utils';
|
|
67
|
+
export * from '@sk-web-gui/logo';
|
|
68
|
+
export type * from '@sk-web-gui/logo';
|
|
69
|
+
export * from '@sk-web-gui/list';
|
|
70
|
+
export type * from '@sk-web-gui/list';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SearchFieldBase, SearchFieldBaseProps } from './searchfield';
|
|
3
|
+
import { SearchFeildSuggestionsBase } from './searchfield-suggestions';
|
|
4
|
+
import { SearchFieldSuggestionsInput } from './searchfield-suggestions-input';
|
|
5
|
+
import { SearchFieldSuggestionsList } from './searchfield-suggestions-list';
|
|
6
|
+
import { SearchFieldSuggestionsOption } from './searchfield-suggestions-option';
|
|
7
|
+
interface SearchFieldProps extends React.ForwardRefExoticComponent<SearchFieldBaseProps> {
|
|
8
|
+
Component: typeof SearchFieldBase;
|
|
9
|
+
Input: typeof SearchFieldBase;
|
|
10
|
+
Suggestions: typeof SearchFeildSuggestionsBase;
|
|
11
|
+
SuggestionsList: typeof SearchFieldSuggestionsList;
|
|
12
|
+
SuggestionsOption: typeof SearchFieldSuggestionsOption;
|
|
13
|
+
SuggestionsInput: typeof SearchFieldSuggestionsInput;
|
|
14
|
+
}
|
|
15
|
+
declare const SearchField: SearchFieldProps;
|
|
16
|
+
export { SearchField };
|
|
17
|
+
export type { SearchFieldProps };
|
|
18
|
+
export default SearchField;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComboboxProps } from '@sk-web-gui/forms';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SearchFieldProps } from './index';
|
|
4
|
+
interface SearchFieldSuggestionsInputProps extends Omit<React.ComponentPropsWithRef<SearchFieldProps['Input']>, 'onSelect'> {
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
onSelect?: React.ComponentProps<ComboboxProps['Input']>['onSelect'];
|
|
7
|
+
}
|
|
8
|
+
export declare const SearchFieldSuggestionsInput: React.ForwardRefExoticComponent<Omit<SearchFieldSuggestionsInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export default SearchFieldSuggestionsInput;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SearchFieldSuggestionsList: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@sk-web-gui/forms/src/combobox/combobox-list").ComboboxListProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLFieldSetElement | null) => void) | React.RefObject<HTMLFieldSetElement> | null | undefined;
|
|
4
|
+
}, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
5
|
+
export default SearchFieldSuggestionsList;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SearchFieldSuggestionsOption: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@sk-web-gui/forms/src/combobox/combobox-option").ComboboxOptionProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
4
|
+
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export default SearchFieldSuggestionsOption;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SearchFeildSuggestionsBase: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@sk-web-gui/forms/src/combobox/combobox").ComboboxBaseProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
4
|
+
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export default SearchFeildSuggestionsBase;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { InputProps } from '@sk-web-gui/forms';
|
|
2
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface SearchFieldBaseProps extends DefaultProps, Omit<React.ComponentProps<InputProps['Component']>, 'ref'>, Omit<React.ComponentPropsWithRef<'input'>, 'size'> {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
7
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
8
|
+
onSearch?: (query: string) => void;
|
|
9
|
+
onReset?: () => void;
|
|
10
|
+
/** @default onValue */
|
|
11
|
+
showSearchButton?: 'onValue' | boolean;
|
|
12
|
+
/** @default onValue */
|
|
13
|
+
showResetButton?: 'onValue' | boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
smallIcon?: boolean;
|
|
16
|
+
rounded?: boolean;
|
|
17
|
+
/** @default lg */
|
|
18
|
+
size?: 'md' | 'lg';
|
|
19
|
+
/** @default Sök */
|
|
20
|
+
searchLabel?: string;
|
|
21
|
+
/** @default Rensa */
|
|
22
|
+
resetAriaLabel?: string;
|
|
23
|
+
searchIcon?: React.ReactNode;
|
|
24
|
+
resetIcon?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export declare const SearchFieldBase: React.ForwardRefExoticComponent<Omit<SearchFieldBaseProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
export default SearchFieldBase;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SearchField } from '../src';
|
|
4
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, Omit<Omit<Omit<import("@sk-web-gui/forms/src/combobox/combobox").ComboboxBaseProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Template: StoryObj<typeof SearchField.Suggestions>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SearchField } from '../src';
|
|
4
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, Omit<import("../src/searchfield").SearchFieldBaseProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Template: StoryObj<typeof SearchField>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { useSnackbar, Snackbar, SnackbarProps } from './snackbar';
|
|
3
|
+
export { Snackbar, useSnackbar };
|
|
4
|
+
export type { SnackbarProps };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
Snackbar: import("react").ForwardRefExoticComponent<SnackbarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useToastOptions } from '@sk-web-gui/toast';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type OmittedTypes = 'title' | 'closeIcon' | 'onUndo' | 'undoText' | 'description';
|
|
4
|
+
export interface SnackbarProps extends Omit<useToastOptions, OmittedTypes> {
|
|
5
|
+
actionCallback?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
leadingIcon?: boolean;
|
|
7
|
+
action?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Snackbar: React.ForwardRefExoticComponent<SnackbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const useSnackbar: () => ({ position, duration, render, ...rest }: useToastOptions) => any;
|
|
11
|
+
export default useSnackbar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SnackbarProps } from '../src/snackbar';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, SnackbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Template: {
|
|
6
|
+
(args: SnackbarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
storyName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
export declare const SpinnerAnimation: {
|
|
2
|
+
nm: string;
|
|
3
|
+
ddd: number;
|
|
4
|
+
h: number;
|
|
5
|
+
w: number;
|
|
6
|
+
meta: {
|
|
7
|
+
g: string;
|
|
8
|
+
};
|
|
9
|
+
layers: {
|
|
10
|
+
ty: number;
|
|
11
|
+
nm: string;
|
|
12
|
+
sr: number;
|
|
13
|
+
st: number;
|
|
14
|
+
op: number;
|
|
15
|
+
ip: number;
|
|
16
|
+
hd: boolean;
|
|
17
|
+
ddd: number;
|
|
18
|
+
bm: number;
|
|
19
|
+
hasMask: boolean;
|
|
20
|
+
ao: number;
|
|
21
|
+
ks: {
|
|
22
|
+
a: {
|
|
23
|
+
a: number;
|
|
24
|
+
k: number[];
|
|
25
|
+
ix: number;
|
|
26
|
+
};
|
|
27
|
+
s: {
|
|
28
|
+
a: number;
|
|
29
|
+
k: number[];
|
|
30
|
+
ix: number;
|
|
31
|
+
};
|
|
32
|
+
sk: {
|
|
33
|
+
a: number;
|
|
34
|
+
k: number;
|
|
35
|
+
};
|
|
36
|
+
p: {
|
|
37
|
+
a: number;
|
|
38
|
+
k: number[];
|
|
39
|
+
ix: number;
|
|
40
|
+
};
|
|
41
|
+
r: {
|
|
42
|
+
a: number;
|
|
43
|
+
k: ({
|
|
44
|
+
o: {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
};
|
|
48
|
+
i: {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
};
|
|
52
|
+
s: number[];
|
|
53
|
+
t: number;
|
|
54
|
+
} | {
|
|
55
|
+
s: number[];
|
|
56
|
+
t: number;
|
|
57
|
+
o?: undefined;
|
|
58
|
+
i?: undefined;
|
|
59
|
+
})[];
|
|
60
|
+
ix: number;
|
|
61
|
+
};
|
|
62
|
+
sa: {
|
|
63
|
+
a: number;
|
|
64
|
+
k: number;
|
|
65
|
+
};
|
|
66
|
+
o: {
|
|
67
|
+
a: number;
|
|
68
|
+
k: number;
|
|
69
|
+
ix: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
ef: never[];
|
|
73
|
+
shapes: ({
|
|
74
|
+
ty: string;
|
|
75
|
+
bm: number;
|
|
76
|
+
hd: boolean;
|
|
77
|
+
mn: string;
|
|
78
|
+
nm: string;
|
|
79
|
+
ix: number;
|
|
80
|
+
cix: number;
|
|
81
|
+
np: number;
|
|
82
|
+
it: ({
|
|
83
|
+
ty: string;
|
|
84
|
+
bm: number;
|
|
85
|
+
hd: boolean;
|
|
86
|
+
mn: string;
|
|
87
|
+
nm: string;
|
|
88
|
+
ix: number;
|
|
89
|
+
d: number;
|
|
90
|
+
ks: {
|
|
91
|
+
a: number;
|
|
92
|
+
k: {
|
|
93
|
+
c: boolean;
|
|
94
|
+
i: number[][];
|
|
95
|
+
o: number[][];
|
|
96
|
+
v: number[][];
|
|
97
|
+
};
|
|
98
|
+
ix: number;
|
|
99
|
+
};
|
|
100
|
+
lc?: undefined;
|
|
101
|
+
lj?: undefined;
|
|
102
|
+
ml?: undefined;
|
|
103
|
+
o?: undefined;
|
|
104
|
+
w?: undefined;
|
|
105
|
+
c?: undefined;
|
|
106
|
+
a?: undefined;
|
|
107
|
+
s?: undefined;
|
|
108
|
+
sk?: undefined;
|
|
109
|
+
p?: undefined;
|
|
110
|
+
r?: undefined;
|
|
111
|
+
sa?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
ty: string;
|
|
114
|
+
bm: number;
|
|
115
|
+
hd: boolean;
|
|
116
|
+
mn: string;
|
|
117
|
+
nm: string;
|
|
118
|
+
lc: number;
|
|
119
|
+
lj: number;
|
|
120
|
+
ml: number;
|
|
121
|
+
o: {
|
|
122
|
+
a: number;
|
|
123
|
+
k: number;
|
|
124
|
+
ix: number;
|
|
125
|
+
};
|
|
126
|
+
w: {
|
|
127
|
+
a: number;
|
|
128
|
+
k: number;
|
|
129
|
+
ix: number;
|
|
130
|
+
};
|
|
131
|
+
c: {
|
|
132
|
+
a: number;
|
|
133
|
+
k: number[];
|
|
134
|
+
ix: number;
|
|
135
|
+
};
|
|
136
|
+
ix?: undefined;
|
|
137
|
+
d?: undefined;
|
|
138
|
+
ks?: undefined;
|
|
139
|
+
a?: undefined;
|
|
140
|
+
s?: undefined;
|
|
141
|
+
sk?: undefined;
|
|
142
|
+
p?: undefined;
|
|
143
|
+
r?: undefined;
|
|
144
|
+
sa?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
ty: string;
|
|
147
|
+
a: {
|
|
148
|
+
a: number;
|
|
149
|
+
k: number[];
|
|
150
|
+
ix: number;
|
|
151
|
+
};
|
|
152
|
+
s: {
|
|
153
|
+
a: number;
|
|
154
|
+
k: number[];
|
|
155
|
+
ix: number;
|
|
156
|
+
};
|
|
157
|
+
sk: {
|
|
158
|
+
a: number;
|
|
159
|
+
k: number;
|
|
160
|
+
ix: number;
|
|
161
|
+
};
|
|
162
|
+
p: {
|
|
163
|
+
a: number;
|
|
164
|
+
k: number[];
|
|
165
|
+
ix: number;
|
|
166
|
+
};
|
|
167
|
+
r: {
|
|
168
|
+
a: number;
|
|
169
|
+
k: number;
|
|
170
|
+
ix: number;
|
|
171
|
+
};
|
|
172
|
+
sa: {
|
|
173
|
+
a: number;
|
|
174
|
+
k: number;
|
|
175
|
+
ix: number;
|
|
176
|
+
};
|
|
177
|
+
o: {
|
|
178
|
+
a: number;
|
|
179
|
+
k: number;
|
|
180
|
+
ix: number;
|
|
181
|
+
};
|
|
182
|
+
bm?: undefined;
|
|
183
|
+
hd?: undefined;
|
|
184
|
+
mn?: undefined;
|
|
185
|
+
nm?: undefined;
|
|
186
|
+
ix?: undefined;
|
|
187
|
+
d?: undefined;
|
|
188
|
+
ks?: undefined;
|
|
189
|
+
lc?: undefined;
|
|
190
|
+
lj?: undefined;
|
|
191
|
+
ml?: undefined;
|
|
192
|
+
w?: undefined;
|
|
193
|
+
c?: undefined;
|
|
194
|
+
})[];
|
|
195
|
+
e?: undefined;
|
|
196
|
+
o?: undefined;
|
|
197
|
+
s?: undefined;
|
|
198
|
+
m?: undefined;
|
|
199
|
+
} | {
|
|
200
|
+
ty: string;
|
|
201
|
+
bm: number;
|
|
202
|
+
hd: boolean;
|
|
203
|
+
mn: string;
|
|
204
|
+
nm: string;
|
|
205
|
+
ix: number;
|
|
206
|
+
e: {
|
|
207
|
+
a: number;
|
|
208
|
+
k: ({
|
|
209
|
+
o: {
|
|
210
|
+
x: number;
|
|
211
|
+
y: number;
|
|
212
|
+
};
|
|
213
|
+
i: {
|
|
214
|
+
x: number;
|
|
215
|
+
y: number;
|
|
216
|
+
};
|
|
217
|
+
s: number[];
|
|
218
|
+
t: number;
|
|
219
|
+
} | {
|
|
220
|
+
s: number[];
|
|
221
|
+
t: number;
|
|
222
|
+
o?: undefined;
|
|
223
|
+
i?: undefined;
|
|
224
|
+
})[];
|
|
225
|
+
ix: number;
|
|
226
|
+
};
|
|
227
|
+
o: {
|
|
228
|
+
a: number;
|
|
229
|
+
k: number;
|
|
230
|
+
ix: number;
|
|
231
|
+
};
|
|
232
|
+
s: {
|
|
233
|
+
a: number;
|
|
234
|
+
k: ({
|
|
235
|
+
o: {
|
|
236
|
+
x: number;
|
|
237
|
+
y: number;
|
|
238
|
+
};
|
|
239
|
+
i: {
|
|
240
|
+
x: number;
|
|
241
|
+
y: number;
|
|
242
|
+
};
|
|
243
|
+
s: number[];
|
|
244
|
+
t: number;
|
|
245
|
+
} | {
|
|
246
|
+
s: number[];
|
|
247
|
+
t: number;
|
|
248
|
+
o?: undefined;
|
|
249
|
+
i?: undefined;
|
|
250
|
+
})[];
|
|
251
|
+
ix: number;
|
|
252
|
+
};
|
|
253
|
+
m: number;
|
|
254
|
+
cix?: undefined;
|
|
255
|
+
np?: undefined;
|
|
256
|
+
it?: undefined;
|
|
257
|
+
})[];
|
|
258
|
+
ind: number;
|
|
259
|
+
}[];
|
|
260
|
+
v: string;
|
|
261
|
+
fr: number;
|
|
262
|
+
op: number;
|
|
263
|
+
ip: number;
|
|
264
|
+
assets: never[];
|
|
265
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SpinnerProps extends DefaultProps, Omit<React.ComponentPropsWithRef<'div'>, 'color'> {
|
|
4
|
+
/** Set size of the spinner in rem
|
|
5
|
+
* @default 4
|
|
6
|
+
*/
|
|
7
|
+
size?: number;
|
|
8
|
+
/** Set color of the spinner
|
|
9
|
+
* @default tertiary
|
|
10
|
+
*/
|
|
11
|
+
color?: 'tertiary' | 'vattjom' | 'gronsta' | 'bjornstigen' | 'juniskar' | 'warning' | 'info' | 'success' | 'error';
|
|
12
|
+
}
|
|
13
|
+
export declare const Spinner: React.ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default Spinner;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpinnerProps } from '../src';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, Omit<SpinnerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Template: {
|
|
6
|
+
(args: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
storyName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TableComponentProps } from './table';
|
|
4
|
+
type TableValue = any;
|
|
5
|
+
type TableItem = Record<string | number, TableValue>;
|
|
6
|
+
export declare enum SortMode {
|
|
7
|
+
ASC = "ascending",
|
|
8
|
+
DESC = "descending"
|
|
9
|
+
}
|
|
10
|
+
export interface AutoTableHeader {
|
|
11
|
+
property?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
isColumnSortable?: boolean;
|
|
14
|
+
isShown?: boolean;
|
|
15
|
+
screenReaderOnly?: boolean;
|
|
16
|
+
columnPosition?: 'left' | 'center' | 'right';
|
|
17
|
+
sticky?: boolean;
|
|
18
|
+
renderColumn?: (value: TableValue, item: TableItem) => JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export interface TableHeader {
|
|
21
|
+
element: JSX.Element;
|
|
22
|
+
isColumnSortable?: boolean;
|
|
23
|
+
isShown?: boolean;
|
|
24
|
+
screenReaderOnly?: boolean;
|
|
25
|
+
sticky?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface AutoTableColumn {
|
|
28
|
+
element: JSX.Element;
|
|
29
|
+
isShown?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface AutoTableProps extends DefaultProps, TableComponentProps {
|
|
32
|
+
autoheaders?: Array<AutoTableHeader | string>;
|
|
33
|
+
autodata?: Array<TableItem>;
|
|
34
|
+
handleSort?: (colIndex: number, asc: boolean) => void;
|
|
35
|
+
tableSortable?: boolean;
|
|
36
|
+
sortedOrder?: SortMode;
|
|
37
|
+
pageSize?: number;
|
|
38
|
+
page?: number;
|
|
39
|
+
captionTitle?: string;
|
|
40
|
+
captionBody?: string;
|
|
41
|
+
captionClassName?: string;
|
|
42
|
+
captionShowPages?: boolean;
|
|
43
|
+
highlightedItemIndex?: number;
|
|
44
|
+
changePage?: (page: number) => void;
|
|
45
|
+
footer?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare const AutoTable: React.ForwardRefExoticComponent<Omit<AutoTableProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
48
|
+
export default AutoTable;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TableComponent, TableComponentProps } from './table';
|
|
3
|
+
import { TableFooter } from './table-footer';
|
|
4
|
+
import { TableHeader } from './table-header';
|
|
5
|
+
import { TableHeaderColumn } from './table-header-column';
|
|
6
|
+
import { TableBody } from './table-body';
|
|
7
|
+
import { TableRow } from './table-row';
|
|
8
|
+
import { TableRowColumn } from './table-row-column';
|
|
9
|
+
import { TableSortButton } from './table-sort-button';
|
|
10
|
+
import AutoTable, { AutoTableProps, SortMode, AutoTableHeader } from './auto-table';
|
|
11
|
+
interface TableProps extends TableComponentProps, React.ForwardRefExoticComponent<TableComponentProps> {
|
|
12
|
+
Component: typeof TableComponent;
|
|
13
|
+
Header: typeof TableHeader;
|
|
14
|
+
HeaderColumn: typeof TableHeaderColumn;
|
|
15
|
+
SortButton: typeof TableSortButton;
|
|
16
|
+
Body: typeof TableBody;
|
|
17
|
+
Row: typeof TableRow;
|
|
18
|
+
Column: typeof TableRowColumn;
|
|
19
|
+
Footer: typeof TableFooter;
|
|
20
|
+
}
|
|
21
|
+
declare const Table: TableProps;
|
|
22
|
+
export { Table, AutoTable, SortMode };
|
|
23
|
+
export type { TableProps, AutoTableProps, AutoTableHeader };
|
|
24
|
+
export default Table;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TableHeaderColumnProps extends React.ComponentPropsWithoutRef<'th'> {
|
|
3
|
+
sticky?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const TableHeaderColumn: React.ForwardRefExoticComponent<TableHeaderColumnProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TableHeaderProps extends React.ComponentPropsWithoutRef<'tr'> {
|
|
3
|
+
background?: boolean;
|
|
4
|
+
sticky?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const TableHeader: React.ForwardRefExoticComponent<TableHeaderProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TableRowColumnProps extends React.ComponentPropsWithoutRef<'td'> {
|
|
3
|
+
sticky?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const TableRowColumn: React.ForwardRefExoticComponent<TableRowColumnProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SortMode } from './auto-table';
|
|
4
|
+
export interface ITableSortButtonProps extends DefaultProps, React.ComponentPropsWithoutRef<'button'> {
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
sortOrder: SortMode.ASC | SortMode.DESC | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const TableSortButton: React.ForwardRefExoticComponent<ITableSortButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface TableComponentProps extends DefaultProps, React.ComponentPropsWithRef<'table'> {
|
|
4
|
+
background?: boolean;
|
|
5
|
+
dense?: boolean;
|
|
6
|
+
scrollable?: 'x' | 'y' | boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const TableComponent: React.ForwardRefExoticComponent<Omit<TableComponentProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
|
+
export default TableComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AutoTableProps } from '../src/auto-table';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, Omit<AutoTableProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Template: {
|
|
6
|
+
(args: AutoTableProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
story: {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
};
|