@uniformdev/design-system 19.211.0 → 19.211.1-alpha.11

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
@@ -11836,7 +11836,7 @@ var avatarSize2xlStyles = css18`
11836
11836
  `;
11837
11837
 
11838
11838
  // src/components/Avatar/Avatar.tsx
11839
- import { Fragment as Fragment4, jsx as jsx20, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
11839
+ import { jsx as jsx20, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
11840
11840
  var avatarSizeStylesMap = {
11841
11841
  "2xs": avatarSize2xsStyles,
11842
11842
  xs: avatarSizeXsStyles,
@@ -11846,13 +11846,21 @@ var avatarSizeStylesMap = {
11846
11846
  xl: avatarSizeXlStyles,
11847
11847
  "2xl": avatarSize2xlStyles
11848
11848
  };
11849
- var Avatar = ({ src, label = "", children, size = "md", as = "div", ...props }) => {
11849
+ var Avatar = ({
11850
+ src,
11851
+ label = "",
11852
+ children,
11853
+ size = "md",
11854
+ as = "div",
11855
+ labelWithoutPortal,
11856
+ ...props
11857
+ }) => {
11850
11858
  const Element = as;
11851
- const body = /* @__PURE__ */ jsx20(Fragment4, { children: /* @__PURE__ */ jsxs7(Element, { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
11852
- src ? /* @__PURE__ */ jsx20("img", { role: "presentation", src, css: avatarImageStyles }) : children ? null : /* @__PURE__ */ jsx20(CgProfile, { css: avatarImageStyles }),
11859
+ const body = /* @__PURE__ */ jsxs7(Element, { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
11860
+ src ? /* @__PURE__ */ jsx20("img", { role: "presentation", src, css: avatarImageStyles, referrerPolicy: "no-referrer" }) : children ? null : /* @__PURE__ */ jsx20(CgProfile, { css: avatarImageStyles }),
11853
11861
  children
11854
- ] }) });
11855
- return src || children ? /* @__PURE__ */ jsx20(Tooltip, { title: label, children: body }) : body;
11862
+ ] });
11863
+ return src || children ? /* @__PURE__ */ jsx20(Tooltip, { title: label, withoutPortal: labelWithoutPortal, children: body }) : body;
11856
11864
  };
11857
11865
 
11858
11866
  // src/components/Avatar/AvatarGroup.styles.ts
@@ -11884,6 +11892,7 @@ var AvatarGroup = ({
11884
11892
  max = 5,
11885
11893
  children,
11886
11894
  getTruncatedLabel = defaultGetTruncatedLabel,
11895
+ truncatedProps,
11887
11896
  ...props
11888
11897
  }) => {
11889
11898
  if (max < 2) {
@@ -11903,10 +11912,18 @@ var AvatarGroup = ({
11903
11912
  ...props,
11904
11913
  children: [
11905
11914
  childrenToRender,
11906
- !numberOfTruncatedItems ? null : /* @__PURE__ */ jsxs8(Avatar, { label: getTruncatedLabel(numberOfTruncatedItems), style: { display: "flex" }, children: [
11907
- "+",
11908
- numberOfTruncatedItems
11909
- ] })
11915
+ !numberOfTruncatedItems ? null : /* @__PURE__ */ jsxs8(
11916
+ Avatar,
11917
+ {
11918
+ ...truncatedProps,
11919
+ label: getTruncatedLabel(numberOfTruncatedItems),
11920
+ style: { display: "flex" },
11921
+ children: [
11922
+ "+",
11923
+ numberOfTruncatedItems
11924
+ ]
11925
+ }
11926
+ )
11910
11927
  ]
11911
11928
  }
11912
11929
  );
@@ -13519,7 +13536,7 @@ var DebouncedInputKeywordSearch = forwardRef8(
13519
13536
 
13520
13537
  // src/components/Input/InputSelect.tsx
13521
13538
  import { forwardRef as forwardRef9 } from "react";
13522
- import { Fragment as Fragment5, jsx as jsx44, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
13539
+ import { Fragment as Fragment4, jsx as jsx44, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
13523
13540
  var InputSelect = forwardRef9(
13524
13541
  ({
13525
13542
  label,
@@ -13542,7 +13559,7 @@ var InputSelect = forwardRef9(
13542
13559
  css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
13543
13560
  className: typeof classNameContainer === "string" ? classNameContainer : "",
13544
13561
  children: [
13545
- showLabel ? /* @__PURE__ */ jsx44(Fragment5, { children: /* @__PURE__ */ jsxs23(
13562
+ showLabel ? /* @__PURE__ */ jsx44(Fragment4, { children: /* @__PURE__ */ jsxs23(
13546
13563
  Label,
13547
13564
  {
13548
13565
  htmlFor: props.id,
@@ -13821,10 +13838,10 @@ var SuccessMessage = ({ message, testId, ...props }) => {
13821
13838
 
13822
13839
  // src/components/Input/Textarea.tsx
13823
13840
  import { forwardRef as forwardRef12 } from "react";
13824
- import { Fragment as Fragment6, jsx as jsx49, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
13841
+ import { Fragment as Fragment5, jsx as jsx49, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
13825
13842
  var Textarea = forwardRef12(
13826
13843
  ({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
13827
- return /* @__PURE__ */ jsxs27(Fragment6, { children: [
13844
+ return /* @__PURE__ */ jsxs27(Fragment5, { children: [
13828
13845
  showLabel ? /* @__PURE__ */ jsx49("label", { htmlFor: id, css: [labelText], children: label }) : null,
13829
13846
  /* @__PURE__ */ jsxs27("div", { css: [inputContainer], children: [
13830
13847
  /* @__PURE__ */ jsx49(
@@ -14077,7 +14094,7 @@ var wholeButtonWithMenuIconOffset = css38`
14077
14094
  `;
14078
14095
 
14079
14096
  // src/components/ButtonWithMenu/ButtonWithMenu.tsx
14080
- import { Fragment as Fragment7, jsx as jsx52, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
14097
+ import { Fragment as Fragment6, jsx as jsx52, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
14081
14098
  var buttonTheme = {
14082
14099
  primary: buttonPrimary2,
14083
14100
  secondary: buttonSecondary2,
@@ -14162,7 +14179,7 @@ var ButtonWithMenu = ({
14162
14179
  ],
14163
14180
  "data-testid": "multioptions-button",
14164
14181
  children: [
14165
- /* @__PURE__ */ jsx52(Tooltip, { visible: tip ? void 0 : false, title: /* @__PURE__ */ jsx52(Fragment7, { children: tip }), children: /* @__PURE__ */ jsx52("span", { children: primaryButton }) }),
14182
+ /* @__PURE__ */ jsx52(Tooltip, { visible: tip ? void 0 : false, title: /* @__PURE__ */ jsx52(Fragment6, { children: tip }), children: /* @__PURE__ */ jsx52("span", { children: primaryButton }) }),
14166
14183
  disabledValue ? menuButton2 : /* @__PURE__ */ jsx52(
14167
14184
  Menu,
14168
14185
  {
@@ -14506,7 +14523,7 @@ var paragraph = css42`
14506
14523
  `;
14507
14524
 
14508
14525
  // src/components/Typography/Paragraph.tsx
14509
- import { Fragment as Fragment8, jsx as jsx56 } from "@emotion/react/jsx-runtime";
14526
+ import { Fragment as Fragment7, jsx as jsx56 } from "@emotion/react/jsx-runtime";
14510
14527
  import { createElement } from "@emotion/react";
14511
14528
  var Paragraph = ({ className, htmlContent, children, ...pAttributes }) => {
14512
14529
  if (htmlContent && Array.isArray(htmlContent)) {
@@ -14520,7 +14537,7 @@ var Paragraph = ({ className, htmlContent, children, ...pAttributes }) => {
14520
14537
  dangerouslySetInnerHTML: { __html: html }
14521
14538
  }
14522
14539
  ));
14523
- return /* @__PURE__ */ jsx56(Fragment8, { children: paragraphContent });
14540
+ return /* @__PURE__ */ jsx56(Fragment7, { children: paragraphContent });
14524
14541
  }
14525
14542
  return htmlContent ? /* @__PURE__ */ jsx56(
14526
14543
  "p",
@@ -14589,7 +14606,7 @@ var IntegrationHeaderSectionDocsLink = css43`
14589
14606
  `;
14590
14607
 
14591
14608
  // src/components/Typography/IntegrationHeaderSection.tsx
14592
- import { Fragment as Fragment9, jsx as jsx57, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
14609
+ import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
14593
14610
  var IntegrationHeaderSectionHexImage = ({ ...props }) => {
14594
14611
  return /* @__PURE__ */ jsxs33("svg", { viewBox: "0 0 100 116", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
14595
14612
  /* @__PURE__ */ jsx57(
@@ -14629,7 +14646,7 @@ var IntegrationHeaderSection = ({
14629
14646
  ...props
14630
14647
  }) => {
14631
14648
  const CompIcon = icon && typeof icon !== "string" ? icon : null;
14632
- return /* @__PURE__ */ jsxs33(Fragment9, { children: [
14649
+ return /* @__PURE__ */ jsxs33(Fragment8, { children: [
14633
14650
  /* @__PURE__ */ jsxs33("div", { css: IntegrationHeaderSectionContainer, ...props, children: [
14634
14651
  /* @__PURE__ */ jsxs33("div", { css: IntegrationHeaderSectionTitleContainer, children: [
14635
14652
  icon ? /* @__PURE__ */ jsxs33("div", { css: IntegrationHeaderSectionIconContainer, children: [
@@ -15151,7 +15168,7 @@ var ChipDisabled = css48`
15151
15168
  `;
15152
15169
 
15153
15170
  // src/components/Chip/Chip.tsx
15154
- import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
15171
+ import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
15155
15172
  var chipTheme = {
15156
15173
  "accent-light": ChipThemeAccentLight,
15157
15174
  "accent-dark": ChipThemeAccentDark,
@@ -15190,7 +15207,7 @@ var Chip = ({
15190
15207
  ],
15191
15208
  ...props,
15192
15209
  children: [
15193
- icon ? /* @__PURE__ */ jsxs37(Fragment10, { children: [
15210
+ icon ? /* @__PURE__ */ jsxs37(Fragment9, { children: [
15194
15211
  /* @__PURE__ */ jsx62("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx62(Icon, { icon, iconColor, size: "1rem" }) }),
15195
15212
  /* @__PURE__ */ jsx62("span", { role: "separator", css: ChipSeparator })
15196
15213
  ] }) : null,
@@ -16440,7 +16457,7 @@ var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) =>
16440
16457
 
16441
16458
  // src/components/Drawer/DrawerRenderer.tsx
16442
16459
  import { useEffect as useEffect7, useMemo as useMemo3 } from "react";
16443
- import { Fragment as Fragment11, jsx as jsx74, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
16460
+ import { Fragment as Fragment10, jsx as jsx74, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
16444
16461
  var drawerWidth = {
16445
16462
  narrow: "29rem",
16446
16463
  medium: "43rem",
@@ -16529,7 +16546,7 @@ var DrawerWrapper = ({
16529
16546
  offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
16530
16547
  }
16531
16548
  const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
16532
- return /* @__PURE__ */ jsxs45(Fragment11, { children: [
16549
+ return /* @__PURE__ */ jsxs45(Fragment10, { children: [
16533
16550
  /* @__PURE__ */ jsx74("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
16534
16551
  /* @__PURE__ */ jsx74(
16535
16552
  "div",
@@ -17171,10 +17188,10 @@ var IntegrationLoadingFrame = css64`
17171
17188
  `;
17172
17189
 
17173
17190
  // src/components/Tiles/IntegrationLoadingTile.tsx
17174
- import { Fragment as Fragment12, jsx as jsx84, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
17191
+ import { Fragment as Fragment11, jsx as jsx84, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
17175
17192
  var IntegrationLoadingTile = ({ count = 1 }) => {
17176
17193
  const componentCount = Array.from(Array(count).keys());
17177
- return /* @__PURE__ */ jsx84(Fragment12, { children: componentCount.map((i) => /* @__PURE__ */ jsxs52("div", { css: IntegrationLoadingTileContainer, children: [
17194
+ return /* @__PURE__ */ jsx84(Fragment11, { children: componentCount.map((i) => /* @__PURE__ */ jsxs52("div", { css: IntegrationLoadingTileContainer, children: [
17178
17195
  /* @__PURE__ */ jsx84("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
17179
17196
  /* @__PURE__ */ jsx84("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
17180
17197
  ] }, i)) });
@@ -17416,7 +17433,7 @@ var IntegrationModalHeaderContentWrapper = css69`
17416
17433
  `;
17417
17434
 
17418
17435
  // src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
17419
- import { Fragment as Fragment13, jsx as jsx90, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
17436
+ import { Fragment as Fragment12, jsx as jsx90, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
17420
17437
  var HexModalBackground = ({ ...props }) => {
17421
17438
  return /* @__PURE__ */ jsxs55(
17422
17439
  "svg",
@@ -17457,7 +17474,7 @@ var HexModalBackground = ({ ...props }) => {
17457
17474
  );
17458
17475
  };
17459
17476
  var IntegrationModalHeader = ({ icon, name, menu, children }) => {
17460
- return /* @__PURE__ */ jsxs55(Fragment13, { children: [
17477
+ return /* @__PURE__ */ jsxs55(Fragment12, { children: [
17461
17478
  /* @__PURE__ */ jsx90(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
17462
17479
  /* @__PURE__ */ jsx90("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs55("div", { css: IntegrationModalHeaderTitleGroup, children: [
17463
17480
  icon ? /* @__PURE__ */ jsx90(IntegrationModalIcon, { icon, name: name || "" }) : null,
@@ -18365,7 +18382,7 @@ import {
18365
18382
  usePopoverStore
18366
18383
  } from "@ariakit/react";
18367
18384
  import { useEffect as useEffect14 } from "react";
18368
- import { Fragment as Fragment14, jsx as jsx100, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
18385
+ import { Fragment as Fragment13, jsx as jsx100, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
18369
18386
  var Popover3 = ({
18370
18387
  iconColor = "action",
18371
18388
  icon = "info",
@@ -18392,7 +18409,7 @@ var Popover3 = ({
18392
18409
  css: [PopoverBtn, trigger2 ? void 0 : PopoverDefaulterTriggerBtn],
18393
18410
  title: buttonText,
18394
18411
  "data-testid": testId,
18395
- children: trigger2 ? trigger2 : /* @__PURE__ */ jsxs64(Fragment14, { children: [
18412
+ children: trigger2 ? trigger2 : /* @__PURE__ */ jsxs64(Fragment13, { children: [
18396
18413
  /* @__PURE__ */ jsx100(Icon, { icon, iconColor, size: iconSize }),
18397
18414
  /* @__PURE__ */ jsx100("span", { hidden: true, children: buttonText })
18398
18415
  ] })
@@ -19040,7 +19057,7 @@ var CoverSelectedChip = css82`
19040
19057
  `;
19041
19058
 
19042
19059
  // src/components/Objects/ObjectGridItemCardCover.tsx
19043
- import { Fragment as Fragment15, jsx as jsx106, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
19060
+ import { Fragment as Fragment14, jsx as jsx106, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
19044
19061
  var ObjectGridItemCardCover = (props) => {
19045
19062
  if ("imageUrl" in props && props.imageUrl) {
19046
19063
  const { imageUrl, srcSet } = props;
@@ -19073,7 +19090,7 @@ var ObjectGridItemCover = ({
19073
19090
  coverSlotBottomRight,
19074
19091
  ...props
19075
19092
  }) => {
19076
- return /* @__PURE__ */ jsxs69(Fragment15, { children: [
19093
+ return /* @__PURE__ */ jsxs69(Fragment14, { children: [
19077
19094
  coverSlotLeft ? /* @__PURE__ */ jsx106("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
19078
19095
  /* @__PURE__ */ jsx106(ObjectGridItemCardCover, { ...props }),
19079
19096
  coverSlotRight ? /* @__PURE__ */ jsx106("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null,
@@ -20045,7 +20062,7 @@ var previewModalImage = css92`
20045
20062
  `;
20046
20063
 
20047
20064
  // src/components/ParameterInputs/ParameterImagePreview.tsx
20048
- import { Fragment as Fragment16, jsx as jsx120, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
20065
+ import { Fragment as Fragment15, jsx as jsx120, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
20049
20066
  function ParameterImagePreview({ imageSrc }) {
20050
20067
  const [showModal, setShowModal] = useState14(false);
20051
20068
  return imageSrc ? /* @__PURE__ */ jsxs79("div", { css: previewWrapper, children: [
@@ -20063,7 +20080,7 @@ function ParameterImagePreview({ imageSrc }) {
20063
20080
  ] }) : null;
20064
20081
  }
20065
20082
  var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
20066
- return open ? /* @__PURE__ */ jsx120(Fragment16, { children: createPortal2(
20083
+ return open ? /* @__PURE__ */ jsx120(Fragment15, { children: createPortal2(
20067
20084
  /* @__PURE__ */ jsx120(
20068
20085
  Modal,
20069
20086
  {
@@ -20265,7 +20282,7 @@ var ParameterShellPlaceholder = ({ children }) => {
20265
20282
  var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx123(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx123("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx123("span", { hidden: true, children: "reset overridden value to default" }) }) });
20266
20283
 
20267
20284
  // src/components/ParameterInputs/ParameterImage.tsx
20268
- import { Fragment as Fragment17, jsx as jsx124, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
20285
+ import { Fragment as Fragment16, jsx as jsx124, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
20269
20286
  var ParameterImage = forwardRef20(
20270
20287
  ({ children, ...props }, ref) => {
20271
20288
  const { shellProps, innerProps } = extractParameterProps(props);
@@ -20279,7 +20296,7 @@ var ParameterImageInner = forwardRef20((props, ref) => {
20279
20296
  const { value } = props;
20280
20297
  const { id, label, hiddenLabel, errorMessage } = useParameterShell();
20281
20298
  const deferredValue = useDeferredValue(value);
20282
- return /* @__PURE__ */ jsxs81(Fragment17, { children: [
20299
+ return /* @__PURE__ */ jsxs81(Fragment16, { children: [
20283
20300
  /* @__PURE__ */ jsx124(
20284
20301
  "input",
20285
20302
  {
@@ -20453,7 +20470,7 @@ var ParameterMultiSelectInner = (props) => {
20453
20470
  };
20454
20471
 
20455
20472
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
20456
- import { Fragment as Fragment18, jsx as jsx128, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
20473
+ import { Fragment as Fragment17, jsx as jsx128, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
20457
20474
  var ParameterNameAndPublicIdInput = ({
20458
20475
  id,
20459
20476
  onBlur,
@@ -20479,7 +20496,7 @@ var ParameterNameAndPublicIdInput = ({
20479
20496
  navigator.clipboard.writeText(values[publicIdFieldName]);
20480
20497
  };
20481
20498
  autoFocus == null ? void 0 : autoFocus();
20482
- return /* @__PURE__ */ jsxs83(Fragment18, { children: [
20499
+ return /* @__PURE__ */ jsxs83(Fragment17, { children: [
20483
20500
  /* @__PURE__ */ jsx128(
20484
20501
  ParameterInput,
20485
20502
  {
@@ -21054,7 +21071,7 @@ var getSelectedNode = (selection) => {
21054
21071
  };
21055
21072
 
21056
21073
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
21057
- import { Fragment as Fragment19, jsx as jsx129, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
21074
+ import { Fragment as Fragment18, jsx as jsx129, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
21058
21075
  var isProjectMapLinkValue = (value) => {
21059
21076
  return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
21060
21077
  value.nodeId && value.path && value.projectMapId
@@ -21540,7 +21557,7 @@ function LinkNodePlugin({
21540
21557
  });
21541
21558
  });
21542
21559
  };
21543
- return /* @__PURE__ */ jsxs84(Fragment19, { children: [
21560
+ return /* @__PURE__ */ jsxs84(Fragment18, { children: [
21544
21561
  /* @__PURE__ */ jsx129(
21545
21562
  NodeEventPlugin,
21546
21563
  {
@@ -22086,7 +22103,7 @@ import { calculateZoomLevel } from "@lexical/utils";
22086
22103
  import { $getNearestNodeFromDOMNode } from "lexical";
22087
22104
  import { useCallback as useCallback12, useEffect as useEffect22, useMemo as useMemo6, useRef as useRef13, useState as useState18 } from "react";
22088
22105
  import { createPortal as createPortal3 } from "react-dom";
22089
- import { Fragment as Fragment20, jsx as jsx131, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
22106
+ import { Fragment as Fragment19, jsx as jsx131, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
22090
22107
  var MIN_ROW_HEIGHT = 33;
22091
22108
  var MIN_COLUMN_WIDTH = 50;
22092
22109
  var tableResizer = css98`
@@ -22387,7 +22404,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
22387
22404
  };
22388
22405
  }, [activeCell, draggingDirection, mouseCurrentPos, positioningAnchorEl]);
22389
22406
  const resizerStyles = getResizers();
22390
- return /* @__PURE__ */ jsx131("div", { ref: resizerRef, children: activeCell != null && !isMouseDown && /* @__PURE__ */ jsxs86(Fragment20, { children: [
22407
+ return /* @__PURE__ */ jsx131("div", { ref: resizerRef, children: activeCell != null && !isMouseDown && /* @__PURE__ */ jsxs86(Fragment19, { children: [
22391
22408
  /* @__PURE__ */ jsx131(
22392
22409
  "div",
22393
22410
  {
@@ -22647,7 +22664,7 @@ var useRichTextToolbarState = ({ config }) => {
22647
22664
  };
22648
22665
 
22649
22666
  // src/components/ParameterInputs/rich-text/toolbar/RichTextToolbar.tsx
22650
- import { Fragment as Fragment21, jsx as jsx132, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
22667
+ import { Fragment as Fragment20, jsx as jsx132, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
22651
22668
  var toolbar = css99`
22652
22669
  ${scrollbarStyles}
22653
22670
  background: var(--gray-50);
@@ -22900,7 +22917,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
22900
22917
  children: /* @__PURE__ */ jsx132(RichTextToolbarIcon, { icon: "link" })
22901
22918
  }
22902
22919
  ) }) : null,
22903
- visibleLists.size > 0 ? /* @__PURE__ */ jsxs87(Fragment21, { children: [
22920
+ visibleLists.size > 0 ? /* @__PURE__ */ jsxs87(Fragment20, { children: [
22904
22921
  visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx132(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx132(
22905
22922
  "button",
22906
22923
  {
@@ -22995,7 +23012,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
22995
23012
  var RichTextToolbar_default = RichTextToolbar;
22996
23013
 
22997
23014
  // src/components/ParameterInputs/ParameterRichText.tsx
22998
- import { Fragment as Fragment22, jsx as jsx133, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
23015
+ import { Fragment as Fragment21, jsx as jsx133, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
22999
23016
  var ParameterRichText = ({
23000
23017
  label,
23001
23018
  labelLeadingIcon,
@@ -23060,7 +23077,7 @@ var ParameterRichText = ({
23060
23077
  children
23061
23078
  }
23062
23079
  ),
23063
- menuItems ? /* @__PURE__ */ jsx133(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx133(Fragment22, { children: menuItems }) }) : null
23080
+ menuItems ? /* @__PURE__ */ jsx133(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx133(Fragment21, { children: menuItems }) }) : null
23064
23081
  ]
23065
23082
  }
23066
23083
  );
@@ -23221,7 +23238,7 @@ var ParameterRichTextInner = ({
23221
23238
  },
23222
23239
  editable: !readOnly
23223
23240
  };
23224
- return /* @__PURE__ */ jsxs88(Fragment22, { children: [
23241
+ return /* @__PURE__ */ jsxs88(Fragment21, { children: [
23225
23242
  /* @__PURE__ */ jsx133("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx133(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx133(
23226
23243
  RichText,
23227
23244
  {
@@ -23300,7 +23317,7 @@ var RichText = ({
23300
23317
  setPortalContainerRef(_portalContainerRef);
23301
23318
  }
23302
23319
  };
23303
- return /* @__PURE__ */ jsxs88(Fragment22, { children: [
23320
+ return /* @__PURE__ */ jsxs88(Fragment21, { children: [
23304
23321
  readOnly || minimalInteractivity ? null : /* @__PURE__ */ jsx133(
23305
23322
  RichTextToolbar_default,
23306
23323
  {
@@ -23344,7 +23361,7 @@ var RichText = ({
23344
23361
  ]
23345
23362
  }
23346
23363
  ),
23347
- /* @__PURE__ */ jsx133(Fragment22, { children }),
23364
+ /* @__PURE__ */ jsx133(Fragment21, { children }),
23348
23365
  editorContainerRef ? /* @__PURE__ */ jsx133(
23349
23366
  LinkNodePlugin,
23350
23367
  {
@@ -24068,14 +24085,14 @@ var SwitchText = (size) => css107`
24068
24085
  `;
24069
24086
 
24070
24087
  // src/components/Switch/Switch.tsx
24071
- import { Fragment as Fragment23, jsx as jsx141, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
24088
+ import { Fragment as Fragment22, jsx as jsx141, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
24072
24089
  var Switch = forwardRef27(
24073
24090
  ({ label, infoText, toggleText, children, switchSize = "base", ...inputProps }, ref) => {
24074
24091
  let additionalText = infoText;
24075
24092
  if (infoText && toggleText) {
24076
24093
  additionalText = inputProps.checked ? toggleText : infoText;
24077
24094
  }
24078
- return /* @__PURE__ */ jsxs93(Fragment23, { children: [
24095
+ return /* @__PURE__ */ jsxs93(Fragment22, { children: [
24079
24096
  /* @__PURE__ */ jsxs93(
24080
24097
  "label",
24081
24098
  {
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import { Decorator } from '@storybook/react';
3
3
  import * as React$1 from 'react';
4
- import React__default, { RefObject, HTMLAttributes, MutableRefObject, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, PropsWithChildren, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
4
+ import React__default, { RefObject, ReactElement, HTMLAttributes, MutableRefObject, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, PropsWithChildren, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
5
5
  import { GroupBase, Props, MultiValue, SingleValue } from 'react-select';
6
6
  export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
7
7
  import * as _emotion_react from '@emotion/react';
@@ -20220,7 +20220,9 @@ type AvatarProps = {
20220
20220
  */
20221
20221
  src?: string;
20222
20222
  /** Renders a tooltip over the avatar. Not used if there is no `src` */
20223
- label?: string;
20223
+ label?: string | ReactElement;
20224
+ /** Renders the label without a portal. May be needed inside modal dialogs. */
20225
+ labelWithoutPortal?: boolean;
20224
20226
  size?: AvatarSizeProp;
20225
20227
  /**
20226
20228
  * The HTML element to render the component as.
@@ -20232,7 +20234,7 @@ type AvatarProps = {
20232
20234
  * @description A component to render rounded avatars of a user or an app.
20233
20235
  * @example <Avatar>AB</Avatar>
20234
20236
  */
20235
- declare const Avatar: ({ src, label, children, size, as, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
20237
+ declare const Avatar: ({ src, label, children, size, as, labelWithoutPortal, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
20236
20238
 
20237
20239
  interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
20238
20240
  /**
@@ -20248,6 +20250,11 @@ interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
20248
20250
  * @default (n) => `and ${n} others`
20249
20251
  * */
20250
20252
  getTruncatedLabel?: (numberOfTruncatedItems: number) => string;
20253
+ /**
20254
+ * Props to apply to the truncation avatar if it is shown.
20255
+ * Needed if the group's avatars are not the default size.
20256
+ */
20257
+ truncatedProps?: Pick<AvatarProps, 'size' | 'as'>;
20251
20258
  /**
20252
20259
  * The children to render. This component works best when the <Avatar> component are direct children.
20253
20260
  * **/
@@ -20257,7 +20264,7 @@ interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
20257
20264
  * @description Renders avatars in a group with the ability to truncate the list. This component works best when the <Avatar> component are direct children.
20258
20265
  * @example <AvatarGroup max={2}><Avatar>AB</Avatar><Avatar>CD</Avatar><Avatar>EF</Avatar><AvatarGroup>
20259
20266
  */
20260
- declare const AvatarGroup: ({ max, children, getTruncatedLabel, ...props }: AvatarGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
20267
+ declare const AvatarGroup: ({ max, children, getTruncatedLabel, truncatedProps, ...props }: AvatarGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
20261
20268
 
20262
20269
  type BadgeThemeProps = 'caution' | 'info' | 'note' | 'success' | 'error' | 'unimportant';
20263
20270
  type SizeProps = 'xs' | 'sm' | 'base';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import { Decorator } from '@storybook/react';
3
3
  import * as React$1 from 'react';
4
- import React__default, { RefObject, HTMLAttributes, MutableRefObject, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, PropsWithChildren, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
4
+ import React__default, { RefObject, ReactElement, HTMLAttributes, MutableRefObject, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, PropsWithChildren, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
5
5
  import { GroupBase, Props, MultiValue, SingleValue } from 'react-select';
6
6
  export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
7
7
  import * as _emotion_react from '@emotion/react';
@@ -20220,7 +20220,9 @@ type AvatarProps = {
20220
20220
  */
20221
20221
  src?: string;
20222
20222
  /** Renders a tooltip over the avatar. Not used if there is no `src` */
20223
- label?: string;
20223
+ label?: string | ReactElement;
20224
+ /** Renders the label without a portal. May be needed inside modal dialogs. */
20225
+ labelWithoutPortal?: boolean;
20224
20226
  size?: AvatarSizeProp;
20225
20227
  /**
20226
20228
  * The HTML element to render the component as.
@@ -20232,7 +20234,7 @@ type AvatarProps = {
20232
20234
  * @description A component to render rounded avatars of a user or an app.
20233
20235
  * @example <Avatar>AB</Avatar>
20234
20236
  */
20235
- declare const Avatar: ({ src, label, children, size, as, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
20237
+ declare const Avatar: ({ src, label, children, size, as, labelWithoutPortal, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
20236
20238
 
20237
20239
  interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
20238
20240
  /**
@@ -20248,6 +20250,11 @@ interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
20248
20250
  * @default (n) => `and ${n} others`
20249
20251
  * */
20250
20252
  getTruncatedLabel?: (numberOfTruncatedItems: number) => string;
20253
+ /**
20254
+ * Props to apply to the truncation avatar if it is shown.
20255
+ * Needed if the group's avatars are not the default size.
20256
+ */
20257
+ truncatedProps?: Pick<AvatarProps, 'size' | 'as'>;
20251
20258
  /**
20252
20259
  * The children to render. This component works best when the <Avatar> component are direct children.
20253
20260
  * **/
@@ -20257,7 +20264,7 @@ interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
20257
20264
  * @description Renders avatars in a group with the ability to truncate the list. This component works best when the <Avatar> component are direct children.
20258
20265
  * @example <AvatarGroup max={2}><Avatar>AB</Avatar><Avatar>CD</Avatar><Avatar>EF</Avatar><AvatarGroup>
20259
20266
  */
20260
- declare const AvatarGroup: ({ max, children, getTruncatedLabel, ...props }: AvatarGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
20267
+ declare const AvatarGroup: ({ max, children, getTruncatedLabel, truncatedProps, ...props }: AvatarGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
20261
20268
 
20262
20269
  type BadgeThemeProps = 'caution' | 'info' | 'note' | 'success' | 'error' | 'unimportant';
20263
20270
  type SizeProps = 'xs' | 'sm' | 'base';
package/dist/index.js CHANGED
@@ -13542,13 +13542,21 @@ var avatarSizeStylesMap = {
13542
13542
  xl: avatarSizeXlStyles,
13543
13543
  "2xl": avatarSize2xlStyles
13544
13544
  };
13545
- var Avatar = ({ src, label = "", children, size = "md", as = "div", ...props }) => {
13545
+ var Avatar = ({
13546
+ src,
13547
+ label = "",
13548
+ children,
13549
+ size = "md",
13550
+ as = "div",
13551
+ labelWithoutPortal,
13552
+ ...props
13553
+ }) => {
13546
13554
  const Element = as;
13547
- const body = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Element, { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
13548
- src ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("img", { role: "presentation", src, css: avatarImageStyles }) : children ? null : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_CgProfile2.CgProfile, { css: avatarImageStyles }),
13555
+ const body = /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Element, { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
13556
+ src ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("img", { role: "presentation", src, css: avatarImageStyles, referrerPolicy: "no-referrer" }) : children ? null : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_CgProfile2.CgProfile, { css: avatarImageStyles }),
13549
13557
  children
13550
- ] }) });
13551
- return src || children ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Tooltip, { title: label, children: body }) : body;
13558
+ ] });
13559
+ return src || children ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Tooltip, { title: label, withoutPortal: labelWithoutPortal, children: body }) : body;
13552
13560
  };
13553
13561
 
13554
13562
  // src/components/Avatar/AvatarGroup.tsx
@@ -13584,6 +13592,7 @@ var AvatarGroup = ({
13584
13592
  max = 5,
13585
13593
  children,
13586
13594
  getTruncatedLabel = defaultGetTruncatedLabel,
13595
+ truncatedProps,
13587
13596
  ...props
13588
13597
  }) => {
13589
13598
  if (max < 2) {
@@ -13603,10 +13612,18 @@ var AvatarGroup = ({
13603
13612
  ...props,
13604
13613
  children: [
13605
13614
  childrenToRender,
13606
- !numberOfTruncatedItems ? null : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Avatar, { label: getTruncatedLabel(numberOfTruncatedItems), style: { display: "flex" }, children: [
13607
- "+",
13608
- numberOfTruncatedItems
13609
- ] })
13615
+ !numberOfTruncatedItems ? null : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
13616
+ Avatar,
13617
+ {
13618
+ ...truncatedProps,
13619
+ label: getTruncatedLabel(numberOfTruncatedItems),
13620
+ style: { display: "flex" },
13621
+ children: [
13622
+ "+",
13623
+ numberOfTruncatedItems
13624
+ ]
13625
+ }
13626
+ )
13610
13627
  ]
13611
13628
  }
13612
13629
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.211.0",
3
+ "version": "19.211.1-alpha.11+2c4b5ab595",
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": "^19.211.0",
30
- "@uniformdev/richtext": "^19.211.0",
29
+ "@uniformdev/canvas": "^19.211.1-alpha.11+2c4b5ab595",
30
+ "@uniformdev/richtext": "^19.211.1-alpha.11+2c4b5ab595",
31
31
  "autoprefixer": "10.4.16",
32
32
  "hygen": "6.2.11",
33
33
  "postcss": "8.4.47",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "c101d24290ae409fec3148e0cf055618f3f836cd"
82
+ "gitHead": "2c4b5ab595e333d324808dc75d5291cc62ee8039"
83
83
  }