@pingux/astro 2.44.0-alpha.0 → 2.44.0-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.
- package/lib/cjs/components/Card/Card.stories.d.ts +9 -0
- package/lib/cjs/components/Card/Card.stories.js +22 -1
- package/lib/cjs/components/Icon/Icon.stories.js +18 -14
- package/lib/cjs/components/IconButton/IconButton.d.ts +4 -0
- package/lib/cjs/components/IconButton/IconButton.js +36 -13
- package/lib/cjs/components/IconButton/IconButton.stories.d.ts +10 -0
- package/lib/cjs/components/IconButton/IconButton.stories.js +1 -2
- package/lib/cjs/components/IconButton/IconButton.styles.d.ts +417 -0
- package/lib/cjs/components/IconButton/IconButton.test.d.ts +1 -0
- package/lib/cjs/components/IconButton/IconButton.test.js +2 -1
- package/lib/cjs/components/IconButton/iconButtonAttributes.d.ts +48 -0
- package/lib/cjs/components/IconButton/iconButtonAttributes.js +1 -8
- package/lib/cjs/components/IconButton/index.d.ts +1 -0
- package/lib/cjs/components/Loader/Loader.stories.js +14 -6
- package/lib/cjs/context/BadgeContext/index.d.ts +5 -1
- package/lib/cjs/types/icon.d.ts +2 -6
- package/lib/cjs/types/iconButton.d.ts +21 -0
- package/lib/cjs/types/iconButton.js +6 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +21 -10
- package/lib/cjs/types/loader.d.ts +2 -7
- package/lib/cjs/types/shared/style.d.ts +4 -0
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +1 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +1 -0
- package/lib/cjs/utils/docUtils/iconSizeProps.d.ts +9 -0
- package/lib/cjs/utils/docUtils/iconSizeProps.js +22 -0
- package/lib/components/Card/Card.stories.js +20 -0
- package/lib/components/Icon/Icon.stories.js +18 -13
- package/lib/components/IconButton/IconButton.js +36 -13
- package/lib/components/IconButton/IconButton.stories.js +1 -2
- package/lib/components/IconButton/IconButton.test.js +2 -1
- package/lib/components/IconButton/iconButtonAttributes.js +1 -8
- package/lib/components/Loader/Loader.stories.js +15 -6
- package/lib/types/iconButton.js +1 -0
- package/lib/types/index.js +1 -0
- package/lib/utils/designUtils/figmaLinks.js +1 -0
- package/lib/utils/docUtils/iconSizeProps.js +12 -0
- package/package.json +1 -1
@@ -1,4 +1,15 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
1
10
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
2
13
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
3
14
|
import React from 'react';
|
4
15
|
import { withDesign } from 'storybook-addon-designs';
|
@@ -6,6 +17,7 @@ import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
6
17
|
import { Loader } from '../../index';
|
7
18
|
import { flatColorList } from '../../styles/colors';
|
8
19
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
|
20
|
+
import { sizeArgTypes } from '../../utils/docUtils/iconSizeProps';
|
9
21
|
import LoaderReadme from './Loader.mdx';
|
10
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
11
23
|
export default {
|
@@ -30,12 +42,9 @@ export default {
|
|
30
42
|
})
|
31
43
|
}
|
32
44
|
},
|
33
|
-
size: {
|
34
|
-
|
35
|
-
|
36
|
-
},
|
37
|
-
description: 'The size of the loader. Sizes can either be a string such as xs, sm, md, etc or numeric size with unit such as 15px. Default size inherits the font size. ' + 'Numeric value paired with a unit. https://www.w3schools.com/cssref/css_units.asp'
|
38
|
-
}
|
45
|
+
size: _objectSpread(_objectSpread({}, sizeArgTypes.size), {}, {
|
46
|
+
description: 'The size of the loader. Sizes can either be a string such as xs, sm, md, etc or numeric size with unit such as 15px. Default size inherits the font size. Numeric value paired with a unit. https://www.w3schools.com/cssref/css_units.asp'
|
47
|
+
})
|
39
48
|
},
|
40
49
|
args: {
|
41
50
|
color: 'active'
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/lib/types/index.js
CHANGED
@@ -59,6 +59,7 @@ export var FIGMA_LINKS = {
|
|
59
59
|
},
|
60
60
|
card: {
|
61
61
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=335%3A1780&mode=dev',
|
62
|
+
cardWidth: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6241&mode=dev',
|
62
63
|
cardRow: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6248&mode=dev',
|
63
64
|
interactiveCard: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6279&mode=dev'
|
64
65
|
},
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import { tShirtSizes } from '../devUtils/constants/tShirtSizes';
|
4
|
+
export var sizeArgTypes = {
|
5
|
+
size: {
|
6
|
+
options: _Object$keys(tShirtSizes),
|
7
|
+
description: "The size of the icon container. If given a number value, it will be converted to pixels. \n Tshirt sizing is recommended and can be passed to the size prop as \"xs\", \"sm\" , \"md\" \n rendering 15, 20, and 25 pixel svg containers."
|
8
|
+
}
|
9
|
+
};
|
10
|
+
export var sizePropTypes = {
|
11
|
+
size: PropTypes.oneOf(_Object$keys(tShirtSizes))
|
12
|
+
};
|