@manakind/ui-core 0.19.0 → 0.21.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 +34 -5
- package/dist/breadcrumb/breadcrumb.css +47 -0
- package/dist/breadcrumb/breadcrumb.css.d.ts +2 -0
- package/dist/breadcrumb/breadcrumb.d.ts +43 -0
- package/dist/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/breadcrumb/breadcrumb.js +21 -0
- package/dist/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/breadcrumb/index.d.ts +3 -0
- package/dist/breadcrumb/index.d.ts.map +1 -0
- package/dist/breadcrumb/index.js +2 -0
- package/dist/breadcrumb/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/combobox/combobox.css +17 -0
- package/dist/combobox/combobox.d.ts +7 -0
- package/dist/combobox/combobox.d.ts.map +1 -1
- package/dist/combobox/combobox.js +25 -3
- package/dist/combobox/combobox.js.map +1 -1
- package/dist/date-input/date-input.d.ts +5 -3
- package/dist/date-input/date-input.d.ts.map +1 -1
- package/dist/date-input/date-input.js +13 -2
- package/dist/date-input/date-input.js.map +1 -1
- 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 +15 -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/link-component.d.ts +12 -0
- package/dist/link-component.d.ts.map +1 -0
- package/dist/link-component.js +2 -0
- package/dist/link-component.js.map +1 -0
- package/dist/menu/action-menu.d.ts +2 -4
- package/dist/menu/action-menu.d.ts.map +1 -1
- package/dist/menu/action-menu.js.map +1 -1
- package/dist/menu/menu.css +1 -1
- package/dist/menu/menu.d.ts +6 -0
- 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/segment-group/segment-group.css +31 -0
- package/dist/segment-group/segment-group.d.ts +14 -1
- package/dist/segment-group/segment-group.d.ts.map +1 -1
- package/dist/segment-group/segment-group.js +2 -2
- package/dist/segment-group/segment-group.js.map +1 -1
- 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,78 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import './text.css';
|
|
4
|
+
/** The type scale's steps, from the 14px floor up. */
|
|
5
|
+
export type TextSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
6
|
+
export type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
7
|
+
/**
|
|
8
|
+
* What the text is for, which decides its colour. `default` and `muted` are
|
|
9
|
+
* the two text roles; the four statuses are for a line of text that reports
|
|
10
|
+
* one, such as a validation message or a result.
|
|
11
|
+
*/
|
|
12
|
+
export type TextTone = 'default' | 'muted' | 'success' | 'warning' | 'danger' | 'info';
|
|
13
|
+
export type TextAlign = 'start' | 'center' | 'end';
|
|
14
|
+
/**
|
|
15
|
+
* The elements `Text` renders: the ones whose attributes are a paragraph's.
|
|
16
|
+
* Deliberately a union rather than `ElementType`: the implementation indexes
|
|
17
|
+
* the Ark factory, which hands any key to `createElement` as a tag name, so
|
|
18
|
+
* a component reference would be stringified and thrown. An element with
|
|
19
|
+
* attributes of its own (`label` with `htmlFor`, `time` with `dateTime`, an
|
|
20
|
+
* `output`) goes through `asChild`, which keeps that element's own props.
|
|
21
|
+
*/
|
|
22
|
+
export type TextTag = 'p' | 'span' | 'div' | 'strong' | 'em' | 'small' | 'li' | 'dt' | 'dd' | 'figcaption';
|
|
23
|
+
export interface TextStyleProps {
|
|
24
|
+
/** Step of the type scale. Defaults to `md`, body text. */
|
|
25
|
+
size?: TextSize;
|
|
26
|
+
/** Font weight. Defaults to the element's own (`regular` for body text). */
|
|
27
|
+
weight?: TextWeight;
|
|
28
|
+
/** Colour by purpose. Defaults to `default`. */
|
|
29
|
+
tone?: TextTone;
|
|
30
|
+
/** Horizontal alignment. Defaults to the writing direction's start. */
|
|
31
|
+
align?: TextAlign;
|
|
32
|
+
/**
|
|
33
|
+
* Clip the text with an ellipsis: `true` after one line, or a number of
|
|
34
|
+
* lines. The text is clipped by its own box rather than kept from wrapping,
|
|
35
|
+
* so a long word still breaks instead of pushing past the edge.
|
|
36
|
+
*/
|
|
37
|
+
truncate?: boolean | number;
|
|
38
|
+
}
|
|
39
|
+
export interface TextProps extends ComponentProps<typeof ark.p>, TextStyleProps {
|
|
40
|
+
/** Element to render. Defaults to `p`. */
|
|
41
|
+
as?: TextTag;
|
|
42
|
+
/**
|
|
43
|
+
* Small-caps label: uppercase, semibold, letter-spaced, for a short word
|
|
44
|
+
* that names the value beside it ("Target", "Rating"). Reads the product's
|
|
45
|
+
* label tracking; pair it with `size="xs"` or `sm`.
|
|
46
|
+
*/
|
|
47
|
+
caps?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A run of text on the type scale.
|
|
51
|
+
*
|
|
52
|
+
* Body copy, a description, a caption, a label: every piece of text a product
|
|
53
|
+
* writes outside a component with its own text slot. Size, weight and colour
|
|
54
|
+
* come from the `--ds-text-*` contract, so a product tunes its type once in
|
|
55
|
+
* tokens rather than per element. Renders a `p`; pick another tag with `as`,
|
|
56
|
+
* or pass `asChild` to style an element of your own.
|
|
57
|
+
*/
|
|
58
|
+
export declare function Text({ as, size, weight, tone, align, truncate, caps, className, style, children, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
60
|
+
export interface HeadingProps extends ComponentProps<typeof ark.h2>, TextStyleProps {
|
|
61
|
+
/**
|
|
62
|
+
* The heading element to render, which is its place in the document
|
|
63
|
+
* outline. Pick the level the outline needs, never the level whose default
|
|
64
|
+
* size looks right; `size` changes the look on its own.
|
|
65
|
+
*/
|
|
66
|
+
level: HeadingLevel;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A heading on the type scale.
|
|
70
|
+
*
|
|
71
|
+
* The level is the outline; the size is the look, and defaults from the
|
|
72
|
+
* level so a page's `h1` is `4xl` and a card's `h3` is `2xl` without a
|
|
73
|
+
* decision. Headings take the heading weight and tight line height from the
|
|
74
|
+
* contract. Pass `asChild` to style a heading element of your own, say one
|
|
75
|
+
* a library renders.
|
|
76
|
+
*/
|
|
77
|
+
export declare function Heading({ level, size, weight, tone, align, truncate, className, style, children, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAC3D,OAAO,YAAY,CAAC;AAGpB,sDAAsD;AACtD,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAEhF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAEpE;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEvF,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,GACf,GAAG,GACH,MAAM,GACN,KAAK,GACL,QAAQ,GACR,IAAI,GACJ,OAAO,GACP,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,YAAY,CAAC;AAEjB,MAAM,WAAW,cAAc;IAC7B,2DAA2D;IAC3D,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,gDAAgD;IAChD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,uEAAuE;IACvE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC7B;AA6BD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,cAAc;IAC7E,0CAA0C;IAC1C,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,EACnB,EAAE,EACF,IAAW,EACX,MAAM,EACN,IAAgB,EAChB,KAAK,EACL,QAAQ,EACR,IAAY,EACZ,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,SAAS,2CAkBX;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAYjD,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,CAAC,EAAE,cAAc;IACjF;;;;OAIG;IACH,KAAK,EAAE,YAAY,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,IAAI,EACJ,MAAM,EACN,IAAgB,EAChB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,YAAY,2CAed"}
|
|
@@ -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.21.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
"types": "./dist/badge/index.d.ts",
|
|
37
37
|
"import": "./dist/badge/index.js"
|
|
38
38
|
},
|
|
39
|
+
"./breadcrumb": {
|
|
40
|
+
"types": "./dist/breadcrumb/index.d.ts",
|
|
41
|
+
"import": "./dist/breadcrumb/index.js"
|
|
42
|
+
},
|
|
39
43
|
"./button": {
|
|
40
44
|
"types": "./dist/button/index.d.ts",
|
|
41
45
|
"import": "./dist/button/index.js"
|
|
@@ -48,6 +52,10 @@
|
|
|
48
52
|
"types": "./dist/card/index.d.ts",
|
|
49
53
|
"import": "./dist/card/index.js"
|
|
50
54
|
},
|
|
55
|
+
"./centered-layout": {
|
|
56
|
+
"types": "./dist/centered-layout/index.d.ts",
|
|
57
|
+
"import": "./dist/centered-layout/index.js"
|
|
58
|
+
},
|
|
51
59
|
"./checkbox": {
|
|
52
60
|
"types": "./dist/checkbox/index.d.ts",
|
|
53
61
|
"import": "./dist/checkbox/index.js"
|
|
@@ -64,10 +72,22 @@
|
|
|
64
72
|
"types": "./dist/dialog/index.d.ts",
|
|
65
73
|
"import": "./dist/dialog/index.js"
|
|
66
74
|
},
|
|
75
|
+
"./divider": {
|
|
76
|
+
"types": "./dist/divider/index.d.ts",
|
|
77
|
+
"import": "./dist/divider/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./empty-state": {
|
|
80
|
+
"types": "./dist/empty-state/index.d.ts",
|
|
81
|
+
"import": "./dist/empty-state/index.js"
|
|
82
|
+
},
|
|
67
83
|
"./field": {
|
|
68
84
|
"types": "./dist/field/index.d.ts",
|
|
69
85
|
"import": "./dist/field/index.js"
|
|
70
86
|
},
|
|
87
|
+
"./form-layout": {
|
|
88
|
+
"types": "./dist/form-layout/index.d.ts",
|
|
89
|
+
"import": "./dist/form-layout/index.js"
|
|
90
|
+
},
|
|
71
91
|
"./icon": {
|
|
72
92
|
"types": "./dist/icon/index.d.ts",
|
|
73
93
|
"import": "./dist/icon/index.js"
|
|
@@ -76,10 +96,18 @@
|
|
|
76
96
|
"types": "./dist/illustration/index.d.ts",
|
|
77
97
|
"import": "./dist/illustration/index.js"
|
|
78
98
|
},
|
|
99
|
+
"./layout": {
|
|
100
|
+
"types": "./dist/layout/index.d.ts",
|
|
101
|
+
"import": "./dist/layout/index.js"
|
|
102
|
+
},
|
|
79
103
|
"./menu": {
|
|
80
104
|
"types": "./dist/menu/index.d.ts",
|
|
81
105
|
"import": "./dist/menu/index.js"
|
|
82
106
|
},
|
|
107
|
+
"./page-layout": {
|
|
108
|
+
"types": "./dist/page-layout/index.d.ts",
|
|
109
|
+
"import": "./dist/page-layout/index.js"
|
|
110
|
+
},
|
|
83
111
|
"./popover": {
|
|
84
112
|
"types": "./dist/popover/index.d.ts",
|
|
85
113
|
"import": "./dist/popover/index.js"
|
|
@@ -92,6 +120,10 @@
|
|
|
92
120
|
"types": "./dist/reorder-control/index.d.ts",
|
|
93
121
|
"import": "./dist/reorder-control/index.js"
|
|
94
122
|
},
|
|
123
|
+
"./section": {
|
|
124
|
+
"types": "./dist/section/index.d.ts",
|
|
125
|
+
"import": "./dist/section/index.js"
|
|
126
|
+
},
|
|
95
127
|
"./segment-group": {
|
|
96
128
|
"types": "./dist/segment-group/index.d.ts",
|
|
97
129
|
"import": "./dist/segment-group/index.js"
|
|
@@ -100,6 +132,18 @@
|
|
|
100
132
|
"types": "./dist/select/index.d.ts",
|
|
101
133
|
"import": "./dist/select/index.js"
|
|
102
134
|
},
|
|
135
|
+
"./show": {
|
|
136
|
+
"types": "./dist/show/index.d.ts",
|
|
137
|
+
"import": "./dist/show/index.js"
|
|
138
|
+
},
|
|
139
|
+
"./skeleton": {
|
|
140
|
+
"types": "./dist/skeleton/index.d.ts",
|
|
141
|
+
"import": "./dist/skeleton/index.js"
|
|
142
|
+
},
|
|
143
|
+
"./split-layout": {
|
|
144
|
+
"types": "./dist/split-layout/index.d.ts",
|
|
145
|
+
"import": "./dist/split-layout/index.js"
|
|
146
|
+
},
|
|
103
147
|
"./switch": {
|
|
104
148
|
"types": "./dist/switch/index.d.ts",
|
|
105
149
|
"import": "./dist/switch/index.js"
|
|
@@ -108,6 +152,18 @@
|
|
|
108
152
|
"types": "./dist/tabs/index.d.ts",
|
|
109
153
|
"import": "./dist/tabs/index.js"
|
|
110
154
|
},
|
|
155
|
+
"./text": {
|
|
156
|
+
"types": "./dist/text/index.d.ts",
|
|
157
|
+
"import": "./dist/text/index.js"
|
|
158
|
+
},
|
|
159
|
+
"./visually-hidden": {
|
|
160
|
+
"types": "./dist/visually-hidden/index.d.ts",
|
|
161
|
+
"import": "./dist/visually-hidden/index.js"
|
|
162
|
+
},
|
|
163
|
+
"./wizard-layout": {
|
|
164
|
+
"types": "./dist/wizard-layout/index.d.ts",
|
|
165
|
+
"import": "./dist/wizard-layout/index.js"
|
|
166
|
+
},
|
|
111
167
|
"./css/alert": {
|
|
112
168
|
"types": "./dist/alert/alert.css.d.ts",
|
|
113
169
|
"default": "./dist/alert/alert.css"
|
|
@@ -120,6 +176,10 @@
|
|
|
120
176
|
"types": "./dist/badge/badge.css.d.ts",
|
|
121
177
|
"default": "./dist/badge/badge.css"
|
|
122
178
|
},
|
|
179
|
+
"./css/breadcrumb": {
|
|
180
|
+
"types": "./dist/breadcrumb/breadcrumb.css.d.ts",
|
|
181
|
+
"default": "./dist/breadcrumb/breadcrumb.css"
|
|
182
|
+
},
|
|
123
183
|
"./css/button": {
|
|
124
184
|
"types": "./dist/button/button.css.d.ts",
|
|
125
185
|
"default": "./dist/button/button.css"
|
|
@@ -132,6 +192,10 @@
|
|
|
132
192
|
"types": "./dist/card/card.css.d.ts",
|
|
133
193
|
"default": "./dist/card/card.css"
|
|
134
194
|
},
|
|
195
|
+
"./css/centered-layout": {
|
|
196
|
+
"types": "./dist/centered-layout/centered-layout.css.d.ts",
|
|
197
|
+
"default": "./dist/centered-layout/centered-layout.css"
|
|
198
|
+
},
|
|
135
199
|
"./css/checkbox": {
|
|
136
200
|
"types": "./dist/checkbox/checkbox.css.d.ts",
|
|
137
201
|
"default": "./dist/checkbox/checkbox.css"
|
|
@@ -148,10 +212,22 @@
|
|
|
148
212
|
"types": "./dist/dialog/dialog.css.d.ts",
|
|
149
213
|
"default": "./dist/dialog/dialog.css"
|
|
150
214
|
},
|
|
215
|
+
"./css/divider": {
|
|
216
|
+
"types": "./dist/divider/divider.css.d.ts",
|
|
217
|
+
"default": "./dist/divider/divider.css"
|
|
218
|
+
},
|
|
219
|
+
"./css/empty-state": {
|
|
220
|
+
"types": "./dist/empty-state/empty-state.css.d.ts",
|
|
221
|
+
"default": "./dist/empty-state/empty-state.css"
|
|
222
|
+
},
|
|
151
223
|
"./css/field": {
|
|
152
224
|
"types": "./dist/field/field.css.d.ts",
|
|
153
225
|
"default": "./dist/field/field.css"
|
|
154
226
|
},
|
|
227
|
+
"./css/form-layout": {
|
|
228
|
+
"types": "./dist/form-layout/form-layout.css.d.ts",
|
|
229
|
+
"default": "./dist/form-layout/form-layout.css"
|
|
230
|
+
},
|
|
155
231
|
"./css/icon": {
|
|
156
232
|
"types": "./dist/icon/icon.css.d.ts",
|
|
157
233
|
"default": "./dist/icon/icon.css"
|
|
@@ -160,10 +236,18 @@
|
|
|
160
236
|
"types": "./dist/illustration/illustration.css.d.ts",
|
|
161
237
|
"default": "./dist/illustration/illustration.css"
|
|
162
238
|
},
|
|
239
|
+
"./css/layout": {
|
|
240
|
+
"types": "./dist/layout/layout.css.d.ts",
|
|
241
|
+
"default": "./dist/layout/layout.css"
|
|
242
|
+
},
|
|
163
243
|
"./css/menu": {
|
|
164
244
|
"types": "./dist/menu/menu.css.d.ts",
|
|
165
245
|
"default": "./dist/menu/menu.css"
|
|
166
246
|
},
|
|
247
|
+
"./css/page-layout": {
|
|
248
|
+
"types": "./dist/page-layout/page-layout.css.d.ts",
|
|
249
|
+
"default": "./dist/page-layout/page-layout.css"
|
|
250
|
+
},
|
|
167
251
|
"./css/popover": {
|
|
168
252
|
"types": "./dist/popover/popover.css.d.ts",
|
|
169
253
|
"default": "./dist/popover/popover.css"
|
|
@@ -176,6 +260,10 @@
|
|
|
176
260
|
"types": "./dist/reorder-control/reorder-control.css.d.ts",
|
|
177
261
|
"default": "./dist/reorder-control/reorder-control.css"
|
|
178
262
|
},
|
|
263
|
+
"./css/section": {
|
|
264
|
+
"types": "./dist/section/section.css.d.ts",
|
|
265
|
+
"default": "./dist/section/section.css"
|
|
266
|
+
},
|
|
179
267
|
"./css/segment-group": {
|
|
180
268
|
"types": "./dist/segment-group/segment-group.css.d.ts",
|
|
181
269
|
"default": "./dist/segment-group/segment-group.css"
|
|
@@ -184,6 +272,18 @@
|
|
|
184
272
|
"types": "./dist/select/select.css.d.ts",
|
|
185
273
|
"default": "./dist/select/select.css"
|
|
186
274
|
},
|
|
275
|
+
"./css/show": {
|
|
276
|
+
"types": "./dist/show/show.css.d.ts",
|
|
277
|
+
"default": "./dist/show/show.css"
|
|
278
|
+
},
|
|
279
|
+
"./css/skeleton": {
|
|
280
|
+
"types": "./dist/skeleton/skeleton.css.d.ts",
|
|
281
|
+
"default": "./dist/skeleton/skeleton.css"
|
|
282
|
+
},
|
|
283
|
+
"./css/split-layout": {
|
|
284
|
+
"types": "./dist/split-layout/split-layout.css.d.ts",
|
|
285
|
+
"default": "./dist/split-layout/split-layout.css"
|
|
286
|
+
},
|
|
187
287
|
"./css/switch": {
|
|
188
288
|
"types": "./dist/switch/switch.css.d.ts",
|
|
189
289
|
"default": "./dist/switch/switch.css"
|
|
@@ -191,6 +291,18 @@
|
|
|
191
291
|
"./css/tabs": {
|
|
192
292
|
"types": "./dist/tabs/tabs.css.d.ts",
|
|
193
293
|
"default": "./dist/tabs/tabs.css"
|
|
294
|
+
},
|
|
295
|
+
"./css/text": {
|
|
296
|
+
"types": "./dist/text/text.css.d.ts",
|
|
297
|
+
"default": "./dist/text/text.css"
|
|
298
|
+
},
|
|
299
|
+
"./css/visually-hidden": {
|
|
300
|
+
"types": "./dist/visually-hidden/visually-hidden.css.d.ts",
|
|
301
|
+
"default": "./dist/visually-hidden/visually-hidden.css"
|
|
302
|
+
},
|
|
303
|
+
"./css/wizard-layout": {
|
|
304
|
+
"types": "./dist/wizard-layout/wizard-layout.css.d.ts",
|
|
305
|
+
"default": "./dist/wizard-layout/wizard-layout.css"
|
|
194
306
|
}
|
|
195
307
|
},
|
|
196
308
|
"scripts": {
|
|
@@ -211,7 +323,7 @@
|
|
|
211
323
|
},
|
|
212
324
|
"devDependencies": {
|
|
213
325
|
"@manakind/ds-config": "*",
|
|
214
|
-
"@manakind/manuia-tokens": "0.
|
|
326
|
+
"@manakind/manuia-tokens": "0.21.0",
|
|
215
327
|
"@testing-library/jest-dom": "^6.9.1",
|
|
216
328
|
"@testing-library/react": "^16.3.2",
|
|
217
329
|
"@testing-library/user-event": "^14.6.1",
|