@sproutsocial/racine 22.5.1 → 23.1.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.
- package/CHANGELOG.md +18 -0
- package/README.md +3 -3
- package/__flow__/Toast/Toast.flow.js +4 -0
- package/commonjs/Avatar/Avatar.js +24 -16
- package/commonjs/Badge/Badge.js +20 -13
- package/commonjs/Banner/Banner.js +35 -25
- package/commonjs/Box/Box.js +7 -2
- package/commonjs/Breadcrumb/Breadcrumb.js +36 -23
- package/commonjs/Button/Button.js +11 -3
- package/commonjs/Card/Card.js +25 -18
- package/commonjs/Card/subComponents.js +32 -15
- package/commonjs/CharacterCounter/CharacterCounter.js +7 -3
- package/commonjs/ChartLegend/ChartLegend.js +10 -3
- package/commonjs/ChartLegend/useChartLabels.js +12 -10
- package/commonjs/Checkbox/Checkbox.js +55 -45
- package/commonjs/Checkbox/styles.js +20 -17
- package/commonjs/Collapsible/Collapsible.js +22 -16
- package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +26 -16
- package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.js +7 -2
- package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +24 -14
- package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +7 -2
- package/commonjs/DatePicker/common.js +8 -6
- package/commonjs/Drawer/Drawer.js +160 -113
- package/commonjs/EmptyState/EmptyState.js +44 -31
- package/commonjs/Fieldset/Fieldset.js +31 -14
- package/commonjs/FormField/FormField.js +37 -31
- package/commonjs/Icon/Icon.js +35 -30
- package/commonjs/Image/Image.js +5 -3
- package/commonjs/Indicator/Indicator.js +12 -6
- package/commonjs/Input/Input.js +57 -51
- package/commonjs/KeyboardKey/KeyboardKey.js +12 -3
- package/commonjs/Label/Label.js +15 -9
- package/commonjs/Link/Link.js +10 -3
- package/commonjs/Listbox/Listbox.js +16 -13
- package/commonjs/Loader/Loader.js +9 -3
- package/commonjs/LoaderButton/LoaderButton.js +28 -18
- package/commonjs/Menu/Menu.js +128 -107
- package/commonjs/Menu/utils/descendants.js +6 -6
- package/commonjs/Message/Message.js +79 -59
- package/commonjs/Modal/Modal.js +54 -31
- package/commonjs/Modal/styles.js +8 -4
- package/commonjs/Numeral/Numeral.js +46 -13
- package/commonjs/Numeral/index.js +12 -3
- package/commonjs/PartnerLogo/PartnerLogo.js +22 -12
- package/commonjs/Radio/Radio.js +28 -22
- package/commonjs/SegmentedControl/SegmentedControl.js +38 -24
- package/commonjs/Select/Select.js +32 -25
- package/commonjs/SpotIllustration/SpotIllustration.js +13 -5
- package/commonjs/Stack/Stack.js +15 -8
- package/commonjs/Switch/Switch.js +14 -7
- package/commonjs/Table/Table.js +65 -45
- package/commonjs/TableCell/TableCell.js +6 -3
- package/commonjs/TableHeaderCell/TableHeaderCell.js +20 -12
- package/commonjs/TableRowAccordion/TableRowAccordion.js +35 -29
- package/commonjs/Tabs/Tabs.js +37 -30
- package/commonjs/Text/Text.js +10 -3
- package/commonjs/Textarea/Textarea.js +37 -32
- package/commonjs/ThemeProvider/index.js +8 -5
- package/commonjs/Toast/Toast.js +127 -91
- package/commonjs/Toast/index.js +15 -15
- package/commonjs/Toast/styles.js +56 -30
- package/commonjs/ToggleHint/ToggleHint.js +11 -5
- package/commonjs/Token/Token.js +39 -25
- package/commonjs/TokenInput/TokenInput.js +55 -47
- package/commonjs/TokenInput/TokenScreenReaderStatus.js +5 -3
- package/commonjs/Tooltip/Tooltip.js +34 -27
- package/dist/types/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/Badge/BadgeTypes.d.ts +0 -1
- package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
- package/dist/types/Badge/styles.d.ts +1 -1
- package/dist/types/Badge/styles.d.ts.map +1 -1
- package/dist/types/Box/BoxTypes.d.ts +0 -1
- package/dist/types/Box/BoxTypes.d.ts.map +1 -1
- package/dist/types/Box/styles.d.ts +1 -1
- package/dist/types/Box/styles.d.ts.map +1 -1
- package/dist/types/Button/Button.d.ts +1 -1
- package/dist/types/Button/Button.d.ts.map +1 -1
- package/dist/types/Card/subComponents.d.ts.map +1 -1
- package/dist/types/Card/utils.d.ts +0 -2
- package/dist/types/Card/utils.d.ts.map +1 -1
- package/dist/types/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/Collapsible/styles.d.ts +2 -3
- package/dist/types/Collapsible/styles.d.ts.map +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +0 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +1 -1
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts +0 -1
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts.map +1 -1
- package/dist/types/DatePicker/common.d.ts.map +1 -1
- package/dist/types/DatePicker/styles.d.ts +0 -1
- package/dist/types/DatePicker/styles.d.ts.map +1 -1
- package/dist/types/Drawer/Drawer.d.ts.map +1 -1
- package/dist/types/Drawer/DrawerTypes.d.ts +6 -3
- package/dist/types/Drawer/DrawerTypes.d.ts.map +1 -1
- package/dist/types/Drawer/styles.d.ts +0 -1
- package/dist/types/Drawer/styles.d.ts.map +1 -1
- package/dist/types/Fieldset/styles.d.ts +0 -1
- package/dist/types/Fieldset/styles.d.ts.map +1 -1
- package/dist/types/Icon/styles.d.ts +1 -1
- package/dist/types/Icon/styles.d.ts.map +1 -1
- package/dist/types/Image/Image.d.ts.map +1 -1
- package/dist/types/Input/Input.d.ts.map +1 -1
- package/dist/types/Input/styles.d.ts +3 -3
- package/dist/types/Input/styles.d.ts.map +1 -1
- package/dist/types/Listbox/ListboxTypes.d.ts +1 -1
- package/dist/types/Listbox/ListboxTypes.d.ts.map +1 -1
- package/dist/types/Loader/LoaderTypes.d.ts +0 -1
- package/dist/types/Loader/LoaderTypes.d.ts.map +1 -1
- package/dist/types/Menu/MenuTypes.d.ts +4 -4
- package/dist/types/Menu/MenuTypes.d.ts.map +1 -1
- package/dist/types/Menu/styles.d.ts +0 -1
- package/dist/types/Menu/styles.d.ts.map +1 -1
- package/dist/types/Menu/utils/descendants.d.ts.map +1 -1
- package/dist/types/Menu/utils/hooks.d.ts +0 -2
- package/dist/types/Menu/utils/hooks.d.ts.map +1 -1
- package/dist/types/Message/Message.d.ts +1 -1
- package/dist/types/Message/Message.d.ts.map +1 -1
- package/dist/types/Message/styles.d.ts +0 -2
- package/dist/types/Message/styles.d.ts.map +1 -1
- package/dist/types/Modal/styles.d.ts +3 -3
- package/dist/types/Modal/styles.d.ts.map +1 -1
- package/dist/types/Numeral/Numeral.d.ts +3 -1
- package/dist/types/Numeral/Numeral.d.ts.map +1 -1
- package/dist/types/Numeral/__tests__/features/testNumeral.d.ts.map +1 -1
- package/dist/types/Numeral/index.d.ts +2 -1
- package/dist/types/Numeral/index.d.ts.map +1 -1
- package/dist/types/Radio/Radio.d.ts.map +1 -1
- package/dist/types/Radio/styles.d.ts +3 -3
- package/dist/types/Radio/styles.d.ts.map +1 -1
- package/dist/types/SegmentedControl/styles.d.ts +0 -1
- package/dist/types/SegmentedControl/styles.d.ts.map +1 -1
- package/dist/types/Select/Select.d.ts.map +1 -1
- package/dist/types/Skeleton/Skeleton.d.ts +0 -1
- package/dist/types/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/types/StatefulStory.d.ts +0 -1
- package/dist/types/StatefulStory.d.ts.map +1 -1
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/TableHeaderCell/styles.d.ts +1 -1
- package/dist/types/TableHeaderCell/styles.d.ts.map +1 -1
- package/dist/types/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/ThemeProvider/index.d.ts +1 -1
- package/dist/types/ThemeProvider/index.d.ts.map +1 -1
- package/dist/types/Toast/Toast.d.ts +22 -2
- package/dist/types/Toast/Toast.d.ts.map +1 -1
- package/dist/types/Toast/ToastTypes.d.ts +27 -13
- package/dist/types/Toast/ToastTypes.d.ts.map +1 -1
- package/dist/types/Toast/index.d.ts +2 -4
- package/dist/types/Toast/index.d.ts.map +1 -1
- package/dist/types/Toast/styles.d.ts +10 -16
- package/dist/types/Toast/styles.d.ts.map +1 -1
- package/dist/types/TokenInput/TokenInput.d.ts +1 -1
- package/dist/types/TokenInput/TokenInput.d.ts.map +1 -1
- package/dist/types/Tooltip/TooltipTypes.d.ts +2 -2
- package/dist/types/Tooltip/TooltipTypes.d.ts.map +1 -1
- package/dist/types/Tooltip/styles.d.ts +0 -1
- package/dist/types/Tooltip/styles.d.ts.map +1 -1
- package/dist/types/themes/dark/theme.d.ts +2 -2
- package/dist/types/themes/dark/theme.d.ts.map +1 -1
- package/dist/types/utils/hooks.d.ts.map +1 -1
- package/dist/types/utils/react-testing-library.d.ts +109 -169
- package/dist/types/utils/react-testing-library.d.ts.map +1 -1
- package/dist/types/utils/responsiveProps/index.d.ts.map +1 -1
- package/lib/Avatar/Avatar.js +25 -16
- package/lib/Badge/Badge.js +22 -13
- package/lib/Banner/Banner.js +37 -25
- package/lib/Box/Box.js +8 -2
- package/lib/Breadcrumb/Breadcrumb.js +37 -23
- package/lib/Button/Button.js +11 -3
- package/lib/Card/Card.js +17 -8
- package/lib/Card/subComponents.js +35 -15
- package/lib/CharacterCounter/CharacterCounter.js +7 -3
- package/lib/ChartLegend/ChartLegend.js +11 -3
- package/lib/ChartLegend/useChartLabels.js +13 -10
- package/lib/Checkbox/Checkbox.js +56 -45
- package/lib/Checkbox/styles.js +20 -17
- package/lib/Collapsible/Collapsible.js +22 -16
- package/lib/DatePicker/DateRangePicker/DateRangePicker.js +29 -16
- package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.js +8 -2
- package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +27 -14
- package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +8 -2
- package/lib/DatePicker/common.js +8 -6
- package/lib/Drawer/Drawer.js +159 -111
- package/lib/EmptyState/EmptyState.js +46 -31
- package/lib/Fieldset/Fieldset.js +33 -14
- package/lib/FormField/FormField.js +38 -31
- package/lib/Icon/Icon.js +36 -30
- package/lib/Image/Image.js +5 -3
- package/lib/Indicator/Indicator.js +13 -6
- package/lib/Input/Input.js +57 -49
- package/lib/KeyboardKey/KeyboardKey.js +12 -3
- package/lib/Label/Label.js +16 -9
- package/lib/Link/Link.js +11 -3
- package/lib/Listbox/Listbox.js +17 -13
- package/lib/Loader/Loader.js +9 -3
- package/lib/LoaderButton/LoaderButton.js +30 -18
- package/lib/Menu/Menu.js +128 -104
- package/lib/Menu/utils/descendants.js +5 -4
- package/lib/Message/Message.js +80 -59
- package/lib/Modal/Modal.js +56 -31
- package/lib/Modal/styles.js +8 -2
- package/lib/Numeral/Numeral.js +48 -12
- package/lib/Numeral/index.js +2 -1
- package/lib/PartnerLogo/PartnerLogo.js +22 -12
- package/lib/Radio/Radio.js +29 -22
- package/lib/SegmentedControl/SegmentedControl.js +40 -24
- package/lib/Select/Select.js +33 -25
- package/lib/SpotIllustration/SpotIllustration.js +13 -5
- package/lib/Stack/Stack.js +17 -8
- package/lib/Switch/Switch.js +15 -7
- package/lib/Table/Table.js +65 -43
- package/lib/TableCell/TableCell.js +5 -2
- package/lib/TableHeaderCell/TableHeaderCell.js +20 -11
- package/lib/TableRowAccordion/TableRowAccordion.js +35 -28
- package/lib/Tabs/Tabs.js +37 -30
- package/lib/Text/Text.js +11 -3
- package/lib/Textarea/Textarea.js +37 -30
- package/lib/ThemeProvider/index.js +8 -3
- package/lib/Toast/Toast.js +130 -90
- package/lib/Toast/index.js +3 -5
- package/lib/Toast/styles.js +55 -26
- package/lib/ToggleHint/ToggleHint.js +12 -5
- package/lib/Token/Token.js +42 -25
- package/lib/TokenInput/TokenInput.js +56 -47
- package/lib/TokenInput/TokenScreenReaderStatus.js +5 -3
- package/lib/Tooltip/Tooltip.js +34 -27
- package/package.json +40 -36
- package/commonjs/Drawer/SlideTransition.js +0 -47
- package/commonjs/Popout/Popout.js +0 -313
- package/commonjs/Popout/PopoutTypes.js +0 -5
- package/commonjs/Popout/index.js +0 -30
- package/commonjs/Popout/styles.js +0 -13
- package/dist/types/Drawer/SlideTransition.d.ts +0 -15
- package/dist/types/Drawer/SlideTransition.d.ts.map +0 -1
- package/dist/types/Popout/Popout.d.ts +0 -14
- package/dist/types/Popout/Popout.d.ts.map +0 -1
- package/dist/types/Popout/PopoutTypes.d.ts +0 -90
- package/dist/types/Popout/PopoutTypes.d.ts.map +0 -1
- package/dist/types/Popout/index.d.ts +0 -5
- package/dist/types/Popout/index.d.ts.map +0 -1
- package/dist/types/Popout/styles.d.ts +0 -2
- package/dist/types/Popout/styles.d.ts.map +0 -1
- package/lib/Drawer/SlideTransition.js +0 -38
- package/lib/Popout/Popout.js +0 -303
- package/lib/Popout/PopoutTypes.js +0 -1
- package/lib/Popout/index.js +0 -4
- package/lib/Popout/styles.js +0 -6
|
@@ -1,118 +1,115 @@
|
|
|
1
1
|
import * as React from "react";
|
|
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
|
|
5
|
-
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T
|
|
69
|
-
getAllByLabelText<
|
|
70
|
-
queryByLabelText<
|
|
71
|
-
queryAllByLabelText<
|
|
72
|
-
findByLabelText<
|
|
73
|
-
findAllByLabelText<
|
|
74
|
-
getByPlaceholderText<
|
|
75
|
-
getAllByPlaceholderText<
|
|
76
|
-
queryByPlaceholderText<
|
|
77
|
-
queryAllByPlaceholderText<
|
|
78
|
-
findByPlaceholderText<
|
|
79
|
-
findAllByPlaceholderText<
|
|
80
|
-
getByText<
|
|
81
|
-
getAllByText<
|
|
82
|
-
queryByText<
|
|
83
|
-
queryAllByText<
|
|
84
|
-
findByText<
|
|
85
|
-
findAllByText<
|
|
86
|
-
getByAltText<
|
|
87
|
-
getAllByAltText<
|
|
88
|
-
queryByAltText<
|
|
89
|
-
queryAllByAltText<
|
|
90
|
-
findByAltText<
|
|
91
|
-
findAllByAltText<
|
|
92
|
-
getByTitle<
|
|
93
|
-
getAllByTitle<
|
|
94
|
-
queryByTitle<
|
|
95
|
-
queryAllByTitle<
|
|
96
|
-
findByTitle<
|
|
97
|
-
findAllByTitle<
|
|
98
|
-
getByDisplayValue<
|
|
99
|
-
getAllByDisplayValue<
|
|
100
|
-
queryByDisplayValue<
|
|
101
|
-
queryAllByDisplayValue<
|
|
102
|
-
findByDisplayValue<
|
|
103
|
-
findAllByDisplayValue<
|
|
104
|
-
getByRole<
|
|
105
|
-
getAllByRole<
|
|
106
|
-
queryByRole<
|
|
107
|
-
queryAllByRole<
|
|
108
|
-
findByRole<
|
|
109
|
-
findAllByRole<
|
|
110
|
-
getByTestId<
|
|
111
|
-
getAllByTestId<
|
|
112
|
-
queryByTestId<
|
|
113
|
-
queryAllByTestId<
|
|
114
|
-
findByTestId<
|
|
115
|
-
findAllByTestId<
|
|
65
|
+
getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.GetByText<T>>;
|
|
66
|
+
getAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.AllByText<T>>;
|
|
67
|
+
queryByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.QueryByText<T>>;
|
|
68
|
+
queryAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.AllByText<T>>;
|
|
69
|
+
findByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByText<T>>;
|
|
70
|
+
findAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByText<T>>;
|
|
71
|
+
getByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
|
|
72
|
+
getAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
73
|
+
queryByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
|
|
74
|
+
queryAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
75
|
+
findByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
|
|
76
|
+
findAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
|
|
77
|
+
getByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.GetByText<T>>;
|
|
78
|
+
getAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.AllByText<T>>;
|
|
79
|
+
queryByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.QueryByText<T>>;
|
|
80
|
+
queryAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.AllByText<T>>;
|
|
81
|
+
findByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByText<T>>;
|
|
82
|
+
findAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByText<T>>;
|
|
83
|
+
getByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
|
|
84
|
+
getAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
85
|
+
queryByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
|
|
86
|
+
queryAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
87
|
+
findByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
|
|
88
|
+
findAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
|
|
89
|
+
getByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
|
|
90
|
+
getAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
91
|
+
queryByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
|
|
92
|
+
queryAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
93
|
+
findByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
|
|
94
|
+
findAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
|
|
95
|
+
getByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
|
|
96
|
+
getAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
97
|
+
queryByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
|
|
98
|
+
queryAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
99
|
+
findByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
|
|
100
|
+
findAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
|
|
101
|
+
getByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): ReturnType<queries.GetByRole<T>>;
|
|
102
|
+
getAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): ReturnType<queries.AllByRole<T>>;
|
|
103
|
+
queryByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): ReturnType<queries.QueryByRole<T>>;
|
|
104
|
+
queryAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): ReturnType<queries.AllByRole<T>>;
|
|
105
|
+
findByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByRole<T>>;
|
|
106
|
+
findAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByRole<T>>;
|
|
107
|
+
getByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
|
|
108
|
+
getAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
109
|
+
queryByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
|
|
110
|
+
queryAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
|
|
111
|
+
findByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
|
|
112
|
+
findAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
|
|
116
113
|
} & {
|
|
117
114
|
readonly queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
|
|
118
115
|
readonly queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
@@ -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,
|
|
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,KAAK,CAAC,SAAS,YACX,IAAI,CAAC,aAAa,CAAC,OAAO,aAAa,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC,KACzE,kBAeF,CAAC;AAEF,QAAA,MAAM,YAAY,YAAa,WAAW;iMA/BzB,QAAS,SAAQ;oMAKjB,QACjB,SAAS;mMAMI,QAAQ,WACd;sMAIG,QAAQ,SAAS;uRAUlB,QACP,UAAO;0RAMA,QAAQ,aAAa;+LAUR,QAClB,mBACM;kMAKsF,QAAQ,mBAAmB;iMAAyK,QAAQ,qBAAqB;oMAA0K,QAAQ,mBAAmB;qRAAuK,QAAQ,oBAAoB;wRAA6K,QAAQ,uBAAuB;4LAAgJ,QAAQ,SAAS;+LAAmJ,QAAQ,SAAS;8LAAoJ,QAAQ,WAAW;iMAAqJ,QAAQ,SAAS;kRAAkJ,QAAQ,UAAU;qRAAwJ,QAAQ,aAAa;uLAA6J,QAAQ,mBAAmB;0LAAgK,QAAQ,mBAAmB;yLAAiK,QAAQ,qBAAqB;4LAAkK,QAAQ,mBAAmB;6QAA+J,QAAQ,oBAAoB;gRAAqK,QAAQ,uBAAuB;qLAA2J,QAAQ,mBAAmB;wLAA8J,QAAQ,mBAAmB;uLAA+J,QAAQ,qBAAqB;0LAAgK,QAAQ,mBAAmB;2QAA6J,QAAQ,oBAAoB;8QAAmK,QAAQ,uBAAuB;4LAAkK,QAAQ,mBAAmB;+LAAqK,QAAQ,mBAAmB;8LAAsK,QAAQ,qBAAqB;iMAAuK,QAAQ,mBAAmB;kRAAoK,QAAQ,oBAAoB;qRAA0K,QAAQ,uBAAuB;kKAAgJ,QAAQ,SAAS;qKAAmJ,QAAQ,SAAS;oKAAoJ,QAAQ,WAAW;uKAAqJ,QAAQ,SAAS;wPAAkJ,QAAQ,UAAU;2PAAwJ,QAAQ,aAAa;sLAA4J,QAAQ,mBAAmB;yLAA+J,QAAQ,mBAAmB;wLAAgK,QAAQ,qBAAqB;2LAAiK,QAAQ,mBAAmB;4QAA8J,QAAQ,oBAAoB;+QAAoK,QAAQ,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CApB9sO,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/responsiveProps/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAKxE,eAAO,MAAM,uBAAuB,UAE3B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/responsiveProps/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAKxE,eAAO,MAAM,uBAAuB,UAE3B,cAAc,CAAC,GAAG,CAAC,KAEzB,cAAc,CAAC,GAAG,CA8BpB,CAAC"}
|
package/lib/Avatar/Avatar.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
var _excluded = ["fontSize"],
|
|
2
3
|
_excluded2 = ["appearance", "name", "src", "variant", "type", "size", "bg", "color"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
6
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
7
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
8
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
9
9
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
17
|
import * as React from "react";
|
|
@@ -16,13 +21,14 @@ import classnames from "classnames";
|
|
|
16
21
|
import Box from "../Box";
|
|
17
22
|
import Image from "../Image";
|
|
18
23
|
import Text from "../Text";
|
|
24
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
25
|
var defaultType = "neutral";
|
|
20
26
|
|
|
21
27
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
22
28
|
var AvatarText = styled(function (_ref) {
|
|
23
29
|
var fontSize = _ref.fontSize,
|
|
24
30
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/_jsx(Text, _objectSpread({}, rest));
|
|
26
32
|
}).withConfig({
|
|
27
33
|
displayName: "Avatar__AvatarText",
|
|
28
34
|
componentId: "sc-1ffu253-0"
|
|
@@ -100,7 +106,7 @@ export var Avatar = function Avatar(_ref4) {
|
|
|
100
106
|
|
|
101
107
|
// Font size for initials is half the size of the avatar, rounded down.
|
|
102
108
|
var fontSize = Math.floor(Number(size.replace("px", "")) * 0.4);
|
|
103
|
-
return /*#__PURE__*/
|
|
109
|
+
return /*#__PURE__*/_jsx(Container, _objectSpread(_objectSpread({
|
|
104
110
|
className: classnames(variant),
|
|
105
111
|
size: size,
|
|
106
112
|
overflow: "hidden",
|
|
@@ -117,19 +123,22 @@ export var Avatar = function Avatar(_ref4) {
|
|
|
117
123
|
"data-qa-user-avatar": name,
|
|
118
124
|
$src: src,
|
|
119
125
|
imageFailedLoading: imageFailedLoading
|
|
120
|
-
}, rest),
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
126
|
+
}, rest), {}, {
|
|
127
|
+
children: !src || imageFailedLoading ? /*#__PURE__*/_jsx(AvatarText, {
|
|
128
|
+
lineHeight: size,
|
|
129
|
+
fontWeight: "semibold",
|
|
130
|
+
fontSize: fontSize,
|
|
131
|
+
type: colorType,
|
|
132
|
+
color: color,
|
|
133
|
+
children: initials
|
|
134
|
+
}) : /*#__PURE__*/_jsx(Image, {
|
|
135
|
+
alt: name,
|
|
136
|
+
width: "auto",
|
|
137
|
+
height: "100%",
|
|
138
|
+
src: src,
|
|
139
|
+
onError: handleError,
|
|
140
|
+
m: 0
|
|
141
|
+
})
|
|
133
142
|
}));
|
|
134
143
|
};
|
|
135
144
|
export default /*#__PURE__*/memo(Avatar);
|
package/lib/Badge/Badge.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
var _excluded = ["children", "text", "iconName", "type", "tip", "size", "badgeColor", "color"];
|
|
2
|
-
function
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
10
|
import * as React from "react";
|
|
6
11
|
import Box from "../Box";
|
|
7
12
|
import Icon from "../Icon";
|
|
8
13
|
import Container from "./styles";
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
16
|
var Badge = function Badge(_ref) {
|
|
10
17
|
var children = _ref.children,
|
|
11
18
|
text = _ref.text,
|
|
@@ -21,7 +28,7 @@ var Badge = function Badge(_ref) {
|
|
|
21
28
|
if (children && text) {
|
|
22
29
|
throw new Error("can't use both `children` and `text` props. Text is deprecated, consider using children.");
|
|
23
30
|
}
|
|
24
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/_jsx(Container, _objectSpread(_objectSpread({}, rest), {}, {
|
|
25
32
|
// size previously included default, which currently maps to small. Once consumers have updated this can be simplified.
|
|
26
33
|
size: size === "default" ? "large" : size,
|
|
27
34
|
badgeColor: badgeColor,
|
|
@@ -34,16 +41,18 @@ var Badge = function Badge(_ref) {
|
|
|
34
41
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
35
42
|
// @ts-ignore
|
|
36
43
|
,
|
|
37
|
-
color: color
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
color: color,
|
|
45
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
46
|
+
display: "flex",
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
justifyContent: "center",
|
|
49
|
+
children: [iconName ? /*#__PURE__*/_jsx(Icon, {
|
|
50
|
+
mr: 200,
|
|
51
|
+
name: iconName,
|
|
52
|
+
size: size === "small" ? "mini" : "small",
|
|
53
|
+
"aria-hidden": true
|
|
54
|
+
}) : null, children || text]
|
|
55
|
+
})
|
|
56
|
+
}));
|
|
48
57
|
};
|
|
49
58
|
export default Badge;
|