@sproutsocial/racine 25.0.2 → 25.2.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 +19 -0
- package/README.NPM.md +1 -1
- package/README.md +2 -2
- package/commonjs/MenuNew/storybookUtilities/menu-storybook-components.js +42 -0
- package/commonjs/Modal/Modal.js +5 -3
- package/commonjs/Switch/Switch.js +2 -1
- package/commonjs/themes/light/theme.js +2 -1
- package/dist/types/MenuNew/__tests__/fixtures/menu-test-data.d.ts +9 -0
- package/dist/types/MenuNew/__tests__/fixtures/menu-test-data.d.ts.map +1 -0
- package/dist/types/MenuNew/storybookUtilities/menu-storybook-components.d.ts +9 -0
- package/dist/types/MenuNew/storybookUtilities/menu-storybook-components.d.ts.map +1 -0
- package/dist/types/Message/MessageTypes.d.ts +1 -1
- package/dist/types/Message/MessageTypes.d.ts.map +1 -1
- package/dist/types/Modal/Modal.d.ts.map +1 -1
- package/dist/types/Modal/ModalTypes.d.ts +5 -0
- package/dist/types/Modal/ModalTypes.d.ts.map +1 -1
- package/dist/types/Numeral/__tests__/features/testNumeral.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
- package/dist/types/themes/dark/theme.d.ts +1 -0
- package/dist/types/themes/dark/theme.d.ts.map +1 -1
- package/dist/types/themes/light/theme.d.ts +1 -0
- package/dist/types/themes/light/theme.d.ts.map +1 -1
- package/lib/MenuNew/storybookUtilities/menu-storybook-components.js +36 -0
- package/lib/Modal/Modal.js +5 -3
- package/lib/Switch/Switch.js +2 -1
- package/lib/themes/light/theme.js +2 -1
- package/package.json +3 -2
- package/commonjs/utils/react-testing-library.js +0 -96
- package/dist/types/utils/react-testing-library.d.ts +0 -171
- package/dist/types/utils/react-testing-library.d.ts.map +0 -1
- package/lib/utils/react-testing-library.js +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 25.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a5e4101: added a "data" prop to the Modal component for custom data attributes
|
|
8
|
+
|
|
9
|
+
## 25.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- c3e7d9b: add bluesky network color to theme
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [798f006]
|
|
18
|
+
- Updated dependencies [c3e7d9b]
|
|
19
|
+
- @sproutsocial/seeds-networkcolor@2.20.0
|
|
20
|
+
- @sproutsocial/seeds-react-theme@2.2.0
|
|
21
|
+
|
|
3
22
|
## 25.0.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.NPM.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<p align="left">
|
|
4
4
|
<a href="https://github.com/storybooks/storybook"><img src="/docs/assets/storybook.svg" alt=""></a>
|
|
5
|
-
<a href="https://
|
|
5
|
+
<a href="https://seeds-storybook.netlify.com"><img src="https://api.netlify.com/api/v1/badges/29cdfd47-e0ce-4af0-bda9-b6d3f7ad38e5/deploy-status" alt=""></a>
|
|
6
6
|
<a href="https://github.com/styled-components/styled-components"><img src="https://img.shields.io/badge/style-%F0%9F%92%85%20styled--components-orange.svg?colorB=daa357&colorA=db748e" alt=""></a>
|
|
7
7
|
<a href="https://github.com/sproutsocial/seeds/blob/main/seeds-react/racine/LICENSE"><img src="https://flat.badgen.net/badge/license/MIT/blue" alt=""></a>
|
|
8
8
|
</p>
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<p align="left">
|
|
4
4
|
<a href="https://github.com/storybooks/storybook"><img src="/docs/assets/storybook.svg" alt=""></a>
|
|
5
|
-
<a href="https://
|
|
5
|
+
<a href="https://seeds-storybook.netlify.com"><img src="https://api.netlify.com/api/v1/badges/29cdfd47-e0ce-4af0-bda9-b6d3f7ad38e5/deploy-status" alt=""></a>
|
|
6
6
|
<a href="https://github.com/styled-components/styled-components"><img src="https://img.shields.io/badge/style-%F0%9F%92%85%20styled--components-orange.svg?colorB=daa357&colorA=db748e" alt=""></a>
|
|
7
7
|
<a href="https://github.com/sproutsocial/seeds/blob/main/seeds-react/racine/LICENSE"><img src="https://flat.badgen.net/badge/license/MIT/blue" alt=""></a>
|
|
8
8
|
</p>
|
|
@@ -108,7 +108,7 @@ Cut a feature branch off `dev` and start coding! As updates are merged into `dev
|
|
|
108
108
|
|
|
109
109
|
_Need to make an urgent update? Branch off `main` instead of `dev`, and open your PR later against `main`. We consider this a hotfix and only support it for critical time-sensitive updates, so check with the Design Systems team prior to making this kind of contribution._
|
|
110
110
|
|
|
111
|
-
We use a [visual regression testing](https://
|
|
111
|
+
We use a [visual regression testing](https://seeds-storybook.netlify.app/?path=/story/welcome-visual-regression-testing--page) suite to capture any unintended changes during development. After running `yarn build` you can run the suite locally with `yarn test:visual-regression`, which will open a report in your browser to show you what passed and what failed. If any fails are actually intentional visual changes you can run `yarn backstop:approve` to approve those changes as new reference images and include them in your PR.
|
|
112
112
|
|
|
113
113
|
As you develop you'll want to track the scope of the changes you make. Racine supports this with a tool called [changesets](https://github.com/atlassian/changesets) to automatically pick new version numbers and update the changelog whenever we publish a new version of the package.
|
|
114
114
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StorybookMenuToggleButton = void 0;
|
|
7
|
+
var _seedsReactMenu = require("@sproutsocial/seeds-react-menu");
|
|
8
|
+
var _seedsReactBox = require("@sproutsocial/seeds-react-box");
|
|
9
|
+
var _seedsReactIcon = require("@sproutsocial/seeds-react-icon");
|
|
10
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
var StyledChevron = _styledComponents.default.div.withConfig({
|
|
14
|
+
displayName: "menu-storybook-components__StyledChevron",
|
|
15
|
+
componentId: "sc-1qxavqh-0"
|
|
16
|
+
})(["margin-left:", ";", " transition:transform 0.15s;"], function (_ref) {
|
|
17
|
+
var theme = _ref.theme;
|
|
18
|
+
return theme.space[300];
|
|
19
|
+
}, function (_ref2) {
|
|
20
|
+
var $isOpen = _ref2.$isOpen;
|
|
21
|
+
return $isOpen && "\n\t\ttransform: rotate(-180deg);\n\t";
|
|
22
|
+
});
|
|
23
|
+
var StorybookMenuToggleButton = exports.StorybookMenuToggleButton = function StorybookMenuToggleButton(_ref3) {
|
|
24
|
+
var buttonText = _ref3.buttonText;
|
|
25
|
+
var _useMenuContext = (0, _seedsReactMenu.useMenuContext)(),
|
|
26
|
+
isOpen = _useMenuContext.isOpen;
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_seedsReactMenu.MenuToggleButton, {
|
|
28
|
+
appearance: "secondary",
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_seedsReactBox.Box, {
|
|
30
|
+
display: "flex",
|
|
31
|
+
justifyContent: "space-between",
|
|
32
|
+
children: [buttonText ? buttonText : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
33
|
+
children: "Select book"
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledChevron, {
|
|
35
|
+
$isOpen: isOpen,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_seedsReactIcon.Icon, {
|
|
37
|
+
name: "chevron-down"
|
|
38
|
+
})
|
|
39
|
+
})]
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
};
|
package/commonjs/Modal/Modal.js
CHANGED
|
@@ -15,7 +15,7 @@ var _styles = require("./styles");
|
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var _excluded = ["title", "subtitle", "children", "bordered"],
|
|
17
17
|
_excluded2 = ["children"],
|
|
18
|
-
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"];
|
|
18
|
+
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex", "data"];
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -108,6 +108,8 @@ var Modal = function Modal(props) {
|
|
|
108
108
|
closeButtonLabel = props.closeButtonLabel,
|
|
109
109
|
width = props.width,
|
|
110
110
|
zIndex = props.zIndex,
|
|
111
|
+
_props$data = props.data,
|
|
112
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
111
113
|
rest = _objectWithoutProperties(props, _excluded3);
|
|
112
114
|
var isCloseable = Boolean(onClose);
|
|
113
115
|
var appElement = appElementSelector && document ? document.querySelector(appElementSelector) : undefined;
|
|
@@ -127,10 +129,10 @@ var Modal = function Modal(props) {
|
|
|
127
129
|
role: "dialog",
|
|
128
130
|
width: width,
|
|
129
131
|
zIndex: zIndex,
|
|
130
|
-
data: {
|
|
132
|
+
data: _objectSpread({
|
|
131
133
|
"qa-modal": "",
|
|
132
134
|
"qa-modal-isopen": isOpen
|
|
133
|
-
}
|
|
135
|
+
}, data)
|
|
134
136
|
}, rest), {}, {
|
|
135
137
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
136
138
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Body, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ModalContext.Provider, {
|
|
@@ -37,7 +37,8 @@ var Switch = function Switch(_ref) {
|
|
|
37
37
|
var onClick = _ref.onClick,
|
|
38
38
|
_ref$loading = _ref.loading,
|
|
39
39
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
40
|
-
checked = _ref.checked,
|
|
40
|
+
_ref$checked = _ref.checked,
|
|
41
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
41
42
|
_ref$disabled = _ref.disabled,
|
|
42
43
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
43
44
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -291,7 +291,8 @@ var colors = _objectSpread(_objectSpread({
|
|
|
291
291
|
trustpilot_2_star: _seedsNetworkcolor.default.NETWORK_COLOR_TRUSTPILOT_2_STAR,
|
|
292
292
|
trustpilot_3_star: _seedsNetworkcolor.default.NETWORK_COLOR_TRUSTPILOT_3_STAR,
|
|
293
293
|
trustpilot_4_star: _seedsNetworkcolor.default.NETWORK_COLOR_TRUSTPILOT_4_STAR,
|
|
294
|
-
trustpilot_5_star: _seedsNetworkcolor.default.NETWORK_COLOR_TRUSTPILOT_5_STAR
|
|
294
|
+
trustpilot_5_star: _seedsNetworkcolor.default.NETWORK_COLOR_TRUSTPILOT_5_STAR,
|
|
295
|
+
bluesky: _seedsNetworkcolor.default.NETWORK_COLOR_BLUESKY
|
|
295
296
|
},
|
|
296
297
|
dataviz: {
|
|
297
298
|
map: _datavizPalette.datavizPalette.DATAVIZ_COLORS_MAP,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-test-data.d.ts","sourceRoot":"","sources":["../../../../../src/MenuNew/__tests__/fixtures/menu-test-data.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,EAAE,QAAQ,EAmBhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,EAQjC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface TypeStyledChevronProps {
|
|
2
|
+
$isOpen?: boolean;
|
|
3
|
+
}
|
|
4
|
+
interface StorybookMenuToggleButtonProps {
|
|
5
|
+
buttonText?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const StorybookMenuToggleButton: ({ buttonText, }: StorybookMenuToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=menu-storybook-components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-storybook-components.d.ts","sourceRoot":"","sources":["../../../../src/MenuNew/storybookUtilities/menu-storybook-components.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAYD,UAAU,8BAA8B;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,yBAAyB,oBAEnC,8BAA8B,4CAahC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { TypeBoxProps } from "../Box";
|
|
|
3
3
|
import { TypeQaProps } from "../types/shared";
|
|
4
4
|
import { MESSAGE_DENSITIES } from "./constants";
|
|
5
5
|
type TypeDensityKeys = keyof typeof MESSAGE_DENSITIES;
|
|
6
|
-
export type EnumDensities = typeof MESSAGE_DENSITIES[TypeDensityKeys];
|
|
6
|
+
export type EnumDensities = (typeof MESSAGE_DENSITIES)[TypeDensityKeys];
|
|
7
7
|
export interface TypeMessageProps extends TypeBoxProps {
|
|
8
8
|
/** Condensed, small, or large. */
|
|
9
9
|
density?: EnumDensities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageTypes.d.ts","sourceRoot":"","sources":["../../../src/Message/MessageTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhD,KAAK,eAAe,GAAG,MAAM,OAAO,iBAAiB,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,OAAO,iBAAiB,CAAC,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageTypes.d.ts","sourceRoot":"","sources":["../../../src/Message/MessageTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhD,KAAK,eAAe,GAAG,MAAM,OAAO,iBAAiB,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,eAAe,CAAC,CAAC;AAExE,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,kCAAkC;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAoEtB;;GAEG;AACH,QAAA,MAAM,KAAK;YAAW,cAAc;;;;;;gBA7DR,oBAAoB;;;;gBAuCpB,oBAAoB;;;;;;;;gBAVf,yBAAyB;;;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAoEtB;;GAEG;AACH,QAAA,MAAM,KAAK;YAAW,cAAc;;;;;;gBA7DR,oBAAoB;;;;gBAuCpB,oBAAoB;;;;;;;;gBAVf,yBAAyB;;;CA0FzD,CAAC;AAiBF,eAAe,KAAK,CAAC"}
|
|
@@ -37,5 +37,10 @@ export interface TypeModalProps extends TypeContainerProps, Omit<ReactModal.Prop
|
|
|
37
37
|
zIndex?: number;
|
|
38
38
|
/** The max width of the modal container */
|
|
39
39
|
width?: string | number;
|
|
40
|
+
/**
|
|
41
|
+
* Custom attributes to be added to the modals container
|
|
42
|
+
* Each key will be prepended with "data-" when rendered in the DOM
|
|
43
|
+
*/
|
|
44
|
+
data?: Record<string, string | boolean | number>;
|
|
40
45
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AC;IACrE,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,yCAAyC;IACzC,MAAM,EAAE,OAAO,CAAC;IAEhB,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IAEd,gCAAgC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,6BAA6B;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;CAClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testNumeral.d.ts","sourceRoot":"","sources":["../../../../../src/Numeral/__tests__/features/testNumeral.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"testNumeral.d.ts","sourceRoot":"","sources":["../../../../../src/Numeral/__tests__/features/testNumeral.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,WAAW,2DAiDhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { TypeSystemCommonProps, TypeSystemFlexboxProps } from "@sproutsocia
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use PartnerLogoNames instead
|
|
7
7
|
*/
|
|
8
|
-
export declare const PartnerNames: readonly ["adobe-experience-manager", "android", "apple-app-store", "apple", "bigcommerce", "bitly", "bynder", "canva", "dropbox", "facebook-audience-network", "facebook", "facebook-groups", "facebook-shops", "feedly", "github", "glassdoor", "google-analytics", "google-business-messages", "google-drive", "google-my-business", "google-play-store", "hubspot", "instagram", "linkedin-audience-network", "linkedin", "marketo", "messenger", "meta", "microsoft-dynamics", "paypal", "pinterest", "reddit", "salesforce-cloud", "salesforce", "shopify", "slack", "sproutsocial", "tableau", "threads", "tiktok", "tripadvisor", "trustpilot", "tumblr", "twitter-audience-network", "twitter", "whatsapp", "woocommerce", "x-twitter", "yelp", "youtube", "zendesk"];
|
|
8
|
+
export declare const PartnerNames: readonly ["adobe-experience-manager", "android", "apple-app-store", "apple", "bigcommerce", "bitly", "bluesky", "bynder", "canva", "dropbox", "facebook-audience-network", "facebook", "facebook-groups", "facebook-shops", "feedly", "github", "glassdoor", "google-analytics", "google-business-messages", "google-drive", "google-my-business", "google-play-store", "hubspot", "instagram", "linkedin-audience-network", "linkedin", "marketo", "messenger", "meta", "microsoft-dynamics", "paypal", "pinterest", "reddit", "salesforce-cloud", "salesforce", "shopify", "slack", "sproutsocial", "tableau", "threads", "tiktok", "tripadvisor", "trustpilot", "tumblr", "twitter-audience-network", "twitter", "whatsapp", "woocommerce", "x-twitter", "yelp", "youtube", "zendesk"];
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated Use EnumLogoNames instead
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartnerLogoTypes.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogoTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,wCAAwC,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"PartnerLogoTypes.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogoTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,E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"theme.d.ts","sourceRoot":"","sources":["../../../../src/themes/light/theme.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,WAAW,UAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/themes/light/theme.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,WAAW,UAA0C,CAAC;AA0RnE,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAatB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAarB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,eAAO,MAAM,UAAU,QAA+B,CAAC;AAEvD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;CAUjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;CASjB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAnXL,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;gBAyBnD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2IrD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6OtD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { useMenuContext, MenuToggleButton } from "@sproutsocial/seeds-react-menu";
|
|
2
|
+
import { Box } from "@sproutsocial/seeds-react-box";
|
|
3
|
+
import { Icon } from "@sproutsocial/seeds-react-icon";
|
|
4
|
+
import styled from "styled-components";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
var StyledChevron = styled.div.withConfig({
|
|
8
|
+
displayName: "menu-storybook-components__StyledChevron",
|
|
9
|
+
componentId: "sc-1qxavqh-0"
|
|
10
|
+
})(["margin-left:", ";", " transition:transform 0.15s;"], function (_ref) {
|
|
11
|
+
var theme = _ref.theme;
|
|
12
|
+
return theme.space[300];
|
|
13
|
+
}, function (_ref2) {
|
|
14
|
+
var $isOpen = _ref2.$isOpen;
|
|
15
|
+
return $isOpen && "\n\t\ttransform: rotate(-180deg);\n\t";
|
|
16
|
+
});
|
|
17
|
+
export var StorybookMenuToggleButton = function StorybookMenuToggleButton(_ref3) {
|
|
18
|
+
var buttonText = _ref3.buttonText;
|
|
19
|
+
var _useMenuContext = useMenuContext(),
|
|
20
|
+
isOpen = _useMenuContext.isOpen;
|
|
21
|
+
return /*#__PURE__*/_jsx(MenuToggleButton, {
|
|
22
|
+
appearance: "secondary",
|
|
23
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
24
|
+
display: "flex",
|
|
25
|
+
justifyContent: "space-between",
|
|
26
|
+
children: [buttonText ? buttonText : /*#__PURE__*/_jsx("span", {
|
|
27
|
+
children: "Select book"
|
|
28
|
+
}), /*#__PURE__*/_jsx(StyledChevron, {
|
|
29
|
+
$isOpen: isOpen,
|
|
30
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
31
|
+
name: "chevron-down"
|
|
32
|
+
})
|
|
33
|
+
})]
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
};
|
package/lib/Modal/Modal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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); }
|
|
2
2
|
var _excluded = ["title", "subtitle", "children", "bordered"],
|
|
3
3
|
_excluded2 = ["children"],
|
|
4
|
-
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"];
|
|
4
|
+
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex", "data"];
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
@@ -100,6 +100,8 @@ var Modal = function Modal(props) {
|
|
|
100
100
|
closeButtonLabel = props.closeButtonLabel,
|
|
101
101
|
width = props.width,
|
|
102
102
|
zIndex = props.zIndex,
|
|
103
|
+
_props$data = props.data,
|
|
104
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
103
105
|
rest = _objectWithoutProperties(props, _excluded3);
|
|
104
106
|
var isCloseable = Boolean(onClose);
|
|
105
107
|
var appElement = appElementSelector && document ? document.querySelector(appElementSelector) : undefined;
|
|
@@ -119,10 +121,10 @@ var Modal = function Modal(props) {
|
|
|
119
121
|
role: "dialog",
|
|
120
122
|
width: width,
|
|
121
123
|
zIndex: zIndex,
|
|
122
|
-
data: {
|
|
124
|
+
data: _objectSpread({
|
|
123
125
|
"qa-modal": "",
|
|
124
126
|
"qa-modal-isopen": isOpen
|
|
125
|
-
}
|
|
127
|
+
}, data)
|
|
126
128
|
}, rest), {}, {
|
|
127
129
|
children: /*#__PURE__*/_jsxs(React.Fragment, {
|
|
128
130
|
children: [/*#__PURE__*/_jsx(Body, {}), /*#__PURE__*/_jsx(ModalContext.Provider, {
|
package/lib/Switch/Switch.js
CHANGED
|
@@ -28,7 +28,8 @@ var Switch = function Switch(_ref) {
|
|
|
28
28
|
var onClick = _ref.onClick,
|
|
29
29
|
_ref$loading = _ref.loading,
|
|
30
30
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
31
|
-
checked = _ref.checked,
|
|
31
|
+
_ref$checked = _ref.checked,
|
|
32
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
32
33
|
_ref$disabled = _ref.disabled,
|
|
33
34
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
34
35
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -287,7 +287,8 @@ var colors = _objectSpread(_objectSpread({
|
|
|
287
287
|
trustpilot_2_star: NETWORKCOLORS.NETWORK_COLOR_TRUSTPILOT_2_STAR,
|
|
288
288
|
trustpilot_3_star: NETWORKCOLORS.NETWORK_COLOR_TRUSTPILOT_3_STAR,
|
|
289
289
|
trustpilot_4_star: NETWORKCOLORS.NETWORK_COLOR_TRUSTPILOT_4_STAR,
|
|
290
|
-
trustpilot_5_star: NETWORKCOLORS.NETWORK_COLOR_TRUSTPILOT_5_STAR
|
|
290
|
+
trustpilot_5_star: NETWORKCOLORS.NETWORK_COLOR_TRUSTPILOT_5_STAR,
|
|
291
|
+
bluesky: NETWORKCOLORS.NETWORK_COLOR_BLUESKY
|
|
291
292
|
},
|
|
292
293
|
dataviz: {
|
|
293
294
|
map: datavizPalette.DATAVIZ_COLORS_MAP,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/racine",
|
|
3
|
-
"version": "25.0
|
|
3
|
+
"version": "25.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
@@ -110,6 +110,7 @@
|
|
|
110
110
|
"@sproutsocial/seeds-networkcolor": "*",
|
|
111
111
|
"@sproutsocial/seeds-partner-logos": "*",
|
|
112
112
|
"@sproutsocial/seeds-react-checkbox": "*",
|
|
113
|
+
"@sproutsocial/seeds-react-menu": "*",
|
|
113
114
|
"@sproutsocial/seeds-react-testing-library": "*",
|
|
114
115
|
"@sproutsocial/seeds-react-theme": "*",
|
|
115
116
|
"@sproutsocial/seeds-space": "*",
|
|
@@ -128,7 +129,7 @@
|
|
|
128
129
|
"@storybook/theming": "^7.6.20",
|
|
129
130
|
"@testing-library/jest-dom": "^5.16.4",
|
|
130
131
|
"@testing-library/react": "^14.0.0",
|
|
131
|
-
"@testing-library/user-event": "^
|
|
132
|
+
"@testing-library/user-event": "^14.0.0",
|
|
132
133
|
"@types/jest": "^29.0.0",
|
|
133
134
|
"@types/jest-axe": "^3.5.5",
|
|
134
135
|
"@types/node": "^20.0.0",
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "act", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _react.act;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "cleanup", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _react.cleanup;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "createEvent", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _react.createEvent;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "fireEvent", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _react.fireEvent;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
exports.screen = exports.render = void 0;
|
|
31
|
-
Object.defineProperty(exports, "userEvent", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _userEvent.default;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "waitFor", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function get() {
|
|
40
|
-
return _react.waitFor;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "waitForElementToBeRemoved", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function get() {
|
|
46
|
-
return _react.waitForElementToBeRemoved;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
exports.within = void 0;
|
|
50
|
-
var _react = require("@testing-library/react");
|
|
51
|
-
var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
|
|
52
|
-
var _ThemeProvider = _interopRequireDefault(require("../ThemeProvider"));
|
|
53
|
-
var _seedsReactTestingLibrary = require("@sproutsocial/seeds-react-testing-library");
|
|
54
|
-
var _dataQaLabelQueries = require("./dataQaLabelQueries");
|
|
55
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
56
|
-
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); }
|
|
57
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
58
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
59
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
60
|
-
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; }
|
|
61
|
-
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; }
|
|
62
|
-
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; }
|
|
63
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
64
|
-
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); }
|
|
65
|
-
var sproutQueries = _objectSpread(_objectSpread({}, _react.queries), _dataQaLabelQueries.dataQaLabelQueries);
|
|
66
|
-
var customRender = exports.render = function customRender(node, options) {
|
|
67
|
-
var utils = (0, _react.render)(node, _objectSpread(_objectSpread({}, options), {}, {
|
|
68
|
-
queries: sproutQueries,
|
|
69
|
-
wrapper: _ThemeProvider.default
|
|
70
|
-
}));
|
|
71
|
-
var runA11yCheck = /*#__PURE__*/function () {
|
|
72
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
73
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
74
|
-
while (1) switch (_context.prev = _context.next) {
|
|
75
|
-
case 0:
|
|
76
|
-
_context.next = 2;
|
|
77
|
-
return (0, _seedsReactTestingLibrary.a11yCheck)(utils.container);
|
|
78
|
-
case 2:
|
|
79
|
-
case "end":
|
|
80
|
-
return _context.stop();
|
|
81
|
-
}
|
|
82
|
-
}, _callee);
|
|
83
|
-
}));
|
|
84
|
-
return function runA11yCheck() {
|
|
85
|
-
return _ref.apply(this, arguments);
|
|
86
|
-
};
|
|
87
|
-
}();
|
|
88
|
-
return _objectSpread(_objectSpread({}, utils), {}, {
|
|
89
|
-
runA11yCheck: runA11yCheck
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
var customWithin = exports.within = function customWithin(element) {
|
|
93
|
-
return (0, _react.within)(element, sproutQueries);
|
|
94
|
-
};
|
|
95
|
-
var boundQueries = (0, _react.within)(document.body, sproutQueries);
|
|
96
|
-
var customScreen = exports.screen = _objectSpread(_objectSpread({}, _react.screen), boundQueries);
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { act, cleanup, createEvent, fireEvent, queries, waitFor, waitForElementToBeRemoved, RenderOptions, RenderResult, Screen } from "@testing-library/react";
|
|
3
|
-
import userEvent from "@testing-library/user-event";
|
|
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;
|
|
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;
|
|
64
|
-
declare const customWithin: (element: HTMLElement) => {
|
|
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>>;
|
|
113
|
-
} & {
|
|
114
|
-
readonly queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
|
|
115
|
-
readonly queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
116
|
-
readonly getAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement[];
|
|
117
|
-
readonly getByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement;
|
|
118
|
-
readonly findAllByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
119
|
-
readonly findByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
120
|
-
readonly getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
|
|
121
|
-
readonly getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
122
|
-
readonly queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
123
|
-
readonly queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
124
|
-
readonly findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
125
|
-
readonly findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
126
|
-
readonly getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
127
|
-
readonly getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
128
|
-
readonly queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
129
|
-
readonly queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
130
|
-
readonly findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
131
|
-
readonly findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
132
|
-
readonly getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
|
|
133
|
-
readonly getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
134
|
-
readonly queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
135
|
-
readonly queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
136
|
-
readonly findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
137
|
-
readonly findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
138
|
-
readonly getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
139
|
-
readonly getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
140
|
-
readonly queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
141
|
-
readonly queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
142
|
-
readonly findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
143
|
-
readonly findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
144
|
-
readonly getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
145
|
-
readonly getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
146
|
-
readonly queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
147
|
-
readonly queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
148
|
-
readonly findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
149
|
-
readonly findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
150
|
-
readonly getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
151
|
-
readonly getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
152
|
-
readonly queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
153
|
-
readonly queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
154
|
-
readonly findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
155
|
-
readonly findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
156
|
-
readonly getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement;
|
|
157
|
-
readonly getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
|
|
158
|
-
readonly queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null;
|
|
159
|
-
readonly queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
|
|
160
|
-
readonly findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
161
|
-
readonly findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
162
|
-
readonly getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
163
|
-
readonly getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
164
|
-
readonly queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
165
|
-
readonly queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
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>;
|
|
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[]>;
|
|
168
|
-
};
|
|
169
|
-
declare const customScreen: Screen<typeof sproutQueries>;
|
|
170
|
-
export { act, cleanup, createEvent, customRender as render, customWithin as within, fireEvent, customScreen as screen, userEvent, waitFor, waitForElementToBeRemoved, };
|
|
171
|
-
//# sourceMappingURL=react-testing-library.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,OAA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AAQ,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,47 +0,0 @@
|
|
|
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); }
|
|
2
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
-
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; }
|
|
6
|
-
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; }
|
|
7
|
-
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; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
-
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
|
-
import { act, cleanup, createEvent, fireEvent, queries, render, screen as defaultScreen, waitFor, waitForElementToBeRemoved, within } from "@testing-library/react";
|
|
11
|
-
import userEvent from "@testing-library/user-event";
|
|
12
|
-
import ThemeProvider from "../ThemeProvider";
|
|
13
|
-
import { a11yCheck } from "@sproutsocial/seeds-react-testing-library";
|
|
14
|
-
import { dataQaLabelQueries } from "./dataQaLabelQueries";
|
|
15
|
-
var sproutQueries = _objectSpread(_objectSpread({}, queries), dataQaLabelQueries);
|
|
16
|
-
var customRender = function customRender(node, options) {
|
|
17
|
-
var utils = render(node, _objectSpread(_objectSpread({}, options), {}, {
|
|
18
|
-
queries: sproutQueries,
|
|
19
|
-
wrapper: ThemeProvider
|
|
20
|
-
}));
|
|
21
|
-
var runA11yCheck = /*#__PURE__*/function () {
|
|
22
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
23
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24
|
-
while (1) switch (_context.prev = _context.next) {
|
|
25
|
-
case 0:
|
|
26
|
-
_context.next = 2;
|
|
27
|
-
return a11yCheck(utils.container);
|
|
28
|
-
case 2:
|
|
29
|
-
case "end":
|
|
30
|
-
return _context.stop();
|
|
31
|
-
}
|
|
32
|
-
}, _callee);
|
|
33
|
-
}));
|
|
34
|
-
return function runA11yCheck() {
|
|
35
|
-
return _ref.apply(this, arguments);
|
|
36
|
-
};
|
|
37
|
-
}();
|
|
38
|
-
return _objectSpread(_objectSpread({}, utils), {}, {
|
|
39
|
-
runA11yCheck: runA11yCheck
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
var customWithin = function customWithin(element) {
|
|
43
|
-
return within(element, sproutQueries);
|
|
44
|
-
};
|
|
45
|
-
var boundQueries = within(document.body, sproutQueries);
|
|
46
|
-
var customScreen = _objectSpread(_objectSpread({}, defaultScreen), boundQueries);
|
|
47
|
-
export { act, cleanup, createEvent, customRender as render, customWithin as within, fireEvent, customScreen as screen, userEvent, waitFor, waitForElementToBeRemoved };
|