@veritone-ce/design-system 2.0.0-next.2 → 2.0.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 (85) hide show
  1. package/dist/esm-next/Alert/index.js +32 -23
  2. package/dist/esm-next/Button/index.js +13 -6
  3. package/dist/esm-next/Checkbox/index.js +51 -45
  4. package/dist/esm-next/CircularProgress/index.js +14 -12
  5. package/dist/esm-next/Dialog/components.js +36 -35
  6. package/dist/esm-next/Dialog/factory.js +3 -2
  7. package/dist/esm-next/GlobalStyles/index.js +2 -2
  8. package/dist/esm-next/Icon/factory.js +2 -1
  9. package/dist/esm-next/Icon/internal.js +9 -9
  10. package/dist/esm-next/Icon/wrappers.js +9 -8
  11. package/dist/esm-next/IconButton/index.js +9 -6
  12. package/dist/esm-next/Input/index.js +35 -24
  13. package/dist/esm-next/Menu/controlled.js +39 -36
  14. package/dist/esm-next/Menu/factory.js +2 -2
  15. package/dist/esm-next/RadioButton/index.js +30 -22
  16. package/dist/esm-next/Select/controlled.js +84 -73
  17. package/dist/esm-next/Select/factory.js +4 -3
  18. package/dist/esm-next/Select/uncontrolled.js +3 -2
  19. package/dist/esm-next/Textarea/index.js +36 -30
  20. package/dist/esm-next/Toast/content.js +2 -1
  21. package/dist/esm-next/Toast/hook.js +7 -6
  22. package/dist/esm-next/Toast/index.js +2 -1
  23. package/dist/esm-next/Tooltip/index.js +27 -21
  24. package/dist/esm-next/Typography/index.js +1 -0
  25. package/dist/esm-next/styles/provider.client.js +6 -6
  26. package/dist/esm-next/styles/provider.css-vars.js +5 -5
  27. package/dist/types/src/components/AudioSlider/index.d.ts +1 -2
  28. package/dist/types/src/components/Breadcrumbs/index.d.ts +1 -1
  29. package/dist/types/src/components/Drawer/index.d.ts +1 -1
  30. package/dist/types/src/components/ErrorMessage/index.d.ts +1 -1
  31. package/dist/types/src/components/FileUploader/index.d.ts +1 -2
  32. package/dist/types/src/components/FormControlLabel/index.d.ts +1 -1
  33. package/dist/types/src/components/LinearProgress/index.d.ts +1 -2
  34. package/dist/types/src/components/Link/index.d.ts +1 -1
  35. package/dist/types/src/components/List/index.d.ts +1 -1
  36. package/dist/types/src/components/ListItem/index.d.ts +1 -1
  37. package/dist/types/src/components/ListItemButton/index.d.ts +1 -1
  38. package/dist/types/src/components/ListItemText/index.d.ts +1 -1
  39. package/dist/types/src/components/Panel/index.d.ts +2 -2
  40. package/dist/types/src/components/ProgressIndicator/DefaultProgress.d.ts +1 -2
  41. package/dist/types/src/components/ProgressIndicator/MLProgress.d.ts +1 -2
  42. package/dist/types/src/components/ProgressIndicator/index.d.ts +1 -2
  43. package/dist/types/src/components/Select/index.d.ts +1 -1
  44. package/dist/types/src/components/StatusChip/index.d.ts +1 -1
  45. package/dist/types/src/components/Step/index.d.ts +1 -1
  46. package/dist/types/src/components/StepLabel/index.d.ts +1 -1
  47. package/dist/types/src/components/Stepper/index.d.ts +1 -1
  48. package/dist/types/src/components/Table/AutoTable/controlled.d.ts +1 -1
  49. package/dist/types/src/components/Table/AutoTable/index.d.ts +1 -1
  50. package/dist/types/src/components/Table/AutoTable/virtual.d.ts +1 -1
  51. package/dist/types/src/components/Table/index.d.ts +10 -10
  52. package/dist/types/src/components/Tabs/index.d.ts +1 -1
  53. package/dist/types/src/components/ThemeProvider/index.d.ts +1 -1
  54. package/dist/types/src/components/UtilityRail/index.d.ts +1 -2
  55. package/dist/types/src/components/ZeroState/index.d.ts +1 -2
  56. package/dist/types/src/components/_Alert/index.d.ts +1 -1
  57. package/dist/types/src/components/_Autocomplete/index.d.ts +1 -1
  58. package/dist/types/src/components/_Button/Indicator.d.ts +1 -2
  59. package/dist/types/src/components/_Button/index.d.ts +1 -1
  60. package/dist/types/src/components/_Checkbox/index.d.ts +2 -2
  61. package/dist/types/src/components/_IconButton/index.d.ts +1 -1
  62. package/dist/types/src/components/_Input/index.d.ts +1 -1
  63. package/dist/types/src/components/_MenuFlyout/index.d.ts +1 -1
  64. package/dist/types/src/components/_Modal/index.d.ts +1 -1
  65. package/dist/types/src/components/_RadioButton/index.d.ts +1 -1
  66. package/dist/types/src/components/_RadioGroup/index.d.ts +1 -1
  67. package/dist/types/src/components/_Typography/index.d.ts +1 -1
  68. package/dist/types/src/components/icons/HomeOutlinedIcon/index.d.ts +1 -2
  69. package/dist/types/src/components/icons/IconGroups/index.d.ts +1 -2
  70. package/dist/types/src/components/icons/IconListItem/index.d.ts +1 -1
  71. package/dist/types/src-next/Alert/index.d.ts +1 -1
  72. package/dist/types/src-next/CircularProgress/index.d.ts +1 -1
  73. package/dist/types/src-next/GlobalStyles/index.d.ts +1 -2
  74. package/dist/types/src-next/Icon/internal.d.ts +1 -1
  75. package/dist/types/src-next/Menu/controlled.d.ts +1 -1
  76. package/dist/types/src-next/Menu/factory.d.ts +1 -2
  77. package/dist/types/src-next/Select/controlled.d.ts +1 -1
  78. package/dist/types/src-next/Select/uncontrolled.d.ts +1 -1
  79. package/dist/types/src-next/Toast/content.d.ts +1 -2
  80. package/dist/types/src-next/Toast/hook.d.ts +1 -1
  81. package/dist/types/src-next/Toast/index.d.ts +1 -2
  82. package/dist/types/src-next/Tooltip/index.d.ts +1 -1
  83. package/dist/types/src-next/styles/provider.client.d.ts +1 -1
  84. package/dist/types/src-next/styles/provider.css-vars.d.ts +1 -1
  85. package/package.json +1 -1
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
  'use client';
