@wistia/ui 0.6.45 → 0.7.0-beta.05e7ef9a.fd95b31

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.d.mts CHANGED
@@ -1177,8 +1177,6 @@ type EditableHeadingProps = {
1177
1177
  */
1178
1178
  declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
1179
1179
 
1180
- declare const ellipsisStyle: styled_components.FlattenSimpleInterpolation;
1181
- declare const ellipsisFlexParentStyle: styled_components.FlattenSimpleInterpolation;
1182
1180
  type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
1183
1181
  /**
1184
1182
  * The text that will be truncated with an ellipsis
@@ -1380,12 +1378,6 @@ type HeadingProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT> & {
1380
1378
  * Styles to text as disabled
1381
1379
  */
1382
1380
  disabled?: boolean;
1383
- /**
1384
- * Attempt to keep the text to a single line by truncating with an ellipsis
1385
- * <br />
1386
- * _Note: this only affects block elements_
1387
- */
1388
- ellipsis?: boolean;
1389
1381
  /**
1390
1382
  * Display the text as inline content
1391
1383
  */
@@ -1395,6 +1387,13 @@ type HeadingProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT> & {
1395
1387
  */
1396
1388
  preventUserSelect?: boolean;
1397
1389
  renderAs?: ElementType;
1390
+ /**
1391
+ * Number of lines to display before truncating with an ellipsis.
1392
+ * Set to 1 to truncate after a single line, 2 for two lines, etc.
1393
+ * <br />
1394
+ * _Note: this only affects block elements_
1395
+ */
1396
+ truncate?: number;
1398
1397
  /**
1399
1398
  * The text style to display. This will also affect what element (h1, h2, etc) is rendered, unless the `renderAs` prop is used
1400
1399
  */
@@ -2103,12 +2102,6 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
2103
2102
  * Allows user to override default button colors
2104
2103
  */
2105
2104
  disabled?: boolean;
2106
- /**
2107
- * Attempt to keep the text to a single line by truncating with an ellipsis
2108
- * <br />
2109
- * _Note: this only affects block elements_
2110
- */
2111
- ellipsis?: boolean;
2112
2105
  /**
2113
2106
  * Display the text as inline content
2114
2107
  */
@@ -2125,6 +2118,13 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
2125
2118
  * This will inherit the jsdoc block from PolymorphicComponent
2126
2119
  */
2127
2120
  renderAs?: ElementType;
2121
+ /**
2122
+ * Number of lines to display before truncating with an ellipsis.
2123
+ * Set to 1 to truncate after a single line, 2 for two lines, etc.
2124
+ * <br />
2125
+ * _Note: this only affects block elements_
2126
+ */
2127
+ truncate?: number;
2128
2128
  /**
2129
2129
  * The text style to display
2130
2130
  */
@@ -3142,4 +3142,4 @@ declare const Thumbnail: react.ForwardRefExoticComponent<Omit<react.DetailedHTML
3142
3142
  children?: ReactNode;
3143
3143
  } & react.RefAttributes<HTMLDivElement>>;
3144
3144
 
3145
- 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, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, 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, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, 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, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
3145
+ 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, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, 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, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, 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, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -1177,8 +1177,6 @@ type EditableHeadingProps = {
1177
1177
  */
1178
1178
  declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
1179
1179
 
1180
- declare const ellipsisStyle: styled_components.FlattenSimpleInterpolation;
1181
- declare const ellipsisFlexParentStyle: styled_components.FlattenSimpleInterpolation;
1182
1180
  type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
1183
1181
  /**
1184
1182
  * The text that will be truncated with an ellipsis
@@ -1380,12 +1378,6 @@ type HeadingProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT> & {
1380
1378
  * Styles to text as disabled
1381
1379
  */
1382
1380
  disabled?: boolean;
1383
- /**
1384
- * Attempt to keep the text to a single line by truncating with an ellipsis
1385
- * <br />
1386
- * _Note: this only affects block elements_
1387
- */
1388
- ellipsis?: boolean;
1389
1381
  /**
1390
1382
  * Display the text as inline content
1391
1383
  */
@@ -1395,6 +1387,13 @@ type HeadingProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT> & {
1395
1387
  */
1396
1388
  preventUserSelect?: boolean;
1397
1389
  renderAs?: ElementType;
1390
+ /**
1391
+ * Number of lines to display before truncating with an ellipsis.
1392
+ * Set to 1 to truncate after a single line, 2 for two lines, etc.
1393
+ * <br />
1394
+ * _Note: this only affects block elements_
1395
+ */
1396
+ truncate?: number;
1398
1397
  /**
1399
1398
  * The text style to display. This will also affect what element (h1, h2, etc) is rendered, unless the `renderAs` prop is used
1400
1399
  */
@@ -2103,12 +2102,6 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
2103
2102
  * Allows user to override default button colors
2104
2103
  */
2105
2104
  disabled?: boolean;
2106
- /**
2107
- * Attempt to keep the text to a single line by truncating with an ellipsis
2108
- * <br />
2109
- * _Note: this only affects block elements_
2110
- */
2111
- ellipsis?: boolean;
2112
2105
  /**
2113
2106
  * Display the text as inline content
2114
2107
  */
@@ -2125,6 +2118,13 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
2125
2118
  * This will inherit the jsdoc block from PolymorphicComponent
2126
2119
  */
2127
2120
  renderAs?: ElementType;
2121
+ /**
2122
+ * Number of lines to display before truncating with an ellipsis.
2123
+ * Set to 1 to truncate after a single line, 2 for two lines, etc.
2124
+ * <br />
2125
+ * _Note: this only affects block elements_
2126
+ */
2127
+ truncate?: number;
2128
2128
  /**
2129
2129
  * The text style to display
2130
2130
  */
@@ -3142,4 +3142,4 @@ declare const Thumbnail: react.ForwardRefExoticComponent<Omit<react.DetailedHTML
3142
3142
  children?: ReactNode;
3143
3143
  } & react.RefAttributes<HTMLDivElement>>;
3144
3144
 
3145
- 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, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, 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, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, 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, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
3145
+ 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, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, 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, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, 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, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };