@swell/swell-ui 0.0.0-stage → 0.1.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/CHANGELOG.md +22 -0
- package/README.md +165 -2
- package/custom-elements.json +8274 -0
- package/dist/chunks/badge-Dt6q8Cqa.js +11 -0
- package/dist/chunks/button-C7nCiu-t.js +123 -0
- package/dist/chunks/card-CvSQEug8.js +10 -0
- package/dist/chunks/checkbox-BRI_A1TP.js +99 -0
- package/dist/chunks/chip-BtnufSMG.js +48 -0
- package/dist/chunks/config-C-FYxOaJ.js +588 -0
- package/dist/chunks/define-BlQTa1g4.js +19 -0
- package/dist/chunks/description-BHfQ8meK.js +19 -0
- package/dist/chunks/disclosure-CET8-H6f.js +56 -0
- package/dist/chunks/divider-BfkO0c1j.js +27 -0
- package/dist/chunks/element-B4-_7TLZ.js +138 -0
- package/dist/chunks/input-Uun-ls2_.js +53 -0
- package/dist/chunks/link-8qHFEKQE.js +53 -0
- package/dist/chunks/link-D4NC86oc.js +24 -0
- package/dist/chunks/lookup-5icr_T6o.js +205 -0
- package/dist/chunks/lookup-list-Bw6OJoDS.js +19 -0
- package/dist/chunks/lookup-option-Mn3k8W2M.js +26 -0
- package/dist/chunks/popover-D3Ob6slA.js +92 -0
- package/dist/chunks/popup-Dbh2fchP.js +21 -0
- package/dist/chunks/quantity-h3wqn8tC.js +140 -0
- package/dist/chunks/radio-BhFDL3pO.js +192 -0
- package/dist/chunks/radio-option-hT29S8Zl.js +88 -0
- package/dist/chunks/select-DS1n_htj.js +331 -0
- package/dist/chunks/select-option-DoM9GAe0.js +66 -0
- package/dist/chunks/skeleton-DfPjhls9.js +13 -0
- package/dist/chunks/status-B23JZ5RQ.js +71 -0
- package/dist/chunks/tab-BpjFUbFO.js +107 -0
- package/dist/chunks/tabs-aWKq1Iaz.js +122 -0
- package/dist/chunks/text-ZWPy-iB3.js +26 -0
- package/dist/chunks/text-field-BB_MRt5h.js +158 -0
- package/dist/chunks/textarea-L6_OJ2IN.js +18 -0
- package/dist/chunks/thumbnail-CLe9AsFg.js +21 -0
- package/dist/chunks/toggle-C7-oPgWR.js +22 -0
- package/dist/chunks/ui-HcyMKwzs.js +11 -0
- package/dist/editors/vscode.css-custom-data.json +824 -0
- package/dist/editors/vscode.html-custom-data.json +1156 -0
- package/dist/editors/web-types.json +1706 -0
- package/dist/elements/badge.d.ts +1 -0
- package/dist/elements/badge.js +1 -0
- package/dist/elements/button.d.ts +1 -0
- package/dist/elements/button.js +1 -0
- package/dist/elements/card.d.ts +1 -0
- package/dist/elements/card.js +1 -0
- package/dist/elements/checkbox.d.ts +1 -0
- package/dist/elements/checkbox.js +1 -0
- package/dist/elements/chip.d.ts +1 -0
- package/dist/elements/chip.js +1 -0
- package/dist/elements/disclosure.d.ts +1 -0
- package/dist/elements/disclosure.js +1 -0
- package/dist/elements/divider.d.ts +1 -0
- package/dist/elements/divider.js +1 -0
- package/dist/elements/input.d.ts +1 -0
- package/dist/elements/input.js +1 -0
- package/dist/elements/link.d.ts +1 -0
- package/dist/elements/link.js +1 -0
- package/dist/elements/lookup-list.d.ts +1 -0
- package/dist/elements/lookup-list.js +1 -0
- package/dist/elements/lookup-option.d.ts +1 -0
- package/dist/elements/lookup-option.js +1 -0
- package/dist/elements/lookup.d.ts +1 -0
- package/dist/elements/lookup.js +1 -0
- package/dist/elements/popover.d.ts +1 -0
- package/dist/elements/popover.js +1 -0
- package/dist/elements/quantity.d.ts +1 -0
- package/dist/elements/quantity.js +1 -0
- package/dist/elements/radio-option.d.ts +1 -0
- package/dist/elements/radio-option.js +1 -0
- package/dist/elements/radio.d.ts +1 -0
- package/dist/elements/radio.js +1 -0
- package/dist/elements/select-option.d.ts +1 -0
- package/dist/elements/select-option.js +1 -0
- package/dist/elements/select.d.ts +1 -0
- package/dist/elements/select.js +1 -0
- package/dist/elements/skeleton.d.ts +1 -0
- package/dist/elements/skeleton.js +1 -0
- package/dist/elements/status.d.ts +1 -0
- package/dist/elements/status.js +1 -0
- package/dist/elements/tab.d.ts +1 -0
- package/dist/elements/tab.js +1 -0
- package/dist/elements/tabs.d.ts +1 -0
- package/dist/elements/tabs.js +1 -0
- package/dist/elements/text.d.ts +1 -0
- package/dist/elements/text.js +1 -0
- package/dist/elements/textarea.d.ts +1 -0
- package/dist/elements/textarea.js +1 -0
- package/dist/elements/thumbnail.d.ts +1 -0
- package/dist/elements/thumbnail.js +1 -0
- package/dist/elements/ui.d.ts +1 -0
- package/dist/elements/ui.js +1 -0
- package/dist/frameworks/jsx.d.ts +3589 -0
- package/dist/frameworks/preact.d.ts +9 -0
- package/dist/frameworks/solid.d.ts +7 -0
- package/dist/frameworks/svelte.d.ts +1676 -0
- package/dist/frameworks/vue.d.ts +827 -0
- package/dist/index.js +80 -0
- package/dist/react/badge.d.ts +12 -0
- package/dist/react/badge.js +4 -0
- package/dist/react/button.d.ts +16 -0
- package/dist/react/button.js +4 -0
- package/dist/react/card.d.ts +11 -0
- package/dist/react/card.js +4 -0
- package/dist/react/checkbox.d.ts +14 -0
- package/dist/react/checkbox.js +4 -0
- package/dist/react/chip.d.ts +12 -0
- package/dist/react/chip.js +4 -0
- package/dist/react/create.js +49 -0
- package/dist/react/disclosure.d.ts +11 -0
- package/dist/react/disclosure.js +4 -0
- package/dist/react/divider.d.ts +9 -0
- package/dist/react/divider.js +4 -0
- package/dist/react/index.d.ts +26 -0
- package/dist/react/index.js +26 -0
- package/dist/react/input.d.ts +28 -0
- package/dist/react/input.js +4 -0
- package/dist/react/link.d.ts +15 -0
- package/dist/react/link.js +4 -0
- package/dist/react/lookup-list.d.ts +9 -0
- package/dist/react/lookup-list.js +4 -0
- package/dist/react/lookup-option.d.ts +11 -0
- package/dist/react/lookup-option.js +4 -0
- package/dist/react/lookup.d.ts +28 -0
- package/dist/react/lookup.js +4 -0
- package/dist/react/popover.d.ts +11 -0
- package/dist/react/popover.js +4 -0
- package/dist/react/quantity.d.ts +15 -0
- package/dist/react/quantity.js +4 -0
- package/dist/react/radio-option.d.ts +11 -0
- package/dist/react/radio-option.js +4 -0
- package/dist/react/radio.d.ts +18 -0
- package/dist/react/radio.js +4 -0
- package/dist/react/select-option.d.ts +11 -0
- package/dist/react/select-option.js +4 -0
- package/dist/react/select.d.ts +20 -0
- package/dist/react/select.js +4 -0
- package/dist/react/skeleton.d.ts +11 -0
- package/dist/react/skeleton.js +4 -0
- package/dist/react/status.d.ts +12 -0
- package/dist/react/status.js +4 -0
- package/dist/react/tab.d.ts +10 -0
- package/dist/react/tab.js +4 -0
- package/dist/react/tabs.d.ts +17 -0
- package/dist/react/tabs.js +4 -0
- package/dist/react/text.d.ts +12 -0
- package/dist/react/text.js +4 -0
- package/dist/react/textarea.d.ts +23 -0
- package/dist/react/textarea.js +4 -0
- package/dist/react/thumbnail.d.ts +13 -0
- package/dist/react/thumbnail.js +4 -0
- package/dist/react/ui.d.ts +10 -0
- package/dist/react/ui.js +4 -0
- package/dist/types/components/core/badge/badge.d.ts +25 -0
- package/dist/types/components/core/button/button.d.ts +60 -0
- package/dist/types/components/core/card/card.d.ts +21 -0
- package/dist/types/components/core/checkbox/checkbox.d.ts +46 -0
- package/dist/types/components/core/chip/chip.d.ts +36 -0
- package/dist/types/components/core/disclosure/disclosure.d.ts +37 -0
- package/dist/types/components/core/divider/divider.d.ts +21 -0
- package/dist/types/components/core/index.d.ts +21 -0
- package/dist/types/components/core/input/input.d.ts +57 -0
- package/dist/types/components/core/link/link.d.ts +42 -0
- package/dist/types/components/core/lookup/lookup-list.d.ts +21 -0
- package/dist/types/components/core/lookup/lookup-option.d.ts +27 -0
- package/dist/types/components/core/lookup/lookup.d.ts +32 -0
- package/dist/types/components/core/popover/popover.d.ts +33 -0
- package/dist/types/components/core/quantity/quantity.d.ts +47 -0
- package/dist/types/components/core/radio/radio-option.d.ts +82 -0
- package/dist/types/components/core/radio/radio.d.ts +65 -0
- package/dist/types/components/core/select/select-option.d.ts +69 -0
- package/dist/types/components/core/select/select.d.ts +70 -0
- package/dist/types/components/core/skeleton/skeleton.d.ts +23 -0
- package/dist/types/components/core/status/status.d.ts +38 -0
- package/dist/types/components/core/tabs/tab.d.ts +76 -0
- package/dist/types/components/core/tabs/tabs.d.ts +46 -0
- package/dist/types/components/core/text/text.d.ts +23 -0
- package/dist/types/components/core/textarea/textarea.d.ts +45 -0
- package/dist/types/components/core/thumbnail/thumbnail.d.ts +27 -0
- package/dist/types/components/core/ui/ui.d.ts +16 -0
- package/dist/types/components/elements.d.ts +1 -0
- package/dist/types/react/create.d.ts +8 -0
- package/dist/types/runtime/config.d.ts +25 -0
- package/dist/types/runtime/css.d.ts +12 -0
- package/dist/types/runtime/define.d.ts +4 -0
- package/dist/types/runtime/description.d.ts +12 -0
- package/dist/types/runtime/element.d.ts +61 -0
- package/dist/types/runtime/focus.d.ts +5 -0
- package/dist/types/runtime/form.d.ts +5 -0
- package/dist/types/runtime/index.d.ts +2 -0
- package/dist/types/runtime/link.d.ts +17 -0
- package/dist/types/runtime/loader.d.ts +21 -0
- package/dist/types/runtime/popup.d.ts +8 -0
- package/dist/types/runtime/sheet.d.ts +31 -0
- package/dist/types/runtime/text-field.d.ts +47 -0
- package/dist/types/runtime/toggle.d.ts +8 -0
- package/dist/types/runtime/tokens.generated.d.ts +492 -0
- package/dist/types/runtime/values.d.ts +6 -0
- package/dist/types/runtime/variants.d.ts +4 -0
- package/package.json +136 -4
- package/resolver.json +111 -0
- package/src/components/core/badge/tokens.json +152 -0
- package/src/components/core/button/tokens.dark.json +16 -0
- package/src/components/core/button/tokens.json +232 -0
- package/src/components/core/card/tokens.json +35 -0
- package/src/components/core/checkbox/tokens.json +15 -0
- package/src/components/core/chip/tokens.json +144 -0
- package/src/components/core/link/tokens.json +24 -0
- package/src/components/core/radio/tokens.dark.json +17 -0
- package/src/components/core/radio/tokens.json +114 -0
- package/src/components/core/status/tokens.dark.json +71 -0
- package/src/components/core/status/tokens.json +135 -0
- package/src/components/core/tabs/tokens.json +80 -0
- package/src/components/core/text/tokens.json +222 -0
- package/src/components/core/thumbnail/tokens.json +46 -0
- package/tokens/border.json +38 -0
- package/tokens/color.dark.json +88 -0
- package/tokens/color.json +115 -0
- package/tokens/control.json +115 -0
- package/tokens/field.dark.json +65 -0
- package/tokens/field.json +158 -0
- package/tokens/focus.json +26 -0
- package/tokens/font.json +117 -0
- package/tokens/motion.json +49 -0
- package/tokens/overlay.json +81 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { a as e, c as t, n, r, s as i } from "./chunks/config-C-FYxOaJ.js";
|
|
2
|
+
// src/runtime/loader.ts
|
|
3
|
+
var a = ["swell-ui"], o = (e) => /\/\.swell\/ui\/v\d+\/index\.js$/.test(new URL(e).pathname);
|
|
4
|
+
function s(e, t) {
|
|
5
|
+
let n = t?.refresh, r = new Map(Object.entries(e)), i = /* @__PURE__ */ new Map(), o, s = new CSSStyleSheet(), c = [...r.keys()].filter((e) => !a.includes(e));
|
|
6
|
+
c.length > 0 && s.replaceSync(`:is(${c.join(", ")}):not(:defined) { visibility: hidden; }`);
|
|
7
|
+
let l = new MutationObserver((e) => {
|
|
8
|
+
for (let t of e) for (let e of t.addedNodes) e instanceof Element && p(e).catch(() => {});
|
|
9
|
+
});
|
|
10
|
+
function u(e) {
|
|
11
|
+
let a = i.get(e);
|
|
12
|
+
if (a) return a;
|
|
13
|
+
let s = r.get(e);
|
|
14
|
+
return s ? (a = s().then(() => {}, (t) => {
|
|
15
|
+
if (!n) throw t;
|
|
16
|
+
return o ??= n(), o.then((t) => t.load([e]));
|
|
17
|
+
}).catch((n) => {
|
|
18
|
+
throw t && console.error(`Swell UI couldn't load <${e}>.`, n), n;
|
|
19
|
+
}), i.set(e, a), a) : Promise.reject(/* @__PURE__ */ Error(`Swell UI has no element <${e}>.`));
|
|
20
|
+
}
|
|
21
|
+
function d(e) {
|
|
22
|
+
let t = [...e instanceof Element ? [e] : [], ...e.querySelectorAll(":not(:defined)")];
|
|
23
|
+
return [...new Set(t.map((e) => e.localName).filter((e) => r.has(e) && !customElements.get(e)))];
|
|
24
|
+
}
|
|
25
|
+
let f = (e) => Promise.all(e).then(() => {}), p = (e) => f(d(e).map(u));
|
|
26
|
+
return {
|
|
27
|
+
load(e) {
|
|
28
|
+
if (Array.isArray(e)) return f(e.map(u));
|
|
29
|
+
let t = e;
|
|
30
|
+
return !(t instanceof Element) && !t.adoptedStyleSheets.includes(s) && t.adoptedStyleSheets.push(s), l.observe(t, {
|
|
31
|
+
childList: !0,
|
|
32
|
+
subtree: !0
|
|
33
|
+
}), p(t);
|
|
34
|
+
},
|
|
35
|
+
ready(e) {
|
|
36
|
+
return f((e ?? d(document)).map((e) => i.get(e) ?? customElements.whenDefined(e)));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
var c = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
41
|
+
"./core/badge/badge.ts": () => import("./chunks/badge-Dt6q8Cqa.js").then((e) => e.n),
|
|
42
|
+
"./core/button/button.ts": () => import("./chunks/button-C7nCiu-t.js").then((e) => e.n),
|
|
43
|
+
"./core/card/card.ts": () => import("./chunks/card-CvSQEug8.js").then((e) => e.n),
|
|
44
|
+
"./core/checkbox/checkbox.ts": () => import("./chunks/checkbox-BRI_A1TP.js").then((e) => e.n),
|
|
45
|
+
"./core/chip/chip.ts": () => import("./chunks/chip-BtnufSMG.js").then((e) => e.n),
|
|
46
|
+
"./core/disclosure/disclosure.ts": () => import("./chunks/disclosure-CET8-H6f.js").then((e) => e.n),
|
|
47
|
+
"./core/divider/divider.ts": () => import("./chunks/divider-BfkO0c1j.js").then((e) => e.n),
|
|
48
|
+
"./core/input/input.ts": () => import("./chunks/input-Uun-ls2_.js").then((e) => e.n),
|
|
49
|
+
"./core/link/link.ts": () => import("./chunks/link-8qHFEKQE.js").then((e) => e.n),
|
|
50
|
+
"./core/lookup/lookup-list.ts": () => import("./chunks/lookup-list-Bw6OJoDS.js").then((e) => e.n),
|
|
51
|
+
"./core/lookup/lookup-option.ts": () => import("./chunks/lookup-option-Mn3k8W2M.js").then((e) => e.r),
|
|
52
|
+
"./core/lookup/lookup.ts": () => import("./chunks/lookup-5icr_T6o.js").then((e) => e.n),
|
|
53
|
+
"./core/popover/popover.ts": () => import("./chunks/popover-D3Ob6slA.js").then((e) => e.n),
|
|
54
|
+
"./core/quantity/quantity.ts": () => import("./chunks/quantity-h3wqn8tC.js").then((e) => e.n),
|
|
55
|
+
"./core/radio/radio-option.ts": () => import("./chunks/radio-option-hT29S8Zl.js").then((e) => e.r),
|
|
56
|
+
"./core/radio/radio.ts": () => import("./chunks/radio-BhFDL3pO.js").then((e) => e.n),
|
|
57
|
+
"./core/select/select-option.ts": () => import("./chunks/select-option-DoM9GAe0.js").then((e) => e.i),
|
|
58
|
+
"./core/select/select.ts": () => import("./chunks/select-DS1n_htj.js").then((e) => e.n),
|
|
59
|
+
"./core/skeleton/skeleton.ts": () => import("./chunks/skeleton-DfPjhls9.js").then((e) => e.n),
|
|
60
|
+
"./core/status/status.ts": () => import("./chunks/status-B23JZ5RQ.js").then((e) => e.n),
|
|
61
|
+
"./core/tabs/tab.ts": () => import("./chunks/tab-BpjFUbFO.js").then((e) => e.i),
|
|
62
|
+
"./core/tabs/tabs.ts": () => import("./chunks/tabs-aWKq1Iaz.js").then((e) => e.n),
|
|
63
|
+
"./core/text/text.ts": () => import("./chunks/text-ZWPy-iB3.js").then((e) => e.n),
|
|
64
|
+
"./core/textarea/textarea.ts": () => import("./chunks/textarea-L6_OJ2IN.js").then((e) => e.n),
|
|
65
|
+
"./core/thumbnail/thumbnail.ts": () => import("./chunks/thumbnail-CLe9AsFg.js").then((e) => e.n),
|
|
66
|
+
"./core/ui/ui.ts": () => import("./chunks/ui-HcyMKwzs.js").then((e) => e.n)
|
|
67
|
+
})).map(([e, t]) => [`swell-${e.slice(e.lastIndexOf("/") + 1, -3)}`, t])), l = !globalThis.SwellUI, u = s(c, l ? { refresh: o(import.meta.url) ? () => import(
|
|
68
|
+
/* @vite-ignore */
|
|
69
|
+
`${import.meta.url}?${Date.now()}`
|
|
70
|
+
) : void 0 } : void 0), d = u.load, f = u.ready;
|
|
71
|
+
globalThis.SwellUI ??= {
|
|
72
|
+
configure: n,
|
|
73
|
+
setTheme: i,
|
|
74
|
+
getConfig: r,
|
|
75
|
+
onChange: e,
|
|
76
|
+
version: t,
|
|
77
|
+
load: d,
|
|
78
|
+
ready: f
|
|
79
|
+
}, l && d(document).catch(() => {});
|
|
80
|
+
export { n as configure, r as getConfig, d as load, e as onChange, f as ready, i as setTheme, t as version };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellBadge as SwellBadgeElement } from "../types/components/core/badge/badge.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellBadge: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellBadgeElement>, never> &
|
|
6
|
+
{
|
|
7
|
+
"variant"?: string;
|
|
8
|
+
"appearance"?: "filled" | "outline";
|
|
9
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
} & RefAttributes<SwellBadgeElement>
|
|
12
|
+
>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellButton as SwellButtonElement } from "../types/components/core/button/button.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellButton: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellButtonElement>, "disabled" | "loading" | "success" | "type"> &
|
|
6
|
+
Partial<Pick<SwellButtonElement, "disabled" | "loading" | "success" | "type">> & {
|
|
7
|
+
"variant"?: string;
|
|
8
|
+
"appearance"?: "filled" | "outline" | "plain";
|
|
9
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
10
|
+
"shape"?: "pill";
|
|
11
|
+
"href"?: string;
|
|
12
|
+
"target"?: string;
|
|
13
|
+
"rel"?: string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
} & RefAttributes<SwellButtonElement>
|
|
16
|
+
>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellCard as SwellCardElement } from "../types/components/core/card/card.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellCard: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellCardElement>, never> &
|
|
6
|
+
{
|
|
7
|
+
"appearance"?: "outline" | "filled";
|
|
8
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
} & RefAttributes<SwellCardElement>
|
|
11
|
+
>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellCheckbox as SwellCheckboxElement } from "../types/components/core/checkbox/checkbox.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellCheckbox: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellCheckboxElement>, "onChange" | "checked" | "value" | "disabled" | "required" | "invalid" | "name"> &
|
|
6
|
+
Partial<Pick<SwellCheckboxElement, "checked" | "value" | "disabled" | "required" | "invalid" | "name">> & {
|
|
7
|
+
"label"?: string;
|
|
8
|
+
"hint"?: string;
|
|
9
|
+
"error"?: string;
|
|
10
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
11
|
+
onChange?: (event: Event & { currentTarget: SwellCheckboxElement }) => void;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
} & RefAttributes<SwellCheckboxElement>
|
|
14
|
+
>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellChip as SwellChipElement } from "../types/components/core/chip/chip.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellChip: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellChipElement>, "onRemove" | "disabled"> &
|
|
6
|
+
Partial<Pick<SwellChipElement, "disabled">> & {
|
|
7
|
+
"remove-label"?: string;
|
|
8
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
9
|
+
onRemove?: (event: Event & { currentTarget: SwellChipElement }) => void;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
} & RefAttributes<SwellChipElement>
|
|
12
|
+
>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { createElement as e, forwardRef as t, useCallback as n, useLayoutEffect as r, useRef as i } from "react";
|
|
2
|
+
// src/react/create.ts
|
|
3
|
+
var a = (e) => typeof e == "string" ? e : JSON.stringify(e);
|
|
4
|
+
function o(o, s, c) {
|
|
5
|
+
let l = new Set(c), u = t((t, c) => {
|
|
6
|
+
let u = i(null), d = i({}), f = i({}), p = i({}), m = {}, h = {}, g = {}, _ = {}, v = customElements.get(o)?.prototype;
|
|
7
|
+
for (let [e, n] of Object.entries(t)) e === "children" ? h[e] = n : e in s ? m[e] = n : !l.has(e) && v && e in v && !(e in HTMLElement.prototype) ? _[e] = n : l.has(e) || typeof n == "boolean" && e in HTMLElement.prototype ? g[e] = n : e === "className" ? h.class = n : h[e] = /^(aria|data)-/.test(e) ? n == null ? n : a(n) : typeof n == "boolean" ? n ? "" : void 0 : n;
|
|
8
|
+
r(() => {
|
|
9
|
+
d.current = m;
|
|
10
|
+
let e = u.current;
|
|
11
|
+
if (!e) return;
|
|
12
|
+
for (let t of /* @__PURE__ */ new Set([...Object.keys(f.current), ...Object.keys(g)])) {
|
|
13
|
+
let n = f.current[t], r = g[t];
|
|
14
|
+
r === void 0 ? typeof n == "boolean" && (e[t] = !1) : Object.is(n, r) || (e[t] = r);
|
|
15
|
+
}
|
|
16
|
+
f.current = g;
|
|
17
|
+
let t = u.current;
|
|
18
|
+
for (let e of /* @__PURE__ */ new Set([...Object.keys(p.current), ...Object.keys(_)])) {
|
|
19
|
+
let n = _[e];
|
|
20
|
+
n == null || n === !1 ? t?.removeAttribute(e) : t?.setAttribute(e, n === !0 ? "" : a(n));
|
|
21
|
+
}
|
|
22
|
+
p.current = _;
|
|
23
|
+
}), r(() => {
|
|
24
|
+
let e = u.current;
|
|
25
|
+
if (!e) return;
|
|
26
|
+
let t = Object.entries(s).map(([e, t]) => [t, (t) => d.current[e]?.(t)]);
|
|
27
|
+
for (let [n, r] of t) e.addEventListener(n, r);
|
|
28
|
+
return () => {
|
|
29
|
+
for (let [n, r] of t) e.removeEventListener(n, r);
|
|
30
|
+
};
|
|
31
|
+
}, []);
|
|
32
|
+
let y = n((e) => {
|
|
33
|
+
if (u.current = e, typeof c != "function") {
|
|
34
|
+
c && (c.current = e);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
let t = c(e);
|
|
38
|
+
return typeof t == "function" ? () => {
|
|
39
|
+
u.current = null, t();
|
|
40
|
+
} : void 0;
|
|
41
|
+
}, [c]);
|
|
42
|
+
return e(o, {
|
|
43
|
+
...h,
|
|
44
|
+
ref: y
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
return u.displayName = o, u;
|
|
48
|
+
}
|
|
49
|
+
export { o as createComponent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellDisclosure as SwellDisclosureElement } from "../types/components/core/disclosure/disclosure.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellDisclosure: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellDisclosureElement>, "onToggle" | "open"> &
|
|
6
|
+
Partial<Pick<SwellDisclosureElement, "open">> & {
|
|
7
|
+
"toggle"?: boolean;
|
|
8
|
+
onToggle?: (event: ToggleEvent & { currentTarget: SwellDisclosureElement }) => void;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
} & RefAttributes<SwellDisclosureElement>
|
|
11
|
+
>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellDivider as SwellDividerElement } from "../types/components/core/divider/divider.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellDivider: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellDividerElement>, never> &
|
|
6
|
+
{
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
} & RefAttributes<SwellDividerElement>
|
|
9
|
+
>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { SwellBadge } from "./badge.js";
|
|
2
|
+
export { SwellButton } from "./button.js";
|
|
3
|
+
export { SwellCard } from "./card.js";
|
|
4
|
+
export { SwellCheckbox } from "./checkbox.js";
|
|
5
|
+
export { SwellChip } from "./chip.js";
|
|
6
|
+
export { SwellDisclosure } from "./disclosure.js";
|
|
7
|
+
export { SwellDivider } from "./divider.js";
|
|
8
|
+
export { SwellLink } from "./link.js";
|
|
9
|
+
export { SwellInput } from "./input.js";
|
|
10
|
+
export { SwellLookupList } from "./lookup-list.js";
|
|
11
|
+
export { SwellLookupOption } from "./lookup-option.js";
|
|
12
|
+
export { SwellLookup } from "./lookup.js";
|
|
13
|
+
export { SwellPopover } from "./popover.js";
|
|
14
|
+
export { SwellQuantity } from "./quantity.js";
|
|
15
|
+
export { SwellRadioOption } from "./radio-option.js";
|
|
16
|
+
export { SwellRadio } from "./radio.js";
|
|
17
|
+
export { SwellSelectOption } from "./select-option.js";
|
|
18
|
+
export { SwellSelect } from "./select.js";
|
|
19
|
+
export { SwellSkeleton } from "./skeleton.js";
|
|
20
|
+
export { SwellStatus } from "./status.js";
|
|
21
|
+
export { SwellTab } from "./tab.js";
|
|
22
|
+
export { SwellTabs } from "./tabs.js";
|
|
23
|
+
export { SwellText } from "./text.js";
|
|
24
|
+
export { SwellTextarea } from "./textarea.js";
|
|
25
|
+
export { SwellThumbnail } from "./thumbnail.js";
|
|
26
|
+
export { SwellUi } from "./ui.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { SwellBadge } from "./badge.js";
|
|
2
|
+
export { SwellButton } from "./button.js";
|
|
3
|
+
export { SwellCard } from "./card.js";
|
|
4
|
+
export { SwellCheckbox } from "./checkbox.js";
|
|
5
|
+
export { SwellChip } from "./chip.js";
|
|
6
|
+
export { SwellDisclosure } from "./disclosure.js";
|
|
7
|
+
export { SwellDivider } from "./divider.js";
|
|
8
|
+
export { SwellLink } from "./link.js";
|
|
9
|
+
export { SwellInput } from "./input.js";
|
|
10
|
+
export { SwellLookupList } from "./lookup-list.js";
|
|
11
|
+
export { SwellLookupOption } from "./lookup-option.js";
|
|
12
|
+
export { SwellLookup } from "./lookup.js";
|
|
13
|
+
export { SwellPopover } from "./popover.js";
|
|
14
|
+
export { SwellQuantity } from "./quantity.js";
|
|
15
|
+
export { SwellRadioOption } from "./radio-option.js";
|
|
16
|
+
export { SwellRadio } from "./radio.js";
|
|
17
|
+
export { SwellSelectOption } from "./select-option.js";
|
|
18
|
+
export { SwellSelect } from "./select.js";
|
|
19
|
+
export { SwellSkeleton } from "./skeleton.js";
|
|
20
|
+
export { SwellStatus } from "./status.js";
|
|
21
|
+
export { SwellTab } from "./tab.js";
|
|
22
|
+
export { SwellTabs } from "./tabs.js";
|
|
23
|
+
export { SwellText } from "./text.js";
|
|
24
|
+
export { SwellTextarea } from "./textarea.js";
|
|
25
|
+
export { SwellThumbnail } from "./thumbnail.js";
|
|
26
|
+
export { SwellUi } from "./ui.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellInput as SwellInputElement } from "../types/components/core/input/input.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellInput: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellInputElement>, "onInput" | "onChange" | "value" | "disabled" | "required" | "readOnly" | "invalid" | "name"> &
|
|
6
|
+
Partial<Pick<SwellInputElement, "value" | "disabled" | "required" | "readOnly" | "invalid" | "name">> & {
|
|
7
|
+
"label"?: string;
|
|
8
|
+
"optional"?: string;
|
|
9
|
+
"hint"?: string;
|
|
10
|
+
"error"?: string;
|
|
11
|
+
"type"?: "text" | "email" | "tel" | "password" | "number" | "search" | "url";
|
|
12
|
+
"appearance"?: "outline" | "filled" | "underline";
|
|
13
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
14
|
+
"readonly"?: boolean;
|
|
15
|
+
"placeholder"?: string;
|
|
16
|
+
"autocomplete"?: string;
|
|
17
|
+
"inputmode"?: string;
|
|
18
|
+
"minlength"?: number;
|
|
19
|
+
"maxlength"?: number;
|
|
20
|
+
"pattern"?: string;
|
|
21
|
+
"min"?: string;
|
|
22
|
+
"max"?: string;
|
|
23
|
+
"step"?: string;
|
|
24
|
+
onInput?: (event: Event & { currentTarget: SwellInputElement }) => void;
|
|
25
|
+
onChange?: (event: Event & { currentTarget: SwellInputElement }) => void;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
} & RefAttributes<SwellInputElement>
|
|
28
|
+
>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellLink as SwellLinkElement } from "../types/components/core/link/link.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellLink: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellLinkElement>, never> &
|
|
6
|
+
{
|
|
7
|
+
"href"?: string;
|
|
8
|
+
"target"?: string;
|
|
9
|
+
"rel"?: string;
|
|
10
|
+
"variant"?: string;
|
|
11
|
+
"appearance"?: "underline" | "plain";
|
|
12
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
} & RefAttributes<SwellLinkElement>
|
|
15
|
+
>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellLookupList as SwellLookupListElement } from "../types/components/core/lookup/lookup-list.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellLookupList: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellLookupListElement>, never> &
|
|
6
|
+
{
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
} & RefAttributes<SwellLookupListElement>
|
|
9
|
+
>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellLookupOption as SwellLookupOptionElement } from "../types/components/core/lookup/lookup-option.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellLookupOption: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellLookupOptionElement>, "value" | "disabled"> &
|
|
6
|
+
Partial<Pick<SwellLookupOptionElement, "value" | "disabled">> & {
|
|
7
|
+
"hint"?: string;
|
|
8
|
+
"hidden"?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
} & RefAttributes<SwellLookupOptionElement>
|
|
11
|
+
>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellLookup as SwellLookupElement } from "../types/components/core/lookup/lookup.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellLookup: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellLookupElement>, "onInput" | "onChange" | "value" | "disabled" | "required" | "readOnly" | "invalid" | "name"> &
|
|
6
|
+
Partial<Pick<SwellLookupElement, "value" | "disabled" | "required" | "readOnly" | "invalid" | "name">> & {
|
|
7
|
+
"label"?: string;
|
|
8
|
+
"optional"?: string;
|
|
9
|
+
"hint"?: string;
|
|
10
|
+
"error"?: string;
|
|
11
|
+
"type"?: "text" | "email" | "tel" | "password" | "number" | "search" | "url";
|
|
12
|
+
"appearance"?: "outline" | "filled" | "underline";
|
|
13
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
14
|
+
"readonly"?: boolean;
|
|
15
|
+
"placeholder"?: string;
|
|
16
|
+
"autocomplete"?: string;
|
|
17
|
+
"inputmode"?: string;
|
|
18
|
+
"minlength"?: number;
|
|
19
|
+
"maxlength"?: number;
|
|
20
|
+
"pattern"?: string;
|
|
21
|
+
"min"?: string;
|
|
22
|
+
"max"?: string;
|
|
23
|
+
"step"?: string;
|
|
24
|
+
onInput?: (event: Event & { currentTarget: SwellLookupElement }) => void;
|
|
25
|
+
onChange?: (event: Event & { currentTarget: SwellLookupElement }) => void;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
} & RefAttributes<SwellLookupElement>
|
|
28
|
+
>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellPopover as SwellPopoverElement } from "../types/components/core/popover/popover.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellPopover: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellPopoverElement>, "onToggle" | "open"> &
|
|
6
|
+
Partial<Pick<SwellPopoverElement, "open">> & {
|
|
7
|
+
"aria-label"?: string;
|
|
8
|
+
onToggle?: (event: ToggleEvent & { currentTarget: SwellPopoverElement }) => void;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
} & RefAttributes<SwellPopoverElement>
|
|
11
|
+
>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellQuantity as SwellQuantityElement } from "../types/components/core/quantity/quantity.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellQuantity: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellQuantityElement>, "onInput" | "onChange" | "value" | "name" | "disabled" | "busy"> &
|
|
6
|
+
Partial<Pick<SwellQuantityElement, "value" | "name" | "disabled" | "busy">> & {
|
|
7
|
+
"min"?: number;
|
|
8
|
+
"max"?: number;
|
|
9
|
+
"step"?: number;
|
|
10
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
11
|
+
onInput?: (event: Event & { currentTarget: SwellQuantityElement }) => void;
|
|
12
|
+
onChange?: (event: Event & { currentTarget: SwellQuantityElement }) => void;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
} & RefAttributes<SwellQuantityElement>
|
|
15
|
+
>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellRadioOption as SwellRadioOptionElement } from "../types/components/core/radio/radio-option.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellRadioOption: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellRadioOptionElement>, "value" | "disabled"> &
|
|
6
|
+
Partial<Pick<SwellRadioOptionElement, "value" | "disabled">> & {
|
|
7
|
+
"hint"?: string;
|
|
8
|
+
"hidden"?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
} & RefAttributes<SwellRadioOptionElement>
|
|
11
|
+
>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellRadio as SwellRadioElement } from "../types/components/core/radio/radio.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellRadio: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellRadioElement>, "onInput" | "onChange" | "value" | "name" | "required" | "disabled" | "invalid"> &
|
|
6
|
+
Partial<Pick<SwellRadioElement, "value" | "name" | "required" | "disabled" | "invalid">> & {
|
|
7
|
+
"label"?: string;
|
|
8
|
+
"hint"?: string;
|
|
9
|
+
"error"?: string;
|
|
10
|
+
"aria-label"?: string;
|
|
11
|
+
"indicator-position"?: "start" | "end";
|
|
12
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
13
|
+
"appearance"?: "plain" | "outline" | "segmented" | "button";
|
|
14
|
+
onInput?: (event: Event & { currentTarget: SwellRadioElement }) => void;
|
|
15
|
+
onChange?: (event: Event & { currentTarget: SwellRadioElement }) => void;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
} & RefAttributes<SwellRadioElement>
|
|
18
|
+
>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellSelectOption as SwellSelectOptionElement } from "../types/components/core/select/select-option.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellSelectOption: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellSelectOptionElement>, "value" | "disabled"> &
|
|
6
|
+
Partial<Pick<SwellSelectOptionElement, "value" | "disabled">> & {
|
|
7
|
+
"hint"?: string;
|
|
8
|
+
"hidden"?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
} & RefAttributes<SwellSelectOptionElement>
|
|
11
|
+
>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellSelect as SwellSelectElement } from "../types/components/core/select/select.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellSelect: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellSelectElement>, "onInput" | "onChange" | "value" | "name" | "required" | "disabled" | "invalid"> &
|
|
6
|
+
Partial<Pick<SwellSelectElement, "value" | "name" | "required" | "disabled" | "invalid">> & {
|
|
7
|
+
"label"?: string;
|
|
8
|
+
"optional"?: string;
|
|
9
|
+
"hint"?: string;
|
|
10
|
+
"error"?: string;
|
|
11
|
+
"placeholder"?: string;
|
|
12
|
+
"autocomplete"?: string;
|
|
13
|
+
"aria-label"?: string;
|
|
14
|
+
"appearance"?: "outline" | "filled" | "underline";
|
|
15
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
16
|
+
onInput?: (event: Event & { currentTarget: SwellSelectElement }) => void;
|
|
17
|
+
onChange?: (event: Event & { currentTarget: SwellSelectElement }) => void;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
} & RefAttributes<SwellSelectElement>
|
|
20
|
+
>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellSkeleton as SwellSkeletonElement } from "../types/components/core/skeleton/skeleton.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellSkeleton: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellSkeletonElement>, never> &
|
|
6
|
+
{
|
|
7
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
8
|
+
"appearance"?: "card";
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
} & RefAttributes<SwellSkeletonElement>
|
|
11
|
+
>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { SwellStatus as SwellStatusElement } from "../types/components/core/status/status.js";
|
|
3
|
+
|
|
4
|
+
export declare const SwellStatus: ForwardRefExoticComponent<
|
|
5
|
+
Omit<HTMLAttributes<SwellStatusElement>, never> &
|
|
6
|
+
{
|
|
7
|
+
"type"?: "danger" | "success" | "warning";
|
|
8
|
+
"size"?: "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
9
|
+
"appearance"?: "filled" | "outline" | "plain" | "quiet";
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
} & RefAttributes<SwellStatusElement>
|
|
12
|
+
>;
|