@uniformdev/design-system 20.7.1-alpha.26 → 20.7.1-alpha.32

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
@@ -3398,6 +3398,24 @@ var uniformStatusPublishedIcon = GenIcon2({
3398
3398
  }
3399
3399
  ]
3400
3400
  });
3401
+ var uniformUsageStatusIcon = GenIcon2({
3402
+ tag: "svg",
3403
+ attr: {
3404
+ role: "img",
3405
+ viewBox: "0 0 12 12",
3406
+ fill: "none"
3407
+ },
3408
+ child: [
3409
+ {
3410
+ tag: "path",
3411
+ attr: {
3412
+ fill: "currentColor",
3413
+ d: "M9.37501 7.12499C9.04355 7.12482 8.72146 7.23498 8.45954 7.43812L7.37626 6.59437C7.45804 6.40689 7.50017 6.20453 7.50001 5.99999C7.50001 5.96531 7.50001 5.93062 7.49626 5.8964L8.11641 5.68968C8.31261 5.99228 8.61126 6.21406 8.95766 6.3144C9.30406 6.41474 9.67501 6.38692 10.0026 6.23604C10.3301 6.08516 10.5924 5.82131 10.7412 5.49284C10.8901 5.16436 10.9157 4.79324 10.8132 4.44747C10.7107 4.10169 10.4871 3.8044 10.1833 3.61006C9.87954 3.41572 9.5159 3.33733 9.15902 3.38926C8.80214 3.44119 8.47592 3.61996 8.2401 3.89281C8.00429 4.16567 7.87468 4.51436 7.87501 4.87499C7.87501 4.90968 7.87501 4.94437 7.87876 4.97859L7.2586 5.18531C7.12265 4.97514 6.93627 4.80233 6.71644 4.68263C6.49661 4.56293 6.25031 4.50014 6.00001 4.49999C5.91724 4.50017 5.83462 4.50706 5.75297 4.52062L5.43235 3.79687C5.7092 3.57566 5.8988 3.26358 5.96753 2.91594C6.03626 2.5683 5.9797 2.20755 5.80786 1.89763C5.63602 1.58771 5.36 1.34863 5.02873 1.22278C4.69746 1.09693 4.33233 1.09243 3.99805 1.21007C3.66378 1.32771 3.38195 1.5599 3.20251 1.86549C3.02308 2.17108 2.95763 2.53032 3.01777 2.87956C3.07791 3.22879 3.25975 3.54545 3.53106 3.77342C3.80237 4.00139 4.14563 4.12594 4.50001 4.12499C4.58277 4.12482 4.66539 4.11792 4.74704 4.10437L5.06766 4.82624C4.79577 5.04144 4.60706 5.34439 4.53378 5.68331C4.46051 6.02223 4.50722 6.37608 4.66594 6.68437L3.46079 7.75499C3.1575 7.55053 2.79005 7.4637 2.42732 7.51078C2.06459 7.55785 1.73148 7.7356 1.49043 8.01071C1.24938 8.28581 1.11693 8.63939 1.11793 9.00516C1.11892 9.37093 1.25327 9.72379 1.49581 9.99758C1.73835 10.2714 2.07242 10.4473 2.4354 10.4924C2.79838 10.5375 3.16535 10.4487 3.46753 10.2426C3.7697 10.0365 3.98634 9.72728 4.07683 9.37288C4.16732 9.01847 4.12545 8.64323 3.95907 8.31749L5.16422 7.24687C5.42516 7.42256 5.73485 7.51152 6.04925 7.50108C6.36365 7.49064 6.66676 7.38135 6.91547 7.18874L7.99876 8.03249C7.91723 8.21939 7.8751 8.42109 7.87501 8.62499C7.87501 8.92167 7.96298 9.21168 8.1278 9.45835C8.29262 9.70502 8.52689 9.89728 8.80098 10.0108C9.07507 10.1243 9.37667 10.154 9.66764 10.0962C9.95861 10.0383 10.2259 9.89543 10.4357 9.68565C10.6454 9.47588 10.7883 9.2086 10.8462 8.91763C10.9041 8.62666 10.8744 8.32506 10.7608 8.05097C10.6473 7.77688 10.455 7.54261 10.2084 7.37779C9.96169 7.21297 9.67168 7.12499 9.37501 7.12499ZM9.37501 4.12499C9.52334 4.12499 9.66835 4.16898 9.79168 4.25139C9.91502 4.3338 10.0112 4.45094 10.0679 4.58798C10.1247 4.72503 10.1395 4.87583 10.1106 5.02131C10.0817 5.1668 10.0102 5.30044 9.90534 5.40532C9.80045 5.51021 9.66681 5.58164 9.52132 5.61058C9.37584 5.63952 9.22504 5.62467 9.08799 5.5679C8.95095 5.51114 8.83382 5.41501 8.7514 5.29167C8.66899 5.16833 8.62501 5.02333 8.62501 4.87499C8.62501 4.67608 8.70402 4.48532 8.84468 4.34466C8.98533 4.20401 9.17609 4.12499 9.37501 4.12499ZM3.75001 2.62499C3.75001 2.47666 3.79399 2.33165 3.8764 2.20832C3.95881 2.08498 4.07595 1.98885 4.21299 1.93208C4.35004 1.87532 4.50084 1.86047 4.64632 1.88941C4.79181 1.91834 4.92545 1.98978 5.03034 2.09466C5.13522 2.19955 5.20666 2.33319 5.23559 2.47868C5.26453 2.62416 5.24968 2.77496 5.19292 2.91201C5.13615 3.04905 5.04002 3.16619 4.91668 3.2486C4.79335 3.33101 4.64834 3.37499 4.50001 3.37499C4.30109 3.37499 4.11033 3.29598 3.96968 3.15532C3.82902 3.01467 3.75001 2.82391 3.75001 2.62499ZM2.62501 9.74999C2.47667 9.74999 2.33167 9.70601 2.20833 9.6236C2.08499 9.54119 1.98886 9.42405 1.9321 9.28701C1.87533 9.14996 1.86048 8.99916 1.88942 8.85368C1.91836 8.70819 1.98979 8.57455 2.09468 8.46966C2.19957 8.36478 2.3332 8.29334 2.47869 8.26441C2.62417 8.23547 2.77497 8.25032 2.91202 8.30708C3.04906 8.36385 3.1662 8.45998 3.24861 8.58332C3.33102 8.70665 3.37501 8.85166 3.37501 8.99999C3.37501 9.19891 3.29599 9.38967 3.15534 9.53032C3.01468 9.67098 2.82392 9.74999 2.62501 9.74999ZM9.37501 9.37499C9.22667 9.37499 9.08167 9.33101 8.95833 9.2486C8.83499 9.16619 8.73886 9.04905 8.6821 8.91201C8.62533 8.77496 8.61048 8.62416 8.63942 8.47868C8.66836 8.33319 8.73979 8.19955 8.84468 8.09466C8.94957 7.98978 9.0832 7.91834 9.22869 7.88941C9.37417 7.86047 9.52497 7.87532 9.66202 7.93208C9.79906 7.98885 9.9162 8.08498 9.99861 8.20832C10.081 8.33165 10.125 8.47666 10.125 8.62499C10.125 8.82391 10.046 9.01467 9.90534 9.15532C9.76468 9.29598 9.57392 9.37499 9.37501 9.37499Z"
3414
+ },
3415
+ child: []
3416
+ }
3417
+ ]
3418
+ });
3401
3419
 
