@pingux/astro 2.5.5-alpha.0 → 2.5.5-alpha.2

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 (61) hide show
  1. package/lib/cjs/components/IconBadge/IconBadge.js +0 -5
  2. package/lib/cjs/components/IconBadge/IconBadge.stories.js +5 -0
  3. package/lib/cjs/components/IconButton/IconButton.js +0 -11
  4. package/lib/cjs/components/IconButton/IconButton.stories.js +5 -0
  5. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +0 -7
  6. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +10 -1
  7. package/lib/cjs/components/Image/Image.js +0 -6
  8. package/lib/cjs/components/Image/Image.stories.js +9 -0
  9. package/lib/cjs/components/Link/Link.js +0 -6
  10. package/lib/cjs/components/Link/Link.stories.js +11 -2
  11. package/lib/cjs/components/ListItem/ListItem.js +0 -4
  12. package/lib/cjs/components/ListItem/ListItem.stories.js +5 -0
  13. package/lib/cjs/components/ListView/ListView.js +0 -9
  14. package/lib/cjs/components/ListView/ListView.stories.js +5 -0
  15. package/lib/cjs/components/Loader/Loader.js +0 -5
  16. package/lib/cjs/components/Loader/Loader.stories.js +9 -0
  17. package/lib/cjs/components/ScrollBox/ScrollBox.js +0 -4
  18. package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +9 -0
  19. package/lib/cjs/components/Separator/Separator.js +0 -4
  20. package/lib/cjs/components/Separator/Separator.stories.js +10 -1
  21. package/lib/cjs/components/Stepper/Stepper.js +0 -7
  22. package/lib/cjs/components/Stepper/Stepper.stories.js +5 -0
  23. package/lib/cjs/components/Table/Table.js +0 -9
  24. package/lib/cjs/components/Table/Table.stories.js +10 -1
  25. package/lib/cjs/components/Tabs/Tabs.js +0 -4
  26. package/lib/cjs/components/Tabs/Tabs.stories.js +5 -0
  27. package/lib/cjs/components/Text/Text.js +1 -7
  28. package/lib/cjs/components/Text/Text.stories.js +9 -0
  29. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +0 -6
  30. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +10 -1
  31. package/lib/components/IconBadge/IconBadge.js +0 -5
  32. package/lib/components/IconBadge/IconBadge.stories.js +5 -0
  33. package/lib/components/IconButton/IconButton.js +0 -12
  34. package/lib/components/IconButton/IconButton.stories.js +5 -0
  35. package/lib/components/IconButtonToggle/IconButtonToggle.js +0 -7
  36. package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +10 -1
  37. package/lib/components/Image/Image.js +0 -6
  38. package/lib/components/Image/Image.stories.js +9 -0
  39. package/lib/components/Link/Link.js +0 -6
  40. package/lib/components/Link/Link.stories.js +9 -0
  41. package/lib/components/ListItem/ListItem.js +0 -5
  42. package/lib/components/ListItem/ListItem.stories.js +5 -0
  43. package/lib/components/ListView/ListView.js +0 -9
  44. package/lib/components/ListView/ListView.stories.js +5 -0
  45. package/lib/components/Loader/Loader.js +0 -5
  46. package/lib/components/Loader/Loader.stories.js +9 -0
  47. package/lib/components/ScrollBox/ScrollBox.js +0 -4
  48. package/lib/components/ScrollBox/ScrollBox.stories.js +9 -0
  49. package/lib/components/Separator/Separator.js +0 -5
  50. package/lib/components/Separator/Separator.stories.js +10 -1
  51. package/lib/components/Stepper/Stepper.js +0 -7
  52. package/lib/components/Stepper/Stepper.stories.js +5 -0
  53. package/lib/components/Table/Table.js +0 -9
  54. package/lib/components/Table/Table.stories.js +10 -1
  55. package/lib/components/Tabs/Tabs.js +0 -5
  56. package/lib/components/Tabs/Tabs.stories.js +5 -0
  57. package/lib/components/Text/Text.js +1 -7
  58. package/lib/components/Text/Text.stories.js +9 -0
  59. package/lib/components/TooltipTrigger/TooltipTrigger.js +0 -7
  60. package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +10 -1
  61. package/package.json +1 -1
