@veritone-ce/design-system 2.8.9 → 2.9.0-next.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/CHANGELOG.md +2641 -0
- package/dist/cjs/Accordion/Accordion.js +11 -2
- package/dist/cjs/Dialog/components.js +29 -90
- package/dist/cjs/Dialog/state.js +2 -8
- package/dist/cjs/Dialog/styles.module.scss.js +2 -2
- package/dist/cjs/FileUploader/controlled.js +7 -0
- package/dist/cjs/Table/AutoTable/controlled.js +2 -1
- package/dist/cjs/Table/AutoTable/styles.module.scss.js +1 -1
- package/dist/cjs/TablePagination/index.js +21 -8
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/styles/createPalette.js +11 -0
- package/dist/cjs/styles/entrypoint.scss.js +7 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/cjs/unstable/Card/components.js +213 -0
- package/dist/cjs/unstable/Card/state.js +53 -0
- package/dist/cjs/unstable/Card/styles.module.scss.js +1 -1
- package/dist/cjs/unstable/StatCard/index.js +124 -0
- package/dist/cjs/unstable/StatCard/index.module.scss.js +7 -0
- package/dist/cjs/unstable/index.js +39 -13
- package/dist/cjs/unstable/skeleton/index.js +74 -0
- package/dist/cjs/unstable/skeleton/index.module.scss.js +7 -0
- package/dist/cjs/unstable/suspense/index.js +18 -0
- package/dist/cjs/unstable/suspense/index.module.scss.js +7 -0
- package/dist/cjs/unstable/suspense/loader.js +23 -0
- package/dist/esm/Accordion/Accordion.js +11 -2
- package/dist/esm/Dialog/components.js +28 -89
- package/dist/esm/Dialog/state.js +2 -8
- package/dist/esm/Dialog/styles.module.scss.js +2 -2
- package/dist/esm/FileUploader/controlled.js +7 -0
- package/dist/esm/Table/AutoTable/controlled.js +2 -1
- package/dist/esm/Table/AutoTable/styles.module.scss.js +1 -1
- package/dist/esm/TablePagination/index.js +21 -8
- package/dist/esm/index.js +1 -1
- package/dist/esm/styles/createPalette.js +1 -1
- package/dist/esm/styles/entrypoint.scss.js +3 -0
- package/dist/esm/styles.css +1 -1
- package/dist/esm/unstable/Card/components.js +182 -0
- package/dist/esm/unstable/Card/state.js +30 -0
- package/dist/esm/unstable/Card/styles.module.scss.js +1 -1
- package/dist/esm/unstable/StatCard/index.js +116 -0
- package/dist/esm/unstable/StatCard/index.module.scss.js +3 -0
- package/dist/esm/unstable/index.js +5 -1
- package/dist/esm/unstable/skeleton/index.js +69 -0
- package/dist/esm/unstable/skeleton/index.module.scss.js +3 -0
- package/dist/esm/unstable/suspense/index.js +15 -0
- package/dist/esm/unstable/suspense/index.module.scss.js +3 -0
- package/dist/esm/unstable/suspense/loader.js +20 -0
- package/dist/types/Accordion/Accordion.d.ts +20 -4
- package/dist/types/Dialog/components.d.ts +27 -20
- package/dist/types/Dialog/factory.d.ts +4 -5
- package/dist/types/Dialog/state.d.ts +1 -15
- package/dist/types/TablePagination/index.d.ts +1 -1
- package/dist/types/styles/createPalette.d.ts +13 -2
- package/dist/types/unstable/Card/components.d.ts +90 -0
- package/dist/types/unstable/Card/index.d.ts +2 -11
- package/dist/types/unstable/Card/state.d.ts +20 -0
- package/dist/types/unstable/StatCard/index.d.ts +33 -0
- package/dist/types/unstable/index.d.ts +3 -0
- package/dist/types/unstable/skeleton/index.d.ts +15 -0
- package/dist/types/unstable/suspense/index.d.ts +9 -0
- package/dist/types/unstable/suspense/loader.d.ts +7 -0
- package/package.json +1 -7
- package/dist/cjs/unstable/Card/index.js +0 -33
- package/dist/esm/unstable/Card/index.js +0 -29
|
@@ -12,10 +12,6 @@ export interface DialogOptions {
|
|
|
12
12
|
preventEscapeDismiss?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare function useDialog({ open, onDismiss: dismissDialog, preventOutsideDismiss, preventEscapeDismiss }: DialogOptions): {
|
|
15
|
-
labelId: string | undefined;
|
|
16
|
-
descriptionId: string | undefined;
|
|
17
|
-
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
18
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
19
15
|
placement: import("@floating-ui/utils").Placement;
|
|
20
16
|
strategy: import("@floating-ui/utils").Strategy;
|
|
21
17
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
@@ -61,16 +57,9 @@ export declare function useDialog({ open, onDismiss: dismissDialog, preventOutsi
|
|
|
61
57
|
open: boolean;
|
|
62
58
|
dismiss: () => void;
|
|
63
59
|
};
|
|
64
|
-
export type DialogContextType =
|
|
65
|
-
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
66
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
67
|
-
}) | null;
|
|
60
|
+
export type DialogContextType = ReturnType<typeof useDialog> | null;
|
|
68
61
|
export declare const DialogContext: React.Context<DialogContextType>;
|
|
69
62
|
export declare const useDialogContext: () => {
|
|
70
|
-
labelId: string | undefined;
|
|
71
|
-
descriptionId: string | undefined;
|
|
72
|
-
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
73
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
74
63
|
placement: import("@floating-ui/utils").Placement;
|
|
75
64
|
strategy: import("@floating-ui/utils").Strategy;
|
|
76
65
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
@@ -115,7 +104,4 @@ export declare const useDialogContext: () => {
|
|
|
115
104
|
}) | undefined) => Record<string, unknown>;
|
|
116
105
|
open: boolean;
|
|
117
106
|
dismiss: () => void;
|
|
118
|
-
} & {
|
|
119
|
-
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
120
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
121
107
|
};
|
|
@@ -15,4 +15,4 @@ export type TablePaginationProps = {
|
|
|
15
15
|
showPageNumberInput?: boolean;
|
|
16
16
|
className?: string;
|
|
17
17
|
};
|
|
18
|
-
export default function TablePagination({ page, count, rowsPerPage, rowsPerPageOptions, rowsPerPageLabel, rowsPerPageVariant, showPageNumberInput, ...props }: TablePaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function TablePagination({ page, count, rowsPerPage, rowsPerPageOptions, rowsPerPageLabel, rowsPerPageVariant, showPageNumberInput, onChangePage, onRowsPerPageChange, 'data-pendo-prev': dataPendoPrev, 'data-pendo-next': dataPendoNext, 'data-pendo-select': dataPendoSelect, className, ...props }: TablePaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import type { Palette } from './palette.js';
|
|
2
|
-
import { type PaletteOptions } from './themeOptions.js';
|
|
1
|
+
import type { Palette, PaletteAction, PaletteActionVariantsColors, PaletteBackground, PaletteBrand, PaletteColor, PaletteIndicator, PaletteStroke, PaletteSurfaceColors, PaletteTable, PaletteText, PaletteTooltip } from './palette.js';
|
|
2
|
+
import { type PaletteActionOptions, type PaletteActionVariantsColorsOptions, type PaletteBackgroundOptions, type PaletteBrandOptions, type PaletteColorOptions, type PaletteIndicatorOptions, type PaletteOptions, type PaletteStrokeOptions, type PaletteSurfaceColorsOptions, type PaletteTableOptions, type PaletteTextOptions, type PaletteTooltipOptions } from './themeOptions.js';
|
|
3
|
+
export declare function createPaletteColor(options: PaletteColorOptions): PaletteColor;
|
|
4
|
+
export declare function createPaletteSurfaceColors(options: PaletteSurfaceColorsOptions): PaletteSurfaceColors;
|
|
5
|
+
export declare function createPaletteActionVariantsColors(options: PaletteActionVariantsColorsOptions, disabled: PaletteSurfaceColors): PaletteActionVariantsColors;
|
|
6
|
+
export declare function createPaletteBrand(options: PaletteBrandOptions, disabled: PaletteSurfaceColors): PaletteBrand;
|
|
7
|
+
export declare function createPaletteText(options: PaletteTextOptions): PaletteText;
|
|
8
|
+
export declare function createPaletteAction(options: PaletteActionOptions, disabled: PaletteSurfaceColors, text: PaletteColor): PaletteAction;
|
|
9
|
+
export declare function createPaletteIndicator(options: PaletteIndicatorOptions, disabled: PaletteSurfaceColors): PaletteIndicator;
|
|
10
|
+
export declare function createPaletteTable(options: PaletteTableOptions, disabled: PaletteSurfaceColors): PaletteTable;
|
|
11
|
+
export declare function createPaletteTooltip(options: PaletteTooltipOptions): PaletteTooltip;
|
|
12
|
+
export declare function createPaletteBackground(options: PaletteBackgroundOptions): PaletteBackground;
|
|
13
|
+
export declare function createPaletteStroke(options: PaletteStrokeOptions): PaletteStroke;
|
|
3
14
|
export declare function createPalette(options?: PaletteOptions): Palette;
|
|
@@ -0,0 +1,90 @@
|
|
|
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,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export type CardProps = {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
inset?: CardInset;
|
|
6
|
-
'data-testid'?: string;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export default Card;
|
|
1
|
+
export * from './components.js';
|
|
2
|
+
export { default } from './components.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
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;
|
|
@@ -3,5 +3,8 @@ export { default as Card } from './Card/index.js';
|
|
|
3
3
|
export * from './Card/index.js';
|
|
4
4
|
export { default as LinearProgress } from './LinearProgress/index.js';
|
|
5
5
|
export * from './LinearProgress/index.js';
|
|
6
|
+
export * from './skeleton/index.js';
|
|
7
|
+
export * from './StatCard/index.js';
|
|
8
|
+
export * from './suspense/index.js';
|
|
6
9
|
export { default as Tabs } from './Tabs/index.js';
|
|
7
10
|
export * from './Tabs/index.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veritone-ce/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0-next.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Design System for Veritone CE",
|
|
6
6
|
"keywords": [
|
|
@@ -69,12 +69,6 @@
|
|
|
69
69
|
"./baseline.css": "./dist/esm/styles/external/baseline.css",
|
|
70
70
|
"./fonts/default.css": "./dist/esm/styles/external/fonts/default.css"
|
|
71
71
|
},
|
|
72
|
-
"sideEffects": [
|
|
73
|
-
"src/styles/baseline.ts",
|
|
74
|
-
"src/fonts/default.ts",
|
|
75
|
-
"dist/esm/styles/baseline.js",
|
|
76
|
-
"dist/esm/styles/fonts/default.js"
|
|
77
|
-
],
|
|
78
72
|
"files": [
|
|
79
73
|
"dist",
|
|
80
74
|
"eslint-config"
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var React = require('react');
|
|
8
|
-
var styles_module = require('./styles.module.scss.js');
|
|
9
|
-
var cx = require('../../styles/cx.js');
|
|
10
|
-
require('../../styles/defaultThemeOptions.js');
|
|
11
|
-
require('@capsizecss/core');
|
|
12
|
-
require('color2k');
|
|
13
|
-
require('../../styles/defaultTheme.js');
|
|
14
|
-
require('../../styles/provider.client.js');
|
|
15
|
-
require('../../styles/css-vars.js');
|
|
16
|
-
|
|
17
|
-
const Card = React.forwardRef(
|
|
18
|
-
({ inset = "medium", ...props }, ref) => {
|
|
19
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20
|
-
"div",
|
|
21
|
-
{
|
|
22
|
-
ref,
|
|
23
|
-
className: cx.cx(styles_module.default["card"], props.className),
|
|
24
|
-
"data-testid": props["data-testid"],
|
|
25
|
-
"data-inset": inset,
|
|
26
|
-
style: props.style,
|
|
27
|
-
children: props.children
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
exports.default = Card;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import styles from './styles.module.scss.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
|
-
const Card = forwardRef(
|
|
14
|
-
({ inset = "medium", ...props }, ref) => {
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
-
"div",
|
|
17
|
-
{
|
|
18
|
-
ref,
|
|
19
|
-
className: cx(styles["card"], props.className),
|
|
20
|
-
"data-testid": props["data-testid"],
|
|
21
|
-
"data-inset": inset,
|
|
22
|
-
style: props.style,
|
|
23
|
-
children: props.children
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
export { Card as default };
|