@rufous/ui 0.2.100 → 0.2.101
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/dist/main.cjs +1 -1
- package/dist/main.d.cts +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -5524,7 +5524,7 @@ var Switch = import_react26.default.forwardRef(function Switch2(props, ref) {
|
|
|
5524
5524
|
const inputRef = (0, import_react26.useRef)(null);
|
|
5525
5525
|
const inputId = (0, import_react26.useRef)(`rf-sw-${Math.random().toString(36).slice(2, 9)}`).current;
|
|
5526
5526
|
const handleChange = (e) => {
|
|
5527
|
-
if (!disabled) onChange?.(e.target.checked);
|
|
5527
|
+
if (!disabled) onChange?.(e, e.target.checked);
|
|
5528
5528
|
};
|
|
5529
5529
|
const rootClasses = [
|
|
5530
5530
|
"rf-switch-root",
|
package/dist/main.d.cts
CHANGED
|
@@ -919,7 +919,7 @@ declare const Slider: React__default.ForwardRefExoticComponent<SliderProps & Rea
|
|
|
919
919
|
|
|
920
920
|
interface SwitchProps {
|
|
921
921
|
checked?: boolean;
|
|
922
|
-
onChange?: (checked: boolean) => void;
|
|
922
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
923
923
|
label?: string;
|
|
924
924
|
labelPlacement?: "end" | "start" | "top" | "bottom";
|
|
925
925
|
size?: "small" | "medium";
|
package/dist/main.d.ts
CHANGED
|
@@ -919,7 +919,7 @@ declare const Slider: React__default.ForwardRefExoticComponent<SliderProps & Rea
|
|
|
919
919
|
|
|
920
920
|
interface SwitchProps {
|
|
921
921
|
checked?: boolean;
|
|
922
|
-
onChange?: (checked: boolean) => void;
|
|
922
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
923
923
|
label?: string;
|
|
924
924
|
labelPlacement?: "end" | "start" | "top" | "bottom";
|
|
925
925
|
size?: "small" | "medium";
|
package/dist/main.js
CHANGED
|
@@ -5406,7 +5406,7 @@ var Switch = React78.forwardRef(function Switch2(props, ref) {
|
|
|
5406
5406
|
const inputRef = useRef12(null);
|
|
5407
5407
|
const inputId = useRef12(`rf-sw-${Math.random().toString(36).slice(2, 9)}`).current;
|
|
5408
5408
|
const handleChange = (e) => {
|
|
5409
|
-
if (!disabled) onChange?.(e.target.checked);
|
|
5409
|
+
if (!disabled) onChange?.(e, e.target.checked);
|
|
5410
5410
|
};
|
|
5411
5411
|
const rootClasses = [
|
|
5412
5412
|
"rf-switch-root",
|