@uniformdev/design-system 20.73.1-alpha.13 → 20.74.2
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 +28 -24
- package/dist/index.js +19 -15
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -3034,13 +3034,13 @@ var ToastEntry = ({ toast: entry }) => {
|
|
|
3034
3034
|
const duration = (_a = entry.timeout) != null ? _a : defaultTimeoutMs;
|
|
3035
3035
|
const showCountdown = duration > 0 && entry.type !== "loading" && (data == null ? void 0 : data.kind) !== "progress";
|
|
3036
3036
|
if ((data == null ? void 0 : data.kind) === "progress") {
|
|
3037
|
-
return /* @__PURE__ */ jsxs6(BaseToast.Root, { toast: entry, css: toastRootStyles, children: [
|
|
3037
|
+
return /* @__PURE__ */ jsxs6(BaseToast.Root, { toast: entry, css: toastRootStyles, "data-testid": "toast", children: [
|
|
3038
3038
|
/* @__PURE__ */ jsx14("div", { css: toastBodyStyles, "data-testid": "toast-body", children: /* @__PURE__ */ jsx14(BaseToast.Description, { css: toastDescriptionStyles, children: data.label }) }),
|
|
3039
3039
|
/* @__PURE__ */ jsx14(Progress.Root, { value: Math.max(0, Math.min(1, data.progress)) * 100, css: toastProgressRootStyles, children: /* @__PURE__ */ jsx14(Progress.Track, { css: toastProgressTrackStyles, children: /* @__PURE__ */ jsx14(Progress.Indicator, { css: toastProgressIndicatorStyles }) }) })
|
|
3040
3040
|
] });
|
|
3041
3041
|
}
|
|
3042
3042
|
if ((data == null ? void 0 : data.kind) === "undoable") {
|
|
3043
|
-
return /* @__PURE__ */ jsxs6(BaseToast.Root, { toast: entry, css: toastRootStyles, children: [
|
|
3043
|
+
return /* @__PURE__ */ jsxs6(BaseToast.Root, { toast: entry, css: toastRootStyles, "data-testid": "toast", children: [
|
|
3044
3044
|
/* @__PURE__ */ jsx14(ToastTypeIcon, { type: entry.type }),
|
|
3045
3045
|
/* @__PURE__ */ jsxs6("div", { css: toastBodyStyles, "data-testid": "toast-body", children: [
|
|
3046
3046
|
/* @__PURE__ */ jsx14(BaseToast.Description, { css: toastDescriptionStyles, children: data.description }),
|
|
@@ -3049,6 +3049,7 @@ var ToastEntry = ({ toast: entry }) => {
|
|
|
3049
3049
|
{
|
|
3050
3050
|
type: "button",
|
|
3051
3051
|
css: toastUndoButtonStyles,
|
|
3052
|
+
"data-testid": "toast-undo-button",
|
|
3052
3053
|
onClick: () => {
|
|
3053
3054
|
data.onUndo();
|
|
3054
3055
|
toastManager.close(entry.id);
|
|
@@ -3057,14 +3058,14 @@ var ToastEntry = ({ toast: entry }) => {
|
|
|
3057
3058
|
}
|
|
3058
3059
|
)
|
|
3059
3060
|
] }),
|
|
3060
|
-
/* @__PURE__ */ jsx14(BaseToast.Close, { css: toastCloseButtonStyles, "aria-label": "Close", children: /* @__PURE__ */ jsx14(Icon, { icon: CgClose, size: "1rem", iconColor: "currentColor" }) }),
|
|
3061
|
+
/* @__PURE__ */ jsx14(BaseToast.Close, { css: toastCloseButtonStyles, "aria-label": "Close", "data-testid": "toast-close-button", children: /* @__PURE__ */ jsx14(Icon, { icon: CgClose, size: "1rem", iconColor: "currentColor" }) }),
|
|
3061
3062
|
showCountdown ? /* @__PURE__ */ jsx14(ToastCountdownBar, { duration }) : null
|
|
3062
3063
|
] });
|
|
3063
3064
|
}
|
|
3064
|
-
return /* @__PURE__ */ jsxs6(BaseToast.Root, { toast: entry, css: toastRootStyles, children: [
|
|
3065
|
+
return /* @__PURE__ */ jsxs6(BaseToast.Root, { toast: entry, css: toastRootStyles, "data-testid": "toast", children: [
|
|
3065
3066
|
/* @__PURE__ */ jsx14(ToastTypeIcon, { type: entry.type }),
|
|
3066
3067
|
/* @__PURE__ */ jsx14("div", { css: toastBodyStyles, "data-testid": "toast-body", children: /* @__PURE__ */ jsx14(BaseToast.Description, { css: toastDescriptionStyles, children: entry.description }) }),
|
|
3067
|
-
/* @__PURE__ */ jsx14(BaseToast.Close, { css: toastCloseButtonStyles, "aria-label": "Close", children: /* @__PURE__ */ jsx14(Icon, { icon: CgClose, size: "1rem", iconColor: "currentColor" }) }),
|
|
3068
|
+
/* @__PURE__ */ jsx14(BaseToast.Close, { css: toastCloseButtonStyles, "aria-label": "Close", "data-testid": "toast-close-button", children: /* @__PURE__ */ jsx14(Icon, { icon: CgClose, size: "1rem", iconColor: "currentColor" }) }),
|
|
3068
3069
|
showCountdown ? /* @__PURE__ */ jsx14(ToastCountdownBar, { duration }) : null
|
|
3069
3070
|
] });
|
|
3070
3071
|
};
|
|
@@ -11045,9 +11046,11 @@ var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
|
11045
11046
|
|
|
11046
11047
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
11047
11048
|
import MonacoEditor from "@monaco-editor/react";
|
|
11049
|
+
import * as React19 from "react";
|
|
11048
11050
|
import { jsx as jsx94 } from "@emotion/react/jsx-runtime";
|
|
11049
11051
|
var minEditorHeightPx = 150;
|
|
11050
11052
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
11053
|
+
const modelPath = `${React19.useId()}.json`;
|
|
11051
11054
|
let effectiveHeight = height;
|
|
11052
11055
|
if (typeof height === "number" && height < 0) {
|
|
11053
11056
|
effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
|
|
@@ -11060,6 +11063,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
11060
11063
|
{
|
|
11061
11064
|
height: effectiveHeight,
|
|
11062
11065
|
className: "uniform-json-editor",
|
|
11066
|
+
path: modelPath,
|
|
11063
11067
|
defaultLanguage: "json",
|
|
11064
11068
|
defaultValue,
|
|
11065
11069
|
options: {
|
|
@@ -12930,7 +12934,7 @@ var LoadingIndicator = ({ size = "lg", color = "gray", ...props }) => {
|
|
|
12930
12934
|
|
|
12931
12935
|
// src/components/Modal/Modal.tsx
|
|
12932
12936
|
import { CgClose as CgClose6 } from "@react-icons/all-files/cg/CgClose";
|
|
12933
|
-
import
|
|
12937
|
+
import React20, { useCallback as useCallback11, useEffect as useEffect17, useRef as useRef11, useState as useState21 } from "react";
|
|
12934
12938
|
|
|
12935
12939
|
// src/components/Modal/Modal.styles.ts
|
|
12936
12940
|
import { css as css83 } from "@emotion/react";
|
|
@@ -13025,7 +13029,7 @@ var modalDialogInnerStyles = css83`
|
|
|
13025
13029
|
import { jsx as jsx109, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
13026
13030
|
var defaultModalWidth = "75rem";
|
|
13027
13031
|
var defaultModalHeight = "51rem";
|
|
13028
|
-
var Modal =
|
|
13032
|
+
var Modal = React20.forwardRef(
|
|
13029
13033
|
({
|
|
13030
13034
|
header: header2,
|
|
13031
13035
|
children,
|
|
@@ -14033,7 +14037,7 @@ var ObjectListSubText2 = ({ children, ...props }) => {
|
|
|
14033
14037
|
};
|
|
14034
14038
|
|
|
14035
14039
|
// src/components/Pagination/Pagination.tsx
|
|
14036
|
-
import * as
|
|
14040
|
+
import * as React21 from "react";
|
|
14037
14041
|
import Paginate from "react-paginate";
|
|
14038
14042
|
|
|
14039
14043
|
// src/components/Pagination/Pagination.styles.ts
|
|
@@ -14169,7 +14173,7 @@ function Pagination({
|
|
|
14169
14173
|
total,
|
|
14170
14174
|
onPageChange
|
|
14171
14175
|
}) {
|
|
14172
|
-
const containerRef =
|
|
14176
|
+
const containerRef = React21.useRef(null);
|
|
14173
14177
|
const pageCount = limit >= 1 ? Math.ceil(total / limit) : 0;
|
|
14174
14178
|
const currentPage = limit >= 1 ? Math.ceil(offset / limit) : 0;
|
|
14175
14179
|
const { marginPagesDisplayed, pageRangeDisplayed } = usePaginationDisplayRange(containerRef, pageCount);
|
|
@@ -14286,7 +14290,7 @@ var LabelLeadingIcon = ({
|
|
|
14286
14290
|
};
|
|
14287
14291
|
|
|
14288
14292
|
// src/components/ParameterInputs/ParameterActionButton.tsx
|
|
14289
|
-
import
|
|
14293
|
+
import React22 from "react";
|
|
14290
14294
|
|
|
14291
14295
|
// src/components/ParameterInputs/styles/ParameterActionButton.styles.ts
|
|
14292
14296
|
import { css as css94 } from "@emotion/react";
|
|
@@ -14390,7 +14394,7 @@ var ParameterActionButton = ({
|
|
|
14390
14394
|
children
|
|
14391
14395
|
}
|
|
14392
14396
|
);
|
|
14393
|
-
if (tooltip && (typeof tooltip === "string" ||
|
|
14397
|
+
if (tooltip && (typeof tooltip === "string" || React22.isValidElement(tooltip))) {
|
|
14394
14398
|
return /* @__PURE__ */ jsx125(Tooltip, { title: tooltip, ...tooltipProps, children: buttonElement });
|
|
14395
14399
|
}
|
|
14396
14400
|
return buttonElement;
|
|
@@ -20266,7 +20270,7 @@ function StackedModalProvider({ children, totalSteps, initialStep }) {
|
|
|
20266
20270
|
}
|
|
20267
20271
|
|
|
20268
20272
|
// src/components/StackedModal/StackedModal.tsx
|
|
20269
|
-
import
|
|
20273
|
+
import React26 from "react";
|
|
20270
20274
|
|
|
20271
20275
|
// src/components/StackedModal/styles/StackedModal.styles.ts
|
|
20272
20276
|
import { css as css115, keyframes as keyframes7 } from "@emotion/react";
|
|
@@ -20448,18 +20452,18 @@ function StackedModalStep({ children, buttonGroup }) {
|
|
|
20448
20452
|
// src/components/StackedModal/StackedModal.tsx
|
|
20449
20453
|
import { jsx as jsx158 } from "@emotion/react/jsx-runtime";
|
|
20450
20454
|
function filterSteps(children) {
|
|
20451
|
-
return
|
|
20452
|
-
(child) =>
|
|
20455
|
+
return React26.Children.toArray(children).filter(
|
|
20456
|
+
(child) => React26.isValidElement(child) && child.type === StackedModalStep
|
|
20453
20457
|
);
|
|
20454
20458
|
}
|
|
20455
|
-
var StackedModal =
|
|
20459
|
+
var StackedModal = React26.forwardRef(
|
|
20456
20460
|
({ children, initialStep = 0, ...rest }, ref) => {
|
|
20457
20461
|
const steps = filterSteps(children);
|
|
20458
20462
|
return /* @__PURE__ */ jsx158(StackedModalProvider, { totalSteps: steps.length, initialStep, children: /* @__PURE__ */ jsx158(StackedModalInner, { ref, steps, ...rest }) });
|
|
20459
20463
|
}
|
|
20460
20464
|
);
|
|
20461
20465
|
StackedModal.displayName = "StackedModal";
|
|
20462
|
-
var StackedModalInner =
|
|
20466
|
+
var StackedModalInner = React26.forwardRef(
|
|
20463
20467
|
({ steps, onRequestClose, modalSize = "lg", width, height, "data-testid": dataTestId }, ref) => {
|
|
20464
20468
|
return /* @__PURE__ */ jsx158("div", { css: stackedModalRootStyles, children: /* @__PURE__ */ jsx158(
|
|
20465
20469
|
Modal,
|
|
@@ -20763,39 +20767,39 @@ var ResponsiveTableContainer = ({ children }) => {
|
|
|
20763
20767
|
};
|
|
20764
20768
|
|
|
20765
20769
|
// src/components/Table/Table.tsx
|
|
20766
|
-
import * as
|
|
20770
|
+
import * as React27 from "react";
|
|
20767
20771
|
import { jsx as jsx162 } from "@emotion/react/jsx-runtime";
|
|
20768
|
-
var Table =
|
|
20772
|
+
var Table = React27.forwardRef(
|
|
20769
20773
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
20770
20774
|
return /* @__PURE__ */ jsx162("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
20771
20775
|
}
|
|
20772
20776
|
);
|
|
20773
|
-
var TableHead =
|
|
20777
|
+
var TableHead = React27.forwardRef(
|
|
20774
20778
|
({ children, ...otherProps }, ref) => {
|
|
20775
20779
|
return /* @__PURE__ */ jsx162("thead", { ref, css: tableHead, ...otherProps, children });
|
|
20776
20780
|
}
|
|
20777
20781
|
);
|
|
20778
|
-
var TableBody =
|
|
20782
|
+
var TableBody = React27.forwardRef(
|
|
20779
20783
|
({ children, ...otherProps }, ref) => {
|
|
20780
20784
|
return /* @__PURE__ */ jsx162("tbody", { ref, ...otherProps, children });
|
|
20781
20785
|
}
|
|
20782
20786
|
);
|
|
20783
|
-
var TableFoot =
|
|
20787
|
+
var TableFoot = React27.forwardRef(
|
|
20784
20788
|
({ children, ...otherProps }, ref) => {
|
|
20785
20789
|
return /* @__PURE__ */ jsx162("tfoot", { ref, ...otherProps, children });
|
|
20786
20790
|
}
|
|
20787
20791
|
);
|
|
20788
|
-
var TableRow =
|
|
20792
|
+
var TableRow = React27.forwardRef(
|
|
20789
20793
|
({ children, ...otherProps }, ref) => {
|
|
20790
20794
|
return /* @__PURE__ */ jsx162("tr", { ref, css: tableRow, ...otherProps, children });
|
|
20791
20795
|
}
|
|
20792
20796
|
);
|
|
20793
|
-
var TableCellHead =
|
|
20797
|
+
var TableCellHead = React27.forwardRef(
|
|
20794
20798
|
({ children, ...otherProps }, ref) => {
|
|
20795
20799
|
return /* @__PURE__ */ jsx162("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
20796
20800
|
}
|
|
20797
20801
|
);
|
|
20798
|
-
var TableCellData =
|
|
20802
|
+
var TableCellData = React27.forwardRef(
|
|
20799
20803
|
({ children, ...otherProps }, ref) => {
|
|
20800
20804
|
return /* @__PURE__ */ jsx162("td", { ref, ...otherProps, children });
|
|
20801
20805
|
}
|
package/dist/index.js
CHANGED
|
@@ -4795,13 +4795,13 @@ var ToastEntry = ({ toast: entry }) => {
|
|
|
4795
4795
|
const duration = (_a = entry.timeout) != null ? _a : defaultTimeoutMs;
|
|
4796
4796
|
const showCountdown = duration > 0 && entry.type !== "loading" && (data == null ? void 0 : data.kind) !== "progress";
|
|
4797
4797
|
if ((data == null ? void 0 : data.kind) === "progress") {
|
|
4798
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_toast.Toast.Root, { toast: entry, css: toastRootStyles, children: [
|
|
4798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_toast.Toast.Root, { toast: entry, css: toastRootStyles, "data-testid": "toast", children: [
|
|
4799
4799
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { css: toastBodyStyles, "data-testid": "toast-body", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_toast.Toast.Description, { css: toastDescriptionStyles, children: data.label }) }),
|
|
4800
4800
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_progress.Progress.Root, { value: Math.max(0, Math.min(1, data.progress)) * 100, css: toastProgressRootStyles, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_progress.Progress.Track, { css: toastProgressTrackStyles, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_progress.Progress.Indicator, { css: toastProgressIndicatorStyles }) }) })
|
|
4801
4801
|
] });
|
|
4802
4802
|
}
|
|
4803
4803
|
if ((data == null ? void 0 : data.kind) === "undoable") {
|
|
4804
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_toast.Toast.Root, { toast: entry, css: toastRootStyles, children: [
|
|
4804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_toast.Toast.Root, { toast: entry, css: toastRootStyles, "data-testid": "toast", children: [
|
|
4805
4805
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ToastTypeIcon, { type: entry.type }),
|
|
4806
4806
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { css: toastBodyStyles, "data-testid": "toast-body", children: [
|
|
4807
4807
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_toast.Toast.Description, { css: toastDescriptionStyles, children: data.description }),
|
|
@@ -4810,6 +4810,7 @@ var ToastEntry = ({ toast: entry }) => {
|
|
|
4810
4810
|
{
|
|
4811
4811
|
type: "button",
|
|
4812
4812
|
css: toastUndoButtonStyles,
|
|
4813
|
+
"data-testid": "toast-undo-button",
|
|
4813
4814
|
onClick: () => {
|
|
4814
4815
|
data.onUndo();
|
|
4815
4816
|
toastManager.close(entry.id);
|
|
@@ -4818,14 +4819,14 @@ var ToastEntry = ({ toast: entry }) => {
|
|
|
4818
4819
|
}
|
|
4819
4820
|
)
|
|
4820
4821
|
] }),
|
|
4821
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_toast.Toast.Close, { css: toastCloseButtonStyles, "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { icon: import_CgClose2.CgClose, size: "1rem", iconColor: "currentColor" }) }),
|
|
4822
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_toast.Toast.Close, { css: toastCloseButtonStyles, "aria-label": "Close", "data-testid": "toast-close-button", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { icon: import_CgClose2.CgClose, size: "1rem", iconColor: "currentColor" }) }),
|
|
4822
4823
|
showCountdown ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ToastCountdownBar, { duration }) : null
|
|
4823
4824
|
] });
|
|
4824
4825
|
}
|
|
4825
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_toast.Toast.Root, { toast: entry, css: toastRootStyles, children: [
|
|
4826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_toast.Toast.Root, { toast: entry, css: toastRootStyles, "data-testid": "toast", children: [
|
|
4826
4827
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ToastTypeIcon, { type: entry.type }),
|
|
4827
4828
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { css: toastBodyStyles, "data-testid": "toast-body", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_toast.Toast.Description, { css: toastDescriptionStyles, children: entry.description }) }),
|
|
4828
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_toast.Toast.Close, { css: toastCloseButtonStyles, "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { icon: import_CgClose2.CgClose, size: "1rem", iconColor: "currentColor" }) }),
|
|
4829
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_toast.Toast.Close, { css: toastCloseButtonStyles, "aria-label": "Close", "data-testid": "toast-close-button", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { icon: import_CgClose2.CgClose, size: "1rem", iconColor: "currentColor" }) }),
|
|
4829
4830
|
showCountdown ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ToastCountdownBar, { duration }) : null
|
|
4830
4831
|
] });
|
|
4831
4832
|
};
|
|
@@ -12995,9 +12996,11 @@ var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
|
12995
12996
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
12996
12997
|
init_emotion_jsx_shim();
|
|
12997
12998
|
var import_react112 = __toESM(require("@monaco-editor/react"));
|
|
12999
|
+
var React19 = __toESM(require("react"));
|
|
12998
13000
|
var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
|
|
12999
13001
|
var minEditorHeightPx = 150;
|
|
13000
13002
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
13003
|
+
const modelPath = `${React19.useId()}.json`;
|
|
13001
13004
|
let effectiveHeight = height;
|
|
13002
13005
|
if (typeof height === "number" && height < 0) {
|
|
13003
13006
|
effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
|
|
@@ -13010,6 +13013,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
13010
13013
|
{
|
|
13011
13014
|
height: effectiveHeight,
|
|
13012
13015
|
className: "uniform-json-editor",
|
|
13016
|
+
path: modelPath,
|
|
13013
13017
|
defaultLanguage: "json",
|
|
13014
13018
|
defaultValue,
|
|
13015
13019
|
options: {
|
|
@@ -16027,7 +16031,7 @@ var ObjectListSubText2 = ({ children, ...props }) => {
|
|
|
16027
16031
|
|
|
16028
16032
|
// src/components/Pagination/Pagination.tsx
|
|
16029
16033
|
init_emotion_jsx_shim();
|
|
16030
|
-
var
|
|
16034
|
+
var React21 = __toESM(require("react"));
|
|
16031
16035
|
var import_react_paginate = __toESM(require("react-paginate"));
|
|
16032
16036
|
|
|
16033
16037
|
// src/components/Pagination/Pagination.styles.ts
|
|
@@ -16165,7 +16169,7 @@ function Pagination({
|
|
|
16165
16169
|
total,
|
|
16166
16170
|
onPageChange
|
|
16167
16171
|
}) {
|
|
16168
|
-
const containerRef =
|
|
16172
|
+
const containerRef = React21.useRef(null);
|
|
16169
16173
|
const pageCount = limit >= 1 ? Math.ceil(total / limit) : 0;
|
|
16170
16174
|
const currentPage = limit >= 1 ? Math.ceil(offset / limit) : 0;
|
|
16171
16175
|
const { marginPagesDisplayed, pageRangeDisplayed } = usePaginationDisplayRange(containerRef, pageCount);
|
|
@@ -22766,39 +22770,39 @@ var ResponsiveTableContainer = ({ children }) => {
|
|
|
22766
22770
|
|
|
22767
22771
|
// src/components/Table/Table.tsx
|
|
22768
22772
|
init_emotion_jsx_shim();
|
|
22769
|
-
var
|
|
22773
|
+
var React27 = __toESM(require("react"));
|
|
22770
22774
|
var import_jsx_runtime162 = require("@emotion/react/jsx-runtime");
|
|
22771
|
-
var Table =
|
|
22775
|
+
var Table = React27.forwardRef(
|
|
22772
22776
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
22773
22777
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
22774
22778
|
}
|
|
22775
22779
|
);
|
|
22776
|
-
var TableHead =
|
|
22780
|
+
var TableHead = React27.forwardRef(
|
|
22777
22781
|
({ children, ...otherProps }, ref) => {
|
|
22778
22782
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
|
|
22779
22783
|
}
|
|
22780
22784
|
);
|
|
22781
|
-
var TableBody =
|
|
22785
|
+
var TableBody = React27.forwardRef(
|
|
22782
22786
|
({ children, ...otherProps }, ref) => {
|
|
22783
22787
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tbody", { ref, ...otherProps, children });
|
|
22784
22788
|
}
|
|
22785
22789
|
);
|
|
22786
|
-
var TableFoot =
|
|
22790
|
+
var TableFoot = React27.forwardRef(
|
|
22787
22791
|
({ children, ...otherProps }, ref) => {
|
|
22788
22792
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tfoot", { ref, ...otherProps, children });
|
|
22789
22793
|
}
|
|
22790
22794
|
);
|
|
22791
|
-
var TableRow =
|
|
22795
|
+
var TableRow = React27.forwardRef(
|
|
22792
22796
|
({ children, ...otherProps }, ref) => {
|
|
22793
22797
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
|
|
22794
22798
|
}
|
|
22795
22799
|
);
|
|
22796
|
-
var TableCellHead =
|
|
22800
|
+
var TableCellHead = React27.forwardRef(
|
|
22797
22801
|
({ children, ...otherProps }, ref) => {
|
|
22798
22802
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
22799
22803
|
}
|
|
22800
22804
|
);
|
|
22801
|
-
var TableCellData =
|
|
22805
|
+
var TableCellData = React27.forwardRef(
|
|
22802
22806
|
({ children, ...otherProps }, ref) => {
|
|
22803
22807
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("td", { ref, ...otherProps, children });
|
|
22804
22808
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.74.2",
|
|
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.
|
|
38
|
-
"@uniformdev/richtext": "^20.
|
|
37
|
+
"@uniformdev/canvas": "^20.74.2",
|
|
38
|
+
"@uniformdev/richtext": "^20.74.2",
|
|
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": "
|
|
85
|
+
"gitHead": "2008e13563b56b6774555e45125f09f1abfd7e04"
|
|
86
86
|
}
|