@sb1/ffe-buttons-react 24.3.17 → 24.4.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.
package/es/ButtonGroup.js CHANGED
@@ -24,5 +24,5 @@ import React from 'react';
24
24
  import classNames from 'classnames';
25
25
  export var ButtonGroup = function (_a) {
26
26
  var className = _a.className, thin = _a.thin, inline = _a.inline, ariaLabel = _a.ariaLabel, rest = __rest(_a, ["className", "thin", "inline", "ariaLabel"]);
27
- return (React.createElement("div", __assign({ className: classNames('ffe-button-group', { 'ffe-button-group--thin': thin }, { 'ffe-button-group--inline': inline }, className) }, rest, { role: "group", "aria-label": ariaLabel })));
27
+ return (React.createElement("div", __assign({ className: classNames('ffe-button-group', { 'ffe-button-group--thin': thin }, { 'ffe-button-group--inline': inline }, className) }, rest, { role: "group", "aria-label": ariaLabel === "" ? undefined : ariaLabel })));
28
28
  };
@@ -30,6 +30,6 @@ var react_1 = __importDefault(require("react"));
30
30
  var classnames_1 = __importDefault(require("classnames"));
31
31
  var ButtonGroup = function (_a) {
32
32
  var className = _a.className, thin = _a.thin, inline = _a.inline, ariaLabel = _a.ariaLabel, rest = __rest(_a, ["className", "thin", "inline", "ariaLabel"]);
33
- return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)('ffe-button-group', { 'ffe-button-group--thin': thin }, { 'ffe-button-group--inline': inline }, className) }, rest, { role: "group", "aria-label": ariaLabel })));
33
+ return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)('ffe-button-group', { 'ffe-button-group--thin': thin }, { 'ffe-button-group--inline': inline }, className) }, rest, { role: "group", "aria-label": ariaLabel === "" ? undefined : ariaLabel })));
34
34
  };
35
35
  exports.ButtonGroup = ButtonGroup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-buttons-react",
3
- "version": "24.3.17",
3
+ "version": "24.4.1",
4
4
  "description": "React implementation of ffe-buttons",
5
5
  "keywords": [
6
6
  "ffe"
@@ -28,8 +28,8 @@
28
28
  "test:watch": "ffe-buildtool jest --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@sb1/ffe-buttons": "^21.3.11",
32
- "@sb1/ffe-icons-react": "^12.0.5",
31
+ "@sb1/ffe-buttons": "^22.0.0",
32
+ "@sb1/ffe-icons-react": "^12.0.6",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
35
  "devDependencies": {
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "f9480543fb36b2d1affedbc965cf446e197c48ee"
47
+ "gitHead": "0f26027df58d561ce8d5310c91033c5e62e50f51"
48
48
  }
@@ -4,7 +4,7 @@ export interface ButtonGroupProps extends React.ComponentProps<'div'> {
4
4
  thin?: boolean;
5
5
  /** Applies the inline modifier to make all child buttons inline */
6
6
  inline?: boolean;
7
- /** Label for the group of buttons */
8
- ariaLabel: string;
7
+ /** Label for the group of buttons for users with screen reader*/
8
+ ariaLabel?: string;
9
9
  }
10
10
  export declare const ButtonGroup: React.FC<ButtonGroupProps>;