@veritone-ce/design-system 2.8.12 → 2.8.13-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.
Files changed (60) hide show
  1. package/dist/cjs/Dialog/components.js +29 -90
  2. package/dist/cjs/Dialog/state.js +2 -8
  3. package/dist/cjs/Dialog/styles.module.scss.js +2 -2
  4. package/dist/cjs/FileUploader/controlled.js +7 -0
  5. package/dist/cjs/Table/AutoTable/controlled.js +2 -1
  6. package/dist/cjs/Table/AutoTable/styles.module.scss.js +1 -1
  7. package/dist/cjs/TablePagination/index.js +21 -8
  8. package/dist/cjs/index.js +11 -0
  9. package/dist/cjs/styles/createPalette.js +11 -0
  10. package/dist/cjs/styles/entrypoint.scss.js +7 -0
  11. package/dist/cjs/styles.css +1 -1
  12. package/dist/cjs/unstable/Card/components.js +213 -0
  13. package/dist/cjs/unstable/Card/state.js +53 -0
  14. package/dist/cjs/unstable/Card/styles.module.scss.js +1 -1
  15. package/dist/cjs/unstable/StatCard/index.js +124 -0
  16. package/dist/cjs/unstable/StatCard/index.module.scss.js +7 -0
  17. package/dist/cjs/unstable/index.js +39 -13
  18. package/dist/cjs/unstable/skeleton/index.js +74 -0
  19. package/dist/cjs/unstable/skeleton/index.module.scss.js +7 -0
  20. package/dist/cjs/unstable/suspense/index.js +18 -0
  21. package/dist/cjs/unstable/suspense/index.module.scss.js +7 -0
  22. package/dist/cjs/unstable/suspense/loader.js +23 -0
  23. package/dist/esm/Dialog/components.js +28 -89
  24. package/dist/esm/Dialog/state.js +2 -8
  25. package/dist/esm/Dialog/styles.module.scss.js +2 -2
  26. package/dist/esm/FileUploader/controlled.js +7 -0
  27. package/dist/esm/Table/AutoTable/controlled.js +2 -1
  28. package/dist/esm/Table/AutoTable/styles.module.scss.js +1 -1
  29. package/dist/esm/TablePagination/index.js +21 -8
  30. package/dist/esm/index.js +1 -1
  31. package/dist/esm/styles/createPalette.js +1 -1
  32. package/dist/esm/styles/entrypoint.scss.js +3 -0
  33. package/dist/esm/styles.css +1 -1
  34. package/dist/esm/unstable/Card/components.js +182 -0
  35. package/dist/esm/unstable/Card/state.js +30 -0
  36. package/dist/esm/unstable/Card/styles.module.scss.js +1 -1
  37. package/dist/esm/unstable/StatCard/index.js +116 -0
  38. package/dist/esm/unstable/StatCard/index.module.scss.js +3 -0
  39. package/dist/esm/unstable/index.js +5 -1
  40. package/dist/esm/unstable/skeleton/index.js +69 -0
  41. package/dist/esm/unstable/skeleton/index.module.scss.js +3 -0
  42. package/dist/esm/unstable/suspense/index.js +15 -0
  43. package/dist/esm/unstable/suspense/index.module.scss.js +3 -0
  44. package/dist/esm/unstable/suspense/loader.js +20 -0
  45. package/dist/types/Dialog/components.d.ts +27 -20
  46. package/dist/types/Dialog/factory.d.ts +4 -5
  47. package/dist/types/Dialog/state.d.ts +1 -15
  48. package/dist/types/TablePagination/index.d.ts +1 -1
  49. package/dist/types/styles/createPalette.d.ts +13 -2
  50. package/dist/types/unstable/Card/components.d.ts +90 -0
  51. package/dist/types/unstable/Card/index.d.ts +2 -11
  52. package/dist/types/unstable/Card/state.d.ts +20 -0
  53. package/dist/types/unstable/StatCard/index.d.ts +33 -0
  54. package/dist/types/unstable/index.d.ts +3 -0
  55. package/dist/types/unstable/skeleton/index.d.ts +15 -0
  56. package/dist/types/unstable/suspense/index.d.ts +9 -0
  57. package/dist/types/unstable/suspense/loader.d.ts +7 -0
  58. package/package.json +1 -7
  59. package/dist/cjs/unstable/Card/index.js +0 -33
  60. package/dist/esm/unstable/Card/index.js +0 -29
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"card":"vt_ce_Card_card__ee444e2c"};
5
+ var styles = {"card":"vt_ce_Card_card__ee444e2c","card-start":"vt_ce_Card_card-start__b66c702c","card-content":"vt_ce_Card_card-content__e8dcb7ea","card-end":"vt_ce_Card_card-end__92fca423","card-title-start":"vt_ce_Card_card-title-start__8f8142cb","card-start-actions":"vt_ce_Card_card-start-actions__47702282","card-tabs-container":"vt_ce_Card_card-tabs-container__0d6e25cb","card-typography":"vt_ce_Card_card-typography__1fa4e7ef","card-actions":"vt_ce_Card_card-actions__2c88a428","card-title-container":"vt_ce_Card_card-title-container__3be4e2c2","card-title":"vt_ce_Card_card-title__15440d72","card-tabs-header":"vt_ce_Card_card-tabs-header__05718973"};
6
6
 
