@skf-design-system/ui-components 1.0.0-alpha.33 → 1.0.0-alpha.35
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/README.md +20 -27
- package/dist/components/accordion/accordion-item.component.d.ts +36 -0
- package/dist/components/accordion/accordion-item.component.js +98 -0
- package/dist/components/accordion/accordion-item.d.ts +3 -3
- package/dist/components/accordion/accordion-item.js +4 -5
- package/dist/components/accordion/accordion-item.styles.js +77 -0
- package/dist/components/accordion/accordion.component.d.ts +9 -13
- package/dist/components/accordion/accordion.component.js +7 -7
- package/dist/components/accordion/accordion.d.ts +0 -1
- package/dist/components/alert/alert.component.d.ts +12 -12
- package/dist/components/alert/alert.component.js +57 -54
- package/dist/components/alert/alert.styles.js +50 -51
- package/dist/components/breadcrumb/breadcrumb-item.component.d.ts +25 -0
- package/dist/components/breadcrumb/breadcrumb-item.component.js +60 -0
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +63 -0
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +32 -0
- package/dist/components/breadcrumb/breadcrumb.component.js +65 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.js +6 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +25 -0
- package/dist/components/button/button.component.d.ts +17 -14
- package/dist/components/button/button.component.js +74 -60
- package/dist/components/button/button.styles.d.ts +1 -2
- package/dist/components/button/button.styles.js +13 -3
- package/dist/components/card/card.component.d.ts +4 -1
- package/dist/components/card/card.component.js +46 -36
- package/dist/components/card/card.styles.js +36 -23
- package/dist/components/checkbox/checkbox.component.d.ts +17 -13
- package/dist/components/checkbox/checkbox.component.js +75 -61
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
- package/dist/components/checkbox/checkbox.styles.js +1 -5
- package/dist/components/datepicker/datepicker-calendar.component.d.ts +80 -0
- package/dist/components/datepicker/datepicker-calendar.component.js +415 -0
- package/dist/components/datepicker/datepicker-calendar.d.ts +8 -0
- package/dist/components/datepicker/datepicker-calendar.js +6 -0
- package/dist/components/datepicker/datepicker-calendar.styles.js +202 -0
- package/dist/components/datepicker/datepicker-popup.component.d.ts +64 -0
- package/dist/components/datepicker/datepicker-popup.component.js +261 -0
- package/dist/components/datepicker/datepicker-popup.d.ts +8 -0
- package/dist/components/datepicker/datepicker-popup.helpers.d.ts +41 -0
- package/dist/components/datepicker/datepicker-popup.helpers.js +83 -0
- package/dist/components/datepicker/datepicker-popup.js +6 -0
- package/dist/components/datepicker/datepicker-popup.styles.js +87 -0
- package/dist/components/datepicker/datepicker.component.d.ts +121 -0
- package/dist/components/datepicker/datepicker.component.js +455 -0
- package/dist/components/datepicker/datepicker.d.ts +8 -0
- package/dist/components/datepicker/datepicker.helpers.d.ts +38 -0
- package/dist/components/datepicker/datepicker.helpers.js +31 -0
- package/dist/components/datepicker/datepicker.js +6 -0
- package/dist/components/datepicker/datepicker.styles.d.ts +1 -0
- package/dist/components/datepicker/datepicker.styles.js +18 -0
- package/dist/components/dialog/dialog.component.d.ts +20 -30
- package/dist/components/dialog/dialog.component.js +89 -78
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/dialog.styles.js +4 -4
- package/dist/components/divider/divider.component.d.ts +4 -8
- package/dist/components/divider/divider.component.js +24 -46
- package/dist/components/divider/divider.styles.js +34 -30
- package/dist/components/drawer/drawer.component.d.ts +61 -0
- package/dist/components/drawer/drawer.component.js +125 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +6 -0
- package/dist/components/drawer/drawer.styles.js +71 -0
- package/dist/components/header/header.component.d.ts +46 -0
- package/dist/components/header/header.component.js +116 -0
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/header.js +6 -0
- package/dist/components/header/header.styles.js +68 -0
- package/dist/components/heading/heading.component.d.ts +8 -12
- package/dist/components/heading/heading.component.js +52 -24
- package/dist/components/heading/heading.styles.d.ts +1 -2
- package/dist/components/heading/heading.styles.js +35 -37
- package/dist/components/icon/icon.component.d.ts +19 -18
- package/dist/components/icon/icon.component.js +60 -40
- package/dist/components/icon/icon.styles.d.ts +1 -2
- package/dist/components/icon/icon.styles.js +61 -60
- package/dist/components/input/input.component.d.ts +31 -31
- package/dist/components/input/input.component.js +167 -146
- package/dist/components/input/input.controllers.d.ts +20 -6
- package/dist/components/input/input.controllers.js +14 -10
- package/dist/components/link/link.component.d.ts +12 -14
- package/dist/components/link/link.component.js +36 -34
- package/dist/components/link/link.styles.d.ts +1 -2
- package/dist/components/link/link.styles.js +24 -20
- package/dist/components/loader/loader.component.d.ts +1 -1
- package/dist/components/loader/loader.component.js +36 -40
- package/dist/components/loader/loader.styles.d.ts +1 -2
- package/dist/components/loader/loader.styles.js +40 -32
- package/dist/components/logo/logo.component.d.ts +8 -6
- package/dist/components/logo/logo.component.js +55 -51
- package/dist/components/logo/logo.styles.js +26 -16
- package/dist/components/menu/menu-item.component.d.ts +13 -0
- package/dist/components/{menu-item → menu}/menu-item.component.js +3 -3
- package/dist/components/{menu-item → menu}/menu-item.d.ts +2 -2
- package/dist/components/menu/menu.component.d.ts +10 -8
- package/dist/components/menu/menu.component.js +8 -10
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/nav/nav-item.component.d.ts +18 -0
- package/dist/components/nav/nav-item.component.js +38 -0
- package/dist/components/nav/nav-item.d.ts +8 -0
- package/dist/components/nav/nav-item.js +6 -0
- package/dist/components/nav/nav-item.styles.d.ts +1 -0
- package/dist/components/nav/nav-item.styles.js +39 -0
- package/dist/components/nav/nav.component.d.ts +17 -0
- package/dist/components/nav/nav.component.js +34 -0
- package/dist/components/nav/nav.d.ts +8 -0
- package/dist/components/nav/nav.js +6 -0
- package/dist/components/nav/nav.styles.d.ts +1 -0
- package/dist/components/nav/nav.styles.js +17 -0
- package/dist/components/popover/popover.component.d.ts +11 -8
- package/dist/components/popover/popover.component.js +24 -26
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.component.d.ts +2 -2
- package/dist/components/progress/progress.component.js +31 -37
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +42 -35
- package/dist/components/radio/radio.component.d.ts +19 -13
- package/dist/components/radio/radio.component.js +13 -12
- package/dist/components/radio/radio.styles.d.ts +1 -2
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.component.d.ts +36 -0
- package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
- package/dist/components/segmented-button/segmented-button-item.d.ts +8 -0
- package/dist/components/segmented-button/segmented-button-item.js +6 -0
- package/dist/components/segmented-button/segmented-button-item.styles.d.ts +1 -0
- package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
- package/dist/components/segmented-button/segmented-button.component.d.ts +30 -0
- package/dist/components/segmented-button/segmented-button.component.js +73 -0
- package/dist/components/segmented-button/segmented-button.d.ts +8 -0
- package/dist/components/segmented-button/segmented-button.js +6 -0
- package/dist/components/segmented-button/segmented-button.styles.d.ts +1 -0
- package/dist/components/segmented-button/segmented-button.styles.js +16 -0
- package/dist/components/{select-option-group → select}/select-option-group.component.js +1 -1
- package/dist/components/{select-option-group → select}/select-option-group.d.ts +2 -2
- package/dist/components/select/select-option-group.style.d.ts +1 -0
- package/dist/components/{select-option → select}/select-option.component.d.ts +9 -10
- package/dist/components/{select-option → select}/select-option.component.js +23 -22
- package/dist/components/select/select-option.controllers.d.ts +15 -0
- package/dist/components/select/select-option.styles.d.ts +1 -0
- package/dist/components/select/select.component.d.ts +18 -17
- package/dist/components/select/select.component.js +22 -22
- package/dist/components/select/select.controllers.d.ts +21 -10
- package/dist/components/select/select.controllers.js +27 -22
- package/dist/components/select/stories/select.stories.icons.d.ts +7 -0
- package/dist/components/{stepper-item → stepper}/stepper-item.component.js +50 -49
- package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +2 -2
- package/dist/components/stepper/stepper-item.styles.d.ts +1 -0
- package/dist/components/stepper/stepper.component.d.ts +4 -3
- package/dist/components/stepper/stepper.component.js +15 -15
- package/dist/components/stepper/stepper.d.ts +2 -2
- package/dist/components/stepper/stepper.helpers.d.ts +1 -1
- package/dist/components/switch/switch.component.d.ts +7 -6
- package/dist/components/switch/switch.component.js +21 -21
- package/dist/components/switch/switch.d.ts +2 -2
- package/dist/components/{tab-panel → tabs}/tab-panel.component.js +1 -1
- package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
- package/dist/components/tabs/tab-panel.styles.d.ts +1 -0
- package/dist/components/{tab → tabs}/tab.component.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.component.js +1 -1
- package/dist/components/{tab → tabs}/tab.d.ts +2 -2
- package/dist/components/tabs/tab.styles.d.ts +1 -0
- package/dist/components/{tab-group/tab-group.component.d.ts → tabs/tabs.component.d.ts} +3 -4
- package/dist/components/{tab-group/tab-group.component.js → tabs/tabs.component.js} +31 -31
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +6 -0
- package/dist/components/tabs/tabs.styles.d.ts +1 -0
- package/dist/components/{tab-group/tab-group.styles.js → tabs/tabs.styles.js} +16 -16
- package/dist/components/tag/tag.component.d.ts +20 -17
- package/dist/components/tag/tag.component.js +69 -67
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.styles.js +63 -50
- package/dist/components/textarea/textarea.component.d.ts +10 -11
- package/dist/components/textarea/textarea.component.js +66 -67
- package/dist/components/{toast-item → toast}/toast-item.component.js +15 -15
- package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
- package/dist/components/{toast-item → toast}/toast-item.js +4 -0
- package/dist/components/toast/toast-item.styles.js +18 -0
- package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
- package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
- package/dist/components/toast/toast.component.d.ts +9 -5
- package/dist/components/toast/toast.component.js +32 -28
- package/dist/components/toast/toast.singleton.d.ts +6 -11
- package/dist/components/toast/toast.singleton.js +23 -23
- package/dist/components/tooltip/tooltip.component.d.ts +7 -7
- package/dist/components/tooltip/tooltip.component.js +16 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/custom-elements.json +4450 -2753
- package/dist/index.d.ts +22 -9
- package/dist/index.js +111 -74
- package/dist/internal/base-classes/popover/popover.base.d.ts +24 -9
- package/dist/internal/base-classes/popover/popover.base.js +138 -77
- package/dist/internal/base-classes/popover/popover.styles.js +14 -1
- package/dist/internal/components/hint/hint.component.d.ts +2 -2
- package/dist/internal/components/hint/hint.component.js +3 -2
- package/dist/internal/components/hint/hint.styles.d.ts +1 -2
- package/dist/internal/components/hint/hint.styles.js +1 -1
- package/dist/internal/components/skf-element.d.ts +1 -3
- package/dist/internal/components/skf-element.js +4 -9
- package/dist/internal/constants/iconSeverity.d.ts +3 -2
- package/dist/internal/constants/iconSeverity.js +2 -3
- package/dist/internal/controllers/elementOverflowController.d.ts +13 -0
- package/dist/internal/controllers/popover.controller.d.ts +12 -6
- package/dist/internal/controllers/popover.controller.js +7 -11
- package/dist/internal/helpers/dateFormatter.d.ts +2 -0
- package/dist/internal/helpers/hintSeverity.d.ts +2 -2
- package/dist/internal/helpers/hintSeverity.js +1 -1
- package/dist/internal/helpers/stateMap.d.ts +14 -0
- package/dist/internal/helpers/stateMap.js +68 -0
- package/dist/internal/helpers/utilityTypes.d.ts +22 -0
- package/dist/internal/helpers/uuid.d.ts +15 -0
- package/dist/internal/helpers/uuid.js +14 -0
- package/dist/internal/helpers/watch.d.ts +1 -1
- package/dist/internal/helpers/watch.js +12 -12
- package/dist/internal/storybook/styles.d.ts +1 -0
- package/dist/internal/types/formField.d.ts +1 -1
- package/dist/internal/types.d.ts +18 -0
- package/dist/styles/component.styles.d.ts +1 -2
- package/dist/styles/component.styles.js +38 -37
- package/dist/styles/form-field.styles.js +11 -6
- package/dist/styles/global-alt.css +1 -0
- package/dist/styles/global.css +1 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +767 -1282
- package/dist/types/vue/index.d.ts +572 -310
- package/dist/vscode.html-custom-data.json +547 -1068
- package/dist/web-types.json +1314 -769
- package/package.json +48 -64
- package/dist/components/accordion/accordion.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox.test.d.ts +0 -1
- package/dist/components/collapse/collapse.component.d.ts +0 -40
- package/dist/components/collapse/collapse.component.js +0 -85
- package/dist/components/collapse/collapse.d.ts +0 -8
- package/dist/components/collapse/collapse.js +0 -6
- package/dist/components/collapse/collapse.styles.d.ts +0 -2
- package/dist/components/collapse/collapse.styles.js +0 -77
- package/dist/components/collapse/collapse.test.d.ts +0 -1
- package/dist/components/input/input.test.d.ts +0 -1
- package/dist/components/menu-item/menu-item.component.d.ts +0 -25
- package/dist/components/radio/radio.test.d.ts +0 -1
- package/dist/components/select-option/select-option.controllers.d.ts +0 -9
- package/dist/components/switch/switch.test.d.ts +0 -1
- package/dist/components/tab-group/tab-group.d.ts +0 -8
- package/dist/components/tab-group/tab-group.js +0 -6
- package/dist/components/toast-item/toast-item.styles.js +0 -16
- package/dist/internal/constants/heading.d.ts +0 -2
- package/dist/internal/playwright/index.d.ts +0 -1
- package/dist/react/index.d.ts +0 -33
- package/dist/react/index.js +0 -33
- package/dist/react/skf-accordion/index.d.ts +0 -3
- package/dist/react/skf-accordion/index.js +0 -13
- package/dist/react/skf-alert/index.d.ts +0 -9
- package/dist/react/skf-alert/index.js +0 -17
- package/dist/react/skf-button/index.d.ts +0 -9
- package/dist/react/skf-button/index.js +0 -17
- package/dist/react/skf-card/index.d.ts +0 -3
- package/dist/react/skf-card/index.js +0 -13
- package/dist/react/skf-checkbox/index.d.ts +0 -9
- package/dist/react/skf-checkbox/index.js +0 -17
- package/dist/react/skf-collapse/index.d.ts +0 -9
- package/dist/react/skf-collapse/index.js +0 -17
- package/dist/react/skf-dialog/index.d.ts +0 -15
- package/dist/react/skf-dialog/index.js +0 -19
- package/dist/react/skf-divider/index.d.ts +0 -3
- package/dist/react/skf-divider/index.js +0 -13
- package/dist/react/skf-heading/index.d.ts +0 -3
- package/dist/react/skf-heading/index.js +0 -13
- package/dist/react/skf-icon/index.d.ts +0 -3
- package/dist/react/skf-icon/index.js +0 -13
- package/dist/react/skf-input/index.d.ts +0 -12
- package/dist/react/skf-input/index.js +0 -18
- package/dist/react/skf-link/index.d.ts +0 -3
- package/dist/react/skf-link/index.js +0 -13
- package/dist/react/skf-loader/index.d.ts +0 -3
- package/dist/react/skf-loader/index.js +0 -13
- package/dist/react/skf-logo/index.d.ts +0 -3
- package/dist/react/skf-logo/index.js +0 -13
- package/dist/react/skf-menu/index.d.ts +0 -12
- package/dist/react/skf-menu/index.js +0 -18
- package/dist/react/skf-menu-item/index.d.ts +0 -27
- package/dist/react/skf-menu-item/index.js +0 -23
- package/dist/react/skf-popover/index.d.ts +0 -12
- package/dist/react/skf-popover/index.js +0 -18
- package/dist/react/skf-progress/index.d.ts +0 -3
- package/dist/react/skf-progress/index.js +0 -13
- package/dist/react/skf-radio/index.d.ts +0 -9
- package/dist/react/skf-radio/index.js +0 -17
- package/dist/react/skf-select/index.d.ts +0 -21
- package/dist/react/skf-select/index.js +0 -21
- package/dist/react/skf-select-option/index.d.ts +0 -9
- package/dist/react/skf-select-option/index.js +0 -17
- package/dist/react/skf-select-option-group/index.d.ts +0 -3
- package/dist/react/skf-select-option-group/index.js +0 -13
- package/dist/react/skf-stepper/index.d.ts +0 -9
- package/dist/react/skf-stepper/index.js +0 -17
- package/dist/react/skf-stepper-item/index.d.ts +0 -9
- package/dist/react/skf-stepper-item/index.js +0 -17
- package/dist/react/skf-switch/index.d.ts +0 -3
- package/dist/react/skf-switch/index.js +0 -13
- package/dist/react/skf-tab/index.d.ts +0 -12
- package/dist/react/skf-tab/index.js +0 -18
- package/dist/react/skf-tab-group/index.d.ts +0 -3
- package/dist/react/skf-tab-group/index.js +0 -13
- package/dist/react/skf-tab-panel/index.d.ts +0 -3
- package/dist/react/skf-tab-panel/index.js +0 -13
- package/dist/react/skf-tag/index.d.ts +0 -3
- package/dist/react/skf-tag/index.js +0 -13
- package/dist/react/skf-textarea/index.d.ts +0 -12
- package/dist/react/skf-textarea/index.js +0 -18
- package/dist/react/skf-toast/index.d.ts +0 -3
- package/dist/react/skf-toast/index.js +0 -13
- package/dist/react/skf-toast-wrapper/index.d.ts +0 -3
- package/dist/react/skf-toast-wrapper/index.js +0 -13
- package/dist/react/skf-tooltip/index.d.ts +0 -12
- package/dist/react/skf-tooltip/index.js +0 -18
- /package/dist/components/{menu-item/menu-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
- /package/dist/components/{select-option-group/select-option-group.style.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
- /package/dist/components/{select-option/select-option.styles.d.ts → breadcrumb/breadcrumb.styles.d.ts} +0 -0
- /package/dist/components/{stepper-item/stepper-item.styles.d.ts → datepicker/datepicker-calendar.styles.d.ts} +0 -0
- /package/dist/components/{tab-group/tab-group.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
- /package/dist/components/{tab-panel/tab-panel.styles.d.ts → drawer/drawer.styles.d.ts} +0 -0
- /package/dist/components/{tab/tab.styles.d.ts → header/header.styles.d.ts} +0 -0
- /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
- /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
- /package/dist/components/{menu-item → menu}/menu-item.styles.js +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.style.js +0 -0
- /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
- /package/dist/components/{select-option → select}/select-option.js +0 -0
- /package/dist/components/{select-option → select}/select-option.styles.js +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
- /package/dist/components/{tab → tabs}/tab.js +0 -0
- /package/dist/components/{tab → tabs}/tab.styles.js +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,39 +1,81 @@
|
|
1
1
|
import type { DefineComponent } from "vue";
|
2
2
|
|
3
|
+
import type { SkfIcon } from "../../components/icon/icon.component.js";
|
4
|
+
import type { SkfAccordionItem, CustomEvent } from "../../components/accordion-item/accordion-item.component.js";
|
3
5
|
import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
|
4
|
-
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
5
|
-
import type {
|
6
|
+
import type { SkfAlert, CustomEvent } from "../../components/alert/alert.component.js";
|
7
|
+
import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
|
8
|
+
import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
|
9
|
+
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
10
|
+
import type { SkfButton, CustomEvent } from "../../components/button/button.component.js";
|
6
11
|
import type { SkfCard } from "../../components/card/card.component.js";
|
7
|
-
import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
|
8
|
-
import type {
|
9
|
-
import type {
|
10
|
-
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
12
|
+
import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
|
13
|
+
import type { SkfDatepickerCalendar } from "../../components/datepicker-calendar/datepicker-calendar.component.js";
|
14
|
+
import type { SkfDatepicker } from "../../components/datepicker/datepicker.component.js";
|
11
15
|
import type { SkfHeading } from "../../components/heading/heading.component.js";
|
12
|
-
import type {
|
13
|
-
import type {
|
14
|
-
import type {
|
15
|
-
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
16
|
+
import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
|
17
|
+
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
18
|
+
import type { SkfDrawer, CustomEvent } from "../../components/drawer/drawer.component.js";
|
16
19
|
import type { SkfLogo } from "../../components/logo/logo.component.js";
|
17
|
-
import type {
|
18
|
-
import type {
|
19
|
-
import type {
|
20
|
+
import type { SkfNav } from "../../components/nav/nav.component.js";
|
21
|
+
import type { SkfHeader } from "../../components/header/header.component.js";
|
22
|
+
import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
|
23
|
+
import type { SkfLink } from "../../components/link/link.component.js";
|
24
|
+
import type { SkfMenuItem } from "../../components/menu-item/menu-item.component.js";
|
25
|
+
import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
|
26
|
+
import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
|
27
|
+
import type { SkfPopover, CustomEvent } from "../../components/popover/popover.component.js";
|
20
28
|
import type { SkfProgress } from "../../components/progress/progress.component.js";
|
21
|
-
import type { SkfRadio } from "../../components/radio/radio.component.js";
|
22
|
-
import type {
|
23
|
-
|
29
|
+
import type { SkfRadio, Event } from "../../components/radio/radio.component.js";
|
30
|
+
import type {
|
31
|
+
SkfSegmentedButtonItem,
|
32
|
+
CustomEvent,
|
33
|
+
} from "../../components/segmented-button-item/segmented-button-item.component.js";
|
34
|
+
import type { SkfSegmentedButton } from "../../components/segmented-button/segmented-button.component.js";
|
24
35
|
import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
|
25
|
-
import type {
|
36
|
+
import type { SkfTag } from "../../components/tag/tag.component.js";
|
37
|
+
import type { SkfSelect, Event, CustomEvent } from "../../components/select/select.component.js";
|
38
|
+
import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
|
26
39
|
import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.component.js";
|
40
|
+
import type { SkfStepper, CustomEvent } from "../../components/stepper/stepper.component.js";
|
27
41
|
import type { SkfSwitch } from "../../components/switch/switch.component.js";
|
28
|
-
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
29
|
-
import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
|
30
42
|
import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
|
31
|
-
import type {
|
43
|
+
import type { SkfTabs } from "../../components/tabs/tabs.component.js";
|
44
|
+
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
32
45
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
33
|
-
import type { SkfToast } from "../../components/toast/toast.component.js";
|
34
46
|
import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
|
47
|
+
import type { SkfToast } from "../../components/toast/toast.component.js";
|
35
48
|
import type { SkfTooltip } from "../../components/tooltip/tooltip.component.js";
|
36
49
|
|
50
|
+
type SkfIconProps = {
|
51
|
+
/** Sets the color of the icon */
|
52
|
+
color?: SkfIcon["color"];
|
53
|
+
/** If defined, adds an alternate description to use for assistive devices */
|
54
|
+
label?: SkfIcon["label"];
|
55
|
+
/** Name of the icon to display */
|
56
|
+
name?: SkfIcon["name"];
|
57
|
+
/** Size of the icon */
|
58
|
+
size?: SkfIcon["size"];
|
59
|
+
};
|
60
|
+
|
61
|
+
type SkfAccordionItemProps = {
|
62
|
+
/** If true, will animate the expand/accordion-item state */
|
63
|
+
animated?: SkfAccordionItem["animated"];
|
64
|
+
/** If true, will set the accordion-item to be expanded by default */
|
65
|
+
expanded?: SkfAccordionItem["expanded"];
|
66
|
+
/** Heading for the accordion-item */
|
67
|
+
heading?: SkfAccordionItem["heading"];
|
68
|
+
/** Defines which heading element will be rendered */
|
69
|
+
"heading-as"?: SkfAccordionItem["headingAs"];
|
70
|
+
/** If true, renders the small version */
|
71
|
+
small?: SkfAccordionItem["small"];
|
72
|
+
/** If true, will truncate the heading in accordion-item state */
|
73
|
+
truncate?: SkfAccordionItem["truncate"];
|
74
|
+
|
75
|
+
/** Event emitted when toggled */
|
76
|
+
"onskf-accordion-item-toggle"?: (e: CustomEvent<CustomEvent>) => void;
|
77
|
+
};
|
78
|
+
|
37
79
|
type SkfAccordionProps = {
|
38
80
|
/** If true, will animate the expand/collapse state */
|
39
81
|
animated?: SkfAccordion["animated"];
|
@@ -50,17 +92,43 @@ type SkfAccordionProps = {
|
|
50
92
|
};
|
51
93
|
|
52
94
|
type SkfAlertProps = {
|
53
|
-
/** If true, alert is being used as a toast (alertdialog) with an close button */
|
54
|
-
closeable?: SkfAlert["closeable"];
|
55
95
|
/** Close button aria-label */
|
56
96
|
"button-label"?: SkfAlert["buttonLabel"];
|
57
97
|
/** If defined, displays leading icon */
|
58
98
|
icon?: SkfAlert["icon"];
|
99
|
+
/** If true, renders with an close button and sets aria-role to `status` */
|
100
|
+
persistent?: SkfAlert["persistent"];
|
59
101
|
/** If defined, gives the supplied appearance */
|
60
102
|
severity?: SkfAlert["severity"];
|
61
103
|
|
62
104
|
/** Fires when the close button is clicked */
|
63
|
-
"onskf-alert-close"?: (e: CustomEvent<
|
105
|
+
"onskf-alert-close"?: (e: CustomEvent<CustomEvent>) => void;
|
106
|
+
};
|
107
|
+
|
108
|
+
type SkfBreadcrumbItemProps = {
|
109
|
+
/** If defined, loads url on click */
|
110
|
+
href?: SkfBreadcrumbItem["href"];
|
111
|
+
/** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
|
112
|
+
onClick?: SkfBreadcrumbItem["onClick"];
|
113
|
+
};
|
114
|
+
|
115
|
+
type SkfBreadcrumbProps = {
|
116
|
+
/** aria-label for the breadcrumb control */
|
117
|
+
label?: SkfBreadcrumb["label"];
|
118
|
+
/** If true, renders a smaller version */
|
119
|
+
small?: SkfBreadcrumb["small"];
|
120
|
+
|
121
|
+
/** Fired when the item is clicked */
|
122
|
+
onclick?: (e: CustomEvent<never>) => void;
|
123
|
+
};
|
124
|
+
|
125
|
+
type SkfLoaderProps = {
|
126
|
+
/** Defines the aria-label */
|
127
|
+
"aria-label"?: SkfLoader["ariaLabel"];
|
128
|
+
/** If true, inverts the color (to be used on colored backgrounds) */
|
129
|
+
invert?: SkfLoader["invert"];
|
130
|
+
/** Defines the size of the loader */
|
131
|
+
size?: SkfLoader["size"];
|
64
132
|
};
|
65
133
|
|
66
134
|
type SkfButtonProps = {
|
@@ -70,9 +138,9 @@ type SkfButtonProps = {
|
|
70
138
|
disabled?: SkfButton["disabled"];
|
71
139
|
/** If provided, renders an icon before or after the text */
|
72
140
|
icon?: SkfButton["icon"];
|
73
|
-
/** If true,
|
74
|
-
|
75
|
-
/**
|
141
|
+
/** If true, button will take a square shape */
|
142
|
+
"icon-only"?: SkfButton["iconOnly"];
|
143
|
+
/** Determines the positioning of the icon in relation to the text */
|
76
144
|
"icon-position"?: SkfButton["iconPosition"];
|
77
145
|
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
78
146
|
loading?: SkfButton["loading"];
|
@@ -86,7 +154,7 @@ type SkfButtonProps = {
|
|
86
154
|
variant?: SkfButton["variant"];
|
87
155
|
|
88
156
|
/** Fires when the button is clicked */
|
89
|
-
onclick?: (e: CustomEvent<
|
157
|
+
onclick?: (e: CustomEvent<CustomEvent>) => void;
|
90
158
|
};
|
91
159
|
|
92
160
|
type SkfCardProps = {
|
@@ -126,26 +194,81 @@ type SkfCheckboxProps = {
|
|
126
194
|
/** The current value of the input field */
|
127
195
|
value?: SkfCheckbox["value"];
|
128
196
|
|
129
|
-
/**
|
130
|
-
onchange?: (e: CustomEvent<
|
197
|
+
/** When the value of the input changes */
|
198
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
131
199
|
};
|
132
200
|
|
133
|
-
type
|
134
|
-
/**
|
135
|
-
|
136
|
-
/**
|
137
|
-
|
138
|
-
/**
|
139
|
-
|
140
|
-
/**
|
141
|
-
|
142
|
-
/**
|
143
|
-
|
144
|
-
/**
|
145
|
-
|
201
|
+
type SkfDatepickerCalendarProps = {
|
202
|
+
/** */
|
203
|
+
eventid?: SkfDatepickerCalendar["eventid"];
|
204
|
+
/** */
|
205
|
+
firstDayOfWeek?: SkfDatepickerCalendar["firstDayOfWeek"];
|
206
|
+
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
207
|
+
"invalid-dates"?: SkfDatepickerCalendar["invalidDates"];
|
208
|
+
/** */
|
209
|
+
locale?: SkfDatepickerCalendar["locale"];
|
210
|
+
/** */
|
211
|
+
range?: SkfDatepickerCalendar["range"];
|
212
|
+
/** Earliest selectable date. (yyyy-mm-dd format) */
|
213
|
+
"selectable-from"?: SkfDatepickerCalendar["selectableFrom"];
|
214
|
+
/** Latest selectable date. (yyyy-mm-dd format) */
|
215
|
+
"selectable-to"?: SkfDatepickerCalendar["selectableTo"];
|
216
|
+
/** */
|
217
|
+
"selected-date"?: SkfDatepickerCalendar["selectedDate"];
|
218
|
+
/** */
|
219
|
+
selectedDateRange?: SkfDatepickerCalendar["selectedDateRange"];
|
220
|
+
/** */
|
221
|
+
_listenToKeyboard?: SkfDatepickerCalendar["_listenToKeyboard"];
|
222
|
+
/** */
|
223
|
+
_handleKeyDown?: SkfDatepickerCalendar["_handleKeyDown"];
|
224
|
+
/** */
|
225
|
+
dateSelectable?: SkfDatepickerCalendar["dateSelectable"];
|
226
|
+
};
|
146
227
|
|
147
|
-
|
148
|
-
|
228
|
+
type SkfDatepickerProps = {
|
229
|
+
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
230
|
+
"custom-invalid"?: SkfDatepicker["customInvalid"];
|
231
|
+
/** */
|
232
|
+
id?: SkfDatepicker["id"];
|
233
|
+
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
234
|
+
label?: SkfDatepicker["label"];
|
235
|
+
/** If true, hides the label visually */
|
236
|
+
"hide-label"?: SkfDatepicker["hideLabel"];
|
237
|
+
/** If defined, displays informational text below the field */
|
238
|
+
hint?: SkfDatepicker["hint"];
|
239
|
+
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
240
|
+
"invalid-dates"?: SkfDatepicker["invalidDates"];
|
241
|
+
/** If defined, adds name to the input-element */
|
242
|
+
name?: SkfDatepicker["name"];
|
243
|
+
/** */
|
244
|
+
placeholder?: SkfDatepicker["placeholder"];
|
245
|
+
/** */
|
246
|
+
range?: SkfDatepicker["range"];
|
247
|
+
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
248
|
+
readonly?: SkfDatepicker["readonly"];
|
249
|
+
/** If defined, renders an alternative A11y text for the asterisk */
|
250
|
+
"required-label"?: SkfDatepicker["requiredLabel"];
|
251
|
+
/** Earliest selectable date. (yyyy-mm-dd format) */
|
252
|
+
"selectable-from"?: SkfDatepicker["selectableFrom"];
|
253
|
+
/** Latest selectable date. (yyyy-mm-dd format) */
|
254
|
+
"selectable-to"?: SkfDatepicker["selectableTo"];
|
255
|
+
/** If defined, displays provided severity state */
|
256
|
+
severity?: SkfDatepicker["severity"];
|
257
|
+
/** Size of the input */
|
258
|
+
size?: SkfDatepicker["size"];
|
259
|
+
/** Sets validation start */
|
260
|
+
"validate-on"?: SkfDatepicker["validateOn"];
|
261
|
+
/** The current value of the input field */
|
262
|
+
value?: SkfDatepicker["value"];
|
263
|
+
/** */
|
264
|
+
focusTimeoutId?: SkfDatepicker["focusTimeoutId"];
|
265
|
+
};
|
266
|
+
|
267
|
+
type SkfHeadingProps = {
|
268
|
+
/** Controls which heading element will be rendered. Should not be used to affect appearance */
|
269
|
+
as?: SkfHeading["as"];
|
270
|
+
/** If defined, changes the appearance of the heading */
|
271
|
+
"styled-as"?: SkfHeading["styledAs"];
|
149
272
|
};
|
150
273
|
|
151
274
|
type SkfDialogProps = {
|
@@ -159,20 +282,15 @@ type SkfDialogProps = {
|
|
159
282
|
"no-close-button"?: SkfDialog["noCloseButton"];
|
160
283
|
/** If defined, removes the inner padding */
|
161
284
|
"no-padding"?: SkfDialog["noPadding"];
|
162
|
-
/**
|
285
|
+
/** If true, indicates that the dialog is active and is available for interaction */
|
163
286
|
open?: SkfDialog["open"];
|
164
|
-
|
165
|
-
onClose?: SkfDialog["onClose"];
|
166
|
-
/** Method that opens the dialog in modal state */
|
167
|
-
showModal?: SkfDialog["showModal"];
|
168
|
-
/** Method that closes the dialog */
|
169
|
-
close?: SkfDialog["close"];
|
287
|
+
|
170
288
|
/** Fires when the dialog is opened (after transitioned in) */
|
171
|
-
"onskf-dialog-
|
172
|
-
/** Fires when the dialog is
|
173
|
-
"onskf-dialog-
|
289
|
+
"onskf-dialog-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
290
|
+
/** Fires when the dialog is closing (before transitioned out) */
|
291
|
+
"onskf-dialog-closing"?: (e: CustomEvent<CustomEvent>) => void;
|
174
292
|
/** Fires when the dialog is closed (after transitioned out) */
|
175
|
-
|
293
|
+
"onskf-dialog-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
176
294
|
};
|
177
295
|
|
178
296
|
type SkfDividerProps = {
|
@@ -184,22 +302,47 @@ type SkfDividerProps = {
|
|
184
302
|
vertical?: SkfDivider["vertical"];
|
185
303
|
};
|
186
304
|
|
187
|
-
type
|
188
|
-
/**
|
189
|
-
|
190
|
-
/**
|
191
|
-
|
305
|
+
type SkfDrawerProps = {
|
306
|
+
/** If defined, sets the aria-label for the close button */
|
307
|
+
"close-button-aria-label"?: SkfDrawer["closeButtonAriaLabel"];
|
308
|
+
/** Heading for the Drawer */
|
309
|
+
heading?: SkfDrawer["heading"];
|
310
|
+
/** Sets the max-width */
|
311
|
+
size?: SkfDrawer["size"];
|
312
|
+
/** If true, Drawer is open */
|
313
|
+
open?: SkfDrawer["open"];
|
314
|
+
/** Placement of the Drawer */
|
315
|
+
placement?: SkfDrawer["placement"];
|
316
|
+
|
317
|
+
/** Fires when the drawer is opened (after transitioned in) */
|
318
|
+
"onskf-drawer-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
319
|
+
/** Fires when the drawer is closing (before transitioned out) */
|
320
|
+
"onskf-drawer-closing"?: (e: CustomEvent<CustomEvent>) => void;
|
321
|
+
/** Fires when the drawer is closed (after transitioned out) */
|
322
|
+
"onskf-drawer-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
192
323
|
};
|
193
324
|
|
194
|
-
type
|
195
|
-
/**
|
196
|
-
|
197
|
-
/**
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
325
|
+
type SkfLogoProps = {
|
326
|
+
/** Defines the title of the logo */
|
327
|
+
title?: SkfLogo["title"];
|
328
|
+
/** Defines the color of the logo */
|
329
|
+
color?: SkfLogo["color"];
|
330
|
+
};
|
331
|
+
|
332
|
+
type SkfNavProps = {
|
333
|
+
/** */
|
334
|
+
vertical?: SkfNav["vertical"];
|
335
|
+
};
|
336
|
+
|
337
|
+
type SkfHeaderProps = {
|
338
|
+
/** If true, sets header to display in compact mode only (hanburger menu and drawer) */
|
339
|
+
compact?: SkfHeader["compact"];
|
340
|
+
/** If defined, sets the aria-label for the hamburger button */
|
341
|
+
"hamburger-aria-label"?: SkfHeader["hamburgerAriaLabel"];
|
342
|
+
/** If defined, sets the app or site's name */
|
343
|
+
"site-name"?: SkfHeader["siteName"];
|
344
|
+
/** If defined, sets the site's base-url for the "logo-link" */
|
345
|
+
"site-url"?: SkfHeader["siteUrl"];
|
203
346
|
};
|
204
347
|
|
205
348
|
type SkfInputProps = {
|
@@ -207,7 +350,8 @@ type SkfInputProps = {
|
|
207
350
|
disabled?: SkfInput["undefined"];
|
208
351
|
/** If true, value is required or must be checked for the form to be submittable */
|
209
352
|
required?: SkfInput["undefined"];
|
210
|
-
/**
|
353
|
+
/** Indicates whether the value of the control can be automatically completed by the browser. See
|
354
|
+
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
|
211
355
|
autocomplete?: SkfInput["autocomplete"];
|
212
356
|
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
213
357
|
"button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
|
@@ -223,7 +367,8 @@ type SkfInputProps = {
|
|
223
367
|
"hide-label"?: SkfInput["hideLabel"];
|
224
368
|
/** If defined, displays informational text below the field */
|
225
369
|
hint?: SkfInput["hint"];
|
226
|
-
/**
|
370
|
+
/** Provides a hint about the type of data that might be entered by the user while editing the element or its contents. See
|
371
|
+
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inputMode) for details. */
|
227
372
|
inputmode?: SkfInput["inputmode"];
|
228
373
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
229
374
|
label?: SkfInput["label"];
|
@@ -255,7 +400,7 @@ type SkfInputProps = {
|
|
255
400
|
size?: SkfInput["size"];
|
256
401
|
/** If defined, displays a suffix/adornment after the input-element */
|
257
402
|
trailing?: SkfInput["trailing"];
|
258
|
-
/** Type of input
|
403
|
+
/** Type of input */
|
259
404
|
type?: SkfInput["type"];
|
260
405
|
/** Sets validation start */
|
261
406
|
"validate-on"?: SkfInput["validateOn"];
|
@@ -263,9 +408,9 @@ type SkfInputProps = {
|
|
263
408
|
value?: SkfInput["value"];
|
264
409
|
|
265
410
|
/** Fires when the value of the input changes */
|
266
|
-
onchange?: (e: CustomEvent<
|
411
|
+
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
267
412
|
/** Fires when the input is invalid */
|
268
|
-
oninvalid?: (e: CustomEvent<
|
413
|
+
oninvalid?: (e: CustomEvent<CustomEvent>) => void;
|
269
414
|
};
|
270
415
|
|
271
416
|
type SkfLinkProps = {
|
@@ -293,43 +438,10 @@ type SkfLinkProps = {
|
|
293
438
|
target?: SkfLink["target"];
|
294
439
|
/** Defines the type of button */
|
295
440
|
type?: SkfLink["type"];
|
296
|
-
/** If
|
441
|
+
/** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
|
297
442
|
onClick?: SkfLink["onClick"];
|
298
443
|
};
|
299
444
|
|
300
|
-
type SkfLoaderProps = {
|
301
|
-
/** Defines the aria-label */
|
302
|
-
"aria-label"?: SkfLoader["ariaLabel"];
|
303
|
-
/** If true, inverts the color (to be used on colored backgrounds) */
|
304
|
-
invert?: SkfLoader["invert"];
|
305
|
-
/** Defines the size of the loader */
|
306
|
-
size?: SkfLoader["size"];
|
307
|
-
/** */
|
308
|
-
role?: SkfLoader["role"];
|
309
|
-
/** */
|
310
|
-
ariaLive?: SkfLoader["ariaLive"];
|
311
|
-
};
|
312
|
-
|
313
|
-
type SkfLogoProps = {
|
314
|
-
/** Defines the title of the logo */
|
315
|
-
title?: SkfLogo["title"];
|
316
|
-
/** Defines the color of the logo */
|
317
|
-
color?: SkfLogo["color"];
|
318
|
-
};
|
319
|
-
|
320
|
-
type SkfMenuProps = {
|
321
|
-
/** The placement of the menu */
|
322
|
-
placement?: SkfMenu["placement"];
|
323
|
-
/** Whether the menu is open */
|
324
|
-
isOpen?: SkfMenu["isOpen"];
|
325
|
-
/** The id of the element the menu will be anchored to */
|
326
|
-
anchor?: SkfMenu["anchor"];
|
327
|
-
/** Fired when the menu is opened */
|
328
|
-
onopen?: (e: CustomEvent<never>) => void;
|
329
|
-
/** Fired when the menu is closed */
|
330
|
-
onclose?: (e: CustomEvent<never>) => void;
|
331
|
-
};
|
332
|
-
|
333
445
|
type SkfMenuItemProps = {
|
334
446
|
/** Defines the semantic element to render */
|
335
447
|
as?: SkfMenuItem["as"];
|
@@ -355,41 +467,45 @@ type SkfMenuItemProps = {
|
|
355
467
|
target?: SkfMenuItem["target"];
|
356
468
|
/** Defines the type of button */
|
357
469
|
type?: SkfMenuItem["type"];
|
358
|
-
/**
|
470
|
+
/** */
|
471
|
+
role?: SkfMenuItem["role"];
|
472
|
+
/** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
|
359
473
|
onClick?: SkfMenuItem["onClick"];
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
/** Fired when the
|
369
|
-
|
370
|
-
/** Fired when the
|
371
|
-
|
372
|
-
|
373
|
-
|
474
|
+
};
|
475
|
+
|
476
|
+
type SkfMenuProps = {
|
477
|
+
/** The placement of the menu */
|
478
|
+
placement?: SkfMenu["undefined"];
|
479
|
+
/** The id of the element the menu will be anchored to */
|
480
|
+
anchor?: SkfMenu["undefined"];
|
481
|
+
|
482
|
+
/** Fired when the menu is opened */
|
483
|
+
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
484
|
+
/** Fired when the menu is closed */
|
485
|
+
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
486
|
+
};
|
487
|
+
|
488
|
+
type SkfNavItemProps = {
|
489
|
+
/** */
|
490
|
+
href?: SkfNavItem["href"];
|
491
|
+
/** */
|
492
|
+
icon?: SkfNavItem["icon"];
|
374
493
|
};
|
375
494
|
|
376
495
|
type SkfPopoverProps = {
|
496
|
+
/** The placement of the popover */
|
497
|
+
placement?: SkfPopover["undefined"];
|
498
|
+
/** The id of the element the menu will be anchored to */
|
499
|
+
anchor?: SkfPopover["undefined"];
|
377
500
|
/** If defined, sets a custom offset for the popover */
|
378
501
|
offset?: SkfPopover["offset"];
|
379
502
|
/** If true, hides the arrow */
|
380
503
|
hideArrow?: SkfPopover["hideArrow"];
|
381
|
-
|
382
|
-
arrow?: SkfPopover["arrow"];
|
383
|
-
/** The placement of the menu */
|
384
|
-
placement?: SkfPopover["placement"];
|
385
|
-
/** Whether the menu is open */
|
386
|
-
isOpen?: SkfPopover["isOpen"];
|
387
|
-
/** The id of the element the menu will be anchored to */
|
388
|
-
anchor?: SkfPopover["anchor"];
|
504
|
+
|
389
505
|
/** Fired when the menu is opened */
|
390
|
-
|
506
|
+
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
391
507
|
/** Fired when the menu is closed */
|
392
|
-
|
508
|
+
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
393
509
|
};
|
394
510
|
|
395
511
|
type SkfProgressProps = {
|
@@ -427,13 +543,52 @@ type SkfRadioProps = {
|
|
427
543
|
/** The current value of the input field */
|
428
544
|
value?: SkfRadio["value"];
|
429
545
|
|
430
|
-
/**
|
431
|
-
onchange?: (e: CustomEvent<
|
546
|
+
/** When the value of the input changes */
|
547
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
548
|
+
};
|
549
|
+
|
550
|
+
type SkfSegmentedButtonItemProps = {
|
551
|
+
/** If true, items is marked as disabled */
|
552
|
+
disabled?: SkfSegmentedButtonItem["disabled"];
|
553
|
+
/** If true, items is marked as selected */
|
554
|
+
selected?: SkfSegmentedButtonItem["selected"];
|
555
|
+
/** Sets the item value */
|
556
|
+
value?: SkfSegmentedButtonItem["value"];
|
557
|
+
|
558
|
+
/** Fired when selected */
|
559
|
+
"onskf-segmented-button-item-select"?: (e: CustomEvent<CustomEvent>) => void;
|
560
|
+
};
|
561
|
+
|
562
|
+
type SkfSegmentedButtonProps = {
|
563
|
+
/** If true, allowes multiple items to be selected */
|
564
|
+
multiple?: SkfSegmentedButton["multiple"];
|
565
|
+
};
|
566
|
+
|
567
|
+
type SkfSelectOptionGroupProps = {
|
568
|
+
/** */
|
569
|
+
label?: SkfSelectOptionGroup["label"];
|
570
|
+
};
|
571
|
+
|
572
|
+
type SkfTagProps = {
|
573
|
+
/** Specifies Tag size */
|
574
|
+
size?: SkfTag["size"];
|
575
|
+
/** If defined, displays leading/provided icon */
|
576
|
+
icon?: SkfTag["icon"];
|
577
|
+
/** If defined, gives the supplied appearance */
|
578
|
+
color?: SkfTag["color"];
|
579
|
+
/** If true, adds trailing button to remove tag */
|
580
|
+
removable?: SkfTag["removable"];
|
581
|
+
/** If defined, accepts a function that runs on click */
|
582
|
+
onClick?: SkfTag["onClick"];
|
583
|
+
/** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
|
584
|
+
onRemove?: SkfTag["onRemove"];
|
432
585
|
};
|
433
586
|
|
434
587
|
type SkfSelectProps = {
|
435
|
-
/** If true, the select is disabled
|
588
|
+
/** If true, the select is disabled */
|
436
589
|
disabled?: SkfSelect["undefined"];
|
590
|
+
/** If true, the select is required */
|
591
|
+
required?: SkfSelect["undefined"];
|
437
592
|
/** Sets the first visible text on the component */
|
438
593
|
"button-label"?: SkfSelect["buttonLabel"];
|
439
594
|
/** If defined, forces component to invalid state until removed */
|
@@ -471,15 +626,15 @@ type SkfSelectProps = {
|
|
471
626
|
/** */
|
472
627
|
_selectedOptions?: SkfSelect["_selectedOptions"];
|
473
628
|
/** Fired when the selected option(s) changes */
|
474
|
-
onchange?: (e: CustomEvent<
|
629
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
475
630
|
/** Fired when the select is invalid */
|
476
|
-
oninvalid?: (e: CustomEvent<
|
631
|
+
oninvalid?: (e: CustomEvent<Event>) => void;
|
477
632
|
/** Fired when the form is reset */
|
478
|
-
onreset?: (e: CustomEvent<
|
633
|
+
onreset?: (e: CustomEvent<Event>) => void;
|
479
634
|
/** {detail: {expanded: boolean}} Fired when the select dropdown is toggled */
|
480
|
-
"onskf-select
|
635
|
+
"onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
|
481
636
|
/** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
|
482
|
-
"onskf-select-option
|
637
|
+
"onskf-select-option-select"?: (e: CustomEvent<CustomEvent>) => void;
|
483
638
|
};
|
484
639
|
|
485
640
|
type SkfSelectOptionProps = {
|
@@ -504,22 +659,7 @@ type SkfSelectOptionProps = {
|
|
504
659
|
/** */
|
505
660
|
_shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
|
506
661
|
/** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
|
507
|
-
"onskf-select-option
|
508
|
-
};
|
509
|
-
|
510
|
-
type SkfSelectOptionGroupProps = {
|
511
|
-
/** */
|
512
|
-
label?: SkfSelectOptionGroup["label"];
|
513
|
-
};
|
514
|
-
|
515
|
-
type SkfStepperProps = {
|
516
|
-
/** Sets the active item */
|
517
|
-
activeIndex?: SkfStepper["activeIndex"];
|
518
|
-
/** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
|
519
|
-
linear?: SkfStepper["linear"];
|
520
|
-
|
521
|
-
/** Dispatched when the stepper item is selected */
|
522
|
-
"onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
|
662
|
+
"onskf-select-option-select"?: (e: CustomEvent<never>) => void;
|
523
663
|
};
|
524
664
|
|
525
665
|
type SkfStepperItemProps = {
|
@@ -535,6 +675,16 @@ type SkfStepperItemProps = {
|
|
535
675
|
"onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
|
536
676
|
};
|
537
677
|
|
678
|
+
type SkfStepperProps = {
|
679
|
+
/** Sets the active item */
|
680
|
+
"active-index"?: SkfStepper["activeIndex"];
|
681
|
+
/** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
|
682
|
+
linear?: SkfStepper["linear"];
|
683
|
+
|
684
|
+
/** Dispatched when the stepper item is selected */
|
685
|
+
"onskf-stepper-item-select"?: (e: CustomEvent<CustomEvent>) => void;
|
686
|
+
};
|
687
|
+
|
538
688
|
type SkfSwitchProps = {
|
539
689
|
/** If true, sets disabled state */
|
540
690
|
disabled?: SkfSwitch["undefined"];
|
@@ -558,56 +708,41 @@ type SkfSwitchProps = {
|
|
558
708
|
value?: SkfSwitch["value"];
|
559
709
|
};
|
560
710
|
|
561
|
-
type
|
562
|
-
/** The
|
563
|
-
|
564
|
-
/** */
|
565
|
-
selected?: SkfTab["selected"];
|
711
|
+
type SkfTabPanelProps = {
|
712
|
+
/** The tab panel's name. */
|
713
|
+
name?: SkfTabPanel["name"];
|
566
714
|
/** */
|
567
|
-
|
715
|
+
active?: SkfTabPanel["active"];
|
568
716
|
/** */
|
569
|
-
role?:
|
570
|
-
/** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
|
571
|
-
"onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
|
572
|
-
/** Fired when the component is clicked */
|
573
|
-
onclick?: (e: CustomEvent<never>) => void;
|
717
|
+
role?: SkfTabPanel["role"];
|
574
718
|
};
|
575
719
|
|
576
|
-
type
|
720
|
+
type SkfTabsProps = {
|
577
721
|
/** Sets the default selected tab */
|
578
|
-
"default-selected"?:
|
722
|
+
"default-selected"?: SkfTabs["defaultSelected"];
|
579
723
|
/** If true, removes border */
|
580
|
-
"no-border"?:
|
724
|
+
"no-border"?: SkfTabs["noBorder"];
|
581
725
|
/** If true, removes padding */
|
582
|
-
"no-padding"?:
|
726
|
+
"no-padding"?: SkfTabs["noPadding"];
|
583
727
|
/** If true, component fills the parent element height */
|
584
|
-
stretch?:
|
728
|
+
stretch?: SkfTabs["stretch"];
|
585
729
|
/** Sets the appearance of the tabs */
|
586
|
-
variant?:
|
730
|
+
variant?: SkfTabs["variant"];
|
587
731
|
};
|
588
732
|
|
589
|
-
type
|
590
|
-
/** The tab panel
|
591
|
-
|
733
|
+
type SkfTabProps = {
|
734
|
+
/** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
|
735
|
+
panel?: SkfTab["panel"];
|
592
736
|
/** */
|
593
|
-
|
737
|
+
selected?: SkfTab["selected"];
|
594
738
|
/** */
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
icon?: SkfTag["icon"];
|
603
|
-
/** If defined, gives the supplied appearance */
|
604
|
-
color?: SkfTag["color"];
|
605
|
-
/** If true, adds trailing button to remove tag */
|
606
|
-
removable?: SkfTag["removable"];
|
607
|
-
/** If defined, accepts a function that runs on click */
|
608
|
-
onClick?: SkfTag["onClick"];
|
609
|
-
/** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
|
610
|
-
onRemove?: SkfTag["onRemove"];
|
739
|
+
variant?: SkfTab["variant"];
|
740
|
+
/** */
|
741
|
+
role?: SkfTab["role"];
|
742
|
+
/** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
|
743
|
+
"onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
|
744
|
+
/** Fired when the component is clicked */
|
745
|
+
onclick?: (e: CustomEvent<never>) => void;
|
611
746
|
};
|
612
747
|
|
613
748
|
type SkfTextAreaProps = {
|
@@ -658,12 +793,19 @@ type SkfTextAreaProps = {
|
|
658
793
|
oninvalid?: (e: CustomEvent<never>) => void;
|
659
794
|
};
|
660
795
|
|
796
|
+
type SkfToastWrapperProps = {
|
797
|
+
/** */
|
798
|
+
debug?: SkfToastWrapper["debug"];
|
799
|
+
};
|
800
|
+
|
661
801
|
type SkfToastProps = {
|
662
|
-
/** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
|
663
|
-
closeable?: SkfToast["closeable"];
|
664
802
|
/** */
|
665
803
|
debug?: SkfToast["debug"];
|
666
|
-
/**
|
804
|
+
/** If defined, displays leading icon */
|
805
|
+
icon?: SkfToast["icon"];
|
806
|
+
/** If true, renders with an close button and sets aria-role to `status` */
|
807
|
+
persistent?: SkfToast["persistent"];
|
808
|
+
/** If defined, gives the supplied appearance */
|
667
809
|
severity?: SkfToast["severity"];
|
668
810
|
/** Time in seconds before the toast disappears. */
|
669
811
|
timer?: SkfToast["timer"];
|
@@ -671,31 +813,54 @@ type SkfToastProps = {
|
|
671
813
|
topOffset?: SkfToast["topOffset"];
|
672
814
|
};
|
673
815
|
|
674
|
-
type SkfToastWrapperProps = {
|
675
|
-
/** */
|
676
|
-
debug?: SkfToastWrapper["debug"];
|
677
|
-
};
|
678
|
-
|
679
816
|
type SkfTooltipProps = {
|
817
|
+
/** The placement of the dropdown */
|
818
|
+
placement?: SkfTooltip["undefined"];
|
819
|
+
/** The id of the element the dropdown will be anchored to */
|
820
|
+
anchor?: SkfTooltip["undefined"];
|
821
|
+
/** */
|
822
|
+
role?: SkfTooltip["role"];
|
680
823
|
/** */
|
681
824
|
offset?: SkfTooltip["offset"];
|
682
|
-
/**
|
825
|
+
/** */
|
683
826
|
placement?: SkfTooltip["placement"];
|
684
|
-
/**
|
685
|
-
|
686
|
-
/** The id of the element the dropdown will be anchored to */
|
687
|
-
anchor?: SkfTooltip["anchor"];
|
827
|
+
/** */
|
828
|
+
variant?: SkfTooltip["variant"];
|
688
829
|
/** Fired when the dropdown is opened */
|
689
|
-
|
830
|
+
"onskf-opened"?: (e: CustomEvent<never>) => void;
|
690
831
|
/** Fired when the dropdown is closed */
|
691
|
-
|
832
|
+
"onskf-closed"?: (e: CustomEvent<never>) => void;
|
692
833
|
};
|
693
834
|
|
694
835
|
export type CustomElements = {
|
695
836
|
/**
|
696
|
-
* The `<skf-
|
837
|
+
* The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text.
|
838
|
+
* ---
|
839
|
+
*
|
840
|
+
*/
|
841
|
+
"skf-icon": DefineComponent<SkfIconProps>;
|
842
|
+
|
843
|
+
/**
|
844
|
+
* The `<skf-accordion-item>` is used in conjunction with the `<skf-accordion>` component
|
845
|
+
* ---
|
846
|
+
*
|
847
|
+
*
|
848
|
+
* ### **Events:**
|
849
|
+
* - **skf-accordion-item-toggle** - Event emitted when toggled
|
850
|
+
*
|
851
|
+
* ### **Methods:**
|
852
|
+
* - **setClose()** - Class method as alternative to manipulate attribute
|
853
|
+
* - **setOpen()** - Class method as alternative to manipulate attribute
|
854
|
+
*
|
855
|
+
* ### **Slots:**
|
856
|
+
* - _default_ - Main content
|
857
|
+
*/
|
858
|
+
"skf-accordion-item": DefineComponent<SkfAccordionItemProps>;
|
859
|
+
|
860
|
+
/**
|
861
|
+
* The `<skf-accordion>` component consists of one or more `<skf-accordion-item>` item(s) working together
|
697
862
|
*
|
698
|
-
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
|
863
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
|
699
864
|
* ---
|
700
865
|
*
|
701
866
|
*
|
@@ -706,6 +871,8 @@ export type CustomElements = {
|
|
706
871
|
|
707
872
|
/**
|
708
873
|
* The `<skf-alert>` is a type of notification that appears in-line
|
874
|
+
*
|
875
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles
|
709
876
|
* ---
|
710
877
|
*
|
711
878
|
*
|
@@ -718,8 +885,42 @@ export type CustomElements = {
|
|
718
885
|
*/
|
719
886
|
"skf-alert": DefineComponent<SkfAlertProps>;
|
720
887
|
|
888
|
+
/**
|
889
|
+
* The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
|
890
|
+
* ---
|
891
|
+
*
|
892
|
+
*
|
893
|
+
* ### **Slots:**
|
894
|
+
* - _default_ - Label of the breadcrumb item
|
895
|
+
*/
|
896
|
+
"skf-breadcrumb-item": DefineComponent<SkfBreadcrumbItemProps>;
|
897
|
+
|
898
|
+
/**
|
899
|
+
* The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
|
900
|
+
*
|
901
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/3338ef-breadcrumbs) for design principles.
|
902
|
+
* ---
|
903
|
+
*
|
904
|
+
*
|
905
|
+
* ### **Events:**
|
906
|
+
* - **click** - Fired when the item is clicked
|
907
|
+
*
|
908
|
+
* ### **Slots:**
|
909
|
+
* - _default_ - One or more `<skf-breadcrumb-item>`
|
910
|
+
*/
|
911
|
+
"skf-breadcrumb": DefineComponent<SkfBreadcrumbProps>;
|
912
|
+
|
913
|
+
/**
|
914
|
+
* The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
|
915
|
+
* ---
|
916
|
+
*
|
917
|
+
*/
|
918
|
+
"skf-loader": DefineComponent<SkfLoaderProps>;
|
919
|
+
|
721
920
|
/**
|
722
921
|
* Component to be used in forms or for interactivity
|
922
|
+
*
|
923
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/02493d-buttons) for design principles
|
723
924
|
* ---
|
724
925
|
*
|
725
926
|
*
|
@@ -736,6 +937,8 @@ export type CustomElements = {
|
|
736
937
|
|
737
938
|
/**
|
738
939
|
* The `<skf-card>` can be used to group related subjects in a container
|
940
|
+
*
|
941
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles
|
739
942
|
* ---
|
740
943
|
*
|
741
944
|
*
|
@@ -750,7 +953,7 @@ export type CustomElements = {
|
|
750
953
|
*
|
751
954
|
*
|
752
955
|
* ### **Events:**
|
753
|
-
* - **change** -
|
956
|
+
* - **change** - When the value of the input changes
|
754
957
|
*
|
755
958
|
* ### **Slots:**
|
756
959
|
* - _default_ - The Radios label. Alternatively, you can use the `label` attribute.
|
@@ -758,37 +961,49 @@ export type CustomElements = {
|
|
758
961
|
"skf-checkbox": DefineComponent<SkfCheckboxProps>;
|
759
962
|
|
760
963
|
/**
|
761
|
-
* The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.
|
762
964
|
*
|
763
|
-
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
|
764
965
|
* ---
|
765
966
|
*
|
967
|
+
*/
|
968
|
+
"skf-datepicker-calendar": DefineComponent<SkfDatepickerCalendarProps>;
|
969
|
+
|
970
|
+
/**
|
971
|
+
*
|
972
|
+
* ---
|
766
973
|
*
|
767
|
-
* ### **Events:**
|
768
|
-
* - **skf-collapse-toggle** - Event emitted when toggled
|
769
974
|
*
|
770
975
|
* ### **Methods:**
|
771
|
-
* - **
|
772
|
-
|
976
|
+
* - **clear()** - Clears the input field
|
977
|
+
*/
|
978
|
+
"skf-datepicker": DefineComponent<SkfDatepickerProps>;
|
979
|
+
|
980
|
+
/**
|
981
|
+
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
982
|
+
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
983
|
+
* ---
|
984
|
+
*
|
773
985
|
*
|
774
986
|
* ### **Slots:**
|
775
|
-
* - _default_ -
|
987
|
+
* - _default_ - The headings content
|
776
988
|
*/
|
777
|
-
"skf-
|
989
|
+
"skf-heading": DefineComponent<SkfHeadingProps>;
|
778
990
|
|
779
991
|
/**
|
780
|
-
* The `<skf-dialog>` is a component that open up a dialog with the content provided
|
992
|
+
* The `<skf-dialog>` is a component that open up a dialog of type modal with the content provided. (MDN refrains from opening the dialog using the `open` attribute, however skf-dialog does not have that limitation)
|
781
993
|
* ---
|
782
994
|
*
|
783
995
|
*
|
784
996
|
* ### **Events:**
|
785
|
-
* - **skf-dialog-
|
786
|
-
* - **skf-dialog-
|
787
|
-
* - **
|
997
|
+
* - **skf-dialog-opened** - Fires when the dialog is opened (after transitioned in)
|
998
|
+
* - **skf-dialog-closing** - Fires when the dialog is closing (before transitioned out)
|
999
|
+
* - **skf-dialog-closed** - Fires when the dialog is closed (after transitioned out)
|
1000
|
+
*
|
1001
|
+
* ### **Methods:**
|
1002
|
+
* - **showModal()** - Method that opens the dialog in modal state
|
1003
|
+
* - **close()** - Method that closes the dialog
|
788
1004
|
*
|
789
1005
|
* ### **Slots:**
|
790
1006
|
* - _default_ - The dialog component's content
|
791
|
-
* - **heading** - The dialog component's heading
|
792
1007
|
* - **footer** - The dialog component's buttons goes here
|
793
1008
|
*
|
794
1009
|
* ### **CSS Properties:**
|
@@ -809,25 +1024,54 @@ export type CustomElements = {
|
|
809
1024
|
"skf-divider": DefineComponent<SkfDividerProps>;
|
810
1025
|
|
811
1026
|
/**
|
812
|
-
* The `<
|
813
|
-
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
1027
|
+
* The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge
|
814
1028
|
* ---
|
815
1029
|
*
|
816
1030
|
*
|
1031
|
+
* ### **Events:**
|
1032
|
+
* - **skf-drawer-opened** - Fires when the drawer is opened (after transitioned in)
|
1033
|
+
* - **skf-drawer-closing** - Fires when the drawer is closing (before transitioned out)
|
1034
|
+
* - **skf-drawer-closed** - Fires when the drawer is closed (after transitioned out)
|
1035
|
+
*
|
817
1036
|
* ### **Slots:**
|
818
|
-
* - _default_ - The
|
1037
|
+
* - _default_ - The Drawer's main content
|
819
1038
|
*/
|
820
|
-
"skf-
|
1039
|
+
"skf-drawer": DefineComponent<SkfDrawerProps>;
|
821
1040
|
|
822
1041
|
/**
|
823
|
-
* The `<skf-
|
1042
|
+
* The `<skf-logo>` component is used to display the SKF logo.
|
824
1043
|
* ---
|
825
1044
|
*
|
1045
|
+
*
|
1046
|
+
* ### **CSS Properties:**
|
1047
|
+
* - **--mod-logo-height** - The height of the logo _(default: undefined)_
|
826
1048
|
*/
|
827
|
-
"skf-
|
1049
|
+
"skf-logo": DefineComponent<SkfLogoProps>;
|
828
1050
|
|
829
1051
|
/**
|
830
|
-
* The skf-
|
1052
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
1053
|
+
* ---
|
1054
|
+
*
|
1055
|
+
*
|
1056
|
+
* ### **Slots:**
|
1057
|
+
* - _default_ - The component's main content
|
1058
|
+
*/
|
1059
|
+
"skf-nav": DefineComponent<SkfNavProps>;
|
1060
|
+
|
1061
|
+
/**
|
1062
|
+
* The `<skf-header>` component is to be used as the site-header in the app. The navigation will be collapsed to mobile-view if the menu items exceed the available width.
|
1063
|
+
* ---
|
1064
|
+
*
|
1065
|
+
*
|
1066
|
+
* ### **Slots:**
|
1067
|
+
* - _default_ - Navigation items
|
1068
|
+
*/
|
1069
|
+
"skf-header": DefineComponent<SkfHeaderProps>;
|
1070
|
+
|
1071
|
+
/**
|
1072
|
+
* The skf-text-field is used to create a text input field. It can be used inside a form element or standalone
|
1073
|
+
*
|
1074
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles
|
831
1075
|
* ---
|
832
1076
|
*
|
833
1077
|
*
|
@@ -851,30 +1095,25 @@ export type CustomElements = {
|
|
851
1095
|
"skf-link": DefineComponent<SkfLinkProps>;
|
852
1096
|
|
853
1097
|
/**
|
854
|
-
* The `<skf-
|
855
|
-
* ---
|
856
|
-
*
|
857
|
-
*/
|
858
|
-
"skf-loader": DefineComponent<SkfLoaderProps>;
|
859
|
-
|
860
|
-
/**
|
861
|
-
* The `<skf-logo>` component is used to display the SKF logo.
|
1098
|
+
* The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component
|
862
1099
|
* ---
|
863
1100
|
*
|
864
1101
|
*
|
865
|
-
* ### **
|
866
|
-
* -
|
1102
|
+
* ### **Slots:**
|
1103
|
+
* - _default_ - The component's main content
|
867
1104
|
*/
|
868
|
-
"skf-
|
1105
|
+
"skf-menu-item": DefineComponent<SkfMenuItemProps>;
|
869
1106
|
|
870
1107
|
/**
|
871
|
-
* The `<skf-menu>` is a component that displays a list of actions or options
|
1108
|
+
* The `<skf-menu>` is a component that displays a list of actions or options
|
1109
|
+
*
|
1110
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
872
1111
|
* ---
|
873
1112
|
*
|
874
1113
|
*
|
875
1114
|
* ### **Events:**
|
876
|
-
* - **
|
877
|
-
* - **
|
1115
|
+
* - **skf-opened** - Fired when the menu is opened
|
1116
|
+
* - **skf-closed** - Fired when the menu is closed
|
878
1117
|
*
|
879
1118
|
* ### **Slots:**
|
880
1119
|
* - _default_ - The menu popover content
|
@@ -882,33 +1121,25 @@ export type CustomElements = {
|
|
882
1121
|
"skf-menu": DefineComponent<SkfMenuProps>;
|
883
1122
|
|
884
1123
|
/**
|
885
|
-
* The `<skf-
|
1124
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
886
1125
|
* ---
|
887
1126
|
*
|
888
1127
|
*
|
889
|
-
* ### **Events:**
|
890
|
-
* - **my-tag-my-event** - Fired when something happens
|
891
|
-
* - **click** - Fired when the component is clicked
|
892
|
-
* - **mouseover** - Fired when the mouse is over the component
|
893
|
-
* - **mouseout** - Fired when the mouse is out of the component
|
894
|
-
* - **focus** - Fired when the component is focused
|
895
|
-
* - **blur** - Fired when the component is blurred
|
896
|
-
* - **change** - Fired when the component's value changes
|
897
|
-
*
|
898
1128
|
* ### **Slots:**
|
899
1129
|
* - _default_ - The component's main content
|
900
|
-
* - **my-named-slot** - A named slot of the component
|
901
1130
|
*/
|
902
|
-
"skf-
|
1131
|
+
"skf-nav-item": DefineComponent<SkfNavItemProps>;
|
903
1132
|
|
904
1133
|
/**
|
905
|
-
* The `<skf-popover>` is a general purpose component that displays the slot content.
|
1134
|
+
* The `<skf-popover>` is a general purpose component that displays the slot content in a popover.
|
1135
|
+
*
|
1136
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
906
1137
|
* ---
|
907
1138
|
*
|
908
1139
|
*
|
909
1140
|
* ### **Events:**
|
910
|
-
* - **
|
911
|
-
* - **
|
1141
|
+
* - **skf-opened** - Fired when the menu is opened
|
1142
|
+
* - **skf-closed** - Fired when the menu is closed
|
912
1143
|
*
|
913
1144
|
* ### **Slots:**
|
914
1145
|
* - _default_ - The popover content
|
@@ -924,11 +1155,13 @@ export type CustomElements = {
|
|
924
1155
|
|
925
1156
|
/**
|
926
1157
|
* The `<skf-radio>` component is used to create a radio input
|
1158
|
+
*
|
1159
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/78d5dd-radio-button) for design principles
|
927
1160
|
* ---
|
928
1161
|
*
|
929
1162
|
*
|
930
1163
|
* ### **Events:**
|
931
|
-
* - **change** -
|
1164
|
+
* - **change** - When the value of the input changes
|
932
1165
|
*
|
933
1166
|
* ### **Slots:**
|
934
1167
|
* - _default_ - The radios label. Alternatively, you can use the `label` attribute.
|
@@ -936,35 +1169,29 @@ export type CustomElements = {
|
|
936
1169
|
"skf-radio": DefineComponent<SkfRadioProps>;
|
937
1170
|
|
938
1171
|
/**
|
939
|
-
* The `<skf-
|
1172
|
+
* The `<skf-segmented-button-item>` is used in conjunction with the `<skf-segmented-button>` component
|
940
1173
|
* ---
|
941
1174
|
*
|
942
1175
|
*
|
943
1176
|
* ### **Events:**
|
944
|
-
* - **
|
945
|
-
* - **invalid** - Fired when the select is invalid
|
946
|
-
* - **reset** - Fired when the form is reset
|
947
|
-
* - **skf-select:dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
948
|
-
* - **skf-select-option:select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
|
1177
|
+
* - **skf-segmented-button-item-select** - Fired when selected
|
949
1178
|
*
|
950
1179
|
* ### **Slots:**
|
951
|
-
* - _default_ -
|
1180
|
+
* - _default_ - Label for the button
|
952
1181
|
*/
|
953
|
-
"skf-
|
1182
|
+
"skf-segmented-button-item": DefineComponent<SkfSegmentedButtonItemProps>;
|
954
1183
|
|
955
1184
|
/**
|
956
|
-
* The `<skf-
|
957
|
-
* ---
|
1185
|
+
* The `<skf-segmented-button>` component consists of multiple `<skf-segmented-button-item>`, working together.
|
958
1186
|
*
|
1187
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/68ff54-segmented-buttons) for design principles
|
1188
|
+
* ---
|
959
1189
|
*
|
960
|
-
* ### **Events:**
|
961
|
-
* - **skf-select-option:select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
|
962
1190
|
*
|
963
1191
|
* ### **Slots:**
|
964
|
-
* - _default_ -
|
965
|
-
* - **icon** - The option's slot for icon or custom meta information (svg).
|
1192
|
+
* - _default_ - One or more `<skf-segmented-button-item>`
|
966
1193
|
*/
|
967
|
-
"skf-
|
1194
|
+
"skf-segmented-button": DefineComponent<SkfSegmentedButtonProps>;
|
968
1195
|
|
969
1196
|
/**
|
970
1197
|
* The `<skf-select-option-group>` is a component that groups select-options
|
@@ -977,65 +1204,85 @@ export type CustomElements = {
|
|
977
1204
|
"skf-select-option-group": DefineComponent<SkfSelectOptionGroupProps>;
|
978
1205
|
|
979
1206
|
/**
|
980
|
-
* The `<skf-
|
1207
|
+
* The `<skf-tag>` is a component that displays a list of actions or options
|
1208
|
+
* ---
|
1209
|
+
*
|
1210
|
+
*
|
1211
|
+
* ### **Slots:**
|
1212
|
+
* - _default_ - The component's placeholder content
|
1213
|
+
*/
|
1214
|
+
"skf-tag": DefineComponent<SkfTagProps>;
|
1215
|
+
|
1216
|
+
/**
|
1217
|
+
* The `<skf-select>` is a component that displays a list of actions or options. A click in the options list toggle the selected state of the option. Use it together with the ´skf-select-option` tag.
|
1218
|
+
*
|
1219
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles
|
981
1220
|
* ---
|
982
1221
|
*
|
983
1222
|
*
|
984
1223
|
* ### **Events:**
|
985
|
-
* - **
|
1224
|
+
* - **change** - Fired when the selected option(s) changes
|
1225
|
+
* - **invalid** - Fired when the select is invalid
|
1226
|
+
* - **reset** - Fired when the form is reset
|
1227
|
+
* - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
1228
|
+
* - **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
|
986
1229
|
*
|
987
1230
|
* ### **Slots:**
|
988
|
-
* - _default_ -
|
1231
|
+
* - _default_ - The select's placeholder content
|
989
1232
|
*/
|
990
|
-
"skf-
|
1233
|
+
"skf-select": DefineComponent<SkfSelectProps>;
|
991
1234
|
|
992
1235
|
/**
|
993
|
-
* The `<skf-
|
1236
|
+
* The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
|
994
1237
|
* ---
|
995
1238
|
*
|
996
1239
|
*
|
997
1240
|
* ### **Events:**
|
998
|
-
* - **skf-
|
1241
|
+
* - **skf-select-option-select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
|
999
1242
|
*
|
1000
1243
|
* ### **Slots:**
|
1001
|
-
* - _default_ -
|
1244
|
+
* - _default_ - The option's text content
|
1245
|
+
* - **icon** - The option's slot for icon or custom meta information (svg).
|
1002
1246
|
*/
|
1003
|
-
"skf-
|
1247
|
+
"skf-select-option": DefineComponent<SkfSelectOptionProps>;
|
1004
1248
|
|
1005
1249
|
/**
|
1006
|
-
* The `<skf-
|
1250
|
+
* The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
|
1007
1251
|
* ---
|
1008
1252
|
*
|
1009
1253
|
*
|
1254
|
+
* ### **Events:**
|
1255
|
+
* - **skf-stepper-item-select** - Dispatched when the stepper item is selected
|
1256
|
+
*
|
1010
1257
|
* ### **Slots:**
|
1011
|
-
* - _default_ -
|
1258
|
+
* - _default_ - Label of the stepper item
|
1012
1259
|
*/
|
1013
|
-
"skf-
|
1260
|
+
"skf-stepper-item": DefineComponent<SkfStepperItemProps>;
|
1014
1261
|
|
1015
1262
|
/**
|
1016
|
-
* The `<skf-
|
1263
|
+
* The `<skf-stepper>` is a component that displays a list of actions or options.
|
1017
1264
|
* ---
|
1018
1265
|
*
|
1019
1266
|
*
|
1020
1267
|
* ### **Events:**
|
1021
|
-
* - **skf-
|
1022
|
-
* - **click** - Fired when the component is clicked
|
1268
|
+
* - **skf-stepper-item-select** - Dispatched when the stepper item is selected
|
1023
1269
|
*
|
1024
1270
|
* ### **Slots:**
|
1025
|
-
* - _default_ -
|
1271
|
+
* - _default_ - One or more `<skf-stepper-item>`
|
1026
1272
|
*/
|
1027
|
-
"skf-
|
1273
|
+
"skf-stepper": DefineComponent<SkfStepperProps>;
|
1028
1274
|
|
1029
1275
|
/**
|
1030
|
-
* The `<skf-
|
1276
|
+
* The `<skf-switch>` is a component that displays a list of actions or options
|
1277
|
+
*
|
1278
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/7282a2-switch) for design principle
|
1031
1279
|
* ---
|
1032
1280
|
*
|
1033
1281
|
*
|
1034
1282
|
* ### **Slots:**
|
1035
|
-
* - _default_ -
|
1036
|
-
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
1283
|
+
* - _default_ - The Switchs label. Alternatively, you can use the `label` attribute.
|
1037
1284
|
*/
|
1038
|
-
"skf-
|
1285
|
+
"skf-switch": DefineComponent<SkfSwitchProps>;
|
1039
1286
|
|
1040
1287
|
/**
|
1041
1288
|
* The `<skf-tab-panel>` is a component that displays a list of actions or options.
|
@@ -1048,14 +1295,29 @@ export type CustomElements = {
|
|
1048
1295
|
"skf-tab-panel": DefineComponent<SkfTabPanelProps>;
|
1049
1296
|
|
1050
1297
|
/**
|
1051
|
-
* The `<skf-
|
1298
|
+
* The `<skf-tabs>` is a component that displays a list of actions or options
|
1052
1299
|
* ---
|
1053
1300
|
*
|
1054
1301
|
*
|
1055
1302
|
* ### **Slots:**
|
1056
|
-
* - _default_ -
|
1303
|
+
* - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
|
1304
|
+
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
1057
1305
|
*/
|
1058
|
-
"skf-
|
1306
|
+
"skf-tabs": DefineComponent<SkfTabsProps>;
|
1307
|
+
|
1308
|
+
/**
|
1309
|
+
* The `<skf-tab>` is a component that displays a list of actions or options
|
1310
|
+
* ---
|
1311
|
+
*
|
1312
|
+
*
|
1313
|
+
* ### **Events:**
|
1314
|
+
* - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
|
1315
|
+
* - **click** - Fired when the component is clicked
|
1316
|
+
*
|
1317
|
+
* ### **Slots:**
|
1318
|
+
* - _default_ - The tab's label
|
1319
|
+
*/
|
1320
|
+
"skf-tab": DefineComponent<SkfTabProps>;
|
1059
1321
|
|
1060
1322
|
/**
|
1061
1323
|
* The skf-textarea is used to create a textarea. Use it inside a form element or wherever you like.
|
@@ -1072,33 +1334,33 @@ export type CustomElements = {
|
|
1072
1334
|
"skf-textarea": DefineComponent<SkfTextAreaProps>;
|
1073
1335
|
|
1074
1336
|
/**
|
1075
|
-
*
|
1337
|
+
* The `<skf-toast-wrapper>` is a component without UI that positions where the toast shows up on the screen. The toast-wrapper is used internally by the toast component.
|
1076
1338
|
* ---
|
1077
1339
|
*
|
1078
1340
|
*
|
1079
1341
|
* ### **Slots:**
|
1080
|
-
* - _default_ - The
|
1342
|
+
* - _default_ - The alert components that the toast creates will render here.
|
1081
1343
|
*/
|
1082
|
-
"skf-toast": DefineComponent<
|
1344
|
+
"skf-toast-wrapper": DefineComponent<SkfToastWrapperProps>;
|
1083
1345
|
|
1084
1346
|
/**
|
1085
|
-
*
|
1347
|
+
* A simple toast component that displays a message to the user. Invoke a toast message by appending a <skf-toast> tag to the DOM. Position in DOM is irrelevant. A transient toast will disappear after a set amount of time. Once toast is dismissed it will be removed from the DOM.
|
1086
1348
|
* ---
|
1087
1349
|
*
|
1088
1350
|
*
|
1089
1351
|
* ### **Slots:**
|
1090
|
-
* - _default_ - The
|
1352
|
+
* - _default_ - The component's placeholder content
|
1091
1353
|
*/
|
1092
|
-
"skf-toast
|
1354
|
+
"skf-toast": DefineComponent<SkfToastProps>;
|
1093
1355
|
|
1094
1356
|
/**
|
1095
|
-
* The `<skf-tooltip>` is a component that displays a
|
1357
|
+
* The `<skf-tooltip>` is a component that displays a tooltip.
|
1096
1358
|
* ---
|
1097
1359
|
*
|
1098
1360
|
*
|
1099
1361
|
* ### **Events:**
|
1100
|
-
* - **
|
1101
|
-
* - **
|
1362
|
+
* - **skf-opened** - Fired when the dropdown is opened
|
1363
|
+
* - **skf-closed** - Fired when the dropdown is closed
|
1102
1364
|
*
|
1103
1365
|
* ### **Slots:**
|
1104
1366
|
* - _default_ - The tooltip popover content
|