@wistia/ui 0.4.8-beta.25eae1b2.b10e708 → 0.4.8-beta.2b6f4638.29587ac

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
@@ -1,10 +1,9 @@
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, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
3
+ import { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1, InputHTMLAttributes, RefObject } from 'react';
4
4
  import { LinkProps as LinkProps$1 } from 'react-router-dom';
5
5
  import * as styled_components from 'styled-components';
6
6
  import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
7
- import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
8
7
 
9
8
  type UIProviderProps = {
10
9
  children: ReactNode;
@@ -103,7 +102,7 @@ declare const ColorSchemeWrapper: {
103
102
  type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
104
103
 
105
104
  type LinkTypes = 'default' | 'email' | 'external' | 'phone';
106
- type BaseProps$1 = {
105
+ type BaseProps = {
107
106
  /**
108
107
  * A Promise to invoke before navigating to location.
109
108
  * _Caution: if used with `external` type prop a new window will **not** be opened_
@@ -123,14 +122,6 @@ type BaseProps$1 = {
123
122
  * Disables the link
124
123
  */
125
124
  disabled?: boolean;
126
- /**
127
- * Icon to display on the left side of the link, Must be an instance of [Icon](?path=/docs/components-icon--docs)
128
- */
129
- leftIcon?: JSX.Element | undefined;
130
- /**
131
- * Icon to display on the right side of the link, Must be an instance of [Icon](?path=/docs/components-icon--docs)
132
- */
133
- rightIcon?: JSX.Element | undefined;
134
125
  /**
135
126
  * Type of link to display
136
127
  *
@@ -144,11 +135,11 @@ type BaseProps$1 = {
144
135
  */
145
136
  underline?: boolean;
146
137
  };
147
- type LinkAsLinkProps = BaseProps$1 & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
138
+ type LinkAsLinkProps = BaseProps & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
148
139
  href: string | undefined;
149
140
  type?: LinkTypes;
150
141
  };
151
- type LinkAsButtonProps = BaseProps$1 & ComponentPropsWithRef<'button'> & {
142
+ type LinkAsButtonProps = BaseProps & ComponentPropsWithRef<'button'> & {
152
143
  href?: never;
153
144
  type?: 'button' | 'reset' | 'submit';
154
145
  };
@@ -289,7 +280,7 @@ declare const useWindowSize: (interval?: number) => {
289
280
 
290
281
  type ActionButtonProps = {
291
282
  /**
292
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
283
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
293
284
  */
294
285
  icon: JSX.Element;
295
286
  /**
@@ -310,7 +301,7 @@ type ActionButtonProps = {
310
301
  */
311
302
  declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
312
303
  /**
313
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
304
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
314
305
  */
315
306
  icon: JSX.Element;
316
307
  /**
@@ -325,9 +316,9 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
325
316
  * Changes the secondary icon for different use cases
326
317
  */
327
318
  variant?: "default" | "gated" | "menu-down" | "menu-up";
328
- } & Omit<ButtonAsButtonProps, "size" | "leftIcon" | "rightIcon" | "isLoading" | "fullWidth" | "unstyled" | "variant">, "ref"> | Omit<{
319
+ } & Omit<ButtonAsButtonProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref"> | Omit<{
329
320
  /**
330
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
321
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
331
322
  */
332
323
  icon: JSX.Element;
333
324
  /**
@@ -342,7 +333,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
342
333
  * Changes the secondary icon for different use cases
343
334
  */
344
335
  variant?: "default" | "gated" | "menu-down" | "menu-up";
345
- } & Omit<ButtonAsLinkProps, "size" | "leftIcon" | "rightIcon" | "isLoading" | "fullWidth" | "unstyled" | "variant">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
336
+ } & Omit<ButtonAsLinkProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
346
337
 
347
338
  type AvatarInstanceType = 'image' | 'initials';
348
339
  type AvatarImageLoadStateType = 'error' | 'loaded' | 'loading';
@@ -705,7 +696,7 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
705
696
  */
706
697
  name?: string | undefined;
707
698
  /**
708
- * Callback function invoked when the value changes
699
+ * Callback function invoked when the checkbox value changes
709
700
  */
710
701
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
711
702
  /**
@@ -1251,7 +1242,7 @@ type IconButtonProps = {
1251
1242
  */
1252
1243
  label: string;
1253
1244
  /**
1254
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1245
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
1255
1246
  */
1256
1247
  children: JSX.Element;
1257
1248
  } & (Omit<ButtonAsButtonProps, 'fullWidth' | 'leftIcon' | 'rightIcon'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'leftIcon' | 'rightIcon'>);
@@ -1265,19 +1256,19 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1265
1256
  */
1266
1257
  label: string;
1267
1258
  /**
1268
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1259
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
1269
1260
  */
1270
1261
  children: JSX.Element;
1271
- } & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
1262
+ } & Omit<ButtonAsButtonProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref"> | Omit<{
1272
1263
  /**
1273
1264
  * Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
1274
1265
  */
