@wistia/ui 0.4.9 → 0.4.10-beta.129a60b0.d418b13

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,9 +1,10 @@
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 } 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';
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';
7
8
 
8
9
  type UIProviderProps = {
9
10
  children: ReactNode;
@@ -102,7 +103,7 @@ declare const ColorSchemeWrapper: {
102
103
  type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
103
104
 
104
105
  type LinkTypes = 'default' | 'email' | 'external' | 'phone';
105
- type BaseProps = {
106
+ type BaseProps$1 = {
106
107
  /**
107
108
  * A Promise to invoke before navigating to location.
108
109
  * _Caution: if used with `external` type prop a new window will **not** be opened_
@@ -143,11 +144,11 @@ type BaseProps = {
143
144
  */
144
145
  underline?: boolean;
145
146
  };
146
- type LinkAsLinkProps = BaseProps & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
147
+ type LinkAsLinkProps = BaseProps$1 & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
147
148
  href: string | undefined;
148
149
  type?: LinkTypes;
149
150
  };
150
- type LinkAsButtonProps = BaseProps & ComponentPropsWithRef<'button'> & {
151
+ type LinkAsButtonProps = BaseProps$1 & ComponentPropsWithRef<'button'> & {
151
152
  href?: never;
152
153
  type?: 'button' | 'reset' | 'submit';
153
154
  };
@@ -288,7 +289,7 @@ declare const useWindowSize: (interval?: number) => {
288
289
 
289
290
  type ActionButtonProps = {
290
291
  /**
291
- * The Icon component to use, e.g. `<Icon type="favorite" />`
292
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
292
293
  */
293
294
  icon: JSX.Element;
294
295
  /**
@@ -309,7 +310,7 @@ type ActionButtonProps = {
309
310
  */
310
311
  declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
311
312
  /**
312
- * The Icon component to use, e.g. `<Icon type="favorite" />`
313
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
313
314
  */
314
315
  icon: JSX.Element;
315
316
  /**
@@ -326,7 +327,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
326
327
  variant?: "default" | "gated" | "menu-down" | "menu-up";
327
328
  } & Omit<ButtonAsButtonProps, "size" | "leftIcon" | "rightIcon" | "isLoading" | "fullWidth" | "unstyled" | "variant">, "ref"> | Omit<{
328
329
  /**
329
- * The Icon component to use, e.g. `<Icon type="favorite" />`
330
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
330
331
  */
331
332
  icon: JSX.Element;
332
333
  /**
@@ -527,10 +528,95 @@ type BoxProps = ComponentPropsWithoutRef<'div'> & {
527
528
  /**
528
529
  * Box is a layout container using [CSS Flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox).
529
530
  */
530
- declare const Box: {
531
- ({ alignContent, alignItems, alignSelf, basis, children, direction, fill, fillViewport, gap, grow, hasBoxParent, inline, justifyContent, order, shrink, wrapItems, ...otherProps }: BoxProps): JSX.Element;
532
- displayName: string;
533
- };
531
+ declare const Box: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
532
+ /**
533
+ * Specifies how the browser distributes space between and around
534
+ * items along the cross-axis of their container; has no effect on
535
+ * single line flexible boxes
536
+ */
537
+ alignContent?: AlignContentType;
538
+ /**
539
+ * Specifies how the browser distributes space between and around
540
+ * items along the cross-axis of their container; the difference
541
+ * to the alignContent prop is that alignItems specifies the
542
+ * alignment of the items within the current container's line,
543
+ * whereas alignContent specifies the alignment of the lines themselves
544
+ */
545
+ alignItems?: AlignItemsType;
546
+ /**
547
+ * Specifies how the browser aligns items of the current line, overriding the
548
+ * alignItems value of parent; if any of the item's cross-axis margin is set to auto,
549
+ * then alignSelf is ignored
550
+ *
551
+ * *Note: only works for nested `<Box />`*
552
+ */
553
+ alignSelf?: AlignSelfType;
554
+ /**
555
+ * Specifies the initial main size of an item
556
+ *
557
+ * *Note: only works for nested `<Box />`*
558
+ */
559
+ basis?: string;
560
+ /**
561
+ * Pass an arbitrary child node
562
+ */
563
+ children?: ReactNode;
564
+ /**
565
+ * Specifies the main axis of the container
566
+ */
567
+ direction?: DirectionType;
568
+ /**
569
+ * Specifies whether the width and/or height should fill the container
570
+ */
571
+ fill?: FillType;
572
+ /**
573
+ * Specifies whether the width and/or height should fill the viewport
574
+ */
575
+ fillViewport?: FillType;
576
+ /**
577
+ * Specifies the gaps (gutters) between rows and columns
578
+ */
579
+ gap?: Gap | Spacings;
580
+ /**
581
+ * Specifies what amount of space inside the flex container the item should take up
582
+ *
583
+ * *Note: only works for nested `<Box />`*
584
+ */
585
+ grow?: number | string;
586
+ /**
587
+ * @ignore
588
+ * Used internally to track if a Box is a child of another Box component
589
+ */
590
+ hasBoxParent?: boolean;
591
+ /**
592
+ * Make Layout behave like an inline element but still lay out its content according to flexbox model
593
+ */
594
+ inline?: boolean;
595
+ /**
596
+ * Specifies how the browser distributes space between and around
597
+ * items along the main axis of their container
598
+ */
599
+ justifyContent?: JustifyContentType;
600
+ /**
601
+ * Specifies the order used to lay out an item in its container. Items within the same
602
+ * container are rendered in ascending order according to their order values.
603
+ * Elements with the _same_ order value are rendered in the order in which they appear in code
604
+ *
605
+ * *Note: only works for nested `<Box />`*
606
+ */
607
+ order?: number | "inherit" | "initial" | "unset";
608
+ /**
609
+ * Specifies how items will shrink inside the container when the default size of
610
+ * items is larger than their container
611
+ *
612
+ * *Note: only works for nested `<Box />`*
613
+ */
614
+ shrink?: number;
615
+ /**
616
+ * Specifies whether items are forced into a single line or can be wrapped onto multiple lines
617
+ */
618
+ wrapItems?: boolean;
619
+ } & react.RefAttributes<HTMLDivElement>>;
534
620
 
535
621
  type BreadcrumbsProps = ComponentPropsWithoutRef<'div'> & {
536
622
  /**
@@ -704,7 +790,7 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
704
790
  */
705
791
  name?: string | undefined;
706
792
  /**
707
- * Callback function invoked when the checkbox value changes
793
+ * Callback function invoked when the value changes
708
794
  */
709
795
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
710
796
  /**
@@ -1250,7 +1336,7 @@ type IconButtonProps = {
1250
1336
  */
1251
1337
  label: string;
1252
1338
  /**
1253
- * The Icon component to use, e.g. `<Icon type="favorite" />`
1339
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1254
1340
  */
1255
1341
  children: JSX.Element;
1256
1342
  } & (Omit<ButtonAsButtonProps, 'fullWidth' | 'leftIcon' | 'rightIcon'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'leftIcon' | 'rightIcon'>);
@@ -1264,7 +1350,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1264
1350
  */
1265
1351
  label: string;
1266
1352
  /**
1267
- * The Icon component to use, e.g. `<Icon type="favorite" />`
1353
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1268
1354
  */
1269
1355
  children: JSX.Element;
1270
1356
  } & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
@@ -1273,7 +1359,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1273
1359
  */
1274
1360
  label: string;
1275
1361
  /**
1276
- * The Icon component to use, e.g. `<Icon type="favorite" />`
1362
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1277
1363
  */
1278
1364
  children: JSX.Element;
1279
1365
  } & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
@@ -2020,6 +2106,76 @@ declare const ScreenReaderOnly: {
2020
2106
  displayName: string;
2021
2107
  };
2022
2108
 
2109
+ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
2110
+ /**
2111
+ * `SegmentedControlItem`s that will be rendered in grouping
2112
+ */
2113
+ children?: ReactNode;
2114
+ /**
2115
+ * Set the entire `SegmentedControl` to be disabled
2116
+ */
2117
+ disabled?: boolean | undefined;
2118
+ /**
2119
+ * Force `SegmentedControl` to fill the width of it's container
2120
+ */
2121
+ fullWidth?: boolean | undefined;
2122
+ /**
2123
+ * Callback function invoked when the value changes
2124
+ */
2125
+ onSelectedValueChange: (value: string) => void;
2126
+ /**
2127
+ * The value of the `SegmentedControlItem` which should be selected
2128
+ */
2129
+ selectedValue: string;
2130
+ };
2131
+ /**
2132
+ * Provides a horizontal set of segments for switching between different values
2133
+ */
2134
+ declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps>;
2135
+
2136
+ type BaseProps = {
2137
+ /**
2138
+ * Disable the `SegmentedControlItem`
2139
+ */
2140
+ disabled?: boolean | undefined;
2141
+ /**
2142
+ * The value of the item
2143
+ */
2144
+ value: string;
2145
+ };
2146
+ type IconWithLabel = {
2147
+ /**
2148
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2149
+ */
2150
+ icon?: JSX.Element;
2151
+ /**
2152
+ * The label of the item
2153
+ */
2154
+ label?: ReactNode | string | undefined;
2155
+ 'aria-label'?: never;
2156
+ };
2157
+ type IconWithAriaLabel = {
2158
+ /**
2159
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2160
+ */
2161
+ icon?: JSX.Element;
2162
+ /**
2163
+ * Use this when displaying an icon without a label
2164
+ */
2165
+ 'aria-label'?: string | undefined;
2166
+ label?: never;
2167
+ };
2168
+ type NoIcon = {
2169
+ icon?: undefined;
2170
+ /**
2171
+ * The label of the item
2172
+ */
2173
+ label?: ReactNode | string | undefined;
2174
+ 'aria-label'?: never;
2175
+ };
2176
+ type SegmentedControlItemProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
2177
+ declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
2178
+
2023
2179
  type StackProps = {
2024
2180
  /**
2025
2181
  * Optional children
@@ -2247,4 +2403,4 @@ type SelectOptionGroupProps = {
2247
2403
  };
2248
2404
  declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
2249
2405
 
2250
- 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, 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 };
2406
+ 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 };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
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 } 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';
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';
7
8
 
8
9
  type UIProviderProps = {
9
10
  children: ReactNode;
@@ -102,7 +103,7 @@ declare const ColorSchemeWrapper: {
102
103
  type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
103
104
 
104
105
  type LinkTypes = 'default' | 'email' | 'external' | 'phone';
105
- type BaseProps = {
106
+ type BaseProps$1 = {
106
107
  /**
107
108
  * A Promise to invoke before navigating to location.
108
109
  * _Caution: if used with `external` type prop a new window will **not** be opened_
@@ -143,11 +144,11 @@ type BaseProps = {
143
144
  */
144
145
  underline?: boolean;
145
146
  };
146
- type LinkAsLinkProps = BaseProps & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
147
+ type LinkAsLinkProps = BaseProps$1 & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
147
148
  href: string | undefined;
148
149
  type?: LinkTypes;
149
150
  };
