@sk-web-gui/core 3.7.1 → 3.9.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/aria-plugin.js.map +1 -1
- package/dist/cjs/components/accordion.js +3 -0
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/ai/ai-corner-module.js.map +1 -1
- package/dist/cjs/components/ai/ai-feed.js.map +1 -1
- package/dist/cjs/components/ai/ai-service-module.js +3 -0
- package/dist/cjs/components/ai/ai-service-module.js.map +1 -1
- package/dist/cjs/components/ai/assistant-presentation.js.map +1 -1
- package/dist/cjs/components/ai/assistant-switch.js.map +1 -1
- package/dist/cjs/components/ai/bubble.js.map +1 -1
- package/dist/cjs/components/ai/feedback.js.map +1 -1
- package/dist/cjs/components/ai/input-section.js.map +1 -1
- package/dist/cjs/components/ai/markdown-rendered.js.map +1 -1
- package/dist/cjs/components/ai/new-session-button.js.map +1 -1
- package/dist/cjs/components/ai/typing-bubble.js.map +1 -1
- package/dist/cjs/components/ai/typing-sequence.js.map +1 -1
- package/dist/cjs/components/callout.js +40 -0
- package/dist/cjs/components/callout.js.map +1 -0
- package/dist/cjs/components/chip.js.map +1 -1
- package/dist/cjs/components/combobox.js.map +1 -1
- package/dist/cjs/components/file-upload.js +224 -0
- package/dist/cjs/components/file-upload.js.map +1 -0
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/label.js.map +1 -1
- package/dist/cjs/components/list.js.map +1 -1
- package/dist/cjs/components/logo.js.map +1 -1
- package/dist/cjs/components/menu-vertical.js.map +1 -1
- package/dist/cjs/components/menubar.js.map +1 -1
- package/dist/cjs/components/popup-menu.js.map +1 -1
- package/dist/cjs/components/progress-bar.js.map +1 -1
- package/dist/cjs/components/progress-stepper.js.map +1 -1
- package/dist/cjs/components/search-field.js.map +1 -1
- package/dist/cjs/components/select.js.map +1 -1
- package/dist/cjs/components/spinner.js.map +1 -1
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/tooltip.js.map +1 -1
- package/dist/cjs/components.js +7 -0
- package/dist/cjs/components.js.map +1 -1
- package/dist/cjs/data-plugin.js.map +1 -1
- package/dist/cjs/fonts.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/theme.js.map +1 -1
- package/dist/cjs/units.js.map +1 -1
- package/dist/esm/aria-plugin.js.map +1 -1
- package/dist/esm/components/accordion.js +3 -0
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/ai/ai-corner-module.js.map +1 -1
- package/dist/esm/components/ai/ai-feed.js.map +1 -1
- package/dist/esm/components/ai/ai-service-module.js +3 -0
- package/dist/esm/components/ai/ai-service-module.js.map +1 -1
- package/dist/esm/components/ai/assistant-presentation.js.map +1 -1
- package/dist/esm/components/ai/assistant-switch.js.map +1 -1
- package/dist/esm/components/ai/bubble.js.map +1 -1
- package/dist/esm/components/ai/feedback.js.map +1 -1
- package/dist/esm/components/ai/input-section.js.map +1 -1
- package/dist/esm/components/ai/markdown-rendered.js.map +1 -1
- package/dist/esm/components/ai/new-session-button.js.map +1 -1
- package/dist/esm/components/ai/typing-bubble.js.map +1 -1
- package/dist/esm/components/ai/typing-sequence.js.map +1 -1
- package/dist/esm/components/callout.js +36 -0
- package/dist/esm/components/callout.js.map +1 -0
- package/dist/esm/components/chip.js.map +1 -1
- package/dist/esm/components/combobox.js.map +1 -1
- package/dist/esm/components/file-upload.js +218 -0
- package/dist/esm/components/file-upload.js.map +1 -0
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/label.js.map +1 -1
- package/dist/esm/components/list.js.map +1 -1
- package/dist/esm/components/logo.js.map +1 -1
- package/dist/esm/components/menu-vertical.js.map +1 -1
- package/dist/esm/components/menubar.js.map +1 -1
- package/dist/esm/components/popup-menu.js.map +1 -1
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/esm/components/progress-stepper.js.map +1 -1
- package/dist/esm/components/search-field.js.map +1 -1
- package/dist/esm/components/select.js.map +1 -1
- package/dist/esm/components/spinner.js.map +1 -1
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/tooltip.js.map +1 -1
- package/dist/esm/components.js +7 -0
- package/dist/esm/components.js.map +1 -1
- package/dist/esm/data-plugin.js.map +1 -1
- package/dist/esm/fonts.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/theme.js.map +1 -1
- package/dist/esm/units.js.map +1 -1
- package/dist/types/components/accordion.d.ts +3 -0
- package/dist/types/components/ai/ai-service-module.d.ts +3 -0
- package/dist/types/components/callout.d.ts +21 -0
- package/dist/types/components/file-upload.d.ts +217 -0
- package/package.json +3 -3
- package/dist/cjs/components/ai/ai-module.js +0 -253
- package/dist/cjs/components/ai/ai-module.js.map +0 -1
- package/dist/cjs/components/alert-banner.js +0 -26
- package/dist/cjs/components/alert-banner.js.map +0 -1
- package/dist/cjs/components/alert.js +0 -57
- package/dist/cjs/components/alert.js.map +0 -1
- package/dist/cjs/components/comments.js +0 -32
- package/dist/cjs/components/comments.js.map +0 -1
- package/dist/cjs/components/context-menu.js +0 -41
- package/dist/cjs/components/context-menu.js.map +0 -1
- package/dist/cjs/components/dropdown-filter.js +0 -60
- package/dist/cjs/components/dropdown-filter.js.map +0 -1
- package/dist/cjs/components/notification.js +0 -51
- package/dist/cjs/components/notification.js.map +0 -1
- package/dist/cjs/components/rich-text-editor.js +0 -233
- package/dist/cjs/components/rich-text-editor.js.map +0 -1
- package/dist/cjs/components/side-menu.js +0 -221
- package/dist/cjs/components/side-menu.js.map +0 -1
- package/dist/cjs/components/tab-menu.js +0 -59
- package/dist/cjs/components/tab-menu.js.map +0 -1
- package/dist/cjs/components/table-autotable.js +0 -229
- package/dist/cjs/components/table-autotable.js.map +0 -1
- package/dist/cjs/components/zebratable.js +0 -141
- package/dist/cjs/components/zebratable.js.map +0 -1
- package/dist/esm/components/ai/ai-module.js +0 -248
- package/dist/esm/components/ai/ai-module.js.map +0 -1
- package/dist/esm/components/alert-banner.js +0 -24
- package/dist/esm/components/alert-banner.js.map +0 -1
- package/dist/esm/components/alert.js +0 -55
- package/dist/esm/components/alert.js.map +0 -1
- package/dist/esm/components/comments.js +0 -30
- package/dist/esm/components/comments.js.map +0 -1
- package/dist/esm/components/context-menu.js +0 -39
- package/dist/esm/components/context-menu.js.map +0 -1
- package/dist/esm/components/dropdown-filter.js +0 -58
- package/dist/esm/components/dropdown-filter.js.map +0 -1
- package/dist/esm/components/notification.js +0 -49
- package/dist/esm/components/notification.js.map +0 -1
- package/dist/esm/components/rich-text-editor.js +0 -227
- package/dist/esm/components/rich-text-editor.js.map +0 -1
- package/dist/esm/components/side-menu.js +0 -219
- package/dist/esm/components/side-menu.js.map +0 -1
- package/dist/esm/components/tab-menu.js +0 -57
- package/dist/esm/components/tab-menu.js.map +0 -1
- package/dist/esm/components/table-autotable.js +0 -223
- package/dist/esm/components/table-autotable.js.map +0 -1
- package/dist/esm/components/zebratable.js +0 -135
- package/dist/esm/components/zebratable.js.map +0 -1
- 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/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/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/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/components/ai/ai-module.d.ts +0 -241
- package/dist/types/components/alert-banner.d.ts +0 -24
- package/dist/types/components/alert.d.ts +0 -21
- package/dist/types/components/comments.d.ts +0 -30
- package/dist/types/components/context-menu.d.ts +0 -39
- package/dist/types/components/dropdown-filter.d.ts +0 -58
- package/dist/types/components/notification.d.ts +0 -48
- package/dist/types/components/rich-text-editor.d.ts +0 -226
- package/dist/types/components/side-menu.d.ts +0 -219
- package/dist/types/components/tab-menu.d.ts +0 -57
- package/dist/types/components/table-autotable.d.ts +0 -222
- package/dist/types/components/zebratable.d.ts +0 -134
- 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 -174
- 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 -195
- 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 -37
- 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 -198
- 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 -13
- package/dist/types/core/src/components/switch.d.ts +0 -64
- package/dist/types/core/src/components/table-autotable.d.ts +0 -222
- 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 -287
- 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/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/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/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/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/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/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/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/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/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/src/index.d.ts +0 -70
- 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/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/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/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/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 -48
- 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 -266
- 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/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 -6
- 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,48 +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
|
-
units: {
|
|
24
|
-
base: number;
|
|
25
|
-
htmlBase: number;
|
|
26
|
-
};
|
|
27
|
-
} | undefined>;
|
|
28
|
-
export interface GuiProviderProps {
|
|
29
|
-
children: React.ReactNode;
|
|
30
|
-
theme?: GuiTheme;
|
|
31
|
-
/**
|
|
32
|
-
* @default system
|
|
33
|
-
*/
|
|
34
|
-
colorScheme?: ColorSchemeMode;
|
|
35
|
-
/**
|
|
36
|
-
* Font size in px that the theme variables are based on
|
|
37
|
-
* @default 10
|
|
38
|
-
*/
|
|
39
|
-
baseFontSize?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Font base size in px that the site uses.
|
|
42
|
-
* @default 10
|
|
43
|
-
*/
|
|
44
|
-
htmlFontSize?: number;
|
|
45
|
-
}
|
|
46
|
-
export declare function GuiProvider({ theme, colorScheme: _colorScheme, baseFontSize, htmlFontSize, children, }: GuiProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
export declare function useGui<T extends object = Dict>(): WithCSSVar<T>;
|
|
48
|
-
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,266 +0,0 @@
|
|
|
1
|
-
export declare const spacing: {
|
|
2
|
-
0: string;
|
|
3
|
-
'0.25': string;
|
|
4
|
-
'0.5': string;
|
|
5
|
-
'0.75': string;
|
|
6
|
-
1: string;
|
|
7
|
-
2: string;
|
|
8
|
-
3: string;
|
|
9
|
-
4: string;
|
|
10
|
-
5: string;
|
|
11
|
-
6: string;
|
|
12
|
-
7: string;
|
|
13
|
-
8: string;
|
|
14
|
-
9: string;
|
|
15
|
-
10: string;
|
|
16
|
-
11: string;
|
|
17
|
-
12: string;
|
|
18
|
-
13: string;
|
|
19
|
-
14: string;
|
|
20
|
-
15: string;
|
|
21
|
-
16: string;
|
|
22
|
-
17: string;
|
|
23
|
-
18: string;
|
|
24
|
-
19: string;
|
|
25
|
-
20: string;
|
|
26
|
-
22: string;
|
|
27
|
-
24: string;
|
|
28
|
-
26: string;
|
|
29
|
-
28: string;
|
|
30
|
-
30: string;
|
|
31
|
-
32: string;
|
|
32
|
-
33: string;
|
|
33
|
-
34: string;
|
|
34
|
-
36: string;
|
|
35
|
-
38: string;
|
|
36
|
-
40: string;
|
|
37
|
-
42: string;
|
|
38
|
-
43: string;
|
|
39
|
-
44: string;
|
|
40
|
-
46: string;
|
|
41
|
-
48: string;
|
|
42
|
-
49: string;
|
|
43
|
-
50: string;
|
|
44
|
-
52: string;
|
|
45
|
-
54: string;
|
|
46
|
-
56: string;
|
|
47
|
-
58: string;
|
|
48
|
-
60: string;
|
|
49
|
-
62: string;
|
|
50
|
-
64: string;
|
|
51
|
-
68: string;
|
|
52
|
-
72: string;
|
|
53
|
-
80: string;
|
|
54
|
-
100: string;
|
|
55
|
-
};
|
|
56
|
-
export declare const breakpoints: {
|
|
57
|
-
phone: {
|
|
58
|
-
DEFAULT: string;
|
|
59
|
-
min: string;
|
|
60
|
-
max: string;
|
|
61
|
-
};
|
|
62
|
-
'small-device': {
|
|
63
|
-
DEFAULT: string;
|
|
64
|
-
min: string;
|
|
65
|
-
max: string;
|
|
66
|
-
};
|
|
67
|
-
'medium-device': {
|
|
68
|
-
DEFAULT: string;
|
|
69
|
-
min: string;
|
|
70
|
-
max: string;
|
|
71
|
-
};
|
|
72
|
-
'large-device': {
|
|
73
|
-
DEFAULT: string;
|
|
74
|
-
min: string;
|
|
75
|
-
max: string;
|
|
76
|
-
};
|
|
77
|
-
desktop: {
|
|
78
|
-
DEFAULT: string;
|
|
79
|
-
min: string;
|
|
80
|
-
max: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
export declare const screens: {
|
|
84
|
-
xs: string;
|
|
85
|
-
sm: string;
|
|
86
|
-
md: string;
|
|
87
|
-
lg: string;
|
|
88
|
-
xl: string;
|
|
89
|
-
phone: string;
|
|
90
|
-
'phone-min': string;
|
|
91
|
-
'phone-max': string;
|
|
92
|
-
'small-device': string;
|
|
93
|
-
'small-device-min': string;
|
|
94
|
-
'small-device-max': string;
|
|
95
|
-
'medium-device': string;
|
|
96
|
-
'medium-device-min': string;
|
|
97
|
-
'medium-device-max': string;
|
|
98
|
-
'large-device': string;
|
|
99
|
-
'large-device-min': string;
|
|
100
|
-
'large-device-max': string;
|
|
101
|
-
desktop: string;
|
|
102
|
-
'desktop-min': string;
|
|
103
|
-
'desktop-max': string;
|
|
104
|
-
};
|
|
105
|
-
export declare const fontSizes: {
|
|
106
|
-
display: {
|
|
107
|
-
1: {
|
|
108
|
-
DEFAULT: string;
|
|
109
|
-
lg: string;
|
|
110
|
-
md: string;
|
|
111
|
-
sm: string;
|
|
112
|
-
};
|
|
113
|
-
2: {
|
|
114
|
-
DEFAULT: string;
|
|
115
|
-
lg: string;
|
|
116
|
-
md: string;
|
|
117
|
-
sm: string;
|
|
118
|
-
};
|
|
119
|
-
3: {
|
|
120
|
-
DEFAULT: string;
|
|
121
|
-
lg: string;
|
|
122
|
-
md: string;
|
|
123
|
-
sm: string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
h: {
|
|
127
|
-
1: {
|
|
128
|
-
DEFAULT: string;
|
|
129
|
-
lg: string;
|
|
130
|
-
md: string;
|
|
131
|
-
sm: string;
|
|
132
|
-
};
|
|
133
|
-
2: {
|
|
134
|
-
DEFAULT: string;
|
|
135
|
-
lg: string;
|
|
136
|
-
md: string;
|
|
137
|
-
sm: string;
|
|
138
|
-
};
|
|
139
|
-
3: {
|
|
140
|
-
DEFAULT: string;
|
|
141
|
-
lg: string;
|
|
142
|
-
md: string;
|
|
143
|
-
sm: string;
|
|
144
|
-
};
|
|
145
|
-
4: {
|
|
146
|
-
DEFAULT: string;
|
|
147
|
-
lg: string;
|
|
148
|
-
md: string;
|
|
149
|
-
sm: string;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
label: {
|
|
153
|
-
large: string;
|
|
154
|
-
medium: string;
|
|
155
|
-
small: string;
|
|
156
|
-
};
|
|
157
|
-
input: {
|
|
158
|
-
large: string;
|
|
159
|
-
medium: string;
|
|
160
|
-
small: string;
|
|
161
|
-
};
|
|
162
|
-
logo: {
|
|
163
|
-
header: string;
|
|
164
|
-
};
|
|
165
|
-
lead: string;
|
|
166
|
-
base: string;
|
|
167
|
-
large: string;
|
|
168
|
-
small: string;
|
|
169
|
-
};
|
|
170
|
-
export declare const lineHeights: {
|
|
171
|
-
display: {
|
|
172
|
-
1: {
|
|
173
|
-
DEFAULT: string;
|
|
174
|
-
lg: string;
|
|
175
|
-
md: string;
|
|
176
|
-
sm: string;
|
|
177
|
-
};
|
|
178
|
-
2: {
|
|
179
|
-
DEFAULT: string;
|
|
180
|
-
lg: string;
|
|
181
|
-
md: string;
|
|
182
|
-
sm: string;
|
|
183
|
-
};
|
|
184
|
-
3: {
|
|
185
|
-
DEFAULT: string;
|
|
186
|
-
lg: string;
|
|
187
|
-
md: string;
|
|
188
|
-
sm: string;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
h: {
|
|
192
|
-
1: {
|
|
193
|
-
DEFAULT: string;
|
|
194
|
-
lg: string;
|
|
195
|
-
md: string;
|
|
196
|
-
sm: string;
|
|
197
|
-
};
|
|
198
|
-
2: {
|
|
199
|
-
DEFAULT: string;
|
|
200
|
-
lg: string;
|
|
201
|
-
md: string;
|
|
202
|
-
sm: string;
|
|
203
|
-
};
|
|
204
|
-
3: {
|
|
205
|
-
DEFAULT: string;
|
|
206
|
-
lg: string;
|
|
207
|
-
md: string;
|
|
208
|
-
sm: string;
|
|
209
|
-
};
|
|
210
|
-
4: {
|
|
211
|
-
DEFAULT: string;
|
|
212
|
-
lg: string;
|
|
213
|
-
md: string;
|
|
214
|
-
sm: string;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
label: {
|
|
218
|
-
large: string;
|
|
219
|
-
medium: string;
|
|
220
|
-
small: string;
|
|
221
|
-
};
|
|
222
|
-
input: {
|
|
223
|
-
large: string;
|
|
224
|
-
medium: string;
|
|
225
|
-
small: string;
|
|
226
|
-
};
|
|
227
|
-
logo: {
|
|
228
|
-
header: string;
|
|
229
|
-
};
|
|
230
|
-
lead: string;
|
|
231
|
-
base: string;
|
|
232
|
-
large: string;
|
|
233
|
-
small: string;
|
|
234
|
-
};
|
|
235
|
-
export declare const radius: {
|
|
236
|
-
circular: {
|
|
237
|
-
DEFAULT: string;
|
|
238
|
-
lg: string;
|
|
239
|
-
md: string;
|
|
240
|
-
sm: string;
|
|
241
|
-
};
|
|
242
|
-
button: {
|
|
243
|
-
DEFAULT: string;
|
|
244
|
-
lg: string;
|
|
245
|
-
md: string;
|
|
246
|
-
sm: string;
|
|
247
|
-
};
|
|
248
|
-
cards: {
|
|
249
|
-
DEFAULT: string;
|
|
250
|
-
lg: string;
|
|
251
|
-
md: string;
|
|
252
|
-
sm: string;
|
|
253
|
-
};
|
|
254
|
-
utility: {
|
|
255
|
-
DEFAULT: string;
|
|
256
|
-
lg: string;
|
|
257
|
-
md: string;
|
|
258
|
-
sm: string;
|
|
259
|
-
};
|
|
260
|
-
groups: {
|
|
261
|
-
DEFAULT: string;
|
|
262
|
-
lg: string;
|
|
263
|
-
md: string;
|
|
264
|
-
sm: string;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
@@ -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;
|