7
7
  exports.default = styles;
@@ -0,0 +1,124 @@
1
+ 'use strict';
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var index = require('../skeleton/index.js');
7
+ var components = require('../Card/components.js');
8
+ var cx = require('../../styles/cx.js');
9
+ require('../../styles/defaultThemeOptions.js');
10
+ require('@capsizecss/core');
11
+ require('color2k');
12
+ require('../../styles/defaultTheme.js');
13
+ require('../../styles/provider.client.js');
14
+ require('../../styles/css-vars.js');
15
+ var index$1 = require('../../Typography/index.js');
16
+ var index$2 = require('../../ErrorBoundary/index.js');
17
+ var index$3 = require('../../Button/index.js');
18
+ var index_module = require('./index.module.scss.js');
19
+
20
+ function StatCard({
21
+ className,
22
+ selected,
23
+ onSelect,
24
+ children,
25
+ palette,
26
+ ...props
27
+ }) {
28
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { onClick: onSelect, className: index_module.default.clickContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
29
+ components.default,
30
+ {
31
+ inset: "medium",
32
+ "data-selected": selected,
33
+ className: cx.cx(
34
+ index_module.default.statCardContainer,
35
+ onSelect && index_module.default.onSelect,
36
+ className
37
+ ),
38
+ palette,
39
+ ...props,
40
+ children
41
+ }
42
+ ) });
43
+ }
44
+ function StatCardSkeleton({
45
+ className,
46
+ children,
47
+ ...props
48
+ }) {
49
+ return /* @__PURE__ */ jsxRuntime.jsx(
50
+ index.CardSkeleton,
51
+ {
52
+ inset: "medium",
53
+ className: cx.cx(index_module.default.statCardContainer, className),
54
+ ...props,
55
+ children
56
+ }
57
+ );
58
+ }
59
+ function Stat({
60
+ stat,
61
+ size = "medium",
62
+ unit,
63
+ className,
64
+ style
65
+ }) {
66
+ return /* @__PURE__ */ jsxRuntime.jsxs(
67
+ "div",
68
+ {
69
+ style,
70
+ "data-size": size,
71
+ className: cx.cx(index_module.default.statItem, className),
72
+ children: [
73
+ /* @__PURE__ */ jsxRuntime.jsx(index$1.default, { variant: "title", leadingTrim: true, className: index_module.default.stat, children: stat }),
74
+ /* @__PURE__ */ jsxRuntime.jsx(index$1.default, { variant: "label", leadingTrim: true, className: index_module.default.unit, children: unit })
75
+ ]
76
+ }
77
+ );
78
+ }
79
+ function StatCardLoadingBoundary({
80
+ loader,
81
+ error,
82
+ children,
83
+ loadingChildren,
84
+ ...cardProps
85
+ }) {
86
+ const skeleton = /* @__PURE__ */ jsxRuntime.jsx(index.CardSkeleton, { ...cardProps, children: loadingChildren ?? /* @__PURE__ */ jsxRuntime.jsx(Stat, { stat: "--" }) });
87
+ return /* @__PURE__ */ jsxRuntime.jsx(index$2.default, { fallback: error, children: /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: loader || skeleton, children: /* @__PURE__ */ jsxRuntime.jsx(StatCard, { ...cardProps, children }) }) });
88
+ }
89
+ function StatSeparator() {
90
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: index_module.default.separator });
91
+ }
92
+ function StatActions(props) {
93
+ return /* @__PURE__ */ jsxRuntime.jsx(
94
+ "div",
95
+ {
96
+ style: props.style,
97
+ className: cx.cx(index_module.default.statActions, props.className),
98
+ children: props.children
99
+ }
100
+ );
101
+ }
102
+ function StatButton({
103
+ endIcon,
104
+ className,
105
+ ...buttonProps
106
+ }) {
107
+ return /* @__PURE__ */ jsxRuntime.jsx(
108
+ index$3.default,
109
+ {
110
+ variant: "tertiary",
111
+ endIcon,
112
+ ...buttonProps,
113
+ className: cx.cx(endIcon && index_module.default.buttonEndIcon, className)
114
+ }
115
+ );
116
+ }
117
+
118
+ exports.Stat = Stat;
119
+ exports.StatActions = StatActions;
120
+ exports.StatButton = StatButton;
121
+ exports.StatCard = StatCard;
122
+ exports.StatCardLoadingBoundary = StatCardLoadingBoundary;
123
+ exports.StatCardSkeleton = StatCardSkeleton;
124
+ exports.StatSeparator = StatSeparator;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ 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"};
6
+
7
+ exports.default = styles;
@@ -1,21 +1,47 @@
1
1
  'use strict';
