@wistia/vhs 6.0.7 → 6.0.8-beta.322773bc.a5fc07a

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.ts CHANGED
@@ -2,11 +2,7 @@
2
2
  import { ChangeEvent, ComponentClass, ComponentProps, ComponentPropsWithRef, ComponentPropsWithoutRef, ComponentType, DetailedHTMLProps, ElementType, FC, FocusEvent, ForwardRefExoticComponent, HTMLAttributes, HTMLInputTypeAttribute, JSX, KeyboardEvent, MemoExoticComponent, MouseEvent, PropsWithChildren, ReactElement, ReactNode, Ref, RefAttributes, RefObject } from "react";
3
3
  import { DefaultTheme, IStyledComponent, RuleSet, css } from "styled-components";
4
4
  import { Field, FormikErrors, FormikHelpers, FormikProps, useFormikContext } from "formik";
5
- import { Editor } from "slate";
6
- import "slate-history";
7
- import { ReactEditor } from "slate-react";
8
5
  import { DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuProps, DropdownMenuRadioGroup as MenuRadioGroup, DropdownMenuRadioItemProps } from "@radix-ui/react-dropdown-menu";
9
- //#region src/@types/vhs-theme.d.ts
10
6
  interface VHSTheme {
11
7
  readonly breakpoint: {
12
8
  readonly xs: string;
@@ -218,8 +214,6 @@ interface VHSTheme {
218
214
  readonly elevation2: string;
219
215
  };
220
216
  }
221
- //#endregion
222
- //#region src/components/Link/Link.d.ts
223
217
  type LinkURLParameters = Record<string, string>;
224
218
  type LinkTypes = "default" | "email" | "external" | "phone";
225
219
  type DefaultLinkWrapperProps = {
@@ -281,11 +275,7 @@ type LinkProps = ComponentPropsWithoutRef<"a"> & {
281
275
  variant?: "dangerous" | "primary" | "secondary";
282
276
  };
283
277
  declare const Link$1: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
284
- //#endregion
285
- //#region src/providers/WrapperProvider.d.ts
286
278
  type WrapperProviderLinkType = ((props: DefaultLinkWrapperProps) => JSX.Element) | undefined;
287
- //#endregion
288
- //#region src/providers/VHSProvider.d.ts
289
279
  export type VHSProviderProps = {
290
280
  children: ReactNode;
291
281
  globalStylesIncluded?: boolean;
@@ -294,11 +284,7 @@ export type VHSProviderProps = {
294
284
  theme?: Record<string, unknown>;
295
285
  };
296
286
  export declare const VHSProvider: ({ children, theme, globalStylesIncluded, skipAnimations, Link }: VHSProviderProps) => ReactNode;
297
- //#endregion
298
- //#region src/hooks/useTheme/useTheme.d.ts
299
287
  export declare const useTheme: <T extends DefaultTheme = DefaultTheme>() => T;
300
- //#endregion
301
- //#region src/hooks/useThemeColor/useThemeColor.d.ts
302
288
  type ColorKeysFromTheme<Theme extends DefaultTheme = DefaultTheme> = keyof Theme["color"];
303
289
  type UseThemeColor = {
304
290
  (): DefaultTheme["color"];
@@ -306,8 +292,6 @@ type UseThemeColor = {
306
292
  <T extends DefaultTheme, K extends ColorKeysFromTheme<T>[]>(param: [...K]): { [Index in keyof K]: T["color"][K[Index] & keyof T["color"]]; };
307
293
  };
308
294
  export declare const useThemeColor: UseThemeColor;
309
- //#endregion
310
- //#region src/components/ModalBase/ModalBase.d.ts
311
295
  type OnBeforeHideInterface = {
312
296
  shouldShowMessage: boolean;
313
297
  message: string;
@@ -348,8 +332,6 @@ type ModalBaseContentProps = {
348
332
  toggle?: ((show: () => unknown, toggleButtonRef?: RefObject<HTMLElement | null | undefined>) => ReactNode) | undefined;
349
333
  };
350
334
  export declare const ModalBase: FC<ModalBaseContentProps>;
351
- //#endregion
352
- //#region src/components/ActionModal/ActionModal.d.ts
353
335
  type ActionModalProps = ComponentPropsWithoutRef<"div"> & {
354
336
  /**
355
337
  * Horizontally align modal to the left, center, or right of the container
@@ -443,8 +425,6 @@ type ActionModalProps = ComponentPropsWithoutRef<"div"> & {
443
425
  * allowing for more variation.
444
426
  */
445
427
  export declare const ActionModal: FC<ActionModalProps>;
446
- //#endregion
447
- //#region src/components/Avatar/Avatar.d.ts
448
428
  type AvatarInstanceType = "image" | "initials";
449
429
  type AvatarProps = ComponentPropsWithoutRef<"div"> & {
450
430
  /**
@@ -471,8 +451,6 @@ type AvatarProps = ComponentPropsWithoutRef<"div"> & {
471
451
  onImageLoad?: (avatarType: AvatarInstanceType) => void;
472
452
  };
473
453
  export declare const Avatar: FC<AvatarProps>;
474
- //#endregion
475
- //#region src/components/Backdrop/Backdrop.d.ts
476
454
  declare const alignVerticalMap: {
477
455
  normal: string;
478
456
  top: string;
@@ -508,8 +486,6 @@ type BackdropProps = ComponentPropsWithoutRef<"div"> & {
508
486
  elevated?: boolean;
509
487
  };
510
488
  export declare const Backdrop: FC<BackdropProps>;
511
- //#endregion
512
- //#region src/components/BackgroundImage/BackgroundImage.d.ts
513
489
  type OverflowObject = {
514
490
  horizontal: string;
515
491
  vertical: string;
@@ -574,8 +550,6 @@ type BackgroundImageProps = Omit<ComponentPropsWithoutRef<"img">, "src"> & {
574
550
  width?: string;
575
551
  };
576
552
  export declare const BackgroundImage: FC<BackgroundImageProps>;
577
- //#endregion
578
- //#region src/components/Icon/iconMap.d.ts
579
553
  declare const iconMap: {
580
554
  "ab-test": string;
581
555
  "all-content": string;
@@ -693,8 +667,6 @@ declare const iconMap: {
693
667
  "zoom-out": string;
694
668
  };
695
669
  type IconNameType = keyof typeof iconMap;
696
- //#endregion
697
- //#region src/components/Badge/Badge.d.ts
698
670
  type BadgeColorScheme = "brandBlue" | "error" | "green" | "grey" | "orange" | "pink" | "purple" | "red" | "success" | "warning" | "yellow";
699
671
  type BadgeProps = ComponentPropsWithoutRef<"div"> & {
700
672
  /**
@@ -711,8 +683,6 @@ type BadgeProps = ComponentPropsWithoutRef<"div"> & {
711
683
  label: string;
712
684
  };
713
685
  export declare const Badge: FC<BadgeProps>;
714
- //#endregion
715
- //#region src/components/Banner/BannerChildComponents.d.ts
716
686
  type BodyProps = {
717
687
  children?: ReactNode;
718
688
  };
@@ -726,8 +696,6 @@ type RightGutterProps = {
726
696
  verticalAlign?: string;
727
697
  };
728
698
  declare const RightGutter: ({ verticalAlign, children }: RightGutterProps) => JSX.Element;
729
- //#endregion
730
- //#region src/components/Banner/Banner.d.ts
731
699
  type BannerProps = ComponentPropsWithoutRef<"div"> & {
732
700
  /**
733
701
  * color string
@@ -747,8 +715,6 @@ export declare const Banner: FC<BannerProps> & {
747
715
  RightGutter: typeof RightGutter;
748
716
  Title: typeof Title;
749
717
  };
750
- //#endregion
751
- //#region src/components/Box/Box.d.ts
752
718
  type Gap = {
753
719
  column: number | string;
754
720
  row: number | string;
@@ -842,8 +808,6 @@ type BoxProps = ComponentPropsWithoutRef<"div"> & {
842
808
  wrapItems?: boolean;
843
809
  };
844
810
  export declare const Box: ForwardRefExoticComponent<BoxProps & RefAttributes<HTMLDivElement>>;
845
- //#endregion
846
- //#region src/components/Button/Button.d.ts
847
811
  type TextAlignValues = "center" | "left" | "right";
848
812
  type ButtonProps = ComponentPropsWithRef<"button"> & {
849
813
  /**
@@ -922,8 +886,6 @@ type ButtonProps = ComponentPropsWithRef<"button"> & {
922
886
  variant?: "dangerous" | "primary" | "secondary" | "tertiary";
923
887
  };
924
888
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
925
- //#endregion
926
- //#region src/components/ButtonGroup/ButtonGroup.d.ts
927
889
  type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & {
928
890
  /**
929
891
  * Align buttons to the left or right of their container
@@ -939,8 +901,6 @@ type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & {
939
901
  fullWidth?: boolean;
940
902
  };
941
903
  export declare const ButtonGroup: FC<ButtonGroupProps>;
942
- //#endregion
943
- //#region src/components/ButtonLink/ButtonLink.d.ts
944
904
  type ButtonLinkProps = ComponentPropsWithRef<"a"> & {
945
905
  /**
946
906
  * A Promise to invoke before navigating to location.
@@ -1033,8 +993,6 @@ type ButtonLinkProps = ComponentPropsWithRef<"a"> & {
1033
993
  * refer to [Link](?path=/docs/link--link-stories) for additional props.
1034
994
  */
1035
995
  export declare const ButtonLink: ForwardRefExoticComponent<ButtonLinkProps & RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
1036
- //#endregion
1037
- //#region src/components/Checkbox/Checkbox.d.ts
1038
996
  type CheckboxProps = Omit<ComponentPropsWithRef<"label">, "onChange"> & {
1039
997
  /**
1040
998
  * Indicates the state of the checkbox
@@ -1088,8 +1046,6 @@ type CheckboxProps = Omit<ComponentPropsWithRef<"label">, "onChange"> & {
1088
1046
  value?: string;
1089
1047
  };
1090
1048
  export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLLabelElement>>;
1091
- //#endregion
1092
- //#region src/components/CheckboxGroup/CheckboxGroup.d.ts
1093
1049
  type CheckboxPropsWithName = Omit<CheckboxProps, "name"> & {
1094
1050
  name: string;
1095
1051
  };
@@ -1139,8 +1095,6 @@ type CheckboxGroupProps = Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
1139
1095
  value?: string[] | boolean | undefined;
1140
1096
  };
1141
1097
  export declare const CheckboxGroup: FC<CheckboxGroupProps>;
1142
- //#endregion
1143
- //#region src/components/ClickArea/ClickArea.d.ts
1144
1098
  type ClickAreaProps = ComponentPropsWithRef<"div"> & {
1145
1099
  /**
1146
1100
  * Supply an element or Component to render as the root compoennt (default is div)
@@ -1174,8 +1128,6 @@ type ClickAreaProps = ComponentPropsWithRef<"div"> & {
1174
1128
  *
1175
1129
  */
1176
1130
  export declare const ClickArea: ForwardRefExoticComponent<ClickAreaProps & RefAttributes<HTMLElement>>;
1177
- //#endregion
1178
- //#region src/components/CloseButton/CloseButton.d.ts
1179
1131
  type CloseButtonProps = ComponentPropsWithoutRef<"button"> & {
1180
1132
  /**
1181
1133
  * Callback function invoked when the button is clicked
@@ -1183,8 +1135,6 @@ type CloseButtonProps = ComponentPropsWithoutRef<"button"> & {
1183
1135
  onClick?: () => void;
1184
1136
  };
1185
1137
  export declare const CloseButton: FC<CloseButtonProps>;
1186
- //#endregion
1187
- //#region src/components/CollapsibleGroup/CollapsibleGroup.d.ts
1188
1138
  declare const VARIANT_BRAND_BLUE = "brandblue";
1189
1139
  declare const CARET_DIRECTION_UP = "up";
1190
1140
  declare const CARET_DIRECTION_DOWN = "down";
@@ -1260,8 +1210,6 @@ type CollapsibleGroupProps = {
1260
1210
  variant?: typeof VARIANT_BRAND_BLUE;
1261
1211
  };
1262
1212
  export declare const CollapsibleGroup: FC<CollapsibleGroupProps>;
1263
- //#endregion
1264
- //#region src/components/Divider/Divider.d.ts
1265
1213
  type DividerProps = ComponentPropsWithoutRef<"hr"> & {
1266
1214
  /**
1267
1215
  * Allows user to override default divider color
@@ -1277,8 +1225,6 @@ type DividerProps = ComponentPropsWithoutRef<"hr"> & {
1277
1225
  variant?: "dashed" | "solid";
1278
1226
  };
1279
1227
  export declare const Divider: FC<DividerProps>;
1280
- //#endregion
1281
- //#region src/components/Ellipsis/Ellipsis.d.ts
1282
1228
  export declare const ellipsisStyle: RuleSet<object>;
1283
1229
  export declare const ellipsisFlexParentStyle: RuleSet<object>;
1284
1230
  type EllipsisProps = ComponentPropsWithoutRef<"div"> & {
@@ -1292,8 +1238,6 @@ type EllipsisProps = ComponentPropsWithoutRef<"div"> & {
1292
1238
  lines?: number;
1293
1239
  };
1294
1240
  export declare const Ellipsis: FC<EllipsisProps>;
1295
- //#endregion
1296
- //#region src/components/FileSelect/FileSelect.d.ts
1297
1241
  type FileSelectProps = {
1298
1242
  /**
1299
1243
  * Allowlist of file types that the server will accept
@@ -1338,8 +1282,6 @@ type FileSelectProps = {
1338
1282
  onError?: (error: Error) => void;
1339
1283
  };
1340
1284
  export declare const FileSelect: ForwardRefExoticComponent<FileSelectProps & RefAttributes<HTMLInputElement>>;
1341
- //#endregion
1342
- //#region src/components/Form/Form.d.ts
1343
1285
  type ValuesType = Record<string, unknown>;
1344
1286
  type Values = Record<string, unknown>;
1345
1287
  type FormState = FormikProps<Values>;
@@ -1413,8 +1355,6 @@ type ValidationSchemaType = {
1413
1355
  fields: Record<string, unknown>;
1414
1356
  };
1415
1357
  export declare const Form: FC<FormProps>;
1416
- //#endregion
1417
- //#region src/components/FormButtons/FormButtons.d.ts
1418
1358
  type ButtonsType = {
1419
1359
  [key: string]: unknown;
1420
1360
  name: string;
@@ -1431,8 +1371,6 @@ type FormButtonsProps = {
1431
1371
  buttons: ButtonsType[];
1432
1372
  };
1433
1373
  export declare const FormButtons: FC<FormButtonsProps>;
1434
- //#endregion
1435
- //#region src/private/components/FormConnectorCustomField/FormConnectorCustomField.d.ts
1436
1374
  type CustomComponentClass = {
1437
1375
  field: {
1438
1376
  name: string;
@@ -1444,45 +1382,6 @@ type CustomComponentClass = {
1444
1382
  values?: Record<string, string> | undefined;
1445
1383
  };
1446
1384
  };
1447
- //#endregion
1448
- //#region src/components/RichTextEditor/types.d.ts
1449
- type NodeElementObject = {
1450
- attributes?: Record<string, string>;
1451
- children?: NodeLeafObject[];
1452
- type?: string;
1453
- url?: string;
1454
- };
1455
- type NodeObject = NodeElementObject | NodeLeafObject;
1456
- type NodeLeafObject = {
1457
- attributes?: Record<string, string>;
1458
- bold?: boolean;
1459
- code?: boolean;
1460
- italic?: boolean;
1461
- parent?: NodeObject;
1462
- children?: NodeLeafObject[];
1463
- strikethrough?: boolean;
1464
- text?: string;
1465
- type?: string;
1466
- url?: string;
1467
- underline?: boolean;
1468
- };
1469
- //#endregion
1470
- //#region src/components/RichTextEditor/utilities/rteFormatTypes.d.ts
1471
- export declare const rteFormatTypes: {
1472
- readonly BOLD: "BOLD";
1473
- readonly ITALIC: "ITALIC";
1474
- readonly UNDERLINE: "UNDERLINE";
1475
- readonly STRIKETHROUGH: "STRIKETHROUGH";
1476
- readonly HEADING_1: "HEADING_1";
1477
- readonly HEADING_2: "HEADING_2";
1478
- readonly BLOCKQUOTE: "BLOCKQUOTE";
1479
- readonly NUMBERED_LIST: "NUMBERED_LIST";
1480
- readonly BULLETED_LIST: "BULLETED_LIST";
1481
- readonly LINK: "LINK";
1482
- readonly IMAGE: "IMAGE";
1483
- };
1484
- //#endregion
1485
- //#region src/components/FormField/FormField.d.ts
1486
1385
  type FormFieldProps = Omit<ComponentPropsWithRef<"input">, "placeholder"> & {
1487
1386
  /**
1488
1387
  * A custom component that acts as a field and that needs access to Formik fields
@@ -1496,10 +1395,6 @@ type FormFieldProps = Omit<ComponentPropsWithRef<"input">, "placeholder"> & {
1496
1395
  * Disables form field
1497
1396
  */
1498
1397
  disabled?: boolean;
1499
- /**
1500
- * Only takes effect if type is richTextEditor. An array of formats that should be enabled in the toolbar.
1501
- */
1502
- enabledFormats?: (keyof typeof rteFormatTypes)[];
1503
1398
  /**
1504
1399
  * Visual label above the input
1505
1400
  */
@@ -1538,20 +1433,14 @@ type FormFieldProps = Omit<ComponentPropsWithRef<"input">, "placeholder"> & {
1538
1433
  /**
1539
1434
  * The type of the field sets the type of input or select, texarea, radio, checkbox, etc.
1540
1435
  */
1541
- type: "checkbox" | "custom" | "email" | "hidden" | "multiline" | "number" | "password" | "radio" | "richTextEditor" | "select" | "text" | "url";
1436
+ type: "checkbox" | "custom" | "email" | "hidden" | "multiline" | "number" | "password" | "radio" | "select" | "text" | "url";
1542
1437
  };
1543
1438
  export declare const FormField: ForwardRefExoticComponent<FormFieldProps & RefAttributes<HTMLElement>>;
1544
- //#endregion
1545
- //#region src/components/FormFieldError/FormFieldError.d.ts
1546
1439
  type FormFieldErrorProps = ComponentPropsWithoutRef<"div"> & {
1547
1440
  children?: ReactNode | undefined;
1548
1441
  };
1549
1442
  export declare const FormFieldError: FC<FormFieldErrorProps>;
1550
- //#endregion
1551
- //#region src/components/FormGlobalError/FormGlobalError.d.ts
1552
1443
  export declare const FormGlobalError: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
1553
- //#endregion
1554
- //#region src/components/FullScreenModal/FullScreenModal.d.ts
1555
1444
  type FullScreenModalProps = {
1556
1445
  /**
1557
1446
  * Color of the modal background
@@ -1579,8 +1468,6 @@ type FullScreenModalProps = {
1579
1468
  toggle?: ((show: () => unknown, toggleButtonRef?: RefObject<HTMLElement | null | undefined>) => ReactNode) | undefined;
1580
1469
  };
1581
1470
  export declare const FullScreenModal: FC<FullScreenModalProps>;
1582
- //#endregion
1583
- //#region src/components/Icon/Icon.d.ts
1584
1471
  export declare const iconSizeMap: {
1585
1472
  sm: string;
1586
1473
  md: string;
@@ -1607,8 +1494,6 @@ type IconProps = ComponentPropsWithoutRef<"svg"> & {
1607
1494
  type: IconNameType;
1608
1495
  };
1609
1496
  export declare const Icon: FC<IconProps>;
1610
- //#endregion
1611
- //#region src/components/IconButton/IconButton.d.ts
1612
1497
  declare const sizeMap: {
1613
1498
  sm: string;
1614
1499
  md: string;
@@ -1659,8 +1544,6 @@ type IconButtonProps = ComponentPropsWithRef<"button"> & {
1659
1544
  tooltipDirection?: "bottom" | "left" | "right" | "top";
1660
1545
  };
1661
1546
  export declare const IconButton: ForwardRefExoticComponent<IconButtonProps & RefAttributes<HTMLButtonElement>>;
1662
- //#endregion
1663
- //#region src/components/Image/Image.d.ts
1664
1547
  type ImageProps = ComponentPropsWithoutRef<"img"> & {
1665
1548
  /**
1666
1549
  * Accessible text to apply to the image
@@ -1693,8 +1576,6 @@ type ImageProps = ComponentPropsWithoutRef<"img"> & {
1693
1576
  src: string;
1694
1577
  };
1695
1578
  export declare const Image: FC<ImageProps>;
1696
- //#endregion
1697
- //#region src/components/Input/Input.d.ts
1698
1579
  type IconPositionStrings = "end" | "start";
1699
1580
  type ForcedStateStrings = "active" | "focus" | "hover";
1700
1581
  type InputProps = ComponentPropsWithRef<"input"> & {
@@ -1781,15 +1662,11 @@ type InputProps = ComponentPropsWithRef<"input"> & {
1781
1662
  value?: number | string | undefined;
1782
1663
  };
1783
1664
  export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
1784
- //#endregion
1785
- //#region src/components/KeyboardShortcut/KeyboardKeyTypes.d.ts
1786
1665
  type AlphanumericKeyboardKeys = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
1787
1666
  type ModifierKeys = "Alt" | "Cmd" | "Ctrl" | "Meta" | "Option" | "Shift";
1788
1667
  type WhitespaceKeys = "Enter" | "Space" | "Tab";
1789
1668
  type ArrowKeys = "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp";
1790
1669
  type KeyboardKeys = AlphanumericKeyboardKeys | ArrowKeys | ModifierKeys | WhitespaceKeys | "?" | "Backspace" | "Esc";
1791
- //#endregion
1792
- //#region src/components/KeyboardShortcut/KeyboardShortcut.d.ts
1793
1670
  type KeyboardShortcutProps = ComponentPropsWithoutRef<"div"> & {
1794
1671
  /**
1795
1672
  * @description The visual style of the keyboard shortcut. Choose light if the background is dark and dark if the background is light.
@@ -1809,8 +1686,6 @@ type KeyboardShortcutProps = ComponentPropsWithoutRef<"div"> & {
1809
1686
  label?: string;
1810
1687
  };
1811
1688
  export declare const KeyboardShortcut: FC<KeyboardShortcutProps>;
1812
- //#endregion
1813
- //#region src/components/Label/Label.d.ts
1814
1689
  type LabelProps = ComponentPropsWithoutRef<"label"> & {
1815
1690
  /**
1816
1691
  * Pass an arbitrary child node
@@ -1839,15 +1714,11 @@ type LabelProps = ComponentPropsWithoutRef<"label"> & {
1839
1714
  screenReaderOnly?: boolean;
1840
1715
  };
1841
1716
  export declare const Label: FC<LabelProps>;
1842
- //#endregion
1843
- //#region src/components/LabelDescription/LabelDescription.d.ts
1844
1717
  type LabelDescriptionProps = ComponentPropsWithoutRef<"div"> & {
1845
1718
  children: ReactNode;
1846
1719
  disabled?: boolean;
1847
1720
  };
1848
1721
  export declare const LabelDescription: FC<LabelDescriptionProps>;
1849
- //#endregion
1850
- //#region src/components/LinkButton/LinkButton.d.ts
1851
1722
  type LinkButtonProps = ComponentPropsWithoutRef<"button"> & {
1852
1723
  /**
1853
1724
  * Pass an arbitrary child node
@@ -1884,8 +1755,6 @@ type LinkButtonProps = ComponentPropsWithoutRef<"button"> & {
1884
1755
  variant?: "primary" | "secondary";
1885
1756
  };
1886
1757
  export declare const LinkButton: ForwardRefExoticComponent<LinkButtonProps & RefAttributes<HTMLSpanElement>>;
1887
- //#endregion
1888
- //#region src/components/List/List.d.ts
1889
1758
  type VariantType = "breadcrumbs" | "bullets" | "commas" | "ordered" | "slashes" | "spaces" | "unbulleted";
1890
1759
  type ItemType = ItemType[] | string[] | string;
1891
1760
  type ListProps = ComponentPropsWithoutRef<"ul"> & {
@@ -1904,8 +1773,6 @@ type ListProps = ComponentPropsWithoutRef<"ul"> & {
1904
1773
  variant?: VariantType;
1905
1774
  };
1906
1775
  export declare const List: FC<ListProps>;
1907
- //#endregion
1908
- //#region src/components/List/ListItem.d.ts
1909
1776
  type ListItemProps = {
1910
1777
  /**
1911
1778
  * Pass an arbitrary child node
@@ -1913,8 +1780,6 @@ type ListItemProps = {
1913
1780
  children?: ReactNode;
1914
1781
  };
1915
1782
  export declare const ListItem: FC<ListItemProps>;
1916
- //#endregion
1917
- //#region src/components/Menu/Menu.d.ts
1918
1783
  type ControlledMenuProps = {
1919
1784
  /** Is the menu open. Must be used with `onOpenChange`. */
1920
1785
  isOpen: boolean;
@@ -1949,8 +1814,6 @@ type MenuPropsWithCustomTrigger = DefaultMenuProps & {
1949
1814
  };
1950
1815
  type MenuProps = MenuPropsWithCustomTrigger | MenuPropsWithLabel;
1951
1816
  export declare const Menu: FC<MenuProps>;
1952
- //#endregion
1953
- //#region src/components/Menu/MenuItem.d.ts
1954
1817
  type MenuItemPropsWithLabelDescription = {
1955
1818
  href?: string;
1956
1819
  badge?: ReactNode;
@@ -1981,14 +1844,10 @@ type RadioMenuItemProps = DropdownMenuRadioItemProps & (MenuItemPropsWithChildre
1981
1844
  export declare const MenuItem: ({ children, label, description, badge, icon, renderAs, href, target, variant, ...props }: MenuItemProps) => JSX.Element;
1982
1845
  export declare const CheckboxMenuItem: ({ children, label, description, badge, icon, indicator, ...props }: CheckboxMenuItemProps) => JSX.Element;
1983
1846
  export declare const RadioMenuItem: ({ children, label, badge, description, icon, indicator, ...props }: RadioMenuItemProps) => JSX.Element;
1984
- //#endregion
1985
- //#region src/components/Menu/MenuLabel.d.ts
1986
1847
  type MenuLabelProps = {
1987
1848
  children: ReactNode | string;
1988
1849
  };
1989
1850
  export declare const MenuLabel: ({ children, ...props }: MenuLabelProps) => JSX.Element;
1990
- //#endregion
1991
- //#region src/components/Menu/SubMenu.d.ts
1992
1851
  type SubMenuProps = {
1993
1852
  label: string;
1994
1853
  children: ReactNode;
@@ -1996,8 +1855,6 @@ type SubMenuProps = {
1996
1855
  description?: ReactNode;
1997
1856
  };
1998
1857
  export declare const SubMenu: ({ label, icon, description, children }: SubMenuProps) => JSX.Element;
1999
- //#endregion
2000
- //#region src/components/MenuButton/MenuButton.d.ts
2001
1858
  type MenuButtonProps = ButtonProps & {
2002
1859
  /**
2003
1860
  * Disables button
@@ -2055,8 +1912,6 @@ type MenuButtonProps = ButtonProps & {
2055
1912
  * 3. Menu is properly portalled.
2056
1913
  */
2057
1914
  export declare const MenuButton: FC<MenuButtonProps>;
2058
- //#endregion
2059
- //#region src/components/Modal/Modal.d.ts
2060
1915
  type ModalProps = ComponentPropsWithoutRef<"div"> & {
2061
1916
  /**
2062
1917
  * Horizontally align modal to the left, center, or right of the container
@@ -2116,8 +1971,6 @@ type ModalProps = ComponentPropsWithoutRef<"div"> & {
2116
1971
  overflow?: "auto" | "clip" | "hidden" | "scroll" | "visible";
2117
1972
  };
2118
1973
  export declare const Modal: FC<ModalProps>;
2119
- //#endregion
2120
- //#region src/components/Modal/ModalParts.d.ts
2121
1974
  type DivProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
2122
1975
  export declare const ModalHeader: IStyledComponent<"web", DivProps>;
2123
1976
  export declare const ModalBody: IStyledComponent<"web", DivProps>;
@@ -2129,8 +1982,6 @@ type ModalCloseButtonProps = {
2129
1982
  onClick?: (event: MouseEvent) => void;
2130
1983
  };
2131
1984
  export declare const ModalCloseButton: ({ onClick, ...props }: ModalCloseButtonProps) => JSX.Element;
2132
- //#endregion
2133
- //#region src/components/Paper/Paper.d.ts
2134
1985
  type PaperProps = ComponentPropsWithoutRef<"div"> & {
2135
1986
  /**
2136
1987
  * The content within Paper component
@@ -2142,8 +1993,6 @@ type PaperProps = ComponentPropsWithoutRef<"div"> & {
2142
1993
  elevation?: 0 | 1 | 2 | undefined;
2143
1994
  };
2144
1995
  export declare const Paper: FC<PaperProps>;
2145
- //#endregion
2146
- //#region src/components/ProgressBar/ProgressBar.d.ts
2147
1996
  type ProgressBarProps = ComponentPropsWithoutRef<"div"> & {
2148
1997
  /**
2149
1998
  * Whether the progress bar has a label
@@ -2167,8 +2016,6 @@ type ProgressBarProps = ComponentPropsWithoutRef<"div"> & {
2167
2016
  colorOverride?: string;
2168
2017
  };
2169
2018
  export declare const ProgressBar: FC<ProgressBarProps>;
2170
- //#endregion
2171
- //#region src/components/Radio/Radio.d.ts
2172
2019
  type RadioProps = Omit<ComponentPropsWithoutRef<"input">, "value"> & {
2173
2020
  /**
2174
2021
  * Indicates the state of the radio
@@ -2218,8 +2065,6 @@ type RadioProps = Omit<ComponentPropsWithoutRef<"input">, "value"> & {
2218
2065
  value?: string;
2219
2066
  };
2220
2067
  export declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLLabelElement>>;
2221
- //#endregion
2222
- //#region src/components/RadioGroup/RadioGroup.d.ts
2223
2068
  type RadioGroupProps = Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
2224
2069
  /**
2225
2070
  * Should the radio buttons be displayed vertically as a column or horizontally as a row
@@ -2266,14 +2111,10 @@ type RadioGroupProps = Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
2266
2111
  value?: string | undefined;
2267
2112
  };
2268
2113
  export declare const RadioGroup: FC<RadioGroupProps>;
2269
- //#endregion
2270
- //#region src/private/components/RangeSelectorInput/utils.d.ts
2271
2114
  type DateRangeType = {
2272
2115
  start: Date;
2273
2116
  end: Date;
2274
2117
  };
2275
- //#endregion
2276
- //#region src/components/RangeSelector/RangeSelector.d.ts
2277
2118
  type Preset = {
2278
2119
  label?: string;
2279
2120
  value: {
@@ -2336,57 +2177,6 @@ type RangeSelectorProps = {
2336
2177
  customTriggerComponent?: ComponentType<Record<string, any>>;
2337
2178
  };
2338
2179
  export declare const RangeSelector: FC<RangeSelectorProps>;
2339
- //#endregion
2340
- //#region src/components/RichTextEditor/RichTextEditor.d.ts
2341
- type RichTextEditorProps = {
2342
- /**
2343
- * Optional id to set aria-labelledby
2344
- */
2345
- ariaLabelledBy?: string | undefined;
2346
- /**
2347
- * @ignore
2348
- */
2349
- "data-testid"?: string;
2350
- /**
2351
- * Determines whether editor is clickable/read-only
2352
- */
2353
- disabled?: boolean;
2354
- /**
2355
- * Formats to enable in editor, restricted to rteFormatTypes
2356
- */
2357
- enabledFormats?: (keyof typeof rteFormatTypes)[];
2358
- /**
2359
- * Function to be called after editor state update
2360
- */
2361
- onChange?: ((value: NodeElementObject[]) => void) | undefined;
2362
- /**
2363
- * Function to be called when editor loses focus
2364
- */
2365
- onBlur?: ((value: NodeElementObject[]) => void) | undefined;
2366
- /**
2367
- * Placeholder text
2368
- */
2369
- placeholder?: string;
2370
- /**
2371
- * Value of editor based on controlled input
2372
- */
2373
- value?: NodeObject[];
2374
- /**
2375
- * Whether to update the editor when the value prop changes
2376
- */
2377
- useExternalValue: boolean;
2378
- /**
2379
- * Custom height of editor
2380
- */
2381
- height?: string | undefined;
2382
- };
2383
- export declare const RichTextEditor: FC<RichTextEditorProps>;
2384
- //#endregion
2385
- //#region src/components/RichTextEditor/serializers.d.ts
2386
- export declare const rteSerializeToHTML: (value: NodeObject[]) => string | null;
2387
- export declare const rteDeserializeHTML: (htmlString: string) => (NodeObject | string | null)[] | NodeObject | string | null | undefined;
2388
- //#endregion
2389
- //#region src/components/ScreenReaderOnly/ScreenReaderOnly.d.ts
2390
2180
  export declare const screenReaderOnlyStyle: RuleSet<object>;
2391
2181
  type ScreenReaderOnlyProps = ComponentPropsWithoutRef<"div"> & {
2392
2182
  /**
@@ -2404,8 +2194,6 @@ type ScreenReaderOnlyProps = ComponentPropsWithoutRef<"div"> & {
2404
2194
  text?: ReactNode;
2405
2195
  };
2406
2196
  export declare const ScreenReaderOnly: FC<ScreenReaderOnlyProps>;
2407
- //#endregion
2408
- //#region src/components/Select/Select.d.ts
2409
2197
  type GroupOptionType = {
2410
2198
  disabled?: boolean;
2411
2199
  groupLabel?: string;
@@ -2470,8 +2258,6 @@ type SelectProps = Omit<ComponentPropsWithRef<"select">, "placeholder"> & {
2470
2258
  valueName?: string;
2471
2259
  };
2472
2260
  export declare const Select: ForwardRefExoticComponent<SelectProps & RefAttributes<HTMLSelectElement>>;
2473
- //#endregion
2474
- //#region src/components/Slider/Slider.d.ts
2475
2261
  type ComponentPropsWithoutRefWithoutOnChange = Omit<ComponentPropsWithoutRef<"div">, "onChange">;
2476
2262
  type SliderProps = ComponentPropsWithoutRefWithoutOnChange & {
2477
2263
  /**
@@ -2531,8 +2317,6 @@ type SliderProps = ComponentPropsWithoutRefWithoutOnChange & {
2531
2317
  value?: number[] | number;
2532
2318
  };
2533
2319
  export declare const Slider: FC<SliderProps>;
2534
- //#endregion
2535
- //#region src/components/Stack/Stack.d.ts
2536
2320
  type StackProps<T extends ElementType> = ComponentPropsWithoutRef<T> & PropsWithChildren & {
2537
2321
  /**
2538
2322
  * The gap between each item in the stack. Should be one of the spacing values from the theme
@@ -2549,8 +2333,6 @@ type StackProps<T extends ElementType> = ComponentPropsWithoutRef<T> & PropsWith
2549
2333
  renderAs?: T | "div";
2550
2334
  };
2551
2335
  export declare const Stack: ForwardRefExoticComponent<StackProps<ElementType> & RefAttributes<HTMLDivElement>>;
2552
- //#endregion
2553
- //#region src/components/Switch/Switch.d.ts
2554
2336
  type SwitchProps = Omit<ComponentPropsWithoutRef<"button">, "onChange"> & {
2555
2337
  /**
2556
2338
  * Allows user to override default "on" color
@@ -2574,8 +2356,6 @@ type SwitchProps = Omit<ComponentPropsWithoutRef<"button">, "onChange"> & {
2574
2356
  hideText?: boolean;
2575
2357
  };
2576
2358
  export declare const Switch: FC<SwitchProps>;
2577
- //#endregion
2578
- //#region src/components/Text/Text.d.ts
2579
2359
  declare const alignMap: {
2580
2360
  left: string;
2581
2361
  right: string;
@@ -2658,11 +2438,7 @@ type TextProps = ComponentPropsWithoutRef<"div"> & {
2658
2438
  variant?: keyof typeof variantStyleMap;
2659
2439
  };
2660
2440
  export declare const Text: ForwardRefExoticComponent<TextProps & RefAttributes<HTMLElement>>;
2661
- //#endregion
2662
- //#region src/private/helpers/getBackgroundGradient/getBackgroundGradient.d.ts
2663
2441
  type GradientNameType = "defaultDarkOne" | "defaultDarkTwo" | "defaultLightOne" | "defaultLightTwo" | "defaultMidOne" | "defaultMidTwo" | "green" | "greenWithPop" | "pink" | "pinkWithPop" | "playfulGradientOne" | "playfulGradientTwo" | "purple" | "purpleWithPop" | "yellow" | "yellowWithPop";
2664
- //#endregion
2665
- //#region src/components/Thumbnail/Thumbnail.d.ts
2666
2442
  type IconThumbnailProps = {
2667
2443
  /**
2668
2444
  * The desired display of the thumbnail, either wide or square
@@ -2718,8 +2494,6 @@ type ThumbnailProps = ComponentPropsWithoutRef<"div"> & {
2718
2494
  width?: string;
2719
2495
  } & (IconThumbnailProps | ImageThumbnailProps);
2720
2496
  export declare const Thumbnail: FC<ThumbnailProps>;
2721
- //#endregion
2722
- //#region src/components/ThumbnailCollage/ThumbnailCollage.d.ts
2723
2497
  type ThumbnailCollageProps = {
2724
2498
  /**
2725
2499
  * An array of image urls to show in the thumbnail. Supports up to 3 images
@@ -2731,8 +2505,6 @@ type ThumbnailCollageProps = {
2731
2505
  gradientBackground?: GradientNameType;
2732
2506
  };
2733
2507
  declare const ThumbnailCollage: ({ thumbnailUrls, gradientBackground, ...props }: ThumbnailCollageProps) => JSX.Element;
2734
- //#endregion
2735
- //#region src/components/Toast/Toast.d.ts
2736
2508
  type ToastVariants = "dangerous" | "error" | "success" | "warning";
2737
2509
  type ToastProps = ComponentPropsWithoutRef<"div"> & {
2738
2510
  /**
@@ -2774,8 +2546,6 @@ type ToastProps = ComponentPropsWithoutRef<"div"> & {
2774
2546
  variant?: ToastVariants | undefined;
2775
2547
  };
2776
2548
  export declare const Toast: MemoExoticComponent<(props: ToastProps) => JSX.Element>;
2777
- //#endregion
2778
- //#region src/components/Toast/ToastContext.d.ts
2779
2549
  type UseToastProps = {
2780
2550
  message: string;
2781
2551
  variant?: ToastVariants;
@@ -2785,16 +2555,10 @@ type UseToastProps = {
2785
2555
  colorOverride?: string | undefined;
2786
2556
  };
2787
2557
  type UseToastFn = (props: UseToastProps) => void;
2788
- //#endregion
2789
- //#region src/components/Toast/useToast.d.ts
2790
2558
  export declare const useToast: () => UseToastFn;
2791
- //#endregion
2792
- //#region src/components/Toast/ToastProvider.d.ts
2793
2559
  export declare const ToastProvider: ({ children }: {
2794
2560
  children: ReactNode;
2795
2561
  }) => JSX.Element;
2796
- //#endregion
2797
- //#region src/components/Tooltip/Tooltip.d.ts
2798
2562
  type TooltipProps = Omit<ComponentPropsWithoutRef<"div">, "id"> & {
2799
2563
  /**
2800
2564
  * The node that will be wrapped by the Tooltip
@@ -2843,8 +2607,6 @@ type TooltipProps = Omit<ComponentPropsWithoutRef<"div">, "id"> & {
2843
2607
  fontColorOverride?: string;
2844
2608
  };
2845
2609
  export declare const Tooltip: FC<TooltipProps>;
2846
- //#endregion
2847
- //#region src/components/Truncate/Truncate.d.ts
2848
2610
  type TruncateProps = {
2849
2611
  /**
2850
2612
  * Prevent ellipsis from truncating mid-word
@@ -2864,8 +2626,6 @@ type TruncateProps = {
2864
2626
  terminator?: string;
2865
2627
  };
2866
2628
  export declare const Truncate: FC<TruncateProps>;
2867
- //#endregion
2868
- //#region src/components/WistiaLogo/WistiaLogo.d.ts
2869
2629
  type WistiaLogoProps = Omit<ComponentPropsWithoutRef<"svg">, "href"> & {
2870
2630
  /**
2871
2631
  * An optional accessible description for the logo
@@ -2900,6 +2660,5 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<"svg">, "href"> & {
2900
2660
  variant?: "dark" | "light" | "standard";
2901
2661
  };
2902
2662
  export declare const WistiaLogo: FC<WistiaLogoProps>;
2903
- //#endregion
2904
- export { type ActionModalProps, type AvatarInstanceType, type AvatarProps, type BackdropProps, type BackgroundImageProps, type BadgeColorScheme, type BadgeProps, type BannerProps, type BoxProps, type ButtonGroupProps, type ButtonLinkProps, type ButtonProps, type CheckboxGroupProps, type CheckboxMenuItemProps, type CheckboxProps, type ClickAreaProps, type CloseButtonProps, type CollapsibleGroupProps, type DividerProps, type EllipsisProps, type FileSelectProps, type FormButtonsProps, type FormFieldErrorProps, type FormFieldProps, type FormProps, type FormState, type FullScreenModalProps, type IconButtonProps, type IconNameType, type ImageProps, type InputProps, type KeyboardKeys, type LabelDescriptionProps, type LabelProps, Link$1 as Link, type LinkButtonProps, type LinkProps, type ListItemProps, type ListProps, type MenuButtonProps, type MenuItemProps, type MenuProps, MenuRadioGroup, type ModalBaseContentProps, type ModalCloseButtonProps, type ModalProps, type NodeElementObject, type NodeLeafObject, type NodeObject, type OnBeforeHideInterface, type OptionsType, type PaperProps, type ProgressBarProps, type RadioGroupProps, type RadioMenuItemProps, type RadioProps, type RangeSelectorProps, type RichTextEditorProps, type ScreenReaderOnlyProps, type SelectProps, type SliderProps, type StackProps, type SwitchProps, type TextProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, type ToastProps, type ToastVariants, type TooltipProps, type TruncateProps, type VHSTheme, type WistiaLogoProps, type WrapperProviderLinkType, useFormikContext };
2663
+ export { type ActionModalProps, type AvatarInstanceType, type AvatarProps, type BackdropProps, type BackgroundImageProps, type BadgeColorScheme, type BadgeProps, type BannerProps, type BoxProps, type ButtonGroupProps, type ButtonLinkProps, type ButtonProps, type CheckboxGroupProps, type CheckboxMenuItemProps, type CheckboxProps, type ClickAreaProps, type CloseButtonProps, type CollapsibleGroupProps, type DividerProps, type EllipsisProps, type FileSelectProps, type FormButtonsProps, type FormFieldErrorProps, type FormFieldProps, type FormProps, type FormState, type FullScreenModalProps, type IconButtonProps, type IconNameType, type ImageProps, type InputProps, type KeyboardKeys, type LabelDescriptionProps, type LabelProps, Link$1 as Link, type LinkButtonProps, type LinkProps, type ListItemProps, type ListProps, type MenuButtonProps, type MenuItemProps, type MenuProps, MenuRadioGroup, type ModalBaseContentProps, type ModalCloseButtonProps, type ModalProps, type OnBeforeHideInterface, type OptionsType, type PaperProps, type ProgressBarProps, type RadioGroupProps, type RadioMenuItemProps, type RadioProps, type RangeSelectorProps, type ScreenReaderOnlyProps, type SelectProps, type SliderProps, type StackProps, type SwitchProps, type TextProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, type ToastProps, type ToastVariants, type TooltipProps, type TruncateProps, type VHSTheme, type WistiaLogoProps, type WrapperProviderLinkType, useFormikContext };
2905
2664
  //# sourceMappingURL=index.d.ts.map