@manakind/ui-core 0.2.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/LICENSE +21 -0
- package/README.md +81 -0
- package/dist/badge/badge.css +147 -0
- package/dist/badge/badge.d.ts +90 -0
- package/dist/badge/badge.d.ts.map +1 -0
- package/dist/badge/badge.js +62 -0
- package/dist/badge/badge.js.map +1 -0
- package/dist/badge/index.d.ts +3 -0
- package/dist/badge/index.d.ts.map +1 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge/index.js.map +1 -0
- package/dist/button/button.css +155 -0
- package/dist/button/button.d.ts +41 -0
- package/dist/button/button.d.ts.map +1 -0
- package/dist/button/button.js +20 -0
- package/dist/button/button.js.map +1 -0
- package/dist/button/icon-button.d.ts +31 -0
- package/dist/button/icon-button.d.ts.map +1 -0
- package/dist/button/icon-button.js +18 -0
- package/dist/button/icon-button.js.map +1 -0
- package/dist/button/index.d.ts +5 -0
- package/dist/button/index.d.ts.map +1 -0
- package/dist/button/index.js +3 -0
- package/dist/button/index.js.map +1 -0
- package/dist/card/card.css +79 -0
- package/dist/card/card.d.ts +72 -0
- package/dist/card/card.d.ts.map +1 -0
- package/dist/card/card.js +45 -0
- package/dist/card/card.js.map +1 -0
- package/dist/card/index.d.ts +3 -0
- package/dist/card/index.d.ts.map +1 -0
- package/dist/card/index.js +2 -0
- package/dist/card/index.js.map +1 -0
- package/dist/cx.d.ts +17 -0
- package/dist/cx.d.ts.map +1 -0
- package/dist/cx.js +17 -0
- package/dist/cx.js.map +1 -0
- package/dist/icon/icon.css +52 -0
- package/dist/icon/icon.d.ts +51 -0
- package/dist/icon/icon.d.ts.map +1 -0
- package/dist/icon/icon.js +37 -0
- package/dist/icon/icon.js.map +1 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.d.ts.map +1 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon/index.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.d.ts.map +1 -0
- package/dist/progress/index.js +2 -0
- package/dist/progress/index.js.map +1 -0
- package/dist/progress/progress.css +95 -0
- package/dist/progress/progress.d.ts +55 -0
- package/dist/progress/progress.d.ts.map +1 -0
- package/dist/progress/progress.js +30 -0
- package/dist/progress/progress.js.map +1 -0
- package/dist/select/index.d.ts +3 -0
- package/dist/select/index.d.ts.map +1 -0
- package/dist/select/index.js +2 -0
- package/dist/select/index.js.map +1 -0
- package/dist/select/select.css +223 -0
- package/dist/select/select.d.ts +135 -0
- package/dist/select/select.d.ts.map +1 -0
- package/dist/select/select.js +89 -0
- package/dist/select/select.js.map +1 -0
- package/dist/tabs/index.d.ts +3 -0
- package/dist/tabs/index.d.ts.map +1 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/index.js.map +1 -0
- package/dist/tabs/tabs.css +145 -0
- package/dist/tabs/tabs.d.ts +55 -0
- package/dist/tabs/tabs.d.ts.map +1 -0
- package/dist/tabs/tabs.js +54 -0
- package/dist/tabs/tabs.js.map +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import { type IconSource } from '../icon/icon';
|
|
4
|
+
import type { ButtonSize, ButtonVariant } from './button';
|
|
5
|
+
import './button.css';
|
|
6
|
+
export interface IconButtonProps extends Omit<ComponentProps<typeof ark.button>, 'children' | 'aria-label'> {
|
|
7
|
+
/** Decorative icon rendered inside the button. */
|
|
8
|
+
icon: IconSource;
|
|
9
|
+
/**
|
|
10
|
+
* Accessible label announced by assistive tech. Required because the
|
|
11
|
+
* button has no visible text content to derive a name from.
|
|
12
|
+
*/
|
|
13
|
+
'aria-label': string;
|
|
14
|
+
/** Visual style variant. Shared with {@link Button}. */
|
|
15
|
+
variant?: ButtonVariant;
|
|
16
|
+
/** Size preset. Drives both the button's bounding box and the icon size. */
|
|
17
|
+
size?: ButtonSize;
|
|
18
|
+
/** Show loading spinner and disable interaction. */
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Square, icon-only button for the Manakind design system.
|
|
23
|
+
*
|
|
24
|
+
* Shares the full visual contract with `Button` (same variants, sizes,
|
|
25
|
+
* focus ring, disabled + loading behavior) by reusing the `ds-button`
|
|
26
|
+
* class plus a `ds-button--icon-only` modifier. The only API difference
|
|
27
|
+
* is that `aria-label` is required at the type level — an icon-only
|
|
28
|
+
* button has no visible text to derive an accessible name from.
|
|
29
|
+
*/
|
|
30
|
+
export declare function IconButton({ icon, variant, size, loading, disabled, className, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,cAAc,CAAC;AAGtB,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IAC1E,kDAAkD;IAClD,IAAI,EAAE,UAAU,CAAC;IACjB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,oDAAoD;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAmB,EACnB,IAAW,EACX,OAAe,EACf,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,2CAkBjB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ark } from '@ark-ui/react/factory';
|
|
3
|
+
import { Icon } from '../icon/icon';
|
|
4
|
+
import './button.css';
|
|
5
|
+
import { cx } from '../cx';
|
|
6
|
+
/**
|
|
7
|
+
* Square, icon-only button for the Manakind design system.
|
|
8
|
+
*
|
|
9
|
+
* Shares the full visual contract with `Button` (same variants, sizes,
|
|
10
|
+
* focus ring, disabled + loading behavior) by reusing the `ds-button`
|
|
11
|
+
* class plus a `ds-button--icon-only` modifier. The only API difference
|
|
12
|
+
* is that `aria-label` is required at the type level — an icon-only
|
|
13
|
+
* button has no visible text to derive an accessible name from.
|
|
14
|
+
*/
|
|
15
|
+
export function IconButton({ icon, variant = 'primary', size = 'md', loading = false, disabled, className, ...props }) {
|
|
16
|
+
return (_jsxs(ark.button, { disabled: disabled || loading, className: cx('ds-button', 'ds-button--icon-only', `ds-button--${variant}`, `ds-button--${size}`, loading && 'ds-button--loading', className), ...props, children: [loading && _jsx("span", { className: "ds-button__spinner", "aria-hidden": "true" }), _jsx(Icon, { source: icon, size: size, decorative: true, className: "ds-button__icon" })] }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=icon-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../src/button/icon-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAErD,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAmB3B;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,KAAK,EACf,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACQ;IAChB,OAAO,CACL,MAAC,GAAG,CAAC,MAAM,IACT,QAAQ,EAAE,QAAQ,IAAI,OAAO,EAC7B,SAAS,EAAE,EAAE,CACX,WAAW,EACX,sBAAsB,EACtB,cAAc,OAAO,EAAE,EACvB,cAAc,IAAI,EAAE,EACpB,OAAO,IAAI,oBAAoB,EAC/B,SAAS,CACV,KACG,KAAK,aAER,OAAO,IAAI,eAAM,SAAS,EAAC,oBAAoB,iBAAa,MAAM,GAAG,EACtE,KAAC,IAAI,IAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,QAAC,SAAS,EAAC,iBAAiB,GAAG,IAC9D,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/button/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/button/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ds-card {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--ds-card-gap);
|
|
6
|
+
padding: var(--ds-card-padding);
|
|
7
|
+
border-radius: var(--ds-card-radius);
|
|
8
|
+
background-color: var(--ds-card-bg);
|
|
9
|
+
color: var(--ds-card-text);
|
|
10
|
+
border: 1px solid var(--ds-card-border);
|
|
11
|
+
|
|
12
|
+
& .ds-card__header {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: var(--ds-card-gap);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& .ds-card__title {
|
|
19
|
+
margin: 0;
|
|
20
|
+
font-size: var(--ds-card-title-font-size);
|
|
21
|
+
font-weight: var(--ds-card-title-font-weight);
|
|
22
|
+
color: var(--ds-card-text);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& .ds-card__description {
|
|
26
|
+
margin: 0;
|
|
27
|
+
color: var(--ds-card-text-muted);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& .ds-card__content {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: var(--ds-card-gap);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
& .ds-card__footer {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--ds-card-gap);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ds-card:where([data-interactive]) {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
transition:
|
|
46
|
+
border-color 150ms cubic-bezier(0, 0, 0.2, 1),
|
|
47
|
+
background-color 150ms cubic-bezier(0, 0, 0.2, 1);
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
border-color: var(--ds-card-border-hover);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus-visible {
|
|
54
|
+
outline: 2px solid var(--ds-card-focus-ring);
|
|
55
|
+
outline-offset: 3px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* A card is not focusable on its own — `interactive` only styles it, and
|
|
61
|
+
* consumers wrap it in a link or button, which is what actually receives
|
|
62
|
+
* focus. That wrapper is a plain block with square corners, so the browser
|
|
63
|
+
* drew its ring as a rectangle flush around a 12px-rounded card: wrong
|
|
64
|
+
* shape, and touching the border.
|
|
65
|
+
*
|
|
66
|
+
* Move the ring onto the card, where it picks up the card's own radius, and
|
|
67
|
+
* use the same offset as the directly-focusable case above. Scoped by the
|
|
68
|
+
* child combinator, so it applies only to a wrapper that exists to make a
|
|
69
|
+
* card operable and cannot leak onto unrelated links.
|
|
70
|
+
*/
|
|
71
|
+
:where(a, button):has(> .ds-card--interactive):focus-visible {
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:where(a, button):focus-visible > .ds-card--interactive {
|
|
76
|
+
outline: 2px solid var(--ds-card-focus-ring);
|
|
77
|
+
outline-offset: 3px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import './card.css';
|
|
4
|
+
export interface CardProps extends ComponentProps<typeof ark.div> {
|
|
5
|
+
/**
|
|
6
|
+
* Opt into hover and focus affordances for cards that act as a single
|
|
7
|
+
* click target (a link wrapping the whole card, for example).
|
|
8
|
+
*
|
|
9
|
+
* This only applies styling. The consumer is still responsible for making
|
|
10
|
+
* the card actually operable — wrap it in a link or button, or supply the
|
|
11
|
+
* appropriate role and key handling. A card is not interactive by virtue
|
|
12
|
+
* of this prop.
|
|
13
|
+
*
|
|
14
|
+
* The component reflects this state as `[data-interactive]`, a stable hook
|
|
15
|
+
* for compositions that need to extend the interactive treatment without
|
|
16
|
+
* targeting ui-core's internal class names.
|
|
17
|
+
*/
|
|
18
|
+
interactive?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Surface container for grouped content.
|
|
22
|
+
*
|
|
23
|
+
* A structural primitive, not an Ark UI behavioural component — cards have
|
|
24
|
+
* no interaction model of their own. Styled exclusively against the
|
|
25
|
+
* `--ds-card-*` token contract.
|
|
26
|
+
*
|
|
27
|
+
* Compose with {@link CardHeader}, {@link CardTitle}, {@link CardDescription},
|
|
28
|
+
* {@link CardContent}, and {@link CardFooter}. Each sub-part is optional and
|
|
29
|
+
* carries only layout; none of them impose semantics beyond `CardTitle`,
|
|
30
|
+
* which renders a real heading.
|
|
31
|
+
*
|
|
32
|
+
* The contract exposes no shadow token, so `Card` draws a border and no
|
|
33
|
+
* elevation. Products that want raised surfaces add the shadow in their own
|
|
34
|
+
* composition layer rather than through this component.
|
|
35
|
+
*/
|
|
36
|
+
export declare function Card({ interactive, className, children, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export type CardHeaderProps = ComponentProps<typeof ark.div>;
|
|
38
|
+
/** Top region of a card. Stacks its children with the card's gap. */
|
|
39
|
+
export declare function CardHeader({ className, children, ...props }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* The heading levels {@link CardTitle} can render.
|
|
42
|
+
*
|
|
43
|
+
* Deliberately not `ElementType`: the implementation indexes the Ark factory,
|
|
44
|
+
* whose proxy hands any key straight to `createElement` as a tag name. A
|
|
45
|
+
* component reference is a valid `ElementType` but would be stringified into
|
|
46
|
+
* its own source text and thrown as an invalid tag name at runtime, so the
|
|
47
|
+
* type is narrowed to exactly what the implementation can render.
|
|
48
|
+
*/
|
|
49
|
+
export type CardHeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
50
|
+
export interface CardTitleProps extends ComponentProps<typeof ark.h3> {
|
|
51
|
+
/**
|
|
52
|
+
* Heading level to render. Defaults to `h3`.
|
|
53
|
+
*
|
|
54
|
+
* Pick the level that fits the surrounding document outline — a card in a
|
|
55
|
+
* page section usually wants `h3`, but a card that is the page's primary
|
|
56
|
+
* content may want `h2`. Never skip levels to get a particular size; size
|
|
57
|
+
* comes from the token, not the tag.
|
|
58
|
+
*/
|
|
59
|
+
as?: CardHeadingTag;
|
|
60
|
+
}
|
|
61
|
+
/** Accessible heading for a card. Renders `h3` unless `as` overrides it. */
|
|
62
|
+
export declare function CardTitle({ as, className, children, ...props }: CardTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export type CardDescriptionProps = ComponentProps<typeof ark.p>;
|
|
64
|
+
/** Muted supporting copy, typically directly under {@link CardTitle}. */
|
|
65
|
+
export declare function CardDescription({ className, children, ...props }: CardDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export type CardContentProps = ComponentProps<typeof ark.div>;
|
|
67
|
+
/** Main body region of a card. */
|
|
68
|
+
export declare function CardContent({ className, children, ...props }: CardContentProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export type CardFooterProps = ComponentProps<typeof ark.div>;
|
|
70
|
+
/** Bottom region of a card. Lays its children out in a row. */
|
|
71
|
+
export declare function CardFooter({ className, children, ...props }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,YAAY,CAAC;AAGpB,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC;IAC/D;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,EAAE,WAAmB,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAUrF;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7D,qEAAqE;AACrE,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAM5E;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErE,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,CAAC;IACnE;;;;;;;OAOG;IACH,EAAE,CAAC,EAAE,cAAc,CAAC;CACrB;AAED,4EAA4E;AAC5E,wBAAgB,SAAS,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAO9E;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;AAEhE,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,2CAMtF;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;AAE9D,kCAAkC;AAClC,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAM9E;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7D,+DAA+D;AAC/D,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAM5E"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ark } from '@ark-ui/react/factory';
|
|
3
|
+
import './card.css';
|
|
4
|
+
import { cx } from '../cx';
|
|
5
|
+
/**
|
|
6
|
+
* Surface container for grouped content.
|
|
7
|
+
*
|
|
8
|
+
* A structural primitive, not an Ark UI behavioural component — cards have
|
|
9
|
+
* no interaction model of their own. Styled exclusively against the
|
|
10
|
+
* `--ds-card-*` token contract.
|
|
11
|
+
*
|
|
12
|
+
* Compose with {@link CardHeader}, {@link CardTitle}, {@link CardDescription},
|
|
13
|
+
* {@link CardContent}, and {@link CardFooter}. Each sub-part is optional and
|
|
14
|
+
* carries only layout; none of them impose semantics beyond `CardTitle`,
|
|
15
|
+
* which renders a real heading.
|
|
16
|
+
*
|
|
17
|
+
* The contract exposes no shadow token, so `Card` draws a border and no
|
|
18
|
+
* elevation. Products that want raised surfaces add the shadow in their own
|
|
19
|
+
* composition layer rather than through this component.
|
|
20
|
+
*/
|
|
21
|
+
export function Card({ interactive = false, className, children, ...props }) {
|
|
22
|
+
return (_jsx(ark.div, { className: cx('ds-card', interactive && 'ds-card--interactive', className), ...props, "data-interactive": interactive ? '' : undefined, children: children }));
|
|
23
|
+
}
|
|
24
|
+
/** Top region of a card. Stacks its children with the card's gap. */
|
|
25
|
+
export function CardHeader({ className, children, ...props }) {
|
|
26
|
+
return (_jsx(ark.div, { className: cx('ds-card__header', className), ...props, children: children }));
|
|
27
|
+
}
|
|
28
|
+
/** Accessible heading for a card. Renders `h3` unless `as` overrides it. */
|
|
29
|
+
export function CardTitle({ as, className, children, ...props }) {
|
|
30
|
+
const Component = as ? ark[as] : ark.h3;
|
|
31
|
+
return (_jsx(Component, { className: cx('ds-card__title', className), ...props, children: children }));
|
|
32
|
+
}
|
|
33
|
+
/** Muted supporting copy, typically directly under {@link CardTitle}. */
|
|
34
|
+
export function CardDescription({ className, children, ...props }) {
|
|
35
|
+
return (_jsx(ark.p, { className: cx('ds-card__description', className), ...props, children: children }));
|
|
36
|
+
}
|
|
37
|
+
/** Main body region of a card. */
|
|
38
|
+
export function CardContent({ className, children, ...props }) {
|
|
39
|
+
return (_jsx(ark.div, { className: cx('ds-card__content', className), ...props, children: children }));
|
|
40
|
+
}
|
|
41
|
+
/** Bottom region of a card. Lays its children out in a row. */
|
|
42
|
+
export function CardFooter({ className, children, ...props }) {
|
|
43
|
+
return (_jsx(ark.div, { className: cx('ds-card__footer', className), ...props, children: children }));
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/card/card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,YAAY,CAAC;AACpB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAmB3B;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,IAAI,CAAC,EAAE,WAAW,GAAG,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAa;IACpF,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IACN,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,WAAW,IAAI,sBAAsB,EAAE,SAAS,CAAC,KACtE,KAAK,sBACS,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,YAE7C,QAAQ,GACD,CACX,CAAC;AACJ,CAAC;AAID,qEAAqE;AACrE,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAmB;IAC3E,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IAAC,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC5D,QAAQ,GACD,CACX,CAAC;AACJ,CAAC;AAyBD,4EAA4E;AAC5E,MAAM,UAAU,SAAS,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAkB;IAC7E,MAAM,SAAS,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACxC,OAAO,CACL,KAAC,SAAS,IAAC,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC7D,QAAQ,GACC,CACb,CAAC;AACJ,CAAC;AAID,yEAAyE;AACzE,MAAM,UAAU,eAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAwB;IACrF,OAAO,CACL,KAAC,GAAG,CAAC,CAAC,IAAC,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC/D,QAAQ,GACH,CACT,CAAC;AACJ,CAAC;AAID,kCAAkC;AAClC,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAoB;IAC7E,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IAAC,SAAS,EAAE,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC7D,QAAQ,GACD,CACX,CAAC;AACJ,CAAC;AAID,+DAA+D;AAC/D,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAmB;IAC3E,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IAAC,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC5D,QAAQ,GACD,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardHeadingTag, CardProps, CardTitleProps, } from './card';
|
|
2
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from './card';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/card/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,cAAc,EACd,SAAS,EACT,cAAc,GACf,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/card/index.ts"],"names":[],"mappings":"AASA,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC"}
|
package/dist/cx.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join class names, dropping anything falsy.
|
|
3
|
+
*
|
|
4
|
+
* ```tsx
|
|
5
|
+
* cx('ds-card', `ds-card--${variant}`, interactive && 'ds-card--interactive', className)
|
|
6
|
+
* ```
|
|
7
|
+
*
|
|
8
|
+
* Deliberately smaller than `clsx`: no objects, no arrays, no nesting. Every
|
|
9
|
+
* call site in this repo passes a flat list of strings and `cond && 'class'`
|
|
10
|
+
* expressions, and keeping the signature at exactly that shape means the
|
|
11
|
+
* design system carries no class-name DSL of its own for products to learn.
|
|
12
|
+
*
|
|
13
|
+
* Exported publicly because `{product}-ui` packages compose `ui-core` and need
|
|
14
|
+
* the same helper; `ui-core` is the only runtime dependency they share.
|
|
15
|
+
*/
|
|
16
|
+
export declare const cx: (...parts: (string | false | undefined | null)[]) => string;
|
|
17
|
+
//# sourceMappingURL=cx.d.ts.map
|
package/dist/cx.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../src/cx.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,EAAE,GAAI,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,KAAG,MACpC,CAAC"}
|
package/dist/cx.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join class names, dropping anything falsy.
|
|
3
|
+
*
|
|
4
|
+
* ```tsx
|
|
5
|
+
* cx('ds-card', `ds-card--${variant}`, interactive && 'ds-card--interactive', className)
|
|
6
|
+
* ```
|
|
7
|
+
*
|
|
8
|
+
* Deliberately smaller than `clsx`: no objects, no arrays, no nesting. Every
|
|
9
|
+
* call site in this repo passes a flat list of strings and `cond && 'class'`
|
|
10
|
+
* expressions, and keeping the signature at exactly that shape means the
|
|
11
|
+
* design system carries no class-name DSL of its own for products to learn.
|
|
12
|
+
*
|
|
13
|
+
* Exported publicly because `{product}-ui` packages compose `ui-core` and need
|
|
14
|
+
* the same helper; `ui-core` is the only runtime dependency they share.
|
|
15
|
+
*/
|
|
16
|
+
export const cx = (...parts) => parts.filter(Boolean).join(' ');
|
|
17
|
+
//# sourceMappingURL=cx.js.map
|
package/dist/cx.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx.js","sourceRoot":"","sources":["../src/cx.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAA4C,EAAU,EAAE,CAC5E,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ds-icon {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
fill: currentColor;
|
|
6
|
+
stroke: currentColor;
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
|
|
9
|
+
&.ds-icon--sm {
|
|
10
|
+
width: var(--ds-icon-size-sm);
|
|
11
|
+
height: var(--ds-icon-size-sm);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.ds-icon--md {
|
|
15
|
+
width: var(--ds-icon-size-md);
|
|
16
|
+
height: var(--ds-icon-size-md);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.ds-icon--lg {
|
|
20
|
+
width: var(--ds-icon-size-lg);
|
|
21
|
+
height: var(--ds-icon-size-lg);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.ds-icon--tone-default {
|
|
25
|
+
color: var(--ds-icon-color-default);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.ds-icon--tone-muted {
|
|
29
|
+
color: var(--ds-icon-color-muted);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.ds-icon--tone-action {
|
|
33
|
+
color: var(--ds-icon-color-action);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.ds-icon--tone-on-action {
|
|
37
|
+
color: var(--ds-icon-color-on-action);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.ds-icon--tone-success {
|
|
41
|
+
color: var(--ds-icon-color-success);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.ds-icon--tone-warning {
|
|
45
|
+
color: var(--ds-icon-color-warning);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.ds-icon--tone-danger {
|
|
49
|
+
color: var(--ds-icon-color-danger);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ComponentType, type SVGProps } from 'react';
|
|
2
|
+
import './icon.css';
|
|
3
|
+
/**
|
|
4
|
+
* Library-agnostic icon contract.
|
|
5
|
+
*
|
|
6
|
+
* An `IconSource` is a React component that renders its own `<svg>` root
|
|
7
|
+
* (typically with `fill="currentColor"` baked in so it inherits color from
|
|
8
|
+
* the wrapper). The wrapper `Icon` component injects `className`, role,
|
|
9
|
+
* `aria-label`, `aria-hidden`, and `focusable` via passthrough props.
|
|
10
|
+
*
|
|
11
|
+
* Any icon library that exports React components with this shape can be
|
|
12
|
+
* passed to `<Icon>` — hand-rolled SVGs, Lucide, Heroicons, or a
|
|
13
|
+
* product-specific compiled icon package.
|
|
14
|
+
*/
|
|
15
|
+
export type IconSource = ComponentType<SVGProps<SVGSVGElement>>;
|
|
16
|
+
export type IconSize = 'sm' | 'md' | 'lg';
|
|
17
|
+
export type IconTone = 'default' | 'muted' | 'action' | 'onAction' | 'success' | 'warning' | 'danger';
|
|
18
|
+
type IconA11y = {
|
|
19
|
+
label: string;
|
|
20
|
+
decorative?: never;
|
|
21
|
+
} | {
|
|
22
|
+
decorative: true;
|
|
23
|
+
label?: never;
|
|
24
|
+
};
|
|
25
|
+
export type IconProps = IconA11y & {
|
|
26
|
+
/** Icon component supplied by the consumer or a compiled icon package. */
|
|
27
|
+
source: IconSource;
|
|
28
|
+
/** Size preset. Maps to `--ds-icon-size-*`. */
|
|
29
|
+
size?: IconSize;
|
|
30
|
+
/** Optional tone modifier. When omitted, the icon inherits `currentColor`. */
|
|
31
|
+
tone?: IconTone;
|
|
32
|
+
/** Extra class names appended after `ds-icon` modifiers. */
|
|
33
|
+
className?: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Renders an SVG icon by delegating to a passed-in icon component.
|
|
37
|
+
*
|
|
38
|
+
* Consumers must explicitly choose between an accessible label
|
|
39
|
+
* (`label="…"`) and `decorative` to opt into `aria-hidden`. TypeScript
|
|
40
|
+
* enforces the choice via a discriminated union — neither prop omitted,
|
|
41
|
+
* nor both supplied, will compile.
|
|
42
|
+
*
|
|
43
|
+
* Sizing is driven by `--ds-icon-size-{sm,md,lg}` and color by
|
|
44
|
+
* `currentColor` (or `--ds-icon-color-{tone}` when a tone is set).
|
|
45
|
+
*
|
|
46
|
+
* The icon component owns its own `viewBox` and child geometry; `Icon`
|
|
47
|
+
* only contributes layout, a11y, and styling concerns.
|
|
48
|
+
*/
|
|
49
|
+
export declare function Icon({ source, size, tone, className, label, decorative }: IconProps): import("react").ReactElement<SVGProps<SVGSVGElement>, string | import("react").JSXElementConstructor<any>>;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAiB,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,YAAY,CAAC;AAGpB;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAEhE,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,OAAO,GACP,QAAQ,GACR,UAAU,GACV,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAYb,KAAK,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,UAAU,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE5F,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG;IACjC,0EAA0E;IAC1E,MAAM,EAAE,UAAU,CAAC;IACnB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,IAAW,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,SAAS,8GAe1F"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import './icon.css';
|
|
3
|
+
import { cx } from '../cx';
|
|
4
|
+
const TONE_TO_CLASS = {
|
|
5
|
+
default: 'default',
|
|
6
|
+
muted: 'muted',
|
|
7
|
+
action: 'action',
|
|
8
|
+
onAction: 'on-action',
|
|
9
|
+
success: 'success',
|
|
10
|
+
warning: 'warning',
|
|
11
|
+
danger: 'danger',
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Renders an SVG icon by delegating to a passed-in icon component.
|
|
15
|
+
*
|
|
16
|
+
* Consumers must explicitly choose between an accessible label
|
|
17
|
+
* (`label="…"`) and `decorative` to opt into `aria-hidden`. TypeScript
|
|
18
|
+
* enforces the choice via a discriminated union — neither prop omitted,
|
|
19
|
+
* nor both supplied, will compile.
|
|
20
|
+
*
|
|
21
|
+
* Sizing is driven by `--ds-icon-size-{sm,md,lg}` and color by
|
|
22
|
+
* `currentColor` (or `--ds-icon-color-{tone}` when a tone is set).
|
|
23
|
+
*
|
|
24
|
+
* The icon component owns its own `viewBox` and child geometry; `Icon`
|
|
25
|
+
* only contributes layout, a11y, and styling concerns.
|
|
26
|
+
*/
|
|
27
|
+
export function Icon({ source, size = 'md', tone, className, label, decorative }) {
|
|
28
|
+
const classes = cx('ds-icon', `ds-icon--${size}`, tone && `ds-icon--tone-${TONE_TO_CLASS[tone]}`, className);
|
|
29
|
+
return createElement(source, {
|
|
30
|
+
role: decorative ? undefined : 'img',
|
|
31
|
+
'aria-label': label,
|
|
32
|
+
'aria-hidden': decorative || undefined,
|
|
33
|
+
focusable: 'false',
|
|
34
|
+
className: classes,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,aAAa,EAAiB,MAAM,OAAO,CAAC;AACzE,OAAO,YAAY,CAAC;AACpB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA0B3B,MAAM,aAAa,GAA6B;IAC9C,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAeF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAa;IACzF,MAAM,OAAO,GAAG,EAAE,CAChB,SAAS,EACT,YAAY,IAAI,EAAE,EAClB,IAAI,IAAI,iBAAiB,aAAa,CAAC,IAAI,CAAC,EAAE,EAC9C,SAAS,CACV,CAAC;IAEF,OAAO,aAAa,CAAC,MAAM,EAAE;QAC3B,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK;QACpC,YAAY,EAAE,KAAK;QACnB,aAAa,EAAE,UAAU,IAAI,SAAS;QACtC,SAAS,EAAE,OAAO;QAClB,SAAS,EAAE,OAAO;KACnB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/progress/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/progress/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|