2
2
  'use strict';
3
3
 
4
- var index$3 = require('./Breadcrumbs/index.js');
5
- var index = require('./Card/index.js');
6
- var index$1 = require('./LinearProgress/index.js');
7
- var index$2 = require('./Tabs/index.js');
4
+ var index$2 = require('./Breadcrumbs/index.js');
5
+ var components = require('./Card/components.js');
6
+ var index = require('./LinearProgress/index.js');
7
+ var index$3 = require('./skeleton/index.js');
8
+ var index$4 = require('./StatCard/index.js');
9
+ var index$5 = require('./suspense/index.js');
10
+ var index$1 = require('./Tabs/index.js');
8
11
  var factory = require('./Breadcrumbs/factory.js');
12
+ var loader = require('./suspense/loader.js');
9
13
 
10
14
 
11
15
 
12
- exports.Breadcrumbs = index$3.Breadcrumbs;
13
- exports.ButtonBreadcrumb = index$3.ButtonBreadcrumb;
14
- exports.CustomBreadcrumb = index$3.CustomBreadcrumb;
15
- exports.LinkBreadcrumb = index$3.LinkBreadcrumb;
16
- exports.SeparatorBreadcrumb = index$3.SeparatorBreadcrumb;
17
- exports.Card = index.default;
18
- exports.LinearProgress = index$1.default;
19
- exports.Tab = index$2.Tab;
20
- exports.Tabs = index$2.default;
16
+ exports.Breadcrumbs = index$2.Breadcrumbs;
17
+ exports.ButtonBreadcrumb = index$2.ButtonBreadcrumb;
18
+ exports.CustomBreadcrumb = index$2.CustomBreadcrumb;
19
+ exports.LinkBreadcrumb = index$2.LinkBreadcrumb;
20
+ exports.SeparatorBreadcrumb = index$2.SeparatorBreadcrumb;
21
+ exports.Card = components.default;
22
+ exports.CardActions = components.CardActions;
23
+ exports.CardContent = components.CardContent;
24
+ exports.CardDescription = components.CardDescription;
25
+ exports.CardEnd = components.CardEnd;
26
+ exports.CardStart = components.CardStart;
27
+ exports.CardTabs = components.CardTabs;
28
+ exports.CardTitle = components.CardTitle;
29
+ exports.CardTypography = components.CardTypography;
30
+ exports.LinearProgress = index.default;
31
+ exports.CardSkeleton = index$3.CardSkeleton;
32
+ exports.CardTitleSkeleton = index$3.CardTitleSkeleton;
33
+ exports.FormControlSkeleton = index$3.FormControlSkeleton;
34
+ exports.Skeleton = index$3.Skeleton;
35
+ exports.Stat = index$4.Stat;
36
+ exports.StatActions = index$4.StatActions;
37
+ exports.StatButton = index$4.StatButton;
38
+ exports.StatCard = index$4.StatCard;
39
+ exports.StatCardLoadingBoundary = index$4.StatCardLoadingBoundary;
40
+ exports.StatCardSkeleton = index$4.StatCardSkeleton;
41
+ exports.StatSeparator = index$4.StatSeparator;
42
+ exports.LoadingBoundary = index$5.LoadingBoundary;
43
+ exports.Tab = index$1.Tab;
44
+ exports.Tabs = index$1.default;
21
45
  exports.createLinkBreadcrumbComponent = factory.createLinkBreadcrumbComponent;
