@spectrum-icons/color 3.5.1 → 3.5.3
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/package.json +4 -4
- package/stories/IconsColor.stories.tsx +13 -10
- package/tsconfig.types.json +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spectrum-icons/color",
|
3
|
-
"version": "3.5.
|
3
|
+
"version": "3.5.3",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"repository": {
|
@@ -23,8 +23,8 @@
|
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
25
|
"@adobe/react-spectrum-workflow-color": "1.1.0",
|
26
|
-
"@react-spectrum/icon": "^3.7.
|
27
|
-
"@swc/helpers": "^0.
|
26
|
+
"@react-spectrum/icon": "^3.7.3",
|
27
|
+
"@swc/helpers": "^0.5.0"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
30
|
"@spectrum-icons/build-tools": "3.0.0-alpha.1"
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"publishConfig": {
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "504e40e0a50c1b20ed0fb3ba9561a263b6d5565e"
|
40
40
|
}
|
@@ -12,21 +12,24 @@
|
|
12
12
|
|
13
13
|
import CalendarCheckColor from '../CalendarCheckColor';
|
14
14
|
import React from 'react';
|
15
|
-
import {storiesOf} from '@storybook/react';
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
export default {
|
17
|
+
title: 'Icons/Color'
|
18
|
+
};
|
19
|
+
|
20
|
+
export const ColorIconWithSizes = () => renderIconSizes(CalendarCheckColor, {'aria-label': 'Adobe Analytics Color'});
|
21
|
+
|
22
|
+
ColorIconWithSizes.story = {
|
23
|
+
name: 'Color icon with sizes'
|
24
|
+
};
|
22
25
|
|
23
26
|
function renderIconSizes(Component, props) {
|
24
27
|
let sizes = ['XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL'];
|
25
28
|
return (
|
26
29
|
<div>
|
27
|
-
{sizes.map(size => {
|
28
|
-
return <Component size={size} margin="15px" {...props}
|
29
|
-
|
30
|
+
{sizes.map((size) => {
|
31
|
+
return <Component size={size} margin="15px" {...props} />;
|
32
|
+
})}
|
30
33
|
</div>
|
31
|
-
)
|
34
|
+
);
|
32
35
|
}
|