@aivenio/aquarium 1.47.0 → 1.48.1

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.
Files changed (44) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/atoms.cjs +151 -15
  3. package/dist/atoms.mjs +150 -15
  4. package/dist/src/atoms/Alert/Alert.d.ts +14 -0
  5. package/dist/src/atoms/Alert/Alert.js +60 -3
  6. package/dist/src/atoms/Card/Card.d.ts +1 -1
  7. package/dist/src/atoms/DataList/DataList.js +3 -3
  8. package/dist/src/atoms/Navigation/Navigation.js +2 -2
  9. package/dist/src/atoms/Section/Section.d.ts +1 -1
  10. package/dist/src/atoms/Section/Section.js +3 -3
  11. package/dist/src/atoms/Select/Select.js +5 -6
  12. package/dist/src/atoms/Table/Table.d.ts +9 -1
  13. package/dist/src/atoms/Table/Table.js +4 -2
  14. package/dist/src/molecules/Accordion/Accordion.d.ts +1 -0
  15. package/dist/src/molecules/Accordion/Accordion.js +2 -2
  16. package/dist/src/molecules/Alert/Alert.d.ts +7 -1
  17. package/dist/src/molecules/Alert/Alert.js +22 -4
  18. package/dist/src/molecules/Avatar/Avatar.d.ts +5 -0
  19. package/dist/src/molecules/Avatar/Avatar.js +3 -3
  20. package/dist/src/molecules/Banner/Banner.js +3 -2
  21. package/dist/src/molecules/Card/Card.js +2 -2
  22. package/dist/src/molecules/Card/types.d.ts +2 -1
  23. package/dist/src/molecules/DataList/DataList.js +13 -10
  24. package/dist/src/molecules/DataList/DataListSkeleton.js +4 -4
  25. package/dist/src/molecules/DropdownMenu/DropdownMenu.js +3 -3
  26. package/dist/src/molecules/ListItem/ListItem.js +2 -2
  27. package/dist/src/molecules/PageHeader/PageHeader.js +2 -2
  28. package/dist/src/molecules/Pagination/Pagination.js +3 -3
  29. package/dist/src/molecules/Popover/Popover.js +4 -3
  30. package/dist/src/molecules/Section/Section.js +7 -6
  31. package/dist/src/molecules/Table/Table.d.ts +1 -0
  32. package/dist/src/molecules/Table/Table.js +2 -1
  33. package/dist/src/molecules/Template/Template.d.ts +1 -0
  34. package/dist/src/molecules/Template/Template.js +3 -3
  35. package/dist/src/molecules/Typography/Typography.d.ts +4 -0
  36. package/dist/src/molecules/Typography/Typography.js +28 -4
  37. package/dist/src/utils/setupTests.js +2 -2
  38. package/dist/styles.css +62 -6
  39. package/dist/system.cjs +509 -325
  40. package/dist/system.mjs +503 -319
  41. package/dist/tsconfig.module.tsbuildinfo +1 -1
  42. package/dist/types/tailwindGenerated.d.ts +1 -1
  43. package/dist/types/utils.d.ts +3 -0
  44. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 15 Nov 2023 11:37:31 GMT
3
+ // Generated on Fri, 01 Dec 2023 08:04:36 GMT
4
4
 
5
5
  $border-radius-none: 0px !default;
6
6
  $border-radius-sm: 0.125rem !default;