46
+ exports.DialogLoader = loader.DialogLoader;
47
+ exports.Loader = loader.Loader;
@@ -0,0 +1,74 @@
1
+ 'use strict';
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var material = require('@mui/material');
6
+ var index_module = require('./index.module.scss.js');
7
+ var index = require('../../FormControl/index.js');
8
+ var components = require('../Card/components.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
+ function Skeleton({
18
+ variant,
19
+ children,
20
+ style,
21
+ className
22
+ }) {
23
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Skeleton, { variant, style, className, children });
24
+ }
25
+ function CardSkeleton({
26
+ inset,
27
+ className,
28
+ ...cardProps
29
+ }) {
30
+ return /* @__PURE__ */ jsxRuntime.jsx(
31
+ material.Skeleton,
32
+ {
33
+ variant: "rounded",
34
+ "data-inset": inset ?? "medium",
35
+ className: cx.cx(index_module.default.card, className),
36
+ ...cardProps
37
+ }
38
+ );
39
+ }
40
+ function FormControlSkeleton({
41
+ label,
42
+ children,
43
+ ...formControlProps
44
+ }) {
45
+ return /* @__PURE__ */ jsxRuntime.jsx(
46
+ index.default,
47
+ {
48
+ label: label ?? /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: index_module.default.formControlSkeletonLabel }),
49
+ ...formControlProps,
50
+ children: children ?? /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: index_module.default.formControlSkeletonControl })
51
+ }
52
+ );
53
+ }
54
+ function CardTitleSkeleton({
55
+ start,
56
+ actions,
57
+ children,
58
+ ...props
59
+ }) {
60
+ return /* @__PURE__ */ jsxRuntime.jsx(
61
+ components.CardTitle,
62
+ {
63
+ ...props,
64
+ start: start && /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: index_module.default.cardTitleStart, children: start }),
65
+ actions: actions && /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: index_module.default.cardTitleActions, children: actions }),
66
+ children: /* @__PURE__ */ jsxRuntime.jsx(Skeleton, {})
67
+ }
68
+ );
69
+ }
70
+
71
+ exports.CardSkeleton = CardSkeleton;
72
+ exports.CardTitleSkeleton = CardTitleSkeleton;
73
+ exports.FormControlSkeleton = FormControlSkeleton;
74
+ exports.Skeleton = Skeleton;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ 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"};
6
+
7
+ exports.default = styles;
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var loader = require('./loader.js');
7
+ var index = require('../../ErrorBoundary/index.js');
8
+
9
+ function LoadingBoundary(props) {
10
+ if (props.force) {
11
+ return props.loader || /* @__PURE__ */ jsxRuntime.jsx(loader.Loader, {});
12
+ }
13
+ return /* @__PURE__ */ jsxRuntime.jsx(index.default, { fallback: props.error, children: /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: props.loader || /* @__PURE__ */ jsxRuntime.jsx(loader.Loader, {}), children: props.children }) });
14
+ }
15
+
16
+ exports.DialogLoader = loader.DialogLoader;
17
+ exports.Loader = loader.Loader;
18
+ exports.LoadingBoundary = LoadingBoundary;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styles = {"container":"vt_ce_suspense_container__fb891ef4","dialogContainer":"vt_ce_suspense_dialogContainer__2ae26a9a"};
6
+
7
+ exports.default = styles;
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var index_module = require('./index.module.scss.js');
6
+ var index = require('../../CircularProgress/index.js');
7
+ var cx = require('../../styles/cx.js');
8
+ require('../../styles/defaultThemeOptions.js');
9
+ require('@capsizecss/core');
10
+ require('color2k');
11
+ require('../../styles/defaultTheme.js');
12
+ require('../../styles/provider.client.js');
13
+ require('../../styles/css-vars.js');
14
+
15
+ function Loader(props) {
16
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { style: props.style, className: cx.cx(index_module.default.container, props.className), children: /* @__PURE__ */ jsxRuntime.jsx(index.default, {}) });
17
+ }
18
+ function DialogLoader({ className, ...props }) {
19
+ return /* @__PURE__ */ jsxRuntime.jsx(Loader, { ...props, className: cx.cx(index_module.default.dialogContainer, className) });
20
+ }
21
+
22
+ exports.DialogLoader = DialogLoader;
23
+ exports.Loader = Loader;
@@ -3,7 +3,7 @@
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import * as React from 'react';
5
5
  import { useTransitionStyles, useMergeRefs, FloatingPortal, FloatingOverlay, FloatingFocusManager } from '@floating-ui/react';