1275
1266
  label: string;
1276
1267
  /**
1277
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1268
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
1278
1269
  */
1279
1270
  children: JSX.Element;
1280
- } & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
1271
+ } & Omit<ButtonAsLinkProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
1281
1272
 
1282
1273
  type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
1283
1274
  /**
@@ -2021,76 +2012,6 @@ declare const ScreenReaderOnly: {
2021
2012
  displayName: string;
2022
2013
  };
2023
2014
 
2024
- type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
2025
- /**
2026
- * `SegmentedControlItem`s that will be rendered in grouping
2027
- */
2028
- children?: ReactNode;
2029
- /**
2030
- * Set the entire `SegmentedControl` to be disabled
2031
- */
2032
- disabled?: boolean | undefined;
2033
- /**
2034
- * Force `SegmentedControl` to fill the width of it's container
2035
- */
2036
- fullWidth?: boolean | undefined;
2037
- /**
2038
- * Callback function invoked when the value changes
2039
- */
2040
- onSelectedValueChange: (value: string) => void;
2041
- /**
2042
- * The value of the `SegmentedControlItem` which should be selected
2043
- */
2044
- selectedValue: string;
2045
- };
2046
- /**
2047
- * Provides a horizontal set of segments for switching between different values
2048
- */
2049
- declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps>;
2050
-
2051
- type BaseProps = {
2052
- /**
2053
- * Disable the `SegmentedControlItem`
2054
- */
2055
- disabled?: boolean | undefined;
2056
- /**
2057
- * The value of the item
2058
- */
2059
- value: string;
2060
- };
2061
- type IconWithLabel = {
2062
- /**
2063
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2064
- */
2065
- icon?: JSX.Element;
2066
- /**
2067
- * The label of the item
2068
- */
2069
- label?: ReactNode | string | undefined;
2070
- 'aria-label'?: never;
2071
- };
2072
- type IconWithAriaLabel = {
2073
- /**
2074
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2075
- */
2076
- icon?: JSX.Element;
2077
- /**
2078
- * Use this when displaying an icon without a label
2079
- */
2080
- 'aria-label'?: string | undefined;
2081
- label?: never;
2082
- };
2083
- type NoIcon = {
2084
- icon?: undefined;
2085
- /**
2086
- * The label of the item
2087
- */
2088
- label?: ReactNode | string | undefined;
2089
- 'aria-label'?: never;
2090
- };
2091
- type SegmentedControlItemProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
2092
- declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
2093
-
2094
2015
  type StackProps = {
2095
2016
  /**
2096
2017
  * Optional children
@@ -2318,4 +2239,26 @@ type SelectOptionGroupProps = {
2318
2239
  };
2319
2240
  declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
2320
2241
 
2321
- 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, 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, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
2242
+ type AnalyticsCardProps = ComponentPropsWithoutRef<'div'> & {
2243
+ /**
2244
+ * Label text displayed above the value
2245
+ */
2246
+ label: ReactNode;
2247
+ /**
2248
+ * Main value to display in the card
2249
+ */
2250
+ value: ReactNode;
2251
+ /**
2252
+ * Optional content to display in the top-right corner
2253
+ */
2254
+ upperRightSlot?: ReactNode;
2255
+ };
2256
+ /**
2257
+ * Component description goes here
2258
+ */
2259
+ declare const AnalyticsCard: {
2260
+ ({ label, value, slot, ...props }: AnalyticsCardProps): JSX.Element;
2261
+ displayName: string;
2262
+ };
2263
+
2264
+ export { ActionButton, type ActionButtonProps, AnalyticsCard, type AnalyticsCardProps, 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, 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, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,9 @@
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, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
3
+ import { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ChangeEvent, ForwardedRef, Ref, JSXElementConstructor, ElementType as ElementType$1, InputHTMLAttributes, RefObject } from 'react';
4
4
  import { LinkProps as LinkProps$1 } from 'react-router-dom';
5
5
  import * as styled_components from 'styled-components';
6
6
  import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
7
- import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
8
7
 
9
8
  type UIProviderProps = {
10
9
  children: ReactNode;
@@ -103,7 +102,7 @@ declare const ColorSchemeWrapper: {
103
102
  type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
104
103
 
105
104
  type LinkTypes = 'default' | 'email' | 'external' | 'phone';
106
- type BaseProps$1 = {
105
+ type BaseProps = {
107
106
  /**
108
107
  * A Promise to invoke before navigating to location.
109
108
  * _Caution: if used with `external` type prop a new window will **not** be opened_
@@ -123,14 +122,6 @@ type BaseProps$1 = {
123
122
  * Disables the link
124
123
  */
125
124
  disabled?: boolean;
126
- /**
127
- * Icon to display on the left side of the link, Must be an instance of [Icon](?path=/docs/components-icon--docs)
128
- */
129
- leftIcon?: JSX.Element | undefined;
130
- /**
131
- * Icon to display on the right side of the link, Must be an instance of [Icon](?path=/docs/components-icon--docs)
132
- */
133
- rightIcon?: JSX.Element | undefined;
134
125
  /**
135
126
  * Type of link to display
136
127
  *
@@ -144,11 +135,11 @@ type BaseProps$1 = {
144
135
  */
145
136
  underline?: boolean;
146
137
  };
147
- type LinkAsLinkProps = BaseProps$1 & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
138
+ type LinkAsLinkProps = BaseProps & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
148
139
  href: string | undefined;
149
140
  type?: LinkTypes;
150
141
  };
151
- type LinkAsButtonProps = BaseProps$1 & ComponentPropsWithRef<'button'> & {
142
+ type LinkAsButtonProps = BaseProps & ComponentPropsWithRef<'button'> & {
152
143
  href?: never;
153
144
  type?: 'button' | 'reset' | 'submit';
154
145
  };
@@ -289,7 +280,7 @@ declare const useWindowSize: (interval?: number) => {
289
280
 
290
281
  type ActionButtonProps = {
291
282
  /**
292
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
283
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
293
284
  */
294
285
  icon: JSX.Element;
295
286
  /**
@@ -310,7 +301,7 @@ type ActionButtonProps = {
310
301
  */
311
302
  declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
312
303
  /**
313
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
304
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
314
305
  */
315
306
  icon: JSX.Element;
316
307
  /**
@@ -325,9 +316,9 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
325
316
  * Changes the secondary icon for different use cases
326
317
  */
327
318
  variant?: "default" | "gated" | "menu-down" | "menu-up";
328
- } & Omit<ButtonAsButtonProps, "size" | "leftIcon" | "rightIcon" | "isLoading" | "fullWidth" | "unstyled" | "variant">, "ref"> | Omit<{
319
+ } & Omit<ButtonAsButtonProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref"> | Omit<{
329
320
  /**
330
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
321
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
331
322
  */
332
323
  icon: JSX.Element;
333
324
  /**
@@ -342,7 +333,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
342
333
  * Changes the secondary icon for different use cases
343
334
  */
344
335
  variant?: "default" | "gated" | "menu-down" | "menu-up";
345
- } & Omit<ButtonAsLinkProps, "size" | "leftIcon" | "rightIcon" | "isLoading" | "fullWidth" | "unstyled" | "variant">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
336
+ } & Omit<ButtonAsLinkProps, "size" | "isLoading" | "leftIcon" | "fullWidth" | "unstyled" | "rightIcon" | "variant">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
346
337
 
347
338
  type AvatarInstanceType = 'image' | 'initials';
348
339
  type AvatarImageLoadStateType = 'error' | 'loaded' | 'loading';
@@ -705,7 +696,7 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
705
696
  */
706
697
  name?: string | undefined;
707
698
  /**
708
- * Callback function invoked when the value changes
699
+ * Callback function invoked when the checkbox value changes
709
700
  */
710
701
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
711
702
  /**
@@ -1251,7 +1242,7 @@ type IconButtonProps = {
1251
1242
  */
1252
1243
  label: string;
1253
1244
  /**
1254
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1245
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
1255
1246
  */
1256
1247
  children: JSX.Element;
1257
1248
  } & (Omit<ButtonAsButtonProps, 'fullWidth' | 'leftIcon' | 'rightIcon'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'leftIcon' | 'rightIcon'>);
@@ -1265,19 +1256,19 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1265
1256
  */
1266
1257
  label: string;
1267
1258
  /**
1268
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1259
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
1269
1260
  */
1270
1261
  children: JSX.Element;
1271
- } & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
1262
+ } & Omit<ButtonAsButtonProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref"> | Omit<{
1272
1263
  /**
1273
1264
  * Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
1274
1265
  */