3402
3420
  // src/components/AddListButton/AddListButton.styles.ts
3403
3421
  import { css as css17 } from "@emotion/react";
@@ -6484,7 +6502,7 @@ var ChipContainer = css45`
6484
6502
  `;
6485
6503
  var ChipText = css45`
6486
6504
  align-self: center;
6487
- line-height: 1;
6505
+ line-height: 1.1;
6488
6506
  text-wrap: nowrap;
6489
6507
  `;
6490
6508
  var ChipIcon = css45`
@@ -7640,7 +7658,7 @@ var DragHandle = forwardRef15(
7640
7658
 
7641
7659
  // src/components/Drawer/Drawer.tsx
7642
7660
  import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
7643
- import React15, { createContext as createContext4, useContext as useContext4, useEffect as useEffect5, useRef as useRef5, useState as useState8 } from "react";
7661
+ import React15, { createContext as createContext4, useContext as useContext4, useEffect as useEffect5, useRef as useRef4, useState as useState8 } from "react";
7644
7662
  import { createPortal } from "react-dom";
7645
7663
 
7646
7664
  // src/components/Drawer/Drawer.styles.ts
@@ -7751,7 +7769,7 @@ var drawerWrapperOverlayStyles = css54`
7751
7769
  `;
7752
7770
 
7753
7771
  // src/components/Drawer/DrawerProvider.tsx
7754
- import { createContext as createContext3, useCallback as useCallback5, useContext as useContext3, useRef as useRef4, useState as useState7 } from "react";
7772
+ import { createContext as createContext3, useCallback as useCallback5, useContext as useContext3, useId, useState as useState7 } from "react";
7755
7773
  import { jsx as jsx67 } from "@emotion/react/jsx-runtime";
7756
7774
  var DrawerContext = createContext3({
7757
7775
  providerId: "",
@@ -7770,7 +7788,7 @@ function renderDrawerId(drawer) {
7770
7788
  }
7771
7789
  var DrawerProvider = ({ children }) => {
7772
7790
  const [drawersRegistry, setDrawersRegistry] = useState7([]);
7773
- const providerId = useRef4(crypto.randomUUID());
7791
+ const providerId = useId();
7774
7792
  const [drawerTakeoverStackId, setDrawerTakeoverStackId] = useState7(void 0);
7775
7793
  useShortcut({
7776
7794
  handler: () => {
@@ -7852,7 +7870,7 @@ var DrawerProvider = ({ children }) => {
7852
7870
  drawersRegistry,
7853
7871
  registerDrawer,
7854
7872
  unregisterDrawer,
7855
- providerId: providerId.current,
7873
+ providerId,
7856
7874
  drawerTakeoverStackId,
7857
7875
  registerTakeoverStackId,
7858
7876
  unregisterTakeoverStackId
@@ -7891,7 +7909,7 @@ var Drawer = React15.forwardRef(
7891
7909
  const { stackId: inheritedStackId } = useCurrentDrawer();
7892
7910
  const { drawerTakeoverStackId } = useDrawer();
7893
7911
  const drawerRendererProps = { width: drawerProps.width, minWidth, maxWidth, position, leftAligned };
7894
- const resolvedStickyStackIdRef = useRef5((_a = drawerTakeoverStackId != null ? drawerTakeoverStackId : drawerProps.stackId) != null ? _a : inheritedStackId);
7912
+ const resolvedStickyStackIdRef = useRef4((_a = drawerTakeoverStackId != null ? drawerTakeoverStackId : drawerProps.stackId) != null ? _a : inheritedStackId);
7895
7913
  return resolvedStickyStackIdRef.current ? /* @__PURE__ */ jsx68(DrawerInner, { ref, ...drawerProps, stackId: resolvedStickyStackIdRef.current }) : /* @__PURE__ */ jsxs43(DrawerProvider, { children: [
7896
7914
  /* @__PURE__ */ jsx68(DrawerInner, { ref, ...drawerProps }),
7897
7915
  /* @__PURE__ */ jsx68(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
@@ -7908,11 +7926,11 @@ var DrawerInner = ({
7908
7926
  instanceKey,
7909
7927
  onRequestClose,
7910
7928
  leftAligned,
7911
- width,
7929
+ width = "medium",
7912
7930
  testId = "side-dialog"
7913
7931
  }) => {
7914
7932
  const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
7915
- const closeButtonRef = useRef5(null);
7933
+ const closeButtonRef = useRef4(null);
7916
7934
  const [rendererElement, setRendererElement] = useState8(null);
7917
7935
  useEffect5(() => {
7918
7936
  registerDrawer({
@@ -8056,9 +8074,13 @@ var DrawerRenderer = ({
8056
8074
  if (withoutFluidWidth) {
8057
8075
  return rendererWidth;
8058
8076
  }
8059
- const drawerWidths = [rendererWidth, ...drawersToRender.map(({ width: width2 }) => width2)].filter(
8060
- (v) => typeof v === "string"
8061
- );
8077
+ const drawerWidths = [
8078
+ rendererWidth,
8079
+ ...drawersToRender.map(({ width: width2 }) => {
8080
+ var _a2;
8081
+ return width2 ? (_a2 = drawerWidth[width2]) != null ? _a2 : width2 : null;
8082
+ })
8083
+ ].filter((v) => typeof v === "string");
8062
8084
  return `max(${drawerWidths.join()})`;
8063
8085
  }, [drawersToRender, width, withoutFluidWidth]);
8064
8086
  if (drawersToRender.length === 0) {
@@ -8119,6 +8141,7 @@ var DrawerWrapper = ({
8119
8141
  {
8120
8142
  css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
8121
8143
  style: { width: calculatedWidth, minWidth, maxWidth },
8144
+ "data-testid": "drawer-wrapper",
8122
8145
  children
8123
8146
  }
8124
8147
  )
@@ -8297,7 +8320,7 @@ function Image({
8297
8320
  if (src === "") {
8298
8321
  setLoading(false);
8299
8322
  } else {
8300
- const url = String(src).startsWith("//") ? `${location.protocol}${src}` : String(src);
8323
+ const url = String(src).startsWith("//") ? `https://${src}` : String(src);
8301
8324
  if (!isValidUrl(url, { allowRelative: true, isSecure: true })) {
8302
8325
  throw Error(errorText);
8303
8326
  }