package/dist/atoms.cjs CHANGED
@@ -4597,6 +4597,7 @@ var require_resolveTheme = __commonJS({
4597
4597
  var atoms_exports = {};
4598
4598
  __export(atoms_exports, {
4599
4599
  Alert: () => Alert,
4600
+ Caption: () => Caption,
4600
4601
  Card: () => Card,
4601
4602
  Checkbox: () => Checkbox,
4602
4603
  Chip: () => Chip,
@@ -4631,6 +4632,7 @@ module.exports = __toCommonJS(atoms_exports);
4631
4632
 
4632
4633
  // src/atoms/Alert/Alert.tsx
4633
4634
  var import_react20 = __toESM(require("react"));
4635
+ var import_utils2 = require("@react-aria/utils");
4634
4636
 
4635
4637
  // src/molecules/Button/Button.tsx
4636
4638
  var import_react18 = __toESM(require("react"));
@@ -5252,8 +5254,8 @@ var import_react3 = __toESM(require("react"));
5252
5254
 
5253
5255
  // src/utils/tailwind.ts
5254
5256
  var import_classnames = __toESM(require("classnames"));
5255
- function cleanClassNames(classNames3) {
5256
- const tokens = classNames3.split(/\s+/);
5257
+ function cleanClassNames(classNames4) {
5258
+ const tokens = classNames4.split(/\s+/);
5257
5259
  return tokens.filter((item) => item).join(" ");
5258
5260
  }
5259
5261
  function tw(classesOrModifiers1, classesOrModifiers2, classesOrModifiers3, classesOrModifiers4, classesOrModifiers5, classesOrModifiers6, classesOrModifiers7, classesOrModifiers8, classesOrModifiers9, classesOrModifiers10) {
@@ -6545,12 +6547,116 @@ Alert.Dismiss = (_a) => {
6545
6547
  var _b = _a, { type } = _b, rest = __objRest(_b, ["type"]);
6546
6548
  return /* @__PURE__ */ import_react20.default.createElement("div", {
6547
6549
  className: tw("h-[20px] col-start-3 row-start-1")
6548
- }, /* @__PURE__ */ import_react20.default.createElement(IconButton, __spreadProps(__spreadValues({}, rest), {
6550
+ }, /* @__PURE__ */ import_react20.default.createElement(Button.Icon, __spreadProps(__spreadValues({}, rest), {
6549
6551
  UNSAFE_className: tw("-m-2"),
6550
6552
  tooltip: "Dismiss",
6551
6553
  icon: import_cross2.default
6552
6554
  })));
6553
6555
  };
6556
+ var Banner = (_a) => {
6557
+ var _b = _a, {
6558
+ children,
6559
+ className,
6560
+ type
6561
+ } = _b, rest = __objRest(_b, [
6562
+ "children",
6563
+ "className",
6564
+ "type"
6565
+ ]);
6566
+ return /* @__PURE__ */ import_react20.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
6567
+ role: type === "error" || type === "warning" ? "alert" : "status",
6568
+ className: classNames(
6569
+ tw("relative flex px-[60px] justify-center", {
6570
+ "bg-error-5": type === "error",
6571
+ "bg-primary-5": type === "information",
6572
+ "bg-success-5": type === "success",
6573
+ "bg-warning-5": type === "warning"
6574
+ }),
6575
+ className
6576
+ )
6577
+ }), children);
6578
+ };
6579
+ Alert.Banner = Banner;
6580
+ Alert.Banner.displayName = "Alert.Banner";
6581
+ Banner.Content = (_a) => {
6582
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6583
+ return /* @__PURE__ */ import_react20.default.createElement("div", __spreadValues({
6584
+ className: classNames(
6585
+ tw("flex flex-row flex-wrap gap-x-3 items-center justify-center py-3 text-center z-10"),
6586
+ className
6587
+ )
6588
+ }, props));
6589
+ };
6590
+ Banner.Content.displayName = "Alert.Banner.Content";
6591
+ Banner.Dismiss = (_a) => {
6592
+ var _b = _a, { type } = _b, rest = __objRest(_b, ["type"]);
6593
+ return /* @__PURE__ */ import_react20.default.createElement("div", {
6594
+ className: tw("h-[20px] absolute right-4 top-[18px]")
6595
+ }, /* @__PURE__ */ import_react20.default.createElement(Button.Icon, __spreadProps(__spreadValues({}, rest), {
6596
+ UNSAFE_className: tw("-m-2"),
6597
+ tooltip: "Dismiss",
6598
+ icon: import_cross2.default
6599
+ })));
6600
+ };
6601
+ Banner.Dismiss.displayName = "Alert.Banner.Dismiss";
6602
+ var ILLUSTRATION_COLORS = {
6603
+ information: { stroke: tw("stroke-primary-60"), fill: tw("fill-primary-10") },
6604
+ success: { stroke: tw("stroke-success-40"), fill: tw("fill-success-10") },
6605
+ warning: { stroke: tw("stroke-warning-100"), fill: tw("fill-warning-20") },
6606
+ error: { stroke: tw("stroke-error-100"), fill: tw("fill-error-10") }
6607
+ };
6608
+ var IllustrationLeft = (_a) => {
6609
+ var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
6610
+ const clipPathId = (0, import_utils2.useId)();
6611
+ return /* @__PURE__ */ import_react20.default.createElement("svg", __spreadValues({
6612
+ xmlns: "http://www.w3.org/2000/svg",
6613
+ width: 120,
6614
+ height: 48,
6615
+ fill: "none"
6616
+ }, props), /* @__PURE__ */ import_react20.default.createElement("g", {
6617
+ clipPath: `url(#${clipPathId})`
6618
+ }, /* @__PURE__ */ import_react20.default.createElement("path", {
6619
+ className: ILLUSTRATION_COLORS[type].fill,
6620
+ d: "M25.68 105.063c-4.556 17.047 5.533 34.57 22.537 39.138 17.003 4.568 34.48-5.55 39.037-22.597L136.75-63.593c4.555-17.046-5.536-34.57-22.538-39.137-17.003-4.567-34.48 5.55-39.036 22.596L25.68 105.063Z"
6621
+ }), /* @__PURE__ */ import_react20.default.createElement("path", {
6622
+ className: ILLUSTRATION_COLORS[type].stroke,
6623
+ strokeWidth: 2,
6624
+ d: "M-71.39 445.432c-29.483-7.92-46.981-38.306-39.08-67.87l87.385-326.96c7.901-29.562 38.211-47.105 67.693-39.185 29.481 7.92 46.983 38.306 39.082 67.869l-87.385 326.96c-7.901 29.564-38.211 47.107-67.694 39.186Z"
6625
+ })), /* @__PURE__ */ import_react20.default.createElement("defs", null, /* @__PURE__ */ import_react20.default.createElement("clipPath", {
6626
+ id: clipPathId
6627
+ }, /* @__PURE__ */ import_react20.default.createElement("path", {
6628
+ fill: "#fff",
6629
+ d: "M-38-23h188v200H-38z"
6630
+ }))));
6631
+ };
6632
+ Banner.IllustrationLeft = IllustrationLeft;
6633
+ Banner.IllustrationLeft.displayName = "Alert.Banner.IllustrationLeft";
6634
+ var IllustrationRight = (_a) => {
6635
+ var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
6636
+ const clipPathId = (0, import_utils2.useId)();
6637
+ return /* @__PURE__ */ import_react20.default.createElement("svg", __spreadValues({
6638
+ xmlns: "http://www.w3.org/2000/svg",
6639
+ width: 120,
6640
+ height: 48,
6641
+ fill: "none"
6642
+ }, props), /* @__PURE__ */ import_react20.default.createElement("g", {
6643
+ clipPath: `url(#${clipPathId})`
6644
+ }, /* @__PURE__ */ import_react20.default.createElement("path", {
6645
+ className: ILLUSTRATION_COLORS[type].fill,
6646
+ d: "M114.341 71.088c11.599-20.12 4.741-45.834-15.32-57.433-20.06-11.6-45.727-4.691-57.326 15.43L-84.32 247.67c-11.599 20.119-4.739 45.835 15.321 57.433 20.06 11.599 45.726 4.69 57.325-15.429L114.341 71.088Z"
6647
+ }), /* @__PURE__ */ import_react20.default.createElement("path", {
6648
+ className: ILLUSTRATION_COLORS[type].stroke,
6649
+ strokeWidth: 2.632,
6650
+ d: "M353.696-328.567c34.785 20.113 46.681 64.704 26.564 99.599L157.785 156.939c-20.115 34.892-64.626 46.87-99.409 26.758-34.782-20.112-46.682-64.706-26.566-99.598l222.475-385.907c20.116-34.894 64.626-46.872 99.411-26.759Z"
6651
+ })), /* @__PURE__ */ import_react20.default.createElement("defs", null, /* @__PURE__ */ import_react20.default.createElement("clipPath", {
6652
+ id: clipPathId
6653
+ }, /* @__PURE__ */ import_react20.default.createElement("path", {
6654
+ fill: "#fff",
6655
+ d: "m151.148 255.847-239.01-64.043 68.13-254.266L219.278 1.58z"
6656
+ }))));
6657
+ };
6658
+ Banner.IllustrationRight = IllustrationRight;
6659
+ Banner.IllustrationRight.displayName = "Alert.Banner.IllustrationRight";
6554
6660
 
6555
6661
  // src/atoms/Card/Card.tsx
6556
6662
  var import_react23 = __toESM(require("react"));
@@ -6558,7 +6664,9 @@ var import_isNumber = __toESM(require("lodash/isNumber"));
6558
6664
 
6559
6665
  // src/molecules/Typography/Typography.tsx
6560
6666
  var import_react21 = __toESM(require("react"));
6667
+ var import_classnames3 = __toESM(require("classnames"));
6561
6668
  var Typography2 = (props) => /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadValues({}, props));
6669
+ Typography2.displayName = "Typography";
6562
6670
  Typography2.LargeHeading = (_a) => {
6563
6671
  var _b = _a, { htmlTag = "h1" } = _b, props = __objRest(_b, ["htmlTag"]);
6564
6672
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6566,6 +6674,7 @@ Typography2.LargeHeading = (_a) => {
6566
6674
  variant: "large-heading"
6567
6675
  }));
6568
6676
  };
6677
+ Typography2.LargeHeading.displayName = "Typography.LargeHeading";
6569
6678
  Typography2.Heading = (_a) => {
6570
6679
  var _b = _a, { htmlTag = "h1", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
6571
6680
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6573,6 +6682,7 @@ Typography2.Heading = (_a) => {
6573
6682
  variant: "heading"
6574
6683
  }));
6575
6684
  };
6685
+ Typography2.Heading.displayName = "Typography.Heading";
6576
6686
  Typography2.Subheading = (_a) => {
6577
6687
  var _b = _a, { htmlTag = "h2", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
6578
6688
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6580,6 +6690,7 @@ Typography2.Subheading = (_a) => {
6580
6690
  variant: "subheading"
6581
6691
  }));
6582
6692
  };
