@smudi/designsystem 2.0.0 → 2.1.0
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/actionbar/actionbar.d.ts +71 -0
- package/@smudi/components/actionbar/actionbar.d.ts.map +1 -0
- package/@smudi/components/actionbar/actionbar.types.d.ts +11 -0
- package/@smudi/components/actionbar/actionbar.types.d.ts.map +1 -0
- package/@smudi/components/actionbar/use-actionbar-button-count-warning.d.ts +9 -0
- package/@smudi/components/actionbar/use-actionbar-button-count-warning.d.ts.map +1 -0
- package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.d.ts +12 -0
- package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.d.ts.map +1 -0
- package/@smudi/components/file-upload/file-upload.d.ts +3 -1
- package/@smudi/components/file-upload/file-upload.d.ts.map +1 -1
- package/@smudi/components/file-upload/file-upload.js +6 -4
- package/@smudi/components/header/header.d.ts +1 -1
- package/@smudi/components/header/header.d.ts.map +1 -1
- package/@smudi/components/layout-components/box-layouts/box-layout.d.ts +1 -1
- package/@smudi/components/layout-components/box-layouts/box-layout.d.ts.map +1 -1
- package/@smudi/components/layout-components/center-layouts/center-layout.d.ts +1 -1
- package/@smudi/components/layout-components/center-layouts/center-layout.d.ts.map +1 -1
- package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts +1 -1
- package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts.map +1 -1
- package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts +1 -1
- package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts.map +1 -1
- package/@smudi/components/layout-components/split-view/split-view-divider.d.ts +1 -1
- package/@smudi/components/layout-components/split-view/split-view-divider.d.ts.map +1 -1
- package/@smudi/components/layout-components/split-view/split-view-panel.d.ts +1 -1
- package/@smudi/components/layout-components/split-view/split-view-panel.d.ts.map +1 -1
- package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts +1 -1
- package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts.map +1 -1
- package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts +1 -1
- package/@smudi/components/select/select.d.ts +0 -7
- package/@smudi/components/select/select.d.ts.map +1 -1
- package/@smudi/components/select/select.js +28 -13
- 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/components/toast/toast.d.ts +1 -1
- package/@smudi/components/toast/toast.d.ts.map +1 -1
- package/@smudi/components/typography/heading/heading.d.ts +6 -3
- package/@smudi/components/typography/heading/heading.d.ts.map +1 -1
- package/@smudi/components/typography/heading/heading.js +10 -4
- package/@smudi/components/utils/is-dev-environment.d.ts +2 -0
- package/@smudi/components/utils/is-dev-environment.d.ts.map +1 -0
- package/@smudi/react.js +102 -95
- package/@smudi/smudi/react.d.ts +3 -1
- package/@smudi/smudi/react.d.ts.map +1 -1
- package/@smudi/styles.css +1 -1
- package/README.md +7 -6
- package/package.json +30 -21
|
@@ -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
|
+
};
|
|
@@ -79,6 +79,6 @@ type ToastProviderProps = {
|
|
|
79
79
|
* </ToastProvider>
|
|
80
80
|
* ```
|
|
81
81
|
*/
|
|
82
|
-
export declare function ToastProvider({ children }: ToastProviderProps):
|
|
82
|
+
export declare function ToastProvider({ children }: ToastProviderProps): React.JSX.Element;
|
|
83
83
|
export {};
|
|
84
84
|
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../components/toast/toast.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAIf,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AACxE,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpC,MAAM,MAAM,YAAY,GAAG;IACzB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC1B,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+DAA+D;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,iCAAiC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,wBAAwB;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAiBF,KAAK,mBAAmB,GAAG,YAAY,GAAG;IACxC,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAoBF,KAAK,aAAa,GAAG,CAAC,CACpB,OAAO,EAAE,SAAS,EAClB,OAAO,CAAC,EAAE,YAAY,KACnB,WAAW,CAAC,GAAG;IAClB,OAA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AE,YAAY,KAAK,WAAW,CAAC;IACrE,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,WAAW,CAAC;IACrE,OAAO,EAAE,CAAC,CAAC,EACT,MAAM,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACxB,OAAO,EAAE,mBAAmB,KACzB,OAAO,CAAC,CAAC,CAAC,CAAC;CACjB,CAAC;AA2IF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK,eAOjB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,yFAAyF;IACzF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAkIF;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,qBAqN7D"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { HeadingProps } from '@digdir/designsystemet-react';
|
|
2
|
+
declare const HeadingComponent: React.ForwardRefExoticComponent<{
|
|
3
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
} & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
4
7
|
export type { HeadingProps };
|
|
5
8
|
export { HeadingComponent as Heading };
|
|
6
9
|
//# sourceMappingURL=heading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../components/typography/heading/heading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../components/typography/heading/heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAEtC,QAAA,MAAM,gBAAgB;;;;uFAIrB,CAAC;AAIF,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as i } from "react";
|
|
4
|
+
import { Heading as t } from "@digdir/designsystemet-react";
|
|
5
|
+
const r = i(
|
|
6
|
+
function({ "data-size": e = "sm", ...n }, o) {
|
|
7
|
+
return /* @__PURE__ */ a(t, { ...n, "data-size": e, ref: o });
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
r.displayName = "Heading";
|
|
5
11
|
export {
|
|
6
|
-
|
|
12
|
+
r as Heading
|
|
7
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-dev-environment.d.ts","sourceRoot":"","sources":["../../../components/utils/is-dev-environment.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,YAa/B"}
|
package/@smudi/react.js
CHANGED
|
@@ -7,133 +7,140 @@ 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
|
|
18
|
-
import { Details as
|
|
16
|
+
import { Chip as k } from "./components/chip/chip.js";
|
|
17
|
+
import { Dialog as w } from "./components/dialog/dialog.js";
|
|
18
|
+
import { Details as M } 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";
|
|
21
|
-
import { DropdownButton as
|
|
21
|
+
import { DropdownButton as R } from "./components/dropdown/dropdown-button.js";
|
|
22
22
|
import { DropdownItem as V } from "./components/dropdown/dropdown-item.js";
|
|
23
23
|
import { DropdownList as X } from "./components/dropdown/dropdown-list.js";
|
|
24
24
|
import { ErrorSummary as j } from "./components/error-summary/error-summary.js";
|
|
25
25
|
import { Field as z } from "./components/field/field.js";
|
|
26
26
|
import { Fieldset as K } from "./components/fieldset/fieldset.js";
|
|
27
|
-
import { EXPERIMENTAL_FileUpload as Q } from "./components/file-upload/file-upload.js";
|
|
28
|
-
import { Input as
|
|
29
|
-
import { Link as
|
|
30
|
-
import { List as
|
|
31
|
-
import { Pagination as
|
|
32
|
-
import { Popover as
|
|
33
|
-
import { Radio as
|
|
34
|
-
import { Search as
|
|
35
|
-
import { Select as
|
|
36
|
-
import { Skeleton as
|
|
27
|
+
import { EXPERIMENTAL_FileUpload as Q, FileUpload as Y } from "./components/file-upload/file-upload.js";
|
|
28
|
+
import { Input as $ } from "./components/input/input.js";
|
|
29
|
+
import { Link as or } from "./components/link/link.js";
|
|
30
|
+
import { List as tr } from "./components/list/list.js";
|
|
31
|
+
import { Pagination as mr } from "./components/pagination/pagination.js";
|
|
32
|
+
import { Popover as xr } from "./components/popover/popover.js";
|
|
33
|
+
import { Radio as ir } from "./components/radio/radio.js";
|
|
34
|
+
import { Search as dr } from "./components/search/search.js";
|
|
35
|
+
import { Select as lr } from "./components/select/select.js";
|
|
36
|
+
import { Skeleton as Sr } from "./components/skeleton/skeleton.js";
|
|
37
37
|
import { SkipLink as gr } from "./components/skip-link/skip-link.js";
|
|
38
|
-
import { Spinner as
|
|
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 {
|
|
38
|
+
import { Spinner as Tr } from "./components/spinner/spinner.js";
|
|
39
|
+
import { Stepper as Dr } from "./components/stepper/index.js";
|
|
40
|
+
import { Suggestion as yr } from "./components/suggestion/suggestion.js";
|
|
41
|
+
import { Switch as Cr } from "./components/switch/switch.js";
|
|
42
|
+
import { Table as hr } from "./components/table/table.js";
|
|
43
|
+
import { Tabs as vr } from "./components/tabs/tabs.js";
|
|
44
|
+
import { TabsList as Fr } from "./components/tabs/tabs-list.js";
|
|
45
|
+
import { TabsTrigger as Ar } from "./components/tabs/tabs-trigger.js";
|
|
46
|
+
import { TabsContent as Er } from "./components/tabs/tabs-content.js";
|
|
47
|
+
import { Tag as Ur } from "./components/tag/tag.js";
|
|
48
|
+
import { TextArea as Nr } from "./components/textarea/text-area.js";
|
|
49
|
+
import { Textfield as Wr } from "./components/textfield/textfield.js";
|
|
50
|
+
import { ToggleGroup as _r } from "./components/toggle-group/toggle-group.js";
|
|
51
|
+
import { Tooltip as qr } from "./components/tooltip/tooltip.js";
|
|
52
|
+
import { Heading as Jr } from "./components/typography/heading/heading.js";
|
|
53
|
+
import { Paragraph as Or } from "./components/typography/paragraph/paragraph.js";
|
|
54
|
+
import { ToastProvider as Yr, toast as Zr } from "./components/toast/toast.js";
|
|
55
|
+
import { Header as ro, HeaderMenu as oo } from "./components/header/index.js";
|
|
56
|
+
import { SplitView as to } from "./components/layout-components/split-view/index.js";
|
|
57
|
+
import { BoxLayout as mo } from "./components/layout-components/box-layouts/box-layout.js";
|
|
58
|
+
import { CenterLayout as xo } from "./components/layout-components/center-layouts/center-layout.js";
|
|
59
|
+
import { ClusterLayout as io } from "./components/layout-components/cluster-layouts/cluster-layout.js";
|
|
60
|
+
import { GridLayout as uo } from "./components/layout-components/grid-layouts/grid-layout.js";
|
|
61
|
+
import { StackLayout as so } from "./components/layout-components/stack-layouts/stack-layout.js";
|
|
62
|
+
import { default as co } from "./components/layout-components/wrapper-layouts/wrapper-layout.js";
|
|
63
|
+
import { HeaderContent as Lo } from "./components/header/header-content.js";
|
|
64
|
+
import { HeaderDivider as Ho } from "./components/header/header-divider.js";
|
|
65
|
+
import { HeaderMenuButton as Io } from "./components/header/header-menu/header-menu-button.js";
|
|
66
|
+
import { HeaderMenuContent as Bo } from "./components/header/header-menu/header-menu-content.js";
|
|
67
|
+
import { HeaderMenuGroup as bo } from "./components/header/header-menu/header-menu-group.js";
|
|
68
|
+
import { HeaderMenuItem as ko } from "./components/header/header-menu/header-menu-item.js";
|
|
69
|
+
import { HeaderSearch as wo } 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 Po } from "./components/header/header.js";
|
|
72
|
+
import { useStepperState as Go } 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
|
+
mo as BoxLayout,
|
|
76
79
|
H as Breadcrumbs,
|
|
77
80
|
I as Button,
|
|
78
81
|
B as Card,
|
|
79
|
-
|
|
82
|
+
xo as CenterLayout,
|
|
80
83
|
b as Checkbox,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
k as Chip,
|
|
85
|
+
io as ClusterLayout,
|
|
86
|
+
M as Details,
|
|
87
|
+
w as Dialog,
|
|
85
88
|
P as Divider,
|
|
86
89
|
G as Dropdown,
|
|
87
|
-
|
|
90
|
+
R as DropdownButton,
|
|
88
91
|
V as DropdownItem,
|
|
89
92
|
X as DropdownList,
|
|
90
93
|
Q as EXPERIMENTAL_FileUpload,
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
97
|
+
Y as FileUpload,
|
|
98
|
+
uo as GridLayout,
|
|
99
|
+
ro as Header,
|
|
100
|
+
Lo as HeaderContent,
|
|
101
|
+
Ho as HeaderDivider,
|
|
102
|
+
oo as HeaderMenu,
|
|
103
|
+
Io as HeaderMenuButton,
|
|
104
|
+
Bo as HeaderMenuContent,
|
|
105
|
+
bo as HeaderMenuGroup,
|
|
106
|
+
ko as HeaderMenuItem,
|
|
107
|
+
wo as HeaderSearch,
|
|
108
|
+
Mo as HeaderSearchButton,
|
|
109
|
+
Jr as Heading,
|
|
110
|
+
$ as Input,
|
|
111
|
+
or as Link,
|
|
112
|
+
tr as List,
|
|
113
|
+
mr as Pagination,
|
|
114
|
+
Or as Paragraph,
|
|
115
|
+
xr as Popover,
|
|
116
|
+
ir as Radio,
|
|
117
|
+
dr as Search,
|
|
118
|
+
lr as Select,
|
|
119
|
+
Sr as Skeleton,
|
|
116
120
|
gr as SkipLink,
|
|
117
121
|
t as SmudiBiometryIcon,
|
|
118
122
|
m as SmudiFingerprintIcon,
|
|
119
123
|
x as SmudiFlagIcon,
|
|
120
124
|
i as SmudiScanIcon,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
125
|
+
Tr as Spinner,
|
|
126
|
+
to as SplitView,
|
|
127
|
+
so as StackLayout,
|
|
128
|
+
Dr as Stepper,
|
|
129
|
+
yr as Suggestion,
|
|
130
|
+
Cr as Switch,
|
|
131
|
+
hr as Table,
|
|
132
|
+
vr as Tabs,
|
|
133
|
+
Er as TabsContent,
|
|
134
|
+
Fr as TabsList,
|
|
135
|
+
Ar as TabsTrigger,
|
|
136
|
+
Ur as Tag,
|
|
137
|
+
Nr as TextArea,
|
|
138
|
+
Wr as Textfield,
|
|
139
|
+
Yr as ToastProvider,
|
|
140
|
+
_r as ToggleGroup,
|
|
141
|
+
qr as Tooltip,
|
|
142
|
+
Po as UDILogo,
|
|
143
|
+
co as WrapperLayout,
|
|
144
|
+
Zr as toast,
|
|
145
|
+
Go as useStepperState
|
|
139
146
|
};
|
package/@smudi/smudi/react.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { DropdownList, type DropdownListProps, } from '../components/dropdown/dr
|
|
|
20
20
|
export { ErrorSummary, type ErrorSummaryProps, } from '../components/error-summary/error-summary';
|
|
21
21
|
export { Field, type FieldProps } from '../components/field/field';
|
|
22
22
|
export { Fieldset, type FieldsetProps } from '../components/fieldset/fieldset';
|
|
23
|
-
export { EXPERIMENTAL_FileUpload, type FileUploadProps, } from '../components/file-upload/file-upload';
|
|
23
|
+
export { EXPERIMENTAL_FileUpload, FileUpload, type FileUploadProps, } from '../components/file-upload/file-upload';
|
|
24
24
|
export { Input, type InputProps } from '../components/input/input';
|
|
25
25
|
export { Link, type LinkProps } from '../components/link/link';
|
|
26
26
|
export { List } from '../components/list/list';
|
|
@@ -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;
|
|
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,E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