@skf-design-system/ui-components 1.0.2-beta.2 → 1.0.2-beta.4
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 +7 -1
- package/dist/components/accordion/accordion-item.component.js +49 -38
- package/dist/components/accordion/accordion.component.d.ts +1 -1
- package/dist/components/accordion/accordion.component.js +10 -10
- package/dist/components/alert/alert.component.d.ts +5 -1
- package/dist/components/alert/alert.component.js +57 -54
- package/dist/components/alert/alert.styles.js +51 -47
- package/dist/components/breadcrumb/breadcrumb-item.component.js +24 -25
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +16 -15
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +5 -2
- package/dist/components/breadcrumb/breadcrumb.component.js +51 -46
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.styles.js +13 -10
- package/dist/components/button/button.component.js +39 -39
- package/dist/components/button/button.styles.js +2 -1
- package/dist/components/card/card.component.d.ts +5 -0
- package/dist/components/card/card.component.js +46 -24
- package/dist/components/card/card.styles.js +31 -14
- package/dist/components/{date-picker/datepicker.calendar.component.d.ts → datepicker/datepicker-calendar.component.d.ts} +4 -1
- package/dist/components/{date-picker/datepicker.calendar.component.js → datepicker/datepicker-calendar.component.js} +7 -7
- package/dist/components/datepicker/datepicker-calendar.d.ts +8 -0
- package/dist/components/datepicker/datepicker-calendar.js +6 -0
- package/dist/components/{date-picker/datepicker.component.d.ts → datepicker/datepicker-popup.component.d.ts} +5 -20
- package/dist/components/{date-picker/datepicker.component.js → datepicker/datepicker-popup.component.js} +12 -12
- package/dist/components/datepicker/datepicker-popup.d.ts +8 -0
- package/dist/components/{date-picker/datepicker.helpers.d.ts → datepicker/datepicker-popup.helpers.d.ts} +3 -3
- package/dist/components/datepicker/datepicker-popup.helpers.js +83 -0
- package/dist/components/datepicker/datepicker-popup.js +6 -0
- package/dist/components/{date-picker/datepicker.styles.js → datepicker/datepicker-popup.styles.js} +3 -3
- package/dist/components/{date-picker-input/datepicker-input.component.d.ts → datepicker/datepicker.component.d.ts} +17 -12
- package/dist/components/{date-picker-input/datepicker-input.component.js → datepicker/datepicker.component.js} +110 -97
- package/dist/components/datepicker/datepicker.d.ts +8 -0
- package/dist/components/datepicker/datepicker.js +6 -0
- package/dist/components/dialog/dialog.component.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/drawer/drawer.d.ts +2 -2
- package/dist/components/header/header.d.ts +2 -2
- package/dist/components/heading/heading.component.d.ts +5 -1
- package/dist/components/heading/heading.component.js +54 -27
- package/dist/components/heading/heading.styles.js +34 -36
- package/dist/components/icon/icon.component.d.ts +4 -0
- package/dist/components/icon/icon.component.js +52 -43
- package/dist/components/icon/icon.styles.js +60 -60
- package/dist/components/input/input.component.js +26 -26
- package/dist/components/logo/logo.component.d.ts +4 -1
- package/dist/components/logo/logo.component.js +55 -51
- package/dist/components/logo/logo.styles.js +26 -16
- package/dist/components/menu/menu-item.d.ts +2 -2
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/nav/nav-item.component.d.ts +2 -2
- package/dist/components/nav/nav.d.ts +2 -2
- package/dist/components/popover/popover.component.js +1 -1
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +8 -6
- package/dist/components/segmented-button/segmented-button-item.d.ts +2 -2
- package/dist/components/segmented-button/segmented-button.d.ts +2 -2
- package/dist/components/select/select-option-group.d.ts +2 -2
- package/dist/components/select/select-option.component.d.ts +2 -2
- package/dist/components/select/select-option.component.js +9 -9
- package/dist/components/select/select.component.d.ts +2 -2
- package/dist/components/select/select.component.js +3 -4
- package/dist/components/select/select.controllers.js +11 -14
- package/dist/components/stepper/stepper-item.component.js +47 -47
- package/dist/components/stepper/stepper-item.d.ts +2 -2
- package/dist/components/stepper/stepper.d.ts +2 -2
- package/dist/components/switch/switch.d.ts +2 -2
- package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.component.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.d.ts +2 -2
- 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} +35 -36
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +6 -0
- package/dist/components/{tab-group/tab-group.styles.js → tabs/tabs.styles.js} +16 -16
- package/dist/components/tag/tag.component.d.ts +7 -2
- package/dist/components/tag/tag.component.js +69 -65
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.styles.js +63 -50
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/custom-elements.json +233 -126
- package/dist/index.d.ts +6 -5
- package/dist/index.js +96 -93
- package/dist/internal/base-classes/popover/popover.base.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/helpers/stateMap.d.ts +14 -0
- package/dist/internal/helpers/stateMap.js +68 -0
- package/dist/internal/helpers/watch.d.ts +1 -1
- package/dist/internal/helpers/watch.js +12 -12
- package/dist/styles/component.styles.js +37 -36
- package/dist/styles/{global-without-fonts.css → global-alt.css} +1 -1
- package/dist/styles/global.css +1 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +86 -44
- package/dist/types/vue/index.d.ts +86 -44
- package/dist/vscode.html-custom-data.json +103 -17
- package/dist/web-types.json +208 -55
- package/package.json +14 -20
- package/dist/components/accordion/accordion-item.test.d.ts +0 -1
- package/dist/components/accordion/accordion.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox.test.d.ts +0 -1
- package/dist/components/date-picker/datepicker.d.ts +0 -10
- package/dist/components/date-picker/datepicker.helpers.js +0 -76
- package/dist/components/date-picker/datepicker.js +0 -8
- package/dist/components/date-picker-input/datepicker-input.d.ts +0 -8
- package/dist/components/date-picker-input/datepicker-input.js +0 -6
- package/dist/components/input/input.test.d.ts +0 -1
- package/dist/components/radio/radio.test.d.ts +0 -1
- 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/internal/playwright/index.d.ts +0 -1
- /package/dist/components/{date-picker/datepicker.calendar.styles.d.ts → datepicker/datepicker-calendar.styles.d.ts} +0 -0
- /package/dist/components/{date-picker/datepicker.calendar.styles.js → datepicker/datepicker-calendar.styles.js} +0 -0
- /package/dist/components/{date-picker/datepicker.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.helpers.d.ts → datepicker/datepicker.helpers.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.helpers.js → datepicker/datepicker.helpers.js} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.styles.d.ts → datepicker/datepicker.styles.d.ts} +0 -0
- /package/dist/components/{date-picker-input/datepicker-input.styles.js → datepicker/datepicker.styles.js} +0 -0
- /package/dist/components/select/{select.stories.icons.d.ts → stories/select.stories.icons.d.ts} +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.component.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.d.ts +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
- /package/dist/components/{tab → tabs}/tab.component.js +0 -0
- /package/dist/components/{tab → tabs}/tab.js +0 -0
- /package/dist/components/{tab → tabs}/tab.styles.d.ts +0 -0
- /package/dist/components/{tab → tabs}/tab.styles.js +0 -0
- /package/dist/components/{tab-group/tab-group.styles.d.ts → tabs/tabs.styles.d.ts} +0 -0
package/dist/styles/global.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@charset "UTF-8";:host,:where(:root){--skf-color-green-lightest: #e5f3ecff;--skf-color-green-base: #048942ff;--skf-color-green-dark: #097c42ff;--skf-color-green-darker: #106b41ff;--skf-color-blue-lighest: #e7eefbff;--skf-color-blue-base: #4f84e0ff;--skf-color-blue-dark: #4978c8ff;--skf-color-blue-darker: #4167a8ff;--skf-color-yellow-lightest: #fff9e7ff;--skf-color-yellow-base: #ffca15ff;--skf-color-yellow-darker: #dfb31bff;--skf-color-yellow-darkest: #b49524ff;--skf-color-orange-lightest: #fff2e5ff;--skf-color-orange-base: #ff8004ff;--skf-color-orange-darker: #df740dff;--skf-color-orange-darkest: #b46518ff;--skf-color-red-lightest: #f9e5e5ff;--skf-color-red-base: #cc0000ff;--skf-color-red-darker: #b3080aff;--skf-color-red-darkest: #921217ff;--skf-color-neutral-lightest: #f6f6f6ff;--skf-color-neutral-lighter: #ebeceeff;--skf-color-neutral-light: #d5d8dcff;--skf-color-neutral-base: #c7cad0ff;--skf-color-neutral-dark: #aaafb8ff;--skf-color-neutral-darker: #808895ff;--skf-color-neutral-darkest: #676f7cff;--skf-color-neutral-black: #273342ff;--skf-color-neutral-white: #ffffffff;--skf-color-brand-base: #0f58d6ff;--skf-color-brand-lightest: #d9e4f8ff;--skf-color-brand-lighter: #c5d7f5ff;--skf-color-brand-dark: #084abdff;--skf-color-neutral-transparent: #ffffff00;--skf-color-neutral-opacity: #12111199;--skf-color-brand-darker: #0b3e96ff}:host,:where(:root){--skf-size-1: .0625rem;--skf-size-2: .125rem;--skf-size-4: .25rem;--skf-size-8: .5rem;--skf-size-12: .75rem;--skf-size-16: 1rem;--skf-size-20: 1.25rem;--skf-size-24: 1.5rem;--skf-size-32: 2rem;--skf-size-44: 2.75rem;--skf-size-48: 3rem;--skf-size-56: 3.5rem}:host,:where(:root){--skf-type-scale-10: .625rem;--skf-type-scale-12: .75rem;--skf-type-scale-14: .875rem;--skf-type-scale-16: 1rem;--skf-type-scale-18: 1.125rem;--skf-type-scale-20: 1.25rem;--skf-type-scale-22: 1.375rem;--skf-type-scale-24: 1.5rem;--skf-type-scale-28: 1.75rem;--skf-type-scale-32: 2rem;--skf-type-scale-36: 2.25rem;--skf-type-scale-40: 2.5rem;--skf-type-scale-46: 2.875rem;--skf-type-scale-50: 3.125rem;--skf-type-scale-56: 3.5rem;--skf-type-scale-64: 4rem;--skf-type-scale-72: 4.5rem;--skf-type-scale-90: 5.625rem;--skf-type-scale-124: 7.75rem}:host,:where(:root){--skf-bg-color-neutral-1: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-light) );--skf-bg-color-neutral-2: var(--skf-color-neutral-lighter);--skf-bg-color-neutral-3: var(--skf-color-neutral-light);--skf-bg-color-neutral-4: light-dark( var(--skf-color-neutral-base), var(--skf-color-neutral-base) );--skf-bg-color-neutral-5: var(--skf-color-neutral-dark);--skf-bg-color-neutral-6: var(--skf-color-neutral-darker);--skf-bg-color-neutral-7: light-dark( var(--skf-color-neutral-black), var(--skf-color-neutral-white) );--skf-bg-color-emphasised: light-dark(var(--skf-color-brand-base), var(--skf-color-brand-base))}:host,:where(:root){--skf-text-color-primary: light-dark( var(--skf-color-neutral-black), var(--skf-color-neutral-lightest) );--skf-text-color-secondary: var(--skf-color-neutral-darkest);--skf-text-color-tertiary: var(--skf-color-neutral-dark);--skf-text-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-text-color-emphasised: light-dark(var(--skf-color-brand-base), var(--skf-color-brand-base))}:host,:where(:root){--skf-icon-size-xs: var(--skf-size-16);--skf-icon-size-sm: var(--skf-size-20);--skf-icon-size-md: var(--skf-size-24);--skf-icon-size-lg: var(--skf-size-32)}:host,:where(:root){--skf-icon-color-primary: light-dark( var(--skf-color-neutral-black), var(--skf-color-neutral-black) );--skf-icon-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-icon-color-emphasised: light-dark(var(--skf-color-brand-base), var(--skf-color-brand-base));--skf-icon-color-secondary: var(--skf-color-neutral-darkest)}:host,:where(:root){--skf-border-color-emphasised: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-base) );--skf-border-color-primary: var(--skf-color-neutral-dark);--skf-border-color-secondary: light-dark( var(--skf-color-neutral-base), var(--skf-color-neutral-base) );--skf-border-color-tertiary: var(--skf-color-neutral-light);--skf-border-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) )}:host,:where(:root){--skf-border-width-md: var(--skf-size-2);--skf-border-width-lg: var(--skf-size-4);--skf-border-width-sm: var(--skf-size-1)}:host,:where(:root){--skf-border-radius-md: var(--skf-size-8);--skf-border-radius-lg: var(--skf-size-16);--skf-border-radius-sm: var(--skf-size-2)}:host,:where(:root){--skf-interactive-bg-color-primary: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-lightest) );--skf-interactive-bg-color-primary-hover: var(--skf-color-brand-dark);--skf-interactive-bg-color-primary-active: var(--skf-color-brand-darker);--skf-interactive-bg-color-secondary: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-interactive-bg-color-secondary-hover: var(--skf-color-brand-lightest);--skf-interactive-bg-color-secondary-active: var(--skf-color-brand-lighter);--skf-interactive-bg-color-tertiary: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-lightest) );--skf-interactive-bg-color-destructive: light-dark( var(--skf-color-red-base), var(--skf-color-red-base) );--skf-interactive-bg-color-destructive-hover: var(--skf-color-red-darker);--skf-interactive-bg-color-destructive-active: var(--skf-color-red-darkest);--skf-interactive-bg-color-disabled: var(--skf-color-neutral-lighter);--skf-interactive-bg-color-tertiary-hover: var(--skf-color-neutral-lighter);--skf-interactive-bg-color-tertiary-active: light-dark( var(--skf-color-neutral-base), var(--skf-color-neutral-lightest) );--skf-interactive-text-color-disabled: var(--skf-color-neutral-darker);--skf-interactive-text-color-primary: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-base) );--skf-interactive-text-color-primary-hover: var(--skf-color-brand-dark);--skf-interactive-text-color-primary-active: var(--skf-color-brand-dark);--skf-interactive-text-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-interactive-text-color-inverse-hover: var(--skf-color-neutral-lightest);--skf-interactive-text-color-inverse-active: var(--skf-color-neutral-lightest);--skf-interactive-border-color-focus: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-base) );--skf-interactive-border-color-disabled: var(--skf-color-neutral-darker);--skf-interactive-border-color-primary-hover: var(--skf-color-neutral-darkest);--skf-interactive-border-color-primary: var(--skf-color-neutral-dark);--skf-interactive-border-color-primary-active: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-base) );--skf-interactive-icon-color-primary: light-dark( var(--skf-color-neutral-black), var(--skf-color-neutral-black) );--skf-interactive-icon-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-interactive-icon-color-disabled: var(--skf-color-neutral-darker);--skf-interactive-icon-color-primary-hover: var(--skf-color-neutral-darkest);--skf-interactive-icon-color-inverse-hover: var(--skf-color-neutral-lightest)}:host,:where(:root){--skf-severity-bg-color-success: var(--skf-color-green-lightest);--skf-severity-bg-color-info: light-dark( var(--skf-color-blue-lighest), var(--skf-color-blue-lighest) );--skf-severity-bg-color-warning: var(--skf-color-orange-lightest);--skf-severity-bg-color-alert: var(--skf-color-yellow-lightest);--skf-severity-bg-color-error: var(--skf-color-red-lightest)}:host,:where(:root){--skf-severity-fg-color-success: light-dark( var(--skf-color-green-base), var(--skf-color-green-base) );--skf-severity-fg-color-info: light-dark(var(--skf-color-blue-base), var(--skf-color-blue-base));--skf-severity-fg-color-warning: light-dark( var(--skf-color-orange-base), var(--skf-color-orange-base) );--skf-severity-fg-color-error: light-dark(var(--skf-color-red-base), var(--skf-color-red-base));--skf-severity-fg-color-alert: light-dark( var(--skf-color-yellow-base), var(--skf-color-yellow-base) )}:host,:where(:root){--skf-spacing-25: var(--skf-size-4);--skf-spacing-50: var(--skf-size-8);--skf-spacing-75: var(--skf-size-12);--skf-spacing-100: var(--skf-size-16);--skf-spacing-125: var(--skf-size-20);--skf-spacing-150: var(--skf-size-24);--skf-spacing-200: var(--skf-size-32);--skf-spacing-250: var(--skf-size-44);--skf-spacing-300: var(--skf-size-48);--skf-spacing-400: var(--skf-size-56)}:host,:where(:root){--skf-font-size-25: var(--skf-type-scale-10);--skf-font-size-50: var(--skf-type-scale-12);--skf-font-size-75: var(--skf-type-scale-14);--skf-font-size-100: var(--skf-type-scale-16);--skf-font-size-200: var(--skf-type-scale-18);--skf-font-size-300: var(--skf-type-scale-20);--skf-font-size-400: var(--skf-type-scale-22);--skf-font-size-500: var(--skf-type-scale-24);--skf-font-size-600: var(--skf-type-scale-28);--skf-font-size-700: var(--skf-type-scale-32);--skf-font-size-800: var(--skf-type-scale-36);--skf-font-size-900: var(--skf-type-scale-40);--skf-font-size-1000: var(--skf-type-scale-46);--skf-font-size-1100: var(--skf-type-scale-50);--skf-font-size-1200: var(--skf-type-scale-56);--skf-font-size-1300: var(--skf-type-scale-64);--skf-font-size-1400: var(--skf-type-scale-72);--skf-font-size-1500: var(--skf-type-scale-90);--skf-font-size-1600: var(--skf-type-scale-124)}:host,:where(:root){--skf-font-weight-light: 100;--skf-font-weight-regular: 400;--skf-font-weight-medium: 500;--skf-font-weight-bold: 700}:host,:where(:root){--skf-font-family-sans: SKFSans}:host,:where(:root){--skf-line-height-25: var(--skf-type-scale-10);--skf-line-height-50: var(--skf-type-scale-12);--skf-line-height-75: var(--skf-type-scale-14);--skf-line-height-100: var(--skf-type-scale-16);--skf-line-height-200: var(--skf-type-scale-18);--skf-line-height-300: var(--skf-type-scale-20);--skf-line-height-400: var(--skf-type-scale-22);--skf-line-height-500: var(--skf-type-scale-24);--skf-line-height-600: var(--skf-type-scale-28);--skf-line-height-700: var(--skf-type-scale-32);--skf-line-height-800: var(--skf-type-scale-36);--skf-line-height-900: var(--skf-type-scale-40);--skf-line-height-1000: var(--skf-type-scale-46);--skf-line-height-1100: var(--skf-type-scale-50);--skf-line-height-1200: var(--skf-type-scale-56);--skf-line-height-1300: var(--skf-type-scale-64);--skf-line-height-1400: var(--skf-type-scale-72);--skf-line-height-1500: var(--skf-type-scale-90);--skf-line-height-size-1600: var(--skf-type-scale-124)}:host,:where(:root){--skf-motion-duration-fast: 200;--skf-motion-duration-normal: 300;--skf-motion-duration-slow: 400}:host,:where(:root){--skf-motion-easing-ease-in: ease-in;--skf-motion-easing-ease-out: ease-out}:host,:where(:root){--skf-shadow-xl: 0 10px 15px -3px #0000001a;--skf-shadow-md: 0 1px 3px 0 #0000001a;--skf-shadow-sm: 0 1px 2px 0 #0000000d;--skf-shadow-lg: 0 4px 6px -1px #0000001a}:host,:where(:root){--skf-logo-primary: light-dark(var(--skf-color-brand-base), var(--skf-color-brand-base));--skf-logo-secondary: light-dark(var(--skf-color-neutral-black), var(--skf-color-neutral-black));--skf-logo-inverse: light-dark(var(--skf-color-neutral-white), var(--skf-color-neutral-white))}@font-face{font-family:SKFSans;src:url(https://fonts.skf.com/SKFSans-Regular.woff)}@font-face{font-family:SKFSans;font-style:italic;src:url(https://fonts.skf.com/SKFSans-Italic.woff)}@font-face{font-family:SKFSans;font-weight:100;src:url(https://fonts.skf.com/SKFSans-Light.woff)}@font-face{font-family:SKFSans;font-style:italic;font-weight:100;src:url(https://fonts.skf.com/SKFSans-LightItalic.woff)}@font-face{font-family:SKFSans;font-weight:500;src:url(https://fonts.skf.com/SKFSans-Medium.woff)}@font-face{font-family:SKFSans;font-style:italic;font-weight:500;src:url(https://fonts.skf.com/SKFSans-MediumItalic.woff)}@font-face{font-family:SKFSans;font-weight:700;src:url(https://fonts.skf.com/SKFSans-Bold.woff)}@font-face{font-family:SKFSans;font-style:italic;font-weight:700;src:url(https://fonts.skf.com/SKFSans-BoldItalic.woff)}body{color:var(--skf-text-color-primary);font:var(--skf-font-size-100) / var(--skf-line-height-300) var(--skf-font-family-sans);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body:has(skf-dialog[open]){overflow:hidden}:not(:defined){visibility:hidden}
|
1
|
+
@charset "UTF-8";@font-face{font-family:SKFSans;src:url(https://fonts.skf.com/SKFSans-Regular.woff)}@font-face{font-family:SKFSans;font-style:italic;src:url(https://fonts.skf.com/SKFSans-Italic.woff)}@font-face{font-family:SKFSans;font-weight:100;src:url(https://fonts.skf.com/SKFSans-Light.woff)}@font-face{font-family:SKFSans;font-style:italic;font-weight:100;src:url(https://fonts.skf.com/SKFSans-LightItalic.woff)}@font-face{font-family:SKFSans;font-weight:500;src:url(https://fonts.skf.com/SKFSans-Medium.woff)}@font-face{font-family:SKFSans;font-style:italic;font-weight:500;src:url(https://fonts.skf.com/SKFSans-MediumItalic.woff)}@font-face{font-family:SKFSans;font-weight:700;src:url(https://fonts.skf.com/SKFSans-Bold.woff)}@font-face{font-family:SKFSans;font-style:italic;font-weight:700;src:url(https://fonts.skf.com/SKFSans-BoldItalic.woff)}:host,:where(:root){--skf-color-green-lightest: #e5f3ecff;--skf-color-green-base: #048942ff;--skf-color-green-dark: #097c42ff;--skf-color-green-darker: #106b41ff;--skf-color-blue-lighest: #e7eefbff;--skf-color-blue-base: #4f84e0ff;--skf-color-blue-dark: #4978c8ff;--skf-color-blue-darker: #4167a8ff;--skf-color-yellow-lightest: #fff9e7ff;--skf-color-yellow-base: #ffca15ff;--skf-color-yellow-darker: #dfb31bff;--skf-color-yellow-darkest: #b49524ff;--skf-color-orange-lightest: #fff2e5ff;--skf-color-orange-base: #ff8004ff;--skf-color-orange-darker: #df740dff;--skf-color-orange-darkest: #b46518ff;--skf-color-red-lightest: #f9e5e5ff;--skf-color-red-base: #cc0000ff;--skf-color-red-darker: #b3080aff;--skf-color-red-darkest: #921217ff;--skf-color-neutral-lightest: #f6f6f6ff;--skf-color-neutral-lighter: #ebeceeff;--skf-color-neutral-light: #d5d8dcff;--skf-color-neutral-base: #c7cad0ff;--skf-color-neutral-dark: #aaafb8ff;--skf-color-neutral-darker: #808895ff;--skf-color-neutral-darkest: #676f7cff;--skf-color-neutral-black: #273342ff;--skf-color-neutral-white: #ffffffff;--skf-color-brand-base: #0f58d6ff;--skf-color-brand-lightest: #d9e4f8ff;--skf-color-brand-lighter: #c5d7f5ff;--skf-color-brand-dark: #084abdff;--skf-color-neutral-transparent: #ffffff00;--skf-color-neutral-opacity: #12111199;--skf-color-brand-darker: #0b3e96ff}:host,:where(:root){--skf-size-1: .0625rem;--skf-size-2: .125rem;--skf-size-4: .25rem;--skf-size-8: .5rem;--skf-size-12: .75rem;--skf-size-16: 1rem;--skf-size-20: 1.25rem;--skf-size-24: 1.5rem;--skf-size-32: 2rem;--skf-size-44: 2.75rem;--skf-size-48: 3rem;--skf-size-56: 3.5rem}:host,:where(:root){--skf-type-scale-10: .625rem;--skf-type-scale-12: .75rem;--skf-type-scale-14: .875rem;--skf-type-scale-16: 1rem;--skf-type-scale-18: 1.125rem;--skf-type-scale-20: 1.25rem;--skf-type-scale-22: 1.375rem;--skf-type-scale-24: 1.5rem;--skf-type-scale-28: 1.75rem;--skf-type-scale-32: 2rem;--skf-type-scale-36: 2.25rem;--skf-type-scale-40: 2.5rem;--skf-type-scale-46: 2.875rem;--skf-type-scale-50: 3.125rem;--skf-type-scale-56: 3.5rem;--skf-type-scale-64: 4rem;--skf-type-scale-72: 4.5rem;--skf-type-scale-90: 5.625rem;--skf-type-scale-124: 7.75rem}:host,:where(:root){--skf-bg-color-neutral-1: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-light) );--skf-bg-color-neutral-2: var(--skf-color-neutral-lighter);--skf-bg-color-neutral-3: var(--skf-color-neutral-light);--skf-bg-color-neutral-4: light-dark( var(--skf-color-neutral-base), var(--skf-color-neutral-base) );--skf-bg-color-neutral-5: var(--skf-color-neutral-dark);--skf-bg-color-neutral-6: var(--skf-color-neutral-darker);--skf-bg-color-neutral-7: light-dark( var(--skf-color-neutral-black), var(--skf-color-neutral-white) );--skf-bg-color-emphasised: light-dark(var(--skf-color-brand-base), var(--skf-color-brand-base))}:host,:where(:root){--skf-text-color-primary: light-dark( var(--skf-color-neutral-black), var(--skf-color-neutral-lightest) );--skf-text-color-secondary: var(--skf-color-neutral-darkest);--skf-text-color-tertiary: var(--skf-color-neutral-dark);--skf-text-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-text-color-emphasised: light-dark(var(--skf-color-brand-base), var(--skf-color-brand-base))}:host,:where(:root){--skf-icon-size-xs: var(--skf-size-16);--skf-icon-size-sm: var(--skf-size-20);--skf-icon-size-md: var(--skf-size-24);--skf-icon-size-lg: var(--skf-size-32)}:host,:where(:root){--skf-icon-color-primary: light-dark( var(--skf-color-neutral-black), var(--skf-color-neutral-black) );--skf-icon-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-icon-color-emphasised: light-dark(var(--skf-color-brand-base), var(--skf-color-brand-base));--skf-icon-color-secondary: var(--skf-color-neutral-darkest)}:host,:where(:root){--skf-border-color-emphasised: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-base) );--skf-border-color-primary: var(--skf-color-neutral-dark);--skf-border-color-secondary: light-dark( var(--skf-color-neutral-base), var(--skf-color-neutral-base) );--skf-border-color-tertiary: var(--skf-color-neutral-light);--skf-border-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) )}:host,:where(:root){--skf-border-width-md: var(--skf-size-2);--skf-border-width-lg: var(--skf-size-4);--skf-border-width-sm: var(--skf-size-1)}:host,:where(:root){--skf-border-radius-md: var(--skf-size-8);--skf-border-radius-lg: var(--skf-size-16);--skf-border-radius-sm: var(--skf-size-2)}:host,:where(:root){--skf-interactive-bg-color-primary: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-lightest) );--skf-interactive-bg-color-primary-hover: var(--skf-color-brand-dark);--skf-interactive-bg-color-primary-active: var(--skf-color-brand-darker);--skf-interactive-bg-color-secondary: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-interactive-bg-color-secondary-hover: var(--skf-color-brand-lightest);--skf-interactive-bg-color-secondary-active: var(--skf-color-brand-lighter);--skf-interactive-bg-color-tertiary: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-lightest) );--skf-interactive-bg-color-destructive: light-dark( var(--skf-color-red-base), var(--skf-color-red-base) );--skf-interactive-bg-color-destructive-hover: var(--skf-color-red-darker);--skf-interactive-bg-color-destructive-active: var(--skf-color-red-darkest);--skf-interactive-bg-color-disabled: var(--skf-color-neutral-lighter);--skf-interactive-bg-color-tertiary-hover: var(--skf-color-neutral-lighter);--skf-interactive-bg-color-tertiary-active: light-dark( var(--skf-color-neutral-base), var(--skf-color-neutral-lightest) );--skf-interactive-text-color-disabled: var(--skf-color-neutral-darker);--skf-interactive-text-color-primary: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-base) );--skf-interactive-text-color-primary-hover: var(--skf-color-brand-dark);--skf-interactive-text-color-primary-active: var(--skf-color-brand-dark);--skf-interactive-text-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-interactive-text-color-inverse-hover: var(--skf-color-neutral-lightest);--skf-interactive-text-color-inverse-active: var(--skf-color-neutral-lightest);--skf-interactive-border-color-focus: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-base) );--skf-interactive-border-color-disabled: var(--skf-color-neutral-darker);--skf-interactive-border-color-primary-hover: var(--skf-color-neutral-darkest);--skf-interactive-border-color-primary: var(--skf-color-neutral-dark);--skf-interactive-border-color-primary-active: light-dark( var(--skf-color-brand-base), var(--skf-color-brand-base) );--skf-interactive-icon-color-primary: light-dark( var(--skf-color-neutral-black), var(--skf-color-neutral-black) );--skf-interactive-icon-color-inverse: light-dark( var(--skf-color-neutral-white), var(--skf-color-neutral-white) );--skf-interactive-icon-color-disabled: var(--skf-color-neutral-darker);--skf-interactive-icon-color-primary-hover: var(--skf-color-neutral-darkest);--skf-interactive-icon-color-inverse-hover: var(--skf-color-neutral-lightest)}:host,:where(:root){--skf-severity-bg-color-success: var(--skf-color-green-lightest);--skf-severity-bg-color-info: light-dark( var(--skf-color-blue-lighest), var(--skf-color-blue-lighest) );--skf-severity-bg-color-warning: var(--skf-color-orange-lightest);--skf-severity-bg-color-alert: var(--skf-color-yellow-lightest);--skf-severity-bg-color-error: var(--skf-color-red-lightest)}:host,:where(:root){--skf-severity-fg-color-success: light-dark( var(--skf-color-green-base), var(--skf-color-green-base) );--skf-severity-fg-color-info: light-dark(var(--skf-color-blue-base), var(--skf-color-blue-base));--skf-severity-fg-color-warning: light-dark( var(--skf-color-orange-base), var(--skf-color-orange-base) );--skf-severity-fg-color-error: light-dark(var(--skf-color-red-base), var(--skf-color-red-base));--skf-severity-fg-color-alert: light-dark( var(--skf-color-yellow-base), var(--skf-color-yellow-base) )}:host,:where(:root){--skf-spacing-25: var(--skf-size-4);--skf-spacing-50: var(--skf-size-8);--skf-spacing-75: var(--skf-size-12);--skf-spacing-100: var(--skf-size-16);--skf-spacing-125: var(--skf-size-20);--skf-spacing-150: var(--skf-size-24);--skf-spacing-200: var(--skf-size-32);--skf-spacing-250: var(--skf-size-44);--skf-spacing-300: var(--skf-size-48);--skf-spacing-400: var(--skf-size-56)}:host,:where(:root){--skf-font-size-25: var(--skf-type-scale-10);--skf-font-size-50: var(--skf-type-scale-12);--skf-font-size-75: var(--skf-type-scale-14);--skf-font-size-100: var(--skf-type-scale-16);--skf-font-size-200: var(--skf-type-scale-18);--skf-font-size-300: var(--skf-type-scale-20);--skf-font-size-400: var(--skf-type-scale-22);--skf-font-size-500: var(--skf-type-scale-24);--skf-font-size-600: var(--skf-type-scale-28);--skf-font-size-700: var(--skf-type-scale-32);--skf-font-size-800: var(--skf-type-scale-36);--skf-font-size-900: var(--skf-type-scale-40);--skf-font-size-1000: var(--skf-type-scale-46);--skf-font-size-1100: var(--skf-type-scale-50);--skf-font-size-1200: var(--skf-type-scale-56);--skf-font-size-1300: var(--skf-type-scale-64);--skf-font-size-1400: var(--skf-type-scale-72);--skf-font-size-1500: var(--skf-type-scale-90);--skf-font-size-1600: var(--skf-type-scale-124)}:host,:where(:root){--skf-font-weight-light: 100;--skf-font-weight-regular: 400;--skf-font-weight-medium: 500;--skf-font-weight-bold: 700}:host,:where(:root){--skf-font-family-sans: SKFSans}:host,:where(:root){--skf-line-height-25: var(--skf-type-scale-10);--skf-line-height-50: var(--skf-type-scale-12);--skf-line-height-75: var(--skf-type-scale-14);--skf-line-height-100: var(--skf-type-scale-16);--skf-line-height-200: var(--skf-type-scale-18);--skf-line-height-300: var(--skf-type-scale-20);--skf-line-height-400: var(--skf-type-scale-22);--skf-line-height-500: var(--skf-type-scale-24);--skf-line-height-600: var(--skf-type-scale-28);--skf-line-height-700: var(--skf-type-scale-32);--skf-line-height-800: var(--skf-type-scale-36);--skf-line-height-900: var(--skf-type-scale-40);--skf-line-height-1000: var(--skf-type-scale-46);--skf-line-height-1100: var(--skf-type-scale-50);--skf-line-height-1200: var(--skf-type-scale-56);--skf-line-height-1300: var(--skf-type-scale-64);--skf-line-height-1400: var(--skf-type-scale-72);--skf-line-height-1500: var(--skf-type-scale-90);--skf-line-height-size-1600: var(--skf-type-scale-124)}:host,:where(:root){--skf-motion-duration-fast: 200;--skf-motion-duration-normal: 300;--skf-motion-duration-slow: 400}:host,:where(:root){--skf-motion-easing-ease-in: ease-in;--skf-motion-easing-ease-out: ease-out}:host,:where(:root){--skf-shadow-xl: 0 10px 15px -3px #0000001a;--skf-shadow-md: 0 1px 3px 0 #0000001a;--skf-shadow-sm: 0 1px 2px 0 #0000000d;--skf-shadow-lg: 0 4px 6px -1px #0000001a}:host,:where(:root){--skf-logo-primary: light-dark(var(--skf-color-brand-base), var(--skf-color-brand-base));--skf-logo-secondary: light-dark(var(--skf-color-neutral-black), var(--skf-color-neutral-black));--skf-logo-inverse: light-dark(var(--skf-color-neutral-white), var(--skf-color-neutral-white))}body{color:var(--skf-text-color-primary);font:var(--skf-font-size-100) / var(--skf-line-height-300) var(--skf-font-family-sans);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body:has(skf-dialog[open]){overflow:hidden}
|
@@ -1,14 +1,15 @@
|
|
1
1
|
import type { SkfIcon } from "../../components/icon/icon.component.js";
|
2
2
|
import type { SkfAccordionItem, CustomEvent } from "../../components/accordion-item/accordion-item.component.js";
|
3
3
|
import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
|
4
|
-
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
4
|
+
import type { SkfAlert, CustomEvent } from "../../components/alert/alert.component.js";
|
5
5
|
import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
|
6
6
|
import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
|
7
7
|
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
8
8
|
import type { SkfButton, CustomEvent } from "../../components/button/button.component.js";
|
9
9
|
import type { SkfCard } from "../../components/card/card.component.js";
|
10
10
|
import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
|
11
|
-
import type {
|
11
|
+
import type { SkfDatepickerCalendar } from "../../components/datepicker-calendar/datepicker-calendar.component.js";
|
12
|
+
import type { SkfDatepicker } from "../../components/datepicker/datepicker.component.js";
|
12
13
|
import type { SkfHeading } from "../../components/heading/heading.component.js";
|
13
14
|
import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
|
14
15
|
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
@@ -37,7 +38,7 @@ import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.
|
|
37
38
|
import type { SkfStepper, CustomEvent } from "../../components/stepper/stepper.component.js";
|
38
39
|
import type { SkfSwitch } from "../../components/switch/switch.component.js";
|
39
40
|
import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
|
40
|
-
import type {
|
41
|
+
import type { SkfTabs } from "../../components/tabs/tabs.component.js";
|
41
42
|
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
42
43
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
43
44
|
import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
|
@@ -161,7 +162,7 @@ export type SkfAlertProps = {
|
|
161
162
|
severity?: SkfAlert["severity"];
|
162
163
|
|
163
164
|
/** Fires when the close button is clicked */
|
164
|
-
"onskf-alert-close"?: (e: CustomEvent<
|
165
|
+
"onskf-alert-close"?: (e: CustomEvent<CustomEvent>) => void;
|
165
166
|
};
|
166
167
|
|
167
168
|
export type SkfBreadcrumbItemProps = {
|
@@ -174,8 +175,8 @@ export type SkfBreadcrumbItemProps = {
|
|
174
175
|
export type SkfBreadcrumbProps = {
|
175
176
|
/** aria-label for the breadcrumb control */
|
176
177
|
label?: SkfBreadcrumb["label"];
|
177
|
-
/**
|
178
|
-
|
178
|
+
/** If true, renders a smaller version */
|
179
|
+
small?: SkfBreadcrumb["small"];
|
179
180
|
|
180
181
|
/** Fired when the item is clicked */
|
181
182
|
onclick?: (e: CustomEvent<never>) => void;
|
@@ -257,29 +258,70 @@ export type SkfCheckboxProps = {
|
|
257
258
|
onchange?: (e: CustomEvent<Event>) => void;
|
258
259
|
};
|
259
260
|
|
260
|
-
export type
|
261
|
-
/** The locale to use for formatting the date */
|
262
|
-
locale?: SkfDatePicker["locale"];
|
263
|
-
/** The date to display in the date picker */
|
264
|
-
date?: SkfDatePicker["date"];
|
261
|
+
export type SkfDatepickerCalendarProps = {
|
265
262
|
/** */
|
266
|
-
|
263
|
+
eventid?: SkfDatepickerCalendar["eventid"];
|
264
|
+
/** */
|
265
|
+
firstDayOfWeek?: SkfDatepickerCalendar["firstDayOfWeek"];
|
267
266
|
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
268
|
-
"invalid-dates"?:
|
269
|
-
/**
|
270
|
-
|
267
|
+
"invalid-dates"?: SkfDatepickerCalendar["invalidDates"];
|
268
|
+
/** */
|
269
|
+
locale?: SkfDatepickerCalendar["locale"];
|
270
|
+
/** */
|
271
|
+
range?: SkfDatepickerCalendar["range"];
|
271
272
|
/** Earliest selectable date. (yyyy-mm-dd format) */
|
272
|
-
"selectable-from"?:
|
273
|
+
"selectable-from"?: SkfDatepickerCalendar["selectableFrom"];
|
273
274
|
/** Latest selectable date. (yyyy-mm-dd format) */
|
274
|
-
"selectable-to"?:
|
275
|
+
"selectable-to"?: SkfDatepickerCalendar["selectableTo"];
|
276
|
+
/** */
|
277
|
+
"selected-date"?: SkfDatepickerCalendar["selectedDate"];
|
278
|
+
/** */
|
279
|
+
selectedDateRange?: SkfDatepickerCalendar["selectedDateRange"];
|
275
280
|
/** */
|
276
|
-
|
281
|
+
_listenToKeyboard?: SkfDatepickerCalendar["_listenToKeyboard"];
|
277
282
|
/** */
|
278
|
-
|
279
|
-
/**
|
280
|
-
"
|
281
|
-
|
282
|
-
|
283
|
+
_handleKeyDown?: SkfDatepickerCalendar["_handleKeyDown"];
|
284
|
+
/** */
|
285
|
+
dateSelectable?: SkfDatepickerCalendar["dateSelectable"];
|
286
|
+
};
|
287
|
+
|
288
|
+
export type SkfDatepickerProps = {
|
289
|
+
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
290
|
+
"custom-invalid"?: SkfDatepicker["customInvalid"];
|
291
|
+
/** */
|
292
|
+
id?: SkfDatepicker["id"];
|
293
|
+
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
294
|
+
label?: SkfDatepicker["label"];
|
295
|
+
/** If true, hides the label visually */
|
296
|
+
"hide-label"?: SkfDatepicker["hideLabel"];
|
297
|
+
/** If defined, displays informational text below the field */
|
298
|
+
hint?: SkfDatepicker["hint"];
|
299
|
+
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
300
|
+
"invalid-dates"?: SkfDatepicker["invalidDates"];
|
301
|
+
/** If defined, adds name to the input-element */
|
302
|
+
name?: SkfDatepicker["name"];
|
303
|
+
/** */
|
304
|
+
placeholder?: SkfDatepicker["placeholder"];
|
305
|
+
/** */
|
306
|
+
range?: SkfDatepicker["range"];
|
307
|
+
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
308
|
+
readonly?: SkfDatepicker["readonly"];
|
309
|
+
/** If defined, renders an alternative A11y text for the asterisk */
|
310
|
+
"required-label"?: SkfDatepicker["requiredLabel"];
|
311
|
+
/** Earliest selectable date. (yyyy-mm-dd format) */
|
312
|
+
"selectable-from"?: SkfDatepicker["selectableFrom"];
|
313
|
+
/** Latest selectable date. (yyyy-mm-dd format) */
|
314
|
+
"selectable-to"?: SkfDatepicker["selectableTo"];
|
315
|
+
/** If defined, displays provided severity state */
|
316
|
+
severity?: SkfDatepicker["severity"];
|
317
|
+
/** Size of the input */
|
318
|
+
size?: SkfDatepicker["size"];
|
319
|
+
/** Sets validation start */
|
320
|
+
"validate-on"?: SkfDatepicker["validateOn"];
|
321
|
+
/** The current value of the input field */
|
322
|
+
value?: SkfDatepicker["value"];
|
323
|
+
/** */
|
324
|
+
focusTimeoutId?: SkfDatepicker["focusTimeoutId"];
|
283
325
|
};
|
284
326
|
|
285
327
|
export type SkfHeadingProps = {
|
@@ -735,17 +777,17 @@ export type SkfTabPanelProps = {
|
|
735
777
|
role?: SkfTabPanel["role"];
|
736
778
|
};
|
737
779
|
|
738
|
-
export type
|
780
|
+
export type SkfTabsProps = {
|
739
781
|
/** Sets the default selected tab */
|
740
|
-
"default-selected"?:
|
782
|
+
"default-selected"?: SkfTabs["defaultSelected"];
|
741
783
|
/** If true, removes border */
|
742
|
-
"no-border"?:
|
784
|
+
"no-border"?: SkfTabs["noBorder"];
|
743
785
|
/** If true, removes padding */
|
744
|
-
"no-padding"?:
|
786
|
+
"no-padding"?: SkfTabs["noPadding"];
|
745
787
|
/** If true, component fills the parent element height */
|
746
|
-
stretch?:
|
788
|
+
stretch?: SkfTabs["stretch"];
|
747
789
|
/** Sets the appearance of the tabs */
|
748
|
-
variant?:
|
790
|
+
variant?: SkfTabs["variant"];
|
749
791
|
};
|
750
792
|
|
751
793
|
export type SkfTabProps = {
|
@@ -962,6 +1004,9 @@ export type CustomElements = {
|
|
962
1004
|
*
|
963
1005
|
* ### **Slots:**
|
964
1006
|
* - _default_ - The card's main content
|
1007
|
+
*
|
1008
|
+
* ### **CSS Properties:**
|
1009
|
+
* - **--mod-card-bg-color** - Ability to set a custom background color _(default: undefined)_
|
965
1010
|
*/
|
966
1011
|
"skf-card": Partial<SkfCardProps & BaseProps & BaseEvents>;
|
967
1012
|
|
@@ -979,24 +1024,21 @@ export type CustomElements = {
|
|
979
1024
|
"skf-checkbox": Partial<SkfCheckboxProps & BaseProps & BaseEvents>;
|
980
1025
|
|
981
1026
|
/**
|
982
|
-
* A date picker component that allows users to select a date or a range of dates.
|
983
|
-
* ---
|
984
1027
|
*
|
1028
|
+
* ---
|
985
1029
|
*
|
986
|
-
|
987
|
-
|
988
|
-
|
1030
|
+
*/
|
1031
|
+
"skf-datepicker-calendar": Partial<SkfDatepickerCalendarProps & BaseProps & BaseEvents>;
|
1032
|
+
|
1033
|
+
/**
|
989
1034
|
*
|
990
|
-
*
|
991
|
-
* - **gotoDate(date: _Date | string_)** - Navigates to the given date.
|
1035
|
+
* ---
|
992
1036
|
*
|
993
|
-
* ### **Slots:**
|
994
|
-
* - _default_ - Default hint content placed inside the date picker
|
995
1037
|
*
|
996
|
-
* ### **
|
997
|
-
* -
|
1038
|
+
* ### **Methods:**
|
1039
|
+
* - **clear()** - Clears the input field
|
998
1040
|
*/
|
999
|
-
"skf-datepicker": Partial<
|
1041
|
+
"skf-datepicker": Partial<SkfDatepickerProps & BaseProps & BaseEvents>;
|
1000
1042
|
|
1001
1043
|
/**
|
1002
1044
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
@@ -1065,7 +1107,7 @@ export type CustomElements = {
|
|
1065
1107
|
*
|
1066
1108
|
*
|
1067
1109
|
* ### **CSS Properties:**
|
1068
|
-
* - **--
|
1110
|
+
* - **--mod-logo-height** - The height of the logo _(default: undefined)_
|
1069
1111
|
*/
|
1070
1112
|
"skf-logo": Partial<SkfLogoProps & BaseProps & BaseEvents>;
|
1071
1113
|
|
@@ -1316,7 +1358,7 @@ export type CustomElements = {
|
|
1316
1358
|
"skf-tab-panel": Partial<SkfTabPanelProps & BaseProps & BaseEvents>;
|
1317
1359
|
|
1318
1360
|
/**
|
1319
|
-
* The `<skf-
|
1361
|
+
* The `<skf-tabs>` is a component that displays a list of actions or options
|
1320
1362
|
* ---
|
1321
1363
|
*
|
1322
1364
|
*
|
@@ -1324,7 +1366,7 @@ export type CustomElements = {
|
|
1324
1366
|
* - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
|
1325
1367
|
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
1326
1368
|
*/
|
1327
|
-
"skf-
|
1369
|
+
"skf-tabs": Partial<SkfTabsProps & BaseProps & BaseEvents>;
|
1328
1370
|
|
1329
1371
|
/**
|
1330
1372
|
* The `<skf-tab>` is a component that displays a list of actions or options
|
@@ -3,14 +3,15 @@ import type { DefineComponent } from "vue";
|
|
3
3
|
import type { SkfIcon } from "../../components/icon/icon.component.js";
|
4
4
|
import type { SkfAccordionItem, CustomEvent } from "../../components/accordion-item/accordion-item.component.js";
|
5
5
|
import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
|
6
|
-
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
6
|
+
import type { SkfAlert, CustomEvent } from "../../components/alert/alert.component.js";
|
7
7
|
import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
|
8
8
|
import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
|
9
9
|
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
10
10
|
import type { SkfButton, CustomEvent } from "../../components/button/button.component.js";
|
11
11
|
import type { SkfCard } from "../../components/card/card.component.js";
|
12
12
|
import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
|
13
|
-
import type {
|
13
|
+
import type { SkfDatepickerCalendar } from "../../components/datepicker-calendar/datepicker-calendar.component.js";
|
14
|
+
import type { SkfDatepicker } from "../../components/datepicker/datepicker.component.js";
|
14
15
|
import type { SkfHeading } from "../../components/heading/heading.component.js";
|
15
16
|
import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
|
16
17
|
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
@@ -39,7 +40,7 @@ import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.
|
|
39
40
|
import type { SkfStepper, CustomEvent } from "../../components/stepper/stepper.component.js";
|
40
41
|
import type { SkfSwitch } from "../../components/switch/switch.component.js";
|
41
42
|
import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
|
42
|
-
import type {
|
43
|
+
import type { SkfTabs } from "../../components/tabs/tabs.component.js";
|
43
44
|
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
44
45
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
45
46
|
import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
|
@@ -101,7 +102,7 @@ type SkfAlertProps = {
|
|
101
102
|
severity?: SkfAlert["severity"];
|
102
103
|
|
103
104
|
/** Fires when the close button is clicked */
|
104
|
-
"onskf-alert-close"?: (e: CustomEvent<
|
105
|
+
"onskf-alert-close"?: (e: CustomEvent<CustomEvent>) => void;
|
105
106
|
};
|
106
107
|
|
107
108
|
type SkfBreadcrumbItemProps = {
|
@@ -114,8 +115,8 @@ type SkfBreadcrumbItemProps = {
|
|
114
115
|
type SkfBreadcrumbProps = {
|
115
116
|
/** aria-label for the breadcrumb control */
|
116
117
|
label?: SkfBreadcrumb["label"];
|
117
|
-
/**
|
118
|
-
|
118
|
+
/** If true, renders a smaller version */
|
119
|
+
small?: SkfBreadcrumb["small"];
|
119
120
|
|
120
121
|
/** Fired when the item is clicked */
|
121
122
|
onclick?: (e: CustomEvent<never>) => void;
|
@@ -197,29 +198,70 @@ type SkfCheckboxProps = {
|
|
197
198
|
onchange?: (e: CustomEvent<Event>) => void;
|
198
199
|
};
|
199
200
|
|
200
|
-
type
|
201
|
-
/** The locale to use for formatting the date */
|
202
|
-
locale?: SkfDatePicker["locale"];
|
203
|
-
/** The date to display in the date picker */
|
204
|
-
date?: SkfDatePicker["date"];
|
201
|
+
type SkfDatepickerCalendarProps = {
|
205
202
|
/** */
|
206
|
-
|
203
|
+
eventid?: SkfDatepickerCalendar["eventid"];
|
204
|
+
/** */
|
205
|
+
firstDayOfWeek?: SkfDatepickerCalendar["firstDayOfWeek"];
|
207
206
|
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
208
|
-
"invalid-dates"?:
|
209
|
-
/**
|
210
|
-
|
207
|
+
"invalid-dates"?: SkfDatepickerCalendar["invalidDates"];
|
208
|
+
/** */
|
209
|
+
locale?: SkfDatepickerCalendar["locale"];
|
210
|
+
/** */
|
211
|
+
range?: SkfDatepickerCalendar["range"];
|
211
212
|
/** Earliest selectable date. (yyyy-mm-dd format) */
|
212
|
-
"selectable-from"?:
|
213
|
+
"selectable-from"?: SkfDatepickerCalendar["selectableFrom"];
|
213
214
|
/** Latest selectable date. (yyyy-mm-dd format) */
|
214
|
-
"selectable-to"?:
|
215
|
+
"selectable-to"?: SkfDatepickerCalendar["selectableTo"];
|
216
|
+
/** */
|
217
|
+
"selected-date"?: SkfDatepickerCalendar["selectedDate"];
|
218
|
+
/** */
|
219
|
+
selectedDateRange?: SkfDatepickerCalendar["selectedDateRange"];
|
215
220
|
/** */
|
216
|
-
|
221
|
+
_listenToKeyboard?: SkfDatepickerCalendar["_listenToKeyboard"];
|
217
222
|
/** */
|
218
|
-
|
219
|
-
/**
|
220
|
-
"
|
221
|
-
|
222
|
-
|
223
|
+
_handleKeyDown?: SkfDatepickerCalendar["_handleKeyDown"];
|
224
|
+
/** */
|
225
|
+
dateSelectable?: SkfDatepickerCalendar["dateSelectable"];
|
226
|
+
};
|
227
|
+
|
228
|
+
type SkfDatepickerProps = {
|
229
|
+
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
230
|
+
"custom-invalid"?: SkfDatepicker["customInvalid"];
|
231
|
+
/** */
|
232
|
+
id?: SkfDatepicker["id"];
|
233
|
+
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
234
|
+
label?: SkfDatepicker["label"];
|
235
|
+
/** If true, hides the label visually */
|
236
|
+
"hide-label"?: SkfDatepicker["hideLabel"];
|
237
|
+
/** If defined, displays informational text below the field */
|
238
|
+
hint?: SkfDatepicker["hint"];
|
239
|
+
/** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
|
240
|
+
"invalid-dates"?: SkfDatepicker["invalidDates"];
|
241
|
+
/** If defined, adds name to the input-element */
|
242
|
+
name?: SkfDatepicker["name"];
|
243
|
+
/** */
|
244
|
+
placeholder?: SkfDatepicker["placeholder"];
|
245
|
+
/** */
|
246
|
+
range?: SkfDatepicker["range"];
|
247
|
+
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
248
|
+
readonly?: SkfDatepicker["readonly"];
|
249
|
+
/** If defined, renders an alternative A11y text for the asterisk */
|
250
|
+
"required-label"?: SkfDatepicker["requiredLabel"];
|
251
|
+
/** Earliest selectable date. (yyyy-mm-dd format) */
|
252
|
+
"selectable-from"?: SkfDatepicker["selectableFrom"];
|
253
|
+
/** Latest selectable date. (yyyy-mm-dd format) */
|
254
|
+
"selectable-to"?: SkfDatepicker["selectableTo"];
|
255
|
+
/** If defined, displays provided severity state */
|
256
|
+
severity?: SkfDatepicker["severity"];
|
257
|
+
/** Size of the input */
|
258
|
+
size?: SkfDatepicker["size"];
|
259
|
+
/** Sets validation start */
|
260
|
+
"validate-on"?: SkfDatepicker["validateOn"];
|
261
|
+
/** The current value of the input field */
|
262
|
+
value?: SkfDatepicker["value"];
|
263
|
+
/** */
|
264
|
+
focusTimeoutId?: SkfDatepicker["focusTimeoutId"];
|
223
265
|
};
|
224
266
|
|
225
267
|
type SkfHeadingProps = {
|
@@ -675,17 +717,17 @@ type SkfTabPanelProps = {
|
|
675
717
|
role?: SkfTabPanel["role"];
|
676
718
|
};
|
677
719
|
|
678
|
-
type
|
720
|
+
type SkfTabsProps = {
|
679
721
|
/** Sets the default selected tab */
|
680
|
-
"default-selected"?:
|
722
|
+
"default-selected"?: SkfTabs["defaultSelected"];
|
681
723
|
/** If true, removes border */
|
682
|
-
"no-border"?:
|
724
|
+
"no-border"?: SkfTabs["noBorder"];
|
683
725
|
/** If true, removes padding */
|
684
|
-
"no-padding"?:
|
726
|
+
"no-padding"?: SkfTabs["noPadding"];
|
685
727
|
/** If true, component fills the parent element height */
|
686
|
-
stretch?:
|
728
|
+
stretch?: SkfTabs["stretch"];
|
687
729
|
/** Sets the appearance of the tabs */
|
688
|
-
variant?:
|
730
|
+
variant?: SkfTabs["variant"];
|
689
731
|
};
|
690
732
|
|
691
733
|
type SkfTabProps = {
|
@@ -902,6 +944,9 @@ export type CustomElements = {
|
|
902
944
|
*
|
903
945
|
* ### **Slots:**
|
904
946
|
* - _default_ - The card's main content
|
947
|
+
*
|
948
|
+
* ### **CSS Properties:**
|
949
|
+
* - **--mod-card-bg-color** - Ability to set a custom background color _(default: undefined)_
|
905
950
|
*/
|
906
951
|
"skf-card": DefineComponent<SkfCardProps>;
|
907
952
|
|
@@ -919,24 +964,21 @@ export type CustomElements = {
|
|
919
964
|
"skf-checkbox": DefineComponent<SkfCheckboxProps>;
|
920
965
|
|
921
966
|
/**
|
922
|
-
* A date picker component that allows users to select a date or a range of dates.
|
923
|
-
* ---
|
924
967
|
*
|
968
|
+
* ---
|
925
969
|
*
|
926
|
-
|
927
|
-
|
928
|
-
|
970
|
+
*/
|
971
|
+
"skf-datepicker-calendar": DefineComponent<SkfDatepickerCalendarProps>;
|
972
|
+
|
973
|
+
/**
|
929
974
|
*
|
930
|
-
*
|
931
|
-
* - **gotoDate(date: _Date | string_)** - Navigates to the given date.
|
975
|
+
* ---
|
932
976
|
*
|
933
|
-
* ### **Slots:**
|
934
|
-
* - _default_ - Default hint content placed inside the date picker
|
935
977
|
*
|
936
|
-
* ### **
|
937
|
-
* -
|
978
|
+
* ### **Methods:**
|
979
|
+
* - **clear()** - Clears the input field
|
938
980
|
*/
|
939
|
-
"skf-datepicker": DefineComponent<
|
981
|
+
"skf-datepicker": DefineComponent<SkfDatepickerProps>;
|
940
982
|
|
941
983
|
/**
|
942
984
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
@@ -1005,7 +1047,7 @@ export type CustomElements = {
|
|
1005
1047
|
*
|
1006
1048
|
*
|
1007
1049
|
* ### **CSS Properties:**
|
1008
|
-
* - **--
|
1050
|
+
* - **--mod-logo-height** - The height of the logo _(default: undefined)_
|
1009
1051
|
*/
|
1010
1052
|
"skf-logo": DefineComponent<SkfLogoProps>;
|
1011
1053
|
|
@@ -1256,7 +1298,7 @@ export type CustomElements = {
|
|
1256
1298
|
"skf-tab-panel": DefineComponent<SkfTabPanelProps>;
|
1257
1299
|
|
1258
1300
|
/**
|
1259
|
-
* The `<skf-
|
1301
|
+
* The `<skf-tabs>` is a component that displays a list of actions or options
|
1260
1302
|
* ---
|
1261
1303
|
*
|
1262
1304
|
*
|
@@ -1264,7 +1306,7 @@ export type CustomElements = {
|
|
1264
1306
|
* - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
|
1265
1307
|
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
1266
1308
|
*/
|
1267
|
-
"skf-
|
1309
|
+
"skf-tabs": DefineComponent<SkfTabsProps>;
|
1268
1310
|
|
1269
1311
|
/**
|
1270
1312
|
* The `<skf-tab>` is a component that displays a list of actions or options
|