3
- import React__default from 'react';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import modules_efc4e723 from './styles.module.scss.js';
5
5
  import { cx } from '../styles/cx.js';
6
6
  import { defaultThemeCssVariableUsages } from '../styles/defaultTheme.js';
7
+ import 'react';
7
8
  import '@mui/system';
8
9
  import '../styles/styled.js';
9
10
  import Button from '../Button/index.js';
@@ -28,7 +29,7 @@ const Alert = (props) => {
28
29
  const text = props.text ?? defaultMessageText[severity];
29
30
  const icon = iconVariants[severity];
30
31
  const color = defaultThemeCssVariableUsages.palette.indicator[severity];
31
- return /* @__PURE__ */ React__default.createElement(
32
+ return /* @__PURE__ */ jsxs(
32
33
  "div",
33
34
  {
34
35
  style: {
@@ -36,30 +37,38 @@ const Alert = (props) => {
36
37
  "--alert-color": color,
37
38
  ...props.style
38
39
  },
39
- className: cx(modules_efc4e723["alert"], props.className)
40
- },
41
- /* @__PURE__ */ React__default.createElement("div", { className: modules_efc4e723["alert-stripe"] }),
42
- /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["alert-icon"] }, icon),
43
- /* @__PURE__ */ React__default.createElement("div", { className: modules_efc4e723["alert-content"] }, /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["alert-label"] }, label, ": "), /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["alert-text"] }, text)),
44
- /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["spacer"] }),
45
- props.action && /* @__PURE__ */ React__default.createElement(
46
- Button,
47
- {
48
- variant: "tertiary",
49
- size: "small",
50
- onClick: props.action.onClick,
51
- className: modules_efc4e723["alert-action"]
52
- },
53
- props.action.label
54
- ),
55
- props.onClose && /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["alert-close"] }, /* @__PURE__ */ React__default.createElement(IconButton, { onClick: props.onClose }, /* @__PURE__ */ React__default.createElement(DSIcon, { name: "close", size: "small" })))
40
+ className: cx(modules_efc4e723["alert"], props.className),
41
+ children: [
42
+ /* @__PURE__ */ jsx("div", { className: modules_efc4e723["alert-stripe"] }),
43
+ /* @__PURE__ */ jsx("span", { className: modules_efc4e723["alert-icon"], children: icon }),
44
+ /* @__PURE__ */ jsxs("div", { className: modules_efc4e723["alert-content"], children: [
45
+ /* @__PURE__ */ jsxs("span", { className: modules_efc4e723["alert-label"], children: [
46
+ label,
47
+ ": "
48
+ ] }),
49
+ /* @__PURE__ */ jsx("span", { className: modules_efc4e723["alert-text"], children: text })
50
+ ] }),
51
+ /* @__PURE__ */ jsx("span", { className: modules_efc4e723["spacer"] }),
52
+ props.action && /* @__PURE__ */ jsx(
53
+ Button,
54
+ {
55
+ variant: "tertiary",
56
+ size: "small",
57
+ onClick: props.action.onClick,
58
+ className: modules_efc4e723["alert-action"],
59
+ children: props.action.label
60
+ }
61
+ ),
62
+ props.onClose && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["alert-close"], children: /* @__PURE__ */ jsx(IconButton, { onClick: props.onClose, children: /* @__PURE__ */ jsx(DSIcon, { name: "close", size: "small" }) }) })
63
+ ]
64
+ }
56
65
  );
