@wistia/ui 0.0.17 → 0.0.19

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
@@ -126,7 +126,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
126
126
  label: string;
127
127
  };
128
128
  /**
129
- * A badge is a compact label, with optional icon, to convey status or context.
129
+ * A `Badge` is a compact label, with optional icon, to convey status or context.
130
130
  */
131
131
  declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
132
132
  /**
@@ -1446,6 +1446,54 @@ declare const Stack: (<C = "div">(props: PolymorphicComponentProps<C, StackProps
1446
1446
  renderAs: react.JSXElementConstructor<any> | keyof react.JSX.IntrinsicElements;
1447
1447
  })>, never> & Record<string, never>;
1448
1448
 
1449
+ type TagProps = ComponentPropsWithoutRef<'div'> & {
1450
+ /**
1451
+ * Set the [color scheme](/?path=/docs/docs-color-schemes--docs) of the `Tag`
1452
+ */
1453
+ colorScheme?: ColorSchemeTypes;
1454
+ /**
1455
+ * Valid URL for the `Tag` label to link to
1456
+ */
1457
+ href?: string;
1458
+ /**
1459
+ * Text label for the `Tag`
1460
+ */
1461
+ label: ReactNode;
1462
+ /**
1463
+ * Callback function to be called when the `x` button is clicked
1464
+ */
1465
+ onClickRemove?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined;
1466
+ /**
1467
+ * Accessible label for the `x` button (ie. "Remove tag")
1468
+ */
1469
+ onClickRemoveLabel?: string | undefined;
1470
+ };
1471
+ /**
1472
+ * A `Tag` is an optionally linked label, with an optional action button, to categorize content.
1473
+ */
1474
+ declare const Tag: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1475
+ /**
1476
+ * Set the [color scheme](/?path=/docs/docs-color-schemes--docs) of the `Tag`
1477
+ */
1478
+ colorScheme?: ColorSchemeTypes;
1479
+ /**
1480
+ * Valid URL for the `Tag` label to link to
1481
+ */
1482
+ href?: string;
1483
+ /**
1484
+ * Text label for the `Tag`
1485
+ */
1486
+ label: ReactNode;
1487
+ /**
1488
+ * Callback function to be called when the `x` button is clicked
1489
+ */
1490
+ onClickRemove?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined;
1491
+ /**
1492
+ * Accessible label for the `x` button (ie. "Remove tag")
1493
+ */
1494
+ onClickRemoveLabel?: string | undefined;
1495
+ } & react.RefAttributes<HTMLDivElement>>;
1496
+
1449
1497
  type TooltipProps = {
1450
1498
  /**
1451
1499
  * The content of the tooltip
@@ -1525,4 +1573,4 @@ declare const WistiaLogo: {
1525
1573
  displayName: string;
1526
1574
  };
1527
1575
 
1528
- export { Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, RadioMenuItem, ScreenReaderOnly, Stack, SubMenu, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useMq, useWindowSize };
1576
+ export { Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, RadioMenuItem, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useMq, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -126,7 +126,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
126
126
  label: string;
127
127
  };
128
128
  /**
129
- * A badge is a compact label, with optional icon, to convey status or context.
129
+ * A `Badge` is a compact label, with optional icon, to convey status or context.
130
130
  */
131
131
  declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
132
132
  /**
@@ -1446,6 +1446,54 @@ declare const Stack: (<C = "div">(props: PolymorphicComponentProps<C, StackProps
1446
1446
  renderAs: react.JSXElementConstructor<any> | keyof react.JSX.IntrinsicElements;
1447
1447
  })>, never> & Record<string, never>;
1448
1448
 
1449
+ type TagProps = ComponentPropsWithoutRef<'div'> & {
1450
+ /**
1451
+ * Set the [color scheme](/?path=/docs/docs-color-schemes--docs) of the `Tag`
1452
+ */
1453
+ colorScheme?: ColorSchemeTypes;
1454
+ /**
1455
+ * Valid URL for the `Tag` label to link to
1456
+ */
1457
+ href?: string;
1458
+ /**
1459
+ * Text label for the `Tag`
1460
+ */
1461
+ label: ReactNode;
1462
+ /**
1463
+ * Callback function to be called when the `x` button is clicked
1464
+ */
1465
+ onClickRemove?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined;
1466
+ /**
1467
+ * Accessible label for the `x` button (ie. "Remove tag")
1468
+ */
1469
+ onClickRemoveLabel?: string | undefined;
1470
+ };
1471
+ /**
1472
+ * A `Tag` is an optionally linked label, with an optional action button, to categorize content.
1473
+ */
1474
+ declare const Tag: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1475
+ /**
1476
+ * Set the [color scheme](/?path=/docs/docs-color-schemes--docs) of the `Tag`
1477
+ */
1478
+ colorScheme?: ColorSchemeTypes;
1479
+ /**
1480
+ * Valid URL for the `Tag` label to link to
1481
+ */
1482
+ href?: string;
1483
+ /**
1484
+ * Text label for the `Tag`
1485
+ */
1486
+ label: ReactNode;
1487
+ /**
1488
+ * Callback function to be called when the `x` button is clicked
1489
+ */
1490
+ onClickRemove?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined;
1491
+ /**
1492
+ * Accessible label for the `x` button (ie. "Remove tag")
1493
+ */
1494
+ onClickRemoveLabel?: string | undefined;
1495
+ } & react.RefAttributes<HTMLDivElement>>;
1496
+
1449
1497
  type TooltipProps = {
1450
1498
  /**
1451
1499
  * The content of the tooltip
@@ -1525,4 +1573,4 @@ declare const WistiaLogo: {
1525
1573
  displayName: string;
1526
1574
  };
1527
1575
 
1528
- export { Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, RadioMenuItem, ScreenReaderOnly, Stack, SubMenu, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useMq, useWindowSize };
1576
+ export { Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, RadioMenuItem, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useMq, useWindowSize };