@sebgroup/green-react 1.6.0 → 1.7.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.
Files changed (2) hide show
  1. package/index.js +12 -7
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -3501,16 +3501,21 @@ const Dropdown = ({
3501
3501
  })), jsxs("div", Object.assign({}, getListBoxProps(listboxProps), {
3502
3502
  ref: listboxRef
3503
3503
  }, {
3504
- children: [jsxs("button", Object.assign({
3505
- type: "button",
3506
- className: "close m-4 m-sm-2 d-block d-sm-none",
3507
- onClick: dropdown === null || dropdown === void 0 ? void 0 : dropdown.close
3504
+ children: [jsxs("div", Object.assign({
3505
+ className: "d-flex d-sm-none align-items-center"
3508
3506
  }, {
3509
3507
  children: [jsx("span", Object.assign({
3510
- className: "sr-only"
3508
+ className: "flex-grow-1 ps-4 fs-2 fw-bolder"
3511
3509
  }, {
3512
- children: dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.texts.close
3513
- })), jsx("i", {})]
3510
+ children: label
3511
+ })), jsx("button", Object.assign({
3512
+ type: "button",
3513
+ className: "close m-4 m-sm-2 d-block d-sm-none",
3514
+ onClick: dropdown === null || dropdown === void 0 ? void 0 : dropdown.close,
3515
+ "aria-label": dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.texts.close
3516
+ }, {
3517
+ children: jsx("i", {})
3518
+ }))]
3514
3519
  })), (dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.isMultiSelect) ? jsx("div", Object.assign({
3515
3520
  className: "sg-fieldset-container"
3516
3521
  }, {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sebgroup/green-react",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "peerDependencies": {
5
5
  "react": "^17 || ^18",
6
6
  "react-dom": "^17 || ^18"
7
7
  },
8
8
  "dependencies": {
9
- "@sebgroup/chlorophyll": "^1.8.0",
9
+ "@sebgroup/chlorophyll": "^1.9.0",
10
10
  "@sebgroup/extract": "^1.3.1",
11
11
  "classnames": "^2.3.2"
12
12
  },