@@ -8864,21 +8887,28 @@ import { forwardRef as forwardRef17 } from "react";
8864
8887
  // src/components/Tiles/styles/Tile.styles.ts
8865
8888
  import { css as css63 } from "@emotion/react";
8866
8889
  var tileBorderSize = "1px";
8890
+ var tileBorderRadius = "var(--rounded-2xl)";
8891
+ var tileBorderColor = "var(--gray-300)";
8867
8892
  var Tile = css63`
8868
8893
  background: var(--white);
8869
8894
  cursor: pointer;
8870
- border: ${tileBorderSize} solid var(--gray-300);
8871
- display: grid;
8895
+ border: ${tileBorderSize} solid var(--tile-border-color, ${tileBorderColor});
8896
+ display: flex;
8897
+ flex-direction: column;
8872
8898
  padding: var(--spacing-base);
8873
- place-items: center;
8874
- place-content: center;
8899
+ align-items: center;
8900
+ justify-content: center;
8875
8901
  gap: var(--spacing-sm);
8876
- transition: background-color var(--duration-fast) var(--timing-ease-out);
8877
- min-height: 128px;
8902
+ border-radius: var(--tile-border-radius, ${tileBorderRadius});
8903
+ transition:
8904
+ background-color var(--duration-fast) var(--timing-ease-out),
8905
+ border-color var(--duration-fast) var(--timing-ease-out);
8878
8906
 
8879
8907
  &:hover,
8880
8908
  &:focus {
8881
8909
  background: var(--gray-50);
8910
+ border-color: var(--tile-border-color-hover, var(--accent-dark));
8911
+ z-index: 1;
8882
8912
  }
8883
8913
 
8884
8914
  &[aria-disabled='true'],
@@ -8894,27 +8924,55 @@ var TileIsSelected = css63`
8894
8924
  border: calc(${tileBorderSize} + 1px) solid var(--primary-action-active);
8895
8925
  z-index: 1; // Used to elevate active state border over other Tile borders
