@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,122 +1,114 @@
|
|
1
|
+
var u = (e) => {
|
2
|
+
throw TypeError(e);
|
3
|
+
};
|
4
|
+
var b = (e, i, t) => i.has(e) || u("Cannot " + t);
|
5
|
+
var d = (e, i, t) => (b(e, i, "read from private field"), t ? t.call(e) : i.get(e)), f = (e, i, t) => i.has(e) ? u("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), y = (e, i, t, o) => (b(e, i, "write to private field"), o ? o.call(e, t) : i.set(e, t), t);
|
1
6
|
import "../icon/icon.js";
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
import "
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import { ifDefined as
|
9
|
-
import { html as
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
7
|
+
import { SkfElement as C } from "../../internal/components/skf-element.js";
|
8
|
+
import { stateMap as k } from "../../internal/helpers/stateMap.js";
|
9
|
+
import { watch as v } from "../../internal/helpers/watch.js";
|
10
|
+
import { componentStyles as S } from "../../styles/component.styles.js";
|
11
|
+
import { nothing as g } from "lit";
|
12
|
+
import { property as n } from "lit/decorators.js";
|
13
|
+
import { ifDefined as x } from "lit/directives/if-defined.js";
|
14
|
+
import { html as _ } from "lit/static-html.js";
|
15
|
+
import { styles as A } from "./link.styles.js";
|
16
|
+
var D = Object.defineProperty, E = Object.getOwnPropertyDescriptor, s = (e, i, t, o) => {
|
17
|
+
for (var h = o > 1 ? void 0 : o ? E(i, t) : i, p = e.length - 1, c; p >= 0; p--)
|
18
|
+
(c = e[p]) && (h = (o ? c(i, t, h) : c(h)) || h);
|
19
|
+
return o && h && D(i, t, h), h;
|
20
|
+
};
|
21
|
+
const w = {
|
22
|
+
color: ["inverse", "primary"],
|
23
|
+
stretch: "stretch"
|
24
|
+
};
|
25
|
+
var a, l;
|
26
|
+
const m = class m extends C {
|
16
27
|
constructor() {
|
17
|
-
super(...arguments)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
28
|
+
super(...arguments);
|
29
|
+
f(this, a);
|
30
|
+
f(this, l);
|
31
|
+
y(this, a, this.attachInternals()), y(this, l, d(this, a).states), this.as = "link", this.color = "primary", this.disabled = !1, this.download = !1, this.iconRight = !1, this.stretch = !1, this._handleClick = () => {
|
32
|
+
var t;
|
33
|
+
if (!(this.as === "button" && this.disabled) && (this.emit("skf-link-click", { detail: { href: this.href, route: this.route } }), this.as === "link" && !this.route && ((t = this.href) != null && t.trim())))
|
34
|
+
if (this.target)
|
35
|
+
window.open(this.href, this.target);
|
36
|
+
else if (this.download) {
|
37
|
+
const o = document.createElement("a");
|
38
|
+
o.href = this.href, o.download = this.href, document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
39
|
+
} else
|
40
|
+
window.location.href = this.href;
|
26
41
|
};
|
27
|
-
this._assertValidOnClick(t), this.removeEventListener("click", i), this.addEventListener("click", i);
|
28
|
-
}
|
29
|
-
get onClick() {
|
30
|
-
return this._onClick;
|
31
42
|
}
|
32
43
|
connectedCallback() {
|
33
|
-
super.connectedCallback(), this.
|
34
|
-
|
35
|
-
|
44
|
+
super.connectedCallback(), this.ariaDisabled = this.as === "button" && this.disabled ? "true" : null, this.role = this.as;
|
45
|
+
const t = this.hasAttribute("tabindex") ? Number(this.getAttribute("tabindex")) : 0;
|
46
|
+
this.ariaDisabled !== "true" && (this.tabIndex = t), this.addEventListener("keydown", (o) => {
|
47
|
+
(o.key === "Enter" || o.key === " ") && this._handleClick();
|
48
|
+
}), this.addEventListener("click", this._handleClick);
|
36
49
|
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
);
|
50
|
+
_handleAsChange() {
|
51
|
+
this.as === "button" ? this.setAttribute("type", "button") : this.removeAttribute("type");
|
52
|
+
}
|
53
|
+
_handleStateChange(t, o, h) {
|
54
|
+
k(d(this, l), w[t]).set(h);
|
43
55
|
}
|
44
56
|
/** @internal */
|
45
57
|
_renderIcon() {
|
46
|
-
const t =
|
47
|
-
|
48
|
-
inverse: "inverse"
|
49
|
-
});
|
50
|
-
return f`
|
51
|
-
<skf-icon color=${t[this.color]} name=${c(this.icon)} size="sm"></skf-icon>
|
52
|
-
`;
|
58
|
+
const t = this.color === "inverse" ? "inverse" : "emphasised";
|
59
|
+
return _`<skf-icon color=${t} name=${x(this.icon)} size="sm"></skf-icon>`;
|
53
60
|
}
|
54
61
|
render() {
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
link: !0,
|
62
|
-
"link--color-inverse": this.color === "inverse",
|
63
|
-
"link--color-primary": this.color === "primary",
|
64
|
-
"link--icon-right": this.iconPlacement === "right",
|
65
|
-
"link--stretch": this.stretch,
|
66
|
-
...s.classMap
|
67
|
-
})}
|
68
|
-
download=${c(t ? this.download : void 0)}
|
69
|
-
href=${c(t ? this.href : void 0)}
|
70
|
-
rel=${c(t ? this.rel : void 0)}
|
71
|
-
target=${c(t ? this.target : void 0)}
|
72
|
-
type=${c(t ? void 0 : this.type)}
|
73
|
-
>
|
74
|
-
${this.icon && this._renderIcon()}
|
75
|
-
<slot>Default link text</slot>
|
76
|
-
</${i}>
|
62
|
+
return _`
|
63
|
+
<div id="root" part="root">
|
64
|
+
${this.icon && !this.iconRight ? this._renderIcon() : g}
|
65
|
+
<slot></slot>
|
66
|
+
${this.icon && this.iconRight ? this._renderIcon() : g}
|
67
|
+
</div>
|
77
68
|
`;
|
78
69
|
}
|
79
|
-
}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
70
|
+
};
|
71
|
+
a = new WeakMap(), l = new WeakMap(), m.styles = [S, A];
|
72
|
+
let r = m;
|
73
|
+
s([
|
74
|
+
n({ type: String })
|
75
|
+
], r.prototype, "as", 2);
|
76
|
+
s([
|
77
|
+
n({ type: String })
|
78
|
+
], r.prototype, "color", 2);
|
79
|
+
s([
|
80
|
+
n({ type: Boolean })
|
81
|
+
], r.prototype, "disabled", 2);
|
82
|
+
s([
|
83
|
+
n({ type: Boolean })
|
84
|
+
], r.prototype, "download", 2);
|
85
|
+
s([
|
86
|
+
n({ type: String })
|
87
|
+
], r.prototype, "href", 2);
|
88
|
+
s([
|
89
|
+
n({ type: String })
|
90
|
+
], r.prototype, "icon", 2);
|
91
|
+
s([
|
92
|
+
n({ type: Boolean, attribute: "icon-right" })
|
93
|
+
], r.prototype, "iconRight", 2);
|
94
|
+
s([
|
95
|
+
n({ type: String })
|
96
|
+
], r.prototype, "rel", 2);
|
97
|
+
s([
|
98
|
+
n({ type: String })
|
99
|
+
], r.prototype, "route", 2);
|
100
|
+
s([
|
101
|
+
n({ type: Boolean })
|
102
|
+
], r.prototype, "stretch", 2);
|
103
|
+
s([
|
104
|
+
n({ type: String })
|
105
|
+
], r.prototype, "target", 2);
|
106
|
+
s([
|
107
|
+
v("as")
|
108
|
+
], r.prototype, "_handleAsChange", 1);
|
109
|
+
s([
|
110
|
+
v(Object.keys(w))
|
111
|
+
], r.prototype, "_handleStateChange", 1);
|
120
112
|
export {
|
121
|
-
|
113
|
+
r as SkfLink
|
122
114
|
};
|
@@ -1,2 +1 @@
|
|
1
|
-
declare const
|
2
|
-
export default _default;
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
@@ -1,60 +1,64 @@
|
|
1
|
-
import { css as
|
2
|
-
const
|
3
|
-
/* stylelint-disable selector-class-pattern */
|
1
|
+
import { css as o } from "lit";
|
2
|
+
const e = o`
|
4
3
|
@layer components {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
font-weight: var(--skf-font-weight-bold);
|
11
|
-
gap: var(--skf-spacing-50);
|
12
|
-
justify-content: flex-start;
|
13
|
-
|
14
|
-
&:is(a) {
|
15
|
-
text-decoration: none;
|
4
|
+
@layer base {
|
5
|
+
:host {
|
6
|
+
contain: layout;
|
7
|
+
cursor: pointer;
|
8
|
+
display: inline;
|
16
9
|
}
|
17
10
|
|
18
|
-
|
19
|
-
--
|
20
|
-
|
11
|
+
#root {
|
12
|
+
--_skf-link-color: var(--skf-interactive-text-color-primary);
|
13
|
+
--_skf-link-color-active: var(--skf-interactive-text-color-primary-active);
|
14
|
+
--_skf-link-color-disabled: var(--skf-interactive-text-color-disabled);
|
15
|
+
--_skf-link-color-hover: var(--skf-interactive-text-color-primary-hover);
|
16
|
+
--_skf-link-outline-color: var(--skf-interactive-text-color-primary);
|
21
17
|
|
22
|
-
|
23
|
-
|
18
|
+
align-items: center;
|
19
|
+
color: var(--_skf-link-color);
|
20
|
+
display: inline-flex;
|
21
|
+
font-weight: var(--skf-font-weight-bold);
|
22
|
+
gap: 0 var(--skf-spacing-25);
|
23
|
+
vertical-align: top;
|
24
24
|
}
|
25
|
+
}
|
26
|
+
|
27
|
+
@layer states {
|
28
|
+
:host(:focus-visible) {
|
29
|
+
outline: unset;
|
25
30
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
31
|
+
#root {
|
32
|
+
border-radius: var(--skf-border-radius-sm);
|
33
|
+
outline: var(--skf-border-width-md) solid var(--_skf-link-outline-color);
|
34
|
+
outline-offset: var(--skf-size-2);
|
35
|
+
}
|
30
36
|
}
|
31
|
-
}
|
32
37
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
--color-disabled: var(--skf-interactive-text-color-disabled);
|
37
|
-
--color-hover: var(--skf-interactive-text-color-primary-hover);
|
38
|
-
--outline-color: var(--skf-interactive-text-color-primary);
|
39
|
-
}
|
38
|
+
:host(:disabled) #root {
|
39
|
+
--_skf-link-color: var(--_skf-link-color-disabled);
|
40
|
+
}
|
40
41
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
--color-disabled: var(--skf-interactive-text-color-disabled);
|
45
|
-
--color-hover: var(--skf-interactive-text-color-inverse-hover);
|
46
|
-
--outline-color: var(--skf-interactive-text-color-inverse);
|
42
|
+
:host(:hover) #root {
|
43
|
+
--_skf-link-color: var(--_skf-link-color-hover);
|
44
|
+
}
|
47
45
|
}
|
48
46
|
|
49
|
-
|
50
|
-
|
51
|
-
|
47
|
+
@layer mods {
|
48
|
+
:host(:state(inverse)) #root {
|
49
|
+
--_skf-link-color: var(--skf-interactive-text-color-inverse);
|
50
|
+
--_skf-link-color-active: var(--skf-interactive-text-color-inverse-active);
|
51
|
+
--_skf-link-color-disabled: var(--skf-interactive-text-color-disabled);
|
52
|
+
--_skf-link-color-hover: var(--skf-interactive-text-color-inverse-hover);
|
53
|
+
--_skf-link-outline-color: var(--skf-interactive-text-color-inverse);
|
54
|
+
}
|
52
55
|
|
53
|
-
|
54
|
-
|
56
|
+
:host(:state(stretch)) #root {
|
57
|
+
inline-size: 100%;
|
58
|
+
}
|
55
59
|
}
|
56
60
|
}
|
57
61
|
`;
|
58
62
|
export {
|
59
|
-
|
63
|
+
e as styles
|
60
64
|
};
|
@@ -1,52 +1,48 @@
|
|
1
|
-
var
|
2
|
-
throw TypeError(
|
1
|
+
var m = (t) => {
|
2
|
+
throw TypeError(t);
|
3
3
|
};
|
4
|
-
var f = (
|
5
|
-
var
|
6
|
-
import { SkfElement as
|
7
|
-
import
|
8
|
-
import { html as
|
9
|
-
import { property as
|
10
|
-
import {
|
11
|
-
|
12
|
-
var
|
13
|
-
|
14
|
-
|
15
|
-
return i && x(e, t, i), i;
|
4
|
+
var f = (t, e, r) => e.has(t) || m("Cannot " + r);
|
5
|
+
var n = (t, e, r) => (f(t, e, "read from private field"), r ? r.call(t) : e.get(t)), h = (t, e, r) => e.has(t) ? m("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), u = (t, e, r, l) => (f(t, e, "write to private field"), l ? l.call(t, r) : e.set(t, r), r);
|
6
|
+
import { SkfElement as b } from "../../internal/components/skf-element.js";
|
7
|
+
import { componentStyles as y } from "../../styles/component.styles.js";
|
8
|
+
import { html as g } from "lit";
|
9
|
+
import { property as c } from "lit/decorators.js";
|
10
|
+
import { styles as C } from "./loader.styles.js";
|
11
|
+
var _ = Object.defineProperty, p = (t, e, r, l) => {
|
12
|
+
for (var i = void 0, o = t.length - 1, v; o >= 0; o--)
|
13
|
+
(v = t[o]) && (i = v(e, r, i) || i);
|
14
|
+
return i && _(e, r, i), i;
|
16
15
|
}, s;
|
17
|
-
const d = class d extends
|
16
|
+
const d = class d extends b {
|
18
17
|
constructor() {
|
19
|
-
super();
|
18
|
+
super(...arguments);
|
20
19
|
h(this, s);
|
21
|
-
|
20
|
+
u(this, s, this.attachInternals()), this.ariaLabel = "Loading...", this.invert = !1, this.size = "md";
|
21
|
+
}
|
22
|
+
connectedCallback() {
|
23
|
+
super.connectedCallback(), n(this, s).role = "progressbar", n(this, s).ariaLive = "polite";
|
22
24
|
}
|
23
25
|
render() {
|
24
|
-
return
|
25
|
-
<div
|
26
|
-
class
|
27
|
-
|
28
|
-
|
29
|
-
"loader--small": this.size === "sm"
|
30
|
-
})}
|
31
|
-
>
|
32
|
-
<div class="loader__circle"></div>
|
33
|
-
<div class="loader__circle"></div>
|
34
|
-
<div class="loader__circle"></div>
|
26
|
+
return g`
|
27
|
+
<div id="root">
|
28
|
+
<div class="circle"></div>
|
29
|
+
<div class="circle"></div>
|
30
|
+
<div class="circle"></div>
|
35
31
|
</div>
|
36
32
|
`;
|
37
33
|
}
|
38
34
|
};
|
39
|
-
s = new WeakMap(), d.styles = [
|
40
|
-
let
|
41
|
-
|
42
|
-
|
43
|
-
],
|
44
|
-
|
45
|
-
|
46
|
-
],
|
47
|
-
|
48
|
-
|
49
|
-
],
|
35
|
+
s = new WeakMap(), d.styles = [y, C];
|
36
|
+
let a = d;
|
37
|
+
p([
|
38
|
+
c({ reflect: !0, attribute: "aria-label" })
|
39
|
+
], a.prototype, "ariaLabel");
|
40
|
+
p([
|
41
|
+
c({ type: Boolean })
|
42
|
+
], a.prototype, "invert");
|
43
|
+
p([
|
44
|
+
c({ reflect: !0 })
|
45
|
+
], a.prototype, "size");
|
50
46
|
export {
|
51
|
-
|
47
|
+
a as SkfLoader
|
52
48
|
};
|
@@ -1,2 +1 @@
|
|
1
|
-
declare const
|
2
|
-
export default _default;
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
@@ -1,51 +1,59 @@
|
|
1
1
|
import { css as a } from "lit";
|
2
|
-
const
|
3
|
-
/* stylelint-disable selector-class-pattern */
|
2
|
+
const o = a`
|
4
3
|
@layer components {
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
@layer base {
|
5
|
+
:host {
|
6
|
+
display: inline-flex;
|
7
|
+
}
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
#root {
|
10
|
+
--_skf-loader-color: var(--skf-bg-color-emphasised);
|
11
|
+
--_skf-loader-gap: var(--skf-spacing-50);
|
12
|
+
--_skf-loader-size: var(--skf-size-12);
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
display: flex;
|
15
|
+
gap: var(--_skf-loader-gap);
|
16
|
+
}
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
.circle {
|
19
|
+
animation: skf-loader 0.5s infinite ease-in alternate;
|
20
|
+
aspect-ratio: 1;
|
21
|
+
background-color: var(--_skf-loader-color);
|
22
|
+
border-radius: 50%;
|
23
|
+
inline-size: var(--_skf-loader-size);
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
&:nth-child(2) {
|
26
|
+
animation-delay: 0.1s;
|
27
|
+
}
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
&:nth-child(3) {
|
30
|
+
animation-delay: 0.2s;
|
31
|
+
}
|
31
32
|
}
|
33
|
+
}
|
32
34
|
|
33
|
-
|
34
|
-
|
35
|
+
@layer mods {
|
36
|
+
:host([invert]) {
|
37
|
+
#root {
|
38
|
+
--_skf-loader-color: var(--skf-bg-color-neutral-1);
|
39
|
+
}
|
35
40
|
}
|
36
41
|
|
37
|
-
|
38
|
-
|
42
|
+
:host([size='sm']) {
|
43
|
+
#root {
|
44
|
+
--_skf-loader-gap: var(--skf-spacing-25);
|
45
|
+
--_skf-loader-size: var(--skf-size-4);
|
46
|
+
}
|
39
47
|
}
|
40
48
|
}
|
49
|
+
}
|
41
50
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}
|
51
|
+
@keyframes skf-loader {
|
52
|
+
to {
|
53
|
+
opacity: 0;
|
46
54
|
}
|
47
55
|
}
|
48
56
|
`;
|
49
57
|
export {
|
50
|
-
|
58
|
+
o as styles
|
51
59
|
};
|
@@ -1,21 +1,23 @@
|
|
1
1
|
import { SkfElement } from '../../internal/components/skf-element.js';
|
2
2
|
import type { Logo } from '@skf-design-system/ui-assets';
|
3
3
|
import { type CSSResultGroup } from 'lit';
|
4
|
+
type SkfLogoColor = Logo;
|
4
5
|
/**
|
5
6
|
* The `<skf-logo>` component is used to display the SKF logo.
|
6
7
|
*
|
7
|
-
* @cssproperty --
|
8
|
+
* @cssproperty --mod-logo-height - The height of the logo
|
8
9
|
*
|
9
10
|
* @tagname skf-logo
|
10
11
|
*/
|
11
12
|
export declare class SkfLogo extends SkfElement {
|
13
|
+
#private;
|
12
14
|
static styles: CSSResultGroup;
|
13
15
|
/** Defines the title of the logo */
|
14
16
|
title: string;
|
15
|
-
/**
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
color: Logo;
|
17
|
+
/** Defines the color of the logo */
|
18
|
+
color: SkfLogoColor;
|
19
|
+
/** @internal */
|
20
|
+
_handleStateChange(): void;
|
20
21
|
render(): import("lit").TemplateResult<1>;
|
21
22
|
}
|
23
|
+
export {};
|