@@ -9,11 +9,20 @@ exports.withWidthProp = exports.withDirectionProp = exports.withDelayProp = expo
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _AccountIcon = _interopRequireDefault(require("mdi-react/AccountIcon"));
11
11
  var _EarthIcon = _interopRequireDefault(require("mdi-react/EarthIcon"));
12
+ var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
12
13
  var _index = require("../../index");
14
+ var _TooltipTrigger = _interopRequireDefault(require("./TooltipTrigger.mdx"));
13
15
  var _react2 = require("@emotion/react");
14
16
  var _default = {
15
17
  title: 'Components/TooltipTrigger',
16
- component: _index.TooltipTrigger
18
+ component: _index.TooltipTrigger,
19
+ parameters: {
20
+ docs: {
21
+ page: function page() {
22
+ return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_TooltipTrigger["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
23
+ }
24
+ }
25
+ }
17
26
  };
18
27
  exports["default"] = _default;
19
28
  var Default = function Default(args) {
@@ -16,11 +16,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
16
16
  import React from 'react';
17
17
  import PropTypes from 'prop-types';
18
18
  import { Box } from '../../index';
19
-
20
- /**
21
- * `IconBadge` children should be the `Icon` component. Documentation for
22
- * `Icon` component can be found [here](.?path=/docs/components-icon--default).
23
- */
24
19
  import { jsx as ___EmotionJSX } from "@emotion/react";
25
20
  var IconBadge = function IconBadge(props) {
26
21
  var children = props.children,
@@ -2,13 +2,18 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import React from 'react';
3
3
  import GroupIcon from 'mdi-react/AccountGroupIcon';
4
4
  import ArrowIcon from 'mdi-react/ArrowTopRightThickIcon';
5
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
5
6
  import { Box, Icon, IconBadge } from '../../index';
7
+ import IconBadgeReadme from './IconBadge.mdx';
6
8
  import { jsx as ___EmotionJSX } from "@emotion/react";
7
9
  export default {
8
10
  title: 'Components/IconBadge',
9
11
  component: IconBadge,
10
12
  parameters: {
11
13
  docs: {
14
+ page: function page() {
15
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconBadgeReadme, null), ___EmotionJSX(DocsLayout, null));
16
+ },
12
17
  source: {
13
18
  type: 'code'
14
19
  }
@@ -20,18 +20,6 @@ import { IconButton as ThemeUIIconButton } from 'theme-ui';
20
20
  import { BadgeContext } from '../../context/BadgeContext';
21
21
  import { useAriaLabelWarning, useStatusClasses } from '../../hooks';
22
22
  import TooltipTrigger, { Tooltip } from '../TooltipTrigger';
23
-
24
- /**
25
- * Convenience wrapper for a Button + Icon. This component applies specific styles necessary for
26
- * icons and changes the behavior pattern for Button. This ensures compatibility across browsers
27
- * and devices.
28
- *
29
- * In addition to the props below, `IconButton` accepts the same props available to the normal
30
- * `Button` component.
31
- *
32
- * `IconButton` children should be the `Icon` component. Documentation for `Icon` component can
33
- * be found [here](.?path=/docs/components-icon--default).
34
- */
35
23
  import { jsx as ___EmotionJSX } from "@emotion/react";
36
24
  var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
37
25
  var children = props.children,
@@ -5,13 +5,18 @@ import DeleteIcon from 'mdi-react/DeleteIcon';
5
5
  import DotsVerticalIcon from 'mdi-react/DotsVerticalIcon';
6
6
  import PencilIcon from 'mdi-react/PencilIcon';
7
7
  import PlusIcon from 'mdi-react/PlusIcon';
8
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
8
9
  import { Box, Icon, IconButton, Table, TableBody, TableCell, TableHead, TableRow, Text } from '../../index';
10
+ import IconButtonReadme from './IconButton.mdx';
9
11
  import { jsx as ___EmotionJSX } from "@emotion/react";
10
12
  export default {
11
13
  title: 'Components/IconButton',
12
14
  component: IconButton,
13
15
  parameters: {
14
16
  docs: {
17
+ page: function page() {
18
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconButtonReadme, null), ___EmotionJSX(DocsLayout, null));
19
+ },
15
20
  source: {
16
21
  type: 'code'
17
22
  }
@@ -4,13 +4,6 @@ import PropTypes from 'prop-types';
4
4
  import { useComponentToggle } from '../../hooks';
5
5
  import Icon from '../Icon';
6
6
  import IconButton from '../IconButton';
7
-
8
- /**
9
- * `IconButtonToggle` is using `Icon` component under the hood.
10
- * You can change properties of the icon via `iconProps` prop.
11
- * Documentation for the `Icon` component can be found
12
- * [here](.?path=/docs/components-icon--default).
13
- */
14
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
15
8
  var IconButtonToggle = function IconButtonToggle(props) {
16
9
  var toggledIcon = props.toggledIcon,
@@ -3,11 +3,20 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
3
3
  import React, { useState } from 'react';
4
4
  import EyeOffIcon from 'mdi-react/EyeOffOutlineIcon';
5
5
  import EyeIcon from 'mdi-react/EyeOutlineIcon';
6
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
6
7
  import { IconButtonToggle } from '../../index';
8
+ import IconButtonToggleReadme from './IconButtonToggle.mdx';
7
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
10
  export default {
9
11
  title: 'Components/IconButtonToggle',
10
- component: IconButtonToggle
12
+ component: IconButtonToggle,
13
+ parameters: {
14
+ docs: {
15
+ page: function page() {
16
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconButtonToggleReadme, null), ___EmotionJSX(DocsLayout, null));
17
+ }
18
+ }
19
+ }
11
20
  };
12
21
  export var Default = function Default(args) {
13
22
  return ___EmotionJSX(IconButtonToggle, _extends({}, args, {
@@ -23,12 +23,6 @@ import { Image as ThemeUIImage } from 'theme-ui';
23
23
  import { useAriaLabelWarning, useDevelopmentWarning, useFallbackImage, usePropWarning, useStatusClasses } from '../../hooks';
24
24
  import { Box } from '../../index';
25
25
  import { neutral } from '../../styles/colors';
26
-
27
- /**
28
- * Basic image component.
29
- * Built on top of [Image from Theme-UI](https://theme-ui.com/components/image/).
30
- * If you are looking to add an icon please use [Icon component](/icon--default).
31
- */
32
26
  import { jsx as ___EmotionJSX } from "@emotion/react";
33
27
  var Image = /*#__PURE__*/forwardRef(function (props, ref) {
34
28
  var className = props.className,
@@ -3,13 +3,22 @@ import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/object
3
3
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
4
4
  import React, { useState } from 'react';
5
5
  import isChromatic from 'chromatic/isChromatic';
6
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
6
7
  import { Box, Button, Image } from '../../index';
7
8
  import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
8
9
  import { chiefIdentityChampions, pingImg } from '../../utils/devUtils/constants/images';
10
+ import ImageReadme from './Image.mdx';
9
11
  import { jsx as ___EmotionJSX } from "@emotion/react";
10
12
  export default {
11
13
  title: 'Components/Image',
12
14
  component: Image,
15
+ parameters: {
16
+ docs: {
17
+ page: function page() {
18
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ImageReadme, null), ___EmotionJSX(DocsLayout, null));
19
+ }
20
+ }
21
+ },
13
22
  argTypes: {
14
23
  isDisabled: {},
15
24
  variant: {
@@ -7,12 +7,6 @@ import { useHover, usePress } from '@react-aria/interactions';
7
7
  import PropTypes from 'prop-types';
8
8
  import { Link as ThemeUILink } from 'theme-ui';
9
9
  import { usePropWarning, useStatusClasses } from '../../hooks';
10
-
11
- /**
12
- * Link uses the [Link - Theme-UI](https://theme-ui.com/components/link) component and
13
- * React Aria's [useLink](https://react-spectrum.adobe.com/react-aria/useLink.html) hook.
14
- *
15
- */
16
10
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
11
  var Link = /*#__PURE__*/forwardRef(function (props, ref) {
18
12
  var className = props.className,
@@ -2,13 +2,22 @@ import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/object
2
2
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
3
3
  import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
4
4
  import React from 'react';
5
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
5
6
  import { Link } from '../../index';
6
7
  import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
8
+ import LinkReadme from './Link.mdx';
7
9
  import variants from './Link.styles';
8
10
  import { jsx as ___EmotionJSX } from "@emotion/react";
9
11
  export default {
10
12
  title: 'Components/Link',
11
13
  component: Link,
14
+ parameters: {
15
+ docs: {
16
+ page: function page() {
17
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(LinkReadme, null), ___EmotionJSX(DocsLayout, null));
18
+ }
19
+ }
20
+ },
12
21
  argTypes: {
13
22
  href: {
14
23
  control: {
@@ -18,11 +18,6 @@ import PropTypes from 'prop-types';
18
18
  import { useStatusClasses } from '../../hooks';
19
19
  import { onHoverPropTypes } from '../../utils/docUtils/hoverProps';
20
20
  import Box from '../Box/Box';
21
-
22
- /**
23
- * List Item component.
24
- * Accepts most of the styling props from [styled-system](https://styled-system.com/table).
25
- */
26
21
  import { jsx as ___EmotionJSX } from "@emotion/react";
27
22
  var ListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
28
23
  var children = _ref.children,
@@ -14,14 +14,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
14
14
  import React, { useState } from 'react';
15
15
  import AccountIcon from 'mdi-react/AccountIcon';
16
16
  import MoreVertIcon from 'mdi-react/MoreVertIcon';
17
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
17
18
  import { Box, Icon, IconButton, ListItem, Separator, Text } from '../../index';
18
19
  import { onHoverArgTypes } from '../../utils/docUtils/hoverProps';
20
+ import ListItemReadme from './ListItem.mdx';
19
21
  import { jsx as ___EmotionJSX } from "@emotion/react";
20
22
  export default {
21
23
  title: 'Components/ListItem',
22
24
  component: ListItem,
23
25
  parameters: {
24
26
  docs: {
27
+ page: function page() {
28
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ListItemReadme, null), ___EmotionJSX(DocsLayout, null));
29
+ },
25
30
  source: {
26
31
  type: 'code'
27
32
  }
@@ -55,15 +55,6 @@ export function useListLayout(state) {
55
55
  }
56
56
 
57
57
  /**
58
- * The intention of ListView is that it be used together with ListItem. An update that
59
- * demonstrates this is coming soon.
60
- *
61
- * ListViews are used to display a list of items. Users can select,
62
- * view, or edit items in this list. This virtualized component supports
63
- * asynchronous data in infinitely scrollable lists.
64
- *
65
- * Can be used as in recipe: https://uilibrary.ping-eng.com/astro/?path=/docs/recipes-list-with-panel--default
66
- *
67
58
  * NOTE: be careful with putting focusable elements inside ListView.
68
59
  * It is using a grid (useList hook) with its own event listeners under the hood.
69
60
  * [react-specttrum-github-issue](https://github.com/adobe/react-spectrum/issues/2801)
@@ -23,14 +23,19 @@ import isChromatic from 'chromatic/isChromatic';
23
23
  import CreateIcon from 'mdi-react/CreateIcon';
24
24
  import FormSelectIcon from 'mdi-react/FormSelectIcon';
25
25
  import MoreVertIcon from 'mdi-react/MoreVertIcon';
26
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
26
27
  import { Box, Icon, IconButton, ListView, Text } from '../../index';
27
28
  import loadingStates from '../../utils/devUtils/constants/loadingStates';
29
+ import ListViewReadme from './ListView.mdx';
28
30
  import { jsx as ___EmotionJSX } from "@emotion/react";
29
31
  export default {
30
32
  title: 'Components/ListView',
31
33
  component: ListView,
32
34
  parameters: {
33
35
  docs: {
36
+ page: function page() {
37
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ListViewReadme, null), ___EmotionJSX(DocsLayout, null));
38
+ },
34
39
  source: {
35
40
  type: 'code'
36
41
  }
@@ -4,11 +4,6 @@ var _excluded = ["size"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import Box from '../Box';
7
-
8
- /**
9
- * Indeterminite progress component. Used to show general loading.
10
- * Uses [useProgressBar](https://react-spectrum.adobe.com/react-aria/useProgressBar.html) from React Aria
11
- */
12
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
13
8
  var Loader = /*#__PURE__*/forwardRef(function (props, ref) {
14
9
  var size = props.size,
@@ -1,12 +1,21 @@
1
1
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
2
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
3
3
  import React from 'react';
4
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
4
5
  import { Loader } from '../../index';
5
6
  import { flatColorList } from '../../styles/colors';
7
+ import LoaderReadme from './Loader.mdx';
6
8
  import { jsx as ___EmotionJSX } from "@emotion/react";
7
9
  export default {
8
10
  title: 'Components/Loader',
9
11
  component: Loader,
12
+ parameters: {
13
+ docs: {
14
+ page: function page() {
15
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(LoaderReadme, null), ___EmotionJSX(DocsLayout, null));
16
+ }
17
+ }
18
+ },
10
19
  argTypes: {
11
20
  color: {
12
21
  control: {
@@ -17,10 +17,6 @@ import React, { forwardRef, useImperativeHandle, useLayoutEffect, useRef, useSta
17
17
  import PropTypes from 'prop-types';
18
18
  import useStatusClasses from '../../hooks/useStatusClasses';
19
19
  import Box from '../Box';
20
-
21
- /**
22
- * Scrollbox is a container that allows content to be scrolled
23
- */
24
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
25
21
  var ScrollBox = /*#__PURE__*/forwardRef(function (props, ref) {
26
22
  var maxHeight = props.maxHeight,
@@ -1,10 +1,19 @@
1
1
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import React from 'react';
3
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
3
4
  import { Box, ScrollBox } from '../../index';
5
+ import ScrollBoxReadme from './ScrollBox.mdx';
4
6
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
7
  export default {
6
8
  title: 'Components/ScrollBox',
7
9
  component: ScrollBox,
10
+ parameters: {
11
+ docs: {
12
+ page: function page() {
13
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ScrollBoxReadme, null), ___EmotionJSX(DocsLayout, null));
14
+ }
15
+ }
16
+ },
8
17
  argTypes: {
9
18
  maxHeight: {
10
19
  control: {
@@ -7,11 +7,6 @@ import PropTypes from 'prop-types';
7
7
  import { useStatusClasses } from '../../hooks';
8
8
  import ORIENTATION from '../../utils/devUtils/constants/orientation';
9
9
  import Box from '../Box/Box';
10
-
11
- /**
12
- * Basic separator or HR component.
13
- * Accepts most of the styling props from [styled-system](https://styled-system.com/table).
14
- */
15
10
  import { jsx as ___EmotionJSX } from "@emotion/react";
16
11
  var Separator = /*#__PURE__*/forwardRef(function (props, ref) {
17
12
  var className = props.className,
@@ -1,11 +1,20 @@
1
1
  import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
2
2
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
3
3
  import React from 'react';
4
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
4
5
  import { Box, Separator } from '../../index';
6
+ import SeparatorReadme from './Separator.mdx';
5
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
6
8
  export default {
7
9
  title: 'Components/Separator',
8
- component: Separator
10
+ component: Separator,
11
+ parameters: {
12
+ docs: {
13
+ page: function page() {
14
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(SeparatorReadme, null), ___EmotionJSX(DocsLayout, null));
15
+ }
16
+ }
17
+ }
9
18
  };
10
19
  export var Default = function Default(_ref) {
11
20
  var args = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
@@ -26,13 +26,6 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
26
26
  var ACTIVE = stepStatuses.ACTIVE,
27
27
  COMPLETED = stepStatuses.COMPLETED,
28
28
  INACTIVE = stepStatuses.INACTIVE;
29
-
30
- /**
31
- * The Stepper component acts as a wrapper for individual Step components.
32
- * Stepper is used to display progress through a sequence of logical and numbered steps
33
- * usually within a configuration wizard.
34
- */
35
-
36
29
  var Stepper = /*#__PURE__*/forwardRef(function (props, ref) {
37
30
  var activeStep = props.activeStep,
38
31
  onStepChange = props.onStepChange,
@@ -1,7 +1,9 @@
1
1
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
2
  import React, { useState } from 'react';
3
3
  import { Item } from 'react-stately';
4
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
4
5
  import { Stepper, Text } from '../../index';
6
+ import StepperReadme from './Stepper.mdx';
5
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
6
8
  export default {
7
9
  title: 'Components/Stepper',
@@ -42,6 +44,9 @@ export default {
42
44
  },
43
45
  parameters: {
44
46
  docs: {
47
+ page: function page() {
48
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(StepperReadme, null), ___EmotionJSX(DocsLayout, null));
49
+ },
45
50
  source: {
46
51
  type: 'code'
47
52
  }
@@ -3,15 +3,6 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["children"];
4
4
  import React from 'react';
5
5
  import Box from '../Box';
6
-
7
- /**
8
- * Basic Table parent component.
9
- *
10
- * Renders an HTML `<table>`
11
- *
12
- * Accepts the `<TableBody>` component and/or the `<TableHead>` as children.
13
- *
14
- */
15
6
  import { jsx as ___EmotionJSX } from "@emotion/react";
16
7
  var Table = function Table(props) {
17
8
  var children = props.children,
@@ -1,11 +1,20 @@
1
1
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
2
2
  import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
3
3
  import React from 'react';
4
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
4
5
  import { Table, TableBody, TableCaption, TableCell, TableHead, TableRow, Text } from '../../index';
6
+ import TableReadme from './Table.mdx';
5
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
6
8
  export default {
7
9
  title: 'Components/Table',
8
- component: Table
10
+ component: Table,
11
+ parameters: {
12
+ docs: {
13
+ page: function page() {
14
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TableReadme, null), ___EmotionJSX(DocsLayout, null));
15
+ }
16
+ }
17
+ }
9
18
  };
10
19
  var caption = 'Populations of Countries';
11
20
  var headers = ['Country', 'Population', 'Continent'];
@@ -26,11 +26,6 @@ import Box from '../Box';
26
26
  import { CollectionTab } from '../Tab';
27
27
  import { jsx as ___EmotionJSX } from "@emotion/react";
28
28
  export var TabsContext = /*#__PURE__*/React.createContext({});
29
-
30
- /**
31
- * Tabs are used to divide content, navigate to other views, and indicate work progress.
32
- */
33
-
34
29
  var TabPanel = /*#__PURE__*/forwardRef(function (_ref, ref) {
35
30
  var state = _ref.state,
36
31
  props = _objectWithoutProperties(_ref, _excluded);
@@ -3,7 +3,9 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
3
3
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
4
4
  import React, { useState } from 'react';
5
5
  import LockIcon from 'mdi-react/LockIcon';
6
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
6
7
  import { Badge, Icon, Tab, Tabs, Text } from '../../index';
8
+ import TabsReadme from './Tabs.mdx';
7
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
10
  export default {
9
11
  title: 'Components/Tabs',
@@ -36,6 +38,9 @@ export default {
36
38
  },
37
39
  parameters: {
38
40
  docs: {
41
+ page: function page() {
42
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TabsReadme, null), ___EmotionJSX(DocsLayout, null));
43
+ },
39
44
  source: {
40
45
  type: 'code'
41
46
  }
@@ -11,13 +11,7 @@ var ExtendedText = /*#__PURE__*/_styled(ThemeUIText, process.env.NODE_ENV === "p
11
11
  } : {
12
12
  target: "eifd86o0",
13
13
  label: "ExtendedText"
14
- })(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RleHQvVGV4dC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRcUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvVGV4dC9UZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBmbGV4Ym94LCBsYXlvdXQsIHR5cG9ncmFwaHkgfSBmcm9tICdzdHlsZWQtc3lzdGVtJztcbmltcG9ydCB7IFRleHQgYXMgVGhlbWVVSVRleHQgfSBmcm9tICd0aGVtZS11aSc7XG5cbmltcG9ydCB7IHRleHRWYXJpYW50cyB9IGZyb20gJy4uLy4uL3V0aWxzL2RldlV0aWxzL2NvbnN0YW50cy92YXJpYW50cyc7XG5cbmNvbnN0IEV4dGVuZGVkVGV4dCA9IHN0eWxlZChUaGVtZVVJVGV4dCkobGF5b3V0LCBmbGV4Ym94LCB0eXBvZ3JhcGh5KTtcblxuLyoqXG4gKiBUaGUgVGV4dCBjb21wb25lbnQgaXMgdXNlZCBmb3IgZGlzcGxheWluZyB0ZXh0LlxuICogVGV4dCBzdXBwb3J0cyBbVHlwb2dyYXBoeSBQcm9wcyBmcm9tIFN0eWxlZCBTeXN0ZW0gXShodHRwczovL3N0eWxlZC1zeXN0ZW0uY29tL3RhYmxlLyN0eXBvZ3JhcGh5KS5cbiAqL1xuXG5jb25zdCBUZXh0ID0gUmVhY3QuZm9yd2FyZFJlZigocHJvcHMsIHJlZikgPT4gKFxuICA8RXh0ZW5kZWRUZXh0IHZhcmlhbnQ9XCJiYXNlXCIgey4uLnByb3BzfSByZWY9e3JlZn0gLz5cbikpO1xuXG5UZXh0LnByb3BUeXBlcyA9IHtcbiAgdmFyaWFudDogUHJvcFR5cGVzLnN0cmluZyxcbn07XG5cblxuVGV4dC5kZWZhdWx0UHJvcHMgPSB7XG4gIHZhcmlhbnQ6IHRleHRWYXJpYW50cy5CQVNFLFxufTtcblxuVGV4dC5kaXNwbGF5TmFtZSA9ICdUZXh0JztcblxuZXhwb3J0IGRlZmF1bHQgVGV4dDtcbiJdfQ== */");
15
-
16
- /**
17
- * The Text component is used for displaying text.
18
- * Text supports [Typography Props from Styled System ](https://styled-system.com/table/#typography).
19
- */
20
-
14
+ })(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RleHQvVGV4dC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRcUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvVGV4dC9UZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBmbGV4Ym94LCBsYXlvdXQsIHR5cG9ncmFwaHkgfSBmcm9tICdzdHlsZWQtc3lzdGVtJztcbmltcG9ydCB7IFRleHQgYXMgVGhlbWVVSVRleHQgfSBmcm9tICd0aGVtZS11aSc7XG5cbmltcG9ydCB7IHRleHRWYXJpYW50cyB9IGZyb20gJy4uLy4uL3V0aWxzL2RldlV0aWxzL2NvbnN0YW50cy92YXJpYW50cyc7XG5cbmNvbnN0IEV4dGVuZGVkVGV4dCA9IHN0eWxlZChUaGVtZVVJVGV4dCkobGF5b3V0LCBmbGV4Ym94LCB0eXBvZ3JhcGh5KTtcblxuY29uc3QgVGV4dCA9IFJlYWN0LmZvcndhcmRSZWYoKHByb3BzLCByZWYpID0+IChcbiAgPEV4dGVuZGVkVGV4dCB2YXJpYW50PVwiYmFzZVwiIHsuLi5wcm9wc30gcmVmPXtyZWZ9IC8+XG4pKTtcblxuVGV4dC5wcm9wVHlwZXMgPSB7XG4gIHZhcmlhbnQ6IFByb3BUeXBlcy5zdHJpbmcsXG59O1xuXG5cblRleHQuZGVmYXVsdFByb3BzID0ge1xuICB2YXJpYW50OiB0ZXh0VmFyaWFudHMuQkFTRSxcbn07XG5cblRleHQuZGlzcGxheU5hbWUgPSAnVGV4dCc7XG5cbmV4cG9ydCBkZWZhdWx0IFRleHQ7XG4iXX0= */");
21
15
  var Text = /*#__PURE__*/React.forwardRef(function (props, ref) {
22
16
  return ___EmotionJSX(ExtendedText, _extends({
23
17
  variant: "base"
@@ -2,11 +2,20 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
2
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
3
3
  import _Object$entries from "@babel/runtime-corejs3/core-js-stable/object/entries";
4
4
  import React from 'react';
5
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
5
6
  import { Box, Separator, Table, TableBody, TableCell, TableHead, TableRow, Text } from '../../index';
7
+ import TextReadme from './Text.mdx';
6
8
  import { jsx as ___EmotionJSX } from "@emotion/react";
7
9
  export default {
8
10
  title: 'Components/Text',
9
11
  component: Text,
12
+ parameters: {
13
+ docs: {
14
+ page: function page() {
15
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TextReadme, null), ___EmotionJSX(DocsLayout, null));
16
+ }
17
+ }
18
+ },
10
19
  argTypes: {
11
20
  variant: {
12
21
  control: {
@@ -10,13 +10,6 @@ import PropTypes from 'prop-types';
10
10
  import { TooltipContext } from '../../context/TooltipContext/index';
11
11
  import { usePropWarning, useStatusClasses } from '../../hooks';
12
12
  import PopoverContainer from '../PopoverContainer';
13
-
14
- /**
15
- * A `TooltipTrigger` is a composed component and must be comprised of two children: 1) a
16
- * focusable button, and 2) a `Tooltip` which renders non-interactive content. This component
17
- * is typically used as a design fallback for contextual information that may be hard to convey
18
- * otherwise. The tooltip trigger can also be disabled without disabling button press events.
19
- */
20
13
  import { jsx as ___EmotionJSX } from "@emotion/react";
21
14
  var TooltipTrigger = /*#__PURE__*/forwardRef(function (props, ref) {
22
15
  var _context, _useStatusClasses2;
@@ -1,11 +1,20 @@
1
1
  import React from 'react';
2
2
  import AccountIcon from 'mdi-react/AccountIcon';
3
3
  import Earth from 'mdi-react/EarthIcon';
4
+ import DocsLayout from '../../../.storybook/storybookDocsLayout';
4
5
  import { Box, Button, Icon, IconButton, Text, Tooltip, TooltipTrigger } from '../../index';
6
+ import TooltipTriggerReadme from './TooltipTrigger.mdx';
5
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
6
8
  export default {
7
9
  title: 'Components/TooltipTrigger',
8
- component: TooltipTrigger
10
+ component: TooltipTrigger,
11
+ parameters: {
12
+ docs: {
13
+ page: function page() {
14
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TooltipTriggerReadme, null), ___EmotionJSX(DocsLayout, null));
15
+ }
16
+ }
17
+ }
9
18
  };
10
19
  export var Default = function Default(args) {
11
20
  return ___EmotionJSX(TooltipTrigger, args, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Tooltip Content"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.5.5-alpha.0",
3
+ "version": "2.5.5-alpha.2",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",