6693
+ Typography2.Subheading.displayName = "Typography.Subheading";
6583
6694
  Typography2.LargeStrong = (_a) => {
6584
6695
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6585
6696
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6587,6 +6698,7 @@ Typography2.LargeStrong = (_a) => {
6587
6698
  variant: "large-strong"
6588
6699
  }));
6589
6700
  };
6701
+ Typography2.LargeStrong.displayName = "Typography.LargeStrong";
6590
6702
  Typography2.Large = (_a) => {
6591
6703
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6592
6704
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6594,6 +6706,7 @@ Typography2.Large = (_a) => {
6594
6706
  variant: "large"
6595
6707
  }));
6596
6708
  };
6709
+ Typography2.Large.displayName = "Typography.Large";
6597
6710
  Typography2.DefaultStrong = (_a) => {
6598
6711
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6599
6712
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6601,6 +6714,7 @@ Typography2.DefaultStrong = (_a) => {
6601
6714
  variant: "default-strong"
6602
6715
  }));
6603
6716
  };
6717
+ Typography2.DefaultStrong.displayName = "Typography.DefaultStrong";
6604
6718
  Typography2.Default = (_a) => {
6605
6719
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6606
6720
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6608,6 +6722,7 @@ Typography2.Default = (_a) => {
6608
6722
  variant: "default"
6609
6723
  }));
