@festo-ui/react 8.2.0-dev.602 → 8.2.0-dev.615

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/index.d.ts CHANGED
@@ -54,7 +54,7 @@ export { default as ScrollArea } from "./lib/components/scroll-area/ScrollArea";
54
54
  export { default as Segment } from "./lib/forms/segment/Segment";
55
55
  export { default as SegmentControl } from "./lib/forms/segment/segment-control/SegmentControl";
56
56
  export { default as Select } from "./lib/forms/select/Select";
57
- export { default as SelectOption } from "./lib/forms/select/select-option/SelectOption";
57
+ export { default as SelectOption, type SelectOptionType, } from "./lib/forms/select/select-option/SelectOption";
58
58
  export { default as Slider } from "./lib/forms/slider/Slider";
59
59
  export { default as Switch } from "./lib/forms/switch/Switch";
60
60
  export { default as TextArea } from "./lib/forms/text-area/TextArea";
@@ -1,6 +1,6 @@
1
1
  import { Key, Ref } from "react";
2
2
  import { SelectConfiguration } from "../../../helper/types";
3
- import { SelectOptionType } from "../select-option/SelectOption";
3
+ import type { SelectOptionType } from "../select-option/SelectOption";
4
4
  interface SelectOptionsContainerProps<T> {
5
5
  options?: SelectOptionType<T>[];
6
6
  config?: SelectConfiguration;
@@ -1,8 +1,8 @@
1
1
  import { SelectConfiguration } from "../../../helper/types";
2
2
  interface SelectScrollContainerProps {
3
- config?: SelectConfiguration;
4
- children: React.ReactNode;
5
- length: number;
3
+ readonly config?: SelectConfiguration;
4
+ readonly children: React.ReactNode;
5
+ readonly length: number;
6
6
  }
7
7
  export default function SelectScrollContainer({ config, children, length, }: SelectScrollContainerProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,14 +1,14 @@
1
- import React, { Ref } from "react";
1
+ import { ComponentPropsWithoutRef, Ref } from "react";
2
2
  export interface SelectOptionType<T> {
3
3
  label: string;
4
4
  data: T;
5
5
  disabled?: boolean;
6
6
  }
7
- export interface SelectOptionProps<T> extends React.ComponentPropsWithoutRef<"span"> {
7
+ export interface SelectOptionProps<T> extends ComponentPropsWithoutRef<"span"> {
8
8
  option: SelectOptionType<T>;
9
9
  }
10
10
  declare function SelectOptionComponent<T>({ children, className, ...props }: SelectOptionProps<T>, ref: Ref<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
11
  declare const SelectOption: <T>(props: SelectOptionProps<T> & {
12
- ref?: React.Ref<HTMLDivElement> | undefined;
12
+ ref?: Ref<HTMLDivElement> | undefined;
13
13
  }) => ReturnType<typeof SelectOptionComponent>;
14
14
  export default SelectOption;
@@ -1,4 +1,4 @@
1
- import React, { forwardRef } from "react";
1
+ import { forwardRef } from "react";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  function SelectOptionComponent(_ref, ref) {
4
4
  let {
@@ -4,10 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
7
+ var _react = require("react");
8
8
  var _jsxRuntime = require("react/jsx-runtime");
9
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
9
  function SelectOptionComponent(_ref, ref) {
12
10
  let {
13
11
  children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "8.2.0-dev.602",
3
+ "version": "8.2.0-dev.615",
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",