@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
@@ -1,79 +1,83 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { html as n } from "lit";
|
4
|
-
import { property as p } from "lit/decorators.js";
|
5
|
-
import { classMap as a } from "lit/directives/class-map.js";
|
6
|
-
import { styles as d } from "./logo.styles.js";
|
7
|
-
var g = Object.defineProperty, v = (e, l, s, y) => {
|
8
|
-
for (var c = void 0, r = e.length - 1, h; r >= 0; r--)
|
9
|
-
(h = e[r]) && (c = h(l, s, c) || c);
|
10
|
-
return c && g(l, s, c), c;
|
1
|
+
var f = (c) => {
|
2
|
+
throw TypeError(c);
|
11
3
|
};
|
12
|
-
|
4
|
+
var g = (c, t, r) => t.has(c) || f("Cannot " + r);
|
5
|
+
var a = (c, t, r) => (g(c, t, "read from private field"), r ? r.call(c) : t.get(c)), v = (c, t, r) => t.has(c) ? f("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(c) : t.set(c, r), n = (c, t, r, e) => (g(c, t, "write to private field"), e ? e.call(c, r) : t.set(c, r), r);
|
6
|
+
import { SkfElement as w } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as H } from "../../internal/helpers/stateMap.js";
|
8
|
+
import { watch as M } from "../../internal/helpers/watch.js";
|
9
|
+
import { componentStyles as V } from "../../styles/component.styles.js";
|
10
|
+
import { html as x } from "lit";
|
11
|
+
import { property as d } from "lit/decorators.js";
|
12
|
+
import { styles as z } from "./logo.styles.js";
|
13
|
+
var C = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, m = (c, t, r, e) => {
|
14
|
+
for (var s = e > 1 ? void 0 : e ? _(t, r) : t, i = c.length - 1, l; i >= 0; i--)
|
15
|
+
(l = c[i]) && (s = (e ? l(t, r, s) : l(s)) || s);
|
16
|
+
return e && s && C(t, r, s), s;
|
17
|
+
}, h, p;
|
18
|
+
const y = class y extends w {
|
13
19
|
constructor() {
|
14
|
-
super(...arguments)
|
20
|
+
super(...arguments);
|
21
|
+
v(this, h);
|
22
|
+
v(this, p);
|
23
|
+
n(this, h, this.attachInternals()), n(this, p, a(this, h).states), this.title = "SKF logotype", this.color = "primary";
|
24
|
+
}
|
25
|
+
_handleStateChange() {
|
26
|
+
const r = ["inverse", "primary", "secondary"];
|
27
|
+
H(a(this, p), r).set(this.color);
|
15
28
|
}
|
16
29
|
render() {
|
17
|
-
return
|
18
|
-
<svg
|
19
|
-
class=${a({
|
20
|
-
logo: !0,
|
21
|
-
"logo--color-inverse": this.color === "inverse",
|
22
|
-
"logo--color-secondary": this.color === "secondary"
|
23
|
-
})}
|
24
|
-
viewBox="0 0 1300 300"
|
25
|
-
xmlns="http://www.w3.org/2000/svg"
|
26
|
-
x="0px"
|
27
|
-
y="0px"
|
28
|
-
>
|
30
|
+
return x`
|
31
|
+
<svg id="root" viewBox="0 0 1300 300" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px">
|
29
32
|
<title>${this.title}</title>
|
30
33
|
<g>
|
31
|
-
<
|
32
|
-
|
33
|
-
d="M363.7,300c6.2,0,11.2-5,11.2-11.3v-165c0-6.2-5-11.3-11.3-11.2H157.5c-4.1,0-7.5-3.4-7.5-7.5V45
|
34
|
+
<path
|
35
|
+
d="M363.7,300c6.2,0,11.2-5,11.2-11.3v-165c0-6.2-5-11.3-11.3-11.2H157.5c-4.1,0-7.5-3.4-7.5-7.5V45
|
34
36
|
c0-4.1,3.4-7.5,7.5-7.5l60,0c4.1,0,7.5,3.4,7.5,7.5v18.8c0,6.2,5,11.2,11.2,11.2h90c6.2,0,11.3-5,11.3-11.2V11.2
|
35
37
|
c0-6.2-5-11.2-11.3-11.2L48.7,0c-6.2,0-11.2,5-11.2,11.3v127.5c0,6.2,5,11.2,11.3,11.2H255c4.1,0,7.5,3.4,7.5,7.5V255
|
36
38
|
c0,4.1-3.4,7.5-7.5,7.5H120c-4.1,0-7.5-3.4-7.5-7.5v-56.2c0-6.2-5-11.2-11.3-11.2h-90c-6.2,0-11.3,5-11.3,11.2v90
|
37
39
|
C0,295,5,300,11.3,300H363.7z"
|
38
|
-
|
39
|
-
|
40
|
-
|
40
|
+
/>
|
41
|
+
<path
|
42
|
+
d="M562.5,192.3c0-1,0.8-1.9,1.9-1.9c0.5,0,1,0.2,1.3,0.5c0.3,0.3,104.9,105,105.8,105.9
|
41
43
|
c0.6,0.6,3.4,3.2,7.9,3.2h134.4c6.2,0,11.2-5,11.2-11.2v-90c0-6.2-5-11.2-11.2-11.2h-97c-4.3,0-7.1-2.4-7.8-3.1
|
42
44
|
c-1.4-1.4-70.2-70.3-70.6-70.6c-0.3-0.3-0.6-0.8-0.6-1.3c0-0.5,0.2-1,0.6-1.3c0.3-0.3,32.3-32.4,32.8-32.9
|
43
45
|
c1.8-1.8,4.6-3.2,7.9-3.2c2.8,0,97.1,0,97.1,0c6.2,0,11.3-5,11.3-11.2l0-52.5c0-6.2-5-11.2-11.2-11.2h-96.9
|
44
46
|
c-4.5,0-7.2,2.6-7.9,3.2C670.9,3.8,566,108.8,565.7,109.1c-0.3,0.3-0.8,0.5-1.3,0.5c-1,0-1.9-0.8-1.9-1.9l0-96.5
|
45
47
|
c0-6.2-5-11.2-11.3-11.2H442.5c-6.2,0-11.2,5-11.2,11.2v90c0,6.2,5,11.3,11.2,11.3c4.1,0,7.5,3.4,7.5,7.5v60
|
46
48
|
c0,4.1-3.4,7.5-7.5,7.5c-6.2,0-11.2,5-11.2,11.2v90c0,6.2,5,11.3,11.2,11.3h108.7c6.2,0,11.3-5,11.3-11.3L562.5,192.3z"
|
47
|
-
|
48
|
-
|
49
|
-
|
49
|
+
/>
|
50
|
+
<path
|
51
|
+
d="M1001.2,300c6.2,0,11.3-5,11.3-11.3v-90c0-6.2-5-11.2-11.3-11.2c-4.1,0-7.5-3.4-7.5-7.5v-22.5
|
50
52
|
c0-4.2,3.4-7.5,7.5-7.5h41.2c4.1,0,7.5,3.4,7.5,7.5c0,6.2,5,11.2,11.3,11.2h90.1c6.2,0,11.2-5,11.2-11.2V105
|
51
53
|
c0-6.2-5-11.2-11.2-11.2h-90.1c-6.2,0-11.3,5-11.3,11.2c0,4.1-3.4,7.5-7.5,7.5l-41.2,0c-4.1,0-7.5-3.4-7.5-7.5V45
|
52
54
|
c0-4.1,3.4-7.5,7.5-7.5h116.3c4.1,0,7.5,3.4,7.5,7.5v18.8c0,6.2,5,11.2,11.3,11.2h127.5c6.2,0,11.3-5,11.3-11.2V11.2
|
53
55
|
c0-6.2-5-11.2-11.3-11.2H892.5c-6.2,0-11.2,5-11.2,11.2v90c0,6.2,5,11.3,11.2,11.3c4.1,0,7.5,3.4,7.5,7.5v60
|
54
56
|
c0,4.1-3.4,7.5-7.5,7.5c-6.2,0-11.2,5-11.2,11.2v90c0,6.2,5,11.3,11.2,11.3H1001.2z"
|
55
|
-
|
56
|
-
|
57
|
+
/>
|
58
|
+
<path
|
59
|
+
d="M1207.4,262.9c0-17.5,13.2-30.7,30.1-30.7c16.7,0,30,13.2,30,30.7c0,17.8-13.2,30.9-30,30.9
|
60
|
+
C1220.7,293.8,1207.4,280.7,1207.4,262.9z M1237.6,300c20.2,0,37.4-15.7,37.4-37.1c0-21.2-17.2-36.9-37.4-36.9
|
61
|
+
c-20.4,0-37.6,15.7-37.6,36.9C1200,284.3,1217.2,300,1237.6,300z M1230.9,265.5h6.5l9.9,16.3h6.4l-10.7-16.5
|
62
|
+
c5.5-0.7,9.7-3.6,9.7-10.3c0-7.4-4.4-10.7-13.3-10.7h-14.3v37.6h5.7V265.5z M1230.9,260.7V249h7.7c4,0,8.2,0.9,8.2,5.5
|
63
|
+
c0,5.8-4.3,6.1-9.1,6.1H1230.9z"
|
64
|
+
/>
|
57
65
|
</g>
|
58
|
-
<path
|
59
|
-
d="M1207.4,262.9c0-17.5,13.2-30.7,30.1-30.7c16.7,0,30,13.2,30,30.7c0,17.8-13.2,30.9-30,30.9
|
60
|
-
C1220.7,293.8,1207.4,280.7,1207.4,262.9z M1237.6,300c20.2,0,37.4-15.7,37.4-37.1c0-21.2-17.2-36.9-37.4-36.9
|
61
|
-
c-20.4,0-37.6,15.7-37.6,36.9C1200,284.3,1217.2,300,1237.6,300z M1230.9,265.5h6.5l9.9,16.3h6.4l-10.7-16.5
|
62
|
-
c5.5-0.7,9.7-3.6,9.7-10.3c0-7.4-4.4-10.7-13.3-10.7h-14.3v37.6h5.7V265.5z M1230.9,260.7V249h7.7c4,0,8.2,0.9,8.2,5.5
|
63
|
-
c0,5.8-4.3,6.1-9.1,6.1H1230.9z"
|
64
|
-
/>
|
65
66
|
</svg>
|
66
67
|
`;
|
67
68
|
}
|
68
69
|
};
|
69
|
-
|
70
|
-
let
|
71
|
-
|
72
|
-
|
73
|
-
],
|
74
|
-
|
75
|
-
|
76
|
-
],
|
70
|
+
h = new WeakMap(), p = new WeakMap(), y.styles = [V, z];
|
71
|
+
let o = y;
|
72
|
+
m([
|
73
|
+
d({ type: String })
|
74
|
+
], o.prototype, "title", 2);
|
75
|
+
m([
|
76
|
+
d({ type: String })
|
77
|
+
], o.prototype, "color", 2);
|
78
|
+
m([
|
79
|
+
M("color")
|
80
|
+
], o.prototype, "_handleStateChange", 1);
|
77
81
|
export {
|
78
|
-
|
82
|
+
o as SkfLogo
|
79
83
|
};
|
@@ -1,25 +1,35 @@
|
|
1
1
|
import { css as o } from "lit";
|
2
|
-
const
|
3
|
-
|
2
|
+
const r = o`
|
3
|
+
@layer components {
|
4
|
+
@layer base {
|
5
|
+
:host {
|
6
|
+
display: inline-flex;
|
7
|
+
}
|
4
8
|
|
5
|
-
|
6
|
-
|
7
|
-
}
|
9
|
+
#root {
|
10
|
+
--_skf-logo-color: var(--skf-logo-primary);
|
8
11
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
aspect-ratio: 13 / 3;
|
13
|
+
block-size: var(--mod-logo-height, var(--skf-size-32));
|
14
|
+
fill: var(--_skf-logo-color);
|
15
|
+
}
|
16
|
+
}
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
+
@layer mods {
|
19
|
+
:host(:state(secondary)) {
|
20
|
+
#root {
|
21
|
+
--_skf-logo-color: var(--skf-logo-secondary);
|
22
|
+
}
|
23
|
+
}
|
18
24
|
|
19
|
-
|
20
|
-
|
25
|
+
:host(:state(inverse)) {
|
26
|
+
#root {
|
27
|
+
--_skf-logo-color: var(--skf-logo-inverse);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
21
31
|
}
|
22
32
|
`;
|
23
33
|
export {
|
24
|
-
|
34
|
+
r as styles
|
25
35
|
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { SkfLink } from '../link/link.component.js';
|
2
|
+
import { type CSSResultGroup } from 'lit';
|
3
|
+
/**
|
4
|
+
* The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component
|
5
|
+
*
|
6
|
+
* @slot - The component's main content
|
7
|
+
*
|
8
|
+
* @tagname skf-menu-item
|
9
|
+
*/
|
10
|
+
export declare class SkfMenuItem extends SkfLink {
|
11
|
+
static styles: CSSResultGroup;
|
12
|
+
connectedCallback(): void;
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { SkfLink as t } from "../link/link.component.js";
|
2
|
+
import "lit";
|
3
|
+
import { styles as l } from "./menu-item.styles.js";
|
4
|
+
const s = class s extends t {
|
5
|
+
connectedCallback() {
|
6
|
+
super.connectedCallback(), this.role = "menuitem";
|
7
|
+
}
|
8
|
+
};
|
9
|
+
s.styles = [t.styles, l];
|
10
|
+
let e = s;
|
11
|
+
export {
|
12
|
+
e as SkfMenuItem
|
13
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { SkfMenuItem } from './menu-item.component';
|
2
|
-
export * from './menu-item.component';
|
1
|
+
import { SkfMenuItem } from './menu-item.component.js';
|
2
|
+
export * from './menu-item.component.js';
|
3
3
|
export default SkfMenuItem;
|
4
4
|
declare global {
|
5
5
|
interface HTMLElementTagNameMap {
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import { css as
|
2
|
-
const
|
1
|
+
import { css as o } from "lit";
|
2
|
+
const e = o`
|
3
3
|
@layer components {
|
4
|
-
|
4
|
+
:host {
|
5
|
+
display: block;
|
6
|
+
}
|
7
|
+
|
8
|
+
#root {
|
5
9
|
block-size: var(--skf-size-44);
|
6
|
-
display: flex;
|
7
10
|
padding-inline: var(--skf-spacing-75);
|
8
11
|
|
9
12
|
@media screen and (any-hover: hover) {
|
@@ -15,5 +18,5 @@ const s = e`
|
|
15
18
|
}
|
16
19
|
`;
|
17
20
|
export {
|
18
|
-
|
21
|
+
e as styles
|
19
22
|
};
|
@@ -1,16 +1,18 @@
|
|
1
1
|
import { SkfPopoverBase } from '../../internal/base-classes/popover/popover.base.js';
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* For a popover menu like skf-menu containing skf-menu-item elements, the correct ARIA role is menu. This role indicates that the element represents a menu, typically triggered by a button or another interactive element, like in a popover context. The menu role is suitable for context menus or secondary menus. Each skf-menu-item will implicitly have the correct menuitem role. It's important to make sure the menu is properly linked to its trigger using ARIA attributes like aria-haspopup and aria-expanded on the trigger and aria-controls on the menu to establish the relationship between the trigger and the menu for assistive technologies. Setting the menu role directly on the skf-menu element is the right way to go here.
|
5
|
+
*/
|
6
|
+
/**
|
7
|
+
* The `<skf-menu>` is a component that displays a list of actions or options
|
5
8
|
*
|
6
|
-
*
|
9
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
7
10
|
*
|
8
|
-
* @
|
9
|
-
* @
|
10
|
-
* @property {string} [anchor] - The id of the element the menu will be anchored to
|
11
|
+
* @attribute {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} [placement='bottom-start'] - The placement of the menu
|
12
|
+
* @attribute {string} anchor - The id of the element the menu will be anchored to
|
11
13
|
*
|
12
|
-
* @event
|
13
|
-
* @event
|
14
|
+
* @event {CustomEvent} skf-opened - Fired when the menu is opened
|
15
|
+
* @event {CustomEvent} skf-closed - Fired when the menu is closed
|
14
16
|
*
|
15
17
|
* @slot - The menu popover content
|
16
18
|
*
|
@@ -19,6 +21,6 @@ import type { CSSResultGroup } from 'lit';
|
|
19
21
|
export declare class SkfMenu extends SkfPopoverBase {
|
20
22
|
static styles: CSSResultGroup;
|
21
23
|
constructor();
|
24
|
+
/** @internal */
|
22
25
|
addEventListeners($element: HTMLElement | Element): void;
|
23
|
-
removeEventListeners($element: HTMLElement | Element): void;
|
24
26
|
}
|
@@ -1,18 +1,16 @@
|
|
1
1
|
import { SkfPopoverBase as t } from "../../internal/base-classes/popover/popover.base.js";
|
2
|
-
import { styles as
|
2
|
+
import { styles as r } from "./menu.styles.js";
|
3
3
|
const s = class s extends t {
|
4
4
|
constructor() {
|
5
|
-
super(), this.placement = "bottom-start", t.classMap = { menu: !0 };
|
5
|
+
super(), this.placement = "bottom-start", this.role = "menu", this.triggerEvent = "click", this.variant = "menu", t.classMap = { menu: !0 };
|
6
6
|
}
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
removeEventListeners(e) {
|
11
|
-
e.removeEventListener("mouseenter", this.open);
|
7
|
+
/** @internal */
|
8
|
+
addEventListeners(i) {
|
9
|
+
i.addEventListener(this.triggerEvent, this.open.bind(this), { signal: this.signal });
|
12
10
|
}
|
13
11
|
};
|
14
|
-
s.styles = [t.styles,
|
15
|
-
let
|
12
|
+
s.styles = [t.styles, r];
|
13
|
+
let e = s;
|
16
14
|
export {
|
17
|
-
|
15
|
+
e as SkfMenu
|
18
16
|
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import '../link/link.js';
|
2
|
+
import { SkfElement } from '../../internal/components/skf-element';
|
3
|
+
import type { Icon } from '../../internal/types.js';
|
4
|
+
import { type CSSResultGroup } from 'lit';
|
5
|
+
/**
|
6
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
7
|
+
*
|
8
|
+
* @slot - The component's main content
|
9
|
+
*
|
10
|
+
* @tagname skf-nav-item
|
11
|
+
*/
|
12
|
+
export declare class SkfNavItem extends SkfElement {
|
13
|
+
#private;
|
14
|
+
static styles: CSSResultGroup;
|
15
|
+
href: string;
|
16
|
+
icon?: Icon;
|
17
|
+
vertical: boolean;
|
18
|
+
connectedCallback(): void;
|
19
|
+
/** @internal */
|
20
|
+
_handleStateChange(): void;
|
21
|
+
render(): import("lit").TemplateResult<1>;
|
22
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
var y = (t) => {
|
2
|
+
throw TypeError(t);
|
3
|
+
};
|
4
|
+
var u = (t, e, r) => e.has(t) || y("Cannot " + r);
|
5
|
+
var h = (t, e, r) => (u(t, e, "read from private field"), r ? r.call(t) : e.get(t)), f = (t, e, r) => e.has(t) ? y("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), m = (t, e, r, s) => (u(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
|
6
|
+
import "../link/link.js";
|
7
|
+
import { SkfElement as d } from "../../internal/components/skf-element.js";
|
8
|
+
import { stateMap as g } from "../../internal/helpers/stateMap.js";
|
9
|
+
import { watch as C } from "../../internal/helpers/watch.js";
|
10
|
+
import { componentStyles as b } from "../../styles/component.styles.js";
|
11
|
+
import { html as O } from "lit";
|
12
|
+
import { property as _, state as P } from "lit/decorators.js";
|
13
|
+
import { ifDefined as S } from "lit/directives/if-defined.js";
|
14
|
+
import { styles as w } from "./nav-item.styles.js";
|
15
|
+
var D = Object.defineProperty, j = Object.getOwnPropertyDescriptor, l = (t, e, r, s) => {
|
16
|
+
for (var o = s > 1 ? void 0 : s ? j(e, r) : e, a = t.length - 1, c; a >= 0; a--)
|
17
|
+
(c = t[a]) && (o = (s ? c(e, r, o) : c(o)) || o);
|
18
|
+
return s && o && D(e, r, o), o;
|
19
|
+
}, n, p;
|
20
|
+
const v = class v extends d {
|
21
|
+
constructor() {
|
22
|
+
super(...arguments);
|
23
|
+
f(this, n);
|
24
|
+
f(this, p);
|
25
|
+
m(this, n, this.attachInternals()), m(this, p, h(this, n).states), this.href = "", this.vertical = !1;
|
26
|
+
}
|
27
|
+
connectedCallback() {
|
28
|
+
super.connectedCallback(), this.role = "listitem";
|
29
|
+
}
|
30
|
+
_handleStateChange() {
|
31
|
+
g(h(this, p), "vertical").set(this.vertical);
|
32
|
+
}
|
33
|
+
render() {
|
34
|
+
return O`
|
35
|
+
<skf-link color="inverse" href=${this.href} icon=${S(this.icon)}>
|
36
|
+
<slot></slot>
|
37
|
+
</skf-link>
|
38
|
+
`;
|
39
|
+
}
|
40
|
+
};
|
41
|
+
n = new WeakMap(), p = new WeakMap(), v.styles = [b, w];
|
42
|
+
let i = v;
|
43
|
+
l([
|
44
|
+
_({ type: String })
|
45
|
+
], i.prototype, "href", 2);
|
46
|
+
l([
|
47
|
+
_({ type: String })
|
48
|
+
], i.prototype, "icon", 2);
|
49
|
+
l([
|
50
|
+
P()
|
51
|
+
], i.prototype, "vertical", 2);
|
52
|
+
l([
|
53
|
+
C("vertical")
|
54
|
+
], i.prototype, "_handleStateChange", 1);
|
55
|
+
export {
|
56
|
+
i as SkfNavItem
|
57
|
+
};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { css as t } from "lit";
|
2
|
+
const s = t`
|
3
|
+
@layer components {
|
4
|
+
@layer base {
|
5
|
+
skf-link::part(root) {
|
6
|
+
block-size: var(--skf-header-height);
|
7
|
+
display: flex;
|
8
|
+
padding-inline: var(--skf-spacing-100);
|
9
|
+
position: relative;
|
10
|
+
}
|
11
|
+
|
12
|
+
skf-link::part(root)::after {
|
13
|
+
content: '';
|
14
|
+
position: absolute;
|
15
|
+
transition: translate calc(var(--skf-motion-duration-fast) * 1ms)
|
16
|
+
var(--skf-motion-easing-ease-in);
|
17
|
+
}
|
18
|
+
|
19
|
+
skf-link::part(root):hover::after {
|
20
|
+
--_skf-nav-link-translate: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
:host(:not(:state(vertical))) skf-link::part(root)::after {
|
24
|
+
border-bottom: var(--skf-size-4) solid var(--skf-border-color-inverse);
|
25
|
+
inset-block-end: 0;
|
26
|
+
inset-inline: 0;
|
27
|
+
translate: 0 var(--_skf-nav-link-translate, 100%);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@layer mods {
|
32
|
+
:host(:state(vertical)) skf-link::part(root)::after {
|
33
|
+
border-left: var(--skf-size-4) solid var(--skf-border-color-inverse);
|
34
|
+
inset-block: 0;
|
35
|
+
inset-inline-start: 0;
|
36
|
+
translate: var(--_skf-nav-link-translate, -100%) 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
`;
|
41
|
+
export {
|
42
|
+
s as styles
|
43
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { SkfElement } from '../../internal/components/skf-element';
|
2
|
+
import { type CSSResultGroup } from 'lit';
|
3
|
+
/**
|
4
|
+
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
5
|
+
*
|
6
|
+
* @documentation See [zeroheight](https://zeroheight.com/****) for design principles
|
7
|
+
*
|
8
|
+
* @slot - The component's main content
|
9
|
+
*
|
10
|
+
* @tagname skf-nav
|
11
|
+
*/
|
12
|
+
export declare class SkfNav extends SkfElement {
|
13
|
+
#private;
|
14
|
+
static styles: CSSResultGroup;
|
15
|
+
/** If true, the navigation will be displayed vertically */
|
16
|
+
vertical: boolean;
|
17
|
+
/** @internal */
|
18
|
+
private _items;
|
19
|
+
connectedCallback(): void;
|
20
|
+
/** @internal */
|
21
|
+
_handleStateChange(): void;
|
22
|
+
render(): import("lit").TemplateResult<1>;
|
23
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
var u = (t) => {
|
2
|
+
throw TypeError(t);
|
3
|
+
};
|
4
|
+
var y = (t, e, r) => e.has(t) || u("Cannot " + r);
|
5
|
+
var c = (t, e, r) => (y(t, e, "read from private field"), r ? r.call(t) : e.get(t)), m = (t, e, r) => e.has(t) ? u("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), h = (t, e, r, i) => (y(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
|
6
|
+
import { SkfElement as _ } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as d } from "../../internal/helpers/stateMap.js";
|
8
|
+
import { watch as b } from "../../internal/helpers/watch.js";
|
9
|
+
import { componentStyles as g } from "../../styles/component.styles.js";
|
10
|
+
import { html as C } from "lit";
|
11
|
+
import { property as O, queryAssignedElements as P } from "lit/decorators.js";
|
12
|
+
import { ifDefined as w } from "lit/directives/if-defined.js";
|
13
|
+
import { styles as D } from "./nav.styles.js";
|
14
|
+
var E = Object.defineProperty, j = Object.getOwnPropertyDescriptor, f = (t, e, r, i) => {
|
15
|
+
for (var s = i > 1 ? void 0 : i ? j(e, r) : e, n = t.length - 1, p; n >= 0; n--)
|
16
|
+
(p = t[n]) && (s = (i ? p(e, r, s) : p(s)) || s);
|
17
|
+
return i && s && E(e, r, s), s;
|
18
|
+
}, o, l;
|
19
|
+
const v = class v extends _ {
|
20
|
+
constructor() {
|
21
|
+
super(...arguments);
|
22
|
+
m(this, o);
|
23
|
+
m(this, l);
|
24
|
+
h(this, o, this.attachInternals()), h(this, l, c(this, o).states), this.vertical = !1;
|
25
|
+
}
|
26
|
+
connectedCallback() {
|
27
|
+
super.connectedCallback(), this.ariaLabel = this.ariaLabel ?? "Main navigation", this.role = "navigation";
|
28
|
+
}
|
29
|
+
_handleStateChange() {
|
30
|
+
d(c(this, l), "vertical").set(this.vertical), this._items.forEach((r) => {
|
31
|
+
r.vertical = this.vertical;
|
32
|
+
});
|
33
|
+
}
|
34
|
+
render() {
|
35
|
+
return C`
|
36
|
+
<ul aria-orientation=${w(this.vertical ? "vertical" : void 0)}>
|
37
|
+
<slot></slot>
|
38
|
+
</ul>
|
39
|
+
`;
|
40
|
+
}
|
41
|
+
};
|
42
|
+
o = new WeakMap(), l = new WeakMap(), v.styles = [g, D];
|
43
|
+
let a = v;
|
44
|
+
f([
|
45
|
+
O({ type: Boolean })
|
46
|
+
], a.prototype, "vertical", 2);
|
47
|
+
f([
|
48
|
+
P({ selector: "skf-nav-item" })
|
49
|
+
], a.prototype, "_items", 2);
|
50
|
+
f([
|
51
|
+
b("vertical")
|
52
|
+
], a.prototype, "_handleStateChange", 1);
|
53
|
+
export {
|
54
|
+
a as SkfNav
|
55
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { css as t } from "lit";
|
2
|
+
const o = t`
|
3
|
+
@layer components {
|
4
|
+
@layer base {
|
5
|
+
:host(:not(:state(vertical))) {
|
6
|
+
width: fit-content;
|
7
|
+
}
|
8
|
+
|
9
|
+
ul {
|
10
|
+
display: flex;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
@layer mods {
|
15
|
+
:host(:state(vertical)) ul {
|
16
|
+
flex-direction: column;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
`;
|
21
|
+
export {
|
22
|
+
o as styles
|
23
|
+
};
|
@@ -1,16 +1,18 @@
|
|
1
1
|
import { SkfPopoverBase } from '../../internal/base-classes/popover/popover.base.js';
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
3
3
|
/**
|
4
|
-
* The
|
4
|
+
* The most appropriate ARIA role is dialog. Even though it's light-dismissible, the presence of an interactive element (the link) suggests it functions more like a dialog presenting options or actions. Since it is light-dismissible and not truly modal (doesn't prevent interaction with the rest of the page while open), you should also set aria-modal="false" to accurately reflect its behavior. Don't forget to include a label with aria-labelledby (pointing to a visible label) or aria-label if a visible label isn't present.
|
5
|
+
*/
|
6
|
+
/**
|
7
|
+
* The `<skf-popover>` is a general purpose component that displays the slot content in a popover.
|
5
8
|
*
|
6
|
-
*
|
9
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
7
10
|
*
|
8
|
-
* @
|
9
|
-
* @
|
10
|
-
* @property {string} [anchor] - The id of the element the menu will be anchored to
|
11
|
+
* @attribute {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} [placement='bottom-start'] - The placement of the popover
|
12
|
+
* @attribute {string} anchor - The id of the element the menu will be anchored to
|
11
13
|
*
|
12
|
-
* @event
|
13
|
-
* @event
|
14
|
+
* @event {CustomEvent} skf-opened - Fired when the menu is opened
|
15
|
+
* @event {CustomEvent} skf-closed - Fired when the menu is closed
|
14
16
|
*
|
15
17
|
* @slot - The popover content
|
16
18
|
*
|
@@ -23,7 +25,12 @@ export declare class SkfPopover extends SkfPopoverBase {
|
|
23
25
|
/** If true, hides the arrow */
|
24
26
|
hideArrow: boolean;
|
25
27
|
constructor();
|
28
|
+
/** @internal */
|
26
29
|
hideArrowChanged(): void;
|
30
|
+
/** @internal */
|
31
|
+
openExtended(): void;
|
32
|
+
/** @internal */
|
27
33
|
addEventListeners($element: HTMLElement | Element): void;
|
28
|
-
|
34
|
+
/** @internal */
|
35
|
+
_checkClickOutside: (e: Event) => void;
|
29
36
|
}
|