@stenajs-webui/forms 19.0.0-next.4 → 19.0.0-next.41

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.
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ export interface InputLabelProps {
3
+ htmlFor?: string;
4
+ label?: string;
5
+ screenReaderLabel?: string;
6
+ className?: string;
7
+ disabled?: boolean;
8
+ }
9
+ export declare const InputLabel: React.FC<InputLabelProps>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export interface InputLabelTextProps {
3
+ disabled?: boolean;
4
+ text?: string;
5
+ }
6
+ export declare const InputLabelText: React.FC<InputLabelTextProps>;
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { InputElementProps } from "@stenajs-webui/core";
3
+ import { ValueAndOnValueChangeProps } from "../types";
4
+ export declare type LabelledTextInputVariant = "normal" | "error";
5
+ export declare type LabelledTextInputSize = "medium" | "large";
6
+ export declare type LabelledTextInputBorderVariant = "normalBorder" | "onlyTop" | "onlyBottom";
7
+ export interface LabelledTextInputProps extends Omit<InputElementProps, "value" | "size">, ValueAndOnValueChangeProps<string> {
8
+ id: string;
9
+ label?: string;
10
+ size?: LabelledTextInputSize;
11
+ screenReaderLabel?: string;
12
+ pattern?: string;
13
+ borderRadiusVariant?: LabelledTextInputBorderVariant;
14
+ variant?: LabelledTextInputVariant;
15
+ }
16
+ export declare const LabelledTextInput: React.ForwardRefExoticComponent<LabelledTextInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,16 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ import * as React from "react";
3
+ import { RadioButtonProps } from "./RadioButton";
4
+ export declare type RadioButtonBoxVariant = "normal" | "danger";
5
+ export interface RadioButtonBoxProps extends RadioButtonProps {
6
+ label?: string;
7
+ /**
8
+ * If set, this label is used by screen readers instead of label prop.
9
+ * For example, label could be "male", while screenReaderLabel is "Gender male".
10
+ * If not set, screen readers will use label prop.
11
+ */
12
+ screenReaderLabel?: string;
13
+ variant?: RadioButtonBoxVariant;
14
+ icon?: IconDefinition;
15
+ }
16
+ export declare const RadioButtonBox: React.FC<RadioButtonBoxProps>;
package/dist/index.d.ts CHANGED
@@ -3,10 +3,14 @@ export * from "./components/ui/switch/SwitchWithLabel";
3
3
  export * from "./components/ui/checkbox/CheckboxWithLabel";
4
4
  export * from "./components/ui/checkbox/Checkbox";
5
5
  export * from "./components/ui/radio/RadioButton";
6
+ export * from "./components/ui/radio/RadioButtonBox";
6
7
  export * from "./components/ui/radio/RadioButtonWithLabel";
7
8
  export * from "./components/ui/numeric-text-input/NumericTextInput";
8
9
  export * from "./components/ui/numeric-text-input/hooks/UseNumericInputValue";
9
10
  export * from "./components/ui/password-input/PasswordInput";
11
+ export * from "./components/ui/input-label/InputLabel";
12
+ export * from "./components/ui/input-label/InputLabelText";
13
+ export * from "./components/ui/labelled-text-input/LabelledTextInput";
10
14
  export * from "./components/ui/text-input/TextInput";
11
15
  export * from "./components/ui/text-input/TextInputBox";
12
16
  export * from "./components/ui/text-area/TextArea";