@skf-design-system/ui-components 1.0.1-beta.1 → 1.0.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -26
- package/dist/components/accordion/accordion-item.component.d.ts +36 -0
- package/dist/components/accordion/accordion-item.component.js +87 -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 +12 -13
- package/dist/components/accordion/accordion.d.ts +0 -1
- package/dist/components/accordion/accordion.js +0 -2
- package/dist/components/alert/alert.component.d.ts +6 -10
- package/dist/components/alert/alert.component.js +15 -16
- package/dist/components/alert/alert.styles.js +0 -5
- package/dist/components/breadcrumb/breadcrumb-item.component.js +61 -0
- package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +62 -0
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.component.js +60 -0
- package/dist/components/breadcrumb/breadcrumb.js +6 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +22 -0
- package/dist/components/button/button.component.d.ts +13 -10
- package/dist/components/button/button.component.js +83 -76
- package/dist/components/button/button.styles.d.ts +1 -2
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/card/card.component.js +18 -30
- package/dist/components/card/card.styles.js +25 -28
- package/dist/components/checkbox/checkbox.component.d.ts +16 -14
- package/dist/components/checkbox/checkbox.component.js +5 -5
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
- package/dist/components/checkbox/checkbox.styles.js +1 -5
- package/dist/components/date-picker/datepicker.calendar.component.d.ts +5 -0
- package/dist/components/date-picker/datepicker.calendar.component.js +128 -95
- package/dist/components/date-picker/datepicker.calendar.styles.js +35 -25
- package/dist/components/date-picker/datepicker.component.d.ts +5 -0
- package/dist/components/date-picker/datepicker.component.js +117 -97
- package/dist/components/date-picker/datepicker.helpers.d.ts +3 -2
- package/dist/components/date-picker/datepicker.helpers.js +46 -39
- package/dist/components/date-picker/datepicker.styles.js +14 -26
- package/dist/components/date-picker-input/datepicker-input.component.d.ts +14 -5
- package/dist/components/date-picker-input/datepicker-input.component.js +264 -219
- package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +36 -2
- package/dist/components/date-picker-input/datepicker-input.helpers.js +25 -23
- package/dist/components/date-picker-input/datepicker-input.styles.js +6 -10
- package/dist/components/dialog/dialog.component.d.ts +20 -29
- package/dist/components/dialog/dialog.component.js +85 -75
- 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 +3 -11
- package/dist/components/heading/heading.component.js +24 -23
- package/dist/components/heading/heading.styles.d.ts +1 -2
- package/dist/components/heading/heading.styles.js +1 -1
- package/dist/components/icon/icon.component.d.ts +11 -17
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.styles.d.ts +1 -2
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/input/input.component.d.ts +30 -31
- package/dist/components/input/input.component.js +138 -125
- 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 +35 -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 +4 -5
- package/dist/components/logo/logo.component.js +1 -1
- 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/menu.component.d.ts +10 -8
- package/dist/components/menu/menu.component.js +8 -10
- 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.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/progress/progress.component.d.ts +2 -2
- package/dist/components/progress/progress.component.js +31 -37
- package/dist/components/progress/progress.styles.js +40 -35
- package/dist/components/radio/radio.component.d.ts +19 -13
- package/dist/components/radio/radio.component.js +12 -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/select-option-group.style.d.ts +1 -0
- package/dist/components/{select-option → select}/select-option.component.d.ts +7 -8
- package/dist/components/{select-option → select}/select-option.component.js +15 -15
- 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 +16 -15
- package/dist/components/select/select.component.js +19 -19
- package/dist/components/select/select.controllers.d.ts +21 -10
- package/dist/components/select/select.controllers.js +31 -23
- package/dist/components/select/select.stories.icons.d.ts +7 -0
- package/dist/components/{stepper-item → stepper}/stepper-item.component.js +8 -8
- 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.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/tab/tab.component.js +1 -1
- package/dist/components/tab-group/tab-group.component.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +1 -1
- package/dist/components/tag/tag.component.d.ts +14 -16
- package/dist/components/tag/tag.component.js +36 -39
- package/dist/components/textarea/textarea.component.d.ts +10 -11
- package/dist/components/textarea/textarea.component.js +65 -67
- 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-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 +6 -5
- package/dist/components/toast/toast.component.js +15 -15
- package/dist/components/toast/toast.singleton.d.ts +4 -4
- package/dist/components/toast/toast.singleton.js +12 -12
- package/dist/components/tooltip/tooltip.component.d.ts +7 -7
- package/dist/components/tooltip/tooltip.component.js +16 -11
- package/dist/custom-elements.json +2718 -2073
- package/dist/index.d.ts +16 -6
- package/dist/index.js +103 -75
- 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 +2 -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/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 -7
- package/dist/internal/controllers/popover.controller.js +9 -14
- package/dist/internal/helpers/hintSeverity.d.ts +2 -2
- package/dist/internal/helpers/hintSeverity.js +1 -1
- package/dist/internal/helpers/utilityTypes.d.ts +1 -1
- package/dist/internal/helpers/uuid.d.ts +15 -0
- package/dist/internal/helpers/uuid.js +14 -0
- 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 +1 -1
- package/dist/styles/form-field.styles.js +11 -6
- package/dist/styles/global.css +1 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +673 -1310
- package/dist/types/vue/index.d.ts +456 -319
- package/dist/vscode.html-custom-data.json +402 -1080
- package/dist/web-types.json +986 -767
- package/package.json +44 -55
- package/dist/components/collapse/collapse.component.d.ts +0 -40
- package/dist/components/collapse/collapse.component.js +0 -86
- 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/menu-item/menu-item.component.d.ts +0 -25
- package/dist/components/select-option/select-option.controllers.d.ts +0 -9
- package/dist/internal/constants/heading.d.ts +0 -2
- package/dist/react/index.d.ts +0 -36
- package/dist/react/index.js +0 -36
- 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-breadcrumb/index.d.ts +0 -9
- package/dist/react/skf-breadcrumb/index.js +0 -17
- package/dist/react/skf-breadcrumb-item/index.d.ts +0 -3
- package/dist/react/skf-breadcrumb-item/index.js +0 -13
- 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-datepicker/index.d.ts +0 -12
- package/dist/react/skf-datepicker/index.js +0 -18
- 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/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
- /package/dist/components/{collapse/collapse.test.d.ts → accordion/accordion-item.test.d.ts} +0 -0
- /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
- /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +0 -0
- /package/dist/components/{menu-item/menu-item.styles.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
- /package/dist/components/{select-option-group/select-option-group.style.d.ts → drawer/drawer.styles.d.ts} +0 -0
- /package/dist/components/{select-option/select-option.styles.d.ts → header/header.styles.d.ts} +0 -0
- /package/dist/components/{menu-item → menu}/menu-item.d.ts +0 -0
- /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
- /package/dist/components/{stepper-item/stepper-item.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/{toast-wrapper/toast-wrapper.styles.d.ts → nav/nav-item.styles.d.ts} +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.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.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/{toast-item → toast}/toast-item.component.d.ts +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.component.js +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.styles.js +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,42 +1,80 @@
|
|
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
6
|
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
5
|
-
import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
|
6
7
|
import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
|
7
|
-
import type {
|
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";
|
8
11
|
import type { SkfCard } from "../../components/card/card.component.js";
|
9
|
-
import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
|
10
|
-
import type { SkfCollapse, CustomEvent } from "../../components/collapse/collapse.component.js";
|
12
|
+
import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
|
11
13
|
import type { SkfDatePicker } from "../../components/datepicker/datepicker.component.js";
|
12
|
-
import type { SkfDialog } from "../../components/dialog/dialog.component.js";
|
13
|
-
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
14
14
|
import type { SkfHeading } from "../../components/heading/heading.component.js";
|
15
|
-
import type {
|
16
|
-
import type {
|
17
|
-
import type {
|
18
|
-
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
15
|
+
import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
|
16
|
+
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
17
|
+
import type { SkfDrawer, CustomEvent } from "../../components/drawer/drawer.component.js";
|
19
18
|
import type { SkfLogo } from "../../components/logo/logo.component.js";
|
20
|
-
import type {
|
21
|
-
import type {
|
22
|
-
import type {
|
19
|
+
import type { SkfNav } from "../../components/nav/nav.component.js";
|
20
|
+
import type { SkfHeader } from "../../components/header/header.component.js";
|
21
|
+
import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
|
22
|
+
import type { SkfLink } from "../../components/link/link.component.js";
|
23
|
+
import type { SkfMenuItem } from "../../components/menu-item/menu-item.component.js";
|
24
|
+
import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
|
25
|
+
import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
|
26
|
+
import type { SkfPopover, CustomEvent } from "../../components/popover/popover.component.js";
|
23
27
|
import type { SkfProgress } from "../../components/progress/progress.component.js";
|
24
|
-
import type { SkfRadio } from "../../components/radio/radio.component.js";
|
25
|
-
import type {
|
26
|
-
|
28
|
+
import type { SkfRadio, Event } from "../../components/radio/radio.component.js";
|
29
|
+
import type {
|
30
|
+
SkfSegmentedButtonItem,
|
31
|
+
CustomEvent,
|
32
|
+
} from "../../components/segmented-button-item/segmented-button-item.component.js";
|
33
|
+
import type { SkfSegmentedButton } from "../../components/segmented-button/segmented-button.component.js";
|
27
34
|
import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
|
28
|
-
import type {
|
35
|
+
import type { SkfTag } from "../../components/tag/tag.component.js";
|
36
|
+
import type { SkfSelect, Event, CustomEvent } from "../../components/select/select.component.js";
|
37
|
+
import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
|
29
38
|
import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.component.js";
|
39
|
+
import type { SkfStepper, CustomEvent } from "../../components/stepper/stepper.component.js";
|
30
40
|
import type { SkfSwitch } from "../../components/switch/switch.component.js";
|
31
|
-
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
32
|
-
import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
|
33
41
|
import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
|
34
|
-
import type {
|
42
|
+
import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
|
43
|
+
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
35
44
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
36
|
-
import type { SkfToast } from "../../components/toast/toast.component.js";
|
37
45
|
import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
|
46
|
+
import type { SkfToast } from "../../components/toast/toast.component.js";
|
38
47
|
import type { SkfTooltip } from "../../components/tooltip/tooltip.component.js";
|
39
48
|
|
49
|
+
type SkfIconProps = {
|
50
|
+
/** Sets the color of the icon */
|
51
|
+
color?: SkfIcon["color"];
|
52
|
+
/** If defined, adds an alternate description to use for assistive devices */
|
53
|
+
label?: SkfIcon["label"];
|
54
|
+
/** Name of the icon to display */
|
55
|
+
name?: SkfIcon["name"];
|
56
|
+
/** Size of the icon */
|
57
|
+
size?: SkfIcon["size"];
|
58
|
+
};
|
59
|
+
|
60
|
+
type SkfAccordionItemProps = {
|
61
|
+
/** If true, will animate the expand/accordion-item state */
|
62
|
+
animated?: SkfAccordionItem["animated"];
|
63
|
+
/** If true, will set the accordion-item to be expanded by default */
|
64
|
+
expanded?: SkfAccordionItem["expanded"];
|
65
|
+
/** Heading for the accordion-item */
|
66
|
+
heading?: SkfAccordionItem["heading"];
|
67
|
+
/** Defines which heading element will be rendered */
|
68
|
+
"heading-as"?: SkfAccordionItem["headingAs"];
|
69
|
+
/** If true, renders the small version */
|
70
|
+
small?: SkfAccordionItem["small"];
|
71
|
+
/** If true, will truncate the heading in accordion-item state */
|
72
|
+
truncate?: SkfAccordionItem["truncate"];
|
73
|
+
|
74
|
+
/** Event emitted when toggled */
|
75
|
+
"onskf-accordion-item-toggle"?: (e: CustomEvent<CustomEvent>) => void;
|
76
|
+
};
|
77
|
+
|
40
78
|
type SkfAccordionProps = {
|
41
79
|
/** If true, will animate the expand/collapse state */
|
42
80
|
animated?: SkfAccordion["animated"];
|
@@ -66,6 +104,13 @@ type SkfAlertProps = {
|
|
66
104
|
"onskf-alert-close"?: (e: CustomEvent<never>) => void;
|
67
105
|
};
|
68
106
|
|
107
|
+
type SkfBreadcrumbItemProps = {
|
108
|
+
/** If defined, loads url on click */
|
109
|
+
href?: SkfBreadcrumbItem["href"];
|
110
|
+
/** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
|
111
|
+
onClick?: SkfBreadcrumbItem["onClick"];
|
112
|
+
};
|
113
|
+
|
69
114
|
type SkfBreadcrumbProps = {
|
70
115
|
/** aria-label for the breadcrumb control */
|
71
116
|
label?: SkfBreadcrumb["label"];
|
@@ -76,11 +121,13 @@ type SkfBreadcrumbProps = {
|
|
76
121
|
onclick?: (e: CustomEvent<never>) => void;
|
77
122
|
};
|
78
123
|
|
79
|
-
type
|
80
|
-
/**
|
81
|
-
|
82
|
-
/** If
|
83
|
-
|
124
|
+
type SkfLoaderProps = {
|
125
|
+
/** Defines the aria-label */
|
126
|
+
"aria-label"?: SkfLoader["ariaLabel"];
|
127
|
+
/** If true, inverts the color (to be used on colored backgrounds) */
|
128
|
+
invert?: SkfLoader["invert"];
|
129
|
+
/** Defines the size of the loader */
|
130
|
+
size?: SkfLoader["size"];
|
84
131
|
};
|
85
132
|
|
86
133
|
type SkfButtonProps = {
|
@@ -90,8 +137,8 @@ type SkfButtonProps = {
|
|
90
137
|
disabled?: SkfButton["disabled"];
|
91
138
|
/** If provided, renders an icon before or after the text */
|
92
139
|
icon?: SkfButton["icon"];
|
93
|
-
/** If true,
|
94
|
-
|
140
|
+
/** If true, button will take a square shape */
|
141
|
+
"icon-only"?: SkfButton["iconOnly"];
|
95
142
|
/** Determines the positioning of the icon in relation to the text */
|
96
143
|
"icon-position"?: SkfButton["iconPosition"];
|
97
144
|
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
@@ -106,7 +153,7 @@ type SkfButtonProps = {
|
|
106
153
|
variant?: SkfButton["variant"];
|
107
154
|
|
108
155
|
/** Fires when the button is clicked */
|
109
|
-
onclick?: (e: CustomEvent<
|
156
|
+
onclick?: (e: CustomEvent<CustomEvent>) => void;
|
110
157
|
};
|
111
158
|
|
112
159
|
type SkfCardProps = {
|
@@ -146,26 +193,8 @@ type SkfCheckboxProps = {
|
|
146
193
|
/** The current value of the input field */
|
147
194
|
value?: SkfCheckbox["value"];
|
148
195
|
|
149
|
-
/**
|
150
|
-
onchange?: (e: CustomEvent<
|
151
|
-
};
|
152
|
-
|
153
|
-
type SkfCollapseProps = {
|
154
|
-
/** If true, will animate the expand/collapse state */
|
155
|
-
animated?: SkfCollapse["animated"];
|
156
|
-
/** If true, will set the collapse to be expanded by default */
|
157
|
-
expanded?: SkfCollapse["expanded"];
|
158
|
-
/** Heading for the collapse */
|
159
|
-
heading?: SkfCollapse["heading"];
|
160
|
-
/** Defines which heading element will be rendered */
|
161
|
-
"heading-as"?: SkfCollapse["headingAs"];
|
162
|
-
/** If true, renders the small version */
|
163
|
-
small?: SkfCollapse["small"];
|
164
|
-
/** If true, will truncate the heading in collapsed state */
|
165
|
-
truncate?: SkfCollapse["truncate"];
|
166
|
-
|
167
|
-
/** Event emitted when toggled */
|
168
|
-
"onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
|
196
|
+
/** When the value of the input changes */
|
197
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
169
198
|
};
|
170
199
|
|
171
200
|
type SkfDatePickerProps = {
|
@@ -193,6 +222,13 @@ type SkfDatePickerProps = {
|
|
193
222
|
"onselected-date-range-changed"?: (e: CustomEvent<never>) => void;
|
194
223
|
};
|
195
224
|
|
225
|
+
type SkfHeadingProps = {
|
226
|
+
/** Controls which heading element will be rendered. Should not be used to affect appearance */
|
227
|
+
as?: SkfHeading["as"];
|
228
|
+
/** If defined, changes the appearance of the heading */
|
229
|
+
"styled-as"?: SkfHeading["styledAs"];
|
230
|
+
};
|
231
|
+
|
196
232
|
type SkfDialogProps = {
|
197
233
|
/** If defined, sets the aria-label for the close button */
|
198
234
|
"close-button-aria-label"?: SkfDialog["closeButtonAriaLabel"];
|
@@ -204,20 +240,15 @@ type SkfDialogProps = {
|
|
204
240
|
"no-close-button"?: SkfDialog["noCloseButton"];
|
205
241
|
/** If defined, removes the inner padding */
|
206
242
|
"no-padding"?: SkfDialog["noPadding"];
|
207
|
-
/**
|
243
|
+
/** If true, indicates that the dialog is active and is available for interaction */
|
208
244
|
open?: SkfDialog["open"];
|
209
|
-
|
210
|
-
onClose?: SkfDialog["onClose"];
|
211
|
-
/** Method that opens the dialog in modal state */
|
212
|
-
showModal?: SkfDialog["showModal"];
|
213
|
-
/** Method that closes the dialog */
|
214
|
-
close?: SkfDialog["close"];
|
245
|
+
|
215
246
|
/** Fires when the dialog is opened (after transitioned in) */
|
216
|
-
"onskf-dialog-
|
217
|
-
/** Fires when the dialog is
|
218
|
-
"onskf-dialog-
|
247
|
+
"onskf-dialog-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
248
|
+
/** Fires when the dialog is closing (before transitioned out) */
|
249
|
+
"onskf-dialog-closing"?: (e: CustomEvent<CustomEvent>) => void;
|
219
250
|
/** Fires when the dialog is closed (after transitioned out) */
|
220
|
-
|
251
|
+
"onskf-dialog-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
221
252
|
};
|
222
253
|
|
223
254
|
type SkfDividerProps = {
|
@@ -229,22 +260,47 @@ type SkfDividerProps = {
|
|
229
260
|
vertical?: SkfDivider["vertical"];
|
230
261
|
};
|
231
262
|
|
232
|
-
type
|
233
|
-
/**
|
234
|
-
|
235
|
-
/**
|
236
|
-
|
263
|
+
type SkfDrawerProps = {
|
264
|
+
/** If defined, sets the aria-label for the close button */
|
265
|
+
"close-button-aria-label"?: SkfDrawer["closeButtonAriaLabel"];
|
266
|
+
/** Heading for the Drawer */
|
267
|
+
heading?: SkfDrawer["heading"];
|
268
|
+
/** Sets the max-width */
|
269
|
+
size?: SkfDrawer["size"];
|
270
|
+
/** If true, Drawer is open */
|
271
|
+
open?: SkfDrawer["open"];
|
272
|
+
/** Placement of the Drawer */
|
273
|
+
placement?: SkfDrawer["placement"];
|
274
|
+
|
275
|
+
/** Fires when the drawer is opened (after transitioned in) */
|
276
|
+
"onskf-drawer-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
277
|
+
/** Fires when the drawer is closing (before transitioned out) */
|
278
|
+
"onskf-drawer-closing"?: (e: CustomEvent<CustomEvent>) => void;
|
279
|
+
/** Fires when the drawer is closed (after transitioned out) */
|
280
|
+
"onskf-drawer-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
237
281
|
};
|
238
282
|
|
239
|
-
type
|
240
|
-
/**
|
241
|
-
|
242
|
-
/**
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
283
|
+
type SkfLogoProps = {
|
284
|
+
/** Defines the title of the logo */
|
285
|
+
title?: SkfLogo["title"];
|
286
|
+
/** Defines the color of the logo */
|
287
|
+
color?: SkfLogo["color"];
|
288
|
+
};
|
289
|
+
|
290
|
+
type SkfNavProps = {
|
291
|
+
/** */
|
292
|
+
vertical?: SkfNav["vertical"];
|
293
|
+
};
|
294
|
+
|
295
|
+
type SkfHeaderProps = {
|
296
|
+
/** If true, sets header to display in compact mode only (hanburger menu and drawer) */
|
297
|
+
compact?: SkfHeader["compact"];
|
298
|
+
/** If defined, sets the aria-label for the hamburger button */
|
299
|
+
"hamburger-aria-label"?: SkfHeader["hamburgerAriaLabel"];
|
300
|
+
/** If defined, sets the app or site's name */
|
301
|
+
"site-name"?: SkfHeader["siteName"];
|
302
|
+
/** If defined, sets the site's base-url for the "logo-link" */
|
303
|
+
"site-url"?: SkfHeader["siteUrl"];
|
248
304
|
};
|
249
305
|
|
250
306
|
type SkfInputProps = {
|
@@ -252,7 +308,8 @@ type SkfInputProps = {
|
|
252
308
|
disabled?: SkfInput["undefined"];
|
253
309
|
/** If true, value is required or must be checked for the form to be submittable */
|
254
310
|
required?: SkfInput["undefined"];
|
255
|
-
/**
|
311
|
+
/** Indicates whether the value of the control can be automatically completed by the browser. See
|
312
|
+
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
|
256
313
|
autocomplete?: SkfInput["autocomplete"];
|
257
314
|
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
258
315
|
"button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
|
@@ -268,7 +325,8 @@ type SkfInputProps = {
|
|
268
325
|
"hide-label"?: SkfInput["hideLabel"];
|
269
326
|
/** If defined, displays informational text below the field */
|
270
327
|
hint?: SkfInput["hint"];
|
271
|
-
/**
|
328
|
+
/** Provides a hint about the type of data that might be entered by the user while editing the element or its contents. See
|
329
|
+
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inputMode) for details. */
|
272
330
|
inputmode?: SkfInput["inputmode"];
|
273
331
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
274
332
|
label?: SkfInput["label"];
|
@@ -300,7 +358,7 @@ type SkfInputProps = {
|
|
300
358
|
size?: SkfInput["size"];
|
301
359
|
/** If defined, displays a suffix/adornment after the input-element */
|
302
360
|
trailing?: SkfInput["trailing"];
|
303
|
-
/** Type of input
|
361
|
+
/** Type of input */
|
304
362
|
type?: SkfInput["type"];
|
305
363
|
/** Sets validation start */
|
306
364
|
"validate-on"?: SkfInput["validateOn"];
|
@@ -308,9 +366,9 @@ type SkfInputProps = {
|
|
308
366
|
value?: SkfInput["value"];
|
309
367
|
|
310
368
|
/** Fires when the value of the input changes */
|
311
|
-
onchange?: (e: CustomEvent<
|
369
|
+
onchange?: (e: CustomEvent<CustomEvent>) => void;
|
312
370
|
/** Fires when the input is invalid */
|
313
|
-
oninvalid?: (e: CustomEvent<
|
371
|
+
oninvalid?: (e: CustomEvent<CustomEvent>) => void;
|
314
372
|
};
|
315
373
|
|
316
374
|
type SkfLinkProps = {
|
@@ -338,43 +396,10 @@ type SkfLinkProps = {
|
|
338
396
|
target?: SkfLink["target"];
|
339
397
|
/** Defines the type of button */
|
340
398
|
type?: SkfLink["type"];
|
341
|
-
/** If
|
399
|
+
/** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
|
342
400
|
onClick?: SkfLink["onClick"];
|
343
401
|
};
|
344
402
|
|
345
|
-
type SkfLoaderProps = {
|
346
|
-
/** Defines the aria-label */
|
347
|
-
"aria-label"?: SkfLoader["ariaLabel"];
|
348
|
-
/** If true, inverts the color (to be used on colored backgrounds) */
|
349
|
-
invert?: SkfLoader["invert"];
|
350
|
-
/** Defines the size of the loader */
|
351
|
-
size?: SkfLoader["size"];
|
352
|
-
/** */
|
353
|
-
role?: SkfLoader["role"];
|
354
|
-
/** */
|
355
|
-
ariaLive?: SkfLoader["ariaLive"];
|
356
|
-
};
|
357
|
-
|
358
|
-
type SkfLogoProps = {
|
359
|
-
/** Defines the title of the logo */
|
360
|
-
title?: SkfLogo["title"];
|
361
|
-
/** Defines the color of the logo */
|
362
|
-
color?: SkfLogo["color"];
|
363
|
-
};
|
364
|
-
|
365
|
-
type SkfMenuProps = {
|
366
|
-
/** The placement of the menu */
|
367
|
-
placement?: SkfMenu["placement"];
|
368
|
-
/** Whether the menu is open */
|
369
|
-
isOpen?: SkfMenu["isOpen"];
|
370
|
-
/** The id of the element the menu will be anchored to */
|
371
|
-
anchor?: SkfMenu["anchor"];
|
372
|
-
/** Fired when the menu is opened */
|
373
|
-
onopen?: (e: CustomEvent<never>) => void;
|
374
|
-
/** Fired when the menu is closed */
|
375
|
-
onclose?: (e: CustomEvent<never>) => void;
|
376
|
-
};
|
377
|
-
|
378
403
|
type SkfMenuItemProps = {
|
379
404
|
/** Defines the semantic element to render */
|
380
405
|
as?: SkfMenuItem["as"];
|
@@ -400,41 +425,45 @@ type SkfMenuItemProps = {
|
|
400
425
|
target?: SkfMenuItem["target"];
|
401
426
|
/** Defines the type of button */
|
402
427
|
type?: SkfMenuItem["type"];
|
403
|
-
/**
|
428
|
+
/** */
|
429
|
+
role?: SkfMenuItem["role"];
|
430
|
+
/** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
|
404
431
|
onClick?: SkfMenuItem["onClick"];
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
/** Fired when the
|
414
|
-
|
415
|
-
/** Fired when the
|
416
|
-
|
417
|
-
|
418
|
-
|
432
|
+
};
|
433
|
+
|
434
|
+
type SkfMenuProps = {
|
435
|
+
/** The placement of the menu */
|
436
|
+
placement?: SkfMenu["undefined"];
|
437
|
+
/** The id of the element the menu will be anchored to */
|
438
|
+
anchor?: SkfMenu["undefined"];
|
439
|
+
|
440
|
+
/** Fired when the menu is opened */
|
441
|
+
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
442
|
+
/** Fired when the menu is closed */
|
443
|
+
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
444
|
+
};
|
445
|
+
|
446
|
+
type SkfNavItemProps = {
|
447
|
+
/** */
|
448
|
+
href?: SkfNavItem["href"];
|
449
|
+
/** */
|
450
|
+
icon?: SkfNavItem["icon"];
|
419
451
|
};
|
420
452
|
|
421
453
|
type SkfPopoverProps = {
|
454
|
+
/** The placement of the popover */
|
455
|
+
placement?: SkfPopover["undefined"];
|
456
|
+
/** The id of the element the menu will be anchored to */
|
457
|
+
anchor?: SkfPopover["undefined"];
|
422
458
|
/** If defined, sets a custom offset for the popover */
|
423
459
|
offset?: SkfPopover["offset"];
|
424
460
|
/** If true, hides the arrow */
|
425
461
|
hideArrow?: SkfPopover["hideArrow"];
|
426
|
-
|
427
|
-
arrow?: SkfPopover["arrow"];
|
428
|
-
/** The placement of the menu */
|
429
|
-
placement?: SkfPopover["placement"];
|
430
|
-
/** Whether the menu is open */
|
431
|
-
isOpen?: SkfPopover["isOpen"];
|
432
|
-
/** The id of the element the menu will be anchored to */
|
433
|
-
anchor?: SkfPopover["anchor"];
|
462
|
+
|
434
463
|
/** Fired when the menu is opened */
|
435
|
-
|
464
|
+
"onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
|
436
465
|
/** Fired when the menu is closed */
|
437
|
-
|
466
|
+
"onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
|
438
467
|
};
|
439
468
|
|
440
469
|
type SkfProgressProps = {
|
@@ -472,13 +501,52 @@ type SkfRadioProps = {
|
|
472
501
|
/** The current value of the input field */
|
473
502
|
value?: SkfRadio["value"];
|
474
503
|
|
475
|
-
/**
|
476
|
-
onchange?: (e: CustomEvent<
|
504
|
+
/** When the value of the input changes */
|
505
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
506
|
+
};
|
507
|
+
|
508
|
+
type SkfSegmentedButtonItemProps = {
|
509
|
+
/** If true, items is marked as disabled */
|
510
|
+
disabled?: SkfSegmentedButtonItem["disabled"];
|
511
|
+
/** If true, items is marked as selected */
|
512
|
+
selected?: SkfSegmentedButtonItem["selected"];
|
513
|
+
/** Sets the item value */
|
514
|
+
value?: SkfSegmentedButtonItem["value"];
|
515
|
+
|
516
|
+
/** Fired when selected */
|
517
|
+
"onskf-segmented-button-item-select"?: (e: CustomEvent<CustomEvent>) => void;
|
518
|
+
};
|
519
|
+
|
520
|
+
type SkfSegmentedButtonProps = {
|
521
|
+
/** If true, allowes multiple items to be selected */
|
522
|
+
multiple?: SkfSegmentedButton["multiple"];
|
523
|
+
};
|
524
|
+
|
525
|
+
type SkfSelectOptionGroupProps = {
|
526
|
+
/** */
|
527
|
+
label?: SkfSelectOptionGroup["label"];
|
528
|
+
};
|
529
|
+
|
530
|
+
type SkfTagProps = {
|
531
|
+
/** Specifies Tag size */
|
532
|
+
size?: SkfTag["size"];
|
533
|
+
/** If defined, displays leading/provided icon */
|
534
|
+
icon?: SkfTag["icon"];
|
535
|
+
/** If defined, gives the supplied appearance */
|
536
|
+
color?: SkfTag["color"];
|
537
|
+
/** If true, adds trailing button to remove tag */
|
538
|
+
removable?: SkfTag["removable"];
|
539
|
+
/** If defined, accepts a function that runs on click */
|
540
|
+
onClick?: SkfTag["onClick"];
|
541
|
+
/** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
|
542
|
+
onRemove?: SkfTag["onRemove"];
|
477
543
|
};
|
478
544
|
|
479
545
|
type SkfSelectProps = {
|
480
|
-
/** If true, the select is disabled
|
546
|
+
/** If true, the select is disabled */
|
481
547
|
disabled?: SkfSelect["undefined"];
|
548
|
+
/** If true, the select is required */
|
549
|
+
required?: SkfSelect["undefined"];
|
482
550
|
/** Sets the first visible text on the component */
|
483
551
|
"button-label"?: SkfSelect["buttonLabel"];
|
484
552
|
/** If defined, forces component to invalid state until removed */
|
@@ -516,15 +584,15 @@ type SkfSelectProps = {
|
|
516
584
|
/** */
|
517
585
|
_selectedOptions?: SkfSelect["_selectedOptions"];
|
518
586
|
/** Fired when the selected option(s) changes */
|
519
|
-
onchange?: (e: CustomEvent<
|
587
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
520
588
|
/** Fired when the select is invalid */
|
521
|
-
oninvalid?: (e: CustomEvent<
|
589
|
+
oninvalid?: (e: CustomEvent<Event>) => void;
|
522
590
|
/** Fired when the form is reset */
|
523
|
-
onreset?: (e: CustomEvent<
|
591
|
+
onreset?: (e: CustomEvent<Event>) => void;
|
524
592
|
/** {detail: {expanded: boolean}} Fired when the select dropdown is toggled */
|
525
|
-
"onskf-select
|
593
|
+
"onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
|
526
594
|
/** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
|
527
|
-
"onskf-select-option
|
595
|
+
"onskf-select-option-select"?: (e: CustomEvent<CustomEvent>) => void;
|
528
596
|
};
|
529
597
|
|
530
598
|
type SkfSelectOptionProps = {
|
@@ -549,22 +617,7 @@ type SkfSelectOptionProps = {
|
|
549
617
|
/** */
|
550
618
|
_shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
|
551
619
|
/** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
|
552
|
-
"onskf-select-option
|
553
|
-
};
|
554
|
-
|
555
|
-
type SkfSelectOptionGroupProps = {
|
556
|
-
/** */
|
557
|
-
label?: SkfSelectOptionGroup["label"];
|
558
|
-
};
|
559
|
-
|
560
|
-
type SkfStepperProps = {
|
561
|
-
/** Sets the active item */
|
562
|
-
activeIndex?: SkfStepper["activeIndex"];
|
563
|
-
/** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
|
564
|
-
linear?: SkfStepper["linear"];
|
565
|
-
|
566
|
-
/** Dispatched when the stepper item is selected */
|
567
|
-
"onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
|
620
|
+
"onskf-select-option-select"?: (e: CustomEvent<never>) => void;
|
568
621
|
};
|
569
622
|
|
570
623
|
type SkfStepperItemProps = {
|
@@ -580,6 +633,16 @@ type SkfStepperItemProps = {
|
|
580
633
|
"onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
|
581
634
|
};
|
582
635
|
|
636
|
+
type SkfStepperProps = {
|
637
|
+
/** Sets the active item */
|
638
|
+
"active-index"?: SkfStepper["activeIndex"];
|
639
|
+
/** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
|
640
|
+
linear?: SkfStepper["linear"];
|
641
|
+
|
642
|
+
/** Dispatched when the stepper item is selected */
|
643
|
+
"onskf-stepper-item-select"?: (e: CustomEvent<CustomEvent>) => void;
|
644
|
+
};
|
645
|
+
|
583
646
|
type SkfSwitchProps = {
|
584
647
|
/** If true, sets disabled state */
|
585
648
|
disabled?: SkfSwitch["undefined"];
|
@@ -603,19 +666,13 @@ type SkfSwitchProps = {
|
|
603
666
|
value?: SkfSwitch["value"];
|
604
667
|
};
|
605
668
|
|
606
|
-
type
|
607
|
-
/** The
|
608
|
-
|
609
|
-
/** */
|
610
|
-
selected?: SkfTab["selected"];
|
669
|
+
type SkfTabPanelProps = {
|
670
|
+
/** The tab panel's name. */
|
671
|
+
name?: SkfTabPanel["name"];
|
611
672
|
/** */
|
612
|
-
|
673
|
+
active?: SkfTabPanel["active"];
|
613
674
|
/** */
|
614
|
-
role?:
|
615
|
-
/** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
|
616
|
-
"onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
|
617
|
-
/** Fired when the component is clicked */
|
618
|
-
onclick?: (e: CustomEvent<never>) => void;
|
675
|
+
role?: SkfTabPanel["role"];
|
619
676
|
};
|
620
677
|
|
621
678
|
type SkfTabGroupProps = {
|
@@ -631,28 +688,19 @@ type SkfTabGroupProps = {
|
|
631
688
|
variant?: SkfTabGroup["variant"];
|
632
689
|
};
|
633
690
|
|
634
|
-
type
|
635
|
-
/** The tab panel
|
636
|
-
|
691
|
+
type SkfTabProps = {
|
692
|
+
/** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
|
693
|
+
panel?: SkfTab["panel"];
|
637
694
|
/** */
|
638
|
-
|
695
|
+
selected?: SkfTab["selected"];
|
639
696
|
/** */
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
icon?: SkfTag["icon"];
|
648
|
-
/** If defined, gives the supplied appearance */
|
649
|
-
color?: SkfTag["color"];
|
650
|
-
/** If true, adds trailing button to remove tag */
|
651
|
-
removable?: SkfTag["removable"];
|
652
|
-
/** If defined, accepts a function that runs on click */
|
653
|
-
onClick?: SkfTag["onClick"];
|
654
|
-
/** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
|
655
|
-
onRemove?: SkfTag["onRemove"];
|
697
|
+
variant?: SkfTab["variant"];
|
698
|
+
/** */
|
699
|
+
role?: SkfTab["role"];
|
700
|
+
/** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
|
701
|
+
"onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
|
702
|
+
/** Fired when the component is clicked */
|
703
|
+
onclick?: (e: CustomEvent<never>) => void;
|
656
704
|
};
|
657
705
|
|
658
706
|
type SkfTextAreaProps = {
|
@@ -703,6 +751,11 @@ type SkfTextAreaProps = {
|
|
703
751
|
oninvalid?: (e: CustomEvent<never>) => void;
|
704
752
|
};
|
705
753
|
|
754
|
+
type SkfToastWrapperProps = {
|
755
|
+
/** */
|
756
|
+
debug?: SkfToastWrapper["debug"];
|
757
|
+
};
|
758
|
+
|
706
759
|
type SkfToastProps = {
|
707
760
|
/** */
|
708
761
|
debug?: SkfToast["debug"];
|
@@ -718,31 +771,54 @@ type SkfToastProps = {
|
|
718
771
|
topOffset?: SkfToast["topOffset"];
|
719
772
|
};
|
720
773
|
|
721
|
-
type SkfToastWrapperProps = {
|
722
|
-
/** */
|
723
|
-
debug?: SkfToastWrapper["debug"];
|
724
|
-
};
|
725
|
-
|
726
774
|
type SkfTooltipProps = {
|
775
|
+
/** The placement of the dropdown */
|
776
|
+
placement?: SkfTooltip["undefined"];
|
777
|
+
/** The id of the element the dropdown will be anchored to */
|
778
|
+
anchor?: SkfTooltip["undefined"];
|
779
|
+
/** */
|
780
|
+
role?: SkfTooltip["role"];
|
727
781
|
/** */
|
728
782
|
offset?: SkfTooltip["offset"];
|
729
|
-
/**
|
783
|
+
/** */
|
730
784
|
placement?: SkfTooltip["placement"];
|
731
|
-
/**
|
732
|
-
|
733
|
-
/** The id of the element the dropdown will be anchored to */
|
734
|
-
anchor?: SkfTooltip["anchor"];
|
785
|
+
/** */
|
786
|
+
variant?: SkfTooltip["variant"];
|
735
787
|
/** Fired when the dropdown is opened */
|
736
|
-
|
788
|
+
"onskf-opened"?: (e: CustomEvent<never>) => void;
|
737
789
|
/** Fired when the dropdown is closed */
|
738
|
-
|
790
|
+
"onskf-closed"?: (e: CustomEvent<never>) => void;
|
739
791
|
};
|
740
792
|
|
741
793
|
export type CustomElements = {
|
742
794
|
/**
|
743
|
-
* The `<skf-
|
795
|
+
* The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text.
|
796
|
+
* ---
|
797
|
+
*
|
798
|
+
*/
|
799
|
+
"skf-icon": DefineComponent<SkfIconProps>;
|
800
|
+
|
801
|
+
/**
|
802
|
+
* The `<skf-accordion-item>` is used in conjunction with the `<skf-accordion>` component
|
803
|
+
* ---
|
804
|
+
*
|
805
|
+
*
|
806
|
+
* ### **Events:**
|
807
|
+
* - **skf-accordion-item-toggle** - Event emitted when toggled
|
808
|
+
*
|
809
|
+
* ### **Methods:**
|
810
|
+
* - **setClose()** - Class method as alternative to manipulate attribute
|
811
|
+
* - **setOpen()** - Class method as alternative to manipulate attribute
|
812
|
+
*
|
813
|
+
* ### **Slots:**
|
814
|
+
* - _default_ - Main content
|
815
|
+
*/
|
816
|
+
"skf-accordion-item": DefineComponent<SkfAccordionItemProps>;
|
817
|
+
|
818
|
+
/**
|
819
|
+
* The `<skf-accordion>` component consists of one or more `<skf-accordion-item>` item(s) working together
|
744
820
|
*
|
745
|
-
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
|
821
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
|
746
822
|
* ---
|
747
823
|
*
|
748
824
|
*
|
@@ -753,6 +829,8 @@ export type CustomElements = {
|
|
753
829
|
|
754
830
|
/**
|
755
831
|
* The `<skf-alert>` is a type of notification that appears in-line
|
832
|
+
*
|
833
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles
|
756
834
|
* ---
|
757
835
|
*
|
758
836
|
*
|
@@ -765,8 +843,20 @@ export type CustomElements = {
|
|
765
843
|
*/
|
766
844
|
"skf-alert": DefineComponent<SkfAlertProps>;
|
767
845
|
|
846
|
+
/**
|
847
|
+
* The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
|
848
|
+
* ---
|
849
|
+
*
|
850
|
+
*
|
851
|
+
* ### **Slots:**
|
852
|
+
* - _default_ - Label of the breadcrumb item
|
853
|
+
*/
|
854
|
+
"skf-breadcrumb-item": DefineComponent<SkfBreadcrumbItemProps>;
|
855
|
+
|
768
856
|
/**
|
769
857
|
* The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
|
858
|
+
*
|
859
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/3338ef-breadcrumbs) for design principles.
|
770
860
|
* ---
|
771
861
|
*
|
772
862
|
*
|
@@ -779,17 +869,16 @@ export type CustomElements = {
|
|
779
869
|
"skf-breadcrumb": DefineComponent<SkfBreadcrumbProps>;
|
780
870
|
|
781
871
|
/**
|
782
|
-
* The `<skf-
|
872
|
+
* The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
|
783
873
|
* ---
|
784
874
|
*
|
785
|
-
*
|
786
|
-
* ### **Slots:**
|
787
|
-
* - _default_ - Label of the breadcrumb item
|
788
875
|
*/
|
789
|
-
"skf-
|
876
|
+
"skf-loader": DefineComponent<SkfLoaderProps>;
|
790
877
|
|
791
878
|
/**
|
792
879
|
* Component to be used in forms or for interactivity
|
880
|
+
*
|
881
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/02493d-buttons) for design principles
|
793
882
|
* ---
|
794
883
|
*
|
795
884
|
*
|
@@ -806,6 +895,8 @@ export type CustomElements = {
|
|
806
895
|
|
807
896
|
/**
|
808
897
|
* The `<skf-card>` can be used to group related subjects in a container
|
898
|
+
*
|
899
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles
|
809
900
|
* ---
|
810
901
|
*
|
811
902
|
*
|
@@ -820,7 +911,7 @@ export type CustomElements = {
|
|
820
911
|
*
|
821
912
|
*
|
822
913
|
* ### **Events:**
|
823
|
-
* - **change** -
|
914
|
+
* - **change** - When the value of the input changes
|
824
915
|
*
|
825
916
|
* ### **Slots:**
|
826
917
|
* - _default_ - The Radios label. Alternatively, you can use the `label` attribute.
|
@@ -828,50 +919,49 @@ export type CustomElements = {
|
|
828
919
|
"skf-checkbox": DefineComponent<SkfCheckboxProps>;
|
829
920
|
|
830
921
|
/**
|
831
|
-
*
|
832
|
-
*
|
833
|
-
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
|
922
|
+
* A date picker component that allows users to select a date or a range of dates.
|
834
923
|
* ---
|
835
924
|
*
|
836
925
|
*
|
837
926
|
* ### **Events:**
|
838
|
-
* - **
|
927
|
+
* - **selected-date-changed** - When a date is selected
|
928
|
+
* - **selected-date-range-changed** - When a range of dates is selected
|
839
929
|
*
|
840
930
|
* ### **Methods:**
|
841
|
-
* - **
|
842
|
-
* - **setOpen()** - Class method as alternative to manipulate attribute
|
931
|
+
* - **gotoDate(date: _Date | string_)** - Navigates to the given date.
|
843
932
|
*
|
844
933
|
* ### **Slots:**
|
845
|
-
* - _default_ -
|
934
|
+
* - _default_ - Default hint content placed inside the date picker
|
935
|
+
*
|
936
|
+
* ### **CSS Properties:**
|
937
|
+
* - **--max-width** - The maximum width of the date picker _(default: undefined)_
|
846
938
|
*/
|
847
|
-
"skf-
|
939
|
+
"skf-datepicker": DefineComponent<SkfDatePickerProps>;
|
848
940
|
|
849
941
|
/**
|
850
|
-
*
|
942
|
+
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
943
|
+
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
851
944
|
* ---
|
852
945
|
*
|
853
946
|
*
|
854
|
-
* ### **Events:**
|
855
|
-
* - **selected-date-changed** - When a date is selected
|
856
|
-
* - **selected-date-range-changed** - When a range of dates is selected
|
857
|
-
*
|
858
947
|
* ### **Slots:**
|
859
|
-
* - _default_ -
|
860
|
-
*
|
861
|
-
* ### **CSS Properties:**
|
862
|
-
* - **--max-width** - The maximum width of the date picker _(default: undefined)_
|
948
|
+
* - _default_ - The headings content
|
863
949
|
*/
|
864
|
-
"skf-
|
950
|
+
"skf-heading": DefineComponent<SkfHeadingProps>;
|
865
951
|
|
866
952
|
/**
|
867
|
-
* The `<skf-dialog>` is a component that open up a dialog with the content provided
|
953
|
+
* 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)
|
868
954
|
* ---
|
869
955
|
*
|
870
956
|
*
|
871
957
|
* ### **Events:**
|
872
|
-
* - **skf-dialog-
|
873
|
-
* - **skf-dialog-
|
874
|
-
* - **
|
958
|
+
* - **skf-dialog-opened** - Fires when the dialog is opened (after transitioned in)
|
959
|
+
* - **skf-dialog-closing** - Fires when the dialog is closing (before transitioned out)
|
960
|
+
* - **skf-dialog-closed** - Fires when the dialog is closed (after transitioned out)
|
961
|
+
*
|
962
|
+
* ### **Methods:**
|
963
|
+
* - **showModal()** - Method that opens the dialog in modal state
|
964
|
+
* - **close()** - Method that closes the dialog
|
875
965
|
*
|
876
966
|
* ### **Slots:**
|
877
967
|
* - _default_ - The dialog component's content
|
@@ -895,25 +985,54 @@ export type CustomElements = {
|
|
895
985
|
"skf-divider": DefineComponent<SkfDividerProps>;
|
896
986
|
|
897
987
|
/**
|
898
|
-
* The `<
|
899
|
-
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
988
|
+
* The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge
|
900
989
|
* ---
|
901
990
|
*
|
902
991
|
*
|
992
|
+
* ### **Events:**
|
993
|
+
* - **skf-drawer-opened** - Fires when the drawer is opened (after transitioned in)
|
994
|
+
* - **skf-drawer-closing** - Fires when the drawer is closing (before transitioned out)
|
995
|
+
* - **skf-drawer-closed** - Fires when the drawer is closed (after transitioned out)
|
996
|
+
*
|
903
997
|
* ### **Slots:**
|
904
|
-
* - _default_ - The
|
998
|
+
* - _default_ - The Drawer's main content
|
905
999
|
*/
|
906
|
-
"skf-
|
1000
|
+
"skf-drawer": DefineComponent<SkfDrawerProps>;
|
907
1001
|
|
908
1002
|
/**
|
909
|
-
* The `<skf-
|
1003
|
+
* The `<skf-logo>` component is used to display the SKF logo.
|
910
1004
|
* ---
|
911
1005
|
*
|
1006
|
+
*
|
1007
|
+
* ### **CSS Properties:**
|
1008
|
+
* - **--skf-logo-height** - The height of the logo _(default: undefined)_
|
912
1009
|
*/
|
913
|
-
"skf-
|
1010
|
+
"skf-logo": DefineComponent<SkfLogoProps>;
|
914
1011
|
|
915
1012
|
/**
|
916
|
-
* The skf-
|
1013
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
1014
|
+
* ---
|
1015
|
+
*
|
1016
|
+
*
|
1017
|
+
* ### **Slots:**
|
1018
|
+
* - _default_ - The component's main content
|
1019
|
+
*/
|
1020
|
+
"skf-nav": DefineComponent<SkfNavProps>;
|
1021
|
+
|
1022
|
+
/**
|
1023
|
+
* 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.
|
1024
|
+
* ---
|
1025
|
+
*
|
1026
|
+
*
|
1027
|
+
* ### **Slots:**
|
1028
|
+
* - _default_ - Navigation items
|
1029
|
+
*/
|
1030
|
+
"skf-header": DefineComponent<SkfHeaderProps>;
|
1031
|
+
|
1032
|
+
/**
|
1033
|
+
* The skf-text-field is used to create a text input field. It can be used inside a form element or standalone
|
1034
|
+
*
|
1035
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles
|
917
1036
|
* ---
|
918
1037
|
*
|
919
1038
|
*
|
@@ -937,30 +1056,25 @@ export type CustomElements = {
|
|
937
1056
|
"skf-link": DefineComponent<SkfLinkProps>;
|
938
1057
|
|
939
1058
|
/**
|
940
|
-
* The `<skf-
|
941
|
-
* ---
|
942
|
-
*
|
943
|
-
*/
|
944
|
-
"skf-loader": DefineComponent<SkfLoaderProps>;
|
945
|
-
|
946
|
-
/**
|
947
|
-
* The `<skf-logo>` component is used to display the SKF logo.
|
1059
|
+
* The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component
|
948
1060
|
* ---
|
949
1061
|
*
|
950
1062
|
*
|
951
|
-
* ### **
|
952
|
-
* -
|
1063
|
+
* ### **Slots:**
|
1064
|
+
* - _default_ - The component's main content
|
953
1065
|
*/
|
954
|
-
"skf-
|
1066
|
+
"skf-menu-item": DefineComponent<SkfMenuItemProps>;
|
955
1067
|
|
956
1068
|
/**
|
957
|
-
* The `<skf-menu>` is a component that displays a list of actions or options
|
1069
|
+
* The `<skf-menu>` is a component that displays a list of actions or options
|
1070
|
+
*
|
1071
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
958
1072
|
* ---
|
959
1073
|
*
|
960
1074
|
*
|
961
1075
|
* ### **Events:**
|
962
|
-
* - **
|
963
|
-
* - **
|
1076
|
+
* - **skf-opened** - Fired when the menu is opened
|
1077
|
+
* - **skf-closed** - Fired when the menu is closed
|
964
1078
|
*
|
965
1079
|
* ### **Slots:**
|
966
1080
|
* - _default_ - The menu popover content
|
@@ -968,33 +1082,25 @@ export type CustomElements = {
|
|
968
1082
|
"skf-menu": DefineComponent<SkfMenuProps>;
|
969
1083
|
|
970
1084
|
/**
|
971
|
-
* The `<skf-
|
1085
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
972
1086
|
* ---
|
973
1087
|
*
|
974
1088
|
*
|
975
|
-
* ### **Events:**
|
976
|
-
* - **my-tag-my-event** - Fired when something happens
|
977
|
-
* - **click** - Fired when the component is clicked
|
978
|
-
* - **mouseover** - Fired when the mouse is over the component
|
979
|
-
* - **mouseout** - Fired when the mouse is out of the component
|
980
|
-
* - **focus** - Fired when the component is focused
|
981
|
-
* - **blur** - Fired when the component is blurred
|
982
|
-
* - **change** - Fired when the component's value changes
|
983
|
-
*
|
984
1089
|
* ### **Slots:**
|
985
1090
|
* - _default_ - The component's main content
|
986
|
-
* - **my-named-slot** - A named slot of the component
|
987
1091
|
*/
|
988
|
-
"skf-
|
1092
|
+
"skf-nav-item": DefineComponent<SkfNavItemProps>;
|
989
1093
|
|
990
1094
|
/**
|
991
|
-
* The `<skf-popover>` is a general purpose component that displays the slot content.
|
1095
|
+
* The `<skf-popover>` is a general purpose component that displays the slot content in a popover.
|
1096
|
+
*
|
1097
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
992
1098
|
* ---
|
993
1099
|
*
|
994
1100
|
*
|
995
1101
|
* ### **Events:**
|
996
|
-
* - **
|
997
|
-
* - **
|
1102
|
+
* - **skf-opened** - Fired when the menu is opened
|
1103
|
+
* - **skf-closed** - Fired when the menu is closed
|
998
1104
|
*
|
999
1105
|
* ### **Slots:**
|
1000
1106
|
* - _default_ - The popover content
|
@@ -1010,11 +1116,13 @@ export type CustomElements = {
|
|
1010
1116
|
|
1011
1117
|
/**
|
1012
1118
|
* The `<skf-radio>` component is used to create a radio input
|
1119
|
+
*
|
1120
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/78d5dd-radio-button) for design principles
|
1013
1121
|
* ---
|
1014
1122
|
*
|
1015
1123
|
*
|
1016
1124
|
* ### **Events:**
|
1017
|
-
* - **change** -
|
1125
|
+
* - **change** - When the value of the input changes
|
1018
1126
|
*
|
1019
1127
|
* ### **Slots:**
|
1020
1128
|
* - _default_ - The radios label. Alternatively, you can use the `label` attribute.
|
@@ -1022,35 +1130,29 @@ export type CustomElements = {
|
|
1022
1130
|
"skf-radio": DefineComponent<SkfRadioProps>;
|
1023
1131
|
|
1024
1132
|
/**
|
1025
|
-
* The `<skf-
|
1133
|
+
* The `<skf-segmented-button-item>` is used in conjunction with the `<skf-segmented-button>` component
|
1026
1134
|
* ---
|
1027
1135
|
*
|
1028
1136
|
*
|
1029
1137
|
* ### **Events:**
|
1030
|
-
* - **
|
1031
|
-
* - **invalid** - Fired when the select is invalid
|
1032
|
-
* - **reset** - Fired when the form is reset
|
1033
|
-
* - **skf-select:dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
1034
|
-
* - **skf-select-option:select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
|
1138
|
+
* - **skf-segmented-button-item-select** - Fired when selected
|
1035
1139
|
*
|
1036
1140
|
* ### **Slots:**
|
1037
|
-
* - _default_ -
|
1141
|
+
* - _default_ - Label for the button
|
1038
1142
|
*/
|
1039
|
-
"skf-
|
1143
|
+
"skf-segmented-button-item": DefineComponent<SkfSegmentedButtonItemProps>;
|
1040
1144
|
|
1041
1145
|
/**
|
1042
|
-
* The `<skf-
|
1043
|
-
* ---
|
1146
|
+
* The `<skf-segmented-button>` component consists of multiple `<skf-segmented-button-item>`, working together.
|
1044
1147
|
*
|
1148
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/68ff54-segmented-buttons) for design principles
|
1149
|
+
* ---
|
1045
1150
|
*
|
1046
|
-
* ### **Events:**
|
1047
|
-
* - **skf-select-option:select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
|
1048
1151
|
*
|
1049
1152
|
* ### **Slots:**
|
1050
|
-
* - _default_ -
|
1051
|
-
* - **icon** - The option's slot for icon or custom meta information (svg).
|
1153
|
+
* - _default_ - One or more `<skf-segmented-button-item>`
|
1052
1154
|
*/
|
1053
|
-
"skf-
|
1155
|
+
"skf-segmented-button": DefineComponent<SkfSegmentedButtonProps>;
|
1054
1156
|
|
1055
1157
|
/**
|
1056
1158
|
* The `<skf-select-option-group>` is a component that groups select-options
|
@@ -1063,65 +1165,85 @@ export type CustomElements = {
|
|
1063
1165
|
"skf-select-option-group": DefineComponent<SkfSelectOptionGroupProps>;
|
1064
1166
|
|
1065
1167
|
/**
|
1066
|
-
* The `<skf-
|
1168
|
+
* The `<skf-tag>` is a component that displays a list of actions or options
|
1169
|
+
* ---
|
1170
|
+
*
|
1171
|
+
*
|
1172
|
+
* ### **Slots:**
|
1173
|
+
* - _default_ - The component's placeholder content
|
1174
|
+
*/
|
1175
|
+
"skf-tag": DefineComponent<SkfTagProps>;
|
1176
|
+
|
1177
|
+
/**
|
1178
|
+
* 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.
|
1179
|
+
*
|
1180
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles
|
1067
1181
|
* ---
|
1068
1182
|
*
|
1069
1183
|
*
|
1070
1184
|
* ### **Events:**
|
1071
|
-
* - **
|
1185
|
+
* - **change** - Fired when the selected option(s) changes
|
1186
|
+
* - **invalid** - Fired when the select is invalid
|
1187
|
+
* - **reset** - Fired when the form is reset
|
1188
|
+
* - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
1189
|
+
* - **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
|
1072
1190
|
*
|
1073
1191
|
* ### **Slots:**
|
1074
|
-
* - _default_ -
|
1192
|
+
* - _default_ - The select's placeholder content
|
1075
1193
|
*/
|
1076
|
-
"skf-
|
1194
|
+
"skf-select": DefineComponent<SkfSelectProps>;
|
1077
1195
|
|
1078
1196
|
/**
|
1079
|
-
* The `<skf-
|
1197
|
+
* The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
|
1080
1198
|
* ---
|
1081
1199
|
*
|
1082
1200
|
*
|
1083
1201
|
* ### **Events:**
|
1084
|
-
* - **skf-
|
1202
|
+
* - **skf-select-option-select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
|
1085
1203
|
*
|
1086
1204
|
* ### **Slots:**
|
1087
|
-
* - _default_ -
|
1205
|
+
* - _default_ - The option's text content
|
1206
|
+
* - **icon** - The option's slot for icon or custom meta information (svg).
|
1088
1207
|
*/
|
1089
|
-
"skf-
|
1208
|
+
"skf-select-option": DefineComponent<SkfSelectOptionProps>;
|
1090
1209
|
|
1091
1210
|
/**
|
1092
|
-
* The `<skf-
|
1211
|
+
* The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
|
1093
1212
|
* ---
|
1094
1213
|
*
|
1095
1214
|
*
|
1215
|
+
* ### **Events:**
|
1216
|
+
* - **skf-stepper-item-select** - Dispatched when the stepper item is selected
|
1217
|
+
*
|
1096
1218
|
* ### **Slots:**
|
1097
|
-
* - _default_ -
|
1219
|
+
* - _default_ - Label of the stepper item
|
1098
1220
|
*/
|
1099
|
-
"skf-
|
1221
|
+
"skf-stepper-item": DefineComponent<SkfStepperItemProps>;
|
1100
1222
|
|
1101
1223
|
/**
|
1102
|
-
* The `<skf-
|
1224
|
+
* The `<skf-stepper>` is a component that displays a list of actions or options.
|
1103
1225
|
* ---
|
1104
1226
|
*
|
1105
1227
|
*
|
1106
1228
|
* ### **Events:**
|
1107
|
-
* - **skf-
|
1108
|
-
* - **click** - Fired when the component is clicked
|
1229
|
+
* - **skf-stepper-item-select** - Dispatched when the stepper item is selected
|
1109
1230
|
*
|
1110
1231
|
* ### **Slots:**
|
1111
|
-
* - _default_ -
|
1232
|
+
* - _default_ - One or more `<skf-stepper-item>`
|
1112
1233
|
*/
|
1113
|
-
"skf-
|
1234
|
+
"skf-stepper": DefineComponent<SkfStepperProps>;
|
1114
1235
|
|
1115
1236
|
/**
|
1116
|
-
* The `<skf-
|
1237
|
+
* The `<skf-switch>` is a component that displays a list of actions or options
|
1238
|
+
*
|
1239
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/7282a2-switch) for design principle
|
1117
1240
|
* ---
|
1118
1241
|
*
|
1119
1242
|
*
|
1120
1243
|
* ### **Slots:**
|
1121
|
-
* - _default_ -
|
1122
|
-
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
1244
|
+
* - _default_ - The Switchs label. Alternatively, you can use the `label` attribute.
|
1123
1245
|
*/
|
1124
|
-
"skf-
|
1246
|
+
"skf-switch": DefineComponent<SkfSwitchProps>;
|
1125
1247
|
|
1126
1248
|
/**
|
1127
1249
|
* The `<skf-tab-panel>` is a component that displays a list of actions or options.
|
@@ -1134,14 +1256,29 @@ export type CustomElements = {
|
|
1134
1256
|
"skf-tab-panel": DefineComponent<SkfTabPanelProps>;
|
1135
1257
|
|
1136
1258
|
/**
|
1137
|
-
* The `<skf-
|
1259
|
+
* The `<skf-tab-group>` is a component that displays a list of actions or options.
|
1138
1260
|
* ---
|
1139
1261
|
*
|
1140
1262
|
*
|
1141
1263
|
* ### **Slots:**
|
1142
|
-
* - _default_ -
|
1264
|
+
* - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
|
1265
|
+
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
1143
1266
|
*/
|
1144
|
-
"skf-
|
1267
|
+
"skf-tab-group": DefineComponent<SkfTabGroupProps>;
|
1268
|
+
|
1269
|
+
/**
|
1270
|
+
* The `<skf-tab>` is a component that displays a list of actions or options
|
1271
|
+
* ---
|
1272
|
+
*
|
1273
|
+
*
|
1274
|
+
* ### **Events:**
|
1275
|
+
* - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
|
1276
|
+
* - **click** - Fired when the component is clicked
|
1277
|
+
*
|
1278
|
+
* ### **Slots:**
|
1279
|
+
* - _default_ - The tab's label
|
1280
|
+
*/
|
1281
|
+
"skf-tab": DefineComponent<SkfTabProps>;
|
1145
1282
|
|
1146
1283
|
/**
|
1147
1284
|
* The skf-textarea is used to create a textarea. Use it inside a form element or wherever you like.
|
@@ -1158,33 +1295,33 @@ export type CustomElements = {
|
|
1158
1295
|
"skf-textarea": DefineComponent<SkfTextAreaProps>;
|
1159
1296
|
|
1160
1297
|
/**
|
1161
|
-
*
|
1298
|
+
* 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.
|
1162
1299
|
* ---
|
1163
1300
|
*
|
1164
1301
|
*
|
1165
1302
|
* ### **Slots:**
|
1166
|
-
* - _default_ - The
|
1303
|
+
* - _default_ - The alert components that the toast creates will render here.
|
1167
1304
|
*/
|
1168
|
-
"skf-toast": DefineComponent<
|
1305
|
+
"skf-toast-wrapper": DefineComponent<SkfToastWrapperProps>;
|
1169
1306
|
|
1170
1307
|
/**
|
1171
|
-
*
|
1308
|
+
* 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.
|
1172
1309
|
* ---
|
1173
1310
|
*
|
1174
1311
|
*
|
1175
1312
|
* ### **Slots:**
|
1176
|
-
* - _default_ - The
|
1313
|
+
* - _default_ - The component's placeholder content
|
1177
1314
|
*/
|
1178
|
-
"skf-toast
|
1315
|
+
"skf-toast": DefineComponent<SkfToastProps>;
|
1179
1316
|
|
1180
1317
|
/**
|
1181
|
-
* The `<skf-tooltip>` is a component that displays a
|
1318
|
+
* The `<skf-tooltip>` is a component that displays a tooltip.
|
1182
1319
|
* ---
|
1183
1320
|
*
|
1184
1321
|
*
|
1185
1322
|
* ### **Events:**
|
1186
|
-
* - **
|
1187
|
-
* - **
|
1323
|
+
* - **skf-opened** - Fired when the dropdown is opened
|
1324
|
+
* - **skf-closed** - Fired when the dropdown is closed
|
1188
1325
|
*
|
1189
1326
|
* ### **Slots:**
|
1190
1327
|
* - _default_ - The tooltip popover content
|