@veritone-ce/design-system 2.8.13-next.0 → 2.8.13

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.
Files changed (66) hide show
  1. package/dist/cjs/Dialog/components.js +90 -29
  2. package/dist/cjs/Dialog/state.js +8 -2
  3. package/dist/cjs/Dialog/styles.module.scss.js +2 -2
  4. package/dist/cjs/FileUploader/controlled.js +0 -7
  5. package/dist/cjs/Menu/controlled.js +77 -2
  6. package/dist/cjs/Select/controlled.js +3 -0
  7. package/dist/cjs/Table/AutoTable/controlled.js +1 -2
  8. package/dist/cjs/Table/AutoTable/styles.module.scss.js +1 -1
  9. package/dist/cjs/TablePagination/index.js +8 -21
  10. package/dist/cjs/index.js +0 -11
  11. package/dist/cjs/styles/createPalette.js +0 -11
  12. package/dist/cjs/styles.css +1 -1
  13. package/dist/cjs/unstable/Card/index.js +33 -0
  14. package/dist/cjs/unstable/Card/styles.module.scss.js +1 -1
  15. package/dist/cjs/unstable/index.js +13 -39
  16. package/dist/esm/Dialog/components.js +89 -28
  17. package/dist/esm/Dialog/state.js +8 -2
  18. package/dist/esm/Dialog/styles.module.scss.js +2 -2
  19. package/dist/esm/FileUploader/controlled.js +0 -7
  20. package/dist/esm/Menu/controlled.js +77 -2
  21. package/dist/esm/Select/controlled.js +3 -0
  22. package/dist/esm/Table/AutoTable/controlled.js +1 -2
  23. package/dist/esm/Table/AutoTable/styles.module.scss.js +1 -1
  24. package/dist/esm/TablePagination/index.js +8 -21
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/styles/createPalette.js +1 -1
  27. package/dist/esm/styles.css +1 -1
  28. package/dist/esm/unstable/Card/index.js +29 -0
  29. package/dist/esm/unstable/Card/styles.module.scss.js +1 -1
  30. package/dist/esm/unstable/index.js +1 -5
  31. package/dist/types/Dialog/components.d.ts +20 -27
  32. package/dist/types/Dialog/factory.d.ts +5 -4
  33. package/dist/types/Dialog/state.d.ts +15 -1
  34. package/dist/types/Menu/controlled.d.ts +9 -1
  35. package/dist/types/Select/types.d.ts +8 -0
  36. package/dist/types/TablePagination/index.d.ts +1 -1
  37. package/dist/types/styles/createPalette.d.ts +2 -13
  38. package/dist/types/unstable/Card/index.d.ts +11 -2
  39. package/dist/types/unstable/index.d.ts +0 -3
  40. package/package.json +7 -1
  41. package/dist/cjs/styles/entrypoint.scss.js +0 -7
  42. package/dist/cjs/unstable/Card/components.js +0 -213
  43. package/dist/cjs/unstable/Card/state.js +0 -53
  44. package/dist/cjs/unstable/StatCard/index.js +0 -124
  45. package/dist/cjs/unstable/StatCard/index.module.scss.js +0 -7
  46. package/dist/cjs/unstable/skeleton/index.js +0 -74
  47. package/dist/cjs/unstable/skeleton/index.module.scss.js +0 -7
  48. package/dist/cjs/unstable/suspense/index.js +0 -18
  49. package/dist/cjs/unstable/suspense/index.module.scss.js +0 -7
  50. package/dist/cjs/unstable/suspense/loader.js +0 -23
  51. package/dist/esm/styles/entrypoint.scss.js +0 -3
  52. package/dist/esm/unstable/Card/components.js +0 -182
  53. package/dist/esm/unstable/Card/state.js +0 -30
  54. package/dist/esm/unstable/StatCard/index.js +0 -116
  55. package/dist/esm/unstable/StatCard/index.module.scss.js +0 -3
  56. package/dist/esm/unstable/skeleton/index.js +0 -69
  57. package/dist/esm/unstable/skeleton/index.module.scss.js +0 -3
  58. package/dist/esm/unstable/suspense/index.js +0 -15
  59. package/dist/esm/unstable/suspense/index.module.scss.js +0 -3
  60. package/dist/esm/unstable/suspense/loader.js +0 -20
  61. package/dist/types/unstable/Card/components.d.ts +0 -90
  62. package/dist/types/unstable/Card/state.d.ts +0 -20
  63. package/dist/types/unstable/StatCard/index.d.ts +0 -33
  64. package/dist/types/unstable/skeleton/index.d.ts +0 -15
  65. package/dist/types/unstable/suspense/index.d.ts +0 -9
  66. package/dist/types/unstable/suspense/loader.d.ts +0 -7
