@wistia/ui 0.0.23 → 0.0.25
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 +219 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +82 -19
- package/dist/index.d.ts +82 -19
- package/dist/index.mjs +215 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
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 } from 'react';
|
|
3
|
+
import { ReactNode, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1, InputHTMLAttributes } 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';
|
|
@@ -50,10 +50,14 @@ declare const useActiveMq: () => MediaQueryLabels[];
|
|
|
50
50
|
declare const colorSchemeOptions: readonly ["inherit", "default", "info", "success", "warning", "error", "blue", "green", "orange", "pink", "purple", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
|
|
51
51
|
type ColorSchemeTypes = (typeof colorSchemeOptions)[number];
|
|
52
52
|
type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
53
|
+
/**
|
|
54
|
+
* @ignore For use in creating navs - will override any colorScheme prop
|
|
55
|
+
*/
|
|
56
|
+
__nav?: boolean;
|
|
53
57
|
/**
|
|
54
58
|
* The color scheme to apply
|
|
55
59
|
*/
|
|
56
|
-
colorScheme
|
|
60
|
+
colorScheme?: ColorSchemeTypes;
|
|
57
61
|
/**
|
|
58
62
|
* Children
|
|
59
63
|
*/
|
|
@@ -63,7 +67,7 @@ type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
63
67
|
* A wrapper to apply a color scheme to its children.
|
|
64
68
|
*/
|
|
65
69
|
declare const ColorSchemeWrapper: {
|
|
66
|
-
({ colorScheme, children, ...otherProps }: ColorSchemeWrapperProps): JSX.Element;
|
|
70
|
+
({ __nav, colorScheme, children, ...otherProps }: ColorSchemeWrapperProps): JSX.Element;
|
|
67
71
|
displayName: string;
|
|
68
72
|
};
|
|
69
73
|
|
|
@@ -83,8 +87,7 @@ type BaseProps = {
|
|
|
83
87
|
*/
|
|
84
88
|
children: ReactNode;
|
|
85
89
|
/**
|
|
86
|
-
* Set the color scheme of the
|
|
87
|
-
* TODO - link to a color scheme page
|
|
90
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Link`
|
|
88
91
|
*/
|
|
89
92
|
colorScheme?: ColorSchemeTypes;
|
|
90
93
|
/**
|
|
@@ -139,8 +142,7 @@ type BaseButtonProps = {
|
|
|
139
142
|
*/
|
|
140
143
|
children?: ReactNode;
|
|
141
144
|
/**
|
|
142
|
-
* Set the color scheme of the
|
|
143
|
-
* TODO - link to a color scheme page
|
|
145
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Button`
|
|
144
146
|
*/
|
|
145
147
|
colorScheme?: ColorSchemeTypes;
|
|
146
148
|
/**
|
|
@@ -288,8 +290,7 @@ declare const Avatar: {
|
|
|
288
290
|
|
|
289
291
|
type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
290
292
|
/**
|
|
291
|
-
* Set the color scheme of the `Badge`
|
|
292
|
-
* TODO - link to a color scheme page
|
|
293
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Badge`
|
|
293
294
|
*/
|
|
294
295
|
colorScheme?: ColorSchemeTypes;
|
|
295
296
|
/**
|
|
@@ -306,8 +307,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
306
307
|
*/
|
|
307
308
|
declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
308
309
|
/**
|
|
309
|
-
* Set the color scheme of the `Badge`
|
|
310
|
-
* TODO - link to a color scheme page
|
|
310
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Badge`
|
|
311
311
|
*/
|
|
312
312
|
colorScheme?: ColorSchemeTypes;
|
|
313
313
|
/**
|
|
@@ -835,7 +835,7 @@ declare const Heading: (<C = "h1">(props: PolymorphicComponentProps<C, HeadingPr
|
|
|
835
835
|
*/
|
|
836
836
|
variant?: keyof typeof variantStyleMap$1;
|
|
837
837
|
} & {
|
|
838
|
-
renderAs: react.
|
|
838
|
+
renderAs: keyof react.JSX.IntrinsicElements | react.JSXElementConstructor<any>;
|
|
839
839
|
})>, never> & Record<string, never>;
|
|
840
840
|
|
|
841
841
|
declare const iconMap: {
|
|
@@ -1004,8 +1004,7 @@ declare const iconSizeMap: {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
1006
1006
|
/**
|
|
1007
|
-
* Set the color scheme of the
|
|
1008
|
-
* TODO - link to a color scheme page
|
|
1007
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Icon`
|
|
1009
1008
|
*/
|
|
1010
1009
|
colorScheme?: ColorSchemeTypes;
|
|
1011
1010
|
/**
|
|
@@ -1471,7 +1470,7 @@ declare const Text: (<C = "div">(props: PolymorphicComponentProps<C, TextProps>)
|
|
|
1471
1470
|
*/
|
|
1472
1471
|
variant?: keyof typeof variantStyleMap | undefined;
|
|
1473
1472
|
} & {
|
|
1474
|
-
renderAs: react.
|
|
1473
|
+
renderAs: keyof react.JSX.IntrinsicElements | react.JSXElementConstructor<any>;
|
|
1475
1474
|
})>, never> & Record<string, never>;
|
|
1476
1475
|
|
|
1477
1476
|
type MenuItemLabelProps = {
|
|
@@ -1698,12 +1697,12 @@ declare const Stack: (<C = "div">(props: PolymorphicComponentProps<C, StackProps
|
|
|
1698
1697
|
} & StackProps & {
|
|
1699
1698
|
ref?: any;
|
|
1700
1699
|
}) | (StackProps & {
|
|
1701
|
-
renderAs: react.
|
|
1700
|
+
renderAs: keyof react.JSX.IntrinsicElements | react.JSXElementConstructor<any>;
|
|
1702
1701
|
})>, never> & Record<string, never>;
|
|
1703
1702
|
|
|
1704
1703
|
type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
1705
1704
|
/**
|
|
1706
|
-
* Set the [color scheme](
|
|
1705
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Tag`
|
|
1707
1706
|
*/
|
|
1708
1707
|
colorScheme?: ColorSchemeTypes;
|
|
1709
1708
|
/**
|
|
@@ -1728,7 +1727,7 @@ type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1728
1727
|
*/
|
|
1729
1728
|
declare const Tag: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1730
1729
|
/**
|
|
1731
|
-
* Set the [color scheme](
|
|
1730
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Tag`
|
|
1732
1731
|
*/
|
|
1733
1732
|
colorScheme?: ColorSchemeTypes;
|
|
1734
1733
|
/**
|
|
@@ -1828,4 +1827,68 @@ declare const WistiaLogo: {
|
|
|
1828
1827
|
displayName: string;
|
|
1829
1828
|
};
|
|
1830
1829
|
|
|
1831
|
-
|
|
1830
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1831
|
+
/**
|
|
1832
|
+
* Sets the validity status of the input
|
|
1833
|
+
*/
|
|
1834
|
+
'aria-invalid'?: boolean;
|
|
1835
|
+
/**
|
|
1836
|
+
* Set the disabled state of the input
|
|
1837
|
+
*/
|
|
1838
|
+
disabled?: boolean;
|
|
1839
|
+
/**
|
|
1840
|
+
* If true, the input will fill the width of its parent
|
|
1841
|
+
*/
|
|
1842
|
+
fullWidth?: boolean;
|
|
1843
|
+
/**
|
|
1844
|
+
* If true, the input will use a monospace font
|
|
1845
|
+
*/
|
|
1846
|
+
monospace?: boolean;
|
|
1847
|
+
/**
|
|
1848
|
+
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1849
|
+
*/
|
|
1850
|
+
leftIcon?: JSX.Element | undefined;
|
|
1851
|
+
/**
|
|
1852
|
+
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1853
|
+
*/
|
|
1854
|
+
rightIcon?: JSX.Element | undefined;
|
|
1855
|
+
/**
|
|
1856
|
+
* The type of the input
|
|
1857
|
+
*/
|
|
1858
|
+
type?: 'email' | 'multiline' | 'number' | 'phone' | 'search' | 'text' | 'url';
|
|
1859
|
+
};
|
|
1860
|
+
/**
|
|
1861
|
+
* Component description goes here
|
|
1862
|
+
*/
|
|
1863
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "type"> & {
|
|
1864
|
+
/**
|
|
1865
|
+
* Sets the validity status of the input
|
|
1866
|
+
*/
|
|
1867
|
+
'aria-invalid'?: boolean;
|
|
1868
|
+
/**
|
|
1869
|
+
* Set the disabled state of the input
|
|
1870
|
+
*/
|
|
1871
|
+
disabled?: boolean;
|
|
1872
|
+
/**
|
|
1873
|
+
* If true, the input will fill the width of its parent
|
|
1874
|
+
*/
|
|
1875
|
+
fullWidth?: boolean;
|
|
1876
|
+
/**
|
|
1877
|
+
* If true, the input will use a monospace font
|
|
1878
|
+
*/
|
|
1879
|
+
monospace?: boolean;
|
|
1880
|
+
/**
|
|
1881
|
+
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1882
|
+
*/
|
|
1883
|
+
leftIcon?: JSX.Element | undefined;
|
|
1884
|
+
/**
|
|
1885
|
+
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1886
|
+
*/
|
|
1887
|
+
rightIcon?: JSX.Element | undefined;
|
|
1888
|
+
/**
|
|
1889
|
+
* The type of the input
|
|
1890
|
+
*/
|
|
1891
|
+
type?: "email" | "multiline" | "number" | "phone" | "search" | "text" | "url";
|
|
1892
|
+
} & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
1893
|
+
|
|
1894
|
+
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, 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 } from 'react';
|
|
3
|
+
import { ReactNode, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1, InputHTMLAttributes } 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';
|
|
@@ -50,10 +50,14 @@ declare const useActiveMq: () => MediaQueryLabels[];
|
|
|
50
50
|
declare const colorSchemeOptions: readonly ["inherit", "default", "info", "success", "warning", "error", "blue", "green", "orange", "pink", "purple", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
|
|
51
51
|
type ColorSchemeTypes = (typeof colorSchemeOptions)[number];
|
|
52
52
|
type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
53
|
+
/**
|
|
54
|
+
* @ignore For use in creating navs - will override any colorScheme prop
|
|
55
|
+
*/
|
|
56
|
+
__nav?: boolean;
|
|
53
57
|
/**
|
|
54
58
|
* The color scheme to apply
|
|
55
59
|
*/
|
|
56
|
-
colorScheme
|
|
60
|
+
colorScheme?: ColorSchemeTypes;
|
|
57
61
|
/**
|
|
58
62
|
* Children
|
|
59
63
|
*/
|
|
@@ -63,7 +67,7 @@ type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
63
67
|
* A wrapper to apply a color scheme to its children.
|
|
64
68
|
*/
|
|
65
69
|
declare const ColorSchemeWrapper: {
|
|
66
|
-
({ colorScheme, children, ...otherProps }: ColorSchemeWrapperProps): JSX.Element;
|
|
70
|
+
({ __nav, colorScheme, children, ...otherProps }: ColorSchemeWrapperProps): JSX.Element;
|
|
67
71
|
displayName: string;
|
|
68
72
|
};
|
|
69
73
|
|
|
@@ -83,8 +87,7 @@ type BaseProps = {
|
|
|
83
87
|
*/
|
|
84
88
|
children: ReactNode;
|
|
85
89
|
/**
|
|
86
|
-
* Set the color scheme of the
|
|
87
|
-
* TODO - link to a color scheme page
|
|
90
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Link`
|
|
88
91
|
*/
|
|
89
92
|
colorScheme?: ColorSchemeTypes;
|
|
90
93
|
/**
|
|
@@ -139,8 +142,7 @@ type BaseButtonProps = {
|
|
|
139
142
|
*/
|
|
140
143
|
children?: ReactNode;
|
|
141
144
|
/**
|
|
142
|
-
* Set the color scheme of the
|
|
143
|
-
* TODO - link to a color scheme page
|
|
145
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Button`
|
|
144
146
|
*/
|
|
145
147
|
colorScheme?: ColorSchemeTypes;
|
|
146
148
|
/**
|
|
@@ -288,8 +290,7 @@ declare const Avatar: {
|
|
|
288
290
|
|
|
289
291
|
type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
290
292
|
/**
|
|
291
|
-
* Set the color scheme of the `Badge`
|
|
292
|
-
* TODO - link to a color scheme page
|
|
293
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Badge`
|
|
293
294
|
*/
|
|
294
295
|
colorScheme?: ColorSchemeTypes;
|
|
295
296
|
/**
|
|
@@ -306,8 +307,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
306
307
|
*/
|
|
307
308
|
declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
308
309
|
/**
|
|
309
|
-
* Set the color scheme of the `Badge`
|
|
310
|
-
* TODO - link to a color scheme page
|
|
310
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Badge`
|
|
311
311
|
*/
|
|
312
312
|
colorScheme?: ColorSchemeTypes;
|
|
313
313
|
/**
|
|
@@ -835,7 +835,7 @@ declare const Heading: (<C = "h1">(props: PolymorphicComponentProps<C, HeadingPr
|
|
|
835
835
|
*/
|
|
836
836
|
variant?: keyof typeof variantStyleMap$1;
|
|
837
837
|
} & {
|
|
838
|
-
renderAs: react.
|
|
838
|
+
renderAs: keyof react.JSX.IntrinsicElements | react.JSXElementConstructor<any>;
|
|
839
839
|
})>, never> & Record<string, never>;
|
|
840
840
|
|
|
841
841
|
declare const iconMap: {
|
|
@@ -1004,8 +1004,7 @@ declare const iconSizeMap: {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
1006
1006
|
/**
|
|
1007
|
-
* Set the color scheme of the
|
|
1008
|
-
* TODO - link to a color scheme page
|
|
1007
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Icon`
|
|
1009
1008
|
*/
|
|
1010
1009
|
colorScheme?: ColorSchemeTypes;
|
|
1011
1010
|
/**
|
|
@@ -1471,7 +1470,7 @@ declare const Text: (<C = "div">(props: PolymorphicComponentProps<C, TextProps>)
|
|
|
1471
1470
|
*/
|
|
1472
1471
|
variant?: keyof typeof variantStyleMap | undefined;
|
|
1473
1472
|
} & {
|
|
1474
|
-
renderAs: react.
|
|
1473
|
+
renderAs: keyof react.JSX.IntrinsicElements | react.JSXElementConstructor<any>;
|
|
1475
1474
|
})>, never> & Record<string, never>;
|
|
1476
1475
|
|
|
1477
1476
|
type MenuItemLabelProps = {
|
|
@@ -1698,12 +1697,12 @@ declare const Stack: (<C = "div">(props: PolymorphicComponentProps<C, StackProps
|
|
|
1698
1697
|
} & StackProps & {
|
|
1699
1698
|
ref?: any;
|
|
1700
1699
|
}) | (StackProps & {
|
|
1701
|
-
renderAs: react.
|
|
1700
|
+
renderAs: keyof react.JSX.IntrinsicElements | react.JSXElementConstructor<any>;
|
|
1702
1701
|
})>, never> & Record<string, never>;
|
|
1703
1702
|
|
|
1704
1703
|
type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
1705
1704
|
/**
|
|
1706
|
-
* Set the [color scheme](
|
|
1705
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Tag`
|
|
1707
1706
|
*/
|
|
1708
1707
|
colorScheme?: ColorSchemeTypes;
|
|
1709
1708
|
/**
|
|
@@ -1728,7 +1727,7 @@ type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1728
1727
|
*/
|
|
1729
1728
|
declare const Tag: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1730
1729
|
/**
|
|
1731
|
-
* Set the [color scheme](
|
|
1730
|
+
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `Tag`
|
|
1732
1731
|
*/
|
|
1733
1732
|
colorScheme?: ColorSchemeTypes;
|
|
1734
1733
|
/**
|
|
@@ -1828,4 +1827,68 @@ declare const WistiaLogo: {
|
|
|
1828
1827
|
displayName: string;
|
|
1829
1828
|
};
|
|
1830
1829
|
|
|
1831
|
-
|
|
1830
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1831
|
+
/**
|
|
1832
|
+
* Sets the validity status of the input
|
|
1833
|
+
*/
|
|
1834
|
+
'aria-invalid'?: boolean;
|
|
1835
|
+
/**
|
|
1836
|
+
* Set the disabled state of the input
|
|
1837
|
+
*/
|
|
1838
|
+
disabled?: boolean;
|
|
1839
|
+
/**
|
|
1840
|
+
* If true, the input will fill the width of its parent
|
|
1841
|
+
*/
|
|
1842
|
+
fullWidth?: boolean;
|
|
1843
|
+
/**
|
|
1844
|
+
* If true, the input will use a monospace font
|
|
1845
|
+
*/
|
|
1846
|
+
monospace?: boolean;
|
|
1847
|
+
/**
|
|
1848
|
+
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1849
|
+
*/
|
|
1850
|
+
leftIcon?: JSX.Element | undefined;
|
|
1851
|
+
/**
|
|
1852
|
+
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1853
|
+
*/
|
|
1854
|
+
rightIcon?: JSX.Element | undefined;
|
|
1855
|
+
/**
|
|
1856
|
+
* The type of the input
|
|
1857
|
+
*/
|
|
1858
|
+
type?: 'email' | 'multiline' | 'number' | 'phone' | 'search' | 'text' | 'url';
|
|
1859
|
+
};
|
|
1860
|
+
/**
|
|
1861
|
+
* Component description goes here
|
|
1862
|
+
*/
|
|
1863
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "type"> & {
|
|
1864
|
+
/**
|
|
1865
|
+
* Sets the validity status of the input
|
|
1866
|
+
*/
|
|
1867
|
+
'aria-invalid'?: boolean;
|
|
1868
|
+
/**
|
|
1869
|
+
* Set the disabled state of the input
|
|
1870
|
+
*/
|
|
1871
|
+
disabled?: boolean;
|
|
1872
|
+
/**
|
|
1873
|
+
* If true, the input will fill the width of its parent
|
|
1874
|
+
*/
|
|
1875
|
+
fullWidth?: boolean;
|
|
1876
|
+
/**
|
|
1877
|
+
* If true, the input will use a monospace font
|
|
1878
|
+
*/
|
|
1879
|
+
monospace?: boolean;
|
|
1880
|
+
/**
|
|
1881
|
+
* Icon to display on the left side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1882
|
+
*/
|
|
1883
|
+
leftIcon?: JSX.Element | undefined;
|
|
1884
|
+
/**
|
|
1885
|
+
* Icon to display on the right side of the input, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1886
|
+
*/
|
|
1887
|
+
rightIcon?: JSX.Element | undefined;
|
|
1888
|
+
/**
|
|
1889
|
+
* The type of the input
|
|
1890
|
+
*/
|
|
1891
|
+
type?: "email" | "multiline" | "number" | "phone" | "search" | "text" | "url";
|
|
1892
|
+
} & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
1893
|
+
|
|
1894
|
+
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, 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 };
|