@sproutsocial/racine 22.5.1 → 23.0.0

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.
Files changed (168) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/__flow__/Toast/Toast.flow.js +4 -0
  3. package/commonjs/Avatar/Avatar.js +24 -16
  4. package/commonjs/Badge/Badge.js +20 -13
  5. package/commonjs/Banner/Banner.js +35 -25
  6. package/commonjs/Box/Box.js +7 -2
  7. package/commonjs/Breadcrumb/Breadcrumb.js +36 -23
  8. package/commonjs/Button/Button.js +11 -3
  9. package/commonjs/Card/Card.js +25 -18
  10. package/commonjs/Card/subComponents.js +32 -15
  11. package/commonjs/CharacterCounter/CharacterCounter.js +7 -3
  12. package/commonjs/ChartLegend/ChartLegend.js +10 -3
  13. package/commonjs/ChartLegend/useChartLabels.js +12 -10
  14. package/commonjs/Checkbox/Checkbox.js +55 -45
  15. package/commonjs/Checkbox/styles.js +20 -17
  16. package/commonjs/Collapsible/Collapsible.js +22 -16
  17. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +26 -16
  18. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.js +7 -2
  19. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +24 -14
  20. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +7 -2
  21. package/commonjs/DatePicker/common.js +8 -6
  22. package/commonjs/Drawer/Drawer.js +160 -113
  23. package/commonjs/EmptyState/EmptyState.js +44 -31
  24. package/commonjs/Fieldset/Fieldset.js +31 -14
  25. package/commonjs/FormField/FormField.js +37 -31
  26. package/commonjs/Icon/Icon.js +35 -30
  27. package/commonjs/Image/Image.js +5 -3
  28. package/commonjs/Indicator/Indicator.js +12 -6
  29. package/commonjs/Input/Input.js +57 -51
  30. package/commonjs/KeyboardKey/KeyboardKey.js +12 -3
  31. package/commonjs/Label/Label.js +15 -9
  32. package/commonjs/Link/Link.js +10 -3
  33. package/commonjs/Listbox/Listbox.js +16 -13
  34. package/commonjs/Loader/Loader.js +9 -3
  35. package/commonjs/LoaderButton/LoaderButton.js +28 -18
  36. package/commonjs/Menu/Menu.js +128 -107
  37. package/commonjs/Menu/utils/descendants.js +6 -6
  38. package/commonjs/Message/Message.js +79 -59
  39. package/commonjs/Modal/Modal.js +54 -31
  40. package/commonjs/Modal/styles.js +8 -4
  41. package/commonjs/Numeral/Numeral.js +27 -11
  42. package/commonjs/PartnerLogo/PartnerLogo.js +22 -12
  43. package/commonjs/Radio/Radio.js +28 -22
  44. package/commonjs/SegmentedControl/SegmentedControl.js +38 -24
  45. package/commonjs/Select/Select.js +32 -25
  46. package/commonjs/SpotIllustration/SpotIllustration.js +13 -5
  47. package/commonjs/Stack/Stack.js +15 -8
  48. package/commonjs/Switch/Switch.js +14 -7
  49. package/commonjs/Table/Table.js +65 -45
  50. package/commonjs/TableCell/TableCell.js +6 -3
  51. package/commonjs/TableHeaderCell/TableHeaderCell.js +20 -12
  52. package/commonjs/TableRowAccordion/TableRowAccordion.js +35 -29
  53. package/commonjs/Tabs/Tabs.js +37 -30
  54. package/commonjs/Text/Text.js +10 -3
  55. package/commonjs/Textarea/Textarea.js +37 -32
  56. package/commonjs/ThemeProvider/index.js +8 -5
  57. package/commonjs/Toast/Toast.js +127 -91
  58. package/commonjs/Toast/index.js +15 -15
  59. package/commonjs/Toast/styles.js +56 -30
  60. package/commonjs/ToggleHint/ToggleHint.js +11 -5
  61. package/commonjs/Token/Token.js +39 -25
  62. package/commonjs/TokenInput/TokenInput.js +55 -47
  63. package/commonjs/TokenInput/TokenScreenReaderStatus.js +5 -3
  64. package/commonjs/Tooltip/Tooltip.js +34 -27
  65. package/dist/types/Drawer/Drawer.d.ts.map +1 -1
  66. package/dist/types/Drawer/DrawerTypes.d.ts +6 -3
  67. package/dist/types/Drawer/DrawerTypes.d.ts.map +1 -1
  68. package/dist/types/Listbox/ListboxTypes.d.ts +1 -1
  69. package/dist/types/Listbox/ListboxTypes.d.ts.map +1 -1
  70. package/dist/types/Menu/MenuTypes.d.ts +4 -4
  71. package/dist/types/Menu/MenuTypes.d.ts.map +1 -1
  72. package/dist/types/ThemeProvider/index.d.ts +1 -1
  73. package/dist/types/ThemeProvider/index.d.ts.map +1 -1
  74. package/dist/types/Toast/Toast.d.ts +23 -2
  75. package/dist/types/Toast/Toast.d.ts.map +1 -1
  76. package/dist/types/Toast/ToastTypes.d.ts +27 -13
  77. package/dist/types/Toast/ToastTypes.d.ts.map +1 -1
  78. package/dist/types/Toast/index.d.ts +2 -4
  79. package/dist/types/Toast/index.d.ts.map +1 -1
  80. package/dist/types/Toast/styles.d.ts +11 -15
  81. package/dist/types/Toast/styles.d.ts.map +1 -1
  82. package/dist/types/Tooltip/TooltipTypes.d.ts +2 -2
  83. package/dist/types/Tooltip/TooltipTypes.d.ts.map +1 -1
  84. package/dist/types/utils/react-testing-library.d.ts +61 -121
  85. package/dist/types/utils/react-testing-library.d.ts.map +1 -1
  86. package/lib/Avatar/Avatar.js +25 -16
  87. package/lib/Badge/Badge.js +22 -13
  88. package/lib/Banner/Banner.js +37 -25
  89. package/lib/Box/Box.js +8 -2
  90. package/lib/Breadcrumb/Breadcrumb.js +37 -23
  91. package/lib/Button/Button.js +11 -3
  92. package/lib/Card/Card.js +17 -8
  93. package/lib/Card/subComponents.js +35 -15
  94. package/lib/CharacterCounter/CharacterCounter.js +7 -3
  95. package/lib/ChartLegend/ChartLegend.js +11 -3
  96. package/lib/ChartLegend/useChartLabels.js +13 -10
  97. package/lib/Checkbox/Checkbox.js +56 -45
  98. package/lib/Checkbox/styles.js +20 -17
  99. package/lib/Collapsible/Collapsible.js +22 -16
  100. package/lib/DatePicker/DateRangePicker/DateRangePicker.js +29 -16
  101. package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.js +8 -2
  102. package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +27 -14
  103. package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +8 -2
  104. package/lib/DatePicker/common.js +8 -6
  105. package/lib/Drawer/Drawer.js +159 -111
  106. package/lib/EmptyState/EmptyState.js +46 -31
  107. package/lib/Fieldset/Fieldset.js +33 -14
  108. package/lib/FormField/FormField.js +38 -31
  109. package/lib/Icon/Icon.js +36 -30
  110. package/lib/Image/Image.js +5 -3
  111. package/lib/Indicator/Indicator.js +13 -6
  112. package/lib/Input/Input.js +57 -49
  113. package/lib/KeyboardKey/KeyboardKey.js +12 -3
  114. package/lib/Label/Label.js +16 -9
  115. package/lib/Link/Link.js +11 -3
  116. package/lib/Listbox/Listbox.js +17 -13
  117. package/lib/Loader/Loader.js +9 -3
  118. package/lib/LoaderButton/LoaderButton.js +30 -18
  119. package/lib/Menu/Menu.js +128 -104
  120. package/lib/Menu/utils/descendants.js +5 -4
  121. package/lib/Message/Message.js +80 -59
  122. package/lib/Modal/Modal.js +56 -31
  123. package/lib/Modal/styles.js +8 -2
  124. package/lib/Numeral/Numeral.js +30 -11
  125. package/lib/PartnerLogo/PartnerLogo.js +22 -12
  126. package/lib/Radio/Radio.js +29 -22
  127. package/lib/SegmentedControl/SegmentedControl.js +40 -24
  128. package/lib/Select/Select.js +33 -25
  129. package/lib/SpotIllustration/SpotIllustration.js +13 -5
  130. package/lib/Stack/Stack.js +17 -8
  131. package/lib/Switch/Switch.js +15 -7
  132. package/lib/Table/Table.js +65 -43
  133. package/lib/TableCell/TableCell.js +5 -2
  134. package/lib/TableHeaderCell/TableHeaderCell.js +20 -11
  135. package/lib/TableRowAccordion/TableRowAccordion.js +35 -28
  136. package/lib/Tabs/Tabs.js +37 -30
  137. package/lib/Text/Text.js +11 -3
  138. package/lib/Textarea/Textarea.js +37 -30
  139. package/lib/ThemeProvider/index.js +8 -3
  140. package/lib/Toast/Toast.js +130 -90
  141. package/lib/Toast/index.js +3 -5
  142. package/lib/Toast/styles.js +55 -26
  143. package/lib/ToggleHint/ToggleHint.js +12 -5
  144. package/lib/Token/Token.js +42 -25
  145. package/lib/TokenInput/TokenInput.js +56 -47
  146. package/lib/TokenInput/TokenScreenReaderStatus.js +5 -3
  147. package/lib/Tooltip/Tooltip.js +34 -27
  148. package/package.json +37 -33
  149. package/commonjs/Drawer/SlideTransition.js +0 -47
  150. package/commonjs/Popout/Popout.js +0 -313
  151. package/commonjs/Popout/PopoutTypes.js +0 -5
  152. package/commonjs/Popout/index.js +0 -30
  153. package/commonjs/Popout/styles.js +0 -13
  154. package/dist/types/Drawer/SlideTransition.d.ts +0 -15
  155. package/dist/types/Drawer/SlideTransition.d.ts.map +0 -1
  156. package/dist/types/Popout/Popout.d.ts +0 -14
  157. package/dist/types/Popout/Popout.d.ts.map +0 -1
  158. package/dist/types/Popout/PopoutTypes.d.ts +0 -90
  159. package/dist/types/Popout/PopoutTypes.d.ts.map +0 -1
  160. package/dist/types/Popout/index.d.ts +0 -5
  161. package/dist/types/Popout/index.d.ts.map +0 -1
  162. package/dist/types/Popout/styles.d.ts +0 -2
  163. package/dist/types/Popout/styles.d.ts.map +0 -1
  164. package/lib/Drawer/SlideTransition.js +0 -38
  165. package/lib/Popout/Popout.js +0 -303
  166. package/lib/Popout/PopoutTypes.js +0 -1
  167. package/lib/Popout/index.js +0 -4
  168. package/lib/Popout/styles.js +0 -6
