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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -285,11 +285,7 @@ var isSecureURL = (value = "") => {
285
285
  };
286
286
  var isValidUrl = (urlString, options = {}) => {
287
287
  try {
288
- const isRelativeToLocation = /^([/.])/.test(urlString);
289
- const url = new URL(
290
- urlString,
291
- options.allowRelative && isRelativeToLocation ? "https://defaultbaseurl.com" : void 0
292
- );
288
+ const url = new URL(urlString, options.allowRelative ? "https://defaultbaseurl.com" : void 0);
293
289
  if (options.isSecure) {
294
290
  return url.protocol === "https:";
295
291
  }
@@ -15814,10 +15810,16 @@ var cardBaseTitleStyles = css72`
15814
15810
  font-size: var(--fs-sm);
15815
15811
  color: var(--gray-500);
15816
15812
  cursor: pointer;
15813
+ white-space: nowrap;
15814
+ overflow: hidden;
15815
+ text-overflow: ellipsis;
15817
15816
  `;
15818
15817
  var cardBaseSubtitleStyles = css72`
15819
15818
  font-size: var(--fs-xs);
15820
15819
  color: var(--gray-500);
15820
+ white-space: nowrap;
15821
+ overflow: hidden;
15822
+ text-overflow: ellipsis;
15821
15823
  `;
15822
15824
  var cardBaseMenuButtonStyles = css72`
15823
15825
  padding: var(--spacing-2xs);
@@ -15845,8 +15847,8 @@ var MediaCard = ({
15845
15847
  return /* @__PURE__ */ jsxs58(Card, { tag: "button", css: cardBaseStyles, ...cardProps, onClick, children: [
15846
15848
  /* @__PURE__ */ jsx87("div", { css: cardBaseCoverIconWrapperStyles, children: cover }),
15847
15849
  /* @__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: [
15850
+ /* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
15851
+ /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
15850
15852
  /* @__PURE__ */ jsx87("div", { css: cardBaseTitleStyles, "data-testid": "card-title", children: title }),
15851
15853
  !infoPopover ? null : /* @__PURE__ */ jsx87("div", { css: { display: "flex", cursor: "default" }, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx87(
15852
15854
  Popover2,
@@ -15861,9 +15863,9 @@ var MediaCard = ({
15861
15863
  }
15862
15864
  ) })
15863
15865
  ] }),
15864
- !subtitle ? null : /* @__PURE__ */ jsx87("div", { css: cardBaseSubtitleStyles, children: subtitle })
15866
+ subtitle ? /* @__PURE__ */ jsx87("div", { css: cardBaseSubtitleStyles, children: subtitle }) : null
15865
15867
  ] }),
15866
- /* @__PURE__ */ jsx87("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }),
15868
+ sideSection ? /* @__PURE__ */ jsx87("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }) : null,
15867
15869
  /* @__PURE__ */ jsx87(VerticalRhythm, { align: "center", justify: "center", onClick: (e) => e.stopPropagation(), children: !menuItems || Array.isArray(menuItems) && !menuItems.length ? null : /* @__PURE__ */ jsx87(
15868
15870
  Menu,
15869
15871
  {
package/dist/index.js CHANGED
@@ -1857,11 +1857,7 @@ var isSecureURL = (value = "") => {
1857
1857
  };
1858
1858
  var isValidUrl = (urlString, options = {}) => {
1859
1859
  try {
1860
- const isRelativeToLocation = /^([/.])/.test(urlString);
1861
- const url = new URL(
1862
- urlString,
1863
- options.allowRelative && isRelativeToLocation ? "https://defaultbaseurl.com" : void 0
1864
- );
1860
+ const url = new URL(urlString, options.allowRelative ? "https://defaultbaseurl.com" : void 0);
1865
1861
  if (options.isSecure) {
1866
1862
  return url.protocol === "https:";
1867
1863
  }
@@ -17604,10 +17600,16 @@ var cardBaseTitleStyles = import_react93.css`
17604
17600
  font-size: var(--fs-sm);
17605
17601
  color: var(--gray-500);
17606
17602
  cursor: pointer;
17603
+ white-space: nowrap;
17604
+ overflow: hidden;
17605
+ text-overflow: ellipsis;
17607
17606
  `;
17608
17607
  var cardBaseSubtitleStyles = import_react93.css`
17609
17608
  font-size: var(--fs-xs);
17610
17609
  color: var(--gray-500);
17610
+ white-space: nowrap;
17611
+ overflow: hidden;
17612
+ text-overflow: ellipsis;
17611
17613
  `;
17612
17614
  var cardBaseMenuButtonStyles = import_react93.css`
17613
17615
  padding: var(--spacing-2xs);
@@ -17635,8 +17637,8 @@ var MediaCard = ({
17635
17637
  return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Card, { tag: "button", css: cardBaseStyles, ...cardProps, onClick, children: [
17636
17638
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseCoverIconWrapperStyles, children: cover }),
17637
17639
  /* @__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: [
17640
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
17641
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
17640
17642
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseTitleStyles, "data-testid": "card-title", children: title }),
17641
17643
  !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
17644
  Popover2,
@@ -17651,9 +17653,9 @@ var MediaCard = ({
17651
17653
  }
17652
17654
  ) })
17653
17655
  ] }),
17654
- !subtitle ? null : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseSubtitleStyles, children: subtitle })
17656
+ subtitle ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseSubtitleStyles, children: subtitle }) : null
17655
17657
  ] }),
17656
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }),
17658
+ sideSection ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }) : null,
17657
17659
  /* @__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
17660
  Menu,
17659
17661
  {
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",
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",
28
+ "@uniformdev/richtext": "^19.54.2",
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": "ae0ae9747a09ab2982d011b71f67bb078ed98495"
71
71
  }