@wistia/ui 0.1.1 → 0.1.2
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/index.cjs +1654 -1515
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +123 -66
- package/dist/index.d.ts +123 -66
- package/dist/index.mjs +1691 -1553
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ReactNode, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1,
|
|
3
|
+
import { ReactNode, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1, InputHTMLAttributes, RefObject } from 'react';
|
|
4
4
|
import { LinkProps as LinkProps$1 } from 'react-router-dom';
|
|
5
5
|
import * as styled_components from 'styled-components';
|
|
6
6
|
import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
|
|
@@ -243,6 +243,63 @@ type AriaLiveContextType = {
|
|
|
243
243
|
};
|
|
244
244
|
declare const useAriaLive: () => AriaLiveContextType;
|
|
245
245
|
|
|
246
|
+
type ActionButtonProps = {
|
|
247
|
+
/**
|
|
248
|
+
* The Icon component to use, e.g. `<Icon type="favorite" />`
|
|
249
|
+
*/
|
|
250
|
+
icon: JSX.Element;
|
|
251
|
+
/**
|
|
252
|
+
* Disables the button
|
|
253
|
+
*/
|
|
254
|
+
disabled?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
257
|
+
*/
|
|
258
|
+
hoverColorScheme?: ColorSchemeTypes;
|
|
259
|
+
/**
|
|
260
|
+
* Changes the secondary icon for different use cases
|
|
261
|
+
*/
|
|
262
|
+
variant?: 'default' | 'gated' | 'menu-down' | 'menu-up';
|
|
263
|
+
} & (Omit<ButtonAsButtonProps, 'fullWidth' | 'isLoading' | 'leftIcon' | 'rightIcon' | 'size' | 'unstyled' | 'variant'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'isLoading' | 'leftIcon' | 'rightIcon' | 'size' | 'unstyled' | 'variant'>);
|
|
264
|
+
/**
|
|
265
|
+
* Action Button component is used as one of a group of main actions on the page.
|
|
266
|
+
*/
|
|
267
|
+
declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
268
|
+
/**
|
|
269
|
+
* The Icon component to use, e.g. `<Icon type="favorite" />`
|
|
270
|
+
*/
|
|
271
|
+
icon: JSX.Element;
|
|
272
|
+
/**
|
|
273
|
+
* Disables the button
|
|
274
|
+
*/
|
|
275
|
+
disabled?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
278
|
+
*/
|
|
279
|
+
hoverColorScheme?: ColorSchemeTypes;
|
|
280
|
+
/**
|
|
281
|
+
* Changes the secondary icon for different use cases
|
|
282
|
+
*/
|
|
283
|
+
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
284
|
+
} & Omit<ButtonAsButtonProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref"> | Omit<{
|
|
285
|
+
/**
|
|
286
|
+
* The Icon component to use, e.g. `<Icon type="favorite" />`
|
|
287
|
+
*/
|
|
288
|
+
icon: JSX.Element;
|
|
289
|
+
/**
|
|
290
|
+
* Disables the button
|
|
291
|
+
*/
|
|
292
|
+
disabled?: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
295
|
+
*/
|
|
296
|
+
hoverColorScheme?: ColorSchemeTypes;
|
|
297
|
+
/**
|
|
298
|
+
* Changes the secondary icon for different use cases
|
|
299
|
+
*/
|
|
300
|
+
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
301
|
+
} & Omit<ButtonAsLinkProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
302
|
+
|
|
246
303
|
type AvatarInstanceType = 'image' | 'initials';
|
|
247
304
|
type AvatarProps = ComponentPropsWithoutRef<'div'> & {
|
|
248
305
|
/**
|
|
@@ -1037,6 +1094,70 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1037
1094
|
children: JSX.Element;
|
|
1038
1095
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1039
1096
|
|
|
1097
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1098
|
+
/**
|
|
1099
|
+
* Sets the validity status of the input
|
|
1100
|
+
*/
|
|
1101
|
+
'aria-invalid'?: boolean;
|
|
1102
|
+
/**
|
|
1103
|
+
* Set the disabled state of the input
|
|
1104
|
+
*/
|
|
1105
|
+
disabled?: boolean;
|
|
1106
|
+
/**
|
|
1107
|
+
* If true, the input will fill the width of its parent
|
|
1108
|
+
*/
|
|
1109
|
+
fullWidth?: boolean;
|
|
1110
|
+
/**
|
|
1111
|
+
* If true, the input will use a monospace font
|
|
1112
|
+
*/
|
|
1113
|
+
monospace?: boolean;
|
|
1114
|
+
/**
|
|
1115
|
+
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1116
|
+
*/
|
|
1117
|
+
leftIcon?: JSX.Element | undefined;
|
|
1118
|
+
/**
|
|
1119
|
+
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1120
|
+
*/
|
|
1121
|
+
rightIcon?: JSX.Element | undefined;
|
|
1122
|
+
/**
|
|
1123
|
+
* The type of the input
|
|
1124
|
+
*/
|
|
1125
|
+
type?: 'email' | 'multiline' | 'number' | 'phone' | 'search' | 'text' | 'url';
|
|
1126
|
+
};
|
|
1127
|
+
/**
|
|
1128
|
+
* Component description goes here
|
|
1129
|
+
*/
|
|
1130
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "type"> & {
|
|
1131
|
+
/**
|
|
1132
|
+
* Sets the validity status of the input
|
|
1133
|
+
*/
|
|
1134
|
+
'aria-invalid'?: boolean;
|
|
1135
|
+
/**
|
|
1136
|
+
* Set the disabled state of the input
|
|
1137
|
+
*/
|
|
1138
|
+
disabled?: boolean;
|
|
1139
|
+
/**
|
|
1140
|
+
* If true, the input will fill the width of its parent
|
|
1141
|
+
*/
|
|
1142
|
+
fullWidth?: boolean;
|
|
1143
|
+
/**
|
|
1144
|
+
* If true, the input will use a monospace font
|
|
1145
|
+
*/
|
|
1146
|
+
monospace?: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1149
|
+
*/
|
|
1150
|
+
leftIcon?: JSX.Element | undefined;
|
|
1151
|
+
/**
|
|
1152
|
+
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1153
|
+
*/
|
|
1154
|
+
rightIcon?: JSX.Element | undefined;
|
|
1155
|
+
/**
|
|
1156
|
+
* The type of the input
|
|
1157
|
+
*/
|
|
1158
|
+
type?: "email" | "multiline" | "number" | "phone" | "search" | "text" | "url";
|
|
1159
|
+
} & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
1160
|
+
|
|
1040
1161
|
type LabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
1041
1162
|
/**
|
|
1042
1163
|
* Pass an arbitrary child node
|
|
@@ -1855,68 +1976,4 @@ declare const WistiaLogo: {
|
|
|
1855
1976
|
displayName: string;
|
|
1856
1977
|
};
|
|
1857
1978
|
|
|
1858
|
-
type InputProps
|
|
1859
|
-
/**
|
|
1860
|
-
* Sets the validity status of the input
|
|
1861
|
-
*/
|
|
1862
|
-
'aria-invalid'?: boolean;
|
|
1863
|
-
/**
|
|
1864
|
-
* Set the disabled state of the input
|
|
1865
|
-
*/
|
|
1866
|
-
disabled?: boolean;
|
|
1867
|
-
/**
|
|
1868
|
-
* If true, the input will fill the width of its parent
|
|
1869
|
-
*/
|
|
1870
|
-
fullWidth?: boolean;
|
|
1871
|
-
/**
|
|
1872
|
-
* If true, the input will use a monospace font
|
|
1873
|
-
*/
|
|
1874
|
-
monospace?: boolean;
|
|
1875
|
-
/**
|
|
1876
|
-
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1877
|
-
*/
|
|
1878
|
-
leftIcon?: JSX.Element | undefined;
|
|
1879
|
-
/**
|
|
1880
|
-
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1881
|
-
*/
|
|
1882
|
-
rightIcon?: JSX.Element | undefined;
|
|
1883
|
-
/**
|
|
1884
|
-
* The type of the input
|
|
1885
|
-
*/
|
|
1886
|
-
type?: 'email' | 'multiline' | 'number' | 'phone' | 'search' | 'text' | 'url';
|
|
1887
|
-
};
|
|
1888
|
-
/**
|
|
1889
|
-
* Component description goes here
|
|
1890
|
-
*/
|
|
1891
|
-
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "type"> & {
|
|
1892
|
-
/**
|
|
1893
|
-
* Sets the validity status of the input
|
|
1894
|
-
*/
|
|
1895
|
-
'aria-invalid'?: boolean;
|
|
1896
|
-
/**
|
|
1897
|
-
* Set the disabled state of the input
|
|
1898
|
-
*/
|
|
1899
|
-
disabled?: boolean;
|
|
1900
|
-
/**
|
|
1901
|
-
* If true, the input will fill the width of its parent
|
|
1902
|
-
*/
|
|
1903
|
-
fullWidth?: boolean;
|
|
1904
|
-
/**
|
|
1905
|
-
* If true, the input will use a monospace font
|
|
1906
|
-
*/
|
|
1907
|
-
monospace?: boolean;
|
|
1908
|
-
/**
|
|
1909
|
-
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1910
|
-
*/
|
|
1911
|
-
leftIcon?: JSX.Element | undefined;
|
|
1912
|
-
/**
|
|
1913
|
-
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1914
|
-
*/
|
|
1915
|
-
rightIcon?: JSX.Element | undefined;
|
|
1916
|
-
/**
|
|
1917
|
-
* The type of the input
|
|
1918
|
-
*/
|
|
1919
|
-
type?: "email" | "multiline" | "number" | "phone" | "search" | "text" | "url";
|
|
1920
|
-
} & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
1921
|
-
|
|
1922
|
-
export { Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useFormState, useMq, useToast, useWindowSize };
|
|
1979
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useFormState, useMq, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ReactNode, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1,
|
|
3
|
+
import { ReactNode, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1, InputHTMLAttributes, RefObject } from 'react';
|
|
4
4
|
import { LinkProps as LinkProps$1 } from 'react-router-dom';
|
|
5
5
|
import * as styled_components from 'styled-components';
|
|
6
6
|
import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
|
|
@@ -243,6 +243,63 @@ type AriaLiveContextType = {
|
|
|
243
243
|
};
|
|
244
244
|
declare const useAriaLive: () => AriaLiveContextType;
|
|
245
245
|
|
|
246
|
+
type ActionButtonProps = {
|
|
247
|
+
/**
|
|
248
|
+
* The Icon component to use, e.g. `<Icon type="favorite" />`
|
|
249
|
+
*/
|
|
250
|
+
icon: JSX.Element;
|
|
251
|
+
/**
|
|
252
|
+
* Disables the button
|
|
253
|
+
*/
|
|
254
|
+
disabled?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
257
|
+
*/
|
|
258
|
+
hoverColorScheme?: ColorSchemeTypes;
|
|
259
|
+
/**
|
|
260
|
+
* Changes the secondary icon for different use cases
|
|
261
|
+
*/
|
|
262
|
+
variant?: 'default' | 'gated' | 'menu-down' | 'menu-up';
|
|
263
|
+
} & (Omit<ButtonAsButtonProps, 'fullWidth' | 'isLoading' | 'leftIcon' | 'rightIcon' | 'size' | 'unstyled' | 'variant'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'isLoading' | 'leftIcon' | 'rightIcon' | 'size' | 'unstyled' | 'variant'>);
|
|
264
|
+
/**
|
|
265
|
+
* Action Button component is used as one of a group of main actions on the page.
|
|
266
|
+
*/
|
|
267
|
+
declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
268
|
+
/**
|
|
269
|
+
* The Icon component to use, e.g. `<Icon type="favorite" />`
|
|
270
|
+
*/
|
|
271
|
+
icon: JSX.Element;
|
|
272
|
+
/**
|
|
273
|
+
* Disables the button
|
|
274
|
+
*/
|
|
275
|
+
disabled?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
278
|
+
*/
|
|
279
|
+
hoverColorScheme?: ColorSchemeTypes;
|
|
280
|
+
/**
|
|
281
|
+
* Changes the secondary icon for different use cases
|
|
282
|
+
*/
|
|
283
|
+
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
284
|
+
} & Omit<ButtonAsButtonProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref"> | Omit<{
|
|
285
|
+
/**
|
|
286
|
+
* The Icon component to use, e.g. `<Icon type="favorite" />`
|
|
287
|
+
*/
|
|
288
|
+
icon: JSX.Element;
|
|
289
|
+
/**
|
|
290
|
+
* Disables the button
|
|
291
|
+
*/
|
|
292
|
+
disabled?: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
295
|
+
*/
|
|
296
|
+
hoverColorScheme?: ColorSchemeTypes;
|
|
297
|
+
/**
|
|
298
|
+
* Changes the secondary icon for different use cases
|
|
299
|
+
*/
|
|
300
|
+
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
301
|
+
} & Omit<ButtonAsLinkProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
302
|
+
|
|
246
303
|
type AvatarInstanceType = 'image' | 'initials';
|
|
247
304
|
type AvatarProps = ComponentPropsWithoutRef<'div'> & {
|
|
248
305
|
/**
|
|
@@ -1037,6 +1094,70 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1037
1094
|
children: JSX.Element;
|
|
1038
1095
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1039
1096
|
|
|
1097
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1098
|
+
/**
|
|
1099
|
+
* Sets the validity status of the input
|
|
1100
|
+
*/
|
|
1101
|
+
'aria-invalid'?: boolean;
|
|
1102
|
+
/**
|
|
1103
|
+
* Set the disabled state of the input
|
|
1104
|
+
*/
|
|
1105
|
+
disabled?: boolean;
|
|
1106
|
+
/**
|
|
1107
|
+
* If true, the input will fill the width of its parent
|
|
1108
|
+
*/
|
|
1109
|
+
fullWidth?: boolean;
|
|
1110
|
+
/**
|
|
1111
|
+
* If true, the input will use a monospace font
|
|
1112
|
+
*/
|
|
1113
|
+
monospace?: boolean;
|
|
1114
|
+
/**
|
|
1115
|
+
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1116
|
+
*/
|
|
1117
|
+
leftIcon?: JSX.Element | undefined;
|
|
1118
|
+
/**
|
|
1119
|
+
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1120
|
+
*/
|
|
1121
|
+
rightIcon?: JSX.Element | undefined;
|
|
1122
|
+
/**
|
|
1123
|
+
* The type of the input
|
|
1124
|
+
*/
|
|
1125
|
+
type?: 'email' | 'multiline' | 'number' | 'phone' | 'search' | 'text' | 'url';
|
|
1126
|
+
};
|
|
1127
|
+
/**
|
|
1128
|
+
* Component description goes here
|
|
1129
|
+
*/
|
|
1130
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "type"> & {
|
|
1131
|
+
/**
|
|
1132
|
+
* Sets the validity status of the input
|
|
1133
|
+
*/
|
|
1134
|
+
'aria-invalid'?: boolean;
|
|
1135
|
+
/**
|
|
1136
|
+
* Set the disabled state of the input
|
|
1137
|
+
*/
|
|
1138
|
+
disabled?: boolean;
|
|
1139
|
+
/**
|
|
1140
|
+
* If true, the input will fill the width of its parent
|
|
1141
|
+
*/
|
|
1142
|
+
fullWidth?: boolean;
|
|
1143
|
+
/**
|
|
1144
|
+
* If true, the input will use a monospace font
|
|
1145
|
+
*/
|
|
1146
|
+
monospace?: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1149
|
+
*/
|
|
1150
|
+
leftIcon?: JSX.Element | undefined;
|
|
1151
|
+
/**
|
|
1152
|
+
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1153
|
+
*/
|
|
1154
|
+
rightIcon?: JSX.Element | undefined;
|
|
1155
|
+
/**
|
|
1156
|
+
* The type of the input
|
|
1157
|
+
*/
|
|
1158
|
+
type?: "email" | "multiline" | "number" | "phone" | "search" | "text" | "url";
|
|
1159
|
+
} & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
1160
|
+
|
|
1040
1161
|
type LabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
1041
1162
|
/**
|
|
1042
1163
|
* Pass an arbitrary child node
|
|
@@ -1855,68 +1976,4 @@ declare const WistiaLogo: {
|
|
|
1855
1976
|
displayName: string;
|
|
1856
1977
|
};
|
|
1857
1978
|
|
|
1858
|
-
type InputProps
|
|
1859
|
-
/**
|
|
1860
|
-
* Sets the validity status of the input
|
|
1861
|
-
*/
|
|
1862
|
-
'aria-invalid'?: boolean;
|
|
1863
|
-
/**
|
|
1864
|
-
* Set the disabled state of the input
|
|
1865
|
-
*/
|
|
1866
|
-
disabled?: boolean;
|
|
1867
|
-
/**
|
|
1868
|
-
* If true, the input will fill the width of its parent
|
|
1869
|
-
*/
|
|
1870
|
-
fullWidth?: boolean;
|
|
1871
|
-
/**
|
|
1872
|
-
* If true, the input will use a monospace font
|
|
1873
|
-
*/
|
|
1874
|
-
monospace?: boolean;
|
|
1875
|
-
/**
|
|
1876
|
-
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1877
|
-
*/
|
|
1878
|
-
leftIcon?: JSX.Element | undefined;
|
|
1879
|
-
/**
|
|
1880
|
-
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1881
|
-
*/
|
|
1882
|
-
rightIcon?: JSX.Element | undefined;
|
|
1883
|
-
/**
|
|
1884
|
-
* The type of the input
|
|
1885
|
-
*/
|
|
1886
|
-
type?: 'email' | 'multiline' | 'number' | 'phone' | 'search' | 'text' | 'url';
|
|
1887
|
-
};
|
|
1888
|
-
/**
|
|
1889
|
-
* Component description goes here
|
|
1890
|
-
*/
|
|
1891
|
-
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "type"> & {
|
|
1892
|
-
/**
|
|
1893
|
-
* Sets the validity status of the input
|
|
1894
|
-
*/
|
|
1895
|
-
'aria-invalid'?: boolean;
|
|
1896
|
-
/**
|
|
1897
|
-
* Set the disabled state of the input
|
|
1898
|
-
*/
|
|
1899
|
-
disabled?: boolean;
|
|
1900
|
-
/**
|
|
1901
|
-
* If true, the input will fill the width of its parent
|
|
1902
|
-
*/
|
|
1903
|
-
fullWidth?: boolean;
|
|
1904
|
-
/**
|
|
1905
|
-
* If true, the input will use a monospace font
|
|
1906
|
-
*/
|
|
1907
|
-
monospace?: boolean;
|
|
1908
|
-
/**
|
|
1909
|
-
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1910
|
-
*/
|
|
1911
|
-
leftIcon?: JSX.Element | undefined;
|
|
1912
|
-
/**
|
|
1913
|
-
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1914
|
-
*/
|
|
1915
|
-
rightIcon?: JSX.Element | undefined;
|
|
1916
|
-
/**
|
|
1917
|
-
* The type of the input
|
|
1918
|
-
*/
|
|
1919
|
-
type?: "email" | "multiline" | "number" | "phone" | "search" | "text" | "url";
|
|
1920
|
-
} & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
1921
|
-
|
|
1922
|
-
export { Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useFormState, useMq, useToast, useWindowSize };
|
|
1979
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useFormState, useMq, useToast, useWindowSize };
|