6610
6724
  };
6725
+ Typography2.Default.displayName = "Typography.Default";
6611
6726
  Typography2.Paragraph = (_a) => {
6612
6727
  var _b = _a, { htmlTag = "p", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
6613
6728
  return /* @__PURE__ */ import_react21.default.createElement(Typography2.Default, __spreadProps(__spreadValues({}, props), {
@@ -6615,20 +6730,30 @@ Typography2.Paragraph = (_a) => {
6615
6730
  }));
6616
6731
  };
6617
6732
  Typography2.P = Typography2.Paragraph;
6618
- Typography2.SmallStrong = (_a) => {
6733
+ Typography2.Paragraph.displayName = "Typography.Paragraph";
6734
+ Typography2.Small = (_a) => {
6619
6735
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6620
6736
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
6621
6737
  htmlTag,
6622
- variant: "small-strong"
6738
+ variant: "small"
6623
6739
  }));
6624
6740
  };
6625
- Typography2.Small = (_a) => {
6741
+ Typography2.Small.displayName = "Typography.Small";
6742
+ Typography2.SmallStrong = (_a) => {
6626
6743
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6627
6744
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
6628
6745
  htmlTag,
6629
- variant: "small"
6746
+ variant: "small-strong"
6630
6747
  }));
6631
6748
  };