1275
1266
  label: string;
1276
1267
  /**
1277
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1268
+ * The Icon component to use, e.g. `<Icon type="favorite" />`
1278
1269
  */
1279
1270
  children: JSX.Element;
1280
- } & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
1271
+ } & Omit<ButtonAsLinkProps, "leftIcon" | "fullWidth" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
1281
1272
 
1282
1273
  type InputProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'type'> & {
1283
1274
  /**
@@ -2021,76 +2012,6 @@ declare const ScreenReaderOnly: {
2021
2012
  displayName: string;
2022
2013
  };
2023
2014
 
2024
- type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
2025
- /**
2026
- * `SegmentedControlItem`s that will be rendered in grouping
2027
- */
2028
- children?: ReactNode;
2029
- /**
2030
- * Set the entire `SegmentedControl` to be disabled
2031
- */
2032
- disabled?: boolean | undefined;
2033
- /**
2034
- * Force `SegmentedControl` to fill the width of it's container
2035
- */
2036
- fullWidth?: boolean | undefined;
2037
- /**
2038
- * Callback function invoked when the value changes
2039
- */
2040
- onSelectedValueChange: (value: string) => void;
2041
- /**
2042
- * The value of the `SegmentedControlItem` which should be selected
2043
- */
2044
- selectedValue: string;
2045
- };
2046
- /**
2047
- * Provides a horizontal set of segments for switching between different values
2048
- */
2049
- declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps>;
2050
-
2051
- type BaseProps = {
2052
- /**
2053
- * Disable the `SegmentedControlItem`
2054
- */
2055
- disabled?: boolean | undefined;
2056
- /**
2057
- * The value of the item
2058
- */
2059
- value: string;
2060
- };
2061
- type IconWithLabel = {
2062
- /**
2063
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2064
- */
2065
- icon?: JSX.Element;
2066
- /**
2067
- * The label of the item
2068
- */
2069
- label?: ReactNode | string | undefined;
2070
- 'aria-label'?: never;
2071
- };
2072
- type IconWithAriaLabel = {
2073
- /**
2074
- * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2075
- */
2076
- icon?: JSX.Element;
2077
- /**
2078
- * Use this when displaying an icon without a label
2079
- */
2080
- 'aria-label'?: string | undefined;
2081
- label?: never;
2082
- };
2083
- type NoIcon = {
2084
- icon?: undefined;
2085
- /**
2086
- * The label of the item
2087
- */
2088
- label?: ReactNode | string | undefined;
2089
- 'aria-label'?: never;
2090
- };
2091
- type SegmentedControlItemProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
2092
- declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
2093
-
2094
2015
  type StackProps = {
2095
2016
  /**
2096
2017
  * Optional children
@@ -2318,4 +2239,26 @@ type SelectOptionGroupProps = {
2318
2239
  };
2319
2240
  declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
2320
2241
 
2321
- 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, 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, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
2242
+ type AnalyticsCardProps = ComponentPropsWithoutRef<'div'> & {
2243
+ /**
2244
+ * Label text displayed above the value
2245
+ */
2246
+ label: ReactNode;
2247
+ /**
2248
+ * Main value to display in the card
2249
+ */
2250
+ value: ReactNode;
2251
+ /**
2252
+ * Optional content to display in the top-right corner
2253
+ */
2254
+ upperRightSlot?: ReactNode;
2255
+ };
2256
+ /**
2257
+ * Component description goes here
2258
+ */
2259
+ declare const AnalyticsCard: {
2260
+ ({ label, value, slot, ...props }: AnalyticsCardProps): JSX.Element;
2261
+ displayName: string;
2262
+ };
2263
+
2264
+ export { ActionButton, type ActionButtonProps, AnalyticsCard, type AnalyticsCardProps, 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, 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, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };