@sk-web-gui/core 2.4.0 → 3.0.1
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/aria-plugin.js.map +1 -1
- package/dist/cjs/base.js +2 -2
- package/dist/cjs/base.js.map +1 -1
- package/dist/cjs/colors.js.map +1 -1
- package/dist/cjs/components/accordion.js +16 -6
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/alert.js.map +1 -1
- package/dist/cjs/components/avatar.js +3 -3
- package/dist/cjs/components/avatar.js.map +1 -1
- package/dist/cjs/components/badge.js +1 -1
- package/dist/cjs/components/badge.js.map +1 -1
- package/dist/cjs/components/breadcrumb.js +1 -1
- package/dist/cjs/components/breadcrumb.js.map +1 -1
- package/dist/cjs/components/button-group.js +1 -1
- package/dist/cjs/components/button-group.js.map +1 -1
- package/dist/cjs/components/button.js +12 -18
- package/dist/cjs/components/button.js.map +1 -1
- package/dist/cjs/components/card.js +12 -12
- package/dist/cjs/components/card.js.map +1 -1
- package/dist/cjs/components/checkbox.js +6 -6
- package/dist/cjs/components/checkbox.js.map +1 -1
- package/dist/cjs/components/chip.js +5 -2
- package/dist/cjs/components/chip.js.map +1 -1
- package/dist/cjs/components/code.js.map +1 -1
- package/dist/cjs/components/combobox.js +7 -7
- package/dist/cjs/components/combobox.js.map +1 -1
- package/dist/cjs/components/cookie-consent.js +2 -2
- package/dist/cjs/components/cookie-consent.js.map +1 -1
- package/dist/cjs/components/dialog.js +1 -1
- package/dist/cjs/components/dialog.js.map +1 -1
- package/dist/cjs/components/divider.js +3 -3
- package/dist/cjs/components/divider.js.map +1 -1
- package/dist/cjs/components/dot.js.map +1 -1
- package/dist/cjs/components/filter.js.map +1 -1
- package/dist/cjs/components/footer.js +2 -2
- package/dist/cjs/components/footer.js.map +1 -1
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/icon.js +1 -1
- package/dist/cjs/components/icon.js.map +1 -1
- package/dist/cjs/components/input.js +12 -17
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/kbd.js.map +1 -1
- package/dist/cjs/components/label.js.map +1 -1
- package/dist/cjs/components/link.js +3 -3
- package/dist/cjs/components/link.js.map +1 -1
- package/dist/cjs/components/list.js +5 -5
- package/dist/cjs/components/list.js.map +1 -1
- package/dist/cjs/components/logo.js +3 -3
- package/dist/cjs/components/logo.js.map +1 -1
- package/dist/cjs/components/menu-vertical.js +19 -36
- package/dist/cjs/components/menu-vertical.js.map +1 -1
- package/dist/cjs/components/menubar.js.map +1 -1
- package/dist/cjs/components/modal.js.map +1 -1
- package/dist/cjs/components/pagination.js +1 -1
- package/dist/cjs/components/pagination.js.map +1 -1
- package/dist/cjs/components/popup-menu.js +9 -9
- package/dist/cjs/components/popup-menu.js.map +1 -1
- package/dist/cjs/components/progress-bar.js +1 -1
- package/dist/cjs/components/progress-bar.js.map +1 -1
- package/dist/cjs/components/progress-stepper.js +5 -5
- package/dist/cjs/components/progress-stepper.js.map +1 -1
- package/dist/cjs/components/radio.js +4 -4
- package/dist/cjs/components/radio.js.map +1 -1
- package/dist/cjs/components/search-field.js +4 -4
- package/dist/cjs/components/search-field.js.map +1 -1
- package/dist/cjs/components/select.js +18 -18
- package/dist/cjs/components/select.js.map +1 -1
- package/dist/cjs/components/snackbar.js +1 -1
- package/dist/cjs/components/snackbar.js.map +1 -1
- package/dist/cjs/components/spinner.js +3 -0
- package/dist/cjs/components/spinner.js.map +1 -1
- package/dist/cjs/components/switch.js +2 -2
- package/dist/cjs/components/switch.js.map +1 -1
- package/dist/cjs/components/table-autotable.js +8 -7
- package/dist/cjs/components/table-autotable.js.map +1 -1
- package/dist/cjs/components/table.js.map +1 -1
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/tooltip.js +7 -7
- package/dist/cjs/components/tooltip.js.map +1 -1
- package/dist/cjs/components/user-menu.js.map +1 -1
- package/dist/cjs/data-plugin.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/preset.js.map +1 -1
- package/dist/cjs/theme.js +19 -18
- package/dist/cjs/theme.js.map +1 -1
- package/dist/cjs/units.js +37 -1
- package/dist/cjs/units.js.map +1 -1
- package/dist/cjs/with-opacity.js.map +1 -1
- package/dist/esm/aria-plugin.js.map +1 -1
- package/dist/esm/base.js +2 -2
- package/dist/esm/base.js.map +1 -1
- package/dist/esm/colors.js.map +1 -1
- package/dist/esm/components/accordion.js +16 -6
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/alert.js.map +1 -1
- package/dist/esm/components/avatar.js +3 -3
- package/dist/esm/components/avatar.js.map +1 -1
- package/dist/esm/components/badge.js +1 -1
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/breadcrumb.js +1 -1
- package/dist/esm/components/breadcrumb.js.map +1 -1
- package/dist/esm/components/button-group.js +1 -1
- package/dist/esm/components/button-group.js.map +1 -1
- package/dist/esm/components/button.js +12 -18
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/card.js +12 -12
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/checkbox.js +6 -6
- package/dist/esm/components/checkbox.js.map +1 -1
- package/dist/esm/components/chip.js +5 -2
- package/dist/esm/components/chip.js.map +1 -1
- package/dist/esm/components/code.js.map +1 -1
- package/dist/esm/components/combobox.js +7 -7
- package/dist/esm/components/combobox.js.map +1 -1
- package/dist/esm/components/cookie-consent.js +2 -2
- package/dist/esm/components/cookie-consent.js.map +1 -1
- package/dist/esm/components/dialog.js +1 -1
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/components/divider.js +3 -3
- package/dist/esm/components/divider.js.map +1 -1
- package/dist/esm/components/dot.js.map +1 -1
- package/dist/esm/components/filter.js.map +1 -1
- package/dist/esm/components/footer.js +2 -2
- package/dist/esm/components/footer.js.map +1 -1
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/icon.js +1 -1
- package/dist/esm/components/icon.js.map +1 -1
- package/dist/esm/components/input.js +12 -17
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/kbd.js.map +1 -1
- package/dist/esm/components/label.js.map +1 -1
- package/dist/esm/components/link.js +3 -3
- package/dist/esm/components/link.js.map +1 -1
- package/dist/esm/components/list.js +5 -5
- package/dist/esm/components/list.js.map +1 -1
- package/dist/esm/components/logo.js +3 -3
- package/dist/esm/components/logo.js.map +1 -1
- package/dist/esm/components/menu-vertical.js +19 -36
- package/dist/esm/components/menu-vertical.js.map +1 -1
- package/dist/esm/components/menubar.js.map +1 -1
- package/dist/esm/components/modal.js.map +1 -1
- package/dist/esm/components/pagination.js +1 -1
- package/dist/esm/components/pagination.js.map +1 -1
- package/dist/esm/components/popup-menu.js +9 -9
- package/dist/esm/components/popup-menu.js.map +1 -1
- package/dist/esm/components/progress-bar.js +1 -1
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/esm/components/progress-stepper.js +5 -5
- package/dist/esm/components/progress-stepper.js.map +1 -1
- package/dist/esm/components/radio.js +4 -4
- package/dist/esm/components/radio.js.map +1 -1
- package/dist/esm/components/search-field.js +4 -4
- package/dist/esm/components/search-field.js.map +1 -1
- package/dist/esm/components/select.js +18 -18
- package/dist/esm/components/select.js.map +1 -1
- package/dist/esm/components/snackbar.js +1 -1
- package/dist/esm/components/snackbar.js.map +1 -1
- package/dist/esm/components/spinner.js +3 -0
- package/dist/esm/components/spinner.js.map +1 -1
- package/dist/esm/components/switch.js +2 -2
- package/dist/esm/components/switch.js.map +1 -1
- package/dist/esm/components/table-autotable.js +8 -7
- package/dist/esm/components/table-autotable.js.map +1 -1
- package/dist/esm/components/table.js.map +1 -1
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/tooltip.js +7 -7
- package/dist/esm/components/tooltip.js.map +1 -1
- package/dist/esm/components/user-menu.js.map +1 -1
- package/dist/esm/data-plugin.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/preset.js.map +1 -1
- package/dist/esm/theme.js +21 -18
- package/dist/esm/theme.js.map +1 -1
- package/dist/esm/units.js +37 -1
- package/dist/esm/units.js.map +1 -1
- package/dist/esm/with-opacity.js.map +1 -1
- package/dist/types/base.d.ts +1 -1
- package/dist/types/components/accordion.d.ts +13 -3
- package/dist/types/components/avatar.d.ts +3 -3
- package/dist/types/components/badge.d.ts +1 -1
- package/dist/types/components/breadcrumb.d.ts +1 -1
- package/dist/types/components/button-group.d.ts +1 -1
- package/dist/types/components/button.d.ts +12 -18
- package/dist/types/components/card.d.ts +12 -12
- package/dist/types/components/checkbox.d.ts +6 -6
- package/dist/types/components/chip.d.ts +5 -2
- package/dist/types/components/combobox.d.ts +7 -7
- package/dist/types/components/cookie-consent.d.ts +2 -2
- package/dist/types/components/dialog.d.ts +1 -1
- package/dist/types/components/divider.d.ts +3 -3
- package/dist/types/components/footer.d.ts +2 -2
- package/dist/types/components/icon.d.ts +1 -1
- package/dist/types/components/input.d.ts +12 -12
- package/dist/types/components/link.d.ts +3 -3
- package/dist/types/components/list.d.ts +5 -5
- package/dist/types/components/logo.d.ts +3 -3
- package/dist/types/components/menu-vertical.d.ts +19 -36
- package/dist/types/components/pagination.d.ts +1 -1
- package/dist/types/components/popup-menu.d.ts +9 -9
- package/dist/types/components/progress-bar.d.ts +1 -1
- package/dist/types/components/progress-stepper.d.ts +5 -5
- package/dist/types/components/radio.d.ts +4 -4
- package/dist/types/components/search-field.d.ts +4 -4
- package/dist/types/components/select.d.ts +18 -18
- package/dist/types/components/snackbar.d.ts +1 -1
- package/dist/types/components/spinner.d.ts +3 -0
- package/dist/types/components/switch.d.ts +1 -1
- package/dist/types/components/table-autotable.d.ts +8 -7
- package/dist/types/components/tooltip.d.ts +7 -7
- package/dist/types/units.d.ts +36 -0
- package/package.json +10 -15
- package/dist/types/accordion/index.d.ts +0 -2
- package/dist/types/accordion/src/accordion/accordion-item.d.ts +0 -8
- package/dist/types/accordion/src/accordion/accordion.d.ts +0 -25
- package/dist/types/accordion/src/accordion/index.d.ts +0 -10
- package/dist/types/accordion/src/disclosure/disclosure.d.ts +0 -53
- package/dist/types/accordion/src/disclosure/index.d.ts +0 -4
- package/dist/types/accordion/src/disclosure/styles.d.ts +0 -1
- package/dist/types/accordion/src/index.d.ts +0 -4
- package/dist/types/accordion/stories/accordion.stories.d.ts +0 -8
- package/dist/types/accordion/stories/disclosure.stories.d.ts +0 -9
- package/dist/types/avatar/index.d.ts +0 -2
- package/dist/types/avatar/src/avatar.d.ts +0 -17
- package/dist/types/avatar/src/index.d.ts +0 -8
- package/dist/types/avatar/stories/avatar.stories.d.ts +0 -8
- package/dist/types/badge/index.d.ts +0 -2
- package/dist/types/badge/src/badge.d.ts +0 -12
- package/dist/types/badge/src/index.d.ts +0 -8
- package/dist/types/badge/stories/badge.stories.d.ts +0 -8
- package/dist/types/breadcrumb/index.d.ts +0 -2
- package/dist/types/breadcrumb/src/breadcrumb.d.ts +0 -41
- package/dist/types/breadcrumb/src/index.d.ts +0 -11
- package/dist/types/breadcrumb/stories/breadcrumb.stories.d.ts +0 -7
- package/dist/types/button/index.d.ts +0 -2
- package/dist/types/button/src/button-group.d.ts +0 -15
- package/dist/types/button/src/button.d.ts +0 -49
- package/dist/types/button/src/index.d.ts +0 -11
- package/dist/types/button/src/styles.d.ts +0 -1
- package/dist/types/button/stories/announcement.d.ts +0 -5
- package/dist/types/button/stories/button-group.stories.d.ts +0 -8
- package/dist/types/button/stories/button.stories.d.ts +0 -7
- package/dist/types/card/index.d.ts +0 -2
- package/dist/types/card/src/card.d.ts +0 -60
- package/dist/types/card/src/index.d.ts +0 -21
- package/dist/types/card/src/meta-card.d.ts +0 -42
- package/dist/types/card/stories/card.stories.d.ts +0 -4
- package/dist/types/card/stories/meta-card.stories.d.ts +0 -4
- package/dist/types/chip/index.d.ts +0 -2
- package/dist/types/chip/src/chip.d.ts +0 -7
- package/dist/types/chip/src/index.d.ts +0 -4
- package/dist/types/chip/stories/chip.stories.d.ts +0 -12
- package/dist/types/cookie-consent/index.d.ts +0 -2
- package/dist/types/cookie-consent/src/cookie-consent.d.ts +0 -32
- package/dist/types/cookie-consent/src/index.d.ts +0 -15
- package/dist/types/cookie-consent/stories/cookie-consent.stories.d.ts +0 -7
- package/dist/types/core/src/aria-plugin.d.ts +0 -4
- package/dist/types/core/src/base.d.ts +0 -53
- package/dist/types/core/src/colors.d.ts +0 -643
- package/dist/types/core/src/components/accordion.d.ts +0 -164
- package/dist/types/core/src/components/alert.d.ts +0 -21
- package/dist/types/core/src/components/avatar.d.ts +0 -26
- package/dist/types/core/src/components/badge.d.ts +0 -21
- package/dist/types/core/src/components/breadcrumb.d.ts +0 -28
- package/dist/types/core/src/components/button-group.d.ts +0 -25
- package/dist/types/core/src/components/button.d.ts +0 -201
- package/dist/types/core/src/components/card.d.ts +0 -135
- package/dist/types/core/src/components/checkbox.d.ts +0 -108
- package/dist/types/core/src/components/chip.d.ts +0 -34
- package/dist/types/core/src/components/code.d.ts +0 -8
- package/dist/types/core/src/components/combobox.d.ts +0 -72
- package/dist/types/core/src/components/cookie-consent.d.ts +0 -35
- package/dist/types/core/src/components/dialog.d.ts +0 -5
- package/dist/types/core/src/components/divider.d.ts +0 -50
- package/dist/types/core/src/components/dot.d.ts +0 -43
- package/dist/types/core/src/components/filter.d.ts +0 -14
- package/dist/types/core/src/components/footer.d.ts +0 -27
- package/dist/types/core/src/components/forms.d.ts +0 -24
- package/dist/types/core/src/components/header.d.ts +0 -28
- package/dist/types/core/src/components/icon.d.ts +0 -38
- package/dist/types/core/src/components/input.d.ts +0 -214
- package/dist/types/core/src/components/kbd.d.ts +0 -7
- package/dist/types/core/src/components/label.d.ts +0 -27
- package/dist/types/core/src/components/link.d.ts +0 -43
- package/dist/types/core/src/components/list.d.ts +0 -52
- package/dist/types/core/src/components/logo.d.ts +0 -48
- package/dist/types/core/src/components/menu-vertical.d.ts +0 -215
- package/dist/types/core/src/components/menubar.d.ts +0 -35
- package/dist/types/core/src/components/modal.d.ts +0 -45
- package/dist/types/core/src/components/pagination.d.ts +0 -101
- package/dist/types/core/src/components/popup-menu.d.ts +0 -138
- package/dist/types/core/src/components/progress-bar.d.ts +0 -13
- package/dist/types/core/src/components/progress-stepper.d.ts +0 -60
- package/dist/types/core/src/components/radio.d.ts +0 -125
- package/dist/types/core/src/components/search-field.d.ts +0 -34
- package/dist/types/core/src/components/select.d.ts +0 -141
- package/dist/types/core/src/components/snackbar.d.ts +0 -30
- package/dist/types/core/src/components/spinner.d.ts +0 -10
- package/dist/types/core/src/components/switch.d.ts +0 -64
- package/dist/types/core/src/components/table-autotable.d.ts +0 -221
- package/dist/types/core/src/components/table.d.ts +0 -11
- package/dist/types/core/src/components/tabs.d.ts +0 -14
- package/dist/types/core/src/components/tooltip.d.ts +0 -53
- package/dist/types/core/src/components/user-menu.d.ts +0 -14
- package/dist/types/core/src/data-plugin.d.ts +0 -4
- package/dist/types/core/src/index.d.ts +0 -6
- package/dist/types/core/src/plugin.d.ts +0 -12
- package/dist/types/core/src/preset.d.ts +0 -18
- package/dist/types/core/src/theme.d.ts +0 -4
- package/dist/types/core/src/units.d.ts +0 -251
- package/dist/types/core/src/with-opacity.d.ts +0 -4
- package/dist/types/divider/index.d.ts +0 -2
- package/dist/types/divider/src/divider-section.d.ts +0 -12
- package/dist/types/divider/src/divider.d.ts +0 -8
- package/dist/types/divider/src/index.d.ts +0 -10
- package/dist/types/divider/src/styles.d.ts +0 -1
- package/dist/types/divider/stories/divider-section.stories.d.ts +0 -8
- package/dist/types/divider/stories/divider.stories.d.ts +0 -8
- package/dist/types/filter/index.d.ts +0 -2
- package/dist/types/filter/src/filter-item.d.ts +0 -7
- package/dist/types/filter/src/filter-label.d.ts +0 -7
- package/dist/types/filter/src/filter.d.ts +0 -6
- package/dist/types/filter/src/index.d.ts +0 -12
- package/dist/types/filter/stories/filter.stories.d.ts +0 -7
- package/dist/types/forms/index.d.ts +0 -2
- package/dist/types/forms/src/checkbox/checkbox-group.d.ts +0 -46
- package/dist/types/forms/src/checkbox/checkbox.d.ts +0 -39
- package/dist/types/forms/src/checkbox/index.d.ts +0 -10
- package/dist/types/forms/src/checkbox/styles.d.ts +0 -2
- package/dist/types/forms/src/combobox/combobox-context.d.ts +0 -42
- package/dist/types/forms/src/combobox/combobox-input.d.ts +0 -44
- package/dist/types/forms/src/combobox/combobox-list.d.ts +0 -8
- package/dist/types/forms/src/combobox/combobox-option.d.ts +0 -11
- package/dist/types/forms/src/combobox/combobox.d.ts +0 -6
- package/dist/types/forms/src/combobox/index.d.ts +0 -15
- package/dist/types/forms/src/combobox/styles.d.ts +0 -1
- package/dist/types/forms/src/date-picker/date-picker.d.ts +0 -7
- package/dist/types/forms/src/date-picker/index.d.ts +0 -8
- package/dist/types/forms/src/form-control/index.d.ts +0 -40
- package/dist/types/forms/src/form-error-message/index.d.ts +0 -8
- package/dist/types/forms/src/form-helper-text/index.d.ts +0 -8
- package/dist/types/forms/src/form-label/index.d.ts +0 -20
- package/dist/types/forms/src/index.d.ts +0 -26
- package/dist/types/forms/src/input/index.d.ts +0 -13
- package/dist/types/forms/src/input/input.d.ts +0 -26
- package/dist/types/forms/src/input/styles.d.ts +0 -1
- package/dist/types/forms/src/input-addin/index.d.ts +0 -12
- package/dist/types/forms/src/input-group/index.d.ts +0 -11
- package/dist/types/forms/src/input-group/styles.d.ts +0 -1
- package/dist/types/forms/src/radio/index.d.ts +0 -10
- package/dist/types/forms/src/radio/radio-group.d.ts +0 -48
- package/dist/types/forms/src/radio/radio.d.ts +0 -32
- package/dist/types/forms/src/radio/styles.d.ts +0 -3
- package/dist/types/forms/src/select/index.d.ts +0 -18
- package/dist/types/forms/src/select/styles.d.ts +0 -1
- package/dist/types/forms/src/switch/index.d.ts +0 -8
- package/dist/types/forms/src/switch/switchcomponent.d.ts +0 -9
- package/dist/types/forms/src/text-field/index.d.ts +0 -8
- package/dist/types/forms/src/text-field/text-field.d.ts +0 -6
- package/dist/types/forms/src/textarea/index.d.ts +0 -12
- package/dist/types/forms/stories/check.d.ts +0 -5
- package/dist/types/forms/stories/checkbox-group.stories.d.ts +0 -11
- package/dist/types/forms/stories/checkbox.stories.d.ts +0 -8
- package/dist/types/forms/stories/combobox.stories.d.ts +0 -19
- package/dist/types/forms/stories/date-picker.stories.d.ts +0 -21
- package/dist/types/forms/stories/form-control.stories.d.ts +0 -10
- package/dist/types/forms/stories/input.stories.d.ts +0 -21
- package/dist/types/forms/stories/radio-group.stories.d.ts +0 -11
- package/dist/types/forms/stories/radio.stories.d.ts +0 -14
- package/dist/types/forms/stories/select.stories.d.ts +0 -10
- package/dist/types/forms/stories/switch.stories.d.ts +0 -8
- package/dist/types/forms/stories/text-field.stories.d.ts +0 -18
- package/dist/types/forms/stories/textarea.stories.d.ts +0 -42
- package/dist/types/icon/index.d.ts +0 -2
- package/dist/types/icon/src/icon-padded.d.ts +0 -4
- package/dist/types/icon/src/icon.d.ts +0 -20
- package/dist/types/icon/src/index.d.ts +0 -10
- package/dist/types/icon/stories/icon-padded.stories.d.ts +0 -8
- package/dist/types/icon/stories/icon.stories.d.ts +0 -8
- package/dist/types/image/index.d.ts +0 -2
- package/dist/types/image/src/image.d.ts +0 -28
- package/dist/types/image/src/index.d.ts +0 -4
- package/dist/types/image/src/use-image.d.ts +0 -52
- package/dist/types/image/stories/image.stories.d.ts +0 -8
- package/dist/types/label/index.d.ts +0 -2
- package/dist/types/label/src/index.d.ts +0 -8
- package/dist/types/label/src/label.d.ts +0 -8
- package/dist/types/label/stories/label.stories.d.ts +0 -8
- package/dist/types/layout/index.d.ts +0 -2
- package/dist/types/layout/src/footer/footer-list-item.d.ts +0 -4
- package/dist/types/layout/src/footer/footer-list.d.ts +0 -4
- package/dist/types/layout/src/footer/footer.d.ts +0 -6
- package/dist/types/layout/src/footer/index.d.ts +0 -14
- package/dist/types/layout/src/header/header.d.ts +0 -17
- package/dist/types/layout/src/header/index.d.ts +0 -8
- package/dist/types/layout/src/index.d.ts +0 -4
- package/dist/types/layout/stories/footer.stories.d.ts +0 -7
- package/dist/types/layout/stories/header.stories.d.ts +0 -5
- package/dist/types/link/index.d.ts +0 -2
- package/dist/types/link/src/index.d.ts +0 -12
- package/dist/types/link/src/link.d.ts +0 -21
- package/dist/types/link/src/styles.d.ts +0 -1
- package/dist/types/link/stories/link.stories.d.ts +0 -12
- package/dist/types/list/index.d.ts +0 -2
- package/dist/types/list/src/index.d.ts +0 -12
- package/dist/types/list/src/list.d.ts +0 -28
- package/dist/types/list/stories/list.stories.d.ts +0 -7
- package/dist/types/logo/index.d.ts +0 -2
- package/dist/types/logo/src/assets/index.d.ts +0 -2
- package/dist/types/logo/src/assets/logo-svg.d.ts +0 -2
- package/dist/types/logo/src/assets/symbol-svg.d.ts +0 -2
- package/dist/types/logo/src/index.d.ts +0 -4
- package/dist/types/logo/src/logo.d.ts +0 -38
- package/dist/types/logo/stories/logo.stories.d.ts +0 -8
- package/dist/types/menu-vertical/index.d.ts +0 -2
- package/dist/types/menu-vertical/src/index.d.ts +0 -25
- package/dist/types/menu-vertical/src/menu-vertical-backbutton.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical-context.d.ts +0 -62
- package/dist/types/menu-vertical/src/menu-vertical-header.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical-item.d.ts +0 -26
- package/dist/types/menu-vertical/src/menu-vertical-label.d.ts +0 -7
- package/dist/types/menu-vertical/src/menu-vertical-nav.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical-sidebar.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical-submenu-button.d.ts +0 -25
- package/dist/types/menu-vertical/src/menu-vertical-tool-item.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical.d.ts +0 -14
- package/dist/types/menu-vertical/stories/menu-vertical-sidebar.stories.d.ts +0 -8
- package/dist/types/menu-vertical/stories/menu-vertical.stories.d.ts +0 -8
- package/dist/types/menubar/index.d.ts +0 -2
- package/dist/types/menubar/src/index.d.ts +0 -11
- package/dist/types/menubar/src/menubar-item.d.ts +0 -15
- package/dist/types/menubar/src/menubar.d.ts +0 -18
- package/dist/types/menubar/stories/menubar.stories.d.ts +0 -7
- package/dist/types/modal/index.d.ts +0 -2
- package/dist/types/modal/src/confirm/confirm.d.ts +0 -17
- package/dist/types/modal/src/confirm/index.d.ts +0 -1
- package/dist/types/modal/src/dialog/dialog-buttons.d.ts +0 -6
- package/dist/types/modal/src/dialog/dialog-content.d.ts +0 -6
- package/dist/types/modal/src/dialog/dialog.d.ts +0 -7
- package/dist/types/modal/src/dialog/index.d.ts +0 -12
- package/dist/types/modal/src/index.d.ts +0 -6
- package/dist/types/modal/src/modal/index.d.ts +0 -13
- package/dist/types/modal/src/modal/modal-content.d.ts +0 -5
- package/dist/types/modal/src/modal/modal-footer.d.ts +0 -5
- package/dist/types/modal/src/modal/modal.d.ts +0 -27
- package/dist/types/modal/stories/confirm.stories.d.ts +0 -10
- package/dist/types/modal/stories/dialog.stories.d.ts +0 -6
- package/dist/types/modal/stories/modal.stories.d.ts +0 -7
- package/dist/types/pagination/index.d.ts +0 -2
- package/dist/types/pagination/src/index.d.ts +0 -8
- package/dist/types/pagination/src/pagination.d.ts +0 -19
- package/dist/types/pagination/src/styles.d.ts +0 -1
- package/dist/types/pagination/stories/pagination.stories.d.ts +0 -8
- package/dist/types/popup-menu/index.d.ts +0 -2
- package/dist/types/popup-menu/src/index.d.ts +0 -18
- package/dist/types/popup-menu/src/popup-menu-button.d.ts +0 -2
- package/dist/types/popup-menu/src/popup-menu-group.d.ts +0 -5
- package/dist/types/popup-menu/src/popup-menu-item.d.ts +0 -11
- package/dist/types/popup-menu/src/popup-menu-items.d.ts +0 -20
- package/dist/types/popup-menu/src/popup-menu-panel.d.ts +0 -6
- package/dist/types/popup-menu/src/popup-menu.d.ts +0 -53
- package/dist/types/popup-menu/src/popupmenu-context.d.ts +0 -18
- package/dist/types/popup-menu/src/styles.d.ts +0 -1
- package/dist/types/popup-menu/stories/popup-menu.stories.d.ts +0 -9
- package/dist/types/progress-bar/index.d.ts +0 -2
- package/dist/types/progress-bar/src/index.d.ts +0 -8
- package/dist/types/progress-bar/src/progress-bar.d.ts +0 -18
- package/dist/types/progress-bar/src/styles.d.ts +0 -0
- package/dist/types/progress-bar/stories/progress-bar.stories.d.ts +0 -8
- package/dist/types/progress-stepper/index.d.ts +0 -2
- package/dist/types/progress-stepper/src/index.d.ts +0 -8
- package/dist/types/progress-stepper/src/progress-step.d.ts +0 -13
- package/dist/types/progress-stepper/src/progress-stepper.d.ts +0 -12
- package/dist/types/progress-stepper/stories/progress-stepper.stories.d.ts +0 -8
- package/dist/types/react/index.d.ts +0 -2
- package/dist/types/react/src/index.d.ts +0 -70
- package/dist/types/searchfield/index.d.ts +0 -2
- package/dist/types/searchfield/src/index.d.ts +0 -18
- package/dist/types/searchfield/src/searchfield-suggestions-input.d.ts +0 -9
- package/dist/types/searchfield/src/searchfield-suggestions-list.d.ts +0 -5
- package/dist/types/searchfield/src/searchfield-suggestions-option.d.ts +0 -5
- package/dist/types/searchfield/src/searchfield-suggestions.d.ts +0 -5
- package/dist/types/searchfield/src/searchfield.d.ts +0 -27
- package/dist/types/searchfield/stories/searchfield-suggestions.stories.d.ts +0 -8
- package/dist/types/searchfield/stories/searchfield.stories.d.ts +0 -6
- package/dist/types/snackbar/index.d.ts +0 -2
- package/dist/types/snackbar/src/index.d.ts +0 -8
- package/dist/types/snackbar/src/snackbar.d.ts +0 -11
- package/dist/types/snackbar/stories/snackbar.stories.d.ts +0 -8
- package/dist/types/spinner/index.d.ts +0 -2
- package/dist/types/spinner/src/assets/spinner-square.d.ts +0 -265
- package/dist/types/spinner/src/index.d.ts +0 -4
- package/dist/types/spinner/src/spinner.d.ts +0 -14
- package/dist/types/spinner/stories/spinner.stories.d.ts +0 -8
- package/dist/types/table/index.d.ts +0 -2
- package/dist/types/table/src/auto-table.d.ts +0 -48
- package/dist/types/table/src/index.d.ts +0 -24
- package/dist/types/table/src/table-body.d.ts +0 -2
- package/dist/types/table/src/table-footer.d.ts +0 -2
- package/dist/types/table/src/table-header-column.d.ts +0 -6
- package/dist/types/table/src/table-header.d.ts +0 -6
- package/dist/types/table/src/table-row-column.d.ts +0 -6
- package/dist/types/table/src/table-row.d.ts +0 -2
- package/dist/types/table/src/table-sort-button.d.ts +0 -8
- package/dist/types/table/src/table.d.ts +0 -9
- package/dist/types/table/stories/autotable.stories.d.ts +0 -10
- package/dist/types/table/stories/table.stories.d.ts +0 -11
- package/dist/types/tabs/index.d.ts +0 -2
- package/dist/types/tabs/src/index.d.ts +0 -15
- package/dist/types/tabs/src/tabs-button.d.ts +0 -7
- package/dist/types/tabs/src/tabs-content.d.ts +0 -6
- package/dist/types/tabs/src/tabs-context.d.ts +0 -8
- package/dist/types/tabs/src/tabs-item.d.ts +0 -6
- package/dist/types/tabs/src/tabs.d.ts +0 -11
- package/dist/types/tabs/stories/tabs.stories.d.ts +0 -12
- package/dist/types/text/index.d.ts +0 -2
- package/dist/types/text/src/index.d.ts +0 -8
- package/dist/types/text/src/text.d.ts +0 -10
- package/dist/types/text/stories/text.stories.d.ts +0 -7
- package/dist/types/theme/index.d.ts +0 -2
- package/dist/types/theme/src/colors.d.ts +0 -1410
- package/dist/types/theme/src/create-memo-class.d.ts +0 -1
- package/dist/types/theme/src/create-theme-vars/calc.d.ts +0 -19
- package/dist/types/theme/src/create-theme-vars/create-theme-vars.d.ts +0 -9
- package/dist/types/theme/src/create-theme-vars/css-var.d.ts +0 -7
- package/dist/types/theme/src/create-theme-vars/index.d.ts +0 -4
- package/dist/types/theme/src/create-theme-vars/theme-tokens.d.ts +0 -8
- package/dist/types/theme/src/create-theme-vars/to-css-var.d.ts +0 -2
- package/dist/types/theme/src/default-theme.d.ts +0 -4
- package/dist/types/theme/src/gui-provider.d.ts +0 -34
- package/dist/types/theme/src/index.d.ts +0 -14
- package/dist/types/theme/src/types.d.ts +0 -54
- package/dist/types/theme/src/units.d.ts +0 -226
- package/dist/types/theme/src/use-safe-effect.d.ts +0 -2
- package/dist/types/theme/src/utils.d.ts +0 -1
- package/dist/types/toast/index.d.ts +0 -2
- package/dist/types/toast/src/index.d.ts +0 -7
- package/dist/types/toast/src/toast.d.ts +0 -62
- package/dist/types/toasted-notes/index.d.ts +0 -2
- package/dist/types/toasted-notes/src/Alert.d.ts +0 -8
- package/dist/types/toasted-notes/src/Message.d.ts +0 -26
- package/dist/types/toasted-notes/src/Positions.d.ts +0 -9
- package/dist/types/toasted-notes/src/Toast.d.ts +0 -13
- package/dist/types/toasted-notes/src/ToastManager.d.ts +0 -45
- package/dist/types/toasted-notes/src/index.d.ts +0 -4
- package/dist/types/toasted-notes/src/useTimeout.d.ts +0 -3
- package/dist/types/tooltip/index.d.ts +0 -2
- package/dist/types/tooltip/src/index.d.ts +0 -8
- package/dist/types/tooltip/src/tooltip.d.ts +0 -14
- package/dist/types/tooltip/stories/tooltip.stories.d.ts +0 -9
- package/dist/types/user-menu/index.d.ts +0 -2
- package/dist/types/user-menu/src/index.d.ts +0 -8
- package/dist/types/user-menu/src/user-menu.d.ts +0 -32
- package/dist/types/user-menu/stories/user-menu.stories.d.ts +0 -8
- package/dist/types/utils/index.d.ts +0 -2
- package/dist/types/utils/src/assertion.d.ts +0 -5
- package/dist/types/utils/src/children.d.ts +0 -8
- package/dist/types/utils/src/color.d.ts +0 -10
- package/dist/types/utils/src/index.d.ts +0 -20
- package/dist/types/utils/src/object.d.ts +0 -6
- package/dist/types/utils/src/refs.d.ts +0 -5
- package/dist/types/utils/src/slug.d.ts +0 -1
- package/dist/types/utils/src/types.d.ts +0 -56
- package/dist/types/utils/src/use-on-element-outside.d.ts +0 -39
- package/dist/types/utils/src/walk-object.d.ts +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createMemoClass(func: (props: any) => string): (args?: any) => string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type Operand = string | number | {
|
|
2
|
-
reference: string;
|
|
3
|
-
};
|
|
4
|
-
interface CalcChain {
|
|
5
|
-
add: (...operands: Array<Operand>) => CalcChain;
|
|
6
|
-
subtract: (...operands: Array<Operand>) => CalcChain;
|
|
7
|
-
multiply: (...operands: Array<Operand>) => CalcChain;
|
|
8
|
-
divide: (...operands: Array<Operand>) => CalcChain;
|
|
9
|
-
negate: () => CalcChain;
|
|
10
|
-
toString: () => string;
|
|
11
|
-
}
|
|
12
|
-
export declare const calc: ((x: Operand) => CalcChain) & {
|
|
13
|
-
add: (...operands: Array<Operand>) => string;
|
|
14
|
-
subtract: (...operands: Array<Operand>) => string;
|
|
15
|
-
multiply: (...operands: Array<Operand>) => string;
|
|
16
|
-
divide: (...operands: Array<Operand>) => string;
|
|
17
|
-
negate: (x: Operand) => string;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Dict } from '@sk-web-gui/utils';
|
|
2
|
-
export interface CreateThemeVarsOptions {
|
|
3
|
-
cssVarPrefix?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ThemeVars {
|
|
6
|
-
cssVars: Dict;
|
|
7
|
-
cssMap: Dict;
|
|
8
|
-
}
|
|
9
|
-
export declare function createThemeVars(target: Dict, options: CreateThemeVarsOptions): ThemeVars;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function addPrefix(value: string, prefix?: string): string;
|
|
2
|
-
export declare function toVarReference(name: string, fallback?: string): string;
|
|
3
|
-
export declare function toVarDefinition(value: string, prefix?: string): string;
|
|
4
|
-
export declare function cssVar(name: string, fallback?: string, cssVarPrefix?: string): {
|
|
5
|
-
variable: string;
|
|
6
|
-
reference: string;
|
|
7
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Dict } from '@sk-web-gui/utils';
|
|
2
|
-
declare const tokens: readonly ["colors", "cursor", "rounded", "fontSize", "lineHeight", "spacing", "screens", "radius"];
|
|
3
|
-
export type ThemeScale = (typeof tokens)[number] | 'transition.duration' | 'transition.property' | 'transition.easing';
|
|
4
|
-
export declare function extractTokens(theme: Dict): {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
};
|
|
7
|
-
export declare function omitVars(rawTheme: Dict): Omit<Dict, "__cssMap" | "__cssVars" | "__breakpoints">;
|
|
8
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Dict, WithCSSVar } from '@sk-web-gui/utils';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { GuiTheme, GuiThemeOverride } from './types';
|
|
4
|
-
export declare enum ColorSchemeMode {
|
|
5
|
-
Dark = "dark",
|
|
6
|
-
Light = "light",
|
|
7
|
-
System = "system"
|
|
8
|
-
}
|
|
9
|
-
export declare const GuiContext: React.Context<{
|
|
10
|
-
theme: WithCSSVar<Dict>;
|
|
11
|
-
/**
|
|
12
|
-
* The chosen colorScheme
|
|
13
|
-
*/
|
|
14
|
-
colorScheme: ColorSchemeMode;
|
|
15
|
-
/**
|
|
16
|
-
* Set the colorScheme
|
|
17
|
-
*/
|
|
18
|
-
setColorScheme: (scheme: ColorSchemeMode) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Scheme that is used when set to "system"
|
|
21
|
-
*/
|
|
22
|
-
preferredColorScheme: Exclude<ColorSchemeMode, ColorSchemeMode.System>;
|
|
23
|
-
} | undefined>;
|
|
24
|
-
export interface GuiProviderProps {
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
theme?: GuiTheme;
|
|
27
|
-
/**
|
|
28
|
-
* @default system
|
|
29
|
-
*/
|
|
30
|
-
colorScheme?: ColorSchemeMode;
|
|
31
|
-
}
|
|
32
|
-
export declare function GuiProvider({ theme, colorScheme: _colorScheme, children }: GuiProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export declare function useGui<T extends object = Dict>(): WithCSSVar<T>;
|
|
34
|
-
export declare function extendTheme(themeOverride: GuiThemeOverride): GuiTheme;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './gui-provider';
|
|
2
|
-
export type * from './gui-provider';
|
|
3
|
-
export * from './create-memo-class';
|
|
4
|
-
export type * from './create-memo-class';
|
|
5
|
-
export * from './create-theme-vars';
|
|
6
|
-
export type * from './create-theme-vars';
|
|
7
|
-
export * from './default-theme';
|
|
8
|
-
export type * from './default-theme';
|
|
9
|
-
export * from './colors';
|
|
10
|
-
export type * from './colors';
|
|
11
|
-
export * from './types';
|
|
12
|
-
export type * from './types';
|
|
13
|
-
export * from './units';
|
|
14
|
-
export type * from './units';
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { DeepPartial } from '@sk-web-gui/utils';
|
|
2
|
-
export type RecursiveProperty<Nested = string | number> = RecursiveObject<Nested> | Nested;
|
|
3
|
-
export interface RecursiveObject<Nested = string | number> {
|
|
4
|
-
[property: string]: RecursiveProperty<Nested>;
|
|
5
|
-
}
|
|
6
|
-
export interface ColorHues {
|
|
7
|
-
50: string;
|
|
8
|
-
100: string;
|
|
9
|
-
200: string;
|
|
10
|
-
300: string;
|
|
11
|
-
400: string;
|
|
12
|
-
500: string;
|
|
13
|
-
600: string;
|
|
14
|
-
700: string;
|
|
15
|
-
800: string;
|
|
16
|
-
900: string;
|
|
17
|
-
lightest?: string;
|
|
18
|
-
darkest?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ThemeOption {
|
|
21
|
-
[key: string | number]: string | ThemeOption;
|
|
22
|
-
}
|
|
23
|
-
export type Colors = RecursiveObject<Record<string, Partial<ColorHues>> | string>;
|
|
24
|
-
export interface ColorScheme {
|
|
25
|
-
id: string;
|
|
26
|
-
type: 'light' | 'dark';
|
|
27
|
-
colors: {
|
|
28
|
-
bg: {
|
|
29
|
-
base: string;
|
|
30
|
-
fill: string;
|
|
31
|
-
};
|
|
32
|
-
text: {
|
|
33
|
-
foreground: string;
|
|
34
|
-
muted: string;
|
|
35
|
-
};
|
|
36
|
-
severity?: {
|
|
37
|
-
error: ThemeOption;
|
|
38
|
-
warning: ThemeOption;
|
|
39
|
-
info: ThemeOption;
|
|
40
|
-
};
|
|
41
|
-
} & Colors;
|
|
42
|
-
}
|
|
43
|
-
export interface GuiTheme {
|
|
44
|
-
readonly cursor: 'default' | 'pointer';
|
|
45
|
-
readonly rounded: string;
|
|
46
|
-
readonly colorSchemes: Record<string, ColorScheme>;
|
|
47
|
-
readonly fontSize: ThemeOption;
|
|
48
|
-
readonly lineHeight: ThemeOption;
|
|
49
|
-
readonly spacing: ThemeOption;
|
|
50
|
-
readonly screens: ThemeOption;
|
|
51
|
-
readonly radius: ThemeOption;
|
|
52
|
-
readonly config: Record<string, unknown>;
|
|
53
|
-
}
|
|
54
|
-
export type GuiThemeOverride = DeepPartial<GuiTheme>;
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
export declare const spacing: {
|
|
2
|
-
0: string;
|
|
3
|
-
2: string;
|
|
4
|
-
4: string;
|
|
5
|
-
6: string;
|
|
6
|
-
8: string;
|
|
7
|
-
10: string;
|
|
8
|
-
12: string;
|
|
9
|
-
14: string;
|
|
10
|
-
16: string;
|
|
11
|
-
18: string;
|
|
12
|
-
20: string;
|
|
13
|
-
24: string;
|
|
14
|
-
32: string;
|
|
15
|
-
40: string;
|
|
16
|
-
48: string;
|
|
17
|
-
56: string;
|
|
18
|
-
64: string;
|
|
19
|
-
72: string;
|
|
20
|
-
80: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const breakpoints: {
|
|
23
|
-
phone: {
|
|
24
|
-
DEFAULT: string;
|
|
25
|
-
min: string;
|
|
26
|
-
max: string;
|
|
27
|
-
};
|
|
28
|
-
'small-device': {
|
|
29
|
-
DEFAULT: string;
|
|
30
|
-
min: string;
|
|
31
|
-
max: string;
|
|
32
|
-
};
|
|
33
|
-
'medium-device': {
|
|
34
|
-
DEFAULT: string;
|
|
35
|
-
min: string;
|
|
36
|
-
max: string;
|
|
37
|
-
};
|
|
38
|
-
'large-device': {
|
|
39
|
-
DEFAULT: string;
|
|
40
|
-
min: string;
|
|
41
|
-
max: string;
|
|
42
|
-
};
|
|
43
|
-
desktop: {
|
|
44
|
-
DEFAULT: string;
|
|
45
|
-
min: string;
|
|
46
|
-
max: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export declare const screens: {
|
|
50
|
-
xs: string;
|
|
51
|
-
sm: string;
|
|
52
|
-
md: string;
|
|
53
|
-
lg: string;
|
|
54
|
-
xl: string;
|
|
55
|
-
phone: string;
|
|
56
|
-
'phone-min': string;
|
|
57
|
-
'phone-max': string;
|
|
58
|
-
'small-device': string;
|
|
59
|
-
'small-device-min': string;
|
|
60
|
-
'small-device-max': string;
|
|
61
|
-
'medium-device': string;
|
|
62
|
-
'medium-device-min': string;
|
|
63
|
-
'medium-device-max': string;
|
|
64
|
-
'large-device': string;
|
|
65
|
-
'large-device-min': string;
|
|
66
|
-
'large-device-max': string;
|
|
67
|
-
desktop: string;
|
|
68
|
-
'desktop-min': string;
|
|
69
|
-
'desktop-max': string;
|
|
70
|
-
};
|
|
71
|
-
export declare const fontSizes: {
|
|
72
|
-
display: {
|
|
73
|
-
1: {
|
|
74
|
-
DEFAULT: string;
|
|
75
|
-
lg: string;
|
|
76
|
-
md: string;
|
|
77
|
-
sm: string;
|
|
78
|
-
};
|
|
79
|
-
2: {
|
|
80
|
-
DEFAULT: string;
|
|
81
|
-
lg: string;
|
|
82
|
-
md: string;
|
|
83
|
-
sm: string;
|
|
84
|
-
};
|
|
85
|
-
3: {
|
|
86
|
-
DEFAULT: string;
|
|
87
|
-
lg: string;
|
|
88
|
-
md: string;
|
|
89
|
-
sm: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
h: {
|
|
93
|
-
1: {
|
|
94
|
-
DEFAULT: string;
|
|
95
|
-
lg: string;
|
|
96
|
-
md: string;
|
|
97
|
-
sm: string;
|
|
98
|
-
};
|
|
99
|
-
2: {
|
|
100
|
-
DEFAULT: string;
|
|
101
|
-
lg: string;
|
|
102
|
-
md: string;
|
|
103
|
-
sm: string;
|
|
104
|
-
};
|
|
105
|
-
3: {
|
|
106
|
-
DEFAULT: string;
|
|
107
|
-
lg: string;
|
|
108
|
-
md: string;
|
|
109
|
-
sm: string;
|
|
110
|
-
};
|
|
111
|
-
4: {
|
|
112
|
-
DEFAULT: string;
|
|
113
|
-
lg: string;
|
|
114
|
-
md: string;
|
|
115
|
-
sm: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
label: {
|
|
119
|
-
large: string;
|
|
120
|
-
medium: string;
|
|
121
|
-
small: string;
|
|
122
|
-
};
|
|
123
|
-
input: {
|
|
124
|
-
large: string;
|
|
125
|
-
medium: string;
|
|
126
|
-
small: string;
|
|
127
|
-
};
|
|
128
|
-
lead: string;
|
|
129
|
-
base: string;
|
|
130
|
-
large: string;
|
|
131
|
-
small: string;
|
|
132
|
-
};
|
|
133
|
-
export declare const lineHeights: {
|
|
134
|
-
display: {
|
|
135
|
-
1: {
|
|
136
|
-
DEFAULT: string;
|
|
137
|
-
lg: string;
|
|
138
|
-
md: string;
|
|
139
|
-
sm: string;
|
|
140
|
-
};
|
|
141
|
-
2: {
|
|
142
|
-
DEFAULT: string;
|
|
143
|
-
lg: string;
|
|
144
|
-
md: string;
|
|
145
|
-
sm: string;
|
|
146
|
-
};
|
|
147
|
-
3: {
|
|
148
|
-
DEFAULT: string;
|
|
149
|
-
lg: string;
|
|
150
|
-
md: string;
|
|
151
|
-
sm: string;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
h: {
|
|
155
|
-
1: {
|
|
156
|
-
DEFAULT: string;
|
|
157
|
-
lg: string;
|
|
158
|
-
md: string;
|
|
159
|
-
sm: string;
|
|
160
|
-
};
|
|
161
|
-
2: {
|
|
162
|
-
DEFAULT: string;
|
|
163
|
-
lg: string;
|
|
164
|
-
md: string;
|
|
165
|
-
sm: string;
|
|
166
|
-
};
|
|
167
|
-
3: {
|
|
168
|
-
DEFAULT: string;
|
|
169
|
-
lg: string;
|
|
170
|
-
md: string;
|
|
171
|
-
sm: string;
|
|
172
|
-
};
|
|
173
|
-
4: {
|
|
174
|
-
DEFAULT: string;
|
|
175
|
-
lg: string;
|
|
176
|
-
md: string;
|
|
177
|
-
sm: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
label: {
|
|
181
|
-
large: string;
|
|
182
|
-
medium: string;
|
|
183
|
-
small: string;
|
|
184
|
-
};
|
|
185
|
-
input: {
|
|
186
|
-
large: string;
|
|
187
|
-
medium: string;
|
|
188
|
-
small: string;
|
|
189
|
-
};
|
|
190
|
-
lead: string;
|
|
191
|
-
base: string;
|
|
192
|
-
large: string;
|
|
193
|
-
small: string;
|
|
194
|
-
};
|
|
195
|
-
export declare const radius: {
|
|
196
|
-
circular: {
|
|
197
|
-
DEFAULT: string;
|
|
198
|
-
lg: string;
|
|
199
|
-
md: string;
|
|
200
|
-
sm: string;
|
|
201
|
-
};
|
|
202
|
-
button: {
|
|
203
|
-
DEFAULT: string;
|
|
204
|
-
lg: string;
|
|
205
|
-
md: string;
|
|
206
|
-
sm: string;
|
|
207
|
-
};
|
|
208
|
-
cards: {
|
|
209
|
-
DEFAULT: string;
|
|
210
|
-
lg: string;
|
|
211
|
-
md: string;
|
|
212
|
-
sm: string;
|
|
213
|
-
};
|
|
214
|
-
utility: {
|
|
215
|
-
DEFAULT: string;
|
|
216
|
-
lg: string;
|
|
217
|
-
md: string;
|
|
218
|
-
sm: string;
|
|
219
|
-
};
|
|
220
|
-
groups: {
|
|
221
|
-
DEFAULT: string;
|
|
222
|
-
lg: string;
|
|
223
|
-
md: string;
|
|
224
|
-
sm: string;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isBrowser: boolean;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Position } from '@sk-web-gui/toasted-notes';
|
|
2
|
-
import { DefaultProps } from '@sk-web-gui/utils';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
interface IToast extends DefaultProps {
|
|
5
|
-
/**
|
|
6
|
-
* The title of the toast.
|
|
7
|
-
*/
|
|
8
|
-
title?: string;
|
|
9
|
-
/**
|
|
10
|
-
* If `true` adds a close button to the toast.
|
|
11
|
-
*/
|
|
12
|
-
closeable?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Callback function to close the toast.
|
|
15
|
-
*/
|
|
16
|
-
onClose?: () => void;
|
|
17
|
-
/**
|
|
18
|
-
* Callback function to undo the toast.
|
|
19
|
-
*/
|
|
20
|
-
onUndo?: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* The description of the toast
|
|
23
|
-
*/
|
|
24
|
-
description?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The undo text of the toast
|
|
27
|
-
*/
|
|
28
|
-
undoText?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Duration before dismiss in milliseconds, or `null` to never dismiss.
|
|
31
|
-
*/
|
|
32
|
-
duration?: number | null;
|
|
33
|
-
/**
|
|
34
|
-
* One of toasted-notes positions.
|
|
35
|
-
*/
|
|
36
|
-
position?: keyof typeof Position;
|
|
37
|
-
/**
|
|
38
|
-
* The message of the toast
|
|
39
|
-
*/
|
|
40
|
-
message?: string;
|
|
41
|
-
/**
|
|
42
|
-
* The status of the toast
|
|
43
|
-
*/
|
|
44
|
-
status?: 'info' | 'success' | 'error' | 'warning';
|
|
45
|
-
/**
|
|
46
|
-
* Custom icon
|
|
47
|
-
*/
|
|
48
|
-
icon?: React.ElementType;
|
|
49
|
-
/**
|
|
50
|
-
* Custom close icon
|
|
51
|
-
*/
|
|
52
|
-
closeIcon?: React.ElementType;
|
|
53
|
-
}
|
|
54
|
-
interface RenderOption {
|
|
55
|
-
render?: (props: {
|
|
56
|
-
onClose: (id: string) => void;
|
|
57
|
-
id: string;
|
|
58
|
-
}) => React.ReactNode;
|
|
59
|
-
}
|
|
60
|
-
export type useToastOptions = IToast & RenderOption;
|
|
61
|
-
export declare function createToast(Comp: React.ElementType): () => ({ position, duration, render, ...rest }: useToastOptions) => any;
|
|
62
|
-
export default createToast;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import POSITIONS from './Positions';
|
|
3
|
-
interface MessageCallback {
|
|
4
|
-
id: string;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
}
|
|
7
|
-
export type MessageType = 'default' | 'success' | 'error';
|
|
8
|
-
export type PositionsType = keyof typeof POSITIONS;
|
|
9
|
-
export type MessageProp = React.ReactNode | ((callback: MessageCallback) => React.ReactNode) | string;
|
|
10
|
-
export interface MessageOptions {
|
|
11
|
-
id: string;
|
|
12
|
-
duration: number | null;
|
|
13
|
-
type: MessageType;
|
|
14
|
-
onRequestRemove: () => void;
|
|
15
|
-
onRequestClose: () => void;
|
|
16
|
-
showing: boolean;
|
|
17
|
-
position: PositionsType;
|
|
18
|
-
}
|
|
19
|
-
interface Props extends MessageOptions {
|
|
20
|
-
message: MessageProp;
|
|
21
|
-
zIndex?: number;
|
|
22
|
-
requestClose?: boolean;
|
|
23
|
-
position: PositionsType;
|
|
24
|
-
}
|
|
25
|
-
export declare const Message: ({ id, message, position, onRequestRemove, requestClose, duration }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MessageOptionalOptions } from './ToastManager';
|
|
2
|
-
import { MessageProp, PositionsType } from './Message';
|
|
3
|
-
export declare class Toaster {
|
|
4
|
-
createNotification?: Function;
|
|
5
|
-
removeAll?: Function;
|
|
6
|
-
closeToast?: Function;
|
|
7
|
-
constructor();
|
|
8
|
-
closeAll: () => void;
|
|
9
|
-
bindNotify: (fn: Function, removeAll: Function, closeToast: Function) => void;
|
|
10
|
-
notify: (message: MessageProp, options?: MessageOptionalOptions) => any;
|
|
11
|
-
close: (id: number, position: PositionsType) => void;
|
|
12
|
-
}
|
|
13
|
-
export default Toaster;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PositionsType, MessageType, MessageOptions, MessageProp } from './Message';
|
|
3
|
-
interface Props {
|
|
4
|
-
notify: (fn: Function, closeAll: Function, close: Function) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface MessageOptionalOptions {
|
|
7
|
-
type?: MessageType;
|
|
8
|
-
duration?: number | null;
|
|
9
|
-
position?: PositionsType;
|
|
10
|
-
}
|
|
11
|
-
interface ToastArgs extends MessageOptions {
|
|
12
|
-
message: MessageProp;
|
|
13
|
-
}
|
|
14
|
-
type State = {
|
|
15
|
-
top: Array<ToastArgs>;
|
|
16
|
-
'top-left': Array<ToastArgs>;
|
|
17
|
-
'top-right': Array<ToastArgs>;
|
|
18
|
-
'bottom-left': Array<ToastArgs>;
|
|
19
|
-
bottom: Array<ToastArgs>;
|
|
20
|
-
'bottom-right': Array<ToastArgs>;
|
|
21
|
-
};
|
|
22
|
-
export declare class ToastManager extends React.Component<Props, State> {
|
|
23
|
-
static idCounter: number;
|
|
24
|
-
state: State;
|
|
25
|
-
constructor(props: Props);
|
|
26
|
-
notify: (message: MessageProp, options: MessageOptionalOptions) => {
|
|
27
|
-
id: number;
|
|
28
|
-
position: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
29
|
-
};
|
|
30
|
-
closeAll: () => void;
|
|
31
|
-
createToastState: (message: MessageProp, options: MessageOptionalOptions) => {
|
|
32
|
-
id: number;
|
|
33
|
-
message: MessageProp;
|
|
34
|
-
position: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
35
|
-
showing: boolean;
|
|
36
|
-
duration: number | null;
|
|
37
|
-
onRequestRemove: () => void;
|
|
38
|
-
type: MessageType | undefined;
|
|
39
|
-
};
|
|
40
|
-
closeToast: (id: string, position: PositionsType) => void;
|
|
41
|
-
removeToast: (id: string, position: PositionsType) => void;
|
|
42
|
-
getStyle: (position: PositionsType) => React.CSSProperties;
|
|
43
|
-
render(): import("react/jsx-runtime").JSX.Element[];
|
|
44
|
-
}
|
|
45
|
-
export default ToastManager;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Tooltip, TooltipProps } from './tooltip';
|
|
3
|
-
export { Tooltip };
|
|
4
|
-
export type { TooltipProps };
|
|
5
|
-
declare const _default: {
|
|
6
|
-
Tooltip: import("react").ForwardRefExoticComponent<TooltipProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface ITooltipProps extends DefaultProps {
|
|
4
|
-
/** Select the position of the tooltip
|
|
5
|
-
* @default below
|
|
6
|
-
*/
|
|
7
|
-
position?: 'above' | 'below' | 'right' | 'left';
|
|
8
|
-
/** React Node */
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export interface TooltipProps extends React.HTMLAttributes<HTMLSpanElement>, ITooltipProps {
|
|
12
|
-
}
|
|
13
|
-
export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
-
export default Tooltip;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TooltipProps } from '../src';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, TooltipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Template: {
|
|
6
|
-
(args: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
storyName: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { UserMenu, MenuItemGroup, UserMenuProps } from './user-menu';
|
|
3
|
-
export { UserMenu };
|
|
4
|
-
export type { UserMenuProps, MenuItemGroup };
|
|
5
|
-
declare const _default: {
|
|
6
|
-
UserMenu: import("react").ForwardRefExoticComponent<Omit<UserMenuProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|