@wistia/ui 0.4.8-beta.25eae1b2.b10e708 → 0.4.8-beta.39749e5f.7a8d5fd
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 +32 -254
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -123
- package/dist/index.d.ts +13 -123
- package/dist/index.mjs +85 -313
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
package/dist/index.d.mts
CHANGED
|
@@ -103,7 +103,7 @@ declare const ColorSchemeWrapper: {
|
|
|
103
103
|
type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
|
|
104
104
|
|
|
105
105
|
type LinkTypes = 'default' | 'email' | 'external' | 'phone';
|
|
106
|
-
type BaseProps
|
|
106
|
+
type BaseProps = {
|
|
107
107
|
/**
|
|
108
108
|
* A Promise to invoke before navigating to location.
|
|
109
109
|
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
@@ -123,14 +123,6 @@ type BaseProps$1 = {
|
|
|
123
123
|
* Disables the link
|
|
124
124
|
*/
|
|
125
125
|
disabled?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Icon to display on the left side of the link, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
128
|
-
*/
|
|
129
|
-
leftIcon?: JSX.Element | undefined;
|
|
130
|
-
/**
|
|
131
|
-
* Icon to display on the right side of the link, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
132
|
-
*/
|
|
133
|
-
rightIcon?: JSX.Element | undefined;
|
|
134
126
|
/**
|
|
135
127
|
* Type of link to display
|
|
136
128
|
*
|
|
@@ -144,11 +136,11 @@ type BaseProps$1 = {
|
|
|
144
136
|
*/
|
|
145
137
|
underline?: boolean;
|
|
146
138
|
};
|
|
147
|
-
type LinkAsLinkProps = BaseProps
|
|
139
|
+
type LinkAsLinkProps = BaseProps & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
|
|
148
140
|
href: string | undefined;
|
|
149
141
|
type?: LinkTypes;
|
|
150
142
|
};
|
|
151
|
-
type LinkAsButtonProps = BaseProps
|
|
143
|
+
type LinkAsButtonProps = BaseProps & ComponentPropsWithRef<'button'> & {
|
|
152
144
|
href?: never;
|
|
153
145
|
type?: 'button' | 'reset' | 'submit';
|
|
154
146
|
};
|
|
@@ -325,7 +317,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
325
317
|
* Changes the secondary icon for different use cases
|
|
326
318
|
*/
|
|
327
319
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
328
|
-
} & Omit<ButtonAsButtonProps, "size" | "
|
|
320
|
+
} & Omit<ButtonAsButtonProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref"> | Omit<{
|
|
329
321
|
/**
|
|
330
322
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
331
323
|
*/
|
|
@@ -342,7 +334,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
342
334
|
* Changes the secondary icon for different use cases
|
|
343
335
|
*/
|
|
344
336
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
345
|
-
} & Omit<ButtonAsLinkProps, "size" | "
|
|
337
|
+
} & Omit<ButtonAsLinkProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
346
338
|
|
|
347
339
|
type AvatarInstanceType = 'image' | 'initials';
|
|
348
340
|
type AvatarImageLoadStateType = 'error' | 'loaded' | 'loading';
|
|
@@ -1268,7 +1260,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1268
1260
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
1269
1261
|
*/
|
|
1270
1262
|
children: JSX.Element;
|
|
1271
|
-
} & Omit<ButtonAsButtonProps, "leftIcon" | "
|
|
1263
|
+
} & Omit<ButtonAsButtonProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref"> | Omit<{
|
|
1272
1264
|
/**
|
|
1273
1265
|
* Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
|
|
1274
1266
|
*/
|
|
@@ -1277,7 +1269,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1277
1269
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
1278
1270
|
*/
|
|
1279
1271
|
children: JSX.Element;
|
|
1280
|
-
} & Omit<ButtonAsLinkProps, "leftIcon" | "
|
|
1272
|
+
} & Omit<ButtonAsLinkProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1281
1273
|
|
|
1282
1274
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1283
1275
|
/**
|
|
@@ -2026,10 +2018,6 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
|
2026
2018
|
* `SegmentedControlItem`s that will be rendered in grouping
|
|
2027
2019
|
*/
|
|
2028
2020
|
children?: ReactNode;
|
|
2029
|
-
/**
|
|
2030
|
-
* Set the entire `SegmentedControl` to be disabled
|
|
2031
|
-
*/
|
|
2032
|
-
disabled?: boolean | undefined;
|
|
2033
2021
|
/**
|
|
2034
2022
|
* Force `SegmentedControl` to fill the width of it's container
|
|
2035
2023
|
*/
|
|
@@ -2048,17 +2036,7 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
|
2048
2036
|
*/
|
|
2049
2037
|
declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps>;
|
|
2050
2038
|
|
|
2051
|
-
type
|
|
2052
|
-
/**
|
|
2053
|
-
* Disable the `SegmentedControlItem`
|
|
2054
|
-
*/
|
|
2055
|
-
disabled?: boolean | undefined;
|
|
2056
|
-
/**
|
|
2057
|
-
* The value of the item
|
|
2058
|
-
*/
|
|
2059
|
-
value: string;
|
|
2060
|
-
};
|
|
2061
|
-
type IconWithLabel = {
|
|
2039
|
+
type SegmentedControlItemProps = {
|
|
2062
2040
|
/**
|
|
2063
2041
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2064
2042
|
*/
|
|
@@ -2066,30 +2044,13 @@ type IconWithLabel = {
|
|
|
2066
2044
|
/**
|
|
2067
2045
|
* The label of the item
|
|
2068
2046
|
*/
|
|
2069
|
-
label?:
|
|
2070
|
-
'aria-label'?: never;
|
|
2071
|
-
};
|
|
2072
|
-
type IconWithAriaLabel = {
|
|
2073
|
-
/**
|
|
2074
|
-
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2075
|
-
*/
|
|
2076
|
-
icon?: JSX.Element;
|
|
2077
|
-
/**
|
|
2078
|
-
* Use this when displaying an icon without a label
|
|
2079
|
-
*/
|
|
2080
|
-
'aria-label'?: string | undefined;
|
|
2081
|
-
label?: never;
|
|
2082
|
-
};
|
|
2083
|
-
type NoIcon = {
|
|
2084
|
-
icon?: undefined;
|
|
2047
|
+
label?: string | undefined;
|
|
2085
2048
|
/**
|
|
2086
|
-
* The
|
|
2049
|
+
* The value of the item
|
|
2087
2050
|
*/
|
|
2088
|
-
|
|
2089
|
-
'aria-label'?: never;
|
|
2051
|
+
value: string;
|
|
2090
2052
|
};
|
|
2091
|
-
|
|
2092
|
-
declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2053
|
+
declare const SegmentedControlItem: ({ icon, label, value, }: SegmentedControlItemProps) => JSX.Element;
|
|
2093
2054
|
|
|
2094
2055
|
type StackProps = {
|
|
2095
2056
|
/**
|
|
@@ -2247,75 +2208,4 @@ declare const WistiaLogo: {
|
|
|
2247
2208
|
displayName: string;
|
|
2248
2209
|
};
|
|
2249
2210
|
|
|
2250
|
-
type
|
|
2251
|
-
/**
|
|
2252
|
-
* Sets the validity status of the input
|
|
2253
|
-
*
|
|
2254
|
-
* @default false
|
|
2255
|
-
*/
|
|
2256
|
-
'aria-invalid'?: boolean;
|
|
2257
|
-
/**
|
|
2258
|
-
* A group of `Option` or `OptionGroup`s
|
|
2259
|
-
*/
|
|
2260
|
-
children: ReactNode;
|
|
2261
|
-
colorScheme?: ColorSchemeTypes;
|
|
2262
|
-
/**
|
|
2263
|
-
* When true, the select can't be interacted with.
|
|
2264
|
-
*
|
|
2265
|
-
* @default false
|
|
2266
|
-
*/
|
|
2267
|
-
disabled?: boolean;
|
|
2268
|
-
/**
|
|
2269
|
-
* If true, the select will fill its container
|
|
2270
|
-
*/
|
|
2271
|
-
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2272
|
-
/**
|
|
2273
|
-
* Called when a value is changed.
|
|
2274
|
-
*/
|
|
2275
|
-
onChange?: (value: string) => void;
|
|
2276
|
-
/**
|
|
2277
|
-
* Text shown when no value is selected
|
|
2278
|
-
*/
|
|
2279
|
-
placeholder?: string;
|
|
2280
|
-
/**
|
|
2281
|
-
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2282
|
-
*/
|
|
2283
|
-
value?: string;
|
|
2284
|
-
};
|
|
2285
|
-
/**
|
|
2286
|
-
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2287
|
-
*/
|
|
2288
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2289
|
-
|
|
2290
|
-
type SelectOptionProps = {
|
|
2291
|
-
/**
|
|
2292
|
-
* The visual content of the select
|
|
2293
|
-
*/
|
|
2294
|
-
children: ReactNode;
|
|
2295
|
-
/**
|
|
2296
|
-
* The value to set
|
|
2297
|
-
*/
|
|
2298
|
-
value: string;
|
|
2299
|
-
/**
|
|
2300
|
-
* When true, this option will not be selectable
|
|
2301
|
-
*
|
|
2302
|
-
* @default false
|
|
2303
|
-
*/
|
|
2304
|
-
disabled?: boolean;
|
|
2305
|
-
/**
|
|
2306
|
-
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2307
|
-
* Use this when the content is complex, or you have non-textual content inside.
|
|
2308
|
-
*/
|
|
2309
|
-
textValue?: string;
|
|
2310
|
-
};
|
|
2311
|
-
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2312
|
-
|
|
2313
|
-
type SelectOptionGroupProps = {
|
|
2314
|
-
/** The label of the group */
|
|
2315
|
-
label: string;
|
|
2316
|
-
/** At least one `Option` */
|
|
2317
|
-
children: ReactNode;
|
|
2318
|
-
};
|
|
2319
|
-
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2320
|
-
|
|
2321
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, 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, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
|
2211
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, 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, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ declare const ColorSchemeWrapper: {
|
|
|
103
103
|
type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
|
|
104
104
|
|
|
105
105
|
type LinkTypes = 'default' | 'email' | 'external' | 'phone';
|
|
106
|
-
type BaseProps
|
|
106
|
+
type BaseProps = {
|
|
107
107
|
/**
|
|
108
108
|
* A Promise to invoke before navigating to location.
|
|
109
109
|
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
@@ -123,14 +123,6 @@ type BaseProps$1 = {
|
|
|
123
123
|
* Disables the link
|
|
124
124
|
*/
|
|
125
125
|
disabled?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Icon to display on the left side of the link, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
128
|
-
*/
|
|
129
|
-
leftIcon?: JSX.Element | undefined;
|
|
130
|
-
/**
|
|
131
|
-
* Icon to display on the right side of the link, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
132
|
-
*/
|
|
133
|
-
rightIcon?: JSX.Element | undefined;
|
|
134
126
|
/**
|
|
135
127
|
* Type of link to display
|
|
136
128
|
*
|
|
@@ -144,11 +136,11 @@ type BaseProps$1 = {
|
|
|
144
136
|
*/
|
|
145
137
|
underline?: boolean;
|
|
146
138
|
};
|
|
147
|
-
type LinkAsLinkProps = BaseProps
|
|
139
|
+
type LinkAsLinkProps = BaseProps & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
|
|
148
140
|
href: string | undefined;
|
|
149
141
|
type?: LinkTypes;
|
|
150
142
|
};
|
|
151
|
-
type LinkAsButtonProps = BaseProps
|
|
143
|
+
type LinkAsButtonProps = BaseProps & ComponentPropsWithRef<'button'> & {
|
|
152
144
|
href?: never;
|
|
153
145
|
type?: 'button' | 'reset' | 'submit';
|
|
154
146
|
};
|
|
@@ -325,7 +317,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
325
317
|
* Changes the secondary icon for different use cases
|
|
326
318
|
*/
|
|
327
319
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
328
|
-
} & Omit<ButtonAsButtonProps, "size" | "
|
|
320
|
+
} & Omit<ButtonAsButtonProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref"> | Omit<{
|
|
329
321
|
/**
|
|
330
322
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
331
323
|
*/
|
|
@@ -342,7 +334,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
342
334
|
* Changes the secondary icon for different use cases
|
|
343
335
|
*/
|
|
344
336
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
345
|
-
} & Omit<ButtonAsLinkProps, "size" | "
|
|
337
|
+
} & Omit<ButtonAsLinkProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
346
338
|
|
|
347
339
|
type AvatarInstanceType = 'image' | 'initials';
|
|
348
340
|
type AvatarImageLoadStateType = 'error' | 'loaded' | 'loading';
|
|
@@ -1268,7 +1260,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1268
1260
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
1269
1261
|
*/
|
|
1270
1262
|
children: JSX.Element;
|
|
1271
|
-
} & Omit<ButtonAsButtonProps, "leftIcon" | "
|
|
1263
|
+
} & Omit<ButtonAsButtonProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref"> | Omit<{
|
|
1272
1264
|
/**
|
|
1273
1265
|
* Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
|
|
1274
1266
|
*/
|
|
@@ -1277,7 +1269,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1277
1269
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
1278
1270
|
*/
|
|
1279
1271
|
children: JSX.Element;
|
|
1280
|
-
} & Omit<ButtonAsLinkProps, "leftIcon" | "
|
|
1272
|
+
} & Omit<ButtonAsLinkProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1281
1273
|
|
|
1282
1274
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1283
1275
|
/**
|
|
@@ -2026,10 +2018,6 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
|
2026
2018
|
* `SegmentedControlItem`s that will be rendered in grouping
|
|
2027
2019
|
*/
|
|
2028
2020
|
children?: ReactNode;
|
|
2029
|
-
/**
|
|
2030
|
-
* Set the entire `SegmentedControl` to be disabled
|
|
2031
|
-
*/
|
|
2032
|
-
disabled?: boolean | undefined;
|
|
2033
2021
|
/**
|
|
2034
2022
|
* Force `SegmentedControl` to fill the width of it's container
|
|
2035
2023
|
*/
|
|
@@ -2048,17 +2036,7 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
|
2048
2036
|
*/
|
|
2049
2037
|
declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps>;
|
|
2050
2038
|
|
|
2051
|
-
type
|
|
2052
|
-
/**
|
|
2053
|
-
* Disable the `SegmentedControlItem`
|
|
2054
|
-
*/
|
|
2055
|
-
disabled?: boolean | undefined;
|
|
2056
|
-
/**
|
|
2057
|
-
* The value of the item
|
|
2058
|
-
*/
|
|
2059
|
-
value: string;
|
|
2060
|
-
};
|
|
2061
|
-
type IconWithLabel = {
|
|
2039
|
+
type SegmentedControlItemProps = {
|
|
2062
2040
|
/**
|
|
2063
2041
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2064
2042
|
*/
|
|
@@ -2066,30 +2044,13 @@ type IconWithLabel = {
|
|
|
2066
2044
|
/**
|
|
2067
2045
|
* The label of the item
|
|
2068
2046
|
*/
|
|
2069
|
-
label?:
|
|
2070
|
-
'aria-label'?: never;
|
|
2071
|
-
};
|
|
2072
|
-
type IconWithAriaLabel = {
|
|
2073
|
-
/**
|
|
2074
|
-
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2075
|
-
*/
|
|
2076
|
-
icon?: JSX.Element;
|
|
2077
|
-
/**
|
|
2078
|
-
* Use this when displaying an icon without a label
|
|
2079
|
-
*/
|
|
2080
|
-
'aria-label'?: string | undefined;
|
|
2081
|
-
label?: never;
|
|
2082
|
-
};
|
|
2083
|
-
type NoIcon = {
|
|
2084
|
-
icon?: undefined;
|
|
2047
|
+
label?: string | undefined;
|
|
2085
2048
|
/**
|
|
2086
|
-
* The
|
|
2049
|
+
* The value of the item
|
|
2087
2050
|
*/
|
|
2088
|
-
|
|
2089
|
-
'aria-label'?: never;
|
|
2051
|
+
value: string;
|
|
2090
2052
|
};
|
|
2091
|
-
|
|
2092
|
-
declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2053
|
+
declare const SegmentedControlItem: ({ icon, label, value, }: SegmentedControlItemProps) => JSX.Element;
|
|
2093
2054
|
|
|
2094
2055
|
type StackProps = {
|
|
2095
2056
|
/**
|
|
@@ -2247,75 +2208,4 @@ declare const WistiaLogo: {
|
|
|
2247
2208
|
displayName: string;
|
|
2248
2209
|
};
|
|
2249
2210
|
|
|
2250
|
-
type
|
|
2251
|
-
/**
|
|
2252
|
-
* Sets the validity status of the input
|
|
2253
|
-
*
|
|
2254
|
-
* @default false
|
|
2255
|
-
*/
|
|
2256
|
-
'aria-invalid'?: boolean;
|
|
2257
|
-
/**
|
|
2258
|
-
* A group of `Option` or `OptionGroup`s
|
|
2259
|
-
*/
|
|
2260
|
-
children: ReactNode;
|
|
2261
|
-
colorScheme?: ColorSchemeTypes;
|
|
2262
|
-
/**
|
|
2263
|
-
* When true, the select can't be interacted with.
|
|
2264
|
-
*
|
|
2265
|
-
* @default false
|
|
2266
|
-
*/
|
|
2267
|
-
disabled?: boolean;
|
|
2268
|
-
/**
|
|
2269
|
-
* If true, the select will fill its container
|
|
2270
|
-
*/
|
|
2271
|
-
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2272
|
-
/**
|
|
2273
|
-
* Called when a value is changed.
|
|
2274
|
-
*/
|
|
2275
|
-
onChange?: (value: string) => void;
|
|
2276
|
-
/**
|
|
2277
|
-
* Text shown when no value is selected
|
|
2278
|
-
*/
|
|
2279
|
-
placeholder?: string;
|
|
2280
|
-
/**
|
|
2281
|
-
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2282
|
-
*/
|
|
2283
|
-
value?: string;
|
|
2284
|
-
};
|
|
2285
|
-
/**
|
|
2286
|
-
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2287
|
-
*/
|
|
2288
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2289
|
-
|
|
2290
|
-
type SelectOptionProps = {
|
|
2291
|
-
/**
|
|
2292
|
-
* The visual content of the select
|
|
2293
|
-
*/
|
|
2294
|
-
children: ReactNode;
|
|
2295
|
-
/**
|
|
2296
|
-
* The value to set
|
|
2297
|
-
*/
|
|
2298
|
-
value: string;
|
|
2299
|
-
/**
|
|
2300
|
-
* When true, this option will not be selectable
|
|
2301
|
-
*
|
|
2302
|
-
* @default false
|
|
2303
|
-
*/
|
|
2304
|
-
disabled?: boolean;
|
|
2305
|
-
/**
|
|
2306
|
-
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2307
|
-
* Use this when the content is complex, or you have non-textual content inside.
|
|
2308
|
-
*/
|
|
2309
|
-
textValue?: string;
|
|
2310
|
-
};
|
|
2311
|
-
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2312
|
-
|
|
2313
|
-
type SelectOptionGroupProps = {
|
|
2314
|
-
/** The label of the group */
|
|
2315
|
-
label: string;
|
|
2316
|
-
/** At least one `Option` */
|
|
2317
|
-
children: ReactNode;
|
|
2318
|
-
};
|
|
2319
|
-
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2320
|
-
|
|
2321
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, 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, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
|
2211
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, 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, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|