@stenajs-webui/elements 18.11.2-next.0 → 18.12.1-next.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,7 +1,8 @@
1
1
  import * as React from "react";
2
- import { ReactNode } from "react";
2
+ import { ToggleButtonProps } from "../toggle-button/ToggleButton";
3
+ import { FlatButtonProps } from "../buttons/FlatButton";
3
4
  export interface ButtonGroupProps {
4
5
  className?: string;
5
- children?: ReactNode;
6
+ children: Iterable<React.ReactElement<ToggleButtonProps | FlatButtonProps>>;
6
7
  }
7
8
  export declare const ButtonGroup: React.FC<ButtonGroupProps>;
@@ -1,27 +1,16 @@
1
- import { ButtonElementProps } from "@stenajs-webui/core";
1
+ import { InputElementProps } from "@stenajs-webui/core";
2
2
  import * as React from "react";
3
- import { WidthProps } from "styled-system";
4
3
  export declare type ToggleButtonSize = "small" | "medium" | "large";
5
- export interface ToggleButtonProps extends WidthProps, Omit<ButtonElementProps, "value"> {
4
+ export interface ToggleButtonProps extends Omit<InputElementProps, "value" | "size" | "checked"> {
5
+ value?: boolean;
6
+ onValueChange?: (value: boolean) => void;
6
7
  /**
7
8
  * The label of the button.
8
9
  */
9
10
  label?: string | number;
10
- /**
11
- * The pressed state change handler.
12
- */
13
- onValueChange?: (value: boolean) => void;
14
- /**
15
- * If true, the button will display as pressed.
16
- */
17
- value?: boolean;
18
11
  /**
19
12
  * The size of the button.
20
13
  */
21
14
  size?: ToggleButtonSize;
22
- /**
23
- * If true, the button will be disabled.
24
- */
25
- disabled?: boolean;
26
15
  }
27
16
  export declare const ToggleButton: React.FC<ToggleButtonProps>;