revdev-components 0.271.0 → 0.273.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.
@@ -4,6 +4,7 @@ export interface AlfaAttributorOption {
4
4
  content: React.ReactNode;
5
5
  href?: string;
6
6
  icon?: RegularIconName;
7
+ label?: string;
7
8
  }
8
9
  interface Props {
9
10
  options: AlfaAttributorOption[];
package/build/index.js CHANGED
@@ -5843,7 +5843,7 @@ var Content = function (_a) {
5843
5843
  var Button = function (_a) {
5844
5844
  var tooltip = _a.tooltip, tooltipPlacement = _a.tooltipPlacement, hoverOpenDelay = _a.hoverOpenDelay, href = _a.href, props = __rest(_a, ["tooltip", "tooltipPlacement", "hoverOpenDelay", "href"]);
5845
5845
  if (href) {
5846
- return (React.createElement(AppLink, { href: href, noneDecoration: true },
5846
+ return (React.createElement(AppLink, { href: href, target: props.target, noneDecoration: true },
5847
5847
  React.createElement(Content, __assign({}, props, { href: href }))));
5848
5848
  }
5849
5849
  return tooltip ? (React.createElement(AppTooltip, { placement: tooltipPlacement, title: tooltip, mouseEnterDelay: hoverOpenDelay },
@@ -6023,13 +6023,18 @@ var AlfaBreadcrumb = function (_a) {
6023
6023
  }))) : null;
6024
6024
  };
6025
6025
 
6026
- var s$c = {"root":"index-module_root__UuWET","link":"index-module_link__qD-Ss"};
6026
+ var s$c = {"root":"index-module_root__UuWET","link":"index-module_link__qD-Ss","option":"index-module_option__NMLA4"};
6027
6027
 
6028
6028
  var AlfaAttributor = function (_a) {
6029
6029
  var className = _a.className, options = _a.options;
6030
6030
  return options.length ? (React.createElement("div", { className: classNames(s$c.root, className) }, options.map(function (_a, i) {
6031
- var icon = _a.icon, content = _a.content, href = _a.href;
6031
+ var icon = _a.icon, content = _a.content, href = _a.href, label = _a.label;
6032
6032
  var result = content;
6033
+ if (label) {
6034
+ result = (React.createElement("div", { className: s$c.option },
6035
+ React.createElement("div", null, "".concat(label, ":")),
6036
+ React.createElement("div", null, result)));
6037
+ }
6033
6038
  if (typeof href === "string") {
6034
6039
  result = (React.createElement(AppLink, { className: s$c.link, href: href }, content));
6035
6040
  }
package/build/styles.css CHANGED
@@ -639,6 +639,12 @@ body {
639
639
  .index-module_link__qD-Ss:hover {
640
640
  color: var(--passiveColor) !important;
641
641
  }
642
+
643
+ .index-module_option__NMLA4 {
644
+ display: flex;
645
+ flex-direction: row;
646
+ gap: 4px;
647
+ }
642
648
  .index-module_options__7cPUT {
643
649
  display: flex;
644
650
  flex-wrap: wrap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.271.0",
3
+ "version": "0.273.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {