@spectrum-icons/workflow 3.2.4 → 3.2.5

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.
@@ -15,6 +15,17 @@ import Alert from '@spectrum-icons/workflow/Alert';
15
15
  import React from 'react';
16
16
  import {storiesOf} from '@storybook/react';
17
17
  import {Flex} from "@react-spectrum/layout";
18
+ import * as AllIcons from '../src';
19
+
20
+ let allIcons = Object.keys(AllIcons);
21
+ let alphabet = [...Array(26)]
22
+ .map((val, i) => String.fromCharCode(i + 65));
23
+ alphabet = ['_', ...alphabet];
24
+ let alphabetizedIcons = alphabet
25
+ .reduce((acc, char) => {
26
+ acc[char] = allIcons.filter(iconName => iconName[0] === char);
27
+ return acc;
28
+ }, {});
18
29
 
19
30
  storiesOf('Icons/Workflow', module)
20
31
  .add(
@@ -31,6 +42,28 @@ storiesOf('Icons/Workflow', module)
31
42
  <Alert color="notice" aria-label="notice alert" />
32
43
  </Flex>
33
44
  )
45
+ )
46
+ .add('All Workflow',
47
+ () => (
48
+ <Flex direction="column">
49
+ {
50
+ Object.keys(alphabetizedIcons).map(char => (
51
+ <div style={{height: "calc(12 * var(--spectrum-global-dimension-size-300))"}}>
52
+ <div>{char}</div>
53
+ <Flex direction="row" gap="size-50" wrap>
54
+ {
55
+ alphabetizedIcons[char].map(iconName => {
56
+ let Icon = AllIcons[iconName].default;
57
+ return <Icon key={iconName}/>;
58
+ })
59
+ }
60
+ </Flex>
61
+ </div>
62
+ ))
63
+ }
64
+ </Flex>
65
+ ),
66
+ {chromaticProvider: {colorSchemes: ['light'], locales: ['en-US'], scales: ['medium', 'large'], disableAnimations: true}}
34
67
  );
35
68
 
36
69
  function renderIconSizes(Component, props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-icons/workflow",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@adobe/react-spectrum-workflow": "1.0.2",
16
- "@react-spectrum/icon": "^3.3.5"
16
+ "@react-spectrum/icon": "^3.3.7"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@spectrum-icons/build-tools": "3.0.0-alpha.1"
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "ed8d8d984c2f7f2c31e8b18795b97858a95e4729"
28
+ "gitHead": "6a503b715e0dbbf92038cd7f08b1bcdde4c78e82"
29
29
  }