@wavy/react-ui 0.0.51 → 0.0.53

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 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
- interface SwitchProps extends Partial<Record<`${"track" | "thumb"}Indicator`, Partial<Record<"on" | "off", React__default.ReactNode>>>>, Partial<Record<`${"thumb" | "track"}Style`,
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" */
@@ -3329,7 +3332,11 @@ declare function useStore<T extends NonFunction<any>>(options: {
3329
3332
  * @warning Attempting to store a function will throw an error.
3330
3333
  */
3331
3334
  defaultValue: CastFn<T>;
3332
- readOnly?: boolean;
3335
+ /**
3336
+ * - `"lazy"` Allows you to call the upsert method once, and rejects all other upsert requests.
3337
+ * - `true` Doesn't allow any upsert requests.
3338
+ * */
3339
+ readOnly?: boolean | "lazy";
3333
3340
  /**Re-renders the component when the value is changed
3334
3341
  * @default false
3335
3342
  */
@@ -3371,7 +3378,7 @@ declare function useStore<T extends NonFunction<any>>(options: {
3371
3378
  skipRender: boolean;
3372
3379
  /** Skips the validate callback */
3373
3380
  skipValidation: boolean;
3374
- bypassReadOnly: boolean;
3381
+ skipTransform: boolean;
3375
3382
  }>) => void;
3376
3383
  read: () => T;
3377
3384
  /** Completely removes all the stored data (including persisted data) */