8896
8926
  `;
8927
+ var TileHorizontal = css63`
8928
+ flex-direction: row;
8929
+ justify-content: flex-start;
8930
+ `;
8897
8931
 
8898
8932
  // src/components/Tiles/LinkTile.tsx
8899
8933
  import { jsx as jsx83 } from "@emotion/react/jsx-runtime";
8900
8934
  var LinkTile2 = forwardRef17(
8901
- ({ children, ...props }, ref) => {
8935
+ ({ orientation = "vertical", children, ...props }, ref) => {
8902
8936
  if ("linkManagerComponent" in props) {
8903
8937
  const { linkManagerComponent: LinkManager, ...rest } = props;
8904
- return /* @__PURE__ */ jsx83(LinkManager, { css: [Tile, LinkTile], ref, ...rest, children });
8938
+ return /* @__PURE__ */ jsx83(
8939
+ LinkManager,
8940
+ {
8941
+ css: [
8942
+ Tile,
8943
+ LinkTile,
8944
+ orientation === "horizontal" ? TileHorizontal : void 0
8945
+ ],
8946
+ ref,
8947
+ ...rest,
8948
+ children
8949
+ }
8950
+ );
8905
8951
  }
8906
- return /* @__PURE__ */ jsx83("a", { ref, css: [Tile, LinkTile], ...props, children });
8952
+ return /* @__PURE__ */ jsx83(
8953
+ "a",
8954
+ {
8955
+ ref,
8956
+ css: [Tile, LinkTile, orientation === "horizontal" ? TileHorizontal : void 0],
8957
+ ...props,
8958
+ children
8959
+ }
8960
+ );
8907
8961
  }
8908
8962
  );
8909
8963
 
8910
8964
  // src/components/Tiles/Tile.tsx
8911
8965
  import { jsx as jsx84 } from "@emotion/react/jsx-runtime";
8912
- var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
8966
+ var Tile2 = ({ children, disabled: disabled2, isSelected, orientation = "vertical", ...props }) => {
8913
8967
  return /* @__PURE__ */ jsx84(
8914
8968
  "button",
8915
8969
  {
8916
8970
  type: "button",
8917
- css: [Tile, isSelected ? TileIsSelected : void 0],
8971
+ css: [
8972
+ Tile,
8973
+ orientation === "horizontal" ? TileHorizontal : void 0,
8974
+ isSelected ? TileIsSelected : void 0
8975
+ ],
8918
8976
  disabled: disabled2,
8919
8977
  ...props,
8920
8978
  children
@@ -8929,17 +8987,46 @@ var TileContainerWrapper = (theme, padding) => css64`
8929
8987
  padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
8930
8988
  `;
8931
8989
  var TileContainerInner = (gap, templateColumns) => css64`
8990
+ /* We remove the border radius from the tiles when used inside TileContainer */
8991
+ --tile-border-radius: 0;
8992
+ --tile-border-color: ${tileBorderColor};
8993
+ /* We don't want the tiles to change border color on hover, because of the border radius we have on the container-level */
8994
+ --tile-border-color-hover: ${tileBorderColor};
8995
+
8996
+ position: relative;
8932
8997
  display: grid;
8933
8998
  grid-template-columns: ${templateColumns};
8999
+ grid-auto-rows: 1fr;
8934
9000
  gap: var(--spacing-${gap});
9001
+ background-color: var(--gray-5);
8935
9002
  margin-top: ${tileBorderSize};
8936
9003
  margin-left: ${tileBorderSize};
9004
+ border-radius: ${tileBorderRadius};
9005
+ overflow: hidden;
9006
+
9007
+ /* This is used to create a border around the tiles */
9008
+ &::after {
9009
+ content: '';
9010
+ position: absolute;
9011
+ inset: 0;
9012
+ border-radius: ${tileBorderRadius};
9013
+ border: ${tileBorderSize} solid var(--tile-border-color);
9014
+ pointer-events: none;
9015
+ z-index: 1;
9016
+ }
8937
9017
 
8938
9018
  > * {
8939
9019
  margin-top: -${tileBorderSize};
8940
9020
  margin-left: -${tileBorderSize};
8941
9021
  }
