@uniformdev/design-system 19.54.2-alpha.10 → 19.54.2-alpha.12

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
@@ -11569,6 +11569,7 @@ var Menu = ({
11569
11569
  BaseMenu,
11570
11570
  {
11571
11571
  ...menuState,
11572
+ "data-auto-resize-opt-in": true,
11572
11573
  focusable: false,
11573
11574
  "aria-label": menuLabel,
11574
11575
  ...!isRendered ? { unstable_popoverStyles: { position: "absolute", opacity: "0" } } : void 0,
@@ -15814,10 +15815,16 @@ var cardBaseTitleStyles = css72`
15814
15815
  font-size: var(--fs-sm);
15815
15816
  color: var(--gray-500);
15816
15817
  cursor: pointer;
15818
+ white-space: nowrap;
15819
+ overflow: hidden;
15820
+ text-overflow: ellipsis;
15817
15821
  `;
15818
15822
  var cardBaseSubtitleStyles = css72`
15819
15823
  font-size: var(--fs-xs);
15820
15824
  color: var(--gray-500);
15825
+ white-space: nowrap;
15826
+ overflow: hidden;
15827
+ text-overflow: ellipsis;
15821
15828
  `;
15822
15829
  var cardBaseMenuButtonStyles = css72`
15823
15830
  padding: var(--spacing-2xs);
@@ -15845,8 +15852,8 @@ var MediaCard = ({
15845
15852
  return /* @__PURE__ */ jsxs58(Card, { tag: "button", css: cardBaseStyles, ...cardProps, onClick, children: [
15846
15853
  /* @__PURE__ */ jsx87("div", { css: cardBaseCoverIconWrapperStyles, children: cover }),
15847
15854
  /* @__PURE__ */ jsx87("div", { css: cardBaseContentStyles, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
15848
- /* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1 }, children: [
15849
- /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", children: [
15855
+ /* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
15856
+ /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
15850
15857
  /* @__PURE__ */ jsx87("div", { css: cardBaseTitleStyles, "data-testid": "card-title", children: title }),
15851
15858
  !infoPopover ? null : /* @__PURE__ */ jsx87("div", { css: { display: "flex", cursor: "default" }, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx87(
15852
15859
  Popover2,
@@ -15861,9 +15868,9 @@ var MediaCard = ({
15861
15868
  }
15862
15869
  ) })
15863
15870
  ] }),
15864
- !subtitle ? null : /* @__PURE__ */ jsx87("div", { css: cardBaseSubtitleStyles, children: subtitle })
15871
+ subtitle ? /* @__PURE__ */ jsx87("div", { css: cardBaseSubtitleStyles, children: subtitle }) : null
15865
15872
  ] }),
15866
- /* @__PURE__ */ jsx87("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }),
15873
+ sideSection ? /* @__PURE__ */ jsx87("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }) : null,
15867
15874
  /* @__PURE__ */ jsx87(VerticalRhythm, { align: "center", justify: "center", onClick: (e) => e.stopPropagation(), children: !menuItems || Array.isArray(menuItems) && !menuItems.length ? null : /* @__PURE__ */ jsx87(
15868
15875
  Menu,
15869
15876
  {
package/dist/index.js CHANGED
@@ -13206,6 +13206,7 @@ var Menu = ({
13206
13206
  import_Menu.Menu,
13207
13207
  {
13208
13208
  ...menuState,
13209
+ "data-auto-resize-opt-in": true,
13209
13210
  focusable: false,
13210
13211
  "aria-label": menuLabel,
13211
13212
  ...!isRendered ? { unstable_popoverStyles: { position: "absolute", opacity: "0" } } : void 0,
@@ -17604,10 +17605,16 @@ var cardBaseTitleStyles = import_react93.css`
17604
17605
  font-size: var(--fs-sm);
17605
17606
  color: var(--gray-500);
17606
17607
  cursor: pointer;
17608
+ white-space: nowrap;
17609
+ overflow: hidden;
17610
+ text-overflow: ellipsis;
17607
17611
  `;
17608
17612
  var cardBaseSubtitleStyles = import_react93.css`
17609
17613
  font-size: var(--fs-xs);
17610
17614
  color: var(--gray-500);
17615
+ white-space: nowrap;
17616
+ overflow: hidden;
17617
+ text-overflow: ellipsis;
17611
17618
  `;
17612
17619
  var cardBaseMenuButtonStyles = import_react93.css`
17613
17620
  padding: var(--spacing-2xs);
@@ -17635,8 +17642,8 @@ var MediaCard = ({
17635
17642
  return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Card, { tag: "button", css: cardBaseStyles, ...cardProps, onClick, children: [
17636
17643
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseCoverIconWrapperStyles, children: cover }),
17637
17644
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
17638
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1 }, children: [
17639
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", children: [
17645
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
17646
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
17640
17647
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseTitleStyles, "data-testid": "card-title", children: title }),
17641
17648
  !infoPopover ? null : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { display: "flex", cursor: "default" }, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
17642
17649
  Popover2,
@@ -17651,9 +17658,9 @@ var MediaCard = ({
17651
17658
  }
17652
17659
  ) })
17653
17660
  ] }),
17654
- !subtitle ? null : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseSubtitleStyles, children: subtitle })
17661
+ subtitle ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseSubtitleStyles, children: subtitle }) : null
17655
17662
  ] }),
17656
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }),
17663
+ sideSection ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }) : null,
17657
17664
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(VerticalRhythm, { align: "center", justify: "center", onClick: (e) => e.stopPropagation(), children: !menuItems || Array.isArray(menuItems) && !menuItems.length ? null : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
17658
17665
  Menu,
17659
17666
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.54.2-alpha.10+26eb61515",
3
+ "version": "19.54.2-alpha.12+7c9fa8960",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "@storybook/react": "6.5.16",
25
25
  "@types/react": "18.2.21",
26
26
  "@types/react-dom": "18.2.7",
27
- "@uniformdev/canvas": "^19.54.2-alpha.10+26eb61515",
28
- "@uniformdev/richtext": "^19.54.2-alpha.10+26eb61515",
27
+ "@uniformdev/canvas": "^19.54.2-alpha.12+7c9fa8960",
28
+ "@uniformdev/richtext": "^19.54.2-alpha.12+7c9fa8960",
29
29
  "autoprefixer": "10.4.15",
30
30
  "hygen": "6.2.11",
31
31
  "postcss": "8.4.28",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "26eb615153bcf5f11deb0beeb0f227accde9ae6f"
70
+ "gitHead": "7c9fa89606aad125a8cca19f6fc6b50ddc4c3f58"
71
71
  }