@smudi/designsystem 2.0.0 → 2.0.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/@smudi/components/stepper/index.js +17 -0
- package/@smudi/components/stepper/step/step-list.js +40 -0
- package/@smudi/components/stepper/step/step-list.module.css.js +7 -0
- package/@smudi/components/stepper/step/step.js +86 -0
- package/@smudi/components/stepper/step/step.module.css.js +10 -0
- package/@smudi/components/stepper/step-content/step-content-list.js +25 -0
- package/@smudi/components/stepper/step-content/step-content-list.module.css.js +7 -0
- package/@smudi/components/stepper/step-content/step-content.js +28 -0
- package/@smudi/components/stepper/step-content/step-content.module.css.js +7 -0
- package/@smudi/components/stepper/stepper-context.js +23 -0
- package/@smudi/components/stepper/stepper.js +62 -0
- package/@smudi/components/stepper/stepper.module.css.js +7 -0
- package/@smudi/components/stepper/use-stepper-state.js +17 -0
- package/@smudi/components/switch/switch.js +7 -0
- package/@smudi/react.js +78 -72
- package/@smudi/smudi/react.d.ts +2 -0
- package/@smudi/smudi/react.d.ts.map +1 -1
- package/@smudi/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { StepContent as t } from "./step-content/step-content.js";
|
|
3
|
+
import { StepContentList as e } from "./step-content/step-content-list.js";
|
|
4
|
+
import { Step as p } from "./step/step.js";
|
|
5
|
+
import { StepList as o } from "./step/step-list.js";
|
|
6
|
+
import { Stepper as r } from "./stepper.js";
|
|
7
|
+
import "react";
|
|
8
|
+
const a = Object.assign(r, {
|
|
9
|
+
displayName: "Stepper",
|
|
10
|
+
Step: p,
|
|
11
|
+
StepList: o,
|
|
12
|
+
Content: t,
|
|
13
|
+
ContentList: e
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
a as Stepper
|
|
17
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as y, Children as w, isValidElement as A } from "react";
|
|
4
|
+
import { useStepper as h, StepOrderContext as E, STEP_TRIGGER_ATTR as S } from "../stepper-context.js";
|
|
5
|
+
import v from "./step-list.module.css.js";
|
|
6
|
+
import { classNames as x } from "../../utils/class-names.js";
|
|
7
|
+
const H = y(function({ children: i, className: f, onKeyDown: c, ...m }, u) {
|
|
8
|
+
const { orientation: n } = h();
|
|
9
|
+
function d(e) {
|
|
10
|
+
if (c?.(e), e.defaultPrevented) return;
|
|
11
|
+
const l = n === "vertical" ? "ArrowDown" : "ArrowRight", g = n === "vertical" ? "ArrowUp" : "ArrowLeft", { key: t } = e;
|
|
12
|
+
if (t !== l && t !== g && t !== "Home" && t !== "End")
|
|
13
|
+
return;
|
|
14
|
+
const r = Array.from(
|
|
15
|
+
e.currentTarget.querySelectorAll(
|
|
16
|
+
`[${S}]`
|
|
17
|
+
)
|
|
18
|
+
);
|
|
19
|
+
if (r.length === 0) return;
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
const s = r.indexOf(document.activeElement);
|
|
22
|
+
let o;
|
|
23
|
+
t === "Home" ? o = 0 : t === "End" ? o = r.length - 1 : o = ((s === -1 ? 0 : s) + (t === l ? 1 : -1) + r.length) % r.length, r[o]?.focus();
|
|
24
|
+
}
|
|
25
|
+
const p = w.toArray(i).filter(A).map((e) => e.props.value).filter((e) => typeof e == "string");
|
|
26
|
+
return /* @__PURE__ */ a(
|
|
27
|
+
"ol",
|
|
28
|
+
{
|
|
29
|
+
...m,
|
|
30
|
+
ref: u,
|
|
31
|
+
"data-orientation": n,
|
|
32
|
+
onKeyDown: d,
|
|
33
|
+
className: x(v["smudi-list"], f),
|
|
34
|
+
children: /* @__PURE__ */ a(E.Provider, { value: p, children: i })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
H as StepList
|
|
40
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
import { ExclamationmarkTriangleIcon as j, XMarkIcon as w, CheckmarkIcon as G } from "@navikt/aksel-icons";
|
|
4
|
+
import { forwardRef as L } from "react";
|
|
5
|
+
import { useStepper as P, useStepOrder as M, stepId as U, STEP_TRIGGER_ATTR as V } from "../stepper-context.js";
|
|
6
|
+
import r from "./step.module.css.js";
|
|
7
|
+
import { classNames as X } from "../../utils/class-names.js";
|
|
8
|
+
const q = {
|
|
9
|
+
completed: /* @__PURE__ */ n(G, {}),
|
|
10
|
+
error: /* @__PURE__ */ n(w, {}),
|
|
11
|
+
warning: /* @__PURE__ */ n(j, {})
|
|
12
|
+
};
|
|
13
|
+
function z({
|
|
14
|
+
value: e,
|
|
15
|
+
children: g,
|
|
16
|
+
status: t,
|
|
17
|
+
icon: h,
|
|
18
|
+
as: I,
|
|
19
|
+
className: N,
|
|
20
|
+
onClick: S,
|
|
21
|
+
...k
|
|
22
|
+
}, x) {
|
|
23
|
+
const {
|
|
24
|
+
value: d,
|
|
25
|
+
onChange: T,
|
|
26
|
+
baseId: v,
|
|
27
|
+
orientation: y,
|
|
28
|
+
statusLabels: C,
|
|
29
|
+
variant: l,
|
|
30
|
+
lockedLabel: O
|
|
31
|
+
} = P(), s = M(), i = d === e, m = l !== "readonly", o = s.indexOf(d), p = l === "linear" && o !== -1 && s.indexOf(e) > o, c = m && !p, u = m && p, b = c ? I ?? "button" : "span", R = i || o === -1 && s[0] === e ? 0 : -1, A = c ? {
|
|
32
|
+
// Roving tabindex: only the current step is tabbable; arrow keys
|
|
33
|
+
// move focus between steps (handled by StepList).
|
|
34
|
+
[V]: "",
|
|
35
|
+
tabIndex: R,
|
|
36
|
+
onClick: E
|
|
37
|
+
} : {};
|
|
38
|
+
function E(_) {
|
|
39
|
+
T?.(e), S?.(_);
|
|
40
|
+
}
|
|
41
|
+
return /* @__PURE__ */ n(
|
|
42
|
+
"li",
|
|
43
|
+
{
|
|
44
|
+
"data-orientation": y,
|
|
45
|
+
"data-status": t,
|
|
46
|
+
"data-selected": i || void 0,
|
|
47
|
+
"data-navigable": c || void 0,
|
|
48
|
+
className: X(r["smudi-step"], N),
|
|
49
|
+
children: /* @__PURE__ */ a(
|
|
50
|
+
b,
|
|
51
|
+
{
|
|
52
|
+
...k,
|
|
53
|
+
ref: x,
|
|
54
|
+
id: U(v, e),
|
|
55
|
+
className: r["smudi-trigger"],
|
|
56
|
+
"aria-current": i ? "step" : void 0,
|
|
57
|
+
"aria-disabled": u ? !0 : void 0,
|
|
58
|
+
...A,
|
|
59
|
+
...b === "button" ? { type: "button" } : {},
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ n("span", { className: r["smudi-step-indicator"], "aria-hidden": "true", children: h ?? q[t] }),
|
|
62
|
+
/* @__PURE__ */ a("span", { className: r["smudi-step-label"], children: [
|
|
63
|
+
g,
|
|
64
|
+
t && /* @__PURE__ */ a("span", { className: "ds-sr-only", children: [
|
|
65
|
+
"- ",
|
|
66
|
+
C[t]
|
|
67
|
+
] }),
|
|
68
|
+
u && /* @__PURE__ */ a("span", { className: "ds-sr-only", children: [
|
|
69
|
+
" - ",
|
|
70
|
+
O
|
|
71
|
+
] })
|
|
72
|
+
] })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
const f = L(
|
|
80
|
+
z
|
|
81
|
+
);
|
|
82
|
+
f.displayName = "Step";
|
|
83
|
+
const Q = f;
|
|
84
|
+
export {
|
|
85
|
+
Q as Step
|
|
86
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as s } from "react";
|
|
4
|
+
import { useStepper as m } from "../stepper-context.js";
|
|
5
|
+
import a from "./step-content-list.module.css.js";
|
|
6
|
+
import { classNames as p } from "../../utils/class-names.js";
|
|
7
|
+
const v = s(
|
|
8
|
+
function({ children: t, className: o, ...e }, i) {
|
|
9
|
+
const { orientation: r } = m();
|
|
10
|
+
return /* @__PURE__ */ n(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
ref: i,
|
|
14
|
+
"aria-live": "polite",
|
|
15
|
+
"data-orientation": r,
|
|
16
|
+
className: p(a["smudi-content-list"], o),
|
|
17
|
+
...e,
|
|
18
|
+
children: t
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
export {
|
|
24
|
+
v as StepContentList
|
|
25
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
import { useStepper as d, stepId as c, panelId as l } from "../stepper-context.js";
|
|
5
|
+
import f from "./step-content.module.css.js";
|
|
6
|
+
import { classNames as u } from "../../utils/class-names.js";
|
|
7
|
+
const C = a(
|
|
8
|
+
function({ value: e, children: o, className: r, ...s }, n) {
|
|
9
|
+
const { value: i, baseId: t } = d(), p = i === e;
|
|
10
|
+
return /* @__PURE__ */ m(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
...s,
|
|
14
|
+
ref: n,
|
|
15
|
+
id: l(t, e),
|
|
16
|
+
role: "group",
|
|
17
|
+
"aria-labelledby": c(t, e),
|
|
18
|
+
tabIndex: -1,
|
|
19
|
+
hidden: !p,
|
|
20
|
+
className: u(f["smudi-step-content"], r),
|
|
21
|
+
children: o
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
C as StepContent
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext as n, useContext as r } from "react";
|
|
3
|
+
const o = n(null);
|
|
4
|
+
function u() {
|
|
5
|
+
const t = r(o);
|
|
6
|
+
if (!t)
|
|
7
|
+
throw new Error("useStepper must be used within a <Stepper>");
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
const p = n([]);
|
|
11
|
+
function c() {
|
|
12
|
+
return r(p);
|
|
13
|
+
}
|
|
14
|
+
const i = (t, e) => `${t}-step-${e}`, S = (t, e) => `${t}-panel-${e}`, a = "data-step-trigger";
|
|
15
|
+
export {
|
|
16
|
+
a as STEP_TRIGGER_ATTR,
|
|
17
|
+
p as StepOrderContext,
|
|
18
|
+
o as StepperContext,
|
|
19
|
+
S as panelId,
|
|
20
|
+
i as stepId,
|
|
21
|
+
c as useStepOrder,
|
|
22
|
+
u as useStepper
|
|
23
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as b, useId as F, useState as N } from "react";
|
|
4
|
+
import { StepperContext as T } from "./stepper-context.js";
|
|
5
|
+
import U from "./stepper.module.css.js";
|
|
6
|
+
import { classNames as w } from "../utils/class-names.js";
|
|
7
|
+
const x = {
|
|
8
|
+
completed: "Fullført",
|
|
9
|
+
error: "Feil",
|
|
10
|
+
warning: "Advarsel"
|
|
11
|
+
};
|
|
12
|
+
function y({
|
|
13
|
+
id: e,
|
|
14
|
+
value: t,
|
|
15
|
+
defaultValue: a,
|
|
16
|
+
onChange: p,
|
|
17
|
+
orientation: o = "horizontal",
|
|
18
|
+
statusLabels: i,
|
|
19
|
+
variant: c = "linear",
|
|
20
|
+
lockedLabel: d = "Låst",
|
|
21
|
+
children: m,
|
|
22
|
+
className: u,
|
|
23
|
+
...f
|
|
24
|
+
}, S) {
|
|
25
|
+
const v = F(), h = e ?? v, I = { ...x, ...i }, [L, g] = N(
|
|
26
|
+
a
|
|
27
|
+
), r = t !== void 0, A = (r ? t : L) ?? "";
|
|
28
|
+
function C(n) {
|
|
29
|
+
r || g(n), p?.(n);
|
|
30
|
+
}
|
|
31
|
+
return /* @__PURE__ */ s(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
id: e,
|
|
35
|
+
ref: S,
|
|
36
|
+
"data-orientation": o,
|
|
37
|
+
className: w(U["smudi-stepper"], u),
|
|
38
|
+
...f,
|
|
39
|
+
children: /* @__PURE__ */ s(
|
|
40
|
+
T.Provider,
|
|
41
|
+
{
|
|
42
|
+
value: {
|
|
43
|
+
value: A,
|
|
44
|
+
onChange: C,
|
|
45
|
+
baseId: h,
|
|
46
|
+
orientation: o,
|
|
47
|
+
statusLabels: I,
|
|
48
|
+
variant: c,
|
|
49
|
+
lockedLabel: d
|
|
50
|
+
},
|
|
51
|
+
children: m
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
const l = b(y);
|
|
58
|
+
l.displayName = "Stepper";
|
|
59
|
+
const D = l;
|
|
60
|
+
export {
|
|
61
|
+
D as Stepper
|
|
62
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as u, useRef as a, useCallback as o } from "react";
|
|
3
|
+
function d({
|
|
4
|
+
defaultValue: t,
|
|
5
|
+
mountStrategy: s = "all"
|
|
6
|
+
}) {
|
|
7
|
+
const [e, r] = u(t), l = a(/* @__PURE__ */ new Set([t]));
|
|
8
|
+
l.current.add(e);
|
|
9
|
+
const c = o(
|
|
10
|
+
(n) => s === "all" || n === e || s === "lazy" && l.current.has(n),
|
|
11
|
+
[s, e]
|
|
12
|
+
);
|
|
13
|
+
return { value: e, setValue: r, shouldRender: c };
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
d as useStepperState
|
|
17
|
+
};
|
package/@smudi/react.js
CHANGED
|
@@ -7,14 +7,14 @@ import { default as i } from "./icons/generated/SmudiScanIcon.js";
|
|
|
7
7
|
export * from "@digdir/designsystemet-react";
|
|
8
8
|
import { Alert as u } from "./components/alert/alert.js";
|
|
9
9
|
import { Avatar as s } from "./components/avatar/avatar.js";
|
|
10
|
-
import { AvatarStack as
|
|
10
|
+
import { AvatarStack as c } from "./components/avatar-stack/avatar-stack.js";
|
|
11
11
|
import { Badge as L } from "./components/badge/badge.js";
|
|
12
12
|
import { Breadcrumbs as H } from "./components/breadcrumbs/breadcrumbs.js";
|
|
13
13
|
import { Button as I } from "./components/button/button.js";
|
|
14
14
|
import { Card as B } from "./components/card/card.js";
|
|
15
15
|
import { Checkbox as b } from "./components/checkbox/checkbox.js";
|
|
16
|
-
import { Chip as
|
|
17
|
-
import { Dialog as
|
|
16
|
+
import { Chip as k } from "./components/chip/chip.js";
|
|
17
|
+
import { Dialog as w } from "./components/dialog/dialog.js";
|
|
18
18
|
import { Details as A } from "./components/details/details.js";
|
|
19
19
|
import { Divider as P } from "./components/divider/divider.js";
|
|
20
20
|
import { Dropdown as G } from "./components/dropdown/dropdown.js";
|
|
@@ -34,54 +34,57 @@ import { Radio as ar } from "./components/radio/radio.js";
|
|
|
34
34
|
import { Search as nr } from "./components/search/search.js";
|
|
35
35
|
import { Select as ur } from "./components/select/select.js";
|
|
36
36
|
import { Skeleton as sr } from "./components/skeleton/skeleton.js";
|
|
37
|
-
import { SkipLink as
|
|
37
|
+
import { SkipLink as cr } from "./components/skip-link/skip-link.js";
|
|
38
38
|
import { Spinner as Lr } from "./components/spinner/spinner.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 {
|
|
39
|
+
import { Stepper as Hr } from "./components/stepper/index.js";
|
|
40
|
+
import { Suggestion as Ir } from "./components/suggestion/suggestion.js";
|
|
41
|
+
import { Switch as Br } from "./components/switch/switch.js";
|
|
42
|
+
import { Table as br } from "./components/table/table.js";
|
|
43
|
+
import { Tabs as kr } from "./components/tabs/tabs.js";
|
|
44
|
+
import { TabsList as wr } from "./components/tabs/tabs-list.js";
|
|
45
|
+
import { TabsTrigger as Ar } from "./components/tabs/tabs-trigger.js";
|
|
46
|
+
import { TabsContent as Pr } from "./components/tabs/tabs-content.js";
|
|
47
|
+
import { Tag as Gr } from "./components/tag/tag.js";
|
|
48
|
+
import { TextArea as Ur } from "./components/textarea/text-area.js";
|
|
49
|
+
import { Textfield as Vr } from "./components/textfield/textfield.js";
|
|
50
|
+
import { ToggleGroup as Xr } from "./components/toggle-group/toggle-group.js";
|
|
51
|
+
import { Tooltip as jr } from "./components/tooltip/tooltip.js";
|
|
52
|
+
import { Heading as zr } from "./components/typography/heading/heading.js";
|
|
53
|
+
import { Paragraph as Kr } from "./components/typography/paragraph/paragraph.js";
|
|
54
|
+
import { ToastProvider as Qr, toast as Yr } from "./components/toast/toast.js";
|
|
55
|
+
import { Header as $r, HeaderMenu as ro } from "./components/header/index.js";
|
|
56
|
+
import { SplitView as eo } from "./components/layout-components/split-view/index.js";
|
|
57
|
+
import { BoxLayout as po } from "./components/layout-components/box-layouts/box-layout.js";
|
|
58
|
+
import { CenterLayout as fo } from "./components/layout-components/center-layouts/center-layout.js";
|
|
59
|
+
import { ClusterLayout as ao } from "./components/layout-components/cluster-layouts/cluster-layout.js";
|
|
60
|
+
import { GridLayout as no } from "./components/layout-components/grid-layouts/grid-layout.js";
|
|
61
|
+
import { StackLayout as lo } from "./components/layout-components/stack-layouts/stack-layout.js";
|
|
62
|
+
import { default as So } from "./components/layout-components/wrapper-layouts/wrapper-layout.js";
|
|
63
|
+
import { HeaderContent as go } from "./components/header/header-content.js";
|
|
64
|
+
import { HeaderDivider as To } from "./components/header/header-divider.js";
|
|
65
|
+
import { HeaderMenuButton as Do } from "./components/header/header-menu/header-menu-button.js";
|
|
66
|
+
import { HeaderMenuContent as yo } from "./components/header/header-menu/header-menu-content.js";
|
|
67
|
+
import { HeaderMenuGroup as Co } from "./components/header/header-menu/header-menu-group.js";
|
|
68
|
+
import { HeaderMenuItem as ho } from "./components/header/header-menu/header-menu-item.js";
|
|
69
|
+
import { HeaderSearch as vo } from "./components/header/header-search/header-search.js";
|
|
70
|
+
import { HeaderSearchButton as Mo } from "./components/header/header-search/header-search-button.js";
|
|
71
|
+
import { UDILogo as Fo } from "./components/header/header.js";
|
|
72
|
+
import { useStepperState as Eo } from "./components/stepper/use-stepper-state.js";
|
|
70
73
|
export {
|
|
71
74
|
u as Alert,
|
|
72
75
|
s as Avatar,
|
|
73
|
-
|
|
76
|
+
c as AvatarStack,
|
|
74
77
|
L as Badge,
|
|
75
|
-
|
|
78
|
+
po as BoxLayout,
|
|
76
79
|
H as Breadcrumbs,
|
|
77
80
|
I as Button,
|
|
78
81
|
B as Card,
|
|
79
|
-
|
|
82
|
+
fo as CenterLayout,
|
|
80
83
|
b as Checkbox,
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
k as Chip,
|
|
85
|
+
ao as ClusterLayout,
|
|
83
86
|
A as Details,
|
|
84
|
-
|
|
87
|
+
w as Dialog,
|
|
85
88
|
P as Divider,
|
|
86
89
|
G as Dropdown,
|
|
87
90
|
U as DropdownButton,
|
|
@@ -91,49 +94,52 @@ export {
|
|
|
91
94
|
j as ErrorSummary,
|
|
92
95
|
z as Field,
|
|
93
96
|
K as Fieldset,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
97
|
+
no as GridLayout,
|
|
98
|
+
$r as Header,
|
|
99
|
+
go as HeaderContent,
|
|
100
|
+
To as HeaderDivider,
|
|
101
|
+
ro as HeaderMenu,
|
|
102
|
+
Do as HeaderMenuButton,
|
|
103
|
+
yo as HeaderMenuContent,
|
|
104
|
+
Co as HeaderMenuGroup,
|
|
105
|
+
ho as HeaderMenuItem,
|
|
106
|
+
vo as HeaderSearch,
|
|
107
|
+
Mo as HeaderSearchButton,
|
|
108
|
+
zr as Heading,
|
|
106
109
|
Z as Input,
|
|
107
110
|
rr as Link,
|
|
108
111
|
er as List,
|
|
109
112
|
pr as Pagination,
|
|
110
|
-
|
|
113
|
+
Kr as Paragraph,
|
|
111
114
|
fr as Popover,
|
|
112
115
|
ar as Radio,
|
|
113
116
|
nr as Search,
|
|
114
117
|
ur as Select,
|
|
115
118
|
sr as Skeleton,
|
|
116
|
-
|
|
119
|
+
cr as SkipLink,
|
|
117
120
|
t as SmudiBiometryIcon,
|
|
118
121
|
m as SmudiFingerprintIcon,
|
|
119
122
|
x as SmudiFlagIcon,
|
|
120
123
|
i as SmudiScanIcon,
|
|
121
124
|
Lr as Spinner,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
Hr as
|
|
125
|
-
Ir as
|
|
126
|
-
Br as
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Gr as
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
125
|
+
eo as SplitView,
|
|
126
|
+
lo as StackLayout,
|
|
127
|
+
Hr as Stepper,
|
|
128
|
+
Ir as Suggestion,
|
|
129
|
+
Br as Switch,
|
|
130
|
+
br as Table,
|
|
131
|
+
kr as Tabs,
|
|
132
|
+
Pr as TabsContent,
|
|
133
|
+
wr as TabsList,
|
|
134
|
+
Ar as TabsTrigger,
|
|
135
|
+
Gr as Tag,
|
|
136
|
+
Ur as TextArea,
|
|
137
|
+
Vr as Textfield,
|
|
138
|
+
Qr as ToastProvider,
|
|
139
|
+
Xr as ToggleGroup,
|
|
140
|
+
jr as Tooltip,
|
|
141
|
+
Fo as UDILogo,
|
|
142
|
+
So as WrapperLayout,
|
|
143
|
+
Yr as toast,
|
|
144
|
+
Eo as useStepperState
|
|
139
145
|
};
|
package/@smudi/smudi/react.d.ts
CHANGED
|
@@ -32,7 +32,9 @@ export { Select, type SelectProps } from '../components/select/select';
|
|
|
32
32
|
export { Skeleton, type SkeletonProps } from '../components/skeleton/skeleton';
|
|
33
33
|
export { SkipLink, type SkipLinkProps, } from '../components/skip-link/skip-link';
|
|
34
34
|
export { Spinner, type SpinnerProps } from '../components/spinner/spinner';
|
|
35
|
+
export { Stepper, type StepperProps, type StepProps, type StepContentProps, useStepperState, type StepMountStrategy, type StepperState, type UseStepperStateOptions, } from '../components/stepper';
|
|
35
36
|
export { Suggestion, type SuggestionProps, type SuggestionNoChipsProps, } from '../components/suggestion/suggestion';
|
|
37
|
+
export { Switch, type SwitchProps } from '../components/switch/switch';
|
|
36
38
|
export { Table, type TableProps } from '../components/table/table';
|
|
37
39
|
export { Tabs, type TabsProps } from '../components/tabs/tabs';
|
|
38
40
|
export { TabsList, type TabsListProps } from '../components/tabs/tabs-list';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../smudi/react.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAGtB,cAAc,mBAAmB,CAAC;AAElC,cAAc,8BAA8B,CAAC;AAI7C,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG1E,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,WAAW,EACX,KAAK,g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