@pingux/astro 2.32.0-alpha.7 → 2.32.0-alpha.9
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/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +1 -1
- package/lib/cjs/components/Badge/Badge.stories.js +1 -1
- package/lib/cjs/components/Badge/Convenience/ConvenienceBadges.stories.js +1 -1
- package/lib/cjs/components/Bracket/Bracket.stories.js +1 -1
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +1 -1
- package/lib/cjs/components/Button/Button.stories.d.ts +1 -1
- package/lib/cjs/components/Button/Button.stories.js +1 -1
- package/lib/cjs/components/Calendar/Calendar.stories.js +1 -1
- package/lib/cjs/components/Callout/Callout.stories.js +1 -1
- package/lib/cjs/components/Card/Card.stories.js +1 -1
- package/lib/cjs/components/CodeView/CodeView.stories.js +1 -1
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +1 -1
- package/lib/cjs/components/CopyText/CopyText.stories.js +1 -1
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +1 -1
- package/lib/cjs/components/Icon/Icon.stories.js +1 -1
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +1 -1
- package/lib/cjs/components/IconButton/IconButton.stories.js +1 -1
- package/lib/cjs/components/ImageUploadField/ImageUploadField.test.js +47 -14
- package/lib/cjs/components/Link/Link.stories.js +1 -1
- package/lib/cjs/components/Loader/Loader.stories.js +1 -1
- package/lib/cjs/components/Menu/Menu.stories.js +1 -1
- package/lib/cjs/components/Messages/Messages.stories.js +1 -1
- package/lib/cjs/components/Modal/Modal.stories.js +1 -1
- package/lib/cjs/components/NavBar/NavBar.stories.js +1 -1
- package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +1 -1
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +1 -1
- package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +1 -1
- package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +1 -1
- package/lib/cjs/components/Separator/Separator.stories.js +1 -1
- package/lib/cjs/components/Stepper/Stepper.stories.js +1 -1
- package/lib/cjs/hooks/useImageUploadState/index.d.ts +1 -0
- package/lib/cjs/hooks/useImageUploadState/useImageUploadState.d.ts +28 -0
- package/lib/cjs/hooks/useImageUploadState/useImageUploadState.js +9 -6
- package/lib/cjs/hooks/useModalState/index.d.ts +1 -0
- package/lib/cjs/hooks/useModalState/useModalState.d.ts +21 -0
- package/lib/cjs/hooks/useModalState/useModalState.js +0 -9
- package/lib/cjs/hooks/useModalState/useModalState.test.d.ts +1 -0
- package/lib/cjs/recipes/AttributeMapping.stories.js +1 -1
- package/lib/cjs/recipes/ConditionFilter.stories.js +1 -1
- package/lib/cjs/recipes/MaskedValue.stories.js +1 -1
- package/lib/cjs/recipes/MultipagePopup.stories.js +1 -1
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +1 -1
- package/lib/cjs/recipes/PanelContent.stories.js +1 -1
- package/lib/cjs/recipes/Slider.stories.js +1 -1
- package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +1 -1
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +1 -1
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +7 -0
- package/lib/cjs/utils/testUtils/setupTests.d.ts +4 -0
- package/lib/cjs/utils/testUtils/testAxe.d.ts +2 -0
- package/lib/cjs/utils/testUtils/testTheme.d.ts +21 -0
- package/lib/cjs/utils/testUtils/testWrapper.d.ts +5 -0
- package/lib/cjs/utils/testUtils/testWrapper.js +3 -2
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +1 -1
- package/lib/components/Badge/Badge.stories.js +1 -1
- package/lib/components/Badge/Convenience/ConvenienceBadges.stories.js +1 -1
- package/lib/components/Bracket/Bracket.stories.js +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +1 -1
- package/lib/components/Button/Button.stories.js +1 -1
- package/lib/components/Calendar/Calendar.stories.js +1 -1
- package/lib/components/Callout/Callout.stories.js +1 -1
- package/lib/components/Card/Card.stories.js +1 -1
- package/lib/components/CodeView/CodeView.stories.js +1 -1
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +1 -1
- package/lib/components/CopyText/CopyText.stories.js +1 -1
- package/lib/components/HelpHint/HelpHint.stories.js +1 -1
- package/lib/components/Icon/Icon.stories.js +1 -1
- package/lib/components/IconBadge/IconBadge.stories.js +1 -1
- package/lib/components/IconButton/IconButton.stories.js +1 -1
- package/lib/components/ImageUploadField/ImageUploadField.test.js +47 -14
- package/lib/components/Link/Link.stories.js +1 -1
- package/lib/components/Loader/Loader.stories.js +1 -1
- package/lib/components/Menu/Menu.stories.js +1 -1
- package/lib/components/Messages/Messages.stories.js +1 -1
- package/lib/components/Modal/Modal.stories.js +1 -1
- package/lib/components/NavBar/NavBar.stories.js +1 -1
- package/lib/components/PanelHeader/PanelHeader.stories.js +1 -1
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +1 -1
- package/lib/components/RequirementsList/RequirementsList.stories.js +1 -1
- package/lib/components/ScrollBox/ScrollBox.stories.js +1 -1
- package/lib/components/Separator/Separator.stories.js +1 -1
- package/lib/components/Stepper/Stepper.stories.js +1 -1
- package/lib/hooks/useImageUploadState/useImageUploadState.js +9 -6
- package/lib/hooks/useModalState/useModalState.js +0 -10
- package/lib/recipes/AttributeMapping.stories.js +1 -1
- package/lib/recipes/ConditionFilter.stories.js +1 -1
- package/lib/recipes/MaskedValue.stories.js +1 -1
- package/lib/recipes/MultipagePopup.stories.js +1 -1
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +1 -1
- package/lib/recipes/PanelContent.stories.js +1 -1
- package/lib/recipes/Slider.stories.js +1 -1
- package/lib/recipes/TrialExperienceIndustryButtons.stories.js +1 -1
- package/lib/recipes/TrialExperienceStatusBar.stories.js +1 -1
- package/lib/utils/testUtils/testWrapper.js +3 -2
- package/package.json +4 -1
@@ -4,7 +4,7 @@ import { action } from '@storybook/addon-actions';
|
|
4
4
|
import { withDesign } from 'storybook-addon-designs';
|
5
5
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
6
6
|
import { Button, Item, Menu, OverlayProvider, PopoverMenu, Text } from '../../index';
|
7
|
-
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.
|
7
|
+
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
|
8
8
|
import PopoverMenuReadme from './PopoverMenu.mdx';
|
9
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
10
10
|
export default {
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
2
2
|
import { withDesign } from 'storybook-addon-designs';
|
3
3
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
4
4
|
import { RequirementsList } from '../../index';
|
5
|
-
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.
|
5
|
+
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
|
6
6
|
import RequirementsListReadme from './RequirementsList.mdx';
|
7
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
8
|
export default {
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
3
3
|
import { withDesign } from 'storybook-addon-designs';
|
4
4
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
5
5
|
import { Box, ScrollBox } from '../../index';
|
6
|
-
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.
|
6
|
+
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
|
7
7
|
import ScrollBoxReadme from './ScrollBox.mdx';
|
8
8
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
9
9
|
export default {
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
4
4
|
import { withDesign } from 'storybook-addon-designs';
|
5
5
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
6
6
|
import { Box, Separator } from '../../index';
|
7
|
-
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.
|
7
|
+
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
|
8
8
|
import SeparatorReadme from './Separator.mdx';
|
9
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
10
10
|
export default {
|
@@ -4,7 +4,7 @@ import { Item } from 'react-stately';
|
|
4
4
|
import { withDesign } from 'storybook-addon-designs';
|
5
5
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
6
6
|
import { Stepper, Text } from '../../index';
|
7
|
-
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.
|
7
|
+
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
|
8
8
|
import StepperReadme from './Stepper.mdx';
|
9
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
10
10
|
export default {
|
@@ -35,11 +35,15 @@ var useImageUploadState = function useImageUploadState(inputRef) {
|
|
35
35
|
if (previewImage && previewImage !== defaultPreviewImage) {
|
36
36
|
setIsMenuOpen(true);
|
37
37
|
} else {
|
38
|
-
|
38
|
+
var _inputRef$current;
|
39
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
39
40
|
}
|
40
41
|
}, [defaultPreviewImage, previewImage, inputRef]);
|
41
42
|
var handleInputChange = useCallback(function (event) {
|
42
43
|
var _event$target;
|
44
|
+
if (!event.target.files) {
|
45
|
+
return;
|
46
|
+
}
|
43
47
|
var eventFileType = (_event$target = event.target) === null || _event$target === void 0 || (_event$target = _event$target.files[0]) === null || _event$target === void 0 || (_event$target = _event$target.type) === null || _event$target === void 0 ? void 0 : _event$target.split('/')[0];
|
44
48
|
if (fileTypes !== null && fileTypes !== void 0 && _includesInstanceProperty(fileTypes).call(fileTypes, eventFileType)) {
|
45
49
|
if (onChange && typeof onChange === 'function') {
|
@@ -52,9 +56,8 @@ var useImageUploadState = function useImageUploadState(inputRef) {
|
|
52
56
|
var _event$target2;
|
53
57
|
setIsImageType(true);
|
54
58
|
var reader = new FileReader();
|
55
|
-
reader.onload = function (
|
56
|
-
|
57
|
-
setPreviewImage(result);
|
59
|
+
reader.onload = function () {
|
60
|
+
setPreviewImage(reader.result);
|
58
61
|
};
|
59
62
|
reader.readAsDataURL((_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.files[0]);
|
60
63
|
} else {
|
@@ -76,8 +79,8 @@ var useImageUploadState = function useImageUploadState(inputRef) {
|
|
76
79
|
return setPreviewImage(defaultPreviewImage);
|
77
80
|
}, [defaultPreviewImage]);
|
78
81
|
var showFileDialog = useCallback(function () {
|
79
|
-
var _inputRef$
|
80
|
-
return inputRef === null || inputRef === void 0 || (_inputRef$
|
82
|
+
var _inputRef$current2;
|
83
|
+
return inputRef === null || inputRef === void 0 || (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.click();
|
81
84
|
}, [inputRef]);
|
82
85
|
var handleLabelClick = useCallback(function (e) {
|
83
86
|
e.preventDefault();
|
@@ -1,14 +1,4 @@
|
|
1
1
|
import { useOverlayTriggerState } from 'react-stately';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Returns state-related data and functions for use with a Modal component.
|
5
|
-
* @param {Object} [props] Properties provided to the state
|
6
|
-
* @param {Boolean} [props.isDefaultOpen] Whether the modal is open by default (uncontrolled).
|
7
|
-
* @param {Boolean} [props.isOpen] Whether the modal is currently open (controlled).
|
8
|
-
* @param {Function} [props.onOpenChange] Handler that is called when the open state changes.
|
9
|
-
* `(isOpen: boolean) => void`
|
10
|
-
* @returns {Object} `{ isOpen: Boolean, open: Function, close: Function, toggle: Function }`
|
11
|
-
*/
|
12
2
|
var useModalState = function useModalState() {
|
13
3
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
14
4
|
var isDefaultOpen = props.isDefaultOpen,
|
@@ -9,7 +9,7 @@ import CogsIcon from '@pingux/mdi-react/CogsIcon';
|
|
9
9
|
import DeleteIcon from '@pingux/mdi-react/DeleteIcon';
|
10
10
|
import { v4 as uuid } from 'uuid';
|
11
11
|
import { Badge, Box, Callout, CheckboxField, ComboBoxField, Icon, IconButton, Item, Link, ScrollBox, Separator, Text, TextField } from '../index';
|
12
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
12
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
13
13
|
import statuses from '../utils/devUtils/constants/statuses';
|
14
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
15
15
|
export default {
|
@@ -14,7 +14,7 @@ import React from 'react';
|
|
14
14
|
import PlusIcon from '@pingux/mdi-react/PlusIcon';
|
15
15
|
import TrashIcon from '@pingux/mdi-react/TrashIcon';
|
16
16
|
import { Badge, Box, Bracket, Button, Icon, IconButton, Item, RockerButton, RockerButtonGroup, SelectField, Text, TextField } from '../index';
|
17
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
17
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
19
19
|
export default {
|
20
20
|
title: 'Recipes/Condition Filter',
|
@@ -5,7 +5,7 @@ import EyeOffIcon from '@pingux/mdi-react/EyeOffOutlineIcon';
|
|
5
5
|
import EyeIcon from '@pingux/mdi-react/EyeOutlineIcon';
|
6
6
|
import { useStatusClasses } from '../hooks';
|
7
7
|
import { Box, Icon, IconButton, Text } from '../index';
|
8
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
8
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
9
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
10
10
|
export default {
|
11
11
|
title: 'Recipes/Masked Values',
|
@@ -22,7 +22,7 @@ import MenuUpIcon from '@pingux/mdi-react/MenuUpIcon';
|
|
22
22
|
import { useLayoutEffect } from '@react-aria/utils';
|
23
23
|
import { Box, Button, EnvironmentBreadcrumb, Icon, IconButton, Item, Link, Menu, NavBar, NavBarItem, NavBarItemButton, NavBarSection, OverlayProvider, PopoverContainer, PopoverMenu, Separator, Text } from '../index';
|
24
24
|
import { data, logo, PersonIcon, secondData, thirdData } from '../styles/templates/Nav/NavData';
|
25
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
25
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
26
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
27
27
|
export default {
|
28
28
|
title: 'Recipes/Multipage Popup',
|
@@ -4,7 +4,7 @@ import CogsIcon from '@pingux/mdi-react/CogsIcon';
|
|
4
4
|
import DeleteIcon from '@pingux/mdi-react/DeleteIcon';
|
5
5
|
import DragVerticalIcon from '@pingux/mdi-react/DragVerticalIcon';
|
6
6
|
import { Box, ComboBoxField, Icon, IconButton, IconButtonToggle, Item } from '../index';
|
7
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
7
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
8
8
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
9
9
|
export default {
|
10
10
|
title: 'Recipes/One Way to Bidirectional Arrow'
|
@@ -8,7 +8,7 @@ import PencilIcon from '@pingux/mdi-react/PencilIcon';
|
|
8
8
|
import PlusIcon from '@pingux/mdi-react/PlusIcon';
|
9
9
|
import { useOverlayPanelState } from '../hooks';
|
10
10
|
import { AccordionGroup, Badge, Box, Button, ButtonBar, CheckboxField, EditButton, Icon, Image, ImageUploadField, NoticeIcon, OverlayPanel, OverlayProvider, PanelHeader, PanelHeaderCloseButton, PanelHeaderMenu, PanelHeaderSwitchField, SelectField, Tab, Tabs, Text, TextField } from '../index';
|
11
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
11
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
12
12
|
import UserImage from '../utils/devUtils/assets/UserImage.png';
|
13
13
|
import statuses from '../utils/devUtils/constants/statuses';
|
14
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -18,7 +18,7 @@ import { useSliderState } from 'react-stately';
|
|
18
18
|
import { useNumberFormatter } from '@react-aria/i18n';
|
19
19
|
import { defaultFocus } from '../components/Button/Buttons.styles';
|
20
20
|
import { Box } from '../index';
|
21
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
21
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
23
23
|
export default {
|
24
24
|
title: 'Recipes/Slider'
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
4
4
|
import CloseIcon from '@pingux/mdi-react/CloseIcon';
|
5
5
|
import { useModalState } from '../hooks';
|
6
6
|
import { Box, Button, Icon, IconButton, Modal, OverlayProvider, Text } from '../index';
|
7
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
7
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
8
8
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
9
9
|
export default {
|
10
10
|
title: 'Recipes/Trial Experience Buttons'
|
@@ -5,7 +5,7 @@ import React, { useState } from 'react';
|
|
5
5
|
import CheckCircleIcon from '@pingux/mdi-react/CheckCircleIcon';
|
6
6
|
import { v4 as uuid } from 'uuid';
|
7
7
|
import { Box, Icon, IconButton, Link, Separator, Text } from '../index';
|
8
|
-
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.
|
8
|
+
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
9
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
10
10
|
export default {
|
11
11
|
title: 'Recipes/Trial Experience Nav'
|
@@ -22,7 +22,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
22
22
|
} : {
|
23
23
|
name: "zxbwtf-GlobalTestStyles",
|
24
24
|
styles: ".is-disabled{opacity:0.5;pointer-events:none;};label:GlobalTestStyles;",
|
25
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
25
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy90ZXN0VXRpbHMvdGVzdFdyYXBwZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVVTIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy91dGlscy90ZXN0VXRpbHMvdGVzdFdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGNzcywgR2xvYmFsIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVuZGVyLCBSZW5kZXJPcHRpb25zIH0gZnJvbSAnQHRlc3RpbmctbGlicmFyeS9yZWFjdCc7XG5pbXBvcnQgeyBUaGVtZVByb3ZpZGVyIH0gZnJvbSAndGhlbWUtdWknO1xuXG5pbXBvcnQgdGhlbWUgZnJvbSAnLi4vLi4vc3R5bGVzL3RoZW1lJztcblxuY29uc3QgR2xvYmFsVGVzdFN0eWxlczogUmVhY3QuRkMgPSAoKSA9PiAoXG4gIDxHbG9iYWxcbiAgICBzdHlsZXM9e1xuICAgICAgY3NzYFxuICAgICAgICAuaXMtZGlzYWJsZWQge1xuICAgICAgICAgIG9wYWNpdHk6IDAuNTtcbiAgICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgICAgICAgfVxuICAgICAgYFxuICAgIH1cbiAgLz5cbik7XG5cbi8qKlxuICogVE9ETzogQ2hhbmdlIEplc3QgY29uZmlnIHNvIHRoaXMgZG9lc24ndCBoYXZlIHRvIGJlIGltcG9ydGVkIHJlbGF0aXZlbHkuLi5cbiAqIGh0dHBzOi8vdGVzdGluZy1saWJyYXJ5LmNvbS9kb2NzL3JlYWN0LXRlc3RpbmctbGlicmFyeS9zZXR1cC8jY29uZmlndXJpbmctamVzdC13aXRoLXRlc3QtdXRpbHNcbiAqXG4gKiBVc2UgdGhpcyB3cmFwcGVyIHdoZW4gdGVzdGluZyB0aGUgdGhlbWUgb3V0cHV0IGZvclxuICogYSBjb21wb25lbnQgdXNpbmcgLnRvSGF2ZVN0eWxlIG9yIC50b0hhdmVTdHlsZVJ1bGVcbiAqXG4gKiBTZWUgQnV0dG9uLnRlc3QuanMgYXMgYW4gZXhhbXBsZSBmb3IgaG93IHRvIGFwcGx5IGNvbmRpdGlvbmFsIGNsYXNzZXMgYW5kIHRoZW4gdGVzdGluZyB0aGF0XG4gKiB0aG9zZSBjbGFzc2VzIGhhdmUgdGhlIGFwcHJvcHJpYXRlIHN0eWxlcyB0aWVkIHRvIHRoZW0gaW4gdGhlIHRoZW1lLlxuICovXG5cbmludGVyZmFjZSBXcmFwcGVyUHJvcHMge1xuICBjaGlsZHJlbjogUmVhY3ROb2RlO1xufVxuXG5jb25zdCBXcmFwcGVyOiBSZWFjdC5GQzxXcmFwcGVyUHJvcHM+ID0gKHsgY2hpbGRyZW4gfSkgPT4gKFxuICA8VGhlbWVQcm92aWRlciB0aGVtZT17dGhlbWV9PlxuICAgIDxHbG9iYWxUZXN0U3R5bGVzIC8+XG4gICAge2NoaWxkcmVufVxuICA8L1RoZW1lUHJvdmlkZXI+XG4pO1xuXG5jb25zdCBjdXN0b21SZW5kZXIgPSAodWk6IFJlYWN0LlJlYWN0RWxlbWVudCwgb3B0aW9ucz86IFJlbmRlck9wdGlvbnMpID0+IHJlbmRlcih1aSxcbiAgeyB3cmFwcGVyOiBXcmFwcGVyIGFzIFJlYWN0LkZDLCAuLi5vcHRpb25zIH0sXG4pO1xuXG4vLyByZS1leHBvcnQgZXZlcnl0aGluZyAtXG5leHBvcnQgKiBmcm9tICdAdGVzdGluZy1saWJyYXJ5L3JlYWN0JztcblxuLy8gb3ZlcnJpZGUgcmVuZGVyIG1ldGhvZFxuZXhwb3J0IHsgY3VzdG9tUmVuZGVyIGFzIHJlbmRlciB9O1xuIl19 */",
|
26
26
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
27
27
|
};
|
28
28
|
var GlobalTestStyles = function GlobalTestStyles() {
|
@@ -41,6 +41,7 @@ var GlobalTestStyles = function GlobalTestStyles() {
|
|
41
41
|
* See Button.test.js as an example for how to apply conditional classes and then testing that
|
42
42
|
* those classes have the appropriate styles tied to them in the theme.
|
43
43
|
*/
|
44
|
+
|
44
45
|
var Wrapper = function Wrapper(_ref2) {
|
45
46
|
var children = _ref2.children;
|
46
47
|
return ___EmotionJSX(ThemeProvider, {
|
@@ -53,7 +54,7 @@ var customRender = function customRender(ui, options) {
|
|
53
54
|
}, options));
|
54
55
|
};
|
55
56
|
|
56
|
-
// re-export everything
|
57
|
+
// re-export everything -
|
57
58
|
export * from '@testing-library/react';
|
58
59
|
|
59
60
|
// override render method
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pingux/astro",
|
3
|
-
"version": "2.32.0-alpha.
|
3
|
+
"version": "2.32.0-alpha.9",
|
4
4
|
"description": "React component library for Ping Identity's design system",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -140,9 +140,12 @@
|
|
140
140
|
"@testing-library/react-hooks": "^8.0.1",
|
141
141
|
"@testing-library/user-event": "^12.8.3",
|
142
142
|
"@types/jest": "^29.5.3",
|
143
|
+
"@types/jest-axe": "^3.5.8",
|
143
144
|
"@types/mdx": "^2.0.5",
|
145
|
+
"@types/regenerator-runtime": "^0.13.5",
|
144
146
|
"@types/testing-library__jest-dom": "^5.14.9",
|
145
147
|
"@types/uuid": "^8.3.2",
|
148
|
+
"@types/whatwg-fetch": "^0.0.33",
|
146
149
|
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
147
150
|
"@typescript-eslint/parser": "^5.61.0",
|
148
151
|
"babel-loader": "^8.1.0",
|