@skf-design-system/ui-components 1.0.2-beta.6 → 1.0.2-beta.9
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 +18 -0
- package/dist/components/alert/alert.component.d.ts +3 -2
- package/dist/components/alert/alert.component.js +39 -33
- package/dist/components/button/button.styles.js +3 -3
- package/dist/components/checkbox/checkbox.component.d.ts +6 -5
- package/dist/components/checkbox/checkbox.component.js +77 -76
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/datepicker/datepicker-calendar.component.d.ts +4 -0
- package/dist/components/datepicker/datepicker-calendar.component.js +134 -127
- package/dist/components/datepicker/datepicker-popup.component.d.ts +4 -0
- package/dist/components/datepicker/datepicker-popup.component.js +100 -88
- package/dist/components/datepicker/datepicker.component.d.ts +4 -2
- package/dist/components/datepicker/datepicker.component.js +150 -140
- package/dist/components/dialog/dialog.component.d.ts +3 -2
- package/dist/components/dialog/dialog.component.js +39 -37
- package/dist/components/divider/divider.component.js +13 -13
- package/dist/components/divider/divider.styles.js +2 -2
- package/dist/components/drawer/drawer.component.d.ts +3 -2
- package/dist/components/drawer/drawer.component.js +37 -35
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +4 -2
- package/dist/components/header/header.component.js +66 -57
- package/dist/components/header/header.styles.js +2 -2
- package/dist/components/icon/icon.component.js +26 -16
- package/dist/components/icon/icon.styles.js +4 -4
- package/dist/components/input/input.component.d.ts +4 -8
- package/dist/components/input/input.component.js +146 -147
- package/dist/components/input/input.controllers.d.ts +0 -1
- package/dist/components/input/input.controllers.js +12 -12
- package/dist/components/link/link.component.js +19 -12
- package/dist/components/link/link.styles.js +11 -3
- package/dist/components/loader/loader.component.d.ts +0 -2
- package/dist/components/loader/loader.component.js +27 -30
- package/dist/components/loader/loader.styles.js +1 -1
- package/dist/components/menu/menu-item.styles.js +8 -7
- package/dist/components/menu/menu.component.d.ts +4 -1
- package/dist/components/nav/nav.component.d.ts +3 -0
- package/dist/components/nav/nav.component.js +38 -33
- package/dist/components/popover/popover.component.d.ts +6 -3
- package/dist/components/progress/progress.styles.js +3 -3
- package/dist/components/radio/radio.component.d.ts +4 -2
- package/dist/components/radio/radio.component.js +91 -83
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
- package/dist/components/select/select-option.component.d.ts +2 -2
- package/dist/components/select/select-option.component.js +16 -19
- package/dist/components/select/select.component.d.ts +13 -9
- package/dist/components/select/select.component.js +169 -144
- package/dist/components/stepper/stepper-item.styles.js +4 -4
- package/dist/components/switch/switch.component.d.ts +4 -2
- package/dist/components/switch/switch.component.js +64 -56
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tabs/tab.styles.js +2 -2
- package/dist/components/tag/tag.component.d.ts +3 -0
- package/dist/components/tag/tag.component.js +50 -41
- package/dist/components/textarea/textarea.component.d.ts +4 -2
- package/dist/components/textarea/textarea.component.js +126 -118
- package/dist/components/tooltip/tooltip.component.d.ts +8 -2
- package/dist/components/tooltip/tooltip.component.js +3 -0
- package/dist/custom-elements.json +734 -372
- package/dist/internal/base-classes/popover/popover.base.d.ts +21 -2
- package/dist/internal/base-classes/popover/popover.base.js +10 -12
- package/dist/internal/components/formBase.d.ts +1 -0
- package/dist/internal/components/formBase.js +11 -19
- package/dist/internal/controllers/popover.controller.d.ts +2 -0
- package/dist/internal/helpers/uuid.d.ts +8 -10
- package/dist/internal/helpers/uuid.js +4 -11
- package/dist/internal/helpers/watch.d.ts +1 -1
- package/dist/internal/templates/asterisk.d.ts +1 -1
- package/dist/internal/templates/asterisk.js +4 -4
- package/dist/styles/global-alt.css +1 -1
- package/dist/styles/global.css +1 -1
- package/dist/translations/en.d.ts +3 -0
- package/dist/translations/en.js +27 -0
- package/dist/translations/es.d.ts +3 -0
- package/dist/translations/es.js +27 -0
- package/dist/translations/index.d.ts +4 -0
- package/dist/translations/pt.d.ts +3 -0
- package/dist/translations/pt.js +27 -0
- package/dist/translations/sv.d.ts +3 -0
- package/dist/translations/sv.js +27 -0
- package/dist/types/jsx/custom-element-jsx.d.ts +1823 -846
- package/dist/types/vue/index.d.ts +59 -47
- package/dist/utilities/localize.d.ts +28 -0
- package/dist/utilities/localize.js +13 -0
- package/dist/vscode.html-custom-data.json +75 -80
- package/dist/web-types.json +205 -169
- package/package.json +27 -34
- package/custom-elements.json +0 -25490
@@ -1,14 +1,14 @@
|
|
1
|
-
var
|
1
|
+
var b = (e) => {
|
2
2
|
throw TypeError(e);
|
3
3
|
};
|
4
|
-
var
|
5
|
-
var d = (e, i, t) => (
|
4
|
+
var g = (e, i, t) => i.has(e) || b("Cannot " + t);
|
5
|
+
var d = (e, i, t) => (g(e, i, "read from private field"), t ? t.call(e) : i.get(e)), f = (e, i, t) => i.has(e) ? b("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), m = (e, i, t, o) => (g(e, i, "write to private field"), o ? o.call(e, t) : i.set(e, t), t);
|
6
6
|
import "../icon/icon.js";
|
7
7
|
import { SkfElement as C } from "../../internal/components/skf-element.js";
|
8
8
|
import { stateMap as k } from "../../internal/helpers/stateMap.js";
|
9
9
|
import { watch as v } from "../../internal/helpers/watch.js";
|
10
10
|
import { componentStyles as S } from "../../styles/component.styles.js";
|
11
|
-
import { nothing as
|
11
|
+
import { nothing as y } from "lit";
|
12
12
|
import { property as n } from "lit/decorators.js";
|
13
13
|
import { ifDefined as x } from "lit/directives/if-defined.js";
|
14
14
|
import { html as _ } from "lit/static-html.js";
|
@@ -23,12 +23,12 @@ const w = {
|
|
23
23
|
stretch: "stretch"
|
24
24
|
};
|
25
25
|
var a, l;
|
26
|
-
const
|
26
|
+
const u = class u extends C {
|
27
27
|
constructor() {
|
28
28
|
super(...arguments);
|
29
29
|
f(this, a);
|
30
30
|
f(this, l);
|
31
|
-
|
31
|
+
m(this, a, this.attachInternals()), m(this, l, d(this, a).states), this.as = "link", this.color = "primary", this.disabled = !1, this.download = !1, this.iconRight = !1, this.stretch = !1, this._handleClick = () => {
|
32
32
|
var t;
|
33
33
|
if (!(this.as === "button" && this.disabled) && (this.emit("skf-link-click", { detail: { href: this.href, route: this.route } }), this.as === "link" && !this.route && ((t = this.href) != null && t.trim())))
|
34
34
|
if (this.target)
|
@@ -55,21 +55,28 @@ const m = class m extends C {
|
|
55
55
|
}
|
56
56
|
/** @internal */
|
57
57
|
_renderIcon() {
|
58
|
-
const t = this.color === "inverse" ? "inverse" : "
|
59
|
-
return _
|
58
|
+
const t = this.color === "inverse" ? "inverse" : "emphasized";
|
59
|
+
return _`
|
60
|
+
<skf-icon
|
61
|
+
color=${t}
|
62
|
+
data-color=${this.disabled ? "custom" : y}
|
63
|
+
name=${x(this.icon)}
|
64
|
+
size="sm"
|
65
|
+
></skf-icon>
|
66
|
+
`;
|
60
67
|
}
|
61
68
|
render() {
|
62
69
|
return _`
|
63
70
|
<div id="root" part="root">
|
64
|
-
${this.icon && !this.iconRight ? this._renderIcon() :
|
71
|
+
${this.icon && !this.iconRight ? this._renderIcon() : y}
|
65
72
|
<slot></slot>
|
66
|
-
${this.icon && this.iconRight ? this._renderIcon() :
|
73
|
+
${this.icon && this.iconRight ? this._renderIcon() : y}
|
67
74
|
</div>
|
68
75
|
`;
|
69
76
|
}
|
70
77
|
};
|
71
|
-
a = new WeakMap(), l = new WeakMap(),
|
72
|
-
let r =
|
78
|
+
a = new WeakMap(), l = new WeakMap(), u.styles = [S, A];
|
79
|
+
let r = u;
|
73
80
|
s([
|
74
81
|
n({ type: String })
|
75
82
|
], r.prototype, "as", 2);
|
@@ -35,11 +35,19 @@ const e = o`
|
|
35
35
|
}
|
36
36
|
}
|
37
37
|
|
38
|
-
:host(
|
39
|
-
|
38
|
+
:host([aria-disabled]) {
|
39
|
+
#root {
|
40
|
+
--_skf-link-color: var(--_skf-link-color-disabled);
|
41
|
+
|
42
|
+
cursor: not-allowed;
|
43
|
+
}
|
44
|
+
|
45
|
+
skf-icon {
|
46
|
+
color: inherit;
|
47
|
+
}
|
40
48
|
}
|
41
49
|
|
42
|
-
:host(:hover) #root {
|
50
|
+
:host(:not([aria-disabled]):hover) #root {
|
43
51
|
--_skf-link-color: var(--_skf-link-color-hover);
|
44
52
|
}
|
45
53
|
}
|
@@ -11,8 +11,6 @@ type Size = 'md' | 'sm';
|
|
11
11
|
export declare class SkfLoader extends SkfElement {
|
12
12
|
#private;
|
13
13
|
static styles: CSSResultGroup;
|
14
|
-
/** Defines the aria-label */
|
15
|
-
ariaLabel: string;
|
16
14
|
/** If true, inverts the color (to be used on colored backgrounds) */
|
17
15
|
invert: boolean;
|
18
16
|
/** Defines the size of the loader */
|
@@ -1,37 +1,37 @@
|
|
1
|
-
var
|
1
|
+
var f = (t) => {
|
2
2
|
throw TypeError(t);
|
3
3
|
};
|
4
|
-
var
|
5
|
-
var
|
6
|
-
import { SkfElement as
|
4
|
+
var y = (t, e, r) => e.has(t) || f("Cannot " + r);
|
5
|
+
var c = (t, e, r) => (y(t, e, "read from private field"), r ? r.call(t) : e.get(t)), m = (t, e, r) => e.has(t) ? f("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), v = (t, e, r, i) => (y(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
|
6
|
+
import { SkfElement as b } from "../../internal/components/skf-element.js";
|
7
7
|
import { stateMap as g } from "../../internal/helpers/stateMap.js";
|
8
8
|
import { watch as C } from "../../internal/helpers/watch.js";
|
9
9
|
import { componentStyles as O } from "../../styles/component.styles.js";
|
10
10
|
import { html as P } from "lit";
|
11
|
-
import { property as
|
12
|
-
import { styles as
|
13
|
-
var
|
14
|
-
for (var s = i > 1 ? void 0 : i ?
|
15
|
-
(
|
16
|
-
return i && s &&
|
11
|
+
import { property as _ } from "lit/decorators.js";
|
12
|
+
import { styles as j } from "./loader.styles.js";
|
13
|
+
var w = Object.defineProperty, z = Object.getOwnPropertyDescriptor, h = (t, e, r, i) => {
|
14
|
+
for (var s = i > 1 ? void 0 : i ? z(e, r) : e, n = t.length - 1, l; n >= 0; n--)
|
15
|
+
(l = t[n]) && (s = (i ? l(e, r, s) : l(s)) || s);
|
16
|
+
return i && s && w(e, r, s), s;
|
17
17
|
};
|
18
18
|
const u = {
|
19
19
|
invert: "invert",
|
20
20
|
size: ["md", "sm"]
|
21
21
|
};
|
22
|
-
var
|
23
|
-
const
|
22
|
+
var a, p;
|
23
|
+
const d = class d extends b {
|
24
24
|
constructor() {
|
25
25
|
super(...arguments);
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
m(this, a);
|
27
|
+
m(this, p);
|
28
|
+
v(this, a, this.attachInternals()), v(this, p, c(this, a).states), this.invert = !1, this.size = "md";
|
29
29
|
}
|
30
30
|
connectedCallback() {
|
31
31
|
super.connectedCallback(), this.role = "progressbar", this.ariaLive = "polite";
|
32
32
|
}
|
33
33
|
_handleStateChange(r, i, s) {
|
34
|
-
g(
|
34
|
+
g(c(this, p), u[r]).set(s);
|
35
35
|
}
|
36
36
|
render() {
|
37
37
|
return P`
|
@@ -43,20 +43,17 @@ const f = class f extends _ {
|
|
43
43
|
`;
|
44
44
|
}
|
45
45
|
};
|
46
|
-
|
47
|
-
let
|
48
|
-
|
49
|
-
|
50
|
-
],
|
51
|
-
|
52
|
-
|
53
|
-
],
|
54
|
-
|
55
|
-
d({ type: String })
|
56
|
-
], a.prototype, "size", 2);
|
57
|
-
l([
|
46
|
+
a = new WeakMap(), p = new WeakMap(), d.styles = [O, j];
|
47
|
+
let o = d;
|
48
|
+
h([
|
49
|
+
_({ type: Boolean })
|
50
|
+
], o.prototype, "invert", 2);
|
51
|
+
h([
|
52
|
+
_({ type: String })
|
53
|
+
], o.prototype, "size", 2);
|
54
|
+
h([
|
58
55
|
C(Object.keys(u))
|
59
|
-
],
|
56
|
+
], o.prototype, "_handleStateChange", 1);
|
60
57
|
export {
|
61
|
-
|
58
|
+
o as SkfLoader
|
62
59
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { css as o } from "lit";
|
2
|
-
const
|
2
|
+
const r = o`
|
3
3
|
@layer components {
|
4
4
|
:host {
|
5
5
|
display: block;
|
@@ -7,16 +7,17 @@ const e = o`
|
|
7
7
|
|
8
8
|
#root {
|
9
9
|
block-size: var(--skf-size-44);
|
10
|
+
display: flex;
|
10
11
|
padding-inline: var(--skf-spacing-75);
|
12
|
+
}
|
13
|
+
}
|
11
14
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
}
|
16
|
-
}
|
15
|
+
@layer states {
|
16
|
+
:host(:not([aria-disabled]):hover) #root {
|
17
|
+
background-color: var(--skf-color-blue-lightest);
|
17
18
|
}
|
18
19
|
}
|
19
20
|
`;
|
20
21
|
export {
|
21
|
-
|
22
|
+
r as styles
|
22
23
|
};
|
@@ -11,10 +11,13 @@ import type { CSSResultGroup } from 'lit';
|
|
11
11
|
* @attribute {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} [placement='bottom-start'] - The placement of the menu
|
12
12
|
* @attribute {string} anchor - The id of the element the menu will be anchored to
|
13
13
|
*
|
14
|
+
* @property {(void) => void} open() - Method that opens the menu
|
15
|
+
* @property {(void) => void} close() - Method that closes the menu
|
16
|
+
*
|
14
17
|
* @event {CustomEvent} skf-opened - Fired when the menu is opened
|
15
18
|
* @event {CustomEvent} skf-closed - Fired when the menu is closed
|
16
19
|
*
|
17
|
-
* @slot - The menu
|
20
|
+
* @slot - The menu content
|
18
21
|
*
|
19
22
|
* @tagname skf-menu
|
20
23
|
*/
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { SkfElement } from '../../internal/components/skf-element';
|
2
|
+
import { type Language } from '../../utilities/localize.js';
|
2
3
|
import { type CSSResultGroup } from 'lit';
|
3
4
|
/**
|
4
5
|
* The `<skf-nav>` is a component that displays a list of <nav-items>.
|
@@ -12,6 +13,8 @@ import { type CSSResultGroup } from 'lit';
|
|
12
13
|
export declare class SkfNav extends SkfElement {
|
13
14
|
#private;
|
14
15
|
static styles: CSSResultGroup;
|
16
|
+
/** Sets the internal language of the component */
|
17
|
+
lang: Language;
|
15
18
|
/** If true, the navigation will be displayed vertically */
|
16
19
|
vertical: boolean;
|
17
20
|
/** @internal */
|
@@ -1,55 +1,60 @@
|
|
1
1
|
var u = (t) => {
|
2
2
|
throw TypeError(t);
|
3
3
|
};
|
4
|
-
var
|
5
|
-
var
|
6
|
-
import { SkfElement as
|
7
|
-
import { stateMap as
|
4
|
+
var g = (t, e, r) => e.has(t) || u("Cannot " + r);
|
5
|
+
var p = (t, e, r) => (g(t, e, "read from private field"), r ? r.call(t) : e.get(t)), c = (t, e, r) => e.has(t) ? u("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), m = (t, e, r, i) => (g(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
|
6
|
+
import { SkfElement as d } from "../../internal/components/skf-element.js";
|
7
|
+
import { stateMap as C } from "../../internal/helpers/stateMap.js";
|
8
8
|
import { watch as b } from "../../internal/helpers/watch.js";
|
9
|
-
import { componentStyles as
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
import { componentStyles as w } from "../../styles/component.styles.js";
|
10
|
+
import { LocalizeController as O } from "../../utilities/localize.js";
|
11
|
+
import { html as P } from "lit";
|
12
|
+
import { property as _, queryAssignedElements as D } from "lit/decorators.js";
|
13
|
+
import { ifDefined as E } from "lit/directives/if-defined.js";
|
14
|
+
import { styles as S } from "./nav.styles.js";
|
15
|
+
var j = Object.defineProperty, x = Object.getOwnPropertyDescriptor, h = (t, e, r, i) => {
|
16
|
+
for (var o = i > 1 ? void 0 : i ? x(e, r) : e, f = t.length - 1, v; f >= 0; f--)
|
17
|
+
(v = t[f]) && (o = (i ? v(e, r, o) : v(o)) || o);
|
18
|
+
return i && o && j(e, r, o), o;
|
19
|
+
}, a, l, n;
|
20
|
+
const y = class y extends d {
|
20
21
|
constructor() {
|
21
22
|
super(...arguments);
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
c(this, a);
|
24
|
+
c(this, l);
|
25
|
+
c(this, n);
|
26
|
+
m(this, a, new O(this)), m(this, l, this.attachInternals()), m(this, n, p(this, l).states), this.lang = "en", this.vertical = !1;
|
25
27
|
}
|
26
28
|
connectedCallback() {
|
27
|
-
super.connectedCallback(), this.ariaLabel = this.
|
29
|
+
super.connectedCallback(), this.ariaLabel = p(this, a).term("mainNavigation"), this.role = "navigation";
|
28
30
|
}
|
29
31
|
_handleStateChange() {
|
30
|
-
|
32
|
+
C(p(this, n), "vertical").set(this.vertical), this._items.forEach((r) => {
|
31
33
|
r.vertical = this.vertical;
|
32
34
|
});
|
33
35
|
}
|
34
36
|
render() {
|
35
|
-
return
|
36
|
-
<ul aria-orientation=${
|
37
|
+
return P`
|
38
|
+
<ul aria-orientation=${E(this.vertical ? "vertical" : void 0)}>
|
37
39
|
<slot></slot>
|
38
40
|
</ul>
|
39
41
|
`;
|
40
42
|
}
|
41
43
|
};
|
42
|
-
|
43
|
-
let
|
44
|
-
|
45
|
-
|
46
|
-
],
|
47
|
-
|
48
|
-
|
49
|
-
],
|
50
|
-
|
44
|
+
a = new WeakMap(), l = new WeakMap(), n = new WeakMap(), y.styles = [w, S];
|
45
|
+
let s = y;
|
46
|
+
h([
|
47
|
+
_({ type: String })
|
48
|
+
], s.prototype, "lang", 2);
|
49
|
+
h([
|
50
|
+
_({ type: Boolean })
|
51
|
+
], s.prototype, "vertical", 2);
|
52
|
+
h([
|
53
|
+
D({ selector: "skf-nav-item" })
|
54
|
+
], s.prototype, "_items", 2);
|
55
|
+
h([
|
51
56
|
b("vertical")
|
52
|
-
],
|
57
|
+
], s.prototype, "_handleStateChange", 1);
|
53
58
|
export {
|
54
|
-
|
59
|
+
s as SkfNav
|
55
60
|
};
|
@@ -9,10 +9,13 @@ import type { CSSResultGroup } from 'lit';
|
|
9
9
|
* See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
|
10
10
|
*
|
11
11
|
* @attribute {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} [placement='bottom-start'] - The placement of the popover
|
12
|
-
* @attribute {string} anchor - The id of the element the
|
12
|
+
* @attribute {string} anchor - The id of the element the popover will be anchored to
|
13
13
|
*
|
14
|
-
* @
|
15
|
-
* @
|
14
|
+
* @property {(void) => void} open() - Method that opens the popover
|
15
|
+
* @property {(void) => void} close() - Method that closes the popover
|
16
|
+
*
|
17
|
+
* @event {CustomEvent} skf-opened - Fired when the popover is opened
|
18
|
+
* @event {CustomEvent} skf-closed - Fired when the popover is closed
|
16
19
|
*
|
17
20
|
* @slot - The popover content
|
18
21
|
*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { css as r } from "lit";
|
2
|
-
const
|
2
|
+
const a = r`
|
3
3
|
@layer components {
|
4
4
|
@layer base {
|
5
5
|
#root {
|
@@ -11,7 +11,7 @@ const s = r`
|
|
11
11
|
overflow: hidden;
|
12
12
|
|
13
13
|
&::after {
|
14
|
-
background-color: var(--skf-bg-color-
|
14
|
+
background-color: var(--skf-bg-color-emphasized);
|
15
15
|
block-size: inherit;
|
16
16
|
border-radius: inherit;
|
17
17
|
content: '';
|
@@ -51,5 +51,5 @@ const s = r`
|
|
51
51
|
}
|
52
52
|
`;
|
53
53
|
export {
|
54
|
-
|
54
|
+
a as styles
|
55
55
|
};
|
@@ -2,6 +2,7 @@ import '../icon/icon.js';
|
|
2
2
|
import { FormBase } from '../../internal/components/formBase.js';
|
3
3
|
import type { FormFieldSeverity } from '../../internal/types.js';
|
4
4
|
import type { FormFieldBaseProps } from '../../internal/types/formField.js';
|
5
|
+
import { type Language } from '../../utilities/localize.js';
|
5
6
|
import { type CSSResultGroup } from 'lit';
|
6
7
|
/**
|
7
8
|
* The `<skf-radio>` component is used to create a radio input
|
@@ -18,6 +19,7 @@ import { type CSSResultGroup } from 'lit';
|
|
18
19
|
* @tagname skf-radio
|
19
20
|
*/
|
20
21
|
export declare class SkfRadio extends FormBase implements FormFieldBaseProps {
|
22
|
+
#private;
|
21
23
|
static styles: CSSResultGroup;
|
22
24
|
/**
|
23
25
|
* @internal
|
@@ -32,10 +34,10 @@ export declare class SkfRadio extends FormBase implements FormFieldBaseProps {
|
|
32
34
|
customInvalid: boolean;
|
33
35
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
34
36
|
label?: string;
|
37
|
+
/** Sets the internal language of the component */
|
38
|
+
lang: Language;
|
35
39
|
/** If defined, adds name to the input-element */
|
36
40
|
name?: string;
|
37
|
-
/** If defined, renders an alternative A11y text for the asterisk */
|
38
|
-
requiredLabel?: string;
|
39
41
|
/** Size of the Radio */
|
40
42
|
size: 'sm' | 'md';
|
41
43
|
/** If defined, displays provided severity state */
|