@festo-ui/react 11.1.0-dev.988 → 11.1.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.
@@ -0,0 +1,8 @@
1
+ .fwe-select:focus:not(:disabled), .fwe-select[aria-expanded="true"]:not(:disabled) {
2
+ border-color: var(--fwe-hero);
3
+ }
4
+
5
+ :is(.fwe-select:focus.fwe-invalid, .fwe-select:focus:user-invalid, .fwe-select[aria-expanded="true"].fwe-invalid, .fwe-select[aria-expanded="true"]:user-invalid) {
6
+ border-color: var(--fwe-red);
7
+ }
8
+
@@ -1,3 +1,4 @@
1
+ import './Select.scss';
1
2
  import { type ReactNode, type Ref } from 'react';
2
3
  export interface SelectOption<T> {
3
4
  readonly data: T;
@@ -1,4 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import "./Select.css";
2
3
  import { Listbox, ListboxButton, ListboxOption, ListboxOptions } from "@headlessui/react";
3
4
  import classnames from "classnames";
4
5
  import { forwardRef, useMemo } from "react";
@@ -38,6 +39,15 @@ function SelectComponent({ defaultValue = '', value: controlled, label, options
38
39
  id: id,
39
40
  "aria-labelledby": label ? labelId : void 0,
40
41
  disabled: disabled,
42
+ onKeyDown: (event)=>{
43
+ if ('Enter' === event.key) {
44
+ event.preventDefault();
45
+ event.currentTarget.dispatchEvent(new KeyboardEvent('keydown', {
46
+ key: 'ArrowDown',
47
+ bubbles: true
48
+ }));
49
+ }
50
+ },
41
51
  children: selectedOption ? selectedOption.label : placeholder ?? ''
42
52
  }),
43
53
  /*#__PURE__*/ jsx("label", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "11.1.0-dev.988",
3
+ "version": "11.1.0",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "copyright": "Copyright (c) 2025 Festo SE & Co. KG. All rights reserved.",
6
6
  "license": "apache-2.0",