@skf-design-system/ui-components 1.0.2-beta.0 → 1.0.2-beta.1
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 +12 -8
- package/dist/components/accordion/accordion-item.component.d.ts +36 -0
- package/dist/components/accordion/accordion-item.component.js +87 -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 +5 -9
- package/dist/components/accordion/accordion.component.js +4 -5
- 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 +4 -7
- package/dist/components/alert/alert.component.js +8 -9
- package/dist/components/alert/alert.styles.js +0 -5
- package/dist/components/breadcrumb/breadcrumb-item.component.js +61 -0
- package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +62 -0
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +60 -0
- package/dist/components/breadcrumb/breadcrumb.js +6 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +22 -0
- package/dist/components/button/button.component.d.ts +13 -10
- package/dist/components/button/button.component.js +83 -76
- package/dist/components/button/button.styles.d.ts +1 -2
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/card/card.component.js +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +8 -6
- package/dist/components/checkbox/checkbox.component.js +2 -2
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
- package/dist/components/checkbox/checkbox.styles.js +1 -5
- package/dist/components/date-picker/datepicker.calendar.component.js +1 -1
- package/dist/components/date-picker/datepicker.component.js +1 -1
- package/dist/components/date-picker-input/datepicker-input.component.d.ts +1 -0
- package/dist/components/date-picker-input/datepicker-input.component.js +3 -2
- package/dist/components/dialog/dialog.component.d.ts +5 -4
- package/dist/components/dialog/dialog.component.js +44 -44
- package/dist/components/dialog/dialog.styles.js +4 -4
- package/dist/components/divider/divider.component.js +1 -1
- package/dist/components/drawer/drawer.component.d.ts +12 -8
- package/dist/components/drawer/drawer.component.js +5 -4
- package/dist/components/header/header.component.d.ts +3 -2
- package/dist/components/header/header.component.js +34 -28
- package/dist/components/heading/heading.component.d.ts +3 -5
- package/dist/components/heading/heading.component.js +22 -21
- package/dist/components/icon/icon.component.d.ts +11 -17
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.styles.d.ts +1 -2
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/input/input.component.d.ts +30 -31
- package/dist/components/input/input.component.js +136 -123
- package/dist/components/link/link.component.d.ts +12 -14
- package/dist/components/link/link.component.js +34 -34
- package/dist/components/link/link.styles.d.ts +1 -2
- package/dist/components/link/link.styles.js +2 -2
- 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 +4 -5
- package/dist/components/logo/logo.component.js +1 -1
- 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/menu.component.d.ts +9 -6
- package/dist/components/menu/menu.component.js +8 -10
- package/dist/components/{nav-item → nav}/nav-item.component.d.ts +0 -2
- package/dist/components/{nav-item → nav}/nav-item.component.js +1 -1
- package/dist/components/nav/nav.component.js +1 -1
- package/dist/components/popover/popover.component.d.ts +10 -6
- package/dist/components/popover/popover.component.js +22 -24
- package/dist/components/progress/progress.component.d.ts +2 -2
- package/dist/components/progress/progress.component.js +31 -37
- package/dist/components/progress/progress.styles.js +40 -35
- package/dist/components/radio/radio.component.d.ts +9 -7
- package/dist/components/radio/radio.component.js +2 -2
- package/dist/components/{segmented-button-item → segmented-button}/segmented-button-item.component.d.ts +4 -4
- package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
- package/dist/components/segmented-button/segmented-button-item.js +6 -0
- package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
- package/dist/components/segmented-button/segmented-button.component.d.ts +0 -2
- package/dist/components/segmented-button/segmented-button.component.js +73 -0
- package/dist/components/segmented-button/segmented-button.js +6 -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 → select}/select-option.component.d.ts +7 -8
- package/dist/components/{select-option → select}/select-option.component.js +15 -15
- package/dist/components/select/select.component.d.ts +16 -15
- package/dist/components/select/select.component.js +17 -17
- package/dist/components/select/select.controllers.d.ts +1 -1
- package/dist/components/select/select.controllers.js +14 -11
- package/dist/components/select/select.stories.icons.d.ts +7 -0
- package/dist/components/{stepper-item → stepper}/stepper-item.component.js +8 -8
- package/dist/components/stepper/stepper.component.d.ts +2 -2
- package/dist/components/stepper/stepper.component.js +15 -15
- package/dist/components/stepper/stepper.helpers.d.ts +1 -1
- package/dist/components/switch/switch.component.js +15 -15
- package/dist/components/tab/tab.component.js +1 -1
- package/dist/components/tab-group/tab-group.component.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +1 -1
- package/dist/components/tag/tag.component.d.ts +10 -14
- package/dist/components/tag/tag.component.js +32 -35
- package/dist/components/textarea/textarea.component.d.ts +10 -11
- package/dist/components/textarea/textarea.component.js +62 -64
- 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-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 +5 -4
- package/dist/components/toast/toast.component.js +15 -15
- package/dist/components/toast/toast.singleton.d.ts +4 -4
- package/dist/components/toast/toast.singleton.js +12 -12
- package/dist/components/tooltip/tooltip.component.d.ts +2 -1
- package/dist/components/tooltip/tooltip.component.js +15 -10
- package/dist/custom-elements.json +733 -820
- package/dist/index.d.ts +13 -7
- package/dist/index.js +100 -84
- package/dist/internal/base-classes/popover/popover.base.d.ts +10 -5
- package/dist/internal/base-classes/popover/popover.base.js +77 -60
- 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/constants/iconSeverity.d.ts +3 -2
- package/dist/internal/constants/iconSeverity.js +2 -3
- package/dist/internal/helpers/hintSeverity.d.ts +2 -2
- package/dist/internal/helpers/hintSeverity.js +1 -1
- 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 +1 -1
- package/dist/styles/global.css +1 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +162 -180
- package/dist/types/vue/index.d.ts +162 -180
- package/dist/vscode.html-custom-data.json +133 -1091
- package/dist/web-types.json +368 -424
- package/package.json +24 -25
- 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/menu-item/menu-item.component.d.ts +0 -25
- package/dist/internal/constants/heading.d.ts +0 -2
- /package/dist/components/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
- /package/dist/components/{collapse/collapse.test.d.ts → accordion/accordion-item.test.d.ts} +0 -0
- /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
- /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.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/{menu-item → menu}/menu-item.d.ts +0 -0
- /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
- /package/dist/components/{nav-item/nav-item.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/{nav-item → nav}/nav-item.d.ts +0 -0
- /package/dist/components/{nav-item → nav}/nav-item.js +0 -0
- /package/dist/components/{segmented-button-item/segmented-button-item.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
- /package/dist/components/{nav-item → nav}/nav-item.styles.js +0 -0
- /package/dist/components/{segmented-button-item → segmented-button}/segmented-button-item.d.ts +0 -0
- /package/dist/components/{select-option-group/select-option-group.style.d.ts → segmented-button/segmented-button-item.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.d.ts +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
- /package/dist/components/{select-option/select-option.styles.d.ts → select/select-option-group.style.d.ts} +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.style.js +0 -0
- /package/dist/components/{select-option → select}/select-option.controllers.d.ts +0 -0
- /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
- /package/dist/components/{select-option → select}/select-option.js +0 -0
- /package/dist/components/{stepper-item/stepper-item.styles.d.ts → select/select-option.styles.d.ts} +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.d.ts +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
- /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → stepper/stepper-item.styles.d.ts} +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.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.component.js +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.styles.js +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
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
-
export { default as
|
1
|
+
export { default as SkfAccordionItem } from './components/accordion/accordion-item.js';
|
2
|
+
export { default as SkfAccordion } from './components/accordion/accordion.js';
|
2
3
|
export { default as SkfAlert } from './components/alert/alert.js';
|
4
|
+
export { default as SkfBreadcrumbItem } from './components/breadcrumb/breadcrumb-item.js';
|
5
|
+
export { default as SkfBreadcrumb } from './components/breadcrumb/breadcrumb.js';
|
3
6
|
export { default as SkfButton } from './components/button/button.js';
|
4
7
|
export { default as SkfCard } from './components/card/card.js';
|
5
8
|
export { default as SkfCheckbox } from './components/checkbox/checkbox.js';
|
6
|
-
export { default as SkfCollapse } from './components/collapse/collapse.js';
|
7
9
|
export { default as SkfDatePickerInput } from './components/date-picker-input/datepicker-input.js';
|
8
10
|
export { default as SkfDatePicker } from './components/date-picker/datepicker.js';
|
9
11
|
export { default as SkfDialog } from './components/dialog/dialog.js';
|
@@ -16,17 +18,19 @@ export { default as SkfInput } from './components/input/input.js';
|
|
16
18
|
export { default as SkfLink } from './components/link/link.js';
|
17
19
|
export { default as SkfLoader } from './components/loader/loader.js';
|
18
20
|
export { default as SkfLogo } from './components/logo/logo.js';
|
19
|
-
export { default as SkfMenuItem } from './components/menu
|
21
|
+
export { default as SkfMenuItem } from './components/menu/menu-item.js';
|
20
22
|
export { default as SkfMenu } from './components/menu/menu.js';
|
21
|
-
export { default as SkfNavItem } from './components/nav
|
23
|
+
export { default as SkfNavItem } from './components/nav/nav-item.js';
|
22
24
|
export { default as SkfNav } from './components/nav/nav.js';
|
23
25
|
export { default as SkfPopover } from './components/popover/popover.js';
|
24
26
|
export { default as SkfProgress } from './components/progress/progress.js';
|
25
27
|
export { default as SkfRadio } from './components/radio/radio.js';
|
26
|
-
export { default as
|
27
|
-
export { default as
|
28
|
+
export { default as SkfSegmentedButtonItem } from './components/segmented-button/segmented-button-item.js';
|
29
|
+
export { default as SkfSegmentedButton } from './components/segmented-button/segmented-button.js';
|
30
|
+
export { default as SkfOptionGroup } from './components/select/select-option-group.js';
|
31
|
+
export { default as SkfOption } from './components/select/select-option.js';
|
28
32
|
export { default as SkfSelect } from './components/select/select.js';
|
29
|
-
export { default as SkfStepperItem } from './components/stepper
|
33
|
+
export { default as SkfStepperItem } from './components/stepper/stepper-item.js';
|
30
34
|
export { default as SkfStepper } from './components/stepper/stepper.js';
|
31
35
|
export { default as SkfSwitch } from './components/switch/switch.js';
|
32
36
|
export { default as SkfTabGoup } from './components/tab-group/tab-group.js';
|
@@ -34,5 +38,7 @@ export { default as SkfTabPanel } from './components/tab-panel/tab-panel.js';
|
|
34
38
|
export { default as SkfTab } from './components/tab/tab.js';
|
35
39
|
export { default as SkfTag } from './components/tag/tag.js';
|
36
40
|
export { default as SkfTextArea } from './components/textarea/textarea.js';
|
41
|
+
export { default as SkfToastItem } from './components/toast/toast-item.js';
|
42
|
+
export { default as SkfToastWrapper } from './components/toast/toast-wrapper.js';
|
37
43
|
export { default as SkfToast } from './components/toast/toast.js';
|
38
44
|
export { default as SkfTooltip } from './components/tooltip/tooltip.js';
|
package/dist/index.js
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
import "./components/accordion/accordion-item.js";
|
1
2
|
import "./components/accordion/accordion.js";
|
2
3
|
import "./components/alert/alert.js";
|
4
|
+
import "./components/breadcrumb/breadcrumb-item.js";
|
5
|
+
import "./components/breadcrumb/breadcrumb.js";
|
3
6
|
import "./components/button/button.js";
|
4
7
|
import "./components/card/card.js";
|
5
8
|
import "./components/checkbox/checkbox.js";
|
6
|
-
import "./components/collapse/collapse.js";
|
7
9
|
import "./components/date-picker-input/datepicker-input.js";
|
8
10
|
import "./components/date-picker/datepicker.js";
|
9
11
|
import "./components/dialog/dialog.js";
|
@@ -16,17 +18,19 @@ import "./components/input/input.js";
|
|
16
18
|
import "./components/link/link.js";
|
17
19
|
import "./components/loader/loader.js";
|
18
20
|
import "./components/logo/logo.js";
|
19
|
-
import "./components/menu
|
21
|
+
import "./components/menu/menu-item.js";
|
20
22
|
import "./components/menu/menu.js";
|
21
|
-
import "./components/nav
|
23
|
+
import "./components/nav/nav-item.js";
|
22
24
|
import "./components/nav/nav.js";
|
23
25
|
import "./components/popover/popover.js";
|
24
26
|
import "./components/progress/progress.js";
|
25
27
|
import "./components/radio/radio.js";
|
26
|
-
import "./components/
|
27
|
-
import "./components/
|
28
|
+
import "./components/segmented-button/segmented-button-item.js";
|
29
|
+
import "./components/segmented-button/segmented-button.js";
|
30
|
+
import "./components/select/select-option-group.js";
|
31
|
+
import "./components/select/select-option.js";
|
28
32
|
import "./components/select/select.js";
|
29
|
-
import "./components/stepper
|
33
|
+
import "./components/stepper/stepper-item.js";
|
30
34
|
import "./components/stepper/stepper.js";
|
31
35
|
import "./components/switch/switch.js";
|
32
36
|
import "./components/tab-group/tab-group.js";
|
@@ -34,85 +38,97 @@ import "./components/tab-panel/tab-panel.js";
|
|
34
38
|
import "./components/tab/tab.js";
|
35
39
|
import "./components/tag/tag.js";
|
36
40
|
import "./components/textarea/textarea.js";
|
41
|
+
import "./components/toast/toast-item.js";
|
42
|
+
import "./components/toast/toast-wrapper.js";
|
37
43
|
import "./components/toast/toast.js";
|
38
44
|
import "./components/tooltip/tooltip.js";
|
39
|
-
import {
|
40
|
-
import {
|
41
|
-
import {
|
42
|
-
import {
|
43
|
-
import {
|
44
|
-
import {
|
45
|
-
import {
|
46
|
-
import {
|
47
|
-
import {
|
48
|
-
import {
|
49
|
-
import {
|
50
|
-
import {
|
51
|
-
import {
|
52
|
-
import {
|
53
|
-
import {
|
54
|
-
import {
|
55
|
-
import {
|
56
|
-
import {
|
57
|
-
import {
|
58
|
-
import {
|
59
|
-
import {
|
60
|
-
import {
|
61
|
-
import {
|
62
|
-
import {
|
63
|
-
import {
|
64
|
-
import {
|
65
|
-
import {
|
66
|
-
import {
|
67
|
-
import {
|
68
|
-
import {
|
69
|
-
import {
|
70
|
-
import {
|
71
|
-
import {
|
72
|
-
import {
|
73
|
-
import {
|
74
|
-
import {
|
75
|
-
import {
|
76
|
-
import {
|
77
|
-
import {
|
45
|
+
import { SkfAccordionItem as Q } from "./components/accordion/accordion-item.component.js";
|
46
|
+
import { SkfAccordion as V } from "./components/accordion/accordion.component.js";
|
47
|
+
import { SkfAlert as Y } from "./components/alert/alert.component.js";
|
48
|
+
import { SkfBreadcrumbItem as _ } from "./components/breadcrumb/breadcrumb-item.component.js";
|
49
|
+
import { SkfBreadcrumb as oo } from "./components/breadcrumb/breadcrumb.component.js";
|
50
|
+
import { SkfButton as to } from "./components/button/button.component.js";
|
51
|
+
import { SkfCard as mo } from "./components/card/card.component.js";
|
52
|
+
import { SkfCheckbox as eo } from "./components/checkbox/checkbox.component.js";
|
53
|
+
import { SkfDatePickerInput as So } from "./components/date-picker-input/datepicker-input.component.js";
|
54
|
+
import { SkfDatePicker as xo } from "./components/date-picker/datepicker.component.js";
|
55
|
+
import { SkfDialog as no } from "./components/dialog/dialog.component.js";
|
56
|
+
import { SkfDivider as uo } from "./components/divider/divider.component.js";
|
57
|
+
import { SkfDrawer as To } from "./components/drawer/drawer.component.js";
|
58
|
+
import { SkfHeader as bo } from "./components/header/header.component.js";
|
59
|
+
import { SkfHeading as lo } from "./components/heading/heading.component.js";
|
60
|
+
import { SkfIcon as Do } from "./components/icon/icon.component.js";
|
61
|
+
import { SkfInput as vo } from "./components/input/input.component.js";
|
62
|
+
import { SkfLink as Go } from "./components/link/link.component.js";
|
63
|
+
import { SkfLoader as Lo } from "./components/loader/loader.component.js";
|
64
|
+
import { SkfLogo as wo } from "./components/logo/logo.component.js";
|
65
|
+
import { SkfMenuItem as Ho } from "./components/menu/menu-item.component.js";
|
66
|
+
import { SkfMenu as No } from "./components/menu/menu.component.js";
|
67
|
+
import { SkfNavItem as Wo } from "./components/nav/nav-item.component.js";
|
68
|
+
import { SkfNav as qo } from "./components/nav/nav.component.js";
|
69
|
+
import { SkfPopover as zo } from "./components/popover/popover.component.js";
|
70
|
+
import { SkfProgress as Fo } from "./components/progress/progress.component.js";
|
71
|
+
import { SkfRadio as Ko } from "./components/radio/radio.component.js";
|
72
|
+
import { SkfSegmentedButtonItem as Uo } from "./components/segmented-button/segmented-button-item.component.js";
|
73
|
+
import { SkfSegmentedButton as Xo } from "./components/segmented-button/segmented-button.component.js";
|
74
|
+
import { SkfSelectOptionGroup as Zo } from "./components/select/select-option-group.component.js";
|
75
|
+
import { SkfSelectOption as $o } from "./components/select/select-option.component.js";
|
76
|
+
import { SkfSelect as rr } from "./components/select/select.component.js";
|
77
|
+
import { SkfStepperItem as pr } from "./components/stepper/stepper-item.component.js";
|
78
|
+
import { SkfStepper as fr } from "./components/stepper/stepper.component.js";
|
79
|
+
import { SkfSwitch as ir } from "./components/switch/switch.component.js";
|
80
|
+
import { SkfTabGroup as kr } from "./components/tab-group/tab-group.component.js";
|
81
|
+
import { SkfTabPanel as ar } from "./components/tab-panel/tab-panel.component.js";
|
82
|
+
import { SkfTab as cr } from "./components/tab/tab.component.js";
|
83
|
+
import { SkfTag as dr } from "./components/tag/tag.component.js";
|
84
|
+
import { SkfTextArea as Tr } from "./components/textarea/textarea.component.js";
|
85
|
+
import { SkfToastItem as br } from "./components/toast/toast-item.component.js";
|
86
|
+
import { SkfToastWrapper as lr } from "./components/toast/toast-wrapper.component.js";
|
87
|
+
import { SkfToast as Dr } from "./components/toast/toast.component.js";
|
88
|
+
import { SkfTooltip as vr } from "./components/tooltip/tooltip.component.js";
|
78
89
|
export {
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
90
|
+
V as SkfAccordion,
|
91
|
+
Q as SkfAccordionItem,
|
92
|
+
Y as SkfAlert,
|
93
|
+
oo as SkfBreadcrumb,
|
94
|
+
_ as SkfBreadcrumbItem,
|
95
|
+
to as SkfButton,
|
96
|
+
mo as SkfCard,
|
97
|
+
eo as SkfCheckbox,
|
98
|
+
xo as SkfDatePicker,
|
99
|
+
So as SkfDatePickerInput,
|
100
|
+
no as SkfDialog,
|
101
|
+
uo as SkfDivider,
|
102
|
+
To as SkfDrawer,
|
103
|
+
bo as SkfHeader,
|
104
|
+
lo as SkfHeading,
|
105
|
+
Do as SkfIcon,
|
106
|
+
vo as SkfInput,
|
107
|
+
Go as SkfLink,
|
108
|
+
Lo as SkfLoader,
|
109
|
+
wo as SkfLogo,
|
110
|
+
No as SkfMenu,
|
111
|
+
Ho as SkfMenuItem,
|
112
|
+
qo as SkfNav,
|
113
|
+
Wo as SkfNavItem,
|
114
|
+
$o as SkfOption,
|
115
|
+
Zo as SkfOptionGroup,
|
116
|
+
zo as SkfPopover,
|
117
|
+
Fo as SkfProgress,
|
118
|
+
Ko as SkfRadio,
|
119
|
+
Xo as SkfSegmentedButton,
|
120
|
+
Uo as SkfSegmentedButtonItem,
|
121
|
+
rr as SkfSelect,
|
122
|
+
fr as SkfStepper,
|
123
|
+
pr as SkfStepperItem,
|
124
|
+
ir as SkfSwitch,
|
125
|
+
cr as SkfTab,
|
126
|
+
kr as SkfTabGoup,
|
127
|
+
ar as SkfTabPanel,
|
128
|
+
dr as SkfTag,
|
129
|
+
Tr as SkfTextArea,
|
130
|
+
Dr as SkfToast,
|
131
|
+
br as SkfToastItem,
|
132
|
+
lr as SkfToastWrapper,
|
133
|
+
vr as SkfTooltip
|
118
134
|
};
|
@@ -7,7 +7,7 @@ export declare class SkfPopoverBase extends SkfElement {
|
|
7
7
|
static classMap: {};
|
8
8
|
$popover: this;
|
9
9
|
placement: Placement;
|
10
|
-
variant: '
|
10
|
+
variant: 'menu' | 'popup' | 'tooltip';
|
11
11
|
anchor?: string;
|
12
12
|
isOpen: boolean;
|
13
13
|
offset: number;
|
@@ -27,12 +27,17 @@ export declare class SkfPopoverBase extends SkfElement {
|
|
27
27
|
handleAnchorEl(): void;
|
28
28
|
handleAnchorChange: () => Promise<void>;
|
29
29
|
reposition: () => Promise<void>;
|
30
|
-
|
31
|
-
|
32
|
-
/** @internal */
|
30
|
+
handleEscapeKey: (e: KeyboardEvent) => void;
|
31
|
+
open(e: Event): void;
|
32
|
+
/** @internal add additional open tasks here in UI component */
|
33
|
+
openExtended(): void;
|
34
|
+
close(): void;
|
35
|
+
/** @internal add additional close tasks here in UI component */
|
36
|
+
closeExtended(): void;
|
37
|
+
/** @internal eventlisteners here should implement abort signal */
|
33
38
|
addEventListeners($element: HTMLElement | Element): void;
|
34
39
|
/** @internal */
|
35
|
-
removeEventListeners(
|
40
|
+
removeEventListeners(): void;
|
36
41
|
render(): import("lit").TemplateResult<1>;
|
37
42
|
/** @internal helper */
|
38
43
|
private _containsFocusableElement;
|
@@ -1,63 +1,61 @@
|
|
1
|
-
import { flip as
|
2
|
-
import { SkfElement as
|
1
|
+
import { flip as O, offset as x, arrow as A, computePosition as C } from "@floating-ui/dom";
|
2
|
+
import { SkfElement as S } from "../../components/skf-element.js";
|
3
3
|
import { PopoverController as P } from "../../controllers/popover.controller.js";
|
4
|
-
import { uuid as
|
4
|
+
import { uuid as _ } from "../../helpers/uuid.js";
|
5
5
|
import { watch as f } from "../../helpers/watch.js";
|
6
|
-
import L from "../../../styles/component.styles.js";
|
7
|
-
import { nothing as F, html as
|
8
|
-
import { property as
|
6
|
+
import { componentStyles as L } from "../../../styles/component.styles.js";
|
7
|
+
import { nothing as F, html as y } from "lit";
|
8
|
+
import { property as u, state as c, query as T } from "lit/decorators.js";
|
9
9
|
import { classMap as j } from "lit/directives/class-map.js";
|
10
|
-
import { styles as
|
11
|
-
var
|
12
|
-
for (var e = i > 1 ? void 0 : i ?
|
13
|
-
(a =
|
14
|
-
return i && e &&
|
15
|
-
},
|
16
|
-
const
|
10
|
+
import { styles as k } from "./popover.styles.js";
|
11
|
+
var M = Object.defineProperty, R = Object.getOwnPropertyDescriptor, r = (m, t, o, i) => {
|
12
|
+
for (var e = i > 1 ? void 0 : i ? R(t, o) : t, n = m.length - 1, a; n >= 0; n--)
|
13
|
+
(a = m[n]) && (e = (i ? a(t, o, e) : a(e)) || e);
|
14
|
+
return i && e && M(t, o, e), e;
|
15
|
+
}, p;
|
16
|
+
const s = (p = class extends S {
|
17
17
|
constructor() {
|
18
18
|
super(), this.$popover = this, this.placement = "top", this.variant = "popup", this.isOpen = !1, this.offset = 0, this.arrow = !1, this.triggerEvent = "mouseenter", this.abortEventsController = new AbortController(), this.signal = this.abortEventsController.signal, this.popoverController = new P(this), this._toggleOpen = (t) => {
|
19
19
|
this.isOpen = t ?? !this.isOpen;
|
20
20
|
}, this._handleToggle = (t) => {
|
21
|
-
const
|
22
|
-
this.isOpen =
|
21
|
+
const o = t.newState === "open";
|
22
|
+
this.isOpen = o, this.emit(o ? "skf-opened" : "skf-closed");
|
23
23
|
}, this.handleToggleOpen = async () => {
|
24
24
|
this.$anchor && (this.isOpen ? (this.$popover.togglePopover(!0), this.$popover.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 250, fill: "forwards" })) : (await this.$popover.animate([{ opacity: 0 }], { duration: 150, fill: "forwards" }).finished, this.$popover.togglePopover(this.isOpen)));
|
25
25
|
}, this.handleAnchorChange = async () => {
|
26
26
|
if (!this.anchor) return;
|
27
|
-
await this.popoverController.stop(), this.$anchor && this.removeEventListeners(
|
27
|
+
await this.popoverController.stop(), this.$anchor && this.removeEventListeners();
|
28
28
|
const t = this.getRootNode();
|
29
29
|
this.$anchor = t.getElementById(this.anchor), this.$anchor && (this.addEventListeners(this.$anchor), this.popoverController.start());
|
30
30
|
}, this.reposition = async () => {
|
31
31
|
var n, a, h;
|
32
32
|
if (!this.$anchor) return;
|
33
|
-
const t = [
|
34
|
-
this.arrow && t.push(
|
35
|
-
const { x:
|
33
|
+
const t = [O(), x(this.offset)];
|
34
|
+
this.arrow && t.push(A({ element: this.$arrow }));
|
35
|
+
const { x: o, y: i, middlewareData: e } = await C(this.$anchor, this.$popover, {
|
36
36
|
placement: this.placement,
|
37
37
|
middleware: t,
|
38
38
|
strategy: "fixed"
|
39
39
|
});
|
40
40
|
if (Object.assign(this.$popover.style, {
|
41
|
-
left: `${String(
|
41
|
+
left: `${String(o)}px`,
|
42
42
|
top: `${String(i)}px`
|
43
43
|
}), this.arrow) {
|
44
|
-
const d = this.placement.split("-")[0],
|
44
|
+
const d = this.placement.split("-")[0], l = { top: "bottom", right: "left", bottom: "top", left: "right" }[d] ?? "", v = (n = e.flip) == null ? void 0 : n.index, g = (a = e.arrow) == null ? void 0 : a.x, b = (h = e.arrow) == null ? void 0 : h.y, w = typeof g == "number" ? `${String(g)}px` : "", $ = typeof b == "number" ? `${String(b)}px` : "", E = {
|
45
45
|
bottom: 45,
|
46
46
|
right: 135,
|
47
47
|
top: 225,
|
48
48
|
left: 315
|
49
49
|
};
|
50
50
|
Object.assign(this.$arrow.style, {
|
51
|
-
top:
|
52
|
-
[this.placement.includes("left") ? "right" : "left"]:
|
53
|
-
[
|
54
|
-
rotate: `${(
|
51
|
+
top: $,
|
52
|
+
[this.placement.includes("left") ? "right" : "left"]: w,
|
53
|
+
[v ? d : l]: "calc(var(--_skf-popover-arrow-size) * -1)",
|
54
|
+
rotate: `${(E[l] + (v ? 180 : 0)).toString()}deg`
|
55
55
|
});
|
56
56
|
}
|
57
|
-
}, this.
|
58
|
-
t.
|
59
|
-
}, this.close = () => {
|
60
|
-
this._toggleOpen(!1);
|
57
|
+
}, this.handleEscapeKey = (t) => {
|
58
|
+
t.key === "Escape" && this.close();
|
61
59
|
}, this.setAttribute("popover", "");
|
62
60
|
}
|
63
61
|
disconnectedCallback() {
|
@@ -68,31 +66,50 @@ const o = (l = class extends _ {
|
|
68
66
|
const t = this._containsFocusableElement(this);
|
69
67
|
this.$anchor.addEventListener(
|
70
68
|
"focusout",
|
71
|
-
(
|
72
|
-
const i = this.contains(
|
69
|
+
(o) => {
|
70
|
+
const i = this.contains(o.relatedTarget);
|
73
71
|
t && i || this.close();
|
74
72
|
},
|
75
73
|
{ signal: this.signal }
|
76
|
-
), this.addEventListener(
|
74
|
+
), this.addEventListener(
|
75
|
+
"focusout",
|
76
|
+
(o) => {
|
77
|
+
const i = this.contains(o.relatedTarget);
|
78
|
+
t && i || this.close();
|
79
|
+
},
|
80
|
+
{ signal: this.signal }
|
81
|
+
), this.$popover.id = _(this.$anchor.id), ["popup", "menu"].includes(this.variant) && (this.$anchor.setAttribute("aria-haspopup", "true"), this.setAttribute("aria-labelledby", this.$anchor.id)), ["menu"].includes(this.variant) && this.$anchor.setAttribute("aria-controls", this.$popover.id), ["popup"].includes(this.variant) && t && (this.role = "dialog", this.setAttribute("aria-modal", "false")), ["tooltip"].includes(this.variant) && this.$anchor.addEventListener("focusin", this.open.bind(this), { signal: this.signal });
|
77
82
|
}
|
78
|
-
|
83
|
+
open(t) {
|
84
|
+
t.stopPropagation(), this._toggleOpen(!0), document.addEventListener("keydown", this.handleEscapeKey.bind(this), { signal: this.signal }), this.openExtended();
|
85
|
+
}
|
86
|
+
/** @internal add additional open tasks here in UI component */
|
87
|
+
openExtended() {
|
88
|
+
}
|
89
|
+
close() {
|
90
|
+
this.closeExtended(), this._toggleOpen(!1), document.removeEventListener("keydown", this.handleEscapeKey.bind(this));
|
91
|
+
}
|
92
|
+
/** @internal add additional close tasks here in UI component */
|
93
|
+
closeExtended() {
|
94
|
+
}
|
95
|
+
/** @internal eventlisteners here should implement abort signal */
|
79
96
|
addEventListeners(t) {
|
80
97
|
throw new Error(`Cannot add eventListeners for ${t.id}. Method not implemented.`);
|
81
98
|
}
|
82
99
|
/** @internal */
|
83
|
-
removeEventListeners(
|
84
|
-
|
100
|
+
removeEventListeners() {
|
101
|
+
this.abortEventsController.abort();
|
85
102
|
}
|
86
103
|
render() {
|
87
104
|
var t;
|
88
|
-
return (t = this.$anchor) == null || t.setAttribute("aria-expanded", this.isOpen ? "true" : "false"),
|
105
|
+
return ["popup", "menu"].includes(this.variant) && ((t = this.$anchor) == null || t.setAttribute("aria-expanded", this.isOpen ? "true" : "false")), y`
|
89
106
|
<div
|
90
107
|
@toggle=${this._handleToggle}
|
91
|
-
class=${j({ popover: !0, ...
|
108
|
+
class=${j({ popover: !0, ...p.classMap })}
|
92
109
|
id="popover"
|
93
110
|
>
|
94
111
|
<slot></slot>
|
95
|
-
${this.arrow ?
|
112
|
+
${this.arrow ? y`<div class="popover__arrow" id="arrow"></div>` : F}
|
96
113
|
</div>
|
97
114
|
`;
|
98
115
|
}
|
@@ -109,52 +126,52 @@ const o = (l = class extends _ {
|
|
109
126
|
function e(n, a) {
|
110
127
|
const h = Array.from(
|
111
128
|
n.querySelectorAll(a.join(", "))
|
112
|
-
), d = Array.from(n.querySelectorAll("*")).map((
|
113
|
-
for (const
|
129
|
+
), d = Array.from(n.querySelectorAll("*")).map((l) => l.shadowRoot).filter((l) => l !== null);
|
130
|
+
for (const l of d)
|
114
131
|
h.push(
|
115
|
-
...e(
|
132
|
+
...e(l, a)
|
116
133
|
);
|
117
134
|
return h;
|
118
135
|
}
|
119
136
|
}
|
120
|
-
},
|
137
|
+
}, p.styles = [L, k], p.classMap = {}, p);
|
121
138
|
r([
|
122
|
-
|
123
|
-
],
|
139
|
+
u()
|
140
|
+
], s.prototype, "placement", 2);
|
124
141
|
r([
|
125
|
-
|
126
|
-
],
|
142
|
+
u()
|
143
|
+
], s.prototype, "variant", 2);
|
127
144
|
r([
|
128
|
-
|
129
|
-
],
|
145
|
+
u()
|
146
|
+
], s.prototype, "anchor", 2);
|
130
147
|
r([
|
131
148
|
c()
|
132
|
-
],
|
149
|
+
], s.prototype, "isOpen", 2);
|
133
150
|
r([
|
134
151
|
c()
|
135
|
-
],
|
152
|
+
], s.prototype, "offset", 2);
|
136
153
|
r([
|
137
154
|
c()
|
138
|
-
],
|
155
|
+
], s.prototype, "$anchor", 2);
|
139
156
|
r([
|
140
157
|
c()
|
141
|
-
],
|
158
|
+
], s.prototype, "arrow", 2);
|
142
159
|
r([
|
143
160
|
c()
|
144
|
-
],
|
161
|
+
], s.prototype, "triggerEvent", 2);
|
145
162
|
r([
|
146
|
-
|
147
|
-
],
|
163
|
+
T("#arrow")
|
164
|
+
], s.prototype, "$arrow", 2);
|
148
165
|
r([
|
149
166
|
f("isOpen", { afterUpdate: !0 })
|
150
|
-
],
|
167
|
+
], s.prototype, "handleToggleOpen", 2);
|
151
168
|
r([
|
152
169
|
f("$anchor")
|
153
|
-
],
|
170
|
+
], s.prototype, "handleAnchorEl", 1);
|
154
171
|
r([
|
155
172
|
f("anchor")
|
156
|
-
],
|
157
|
-
let
|
173
|
+
], s.prototype, "handleAnchorChange", 2);
|
174
|
+
let G = s;
|
158
175
|
export {
|
159
|
-
|
176
|
+
G as SkfPopoverBase
|
160
177
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import '../../../components/icon/icon.js';
|
2
2
|
import { SkfElement } from '../../components/skf-element.js';
|
3
|
-
import type {
|
3
|
+
import type { Severity } from '../../types.js';
|
4
4
|
import { type CSSResultGroup } from 'lit';
|
5
5
|
export declare class SkfHint extends SkfElement {
|
6
6
|
static styles: CSSResultGroup;
|
7
|
-
severity?:
|
7
|
+
severity?: Severity;
|
8
8
|
render(): import("lit").TemplateResult<1>;
|
9
9
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import "../../../components/icon/icon.js";
|
2
2
|
import { SkfElement as l } from "../skf-element.js";
|
3
3
|
import { ICON_SEVERITY as n } from "../../constants/iconSeverity.js";
|
4
|
-
import v from "../../../styles/component.styles.js";
|
4
|
+
import { componentStyles as v } from "../../../styles/component.styles.js";
|
5
5
|
import { html as f } from "lit";
|
6
6
|
import { property as y } from "lit/decorators.js";
|
7
|
-
import d from "./hint.styles.js";
|
7
|
+
import { styles as d } from "./hint.styles.js";
|
8
8
|
var a = Object.defineProperty, c = (s, i, m, h) => {
|
9
9
|
for (var r = void 0, t = s.length - 1, p; t >= 0; t--)
|
10
10
|
(p = s[t]) && (r = p(i, m, r) || r);
|
@@ -1,2 +1 @@
|
|
1
|
-
declare const
|
2
|
-
export default _default;
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
type
|
1
|
+
import type { Severity } from '../types.js';
|
2
|
+
import type { Icon } from '@skf-design-system/ui-assets';
|
3
|
+
type IconSeverity = Readonly<Record<Severity, Icon>>;
|
3
4
|
export declare const ICON_SEVERITY: IconSeverity;
|
4
5
|
export {};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import type {
|
2
|
-
export declare function hintSeverity(
|
1
|
+
import type { FormFieldSeverity } from '../types.js';
|
2
|
+
export declare function hintSeverity(invalid: boolean, hostSeverity?: FormFieldSeverity): "error" | FormFieldSeverity | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { SeverityFgColor } from '@skf-design-system/ui-assets';
|
2
2
|
type HTMLInputTypeAttribute = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
3
|
-
type FormFieldSeverity = Exclude<SeverityFgColor, 'error'>;
|
3
|
+
export type FormFieldSeverity = Exclude<SeverityFgColor, 'alert' | 'error'>;
|
4
4
|
export interface FormFieldBaseProps {
|
5
5
|
customInvalid?: unknown;
|
6
6
|
disabled?: boolean;
|