@wistia/ui 0.5.4 → 0.5.5-beta.72ca8428.4bdcb4b
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 +674 -610
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +113 -72
- package/dist/index.d.ts +113 -72
- package/dist/index.mjs +577 -516
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
import { LinkProps as LinkProps$1 } from 'react-router-dom';
|
|
5
|
+
import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
|
|
5
6
|
import * as styled_components from 'styled-components';
|
|
6
7
|
import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
|
|
7
8
|
import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
|
|
@@ -763,6 +764,46 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
|
763
764
|
};
|
|
764
765
|
declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
765
766
|
|
|
767
|
+
type CollapsibleProps = {
|
|
768
|
+
/**
|
|
769
|
+
* `CollapsibleTrigger` and `CollapsibleContent` must be included somewhere inside these children.
|
|
770
|
+
*/
|
|
771
|
+
children: ReactNode;
|
|
772
|
+
/**
|
|
773
|
+
* Whether the collapsible content is open or closed. If not provided, the collapsible will be uncontrolled.
|
|
774
|
+
*/
|
|
775
|
+
isOpen?: boolean;
|
|
776
|
+
/**
|
|
777
|
+
* Callback for when the trigger is toggled. If not provided, the collapsible will be uncontrolled.
|
|
778
|
+
*/
|
|
779
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
780
|
+
};
|
|
781
|
+
/**
|
|
782
|
+
* Toggle the visibility of content with a trigger.
|
|
783
|
+
*/
|
|
784
|
+
declare const Collapsible: {
|
|
785
|
+
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX.Element;
|
|
786
|
+
displayName: string;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
type CollapsibleTriggerProps = {
|
|
790
|
+
/**
|
|
791
|
+
* A trigger element that will toggle the collapsible content.
|
|
792
|
+
* Usually a [Button](?path=/docs/components-button--docs).
|
|
793
|
+
*/
|
|
794
|
+
children: ReactNode;
|
|
795
|
+
};
|
|
796
|
+
declare const CollapsibleTrigger: ({ children }: CollapsibleTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
797
|
+
|
|
798
|
+
type CollapsibleContentProps = {
|
|
799
|
+
clamp?: number;
|
|
800
|
+
/**
|
|
801
|
+
* The content that will be hidden when `Collapsible` is closed.
|
|
802
|
+
*/
|
|
803
|
+
children: CollapsibleContentProps$1['children'];
|
|
804
|
+
};
|
|
805
|
+
declare const CollapsibleContent: ({ clamp, children }: CollapsibleContentProps) => react_jsx_runtime.JSX.Element;
|
|
806
|
+
|
|
766
807
|
type DataCardProps = ComponentPropsWithoutRef<'div'> & {
|
|
767
808
|
/**
|
|
768
809
|
* Label text displayed above the value
|
|
@@ -2052,77 +2093,6 @@ type NoIcon$1 = {
|
|
|
2052
2093
|
type SegmentedControlItemProps = BaseProps$1 & (IconWithAriaLabel$1 | IconWithLabel$1 | NoIcon$1);
|
|
2053
2094
|
declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2054
2095
|
|
|
2055
|
-
type SelectProps = {
|
|
2056
|
-
/**
|
|
2057
|
-
* Sets the validity status of the input
|
|
2058
|
-
*
|
|
2059
|
-
* @default false
|
|
2060
|
-
*/
|
|
2061
|
-
'aria-invalid'?: boolean;
|
|
2062
|
-
/**
|
|
2063
|
-
* A group of `Option` or `OptionGroup`s
|
|
2064
|
-
*/
|
|
2065
|
-
children: ReactNode;
|
|
2066
|
-
colorScheme?: ColorSchemeTypes;
|
|
2067
|
-
/**
|
|
2068
|
-
* When true, the select can't be interacted with.
|
|
2069
|
-
*
|
|
2070
|
-
* @default false
|
|
2071
|
-
*/
|
|
2072
|
-
disabled?: boolean;
|
|
2073
|
-
/**
|
|
2074
|
-
* If true, the select will fill its container
|
|
2075
|
-
*/
|
|
2076
|
-
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2077
|
-
/**
|
|
2078
|
-
* Called when a value is changed.
|
|
2079
|
-
*/
|
|
2080
|
-
onChange?: (value: string) => void;
|
|
2081
|
-
/**
|
|
2082
|
-
* Text shown when no value is selected
|
|
2083
|
-
*/
|
|
2084
|
-
placeholder?: string;
|
|
2085
|
-
/**
|
|
2086
|
-
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2087
|
-
*/
|
|
2088
|
-
value?: string;
|
|
2089
|
-
};
|
|
2090
|
-
/**
|
|
2091
|
-
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2092
|
-
*/
|
|
2093
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2094
|
-
|
|
2095
|
-
type SelectOptionProps = {
|
|
2096
|
-
/**
|
|
2097
|
-
* The visual content of the select
|
|
2098
|
-
*/
|
|
2099
|
-
children: ReactNode;
|
|
2100
|
-
/**
|
|
2101
|
-
* The value to set
|
|
2102
|
-
*/
|
|
2103
|
-
value: string;
|
|
2104
|
-
/**
|
|
2105
|
-
* When true, this option will not be selectable
|
|
2106
|
-
*
|
|
2107
|
-
* @default false
|
|
2108
|
-
*/
|
|
2109
|
-
disabled?: boolean;
|
|
2110
|
-
/**
|
|
2111
|
-
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2112
|
-
* Use this when the content is complex, or you have non-textual content inside.
|
|
2113
|
-
*/
|
|
2114
|
-
textValue?: string;
|
|
2115
|
-
};
|
|
2116
|
-
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2117
|
-
|
|
2118
|
-
type SelectOptionGroupProps = {
|
|
2119
|
-
/** The label of the group */
|
|
2120
|
-
label: string;
|
|
2121
|
-
/** At least one `Option` */
|
|
2122
|
-
children: ReactNode;
|
|
2123
|
-
};
|
|
2124
|
-
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2125
|
-
|
|
2126
2096
|
type StackProps = {
|
|
2127
2097
|
/**
|
|
2128
2098
|
* Optional children
|
|
@@ -2364,4 +2334,75 @@ declare const WistiaLogo: {
|
|
|
2364
2334
|
displayName: string;
|
|
2365
2335
|
};
|
|
2366
2336
|
|
|
2367
|
-
|
|
2337
|
+
type SelectProps = {
|
|
2338
|
+
/**
|
|
2339
|
+
* Sets the validity status of the input
|
|
2340
|
+
*
|
|
2341
|
+
* @default false
|
|
2342
|
+
*/
|
|
2343
|
+
'aria-invalid'?: boolean;
|
|
2344
|
+
/**
|
|
2345
|
+
* A group of `Option` or `OptionGroup`s
|
|
2346
|
+
*/
|
|
2347
|
+
children: ReactNode;
|
|
2348
|
+
colorScheme?: ColorSchemeTypes;
|
|
2349
|
+
/**
|
|
2350
|
+
* When true, the select can't be interacted with.
|
|
2351
|
+
*
|
|
2352
|
+
* @default false
|
|
2353
|
+
*/
|
|
2354
|
+
disabled?: boolean;
|
|
2355
|
+
/**
|
|
2356
|
+
* If true, the select will fill its container
|
|
2357
|
+
*/
|
|
2358
|
+
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2359
|
+
/**
|
|
2360
|
+
* Called when a value is changed.
|
|
2361
|
+
*/
|
|
2362
|
+
onChange?: (value: string) => void;
|
|
2363
|
+
/**
|
|
2364
|
+
* Text shown when no value is selected
|
|
2365
|
+
*/
|
|
2366
|
+
placeholder?: string;
|
|
2367
|
+
/**
|
|
2368
|
+
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2369
|
+
*/
|
|
2370
|
+
value?: string;
|
|
2371
|
+
};
|
|
2372
|
+
/**
|
|
2373
|
+
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2374
|
+
*/
|
|
2375
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2376
|
+
|
|
2377
|
+
type SelectOptionProps = {
|
|
2378
|
+
/**
|
|
2379
|
+
* The visual content of the select
|
|
2380
|
+
*/
|
|
2381
|
+
children: ReactNode;
|
|
2382
|
+
/**
|
|
2383
|
+
* The value to set
|
|
2384
|
+
*/
|
|
2385
|
+
value: string;
|
|
2386
|
+
/**
|
|
2387
|
+
* When true, this option will not be selectable
|
|
2388
|
+
*
|
|
2389
|
+
* @default false
|
|
2390
|
+
*/
|
|
2391
|
+
disabled?: boolean;
|
|
2392
|
+
/**
|
|
2393
|
+
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2394
|
+
* Use this when the content is complex, or you have non-textual content inside.
|
|
2395
|
+
*/
|
|
2396
|
+
textValue?: string;
|
|
2397
|
+
};
|
|
2398
|
+
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2399
|
+
|
|
2400
|
+
type SelectOptionGroupProps = {
|
|
2401
|
+
/** The label of the group */
|
|
2402
|
+
label: string;
|
|
2403
|
+
/** At least one `Option` */
|
|
2404
|
+
children: ReactNode;
|
|
2405
|
+
};
|
|
2406
|
+
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2407
|
+
|
|
2408
|
+
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, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, 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, Tab, type TabProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
import { LinkProps as LinkProps$1 } from 'react-router-dom';
|
|
5
|
+
import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
|
|
5
6
|
import * as styled_components from 'styled-components';
|
|
6
7
|
import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
|
|
7
8
|
import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
|
|
@@ -763,6 +764,46 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
|
763
764
|
};
|
|
764
765
|
declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
765
766
|
|
|
767
|
+
type CollapsibleProps = {
|
|
768
|
+
/**
|
|
769
|
+
* `CollapsibleTrigger` and `CollapsibleContent` must be included somewhere inside these children.
|
|
770
|
+
*/
|
|
771
|
+
children: ReactNode;
|
|
772
|
+
/**
|
|
773
|
+
* Whether the collapsible content is open or closed. If not provided, the collapsible will be uncontrolled.
|
|
774
|
+
*/
|
|
775
|
+
isOpen?: boolean;
|
|
776
|
+
/**
|
|
777
|
+
* Callback for when the trigger is toggled. If not provided, the collapsible will be uncontrolled.
|
|
778
|
+
*/
|
|
779
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
780
|
+
};
|
|
781
|
+
/**
|
|
782
|
+
* Toggle the visibility of content with a trigger.
|
|
783
|
+
*/
|
|
784
|
+
declare const Collapsible: {
|
|
785
|
+
({ children, isOpen, onOpenChange, }: CollapsibleProps): JSX.Element;
|
|
786
|
+
displayName: string;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
type CollapsibleTriggerProps = {
|
|
790
|
+
/**
|
|
791
|
+
* A trigger element that will toggle the collapsible content.
|
|
792
|
+
* Usually a [Button](?path=/docs/components-button--docs).
|
|
793
|
+
*/
|
|
794
|
+
children: ReactNode;
|
|
795
|
+
};
|
|
796
|
+
declare const CollapsibleTrigger: ({ children }: CollapsibleTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
797
|
+
|
|
798
|
+
type CollapsibleContentProps = {
|
|
799
|
+
clamp?: number;
|
|
800
|
+
/**
|
|
801
|
+
* The content that will be hidden when `Collapsible` is closed.
|
|
802
|
+
*/
|
|
803
|
+
children: CollapsibleContentProps$1['children'];
|
|
804
|
+
};
|
|
805
|
+
declare const CollapsibleContent: ({ clamp, children }: CollapsibleContentProps) => react_jsx_runtime.JSX.Element;
|
|
806
|
+
|
|
766
807
|
type DataCardProps = ComponentPropsWithoutRef<'div'> & {
|
|
767
808
|
/**
|
|
768
809
|
* Label text displayed above the value
|
|
@@ -2052,77 +2093,6 @@ type NoIcon$1 = {
|
|
|
2052
2093
|
type SegmentedControlItemProps = BaseProps$1 & (IconWithAriaLabel$1 | IconWithLabel$1 | NoIcon$1);
|
|
2053
2094
|
declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2054
2095
|
|
|
2055
|
-
type SelectProps = {
|
|
2056
|
-
/**
|
|
2057
|
-
* Sets the validity status of the input
|
|
2058
|
-
*
|
|
2059
|
-
* @default false
|
|
2060
|
-
*/
|
|
2061
|
-
'aria-invalid'?: boolean;
|
|
2062
|
-
/**
|
|
2063
|
-
* A group of `Option` or `OptionGroup`s
|
|
2064
|
-
*/
|
|
2065
|
-
children: ReactNode;
|
|
2066
|
-
colorScheme?: ColorSchemeTypes;
|
|
2067
|
-
/**
|
|
2068
|
-
* When true, the select can't be interacted with.
|
|
2069
|
-
*
|
|
2070
|
-
* @default false
|
|
2071
|
-
*/
|
|
2072
|
-
disabled?: boolean;
|
|
2073
|
-
/**
|
|
2074
|
-
* If true, the select will fill its container
|
|
2075
|
-
*/
|
|
2076
|
-
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2077
|
-
/**
|
|
2078
|
-
* Called when a value is changed.
|
|
2079
|
-
*/
|
|
2080
|
-
onChange?: (value: string) => void;
|
|
2081
|
-
/**
|
|
2082
|
-
* Text shown when no value is selected
|
|
2083
|
-
*/
|
|
2084
|
-
placeholder?: string;
|
|
2085
|
-
/**
|
|
2086
|
-
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2087
|
-
*/
|
|
2088
|
-
value?: string;
|
|
2089
|
-
};
|
|
2090
|
-
/**
|
|
2091
|
-
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2092
|
-
*/
|
|
2093
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2094
|
-
|
|
2095
|
-
type SelectOptionProps = {
|
|
2096
|
-
/**
|
|
2097
|
-
* The visual content of the select
|
|
2098
|
-
*/
|
|
2099
|
-
children: ReactNode;
|
|
2100
|
-
/**
|
|
2101
|
-
* The value to set
|
|
2102
|
-
*/
|
|
2103
|
-
value: string;
|
|
2104
|
-
/**
|
|
2105
|
-
* When true, this option will not be selectable
|
|
2106
|
-
*
|
|
2107
|
-
* @default false
|
|
2108
|
-
*/
|
|
2109
|
-
disabled?: boolean;
|
|
2110
|
-
/**
|
|
2111
|
-
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2112
|
-
* Use this when the content is complex, or you have non-textual content inside.
|
|
2113
|
-
*/
|
|
2114
|
-
textValue?: string;
|
|
2115
|
-
};
|
|
2116
|
-
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2117
|
-
|
|
2118
|
-
type SelectOptionGroupProps = {
|
|
2119
|
-
/** The label of the group */
|
|
2120
|
-
label: string;
|
|
2121
|
-
/** At least one `Option` */
|
|
2122
|
-
children: ReactNode;
|
|
2123
|
-
};
|
|
2124
|
-
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2125
|
-
|
|
2126
2096
|
type StackProps = {
|
|
2127
2097
|
/**
|
|
2128
2098
|
* Optional children
|
|
@@ -2364,4 +2334,75 @@ declare const WistiaLogo: {
|
|
|
2364
2334
|
displayName: string;
|
|
2365
2335
|
};
|
|
2366
2336
|
|
|
2367
|
-
|
|
2337
|
+
type SelectProps = {
|
|
2338
|
+
/**
|
|
2339
|
+
* Sets the validity status of the input
|
|
2340
|
+
*
|
|
2341
|
+
* @default false
|
|
2342
|
+
*/
|
|
2343
|
+
'aria-invalid'?: boolean;
|
|
2344
|
+
/**
|
|
2345
|
+
* A group of `Option` or `OptionGroup`s
|
|
2346
|
+
*/
|
|
2347
|
+
children: ReactNode;
|
|
2348
|
+
colorScheme?: ColorSchemeTypes;
|
|
2349
|
+
/**
|
|
2350
|
+
* When true, the select can't be interacted with.
|
|
2351
|
+
*
|
|
2352
|
+
* @default false
|
|
2353
|
+
*/
|
|
2354
|
+
disabled?: boolean;
|
|
2355
|
+
/**
|
|
2356
|
+
* If true, the select will fill its container
|
|
2357
|
+
*/
|
|
2358
|
+
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2359
|
+
/**
|
|
2360
|
+
* Called when a value is changed.
|
|
2361
|
+
*/
|
|
2362
|
+
onChange?: (value: string) => void;
|
|
2363
|
+
/**
|
|
2364
|
+
* Text shown when no value is selected
|
|
2365
|
+
*/
|
|
2366
|
+
placeholder?: string;
|
|
2367
|
+
/**
|
|
2368
|
+
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2369
|
+
*/
|
|
2370
|
+
value?: string;
|
|
2371
|
+
};
|
|
2372
|
+
/**
|
|
2373
|
+
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2374
|
+
*/
|
|
2375
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2376
|
+
|
|
2377
|
+
type SelectOptionProps = {
|
|
2378
|
+
/**
|
|
2379
|
+
* The visual content of the select
|
|
2380
|
+
*/
|
|
2381
|
+
children: ReactNode;
|
|
2382
|
+
/**
|
|
2383
|
+
* The value to set
|
|
2384
|
+
*/
|
|
2385
|
+
value: string;
|
|
2386
|
+
/**
|
|
2387
|
+
* When true, this option will not be selectable
|
|
2388
|
+
*
|
|
2389
|
+
* @default false
|
|
2390
|
+
*/
|
|
2391
|
+
disabled?: boolean;
|
|
2392
|
+
/**
|
|
2393
|
+
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2394
|
+
* Use this when the content is complex, or you have non-textual content inside.
|
|
2395
|
+
*/
|
|
2396
|
+
textValue?: string;
|
|
2397
|
+
};
|
|
2398
|
+
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2399
|
+
|
|
2400
|
+
type SelectOptionGroupProps = {
|
|
2401
|
+
/** The label of the group */
|
|
2402
|
+
label: string;
|
|
2403
|
+
/** At least one `Option` */
|
|
2404
|
+
children: ReactNode;
|
|
2405
|
+
};
|
|
2406
|
+
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2407
|
+
|
|
2408
|
+
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, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, 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, Tab, type TabProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|