@skf-design-system/ui-components 1.0.0-alpha.34 → 1.0.0-alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -27
- package/dist/components/accordion/accordion-item.component.d.ts +36 -0
- package/dist/components/accordion/accordion-item.component.js +98 -0
- package/dist/components/accordion/accordion-item.d.ts +3 -3
- package/dist/components/accordion/accordion-item.js +4 -5
- package/dist/components/accordion/accordion-item.styles.js +77 -0
- package/dist/components/accordion/accordion.component.d.ts +9 -13
- package/dist/components/accordion/accordion.component.js +8 -9
- 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 +4 -1
- package/dist/components/card/card.component.js +46 -36
- package/dist/components/card/card.styles.js +36 -23
- package/dist/components/checkbox/checkbox.component.d.ts +17 -13
- package/dist/components/checkbox/checkbox.component.js +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 +455 -0
- package/dist/components/datepicker/datepicker.d.ts +8 -0
- package/dist/components/datepicker/datepicker.helpers.d.ts +38 -0
- package/dist/components/datepicker/datepicker.helpers.js +31 -0
- package/dist/components/datepicker/datepicker.js +6 -0
- package/dist/components/datepicker/datepicker.styles.d.ts +1 -0
- package/dist/components/datepicker/datepicker.styles.js +18 -0
- package/dist/components/dialog/dialog.component.d.ts +20 -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 +19 -18
- package/dist/components/icon/icon.component.js +64 -43
- package/dist/components/icon/icon.styles.d.ts +1 -2
- package/dist/components/icon/icon.styles.js +61 -60
- package/dist/components/input/input.component.d.ts +31 -31
- package/dist/components/input/input.component.js +166 -146
- package/dist/components/input/input.controllers.d.ts +20 -6
- package/dist/components/input/input.controllers.js +14 -10
- package/dist/components/link/link.component.d.ts +12 -14
- package/dist/components/link/link.component.js +35 -34
- package/dist/components/link/link.styles.d.ts +1 -2
- package/dist/components/link/link.styles.js +24 -20
- package/dist/components/loader/loader.component.d.ts +1 -1
- package/dist/components/loader/loader.component.js +36 -40
- package/dist/components/loader/loader.styles.d.ts +1 -2
- package/dist/components/loader/loader.styles.js +40 -32
- package/dist/components/logo/logo.component.d.ts +8 -6
- package/dist/components/logo/logo.component.js +55 -51
- package/dist/components/logo/logo.styles.js +26 -16
- package/dist/components/menu/menu-item.component.d.ts +13 -0
- package/dist/components/{menu-item → menu}/menu-item.component.js +3 -3
- package/dist/components/{menu-item → menu}/menu-item.d.ts +2 -2
- package/dist/components/menu/menu.component.d.ts +10 -8
- package/dist/components/menu/menu.component.js +8 -10
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/nav/nav-item.component.d.ts +18 -0
- package/dist/components/nav/nav-item.component.js +38 -0
- package/dist/components/nav/nav-item.d.ts +8 -0
- package/dist/components/nav/nav-item.js +6 -0
- package/dist/components/nav/nav-item.styles.js +39 -0
- package/dist/components/nav/nav.component.d.ts +17 -0
- package/dist/components/nav/nav.component.js +34 -0
- package/dist/components/nav/nav.d.ts +8 -0
- package/dist/components/nav/nav.js +6 -0
- package/dist/components/nav/nav.styles.js +17 -0
- package/dist/components/popover/popover.component.d.ts +11 -8
- package/dist/components/popover/popover.component.js +24 -26
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.component.d.ts +2 -2
- package/dist/components/progress/progress.component.js +31 -37
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +42 -35
- package/dist/components/radio/radio.component.d.ts +19 -13
- package/dist/components/radio/radio.component.js +12 -12
- package/dist/components/radio/radio.styles.d.ts +1 -2
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.component.d.ts +36 -0
- package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
- package/dist/components/segmented-button/segmented-button-item.d.ts +8 -0
- package/dist/components/segmented-button/segmented-button-item.js +6 -0
- package/dist/components/segmented-button/segmented-button-item.styles.d.ts +1 -0
- package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
- package/dist/components/segmented-button/segmented-button.component.d.ts +30 -0
- package/dist/components/segmented-button/segmented-button.component.js +73 -0
- package/dist/components/segmented-button/segmented-button.d.ts +8 -0
- package/dist/components/segmented-button/segmented-button.js +6 -0
- package/dist/components/segmented-button/segmented-button.styles.d.ts +1 -0
- package/dist/components/segmented-button/segmented-button.styles.js +16 -0
- package/dist/components/{select-option-group → select}/select-option-group.component.js +1 -1
- package/dist/components/{select-option-group → select}/select-option-group.d.ts +2 -2
- package/dist/components/select/select-option-group.style.d.ts +1 -0
- package/dist/components/{select-option → select}/select-option.component.d.ts +9 -10
- package/dist/components/{select-option → select}/select-option.component.js +23 -23
- package/dist/components/select/select-option.controllers.d.ts +15 -0
- package/dist/components/select/select-option.styles.d.ts +1 -0
- package/dist/components/select/select.component.d.ts +18 -17
- package/dist/components/select/select.component.js +22 -23
- package/dist/components/select/select.controllers.d.ts +21 -10
- package/dist/components/select/select.controllers.js +27 -22
- package/dist/components/select/stories/select.stories.icons.d.ts +7 -0
- package/dist/components/{stepper-item → stepper}/stepper-item.component.js +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 +65 -67
- package/dist/components/{toast-item → toast}/toast-item.component.js +15 -15
- package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
- package/dist/components/{toast-item → toast}/toast-item.js +4 -0
- package/dist/components/toast/toast-item.styles.js +18 -0
- package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
- package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
- package/dist/components/toast/toast.component.d.ts +9 -5
- package/dist/components/toast/toast.component.js +32 -28
- package/dist/components/toast/toast.singleton.d.ts +6 -11
- package/dist/components/toast/toast.singleton.js +23 -23
- package/dist/components/tooltip/tooltip.component.d.ts +7 -7
- package/dist/components/tooltip/tooltip.component.js +16 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/custom-elements.json +4091 -2539
- package/dist/index.d.ts +22 -9
- package/dist/index.js +111 -74
- package/dist/internal/base-classes/popover/popover.base.d.ts +24 -9
- package/dist/internal/base-classes/popover/popover.base.js +138 -77
- package/dist/internal/base-classes/popover/popover.styles.js +14 -1
- package/dist/internal/components/hint/hint.component.d.ts +2 -2
- package/dist/internal/components/hint/hint.component.js +2 -2
- package/dist/internal/components/hint/hint.styles.d.ts +1 -2
- package/dist/internal/components/hint/hint.styles.js +1 -1
- package/dist/internal/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 +740 -1294
- package/dist/types/vue/index.d.ts +543 -322
- package/dist/vscode.html-custom-data.json +526 -1076
- package/dist/web-types.json +1237 -761
- package/package.json +45 -61
- 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/radio/radio.test.d.ts +0 -1
- package/dist/components/select-option/select-option.controllers.d.ts +0 -9
- package/dist/components/switch/switch.test.d.ts +0 -1
- package/dist/components/tab-group/tab-group.d.ts +0 -8
- package/dist/components/tab-group/tab-group.js +0 -6
- package/dist/components/toast-item/toast-item.styles.js +0 -16
- package/dist/internal/constants/heading.d.ts +0 -2
- package/dist/internal/playwright/index.d.ts +0 -1
- package/dist/react/index.d.ts +0 -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/{menu-item → menu}/menu-item.styles.js +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.component.d.ts +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.style.js +0 -0
- /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
- /package/dist/components/{select-option → select}/select-option.js +0 -0
- /package/dist/components/{select-option → select}/select-option.styles.js +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
- /package/dist/components/{tab → tabs}/tab.js +0 -0
- /package/dist/components/{tab → tabs}/tab.styles.js +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,68 +1,67 @@
|
|
1
1
|
import { css as r } from "lit";
|
2
2
|
const s = r`
|
3
|
-
/* stylelint-disable selector-class-pattern */
|
4
3
|
@layer components {
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
@layer base {
|
5
|
+
:host {
|
6
|
+
contain: layout;
|
7
|
+
}
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
var(--_skf-alert-border-color, var(--skf-border-color-primary));
|
13
|
-
border-radius: var(--skf-border-radius-sm);
|
14
|
-
box-shadow: var(--skf-shadow-md);
|
15
|
-
display: flex;
|
16
|
-
font-size: var(--skf-font-size-75);
|
17
|
-
gap: var(--skf-spacing-50);
|
18
|
-
padding-block: var(--skf-spacing-75);
|
19
|
-
padding-inline: var(--skf-spacing-50);
|
20
|
-
}
|
9
|
+
#root {
|
10
|
+
--_skf-alert-bg-color: var(--skf-bg-color-neutral-2);
|
11
|
+
--_skf-alert-border-color: var(--skf-border-color-primary);
|
21
12
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
13
|
+
background-color: var(--_skf-alert-bg-color);
|
14
|
+
border: var(--skf-border-width-sm) solid var(--_skf-alert-border-color);
|
15
|
+
border-radius: var(--skf-border-radius-sm);
|
16
|
+
box-shadow: var(--skf-shadow-md);
|
17
|
+
display: flex;
|
18
|
+
font-size: var(--skf-font-size-75);
|
19
|
+
gap: var(--skf-spacing-50);
|
20
|
+
padding-block: var(--skf-spacing-75);
|
21
|
+
padding-inline: var(--skf-spacing-50);
|
22
|
+
}
|
26
23
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
#body {
|
25
|
+
display: flex;
|
26
|
+
flex: auto;
|
27
|
+
flex-wrap: wrap;
|
28
|
+
gap: var(--skf-spacing-25) var(--skf-spacing-100);
|
29
|
+
justify-content: space-between;
|
30
|
+
}
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
32
|
+
#main {
|
33
|
+
display: block;
|
34
|
+
}
|
36
35
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
}
|
36
|
+
button {
|
37
|
+
display: inline-flex;
|
38
|
+
}
|
41
39
|
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
::slotted(skf-link) {
|
41
|
+
text-transform: uppercase;
|
42
|
+
}
|
45
43
|
}
|
46
44
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
justify-content: space-between;
|
53
|
-
}
|
45
|
+
@layer mods {
|
46
|
+
:host(:state(error)) #root {
|
47
|
+
--_skf-alert-bg-color: var(--skf-severity-bg-color-error);
|
48
|
+
--_skf-alert-border-color: var(--skf-severity-fg-color-error);
|
49
|
+
}
|
54
50
|
|
55
|
-
|
56
|
-
|
57
|
-
|
51
|
+
:host(:state(info)) #root {
|
52
|
+
--_skf-alert-bg-color: var(--skf-severity-bg-color-info);
|
53
|
+
--_skf-alert-border-color: var(--skf-severity-fg-color-info);
|
54
|
+
}
|
58
55
|
|
59
|
-
|
60
|
-
|
61
|
-
|
56
|
+
:host(:state(success)) #root {
|
57
|
+
--_skf-alert-bg-color: var(--skf-severity-bg-color-success);
|
58
|
+
--_skf-alert-border-color: var(--skf-severity-fg-color-success);
|
59
|
+
}
|
62
60
|
|
63
|
-
|
64
|
-
|
65
|
-
|
61
|
+
:host(:state(warning)) #root {
|
62
|
+
--_skf-alert-bg-color: var(--skf-severity-bg-color-warning);
|
63
|
+
--_skf-alert-border-color: var(--skf-severity-fg-color-warning);
|
64
|
+
}
|
66
65
|
}
|
67
66
|
}
|
68
67
|
`;
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import "../icon/icon.js";
|
2
|
+
import { SkfElement as h } from "../../internal/components/skf-element.js";
|
3
|
+
import { componentStyles as m } from "../../styles/component.styles.js";
|
4
|
+
import { html as n } from "lit";
|
5
|
+
import { property as f, state as _ } from "lit/decorators.js";
|
6
|
+
import { ifDefined as u } from "lit/directives/if-defined.js";
|
7
|
+
import { styles as C } from "./breadcrumb-item.styles.js";
|
8
|
+
var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, p = (a, t, s, r) => {
|
9
|
+
for (var e = r > 1 ? void 0 : r ? y(t, s) : t, o = a.length - 1, l; o >= 0; o--)
|
10
|
+
(l = a[o]) && (e = (r ? l(t, s, e) : l(e)) || e);
|
11
|
+
return r && e && v(t, s, e), e;
|
12
|
+
};
|
13
|
+
const c = class c extends h {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments), this._isCurrent = !1, this._clickHandler = (t, s) => {
|
16
|
+
var r;
|
17
|
+
this._onClick && t.preventDefault(), (r = this._onClick) == null || r.call(this, t, s);
|
18
|
+
};
|
19
|
+
}
|
20
|
+
set onClick(t) {
|
21
|
+
!this.href || !t || (this._onClick = t);
|
22
|
+
}
|
23
|
+
get onClick() {
|
24
|
+
return this._onClick;
|
25
|
+
}
|
26
|
+
connectedCallback() {
|
27
|
+
super.connectedCallback(), this.role = "listitem";
|
28
|
+
}
|
29
|
+
render() {
|
30
|
+
return n`
|
31
|
+
<div id="root">
|
32
|
+
${this.href ? n`
|
33
|
+
<a
|
34
|
+
@click=${this._clickHandler}
|
35
|
+
aria-current=${u(this._isCurrent ? "page" : void 0)}
|
36
|
+
class="label"
|
37
|
+
href=${this.href}
|
38
|
+
>
|
39
|
+
<slot></slot>
|
40
|
+
</a>
|
41
|
+
` : n`<slot class="label"></slot>`}
|
42
|
+
<span>/</span>
|
43
|
+
</div>
|
44
|
+
`;
|
45
|
+
}
|
46
|
+
};
|
47
|
+
c.styles = [m, C];
|
48
|
+
let i = c;
|
49
|
+
p([
|
50
|
+
f({ type: String })
|
51
|
+
], i.prototype, "href", 2);
|
52
|
+
p([
|
53
|
+
f({ attribute: !1 })
|
54
|
+
], i.prototype, "onClick", 1);
|
55
|
+
p([
|
56
|
+
_()
|
57
|
+
], i.prototype, "_isCurrent", 2);
|
58
|
+
export {
|
59
|
+
i as SkfBreadcrumbItem
|
60
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { SkfBreadcrumbItem } from './breadcrumb-item.component';
|
2
|
-
export * from './breadcrumb-item.component';
|
1
|
+
import { SkfBreadcrumbItem } from './breadcrumb-item.component.js';
|
2
|
+
export * from './breadcrumb-item.component.js';
|
3
3
|
export default SkfBreadcrumbItem;
|
4
4
|
declare global {
|
5
5
|
interface HTMLElementTagNameMap {
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { css as r } from "lit";
|
2
|
+
const e = r`
|
3
|
+
@layer components {
|
4
|
+
:host {
|
5
|
+
contain: layout;
|
6
|
+
}
|
7
|
+
|
8
|
+
#root {
|
9
|
+
--_skf-breadcrumb-item-color: inherit;
|
10
|
+
|
11
|
+
align-items: center;
|
12
|
+
display: flex;
|
13
|
+
}
|
14
|
+
|
15
|
+
span {
|
16
|
+
display: block;
|
17
|
+
margin-inline: var(--skf-spacing-25);
|
18
|
+
|
19
|
+
:host(:last-of-type) & {
|
20
|
+
display: none;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.label {
|
25
|
+
color: var(--_skf-breadcrumb-item-color);
|
26
|
+
|
27
|
+
&:is(slot) {
|
28
|
+
display: inline;
|
29
|
+
}
|
30
|
+
|
31
|
+
&:is(a) {
|
32
|
+
text-decoration: none;
|
33
|
+
|
34
|
+
&:focus-visible {
|
35
|
+
border-radius: var(--skf-border-radius-sm);
|
36
|
+
outline: var(--skf-border-width-md) solid var(--skf-interactive-border-color-focus);
|
37
|
+
outline-offset: var(--skf-size-2);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
:host(:not(:last-of-type)) & {
|
42
|
+
&:is(slot) {
|
43
|
+
--_skf-breadcrumb-item-color: var(--skf-text-color-secondary);
|
44
|
+
}
|
45
|
+
|
46
|
+
&:is(a) {
|
47
|
+
--_skf-breadcrumb-item-color: var(--skf-interactive-text-color-primary);
|
48
|
+
|
49
|
+
&:hover,
|
50
|
+
&:focus,
|
51
|
+
&:active {
|
52
|
+
--_skf-breadcrumb-item-color: var(--skf-interactive-text-color-primary-hover);
|
53
|
+
|
54
|
+
text-decoration: underline;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
`;
|
61
|
+
export {
|
62
|
+
e as styles
|
63
|
+
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import type { SkfBreadcrumbItem } from '../breadcrumb-item/breadcrumb-item.component.js';
|
2
1
|
import { SkfElement } from '../../internal/components/skf-element';
|
3
2
|
import { type CSSResultGroup } from 'lit';
|
3
|
+
import type { SkfBreadcrumbItem } from './breadcrumb-item.component.js';
|
4
4
|
/**
|
5
5
|
* The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
|
6
6
|
*
|
7
|
-
*
|
7
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/3338ef-breadcrumbs) for design principles.
|
8
8
|
*
|
9
9
|
* @event click - Fired when the item is clicked
|
10
10
|
*
|
@@ -13,17 +13,20 @@ import { type CSSResultGroup } from 'lit';
|
|
13
13
|
* @tagname skf-breadcrumb
|
14
14
|
*/
|
15
15
|
export declare class SkfBreadcrumb extends SkfElement {
|
16
|
+
#private;
|
16
17
|
static styles: CSSResultGroup;
|
17
18
|
/** aria-label for the breadcrumb control */
|
18
19
|
label: string;
|
19
|
-
/**
|
20
|
-
|
20
|
+
/** If true, renders a smaller version */
|
21
|
+
small: boolean;
|
21
22
|
/** @internal */
|
22
23
|
_isDynamic: boolean;
|
23
24
|
/** @internal */
|
24
25
|
_items: NodeListOf<SkfBreadcrumbItem>;
|
25
26
|
firstUpdated(): void;
|
26
27
|
/** @internal */
|
28
|
+
_handleStateChange(): void;
|
29
|
+
/** @internal */
|
27
30
|
private _handleSlotChange;
|
28
31
|
render(): import("lit").TemplateResult;
|
29
32
|
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
var f = (t) => {
|
2
|
+
throw TypeError(t);
|
3
|
+
};
|
4
|
+
var g = (t, s, e) => s.has(t) || f("Cannot " + e);
|
5
|
+
var p = (t, s, e) => (g(t, s, "read from private field"), e ? e.call(t) : s.get(t)), _ = (t, s, e) => s.has(t) ? f("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), y = (t, s, e, i) => (g(t, s, "write to private field"), i ? i.call(t, e) : s.set(t, e), e);
|
6
|
+
import { SkfElement as d } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as C } from "../../internal/helpers/stateMap.js";
|
8
|
+
import { watch as D } from "../../internal/helpers/watch.js";
|
9
|
+
import { componentStyles as v } from "../../styles/component.styles.js";
|
10
|
+
import "lit";
|
11
|
+
import { property as u, state as S, queryAssignedElements as O } from "lit/decorators.js";
|
12
|
+
import { html as P } from "lit/static-html.js";
|
13
|
+
import { styles as b } from "./breadcrumb.styles.js";
|
14
|
+
var w = Object.defineProperty, E = Object.getOwnPropertyDescriptor, n = (t, s, e, i) => {
|
15
|
+
for (var r = i > 1 ? void 0 : i ? E(s, e) : s, h = t.length - 1, m; h >= 0; h--)
|
16
|
+
(m = t[h]) && (r = (i ? m(s, e, r) : m(r)) || r);
|
17
|
+
return i && r && w(s, e, r), r;
|
18
|
+
}, a, l;
|
19
|
+
const c = class c extends d {
|
20
|
+
constructor() {
|
21
|
+
super(...arguments);
|
22
|
+
_(this, a);
|
23
|
+
_(this, l);
|
24
|
+
y(this, a, this.attachInternals()), y(this, l, p(this, a).states), this.label = "Breadcrumb", this.small = !1, this._isDynamic = !1, this._handleSlotChange = () => {
|
25
|
+
this._items.forEach((e, i) => {
|
26
|
+
this._isDynamic = this._isDynamic || !!e.href, this.role = this._isDynamic ? "navigation" : null;
|
27
|
+
const r = i === this._items.length - 1;
|
28
|
+
this._isDynamic && r && (e._isCurrent = !0);
|
29
|
+
});
|
30
|
+
};
|
31
|
+
}
|
32
|
+
firstUpdated() {
|
33
|
+
this._handleSlotChange();
|
34
|
+
}
|
35
|
+
_handleStateChange() {
|
36
|
+
C(p(this, l), "small").set(this.small);
|
37
|
+
}
|
38
|
+
render() {
|
39
|
+
return P`
|
40
|
+
<ol id="root">
|
41
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
42
|
+
</ol>
|
43
|
+
`;
|
44
|
+
}
|
45
|
+
};
|
46
|
+
a = new WeakMap(), l = new WeakMap(), c.styles = [v, b];
|
47
|
+
let o = c;
|
48
|
+
n([
|
49
|
+
u({ type: String })
|
50
|
+
], o.prototype, "label", 2);
|
51
|
+
n([
|
52
|
+
u({ type: Boolean })
|
53
|
+
], o.prototype, "small", 2);
|
54
|
+
n([
|
55
|
+
S()
|
56
|
+
], o.prototype, "_isDynamic", 2);
|
57
|
+
n([
|
58
|
+
O()
|
59
|
+
], o.prototype, "_items", 2);
|
60
|
+
n([
|
61
|
+
D("small")
|
62
|
+
], o.prototype, "_handleStateChange", 1);
|
63
|
+
export {
|
64
|
+
o as SkfBreadcrumb
|
65
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { SkfBreadcrumb } from './breadcrumb.component';
|
2
|
-
export * from './breadcrumb.component';
|
1
|
+
import { SkfBreadcrumb } from './breadcrumb.component.js';
|
2
|
+
export * from './breadcrumb.component.js';
|
3
3
|
export default SkfBreadcrumb;
|
4
4
|
declare global {
|
5
5
|
interface HTMLElementTagNameMap {
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { css as t } from "lit";
|
2
|
+
const s = t`
|
3
|
+
@layer components {
|
4
|
+
@layer base {
|
5
|
+
:host {
|
6
|
+
contain: layout;
|
7
|
+
}
|
8
|
+
|
9
|
+
#root {
|
10
|
+
align-items: center;
|
11
|
+
display: flex;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
@layer mods {
|
16
|
+
:host(:state(small)) #root {
|
17
|
+
font-size: var(--skf-font-size-75);
|
18
|
+
font-weight: var(--skf-font-weight-medium);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
`;
|
23
|
+
export {
|
24
|
+
s as styles
|
25
|
+
};
|
@@ -1,18 +1,23 @@
|
|
1
|
-
import type { SkfIcon } from '../icon/icon.component.js';
|
2
1
|
import '../icon/icon.js';
|
3
2
|
import '../loader/loader.js';
|
4
3
|
import { SkfElement } from '../../internal/components/skf-element.js';
|
4
|
+
import type { Icon } from '../../internal/types.js';
|
5
5
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
6
|
+
type SkfButtonType = HTMLButtonElement['type'];
|
6
7
|
/**
|
7
8
|
* Component to be used in forms or for interactivity
|
8
9
|
*
|
10
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/02493d-buttons) for design principles
|
11
|
+
*
|
9
12
|
* @slot - The Primary content
|
10
13
|
*
|
11
|
-
* @event click - Fires when the button is clicked
|
14
|
+
* @event {CustomEvent} click - Fires when the button is clicked
|
12
15
|
*
|
13
16
|
* @tagname skf-button
|
14
17
|
*/
|
15
18
|
export declare class SkfButton extends SkfElement {
|
19
|
+
#private;
|
20
|
+
static styles: CSSResultGroup;
|
16
21
|
static formAssociated: boolean;
|
17
22
|
static shadowRootOptions: {
|
18
23
|
delegatesFocus: boolean;
|
@@ -20,31 +25,27 @@ export declare class SkfButton extends SkfElement {
|
|
20
25
|
serializable?: boolean;
|
21
26
|
slotAssignment?: SlotAssignmentMode;
|
22
27
|
};
|
23
|
-
static styles: CSSResultGroup;
|
24
28
|
/** @internal */
|
25
29
|
private _transitionOptions;
|
26
|
-
_internals: ElementInternals;
|
27
30
|
/** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
|
28
31
|
destructive: boolean;
|
29
32
|
/** If true, removes border */
|
30
33
|
disabled: boolean;
|
31
34
|
/** If provided, renders an icon before or after the text */
|
32
|
-
|
33
|
-
|
34
|
-
/** If true, removes border */
|
35
|
+
icon?: Icon;
|
36
|
+
/** If true, button will take a square shape */
|
35
37
|
iconOnly: boolean;
|
36
|
-
/**
|
37
|
-
iconPosition
|
38
|
+
/** Determines the positioning of the icon in relation to the text */
|
39
|
+
iconPosition: 'left' | 'right';
|
38
40
|
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
39
41
|
loading: boolean;
|
40
42
|
noValidate: boolean;
|
41
43
|
/** If provided, displays an alternative size */
|
42
|
-
size
|
44
|
+
size?: 'sm' | 'md' | 'lg';
|
43
45
|
/** If provided, changes the button type */
|
44
|
-
|
45
|
-
type: HTMLButtonElement['type'];
|
46
|
+
type: SkfButtonType;
|
46
47
|
/** If provided, alters the appearance */
|
47
|
-
variant: 'primary' | 'secondary';
|
48
|
+
variant: 'primary' | 'secondary' | 'tertiary';
|
48
49
|
/** @internal */
|
49
50
|
private _loaderVisible;
|
50
51
|
/** @internal */
|
@@ -55,7 +56,8 @@ export declare class SkfButton extends SkfElement {
|
|
55
56
|
private $button?;
|
56
57
|
constructor();
|
57
58
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
58
|
-
|
59
|
+
/** @internal */
|
60
|
+
_handleLoadingChange(): void;
|
59
61
|
/** @internal */
|
60
62
|
_handleClick: (e: MouseEvent) => void;
|
61
63
|
/** @internal */
|
@@ -72,3 +74,4 @@ export declare class SkfButton extends SkfElement {
|
|
72
74
|
private _renderIcon;
|
73
75
|
render(): import("lit").TemplateResult<1>;
|
74
76
|
}
|
77
|
+
export {};
|