@@ -1 +1 @@
1
- {"version":3,"file":"ListboxTypes.d.ts","sourceRoot":"","sources":["../../../src/Listbox/ListboxTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,EACtC,qBAAqB,EACrB,mBAAmB;IACrB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
1
+ {"version":3,"file":"ListboxTypes.d.ts","sourceRoot":"","sources":["../../../src/Listbox/ListboxTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,EACtC,qBAAqB,EACrB,mBAAmB;IACrB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -3,11 +3,11 @@ import * as React from "react";
3
3
  import type { TypeBoxProps } from "../Box";
4
4
  import type { TypeButtonProps } from "../Button";
5
5
  import type { TypeTextProps } from "../Text";
6
- import type { EnumPlacements, TypePopoutProps } from "../Popout/PopoutTypes";
6
+ import type { TypePopoutProps } from "@sproutsocial/seeds-react-popout";
7
7
  import type { TypeSwitchProps } from "../Switch";
8
8
  import { MENU_ITEM_ROLES, MENU_ROLES } from "./utils/constants";
9
- export type TypeMenuRoles = typeof MENU_ROLES[keyof typeof MENU_ROLES];
10
- export type TypeMenuItemRoles = typeof MENU_ITEM_ROLES[keyof typeof MENU_ITEM_ROLES];
9
+ export type TypeMenuRoles = (typeof MENU_ROLES)[keyof typeof MENU_ROLES];
10
+ export type TypeMenuItemRoles = (typeof MENU_ITEM_ROLES)[keyof typeof MENU_ITEM_ROLES];
11
11
  export interface TypeMenuState {
12
12
  selectionIndex: number;
13
13
  filterQuery: string;
@@ -85,7 +85,7 @@ export interface TypeMenuButtonProps extends Omit<TypeButtonProps, "content">, T
85
85
  "aria-label"?: string;
86
86
  content: React.ReactNode;
87
87
  popoutProps?: Partial<Omit<TypePopoutProps, "children">>;
88
- placement?: EnumPlacements;
88
+ placement?: TypePopoutProps["placement"];
89
89
  invalid?: boolean;
90
90
  isOpen?: boolean;
91
91
  setIsOpen?: (isOpen: boolean, event?: MouseEvent | KeyboardEvent) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuTypes.d.ts","sourceRoot":"","sources":["../../../src/Menu/MenuTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEhE,MAAM,MAAM,aAAa,GAAG,OAAO,UAAU,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AACvE,MAAM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Q,iBAAiB;IACnE,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CACpC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { TypeSproutTheme, TypeTheme } from "@sproutsocial/seeds-react-theme";
2
+ import { type TypeSproutTheme, type TypeTheme } from "@sproutsocial/seeds-react-theme";
3
3
  type TypeAllThemes = TypeTheme | TypeSproutTheme;
4
4
  type TypeProps = {
5
5
  readonly theme?: TypeAllThemes;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ThemeProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAG7E,KAAK,aAAa,GAAG,SAAS,GAAG,eAAe,CAAC;AAEjD,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACrC,CAAC;AAEF,QAAA,MAAM,aAAa,UAAW,SAAS,4CAEtC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ThemeProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,iCAAiC,CAAC;AAGzC,KAAK,aAAa,GAAG,SAAS,GAAG,eAAe,CAAC;AAEjD,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACrC,CAAC;AAEF,QAAA,MAAM,aAAa,UAAW,SAAS,4CAEtC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,5 +1,26 @@
1
+ /// <reference types="@src/react" />
2
+ import type { PropsWithChildren, ReactNode } from "react";
3
+ import { toast as toastifyToast } from "react-toastify";
4
+ import Box from "../Box";
5
+ import { ToastRoot } from "./styles";
1
6
  import type { TypeToastOptions } from "./ToastTypes";
2
- declare const ToastContainer: () => import("react/jsx-runtime").JSX.Element;
3
- export declare function toast(options: TypeToastOptions): void;
7
+ import { ComponentProps } from "react";
8
+ export declare const toastDismiss: typeof toastifyToast.dismiss;
9
+ export declare const toastIsActive: typeof toastifyToast.isActive;
10
+ export declare const toastUpdate: typeof toastifyToast.update;
11
+ export declare const ToastContainer: (props: Partial<ComponentProps<typeof ToastRoot>>) => import("react/jsx-runtime").JSX.Element;
12
+ export declare function toast<TData = unknown>(options: TypeToastOptions<TData>): ReturnType<typeof toastifyToast>;
4
13
  export default ToastContainer;
14
+ export declare const ToastContentContainer: ({ children, icon, close, highlightColor, }: PropsWithChildren<{
15
+ /**
16
+ * A ReactNode in the icon slot
17
+ */
18
+ icon: ReactNode;
19
+ /**
20
+ * A ReactNode in the close button slot
21
+ */
22
+ close: ReactNode;
23
+ highlightColor?: ComponentProps<typeof Box>["bg"];
24
+ }>) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const ToastHighlight: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, never>;
5
26
  //# sourceMappingURL=Toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/Toast/Toast.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,cAAc,CAAC;AAetB,QAAA,MAAM,cAAc,+CAYnB,CAAC;AASF,wBAAgB,KAAK,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAuBrD;AAyDD,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/Toast/Toast.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EACL,KAAK,IAAI,aAAa,EAGvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,GAAG,MAAM,UAAU,CAAC;AAG3B,OAAO,EAAa,SAAS,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvC,eAAO,MAAM,YAAY,EAAE,OAAO,aAAa,CAAC,OACf,CAAC;AAClC,eAAO,MAAM,aAAa,EAAE,OAAO,aAAa,CAAC,QACf,CAAC;AACnC,eAAO,MAAM,WAAW,EAAE,OAAO,aAAa,CAAC,MACf,CAAC;AAWjC,eAAO,MAAM,cAAc,UAClB,QAAQ,eAAe,gBAAgB,CAAC,CAAC,4CACrB,CAAC;AAS9B,wBAAgB,KAAK,CAAC,KAAK,GAAG,OAAO,EACnC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAC/B,UAAU,CAAC,OAAO,aAAa,CAAC,CAoFlC;AAED,eAAe,cAAc,CAAC;AAE9B,eAAO,MAAM,qBAAqB;IAMhC;;OAEG;UACG,SAAS;IACf;;OAEG;WACI,SAAS;qBACC,eAAe,UAAU,CAAC,CAAC,IAAI,CAAC;8CAmBlD,CAAC;AAEF,eAAO,MAAM,cAAc,qUAM1B,CAAC"}
@@ -1,19 +1,33 @@
1
- import * as React from "react";
2
- import type { TypeColor } from "@sproutsocial/seeds-react-theme";
3
- import { TypeIconName } from "../Icon";
1
+ import { type Icon, type TypeIconName } from "../Icon";
2
+ import { ComponentProps } from "react";
3
+ import type { ToastContent, ToastOptions } from "react-toastify";
4
4
  export type TypeToastTheme = "info" | "success" | "warning" | "error";
5
- export interface TypeToastProps {
5
+ interface BaseToastOptions<TData> extends Omit<ToastOptions<TData>, "closeButton" | "icon" | "type"> {
6
+ theme?: TypeToastTheme | "custom";
7
+ content: ToastContent<TData>;
8
+ persist?: boolean;
9
+ useTransition?: boolean;
10
+ }
11
+ interface ThemedToastOptions<TData> extends BaseToastOptions<TData> {
12
+ /**
13
+ * One of `info`, `success`, `warning`, or `error`.
14
+ */
6
15
  theme?: TypeToastTheme;
7
- content: React.ReactNode;
8
- color?: TypeColor;
16
+ /**
17
+ * @deprecated Use `custom` theme instead.
18
+ */
19
+ color?: ComponentProps<typeof Icon>["color"];
20
+ /**
21
+ * @deprecated Use `custom` theme instead.
22
+ */
9
23
  icon?: TypeIconName;
10
24
  }
11
- export interface TypeToastOptions extends TypeToastProps {
12
- theme?: TypeToastTheme;
13
- persist?: boolean;
14
- onClose?: () => void;
15
- useTransition?: boolean;
16
- /** toastId allows you to prevent duplicate toasts with the same message. If your content is a string, we will use that as the toastId and you don't need to do anything. If you have JSX and want to prevent duplicates you can pass the same custom ID with each instance of your message, and the duplicates will be prevented. */
17
- toastId?: string;
25
+ interface CustomToastOptions<TData> extends BaseToastOptions<TData> {
26
+ /**
27
+ * If you need to break out of the supported styles you can use the `custom` theme. You can use `ToastContentContainer` with `Icon` and `ToastHighlight` to build your custom toast.
28
+ */
29
+ theme: "custom";
18
30
  }
31
+ export type TypeToastOptions<TData> = ThemedToastOptions<TData> | CustomToastOptions<TData>;
32
+ export {};
19
33
  //# sourceMappingURL=ToastTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToastTypes.d.ts","sourceRoot":"","sources":["../../../src/Toast/ToastTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iC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AAU,kBAAkB,CAAC,KAAK,CAAE,SAAQ,gBAAgB,CAAC,KAAK,CAAC;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AACD,UAAU,kBAAkB,CAAC,KAAK,CAAE,SAAQ,gBAAgB,CAAC,KAAK,CAAC;IACjE;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,MAAM,gBAAgB,CAAC,KAAK,IAC9B,kBAAkB,CAAC,KAAK,CAAC,GACzB,kBAAkB,CAAC,KAAK,CAAC,CAAC"}
@@ -1,6 +1,4 @@
1
- import ToastContainer from "./Toast";
2
- export default ToastContainer;
3
- export { ToastContainer };
4
- export { toast } from "./Toast";
1
+ export * from "./Toast";
5
2
  export * from "./ToastTypes";
3
+ export { TOAST_Z_INDEX } from "./styles";
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,SAAS,CAAC;AAErC,eAAe,cAAc,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Toast/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -1,18 +1,14 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="@src/react" />
2
3
  import "react-toastify/dist/ReactToastify.css";
3
- import { TypeColor } from "@sproutsocial/seeds-react-theme";
4
- interface TypeProps {
5
- type: "info" | "success" | "warning" | "error";
6
- customColor?: TypeColor;
7
- }
8
- declare const Container: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, TypeProps, never>;
9
- export declare const CustomIcon: import("styled-components").StyledComponent<{
10
- ({ name, size, fixedWidth, ariaLabel, color, svgProps, ...rest }: import("../Icon").TypeIconProps): import("react/jsx-runtime").JSX.Element;
11
- Toggle: {
12
- ({ activeName, inactiveName, isActive, size, fixedWidth, ariaLabel, ...rest }: import("../Icon").TypeToggleProps): import("react/jsx-runtime").JSX.Element;
13
- displayName: string;
14
- };
15
- }, import("styled-components").DefaultTheme, TypeProps, never>;
16
- export declare const GlobalToastStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
17
- export default Container;
4
+ import { ToastContainer } from "react-toastify";
5
+ export declare const TOAST_Z_INDEX = 9999;
6
+ export declare const Container: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, never>;
7
+ export declare const ToastRoot: import("styled-components").StyledComponent<typeof ToastContainer, import("styled-components").DefaultTheme, {
8
+ toastClassName: "Toastify-toast-overrides";
9
+ hideProgressBar: true;
10
+ closeButton: false;
11
+ icon: false;
12
+ position: "bottom-right";
13
+ }, "position" | "icon" | "toastClassName" | "closeButton" | "hideProgressBar">;
18
14
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Toast/styles.ts"],"names":[],"mappings":";AAGA,OAAO,uCAAuC,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC/C,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,QAAA,MAAM,SAAS,kPAQd,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;8DAItB,CAAC;AAEF,eAAO,MAAM,iBAAiB,gGAgC7B,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Toast/styles.ts"],"names":[],"mappings":";;AAGA,OAAO,uCAAuC,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,eAAO,MAAM,SAAS,qUAQrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;8EA8FrB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import type { EnumPlacements, TypePopoutProps } from "../Popout/index";
2
+ import type { TypePopoutProps } from "@sproutsocial/seeds-react-popout";
3
3
  import { TypeQaProps } from "../types/shared";
4
4
  import { TypeBoxProps } from "../Box";
5
5
  export interface TypeTooltipProps extends Omit<TypeBoxProps, "children" | "content" | "onMouseEnter" | "onMouseLeave"> {
@@ -8,7 +8,7 @@ export interface TypeTooltipProps extends Omit<TypeBoxProps, "children" | "conte
8
8
  /** The content to be displayed within the tooltip. If there is no content, just the children are rendered */
9
9
  content: React.ReactNode;
10
10
  /** The placement of the tooltip in relation to the children */
11
- placement?: EnumPlacements;
11
+ placement?: TypePopoutProps["placement"];
12
12
  /** The time (in ms) that a user has to be hovered/focused before the tooltip will appear */
13
13
  enterDelay?: number;
14
14
  /** Used to override the appearance of the Tooltip content. By default, strings will have the 'pill' appearance, and more complex content will have the 'box' appearance. You can change those defaults by setting this prop. */
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipTypes.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/TooltipTypes.ts"],"names":[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";
2
- import { act, cleanup, createEvent, fireEvent, queries, waitFor, waitForElementToBeRemoved, RenderOptions } from "@testing-library/react";
2
+ import { act, cleanup, createEvent, fireEvent, queries, waitFor, waitForElementToBeRemoved, RenderOptions, RenderResult, Screen } from "@testing-library/react";
3
3
  import userEvent from "@testing-library/user-event";
4
- declare const customRender: (node: React.ReactElement, options?: RenderOptions<typeof queries, HTMLElement>) => {
5
- runA11yCheck: () => Promise<void>;
6
- container: HTMLElement;
7
- baseElement: HTMLElement;
8
- debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
9
- rerender: (ui: React.ReactNode) => void;
10
- unmount: () => void;
11
- asFragment: () => DocumentFragment;
12
- queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
13
- queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
14
- getAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement[];
15
- getByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement;
16
- findAllByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
17
- findByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
18
- getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
19
- getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
20
- queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
21
- queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
22
- findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
23
- findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
24
- getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
25
- getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
26
- queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
27
- queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
28
- findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
29
- findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
30
- getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
31
- getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
32
- queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
33
- queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
34
- findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
35
- findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
36
- getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
37
- getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
38
- queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
39
- queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
40
- findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
41
- findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
42
- getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
43
- getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
44
- queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
45
- queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
46
- findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
47
- findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
48
- getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
49
- getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
50
- queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
51
- queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
52
- findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
53
- findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
54
- getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement;
55
- getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
56
- queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null;
57
- queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
58
- findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
59
- findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
60
- getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
61
- getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
62
- queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
63
- queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
64
- findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
65
- findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
4
+ declare const sproutQueries: {
5
+ readonly queryByDataQaLabel: import("@testing-library/react").QueryBy<[qaObject: import("./dataQaLabelQueries").TypeQaObject]>;
6
+ readonly queryAllByDataQaLabel: (container: HTMLElement, qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
7
+ readonly getAllByDataQaLabel: import("@testing-library/react").GetAllBy<[qaObject: import("./dataQaLabelQueries").TypeQaObject]>;
8
+ readonly getByDataQaLabel: import("@testing-library/react").GetBy<[qaObject: import("./dataQaLabelQueries").TypeQaObject]>;
9
+ readonly findAllByDataQaLabel: import("@testing-library/react").FindAllBy<[qaObject: import("./dataQaLabelQueries").TypeQaObject]>;
10
+ readonly findByDataQaLabel: import("@testing-library/react").FindBy<[qaObject: import("./dataQaLabelQueries").TypeQaObject]>;
11
+ readonly getByLabelText: typeof queries.getByLabelText;
12
+ readonly getAllByLabelText: typeof queries.getAllByLabelText;
13
+ readonly queryByLabelText: typeof queries.queryByLabelText;
14
+ readonly queryAllByLabelText: typeof queries.queryAllByLabelText;
15
+ readonly findByLabelText: typeof queries.findByLabelText;
16
+ readonly findAllByLabelText: typeof queries.findAllByLabelText;
17
+ readonly getByPlaceholderText: typeof queries.getByPlaceholderText;
18
+ readonly getAllByPlaceholderText: typeof queries.getAllByPlaceholderText;
19
+ readonly queryByPlaceholderText: typeof queries.queryByPlaceholderText;
20
+ readonly queryAllByPlaceholderText: typeof queries.queryAllByPlaceholderText;
21
+ readonly findByPlaceholderText: typeof queries.findByPlaceholderText;
22
+ readonly findAllByPlaceholderText: typeof queries.findAllByPlaceholderText;
23
+ readonly getByText: typeof queries.getByText;
24
+ readonly getAllByText: typeof queries.getAllByText;
25
+ readonly queryByText: typeof queries.queryByText;
26
+ readonly queryAllByText: typeof queries.queryAllByText;
27
+ readonly findByText: typeof queries.findByText;
28
+ readonly findAllByText: typeof queries.findAllByText;
29
+ readonly getByAltText: typeof queries.getByAltText;
30
+ readonly getAllByAltText: typeof queries.getAllByAltText;
31
+ readonly queryByAltText: typeof queries.queryByAltText;
32
+ readonly queryAllByAltText: typeof queries.queryAllByAltText;
33
+ readonly findByAltText: typeof queries.findByAltText;
34
+ readonly findAllByAltText: typeof queries.findAllByAltText;
35
+ readonly getByTitle: typeof queries.getByTitle;
36
+ readonly getAllByTitle: typeof queries.getAllByTitle;
37
+ readonly queryByTitle: typeof queries.queryByTitle;
38
+ readonly queryAllByTitle: typeof queries.queryAllByTitle;
39
+ readonly findByTitle: typeof queries.findByTitle;
40
+ readonly findAllByTitle: typeof queries.findAllByTitle;
41
+ readonly getByDisplayValue: typeof queries.getByDisplayValue;
42
+ readonly getAllByDisplayValue: typeof queries.getAllByDisplayValue;
43
+ readonly queryByDisplayValue: typeof queries.queryByDisplayValue;
44
+ readonly queryAllByDisplayValue: typeof queries.queryAllByDisplayValue;
45
+ readonly findByDisplayValue: typeof queries.findByDisplayValue;
46
+ readonly findAllByDisplayValue: typeof queries.findAllByDisplayValue;
47
+ readonly getByRole: typeof queries.getByRole;
48
+ readonly getAllByRole: typeof queries.getAllByRole;
49
+ readonly queryByRole: typeof queries.queryByRole;
50
+ readonly queryAllByRole: typeof queries.queryAllByRole;
51
+ readonly findByRole: typeof queries.findByRole;
52
+ readonly findAllByRole: typeof queries.findAllByRole;
53
+ readonly getByTestId: typeof queries.getByTestId;
54
+ readonly getAllByTestId: typeof queries.getAllByTestId;
55
+ readonly queryByTestId: typeof queries.queryByTestId;
56
+ readonly queryAllByTestId: typeof queries.queryAllByTestId;
57
+ readonly findByTestId: typeof queries.findByTestId;
58
+ readonly findAllByTestId: typeof queries.findAllByTestId;
66
59
  };
60
+ interface CustomRenderResult extends RenderResult<typeof sproutQueries> {
61
+ runA11yCheck: () => Promise<void>;
62
+ }
63
+ declare const customRender: (node: React.ReactNode, options?: Omit<RenderOptions<typeof sproutQueries>, "queries" | "wrapper">) => CustomRenderResult;
67
64
  declare const customWithin: (element: HTMLElement) => {
68
65
  getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T;
69
66
  getAllByLabelText<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_1[];
@@ -169,63 +166,6 @@ declare const customWithin: (element: HTMLElement) => {
169
166
  readonly findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
170
167
  readonly findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
171
168
  };
172
- declare const customScreen: {
173
- readonly getByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement);
174
- readonly getAllByLabelText: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
175
- readonly queryByLabelText: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_2 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null);
176
- readonly queryAllByLabelText: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
177
- readonly findByLabelText: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
178
- readonly findAllByLabelText: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_5[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
179
- readonly getByPlaceholderText: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_6) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
180
- readonly getAllByPlaceholderText: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
181
- readonly queryByPlaceholderText: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_8 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
182
- readonly queryAllByPlaceholderText: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
183
- readonly findByPlaceholderText: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
184
- readonly findAllByPlaceholderText: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_11[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
185
- readonly getByText: (<T_12 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_12) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement);
186
- readonly getAllByText: (<T_13 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_13[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
187
- readonly queryByText: (<T_14 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_14 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null);
188
- readonly queryAllByText: (<T_15 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_15[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
189
- readonly findByText: (<T_16 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_16>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
190
- readonly findAllByText: (<T_17 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_17[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
191
- readonly getByAltText: (<T_18 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_18) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
192
- readonly getAllByAltText: (<T_19 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_19[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
193
- readonly queryByAltText: (<T_20 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_20 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
194
- readonly queryAllByAltText: (<T_21 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_21[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
195
- readonly findByAltText: (<T_22 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_22>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
196
- readonly findAllByAltText: (<T_23 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_23[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
197
- readonly getByTitle: (<T_24 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_24) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
198
- readonly getAllByTitle: (<T_25 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_25[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
199
- readonly queryByTitle: (<T_26 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_26 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
200
- readonly queryAllByTitle: (<T_27 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_27[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
201
- readonly findByTitle: (<T_28 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_28>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
202
- readonly findAllByTitle: (<T_29 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_29[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
203
- readonly getByDisplayValue: (<T_30 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_30) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
204
- readonly getAllByDisplayValue: (<T_31 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_31[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
205
- readonly queryByDisplayValue: (<T_32 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_32 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
206
- readonly queryAllByDisplayValue: (<T_33 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_33[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
207
- readonly findByDisplayValue: (<T_34 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_34>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
208
- readonly findAllByDisplayValue: (<T_35 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_35[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
209
- readonly getByRole: (<T_36 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_36) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement);
210
- readonly getAllByRole: (<T_37 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_37[]) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[]);
211
- readonly queryByRole: (<T_38 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_38 | null) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null);
212
- readonly queryAllByRole: (<T_39 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_39[]) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[]);
213
- readonly findByRole: (<T_40 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_40>) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
214
- readonly findAllByRole: (<T_41 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_41[]>) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
215
- readonly getByTestId: (<T_42 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_42) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
216
- readonly getAllByTestId: (<T_43 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_43[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
217
- readonly queryByTestId: (<T_44 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_44 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
218
- readonly queryAllByTestId: (<T_45 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_45[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
219
- readonly findByTestId: (<T_46 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_46>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
220
- readonly findAllByTestId: (<T_47 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_47[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
221
- readonly queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
222
- readonly queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
223
- readonly getAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement[];
224
- readonly getByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement;
225
- readonly findAllByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
226
- readonly findByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
227
- readonly debug: (element?: Element | HTMLDocument | (Element | HTMLDocument)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
228
- readonly logTestingPlaygroundURL: (element?: Element | HTMLDocument | undefined) => string;
229
- };
169
+ declare const customScreen: Screen<typeof sproutQueries>;
230
170
  export { act, cleanup, createEvent, customRender as render, customWithin as within, fireEvent, customScreen as screen, userEvent, waitFor, waitForElementToBeRemoved, };
231
171
  //# sourceMappingURL=react-testing-library.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-testing-library.d.ts","sourceRoot":"","sources":["../../../src/utils/react-testing-library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,SAAS,EACT,OAAO,EAGP,OAAO,EACP,yBAAyB,EAEzB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAUpD,QAAA,MAAM,YAAY,SACV,MAAM,YAAY,YACd,cAAc,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBrD,CAAC;AAEF,QAAA,MAAM,YAAY,YAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAG9E,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGR,CAAC;AAEX,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,YAAY,IAAI,MAAM,EACtB,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,OAAO,EACP,yBAAyB,GAC1B,CAAC"}
1
+ {"version":3,"file":"react-testing-library.d.ts","sourceRoot":"","sources":["../../../src/utils/react-testing-library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,SAAS,EACT,OAAO,EAGP,OAAO,EACP,yBAAyB,EAEzB,aAAa,EACb,YAAY,EACZ,MAAM,EACP,MAAM,wBAAwB,CAAC;AAChC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAKpD,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGT,CAAC;AAEX,UAAU,kBAAmB,SAAQ,YAAY,CAAC,OAAO,aAAa,CAAC;IACrE,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC;AACD,QAAA,MAAM,YAAY,SACV,MAAM,SAAS,YACX,KAAK,cAAc,oBAAoB,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC,KACzE,kBAeF,CAAC;AAEF,QAAA,MAAM,YAAY,YAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAG9E,QAAA,MAAM,YAAY,EAAE,MAAM,CAAC,OAAO,aAAa,CAGrC,CAAC;AAEX,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,YAAY,IAAI,MAAM,EACtB,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,OAAO,EACP,yBAAyB,GAC1B,CAAC"}