57
66
  };
58
67
  const iconVariants = {
59
- success: /* @__PURE__ */ React__default.createElement(DSIcon, { name: "success", size: "inherit" }),
60
- info: /* @__PURE__ */ React__default.createElement(DSIcon, { name: "info", size: "inherit" }),
61
- warning: /* @__PURE__ */ React__default.createElement(DSIcon, { name: "warning", size: "inherit" }),
62
- error: /* @__PURE__ */ React__default.createElement(DSIcon, { name: "error", size: "inherit" })
68
+ success: /* @__PURE__ */ jsx(DSIcon, { name: "success", size: "inherit" }),
69
+ info: /* @__PURE__ */ jsx(DSIcon, { name: "info", size: "inherit" }),
70
+ warning: /* @__PURE__ */ jsx(DSIcon, { name: "warning", size: "inherit" }),
71
+ error: /* @__PURE__ */ jsx(DSIcon, { name: "error", size: "inherit" })
63
72
  };
64
73
 
65
74
  export { Alert as default };
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
  'use client';
3
- import React__default, { forwardRef } from 'react';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
4
5
  import CircularProgress from '../CircularProgress/index.js';
5
6
  import modules_efc4e723 from './styles.module.scss.js';
6
7
  import { cx } from '../styles/cx.js';
@@ -12,7 +13,7 @@ const Button = forwardRef((props, ref) => {
12
13
  const variant = props.variant ?? "primary";
13
14
  const variantCn = modules_efc4e723[variant];
14
15
  const size = props.size ?? "large";
15
- return /* @__PURE__ */ React__default.createElement(
16
+ return /* @__PURE__ */ jsxs(
16
17
  "button",
17
18
  {
18
19
  ref,
@@ -22,10 +23,16 @@ const Button = forwardRef((props, ref) => {
22
23
  "data-destructive": props.destructive ?? false,
23
24
  onClick: props.onClick,
24
25
  style: props.style,
25
- className: cx(modules_efc4e723["button"], variantCn, props.className)
26
- },
27
- props.loading && /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["loading-container"] }, /* @__PURE__ */ React__default.createElement(CircularProgress, { size: "1.4em", color: "inherit" })),
28
- /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["inner-container"] }, props.startIcon && /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["button-icon"] }, props.startIcon), /* @__PURE__ */ React__default.createElement("span", null, props.children), props.endIcon && /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["button-icon"] }, props.endIcon))
26
+ className: cx(modules_efc4e723["button"], variantCn, props.className),
27
+ children: [
28
+ props.loading && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["loading-container"], children: /* @__PURE__ */ jsx(CircularProgress, { size: "1.4em", color: "inherit" }) }),
29
+ /* @__PURE__ */ jsxs("span", { className: modules_efc4e723["inner-container"], children: [
30
+ props.startIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["button-icon"], children: props.startIcon }),
31
+ /* @__PURE__ */ jsx("span", { children: props.children }),
32
+ props.endIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["button-icon"], children: props.endIcon })
33
+ ] })
34
+ ]
35
+ }
29
36
  );
30
37
  });
31
38
 
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
  'use client';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
4
  import React__default, { forwardRef, useRef, useId } from 'react';
4
5
  import { useForkRef } from '@mui/material';
5
6
  import modules_efc4e723 from './styles.module.scss.js';
@@ -18,7 +19,7 @@ const Checkbox = forwardRef(
18
19
  }
19
20
  }, [indeterminate]);
20
21
  const labelId = useId();