6749
+ Typography2.SmallStrong.displayName = "Typography.SmallStrong";
6750
+ Typography2.Strong = (_a) => {
6751
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6752
+ return /* @__PURE__ */ import_react21.default.createElement("strong", __spreadValues({
6753
+ className: (0, import_classnames3.default)(tw("font-semibold"), className)
6754
+ }, props));
6755
+ };
6756
+ Typography2.Strong.displayName = "Typography.Strong";
6632
6757
  Typography2.Caption = (_a) => {
6633
6758
  var _b = _a, { htmlTag = "div", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
6634
6759
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6636,6 +6761,7 @@ Typography2.Caption = (_a) => {
6636
6761
  variant: "caption"
6637
6762
  }));
6638
6763
  };
6764
+ Typography2.Caption.displayName = "Typography.Caption";
6639
6765
  Typography2.LargeText = (_a) => {
6640
6766
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6641
6767
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6643,6 +6769,7 @@ Typography2.LargeText = (_a) => {
6643
6769
  variant: "large-strong"
6644
6770
  }));
6645
6771
  };
6772
+ Typography2.LargeText.displayName = "Typography.LargeText";
6646
6773
  Typography2.MediumText = (_a) => {
6647
6774
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6648
6775
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6650,6 +6777,7 @@ Typography2.MediumText = (_a) => {
6650
6777
  variant: "default-strong"
6651
6778
  }));
6652
6779
  };
6780
+ Typography2.MediumText.displayName = "Typography.MediumText";
6653
6781
  Typography2.Text = (_a) => {
6654
6782
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6655
6783
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6657,6 +6785,7 @@ Typography2.Text = (_a) => {
6657
6785
  variant: "default"
6658
6786
  }));
6659
6787
  };
6788
+ Typography2.Text.displayName = "Typography.Text";
6660
6789
  Typography2.SmallText = (_a) => {
6661
6790
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6662
6791
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6664,6 +6793,7 @@ Typography2.SmallText = (_a) => {
6664
6793
  variant: "small"
6665
6794
  }));
6666
6795
  };
6796
+ Typography2.SmallText.displayName = "Typography.SmallText";
6667
6797
  Typography2.SmallTextBold = (_a) => {
6668
6798
  var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
6669
6799
  return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
@@ -6671,6 +6801,7 @@ Typography2.SmallTextBold = (_a) => {
6671
6801
  variant: "small-strong"
6672
6802
  }));
