@wistia/ui 0.6.10 → 0.6.11
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 +687 -560
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +165 -120
- package/dist/index.d.ts +165 -120
- package/dist/index.mjs +680 -559
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import react__default, { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
export * from 'use-file-picker/types';
|
|
5
5
|
export { useFilePicker, useImperativeFilePicker } from 'use-file-picker';
|
|
6
6
|
export { FileAmountLimitValidator, FileSizeValidator, FileTypeValidator, ImageDimensionsValidator, PersistentFileAmountLimitValidator } from 'use-file-picker/validators';
|
|
@@ -1479,6 +1479,48 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1479
1479
|
children: JSX.Element;
|
|
1480
1480
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1481
1481
|
|
|
1482
|
+
type BorderRadius = 'border-radius-01' | 'border-radius-02' | 'border-radius-03' | 'border-radius-04' | 'border-radius-05' | 'border-radius-rounded';
|
|
1483
|
+
|
|
1484
|
+
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
1485
|
+
/**
|
|
1486
|
+
* Accessible text to apply to the image
|
|
1487
|
+
*/
|
|
1488
|
+
alt: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Border radius to apply to the image
|
|
1491
|
+
*/
|
|
1492
|
+
borderRadius?: BorderRadius;
|
|
1493
|
+
/**
|
|
1494
|
+
* Specifies whether the width and/or height should fill the container
|
|
1495
|
+
*
|
|
1496
|
+
* *Note: this will override height/width attributes*
|
|
1497
|
+
*/
|
|
1498
|
+
fill?: boolean | 'horizontal' | 'vertical';
|
|
1499
|
+
/**
|
|
1500
|
+
* Specifies how the image's intrinsic size (ie. its natural size) should
|
|
1501
|
+
* be adjusted to fit within its container
|
|
1502
|
+
*/
|
|
1503
|
+
fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1504
|
+
/**
|
|
1505
|
+
* Indicates how the browser should load the image; `eager`loads the image immediately,
|
|
1506
|
+
* `lazy` defers loading the image until it reaches a calculated distance from the viewport.
|
|
1507
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading
|
|
1508
|
+
*/
|
|
1509
|
+
loading?: 'eager' | 'lazy';
|
|
1510
|
+
/**
|
|
1511
|
+
* Specifies how the image will align itself in its container
|
|
1512
|
+
*/
|
|
1513
|
+
position?: string;
|
|
1514
|
+
/**
|
|
1515
|
+
* URL to image file
|
|
1516
|
+
*/
|
|
1517
|
+
src: string;
|
|
1518
|
+
};
|
|
1519
|
+
declare const Image: {
|
|
1520
|
+
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, ...otherProps }: ImageProps): JSX.Element;
|
|
1521
|
+
displayName: string;
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1482
1524
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1483
1525
|
/**
|
|
1484
1526
|
* When enabled, focusing the input will select the entire text within
|
|
@@ -2285,6 +2327,82 @@ type NoIcon$1 = {
|
|
|
2285
2327
|
type SegmentedControlItemProps = BaseProps$1 & (IconWithAriaLabel$1 | IconWithLabel$1 | NoIcon$1);
|
|
2286
2328
|
declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2287
2329
|
|
|
2330
|
+
type SelectProps = {
|
|
2331
|
+
/**
|
|
2332
|
+
* Sets the validity status of the input
|
|
2333
|
+
*
|
|
2334
|
+
* @default false
|
|
2335
|
+
*/
|
|
2336
|
+
'aria-invalid'?: boolean;
|
|
2337
|
+
/**
|
|
2338
|
+
* A group of `Option` or `OptionGroup`s
|
|
2339
|
+
*/
|
|
2340
|
+
children: ReactNode;
|
|
2341
|
+
/**
|
|
2342
|
+
* The color scheme of the select.
|
|
2343
|
+
*
|
|
2344
|
+
* @default inherit
|
|
2345
|
+
*/
|
|
2346
|
+
colorScheme?: ColorSchemeTypes;
|
|
2347
|
+
/**
|
|
2348
|
+
* When true, the select can't be interacted with.
|
|
2349
|
+
*
|
|
2350
|
+
* @default false
|
|
2351
|
+
*/
|
|
2352
|
+
disabled?: boolean;
|
|
2353
|
+
/**
|
|
2354
|
+
* If true, the select will fill its container
|
|
2355
|
+
*/
|
|
2356
|
+
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2357
|
+
/**
|
|
2358
|
+
* Called when a value is changed.
|
|
2359
|
+
*/
|
|
2360
|
+
onChange?: (value: string) => void;
|
|
2361
|
+
/**
|
|
2362
|
+
* Text shown when no value is selected
|
|
2363
|
+
*/
|
|
2364
|
+
placeholder?: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2367
|
+
*/
|
|
2368
|
+
value?: string;
|
|
2369
|
+
};
|
|
2370
|
+
/**
|
|
2371
|
+
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2372
|
+
*/
|
|
2373
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2374
|
+
|
|
2375
|
+
type SelectOptionProps = {
|
|
2376
|
+
/**
|
|
2377
|
+
* The visual content of the select
|
|
2378
|
+
*/
|
|
2379
|
+
children: ReactNode;
|
|
2380
|
+
/**
|
|
2381
|
+
* The value to set. Leave this empty to define a placeholder option.
|
|
2382
|
+
*/
|
|
2383
|
+
value: string;
|
|
2384
|
+
/**
|
|
2385
|
+
* When true, this option will not be selectable
|
|
2386
|
+
*
|
|
2387
|
+
* @default false
|
|
2388
|
+
*/
|
|
2389
|
+
disabled?: boolean;
|
|
2390
|
+
/**
|
|
2391
|
+
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2392
|
+
* Use this when the content is complex, or you have non-textual content inside.
|
|
2393
|
+
*/
|
|
2394
|
+
textValue?: string;
|
|
2395
|
+
};
|
|
2396
|
+
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2397
|
+
|
|
2398
|
+
type SelectOptionGroupProps = {
|
|
2399
|
+
/** The label of the group */
|
|
2400
|
+
label: string;
|
|
2401
|
+
/** At least one `Option` */
|
|
2402
|
+
children: ReactNode;
|
|
2403
|
+
};
|
|
2404
|
+
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2405
|
+
|
|
2288
2406
|
type StackProps = {
|
|
2289
2407
|
/**
|
|
2290
2408
|
* Optional children
|
|
@@ -2308,6 +2426,51 @@ type StackProps = {
|
|
|
2308
2426
|
*/
|
|
2309
2427
|
declare const Stack: (<C extends ElementType = "div">(props: PolymorphicComponentProps<C, StackProps>) => react.ReactElement | null) & UnknownRecord;
|
|
2310
2428
|
|
|
2429
|
+
type TableBodyProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
2430
|
+
children?: ReactNode;
|
|
2431
|
+
};
|
|
2432
|
+
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
2433
|
+
|
|
2434
|
+
type CellAttrs = Omit<react__default.TdHTMLAttributes<HTMLTableCellElement>, 'ref'> & Omit<react__default.ThHTMLAttributes<HTMLTableCellElement>, 'ref'>;
|
|
2435
|
+
type TableCellProps = CellAttrs & {
|
|
2436
|
+
children?: ReactNode;
|
|
2437
|
+
};
|
|
2438
|
+
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
2439
|
+
|
|
2440
|
+
type TableFooterProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
2441
|
+
children?: ReactNode;
|
|
2442
|
+
};
|
|
2443
|
+
declare const TableFooter: ({ children, ...props }: TableFooterProps) => JSX.Element;
|
|
2444
|
+
|
|
2445
|
+
type TableHeadProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
2446
|
+
children?: ReactNode;
|
|
2447
|
+
};
|
|
2448
|
+
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
|
2449
|
+
|
|
2450
|
+
type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
2451
|
+
/**
|
|
2452
|
+
* Should be some combination of `TableHead` and/or `TableBody` and/or `TableFooter`
|
|
2453
|
+
*/
|
|
2454
|
+
children: ReactNode;
|
|
2455
|
+
/**
|
|
2456
|
+
* If true, will stripe every other row
|
|
2457
|
+
*/
|
|
2458
|
+
striped?: boolean;
|
|
2459
|
+
/**
|
|
2460
|
+
* If true, will add dividing lines between rows
|
|
2461
|
+
*/
|
|
2462
|
+
divided?: boolean;
|
|
2463
|
+
};
|
|
2464
|
+
/**
|
|
2465
|
+
* Semantic table element for presenting data
|
|
2466
|
+
*/
|
|
2467
|
+
declare const Table: ({ children, striped, divided, ...props }: TableProps) => JSX.Element;
|
|
2468
|
+
|
|
2469
|
+
type TableRowProps = react__default.HTMLAttributes<HTMLTableRowElement> & {
|
|
2470
|
+
children?: ReactNode;
|
|
2471
|
+
};
|
|
2472
|
+
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX.Element;
|
|
2473
|
+
|
|
2311
2474
|
type BaseTabsProps = {
|
|
2312
2475
|
/**
|
|
2313
2476
|
* Accesible label to describe the `TabList`
|
|
@@ -2530,122 +2693,4 @@ declare const WistiaLogo: {
|
|
|
2530
2693
|
displayName: string;
|
|
2531
2694
|
};
|
|
2532
2695
|
|
|
2533
|
-
type SelectProps
|
|
2534
|
-
/**
|
|
2535
|
-
* Sets the validity status of the input
|
|
2536
|
-
*
|
|
2537
|
-
* @default false
|
|
2538
|
-
*/
|
|
2539
|
-
'aria-invalid'?: boolean;
|
|
2540
|
-
/**
|
|
2541
|
-
* A group of `Option` or `OptionGroup`s
|
|
2542
|
-
*/
|
|
2543
|
-
children: ReactNode;
|
|
2544
|
-
/**
|
|
2545
|
-
* The color scheme of the select.
|
|
2546
|
-
*
|
|
2547
|
-
* @default inherit
|
|
2548
|
-
*/
|
|
2549
|
-
colorScheme?: ColorSchemeTypes;
|
|
2550
|
-
/**
|
|
2551
|
-
* When true, the select can't be interacted with.
|
|
2552
|
-
*
|
|
2553
|
-
* @default false
|
|
2554
|
-
*/
|
|
2555
|
-
disabled?: boolean;
|
|
2556
|
-
/**
|
|
2557
|
-
* If true, the select will fill its container
|
|
2558
|
-
*/
|
|
2559
|
-
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2560
|
-
/**
|
|
2561
|
-
* Called when a value is changed.
|
|
2562
|
-
*/
|
|
2563
|
-
onChange?: (value: string) => void;
|
|
2564
|
-
/**
|
|
2565
|
-
* Text shown when no value is selected
|
|
2566
|
-
*/
|
|
2567
|
-
placeholder?: string;
|
|
2568
|
-
/**
|
|
2569
|
-
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2570
|
-
*/
|
|
2571
|
-
value?: string;
|
|
2572
|
-
};
|
|
2573
|
-
/**
|
|
2574
|
-
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2575
|
-
*/
|
|
2576
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2577
|
-
|
|
2578
|
-
type SelectOptionProps = {
|
|
2579
|
-
/**
|
|
2580
|
-
* The visual content of the select
|
|
2581
|
-
*/
|
|
2582
|
-
children: ReactNode;
|
|
2583
|
-
/**
|
|
2584
|
-
* The value to set. Leave this empty to define a placeholder option.
|
|
2585
|
-
*/
|
|
2586
|
-
value: string;
|
|
2587
|
-
/**
|
|
2588
|
-
* When true, this option will not be selectable
|
|
2589
|
-
*
|
|
2590
|
-
* @default false
|
|
2591
|
-
*/
|
|
2592
|
-
disabled?: boolean;
|
|
2593
|
-
/**
|
|
2594
|
-
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2595
|
-
* Use this when the content is complex, or you have non-textual content inside.
|
|
2596
|
-
*/
|
|
2597
|
-
textValue?: string;
|
|
2598
|
-
};
|
|
2599
|
-
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2600
|
-
|
|
2601
|
-
type SelectOptionGroupProps = {
|
|
2602
|
-
/** The label of the group */
|
|
2603
|
-
label: string;
|
|
2604
|
-
/** At least one `Option` */
|
|
2605
|
-
children: ReactNode;
|
|
2606
|
-
};
|
|
2607
|
-
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2608
|
-
|
|
2609
|
-
type BorderRadius = 'border-radius-01' | 'border-radius-02' | 'border-radius-03' | 'border-radius-04' | 'border-radius-05' | 'border-radius-rounded';
|
|
2610
|
-
|
|
2611
|
-
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
2612
|
-
/**
|
|
2613
|
-
* Accessible text to apply to the image
|
|
2614
|
-
*/
|
|
2615
|
-
alt: string;
|
|
2616
|
-
/**
|
|
2617
|
-
* Border radius to apply to the image
|
|
2618
|
-
*/
|
|
2619
|
-
borderRadius?: BorderRadius;
|
|
2620
|
-
/**
|
|
2621
|
-
* Specifies whether the width and/or height should fill the container
|
|
2622
|
-
*
|
|
2623
|
-
* *Note: this will override height/width attributes*
|
|
2624
|
-
*/
|
|
2625
|
-
fill?: boolean | 'horizontal' | 'vertical';
|
|
2626
|
-
/**
|
|
2627
|
-
* Specifies how the image's intrinsic size (ie. its natural size) should
|
|
2628
|
-
* be adjusted to fit within its container
|
|
2629
|
-
*/
|
|
2630
|
-
fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
2631
|
-
/**
|
|
2632
|
-
* Indicates how the browser should load the image; `eager`loads the image immediately,
|
|
2633
|
-
* `lazy` defers loading the image until it reaches a calculated distance from the viewport.
|
|
2634
|
-
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading
|
|
2635
|
-
*/
|
|
2636
|
-
loading?: 'eager' | 'lazy';
|
|
2637
|
-
/**
|
|
2638
|
-
* Specifies how the image will align itself in its container
|
|
2639
|
-
*/
|
|
2640
|
-
position?: string;
|
|
2641
|
-
/**
|
|
2642
|
-
* URL to image file
|
|
2643
|
-
*/
|
|
2644
|
-
src: string;
|
|
2645
|
-
};
|
|
2646
|
-
declare const Image: {
|
|
2647
|
-
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, ...otherProps }: ImageProps): JSX.Element;
|
|
2648
|
-
displayName: string;
|
|
2649
|
-
};
|
|
2650
|
-
|
|
2651
|
-
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, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, 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 };
|
|
2696
|
+
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, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, 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, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, 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
|
@@ -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, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import react__default, { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
export * from 'use-file-picker/types';
|
|
5
5
|
export { useFilePicker, useImperativeFilePicker } from 'use-file-picker';
|
|
6
6
|
export { FileAmountLimitValidator, FileSizeValidator, FileTypeValidator, ImageDimensionsValidator, PersistentFileAmountLimitValidator } from 'use-file-picker/validators';
|
|
@@ -1479,6 +1479,48 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1479
1479
|
children: JSX.Element;
|
|
1480
1480
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1481
1481
|
|
|
1482
|
+
type BorderRadius = 'border-radius-01' | 'border-radius-02' | 'border-radius-03' | 'border-radius-04' | 'border-radius-05' | 'border-radius-rounded';
|
|
1483
|
+
|
|
1484
|
+
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
1485
|
+
/**
|
|
1486
|
+
* Accessible text to apply to the image
|
|
1487
|
+
*/
|
|
1488
|
+
alt: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Border radius to apply to the image
|
|
1491
|
+
*/
|
|
1492
|
+
borderRadius?: BorderRadius;
|
|
1493
|
+
/**
|
|
1494
|
+
* Specifies whether the width and/or height should fill the container
|
|
1495
|
+
*
|
|
1496
|
+
* *Note: this will override height/width attributes*
|
|
1497
|
+
*/
|
|
1498
|
+
fill?: boolean | 'horizontal' | 'vertical';
|
|
1499
|
+
/**
|
|
1500
|
+
* Specifies how the image's intrinsic size (ie. its natural size) should
|
|
1501
|
+
* be adjusted to fit within its container
|
|
1502
|
+
*/
|
|
1503
|
+
fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1504
|
+
/**
|
|
1505
|
+
* Indicates how the browser should load the image; `eager`loads the image immediately,
|
|
1506
|
+
* `lazy` defers loading the image until it reaches a calculated distance from the viewport.
|
|
1507
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading
|
|
1508
|
+
*/
|
|
1509
|
+
loading?: 'eager' | 'lazy';
|
|
1510
|
+
/**
|
|
1511
|
+
* Specifies how the image will align itself in its container
|
|
1512
|
+
*/
|
|
1513
|
+
position?: string;
|
|
1514
|
+
/**
|
|
1515
|
+
* URL to image file
|
|
1516
|
+
*/
|
|
1517
|
+
src: string;
|
|
1518
|
+
};
|
|
1519
|
+
declare const Image: {
|
|
1520
|
+
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, ...otherProps }: ImageProps): JSX.Element;
|
|
1521
|
+
displayName: string;
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1482
1524
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1483
1525
|
/**
|
|
1484
1526
|
* When enabled, focusing the input will select the entire text within
|
|
@@ -2285,6 +2327,82 @@ type NoIcon$1 = {
|
|
|
2285
2327
|
type SegmentedControlItemProps = BaseProps$1 & (IconWithAriaLabel$1 | IconWithLabel$1 | NoIcon$1);
|
|
2286
2328
|
declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2287
2329
|
|
|
2330
|
+
type SelectProps = {
|
|
2331
|
+
/**
|
|
2332
|
+
* Sets the validity status of the input
|
|
2333
|
+
*
|
|
2334
|
+
* @default false
|
|
2335
|
+
*/
|
|
2336
|
+
'aria-invalid'?: boolean;
|
|
2337
|
+
/**
|
|
2338
|
+
* A group of `Option` or `OptionGroup`s
|
|
2339
|
+
*/
|
|
2340
|
+
children: ReactNode;
|
|
2341
|
+
/**
|
|
2342
|
+
* The color scheme of the select.
|
|
2343
|
+
*
|
|
2344
|
+
* @default inherit
|
|
2345
|
+
*/
|
|
2346
|
+
colorScheme?: ColorSchemeTypes;
|
|
2347
|
+
/**
|
|
2348
|
+
* When true, the select can't be interacted with.
|
|
2349
|
+
*
|
|
2350
|
+
* @default false
|
|
2351
|
+
*/
|
|
2352
|
+
disabled?: boolean;
|
|
2353
|
+
/**
|
|
2354
|
+
* If true, the select will fill its container
|
|
2355
|
+
*/
|
|
2356
|
+
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2357
|
+
/**
|
|
2358
|
+
* Called when a value is changed.
|
|
2359
|
+
*/
|
|
2360
|
+
onChange?: (value: string) => void;
|
|
2361
|
+
/**
|
|
2362
|
+
* Text shown when no value is selected
|
|
2363
|
+
*/
|
|
2364
|
+
placeholder?: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2367
|
+
*/
|
|
2368
|
+
value?: string;
|
|
2369
|
+
};
|
|
2370
|
+
/**
|
|
2371
|
+
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2372
|
+
*/
|
|
2373
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2374
|
+
|
|
2375
|
+
type SelectOptionProps = {
|
|
2376
|
+
/**
|
|
2377
|
+
* The visual content of the select
|
|
2378
|
+
*/
|
|
2379
|
+
children: ReactNode;
|
|
2380
|
+
/**
|
|
2381
|
+
* The value to set. Leave this empty to define a placeholder option.
|
|
2382
|
+
*/
|
|
2383
|
+
value: string;
|
|
2384
|
+
/**
|
|
2385
|
+
* When true, this option will not be selectable
|
|
2386
|
+
*
|
|
2387
|
+
* @default false
|
|
2388
|
+
*/
|
|
2389
|
+
disabled?: boolean;
|
|
2390
|
+
/**
|
|
2391
|
+
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2392
|
+
* Use this when the content is complex, or you have non-textual content inside.
|
|
2393
|
+
*/
|
|
2394
|
+
textValue?: string;
|
|
2395
|
+
};
|
|
2396
|
+
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2397
|
+
|
|
2398
|
+
type SelectOptionGroupProps = {
|
|
2399
|
+
/** The label of the group */
|
|
2400
|
+
label: string;
|
|
2401
|
+
/** At least one `Option` */
|
|
2402
|
+
children: ReactNode;
|
|
2403
|
+
};
|
|
2404
|
+
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2405
|
+
|
|
2288
2406
|
type StackProps = {
|
|
2289
2407
|
/**
|
|
2290
2408
|
* Optional children
|
|
@@ -2308,6 +2426,51 @@ type StackProps = {
|
|
|
2308
2426
|
*/
|
|
2309
2427
|
declare const Stack: (<C extends ElementType = "div">(props: PolymorphicComponentProps<C, StackProps>) => react.ReactElement | null) & UnknownRecord;
|
|
2310
2428
|
|
|
2429
|
+
type TableBodyProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
2430
|
+
children?: ReactNode;
|
|
2431
|
+
};
|
|
2432
|
+
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
2433
|
+
|
|
2434
|
+
type CellAttrs = Omit<react__default.TdHTMLAttributes<HTMLTableCellElement>, 'ref'> & Omit<react__default.ThHTMLAttributes<HTMLTableCellElement>, 'ref'>;
|
|
2435
|
+
type TableCellProps = CellAttrs & {
|
|
2436
|
+
children?: ReactNode;
|
|
2437
|
+
};
|
|
2438
|
+
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
2439
|
+
|
|
2440
|
+
type TableFooterProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
2441
|
+
children?: ReactNode;
|
|
2442
|
+
};
|
|
2443
|
+
declare const TableFooter: ({ children, ...props }: TableFooterProps) => JSX.Element;
|
|
2444
|
+
|
|
2445
|
+
type TableHeadProps = react__default.HTMLAttributes<HTMLTableSectionElement> & {
|
|
2446
|
+
children?: ReactNode;
|
|
2447
|
+
};
|
|
2448
|
+
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
|
2449
|
+
|
|
2450
|
+
type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
2451
|
+
/**
|
|
2452
|
+
* Should be some combination of `TableHead` and/or `TableBody` and/or `TableFooter`
|
|
2453
|
+
*/
|
|
2454
|
+
children: ReactNode;
|
|
2455
|
+
/**
|
|
2456
|
+
* If true, will stripe every other row
|
|
2457
|
+
*/
|
|
2458
|
+
striped?: boolean;
|
|
2459
|
+
/**
|
|
2460
|
+
* If true, will add dividing lines between rows
|
|
2461
|
+
*/
|
|
2462
|
+
divided?: boolean;
|
|
2463
|
+
};
|
|
2464
|
+
/**
|
|
2465
|
+
* Semantic table element for presenting data
|
|
2466
|
+
*/
|
|
2467
|
+
declare const Table: ({ children, striped, divided, ...props }: TableProps) => JSX.Element;
|
|
2468
|
+
|
|
2469
|
+
type TableRowProps = react__default.HTMLAttributes<HTMLTableRowElement> & {
|
|
2470
|
+
children?: ReactNode;
|
|
2471
|
+
};
|
|
2472
|
+
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX.Element;
|
|
2473
|
+
|
|
2311
2474
|
type BaseTabsProps = {
|
|
2312
2475
|
/**
|
|
2313
2476
|
* Accesible label to describe the `TabList`
|
|
@@ -2530,122 +2693,4 @@ declare const WistiaLogo: {
|
|
|
2530
2693
|
displayName: string;
|
|
2531
2694
|
};
|
|
2532
2695
|
|
|
2533
|
-
type SelectProps
|
|
2534
|
-
/**
|
|
2535
|
-
* Sets the validity status of the input
|
|
2536
|
-
*
|
|
2537
|
-
* @default false
|
|
2538
|
-
*/
|
|
2539
|
-
'aria-invalid'?: boolean;
|
|
2540
|
-
/**
|
|
2541
|
-
* A group of `Option` or `OptionGroup`s
|
|
2542
|
-
*/
|
|
2543
|
-
children: ReactNode;
|
|
2544
|
-
/**
|
|
2545
|
-
* The color scheme of the select.
|
|
2546
|
-
*
|
|
2547
|
-
* @default inherit
|
|
2548
|
-
*/
|
|
2549
|
-
colorScheme?: ColorSchemeTypes;
|
|
2550
|
-
/**
|
|
2551
|
-
* When true, the select can't be interacted with.
|
|
2552
|
-
*
|
|
2553
|
-
* @default false
|
|
2554
|
-
*/
|
|
2555
|
-
disabled?: boolean;
|
|
2556
|
-
/**
|
|
2557
|
-
* If true, the select will fill its container
|
|
2558
|
-
*/
|
|
2559
|
-
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2560
|
-
/**
|
|
2561
|
-
* Called when a value is changed.
|
|
2562
|
-
*/
|
|
2563
|
-
onChange?: (value: string) => void;
|
|
2564
|
-
/**
|
|
2565
|
-
* Text shown when no value is selected
|
|
2566
|
-
*/
|
|
2567
|
-
placeholder?: string;
|
|
2568
|
-
/**
|
|
2569
|
-
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2570
|
-
*/
|
|
2571
|
-
value?: string;
|
|
2572
|
-
};
|
|
2573
|
-
/**
|
|
2574
|
-
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2575
|
-
*/
|
|
2576
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2577
|
-
|
|
2578
|
-
type SelectOptionProps = {
|
|
2579
|
-
/**
|
|
2580
|
-
* The visual content of the select
|
|
2581
|
-
*/
|
|
2582
|
-
children: ReactNode;
|
|
2583
|
-
/**
|
|
2584
|
-
* The value to set. Leave this empty to define a placeholder option.
|
|
2585
|
-
*/
|
|
2586
|
-
value: string;
|
|
2587
|
-
/**
|
|
2588
|
-
* When true, this option will not be selectable
|
|
2589
|
-
*
|
|
2590
|
-
* @default false
|
|
2591
|
-
*/
|
|
2592
|
-
disabled?: boolean;
|
|
2593
|
-
/**
|
|
2594
|
-
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2595
|
-
* Use this when the content is complex, or you have non-textual content inside.
|
|
2596
|
-
*/
|
|
2597
|
-
textValue?: string;
|
|
2598
|
-
};
|
|
2599
|
-
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2600
|
-
|
|
2601
|
-
type SelectOptionGroupProps = {
|
|
2602
|
-
/** The label of the group */
|
|
2603
|
-
label: string;
|
|
2604
|
-
/** At least one `Option` */
|
|
2605
|
-
children: ReactNode;
|
|
2606
|
-
};
|
|
2607
|
-
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2608
|
-
|
|
2609
|
-
type BorderRadius = 'border-radius-01' | 'border-radius-02' | 'border-radius-03' | 'border-radius-04' | 'border-radius-05' | 'border-radius-rounded';
|
|
2610
|
-
|
|
2611
|
-
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
2612
|
-
/**
|
|
2613
|
-
* Accessible text to apply to the image
|
|
2614
|
-
*/
|
|
2615
|
-
alt: string;
|
|
2616
|
-
/**
|
|
2617
|
-
* Border radius to apply to the image
|
|
2618
|
-
*/
|
|
2619
|
-
borderRadius?: BorderRadius;
|
|
2620
|
-
/**
|
|
2621
|
-
* Specifies whether the width and/or height should fill the container
|
|
2622
|
-
*
|
|
2623
|
-
* *Note: this will override height/width attributes*
|
|
2624
|
-
*/
|
|
2625
|
-
fill?: boolean | 'horizontal' | 'vertical';
|
|
2626
|
-
/**
|
|
2627
|
-
* Specifies how the image's intrinsic size (ie. its natural size) should
|
|
2628
|
-
* be adjusted to fit within its container
|
|
2629
|
-
*/
|
|
2630
|
-
fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
2631
|
-
/**
|
|
2632
|
-
* Indicates how the browser should load the image; `eager`loads the image immediately,
|
|
2633
|
-
* `lazy` defers loading the image until it reaches a calculated distance from the viewport.
|
|
2634
|
-
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading
|
|
2635
|
-
*/
|
|
2636
|
-
loading?: 'eager' | 'lazy';
|
|
2637
|
-
/**
|
|
2638
|
-
* Specifies how the image will align itself in its container
|
|
2639
|
-
*/
|
|
2640
|
-
position?: string;
|
|
2641
|
-
/**
|
|
2642
|
-
* URL to image file
|
|
2643
|
-
*/
|
|
2644
|
-
src: string;
|
|
2645
|
-
};
|
|
2646
|
-
declare const Image: {
|
|
2647
|
-
({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, ...otherProps }: ImageProps): JSX.Element;
|
|
2648
|
-
displayName: string;
|
|
2649
|
-
};
|
|
2650
|
-
|
|
2651
|
-
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, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, 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 };
|
|
2696
|
+
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, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, 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, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, 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 };
|