21
- return /* @__PURE__ */ React__default.createElement(
22
+ return /* @__PURE__ */ jsxs(
22
23
  "span",
23
24
  {
24
25
  role: "checkbox",
@@ -31,73 +32,78 @@ const Checkbox = forwardRef(
31
32
  e.preventDefault();
32
33
  },
33
34
  style: props.style,
34
- className: cx(modules_efc4e723["checkbox"], props.className)
35
- },
36
- /* @__PURE__ */ React__default.createElement("label", { className: modules_efc4e723["passthrough-label-container"] }, /* @__PURE__ */ React__default.createElement(
37
- "input",
38
- {
39
- type: "checkbox",
40
- ref: forkedRef,
41
- checked,
42
- disabled,
43
- onChange: props.onChange,
44
- className: modules_efc4e723["invisible-checkbox"]
45
- }
46
- ), /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["icon-container"] }, indeterminate ? /* @__PURE__ */ React__default.createElement(IndeterminateIcon, null) : checked ? /* @__PURE__ */ React__default.createElement(CheckedIcon, null) : /* @__PURE__ */ React__default.createElement(UncheckedIcon, null))),
47
- props.label && /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["visible-label"], id: labelId }, props.label)
35
+ className: cx(modules_efc4e723["checkbox"], props.className),
36
+ children: [
37
+ /* @__PURE__ */ jsxs("label", { className: modules_efc4e723["passthrough-label-container"], children: [
38
+ /* @__PURE__ */ jsx(
39
+ "input",
40
+ {
41
+ type: "checkbox",
42
+ ref: forkedRef,
43
+ checked,
44
+ disabled,
45
+ onChange: props.onChange,
46
+ className: modules_efc4e723["invisible-checkbox"]
47
+ }
48
+ ),
49
+ /* @__PURE__ */ jsx("span", { className: modules_efc4e723["icon-container"], children: indeterminate ? /* @__PURE__ */ jsx(IndeterminateIcon, {}) : checked ? /* @__PURE__ */ jsx(CheckedIcon, {}) : /* @__PURE__ */ jsx(UncheckedIcon, {}) })
50
+ ] }),
51
+ props.label && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["visible-label"], id: labelId, children: props.label })
52
+ ]
53
+ }
48
54
  );
49
55
  }
50
56
  );
51
- const UncheckedIcon = () => /* @__PURE__ */ React__default.createElement(
57
+ const UncheckedIcon = () => /* @__PURE__ */ jsx(
52
58
  "svg",
53
59
  {
54
60
  xmlns: "http://www.w3.org/2000/svg",
55
61
  width: 24,
56
62
  height: 24,
57
63
  viewBox: "0 0 24 24",
58
- fill: "none"
59
- },
60
- /* @__PURE__ */ React__default.createElement(
61
- "path",
62
- {
63
- className: modules_efc4e723["checkbox-svg-path"],
64
- d: "M19 5v14H5V5h14Zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z"
65
- }
66
- )
64
+ fill: "none",
65
+ children: /* @__PURE__ */ jsx(
66
+ "path",
67
+ {
68
+ className: modules_efc4e723["checkbox-svg-path"],
69
+ d: "M19 5v14H5V5h14Zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z"
70
+ }
71
+ )
72
+ }
67
73
  );
68
- const CheckedIcon = () => /* @__PURE__ */ React__default.createElement(
74
+ const CheckedIcon = () => /* @__PURE__ */ jsx(
69
75
  "svg",
70
76
  {
71
77
  xmlns: "http://www.w3.org/2000/svg",
72
78
  width: 24,
73
79
  height: 24,
74
80
  viewBox: "0 0 24 24",
75
- fill: "none"
76
- },
77
- /* @__PURE__ */ React__default.createElement(
78
- "path",
79
- {
80
- className: modules_efc4e723["checkbox-svg-path"],
81
- d: "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z"
82
- }
83
- )
81
+ fill: "none",
82
+ children: /* @__PURE__ */ jsx(
83
+ "path",
84
+ {
85
+ className: modules_efc4e723["checkbox-svg-path"],
86
+ d: "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z"
87
+ }
88
+ )
89
+ }
84
90
  );
85
- const IndeterminateIcon = () => /* @__PURE__ */ React__default.createElement(
91
+ const IndeterminateIcon = () => /* @__PURE__ */ jsx(
86
92
  "svg",
87
93
  {
88
94
  xmlns: "http://www.w3.org/2000/svg",
89
95
  width: 24,
90
96
  height: 24,
91
97
  viewBox: "0 0 24 24",
92
- fill: "none"
93
- },
94
- /* @__PURE__ */ React__default.createElement(
95
- "path",
96
- {
97
- className: modules_efc4e723["checkbox-svg-path"],
98
- d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-2 10H7v-2h10v2Z"
99
- }
100
- )
98
+ fill: "none",
99
+ children: /* @__PURE__ */ jsx(
100
+ "path",
101
+ {
102
+ className: modules_efc4e723["checkbox-svg-path"],
103
+ d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-2 10H7v-2h10v2Z"
104
+ }
105
+ )
106
+ }
101
107
  );
102
108
 
103
109
  export { Checkbox as default };
@@ -1,4 +1,6 @@
1
1
  'use strict';
2
+ 'use client';
3
+ import { jsx } from 'react/jsx-runtime';
2
4
  import { createTheme, ThemeProvider, CircularProgress as CircularProgress$1 } from '@mui/material';
3
5
  import modules_efc4e723 from './styles.module.scss.js';
