@uniformdev/design-system 20.73.0 → 20.74.1

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
@@ -11043,9 +11043,11 @@ var IntegrationModalHeader = ({ icon, name, menu, children }) => {
11043
11043
 
11044
11044
  // src/components/JsonEditor/JsonEditor.tsx
11045
11045
  import MonacoEditor from "@monaco-editor/react";
11046
+ import * as React19 from "react";
11046
11047
  import { jsx as jsx94 } from "@emotion/react/jsx-runtime";
11047
11048
  var minEditorHeightPx = 150;
11048
11049
  var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
11050
+ const modelPath = `${React19.useId()}.json`;
11049
11051
  let effectiveHeight = height;
11050
11052
  if (typeof height === "number" && height < 0) {
11051
11053
  effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
@@ -11058,6 +11060,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
11058
11060
  {
11059
11061
  height: effectiveHeight,
11060
11062
  className: "uniform-json-editor",
11063
+ path: modelPath,
11061
11064
  defaultLanguage: "json",
11062
11065
  defaultValue,
11063
11066
  options: {
@@ -12928,7 +12931,7 @@ var LoadingIndicator = ({ size = "lg", color = "gray", ...props }) => {
12928
12931
 
12929
12932
  // src/components/Modal/Modal.tsx
12930
12933
  import { CgClose as CgClose6 } from "@react-icons/all-files/cg/CgClose";
12931
- import React19, { useCallback as useCallback11, useEffect as useEffect17, useRef as useRef11, useState as useState21 } from "react";
12934
+ import React20, { useCallback as useCallback11, useEffect as useEffect17, useRef as useRef11, useState as useState21 } from "react";
12932
12935
 
12933
12936
  // src/components/Modal/Modal.styles.ts
12934
12937
  import { css as css83 } from "@emotion/react";
@@ -13023,7 +13026,7 @@ var modalDialogInnerStyles = css83`
13023
13026
  import { jsx as jsx109, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
13024
13027
  var defaultModalWidth = "75rem";
13025
13028
  var defaultModalHeight = "51rem";
13026
- var Modal = React19.forwardRef(
13029
+ var Modal = React20.forwardRef(
13027
13030
  ({
13028
13031
  header: header2,
13029
13032
  children,
@@ -14031,7 +14034,7 @@ var ObjectListSubText2 = ({ children, ...props }) => {
14031
14034
  };
14032
14035
 
14033
14036
  // src/components/Pagination/Pagination.tsx
14034
- import * as React20 from "react";
14037
+ import * as React21 from "react";
14035
14038
  import Paginate from "react-paginate";
14036
14039
 
14037
14040
  // src/components/Pagination/Pagination.styles.ts
@@ -14167,7 +14170,7 @@ function Pagination({
14167
14170
  total,
14168
14171
  onPageChange
14169
14172
  }) {
14170
- const containerRef = React20.useRef(null);
14173
+ const containerRef = React21.useRef(null);
14171
14174
  const pageCount = limit >= 1 ? Math.ceil(total / limit) : 0;
14172
14175
  const currentPage = limit >= 1 ? Math.ceil(offset / limit) : 0;
14173
14176
  const { marginPagesDisplayed, pageRangeDisplayed } = usePaginationDisplayRange(containerRef, pageCount);
@@ -14284,7 +14287,7 @@ var LabelLeadingIcon = ({
14284
14287
  };
14285
14288
 
14286
14289
  // src/components/ParameterInputs/ParameterActionButton.tsx
14287
- import React21 from "react";
14290
+ import React22 from "react";
14288
14291
 
14289
14292
  // src/components/ParameterInputs/styles/ParameterActionButton.styles.ts
14290
14293
  import { css as css94 } from "@emotion/react";
@@ -14388,7 +14391,7 @@ var ParameterActionButton = ({
14388
14391
  children
14389
14392
  }
14390
14393
  );
14391
- if (tooltip && (typeof tooltip === "string" || React21.isValidElement(tooltip))) {
14394
+ if (tooltip && (typeof tooltip === "string" || React22.isValidElement(tooltip))) {
14392
14395
  return /* @__PURE__ */ jsx125(Tooltip, { title: tooltip, ...tooltipProps, children: buttonElement });
14393
14396
  }
14394
14397
  return buttonElement;
@@ -20264,7 +20267,7 @@ function StackedModalProvider({ children, totalSteps, initialStep }) {
20264
20267
  }
20265
20268
 
20266
20269
  // src/components/StackedModal/StackedModal.tsx
20267
- import React25 from "react";
20270
+ import React26 from "react";
20268
20271
 
20269
20272
  // src/components/StackedModal/styles/StackedModal.styles.ts
20270
20273
  import { css as css115, keyframes as keyframes7 } from "@emotion/react";
@@ -20446,18 +20449,18 @@ function StackedModalStep({ children, buttonGroup }) {
20446
20449
  // src/components/StackedModal/StackedModal.tsx
20447
20450
  import { jsx as jsx158 } from "@emotion/react/jsx-runtime";
20448
20451
  function filterSteps(children) {
20449
- return React25.Children.toArray(children).filter(
20450
- (child) => React25.isValidElement(child) && child.type === StackedModalStep
20452
+ return React26.Children.toArray(children).filter(
20453
+ (child) => React26.isValidElement(child) && child.type === StackedModalStep
20451
20454
  );
20452
20455
  }
20453
- var StackedModal = React25.forwardRef(
20456
+ var StackedModal = React26.forwardRef(
20454
20457
  ({ children, initialStep = 0, ...rest }, ref) => {
20455
20458
  const steps = filterSteps(children);
20456
20459
  return /* @__PURE__ */ jsx158(StackedModalProvider, { totalSteps: steps.length, initialStep, children: /* @__PURE__ */ jsx158(StackedModalInner, { ref, steps, ...rest }) });
20457
20460
  }
20458
20461
  );
20459
20462
  StackedModal.displayName = "StackedModal";
20460
- var StackedModalInner = React25.forwardRef(
20463
+ var StackedModalInner = React26.forwardRef(
20461
20464
  ({ steps, onRequestClose, modalSize = "lg", width, height, "data-testid": dataTestId }, ref) => {
20462
20465
  return /* @__PURE__ */ jsx158("div", { css: stackedModalRootStyles, children: /* @__PURE__ */ jsx158(
20463
20466
  Modal,
@@ -20761,39 +20764,39 @@ var ResponsiveTableContainer = ({ children }) => {
20761
20764
  };
20762
20765
 
20763
20766
  // src/components/Table/Table.tsx
20764
- import * as React26 from "react";
20767
+ import * as React27 from "react";
20765
20768
  import { jsx as jsx162 } from "@emotion/react/jsx-runtime";
20766
- var Table = React26.forwardRef(
20769
+ var Table = React27.forwardRef(
20767
20770
  ({ children, cellPadding, ...otherProps }, ref) => {
20768
20771
  return /* @__PURE__ */ jsx162("table", { ref, css: table({ cellPadding }), ...otherProps, children });
20769
20772
  }
20770
20773
  );
20771
- var TableHead = React26.forwardRef(
20774
+ var TableHead = React27.forwardRef(
20772
20775
  ({ children, ...otherProps }, ref) => {
20773
20776
  return /* @__PURE__ */ jsx162("thead", { ref, css: tableHead, ...otherProps, children });
20774
20777
  }
20775
20778
  );
20776
- var TableBody = React26.forwardRef(
20779
+ var TableBody = React27.forwardRef(
20777
20780
  ({ children, ...otherProps }, ref) => {
20778
20781
  return /* @__PURE__ */ jsx162("tbody", { ref, ...otherProps, children });
20779
20782
  }
20780
20783
  );
20781
- var TableFoot = React26.forwardRef(
20784
+ var TableFoot = React27.forwardRef(
20782
20785
  ({ children, ...otherProps }, ref) => {
20783
20786
  return /* @__PURE__ */ jsx162("tfoot", { ref, ...otherProps, children });
20784
20787
  }
20785
20788
  );
20786
- var TableRow = React26.forwardRef(
20789
+ var TableRow = React27.forwardRef(
20787
20790
  ({ children, ...otherProps }, ref) => {
20788
20791
  return /* @__PURE__ */ jsx162("tr", { ref, css: tableRow, ...otherProps, children });
20789
20792
  }
20790
20793
  );
20791
- var TableCellHead = React26.forwardRef(
20794
+ var TableCellHead = React27.forwardRef(
20792
20795
  ({ children, ...otherProps }, ref) => {
20793
20796
  return /* @__PURE__ */ jsx162("th", { ref, css: tableCellHead, ...otherProps, children });
20794
20797
  }
20795
20798
  );
20796
- var TableCellData = React26.forwardRef(
20799
+ var TableCellData = React27.forwardRef(
20797
20800
  ({ children, ...otherProps }, ref) => {
20798
20801
  return /* @__PURE__ */ jsx162("td", { ref, ...otherProps, children });
20799
20802
  }
package/dist/index.js CHANGED
@@ -12993,9 +12993,11 @@ var IntegrationModalHeader = ({ icon, name, menu, children }) => {
12993
12993
  // src/components/JsonEditor/JsonEditor.tsx
12994
12994
  init_emotion_jsx_shim();
12995
12995
  var import_react112 = __toESM(require("@monaco-editor/react"));
12996
+ var React19 = __toESM(require("react"));
12996
12997
  var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
12997
12998
  var minEditorHeightPx = 150;
12998
12999
  var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
13000
+ const modelPath = `${React19.useId()}.json`;
12999
13001
  let effectiveHeight = height;
13000
13002
  if (typeof height === "number" && height < 0) {
13001
13003
  effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
@@ -13008,6 +13010,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
13008
13010
  {
13009
13011
  height: effectiveHeight,
13010
13012
  className: "uniform-json-editor",
13013
+ path: modelPath,
13011
13014
  defaultLanguage: "json",
13012
13015
  defaultValue,
13013
13016
  options: {
@@ -16025,7 +16028,7 @@ var ObjectListSubText2 = ({ children, ...props }) => {
16025
16028
 
16026
16029
  // src/components/Pagination/Pagination.tsx
16027
16030
  init_emotion_jsx_shim();
16028
- var React20 = __toESM(require("react"));
16031
+ var React21 = __toESM(require("react"));
16029
16032
  var import_react_paginate = __toESM(require("react-paginate"));
16030
16033
 
16031
16034
  // src/components/Pagination/Pagination.styles.ts
@@ -16163,7 +16166,7 @@ function Pagination({
16163
16166
  total,
16164
16167
  onPageChange
16165
16168
  }) {
16166
- const containerRef = React20.useRef(null);
16169
+ const containerRef = React21.useRef(null);
16167
16170
  const pageCount = limit >= 1 ? Math.ceil(total / limit) : 0;
16168
16171
  const currentPage = limit >= 1 ? Math.ceil(offset / limit) : 0;
16169
16172
  const { marginPagesDisplayed, pageRangeDisplayed } = usePaginationDisplayRange(containerRef, pageCount);
@@ -22764,39 +22767,39 @@ var ResponsiveTableContainer = ({ children }) => {
22764
22767
 
22765
22768
  // src/components/Table/Table.tsx
22766
22769
  init_emotion_jsx_shim();
22767
- var React26 = __toESM(require("react"));
22770
+ var React27 = __toESM(require("react"));
22768
22771
  var import_jsx_runtime162 = require("@emotion/react/jsx-runtime");
22769
- var Table = React26.forwardRef(
22772
+ var Table = React27.forwardRef(
22770
22773
  ({ children, cellPadding, ...otherProps }, ref) => {
22771
22774
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
22772
22775
  }
22773
22776
  );
22774
- var TableHead = React26.forwardRef(
22777
+ var TableHead = React27.forwardRef(
22775
22778
  ({ children, ...otherProps }, ref) => {
22776
22779
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
22777
22780
  }
22778
22781
  );
22779
- var TableBody = React26.forwardRef(
22782
+ var TableBody = React27.forwardRef(
22780
22783
  ({ children, ...otherProps }, ref) => {
22781
22784
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tbody", { ref, ...otherProps, children });
22782
22785
  }
22783
22786
  );
22784
- var TableFoot = React26.forwardRef(
22787
+ var TableFoot = React27.forwardRef(
22785
22788
  ({ children, ...otherProps }, ref) => {
22786
22789
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tfoot", { ref, ...otherProps, children });
22787
22790
  }
22788
22791
  );
22789
- var TableRow = React26.forwardRef(
22792
+ var TableRow = React27.forwardRef(
22790
22793
  ({ children, ...otherProps }, ref) => {
22791
22794
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
22792
22795
  }
22793
22796
  );
22794
- var TableCellHead = React26.forwardRef(
22797
+ var TableCellHead = React27.forwardRef(
22795
22798
  ({ children, ...otherProps }, ref) => {
22796
22799
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
22797
22800
  }
22798
22801
  );
22799
- var TableCellData = React26.forwardRef(
22802
+ var TableCellData = React27.forwardRef(
22800
22803
  ({ children, ...otherProps }, ref) => {
22801
22804
  return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("td", { ref, ...otherProps, children });
22802
22805
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "20.73.0",
3
+ "version": "20.74.1",
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.73.0",
38
- "@uniformdev/richtext": "^20.73.0",
37
+ "@uniformdev/canvas": "^20.74.1",
38
+ "@uniformdev/richtext": "^20.74.1",
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": "23833095a08c168a489a81cab138bd1ad45344cc"
85
+ "gitHead": "92f9b8945a45169eaa57d41dbb7ba8d3a32564cd"
86
86
  }