6673
6803
  };
6804
+ Typography2.SmallTextBold.displayName = "Typography.SmallTextBold";
6674
6805
 
6675
6806
  // src/atoms/LineClamp/LineClamp.tsx
6676
6807
  var import_react22 = __toESM(require("react"));
@@ -7327,7 +7458,7 @@ var Navigation = (_a) => {
7327
7458
  className: classNames(tw("bg-grey-0 h-full"))
7328
7459
  }, /* @__PURE__ */ import_react33.default.createElement("ul", __spreadProps(__spreadValues({}, rest), {
7329
7460
  className: classNames(tw("flex flex-col h-full"), className),
7330
- role: "menu"
7461
+ role: "menubar"
7331
7462
  }), children));
7332
7463
  };
7333
7464
  var Header = (_a) => {
@@ -7590,15 +7721,15 @@ var Group2 = import_react37.default.forwardRef((_a, ref) => {
7590
7721
  });
7591
7722
  var Item3 = import_react37.default.forwardRef(
7592
7723
  (_a, ref) => {
7593
- var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
7724
+ var _b = _a, { highlighted, selected, className, disabled, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "disabled", "children"]);
7594
7725
  return /* @__PURE__ */ import_react37.default.createElement("li", __spreadValues({
7595
7726
  ref,
7596
7727
  className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
7597
- "cursor-pointer": !props.disabled,
7598
- "bg-grey-0": highlighted,
7599
- "text-grey-20": props.disabled,
7600
- "hover:bg-grey-0": !props.disabled
7601
- })
7728
+ "cursor-pointer hover:bg-grey-0": !disabled,
7729
+ "cursor-not-allowed opacity-40 grayscale": disabled,
7730
+ "bg-grey-0": highlighted
7731
+ }),
7732
+ "aria-disabled": disabled || void 0
7602
7733
  }, props), /* @__PURE__ */ import_react37.default.createElement("span", {
7603
7734
  className: tw("grow flex gap-x-3")
7604
7735
  }, children), selected && /* @__PURE__ */ import_react37.default.createElement(InlineIcon, {
@@ -7884,11 +8015,14 @@ var TableSortCell = (_a) => {
7884
8015
  className: getSortCellIconClassNames(direction === "ascending")
7885
8016
  }))));
7886
8017
  };
8018
+ var Caption = ({ children }) => /* @__PURE__ */ import_react40.default.createElement(Typography2.Caption, {
8019
+ htmlTag: "caption"
8020
+ }, children);
7887
8021
  var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ import_react40.default.createElement("div", {
7888
8022
  className: tw("flex gap-4 items-center")
7889
8023
  }, image && /* @__PURE__ */ import_react40.default.createElement("img", {
7890
8024
  src: image,
7891
- alt: imageAlt,
8025
+ alt: imageAlt != null ? imageAlt : "",
7892
8026
  style: { width: imageSize, height: imageSize }
7893
8027
  }), /* @__PURE__ */ import_react40.default.createElement("div", null, title, caption && /* @__PURE__ */ import_react40.default.createElement(Typography2.Caption, null, caption)));
7894
8028
  Table.Head = import_react40.default.memo(TableHead);
@@ -7897,9 +8031,11 @@ Table.Row = import_react40.default.memo(TableRow);
7897
8031
  Table.Cell = import_react40.default.memo(TableCell);
7898
8032
  Table.SortCell = import_react40.default.memo(TableSortCell);
7899
8033
  Table.SelectCell = import_react40.default.memo(TableSelectCell);
8034
+ Table.Caption = Caption;
7900
8035
  // Annotate the CommonJS export names for ESM import in node:
7901
8036
  0 && (module.exports = {
7902
8037
  Alert,
8038
+ Caption,
7903
8039
  Card,
7904
8040
  Checkbox,
7905
8041
  Chip,