4
6
  import { cx } from '../styles/cx.js';
@@ -13,7 +15,7 @@ function CircularProgress({
13
15
  fillParentHeight = false,
14
16
  ...props
15
17
  }) {
16
- return /* @__PURE__ */ React.createElement(
18
+ return /* @__PURE__ */ jsx(
17
19
  "span",
18
20
  {
19
21
  className: cx(modules_efc4e723["container"], props.className),
@@ -22,18 +24,18 @@ function CircularProgress({
22
24
  // @ts-ignore
23
25
  "--circular-progress-color": props.color ?? void 0,
24
26
  ...props.style
25
- }
26
- },
27
- /* @__PURE__ */ React.createElement(ThemeProvider, { theme: muiDefaultTheme }, /* @__PURE__ */ React.createElement(
28
- CircularProgress$1,
29
- {
30
- color: "inherit",
31
- style: {
32
- width: !fillParentHeight ? size : "unset",
33
- height: !fillParentHeight ? size : "100%"
27
+ },
28
+ children: /* @__PURE__ */ jsx(ThemeProvider, { theme: muiDefaultTheme, children: /* @__PURE__ */ jsx(
29
+ CircularProgress$1,
30
+ {
31
+ color: "inherit",
32
+ style: {
33
+ width: !fillParentHeight ? size : "unset",
34
+ height: !fillParentHeight ? size : "100%"
35
+ }
34
36
  }
35
- }
36
- ))
37
+ ) })
38
+ }
37
39
  );
38
40
  }
39
41
 
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
  'use client';
3
+ import { jsx } from 'react/jsx-runtime';
3
4
  import * as React from 'react';
4
5
  import { useMergeRefs, FloatingPortal, FloatingOverlay, FloatingFocusManager } from '@floating-ui/react';
5
6
  import modules_efc4e723 from './styles.module.scss.js';
@@ -24,38 +25,38 @@ const Dialog = React.forwardRef(function Dialog2({
24
25
  const ref = useMergeRefs([dialog.context.refs.setFloating, propRef]);
25
26
  let content = null;
26
27
  if (dialog.context.open) {
27
- content = /* @__PURE__ */ React.createElement(FloatingPortal, { root: portalEl }, /* @__PURE__ */ React.createElement(
28
+ content = /* @__PURE__ */ jsx(FloatingPortal, { root: portalEl, children: /* @__PURE__ */ jsx(
28
29
  FloatingOverlay,
29
30
  {
30
31
  style: overlayStyle,
31
32
  className: cx(modules_efc4e723["dialog-overlay"], overlayClassName),
32
- lockScroll: true
33
- },
34
- /* @__PURE__ */ React.createElement(FloatingFocusManager, { context: dialog.context }, /* @__PURE__ */ React.createElement(
35
- "div",
36
- {
37
- ref,
38
- "aria-labelledby": dialog.labelId,
39
- "aria-describedby": dialog.descriptionId,
40
- ...dialog.getFloatingProps(),
41
- style,
42
- className: cx(modules_efc4e723["dialog"], className)
43
- },
44
- children
45
- ))
46
- ));
33
+ lockScroll: true,
34
+ children: /* @__PURE__ */ jsx(FloatingFocusManager, { context: dialog.context, children: /* @__PURE__ */ jsx(
35
+ "div",
36
+ {
37
+ ref,
38
+ "aria-labelledby": dialog.labelId,
39
+ "aria-describedby": dialog.descriptionId,
40
+ ...dialog.getFloatingProps(),
41
+ style,
42
+ className: cx(modules_efc4e723["dialog"], className),
43
+ children
44
+ }
45
+ ) })
46
+ }
47
+ ) });
47
48
  }
48
- return /* @__PURE__ */ React.createElement(DialogContext.Provider, { value: dialog }, content);
49
+ return /* @__PURE__ */ jsx(DialogContext.Provider, { value: dialog, children: content });
49
50
  });
50
51
  const DialogContent = React.forwardRef(function DialogContent2({ children, ...props }, ref) {
51
- return /* @__PURE__ */ React.createElement(
52
+ return /* @__PURE__ */ jsx(
52
53
  "div",
53
54
  {
54
55
  ...props,
55
56
  ref,
56
- className: cx(modules_efc4e723["dialog-content"], props.className)
57
- },
58
- children
57
+ className: cx(modules_efc4e723["dialog-content"], props.className),
58
+ children
59
+ }
59
60
  );
60
61
  });
61
62
  const DialogHeading = React.forwardRef(function DialogHeading2({ children, ...props }, ref) {
@@ -65,27 +66,27 @@ const DialogHeading = React.forwardRef(function DialogHeading2({ children, ...pr
65
66
  setLabelId(id);
66
67
  return () => setLabelId(void 0);
67
68
  }, [id, setLabelId]);
68
- return /* @__PURE__ */ React.createElement(
69
+ return /* @__PURE__ */ jsx(
69
70
  Typography,
70
71
  {
71
72
  variant: "h4",
72
73
  ref,
73
74
  id,
74
- className: cx(modules_efc4e723["dialog-heading"], props.className)
75
- },
76
- children
75
+ className: cx(modules_efc4e723["dialog-heading"], props.className),
76
+ children
77
+ }
77
78
  );
78
79
  });
79
80
  const DialogTypography = React.forwardRef(function DialogTypography2({ children, ...props }, ref) {
80
- return /* @__PURE__ */ React.createElement(
81
+ return /* @__PURE__ */ jsx(
81
82
  Typography,
82
83
  {
83
84
  variant: "paragraph2",
84
85
  ...props,
85
86
  ref,
86
- className: cx(modules_efc4e723["dialog-typography"], props.className)
87
- },
88
- children
87
+ className: cx(modules_efc4e723["dialog-typography"], props.className),
88
+ children
89
+ }
89
90
  );
90
91
  });
91
92
  const DialogDescription = React.forwardRef(function DialogDescription2({ children, ...props }, ref) {
@@ -95,23 +96,23 @@ const DialogDescription = React.forwardRef(function DialogDescription2({ childre
95
96
  setDescriptionId(id);
96
97
  return () => setDescriptionId(void 0);
97
98
  }, [id, setDescriptionId]);
98
- return /* @__PURE__ */ React.createElement(DialogTypography, { ...props, ref, id }, children);
99
+ return /* @__PURE__ */ jsx(DialogTypography, { ...props, ref, id, children });
99
100
  });
100
101
  const DialogActions = React.forwardRef(function DialogActions2({ children, ...props }, ref) {
101
- return /* @__PURE__ */ React.createElement(
102
+ return /* @__PURE__ */ jsx(
102
103
  "div",
103
104
  {
104
105
  ...props,
105
106
  ref,
106
- className: cx(modules_efc4e723["dialog-actions"], props.className)
107
- },
108
- children
107
+ className: cx(modules_efc4e723["dialog-actions"], props.className),
108
+ children
109
+ }
109
110
  );
110
111
  });
111
112
  const DialogClose = React.forwardRef(
112
113
  function DialogClose2(props, ref) {
113
114
  const { dismiss } = useDialogContext();
114
- return /* @__PURE__ */ React.createElement(
115
+ return /* @__PURE__ */ jsx(
115
116
  Button,
116
117
  {
117
118
  variant: "secondary",
@@ -1,11 +1,12 @@
1
1
  'use strict';
2
- import React__default, { forwardRef } from 'react';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
3
4
  import Dialog from './components.js';
4
5
 
5
6
  function createDialogComponent({ portalEl }) {
6
7
  return forwardRef(
7
8
  function ScopedDialog(props, ref) {
8
- return /* @__PURE__ */ React__default.createElement(Dialog, { portalEl, ref, ...props });
9
+ return /* @__PURE__ */ jsx(Dialog, { portalEl, ref, ...props });
9
10
  }
10
11
  );
11
12
  }
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
  'use client';
3
- import * as React from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
4
  import { GlobalStyles as GlobalStyles$1 } from '@mui/system';
5
5
  import defaultTheme from '../styles/defaultTheme.js';
6
6
  import THEME_ID from '../styles/identifier.js';
7
7
 
8
8
  function GlobalStyles(props) {
9
- return /* @__PURE__ */ React.createElement(
9
+ return /* @__PURE__ */ jsx(
10
10
  GlobalStyles$1,
11
11
  {
12
12
  ...props,
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import React__default, { forwardRef } from 'react';
3
4
  import { BrokenImageOutlined } from '@mui/icons-material';
4
5
  import { adaptMuiSvgIcon } from './wrappers.js';
@@ -10,7 +11,7 @@ function createIconComponent({
10
11
  }) {
11
12
  return forwardRef(function Icon({ name, ...genericProps }, ref) {
12
13
  const ResolvedIcon = React__default.useMemo(() => iconMap[name] ?? fallback, [name]);
13
- return /* @__PURE__ */ React__default.createElement(ResolvedIcon, { ref, name, ...genericProps });
14
+ return /* @__PURE__ */ jsx(ResolvedIcon, { ref, name, ...genericProps });
14
15
  });
15
16
  }
16
17
 
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { createIconComponent } from './factory.js';
3
4
  import { Close } from '@mui/icons-material';
4
5
  import { adaptMuiSvgIcon, adaptSvgIcon } from './wrappers.js';
5
- import React__default from 'react';
6
6
 
7
7
  const DSIcon = createIconComponent({
8
8
  iconMap: {
9
9
  close: adaptMuiSvgIcon(Close),
10
10
  success: adaptSvgIcon(
11
- /* @__PURE__ */ React__default.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React__default.createElement(
11
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
12
12
  "path",
13
13
  {
14
14
  fillRule: "evenodd",
@@ -16,10 +16,10 @@ const DSIcon = createIconComponent({
16
16
  d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM7 12.2656L10.5714 16.4642L17 8.90665L15.9929 7.71423L10.5714 14.0878L8.00714 11.0816L7 12.2656Z",
17
17
  fill: "currentColor"
18
18
  }
19
- ))
19
+ ) })
20
20
  ),
21
21
  info: adaptSvgIcon(
22
- /* @__PURE__ */ React__default.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React__default.createElement(
22
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
23
23
  "path",
24
24
  {
25
25
  fillRule: "evenodd",
@@ -27,10 +27,10 @@ const DSIcon = createIconComponent({
27
27
  d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM13.86 17.0623L14.0162 16.4231C13.9358 16.461 13.8055 16.5048 13.6256 16.5545C13.4457 16.6042 13.2847 16.6291 13.1427 16.6291C12.8396 16.6291 12.6266 16.5794 12.5035 16.4799C12.3804 16.3805 12.3188 16.1935 12.3188 15.9189C12.3188 15.81 12.3377 15.649 12.3756 15.4359C12.4135 15.2228 12.4561 15.0334 12.5035 14.8677L13.0859 12.801C13.1427 12.6116 13.1817 12.4032 13.203 12.176C13.2243 11.9487 13.235 11.7901 13.235 11.7001C13.235 11.2645 13.0823 10.9106 12.7769 10.6383C12.4715 10.3661 12.0371 10.2299 11.4736 10.2299C11.1611 10.2299 10.8297 10.2856 10.4793 10.3969C10.1289 10.5081 9.762 10.6419 9.37847 10.7981L9.22222 11.4373C9.33586 11.3947 9.47198 11.3497 9.6306 11.3024C9.78922 11.255 9.94428 11.2314 10.0958 11.2314C10.4036 11.2314 10.6119 11.2834 10.7208 11.3876C10.8297 11.4918 10.8842 11.6764 10.8842 11.9416C10.8842 12.0884 10.8664 12.2505 10.8309 12.4281C10.7954 12.6057 10.7516 12.7939 10.6995 12.9927L10.1171 15.0666C10.065 15.2844 10.0271 15.4797 10.0035 15.6525C9.9798 15.8253 9.96796 15.9946 9.96796 16.1603C9.96796 16.5865 10.1254 16.938 10.4403 17.215C10.7551 17.492 11.1966 17.6305 11.7648 17.6305C12.1341 17.6305 12.4585 17.582 12.7378 17.4849C13.0172 17.3878 13.3912 17.247 13.86 17.0623ZM13.757 8.671C14.0293 8.41769 14.1654 8.11111 14.1654 7.75126C14.1654 7.39141 14.0293 7.08365 13.757 6.82797C13.4848 6.57228 13.1569 6.44444 12.7734 6.44444C12.3898 6.44444 12.0608 6.57228 11.7861 6.82797C11.5115 7.08365 11.3742 7.39141 11.3742 7.75126C11.3742 8.11111 11.5115 8.41769 11.7861 8.671C12.0608 8.92432 12.3898 9.05097 12.7734 9.05097C13.1569 9.05097 13.4848 8.92432 13.757 8.671Z",
28
28
  fill: "currentColor"
29
29
  }
30
- ))
30
+ ) })
31
31
  ),
32
32
  warning: adaptSvgIcon(
33
- /* @__PURE__ */ React__default.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React__default.createElement(
33
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
34
34
  "path",
35
35
  {
36
36
  fillRule: "evenodd",
@@ -38,16 +38,16 @@ const DSIcon = createIconComponent({
38
38
  d: "M19.075 19.075C20.8848 17.2651 22 14.7605 22 12C22 9.23949 20.8848 6.73492 19.075 4.92505C17.2651 3.11517 14.7605 2 12 2C9.23949 2 6.73492 3.11517 4.92505 4.92505C3.11517 6.73492 2 9.23949 2 12C2 14.7605 3.11517 17.2651 4.92505 19.075C6.73492 20.8848 9.23949 22 12 22C14.7605 22 17.2651 20.8848 19.075 19.075ZM13.3528 15.8574C13.3528 15.1079 12.7495 14.5046 12 14.5046C11.2505 14.5046 10.6289 15.1079 10.6289 15.8574C10.6289 16.6069 11.2505 17.2285 12 17.2285C12.7495 17.2285 13.3528 16.6069 13.3528 15.8574ZM12 13.1335C11.5064 13.1335 11.1408 12.7313 11.0859 12.2194L10.6289 8.1426C10.5558 7.42962 11.3053 6.77148 12 6.77148C12.6947 6.77148 13.4442 7.42962 13.3528 8.1426L12.9141 12.2194C12.8592 12.7313 12.4936 13.1335 12 13.1335Z",
39
39
  fill: "currentColor"
40
40
  }
41
- ))
41
+ ) })
42
42
  ),
43
43
  error: adaptSvgIcon(
44
- /* @__PURE__ */ React__default.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React__default.createElement(
44
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
45
45
  "path",
46
46
  {
47
47
  d: "M19.0711 4.92898C15.1678 1.02575 8.83216 1.02575 4.92893 4.92898C1.0257 8.83221 1.0257 15.1679 4.92893 19.0711C8.83216 22.9743 15.1678 22.9743 19.0711 19.0711C22.9743 15.1679 22.9743 8.83221 19.0711 4.92898ZM14.8284 16.2427L12 13.4143L9.17157 16.2427L7.75736 14.8285L10.5858 12L7.75736 9.17162L9.17157 7.7574L12 10.5858L14.8284 7.7574L16.2426 9.17162L13.4142 12L16.2426 14.8285L14.8284 16.2427Z",
48
48
  fill: "currentColor"
49
49
  }
50
- ))
50
+ ) })
51
51
  )
52
52
  }
53
53
  });
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import React__default from 'react';
3
4
  import modules_efc4e723 from './styles.module.scss.js';
4
5
  import { cx } from '../styles/cx.js';
@@ -9,15 +10,15 @@ import '../styles/styled.js';
9
10
  function adaptMuiSvgIcon(MuiIcon) {
10
11
  return React__default.forwardRef(
11
12
  function MuiIconWrapper({ size, ...props }, ref) {
12
- return /* @__PURE__ */ React__default.createElement(
13
+ return /* @__PURE__ */ jsx(
13
14
  "span",
14
15
  {
15
16
  ref,
16
17
  "data-size": size,
17
18
  style: props.style,
18
- className: cx(modules_efc4e723["icon"], props.className)
19
- },
20
- /* @__PURE__ */ React__default.createElement(MuiIcon, { color: "inherit" })
19
+ className: cx(modules_efc4e723["icon"], props.className),
20
+ children: /* @__PURE__ */ jsx(MuiIcon, { color: "inherit" })
21
+ }
21
22
  );
22
23
  }
23
24
  );
@@ -25,15 +26,15 @@ function adaptMuiSvgIcon(MuiIcon) {
25
26
  function adaptSvgIcon(svg) {
26
27
  return React__default.forwardRef(
27
28
  function SVGIconWrapper({ size, ...props }, ref) {
28
- return /* @__PURE__ */ React__default.createElement(
29
+ return /* @__PURE__ */ jsx(
29
30
  "span",
30
31
  {
31
32
  ref,
32
33
  "data-size": size,
33
34
  style: props.style,
34
- className: cx(modules_efc4e723["icon"], props.className)
35
- },
36
- svg
35
+ className: cx(modules_efc4e723["icon"], props.className),
36
+ children: svg
37
+ }
37
38
  );
38
39
  }
39
40
  );
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
  'use client';
3
- import React__default, { forwardRef } from 'react';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
4
5
  import CircularProgress from '../CircularProgress/index.js';
5
6
  import modules_efc4e723 from './styles.module.scss.js';
6
7
  import { cx } from '../styles/cx.js';
@@ -10,7 +11,7 @@ import '../styles/styled.js';
10
11
 
11
12
  const IconButton = forwardRef(
12
13
  (props, ref) => {
13
- return /* @__PURE__ */ React__default.createElement(
14
+ return /* @__PURE__ */ jsxs(
14
15
  "button",
15
16
  {
16
17
  ref,
@@ -19,10 +20,12 @@ const IconButton = forwardRef(
19
20
  "data-destructive": props.destructive ?? false,
20
21
  onClick: props.onClick,
21
22
  style: props.style,
22
- className: cx(modules_efc4e723["button"], props.className)
23
- },
24
- props.loading && /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["loading-container"] }, /* @__PURE__ */ React__default.createElement(CircularProgress, { color: "inherit", fillParentHeight: true })),
25
- /* @__PURE__ */ React__default.createElement("span", { className: modules_efc4e723["inner-icon"] }, props.children)
23
+ className: cx(modules_efc4e723["button"], props.className),
24
+ children: [
25
+ props.loading && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["loading-container"], children: /* @__PURE__ */ jsx(CircularProgress, { color: "inherit", fillParentHeight: true }) }),
26
+ /* @__PURE__ */ jsx("span", { className: modules_efc4e723["inner-icon"], children: props.children })
27
+ ]
28
+ }
26
29
  );
27
30
  }
28
31
  );