150
- type LinkAsButtonProps = BaseProps & ComponentPropsWithRef<'button'> & {
151
+ type LinkAsButtonProps = BaseProps$1 & ComponentPropsWithRef<'button'> & {
151
152
  href?: never;
152
153
  type?: 'button' | 'reset' | 'submit';
153
154
  };
@@ -288,7 +289,7 @@ declare const useWindowSize: (interval?: number) => {
288
289
 
289
290
  type ActionButtonProps = {
290
291
  /**
291
- * The Icon component to use, e.g. `<Icon type="favorite" />`
292
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
292
293
  */
293
294
  icon: JSX.Element;
294
295
  /**
@@ -309,7 +310,7 @@ type ActionButtonProps = {
309
310
  */
310
311
  declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
311
312
  /**
312
- * The Icon component to use, e.g. `<Icon type="favorite" />`
313
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
313
314
  */
314
315
  icon: JSX.Element;
315
316
  /**
@@ -326,7 +327,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
326
327
  variant?: "default" | "gated" | "menu-down" | "menu-up";
327
328
  } & Omit<ButtonAsButtonProps, "size" | "leftIcon" | "rightIcon" | "isLoading" | "fullWidth" | "unstyled" | "variant">, "ref"> | Omit<{
328
329
  /**
329
- * The Icon component to use, e.g. `<Icon type="favorite" />`
330
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
330
331
  */
331
332
  icon: JSX.Element;
332
333
  /**
@@ -527,10 +528,95 @@ type BoxProps = ComponentPropsWithoutRef<'div'> & {
527
528
  /**
528
529
  * Box is a layout container using [CSS Flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox).
529
530
  */
530
- declare const Box: {
531
- ({ alignContent, alignItems, alignSelf, basis, children, direction, fill, fillViewport, gap, grow, hasBoxParent, inline, justifyContent, order, shrink, wrapItems, ...otherProps }: BoxProps): JSX.Element;
532
- displayName: string;
533
- };
531
+ declare const Box: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
532
+ /**
533
+ * Specifies how the browser distributes space between and around
534
+ * items along the cross-axis of their container; has no effect on
535
+ * single line flexible boxes
536
+ */
537
+ alignContent?: AlignContentType;
538
+ /**
539
+ * Specifies how the browser distributes space between and around
540
+ * items along the cross-axis of their container; the difference
541
+ * to the alignContent prop is that alignItems specifies the
542
+ * alignment of the items within the current container's line,
543
+ * whereas alignContent specifies the alignment of the lines themselves
544
+ */
545
+ alignItems?: AlignItemsType;
546
+ /**
547
+ * Specifies how the browser aligns items of the current line, overriding the
548
+ * alignItems value of parent; if any of the item's cross-axis margin is set to auto,
549
+ * then alignSelf is ignored
550
+ *
551
+ * *Note: only works for nested `<Box />`*
552
+ */
553
+ alignSelf?: AlignSelfType;
554
+ /**
555
+ * Specifies the initial main size of an item
556
+ *
557
+ * *Note: only works for nested `<Box />`*
558
+ */
559
+ basis?: string;
560
+ /**
561
+ * Pass an arbitrary child node
562
+ */
563
+ children?: ReactNode;
564
+ /**
565
+ * Specifies the main axis of the container
566
+ */
567
+ direction?: DirectionType;
568
+ /**
569
+ * Specifies whether the width and/or height should fill the container
570
+ */
571
+ fill?: FillType;
572
+ /**
573
+ * Specifies whether the width and/or height should fill the viewport
574
+ */
575
+ fillViewport?: FillType;
576
+ /**
577
+ * Specifies the gaps (gutters) between rows and columns
578
+ */
579
+ gap?: Gap | Spacings;
580
+ /**
581
+ * Specifies what amount of space inside the flex container the item should take up
582
+ *
583
+ * *Note: only works for nested `<Box />`*
584
+ */
585
+ grow?: number | string;
586
+ /**
587
+ * @ignore
588
+ * Used internally to track if a Box is a child of another Box component
589
+ */
590
+ hasBoxParent?: boolean;
591
+ /**
592
+ * Make Layout behave like an inline element but still lay out its content according to flexbox model
593
+ */
594
+ inline?: boolean;
595
+ /**
596
+ * Specifies how the browser distributes space between and around
597
+ * items along the main axis of their container
598
+ */
599
+ justifyContent?: JustifyContentType;
600
+ /**
601
+ * Specifies the order used to lay out an item in its container. Items within the same
602
+ * container are rendered in ascending order according to their order values.
603
+ * Elements with the _same_ order value are rendered in the order in which they appear in code
604
+ *
605
+ * *Note: only works for nested `<Box />`*
606
+ */
607
+ order?: number | "inherit" | "initial" | "unset";
608
+ /**
609
+ * Specifies how items will shrink inside the container when the default size of
610
+ * items is larger than their container
611
+ *
612
+ * *Note: only works for nested `<Box />`*
613
+ */
614
+ shrink?: number;
615
+ /**
616
+ * Specifies whether items are forced into a single line or can be wrapped onto multiple lines
617
+ */
618
+ wrapItems?: boolean;
619
+ } & react.RefAttributes<HTMLDivElement>>;
534
620
 
535
621
  type BreadcrumbsProps = ComponentPropsWithoutRef<'div'> & {
536
622
  /**
@@ -704,7 +790,7 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
704
790
  */
705
791
  name?: string | undefined;
706
792
  /**
707
- * Callback function invoked when the checkbox value changes
793
+ * Callback function invoked when the value changes
708
794
  */
709
795
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
710
796
  /**
@@ -1250,7 +1336,7 @@ type IconButtonProps = {
1250
1336
  */
1251
1337
  label: string;
1252
1338
  /**
1253
- * The Icon component to use, e.g. `<Icon type="favorite" />`
1339
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1254
1340
  */
1255
1341
  children: JSX.Element;
1256
1342
  } & (Omit<ButtonAsButtonProps, 'fullWidth' | 'leftIcon' | 'rightIcon'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'leftIcon' | 'rightIcon'>);
@@ -1264,7 +1350,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1264
1350
  */
1265
1351
  label: string;
1266
1352
  /**
1267
- * The Icon component to use, e.g. `<Icon type="favorite" />`
1353
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1268
1354
  */
1269
1355
  children: JSX.Element;
1270
1356
  } & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
@@ -1273,7 +1359,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1273
1359
  */
1274
1360
  label: string;
1275
1361
  /**
1276
- * The Icon component to use, e.g. `<Icon type="favorite" />`
1362
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1277
1363
  */
1278
1364
  children: JSX.Element;
1279
1365
  } & Omit<ButtonAsLinkProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
