@glasshome/ui 1.37.2 → 1.39.0

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.
@@ -1,3 +1,6 @@
1
1
  import { type Component, type ComponentProps } from "solid-js";
2
- declare const Input: Component<ComponentProps<"input">>;
2
+ type InputProps = ComponentProps<"input"> & {
3
+ busy?: boolean;
4
+ };
5
+ declare const Input: Component<InputProps>;
3
6
  export { Input };
@@ -28,6 +28,8 @@ export declare function OptionCard(props: {
28
28
  * which the group's `onChange` alone never reports. */
29
29
  onPick?: () => void;
30
30
  disabled?: boolean;
31
+ /** Picks do nothing while the pick's work runs; unlike `disabled` it keeps focus. */
32
+ busy?: boolean;
31
33
  class?: string;
32
34
  /** The current sub-option (an OptionChoice value). */
33
35
  subValue?: string;
@@ -3,6 +3,7 @@ import { type Component, type ComponentProps } from "solid-js";
3
3
  declare const RadioGroup: Component<ComponentProps<typeof RadioGroupPrimitive>>;
4
4
  declare const RadioGroupItem: Component<ComponentProps<typeof RadioGroupPrimitive.Item> & {
5
5
  showControl?: boolean;
6
+ busy?: boolean;
6
7
  }>;
7
8
  declare function isItemActivation(event: MouseEvent): boolean;
8
9
  export { isItemActivation, RadioGroup, RadioGroupItem };
@@ -3,6 +3,7 @@ type SwitchProps = Omit<ComponentProps<"button">, "onChange" | "children"> & {
3
3
  checked?: boolean;
4
4
  defaultChecked?: boolean;
5
5
  onChange?: (checked: boolean) => void;
6
+ busy?: boolean;
6
7
  };
7
8
  declare const Switch: Component<SwitchProps>;
8
9
  export { Switch };