@pingux/astro 1.40.1-alpha.3 → 1.41.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +0 -11
  2. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +14 -1
  3. package/lib/cjs/components/AccordionGroup/AccordionGroup.js +33 -13
  4. package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +11 -2
  5. package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +123 -0
  6. package/lib/cjs/components/AstroWrapper/AstroWrapper.js +3 -7
  7. package/lib/cjs/components/AstroWrapper/AstroWrapper.stories.js +11 -0
  8. package/lib/cjs/components/Avatar/Avatar.js +0 -4
  9. package/lib/cjs/components/Avatar/Avatar.stories.js +14 -0
  10. package/lib/cjs/components/Box/Box.js +1 -8
  11. package/lib/cjs/components/Box/Box.stories.js +14 -0
  12. package/lib/cjs/components/Bracket/Bracket.stories.js +15 -1
  13. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +0 -6
  14. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +7 -0
  15. package/lib/cjs/components/Button/Button.js +0 -5
  16. package/lib/cjs/components/Button/Button.stories.js +7 -0
  17. package/lib/cjs/components/Callout/Callout.js +1 -6
  18. package/lib/cjs/components/Callout/Callout.stories.js +18 -4
  19. package/lib/components/AccordionGridGroup/AccordionGridGroup.js +0 -11
  20. package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +12 -1
  21. package/lib/components/AccordionGroup/AccordionGroup.js +28 -12
  22. package/lib/components/AccordionGroup/AccordionGroup.stories.js +8 -2
  23. package/lib/components/AccordionGroup/AccordionGroup.test.js +106 -1
  24. package/lib/components/AstroWrapper/AstroWrapper.js +3 -7
  25. package/lib/components/AstroWrapper/AstroWrapper.stories.js +9 -0
  26. package/lib/components/Avatar/Avatar.js +0 -5
  27. package/lib/components/Avatar/Avatar.stories.js +12 -0
  28. package/lib/components/Box/Box.js +1 -8
  29. package/lib/components/Box/Box.stories.js +12 -0
  30. package/lib/components/Bracket/Bracket.stories.js +13 -1
  31. package/lib/components/Breadcrumbs/Breadcrumbs.js +0 -7
  32. package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +5 -0
  33. package/lib/components/Button/Button.js +0 -6
  34. package/lib/components/Button/Button.stories.js +6 -1
  35. package/lib/components/Callout/Callout.js +1 -6
  36. package/lib/components/Callout/Callout.stories.js +16 -4
  37. package/package.json +1 -1
@@ -4,13 +4,25 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
4
4
  import React from 'react';
5
5
  import Box from '.';
6
6
  import { Image, Text } from '../../index';
7
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
7
8
  import { pingImg } from '../../utils/devUtils/constants/images';
8
9
  import { flatColorList } from '../../styles/colors.js';
9
10
  import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
11
+ import BoxReadme from './Box.mdx';
10
12
  import { jsx as ___EmotionJSX } from "@emotion/react";