@@ -2020,6 +2106,76 @@ declare const ScreenReaderOnly: {
2020
2106
  displayName: string;
2021
2107
  };
2022
2108
 
2109
+ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
2110
+ /**
2111
+ * `SegmentedControlItem`s that will be rendered in grouping
2112
+ */
2113
+ children?: ReactNode;
2114
+ /**
2115
+ * Set the entire `SegmentedControl` to be disabled
2116
+ */
2117
+ disabled?: boolean | undefined;
2118
+ /**
2119
+ * Force `SegmentedControl` to fill the width of it's container
2120
+ */
2121
+ fullWidth?: boolean | undefined;
2122
+ /**
2123
+ * Callback function invoked when the value changes
2124
+ */
2125
+ onSelectedValueChange: (value: string) => void;
2126
+ /**
2127
+ * The value of the `SegmentedControlItem` which should be selected
2128
+ */
2129
+ selectedValue: string;
2130
+ };
2131
+ /**
2132
+ * Provides a horizontal set of segments for switching between different values
2133
+ */
2134
+ declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps>;
2135
+
2136
+ type BaseProps = {
2137
+ /**
2138
+ * Disable the `SegmentedControlItem`
2139
+ */
2140
+ disabled?: boolean | undefined;
2141
+ /**
2142
+ * The value of the item
2143
+ */
2144
+ value: string;
2145
+ };
2146
+ type IconWithLabel = {
2147
+ /**
2148
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2149
+ */
2150
+ icon?: JSX.Element;
2151
+ /**
2152
+ * The label of the item
2153
+ */
2154
+ label?: ReactNode | string | undefined;
2155
+ 'aria-label'?: never;
2156
+ };
2157
+ type IconWithAriaLabel = {
2158
+ /**
2159
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2160
+ */
2161
+ icon?: JSX.Element;
2162
+ /**
2163
+ * Use this when displaying an icon without a label
2164
+ */
2165
+ 'aria-label'?: string | undefined;
2166
+ label?: never;
2167
+ };
2168
+ type NoIcon = {
2169
+ icon?: undefined;
2170
+ /**
2171
+ * The label of the item
2172
+ */
2173
+ label?: ReactNode | string | undefined;
2174
+ 'aria-label'?: never;
2175
+ };
2176
+ type SegmentedControlItemProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
2177
+ declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
2178
+
2023
2179
  type StackProps = {
2024
2180
  /**
2025
2181
  * Optional children
@@ -2247,4 +2403,4 @@ type SelectOptionGroupProps = {
2247
2403
  };
2248
2404
  declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
2249
2405
 
2250
- 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, 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 };
2406
+ 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 };