@spectrum-icons/workflow 4.2.1 → 4.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-icons/workflow",
3
- "version": "4.2.1",
3
+ "version": "4.2.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": "2.3.4",
26
- "@react-spectrum/icon": "^3.7.2",
27
- "@swc/helpers": "^0.4.14"
26
+ "@react-spectrum/icon": "^3.7.4",
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": "5911ed21de4b76d66f6254c02302519e02d50e16"
39
+ "gitHead": "d4dfe4bb842a914f10045ee63fc6b92f034c5b30"
40
40
  }
@@ -12,7 +12,6 @@
12
12
  "include": [
13
13
  "src",
14
14
  "../../@react-types/shared/src/css.d.ts",
15
- "../../@react-spectrum/utils/src/ResizeObserver.d.ts"
16
15
  ],
17
16
  "exclude": ["scripts", "node_modules", "stories", "chromatic"]
18
17
  }
@@ -1,86 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import Add from '../Add';
14
- import Alert from '@spectrum-icons/workflow/Alert';
15
- import React from 'react';
16
- import {Flex} from '@react-spectrum/layout';
17
- import * as AllIcons from '../src';
18
-
19
- let allIcons = Object.keys(AllIcons);
20
- let alphabet = [...Array(26)].map((val, i) => String.fromCharCode(i + 65));
21
- alphabet = ['_', ...alphabet];
22
- let alphabetizedIcons = alphabet.reduce((acc, char) => {
23
- acc[char] = allIcons.filter((iconName) => iconName[0] === char).sort();
24
- return acc;
25
- }, {});
26
-
27
- export default {
28
- title: 'Icons/Workflow',
29
- parameters: {
30
- chromaticProvider: {express: false},
31
- }
32
- };
33
-
34
- export const IconAddWithSizes = () => renderIconSizes(Add, { 'aria-label': 'Add' });
35
-
36
- IconAddWithSizes.story = {
37
- name: 'icon: Add with sizes',
38
- };
39
-
40
- export const Colors = () => (
41
- <Flex gap="size-200">
42
- <Alert aria-label="info default" />
43
- <Alert color="informative" aria-label="info alert" />
44
- <Alert color="negative" aria-label="negative alert" />
45
- <Alert color="positive" aria-label="positive alert" />
46
- <Alert color="notice" aria-label="notice alert" />
47
- </Flex>
48
- );
49
-
50
- export const AllWorkflow = () => (
51
- <Flex direction="column">
52
- {Object.keys(alphabetizedIcons).map((char) => (
53
- <div style={{ height: 'calc(12 * var(--spectrum-global-dimension-size-300))' }}>
54
- <div>{char}</div>
55
- <Flex direction="row" gap="size-50" wrap>
56
- {alphabetizedIcons[char].map((iconName) => {
57
- let Icon = AllIcons[iconName].default;
58
- return <Icon key={iconName} id={iconName} />;
59
- })}
60
- </Flex>
61
- </div>
62
- ))}
63
- </Flex>
64
- );
65
-
66
- AllWorkflow.story = {
67
- parameters: {
68
- chromaticProvider: {
69
- colorSchemes: ['light'],
70
- locales: ['en-US'],
71
- scales: ['medium', 'large'],
72
- disableAnimations: true,
73
- }
74
- }
75
- };
76
-
77
- function renderIconSizes(Component, props) {
78
- let sizes = ['XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL'];
79
- return (
80
- <div>
81
- {sizes.map((size) => {
82
- return <Component margin="15px" size={size} {...props} />;
83
- })}
84
- </div>
85
- );
86
- }
@@ -1,74 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import Icon3DMaterials from '../3DMaterials';
14
- import Add from '../Add';
15
- import Alert from '../Alert';
16
- import Bell from '../Bell';
17
- import React from 'react';
18
-
19
- export default {
20
- title: 'Icons/Workflow'
21
- };
22
-
23
- export const IconAddWithSizes = () => renderIconSizes(Add, {'aria-label': 'Add'});
24
-
25
- IconAddWithSizes.story = {
26
- name: 'icon: Add with sizes'
27
- };
28
-
29
- export const IconBellWithSizes = () => renderIconSizes(Bell, {'aria-label': 'Bell'});
30
-
31
- IconBellWithSizes.story = {
32
- name: 'icon: Bell with sizes',
33
- };
34
-
35
- export const Icon3DMaterialsWithSizes = () => renderIconSizes(Icon3DMaterials, {'aria-label': '3D Materials'});
36
-
37
- Icon3DMaterialsWithSizes.story = {
38
- name: 'icon: _3DMaterials with sizes',
39
- };
40
-
41
- export const IconAlertNegative = () => renderIconSizes(Alert, {'aria-label': 'Alert', color: 'negative'});
42
-
43
- IconAlertNegative.story = {
44
- name: 'icon: Alert negative',
45
- };
46
-
47
- export const IconAlertInformative = () => renderIconSizes(Alert, {'aria-label': 'Alert', color: 'informative'});
48
-
49
- IconAlertInformative.story = {
50
- name: 'icon: Alert informative',
51
- };
52
-
53
- export const IconAlertPositive = () => renderIconSizes(Alert, {'aria-label': 'Alert', color: 'positive'});
54
-
55
- IconAlertPositive.story = {
56
- name: 'icon: Alert positive',
57
- };
58
-
59
- export const IconAlertNotice = () => renderIconSizes(Alert, {'aria-label': 'Alert', color: 'notice'});
60
-
61
- IconAlertNotice.story = {
62
- name: 'icon: Alert notice',
63
- };
64
-
65
- function renderIconSizes(Component, props) {
66
- let sizes = ['XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL'];
67
- return (
68
- <div>
69
- {sizes.map((size) => {
70
- return <Component margin="15px" size={size} {...props} />;
71
- })}
72
- </div>
73
- );
74
- }