@skf-design-system/ui-components 1.0.0-alpha.34 → 1.0.0-alpha.36
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/custom-elements.json +25490 -0
- 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 +10 -14
- package/dist/components/accordion/accordion.component.js +10 -11
- 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 +12 -12
- package/dist/components/alert/alert.component.js +57 -55
- package/dist/components/alert/alert.styles.js +50 -51
- package/dist/components/breadcrumb/breadcrumb-item.component.js +60 -0
- package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +2 -2
- 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 +7 -4
- package/dist/components/breadcrumb/breadcrumb.component.js +65 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- 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 +73 -61
- 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 +6 -1
- package/dist/components/card/card.component.js +46 -36
- package/dist/components/card/card.styles.js +37 -23
- package/dist/components/checkbox/checkbox.component.d.ts +17 -13
- package/dist/components/checkbox/checkbox.component.js +74 -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 +456 -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 -29
- package/dist/components/dialog/dialog.component.js +85 -75
- 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 +15 -17
- package/dist/components/icon/icon.component.js +52 -43
- package/dist/components/icon/icon.styles.d.ts +1 -2
- package/dist/components/icon/icon.styles.js +60 -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 +20 -25
- package/dist/components/link/link.component.js +99 -107
- package/dist/components/link/link.styles.d.ts +1 -2
- package/dist/components/link/link.styles.js +47 -43
- 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/menu-item.component.js +13 -0
- package/dist/components/{menu-item → menu}/menu-item.d.ts +2 -2
- package/dist/components/{menu-item → menu}/menu-item.styles.js +8 -5
- 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 +22 -0
- package/dist/components/nav/nav-item.component.js +57 -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 +43 -0
- package/dist/components/nav/nav.component.d.ts +23 -0
- package/dist/components/nav/nav.component.js +55 -0
- package/dist/components/nav/nav.d.ts +8 -0
- package/dist/components/nav/nav.js +6 -0
- package/dist/components/nav/nav.styles.js +23 -0
- package/dist/components/popover/popover.component.d.ts +15 -8
- package/dist/components/popover/popover.component.js +29 -23
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.component.d.ts +4 -2
- package/dist/components/progress/progress.component.js +38 -35
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +40 -33
- 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.d.ts +4 -0
- package/dist/components/select/select-option-group.component.js +50 -0
- 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/select-option-group.style.js +24 -0
- package/dist/components/{select-option → select}/select-option.component.d.ts +14 -11
- package/dist/components/select/select-option.component.js +140 -0
- 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-option.styles.js +65 -0
- package/dist/components/select/select.component.d.ts +22 -17
- package/dist/components/select/select.component.js +62 -45
- package/dist/components/select/select.controllers.d.ts +21 -10
- package/dist/components/select/select.controllers.js +29 -23
- package/dist/components/select/stories/select.stories.icons.d.ts +7 -0
- package/dist/components/{stepper-item → stepper}/stepper-item.component.js +48 -48
- 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} +36 -37
- 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 +68 -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 +67 -68
- 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 +31 -27
- package/dist/components/toast/toast.singleton.d.ts +7 -12
- package/dist/components/toast/toast.singleton.js +26 -26
- 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 +3980 -2348
- 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 +140 -79
- package/dist/internal/base-classes/popover/popover.styles.js +17 -5
- package/dist/internal/components/hint/hint.component.d.ts +6 -2
- package/dist/internal/components/hint/hint.component.js +47 -20
- package/dist/internal/components/hint/hint.styles.d.ts +1 -2
- package/dist/internal/components/hint/hint.styles.js +30 -26
- 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 +9 -14
- 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 +871 -1307
- package/dist/types/vue/index.d.ts +593 -360
- package/dist/vscode.html-custom-data.json +630 -1184
- package/dist/web-types.json +1422 -945
- package/package.json +47 -63
- 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 -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/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/menu-item/menu-item.component.js +0 -13
- package/dist/components/radio/radio.test.d.ts +0 -1
- package/dist/components/select-option/select-option.component.js +0 -123
- package/dist/components/select-option/select-option.controllers.d.ts +0 -9
- package/dist/components/select-option/select-option.styles.js +0 -53
- package/dist/components/select-option-group/select-option-group.component.js +0 -31
- package/dist/components/select-option-group/select-option-group.style.js +0 -18
- 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 -35
- package/dist/react/index.js +0 -35
- 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-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/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.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 → datepicker/datepicker-calendar.styles.d.ts} +0 -0
- /package/dist/components/{select-option/select-option.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
- /package/dist/components/{stepper-item/stepper-item.styles.d.ts → drawer/drawer.styles.d.ts} +0 -0
- /package/dist/components/{tab-group/tab-group.styles.d.ts → header/header.styles.d.ts} +0 -0
- /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
- /package/dist/components/{tab-panel/tab-panel.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
- /package/dist/components/{tab/tab.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
- /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → nav/nav.styles.d.ts} +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.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/{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
@@ -0,0 +1,71 @@
|
|
1
|
+
import { css as e } from "lit";
|
2
|
+
const o = e`
|
3
|
+
@layer components {
|
4
|
+
dialog {
|
5
|
+
all: unset;
|
6
|
+
background-color: var(--skf-bg-color-neutral-1);
|
7
|
+
display: none;
|
8
|
+
flex-direction: column;
|
9
|
+
inline-size: min(100%, var(--_skf-drawer-size, 540px));
|
10
|
+
inset-block: 0;
|
11
|
+
inset-inline: var(--_skf-drawer-inset, auto 0);
|
12
|
+
position: fixed;
|
13
|
+
translate: 100% 0;
|
14
|
+
|
15
|
+
&[open] {
|
16
|
+
display: flex;
|
17
|
+
|
18
|
+
&::backdrop {
|
19
|
+
background-color: var(--skf-bg-color-neutral-7);
|
20
|
+
opacity: 0.4;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
:host([placement='left']) & {
|
25
|
+
--_skf-drawer-inset: 0 auto;
|
26
|
+
|
27
|
+
translate: -100% 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
:host([size='sm']) & {
|
31
|
+
--_skf-drawer-size: 400px;
|
32
|
+
}
|
33
|
+
|
34
|
+
:host([size='lg']) & {
|
35
|
+
--_skf-drawer-size: 680px;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
header {
|
40
|
+
align-items: center;
|
41
|
+
background-color: var(--skf-bg-color-emphasised);
|
42
|
+
block-size: var(--skf-size-48);
|
43
|
+
color: var(--skf-text-color-inverse);
|
44
|
+
display: flex;
|
45
|
+
justify-content: space-between;
|
46
|
+
padding-inline: var(--skf-box-spacing);
|
47
|
+
}
|
48
|
+
|
49
|
+
h2 {
|
50
|
+
font-size: var(--skf-font-size-200);
|
51
|
+
}
|
52
|
+
|
53
|
+
#close-button {
|
54
|
+
display: inline-flex;
|
55
|
+
|
56
|
+
&:focus-visible {
|
57
|
+
border-radius: var(--skf-border-radius-sm);
|
58
|
+
outline: var(--skf-border-width-sm) solid var(--skf-interactive-text-color-inverse);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
#body {
|
63
|
+
display: block;
|
64
|
+
flex: auto;
|
65
|
+
padding: var(--skf-box-spacing);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
`;
|
69
|
+
export {
|
70
|
+
o as styles
|
71
|
+
};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import '../button/button.js';
|
2
|
+
import '../drawer/drawer.js';
|
3
|
+
import '../logo/logo.js';
|
4
|
+
import { SkfElement } from '../../internal/components/skf-element';
|
5
|
+
import { type CSSResultGroup } from 'lit';
|
6
|
+
/**
|
7
|
+
* 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.
|
8
|
+
*
|
9
|
+
* @documentation See [zeroheight](https://zeroheight.com/****) for design principles
|
10
|
+
*
|
11
|
+
* @slot - Navigation items
|
12
|
+
*
|
13
|
+
* @tagname skf-header
|
14
|
+
*/
|
15
|
+
export declare class SkfHeader extends SkfElement {
|
16
|
+
static styles: CSSResultGroup;
|
17
|
+
/** @internal */
|
18
|
+
private _dynamicBreakpoint?;
|
19
|
+
/** @internal */
|
20
|
+
private _widthObserver?;
|
21
|
+
/** If true, sets header to display in compact mode only (hanburger menu and drawer) */
|
22
|
+
set compact(value: boolean);
|
23
|
+
get compact(): boolean;
|
24
|
+
/** If defined, sets the aria-label for the hamburger button */
|
25
|
+
hamburgerAriaLabel: string;
|
26
|
+
/** If defined, sets the app or site's name */
|
27
|
+
siteName?: string;
|
28
|
+
/** If defined, sets the site's base-url for the "logo-link" */
|
29
|
+
siteUrl?: string;
|
30
|
+
/** @internal */
|
31
|
+
isCompact: boolean;
|
32
|
+
/** @internal */
|
33
|
+
private openDrawer;
|
34
|
+
/** @internal */
|
35
|
+
private nav;
|
36
|
+
/** @internal */
|
37
|
+
private $navWrapper;
|
38
|
+
firstUpdated(): void;
|
39
|
+
/** @internal */
|
40
|
+
private _observeHostWidth;
|
41
|
+
/** @internal */
|
42
|
+
private _observeNavContainer;
|
43
|
+
/** @internal */
|
44
|
+
private _renderMeta;
|
45
|
+
render(): import("lit").TemplateResult<1>;
|
46
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
import "../button/button.js";
|
2
|
+
import "../drawer/drawer.js";
|
3
|
+
import "../logo/logo.js";
|
4
|
+
import { SkfElement as d } from "../../internal/components/skf-element.js";
|
5
|
+
import { componentStyles as b } from "../../styles/component.styles.js";
|
6
|
+
import { nothing as u, html as o } from "lit";
|
7
|
+
import { property as s, state as f, queryAssignedElements as w, query as _ } from "lit/decorators.js";
|
8
|
+
import { ifDefined as m } from "lit/directives/if-defined.js";
|
9
|
+
import { literal as v, html as y } from "lit/static-html.js";
|
10
|
+
import { styles as $ } from "./header.styles.js";
|
11
|
+
var g = Object.defineProperty, C = Object.getOwnPropertyDescriptor, r = (c, e, n, a) => {
|
12
|
+
for (var i = a > 1 ? void 0 : a ? C(e, n) : e, p = c.length - 1, h; p >= 0; p--)
|
13
|
+
(h = c[p]) && (i = (a ? h(e, n, i) : h(i)) || i);
|
14
|
+
return a && i && g(e, n, i), i;
|
15
|
+
};
|
16
|
+
const l = class l extends d {
|
17
|
+
constructor() {
|
18
|
+
super(...arguments), this.hamburgerAriaLabel = "Show navigation", this.isCompact = !1, this.openDrawer = !1;
|
19
|
+
}
|
20
|
+
set compact(e) {
|
21
|
+
this.isCompact = e;
|
22
|
+
}
|
23
|
+
get compact() {
|
24
|
+
return this.isCompact;
|
25
|
+
}
|
26
|
+
firstUpdated() {
|
27
|
+
this.updateComplete.then(() => {
|
28
|
+
if (this.compact) {
|
29
|
+
this.isCompact = !0, this.nav[0].vertical = !0;
|
30
|
+
return;
|
31
|
+
}
|
32
|
+
this._observeHostWidth();
|
33
|
+
}).catch(console.error);
|
34
|
+
}
|
35
|
+
/** @internal */
|
36
|
+
_observeHostWidth() {
|
37
|
+
this._widthObserver = new ResizeObserver(() => {
|
38
|
+
var e;
|
39
|
+
this.clientWidth > (this._dynamicBreakpoint ?? 0) && (this._dynamicBreakpoint = null, (e = this._widthObserver) == null || e.disconnect(), this.isCompact = !1, this.nav[0].vertical = !1, this._observeNavContainer());
|
40
|
+
}), this._widthObserver.observe(this);
|
41
|
+
}
|
42
|
+
/** @internal */
|
43
|
+
_observeNavContainer() {
|
44
|
+
this._widthObserver = new ResizeObserver(() => {
|
45
|
+
var e;
|
46
|
+
this.$navWrapper.clientWidth < this.$navWrapper.scrollWidth && (this._dynamicBreakpoint = this.clientWidth, (e = this._widthObserver) == null || e.disconnect(), this.isCompact = !0, this.nav[0].vertical = !0, this._observeHostWidth());
|
47
|
+
}), this._widthObserver.observe(this.$navWrapper);
|
48
|
+
}
|
49
|
+
/** @internal */
|
50
|
+
_renderMeta() {
|
51
|
+
const e = this.siteUrl ? v`a` : v`div`;
|
52
|
+
return y`
|
53
|
+
<${e} href=${m(this.siteUrl)} id="meta">
|
54
|
+
<skf-logo color="inverse"></skf-logo>
|
55
|
+
${this.siteName ? o`<h2>${this.siteName}</h2>` : u}
|
56
|
+
</${e}>
|
57
|
+
`;
|
58
|
+
}
|
59
|
+
render() {
|
60
|
+
return o`
|
61
|
+
<header role="banner">
|
62
|
+
${this._renderMeta()}
|
63
|
+
<div id="nav-wrapper">
|
64
|
+
${this.isCompact ? o`
|
65
|
+
<button
|
66
|
+
@click=${() => this.openDrawer = !this.openDrawer}
|
67
|
+
aria-controls="drawer"
|
68
|
+
aria-expanded=${this.openDrawer}
|
69
|
+
aria-label=${this.hamburgerAriaLabel}
|
70
|
+
>
|
71
|
+
<skf-icon color="inverse" name="hamburgerMenu" size="lg"></skf-icon>
|
72
|
+
</button>
|
73
|
+
<skf-drawer
|
74
|
+
?open=${this.openDrawer}
|
75
|
+
@close=${() => this.openDrawer = !1}
|
76
|
+
heading=${m(this.siteName)}
|
77
|
+
id="drawer"
|
78
|
+
placement="right"
|
79
|
+
>
|
80
|
+
<slot></slot>
|
81
|
+
</skf-drawer>
|
82
|
+
` : o`<slot></slot>`}
|
83
|
+
</div>
|
84
|
+
</header>
|
85
|
+
`;
|
86
|
+
}
|
87
|
+
};
|
88
|
+
l.styles = [b, $];
|
89
|
+
let t = l;
|
90
|
+
r([
|
91
|
+
s({ type: Boolean, reflect: !0 })
|
92
|
+
], t.prototype, "compact", 1);
|
93
|
+
r([
|
94
|
+
s({ attribute: "hamburger-aria-label" })
|
95
|
+
], t.prototype, "hamburgerAriaLabel", 2);
|
96
|
+
r([
|
97
|
+
s({ attribute: "site-name" })
|
98
|
+
], t.prototype, "siteName", 2);
|
99
|
+
r([
|
100
|
+
s({ attribute: "site-url" })
|
101
|
+
], t.prototype, "siteUrl", 2);
|
102
|
+
r([
|
103
|
+
s({ type: Boolean, reflect: !0, state: !0, attribute: "is-compact" })
|
104
|
+
], t.prototype, "isCompact", 2);
|
105
|
+
r([
|
106
|
+
f()
|
107
|
+
], t.prototype, "openDrawer", 2);
|
108
|
+
r([
|
109
|
+
w({ selector: "skf-nav" })
|
110
|
+
], t.prototype, "nav", 2);
|
111
|
+
r([
|
112
|
+
_("#nav-wrapper")
|
113
|
+
], t.prototype, "$navWrapper", 2);
|
114
|
+
export {
|
115
|
+
t as SkfHeader
|
116
|
+
};
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { css as e } from "lit";
|
2
|
+
const a = e`
|
3
|
+
@layer components {
|
4
|
+
:host {
|
5
|
+
--skf-header-height: 60px;
|
6
|
+
}
|
7
|
+
|
8
|
+
header {
|
9
|
+
align-items: center;
|
10
|
+
background-color: var(--skf-bg-color-emphasised);
|
11
|
+
block-size: var(--skf-header-height);
|
12
|
+
display: flex;
|
13
|
+
gap: var(--skf-spacing-125);
|
14
|
+
justify-content: space-between;
|
15
|
+
padding-inline: var(--skf-spacing-100);
|
16
|
+
}
|
17
|
+
|
18
|
+
#meta {
|
19
|
+
align-items: inherit;
|
20
|
+
color: var(--skf-text-color-inverse);
|
21
|
+
display: inherit;
|
22
|
+
gap: var(--skf-spacing-100);
|
23
|
+
|
24
|
+
&:is(a) {
|
25
|
+
text-decoration: none;
|
26
|
+
}
|
27
|
+
|
28
|
+
:host(:not([is-compact])) &:has(h2)::after {
|
29
|
+
align-self: normal;
|
30
|
+
border-right: 1px solid var(--skf-border-color-inverse);
|
31
|
+
content: '';
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
h2 {
|
37
|
+
font-size: var(--skf-font-size-200);
|
38
|
+
font-weight: var(--skf-font-weight-regular);
|
39
|
+
white-space: nowrap;
|
40
|
+
}
|
41
|
+
|
42
|
+
#nav-wrapper:has(skf-drawer) {
|
43
|
+
display: inline-flex; /** Shrink-wrap icon-button */
|
44
|
+
}
|
45
|
+
|
46
|
+
#nav-wrapper:not(:has(skf-drawer)) {
|
47
|
+
overflow: hidden;
|
48
|
+
}
|
49
|
+
|
50
|
+
skf-drawer::part(body) {
|
51
|
+
background-color: var(--skf-bg-color-emphasised);
|
52
|
+
padding: 0;
|
53
|
+
}
|
54
|
+
|
55
|
+
button {
|
56
|
+
color: var(--_skf-header-button-color, var(--skf-interactive-text-color-inverse));
|
57
|
+
display: inline-flex;
|
58
|
+
|
59
|
+
&:focus-visible {
|
60
|
+
border-radius: var(--skf-border-radius-sm);
|
61
|
+
outline: var(--skf-border-width-sm) solid var(--skf-interactive-text-color-inverse);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
`;
|
66
|
+
export {
|
67
|
+
a as styles
|
68
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SkfElement } from '../../internal/components/skf-element.js';
|
2
|
-
import type { HeadingType } from '../../internal/
|
2
|
+
import type { HeadingType } from '../../internal/types.js';
|
3
3
|
import { type CSSResultGroup } from 'lit';
|
4
4
|
/**
|
5
5
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
@@ -10,18 +10,14 @@ import { type CSSResultGroup } from 'lit';
|
|
10
10
|
* @tagname skf-heading
|
11
11
|
*/
|
12
12
|
export declare class SkfHeading extends SkfElement {
|
13
|
+
#private;
|
13
14
|
static styles: CSSResultGroup;
|
14
|
-
/**
|
15
|
-
* Controls which heading element will be rendered. Should not be used to affect appearance
|
16
|
-
*
|
17
|
-
* @type { "h1" | "h2" | "h3" | "h4" }
|
18
|
-
*/
|
15
|
+
/** Controls which heading element will be rendered. Should not be used to affect appearance */
|
19
16
|
as: HeadingType;
|
20
|
-
/**
|
21
|
-
* If provided, changes the appearance of the heading
|
22
|
-
*
|
23
|
-
* @type { "h1" | "h2" | "h3" | "h4" }
|
24
|
-
*/
|
17
|
+
/** If defined, changes the appearance of the heading */
|
25
18
|
styledAs?: HeadingType;
|
26
|
-
|
19
|
+
connectedCallback(): void;
|
20
|
+
/** @internal */
|
21
|
+
_handleStateChange(): void;
|
22
|
+
render(): import("lit").TemplateResult<1>;
|
27
23
|
}
|
@@ -1,34 +1,62 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import "lit";
|
4
|
-
import { property as a } from "lit/decorators.js";
|
5
|
-
import { html as y, unsafeStatic as l } from "lit/static-html.js";
|
6
|
-
import c from "./heading.styles.js";
|
7
|
-
var h = Object.defineProperty, f = (o, p, i, d) => {
|
8
|
-
for (var t = void 0, s = o.length - 1, m; s >= 0; s--)
|
9
|
-
(m = o[s]) && (t = m(p, i, t) || t);
|
10
|
-
return t && h(p, i, t), t;
|
1
|
+
var y = (t) => {
|
2
|
+
throw TypeError(t);
|
11
3
|
};
|
12
|
-
|
4
|
+
var d = (t, e, s) => e.has(t) || y("Cannot " + s);
|
5
|
+
var n = (t, e, s) => (d(t, e, "read from private field"), s ? s.call(t) : e.get(t)), c = (t, e, s) => e.has(t) ? y("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), m = (t, e, s, r) => (d(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
|
6
|
+
import { SkfElement as b } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as _ } from "../../internal/helpers/stateMap.js";
|
8
|
+
import { watch as C } from "../../internal/helpers/watch.js";
|
9
|
+
import { componentStyles as g } from "../../styles/component.styles.js";
|
10
|
+
import { html as w } from "lit";
|
11
|
+
import { property as v } from "lit/decorators.js";
|
12
|
+
import { styles as L } from "./heading.styles.js";
|
13
|
+
var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, f = (t, e, s, r) => {
|
14
|
+
for (var a = r > 1 ? void 0 : r ? P(e, s) : e, l = t.length - 1, p; l >= 0; l--)
|
15
|
+
(p = t[l]) && (a = (r ? p(e, s, a) : p(a)) || a);
|
16
|
+
return r && a && O(e, s, a), a;
|
17
|
+
}, h, i;
|
18
|
+
const u = class u extends b {
|
13
19
|
constructor() {
|
14
|
-
super(...arguments)
|
20
|
+
super(...arguments);
|
21
|
+
c(this, h);
|
22
|
+
c(this, i);
|
23
|
+
m(this, h, this.attachInternals()), m(this, i, n(this, h).states), this.as = "h2";
|
24
|
+
}
|
25
|
+
connectedCallback() {
|
26
|
+
switch (super.connectedCallback(), this.role = "heading", !0) {
|
27
|
+
case this.as === "h1":
|
28
|
+
this.ariaLevel = "1";
|
29
|
+
break;
|
30
|
+
case this.as === "h3":
|
31
|
+
this.ariaLevel = "3";
|
32
|
+
break;
|
33
|
+
case this.as === "h4":
|
34
|
+
this.ariaLevel = "4";
|
35
|
+
break;
|
36
|
+
default:
|
37
|
+
this.ariaLevel = "2";
|
38
|
+
break;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
_handleStateChange() {
|
42
|
+
const s = ["h1", "h2", "h3", "h4"];
|
43
|
+
_(n(this, i), s).set(this.styledAs);
|
15
44
|
}
|
16
45
|
render() {
|
17
|
-
return
|
18
|
-
<${l(this.as)} id="root">
|
19
|
-
<slot></slot>
|
20
|
-
</${l(this.as)}>
|
21
|
-
`;
|
46
|
+
return w`<slot data-as=${this.as} id="root"></slot>`;
|
22
47
|
}
|
23
48
|
};
|
24
|
-
|
25
|
-
let
|
49
|
+
h = new WeakMap(), i = new WeakMap(), u.styles = [g, L];
|
50
|
+
let o = u;
|
51
|
+
f([
|
52
|
+
v({ type: String, reflect: !0, useDefault: !0 })
|
53
|
+
], o.prototype, "as", 2);
|
26
54
|
f([
|
27
|
-
|
28
|
-
],
|
55
|
+
v({ type: String, attribute: "styled-as" })
|
56
|
+
], o.prototype, "styledAs", 2);
|
29
57
|
f([
|
30
|
-
|
31
|
-
],
|
58
|
+
C("styledAs")
|
59
|
+
], o.prototype, "_handleStateChange", 1);
|
32
60
|
export {
|
33
|
-
|
61
|
+
o as SkfHeading
|
34
62
|
};
|
@@ -1,2 +1 @@
|
|
1
|
-
declare const
|
2
|
-
export default _default;
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
@@ -1,62 +1,60 @@
|
|
1
1
|
import { css as s } from "lit";
|
2
2
|
const t = s`
|
3
3
|
@layer components {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
:host([as='h4']) & {
|
33
|
-
--_skf-heading-size: var(--skf-font-size-200);
|
4
|
+
@layer base {
|
5
|
+
#root {
|
6
|
+
color: var(--skf-text-color-primary);
|
7
|
+
font-size: var(--_skf-heading-size);
|
8
|
+
font-weight: var(--_skf-heading-weight);
|
9
|
+
line-height: 1.2;
|
10
|
+
|
11
|
+
&[data-as='h1'] {
|
12
|
+
--_skf-heading-size: var(--skf-font-size-700);
|
13
|
+
--_skf-heading-weight: var(--skf-font-weight-regular);
|
14
|
+
}
|
15
|
+
|
16
|
+
&:is([data-as='h2'], [data-as='h3'], [data-as='h4']) {
|
17
|
+
--_skf-heading-weight: var(--skf-font-weight-bold);
|
18
|
+
}
|
19
|
+
|
20
|
+
&[data-as='h2'] {
|
21
|
+
--_skf-heading-size: var(--skf-font-size-300);
|
22
|
+
}
|
23
|
+
|
24
|
+
&[data-as='h3'] {
|
25
|
+
--_skf-heading-size: var(--skf-font-size-200);
|
26
|
+
}
|
27
|
+
|
28
|
+
&[data-as='h4'] {
|
29
|
+
--_skf-heading-size: var(--skf-font-size-200);
|
30
|
+
}
|
34
31
|
}
|
32
|
+
}
|
35
33
|
|
36
|
-
|
37
|
-
:host(
|
34
|
+
@layer mods {
|
35
|
+
:host(:state(h1)) #root {
|
38
36
|
--_skf-heading-size: var(--skf-font-size-700);
|
39
37
|
--_skf-heading-weight: var(--skf-font-weight-regular);
|
40
38
|
}
|
41
39
|
|
42
|
-
:host(:is(
|
40
|
+
:host(:is(:state(h2), :state(h3), :state(h4))) #root {
|
43
41
|
--_skf-heading-weight: var(--skf-font-weight-bold);
|
44
42
|
}
|
45
43
|
|
46
|
-
:host(
|
44
|
+
:host(:state(h2)) #root {
|
47
45
|
--_skf-heading-size: var(--skf-font-size-300);
|
48
46
|
}
|
49
47
|
|
50
|
-
:host(
|
48
|
+
:host(:state(h3)) #root {
|
51
49
|
--_skf-heading-size: var(--skf-font-size-200);
|
52
50
|
}
|
53
51
|
|
54
|
-
:host(
|
52
|
+
:host(:state(h4)) #root {
|
55
53
|
--_skf-heading-size: var(--skf-font-size-200);
|
56
54
|
}
|
57
55
|
}
|
58
56
|
}
|
59
57
|
`;
|
60
58
|
export {
|
61
|
-
t as
|
59
|
+
t as styles
|
62
60
|
};
|
@@ -1,31 +1,29 @@
|
|
1
1
|
import { SkfElement } from '../../internal/components/skf-element.js';
|
2
|
-
import {
|
2
|
+
import type { Icon, IconColor } from '../../internal/types.js';
|
3
|
+
import { type IconSize } from '@skf-design-system/ui-assets';
|
3
4
|
import { type CSSResultGroup } from 'lit';
|
5
|
+
type SkfIconSize = IconSize;
|
4
6
|
/**
|
5
|
-
* The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text
|
7
|
+
* The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text.
|
6
8
|
*
|
7
|
-
* @documentation See [
|
9
|
+
* @documentation See [zeroheight](https://zeroheight.com/*) for design principles
|
8
10
|
*
|
9
11
|
* @tagname skf-icon
|
10
12
|
*/
|
11
13
|
export declare class SkfIcon extends SkfElement {
|
14
|
+
#private;
|
12
15
|
static styles: CSSResultGroup;
|
13
|
-
/**
|
14
|
-
|
15
|
-
* @type { "primary" | "inverse" | "emphasised" | "secondary" | "success" | "info" | "warning" | "error" | "alert" }
|
16
|
-
*/
|
17
|
-
color: IconColor | SeverityFgColor;
|
16
|
+
/** Sets the color of the icon */
|
17
|
+
color: IconColor;
|
18
18
|
/** If defined, adds an alternate description to use for assistive devices */
|
19
19
|
label?: string;
|
20
|
-
/**
|
21
|
-
* Name of the icon to display
|
22
|
-
* @type { "arrowDown" | "arrowDownUp" | "arrowLeft" | "arrowRight" | "arrowUp" | "article" | "artificialIntelligence" | "asset" | "attachment" | "bandCursor" | "bands" | "batteryEmpty" | "batteryFull" | "batteryLow" | "bearingFault" | "book" | "bulb" | "burger" | "cPM" | "calendar" | "calendarBooked" | "calendarEmpty" | "calendarNotBooked" | "calendarRecurring" | "caretDown" | "caretUp" | "caretUpDown" | "chat" | "check" | "checkCircle" | "checkSmall" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronUpDown" | "close" | "closeAllFaults" | "closeFault" | "closeSmall" | "columnGraph" | "comment" | "connection1" | "connection2" | "connection3" | "connection4" | "danger" | "defectFrequencies" | "defectFrequenciesAlternative" | "doubleChevronLeft" | "doubleChevronRight" | "download" | "draft" | "draftFilled" | "draftOutlined" | "dragNDrop" | "drop" | "duplicate" | "edit" | "emailFilled" | "emailOutlined" | "exclamation" | "eye" | "eyeHidden" | "eyeVisible" | "filter" | "forbidden" | "fullScreen" | "fullScreenExit" | "functionalLocation" | "harmonicCursor" | "heatmap" | "hierarchy" | "history" | "historyAlt" | "hourglassFramedFilled" | "hourglassFramedOutlined" | "hourglassOutlined" | "hz" | "iMX" | "image" | "infoCircleFilled" | "infoCircleOutlined" | "integration" | "kebab" | "link" | "listGroup" | "listItem" | "locationPin" | "lock" | "logOut" | "meatballs" | "microphone" | "minus" | "minusSmall" | "noData" | "o" | "openInNew" | "overlayBaseline" | "pDF" | "paper" | "pause" | "pieChart" | "pin" | "play" | "plus" | "powerOff" | "printer" | "proCollect" | "recAction" | "received" | "refresh" | "reorder" | "replace" | "reply" | "rewalkableRoute" | "routes" | "search" | "send" | "sensorA" | "sensorB" | "settings" | "sidebandCursor" | "singleCursor" | "spectrum" | "starFilled" | "starOutlined" | "statusCircle" | "stop" | "structuralVibration" | "sync" | "timewave" | "trash" | "trend" | "trendingUp" | "undo" | "unknownCircle" | "unknownDiamond" | "unlink" | "unlock" | "unscheduledAction" | "upload" | "user" | "viewFull" | "viewHorizontal" | "viewVertical" | "warning" | "warningCircle" | "warningDiamond" | "zoomIn" | "zoomOut" }
|
23
|
-
*/
|
20
|
+
/** Name of the icon to display */
|
24
21
|
name: Icon;
|
25
|
-
/**
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
/** Size of the icon */
|
23
|
+
size: SkfIconSize;
|
24
|
+
connectedCallback(): void;
|
25
|
+
/** @internal */
|
26
|
+
_handleStateChange(property: string, _prev: unknown, next: unknown): void;
|
30
27
|
render(): import("lit").TemplateResult<1>;
|
31
28
|
}
|
29
|
+
export {};
|