@uniformdev/design-system 20.72.3-alpha.40 → 20.72.3-alpha.45

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/dist/esm/index.js CHANGED
@@ -11063,9 +11063,11 @@ var IntegrationModalHeader = ({ icon, name, menu, children }) => {
11063
11063
 
11064
11064
  // src/components/JsonEditor/JsonEditor.tsx
11065
11065
  import MonacoEditor from "@monaco-editor/react";
11066
+ import * as React19 from "react";
11066
11067
  import { jsx as jsx94 } from "@emotion/react/jsx-runtime";
11067
11068
  var minEditorHeightPx = 150;
11068
11069
  var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
11070
+ const modelPath = `${React19.useId()}.json`;
11069
11071
  let effectiveHeight = height;
11070
11072
  if (typeof height === "number" && height < 0) {
11071
11073
  effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
@@ -11078,6 +11080,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
11078
11080
  {
11079
11081
  height: effectiveHeight,
11080
11082
  className: "uniform-json-editor",
11083
+ path: modelPath,
11081
11084
  defaultLanguage: "json",
11082
11085
  defaultValue,
11083
11086
  options: {
@@ -12948,7 +12951,7 @@ var LoadingIndicator = ({ size = "lg", color = "gray", ...props }) => {
12948
12951
 
12949
12952
  // src/components/Modal/Modal.tsx
12950
12953
  import { CgClose as CgClose6 } from "@react-icons/all-files/cg/CgClose";
12951
- import React19, { useCallback as useCallback11, useEffect as useEffect17, useRef as useRef11, useState as useState21 } from "react";
12954
+ import React20, { useCallback as useCallback11, useEffect as useEffect17, useRef as useRef11, useState as useState21 } from "react";
12952
12955
 
12953
12956
  // src/components/Modal/Modal.styles.ts
12954
12957
  import { css as css83 } from "@emotion/react";
@@ -13043,7 +13046,7 @@ var modalDialogInnerStyles = css83`
13043
13046
  import { jsx as jsx109, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
13044
13047
  var defaultModalWidth = "75rem";
13045
13048
  var defaultModalHeight = "51rem";
13046
- var Modal = React19.forwardRef(
13049
+ var Modal = React20.forwardRef(
13047
13050
  ({
13048
13051
  header: header2,
13049
13052
  children,
@@ -14051,7 +14054,7 @@ var ObjectListSubText2 = ({ children, ...props }) => {
14051
14054
  };
14052
14055
 
14053
14056
  // src/components/Pagination/Pagination.tsx
14054
- import * as React20 from "react";
14057
+ import * as React21 from "react";
14055
14058
  import Paginate from "react-paginate";
14056
14059
 
14057
14060
  // src/components/Pagination/Pagination.styles.ts
@@ -14187,7 +14190,7 @@ function Pagination({
14187
14190
  total,
14188
14191
  onPageChange
14189
14192
  }) {
14190
- const containerRef = React20.useRef(null);
14193
+ const containerRef = React21.useRef(null);
14191
14194
  const pageCount = limit >= 1 ? Math.ceil(total / limit) : 0;
14192
14195
  const currentPage = limit >= 1 ? Math.ceil(offset / limit) : 0;
14193
14196
  const { marginPagesDisplayed, pageRangeDisplayed } = usePaginationDisplayRange(containerRef, pageCount);
@@ -14304,7 +14307,7 @@ var LabelLeadingIcon = ({
14304
14307
  };
14305
14308
 
14306
14309
  // src/components/ParameterInputs/ParameterActionButton.tsx
14307
- import React21 from "react";
14310
+ import React22 from "react";
14308
14311
 
14309
14312
  // src/components/ParameterInputs/styles/ParameterActionButton.styles.ts
14310
14313
  import { css as css94 } from "@emotion/react";
@@ -14408,7 +14411,7 @@ var ParameterActionButton = ({
14408
14411
  children
14409
14412
  }
14410
14413
  );
14411
- if (tooltip && (typeof tooltip === "string" || React21.isValidElement(tooltip))) {
14414
+ if (tooltip && (typeof tooltip === "string" || React22.isValidElement(tooltip))) {
14412
14415
  return /* @__PURE__ */ jsx125(Tooltip, { title: tooltip, ...tooltipProps, children: buttonElement });
14413
14416
  }
14414
14417
  return buttonElement;
@@ -20284,7 +20287,7 @@ function StackedModalProvider({ children, totalSteps, initialStep }) {
20284
20287
  }
20285
20288
 
20286
20289
  // src/components/StackedModal/StackedModal.tsx
20287
- import React25 from "react";
20290
+ import React26 from "react";
20288
20291
 
20289
20292
  // src/components/StackedModal/styles/StackedModal.styles.ts
20290
20293
  import { css as css115, keyframes as keyframes7 } from "@emotion/react";
@@ -20466,18 +20469,18 @@ function StackedModalStep({ children, buttonGroup }) {
20466
20469
  // src/components/StackedModal/StackedModal.tsx
20467
20470
  import { jsx as jsx158 } from "@emotion/react/jsx-runtime";
20468
20471
  function filterSteps(children) {
20469
- return React25.Children.toArray(children).filter(
20470
- (child) => React25.isValidElement(child) && child.type === StackedModalStep
20472
+ return React26.Children.toArray(children).filter(
20473
+ (child) => React26.isValidElement(child) && child.type === StackedModalStep
20471
20474
  );
20472
20475
  }
20473
- var StackedModal = React25.forwardRef(
20476
+ var StackedModal = React26.forwardRef(
20474
20477
  ({ children, initialStep = 0, ...rest }, ref) => {
20475
20478
  const steps = filterSteps(children);
20476
20479
  return /* @__PURE__ */ jsx158(StackedModalProvider, { totalSteps: steps.length, initialStep, children: /* @__PURE__ */ jsx158(StackedModalInner, { ref, steps, ...rest }) });
20477
20480
  }
20478
20481
  );
20479
20482
  StackedModal.displayName = "StackedModal";
20480
- var StackedModalInner = React25.forwardRef(
20483
+ var StackedModalInner = React26.forwardRef(
20481
20484
  ({ steps, onRequestClose, modalSize = "lg", width, height, "data-testid": dataTestId }, ref) => {
20482
20485
  return /* @__PURE__ */ jsx158("div", { css: stackedModalRootStyles, children: /* @__PURE__ */ jsx158(
20483
20486
  Modal,
@@ -20781,39 +20784,39 @@ var ResponsiveTableContainer = ({ children }) => {
20781
20784
  };
20782
20785
 
20783
20786
  // src/components/Table/Table.tsx
20784
- import * as React26 from "react";
20787
+ import * as React27 from "react";
20785
20788
  import { jsx as jsx162 } from "@emotion/react/jsx-runtime";
20786
- var Table = React26.forwardRef(
20789
+ var Table = React27.forwardRef(
20787
20790
  ({ children, cellPadding, ...otherProps }, ref) => {
20788
20791
  return /* @__PURE__ */ jsx162("table", { ref, css: table({ cellPadding }), ...otherProps, children });
20789
20792
  }
20790
20793
  );
20791
- var TableHead = React26.forwardRef(
20794
+ var TableHead = React27.forwardRef(
20792
20795
  ({ children, ...otherProps }, ref) => {
20793
20796
  return /* @__PURE__ */ jsx162("thead", { ref, css: tableHead, ...otherProps, children });
20794
20797
  }
20795
20798
  );
20796
- var TableBody = React26.forwardRef(
20799
+ var TableBody = React27.forwardRef(
20797
20800
  ({ children, ...otherProps }, ref) => {
20798
20801
  return /* @__PURE__ */ jsx162("tbody", { ref, ...otherProps, children });
20799
20802
  }
20800
20803
  );
20801
- var TableFoot = React26.forwardRef(
20804
+ var TableFoot = React27.forwardRef(
20802
20805
  ({ children, ...otherProps }, ref) => {
20803
20806
  return /* @__PURE__ */ jsx162("tfoot", { ref, ...otherProps, children });
20804
20807
  }
20805
20808
  );
20806
- var TableRow = React26.forwardRef(
20809
+ var TableRow = React27.forwardRef(
20807
20810
  ({ children, ...otherProps }, ref) => {
20808
20811
  return /* @__PURE__ */ jsx162("tr", { ref, css: tableRow, ...otherProps, children });
20809
20812
  }
20810
20813
  );
20811
- var TableCellHead = React26.forwardRef(
20814
+ var TableCellHead = React27.forwardRef(
20812
20815
  ({ children, ...otherProps }, ref) => {
20813
20816
  return /* @__PURE__ */ jsx162("th", { ref, css: tableCellHead, ...otherProps, children });
20814
20817
  }
20815
20818
  );
20816
- var TableCellData = React26.forwardRef(
20819
+ var TableCellData = React27.forwardRef(
20817
20820
  ({ children, ...otherProps }, ref) => {
20818
20821
  return /* @__PURE__ */ jsx162("td", { ref, ...otherProps, children });
20819
20822
  }
package/dist/index.js CHANGED
@@ -13013,9 +13013,11 @@ var IntegrationModalHeader = ({ icon, name, menu, children }) => {
13013
13013
  // src/components/JsonEditor/JsonEditor.tsx
13014
13014
  init_emotion_jsx_shim();
13015
13015
  var import_react112 = __toESM(require("@monaco-editor/react"));
13016
+ var React19 = __toESM(require("react"));
13016
13017
  var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
13017
13018
  var minEditorHeightPx = 150;
13018
13019
  var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
13020
+ const modelPath = `${React19.useId()}.json`;
13019
13021
  let effectiveHeight = height;
13020
13022
  if (typeof height === "number" && height < 0) {
13021
13023
  effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
@@ -13028,6 +13030,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
13028
13030
  {
13029
13031
  height: effectiveHeight,
13030
13032
  className: "uniform-json-editor",
13033
+ path: modelPath,
13031
13034
  defaultLanguage: "json",
13032
13035
  defaultValue,
13033
13036
  options: {
@@ -16045,7 +16048,7 @@ var ObjectListSubText2 = ({ children, ...props }) => {
16045
16048
 
16046
16049
  // src/components/Pagination/Pagination.tsx
16047
16050
  init_emotion_jsx_shim();
16048
- var React20 = __toESM(require("react"));
16051
+ var React21 = __toESM(require("react"));
16049
16052
  var import_react_paginate = __toESM(require("react-paginate"));
16050
16053
 
16051
16054
  // src/components/Pagination/Pagination.styles.ts
@@ -16183,7 +16186,7 @@ function Pagination({
16183
16186
  total,
16184
16187
  onPageChange
16185
16188
  }) {
16186
- const containerRef = React20.useRef(null);
16189
+ const containerRef = React21.useRef(null);
16187
16190
  const pageCount = limit >= 1 ? Math.ceil(total / limit) : 0;
16188
16191
  const currentPage = limit >= 1 ? Math.ceil(offset / limit) : 0;
16189
16192
  const { marginPagesDisplayed, pageRangeDisplayed } = usePaginationDisplayRange(containerRef, pageCount);
@@ -22784,39 +22787,39 @@ var ResponsiveTableContainer = ({ children }) => {
22784
22787
 
22785
22788
  // src/components/Table/Table.tsx
22786
22789
  init_emotion_jsx_shim();
22787
- var React26 = __toESM(require("react"));
22790
+ var React27 = __toESM(require("react"));
22788
22791
  var import_jsx_runtime162 = require("@emotion/react/jsx-runtime");
22789
- var Table = React26.forwardRef(
22792
+ var Table = React27.forwardRef(
22790
22793
  ({ children, cellPadding, ...otherProps }, ref) => {
22791
22794
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
22792
22795
  }
22793
22796
  );
22794
- var TableHead = React26.forwardRef(
22797
+ var TableHead = React27.forwardRef(
22795
22798
  ({ children, ...otherProps }, ref) => {
22796
22799
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
22797
22800
  }
22798
22801
  );
22799
- var TableBody = React26.forwardRef(
22802
+ var TableBody = React27.forwardRef(
22800
22803
  ({ children, ...otherProps }, ref) => {
22801
22804
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tbody", { ref, ...otherProps, children });
22802
22805
  }
22803
22806
  );
22804
- var TableFoot = React26.forwardRef(
22807
+ var TableFoot = React27.forwardRef(
22805
22808
  ({ children, ...otherProps }, ref) => {
22806
22809
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tfoot", { ref, ...otherProps, children });
22807
22810
  }
22808
22811
  );
22809
- var TableRow = React26.forwardRef(
22812
+ var TableRow = React27.forwardRef(
22810
22813
  ({ children, ...otherProps }, ref) => {
22811
22814
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
22812
22815
  }
22813
22816
  );
22814
- var TableCellHead = React26.forwardRef(
22817
+ var TableCellHead = React27.forwardRef(
22815
22818
  ({ children, ...otherProps }, ref) => {
22816
22819
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
22817
22820
  }
22818
22821
  );
22819
- var TableCellData = React26.forwardRef(
22822
+ var TableCellData = React27.forwardRef(
22820
22823
  ({ children, ...otherProps }, ref) => {
22821
22824
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("td", { ref, ...otherProps, children });
22822
22825
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "20.72.3-alpha.40+ffbec41570",
3
+ "version": "20.72.3-alpha.45+2b8b05d58a",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "exports": {
@@ -34,8 +34,8 @@
34
34
  "@storybook/react-vite": "10.4.6",
35
35
  "@types/react": "19.2.17",
36
36
  "@types/react-dom": "19.2.3",
37
- "@uniformdev/canvas": "^20.72.3-alpha.40+ffbec41570",
38
- "@uniformdev/richtext": "^20.72.3-alpha.40+ffbec41570",
37
+ "@uniformdev/canvas": "^20.72.3-alpha.45+2b8b05d58a",
38
+ "@uniformdev/richtext": "^20.72.3-alpha.45+2b8b05d58a",
39
39
  "autoprefixer": "10.5.0",
40
40
  "hygen": "6.2.11",
41
41
  "jsdom": "29.1.1",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "ffbec41570c4266c69674871c97146bf7bf86383"
85
+ "gitHead": "2b8b05d58ab275b4d29a9647feeaad47b0ab5cce"
86
86
  }