@skf-design-system/ui-components 1.0.0-beta.3 → 1.0.0-beta.5
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 +26 -6
- package/dist/components/alert/alert.component.js +20 -18
- package/dist/components/alert/alert.styles.js +50 -47
- package/dist/components/button/button.component.d.ts +2 -0
- package/dist/components/button/button.component.js +5 -5
- package/dist/components/checkbox/checkbox.styles.js +6 -1
- package/dist/components/icon/icon.styles.js +56 -54
- package/dist/components/input/input.component.d.ts +9 -0
- package/dist/components/input/input.component.js +32 -24
- package/dist/components/radio/radio.styles.js +7 -2
- package/dist/components/select/select.component.d.ts +5 -2
- package/dist/components/select/select.component.js +99 -86
- package/dist/components/select/select.controllers.js +5 -2
- package/dist/components/select/select.styles.js +15 -0
- package/dist/components/select-option/select-option.component.d.ts +2 -2
- package/dist/components/select-option/select-option.component.js +16 -10
- package/dist/components/switch/switch.styles.js +5 -0
- package/dist/components/toast/toast.component.d.ts +35 -0
- package/dist/components/toast/toast.component.js +52 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/toast/toast.js +6 -0
- package/dist/components/toast/toast.singleton.d.ts +26 -0
- package/dist/components/toast/toast.singleton.js +53 -0
- package/dist/components/toast/toast.style.d.ts +1 -0
- package/dist/components/toast/toast.style.js +9 -0
- package/dist/components/toast-item/toast-item.component.d.ts +21 -0
- package/dist/components/toast-item/toast-item.component.js +65 -0
- package/dist/components/toast-item/toast-item.d.ts +6 -0
- package/dist/components/toast-item/toast-item.js +2 -0
- package/dist/components/toast-item/toast-item.style.d.ts +2 -0
- package/dist/components/toast-item/toast-item.style.js +16 -0
- package/dist/components/toast-wrapper/toast-wrapper.component.d.ts +24 -0
- package/dist/components/toast-wrapper/toast-wrapper.component.js +37 -0
- package/dist/components/toast-wrapper/toast-wrapper.d.ts +8 -0
- package/dist/components/toast-wrapper/toast-wrapper.js +6 -0
- package/dist/components/toast-wrapper/toast-wrapper.style.d.ts +1 -0
- package/dist/components/toast-wrapper/toast-wrapper.style.js +20 -0
- package/dist/custom-elements.json +450 -12
- package/dist/index.d.ts +1 -0
- package/dist/index.js +43 -40
- package/dist/internal/components/hint/hint.component.js +12 -10
- package/dist/internal/components/hint/hint.styles.js +26 -10
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +2 -0
- package/dist/react/skf-toast/index.d.ts +3 -0
- package/dist/react/skf-toast/index.js +13 -0
- package/dist/react/skf-toast-wrapper/index.d.ts +3 -0
- package/dist/react/skf-toast-wrapper/index.js +13 -0
- package/dist/styles/form-field.styles.js +4 -0
- package/dist/types/jsx/custom-element-jsx.d.ts +41 -3
- package/dist/types/vue/index.d.ts +42 -2
- package/dist/vscode.html-custom-data.json +40 -1
- package/dist/web-types.json +90 -4
- package/package.json +3 -3
@@ -186,7 +186,8 @@
|
|
186
186
|
"text": "boolean | undefined"
|
187
187
|
},
|
188
188
|
"description": "If true, alert is being used as a toast (alertdialog) with an close button",
|
189
|
-
"attribute": "closeable"
|
189
|
+
"attribute": "closeable",
|
190
|
+
"reflects": true
|
190
191
|
},
|
191
192
|
{
|
192
193
|
"kind": "field",
|
@@ -214,7 +215,8 @@
|
|
214
215
|
"text": "\"error\" | \"info\" | \"warning\" | \"success\" | \"alert\""
|
215
216
|
},
|
216
217
|
"description": "If defined, gives the supplied appearance",
|
217
|
-
"attribute": "severity"
|
218
|
+
"attribute": "severity",
|
219
|
+
"reflects": true
|
218
220
|
}
|
219
221
|
],
|
220
222
|
"events": [
|
@@ -2619,15 +2621,13 @@
|
|
2619
2621
|
},
|
2620
2622
|
{
|
2621
2623
|
"kind": "field",
|
2622
|
-
"name": "
|
2623
|
-
"description": "A readonly property that returns the selected value(s) in a array"
|
2624
|
-
"readonly": true
|
2624
|
+
"name": "selectedValues",
|
2625
|
+
"description": "A readonly property that returns the selected value(s) in a array"
|
2625
2626
|
},
|
2626
2627
|
{
|
2627
2628
|
"kind": "field",
|
2628
|
-
"name": "
|
2629
|
-
"description": "A readonly property that returns the selected slot(s) text content in a array"
|
2630
|
-
"readonly": true
|
2629
|
+
"name": "selectedOptionsText",
|
2630
|
+
"description": "A readonly property that returns the selected slot(s) text content in a array"
|
2631
2631
|
},
|
2632
2632
|
{
|
2633
2633
|
"kind": "field",
|
@@ -2717,8 +2717,7 @@
|
|
2717
2717
|
{
|
2718
2718
|
"kind": "field",
|
2719
2719
|
"name": "value",
|
2720
|
-
"description": "Read only, returns the selected value. (if multiple: in a comma separated string)"
|
2721
|
-
"readonly": true
|
2720
|
+
"description": "Read only, returns the selected value. (if multiple: in a comma separated string)"
|
2722
2721
|
},
|
2723
2722
|
{
|
2724
2723
|
"kind": "field",
|
@@ -2945,7 +2944,7 @@
|
|
2945
2944
|
"kind": "field",
|
2946
2945
|
"name": "iconColor",
|
2947
2946
|
"type": {
|
2948
|
-
"text": "
|
2947
|
+
"text": "SeverityFgColor | undefined"
|
2949
2948
|
},
|
2950
2949
|
"description": "If defined, sets provided color on the icon",
|
2951
2950
|
"attribute": "icon-color",
|
@@ -3030,7 +3029,7 @@
|
|
3030
3029
|
{
|
3031
3030
|
"name": "icon-color",
|
3032
3031
|
"type": {
|
3033
|
-
"text": "
|
3032
|
+
"text": "SeverityFgColor | undefined"
|
3034
3033
|
},
|
3035
3034
|
"description": "If defined, sets provided color on the icon",
|
3036
3035
|
"fieldName": "iconColor"
|
@@ -3866,6 +3865,445 @@
|
|
3866
3865
|
}
|
3867
3866
|
}
|
3868
3867
|
]
|
3868
|
+
},
|
3869
|
+
{
|
3870
|
+
"kind": "javascript-module",
|
3871
|
+
"path": "src/components/toast/toast.component.ts",
|
3872
|
+
"declarations": [
|
3873
|
+
{
|
3874
|
+
"kind": "class",
|
3875
|
+
"description": "A simple toast component that displays a message to the user. Use by appending a <skf-toast> tag to the DOM. Position in DOM is irrelevant.",
|
3876
|
+
"name": "SkfToast",
|
3877
|
+
"slots": [
|
3878
|
+
{
|
3879
|
+
"description": "The component's placeholder content",
|
3880
|
+
"name": ""
|
3881
|
+
}
|
3882
|
+
],
|
3883
|
+
"members": [
|
3884
|
+
{
|
3885
|
+
"kind": "field",
|
3886
|
+
"name": "closeable",
|
3887
|
+
"type": {
|
3888
|
+
"text": "boolean"
|
3889
|
+
},
|
3890
|
+
"default": "false",
|
3891
|
+
"description": "If provided, adds a close button to the toast and will not disapear until user actively dismisses it.",
|
3892
|
+
"attribute": "closeable"
|
3893
|
+
},
|
3894
|
+
{
|
3895
|
+
"kind": "field",
|
3896
|
+
"name": "debug",
|
3897
|
+
"type": {
|
3898
|
+
"text": "boolean"
|
3899
|
+
},
|
3900
|
+
"default": "false",
|
3901
|
+
"attribute": "debug"
|
3902
|
+
},
|
3903
|
+
{
|
3904
|
+
"kind": "field",
|
3905
|
+
"name": "severity",
|
3906
|
+
"type": {
|
3907
|
+
"text": "'info' | 'success' | 'warning' | 'error'"
|
3908
|
+
},
|
3909
|
+
"default": "'info'",
|
3910
|
+
"description": "Severity of the toast.",
|
3911
|
+
"attribute": "severity"
|
3912
|
+
},
|
3913
|
+
{
|
3914
|
+
"kind": "field",
|
3915
|
+
"name": "timer",
|
3916
|
+
"type": {
|
3917
|
+
"text": "number"
|
3918
|
+
},
|
3919
|
+
"default": "5",
|
3920
|
+
"description": "Time in seconds before the toast disappears.",
|
3921
|
+
"attribute": "timer"
|
3922
|
+
},
|
3923
|
+
{
|
3924
|
+
"kind": "field",
|
3925
|
+
"name": "topOffset",
|
3926
|
+
"type": {
|
3927
|
+
"text": "number | undefined"
|
3928
|
+
},
|
3929
|
+
"description": "offsets where toasts emerge vertically",
|
3930
|
+
"attribute": "topOffset"
|
3931
|
+
}
|
3932
|
+
],
|
3933
|
+
"attributes": [
|
3934
|
+
{
|
3935
|
+
"name": "closeable",
|
3936
|
+
"type": {
|
3937
|
+
"text": "boolean"
|
3938
|
+
},
|
3939
|
+
"default": "false",
|
3940
|
+
"description": "If provided, adds a close button to the toast and will not disapear until user actively dismisses it.",
|
3941
|
+
"fieldName": "closeable"
|
3942
|
+
},
|
3943
|
+
{
|
3944
|
+
"name": "debug",
|
3945
|
+
"type": {
|
3946
|
+
"text": "boolean"
|
3947
|
+
},
|
3948
|
+
"default": "false",
|
3949
|
+
"fieldName": "debug"
|
3950
|
+
},
|
3951
|
+
{
|
3952
|
+
"name": "severity",
|
3953
|
+
"type": {
|
3954
|
+
"text": "'info' | 'success' | 'warning' | 'error'"
|
3955
|
+
},
|
3956
|
+
"default": "'info'",
|
3957
|
+
"description": "Severity of the toast.",
|
3958
|
+
"fieldName": "severity"
|
3959
|
+
},
|
3960
|
+
{
|
3961
|
+
"name": "timer",
|
3962
|
+
"type": {
|
3963
|
+
"text": "number"
|
3964
|
+
},
|
3965
|
+
"default": "5",
|
3966
|
+
"description": "Time in seconds before the toast disappears.",
|
3967
|
+
"fieldName": "timer"
|
3968
|
+
},
|
3969
|
+
{
|
3970
|
+
"name": "topOffset",
|
3971
|
+
"type": {
|
3972
|
+
"text": "number | undefined"
|
3973
|
+
},
|
3974
|
+
"description": "offsets where toasts emerge vertically",
|
3975
|
+
"fieldName": "topOffset"
|
3976
|
+
}
|
3977
|
+
],
|
3978
|
+
"superclass": {
|
3979
|
+
"name": "SkfElement",
|
3980
|
+
"package": "@internal/components/skf-element"
|
3981
|
+
},
|
3982
|
+
"tagName": "skf-toast",
|
3983
|
+
"customElement": true
|
3984
|
+
}
|
3985
|
+
],
|
3986
|
+
"exports": [
|
3987
|
+
{
|
3988
|
+
"kind": "js",
|
3989
|
+
"name": "SkfToast",
|
3990
|
+
"declaration": {
|
3991
|
+
"name": "SkfToast",
|
3992
|
+
"module": "src/components/toast/toast.component.ts"
|
3993
|
+
}
|
3994
|
+
}
|
3995
|
+
]
|
3996
|
+
},
|
3997
|
+
{
|
3998
|
+
"kind": "javascript-module",
|
3999
|
+
"path": "src/components/toast-item/toast-item.component.ts",
|
4000
|
+
"declarations": [
|
4001
|
+
{
|
4002
|
+
"kind": "class",
|
4003
|
+
"description": "",
|
4004
|
+
"name": "SkfToastItem",
|
4005
|
+
"members": [
|
4006
|
+
{
|
4007
|
+
"kind": "field",
|
4008
|
+
"name": "_closeableInitialState",
|
4009
|
+
"type": {
|
4010
|
+
"text": "boolean"
|
4011
|
+
},
|
4012
|
+
"privacy": "protected",
|
4013
|
+
"default": "!!this.closeable"
|
4014
|
+
},
|
4015
|
+
{
|
4016
|
+
"kind": "field",
|
4017
|
+
"name": "_parentAnimationDiv",
|
4018
|
+
"type": {
|
4019
|
+
"text": "HTMLDivElement | null"
|
4020
|
+
},
|
4021
|
+
"privacy": "protected",
|
4022
|
+
"default": "this.parentElement"
|
4023
|
+
},
|
4024
|
+
{
|
4025
|
+
"kind": "field",
|
4026
|
+
"name": "_currentTimeoutId",
|
4027
|
+
"type": {
|
4028
|
+
"text": "ReturnType<typeof setTimeout> | null"
|
4029
|
+
},
|
4030
|
+
"privacy": "private",
|
4031
|
+
"description": "If not cloaseable, timeout id for the toast",
|
4032
|
+
"default": "null"
|
4033
|
+
},
|
4034
|
+
{
|
4035
|
+
"kind": "field",
|
4036
|
+
"name": "_timeleft",
|
4037
|
+
"type": {
|
4038
|
+
"text": "number"
|
4039
|
+
},
|
4040
|
+
"privacy": "private",
|
4041
|
+
"description": "If not closseable, time left on the timer when the mouse enters the toast",
|
4042
|
+
"default": "0"
|
4043
|
+
},
|
4044
|
+
{
|
4045
|
+
"kind": "field",
|
4046
|
+
"name": "_timeoutStarted",
|
4047
|
+
"type": {
|
4048
|
+
"text": "number"
|
4049
|
+
},
|
4050
|
+
"privacy": "private",
|
4051
|
+
"description": "If not closseable, time when the timeout started",
|
4052
|
+
"default": "0"
|
4053
|
+
},
|
4054
|
+
{
|
4055
|
+
"kind": "field",
|
4056
|
+
"name": "originEl",
|
4057
|
+
"type": {
|
4058
|
+
"text": "HTMLElement | null"
|
4059
|
+
},
|
4060
|
+
"default": "null"
|
4061
|
+
},
|
4062
|
+
{
|
4063
|
+
"kind": "field",
|
4064
|
+
"name": "timer",
|
4065
|
+
"type": {
|
4066
|
+
"text": "number"
|
4067
|
+
},
|
4068
|
+
"default": "0",
|
4069
|
+
"attribute": "timer",
|
4070
|
+
"reflects": true
|
4071
|
+
},
|
4072
|
+
{
|
4073
|
+
"kind": "method",
|
4074
|
+
"name": "_animateIn"
|
4075
|
+
},
|
4076
|
+
{
|
4077
|
+
"kind": "field",
|
4078
|
+
"name": "_handleMouseEnter"
|
4079
|
+
},
|
4080
|
+
{
|
4081
|
+
"kind": "field",
|
4082
|
+
"name": "_handleMouseLeave"
|
4083
|
+
},
|
4084
|
+
{
|
4085
|
+
"kind": "field",
|
4086
|
+
"name": "_removeToast"
|
4087
|
+
},
|
4088
|
+
{
|
4089
|
+
"kind": "field",
|
4090
|
+
"name": "parentAnimationDiv",
|
4091
|
+
"readonly": true
|
4092
|
+
},
|
4093
|
+
{
|
4094
|
+
"kind": "field",
|
4095
|
+
"name": "closeable",
|
4096
|
+
"type": {
|
4097
|
+
"text": "boolean | undefined"
|
4098
|
+
},
|
4099
|
+
"description": "If true, alert is being used as a toast (alertdialog) with an close button",
|
4100
|
+
"attribute": "closeable",
|
4101
|
+
"reflects": true,
|
4102
|
+
"inheritedFrom": {
|
4103
|
+
"name": "SkfAlert",
|
4104
|
+
"module": "src/components/alert/alert.component.ts"
|
4105
|
+
}
|
4106
|
+
},
|
4107
|
+
{
|
4108
|
+
"kind": "field",
|
4109
|
+
"name": "buttonLabel",
|
4110
|
+
"type": {
|
4111
|
+
"text": "string"
|
4112
|
+
},
|
4113
|
+
"default": "'Close'",
|
4114
|
+
"description": "Close button aria-label",
|
4115
|
+
"attribute": "button-label",
|
4116
|
+
"inheritedFrom": {
|
4117
|
+
"name": "SkfAlert",
|
4118
|
+
"module": "src/components/alert/alert.component.ts"
|
4119
|
+
}
|
4120
|
+
},
|
4121
|
+
{
|
4122
|
+
"kind": "field",
|
4123
|
+
"name": "icon",
|
4124
|
+
"type": {
|
4125
|
+
"text": "SkfIcon['name'] | undefined"
|
4126
|
+
},
|
4127
|
+
"description": "If defined, displays leading icon",
|
4128
|
+
"attribute": "icon",
|
4129
|
+
"inheritedFrom": {
|
4130
|
+
"name": "SkfAlert",
|
4131
|
+
"module": "src/components/alert/alert.component.ts"
|
4132
|
+
}
|
4133
|
+
},
|
4134
|
+
{
|
4135
|
+
"kind": "field",
|
4136
|
+
"name": "severity",
|
4137
|
+
"type": {
|
4138
|
+
"text": "\"error\" | \"info\" | \"warning\" | \"success\" | \"alert\""
|
4139
|
+
},
|
4140
|
+
"description": "If defined, gives the supplied appearance",
|
4141
|
+
"attribute": "severity",
|
4142
|
+
"reflects": true,
|
4143
|
+
"inheritedFrom": {
|
4144
|
+
"name": "SkfAlert",
|
4145
|
+
"module": "src/components/alert/alert.component.ts"
|
4146
|
+
}
|
4147
|
+
}
|
4148
|
+
],
|
4149
|
+
"attributes": [
|
4150
|
+
{
|
4151
|
+
"name": "timer",
|
4152
|
+
"type": {
|
4153
|
+
"text": "number"
|
4154
|
+
},
|
4155
|
+
"default": "0",
|
4156
|
+
"fieldName": "timer"
|
4157
|
+
},
|
4158
|
+
{
|
4159
|
+
"name": "closeable",
|
4160
|
+
"type": {
|
4161
|
+
"text": "boolean | undefined"
|
4162
|
+
},
|
4163
|
+
"description": "If true, alert is being used as a toast (alertdialog) with an close button",
|
4164
|
+
"fieldName": "closeable",
|
4165
|
+
"inheritedFrom": {
|
4166
|
+
"name": "SkfAlert",
|
4167
|
+
"module": "src/components/alert/alert.component.ts"
|
4168
|
+
}
|
4169
|
+
},
|
4170
|
+
{
|
4171
|
+
"name": "button-label",
|
4172
|
+
"type": {
|
4173
|
+
"text": "string"
|
4174
|
+
},
|
4175
|
+
"default": "'Close'",
|
4176
|
+
"description": "Close button aria-label",
|
4177
|
+
"fieldName": "buttonLabel",
|
4178
|
+
"inheritedFrom": {
|
4179
|
+
"name": "SkfAlert",
|
4180
|
+
"module": "src/components/alert/alert.component.ts"
|
4181
|
+
}
|
4182
|
+
},
|
4183
|
+
{
|
4184
|
+
"name": "icon",
|
4185
|
+
"type": {
|
4186
|
+
"text": "SkfIcon['name'] | undefined"
|
4187
|
+
},
|
4188
|
+
"description": "If defined, displays leading icon",
|
4189
|
+
"fieldName": "icon",
|
4190
|
+
"inheritedFrom": {
|
4191
|
+
"name": "SkfAlert",
|
4192
|
+
"module": "src/components/alert/alert.component.ts"
|
4193
|
+
}
|
4194
|
+
},
|
4195
|
+
{
|
4196
|
+
"name": "severity",
|
4197
|
+
"type": {
|
4198
|
+
"text": "\"error\" | \"info\" | \"warning\" | \"success\" | \"alert\""
|
4199
|
+
},
|
4200
|
+
"description": "If defined, gives the supplied appearance",
|
4201
|
+
"fieldName": "severity",
|
4202
|
+
"inheritedFrom": {
|
4203
|
+
"name": "SkfAlert",
|
4204
|
+
"module": "src/components/alert/alert.component.ts"
|
4205
|
+
}
|
4206
|
+
}
|
4207
|
+
],
|
4208
|
+
"superclass": {
|
4209
|
+
"name": "SkfAlert",
|
4210
|
+
"package": "@components/alert/alert.component.js"
|
4211
|
+
},
|
4212
|
+
"slots": [
|
4213
|
+
{
|
4214
|
+
"description": "Alert message. **Notice!** See design principles for approved content",
|
4215
|
+
"name": "",
|
4216
|
+
"inheritedFrom": {
|
4217
|
+
"name": "SkfAlert",
|
4218
|
+
"module": "src/components/alert/alert.component.ts"
|
4219
|
+
}
|
4220
|
+
},
|
4221
|
+
{
|
4222
|
+
"description": "Slot for the link",
|
4223
|
+
"name": "link",
|
4224
|
+
"inheritedFrom": {
|
4225
|
+
"name": "SkfAlert",
|
4226
|
+
"module": "src/components/alert/alert.component.ts"
|
4227
|
+
}
|
4228
|
+
}
|
4229
|
+
],
|
4230
|
+
"events": [
|
4231
|
+
{
|
4232
|
+
"description": "Fires when the close button is clicked",
|
4233
|
+
"name": "skf-alert-close",
|
4234
|
+
"inheritedFrom": {
|
4235
|
+
"name": "SkfAlert",
|
4236
|
+
"module": "src/components/alert/alert.component.ts"
|
4237
|
+
}
|
4238
|
+
}
|
4239
|
+
]
|
4240
|
+
}
|
4241
|
+
],
|
4242
|
+
"exports": [
|
4243
|
+
{
|
4244
|
+
"kind": "js",
|
4245
|
+
"name": "SkfToastItem",
|
4246
|
+
"declaration": {
|
4247
|
+
"name": "SkfToastItem",
|
4248
|
+
"module": "src/components/toast-item/toast-item.component.ts"
|
4249
|
+
}
|
4250
|
+
}
|
4251
|
+
]
|
4252
|
+
},
|
4253
|
+
{
|
4254
|
+
"kind": "javascript-module",
|
4255
|
+
"path": "src/components/toast-wrapper/toast-wrapper.component.ts",
|
4256
|
+
"declarations": [
|
4257
|
+
{
|
4258
|
+
"kind": "class",
|
4259
|
+
"description": "The `<skf-toast-wrapper>` is a component without UI that positions where the toast shows up on the screen. The toast-wrapper is used internally by the toast component.",
|
4260
|
+
"name": "SkfToastWrapper",
|
4261
|
+
"slots": [
|
4262
|
+
{
|
4263
|
+
"description": "The alert components that the toast creates will render here.",
|
4264
|
+
"name": ""
|
4265
|
+
}
|
4266
|
+
],
|
4267
|
+
"members": [
|
4268
|
+
{
|
4269
|
+
"kind": "field",
|
4270
|
+
"name": "debug",
|
4271
|
+
"type": {
|
4272
|
+
"text": "boolean"
|
4273
|
+
},
|
4274
|
+
"default": "false",
|
4275
|
+
"attribute": "debug",
|
4276
|
+
"reflects": true
|
4277
|
+
}
|
4278
|
+
],
|
4279
|
+
"attributes": [
|
4280
|
+
{
|
4281
|
+
"name": "debug",
|
4282
|
+
"type": {
|
4283
|
+
"text": "boolean"
|
4284
|
+
},
|
4285
|
+
"default": "false",
|
4286
|
+
"fieldName": "debug"
|
4287
|
+
}
|
4288
|
+
],
|
4289
|
+
"superclass": {
|
4290
|
+
"name": "SkfElement",
|
4291
|
+
"package": "@internal/components/skf-element"
|
4292
|
+
},
|
4293
|
+
"tagName": "skf-toast-wrapper",
|
4294
|
+
"customElement": true
|
4295
|
+
}
|
4296
|
+
],
|
4297
|
+
"exports": [
|
4298
|
+
{
|
4299
|
+
"kind": "js",
|
4300
|
+
"name": "SkfToastWrapper",
|
4301
|
+
"declaration": {
|
4302
|
+
"name": "SkfToastWrapper",
|
4303
|
+
"module": "src/components/toast-wrapper/toast-wrapper.component.ts"
|
4304
|
+
}
|
4305
|
+
}
|
4306
|
+
]
|
3869
4307
|
}
|
3870
4308
|
]
|
3871
4309
|
}
|
package/dist/index.d.ts
CHANGED
@@ -18,3 +18,4 @@ export { default as SkfSelect } from './components/select/select.js';
|
|
18
18
|
export { default as SkfSwitch } from './components/switch/switch.js';
|
19
19
|
export { default as SkfTag } from './components/tag/tag.js';
|
20
20
|
export { default as SkfTextArea } from './components/textarea/textarea.js';
|
21
|
+
export { default as SkfToast } from './components/toast/toast.js';
|
package/dist/index.js
CHANGED
@@ -18,47 +18,50 @@ import "./components/select/select.js";
|
|
18
18
|
import "./components/switch/switch.js";
|
19
19
|
import "./components/tag/tag.js";
|
20
20
|
import "./components/textarea/textarea.js";
|
21
|
-
import
|
21
|
+
import "./components/toast/toast.js";
|
22
|
+
import { SkfAccordion as L } from "./components/accordion/accordion.component.js";
|
22
23
|
import { SkfAlert as h } from "./components/alert/alert.component.js";
|
23
|
-
import { SkfButton as
|
24
|
-
import { SkfCard as
|
25
|
-
import { SkfCheckbox as
|
26
|
-
import { SkfCollapse as
|
27
|
-
import { SkfDivider as
|
28
|
-
import { SkfHeading as
|
29
|
-
import { SkfIcon as
|
30
|
-
import { SkfInput as
|
31
|
-
import { SkfLink as
|
32
|
-
import { SkfLoader as
|
33
|
-
import { SkfLogo as
|
34
|
-
import { SkfRadio as
|
35
|
-
import { SkfSelectOptionGroup as
|
36
|
-
import { SkfSelectOption as
|
37
|
-
import { SkfSelect as
|
38
|
-
import { SkfSwitch as
|
39
|
-
import { SkfTag as
|
40
|
-
import { SkfTextArea as
|
41
|
-
import {
|
24
|
+
import { SkfButton as b } from "./components/button/button.component.js";
|
25
|
+
import { SkfCard as w } from "./components/card/card.component.js";
|
26
|
+
import { SkfCheckbox as D } from "./components/checkbox/checkbox.component.js";
|
27
|
+
import { SkfCollapse as R } from "./components/collapse/collapse.component.js";
|
28
|
+
import { SkfDivider as q } from "./components/divider/divider.component.js";
|
29
|
+
import { SkfHeading as z } from "./components/heading/heading.component.js";
|
30
|
+
import { SkfIcon as F } from "./components/icon/icon.component.js";
|
31
|
+
import { SkfInput as K } from "./components/input/input.component.js";
|
32
|
+
import { SkfLink as N } from "./components/link/link.component.js";
|
33
|
+
import { SkfLoader as Q } from "./components/loader/loader.component.js";
|
34
|
+
import { SkfLogo as V } from "./components/logo/logo.component.js";
|
35
|
+
import { SkfRadio as X } from "./components/radio/radio.component.js";
|
36
|
+
import { SkfSelectOptionGroup as Z } from "./components/select-option-group/select-option-group.component.js";
|
37
|
+
import { SkfSelectOption as $ } from "./components/select-option/select-option.component.js";
|
38
|
+
import { SkfSelect as ro } from "./components/select/select.component.js";
|
39
|
+
import { SkfSwitch as po } from "./components/switch/switch.component.js";
|
40
|
+
import { SkfTag as mo } from "./components/tag/tag.component.js";
|
41
|
+
import { SkfTextArea as io } from "./components/textarea/textarea.component.js";
|
42
|
+
import { SkfToast as ko } from "./components/toast/toast.component.js";
|
43
|
+
import { SkfAccordionItem as no } from "./components/accordion/accordion-item.js";
|
42
44
|
export {
|
43
|
-
|
44
|
-
|
45
|
+
L as SkfAccordion,
|
46
|
+
no as SkfAccordionItem,
|
45
47
|
h as SkfAlert,
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
48
|
+
b as SkfButton,
|
49
|
+
w as SkfCard,
|
50
|
+
D as SkfCheckbox,
|
51
|
+
R as SkfCollapse,
|
52
|
+
q as SkfDivider,
|
53
|
+
z as SkfHeading,
|
54
|
+
F as SkfIcon,
|
55
|
+
K as SkfInput,
|
56
|
+
N as SkfLink,
|
57
|
+
Q as SkfLoader,
|
58
|
+
V as SkfLogo,
|
59
|
+
$ as SkfOption,
|
60
|
+
Z as SkfOptionGroup,
|
61
|
+
X as SkfRadio,
|
62
|
+
ro as SkfSelect,
|
63
|
+
po as SkfSwitch,
|
64
|
+
mo as SkfTag,
|
65
|
+
io as SkfTextArea,
|
66
|
+
ko as SkfToast
|
64
67
|
};
|
@@ -4,26 +4,28 @@ import { ICON_SEVERITY as n } from "../../constants/iconSeverity.js";
|
|
4
4
|
import 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
|
8
|
-
var
|
7
|
+
import d from "./hint.styles.js";
|
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);
|
11
|
-
return r &&
|
11
|
+
return r && a(i, m, r), r;
|
12
12
|
};
|
13
13
|
const o = class o extends l {
|
14
14
|
render() {
|
15
15
|
return f`
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
<div id="root">
|
17
|
+
${this.severity && f`
|
18
|
+
<skf-icon color=${this.severity} name="${n[this.severity]}" size="xs">
|
19
|
+
</skf-icon>
|
20
|
+
`}
|
21
|
+
<slot></slot>
|
22
|
+
</div>
|
21
23
|
`;
|
22
24
|
}
|
23
25
|
};
|
24
|
-
o.styles = [v,
|
26
|
+
o.styles = [v, d];
|
25
27
|
let e = o;
|
26
|
-
|
28
|
+
c([
|
27
29
|
y()
|
28
30
|
], e.prototype, "severity");
|
29
31
|
export {
|