@wavy/react-ui 0.0.51 → 0.0.52
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.d.ts +8 -5
- package/dist/main.js +8 -8
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -1478,16 +1478,19 @@ interface BasicOptionProps extends Partial<Record<"leadingEl" | "trailingEl", Re
|
|
|
1478
1478
|
}
|
|
1479
1479
|
declare function BasicOption(props: BasicOptionProps): react_jsx_runtime.JSX.Element;
|
|
1480
1480
|
|
|
1481
|
-
|
|
1482
|
-
/** Apply conditional styles based on the `checked` state. */
|
|
1483
|
-
(checked: boolean) => SafeOmit<CSS.Properties, "backgroundColor" | "color" | "borderColor"> & {
|
|
1481
|
+
type Style = SafeOmit<CSS.Properties, "backgroundColor" | "color" | "borderColor" | "fontSize"> & {
|
|
1484
1482
|
backgroundColor?: BasicColor$1;
|
|
1485
1483
|
color?: BasicColor$1;
|
|
1486
1484
|
borderColor?: BasicColor$1;
|
|
1487
|
-
|
|
1485
|
+
fontSize?: keyof typeof FontSize | (string & {});
|
|
1486
|
+
};
|
|
1487
|
+
interface SwitchProps extends Partial<Record<`${"track" | "thumb"}Indicator`, Partial<Record<"on" | "off", React__default.ReactNode>>>>, Partial<Record<`${"thumb" | "track"}Style`,
|
|
1488
|
+
/** Apply conditional styles based on the `checked` state. */
|
|
1489
|
+
(checked: boolean) => Style>> {
|
|
1488
1490
|
defaultChecked?: boolean;
|
|
1489
1491
|
checked?: boolean;
|
|
1490
|
-
label?: string;
|
|
1492
|
+
label?: string | ((checked: boolean) => string);
|
|
1493
|
+
labelStyle?: (checked: boolean) => Style;
|
|
1491
1494
|
disabled?: boolean;
|
|
1492
1495
|
size?: SwitchRootProps["size"];
|
|
1493
1496
|
/**@default "solid" */
|