@wistia/ui 0.4.0 → 0.4.2-beta.1edded51.b4258de
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 +357 -283
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +98 -3
- package/dist/index.d.ts +98 -3
- package/dist/index.mjs +289 -216
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -22
package/dist/index.d.mts
CHANGED
|
@@ -377,7 +377,7 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
|
|
|
377
377
|
label: string;
|
|
378
378
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
379
379
|
|
|
380
|
-
type Spacings = 'space-01' | 'space-02' | 'space-03' | 'space-04' | 'space-05' | 'space-06' | 'space-07' | 'space-08' | 'space-09'
|
|
380
|
+
type Spacings = 'space-01' | 'space-02' | 'space-03' | 'space-04' | 'space-05' | 'space-06' | 'space-07' | 'space-08' | 'space-09';
|
|
381
381
|
|
|
382
382
|
type JustifyContentType = 'center' | 'flex-end' | 'flex-start' | 'space-around' | 'space-between' | 'space-evenly';
|
|
383
383
|
type AlignContentType = 'center' | 'flex-end' | 'flex-start' | 'space-around' | 'space-between' | 'stretch';
|
|
@@ -519,6 +519,93 @@ declare const ButtonGroup: {
|
|
|
519
519
|
displayName: string;
|
|
520
520
|
};
|
|
521
521
|
|
|
522
|
+
type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
|
|
523
|
+
/**
|
|
524
|
+
* Content to be rendered inside the Card component
|
|
525
|
+
*/
|
|
526
|
+
children: ReactNode;
|
|
527
|
+
/**
|
|
528
|
+
* Specifies the background and border color of the card.
|
|
529
|
+
*/
|
|
530
|
+
prominence?: 'default' | 'secondary' | 'tertiary';
|
|
531
|
+
/**
|
|
532
|
+
* Determines the color scheme for the card and its children.
|
|
533
|
+
*/
|
|
534
|
+
colorScheme?: ColorSchemeTypes;
|
|
535
|
+
/**
|
|
536
|
+
* Specifies the internal padding of the card. Uses the design system's spacing scale.
|
|
537
|
+
*/
|
|
538
|
+
paddingSize?: Spacings;
|
|
539
|
+
/**
|
|
540
|
+
* When true, adds a border around the card based on its colorScheme and prominence.
|
|
541
|
+
*/
|
|
542
|
+
border?: boolean;
|
|
543
|
+
/**
|
|
544
|
+
* Sets the flex direction of the card's contents.
|
|
545
|
+
*/
|
|
546
|
+
direction?: BoxProps['direction'];
|
|
547
|
+
/**
|
|
548
|
+
* Specifies the gaps (gutters) between rows and columns
|
|
549
|
+
*/
|
|
550
|
+
gap?: BoxProps['gap'];
|
|
551
|
+
/**
|
|
552
|
+
* @ignore
|
|
553
|
+
* */
|
|
554
|
+
alignContent?: BoxProps['alignContent'];
|
|
555
|
+
/**
|
|
556
|
+
* @ignore
|
|
557
|
+
* */
|
|
558
|
+
alignItems?: BoxProps['alignItems'];
|
|
559
|
+
/**
|
|
560
|
+
* @ignore
|
|
561
|
+
* */
|
|
562
|
+
alignSelf?: BoxProps['alignSelf'];
|
|
563
|
+
/**
|
|
564
|
+
* @ignore
|
|
565
|
+
* */
|
|
566
|
+
basis?: BoxProps['basis'];
|
|
567
|
+
/**
|
|
568
|
+
* @ignore
|
|
569
|
+
* */
|
|
570
|
+
fill?: BoxProps['fill'];
|
|
571
|
+
/**
|
|
572
|
+
* @ignore
|
|
573
|
+
* */
|
|
574
|
+
fillViewport?: BoxProps['fillViewport'];
|
|
575
|
+
/**
|
|
576
|
+
* @ignore
|
|
577
|
+
* */
|
|
578
|
+
grow?: BoxProps['grow'];
|
|
579
|
+
/**
|
|
580
|
+
* @ignore
|
|
581
|
+
* */
|
|
582
|
+
inline?: BoxProps['inline'];
|
|
583
|
+
/**
|
|
584
|
+
* @ignore
|
|
585
|
+
* */
|
|
586
|
+
justifyContent?: BoxProps['justifyContent'];
|
|
587
|
+
/**
|
|
588
|
+
* @ignore
|
|
589
|
+
* */
|
|
590
|
+
order?: BoxProps['order'];
|
|
591
|
+
/**
|
|
592
|
+
* @ignore
|
|
593
|
+
* */
|
|
594
|
+
shrink?: BoxProps['shrink'];
|
|
595
|
+
/**
|
|
596
|
+
* @ignore
|
|
597
|
+
* */
|
|
598
|
+
wrapItems?: BoxProps['wrapItems'];
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* A flexible container component that groups related content with consistent spacing and styling.
|
|
602
|
+
* Cards can be used to visually distinguish content sections. Extends the [Box component.](https://wistia.github.io/vhs/storybook-ui/?path=/docs/components-box--docs)
|
|
603
|
+
*/
|
|
604
|
+
declare const Card: {
|
|
605
|
+
({ children, paddingSize, gap, direction, colorScheme, prominence, border, ...props }: CardProps): JSX.Element;
|
|
606
|
+
displayName: string;
|
|
607
|
+
};
|
|
608
|
+
|
|
522
609
|
type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
523
610
|
/**
|
|
524
611
|
* Indicates the state of the checkbox
|
|
@@ -1125,6 +1212,10 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1125
1212
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1126
1213
|
|
|
1127
1214
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1215
|
+
/**
|
|
1216
|
+
* When enabled, focusing the input will select the entire text within
|
|
1217
|
+
*/
|
|
1218
|
+
autoSelect?: boolean;
|
|
1128
1219
|
/**
|
|
1129
1220
|
* Sets the validity status of the input
|
|
1130
1221
|
*/
|
|
@@ -1158,6 +1249,10 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElemen
|
|
|
1158
1249
|
* Component description goes here
|
|
1159
1250
|
*/
|
|
1160
1251
|
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "type"> & {
|
|
1252
|
+
/**
|
|
1253
|
+
* When enabled, focusing the input will select the entire text within
|
|
1254
|
+
*/
|
|
1255
|
+
autoSelect?: boolean;
|
|
1161
1256
|
/**
|
|
1162
1257
|
* Sets the validity status of the input
|
|
1163
1258
|
*/
|
|
@@ -1479,7 +1574,7 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1479
1574
|
/**
|
|
1480
1575
|
* Used for rending paragraphs and inline text.
|
|
1481
1576
|
*/
|
|
1482
|
-
declare const Text: (<C = "div">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement) & Omit<react.FunctionComponent<(Omit<Omit<any, "ref">, "key" | "disabled" | keyof react.HTMLAttributes<HTMLDivElement> | "align" | "ellipsis" | "inline" | "colorScheme" | "variant" | "
|
|
1577
|
+
declare const Text: (<C = "div">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement) & Omit<react.FunctionComponent<(Omit<Omit<any, "ref">, "key" | "disabled" | keyof react.HTMLAttributes<HTMLDivElement> | "align" | "ellipsis" | "inline" | "colorScheme" | "variant" | "prominence" | "renderAs" | "preventUserSelect"> & {
|
|
1483
1578
|
renderAs?: any;
|
|
1484
1579
|
} & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1485
1580
|
/**
|
|
@@ -2044,4 +2139,4 @@ type BreadcrumbProps = {
|
|
|
2044
2139
|
};
|
|
2045
2140
|
declare const Breadcrumb: ({ icon, href, children }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
2046
2141
|
|
|
2047
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useFormState, useMq, useToast, useWindowSize };
|
|
2142
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, 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, 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
|
@@ -377,7 +377,7 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
|
|
|
377
377
|
label: string;
|
|
378
378
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
379
379
|
|
|
380
|
-
type Spacings = 'space-01' | 'space-02' | 'space-03' | 'space-04' | 'space-05' | 'space-06' | 'space-07' | 'space-08' | 'space-09'
|
|
380
|
+
type Spacings = 'space-01' | 'space-02' | 'space-03' | 'space-04' | 'space-05' | 'space-06' | 'space-07' | 'space-08' | 'space-09';
|
|
381
381
|
|
|
382
382
|
type JustifyContentType = 'center' | 'flex-end' | 'flex-start' | 'space-around' | 'space-between' | 'space-evenly';
|
|
383
383
|
type AlignContentType = 'center' | 'flex-end' | 'flex-start' | 'space-around' | 'space-between' | 'stretch';
|
|
@@ -519,6 +519,93 @@ declare const ButtonGroup: {
|
|
|
519
519
|
displayName: string;
|
|
520
520
|
};
|
|
521
521
|
|
|
522
|
+
type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
|
|
523
|
+
/**
|
|
524
|
+
* Content to be rendered inside the Card component
|
|
525
|
+
*/
|
|
526
|
+
children: ReactNode;
|
|
527
|
+
/**
|
|
528
|
+
* Specifies the background and border color of the card.
|
|
529
|
+
*/
|
|
530
|
+
prominence?: 'default' | 'secondary' | 'tertiary';
|
|
531
|
+
/**
|
|
532
|
+
* Determines the color scheme for the card and its children.
|
|
533
|
+
*/
|
|
534
|
+
colorScheme?: ColorSchemeTypes;
|
|
535
|
+
/**
|
|
536
|
+
* Specifies the internal padding of the card. Uses the design system's spacing scale.
|
|
537
|
+
*/
|
|
538
|
+
paddingSize?: Spacings;
|
|
539
|
+
/**
|
|
540
|
+
* When true, adds a border around the card based on its colorScheme and prominence.
|
|
541
|
+
*/
|
|
542
|
+
border?: boolean;
|
|
543
|
+
/**
|
|
544
|
+
* Sets the flex direction of the card's contents.
|
|
545
|
+
*/
|
|
546
|
+
direction?: BoxProps['direction'];
|
|
547
|
+
/**
|
|
548
|
+
* Specifies the gaps (gutters) between rows and columns
|
|
549
|
+
*/
|
|
550
|
+
gap?: BoxProps['gap'];
|
|
551
|
+
/**
|
|
552
|
+
* @ignore
|
|
553
|
+
* */
|
|
554
|
+
alignContent?: BoxProps['alignContent'];
|
|
555
|
+
/**
|
|
556
|
+
* @ignore
|
|
557
|
+
* */
|
|
558
|
+
alignItems?: BoxProps['alignItems'];
|
|
559
|
+
/**
|
|
560
|
+
* @ignore
|
|
561
|
+
* */
|
|
562
|
+
alignSelf?: BoxProps['alignSelf'];
|
|
563
|
+
/**
|
|
564
|
+
* @ignore
|
|
565
|
+
* */
|
|
566
|
+
basis?: BoxProps['basis'];
|
|
567
|
+
/**
|
|
568
|
+
* @ignore
|
|
569
|
+
* */
|
|
570
|
+
fill?: BoxProps['fill'];
|
|
571
|
+
/**
|
|
572
|
+
* @ignore
|
|
573
|
+
* */
|
|
574
|
+
fillViewport?: BoxProps['fillViewport'];
|
|
575
|
+
/**
|
|
576
|
+
* @ignore
|
|
577
|
+
* */
|
|
578
|
+
grow?: BoxProps['grow'];
|
|
579
|
+
/**
|
|
580
|
+
* @ignore
|
|
581
|
+
* */
|
|
582
|
+
inline?: BoxProps['inline'];
|
|
583
|
+
/**
|
|
584
|
+
* @ignore
|
|
585
|
+
* */
|
|
586
|
+
justifyContent?: BoxProps['justifyContent'];
|
|
587
|
+
/**
|
|
588
|
+
* @ignore
|
|
589
|
+
* */
|
|
590
|
+
order?: BoxProps['order'];
|
|
591
|
+
/**
|
|
592
|
+
* @ignore
|
|
593
|
+
* */
|
|
594
|
+
shrink?: BoxProps['shrink'];
|
|
595
|
+
/**
|
|
596
|
+
* @ignore
|
|
597
|
+
* */
|
|
598
|
+
wrapItems?: BoxProps['wrapItems'];
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* A flexible container component that groups related content with consistent spacing and styling.
|
|
602
|
+
* Cards can be used to visually distinguish content sections. Extends the [Box component.](https://wistia.github.io/vhs/storybook-ui/?path=/docs/components-box--docs)
|
|
603
|
+
*/
|
|
604
|
+
declare const Card: {
|
|
605
|
+
({ children, paddingSize, gap, direction, colorScheme, prominence, border, ...props }: CardProps): JSX.Element;
|
|
606
|
+
displayName: string;
|
|
607
|
+
};
|
|
608
|
+
|
|
522
609
|
type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
523
610
|
/**
|
|
524
611
|
* Indicates the state of the checkbox
|
|
@@ -1125,6 +1212,10 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
1125
1212
|
} & Omit<ButtonAsLinkProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1126
1213
|
|
|
1127
1214
|
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
|
|
1215
|
+
/**
|
|
1216
|
+
* When enabled, focusing the input will select the entire text within
|
|
1217
|
+
*/
|
|
1218
|
+
autoSelect?: boolean;
|
|
1128
1219
|
/**
|
|
1129
1220
|
* Sets the validity status of the input
|
|
1130
1221
|
*/
|
|
@@ -1158,6 +1249,10 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElemen
|
|
|
1158
1249
|
* Component description goes here
|
|
1159
1250
|
*/
|
|
1160
1251
|
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "type"> & {
|
|
1252
|
+
/**
|
|
1253
|
+
* When enabled, focusing the input will select the entire text within
|
|
1254
|
+
*/
|
|
1255
|
+
autoSelect?: boolean;
|
|
1161
1256
|
/**
|
|
1162
1257
|
* Sets the validity status of the input
|
|
1163
1258
|
*/
|
|
@@ -1479,7 +1574,7 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1479
1574
|
/**
|
|
1480
1575
|
* Used for rending paragraphs and inline text.
|
|
1481
1576
|
*/
|
|
1482
|
-
declare const Text: (<C = "div">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement) & Omit<react.FunctionComponent<(Omit<Omit<any, "ref">, "key" | "disabled" | keyof react.HTMLAttributes<HTMLDivElement> | "align" | "ellipsis" | "inline" | "colorScheme" | "variant" | "
|
|
1577
|
+
declare const Text: (<C = "div">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement) & Omit<react.FunctionComponent<(Omit<Omit<any, "ref">, "key" | "disabled" | keyof react.HTMLAttributes<HTMLDivElement> | "align" | "ellipsis" | "inline" | "colorScheme" | "variant" | "prominence" | "renderAs" | "preventUserSelect"> & {
|
|
1483
1578
|
renderAs?: any;
|
|
1484
1579
|
} & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1485
1580
|
/**
|
|
@@ -2044,4 +2139,4 @@ type BreadcrumbProps = {
|
|
|
2044
2139
|
};
|
|
2045
2140
|
declare const Breadcrumb: ({ icon, href, children }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
2046
2141
|
|
|
2047
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useFormState, useMq, useToast, useWindowSize };
|
|
2142
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, 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, 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 };
|