@skf-design-system/ui-components 1.0.0-alpha.27 → 1.0.0-alpha.28
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/custom-elements.json +18265 -0
- 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 +24 -0
- package/dist/components/button/button.component.js +79 -55
- package/dist/components/button/button.styles.js +1 -0
- package/dist/components/checkbox/checkbox.component.d.ts +3 -8
- package/dist/components/checkbox/checkbox.component.js +95 -90
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/input/input.component.d.ts +10 -0
- package/dist/components/input/input.component.js +89 -82
- package/dist/components/progress/progress.component.d.ts +22 -0
- package/dist/components/progress/progress.component.js +40 -0
- package/dist/components/progress/progress.d.ts +8 -0
- package/dist/components/progress/progress.js +6 -0
- package/dist/components/progress/progress.styles.d.ts +1 -0
- package/dist/components/progress/progress.styles.js +47 -0
- package/dist/components/radio/radio.component.d.ts +4 -6
- package/dist/components/radio/radio.component.js +93 -77
- package/dist/components/select/select.component.d.ts +5 -2
- package/dist/components/select/select.component.js +103 -88
- package/dist/components/select/select.controllers.js +5 -2
- package/dist/components/switch/switch.component.js +4 -1
- package/dist/components/tab/tab.component.d.ts +29 -0
- package/dist/components/tab/tab.component.js +57 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +6 -0
- package/dist/components/tab/tab.styles.d.ts +1 -0
- package/dist/components/tab/tab.styles.js +123 -0
- package/dist/components/tab-group/tab-group.component.d.ts +43 -0
- package/dist/components/tab-group/tab-group.component.js +98 -0
- package/dist/components/tab-group/tab-group.d.ts +8 -0
- package/dist/components/tab-group/tab-group.js +6 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
- package/dist/components/tab-group/tab-group.styles.js +75 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +19 -0
- package/dist/components/tab-panel/tab-panel.component.js +36 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +6 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +1 -0
- package/dist/components/tab-panel/tab-panel.styles.js +13 -0
- package/dist/components/textarea/textarea.component.js +5 -5
- 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.styles.d.ts +1 -0
- package/dist/components/toast/toast.styles.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.styles.d.ts +2 -0
- package/dist/components/toast-item/toast-item.styles.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.styles.d.ts +1 -0
- package/dist/components/toast-wrapper/toast-wrapper.styles.js +20 -0
- package/dist/custom-elements.json +1167 -311
- package/dist/index.d.ts +5 -0
- package/dist/index.js +57 -42
- package/dist/internal/components/formBase.d.ts +1 -0
- package/dist/internal/components/formBase.js +11 -11
- package/dist/internal/helpers/watch.d.ts +27 -0
- package/dist/internal/helpers/watch.js +28 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.js +6 -0
- package/dist/react/skf-button/index.d.ts +7 -1
- package/dist/react/skf-button/index.js +5 -1
- package/dist/react/skf-progress/index.d.ts +3 -0
- package/dist/react/skf-progress/index.js +13 -0
- package/dist/react/skf-tab/index.d.ts +12 -0
- package/dist/react/skf-tab/index.js +18 -0
- package/dist/react/skf-tab-group/index.d.ts +3 -0
- package/dist/react/skf-tab-group/index.js +13 -0
- package/dist/react/skf-tab-panel/index.d.ts +3 -0
- package/dist/react/skf-tab-panel/index.js +13 -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/types/jsx/custom-element-jsx.d.ts +115 -1096
- package/dist/types/vue/index.d.ts +147 -8
- package/dist/vscode.html-custom-data.json +116 -16
- package/dist/web-types.json +304 -35
- package/package.json +27 -27
@@ -0,0 +1,37 @@
|
|
1
|
+
import { SkfElement as h } from "../../internal/components/skf-element.js";
|
2
|
+
import d from "../../styles/component.styles.js";
|
3
|
+
import { html as m } from "lit";
|
4
|
+
import { property as p, queryAssignedElements as a } from "lit/decorators.js";
|
5
|
+
import { styles as u } from "./toast-wrapper.styles.js";
|
6
|
+
var y = Object.defineProperty, r = (l, i, n, g) => {
|
7
|
+
for (var t = void 0, o = l.length - 1, f; o >= 0; o--)
|
8
|
+
(f = l[o]) && (t = f(i, n, t) || t);
|
9
|
+
return t && y(i, n, t), t;
|
10
|
+
};
|
11
|
+
const s = class s extends h {
|
12
|
+
constructor() {
|
13
|
+
super(...arguments), this.debug = !1, this._handleSlotChange = () => {
|
14
|
+
this._slottedChildren.length === 0 && this.remove();
|
15
|
+
};
|
16
|
+
}
|
17
|
+
firstUpdated() {
|
18
|
+
this._handleSlotChange(), this.topOffset && this.style.setProperty("--skf-toast-offset-top", `${this.topOffset.toString()}px`);
|
19
|
+
}
|
20
|
+
render() {
|
21
|
+
return m`<slot @slotchange=${this._handleSlotChange}></slot>`;
|
22
|
+
}
|
23
|
+
};
|
24
|
+
s.styles = [d, u];
|
25
|
+
let e = s;
|
26
|
+
r([
|
27
|
+
p({ type: Boolean, reflect: !0 })
|
28
|
+
], e.prototype, "debug");
|
29
|
+
r([
|
30
|
+
a()
|
31
|
+
], e.prototype, "_slottedChildren");
|
32
|
+
r([
|
33
|
+
p({ type: Number, reflect: !0 })
|
34
|
+
], e.prototype, "topOffset");
|
35
|
+
export {
|
36
|
+
e as SkfToastWrapper
|
37
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { css as s } from "lit";
|
2
|
+
const t = s`
|
3
|
+
:host {
|
4
|
+
all: unset;
|
5
|
+
display: flex;
|
6
|
+
flex-direction: column;
|
7
|
+
gap: calc(0.5rem - 3px);
|
8
|
+
inline-size: min(calc(100% - var(--skf-spacing-200)), 520px);
|
9
|
+
inset: var(--skf-toast-offset-top, var(--skf-spacing-100)) 0 auto;
|
10
|
+
margin-inline: auto;
|
11
|
+
position: fixed;
|
12
|
+
}
|
13
|
+
|
14
|
+
::slotted(.toast-item-wrapper) {
|
15
|
+
display: grid;
|
16
|
+
}
|
17
|
+
`;
|
18
|
+
export {
|
19
|
+
t as styles
|
20
|
+
};
|