@arc-ui/components 6.1.0 → 6.2.0

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/index.js CHANGED
@@ -698,8 +698,8 @@ var Button = React.forwardRef(function (_a, ref) {
698
698
  var ButtonIcon = function (_a) {
699
699
  var icon = _a.icon, isChevron = _a.isChevron, isBeforeText = _a.isBeforeText;
700
700
  return (React__default["default"].createElement("span", { className: classNames({
701
- "arc-ButtonIcon": true,
702
- "arc-ButtonIcon--chevron": isChevron
701
+ "arc-Button-icon": true,
702
+ "arc-Button-icon--chevron": isChevron
703
703
  }) }, isChevron ? (React__default["default"].createElement(Icon, { icon: "btChevron".concat(isBeforeText ? "Left" : "Right", "2px") })) : (React__default["default"].createElement(Icon, { icon: icon }))));
704
704
  };
705
705
 
@@ -743,7 +743,7 @@ var Heading = function (_a) {
743
743
  };
744
744
  var HeadingProposition = function (_a) {
745
745
  var children = _a.children;
746
- return React__default["default"].createElement("span", { className: "arc-HeadingProposition" }, children);
746
+ return React__default["default"].createElement("span", { className: "arc-Heading-proposition" }, children);
747
747
  };
748
748
  HeadingProposition.displayName = "Heading.Proposition";
749
749
  Heading.Proposition = HeadingProposition;
@@ -901,13 +901,13 @@ var Card = function (_a) {
901
901
  var CardBlock = function (_a) {
902
902
  var _b = _a.align, align = _b === void 0 ? "left" : _b, children = _a.children, _c = _a.isFullWidth, isFullWidth = _c === void 0 ? false : _c, _d = _a.grow, grow = _d === void 0 ? false : _d;
903
903
  return (React__default["default"].createElement("div", { className: classNames({
904
- "arc-CardBlock": true,
905
- "arc-CardBlock--alignCenter": align === "center",
906
- "arc-CardBlock--alignRight": align === "right",
907
- "arc-CardBlock--fullWidth": isFullWidth,
908
- "arc-CardBlock--grow": grow
904
+ "arc-Card-block": true,
905
+ "arc-Card-block--alignCenter": align === "center",
906
+ "arc-Card-block--alignRight": align === "right",
907
+ "arc-Card-block--fullWidth": isFullWidth,
908
+ "arc-Card-block--grow": grow
909
909
  }) },
910
- React__default["default"].createElement("div", { className: "arc-CardBlock-inner" }, children)));
910
+ React__default["default"].createElement("div", { className: "arc-Card-blockInner" }, children)));
911
911
  };
912
912
  CardBlock.displayName = "Card.Block";
913
913
  Card.Block = CardBlock;
@@ -917,7 +917,7 @@ Card.Block = CardBlock;
917
917
  var CardImage = function (_a) {
918
918
  var _b = _a.alt, alt = _b === void 0 ? "" : _b, _c = _a.height, height = _c === void 0 ? 176 : _c, src = _a.src, srcSet = _a.srcSet;
919
919
  return (React__default["default"].createElement("div", { className: classNames({
920
- "arc-CardImage": true
920
+ "arc-Card-image": true
921
921
  }) },
922
922
  React__default["default"].createElement(Image, { alt: alt, fit: "cover", src: src, srcSet: srcSet, height: height })));
923
923
  };
@@ -930,13 +930,13 @@ var CardLink = function (_a) {
930
930
  var actionId = _a.actionId, isButton = _a.isButton, children = _a.children, fill = _a.fill, href = _a.href, stretch = _a.stretch, target = _a.target;
931
931
  var surface = React.useContext(Context$3).surface;
932
932
  return (React__default["default"].createElement("a", { "aria-describedby": actionId, className: classNames({
933
- "arc-CardLink": true,
934
- "arc-CardLink--button": isButton,
935
- "arc-CardLink--onDarkSurface": surface === "dark" && fill !== "neutral",
936
- "arc-CardLink--stretch": stretch
933
+ "arc-Card-link": true,
934
+ "arc-Card-link--button": isButton,
935
+ "arc-Card-link--onDarkSurface": surface === "dark" && fill !== "neutral",
936
+ "arc-Card-link--stretch": stretch
937
937
  }), href: href, rel: target === "_blank" ? "noopener noreferrer" : undefined, tabIndex: isButton ? -1 : undefined, target: target },
938
- React__default["default"].createElement("span", { className: "arc-CardLink-text" }, children),
939
- isButton && (React__default["default"].createElement("span", { className: "arc-CardLink-icon" },
938
+ React__default["default"].createElement("span", { className: "arc-Card-linkText" }, children),
939
+ isButton && (React__default["default"].createElement("span", { className: "arc-Card-linkIcon" },
940
940
  React__default["default"].createElement(Icon, { icon: "btChevronRight2px", size: 8 })))));
941
941
  };
942
942
 
@@ -1076,24 +1076,24 @@ var Col = function (_a) {
1076
1076
  var _b;
1077
1077
  var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
1078
1078
  return (React__default["default"].createElement("div", __assign({ className: classNames((_b = {},
1079
- _b["arc-Col"] = true,
1080
- _b[suffixModifier("arc-Col--align", align || "")] = align,
1081
- _b["arc-Col--".concat(span)] = typeof span !== "undefined",
1082
- _b["arc-Col--S".concat(spanS)] = typeof spanS !== "undefined",
1083
- _b["arc-Col--M".concat(spanM)] = typeof spanM !== "undefined",
1084
- _b["arc-Col--L".concat(spanL)] = typeof spanL !== "undefined",
1085
- _b["arc-Col--XL".concat(spanXL)] = typeof spanXL !== "undefined",
1086
- _b["arc-Col--offset"] = typeof offset !== "undefined" ||
1079
+ _b["arc-Columns-col"] = true,
1080
+ _b[suffixModifier("arc-Columns-col--align", align || "")] = align,
1081
+ _b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
1082
+ _b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
1083
+ _b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
1084
+ _b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
1085
+ _b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
1086
+ _b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
1087
1087
  typeof offsetS !== "undefined" ||
1088
1088
  typeof offsetM !== "undefined" ||
1089
1089
  typeof offsetL !== "undefined" ||
1090
1090
  typeof offsetXL !== "undefined",
1091
- _b["arc-Col--offset".concat(offset)] = typeof offset !== "undefined",
1092
- _b["arc-Col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
1093
- _b["arc-Col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
1094
- _b["arc-Col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
1095
- _b["arc-Col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
1096
- _b["arc-Col--debugVisible"] = isDebugVisible,
1091
+ _b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
1092
+ _b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
1093
+ _b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
1094
+ _b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
1095
+ _b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
1096
+ _b["arc-Columns-col--debugVisible"] = isDebugVisible,
1097
1097
  _b)) }, filterDataAttrs(props)), children));
1098
1098
  };
1099
1099
  Col.displayName = "Columns.Col";
@@ -1174,9 +1174,9 @@ var GroupItem = function (_a) {
1174
1174
  var _b;
1175
1175
  var children = _a.children, _c = _a.grow, grow = _c === void 0 ? false : _c, _d = _a.isDebugVisible, isDebugVisible = _d === void 0 ? false : _d, props = __rest(_a, ["children", "grow", "isDebugVisible"]);
1176
1176
  return (React__default["default"].createElement("div", __assign({ className: classNames((_b = {},
1177
- _b["arc-GroupItem"] = true,
1178
- _b["arc-GroupItem--grow"] = grow,
1179
- _b["arc-GroupItem--debugVisible"] = isDebugVisible,
1177
+ _b["arc-Group-item"] = true,
1178
+ _b["arc-Group-item--grow"] = grow,
1179
+ _b["arc-Group-item--debugVisible"] = isDebugVisible,
1180
1180
  _b)) }, filterDataAttrs(props)), children));
1181
1181
  };
1182
1182
  GroupItem.displayName = "Group.Item";