@uniformdev/design-system 20.8.2-alpha.31 → 20.9.1-alpha.16
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 +52 -40
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +22 -10
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -1563,6 +1563,9 @@ function useShortcut({
|
|
|
1563
1563
|
const handle = useCallback(
|
|
1564
1564
|
(e) => {
|
|
1565
1565
|
if (disabled2) {
|
|
1566
|
+
if (disabled2 === "silent") {
|
|
1567
|
+
return;
|
|
1568
|
+
}
|
|
1566
1569
|
toast.info(`Shortcut ${getFormattedShortcut(shortcut).join("")} is currently disabled`);
|
|
1567
1570
|
return;
|
|
1568
1571
|
}
|
|
@@ -6481,7 +6484,7 @@ var ChipContainer = css45`
|
|
|
6481
6484
|
`;
|
|
6482
6485
|
var ChipText = css45`
|
|
6483
6486
|
align-self: center;
|
|
6484
|
-
line-height: 1;
|
|
6487
|
+
line-height: 1.1;
|
|
6485
6488
|
text-wrap: nowrap;
|
|
6486
6489
|
`;
|
|
6487
6490
|
var ChipIcon = css45`
|
|
@@ -7637,7 +7640,7 @@ var DragHandle = forwardRef15(
|
|
|
7637
7640
|
|
|
7638
7641
|
// src/components/Drawer/Drawer.tsx
|
|
7639
7642
|
import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
|
|
7640
|
-
import React15, { createContext as createContext4, useContext as useContext4, useEffect as useEffect5, useRef as
|
|
7643
|
+
import React15, { createContext as createContext4, useContext as useContext4, useEffect as useEffect5, useRef as useRef4, useState as useState8 } from "react";
|
|
7641
7644
|
import { createPortal } from "react-dom";
|
|
7642
7645
|
|
|
7643
7646
|
// src/components/Drawer/Drawer.styles.ts
|
|
@@ -7748,7 +7751,7 @@ var drawerWrapperOverlayStyles = css54`
|
|
|
7748
7751
|
`;
|
|
7749
7752
|
|
|
7750
7753
|
// src/components/Drawer/DrawerProvider.tsx
|
|
7751
|
-
import { createContext as createContext3, useCallback as useCallback5, useContext as useContext3,
|
|
7754
|
+
import { createContext as createContext3, useCallback as useCallback5, useContext as useContext3, useId, useState as useState7 } from "react";
|
|
7752
7755
|
import { jsx as jsx67 } from "@emotion/react/jsx-runtime";
|
|
7753
7756
|
var DrawerContext = createContext3({
|
|
7754
7757
|
providerId: "",
|
|
@@ -7767,7 +7770,7 @@ function renderDrawerId(drawer) {
|
|
|
7767
7770
|
}
|
|
7768
7771
|
var DrawerProvider = ({ children }) => {
|
|
7769
7772
|
const [drawersRegistry, setDrawersRegistry] = useState7([]);
|
|
7770
|
-
const providerId =
|
|
7773
|
+
const providerId = useId();
|
|
7771
7774
|
const [drawerTakeoverStackId, setDrawerTakeoverStackId] = useState7(void 0);
|
|
7772
7775
|
useShortcut({
|
|
7773
7776
|
handler: () => {
|
|
@@ -7849,7 +7852,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
7849
7852
|
drawersRegistry,
|
|
7850
7853
|
registerDrawer,
|
|
7851
7854
|
unregisterDrawer,
|
|
7852
|
-
providerId
|
|
7855
|
+
providerId,
|
|
7853
7856
|
drawerTakeoverStackId,
|
|
7854
7857
|
registerTakeoverStackId,
|
|
7855
7858
|
unregisterTakeoverStackId
|
|
@@ -7888,7 +7891,7 @@ var Drawer = React15.forwardRef(
|
|
|
7888
7891
|
const { stackId: inheritedStackId } = useCurrentDrawer();
|
|
7889
7892
|
const { drawerTakeoverStackId } = useDrawer();
|
|
7890
7893
|
const drawerRendererProps = { width: drawerProps.width, minWidth, maxWidth, position, leftAligned };
|
|
7891
|
-
const resolvedStickyStackIdRef =
|
|
7894
|
+
const resolvedStickyStackIdRef = useRef4((_a = drawerTakeoverStackId != null ? drawerTakeoverStackId : drawerProps.stackId) != null ? _a : inheritedStackId);
|
|
7892
7895
|
return resolvedStickyStackIdRef.current ? /* @__PURE__ */ jsx68(DrawerInner, { ref, ...drawerProps, stackId: resolvedStickyStackIdRef.current }) : /* @__PURE__ */ jsxs43(DrawerProvider, { children: [
|
|
7893
7896
|
/* @__PURE__ */ jsx68(DrawerInner, { ref, ...drawerProps }),
|
|
7894
7897
|
/* @__PURE__ */ jsx68(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
@@ -7909,7 +7912,7 @@ var DrawerInner = ({
|
|
|
7909
7912
|
testId = "side-dialog"
|
|
7910
7913
|
}) => {
|
|
7911
7914
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
7912
|
-
const closeButtonRef =
|
|
7915
|
+
const closeButtonRef = useRef4(null);
|
|
7913
7916
|
const [rendererElement, setRendererElement] = useState8(null);
|
|
7914
7917
|
useEffect5(() => {
|
|
7915
7918
|
registerDrawer({
|
|
@@ -9136,15 +9139,15 @@ import {
|
|
|
9136
9139
|
verticalListSortingStrategy
|
|
9137
9140
|
} from "@dnd-kit/sortable";
|
|
9138
9141
|
import { CSS } from "@dnd-kit/utilities";
|
|
9139
|
-
import { useCallback as useCallback7, useEffect as useEffect11, useMemo as useMemo5, useRef as
|
|
9142
|
+
import { useCallback as useCallback7, useEffect as useEffect11, useMemo as useMemo5, useRef as useRef6, useState as useState11 } from "react";
|
|
9140
9143
|
|
|
9141
9144
|
// src/utils/useDebouncedCallback.ts
|
|
9142
|
-
import { useEffect as useEffect10, useMemo as useMemo4, useRef as
|
|
9145
|
+
import { useEffect as useEffect10, useMemo as useMemo4, useRef as useRef5 } from "react";
|
|
9143
9146
|
function useDebouncedCallback(callback, deps, delay, maxWait = 0) {
|
|
9144
|
-
const timeout =
|
|
9145
|
-
const waitTimeout =
|
|
9146
|
-
const cb =
|
|
9147
|
-
const lastCall =
|
|
9147
|
+
const timeout = useRef5();
|
|
9148
|
+
const waitTimeout = useRef5();
|
|
9149
|
+
const cb = useRef5(callback);
|
|
9150
|
+
const lastCall = useRef5();
|
|
9148
9151
|
const clear = () => {
|
|
9149
9152
|
if (timeout.current) {
|
|
9150
9153
|
clearTimeout(timeout.current);
|
|
@@ -9226,8 +9229,8 @@ var KeyValueInput = ({
|
|
|
9226
9229
|
onFocusChange
|
|
9227
9230
|
}) => {
|
|
9228
9231
|
const [isDragging, setIsDragging] = useState11(false);
|
|
9229
|
-
const popoverStoresMap =
|
|
9230
|
-
const lastRowFirstInputRef =
|
|
9232
|
+
const popoverStoresMap = useRef6({});
|
|
9233
|
+
const lastRowFirstInputRef = useRef6(null);
|
|
9231
9234
|
const sensors = useSensors(
|
|
9232
9235
|
useSensor(PointerSensor),
|
|
9233
9236
|
useSensor(KeyboardSensor, {
|
|
@@ -10165,7 +10168,7 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
10165
10168
|
// src/components/Modal/Modal.tsx
|
|
10166
10169
|
import { PortalContext } from "@ariakit/react";
|
|
10167
10170
|
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
10168
|
-
import React17, { useEffect as useEffect12, useRef as
|
|
10171
|
+
import React17, { useEffect as useEffect12, useRef as useRef7 } from "react";
|
|
10169
10172
|
|
|
10170
10173
|
// src/components/Modal/Modal.styles.ts
|
|
10171
10174
|
import { css as css75 } from "@emotion/react";
|
|
@@ -10269,8 +10272,8 @@ var Modal = React17.forwardRef(
|
|
|
10269
10272
|
disableBodyScroll = false,
|
|
10270
10273
|
...modalProps
|
|
10271
10274
|
}, ref) => {
|
|
10272
|
-
const mouseDownInsideModal =
|
|
10273
|
-
const dialogRef =
|
|
10275
|
+
const mouseDownInsideModal = useRef7(false);
|
|
10276
|
+
const dialogRef = useRef7(null);
|
|
10274
10277
|
const size = {
|
|
10275
10278
|
sm: modalSizeSmall,
|
|
10276
10279
|
md: modalSizeMedium,
|
|
@@ -10661,8 +10664,8 @@ var ObjectGridItemCardCover = (props) => {
|
|
|
10661
10664
|
) });
|
|
10662
10665
|
}
|
|
10663
10666
|
if ("icon" in props && props.icon) {
|
|
10664
|
-
const { icon, iconColor } = props;
|
|
10665
|
-
return /* @__PURE__ */ jsx101("div", { css: CoverContainer, children: /* @__PURE__ */ jsxs67("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", ...
|
|
10667
|
+
const { icon, iconColor, ...rest } = props;
|
|
10668
|
+
return /* @__PURE__ */ jsx101("div", { css: CoverContainer, children: /* @__PURE__ */ jsxs67("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", ...rest, children: [
|
|
10666
10669
|
/* @__PURE__ */ jsx101(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", css: CoverIconGhost }),
|
|
10667
10670
|
/* @__PURE__ */ jsx101(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", size: 48 })
|
|
10668
10671
|
] }) });
|
|
@@ -10712,7 +10715,7 @@ var ObjectGridItemCoverButton = ({
|
|
|
10712
10715
|
};
|
|
10713
10716
|
|
|
10714
10717
|
// src/components/Objects/ObjectGridItemHeading.tsx
|
|
10715
|
-
import { useEffect as useEffect13, useRef as
|
|
10718
|
+
import { useEffect as useEffect13, useRef as useRef8, useState as useState12 } from "react";
|
|
10716
10719
|
|
|
10717
10720
|
// src/components/Objects/styles/ObjectGridItemHeading.styles.ts
|
|
10718
10721
|
import { css as css79 } from "@emotion/react";
|
|
@@ -10739,7 +10742,7 @@ var ObjectGridItemHeading2 = ({
|
|
|
10739
10742
|
...props
|
|
10740
10743
|
}) => {
|
|
10741
10744
|
const [hasTruncation, setHasTruncation] = useState12(false);
|
|
10742
|
-
const headingRef =
|
|
10745
|
+
const headingRef = useRef8(null);
|
|
10743
10746
|
const onStopPropagation = (e) => {
|
|
10744
10747
|
e.stopPropagation();
|
|
10745
10748
|
};
|
|
@@ -10985,13 +10988,21 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
|
|
|
10985
10988
|
css: [
|
|
10986
10989
|
ObjectListItemContentWrapper,
|
|
10987
10990
|
`${cq(minContainerQueryWidth)} {
|
|
10988
|
-
grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
|
|
10991
|
+
grid-template-columns: ${cover ? "minmax(0, auto)" : ""} minmax(0, 1fr) minmax(0, auto);
|
|
10989
10992
|
}`
|
|
10990
10993
|
],
|
|
10991
10994
|
children: [
|
|
10992
|
-
/* @__PURE__ */ jsx106(HorizontalRhythm, { gap: "sm", align: "center", children: cover }),
|
|
10995
|
+
cover ? /* @__PURE__ */ jsx106(HorizontalRhythm, { gap: "sm", align: "center", children: cover }) : null,
|
|
10993
10996
|
/* @__PURE__ */ jsxs71(VerticalRhythm, { gap: "0", justify: renderAs === "multi" ? "flex-start" : "center", children: [
|
|
10994
|
-
/* @__PURE__ */ jsx106(
|
|
10997
|
+
/* @__PURE__ */ jsx106(
|
|
10998
|
+
HorizontalRhythm,
|
|
10999
|
+
{
|
|
11000
|
+
gap: "xs",
|
|
11001
|
+
align: renderAs === "multi" ? "flex-start" : "center",
|
|
11002
|
+
"data-testid": "title",
|
|
11003
|
+
children: header2
|
|
11004
|
+
}
|
|
11005
|
+
),
|
|
10995
11006
|
renderAs === "multi" ? props.children : null
|
|
10996
11007
|
] }),
|
|
10997
11008
|
/* @__PURE__ */ jsx106(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: rightSlot })
|
|
@@ -12601,7 +12612,7 @@ import {
|
|
|
12601
12612
|
FOCUS_COMMAND,
|
|
12602
12613
|
PASTE_COMMAND
|
|
12603
12614
|
} from "lexical";
|
|
12604
|
-
import { useCallback as useCallback8, useEffect as useEffect16, useRef as
|
|
12615
|
+
import { useCallback as useCallback8, useEffect as useEffect16, useRef as useRef9, useState as useState15 } from "react";
|
|
12605
12616
|
|
|
12606
12617
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
12607
12618
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
@@ -12951,7 +12962,7 @@ function LinkNodePlugin({
|
|
|
12951
12962
|
};
|
|
12952
12963
|
const [editor] = useLexicalComposerContext3();
|
|
12953
12964
|
const [linkPopoverState, setLinkPopoverState] = useState15();
|
|
12954
|
-
const linkPopoverElRef =
|
|
12965
|
+
const linkPopoverElRef = useRef9(null);
|
|
12955
12966
|
const [isEditorFocused, setIsEditorFocused] = useState15(false);
|
|
12956
12967
|
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState15(false);
|
|
12957
12968
|
useEffect16(() => {
|
|
@@ -13202,7 +13213,7 @@ import {
|
|
|
13202
13213
|
OUTDENT_CONTENT_COMMAND,
|
|
13203
13214
|
SELECTION_CHANGE_COMMAND
|
|
13204
13215
|
} from "lexical";
|
|
13205
|
-
import { useEffect as useEffect17, useRef as
|
|
13216
|
+
import { useEffect as useEffect17, useRef as useRef10 } from "react";
|
|
13206
13217
|
function isIndentPermitted(maxDepth) {
|
|
13207
13218
|
const selection = $getSelection2();
|
|
13208
13219
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -13257,7 +13268,7 @@ function $indentOverTab(selection) {
|
|
|
13257
13268
|
}
|
|
13258
13269
|
function ListIndentPlugin({ maxDepth }) {
|
|
13259
13270
|
const [editor] = useLexicalComposerContext4();
|
|
13260
|
-
const isInListItemNode =
|
|
13271
|
+
const isInListItemNode = useRef10(false);
|
|
13261
13272
|
useEffect17(() => {
|
|
13262
13273
|
return editor.registerCommand(
|
|
13263
13274
|
SELECTION_CHANGE_COMMAND,
|
|
@@ -13669,7 +13680,7 @@ import {
|
|
|
13669
13680
|
} from "@lexical/table";
|
|
13670
13681
|
import { calculateZoomLevel } from "@lexical/utils";
|
|
13671
13682
|
import { $getNearestNodeFromDOMNode } from "lexical";
|
|
13672
|
-
import { useCallback as useCallback10, useEffect as useEffect19, useMemo as useMemo6, useRef as
|
|
13683
|
+
import { useCallback as useCallback10, useEffect as useEffect19, useMemo as useMemo6, useRef as useRef11, useState as useState17 } from "react";
|
|
13673
13684
|
import { createPortal as createPortal3 } from "react-dom";
|
|
13674
13685
|
import { Fragment as Fragment16, jsx as jsx125, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
|
|
13675
13686
|
var MIN_ROW_HEIGHT = 33;
|
|
@@ -13696,10 +13707,10 @@ var fixedGetDOMCellFromTarget = (node) => {
|
|
|
13696
13707
|
return null;
|
|
13697
13708
|
};
|
|
13698
13709
|
function TableCellResizer({ editor, positioningAnchorEl }) {
|
|
13699
|
-
const targetRef =
|
|
13700
|
-
const resizerRef =
|
|
13701
|
-
const tableRectRef =
|
|
13702
|
-
const mouseStartPosRef =
|
|
13710
|
+
const targetRef = useRef11(null);
|
|
13711
|
+
const resizerRef = useRef11(null);
|
|
13712
|
+
const tableRectRef = useRef11(null);
|
|
13713
|
+
const mouseStartPosRef = useRef11(null);
|
|
13703
13714
|
const [mouseCurrentPos, updateMouseCurrentPos] = useState17(null);
|
|
13704
13715
|
const [activeCell, updateActiveCell] = useState17(null);
|
|
13705
13716
|
const [isMouseDown, updateIsMouseDown] = useState17(false);
|
|
@@ -15285,7 +15296,7 @@ var ProgressListItem = ({
|
|
|
15285
15296
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15286
15297
|
import { css as css101 } from "@emotion/react";
|
|
15287
15298
|
import { CgCheck as CgCheck5 } from "@react-icons/all-files/cg/CgCheck";
|
|
15288
|
-
import { useCallback as useCallback12, useEffect as useEffect24, useMemo as useMemo9, useRef as
|
|
15299
|
+
import { useCallback as useCallback12, useEffect as useEffect24, useMemo as useMemo9, useRef as useRef12, useState as useState21 } from "react";
|
|
15289
15300
|
|
|
15290
15301
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
15291
15302
|
import { css as css100 } from "@emotion/react";
|
|
@@ -15473,7 +15484,7 @@ var SegmentedControl = ({
|
|
|
15473
15484
|
currentBackgroundColor = "white",
|
|
15474
15485
|
...props
|
|
15475
15486
|
}) => {
|
|
15476
|
-
const wrapperRef =
|
|
15487
|
+
const wrapperRef = useRef12(null);
|
|
15477
15488
|
const [isOverflowStartShadowVisible, setIsOverflowStartShadowVisible] = useState21(false);
|
|
15478
15489
|
const [isOverflowEndShadowVisible, setIsOverflowEndShadowVisible] = useState21(false);
|
|
15479
15490
|
const onOptionChange = useCallback12(
|
|
@@ -15534,6 +15545,7 @@ var SegmentedControl = ({
|
|
|
15534
15545
|
}
|
|
15535
15546
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
15536
15547
|
const isDisabled = disabled2 || option.disabled;
|
|
15548
|
+
const isChecked = option.value === value;
|
|
15537
15549
|
return /* @__PURE__ */ jsx134(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx134(
|
|
15538
15550
|
"div",
|
|
15539
15551
|
{
|
|
@@ -15543,7 +15555,7 @@ var SegmentedControl = ({
|
|
|
15543
15555
|
"label",
|
|
15544
15556
|
{
|
|
15545
15557
|
css: [
|
|
15546
|
-
segmentedControlLabelStyles(
|
|
15558
|
+
segmentedControlLabelStyles(isChecked, isDisabled),
|
|
15547
15559
|
sizeStyles,
|
|
15548
15560
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
15549
15561
|
],
|
|
@@ -15555,7 +15567,7 @@ var SegmentedControl = ({
|
|
|
15555
15567
|
type: "radio",
|
|
15556
15568
|
name,
|
|
15557
15569
|
value: index,
|
|
15558
|
-
checked:
|
|
15570
|
+
checked: isChecked,
|
|
15559
15571
|
onChange: onOptionChange,
|
|
15560
15572
|
disabled: isDisabled
|
|
15561
15573
|
}
|
|
@@ -15626,7 +15638,7 @@ var Skeleton = ({
|
|
|
15626
15638
|
);
|
|
15627
15639
|
|
|
15628
15640
|
// src/components/Spinner/Spinner.tsx
|
|
15629
|
-
import { useEffect as useEffect25, useRef as
|
|
15641
|
+
import { useEffect as useEffect25, useRef as useRef13 } from "react";
|
|
15630
15642
|
|
|
15631
15643
|
// src/components/Spinner/Spinner.styles.ts
|
|
15632
15644
|
import { css as css103 } from "@emotion/react";
|
|
@@ -16066,7 +16078,7 @@ var Spinner = ({
|
|
|
16066
16078
|
label,
|
|
16067
16079
|
isPaused
|
|
16068
16080
|
}) => {
|
|
16069
|
-
const ref =
|
|
16081
|
+
const ref = useRef13(null);
|
|
16070
16082
|
useEffect25(() => {
|
|
16071
16083
|
var _a, _b, _c;
|
|
16072
16084
|
(_c = ref.current) == null ? void 0 : _c.style.setProperty("--pyramid-size", ((_b = (_a = ref.current) == null ? void 0 : _a.clientWidth) != null ? _b : 200) / 6 + "px");
|
package/dist/index.d.mts
CHANGED
|
@@ -384,8 +384,12 @@ type UseShortcutOptions = {
|
|
|
384
384
|
doNotPreventDefault?: boolean;
|
|
385
385
|
/** Whether the shortcut will activate with a form field in focus */
|
|
386
386
|
activeWhenEditing?: boolean;
|
|
387
|
-
/**
|
|
388
|
-
|
|
387
|
+
/**
|
|
388
|
+
* When true or 'silent', the shortcut is disabled. When undefined or false, it is enabled.
|
|
389
|
+
* The result will also reflect this state, which may disable attached menus, buttons, etc
|
|
390
|
+
* 'silent' will not show a toast notification when the shortcut is invoked while disabled.
|
|
391
|
+
*/
|
|
392
|
+
disabled?: boolean | 'silent';
|
|
389
393
|
};
|
|
390
394
|
type ShortcutReference = {
|
|
391
395
|
shortcut: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -384,8 +384,12 @@ type UseShortcutOptions = {
|
|
|
384
384
|
doNotPreventDefault?: boolean;
|
|
385
385
|
/** Whether the shortcut will activate with a form field in focus */
|
|
386
386
|
activeWhenEditing?: boolean;
|
|
387
|
-
/**
|
|
388
|
-
|
|
387
|
+
/**
|
|
388
|
+
* When true or 'silent', the shortcut is disabled. When undefined or false, it is enabled.
|
|
389
|
+
* The result will also reflect this state, which may disable attached menus, buttons, etc
|
|
390
|
+
* 'silent' will not show a toast notification when the shortcut is invoked while disabled.
|
|
391
|
+
*/
|
|
392
|
+
disabled?: boolean | 'silent';
|
|
389
393
|
};
|
|
390
394
|
type ShortcutReference = {
|
|
391
395
|
shortcut: string;
|
package/dist/index.js
CHANGED
|
@@ -3253,6 +3253,9 @@ function useShortcut({
|
|
|
3253
3253
|
const handle = (0, import_react14.useCallback)(
|
|
3254
3254
|
(e) => {
|
|
3255
3255
|
if (disabled2) {
|
|
3256
|
+
if (disabled2 === "silent") {
|
|
3257
|
+
return;
|
|
3258
|
+
}
|
|
3256
3259
|
import_react_toastify.toast.info(`Shortcut ${getFormattedShortcut(shortcut).join("")} is currently disabled`);
|
|
3257
3260
|
return;
|
|
3258
3261
|
}
|
|
@@ -8253,7 +8256,7 @@ var ChipContainer = import_react67.css`
|
|
|
8253
8256
|
`;
|
|
8254
8257
|
var ChipText = import_react67.css`
|
|
8255
8258
|
align-self: center;
|
|
8256
|
-
line-height: 1;
|
|
8259
|
+
line-height: 1.1;
|
|
8257
8260
|
text-wrap: nowrap;
|
|
8258
8261
|
`;
|
|
8259
8262
|
var ChipIcon = import_react67.css`
|
|
@@ -9556,7 +9559,7 @@ function renderDrawerId(drawer) {
|
|
|
9556
9559
|
}
|
|
9557
9560
|
var DrawerProvider = ({ children }) => {
|
|
9558
9561
|
const [drawersRegistry, setDrawersRegistry] = (0, import_react81.useState)([]);
|
|
9559
|
-
const providerId = (0, import_react81.
|
|
9562
|
+
const providerId = (0, import_react81.useId)();
|
|
9560
9563
|
const [drawerTakeoverStackId, setDrawerTakeoverStackId] = (0, import_react81.useState)(void 0);
|
|
9561
9564
|
useShortcut({
|
|
9562
9565
|
handler: () => {
|
|
@@ -9638,7 +9641,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
9638
9641
|
drawersRegistry,
|
|
9639
9642
|
registerDrawer,
|
|
9640
9643
|
unregisterDrawer,
|
|
9641
|
-
providerId
|
|
9644
|
+
providerId,
|
|
9642
9645
|
drawerTakeoverStackId,
|
|
9643
9646
|
registerTakeoverStackId,
|
|
9644
9647
|
unregisterTakeoverStackId
|
|
@@ -12524,8 +12527,8 @@ var ObjectGridItemCardCover = (props) => {
|
|
|
12524
12527
|
) });
|
|
12525
12528
|
}
|
|
12526
12529
|
if ("icon" in props && props.icon) {
|
|
12527
|
-
const { icon, iconColor } = props;
|
|
12528
|
-
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { css: CoverContainer, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", ...
|
|
12530
|
+
const { icon, iconColor, ...rest } = props;
|
|
12531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { css: CoverContainer, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", ...rest, children: [
|
|
12529
12532
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", css: CoverIconGhost }),
|
|
12530
12533
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", size: 48 })
|
|
12531
12534
|
] }) });
|
|
@@ -12860,13 +12863,21 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
|
|
|
12860
12863
|
css: [
|
|
12861
12864
|
ObjectListItemContentWrapper,
|
|
12862
12865
|
`${cq(minContainerQueryWidth)} {
|
|
12863
|
-
grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
|
|
12866
|
+
grid-template-columns: ${cover ? "minmax(0, auto)" : ""} minmax(0, 1fr) minmax(0, auto);
|
|
12864
12867
|
}`
|
|
12865
12868
|
],
|
|
12866
12869
|
children: [
|
|
12867
|
-
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(HorizontalRhythm, { gap: "sm", align: "center", children: cover }),
|
|
12870
|
+
cover ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(HorizontalRhythm, { gap: "sm", align: "center", children: cover }) : null,
|
|
12868
12871
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(VerticalRhythm, { gap: "0", justify: renderAs === "multi" ? "flex-start" : "center", children: [
|
|
12869
|
-
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
12872
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
12873
|
+
HorizontalRhythm,
|
|
12874
|
+
{
|
|
12875
|
+
gap: "xs",
|
|
12876
|
+
align: renderAs === "multi" ? "flex-start" : "center",
|
|
12877
|
+
"data-testid": "title",
|
|
12878
|
+
children: header2
|
|
12879
|
+
}
|
|
12880
|
+
),
|
|
12870
12881
|
renderAs === "multi" ? props.children : null
|
|
12871
12882
|
] }),
|
|
12872
12883
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: rightSlot })
|
|
@@ -17379,6 +17390,7 @@ var SegmentedControl = ({
|
|
|
17379
17390
|
}
|
|
17380
17391
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
17381
17392
|
const isDisabled = disabled2 || option.disabled;
|
|
17393
|
+
const isChecked = option.value === value;
|
|
17382
17394
|
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
17383
17395
|
"div",
|
|
17384
17396
|
{
|
|
@@ -17388,7 +17400,7 @@ var SegmentedControl = ({
|
|
|
17388
17400
|
"label",
|
|
17389
17401
|
{
|
|
17390
17402
|
css: [
|
|
17391
|
-
segmentedControlLabelStyles(
|
|
17403
|
+
segmentedControlLabelStyles(isChecked, isDisabled),
|
|
17392
17404
|
sizeStyles,
|
|
17393
17405
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
17394
17406
|
],
|
|
@@ -17400,7 +17412,7 @@ var SegmentedControl = ({
|
|
|
17400
17412
|
type: "radio",
|
|
17401
17413
|
name,
|
|
17402
17414
|
value: index,
|
|
17403
|
-
checked:
|
|
17415
|
+
checked: isChecked,
|
|
17404
17416
|
onChange: onOptionChange,
|
|
17405
17417
|
disabled: isDisabled
|
|
17406
17418
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.9.1-alpha.16+5d93781920",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@storybook/theming": "^8.3.3",
|
|
27
27
|
"@types/react": "18.3.11",
|
|
28
28
|
"@types/react-dom": "18.3.1",
|
|
29
|
-
"@uniformdev/canvas": "^20.
|
|
30
|
-
"@uniformdev/richtext": "^20.
|
|
29
|
+
"@uniformdev/canvas": "^20.9.1-alpha.16+5d93781920",
|
|
30
|
+
"@uniformdev/richtext": "^20.9.1-alpha.16+5d93781920",
|
|
31
31
|
"autoprefixer": "10.4.16",
|
|
32
32
|
"hygen": "6.2.11",
|
|
33
33
|
"postcss": "8.4.47",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@lexical/table": "0.25.0",
|
|
56
56
|
"@lexical/utils": "0.25.0",
|
|
57
57
|
"@monaco-editor/react": "4.6.0",
|
|
58
|
-
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.
|
|
58
|
+
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
|
|
59
59
|
"fast-equals": "^5.0.1",
|
|
60
60
|
"lexical": "0.25.0",
|
|
61
61
|
"monaco-editor": "0.50.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"zod-to-json-schema": "3.21.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"react": ">=
|
|
72
|
-
"react-dom": ">=
|
|
71
|
+
"react": ">=18",
|
|
72
|
+
"react-dom": ">=18"
|
|
73
73
|
},
|
|
74
74
|
"files": [
|
|
75
75
|
"/dist"
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5d937819205e0fe171a5b51f2e204cddc910cbf3"
|
|
81
81
|
}
|