@manakind/ui-core 0.18.0 → 0.20.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/README.md +30 -2
- package/dist/avatar/avatar.css +42 -0
- package/dist/avatar/avatar.css.d.ts +2 -0
- package/dist/avatar/avatar.d.ts +55 -0
- package/dist/avatar/avatar.d.ts.map +1 -0
- package/dist/avatar/avatar.js +41 -0
- package/dist/avatar/avatar.js.map +1 -0
- package/dist/avatar/index.d.ts +3 -0
- package/dist/avatar/index.d.ts.map +1 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/index.js.map +1 -0
- package/dist/centered-layout/centered-layout.css +36 -0
- package/dist/centered-layout/centered-layout.css.d.ts +2 -0
- package/dist/centered-layout/centered-layout.d.ts +18 -0
- package/dist/centered-layout/centered-layout.d.ts.map +1 -0
- package/dist/centered-layout/centered-layout.js +16 -0
- package/dist/centered-layout/centered-layout.js.map +1 -0
- package/dist/centered-layout/index.d.ts +3 -0
- package/dist/centered-layout/index.d.ts.map +1 -0
- package/dist/centered-layout/index.js +2 -0
- package/dist/centered-layout/index.js.map +1 -0
- package/dist/divider/divider.css +18 -0
- package/dist/divider/divider.css.d.ts +2 -0
- package/dist/divider/divider.d.ts +26 -0
- package/dist/divider/divider.d.ts.map +1 -0
- package/dist/divider/divider.js +15 -0
- package/dist/divider/divider.js.map +1 -0
- package/dist/divider/index.d.ts +3 -0
- package/dist/divider/index.d.ts.map +1 -0
- package/dist/divider/index.js +2 -0
- package/dist/divider/index.js.map +1 -0
- package/dist/empty-state/empty-state.css +37 -0
- package/dist/empty-state/empty-state.css.d.ts +2 -0
- package/dist/empty-state/empty-state.d.ts +26 -0
- package/dist/empty-state/empty-state.d.ts.map +1 -0
- package/dist/empty-state/empty-state.js +16 -0
- package/dist/empty-state/empty-state.js.map +1 -0
- package/dist/empty-state/index.d.ts +3 -0
- package/dist/empty-state/index.d.ts.map +1 -0
- package/dist/empty-state/index.js +2 -0
- package/dist/empty-state/index.js.map +1 -0
- package/dist/form-layout/form-layout.css +18 -0
- package/dist/form-layout/form-layout.css.d.ts +2 -0
- package/dist/form-layout/form-layout.d.ts +21 -0
- package/dist/form-layout/form-layout.d.ts.map +1 -0
- package/dist/form-layout/form-layout.js +24 -0
- package/dist/form-layout/form-layout.js.map +1 -0
- package/dist/form-layout/index.d.ts +3 -0
- package/dist/form-layout/index.d.ts.map +1 -0
- package/dist/form-layout/index.js +2 -0
- package/dist/form-layout/index.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/layout/index.d.ts +3 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/index.js +2 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/layout.css +185 -0
- package/dist/layout/layout.css.d.ts +2 -0
- package/dist/layout/layout.d.ts +105 -0
- package/dist/layout/layout.d.ts.map +1 -0
- package/dist/layout/layout.js +77 -0
- package/dist/layout/layout.js.map +1 -0
- package/dist/menu/action-menu.d.ts +120 -0
- package/dist/menu/action-menu.d.ts.map +1 -0
- package/dist/menu/action-menu.js +80 -0
- package/dist/menu/action-menu.js.map +1 -0
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +1 -0
- package/dist/menu/index.js.map +1 -1
- package/dist/menu/menu.css +62 -8
- package/dist/menu/menu.d.ts +1 -1
- package/dist/menu/menu.d.ts.map +1 -1
- package/dist/menu/menu.js +1 -1
- package/dist/menu/menu.js.map +1 -1
- package/dist/page-layout/index.d.ts +3 -0
- package/dist/page-layout/index.d.ts.map +1 -0
- package/dist/page-layout/index.js +2 -0
- package/dist/page-layout/index.js.map +1 -0
- package/dist/page-layout/page-layout.css +81 -0
- package/dist/page-layout/page-layout.css.d.ts +2 -0
- package/dist/page-layout/page-layout.d.ts +43 -0
- package/dist/page-layout/page-layout.d.ts.map +1 -0
- package/dist/page-layout/page-layout.js +42 -0
- package/dist/page-layout/page-layout.js.map +1 -0
- package/dist/section/index.d.ts +3 -0
- package/dist/section/index.d.ts.map +1 -0
- package/dist/section/index.js +2 -0
- package/dist/section/index.js.map +1 -0
- package/dist/section/section.css +31 -0
- package/dist/section/section.css.d.ts +2 -0
- package/dist/section/section.d.ts +31 -0
- package/dist/section/section.d.ts.map +1 -0
- package/dist/section/section.js +19 -0
- package/dist/section/section.js.map +1 -0
- package/dist/show/index.d.ts +3 -0
- package/dist/show/index.d.ts.map +1 -0
- package/dist/show/index.js +2 -0
- package/dist/show/index.js.map +1 -0
- package/dist/show/show.css +67 -0
- package/dist/show/show.css.d.ts +2 -0
- package/dist/show/show.d.ts +36 -0
- package/dist/show/show.d.ts.map +1 -0
- package/dist/show/show.js +23 -0
- package/dist/show/show.js.map +1 -0
- package/dist/skeleton/index.d.ts +3 -0
- package/dist/skeleton/index.d.ts.map +1 -0
- package/dist/skeleton/index.js +2 -0
- package/dist/skeleton/index.js.map +1 -0
- package/dist/skeleton/skeleton.css +36 -0
- package/dist/skeleton/skeleton.css.d.ts +2 -0
- package/dist/skeleton/skeleton.d.ts +26 -0
- package/dist/skeleton/skeleton.d.ts.map +1 -0
- package/dist/skeleton/skeleton.js +21 -0
- package/dist/skeleton/skeleton.js.map +1 -0
- package/dist/split-layout/index.d.ts +3 -0
- package/dist/split-layout/index.d.ts.map +1 -0
- package/dist/split-layout/index.js +2 -0
- package/dist/split-layout/index.js.map +1 -0
- package/dist/split-layout/split-layout.css +71 -0
- package/dist/split-layout/split-layout.css.d.ts +2 -0
- package/dist/split-layout/split-layout.d.ts +32 -0
- package/dist/split-layout/split-layout.d.ts.map +1 -0
- package/dist/split-layout/split-layout.js +25 -0
- package/dist/split-layout/split-layout.js.map +1 -0
- package/dist/text/index.d.ts +3 -0
- package/dist/text/index.d.ts.map +1 -0
- package/dist/text/index.js +2 -0
- package/dist/text/index.js.map +1 -0
- package/dist/text/text.css +128 -0
- package/dist/text/text.css.d.ts +2 -0
- package/dist/text/text.d.ts +78 -0
- package/dist/text/text.d.ts.map +1 -0
- package/dist/text/text.js +56 -0
- package/dist/text/text.js.map +1 -0
- package/dist/visually-hidden/index.d.ts +3 -0
- package/dist/visually-hidden/index.d.ts.map +1 -0
- package/dist/visually-hidden/index.js +2 -0
- package/dist/visually-hidden/index.js.map +1 -0
- package/dist/visually-hidden/visually-hidden.css +19 -0
- package/dist/visually-hidden/visually-hidden.css.d.ts +2 -0
- package/dist/visually-hidden/visually-hidden.d.ts +15 -0
- package/dist/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/visually-hidden/visually-hidden.js +17 -0
- package/dist/visually-hidden/visually-hidden.js.map +1 -0
- package/dist/wizard-layout/index.d.ts +3 -0
- package/dist/wizard-layout/index.d.ts.map +1 -0
- package/dist/wizard-layout/index.js +2 -0
- package/dist/wizard-layout/index.js.map +1 -0
- package/dist/wizard-layout/wizard-layout.css +52 -0
- package/dist/wizard-layout/wizard-layout.css.d.ts +2 -0
- package/dist/wizard-layout/wizard-layout.d.ts +50 -0
- package/dist/wizard-layout/wizard-layout.d.ts.map +1 -0
- package/dist/wizard-layout/wizard-layout.js +38 -0
- package/dist/wizard-layout/wizard-layout.js.map +1 -0
- package/package.json +114 -2
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ark } from '@ark-ui/react/factory';
|
|
3
|
+
import './text.css';
|
|
4
|
+
import { cx } from '../cx';
|
|
5
|
+
function textClasses(block, { size, weight, tone, align, truncate }, className) {
|
|
6
|
+
return cx('ds-text', block, size && `ds-text--size-${size}`, weight && `ds-text--weight-${weight}`, tone && tone !== 'default' && `ds-text--tone-${tone}`, align && `ds-text--align-${align}`, truncate ? 'ds-text--truncate' : false, className);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The line count as the private property `text.css` clamps to. Always written
|
|
10
|
+
* when truncating, `1` for `true`: custom properties inherit, so a truncated
|
|
11
|
+
* Text inside a three-line one would otherwise clamp to three.
|
|
12
|
+
*/
|
|
13
|
+
function truncateStyle(truncate, style) {
|
|
14
|
+
if (!truncate)
|
|
15
|
+
return style;
|
|
16
|
+
return { '--_text-lines': truncate === true ? 1 : truncate, ...style };
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A run of text on the type scale.
|
|
20
|
+
*
|
|
21
|
+
* Body copy, a description, a caption, a label: every piece of text a product
|
|
22
|
+
* writes outside a component with its own text slot. Size, weight and colour
|
|
23
|
+
* come from the `--ds-text-*` contract, so a product tunes its type once in
|
|
24
|
+
* tokens rather than per element. Renders a `p`; pick another tag with `as`,
|
|
25
|
+
* or pass `asChild` to style an element of your own.
|
|
26
|
+
*/
|
|
27
|
+
export function Text({ as, size = 'md', weight, tone = 'default', align, truncate, caps = false, className, style, children, ...props }) {
|
|
28
|
+
// Every factory member has the same props apart from its element's ref
|
|
29
|
+
// type; the cast settles the union on `p`, the default, which is why `as`
|
|
30
|
+
// is a closed list of plain text elements rather than any tag.
|
|
31
|
+
const Component = (as ? ark[as] : ark.p);
|
|
32
|
+
return (_jsx(Component, { className: textClasses(cx('ds-text--body', caps && 'ds-text--caps'), { size, weight: weight ?? (caps ? 'semibold' : undefined), tone, align, truncate }, className), style: truncateStyle(truncate, style), ...props, children: children }));
|
|
33
|
+
}
|
|
34
|
+
/** The size each level takes when `size` is not given: a plain ramp down the scale. */
|
|
35
|
+
const HEADING_SIZES = {
|
|
36
|
+
1: '4xl',
|
|
37
|
+
2: '3xl',
|
|
38
|
+
3: '2xl',
|
|
39
|
+
4: 'xl',
|
|
40
|
+
5: 'lg',
|
|
41
|
+
6: 'md',
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* A heading on the type scale.
|
|
45
|
+
*
|
|
46
|
+
* The level is the outline; the size is the look, and defaults from the
|
|
47
|
+
* level so a page's `h1` is `4xl` and a card's `h3` is `2xl` without a
|
|
48
|
+
* decision. Headings take the heading weight and tight line height from the
|
|
49
|
+
* contract. Pass `asChild` to style a heading element of your own, say one
|
|
50
|
+
* a library renders.
|
|
51
|
+
*/
|
|
52
|
+
export function Heading({ level, size, weight, tone = 'default', align, truncate, className, style, children, ...props }) {
|
|
53
|
+
const Component = ark[`h${level}`];
|
|
54
|
+
return (_jsx(Component, { className: textClasses('ds-text--heading', { size: size ?? HEADING_SIZES[level], weight, tone, align, truncate }, className), style: truncateStyle(truncate, style), ...props, children: children }));
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/text/text.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/visually-hidden/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/visually-hidden/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/*
|
|
3
|
+
* The clip pattern, not `display: none`: the text stays in the
|
|
4
|
+
* accessibility tree and in the tab order of anything focusable inside it.
|
|
5
|
+
* `clip-path: inset(50%)` is also what the long-words guard reads to skip
|
|
6
|
+
* hidden text.
|
|
7
|
+
*/
|
|
8
|
+
.ds-visually-hidden {
|
|
9
|
+
position: absolute;
|
|
10
|
+
width: 1px;
|
|
11
|
+
height: 1px;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
clip-path: inset(50%);
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
border: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import './visually-hidden.css';
|
|
4
|
+
export type VisuallyHiddenProps = ComponentProps<typeof ark.span>;
|
|
5
|
+
/**
|
|
6
|
+
* Text for assistive technology that takes no space on screen.
|
|
7
|
+
*
|
|
8
|
+
* The name of an icon-only control that already shows a tooltip, the
|
|
9
|
+
* heading of a region that is obvious to the eye, the "(opens in a new tab)"
|
|
10
|
+
* after a link. Prefer a visible label where one fits; this is for the cases
|
|
11
|
+
* where sighted users already have the information another way. Renders a
|
|
12
|
+
* `span`; pass `asChild` to hide your own element (a heading, a legend).
|
|
13
|
+
*/
|
|
14
|
+
export declare function VisuallyHidden({ className, children, ...props }: VisuallyHiddenProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=visually-hidden.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../src/visually-hidden/visually-hidden.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,uBAAuB,CAAC;AAG/B,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;AAElE;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAMpF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ark } from '@ark-ui/react/factory';
|
|
3
|
+
import './visually-hidden.css';
|
|
4
|
+
import { cx } from '../cx';
|
|
5
|
+
/**
|
|
6
|
+
* Text for assistive technology that takes no space on screen.
|
|
7
|
+
*
|
|
8
|
+
* The name of an icon-only control that already shows a tooltip, the
|
|
9
|
+
* heading of a region that is obvious to the eye, the "(opens in a new tab)"
|
|
10
|
+
* after a link. Prefer a visible label where one fits; this is for the cases
|
|
11
|
+
* where sighted users already have the information another way. Renders a
|
|
12
|
+
* `span`; pass `asChild` to hide your own element (a heading, a legend).
|
|
13
|
+
*/
|
|
14
|
+
export function VisuallyHidden({ className, children, ...props }) {
|
|
15
|
+
return (_jsx(ark.span, { className: cx('ds-visually-hidden', className), ...props, children: children }));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=visually-hidden.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visually-hidden.js","sourceRoot":"","sources":["../../src/visually-hidden/visually-hidden.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAuB;IACnF,OAAO,CACL,KAAC,GAAG,CAAC,IAAI,IAAC,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,KAAM,KAAK,YAChE,QAAQ,GACA,CACZ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wizard-layout/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wizard-layout/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ds-wizard-layout {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--ds-wizard-layout-gap);
|
|
7
|
+
width: 100%;
|
|
8
|
+
margin-inline: auto;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
overflow-wrap: anywhere;
|
|
11
|
+
|
|
12
|
+
&.ds-wizard-layout--sm {
|
|
13
|
+
max-width: var(--ds-layout-content-sm);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.ds-wizard-layout--md {
|
|
17
|
+
max-width: var(--ds-layout-content-md);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.ds-wizard-layout--lg {
|
|
21
|
+
max-width: var(--ds-layout-content-lg);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.ds-wizard-layout--xl {
|
|
25
|
+
max-width: var(--ds-layout-content-xl);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& .ds-wizard-layout__header {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: var(--ds-wizard-layout-header-gap);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
& .ds-wizard-layout__content {
|
|
35
|
+
min-width: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
& .ds-wizard-layout__footer {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
gap: var(--ds-layout-gap);
|
|
44
|
+
padding-block-start: var(--ds-wizard-layout-footer-padding-block);
|
|
45
|
+
border-top: 1px solid var(--ds-divider-color);
|
|
46
|
+
|
|
47
|
+
& > :only-child {
|
|
48
|
+
margin-inline-start: auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
import './wizard-layout.css';
|
|
4
|
+
import type { ContentWidth } from '../layout/layout';
|
|
5
|
+
export interface WizardLayoutProps extends ComponentProps<typeof ark.div> {
|
|
6
|
+
/** Where the flow's content stops growing. Defaults to `lg`, a form's width. */
|
|
7
|
+
size?: ContentWidth;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The template a multi-step flow composes: an onboarding, a quarterly
|
|
11
|
+
* review, a setup. A centred column holding a {@link WizardHeader} that says
|
|
12
|
+
* where the user is, the step's {@link WizardContent}, and a
|
|
13
|
+
* {@link WizardFooter} with the way back and forward.
|
|
14
|
+
*
|
|
15
|
+
* Renders a `div`; pass `asChild` to make the flow a landmark.
|
|
16
|
+
*/
|
|
17
|
+
export declare function WizardLayout({ size, className, children, ...props }: WizardLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
/** No `asChild`: the header renders three parts, and Ark's `asChild` clones exactly one. */
|
|
19
|
+
export interface WizardHeaderProps extends Omit<ComponentProps<typeof ark.header>, 'title' | 'asChild'> {
|
|
20
|
+
/** The step's heading, the page's `h1`. */
|
|
21
|
+
title: ReactNode;
|
|
22
|
+
/** What this step asks for. */
|
|
23
|
+
description?: ReactNode;
|
|
24
|
+
/** The current step, counting from one. */
|
|
25
|
+
step: number;
|
|
26
|
+
/** How many steps the flow has. */
|
|
27
|
+
totalSteps: number;
|
|
28
|
+
/**
|
|
29
|
+
* The name of the progress bar and the text beside it. Defaults to
|
|
30
|
+
* "Step {step} of {totalSteps}"; a product localises it here.
|
|
31
|
+
*/
|
|
32
|
+
stepLabel?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Where the user is in the flow: a progress bar labelled with the step
|
|
36
|
+
* count, then the step's title and what it asks for. The bar shows the step
|
|
37
|
+
* clamped to the total: Zag throws on a value past `max`, and a finish screen
|
|
38
|
+
* one past the last step is a product's call, not a crash.
|
|
39
|
+
*/
|
|
40
|
+
export declare function WizardHeader({ title, description, step, totalSteps, stepLabel, className, ...props }: WizardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export type WizardContentProps = ComponentProps<typeof ark.div>;
|
|
42
|
+
/** The step itself. */
|
|
43
|
+
export declare function WizardContent({ className, children, ...props }: WizardContentProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export type WizardFooterProps = ComponentProps<typeof ark.footer>;
|
|
45
|
+
/**
|
|
46
|
+
* The flow's navigation: the way back at the start of the row, the way
|
|
47
|
+
* forward at the end. With one child it sits at the end.
|
|
48
|
+
*/
|
|
49
|
+
export declare function WizardFooter({ className, children, ...props }: WizardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
//# sourceMappingURL=wizard-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard-layout.d.ts","sourceRoot":"","sources":["../../src/wizard-layout/wizard-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIrD,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC;IACvE,gFAAgF;IAChF,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,EAAE,IAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAM7F;AAED,4FAA4F;AAC5F,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpE,2CAA2C;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,IAAI,EACJ,UAAU,EACV,SAA2C,EAC3C,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iBAAiB,2CAenB;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;AAEhE,uBAAuB;AACvB,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAMlF;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC;AAElE;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAMhF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ark } from '@ark-ui/react/factory';
|
|
3
|
+
import './wizard-layout.css';
|
|
4
|
+
import { cx } from '../cx';
|
|
5
|
+
import { Progress } from '../progress/progress';
|
|
6
|
+
import { Heading, Text } from '../text/text';
|
|
7
|
+
/**
|
|
8
|
+
* The template a multi-step flow composes: an onboarding, a quarterly
|
|
9
|
+
* review, a setup. A centred column holding a {@link WizardHeader} that says
|
|
10
|
+
* where the user is, the step's {@link WizardContent}, and a
|
|
11
|
+
* {@link WizardFooter} with the way back and forward.
|
|
12
|
+
*
|
|
13
|
+
* Renders a `div`; pass `asChild` to make the flow a landmark.
|
|
14
|
+
*/
|
|
15
|
+
export function WizardLayout({ size = 'lg', className, children, ...props }) {
|
|
16
|
+
return (_jsx(ark.div, { className: cx('ds-wizard-layout', `ds-wizard-layout--${size}`, className), ...props, children: children }));
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Where the user is in the flow: a progress bar labelled with the step
|
|
20
|
+
* count, then the step's title and what it asks for. The bar shows the step
|
|
21
|
+
* clamped to the total: Zag throws on a value past `max`, and a finish screen
|
|
22
|
+
* one past the last step is a product's call, not a crash.
|
|
23
|
+
*/
|
|
24
|
+
export function WizardHeader({ title, description, step, totalSteps, stepLabel = `Step ${step} of ${totalSteps}`, className, ...props }) {
|
|
25
|
+
return (_jsxs(ark.header, { className: cx('ds-wizard-layout__header', className), ...props, children: [_jsx(Progress, { value: Math.min(Math.max(step, 0), totalSteps), max: totalSteps, size: "sm", label: stepLabel }), _jsx(Heading, { level: 1, size: "3xl", children: title }), description ? _jsx(Text, { tone: "muted", children: description }) : null] }));
|
|
26
|
+
}
|
|
27
|
+
/** The step itself. */
|
|
28
|
+
export function WizardContent({ className, children, ...props }) {
|
|
29
|
+
return (_jsx(ark.div, { className: cx('ds-wizard-layout__content', className), ...props, children: children }));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The flow's navigation: the way back at the start of the row, the way
|
|
33
|
+
* forward at the end. With one child it sits at the end.
|
|
34
|
+
*/
|
|
35
|
+
export function WizardFooter({ className, children, ...props }) {
|
|
36
|
+
return (_jsx(ark.footer, { className: cx('ds-wizard-layout__footer', className), ...props, children: children }));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=wizard-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard-layout.js","sourceRoot":"","sources":["../../src/wizard-layout/wizard-layout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAO7C;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAqB;IAC5F,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IAAC,SAAS,EAAE,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,IAAI,EAAE,EAAE,SAAS,CAAC,KAAM,KAAK,YAC1F,QAAQ,GACD,CACX,CAAC;AACJ,CAAC;AAoBD;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,IAAI,EACJ,UAAU,EACV,SAAS,GAAG,QAAQ,IAAI,OAAO,UAAU,EAAE,EAC3C,SAAS,EACT,GAAG,KAAK,EACU;IAClB,OAAO,CACL,MAAC,GAAG,CAAC,MAAM,IAAC,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,KAAM,KAAK,aACzE,KAAC,QAAQ,IACP,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,EAC9C,GAAG,EAAE,UAAU,EACf,IAAI,EAAC,IAAI,EACT,KAAK,EAAE,SAAS,GAChB,EACF,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAC,KAAK,YAC1B,KAAK,GACE,EACT,WAAW,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,YAAE,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,IAClD,CACd,CAAC;AACJ,CAAC;AAID,uBAAuB;AACvB,MAAM,UAAU,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAsB;IACjF,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IAAC,SAAS,EAAE,EAAE,CAAC,2BAA2B,EAAE,SAAS,CAAC,KAAM,KAAK,YACtE,QAAQ,GACD,CACX,CAAC;AACJ,CAAC;AAID;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAqB;IAC/E,OAAO,CACL,KAAC,GAAG,CAAC,MAAM,IAAC,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,KAAM,KAAK,YACxE,QAAQ,GACE,CACd,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manakind/ui-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
"types": "./dist/alert/index.d.ts",
|
|
29
29
|
"import": "./dist/alert/index.js"
|
|
30
30
|
},
|
|
31
|
+
"./avatar": {
|
|
32
|
+
"types": "./dist/avatar/index.d.ts",
|
|
33
|
+
"import": "./dist/avatar/index.js"
|
|
34
|
+
},
|
|
31
35
|
"./badge": {
|
|
32
36
|
"types": "./dist/badge/index.d.ts",
|
|
33
37
|
"import": "./dist/badge/index.js"
|
|
@@ -44,6 +48,10 @@
|
|
|
44
48
|
"types": "./dist/card/index.d.ts",
|
|
45
49
|
"import": "./dist/card/index.js"
|
|
46
50
|
},
|
|
51
|
+
"./centered-layout": {
|
|
52
|
+
"types": "./dist/centered-layout/index.d.ts",
|
|
53
|
+
"import": "./dist/centered-layout/index.js"
|
|
54
|
+
},
|
|
47
55
|
"./checkbox": {
|
|
48
56
|
"types": "./dist/checkbox/index.d.ts",
|
|
49
57
|
"import": "./dist/checkbox/index.js"
|
|
@@ -60,10 +68,22 @@
|
|
|
60
68
|
"types": "./dist/dialog/index.d.ts",
|
|
61
69
|
"import": "./dist/dialog/index.js"
|
|
62
70
|
},
|
|
71
|
+
"./divider": {
|
|
72
|
+
"types": "./dist/divider/index.d.ts",
|
|
73
|
+
"import": "./dist/divider/index.js"
|
|
74
|
+
},
|
|
75
|
+
"./empty-state": {
|
|
76
|
+
"types": "./dist/empty-state/index.d.ts",
|
|
77
|
+
"import": "./dist/empty-state/index.js"
|
|
78
|
+
},
|
|
63
79
|
"./field": {
|
|
64
80
|
"types": "./dist/field/index.d.ts",
|
|
65
81
|
"import": "./dist/field/index.js"
|
|
66
82
|
},
|
|
83
|
+
"./form-layout": {
|
|
84
|
+
"types": "./dist/form-layout/index.d.ts",
|
|
85
|
+
"import": "./dist/form-layout/index.js"
|
|
86
|
+
},
|
|
67
87
|
"./icon": {
|
|
68
88
|
"types": "./dist/icon/index.d.ts",
|
|
69
89
|
"import": "./dist/icon/index.js"
|
|
@@ -72,10 +92,18 @@
|
|
|
72
92
|
"types": "./dist/illustration/index.d.ts",
|
|
73
93
|
"import": "./dist/illustration/index.js"
|
|
74
94
|
},
|
|
95
|
+
"./layout": {
|
|
96
|
+
"types": "./dist/layout/index.d.ts",
|
|
97
|
+
"import": "./dist/layout/index.js"
|
|
98
|
+
},
|
|
75
99
|
"./menu": {
|
|
76
100
|
"types": "./dist/menu/index.d.ts",
|
|
77
101
|
"import": "./dist/menu/index.js"
|
|
78
102
|
},
|
|
103
|
+
"./page-layout": {
|
|
104
|
+
"types": "./dist/page-layout/index.d.ts",
|
|
105
|
+
"import": "./dist/page-layout/index.js"
|
|
106
|
+
},
|
|
79
107
|
"./popover": {
|
|
80
108
|
"types": "./dist/popover/index.d.ts",
|
|
81
109
|
"import": "./dist/popover/index.js"
|
|
@@ -88,6 +116,10 @@
|
|
|
88
116
|
"types": "./dist/reorder-control/index.d.ts",
|
|
89
117
|
"import": "./dist/reorder-control/index.js"
|
|
90
118
|
},
|
|
119
|
+
"./section": {
|
|
120
|
+
"types": "./dist/section/index.d.ts",
|
|
121
|
+
"import": "./dist/section/index.js"
|
|
122
|
+
},
|
|
91
123
|
"./segment-group": {
|
|
92
124
|
"types": "./dist/segment-group/index.d.ts",
|
|
93
125
|
"import": "./dist/segment-group/index.js"
|
|
@@ -96,6 +128,18 @@
|
|
|
96
128
|
"types": "./dist/select/index.d.ts",
|
|
97
129
|
"import": "./dist/select/index.js"
|
|
98
130
|
},
|
|
131
|
+
"./show": {
|
|
132
|
+
"types": "./dist/show/index.d.ts",
|
|
133
|
+
"import": "./dist/show/index.js"
|
|
134
|
+
},
|
|
135
|
+
"./skeleton": {
|
|
136
|
+
"types": "./dist/skeleton/index.d.ts",
|
|
137
|
+
"import": "./dist/skeleton/index.js"
|
|
138
|
+
},
|
|
139
|
+
"./split-layout": {
|
|
140
|
+
"types": "./dist/split-layout/index.d.ts",
|
|
141
|
+
"import": "./dist/split-layout/index.js"
|
|
142
|
+
},
|
|
99
143
|
"./switch": {
|
|
100
144
|
"types": "./dist/switch/index.d.ts",
|
|
101
145
|
"import": "./dist/switch/index.js"
|
|
@@ -104,10 +148,26 @@
|
|
|
104
148
|
"types": "./dist/tabs/index.d.ts",
|
|
105
149
|
"import": "./dist/tabs/index.js"
|
|
106
150
|
},
|
|
151
|
+
"./text": {
|
|
152
|
+
"types": "./dist/text/index.d.ts",
|
|
153
|
+
"import": "./dist/text/index.js"
|
|
154
|
+
},
|
|
155
|
+
"./visually-hidden": {
|
|
156
|
+
"types": "./dist/visually-hidden/index.d.ts",
|
|
157
|
+
"import": "./dist/visually-hidden/index.js"
|
|
158
|
+
},
|
|
159
|
+
"./wizard-layout": {
|
|
160
|
+
"types": "./dist/wizard-layout/index.d.ts",
|
|
161
|
+
"import": "./dist/wizard-layout/index.js"
|
|
162
|
+
},
|
|
107
163
|
"./css/alert": {
|
|
108
164
|
"types": "./dist/alert/alert.css.d.ts",
|
|
109
165
|
"default": "./dist/alert/alert.css"
|
|
110
166
|
},
|
|
167
|
+
"./css/avatar": {
|
|
168
|
+
"types": "./dist/avatar/avatar.css.d.ts",
|
|
169
|
+
"default": "./dist/avatar/avatar.css"
|
|
170
|
+
},
|
|
111
171
|
"./css/badge": {
|
|
112
172
|
"types": "./dist/badge/badge.css.d.ts",
|
|
113
173
|
"default": "./dist/badge/badge.css"
|
|
@@ -124,6 +184,10 @@
|
|
|
124
184
|
"types": "./dist/card/card.css.d.ts",
|
|
125
185
|
"default": "./dist/card/card.css"
|
|
126
186
|
},
|
|
187
|
+
"./css/centered-layout": {
|
|
188
|
+
"types": "./dist/centered-layout/centered-layout.css.d.ts",
|
|
189
|
+
"default": "./dist/centered-layout/centered-layout.css"
|
|
190
|
+
},
|
|
127
191
|
"./css/checkbox": {
|
|
128
192
|
"types": "./dist/checkbox/checkbox.css.d.ts",
|
|
129
193
|
"default": "./dist/checkbox/checkbox.css"
|
|
@@ -140,10 +204,22 @@
|
|
|
140
204
|
"types": "./dist/dialog/dialog.css.d.ts",
|
|
141
205
|
"default": "./dist/dialog/dialog.css"
|
|
142
206
|
},
|
|
207
|
+
"./css/divider": {
|
|
208
|
+
"types": "./dist/divider/divider.css.d.ts",
|
|
209
|
+
"default": "./dist/divider/divider.css"
|
|
210
|
+
},
|
|
211
|
+
"./css/empty-state": {
|
|
212
|
+
"types": "./dist/empty-state/empty-state.css.d.ts",
|
|
213
|
+
"default": "./dist/empty-state/empty-state.css"
|
|
214
|
+
},
|
|
143
215
|
"./css/field": {
|
|
144
216
|
"types": "./dist/field/field.css.d.ts",
|
|
145
217
|
"default": "./dist/field/field.css"
|
|
146
218
|
},
|
|
219
|
+
"./css/form-layout": {
|
|
220
|
+
"types": "./dist/form-layout/form-layout.css.d.ts",
|
|
221
|
+
"default": "./dist/form-layout/form-layout.css"
|
|
222
|
+
},
|
|
147
223
|
"./css/icon": {
|
|
148
224
|
"types": "./dist/icon/icon.css.d.ts",
|
|
149
225
|
"default": "./dist/icon/icon.css"
|
|
@@ -152,10 +228,18 @@
|
|
|
152
228
|
"types": "./dist/illustration/illustration.css.d.ts",
|
|
153
229
|
"default": "./dist/illustration/illustration.css"
|
|
154
230
|
},
|
|
231
|
+
"./css/layout": {
|
|
232
|
+
"types": "./dist/layout/layout.css.d.ts",
|
|
233
|
+
"default": "./dist/layout/layout.css"
|
|
234
|
+
},
|
|
155
235
|
"./css/menu": {
|
|
156
236
|
"types": "./dist/menu/menu.css.d.ts",
|
|
157
237
|
"default": "./dist/menu/menu.css"
|
|
158
238
|
},
|
|
239
|
+
"./css/page-layout": {
|
|
240
|
+
"types": "./dist/page-layout/page-layout.css.d.ts",
|
|
241
|
+
"default": "./dist/page-layout/page-layout.css"
|
|
242
|
+
},
|
|
159
243
|
"./css/popover": {
|
|
160
244
|
"types": "./dist/popover/popover.css.d.ts",
|
|
161
245
|
"default": "./dist/popover/popover.css"
|
|
@@ -168,6 +252,10 @@
|
|
|
168
252
|
"types": "./dist/reorder-control/reorder-control.css.d.ts",
|
|
169
253
|
"default": "./dist/reorder-control/reorder-control.css"
|
|
170
254
|
},
|
|
255
|
+
"./css/section": {
|
|
256
|
+
"types": "./dist/section/section.css.d.ts",
|
|
257
|
+
"default": "./dist/section/section.css"
|
|
258
|
+
},
|
|
171
259
|
"./css/segment-group": {
|
|
172
260
|
"types": "./dist/segment-group/segment-group.css.d.ts",
|
|
173
261
|
"default": "./dist/segment-group/segment-group.css"
|
|
@@ -176,6 +264,18 @@
|
|
|
176
264
|
"types": "./dist/select/select.css.d.ts",
|
|
177
265
|
"default": "./dist/select/select.css"
|
|
178
266
|
},
|
|
267
|
+
"./css/show": {
|
|
268
|
+
"types": "./dist/show/show.css.d.ts",
|
|
269
|
+
"default": "./dist/show/show.css"
|
|
270
|
+
},
|
|
271
|
+
"./css/skeleton": {
|
|
272
|
+
"types": "./dist/skeleton/skeleton.css.d.ts",
|
|
273
|
+
"default": "./dist/skeleton/skeleton.css"
|
|
274
|
+
},
|
|
275
|
+
"./css/split-layout": {
|
|
276
|
+
"types": "./dist/split-layout/split-layout.css.d.ts",
|
|
277
|
+
"default": "./dist/split-layout/split-layout.css"
|
|
278
|
+
},
|
|
179
279
|
"./css/switch": {
|
|
180
280
|
"types": "./dist/switch/switch.css.d.ts",
|
|
181
281
|
"default": "./dist/switch/switch.css"
|
|
@@ -183,6 +283,18 @@
|
|
|
183
283
|
"./css/tabs": {
|
|
184
284
|
"types": "./dist/tabs/tabs.css.d.ts",
|
|
185
285
|
"default": "./dist/tabs/tabs.css"
|
|
286
|
+
},
|
|
287
|
+
"./css/text": {
|
|
288
|
+
"types": "./dist/text/text.css.d.ts",
|
|
289
|
+
"default": "./dist/text/text.css"
|
|
290
|
+
},
|
|
291
|
+
"./css/visually-hidden": {
|
|
292
|
+
"types": "./dist/visually-hidden/visually-hidden.css.d.ts",
|
|
293
|
+
"default": "./dist/visually-hidden/visually-hidden.css"
|
|
294
|
+
},
|
|
295
|
+
"./css/wizard-layout": {
|
|
296
|
+
"types": "./dist/wizard-layout/wizard-layout.css.d.ts",
|
|
297
|
+
"default": "./dist/wizard-layout/wizard-layout.css"
|
|
186
298
|
}
|
|
187
299
|
},
|
|
188
300
|
"scripts": {
|
|
@@ -203,7 +315,7 @@
|
|
|
203
315
|
},
|
|
204
316
|
"devDependencies": {
|
|
205
317
|
"@manakind/ds-config": "*",
|
|
206
|
-
"@manakind/manuia-tokens": "0.
|
|
318
|
+
"@manakind/manuia-tokens": "0.20.0",
|
|
207
319
|
"@testing-library/jest-dom": "^6.9.1",
|
|
208
320
|
"@testing-library/react": "^16.3.2",
|
|
209
321
|
"@testing-library/user-event": "^14.6.1",
|