@eightshift/ui-components 5.1.1 → 5.1.2

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.
@@ -19,6 +19,7 @@ import { _ as __ } from "../../default-i18n-OFa3zAyB.js";
19
19
  * @param {boolean} [props.keepOpen=false] - If `true`, the menu will not close when an item is selected.
20
20
  * @param {boolean} [props.openOnLongPress=false] - If `true`, the menu will open on long press instead of click. If enabled, a regular `onPress` event can also be passed to the trigger button to enable dual behavior.
21
21
  * @param {Object} [props.popoverProps] - Props to pass to the popover.
22
+ * @param {boolean} [props.disabled] - If `true`, the trigger button is disabled.
22
23
  * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
23
24
  *
24
25
  * @returns {JSX.Element} The Menu component.
@@ -70,6 +71,7 @@ const Menu = (props) => {
70
71
  keepOpen = false,
71
72
  "aria-label": ariaLabel = triggerLabel ?? __("Menu", "eightshift-ui-components"),
72
73
  openOnLongPress = false,
74
+ disabled,
73
75
  hidden
74
76
  } = props;
75
77
  if (hidden) {
@@ -101,6 +103,7 @@ const Menu = (props) => {
101
103
  {
102
104
  icon: triggerIcon,
103
105
  tooltip,
106
+ disabled,
104
107
  ...triggerProps,
105
108
  children: triggerLabel
106
109
  }
@@ -303,7 +303,7 @@ const AsyncSelectNext = (props) => {
303
303
  return /* @__PURE__ */ jsxs(
304
304
  OptionItemBase,
305
305
  {
306
- id: item.value,
306
+ id: item?.value,
307
307
  className: item?.className,
308
308
  children: [
309
309
  customMenuOption && customMenuOption(item),
@@ -312,7 +312,7 @@ const AsyncSelectNext = (props) => {
312
312
  {
313
313
  icon: icon2,
314
314
  label: item?.label,
315
- subtitle: item.subtitle,
315
+ subtitle: item?.subtitle,
316
316
  noColor: true
317
317
  }
318
318
  )
@@ -38,6 +38,7 @@ import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../../useFilte
38
38
  * @param {JSX.Element} [props.customDropdownArrow] - If provided, replaces the default dropdown arrow indicator.
39
39
  * @param {string} [props.className] - Classes to pass to the select menu.
40
40
  * @param {boolean} [props.noMinWidth=false] - If `true`, the select menu will not have a minimum width.
41
+ * @param {boolean} [props.searchable] - If `true`, the menu will allow searching through the options.
41
42
  * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
42
43
  *
43
44
  * @returns {JSX.Element} The SelectNext component.
@@ -159,7 +160,7 @@ const SelectNext = (props) => {
159
160
  {
160
161
  icon: icon2,
161
162
  label: selectedItem?.label,
162
- subtitle: selectedItem.subtitle,
163
+ subtitle: selectedItem?.subtitle,
163
164
  className: clsx("es:pr-6 es:grow es:w-full", disabled && "es:grayscale es:pointer-events-none"),
164
165
  iconClassName: "es:pointer-events-none es:select-none"
165
166
  }
@@ -272,7 +273,7 @@ const SelectNext = (props) => {
272
273
  {
273
274
  icon: icon2,
274
275
  label: item?.label,
275
- subtitle: item.subtitle
276
+ subtitle: item?.subtitle
276
277
  }
277
278
  )
278
279
  ]
@@ -285,7 +286,7 @@ const SelectNext = (props) => {
285
286
  !searchable && /* @__PURE__ */ jsx(
286
287
  $eed445e0843c11d0$export$41f133550aa26f48,
287
288
  {
288
- className: "es:space-y-0.5 es:p-1 es:any-focus:outline-hidden",
289
+ className: "es:space-y-0.5 es:p-1 es:any-focus:outline-hidden es:overflow-y-auto",
289
290
  items: options,
290
291
  renderEmptyState: () => /* @__PURE__ */ jsx(
291
292
  RichLabel,
@@ -315,7 +316,7 @@ const SelectNext = (props) => {
315
316
  {
316
317
  icon: icon2,
317
318
  label: item?.label,
318
- subtitle: item.subtitle,
319
+ subtitle: item?.subtitle,
319
320
  noColor: true
320
321
  }
321
322
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightshift/ui-components",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -64,12 +64,12 @@
64
64
  "class-variance-authority": "^0.7.1",
65
65
  "clsx": "^2.1.1",
66
66
  "css-gradient-parser": "^0.0.16",
67
- "eslint": "^9.29.0",
67
+ "eslint": "^9.30.1",
68
68
  "eslint-config-prettier": "^10.1.5",
69
- "eslint-plugin-jsdoc": "^51.2.3",
69
+ "eslint-plugin-jsdoc": "^51.3.4",
70
70
  "eslint-plugin-prettier": "^5.5.1",
71
71
  "glob": "^11.0.3",
72
- "globals": "^16.2.0",
72
+ "globals": "^16.3.0",
73
73
  "just-camel-case": "^6.2.0",
74
74
  "just-debounce-it": "^3.2.0",
75
75
  "just-has": "^2.3.0",
@@ -79,7 +79,7 @@
79
79
  "lightningcss": "^1.30.1",
80
80
  "postcss": "^8.5.6",
81
81
  "prettier": "^3.6.2",
82
- "prettier-plugin-tailwindcss": "^0.6.13",
82
+ "prettier-plugin-tailwindcss": "^0.6.14",
83
83
  "react": "^18.3.1",
84
84
  "react-aria": "^3.41.1",
85
85
  "react-aria-components": "^1.10.1",
@@ -92,7 +92,7 @@
92
92
  "tailwindcss": "^4.1.11",
93
93
  "tailwindcss-motion": "^1.1.1",
94
94
  "tailwindcss-react-aria-components": "^2.0.0",
95
- "vite": "^7.0.0",
95
+ "vite": "^7.0.4",
96
96
  "vite-plugin-lib-inject-css": "^2.2.2"
97
97
  },
98
98
  "dependencies": {