@@ -1,182 +0,0 @@
1
- 'use strict';
2
- 'use client';
3
- import { jsx, jsxs } from 'react/jsx-runtime';
4
- import * as React from 'react';
5
- import styles from './styles.module.scss.js';
6
- import { useCard, CardContext, useCardContext } from './state.js';
7
- import { cx } from '../../styles/cx.js';
8
- import '../../styles/defaultThemeOptions.js';
9
- import '@capsizecss/core';
10
- import 'color2k';
11
- import '../../styles/defaultTheme.js';
12
- import '../../styles/provider.client.js';
13
- import '../../styles/css-vars.js';
14
- import Typography from '../../Typography/index.js';
15
- import Tabs from '../Tabs/index.js';
16
-
17
- const Card = React.forwardRef(function Card2({ children, inset = "medium", palette, className, style, ...props }, ref) {
18
- const card = useCard();
19
- return /* @__PURE__ */ jsx(CardContext.Provider, { value: card, children: /* @__PURE__ */ jsx(
20
- "div",
21
- {
22
- ref,
23
- "aria-labelledby": card.labelId,
24
- "aria-describedby": card.descriptionId,
25
- ...props,
26
- "data-inset": inset,
27
- style: {
28
- ...style,
29
- ...palette && {
30
- "--vt-ce-card-surface": palette.surface,
31
- "--vt-ce-card-on": palette.on
32
- }
33
- },
34
- className: cx(styles["card"], className),
35
- children
36
- }
37
- ) });
38
- });
39
- const CardStart = React.forwardRef(
40
- function CardStart2({ children, disableInset = false, ...props }, ref) {
41
- return /* @__PURE__ */ jsx(
42
- "div",
43
- {
44
- ref,
45
- ...props,
46
- "data-disable-inset": disableInset,
47
- className: cx(styles["card-start"], props.className),
48
- children
49
- }
50
- );
51
- }
52
- );
53
- const CardContent = React.forwardRef(
54
- function CardContent2({ children, disableInset = false, ...props }, ref) {
55
- return /* @__PURE__ */ jsx(
56
- "div",
57
- {
58
- ...props,
59
- ref,
60
- "data-disable-inset": disableInset,
61
- className: cx(styles["card-content"], props.className),
62
- children
63
- }
64
- );
65
- }
66
- );
67
- const CardEnd = React.forwardRef(
68
- function CardEnd2({ children, disableInset = false, ...props }, ref) {
69
- return /* @__PURE__ */ jsx(
70
- "div",
71
- {
72
- ref,
73
- ...props,
74
- "data-disable-inset": disableInset,
75
- className: cx(styles["card-end"], props.className),
76
- children
77
- }
78
- );
79
- }
80
- );
81
- const CardTitle = React.forwardRef(
82
- function CardTitle2({ children, className, style, start, actions, containerProps, ...props }, ref) {
83
- const { setLabelId } = useCardContext();
84
- const id = React.useId();
85
- React.useLayoutEffect(() => {
86
- setLabelId(id);
87
- return () => setLabelId(void 0);
88
- }, [id, setLabelId]);
89
- return /* @__PURE__ */ jsxs(
90
- CardStart,
91
- {
92
- style,
93
- ...containerProps,
94
- className: cx(styles["card-title-container"], className),
95
- children: [
96
- start && /* @__PURE__ */ jsx("span", { className: styles["card-title-start"], children: start }),
97
- /* @__PURE__ */ jsx(
98
- Typography,
99
- {
100
- variant: "h3",
101
- color: "primary",
102
- ref,
103
- id,
104
- ...props,
105
- className: cx(styles["card-typography"], styles["card-title"]),
106
- children
107
- }
108
- ),
109
- actions && /* @__PURE__ */ jsx("span", { className: styles["card-start-actions"], children: actions })
110
- ]
111
- }
112
- );
113
- }
114
- );
115
- function CardTabs({
116
- align = "center",
117
- actions,
118
- className,
119
- style,
120
- ...props
121
- }) {
122
- return /* @__PURE__ */ jsxs(
123
- CardStart,
124
- {
125
- style,
126
- className: cx(styles["card-tabs-header"], className),
127
- "data-align": align === "start" ? "flex-start" : align === "center" ? "center" : void 0,
128
- children: [
129
- /* @__PURE__ */ jsx("span", {}),
130
- /* @__PURE__ */ jsx("div", { className: styles["card-tabs-container"], children: /* @__PURE__ */ jsx(Tabs, { ...props }) }),
131
- /* @__PURE__ */ jsx("span", { className: cx(styles["card-start-actions"]), children: actions })
132
- ]
133
- }
134
- );
135
- }
136
- const CardTypography = React.forwardRef(function CardTypography2({ children, ...props }, ref) {
137
- return /* @__PURE__ */ jsx(
138
- Typography,
139
- {
140
- variant: "paragraph2",
141
- color: "primary",
142
- ...props,
143
- ref,
144
- className: cx(styles["card-typography"], props.className),
145
- children
146
- }
147
- );
148
- });
149
- const CardDescription = React.forwardRef(function CardDescription2({ children, ...props }, ref) {
150
- const { setDescriptionId } = useCardContext();
151
- const id = React.useId();
152
- React.useLayoutEffect(() => {
153
- setDescriptionId(id);
154
- return () => setDescriptionId(void 0);
155
- }, [id, setDescriptionId]);
156
- return /* @__PURE__ */ jsx(
157
- CardTypography,
158
- {
159
- variant: "paragraph2",
160
- color: "primary",
161
- ...props,
162
- ref,
163
- id,
164
- children
165
- }
166
- );
167
- });
168
- const CardActions = React.forwardRef(
169
- function CardActions2({ children, ...props }, ref) {
170
- return /* @__PURE__ */ jsx(CardEnd, { children: /* @__PURE__ */ jsx(
171
- "div",
172
- {
173
- ...props,
174
- ref,
175
- className: cx(styles["card-actions"], props.className),
176
- children
177
- }
178
- ) });
179
- }
180
- );
181
-
182
- export { CardActions, CardContent, CardDescription, CardEnd, CardStart, CardTabs, CardTitle, CardTypography, Card as default };
@@ -1,30 +0,0 @@
1
- 'use strict';
2
- 'use client';
3
- import * as React from 'react';
4
-
5
- function useCard() {
6
- const [labelId, setLabelId] = React.useState();
7
- const [descriptionId, setDescriptionId] = React.useState();
8
- return React.useMemo(
9
- () => ({
10
- labelId,
11
- descriptionId,
12
- setLabelId,
13
- setDescriptionId
14
- }),
15
- [labelId, descriptionId]
16
- );
17
- }
18
- const CardContext = React.createContext({
19
- labelId: void 0,
20
- descriptionId: void 0,
21
- setLabelId: () => {
22
- },
23
- setDescriptionId: () => {
24
- }
25
- });
26
- const useCardContext = () => {
27
- return React.useContext(CardContext);
28
- };
29
-
30
- export { CardContext, useCard, useCardContext };
@@ -1,116 +0,0 @@
1
- 'use strict';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { Suspense } from 'react';
4
- import { CardSkeleton } from '../skeleton/index.js';
5
- import Card from '../Card/components.js';
6
- import { cx } from '../../styles/cx.js';
7
- import '../../styles/defaultThemeOptions.js';
8
- import '@capsizecss/core';
9
- import 'color2k';
10
- import '../../styles/defaultTheme.js';
11
- import '../../styles/provider.client.js';
12
- import '../../styles/css-vars.js';
13
- import Typography from '../../Typography/index.js';
14
- import ErrorBoundary from '../../ErrorBoundary/index.js';
15
- import Button from '../../Button/index.js';
16
- import styles from './index.module.scss.js';
17
-
18
- function StatCard({
19
- className,
20
- selected,
21
- onSelect,
22
- children,
23
- palette,
24
- ...props
25
- }) {
26
- return /* @__PURE__ */ jsx("div", { onClick: onSelect, className: styles.clickContainer, children: /* @__PURE__ */ jsx(
27
- Card,
28
- {
29
- inset: "medium",
30
- "data-selected": selected,
31
- className: cx(
32
- styles.statCardContainer,
33
- onSelect && styles.onSelect,
34
- className
35
- ),
36
- palette,
37
- ...props,
38
- children
39
- }
40
- ) });
41
- }
42
- function StatCardSkeleton({
43
- className,
44
- children,
45
- ...props
46
- }) {
47
- return /* @__PURE__ */ jsx(
48
- CardSkeleton,
49
- {
50
- inset: "medium",
51
- className: cx(styles.statCardContainer, className),
52
- ...props,
53
- children
54
- }
55
- );
56
- }
57
- function Stat({
58
- stat,
59
- size = "medium",
60
- unit,
61
- className,
62
- style
63
- }) {
64
- return /* @__PURE__ */ jsxs(
65
- "div",
66
- {
67
- style,
68
- "data-size": size,
69
- className: cx(styles.statItem, className),
70
- children: [
71
- /* @__PURE__ */ jsx(Typography, { variant: "title", leadingTrim: true, className: styles.stat, children: stat }),
72
- /* @__PURE__ */ jsx(Typography, { variant: "label", leadingTrim: true, className: styles.unit, children: unit })
73
- ]
74
- }
75
- );
76
- }
77
- function StatCardLoadingBoundary({
78
- loader,
79
- error,
80
- children,
81
- loadingChildren,
82
- ...cardProps
83
- }) {
84
- const skeleton = /* @__PURE__ */ jsx(CardSkeleton, { ...cardProps, children: loadingChildren ?? /* @__PURE__ */ jsx(Stat, { stat: "--" }) });
85
- return /* @__PURE__ */ jsx(ErrorBoundary, { fallback: error, children: /* @__PURE__ */ jsx(Suspense, { fallback: loader || skeleton, children: /* @__PURE__ */ jsx(StatCard, { ...cardProps, children }) }) });
86
- }
87
- function StatSeparator() {
88
- return /* @__PURE__ */ jsx("div", { className: styles.separator });
89
- }
90
- function StatActions(props) {
91
- return /* @__PURE__ */ jsx(
92
- "div",
93
- {
94
- style: props.style,
95
- className: cx(styles.statActions, props.className),
96
- children: props.children
97
- }
98
- );
99
- }
100
- function StatButton({
101
- endIcon,
102
- className,
103
- ...buttonProps
104
- }) {
105
- return /* @__PURE__ */ jsx(
106
- Button,
107
- {
108
- variant: "tertiary",
109
- endIcon,
110
- ...buttonProps,
111
- className: cx(endIcon && styles.buttonEndIcon, className)
112
- }
113
- );
114
- }
115
-
116
- export { Stat, StatActions, StatButton, StatCard, StatCardLoadingBoundary, StatCardSkeleton, StatSeparator };
@@ -1,3 +0,0 @@
1
- var styles = {"clickContainer":"vt_ce_StatCard_clickContainer__e8381582","statCardContainer":"vt_ce_StatCard_statCardContainer__5aaeed9e","onSelect":"vt_ce_StatCard_onSelect__29f9a2fd","statItem":"vt_ce_StatCard_statItem__de1fc3fc","stat":"vt_ce_StatCard_stat__795d6781","unit":"vt_ce_StatCard_unit__66996d85","statActions":"vt_ce_StatCard_statActions__8b3a6076","buttonEndIcon":"vt_ce_StatCard_buttonEndIcon__f4ac7910","separator":"vt_ce_StatCard_separator__ccecd5e1"};
2
-
3
- export { styles as default };
@@ -1,69 +0,0 @@
1
- 'use strict';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { Skeleton as Skeleton$1 } from '@mui/material';
4
- import styles from './index.module.scss.js';
5
- import FormControl from '../../FormControl/index.js';
6
- import { CardTitle } from '../Card/components.js';
7
- import { cx } from '../../styles/cx.js';
8
- import '../../styles/defaultThemeOptions.js';
9
- import '@capsizecss/core';
10
- import 'color2k';
11
- import '../../styles/defaultTheme.js';
12
- import '../../styles/provider.client.js';
13
- import '../../styles/css-vars.js';
14
-
15
- function Skeleton({
16
- variant,
17
- children,
18
- style,
19
- className
20
- }) {
21
- return /* @__PURE__ */ jsx(Skeleton$1, { variant, style, className, children });
22
- }
23
- function CardSkeleton({
24
- inset,
25
- className,
26
- ...cardProps
27
- }) {
28
- return /* @__PURE__ */ jsx(
29
- Skeleton$1,
30
- {
31
- variant: "rounded",
32
- "data-inset": inset ?? "medium",
33
- className: cx(styles.card, className),
34
- ...cardProps
35
- }
36
- );
37
- }
38
- function FormControlSkeleton({
39
- label,
40
- children,
41
- ...formControlProps
42
- }) {
43
- return /* @__PURE__ */ jsx(
44
- FormControl,
45
- {
46
- label: label ?? /* @__PURE__ */ jsx(Skeleton, { className: styles.formControlSkeletonLabel }),
47
- ...formControlProps,
48
- children: children ?? /* @__PURE__ */ jsx(Skeleton, { className: styles.formControlSkeletonControl })
49
- }
50
- );
51
- }
52
- function CardTitleSkeleton({
53
- start,
54
- actions,
55
- children,
56
- ...props
57
- }) {
58
- return /* @__PURE__ */ jsx(
59
- CardTitle,
60
- {
61
- ...props,
62
- start: start && /* @__PURE__ */ jsx(Skeleton, { className: styles.cardTitleStart, children: start }),
63
- actions: actions && /* @__PURE__ */ jsx(Skeleton, { className: styles.cardTitleActions, children: actions }),
64
- children: /* @__PURE__ */ jsx(Skeleton, {})
65
- }
66
- );
67
- }
68
-
69
- export { CardSkeleton, CardTitleSkeleton, FormControlSkeleton, Skeleton };
@@ -1,3 +0,0 @@
1
- var styles = {"card":"vt_ce_skeleton_card__32ebc0cb","cardTitleStart":"vt_ce_skeleton_cardTitleStart__a249a958","cardTitleActions":"vt_ce_skeleton_cardTitleActions__6dd3b355","formControlSkeletonLabel":"vt_ce_skeleton_formControlSkeletonLabel__3e7081ff","formControlSkeletonControl":"vt_ce_skeleton_formControlSkeletonControl__d29d40f5"};
2
-
3
- export { styles as default };
@@ -1,15 +0,0 @@
1
- 'use strict';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { Suspense } from 'react';
4
- import { Loader } from './loader.js';
5
- export { DialogLoader } from './loader.js';
6
- import ErrorBoundary from '../../ErrorBoundary/index.js';
7
-
8
- function LoadingBoundary(props) {
9
- if (props.force) {
10
- return props.loader || /* @__PURE__ */ jsx(Loader, {});
11
- }
12
- return /* @__PURE__ */ jsx(ErrorBoundary, { fallback: props.error, children: /* @__PURE__ */ jsx(Suspense, { fallback: props.loader || /* @__PURE__ */ jsx(Loader, {}), children: props.children }) });
13
- }
14
-
15
- export { Loader, LoadingBoundary };
@@ -1,3 +0,0 @@
1
- var styles = {"container":"vt_ce_suspense_container__fb891ef4","dialogContainer":"vt_ce_suspense_dialogContainer__2ae26a9a"};
2
-
3
- export { styles as default };
@@ -1,20 +0,0 @@
1
- 'use strict';
2
- import { jsx } from 'react/jsx-runtime';
3
- import styles from './index.module.scss.js';
4
- import CircularProgress from '../../CircularProgress/index.js';
5
- import { cx } from '../../styles/cx.js';
6
- import '../../styles/defaultThemeOptions.js';
7
- import '@capsizecss/core';
8
- import 'color2k';
9
- import '../../styles/defaultTheme.js';
10
- import '../../styles/provider.client.js';
11
- import '../../styles/css-vars.js';
12
-
13
- function Loader(props) {
14
- return /* @__PURE__ */ jsx("div", { style: props.style, className: cx(styles.container, props.className), children: /* @__PURE__ */ jsx(CircularProgress, {}) });
15
- }
16
- function DialogLoader({ className, ...props }) {
17
- return /* @__PURE__ */ jsx(Loader, { ...props, className: cx(styles.dialogContainer, className) });
18
- }
19
-
20
- export { DialogLoader, Loader };
@@ -1,90 +0,0 @@
1
- import * as React from 'react';
2
- import { type PaletteSurfaceColors } from '../../styles/index.js';
3
- import { type TypographyProps } from '../../Typography/index.js';
4
- import { type TabsProps } from '../Tabs/index.js';
5
- export type CardInset = 'small' | 'medium';
6
- export type DisableInset = 'horizontal' | 'vertical' | boolean;
7
- export type CardProps = React.ComponentPropsWithoutRef<'div'> & {
8
- inset?: CardInset;
9
- palette?: PaletteSurfaceColors;
10
- };
11
- declare const Card: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
12
- inset?: CardInset | undefined;
13
- palette?: PaletteSurfaceColors | undefined;
14
- } & React.RefAttributes<HTMLDivElement>>;
15
- export default Card;
16
- export type CardStartProps = React.ComponentPropsWithoutRef<'div'> & {
17
- disableInset?: DisableInset;
18
- };
19
- export declare const CardStart: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
- disableInset?: DisableInset | undefined;
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- export type CardContentProps = React.ComponentPropsWithoutRef<'div'> & {
23
- disableInset?: DisableInset;
24
- };
25
- export declare const CardContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
26
- disableInset?: DisableInset | undefined;
27
- } & React.RefAttributes<HTMLDivElement>>;
28
- export type CardEndProps = TypographyProps & {
29
- disableInset?: DisableInset;
30
- };
31
- export declare const CardEnd: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
32
- as?: keyof React.JSX.IntrinsicElements | undefined;
33
- variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
34
- color?: "inherit" | "disabled" | keyof import("../../styles/palette.js").PaletteText | undefined;
35
- leadingTrim?: boolean | undefined;
36
- children?: React.ReactNode;
37
- 'data-testid'?: string | undefined;
38
- style?: React.CSSProperties | undefined;
39
- className?: string | undefined;
40
- } & {
41
- disableInset?: DisableInset | undefined;
42
- } & React.RefAttributes<HTMLDivElement>>;
43
- export type CardTitleProps = TypographyProps & {
44
- start?: React.ReactNode;
45
- actions?: React.ReactNode;
46
- containerProps?: CardStartProps;
47
- };
48
- export declare const CardTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
49
- as?: keyof React.JSX.IntrinsicElements | undefined;
50
- variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
51
- color?: "inherit" | "disabled" | keyof import("../../styles/palette.js").PaletteText | undefined;
52
- leadingTrim?: boolean | undefined;
53
- children?: React.ReactNode;
54
- 'data-testid'?: string | undefined;
55
- style?: React.CSSProperties | undefined;
56
- className?: string | undefined;
57
- } & {
58
- start?: React.ReactNode;
59
- actions?: React.ReactNode;
60
- containerProps?: CardStartProps | undefined;
61
- } & React.RefAttributes<HTMLHeadingElement>>;
62
- export type CardTabsProps = TabsProps & {
63
- align?: 'start' | 'center';
64
- actions?: React.ReactNode;
65
- };
66
- export declare function CardTabs({ align, actions, className, style, ...props }: CardTabsProps): import("react/jsx-runtime").JSX.Element;
67
- export type CardTypographyProps = TypographyProps;
68
- export declare const CardTypography: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
69
- as?: keyof React.JSX.IntrinsicElements | undefined;
70
- variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
71
- color?: "inherit" | "disabled" | keyof import("../../styles/palette.js").PaletteText | undefined;
72
- leadingTrim?: boolean | undefined;
73
- children?: React.ReactNode;
74
- 'data-testid'?: string | undefined;
75
- style?: React.CSSProperties | undefined;
76
- className?: string | undefined;
77
- } & React.RefAttributes<HTMLParagraphElement>>;
78
- export type CardDescriptionProps = TypographyProps;
79
- export declare const CardDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
80
- as?: keyof React.JSX.IntrinsicElements | undefined;
81
- variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
82
- color?: "inherit" | "disabled" | keyof import("../../styles/palette.js").PaletteText | undefined;
83
- leadingTrim?: boolean | undefined;
84
- children?: React.ReactNode;
85
- 'data-testid'?: string | undefined;
86
- style?: React.CSSProperties | undefined;
87
- className?: string | undefined;
88
- } & React.RefAttributes<HTMLParagraphElement>>;
89
- export type CardActionsProps = React.ComponentPropsWithoutRef<'div'>;
90
- export declare const CardActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- export declare function useCard(): {
3
- labelId: string | undefined;
4
- descriptionId: string | undefined;
5
- setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
6
- setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
7
- };
8
- export type CardContextType = ReturnType<typeof useCard>;
9
- export declare const CardContext: React.Context<{
10
- labelId: string | undefined;
11
- descriptionId: string | undefined;
12
- setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
13
- setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
14
- }>;
15
- export declare const useCardContext: () => {
16
- labelId: string | undefined;
17
- descriptionId: string | undefined;
18
- setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
19
- setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
20
- };
@@ -1,33 +0,0 @@
1
- import React, { CSSProperties, ReactNode } from 'react';
2
- import { LoadingBoundaryProps } from '../suspense/index.js';
3
- import { CardProps } from '../Card/index.js';
4
- import { type PaletteSurfaceColors } from '../../styles/index.js';
5
- import { type ButtonProps } from '../../Button/index.js';
6
- export type StatCardProps = Omit<CardProps, 'inset'> & {
7
- palette?: PaletteSurfaceColors;
8
- selected?: boolean;
9
- onSelect?(): void;
10
- };
11
- export declare function StatCard({ className, selected, onSelect, children, palette, ...props }: StatCardProps): import("react/jsx-runtime").JSX.Element;
12
- export declare function StatCardSkeleton({ className, children, ...props }: StatCardProps): import("react/jsx-runtime").JSX.Element;
13
- export type StatCardContentProps = {
14
- stat: ReactNode;
15
- unit?: ReactNode;
16
- size?: 'medium' | 'small';
17
- className?: string;
18
- style?: CSSProperties;
19
- };
20
- export declare function Stat({ stat, size, unit, className, style }: StatCardContentProps): import("react/jsx-runtime").JSX.Element;
21
- export type StatCardLoadingBoundaryProps = LoadingBoundaryProps & StatCardProps & {
22
- loadingChildren?: ReactNode;
23
- };
24
- export declare function StatCardLoadingBoundary({ loader, error, children, loadingChildren, ...cardProps }: StatCardLoadingBoundaryProps): import("react/jsx-runtime").JSX.Element;
25
- export declare function StatSeparator(): import("react/jsx-runtime").JSX.Element;
26
- export type StatActionsProps = {
27
- children?: ReactNode;
28
- style?: React.CSSProperties;
29
- className?: string;
30
- };
31
- export declare function StatActions(props: StatActionsProps): import("react/jsx-runtime").JSX.Element;
32
- export type StatButtonProps = Omit<ButtonProps, 'variant' | 'type'> & {};
33
- export declare function StatButton({ endIcon, className, ...buttonProps }: StatButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { type FormControlProps } from '../../FormControl/index.js';
3
- import { type CardProps, CardTitleProps } from '../Card/index.js';
4
- export type SkeletonProps = {
5
- variant?: 'text' | 'rectangular' | 'rounded';
6
- style?: React.CSSProperties;
7
- children?: ReactNode;
8
- className?: string;
9
- };
10
- export declare function Skeleton({ variant, children, style, className }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
11
- export type CardSkeletonProps = Omit<SkeletonProps, 'variant'> & CardProps;
12
- export declare function CardSkeleton({ inset, className, ...cardProps }: CardSkeletonProps): import("react/jsx-runtime").JSX.Element;
13
- export type FormControlSkeletonProps = FormControlProps & {};
14
- export declare function FormControlSkeleton({ label, children, ...formControlProps }: FormControlSkeletonProps): import("react/jsx-runtime").JSX.Element;
15
- export declare function CardTitleSkeleton({ start, actions, children, ...props }: CardTitleProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export * from './loader.js';
3
- export type LoadingBoundaryProps = {
4
- force?: boolean;
5
- loader?: ReactNode;
6
- error?: ReactNode;
7
- children?: ReactNode;
8
- };
9
- export declare function LoadingBoundary(props: LoadingBoundaryProps): string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export type LoaderProps = {
3
- style?: React.CSSProperties;
4
- className?: string;
5
- };
6
- export declare function Loader(props: LoaderProps): import("react/jsx-runtime").JSX.Element;
7
- export declare function DialogLoader({ className, ...props }: LoaderProps): import("react/jsx-runtime").JSX.Element;