@pingux/astro 1.41.0 → 1.42.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.
- package/lib/cjs/components/Card/Card.js +0 -4
- package/lib/cjs/components/Card/Card.stories.js +11 -0
- package/lib/cjs/components/Chip/Badge.js +0 -5
- package/lib/cjs/components/Chip/Badge.stories.js +11 -0
- package/lib/cjs/components/Chip/Chip.js +0 -5
- package/lib/cjs/components/CodeView/CodeView.js +0 -4
- package/lib/cjs/components/CodeView/CodeView.stories.js +9 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.js +0 -4
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +7 -0
- package/lib/cjs/components/CopyText/CopyText.js +0 -4
- package/lib/cjs/components/CopyText/CopyText.stories.js +11 -0
- package/lib/cjs/components/DataTable/DataTable.js +0 -26
- package/lib/cjs/components/DataTable/DataTable.stories.js +7 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +0 -2
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +7 -0
- package/lib/cjs/components/HelpHint/HelpHint.js +0 -7
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +11 -0
- package/lib/cjs/components/Icon/Icon.js +0 -12
- package/lib/cjs/components/Icon/Icon.stories.js +7 -0
- package/lib/components/Card/Card.js +0 -5
- package/lib/components/Card/Card.stories.js +9 -0
- package/lib/components/Chip/Badge.js +0 -6
- package/lib/components/Chip/Badge.stories.js +9 -0
- package/lib/components/Chip/Chip.js +0 -6
- package/lib/components/CodeView/CodeView.js +0 -5
- package/lib/components/CodeView/CodeView.stories.js +7 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.js +0 -5
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -0
- package/lib/components/CopyText/CopyText.js +0 -4
- package/lib/components/CopyText/CopyText.stories.js +9 -0
- package/lib/components/DataTable/DataTable.js +0 -26
- package/lib/components/DataTable/DataTable.stories.js +5 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +0 -2
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +5 -0
- package/lib/components/HelpHint/HelpHint.js +0 -7
- package/lib/components/HelpHint/HelpHint.stories.js +9 -0
- package/lib/components/Icon/Icon.js +0 -13
- package/lib/components/Icon/Icon.stories.js +5 -0
- package/package.json +1 -1
- package/NOTICE.html +0 -4707
@@ -21,13 +21,6 @@ var HelpIcon = function HelpIcon() {
|
|
21
21
|
fill: "#3B4A58"
|
22
22
|
}));
|
23
23
|
};
|
24
|
-
/**
|
25
|
-
* A `HelpHint` is a composed component using tooltip trigger and icon button.
|
26
|
-
*
|
27
|
-
* For customization the trigger icon,
|
28
|
-
* please see the [TooltipTrigger](./?path=/docs/tooltiptrigger--default) docs.
|
29
|
-
*/
|
30
|
-
|
31
24
|
|
32
25
|
var HelpHint = /*#__PURE__*/forwardRef(function (props, ref) {
|
33
26
|
var children = props.children,
|
@@ -1,10 +1,19 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import HelpHint from '.';
|
3
3
|
import Box from '../Box';
|
4
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
5
|
+
import HelpHintReadme from './HelpHint.mdx';
|
4
6
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
7
|
export default {
|
6
8
|
title: 'Components/HelpHint',
|
7
9
|
component: HelpHint,
|
10
|
+
parameters: {
|
11
|
+
docs: {
|
12
|
+
page: function page() {
|
13
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(HelpHintReadme, null), ___EmotionJSX(DocsLayout, null));
|
14
|
+
}
|
15
|
+
}
|
16
|
+
},
|
8
17
|
argTypes: {
|
9
18
|
children: {
|
10
19
|
description: 'Tooltip content',
|
@@ -17,19 +17,6 @@ import React, { forwardRef } from 'react';
|
|
17
17
|
import PropTypes from 'prop-types';
|
18
18
|
import Box from '../Box';
|
19
19
|
import { useTShirtSize } from '../../hooks';
|
20
|
-
/**
|
21
|
-
* Basic icon component.
|
22
|
-
* Icons will fill the given container, which is '1em' x '1em' by default, and will maintain their
|
23
|
-
* aspect ratio.
|
24
|
-
* Use SVGR to import SVG files as React components and pass them into this component, and you can
|
25
|
-
* use the theme to color the icon. But ensure you pass `dimensions: false` in webpack config
|
26
|
-
* (see [SVGR docs](https://react-svgr.com/docs/options/#dimensions)).
|
27
|
-
* Otherwise icon will not be resizable by `size` prop.
|
28
|
-
* Icons can also be used from the [Material UI Icon Library](https://materialdesignicons.com/).
|
29
|
-
* Built on top of the [Box from Theme-UI](https://theme-ui.com/components/box/) and uses the
|
30
|
-
* available [props from Theme-UI](https://theme-ui.com/sx-prop).
|
31
|
-
*/
|
32
|
-
|
33
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
34
21
|
var Icon = /*#__PURE__*/forwardRef(function (props, ref) {
|
35
22
|
var color = props.color,
|
@@ -12,12 +12,17 @@ import { v4 as uuid } from 'uuid';
|
|
12
12
|
import { Box, Icon, Table, TableBody, TableCell, TableHead, TableRow, Text } from '../../index';
|
13
13
|
import { flatColorList } from '../../styles/colors';
|
14
14
|
import { tShirtSizes } from '../../utils/devUtils/constants/tShirtSizes';
|
15
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
16
|
+
import IconReadme from './Icon.mdx';
|
15
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
16
18
|
export default {
|
17
19
|
title: 'Components/Icon',
|
18
20
|
component: Icon,
|
19
21
|
parameters: {
|
20
22
|
docs: {
|
23
|
+
page: function page() {
|
24
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconReadme, null), ___EmotionJSX(DocsLayout, null));
|
25
|
+
},
|
21
26
|
source: {
|
22
27
|
type: 'code'
|
23
28
|
}
|