11
13
  export default {
12
14
  title: 'Components/Box',
13
15
  component: Box,
16
+ parameters: {
17
+ docs: {
18
+ page: function page() {
19
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BoxReadme, null), ___EmotionJSX(DocsLayout, null));
20
+ },
21
+ source: {
22
+ type: 'code'
23
+ }
24
+ }
25
+ },
14
26
  argTypes: {
15
27
  bg: {
16
28
  control: {
@@ -1,10 +1,22 @@
1
1
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
2
2
  import React from 'react';
3
3
  import { Box, Bracket, Chip, Text } from '../../index';
4
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
5
+ import BracketReadme from './Bracket.mdx';
4
6
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
7
  export default {
6
8
  title: 'Components/Bracket',
7
- component: Bracket
9
+ component: Bracket,
10
+ parameters: {
11
+ docs: {
12
+ source: {
13
+ type: 'code'
14
+ },
15
+ page: function page() {
16
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BracketReadme, null), ___EmotionJSX(DocsLayout, null));
17
+ }
18
+ }
19
+ }
8
20
  };
9
21
  export var Default = function Default() {
10
22
  var anyConditions = [{
@@ -11,13 +11,6 @@ import { mergeProps } from '@react-aria/utils';
11
11
  import { Box, Icon } from '../../index';
12
12
  import { usePropWarning } from '../../hooks/';
13
13
  import BreadcrumbItem from './BreadcrumbItem';
14
- /**
15
- * Breadcrumbs component wrapping an array of `BreadcrumbItem` elements and icon,
16
- * which will be rendered between each node, sans last-child
17
- *
18
- * Utilizes [useBreadcrumbs](https://react-spectrum.adobe.com/react-aria/useBreadcrumbs.html) from React-Aria.
19
- * */
20
-
21
14
  import { jsx as ___EmotionJSX } from "@emotion/react";
22
15
  var Breadcrumbs = /*#__PURE__*/forwardRef(function (props, ref) {
23
16
  var children = props.children,
@@ -4,6 +4,8 @@ import { action } from '@storybook/addon-actions';
4
4
  import { Item } from '@react-stately/collections';
5
5
  import ChevronRightIcon from 'mdi-react/ChevronRightIcon';
6
6
  import Breadcrumbs from './Breadcrumbs';
7
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
8
+ import BreadcrumbsReadme from './Breadcrumbs.mdx';
7
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
10
  export default {
9
11
  title: 'Components/Breadcrumbs',
@@ -12,6 +14,9 @@ export default {
12
14
  docs: {
13
15
  source: {
14
16
  type: 'code'
17
+ },
18
+ page: function page() {
19
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BreadcrumbsReadme, null), ___EmotionJSX(DocsLayout, null));
15
20
  }
16
21
  }
17
22
  },
@@ -24,12 +24,6 @@ import { useFocusRing } from '@react-aria/focus';
24
24
  import { mergeProps } from '@react-aria/utils';
25
25
  import { useStatusClasses, usePropWarning, useAriaLabelWarning, useDeprecationWarning } from '../../hooks';
26
26
  import Loader from '../Loader';
27
- /**
28
- * Buttons are used to trigger actions or events.
29
- * This component is based on the [Button - Theme-UI](https://theme-ui.com/components/button/)
30
- * and includes a variety of styles, such as primary action, secondary action, or warning.
31
- */
32
-
33
27
  import { jsx as ___EmotionJSX } from "@emotion/react";
34
28
  var Button = /*#__PURE__*/forwardRef(function (props, ref) {
35
29
  var className = props.className,
@@ -6,7 +6,9 @@ import AddCircleIcon from 'mdi-react/AddCircleIcon';
6
6
  import CreateIcon from 'mdi-react/CreateIcon';
7
7
  import FilterIcon from 'mdi-react/FilterIcon';
8
8
  import { buttonVariants } from '../../utils/devUtils/constants/variants';
9
- import { Box, Button, Icon, SearchField, Text } from '../../index'; // removing the iconButton variants from this story.
9
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
10
+ import { Box, Button, Icon, SearchField, Text } from '../../index';
11
+ import ButtonReadme from './Button.mdx'; // removing the iconButton variants from this story.
10
12
 
11
13
  import { jsx as ___EmotionJSX } from "@emotion/react";
12
14
  var variants = buttonVariants;
@@ -43,6 +45,9 @@ export default {
43
45
  docs: {
44
46
  source: {
45
47
  type: 'code'
48
+ },
49
+ page: function page() {
50
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ButtonReadme, null), ___EmotionJSX(DocsLayout, null));
46
51
  }
47
52
  }
48
53
  }
@@ -32,12 +32,7 @@ var defaultIconProps = {
32
32
  size: 'md'
33
33
  };
34
34
  /**
35
- *Callout is composed of the Box, Icon, and Text components. It's a persistent component
36
- that should be placed at the top of panels or above related content. If the Callouts
37
- status is error or warning, the text should include a direct link to instructions on resolving the
38
- issue or error.
39
- *
40
- *Please note, Callout is a static component, the [Messages](./?path=/docs/components-messages)
35
+ Please note, Callout is a static component, the [Messages](./?path=/docs/components-messages)
41
36
  component is recommended if you need to interrupt and notify users of successful/failed actions
42
37
  or give warnings of unexpected events.
43
38
  */
@@ -2,6 +2,8 @@ import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values"
2
2
  import React from 'react';
3
3
  import { Link, Text, Callout } from '../..';
4
4
  import statuses from '../../utils/devUtils/constants/statuses';
5
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
6
+ import CalloutReadme from './Callout.mdx';
5
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
6
8
  export default {
7
9
  title: 'Components/Callout',
@@ -13,6 +15,16 @@ export default {
13
15
  options: _Object$values(statuses)
14
16
  }
15
17
  }
18
+ },
19
+ parameters: {
20
+ docs: {
21
+ source: {
22
+ type: 'code'
23
+ },
24
+ page: function page() {
25
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CalloutReadme, null), ___EmotionJSX(DocsLayout, null));
26
+ }
27
+ }
16
28
  }
17
29
  }; // main
18
30
 
@@ -22,7 +34,7 @@ export var Default = function Default(args) {
22
34
  target: "_blank",
23
35
  "aria-label": "".concat(statuses.DEFAULT, "-callout"),
24
36
  variant: "app"
25
- }, " Read More")));
37
+ }, ' ', "Read More")));
26
38
  };
27
39
  export var ErrorStatus = function ErrorStatus() {
28
40
  return ___EmotionJSX(Callout, {
@@ -32,7 +44,7 @@ export var ErrorStatus = function ErrorStatus() {
32
44
  target: "_blank",
33
45
  "aria-label": "".concat(statuses.ERROR, "-callout"),
34
46
  variant: "app"
35
- }, " Read More")));
47
+ }, ' ', "Read More")));
36
48
  }; // Avoiding using Error as the function name due to it being a JS built-in method
37
49
 
38
50
  ErrorStatus.storyName = 'Error';
@@ -44,7 +56,7 @@ export var Success = function Success() {
44
56
  target: "_blank",
45
57
  "aria-label": "".concat(statuses.SUCCESS, "-callout"),
46
58
  variant: "app"
47
- }, " Read More")));
59
+ }, ' ', "Read More")));
48
60
  };
49
61
  export var Warning = function Warning() {
50
62
  return ___EmotionJSX(Callout, {
@@ -54,5 +66,5 @@ export var Warning = function Warning() {
54
66
  target: "_blank",
55
67
  "aria-label": "".concat(statuses.WARNING, "-callout"),
56
68
  variant: "app"
57
- }, " Read More")));
69
+ }, ' ', "Read More")));
58
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.40.1-alpha.3",
3
+ "version": "1.41.0-alpha.0",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",