6
- import css from './styles.module.scss.js';
6
+ import styles from './styles.module.scss.js';
7
7
  import { useDialog, DialogContext, useDialogContext } from './state.js';
8
8
  import { cx } from '../styles/cx.js';
9
9
  import '../styles/defaultThemeOptions.js';
@@ -14,9 +14,9 @@ import '../styles/provider.client.js';
14
14
  import { PortalThemeRelay } from '../styles/portal.js';
15
15
  import '../styles/css-vars.js';
16
16
  import Button from '../Button/index.js';
17
- import Typography from '../Typography/index.js';
18
17
  import IconButton from '../IconButton/index.js';
19
18
  import { CloseIcon } from '../Icon/internal.js';
19
+ import Card, { CardStart, CardContent, CardEnd, CardTitle, CardTypography, CardDescription, CardActions } from '../unstable/Card/components.js';
20
20
 
21
21
  const Dialog = React.forwardRef(function Dialog2({
22
22
  children,
@@ -27,9 +27,18 @@ const Dialog = React.forwardRef(function Dialog2({
27
27
  overlayClassName,
28
28
  lockScroll = true,
29
29
  disableAutoFocus = false,
30
- "data-testid": dataTestId,
31
- ...options
30
+ open,
31
+ onDismiss,
32
+ preventOutsideDismiss,
33
+ preventEscapeDismiss,
34
+ ...props
32
35
  }, propRef) {
36
+ const options = {
37
+ open,
38
+ onDismiss,
39
+ preventOutsideDismiss,
40
+ preventEscapeDismiss
41
+ };
33
42
  const dialog = useDialog(options);
34
43
  const { isMounted: overlayIsMounted, styles: overlayTransitionStyles } = useTransitionStyles(dialog.context, {
35
44
  duration: 225,
@@ -53,7 +62,7 @@ const Dialog = React.forwardRef(function Dialog2({
53
62
  ...overlayTransitionStyles,
54
63
  ...overlayStyle
55
64
  },
56
- className: cx(css["dialog-overlay"], overlayClassName),
65
+ className: cx(styles["dialog-overlay"], overlayClassName),
57
66
  lockScroll,
58
67
  children: /* @__PURE__ */ jsx(
59
68
  FloatingFocusManager,
@@ -61,18 +70,16 @@ const Dialog = React.forwardRef(function Dialog2({
61
70
  context: dialog.context,
62
71
  disabled: disableAutoFocus,
63
72
  children: /* @__PURE__ */ jsx(PortalThemeRelay, { children: /* @__PURE__ */ jsx(
64
- "div",
73
+ Card,
65
74
  {
66
75
  ref,
67
- "aria-labelledby": dialog.labelId,
68
- "aria-describedby": dialog.descriptionId,
69
76
  ...dialog.getFloatingProps(),
70
- "data-testid": dataTestId,
77
+ ...props,
71
78
  style: {
72
79
  ...innerTransitionStyles,
73
80
  ...style
74
81
  },
75
- className: cx(css["dialog"], className),
82
+ className: cx(styles["dialog"], className),
76
83
  children
77
84
  }
78
85
  ) })
@@ -85,104 +92,36 @@ const Dialog = React.forwardRef(function Dialog2({
85
92
  });
86
93
  const DialogStart = React.forwardRef(
87
94
  function DialogStart2({ children, ...props }, ref) {
88
- return /* @__PURE__ */ jsx(
89
- "div",
90
- {
91
- ref,
92
- ...props,
93
- className: cx(css["dialog-start"], props.className),
94
- children
95
- }
96
- );
95
+ return /* @__PURE__ */ jsx(CardStart, { ref, ...props, children });
97
96
  }
98
97
  );
99
98
  const DialogContent = React.forwardRef(function DialogContent2({ children, ...props }, ref) {
100
- return /* @__PURE__ */ jsx(
101
- "div",
102
- {
103
- ...props,
104
- ref,
105
- className: cx(css["dialog-content"], props.className),
106
- children
107
- }
108
- );
99
+ return /* @__PURE__ */ jsx(CardContent, { ref, ...props, children });
109
100
  });
110
101
  const DialogEnd = React.forwardRef(
111
102
  function DialogEnd2({ children, ...props }, ref) {
112
- return /* @__PURE__ */ jsx(
113
- "div",
114
- {
115
- ref,
116
- ...props,
117
- className: cx(css["dialog-end"], props.className),
118
- children
119
- }
120
- );
103
+ return /* @__PURE__ */ jsx(CardEnd, { ref, ...props, children });
121
104
  }
122
105
  );
123
- const DialogTitle = React.forwardRef(function DialogTitle2({ children, ...props }, ref) {
124
- const { setLabelId } = useDialogContext();
125
- const id = React.useId();
126
- React.useLayoutEffect(() => {
127
- setLabelId(id);
128
- return () => setLabelId(void 0);
129
- }, [id, setLabelId]);
130
- return /* @__PURE__ */ jsx(DialogStart, { children: /* @__PURE__ */ jsx(
131
- Typography,
106
+ const DialogTitle = React.forwardRef(function DialogTitle2({ children, className, ...props }, ref) {
107
+ return /* @__PURE__ */ jsx(
108
+ CardTitle,
132
109
  {
133
- variant: "h4",
134
- color: "primary",
135
110
  ref,
136
- id,
137
- leadingTrim: true,
111
+ className: cx(className, styles["dialog-title"]),
138
112
  ...props,
139
- className: cx(css["dialog-title"], props.className),
140
113
  children
141
114
  }
142
- ) });
115
+ );
143
116
  });
144
117
  const DialogTypography = React.forwardRef(function DialogTypography2({ children, ...props }, ref) {
145
- return /* @__PURE__ */ jsx(
146
- Typography,
147
- {
148
- variant: "paragraph2",
149
- color: "primary",
150
- ...props,
151
- ref,
152
- className: cx(css["dialog-typography"], props.className),
153
- children
154
- }
155
- );
118
+ return /* @__PURE__ */ jsx(CardTypography, { ref, ...props, children });
156
119
  });
157
120
  const DialogDescription = React.forwardRef(function DialogDescription2({ children, ...props }, ref) {
158
- const { setDescriptionId } = useDialogContext();
159
- const id = React.useId();
160
- React.useLayoutEffect(() => {
161
- setDescriptionId(id);
162
- return () => setDescriptionId(void 0);
163
- }, [id, setDescriptionId]);
164
- return /* @__PURE__ */ jsx(
165
- DialogTypography,
166
- {
167
- variant: "paragraph2",
168
- color: "primary",
169
- ...props,
170
- ref,
171
- id,
172
- children
173
- }
174
- );
121
+ return /* @__PURE__ */ jsx(CardDescription, { ref, ...props, children });
175
122
  });
176
123
  const DialogActions = React.forwardRef(function DialogActions2({ children, ...props }, ref) {
177
- return /* @__PURE__ */ jsx(DialogEnd, { children: /* @__PURE__ */ jsx(
178
- "div",
179
- {
180
- ...props,
181
- ref,
182
- className: cx(css["dialog-actions"], props.className),
183
- children
184
- }
185
- ) });
124
+ return /* @__PURE__ */ jsx(CardActions, { ref, ...props, children });
186
125
  });
187
126
  const DialogCloseButton = React.forwardRef(function DialogCloseButton2(props, ref) {
188
127
  const { dismiss } = useDialogContext();
@@ -9,8 +9,6 @@ function useDialog({
9
9
  preventOutsideDismiss,
10
10
  preventEscapeDismiss
11
11
  }) {
12
- const [labelId, setLabelId] = React.useState();
13
- const [descriptionId, setDescriptionId] = React.useState();
14
12
  const data = useFloating({
15
13
  open,
16
14
  onOpenChange: (newOpen) => !newOpen && typeof dismissDialog === "function" && dismissDialog()
@@ -28,13 +26,9 @@ function useDialog({
28
26
  open,
29
27
  dismiss: dismissDialog,
30
28
  ...interactions,
31
- ...data,
32
- labelId,
33
- descriptionId,
34
- setLabelId,
35
- setDescriptionId
29
+ ...data
36
30
  }),
37
- [open, dismissDialog, interactions, data, labelId, descriptionId]
31
+ [open, dismissDialog, interactions, data]
38
32
  );
39
33
  }
40
34
  const DialogContext = React.createContext(null);
@@ -1,3 +1,3 @@
1
- var css = {"dialog-overlay":"vt_ce_Dialog_dialog-overlay__9285b892","dialog":"vt_ce_Dialog_dialog__6471c2e3","dialog-start":"vt_ce_Dialog_dialog-start__3d0c37c9","dialog-end":"vt_ce_Dialog_dialog-end__d33601cf","dialog-content":"vt_ce_Dialog_dialog-content__237fe65e","dialog-title":"vt_ce_Dialog_dialog-title__d88ef551","dialog-typography":"vt_ce_Dialog_dialog-typography__94d06942","dialog-actions":"vt_ce_Dialog_dialog-actions__e259c208"};
1
+ var styles = {"dialog-overlay":"vt_ce_Dialog_dialog-overlay__9285b892","dialog":"vt_ce_Dialog_dialog__6471c2e3","dialog-title":"vt_ce_Dialog_dialog-title__d88ef551"};
2
2
 
3
- export { css as default };
3
+ export { styles as default };
@@ -16,7 +16,14 @@ import IconButton from '../IconButton/index.js';
16
16
  import { adaptMuiSvgIcon } from '../Icon/wrappers.js';
17
17
  import '../Icon/factory.js';
18
18
  import styles from './styles.module.scss.js';
19
+ import '../unstable/Breadcrumbs/index.js';
20
+ import '../unstable/Card/components.js';
19
21
  import LinearProgress from '../unstable/LinearProgress/index.js';
22
+ import '@mui/material';
23
+ import '../FormControl/index.js';
24
+ import '../ErrorBoundary/index.js';
25
+ import '../Button/index.js';
26
+ import '../unstable/Tabs/index.js';
20
27
 
21
28
  const CloudUploadOutlinedIcon = adaptMuiSvgIcon(CloudUploadOutlined);
22
29
  const DeleteOutlineIcon = adaptMuiSvgIcon(DeleteOutline);
@@ -80,7 +80,8 @@ function ControlledAutoTable({
80
80
  const size = rowsPerPage ?? 10;
81
81
  table.setPageSize(size);
82
82
  options.onRowsPerPageChange(size);
83
- }
83
+ },
84
+ className: styles.pagination
84
85
  }
85
86
  ) }) }) })
86
87
  ]
@@ -1,3 +1,3 @@
1
- var styles = {"visuallyHidden":"vt_ce_AutoTable_visuallyHidden__d42457bf","errorContainer":"vt_ce_AutoTable_errorContainer__22629d1a","loadingContainer":"vt_ce_AutoTable_loadingContainer__800e1c5c","table":"vt_ce_AutoTable_table__abdcf037","stickyHeader":"vt_ce_AutoTable_stickyHeader__1fdfff7b","virtualTableBody":"vt_ce_AutoTable_virtualTableBody__1264b0bb"};
1
+ var styles = {"visuallyHidden":"vt_ce_AutoTable_visuallyHidden__d42457bf","errorContainer":"vt_ce_AutoTable_errorContainer__22629d1a","loadingContainer":"vt_ce_AutoTable_loadingContainer__800e1c5c","table":"vt_ce_AutoTable_table__abdcf037","stickyHeader":"vt_ce_AutoTable_stickyHeader__1fdfff7b","virtualTableBody":"vt_ce_AutoTable_virtualTableBody__1264b0bb","pagination":"vt_ce_AutoTable_pagination__1b911403"};
2
2
 
3
3
  export { styles as default };
@@ -9,6 +9,13 @@ import Select from '../Select/uncontrolled.js';
9
9
  import { useState, useEffect } from 'react';
10
10
  import Input from '../Input/index.js';
11
11
  import FormControl from '../FormControl/index.js';
12
+ import { cx } from '../styles/cx.js';
13
+ import '../styles/defaultThemeOptions.js';
14
+ import '@capsizecss/core';
15
+ import 'color2k';
16
+ import '../styles/defaultTheme.js';
17
+ import '../styles/provider.client.js';
18
+ import '../styles/css-vars.js';
12
19
 
13
20
  function TablePagination({
14
21
  page,
@@ -18,6 +25,12 @@ function TablePagination({
18
25
  rowsPerPageLabel = "Rows per page:",
19
26
  rowsPerPageVariant = "normal",
20
27
  showPageNumberInput = false,
28
+ onChangePage,
29
+ onRowsPerPageChange,
30
+ "data-pendo-prev": dataPendoPrev,
31
+ "data-pendo-next": dataPendoNext,
32
+ "data-pendo-select": dataPendoSelect,
33
+ className,
21
34
  ...props
22
35
  }) {
23
36
  const showPrev = page !== 1;
@@ -35,7 +48,7 @@ function TablePagination({
35
48
  Math.min(Math.ceil(count / rowsPerPage), Number(inputPage))
36
49
  );
37
50
  if (newPage !== page) {
38
- props.onChangePage(newPage);
51
+ onChangePage(newPage);
39
52
  }
40
53
  setInputPage(newPage.toString());
41
54
  };
@@ -47,7 +60,7 @@ function TablePagination({
47
60
  useEffect(() => {
48
61
  setInputPage(page.toString());
49
62
  }, [page]);
50
- return /* @__PURE__ */ jsxs("nav", { className: css["container"], children: [
63
+ return /* @__PURE__ */ jsxs("nav", { ...props, className: cx(css["container"], className), children: [
51
64
  /* @__PURE__ */ jsx(FormControl, { label: rowsPerPageLabel, placement: "inline-start", children: /* @__PURE__ */ jsx(
52
65
  Select,
53
66
  {
@@ -58,9 +71,9 @@ function TablePagination({
58
71
  label: option.toLocaleString(),
59
72
  value: option
60
73
  })),
61
- onChange: (_, newRowsPerPage) => props.onRowsPerPageChange?.(newRowsPerPage),
74
+ onChange: (_, newRowsPerPage) => onRowsPerPageChange?.(newRowsPerPage),
62
75
  className: css["rows-per-page-select"],
63
- "data-pendo": props["data-pendo-select"],
76
+ "data-pendo": dataPendoSelect,
64
77
  tight: rowsPerPageVariant === "tight"
65
78
  }
66
79
  ) }),
@@ -89,8 +102,8 @@ function TablePagination({
89
102
  {
90
103
  type: "button",
91
104
  disabled: !showPrev,
92
- onClick: () => props.onChangePage(page - 1),
93
- "data-pendo": props["data-pendo-prev"],
105
+ onClick: () => onChangePage(page - 1),
106
+ "data-pendo": dataPendoPrev,
94
107
  children: /* @__PURE__ */ jsx(NavigateBeforeIcon, {})
95
108
  }
96
109
  ) }),
@@ -99,8 +112,8 @@ function TablePagination({
99
112
  {
100
113
  type: "button",
101
114
  disabled: !showNext,
102
- onClick: () => props.onChangePage(page + 1),
103
- "data-pendo": props["data-pendo-next"],
115
+ onClick: () => onChangePage(page + 1),
116
+ "data-pendo": dataPendoNext,
104
117
  children: /* @__PURE__ */ jsx(NavigateNextIcon, {})
105
118
  }
106
119
  ) })