@festo-ui/react 11.0.0-dev.952 → 11.0.0-dev.954
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.
|
@@ -2,7 +2,7 @@ import { type ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
export interface SwitchProps extends Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'onChange' | 'value' | 'defaultValue' | 'checked'> {
|
|
3
3
|
readonly labelPosition?: 'before' | 'after' | 'below';
|
|
4
4
|
readonly large?: boolean;
|
|
5
|
-
readonly title
|
|
5
|
+
readonly title?: string;
|
|
6
6
|
readonly value?: boolean;
|
|
7
7
|
readonly defaultValue?: boolean;
|
|
8
8
|
readonly onChange?: (value: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -37,7 +37,7 @@ const Switch = /*#__PURE__*/ forwardRef(({ labelPosition = 'after', large = fals
|
|
|
37
37
|
/*#__PURE__*/ jsx("div", {
|
|
38
38
|
className: "fwe-switch-track"
|
|
39
39
|
}),
|
|
40
|
-
/*#__PURE__*/ jsx("div", {
|
|
40
|
+
!!title && /*#__PURE__*/ jsx("div", {
|
|
41
41
|
className: "fwe-switch-label-content",
|
|
42
42
|
children: title
|
|
43
43
|
})
|
package/package.json
CHANGED