8942
9022
  `;
9023
+ var TileContainerInnerWithoutGrouping = css64`
9024
+ overflow: visible;
9025
+
9026
+ &::after {
9027
+ display: none;
9028
+ }
9029
+ `;
8943
9030
 
8944
9031
  // src/components/Tiles/TileContainer.tsx
8945
9032
  import { jsx as jsx85 } from "@emotion/react/jsx-runtime";
@@ -8949,9 +9036,19 @@ var TileContainer = ({
8949
9036
  gap = "base",
8950
9037
  gridTemplateColumns = "repeat(auto-fill, minmax(13rem, 1fr))",
8951
9038
  children,
9039
+ withoutGrouping = false,
8952
9040
  ...props
8953
9041
  }) => {
8954
- return /* @__PURE__ */ jsx85("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx85("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
9042
+ return /* @__PURE__ */ jsx85("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx85(
9043
+ "div",
9044
+ {
9045
+ css: [
9046
+ TileContainerInner(gap, gridTemplateColumns),
9047
+ withoutGrouping ? TileContainerInnerWithoutGrouping : void 0
9048
+ ],
9049
+ children
9050
+ }
9051
+ ) });
8955
9052
  };
8956
9053
 
8957
9054
  // src/components/Tiles/styles/TileText.styles.ts
@@ -9139,15 +9236,15 @@ import {
9139
9236
  verticalListSortingStrategy
9140
9237
  } from "@dnd-kit/sortable";
9141
9238
  import { CSS } from "@dnd-kit/utilities";
9142
- import { useCallback as useCallback7, useEffect as useEffect11, useMemo as useMemo5, useRef as useRef7, useState as useState11 } from "react";
9239
+ import { useCallback as useCallback7, useEffect as useEffect11, useMemo as useMemo5, useRef as useRef6, useState as useState11 } from "react";
9143
9240
 
9144
9241
  // src/utils/useDebouncedCallback.ts
9145
- import { useEffect as useEffect10, useMemo as useMemo4, useRef as useRef6 } from "react";
9242
+ import { useEffect as useEffect10, useMemo as useMemo4, useRef as useRef5 } from "react";
9146
9243
  function useDebouncedCallback(callback, deps, delay, maxWait = 0) {
9147
- const timeout = useRef6();
9148
- const waitTimeout = useRef6();
9149
- const cb = useRef6(callback);
9150
- const lastCall = useRef6();
9244
+ const timeout = useRef5();
9245
+ const waitTimeout = useRef5();
9246
+ const cb = useRef5(callback);
9247
+ const lastCall = useRef5();
9151
9248
  const clear = () => {
9152
9249
  if (timeout.current) {
9153
9250
  clearTimeout(timeout.current);
@@ -9229,8 +9326,8 @@ var KeyValueInput = ({
9229
9326
  onFocusChange
9230
9327
  }) => {
9231
9328
  const [isDragging, setIsDragging] = useState11(false);
9232
- const popoverStoresMap = useRef7({});
9233
- const lastRowFirstInputRef = useRef7(null);
9329
+ const popoverStoresMap = useRef6({});
9330
+ const lastRowFirstInputRef = useRef6(null);
9234
9331
  const sensors = useSensors(
9235
9332
  useSensor(PointerSensor),
9236
9333
  useSensor(KeyboardSensor, {
@@ -10168,7 +10265,7 @@ var LoadingIcon = ({ height, width, ...props }) => {
10168
10265
  // src/components/Modal/Modal.tsx
10169
10266
  import { PortalContext } from "@ariakit/react";
10170
10267
  import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
10171
- import React17, { useEffect as useEffect12, useRef as useRef8 } from "react";
10268
+ import React17, { useEffect as useEffect12, useRef as useRef7 } from "react";
10172
10269
 
10173
10270
  // src/components/Modal/Modal.styles.ts
10174
10271
  import { css as css75 } from "@emotion/react";
@@ -10272,8 +10369,8 @@ var Modal = React17.forwardRef(
10272
10369
  disableBodyScroll = false,
10273
10370
  ...modalProps
10274
10371
  }, ref) => {
10275
- const mouseDownInsideModal = useRef8(false);
10276
- const dialogRef = useRef8(null);
10372
+ const mouseDownInsideModal = useRef7(false);
10373
+ const dialogRef = useRef7(null);
10277
10374
  const size = {
10278
10375
  sm: modalSizeSmall,
10279
10376
  md: modalSizeMedium,
@@ -10648,24 +10745,23 @@ var CoverSelectedChip = css78`
10648
10745
  import { Fragment as Fragment11, jsx as jsx101, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
10649
10746
  var ObjectGridItemCardCover = (props) => {
10650
10747
  if ("imageUrl" in props && props.imageUrl) {
10651
- const { imageUrl, srcSet, ...otherProps } = props;
10748
+ const { imageUrl, srcSet, alt } = props;
10652
10749
  return /* @__PURE__ */ jsx101("div", { css: CoverContainer, children: /* @__PURE__ */ jsx101(
10653
10750
  "img",
10654
10751
  {
10655
10752
  src: imageUrl,
10656
10753
  srcSet,
10657
- alt: props.alt,
10658
10754
  css: CoverImage,
10659
10755
  loading: "lazy",
10660
10756
  role: "presentation",
10661
10757
  "data-testid": "object-grid-item-thumbnail",
10662
- ...otherProps
10758
+ alt
10663
10759
  }
10664
10760
  ) });
10665
10761
  }
10666
10762
  if ("icon" in props && props.icon) {
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: [
10763
+ const { icon, iconColor } = props;
10764
+ return /* @__PURE__ */ jsx101("div", { css: CoverContainer, children: /* @__PURE__ */ jsxs67("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", children: [
10669
10765
  /* @__PURE__ */ jsx101(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", css: CoverIconGhost }),
10670
10766
  /* @__PURE__ */ jsx101(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", size: 48 })
10671
10767
  ] }) });
@@ -10715,7 +10811,7 @@ var ObjectGridItemCoverButton = ({
10715
10811
  };
10716
10812
 
10717
10813
  // src/components/Objects/ObjectGridItemHeading.tsx
10718
- import { useEffect as useEffect13, useRef as useRef9, useState as useState12 } from "react";
10814
+ import { useEffect as useEffect13, useRef as useRef8, useState as useState12 } from "react";
10719
10815
 
10720
10816
  // src/components/Objects/styles/ObjectGridItemHeading.styles.ts
10721
10817
  import { css as css79 } from "@emotion/react";
@@ -10742,7 +10838,7 @@ var ObjectGridItemHeading2 = ({
10742
10838
  ...props
10743
10839
  }) => {
10744
10840
  const [hasTruncation, setHasTruncation] = useState12(false);
10745
- const headingRef = useRef9(null);
10841
+ const headingRef = useRef8(null);
10746
10842
  const onStopPropagation = (e) => {
10747
10843
  e.stopPropagation();
10748
10844
  };
@@ -10881,7 +10977,7 @@ var ObjectListItemRightSlot = css81`
10881
10977
  gap: var(--spacing-sm);
10882
10978
  `;
10883
10979
  var ObjectListItemContainer = css81`
10884
- > [role='listitem'] {
10980
+ > [role='listitem']:not(:first-of-type) {
10885
10981
  border-top: 1px solid var(--gray-200);
10886
10982
  }
10887
10983
  `;
@@ -12612,7 +12708,7 @@ import {
12612
12708
  FOCUS_COMMAND,
12613
12709
  PASTE_COMMAND
12614
12710
  } from "lexical";
12615
- import { useCallback as useCallback8, useEffect as useEffect16, useRef as useRef10, useState as useState15 } from "react";
12711
+ import { useCallback as useCallback8, useEffect as useEffect16, useRef as useRef9, useState as useState15 } from "react";
12616
12712
 
12617
12713
  // src/components/ParameterInputs/rich-text/utils.ts
12618
12714
  import { $isAtNodeEnd } from "@lexical/selection";
@@ -12962,7 +13058,7 @@ function LinkNodePlugin({
12962
13058
  };
12963
13059
  const [editor] = useLexicalComposerContext3();
12964
13060
  const [linkPopoverState, setLinkPopoverState] = useState15();
12965
- const linkPopoverElRef = useRef10(null);
13061
+ const linkPopoverElRef = useRef9(null);
12966
13062
  const [isEditorFocused, setIsEditorFocused] = useState15(false);
12967
13063
  const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState15(false);
12968
13064
  useEffect16(() => {
@@ -13213,7 +13309,7 @@ import {
13213
13309
  OUTDENT_CONTENT_COMMAND,
13214
13310
  SELECTION_CHANGE_COMMAND
13215
13311
  } from "lexical";
13216
- import { useEffect as useEffect17, useRef as useRef11 } from "react";
13312
+ import { useEffect as useEffect17, useRef as useRef10 } from "react";
13217
13313
  function isIndentPermitted(maxDepth) {
13218
13314
  const selection = $getSelection2();
13219
13315
  if (!$isRangeSelection2(selection)) {
@@ -13268,7 +13364,7 @@ function $indentOverTab(selection) {
13268
13364
  }
13269
13365
  function ListIndentPlugin({ maxDepth }) {
13270
13366
  const [editor] = useLexicalComposerContext4();
13271
- const isInListItemNode = useRef11(false);
13367
+ const isInListItemNode = useRef10(false);
13272
13368
  useEffect17(() => {
13273
13369
  return editor.registerCommand(
13274
13370
  SELECTION_CHANGE_COMMAND,
@@ -13680,7 +13776,7 @@ import {
13680
13776
  } from "@lexical/table";
13681
13777
  import { calculateZoomLevel } from "@lexical/utils";
13682
13778
  import { $getNearestNodeFromDOMNode } from "lexical";
13683
- import { useCallback as useCallback10, useEffect as useEffect19, useMemo as useMemo6, useRef as useRef12, useState as useState17 } from "react";
13779
+ import { useCallback as useCallback10, useEffect as useEffect19, useMemo as useMemo6, useRef as useRef11, useState as useState17 } from "react";
13684
13780
  import { createPortal as createPortal3 } from "react-dom";
13685
13781
  import { Fragment as Fragment16, jsx as jsx125, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
13686
13782
  var MIN_ROW_HEIGHT = 33;
@@ -13707,10 +13803,10 @@ var fixedGetDOMCellFromTarget = (node) => {
13707
13803
  return null;
13708
13804
  };
13709
13805
  function TableCellResizer({ editor, positioningAnchorEl }) {
13710
- const targetRef = useRef12(null);
13711
- const resizerRef = useRef12(null);
13712
- const tableRectRef = useRef12(null);
13713
- const mouseStartPosRef = useRef12(null);
13806
+ const targetRef = useRef11(null);
13807
+ const resizerRef = useRef11(null);
13808
+ const tableRectRef = useRef11(null);
13809
+ const mouseStartPosRef = useRef11(null);
13714
13810
  const [mouseCurrentPos, updateMouseCurrentPos] = useState17(null);
13715
13811
  const [activeCell, updateActiveCell] = useState17(null);
13716
13812
  const [isMouseDown, updateIsMouseDown] = useState17(false);
@@ -15296,7 +15392,7 @@ var ProgressListItem = ({
15296
15392
  // src/components/SegmentedControl/SegmentedControl.tsx
15297
15393
  import { css as css101 } from "@emotion/react";
15298
15394
  import { CgCheck as CgCheck5 } from "@react-icons/all-files/cg/CgCheck";
15299
- import { useCallback as useCallback12, useEffect as useEffect24, useMemo as useMemo9, useRef as useRef13, useState as useState21 } from "react";
15395
+ import { useCallback as useCallback12, useEffect as useEffect24, useMemo as useMemo9, useRef as useRef12, useState as useState21 } from "react";
15300
15396
 
15301
15397
  // src/components/SegmentedControl/SegmentedControl.styles.ts
15302
15398
  import { css as css100 } from "@emotion/react";
@@ -15484,7 +15580,7 @@ var SegmentedControl = ({
15484
15580
  currentBackgroundColor = "white",
15485
15581
  ...props
15486
15582
  }) => {
15487
- const wrapperRef = useRef13(null);
15583
+ const wrapperRef = useRef12(null);
15488
15584
  const [isOverflowStartShadowVisible, setIsOverflowStartShadowVisible] = useState21(false);
15489
15585
  const [isOverflowEndShadowVisible, setIsOverflowEndShadowVisible] = useState21(false);
15490
15586
  const onOptionChange = useCallback12(
@@ -15536,8 +15632,8 @@ var SegmentedControl = ({
15536
15632
  segmentedControlStyles,
15537
15633
  orientation === "vertical" ? segmentedControlVerticalStyles : void 0
15538
15634
  ],
15539
- ...props,
15540
15635
  "data-testid": "segmented-control",
15636
+ ...props,
15541
15637
  children: options.map((option, index) => {
15542
15638
  var _a;
15543
15639
  if (!option) {
@@ -15638,7 +15734,7 @@ var Skeleton = ({
15638
15734
  );
15639
15735
 
15640
15736
  // src/components/Spinner/Spinner.tsx
15641
- import { useEffect as useEffect25, useRef as useRef14 } from "react";
15737
+ import { useEffect as useEffect25, useRef as useRef13 } from "react";
15642
15738
 
15643
15739
  // src/components/Spinner/Spinner.styles.ts
15644
15740
  import { css as css103 } from "@emotion/react";
@@ -16078,7 +16174,7 @@ var Spinner = ({
16078
16174
  label,
16079
16175
  isPaused
16080
16176
  }) => {
16081
- const ref = useRef14(null);
16177
+ const ref = useRef13(null);
16082
16178
  useEffect25(() => {
16083
16179
  var _a, _b, _c;
16084
16180
  (_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");
@@ -16262,12 +16358,9 @@ var Switch = forwardRef29(
16262
16358
  }
16263
16359
  );
16264
16360
 
16265
- // src/components/Table/Table.tsx
16266
- import * as React21 from "react";
16267
-
16268
16361
  // src/components/Table/Table.styles.ts
16269
16362
  import { css as css105 } from "@emotion/react";
16270
- var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => css105`
16363
+ var table = ({ cellPadding = "var(--spacing-sm)" }) => css105`
16271
16364
  border-bottom: 1px solid var(--gray-400);
16272
16365
  border-collapse: collapse;
16273
16366
  min-width: 100%;
@@ -16277,10 +16370,11 @@ var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => css105`
16277
16370
  th,
16278
16371
  td {
16279
16372
  padding: ${cellPadding};
16373
+ vertical-align: top;
16280
16374
  }
16281
16375
 
16282
16376
  thead tr {
16283
- border-color: var(--gray-300);
16377
+ border-color: var(--gray-200);
16284
16378
  }
16285
16379
 
16286
16380
  tbody tr:hover {
@@ -16292,49 +16386,76 @@ var tableHead = css105`
16292
16386
  text-align: left;
16293
16387
  `;
16294
16388
  var tableRow = css105`
16295
- border-bottom: 1px solid var(--gray-100);
16389
+ border-bottom: 1px solid var(--gray-200);
16390
+ vertical-align: top;
16391
+ font-size: var(--fs-sm);
16296
16392
  `;
16297
16393
  var tableCellHead = css105`
16298
16394
  font-size: var(--fs-sm);
16299
- text-transform: uppercase;
16300
- font-weight: var(--fw-bold);
16395
+ font-weight: var(--fw-regular);
16396
+ line-height: 1.2;
16397
+ }
16301
16398
  `;
16399
+ var responsiveTableContainer = css105`
16400
+ max-width: calc(100vw - var(--spacing-md) * 2);
16401
+ overflow-x: auto;
16402
+ ${scrollbarStyles}
16302
16403
 
16303
- // src/components/Table/Table.tsx
16404
+ > table {
16405
+ display: block;
16406
+ overflow-x: auto;
16407
+ white-space: nowrap;
16408
+ ${scrollbarStyles}
16409
+
16410
+ ${mq("lg")} {
16411
+ display: table;
16412
+ white-space: initial;
16413
+ }
16414
+ }
16415
+ `;
16416
+
16417
+ // src/components/Table/ResponsiveTableContainer.tsx
16304
16418
  import { jsx as jsx138 } from "@emotion/react/jsx-runtime";
16419
+ var ResponsiveTableContainer = ({ children }) => {
16420
+ return /* @__PURE__ */ jsx138("div", { css: responsiveTableContainer, children });
16421
+ };
16422
+
16423
+ // src/components/Table/Table.tsx
16424
+ import * as React21 from "react";
16425
+ import { jsx as jsx139 } from "@emotion/react/jsx-runtime";
16305
16426
  var Table = React21.forwardRef(
16306
16427
  ({ children, cellPadding, ...otherProps }, ref) => {
16307
- return /* @__PURE__ */ jsx138("table", { ref, css: table({ cellPadding }), ...otherProps, children });
16428
+ return /* @__PURE__ */ jsx139("table", { ref, css: table({ cellPadding }), ...otherProps, children });
16308
16429
  }
16309
16430
  );
16310
16431
  var TableHead = React21.forwardRef(
16311
16432
  ({ children, ...otherProps }, ref) => {
16312
- return /* @__PURE__ */ jsx138("thead", { ref, css: tableHead, ...otherProps, children });
16433
+ return /* @__PURE__ */ jsx139("thead", { ref, css: tableHead, ...otherProps, children });
16313
16434
  }
16314
16435
  );
16315
16436
  var TableBody = React21.forwardRef(
16316
16437
  ({ children, ...otherProps }, ref) => {
16317
- return /* @__PURE__ */ jsx138("tbody", { ref, ...otherProps, children });
16438
+ return /* @__PURE__ */ jsx139("tbody", { ref, ...otherProps, children });
16318
16439
  }
16319
16440
  );
16320
16441
  var TableFoot = React21.forwardRef(
16321
16442
  ({ children, ...otherProps }, ref) => {
16322
- return /* @__PURE__ */ jsx138("tfoot", { ref, ...otherProps, children });
16443
+ return /* @__PURE__ */ jsx139("tfoot", { ref, ...otherProps, children });
16323
16444
  }
16324
16445
  );
16325
16446
  var TableRow = React21.forwardRef(
16326
16447
  ({ children, ...otherProps }, ref) => {
16327
- return /* @__PURE__ */ jsx138("tr", { ref, css: tableRow, ...otherProps, children });
16448
+ return /* @__PURE__ */ jsx139("tr", { ref, css: tableRow, ...otherProps, children });
16328
16449
  }
16329
16450
  );
16330
16451
  var TableCellHead = React21.forwardRef(
16331
16452
  ({ children, ...otherProps }, ref) => {
16332
- return /* @__PURE__ */ jsx138("th", { ref, css: tableCellHead, ...otherProps, children });
16453
+ return /* @__PURE__ */ jsx139("th", { ref, css: tableCellHead, ...otherProps, children });
16333
16454
  }
16334
16455
  );
16335
16456
  var TableCellData = React21.forwardRef(
16336
16457
  ({ children, ...otherProps }, ref) => {
16337
- return /* @__PURE__ */ jsx138("td", { ref, ...otherProps, children });
16458
+ return /* @__PURE__ */ jsx139("td", { ref, ...otherProps, children });
16338
16459
  }
16339
16460
  );
16340
16461
 
@@ -16374,7 +16495,7 @@ var tabButtonGroupStyles = css106`
16374
16495
  `;
16375
16496
 
16376
16497
  // src/components/Tabs/Tabs.tsx
16377
- import { jsx as jsx139 } from "@emotion/react/jsx-runtime";
16498
+ import { jsx as jsx140 } from "@emotion/react/jsx-runtime";
16378
16499
  var useCurrentTab = () => {
16379
16500
  const context = useAriakitTabStore();
16380
16501
  if (!context) {
@@ -16405,23 +16526,23 @@ var Tabs = ({
16405
16526
  },
16406
16527
  [onSelectedIdChange, useHashForState]
16407
16528
  );
16408
- return /* @__PURE__ */ jsx139(AriakitTabProvider, { selectedId: selected, selectOnMove: !manual, setSelectedId: onTabSelect, ...props, children });
16529
+ return /* @__PURE__ */ jsx140(AriakitTabProvider, { selectedId: selected, selectOnMove: !manual, setSelectedId: onTabSelect, ...props, children });
16409
16530
  };
16410
16531
  var TabButtonGroup = ({ children, ...props }) => {
16411
- return /* @__PURE__ */ jsx139(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
16532
+ return /* @__PURE__ */ jsx140(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
16412
16533
  };
16413
16534
  var TabButton = ({
16414
16535
  children,
16415
16536
  id,
16416
16537
  ...props
16417
16538
  }) => {
16418
- return /* @__PURE__ */ jsx139(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
16539
+ return /* @__PURE__ */ jsx140(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
16419
16540
  };
16420
16541
  var TabContent = ({
16421
16542
  children,
16422
16543
  ...props
16423
16544
  }) => {
16424
- return /* @__PURE__ */ jsx139(AriakitTabPanel, { ...props, children });
16545
+ return /* @__PURE__ */ jsx140(AriakitTabPanel, { ...props, children });
16425
16546
  };
16426
16547
 
16427
16548
  // src/components/Validation/StatusBullet.styles.ts
@@ -16503,7 +16624,7 @@ var StatusDeleted = css107`
16503
16624
  `;
16504
16625
 
16505
16626
  // src/components/Validation/StatusBullet.tsx
16506
- import { jsx as jsx140 } from "@emotion/react/jsx-runtime";
16627
+ import { jsx as jsx141 } from "@emotion/react/jsx-runtime";
16507
16628
  var StatusBullet = ({
16508
16629
  status,
16509
16630
  hideText = false,
@@ -16524,7 +16645,7 @@ var StatusBullet = ({
16524
16645
  Deleted: StatusDeleted
16525
16646
  };
16526
16647
  const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
16527
- const StatusComponent = () => /* @__PURE__ */ jsx140(
16648
+ const StatusComponent = () => /* @__PURE__ */ jsx141(
16528
16649
  "span",
16529
16650
  {
16530
16651
  role: "status",
@@ -16534,9 +16655,9 @@ var StatusBullet = ({
16534
16655
  }
16535
16656
  );
16536
16657
  if (compact) {
16537
- return /* @__PURE__ */ jsx140(StatusComponent, {});
16658
+ return /* @__PURE__ */ jsx141(StatusComponent, {});
16538
16659
  }
16539
- return /* @__PURE__ */ jsx140(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ jsx140("div", { children: /* @__PURE__ */ jsx140(StatusComponent, {}) }) });
16660
+ return /* @__PURE__ */ jsx141(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ jsx141("div", { children: /* @__PURE__ */ jsx141(StatusComponent, {}) }) });
16540
16661
  };
16541
16662
  export {
16542
16663
  AddButton,
@@ -16674,6 +16795,7 @@ export {
16674
16795
  ProgressList,
16675
16796
  ProgressListItem,
16676
16797
  ResolveIcon,
16798
+ ResponsiveTableContainer,
16677
16799
  RichTextToolbarIcon,
16678
16800
  ScrollableList,
16679
16801
  ScrollableListInputItem,
@@ -16799,6 +16921,7 @@ export {
16799
16921
  uniformStatusDraftIcon,
16800
16922
  uniformStatusModifiedIcon,
16801
16923
  uniformStatusPublishedIcon,
16924
+ uniformUsageStatusIcon,
16802
16925
  useBreakpoint,
16803
16926
  useButtonStyles,
16804
16927
  useCloseCurrentDrawer,