@salesforce/design-system-react 0.10.42 → 0.10.43

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.
Files changed (27) hide show
  1. package/components/component-docs.json +4 -0
  2. package/components/icon/__docs__/__snapshots__/storybook-stories.storyshot +49 -2
  3. package/components/icon/__docs__/storybook-stories.jsx +2 -0
  4. package/components/icon/__examples__/color-success.jsx +24 -0
  5. package/components/icon/__examples__/colors.jsx +10 -2
  6. package/components/icon/index.jsx +2 -0
  7. package/components/icon.d.ts +1 -1
  8. package/lib/components/component-docs.json +4 -0
  9. package/lib/components/icon/__docs__/__snapshots__/storybook-stories.storyshot +49 -2
  10. package/lib/components/icon/__docs__/storybook-stories.jsx +2 -0
  11. package/lib/components/icon/__examples__/color-success.jsx +24 -0
  12. package/lib/components/icon/__examples__/colors.jsx +10 -2
  13. package/lib/components/icon/index.js +2 -1
  14. package/lib/components/icon.d.ts +1 -1
  15. package/lib/package.json +1 -1
  16. package/module/components/component-docs.json +4 -0
  17. package/module/components/icon/__docs__/__snapshots__/storybook-stories.storyshot +49 -2
  18. package/module/components/icon/__docs__/storybook-stories.js +3 -0
  19. package/module/components/icon/__docs__/storybook-stories.js.map +1 -1
  20. package/module/components/icon/__examples__/color-success.js +64 -0
  21. package/module/components/icon/__examples__/color-success.js.map +1 -0
  22. package/module/components/icon/__examples__/colors.js +11 -2
  23. package/module/components/icon/__examples__/colors.js.map +1 -1
  24. package/module/components/icon/index.js +2 -1
  25. package/module/components/icon/index.js.map +1 -1
  26. package/module/components/icon.d.ts +1 -1
  27. package/package.json +1 -1
@@ -9534,6 +9534,10 @@
9534
9534
  {
9535
9535
  "value": "'warning'",
9536
9536
  "computed": false
9537
+ },
9538
+ {
9539
+ "value": "'success'",
9540
+ "computed": false
9537
9541
  }
9538
9542
  ]
9539
9543
  },
@@ -340,6 +340,30 @@ exports[`DOM snapshots SLDSIcon Color: Light 1`] = `
340
340
  </div>
341
341
  `;
342
342
 
343
+ exports[`DOM snapshots SLDSIcon Color: Success 1`] = `
344
+ <div
345
+ className="slds-p-around_medium"
346
+ >
347
+ <span
348
+ title="description of icon"
349
+ >
350
+ <svg
351
+ aria-hidden="true"
352
+ className="slds-icon slds-icon-text-success"
353
+ >
354
+ <use
355
+ href="/assets/icons/utility-sprite/svg/symbols.svg#announcement"
356
+ />
357
+ </svg>
358
+ <span
359
+ className="slds-assistive-text"
360
+ >
361
+ Description of icon
362
+ </span>
363
+ </span>
364
+ </div>
365
+ `;
366
+
343
367
  exports[`DOM snapshots SLDSIcon Color: Warning 1`] = `
344
368
  <div
345
369
  className="slds-p-around_medium"
@@ -544,6 +568,25 @@ exports[`DOM snapshots SLDSIcon Docs site Colors 1`] = `
544
568
  </span>
545
569
  </span>
546
570
  </div>
571
+ <div
572
+ className="slds-col_padded"
573
+ >
574
+ <span>
575
+ <svg
576
+ aria-hidden="true"
577
+ className="slds-icon slds-icon-text-success"
578
+ >
579
+ <use
580
+ href="/assets/icons/utility-sprite/svg/symbols.svg#success"
581
+ />
582
+ </svg>
583
+ <span
584
+ className="slds-assistive-text"
585
+ >
586
+ Success
587
+ </span>
588
+ </span>
589
+ </div>
547
590
  <div
548
591
  className="slds-col_padded"
549
592
  >
@@ -572,10 +615,14 @@ exports[`DOM snapshots SLDSIcon Docs site Colors 1`] = `
572
615
  className="slds-icon slds-icon-text-error"
573
616
  >
574
617
  <use
575
- href="/assets/icons/utility-sprite/svg/symbols.svg#warning"
618
+ href="/assets/icons/utility-sprite/svg/symbols.svg#error"
576
619
  />
577
620
  </svg>
578
-
621
+ <span
622
+ className="slds-assistive-text"
623
+ >
624
+ Warning
625
+ </span>
579
626
  </span>
580
627
  </div>
581
628
  </div>
@@ -12,6 +12,7 @@ import Custom from '../__examples__/custom';
12
12
  import ExternalPath from '../__examples__/external-path';
13
13
  import ColorBase from '../__examples__/color-base';
14
14
  import ColorDefault from '../__examples__/color-default';
15
+ import ColorSuccess from '../__examples__/color-success';
15
16
  import ColorError from '../__examples__/color-error';
16
17
  import ColorWarning from '../__examples__/color-warning';
17
18
  import ColorLight from '../__examples__/color-light';
@@ -61,6 +62,7 @@ storiesOf(ICON, module)
61
62
  </div>
62
63
  ))
63
64
  .add('Color: Default', () => <ColorDefault />)
65
+ .add('Color: Success', () => <ColorSuccess />)
64
66
  .add('Color: Error', () => <ColorError />)
65
67
  .add('Color: Warning', () => <ColorWarning />)
66
68
  .add('Color: Light', () => <ColorLight />)
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+
3
+ import Icon from '~/components/icon'; // `~` is replaced with design-system-react at runtime
4
+ import IconSettings from '~/components/icon-settings';
5
+
6
+ class Example extends React.Component {
7
+ static displayName = 'IconExample';
8
+
9
+ render() {
10
+ return (
11
+ <IconSettings iconPath="/assets/icons">
12
+ <Icon
13
+ assistiveText={{ label: 'Description of icon' }}
14
+ category="utility"
15
+ colorVariant="success"
16
+ name="announcement"
17
+ title="description of icon"
18
+ />
19
+ </IconSettings>
20
+ );
21
+ }
22
+ }
23
+
24
+ export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime
@@ -34,6 +34,14 @@ class Example extends React.Component {
34
34
  name="lock"
35
35
  />
36
36
  </div>
37
+ <div className="slds-col_padded">
38
+ <Icon
39
+ assistiveText={{ label: 'Success' }}
40
+ category="utility"
41
+ colorVariant="success"
42
+ name="success"
43
+ />
44
+ </div>
37
45
  <div className="slds-col_padded">
38
46
  <Icon
39
47
  assistiveText={{ label: 'Warning' }}
@@ -44,10 +52,10 @@ class Example extends React.Component {
44
52
  </div>
45
53
  <div className="slds-col_padded">
46
54
  <Icon
47
- assistiveText={{ lable: 'Warning' }}
55
+ assistiveText={{ label: 'Warning' }}
48
56
  category="utility"
49
57
  colorVariant="error"
50
- name="warning"
58
+ name="error"
51
59
  />
52
60
  </div>
53
61
  </div>
@@ -92,6 +92,7 @@ const Icon = (props) => {
92
92
  colorVariant === 'default' && category === 'utility'
93
93
  ? !inverse
94
94
  : inverse,
95
+ 'slds-icon-text-success': colorVariant === 'success',
95
96
  'slds-icon-text-warning': colorVariant === 'warning',
96
97
  'slds-icon-text-error': colorVariant === 'error',
97
98
  'slds-icon-text-light': colorVariant === 'light',
@@ -163,6 +164,7 @@ Icon.propTypes = {
163
164
  'error',
164
165
  'light',
165
166
  'warning',
167
+ 'success',
166
168
  ]),
167
169
  /**
168
170
  * A custom SVG object to use instead of the supplied SLDS icons, look in `design-system-react/icons` for examples and syntax.
@@ -33,7 +33,7 @@ declare module '@salesforce/design-system-react/components/icon' {
33
33
  /**
34
34
  * Icon color variants
35
35
  */
36
- colorVariant?: 'base' | 'default' | 'error' | 'light' | 'warning';
36
+ colorVariant?: 'base' | 'default' | 'success' | 'error' | 'light' | 'warning';
37
37
  /**
38
38
  * A custom SVG object to use instead of the supplied SLDS icons, look in `design-system-react/icons` for examples and syntax.
39
39
  */
@@ -9534,6 +9534,10 @@
9534
9534
  {
9535
9535
  "value": "'warning'",
9536
9536
  "computed": false
9537
+ },
9538
+ {
9539
+ "value": "'success'",
9540
+ "computed": false
9537
9541
  }
9538
9542
  ]
9539
9543
  },
@@ -340,6 +340,30 @@ exports[`DOM snapshots SLDSIcon Color: Light 1`] = `
340
340
  </div>
341
341
  `;
342
342
 
343
+ exports[`DOM snapshots SLDSIcon Color: Success 1`] = `
344
+ <div
345
+ className="slds-p-around_medium"
346
+ >
347
+ <span
348
+ title="description of icon"
349
+ >
350
+ <svg
351
+ aria-hidden="true"
352
+ className="slds-icon slds-icon-text-success"
353
+ >
354
+ <use
355
+ href="/assets/icons/utility-sprite/svg/symbols.svg#announcement"
356
+ />
357
+ </svg>
358
+ <span
359
+ className="slds-assistive-text"
360
+ >
361
+ Description of icon
362
+ </span>
363
+ </span>
364
+ </div>
365
+ `;
366
+
343
367
  exports[`DOM snapshots SLDSIcon Color: Warning 1`] = `
344
368
  <div
345
369
  className="slds-p-around_medium"
@@ -544,6 +568,25 @@ exports[`DOM snapshots SLDSIcon Docs site Colors 1`] = `
544
568
  </span>
545
569
  </span>
546
570
  </div>
571
+ <div
572
+ className="slds-col_padded"
573
+ >
574
+ <span>
575
+ <svg
576
+ aria-hidden="true"
577
+ className="slds-icon slds-icon-text-success"
578
+ >
579
+ <use
580
+ href="/assets/icons/utility-sprite/svg/symbols.svg#success"
581
+ />
582
+ </svg>
583
+ <span
584
+ className="slds-assistive-text"
585
+ >
586
+ Success
587
+ </span>
588
+ </span>
589
+ </div>
547
590
  <div
548
591
  className="slds-col_padded"
549
592
  >
@@ -572,10 +615,14 @@ exports[`DOM snapshots SLDSIcon Docs site Colors 1`] = `
572
615
  className="slds-icon slds-icon-text-error"
573
616
  >
574
617
  <use
575
- href="/assets/icons/utility-sprite/svg/symbols.svg#warning"
618
+ href="/assets/icons/utility-sprite/svg/symbols.svg#error"
576
619
  />
577
620
  </svg>
578
-
621
+ <span
622
+ className="slds-assistive-text"
623
+ >
624
+ Warning
625
+ </span>
579
626
  </span>
580
627
  </div>
581
628
  </div>
@@ -12,6 +12,7 @@ import Custom from '../__examples__/custom';
12
12
  import ExternalPath from '../__examples__/external-path';
13
13
  import ColorBase from '../__examples__/color-base';
14
14
  import ColorDefault from '../__examples__/color-default';
15
+ import ColorSuccess from '../__examples__/color-success';
15
16
  import ColorError from '../__examples__/color-error';
16
17
  import ColorWarning from '../__examples__/color-warning';
17
18
  import ColorLight from '../__examples__/color-light';
@@ -61,6 +62,7 @@ storiesOf(ICON, module)
61
62
  </div>
62
63
  ))
63
64
  .add('Color: Default', () => <ColorDefault />)
65
+ .add('Color: Success', () => <ColorSuccess />)
64
66
  .add('Color: Error', () => <ColorError />)
65
67
  .add('Color: Warning', () => <ColorWarning />)
66
68
  .add('Color: Light', () => <ColorLight />)
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+
3
+ import Icon from '~/components/icon'; // `~` is replaced with design-system-react at runtime
4
+ import IconSettings from '~/components/icon-settings';
5
+
6
+ class Example extends React.Component {
7
+ static displayName = 'IconExample';
8
+
9
+ render() {
10
+ return (
11
+ <IconSettings iconPath="/assets/icons">
12
+ <Icon
13
+ assistiveText={{ label: 'Description of icon' }}
14
+ category="utility"
15
+ colorVariant="success"
16
+ name="announcement"
17
+ title="description of icon"
18
+ />
19
+ </IconSettings>
20
+ );
21
+ }
22
+ }
23
+
24
+ export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime
@@ -34,6 +34,14 @@ class Example extends React.Component {
34
34
  name="lock"
35
35
  />
36
36
  </div>
37
+ <div className="slds-col_padded">
38
+ <Icon
39
+ assistiveText={{ label: 'Success' }}
40
+ category="utility"
41
+ colorVariant="success"
42
+ name="success"
43
+ />
44
+ </div>
37
45
  <div className="slds-col_padded">
38
46
  <Icon
39
47
  assistiveText={{ label: 'Warning' }}
@@ -44,10 +52,10 @@ class Example extends React.Component {
44
52
  </div>
45
53
  <div className="slds-col_padded">
46
54
  <Icon
47
- assistiveText={{ lable: 'Warning' }}
55
+ assistiveText={{ label: 'Warning' }}
48
56
  category="utility"
49
57
  colorVariant="error"
50
- name="warning"
58
+ name="error"
51
59
  />
52
60
  </div>
53
61
  </div>
@@ -84,6 +84,7 @@ var Icon = function Icon(props) {
84
84
  // if category is NOT `utility` and `inverse` is false (default), icon will be light // return false
85
85
  // if category is NOT `utility` and `inverse` is true, icon will be dark // return true
86
86
  'slds-icon-text-default': colorVariant === 'default' && category === 'utility' ? !inverse : inverse,
87
+ 'slds-icon-text-success': colorVariant === 'success',
87
88
  'slds-icon-text-warning': colorVariant === 'warning',
88
89
  'slds-icon-text-error': colorVariant === 'error',
89
90
  'slds-icon-text-light': colorVariant === 'light'
@@ -134,7 +135,7 @@ Icon.propTypes = {
134
135
  /**
135
136
  * Icon color variants
136
137
  */
137
- colorVariant: _propTypes.default.oneOf(['base', 'default', 'error', 'light', 'warning']),
138
+ colorVariant: _propTypes.default.oneOf(['base', 'default', 'error', 'light', 'warning', 'success']),
138
139
 
139
140
  /**
140
141
  * A custom SVG object to use instead of the supplied SLDS icons, look in `design-system-react/icons` for examples and syntax.
@@ -33,7 +33,7 @@ declare module '@salesforce/design-system-react/components/icon' {
33
33
  /**
34
34
  * Icon color variants
35
35
  */
36
- colorVariant?: 'base' | 'default' | 'error' | 'light' | 'warning';
36
+ colorVariant?: 'base' | 'default' | 'success' | 'error' | 'light' | 'warning';
37
37
  /**
38
38
  * A custom SVG object to use instead of the supplied SLDS icons, look in `design-system-react/icons` for examples and syntax.
39
39
  */
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-system-react",
3
- "version": "0.10.42",
3
+ "version": "0.10.43",
4
4
  "description": "Salesforce Lightning Design System for React",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "engines": {},
@@ -9534,6 +9534,10 @@
9534
9534
  {
9535
9535
  "value": "'warning'",
9536
9536
  "computed": false
9537
+ },
9538
+ {
9539
+ "value": "'success'",
9540
+ "computed": false
9537
9541
  }
9538
9542
  ]
9539
9543
  },
@@ -340,6 +340,30 @@ exports[`DOM snapshots SLDSIcon Color: Light 1`] = `
340
340
  </div>
341
341
  `;
342
342
 
343
+ exports[`DOM snapshots SLDSIcon Color: Success 1`] = `
344
+ <div
345
+ className="slds-p-around_medium"
346
+ >
347
+ <span
348
+ title="description of icon"
349
+ >
350
+ <svg
351
+ aria-hidden="true"
352
+ className="slds-icon slds-icon-text-success"
353
+ >
354
+ <use
355
+ href="/assets/icons/utility-sprite/svg/symbols.svg#announcement"
356
+ />
357
+ </svg>
358
+ <span
359
+ className="slds-assistive-text"
360
+ >
361
+ Description of icon
362
+ </span>
363
+ </span>
364
+ </div>
365
+ `;
366
+
343
367
  exports[`DOM snapshots SLDSIcon Color: Warning 1`] = `
344
368
  <div
345
369
  className="slds-p-around_medium"
@@ -544,6 +568,25 @@ exports[`DOM snapshots SLDSIcon Docs site Colors 1`] = `
544
568
  </span>
545
569
  </span>
546
570
  </div>
571
+ <div
572
+ className="slds-col_padded"
573
+ >
574
+ <span>
575
+ <svg
576
+ aria-hidden="true"
577
+ className="slds-icon slds-icon-text-success"
578
+ >
579
+ <use
580
+ href="/assets/icons/utility-sprite/svg/symbols.svg#success"
581
+ />
582
+ </svg>
583
+ <span
584
+ className="slds-assistive-text"
585
+ >
586
+ Success
587
+ </span>
588
+ </span>
589
+ </div>
547
590
  <div
548
591
  className="slds-col_padded"
549
592
  >
@@ -572,10 +615,14 @@ exports[`DOM snapshots SLDSIcon Docs site Colors 1`] = `
572
615
  className="slds-icon slds-icon-text-error"
573
616
  >
574
617
  <use
575
- href="/assets/icons/utility-sprite/svg/symbols.svg#warning"
618
+ href="/assets/icons/utility-sprite/svg/symbols.svg#error"
576
619
  />
577
620
  </svg>
578
-
621
+ <span
622
+ className="slds-assistive-text"
623
+ >
624
+ Warning
625
+ </span>
579
626
  </span>
580
627
  </div>
581
628
  </div>
@@ -12,6 +12,7 @@ import Custom from '../__examples__/custom';
12
12
  import ExternalPath from '../__examples__/external-path';
13
13
  import ColorBase from '../__examples__/color-base';
14
14
  import ColorDefault from '../__examples__/color-default';
15
+ import ColorSuccess from '../__examples__/color-success';
15
16
  import ColorError from '../__examples__/color-error';
16
17
  import ColorWarning from '../__examples__/color-warning';
17
18
  import ColorLight from '../__examples__/color-light';
@@ -75,6 +76,8 @@ storiesOf(ICON, module).addDecorator(function (getStory) {
75
76
  }, /*#__PURE__*/React.createElement(ColorBase, null));
76
77
  }).add('Color: Default', function () {
77
78
  return /*#__PURE__*/React.createElement(ColorDefault, null);
79
+ }).add('Color: Success', function () {
80
+ return /*#__PURE__*/React.createElement(ColorSuccess, null);
78
81
  }).add('Color: Error', function () {
79
82
  return /*#__PURE__*/React.createElement(ColorError, null);
80
83
  }).add('Color: Warning', function () {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../.tmp-es/components/icon/__docs__/storybook-stories.jsx"],"names":["React","storiesOf","ICON","Icon","IconSettings","download","Standard","Utility","Action","Doctype","Custom","ExternalPath","ColorBase","ColorDefault","ColorError","ColorWarning","ColorLight","SizesExtraSmall","SizesSmall","SizesMedium","SizesLarge","Categories","Colors","Sizes","UNSAFE_DirectionSettings","ProductThemes","makeRtl","component","module","addDecorator","getStory","add","backgroundColor","padding","label","fill"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,SAAT,QAA0B,kBAA1B;AACA,SAASC,IAAT,QAAqB,8BAArB;AACA,OAAOC,IAAP,MAAiB,YAAjB;AACA,OAAOC,YAAP,MAAyB,qBAAzB;AACA,OAAOC,QAAP,MAAqB,iCAArB;AACA,OAAOC,QAAP,MAAqB,0BAArB;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,MAAP,MAAmB,wBAAnB;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,MAAP,MAAmB,wBAAnB;AACA,OAAOC,YAAP,MAAyB,+BAAzB;AACA,OAAOC,SAAP,MAAsB,4BAAtB;AACA,OAAOC,YAAP,MAAyB,+BAAzB;AACA,OAAOC,UAAP,MAAuB,6BAAvB;AACA,OAAOC,YAAP,MAAyB,+BAAzB;AACA,OAAOC,UAAP,MAAuB,6BAAvB;AACA,OAAOC,eAAP,MAA4B,mCAA5B;AACA,OAAOC,UAAP,MAAuB,6BAAvB;AACA,OAAOC,WAAP,MAAwB,8BAAxB;AACA,OAAOC,UAAP,MAAuB,6BAAvB;AACA,OAAOC,UAAP,MAAuB,4BAAvB;AACA,OAAOC,MAAP,MAAmB,wBAAnB;AACA,OAAOC,KAAP,MAAkB,uBAAlB,C,CACA;;AACA,OAAOC,wBAAP,MAAqC,kCAArC;AACA,OAAOC,aAAP,MAA0B,oCAA1B;;AAEA,IAAMC,OAAO,GAAG,SAAVA,OAAU,CAACC,SAAD;AAAA;AAAA;AACf;AACA,wBAAC,wBAAD,CAA0B,QAA1B;AAAmC,MAAA,KAAK,EAAC;AAAzC,oBACC;AAAK,MAAA,GAAG,EAAC;AAAT,OAAgBA,SAAhB,CADD;AAFe;AAAA,CAAhB;;AAOA1B,SAAS,CAACC,IAAD,EA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;AAAA,CAzDzB","sourcesContent":["import React from 'react';\nimport { storiesOf } from '@storybook/react';\nimport { ICON } from '../../../utilities/constants';\nimport Icon from '../../icon';\nimport IconSettings from '../../icon-settings';\nimport download from '../../../icons/utility/download';\nimport Standard from '../__examples__/standard';\nimport Utility from '../__examples__/utility';\nimport Action from '../__examples__/action';\nimport Doctype from '../__examples__/doctype';\nimport Custom from '../__examples__/custom';\nimport ExternalPath from '../__examples__/external-path';\nimport ColorBase from '../__examples__/color-base';\nimport ColorDefault from '../__examples__/color-default';\nimport ColorError from '../__examples__/color-error';\nimport ColorWarning from '../__examples__/color-warning';\nimport ColorLight from '../__examples__/color-light';\nimport SizesExtraSmall from '../__examples__/sizes-extra-small';\nimport SizesSmall from '../__examples__/sizes-small';\nimport SizesMedium from '../__examples__/sizes-medium';\nimport SizesLarge from '../__examples__/sizes-large';\nimport Categories from '../__examples__/categories';\nimport Colors from '../__examples__/colors';\nimport Sizes from '../__examples__/sizes';\n// eslint-disable-next-line camelcase\nimport UNSAFE_DirectionSettings from '../../utilities/UNSAFE_direction';\nimport ProductThemes from '../__examples__/product-themes.jsx';\n\nconst makeRtl = (component) => (\n\t// eslint-disable-next-line\n\t<UNSAFE_DirectionSettings.Provider value=\"rtl\">\n\t\t<div dir=\"rtl\">{component}</div>\n\t</UNSAFE_DirectionSettings.Provider>\n);\n\nstoriesOf(ICON, module)\n\t.addDecorator((getStory) => (\n\t\t<div className=\"slds-p-around_medium\">\n\t\t\t<IconSettings iconPath=\"/assets/icons\">{getStory()}</IconSettings>\n\t\t</div>\n\t))\n\t.add('Category: Standard', () => <Standard />)\n\t.add('Category: Standard - Right to Left (RTL)', () => makeRtl(<Standard />))\n\t.add('Category: Utility', () => <Utility />)\n\t.add('Category: Action', () => <Action />)\n\t.add('Category: Doctype', () => <Doctype />)\n\t.add('Category: Custom', () => <Custom />)\n\t.add('Category: External Path', () => <ExternalPath />)\n\t.add('Size: X-Small', () => <SizesExtraSmall />)\n\t.add('Size: Small', () => <SizesSmall />)\n\t.add('Size: Medium (default)', () => <SizesMedium />)\n\t.add('Size: Large', () => <SizesLarge />)\n\t.add('Color: Base', () => (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tbackgroundColor: 'goldenrod',\n\t\t\t\tpadding: '10px',\n\t\t\t}}\n\t\t>\n\t\t\t<ColorBase />\n\t\t</div>\n\t))\n\t.add('Color: Default', () => <ColorDefault />)\n\t.add('Color: Error', () => <ColorError />)\n\t.add('Color: Warning', () => <ColorWarning />)\n\t.add('Color: Light', () => <ColorLight />)\n\t.add('Base: Standard (custom styles)', () => (\n\t\t<Icon\n\t\t\tassistiveText={{\n\t\t\t\tlabel: 'Account',\n\t\t\t}}\n\t\t\tcategory=\"standard\"\n\t\t\tname=\"account\"\n\t\t\tstyle={{\n\t\t\t\tbackgroundColor: '#aceace',\n\t\t\t\tfill: 'orangered',\n\t\t\t}}\n\t\t\ttitle=\"This is a title\"\n\t\t/>\n\t))\n\t.add('Base: Imported', () => (\n\t\t<Icon\n\t\t\tassistiveText={{\n\t\t\t\tlabel: 'Download',\n\t\t\t}}\n\t\t\tcategory=\"utility\"\n\t\t\ticon={download}\n\t\t/>\n\t))\n\t.add('Product Themes', () => <ProductThemes />)\n\t.add('Docs site Categories', () => <Categories />)\n\t.add('Docs site Colors', () => <Colors />)\n\t.add('Docs site Sizes', () => <Sizes />);\n"],"file":"storybook-stories.js"}
1
+ {"version":3,"sources":["../../../../.tmp-es/components/icon/__docs__/storybook-stories.jsx"],"names":["React","storiesOf","ICON","Icon","IconSettings","download","Standard","Utility","Action","Doctype","Custom","ExternalPath","ColorBase","ColorDefault","ColorSuccess","ColorError","ColorWarning","ColorLight","SizesExtraSmall","SizesSmall","SizesMedium","SizesLarge","Categories","Colors","Sizes","UNSAFE_DirectionSettings","ProductThemes","makeRtl","component","module","addDecorator","getStory","add","backgroundColor","padding","label","fill"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,SAAT,QAA0B,kBAA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nimport { ICON } from '../../../utilities/constants';\nimport Icon from '../../icon';\nimport IconSettings from '../../icon-settings';\nimport download from '../../../icons/utility/download';\nimport Standard from '../__examples__/standard';\nimport Utility from '../__examples__/utility';\nimport Action from '../__examples__/action';\nimport Doctype from '../__examples__/doctype';\nimport Custom from '../__examples__/custom';\nimport ExternalPath from '../__examples__/external-path';\nimport ColorBase from '../__examples__/color-base';\nimport ColorDefault from '../__examples__/color-default';\nimport ColorSuccess from '../__examples__/color-success';\nimport ColorError from '../__examples__/color-error';\nimport ColorWarning from '../__examples__/color-warning';\nimport ColorLight from '../__examples__/color-light';\nimport SizesExtraSmall from '../__examples__/sizes-extra-small';\nimport SizesSmall from '../__examples__/sizes-small';\nimport SizesMedium from '../__examples__/sizes-medium';\nimport SizesLarge from '../__examples__/sizes-large';\nimport Categories from '../__examples__/categories';\nimport Colors from '../__examples__/colors';\nimport Sizes from '../__examples__/sizes';\n// eslint-disable-next-line camelcase\nimport UNSAFE_DirectionSettings from '../../utilities/UNSAFE_direction';\nimport ProductThemes from '../__examples__/product-themes.jsx';\n\nconst makeRtl = (component) => (\n\t// eslint-disable-next-line\n\t<UNSAFE_DirectionSettings.Provider value=\"rtl\">\n\t\t<div dir=\"rtl\">{component}</div>\n\t</UNSAFE_DirectionSettings.Provider>\n);\n\nstoriesOf(ICON, module)\n\t.addDecorator((getStory) => (\n\t\t<div className=\"slds-p-around_medium\">\n\t\t\t<IconSettings iconPath=\"/assets/icons\">{getStory()}</IconSettings>\n\t\t</div>\n\t))\n\t.add('Category: Standard', () => <Standard />)\n\t.add('Category: Standard - Right to Left (RTL)', () => makeRtl(<Standard />))\n\t.add('Category: Utility', () => <Utility />)\n\t.add('Category: Action', () => <Action />)\n\t.add('Category: Doctype', () => <Doctype />)\n\t.add('Category: Custom', () => <Custom />)\n\t.add('Category: External Path', () => <ExternalPath />)\n\t.add('Size: X-Small', () => <SizesExtraSmall />)\n\t.add('Size: Small', () => <SizesSmall />)\n\t.add('Size: Medium (default)', () => <SizesMedium />)\n\t.add('Size: Large', () => <SizesLarge />)\n\t.add('Color: Base', () => (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tbackgroundColor: 'goldenrod',\n\t\t\t\tpadding: '10px',\n\t\t\t}}\n\t\t>\n\t\t\t<ColorBase />\n\t\t</div>\n\t))\n\t.add('Color: Default', () => <ColorDefault />)\n\t.add('Color: Success', () => <ColorSuccess />)\n\t.add('Color: Error', () => <ColorError />)\n\t.add('Color: Warning', () => <ColorWarning />)\n\t.add('Color: Light', () => <ColorLight />)\n\t.add('Base: Standard (custom styles)', () => (\n\t\t<Icon\n\t\t\tassistiveText={{\n\t\t\t\tlabel: 'Account',\n\t\t\t}}\n\t\t\tcategory=\"standard\"\n\t\t\tname=\"account\"\n\t\t\tstyle={{\n\t\t\t\tbackgroundColor: '#aceace',\n\t\t\t\tfill: 'orangered',\n\t\t\t}}\n\t\t\ttitle=\"This is a title\"\n\t\t/>\n\t))\n\t.add('Base: Imported', () => (\n\t\t<Icon\n\t\t\tassistiveText={{\n\t\t\t\tlabel: 'Download',\n\t\t\t}}\n\t\t\tcategory=\"utility\"\n\t\t\ticon={download}\n\t\t/>\n\t))\n\t.add('Product Themes', () => <ProductThemes />)\n\t.add('Docs site Categories', () => <Categories />)\n\t.add('Docs site Colors', () => <Colors />)\n\t.add('Docs site Sizes', () => <Sizes />);\n"],"file":"storybook-stories.js"}
@@ -0,0 +1,64 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
+
3
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
+
5
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
6
+
7
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8
+
9
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
10
+
11
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
+
13
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
+
15
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
16
+
17
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
+
19
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
+
21
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
+
23
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24
+
25
+ import React from 'react';
26
+ import Icon from "../../../../components/icon"; // `~` is replaced with design-system-react at runtime
27
+
28
+ import IconSettings from "../../../../components/icon-settings";
29
+
30
+ var Example = /*#__PURE__*/function (_React$Component) {
31
+ _inherits(Example, _React$Component);
32
+
33
+ var _super = _createSuper(Example);
34
+
35
+ function Example() {
36
+ _classCallCheck(this, Example);
37
+
38
+ return _super.apply(this, arguments);
39
+ }
40
+
41
+ _createClass(Example, [{
42
+ key: "render",
43
+ value: function render() {
44
+ return /*#__PURE__*/React.createElement(IconSettings, {
45
+ iconPath: "/assets/icons"
46
+ }, /*#__PURE__*/React.createElement(Icon, {
47
+ assistiveText: {
48
+ label: 'Description of icon'
49
+ },
50
+ category: "utility",
51
+ colorVariant: "success",
52
+ name: "announcement",
53
+ title: "description of icon"
54
+ }));
55
+ }
56
+ }]);
57
+
58
+ return Example;
59
+ }(React.Component);
60
+
61
+ _defineProperty(Example, "displayName", 'IconExample');
62
+
63
+ export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime
64
+ //# sourceMappingURL=color-success.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../.tmp-es/components/icon/__examples__/color-success.jsx"],"names":["React","Icon","IconSettings","Example","label","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,IAAP,MAAiB,6BAAjB,C,CAAsC;;AACtC,OAAOC,YAAP,MAAyB,sCAAzB;;IAEMC,O;;;;;;;;;;;;;WAGL,kBAAS;AACR,0BACC,oBAAC,YAAD;AAAc,QAAA,QAAQ,EAAC;AAAvB,sBACC,oBAAC,IAAD;AACC,QAAA,aAAa,EAAE;AAAEC,UAAAA,KAAK,EAAE;AAAT,SADhB;AAEC,QAAA,QAAQ,EAAC,SAFV;AAGC,QAAA,YAAY,EAAC,SAHd;AAIC,QAAA,IAAI,EAAC,cAJN;AAKC,QAAA,KAAK,EAAC;AALP,QADD,CADD;AAWA;;;;EAfoBJ,KAAK,CAACK,S;;gBAAtBF,O,iBACgB,a;;AAiBtB,eAAeA,OAAf,C,CAAwB","sourcesContent":["import React from 'react';\n\nimport Icon from '~/components/icon'; // `~` is replaced with design-system-react at runtime\nimport IconSettings from '~/components/icon-settings';\n\nclass Example extends React.Component {\n\tstatic displayName = 'IconExample';\n\n\trender() {\n\t\treturn (\n\t\t\t<IconSettings iconPath=\"/assets/icons\">\n\t\t\t\t<Icon\n\t\t\t\t\tassistiveText={{ label: 'Description of icon' }}\n\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\tcolorVariant=\"success\"\n\t\t\t\t\tname=\"announcement\"\n\t\t\t\t\ttitle=\"description of icon\"\n\t\t\t\t/>\n\t\t\t</IconSettings>\n\t\t);\n\t}\n}\n\nexport default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime\n"],"file":"color-success.js"}
@@ -73,6 +73,15 @@ var Example = /*#__PURE__*/function (_React$Component) {
73
73
  name: "lock"
74
74
  })), /*#__PURE__*/React.createElement("div", {
75
75
  className: "slds-col_padded"
76
+ }, /*#__PURE__*/React.createElement(Icon, {
77
+ assistiveText: {
78
+ label: 'Success'
79
+ },
80
+ category: "utility",
81
+ colorVariant: "success",
82
+ name: "success"
83
+ })), /*#__PURE__*/React.createElement("div", {
84
+ className: "slds-col_padded"
76
85
  }, /*#__PURE__*/React.createElement(Icon, {
77
86
  assistiveText: {
78
87
  label: 'Warning'
@@ -84,11 +93,11 @@ var Example = /*#__PURE__*/function (_React$Component) {
84
93
  className: "slds-col_padded"
85
94
  }, /*#__PURE__*/React.createElement(Icon, {
86
95
  assistiveText: {
87
- lable: 'Warning'
96
+ label: 'Warning'
88
97
  },
89
98
  category: "utility",
90
99
  colorVariant: "error",
91
- name: "warning"
100
+ name: "error"
92
101
  }))));
93
102
  }
94
103
  }]);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../.tmp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A,SAAS,EAAC;AAAf,sBACC,oBAAC,IAAD;AACC,QAAA,aAAa,EAAE;AAAEC,UAAAA,KAAK,EAAE;AAAT,SADhB;AAEC,QAAA,QAAQ,EAAC,SAFV;AAGC,QAAA,YAAY,EAAC,OAHd;AAIC,QAAA,IAAI,EAAC;AAJN,QADD,CAjCD,CADD,CADD;AA8CA;;;;EAlDoBL,KAAK,CAACM,S;;gBAAtBH,O,iBACgB,a;;AAoDtB,eAAeA,OAAf,C,CAAwB","sourcesContent":["import React from 'react';\n\nimport IconSettings from '~/components/icon-settings';\nimport Icon from '~/components/icon'; // `~` is replaced with design-system-react at runtime\n\nclass Example extends React.Component {\n\tstatic displayName = 'IconExample';\n\n\trender() {\n\t\treturn (\n\t\t\t<IconSettings iconPath=\"/assets/icons\">\n\t\t\t\t<div className=\"slds-grid slds-grid_pull-padded slds-grid_vertical-align-center\">\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Lead' }}\n\t\t\t\t\t\t\tcategory=\"standard\"\n\t\t\t\t\t\t\tcolorVariant=\"base\"\n\t\t\t\t\t\t\tname=\"lead\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Lock' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"default\"\n\t\t\t\t\t\t\tname=\"lock\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Lock' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"light\"\n\t\t\t\t\t\t\tname=\"lock\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Warning' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"warning\"\n\t\t\t\t\t\t\tname=\"warning\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ lable: 'Warning' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"error\"\n\t\t\t\t\t\t\tname=\"warning\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</IconSettings>\n\t\t);\n\t}\n}\n\nexport default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime\n"],"file":"colors.js"}
1
+ {"version":3,"sources":["../../../../.tmp-es/components/icon/__examples__/colors.jsx"],"names":["React","IconSettings","Icon","Example","label","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,YAAP,MAAyB,sCAAzB;AACA,OAAOC,IAAP,MAAiB,6BAAjB,C,CAAsC;;IAEhCC,O;;;;;;;;;;;;;WAGL,kBAAS;AACR,0BACC,oBAAC,YAAD;AAAc,QAAA,QAAQ,EAAC;AAAvB,sBACC;AAAK,QAAA,SAAS,EAAC;AAAf,sBACC;AAAK,QAAA,SAAS,EAAC;AAAf,sBACC,oBAAC,IAAD;AACC,QAAA,aAAa,EAAE;AAAEC,UAAAA,KAAK,EAAE;AAAT,SADhB;AAEC,QAAA,QAAQ,EAAC,UAFV;AAGC,QAAA,YAAY,EAAC,MAHd;AAIC,QAAA,IAAI,EAAC;AAJN,QADD,CADD,eASC;AAAK,QAAA,SAAS,EAAC;AAAf,sBACC,oBAAC,IAAD;AACC,QAAA,aAAa,EAAE;AAAEA,UAAAA,KAAK,EAAE;AAAT,SADhB;AAEC,QAAA,QAAQ,EAAC,SAFV;AAGC,QAAA,YAAY,EAAC,SAHd;AAIC,QAAA,IAAI,EAAC;AAJN,QADD,CATD,eAiBC;AAAK,QAAA,SAAS,EAAC;AAAf,sBACC,oBAAC,IAAD;AACC,QAAA,aAAa,EAAE;AAAEA,UAAAA,KAAK,EAAE;AAAT,SADhB;AAEC,QAAA,QAAQ,EAAC,SAFV;AAGC,QAAA,YAAY,EAAC,OAHd;AAIC,QAAA,IAAI,EAAC;AAJN,QADD,CAjBD,eAyBC;AAAK,QAAA,SAAS,EAAC;AAAf,sBACC,oBAAC,IAAD;AACC,QAAA,aAAa,EAAE;AAAEA,UAAAA,KAAK,EAAE;AAAT,SADhB;AAEC,QAAA,QAAQ,EAAC,SAFV;AAGC,QAAA,YAAY,EAAC,SAHd;AAIC,QAAA,IAAI,EAAC;AAJN,QADD,CAzBD,eAiCC;AAAK,QAAA,SAAS,EAAC;AAAf,sBACC,oBAAC,IAAD;AACC,QAAA,aAAa,EAAE;AAAEA,UAAAA,KAAK,EAAE;AAAT,SADhB;AAEC,QAAA,QAAQ,EAAC,SAFV;AAGC,QAAA,YAAY,EAAC,SAHd;AAIC,QAAA,IAAI,EAAC;AAJN,QADD,CAjCD,eAyCC;AAAK,QAAA,SAAS,EAAC;AAAf,sBACC,oBAAC,IAAD;AACC,QAAA,aAAa,EAAE;AAAEA,UAAAA,KAAK,EAAE;AAAT,SADhB;AAEC,QAAA,QAAQ,EAAC,SAFV;AAGC,QAAA,YAAY,EAAC,OAHd;AAIC,QAAA,IAAI,EAAC;AAJN,QADD,CAzCD,CADD,CADD;AAsDA;;;;EA1DoBJ,KAAK,CAACK,S;;gBAAtBF,O,iBACgB,a;;AA4DtB,eAAeA,OAAf,C,CAAwB","sourcesContent":["import React from 'react';\n\nimport IconSettings from '~/components/icon-settings';\nimport Icon from '~/components/icon'; // `~` is replaced with design-system-react at runtime\n\nclass Example extends React.Component {\n\tstatic displayName = 'IconExample';\n\n\trender() {\n\t\treturn (\n\t\t\t<IconSettings iconPath=\"/assets/icons\">\n\t\t\t\t<div className=\"slds-grid slds-grid_pull-padded slds-grid_vertical-align-center\">\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Lead' }}\n\t\t\t\t\t\t\tcategory=\"standard\"\n\t\t\t\t\t\t\tcolorVariant=\"base\"\n\t\t\t\t\t\t\tname=\"lead\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Lock' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"default\"\n\t\t\t\t\t\t\tname=\"lock\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Lock' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"light\"\n\t\t\t\t\t\t\tname=\"lock\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Success' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"success\"\n\t\t\t\t\t\t\tname=\"success\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Warning' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"warning\"\n\t\t\t\t\t\t\tname=\"warning\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_padded\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{ label: 'Warning' }}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tcolorVariant=\"error\"\n\t\t\t\t\t\t\tname=\"error\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</IconSettings>\n\t\t);\n\t}\n}\n\nexport default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime\n"],"file":"colors.js"}
@@ -75,6 +75,7 @@ var Icon = function Icon(props) {
75
75
  // if category is NOT `utility` and `inverse` is false (default), icon will be light // return false
76
76
  // if category is NOT `utility` and `inverse` is true, icon will be dark // return true
77
77
  'slds-icon-text-default': colorVariant === 'default' && category === 'utility' ? !inverse : inverse,
78
+ 'slds-icon-text-success': colorVariant === 'success',
78
79
  'slds-icon-text-warning': colorVariant === 'warning',
79
80
  'slds-icon-text-error': colorVariant === 'error',
80
81
  'slds-icon-text-light': colorVariant === 'light'
@@ -125,7 +126,7 @@ Icon.propTypes = {
125
126
  /**
126
127
  * Icon color variants
127
128
  */
128
- colorVariant: PropTypes.oneOf(['base', 'default', 'error', 'light', 'warning']),
129
+ colorVariant: PropTypes.oneOf(['base', 'default', 'error', 'light', 'warning', 'success']),
129
130
 
130
131
  /**
131
132
  * A custom SVG object to use instead of the supplied SLDS icons, look in `design-system-react/icons` for examples and syntax.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.tmp-es/components/icon/index.jsx"],"names":["React","PropTypes","checkProps","componentDoc","classNames","UtilityIcon","IconBackgrounds","ICON","defaultProps","assistiveText","category","colorVariant","size","Icon","props","className","containerClassName","containerStyle","icon","inverse","name","path","title","productTheme","style","backgroundColor","label","kababCaseName","replace","displayName","propTypes","shape","string","oneOf","isRequired","oneOfType","array","object","bool"],"mappings":";;;;;;AAAA;;AACA;AAEA;AACA,OAAOA,K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ACD;AACA;AACClB,EAAAA,OAAO,EAAElB,SAAS,CAACqC,IAxDH;;AAyDhB;AACD;AACA;AACClB,EAAAA,IAAI,EAAEnB,SAAS,CAAC+B,MA5DA;;AA6DhB;AACD;AACA;AACCX,EAAAA,IAAI,EAAEpB,SAAS,CAAC+B,MAhEA;;AAiEhB;AACD;AACA;AACCT,EAAAA,YAAY,EAAEtB,SAAS,CAACgC,KAAV,CAAgB,CAC7B,cAD6B,EAE7B,eAF6B,EAG7B,gBAH6B,EAI7B,aAJ6B,EAK7B,gBAL6B,EAM7B,iBAN6B,EAO7B,iBAP6B,EAQ7B,MAR6B,CAAhB,CApEE;;AA8EhB;AACD;AACA;AACCrB,EAAAA,IAAI,EAAEX,SAAS,CAACgC,KAAV,CAAgB,CAAC,UAAD,EAAa,SAAb,EAAwB,OAAxB,EAAiC,QAAjC,EAA2C,OAA3C,CAAhB,CAjFU;;AAkFhB;AACD;AACA;AACCT,EAAAA,KAAK,EAAEvB,SAAS,CAACoC,MArFD;;AAsFhB;AACD;AACA;AACCf,EAAAA,KAAK,EAAErB,SAAS,CAAC+B;AAzFD,CAAjB;AA4FAnB,IAAI,CAACL,YAAL,GAAoBA,YAApB;AAEA,eAAeK,IAAf","sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// # Icon Component\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// A simple javascript utility for conditionally joining classNames together.\nimport classNames from '../../utilities/class-names';\n\n// ## Children\nimport UtilityIcon from '../utilities/utility-icon';\n\nimport IconBackgrounds from '../../utilities/product-tokens/icon-backgrounds';\n\nimport { ICON } from '../../utilities/constants';\n\nconst defaultProps = {\n\tassistiveText: {},\n\tcategory: 'standard',\n\tcolorVariant: 'default',\n\tsize: 'medium',\n};\n\n/**\n * The Icon component is the Lightning Design System Icon component and should be used for naked icons. For icons that are buttons, use the <a href='/components/buttons/'>Button component</a> component with <code>variant='icon'</code>.\n */\nconst Icon = (props) => {\n\tcheckProps(ICON, props, componentDoc);\n\tconst {\n\t\tcategory,\n\t\tclassName,\n\t\tcolorVariant,\n\t\tcontainerClassName,\n\t\tcontainerStyle,\n\t\ticon,\n\t\tinverse,\n\t\tname,\n\t\tpath,\n\t\tsize,\n\t\ttitle,\n\t\tproductTheme,\n\t} = props;\n\n\tlet { style } = props;\n\tif (productTheme) {\n\t\tstyle = { backgroundColor: IconBackgrounds[productTheme], ...style };\n\t}\n\tconst assistiveText =\n\t\ttypeof props.assistiveText === 'string'\n\t\t\t? props.assistiveText\n\t\t\t: {\n\t\t\t\t\t...defaultProps.assistiveText,\n\t\t\t\t\t...props.assistiveText,\n\t\t\t }.label;\n\n\tconst kababCaseName = name ? name.replace(/_/g, '-') : '';\n\n\treturn (\n\t\t<span\n\t\t\tclassName={classNames(\n\t\t\t\t{\n\t\t\t\t\t'slds-icon_container': category !== 'utility',\n\t\t\t\t\t'slds-icon_container_circle': category === 'action',\n\t\t\t\t\t[`slds-icon-${category}-${kababCaseName}`]:\n\t\t\t\t\t\tcategory !== 'utility' && category !== 'doctype' && !path,\n\t\t\t\t},\n\t\t\t\tcontainerClassName\n\t\t\t)}\n\t\t\tstyle={containerStyle}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<UtilityIcon\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tcategory={category}\n\t\t\t\tclassName={classNames(className, 'slds-icon', {\n\t\t\t\t\t'slds-icon_xx-small': size === 'xx-small',\n\t\t\t\t\t'slds-icon_x-small': size === 'x-small',\n\t\t\t\t\t'slds-icon_small': size === 'small',\n\t\t\t\t\t// medium intentially not present\n\t\t\t\t\t'slds-icon_large': size === 'large',\n\t\t\t\t\t// if category is `utility` and `inverse` is false (default), icon will be dark // return true\n\t\t\t\t\t// if category is `utility` and `inverse` is true, icon will be light // return false\n\t\t\t\t\t// if category is NOT `utility` and `inverse` is false (default), icon will be light // return false\n\t\t\t\t\t// if category is NOT `utility` and `inverse` is true, icon will be dark // return true\n\t\t\t\t\t'slds-icon-text-default':\n\t\t\t\t\t\tcolorVariant === 'default' && category === 'utility'\n\t\t\t\t\t\t\t? !inverse\n\t\t\t\t\t\t\t: inverse,\n\t\t\t\t\t'slds-icon-text-warning': colorVariant === 'warning',\n\t\t\t\t\t'slds-icon-text-error': colorVariant === 'error',\n\t\t\t\t\t'slds-icon-text-light': colorVariant === 'light',\n\t\t\t\t})}\n\t\t\t\ticon={icon}\n\t\t\t\tname={name}\n\t\t\t\tpath={path}\n\t\t\t\tstyle={style}\n\t\t\t/>\n\t\t\t{assistiveText ? (\n\t\t\t\t<span className=\"slds-assistive-text\">{assistiveText}</span>\n\t\t\t) : (\n\t\t\t\t''\n\t\t\t)}\n\t\t</span>\n\t);\n};\n\n// ### Display Name\n// Always use the canonical component name as the React display name.\nIcon.displayName = ICON;\n\n// ### Prop Types\nIcon.propTypes = {\n\t/**\n\t * **Assistive text for accessibility.**\n\t * This object is merged with the default props object on every render.\n\t * * `label`: Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. Naked icons must have assistive text, however, if you also have visible descriptive text with the icon, declare this prop as <code>assistiveText=''</code>.\n\t */\n\tassistiveText: PropTypes.shape({\n\t\tlabel: PropTypes.string,\n\t}),\n\t/**\n\t * Icon category from [lightningdesignsystem.com/icons/](https://www.lightningdesignsystem.com/icons/)\n\t */\n\tcategory: PropTypes.oneOf([\n\t\t'action',\n\t\t'custom',\n\t\t'doctype',\n\t\t'standard',\n\t\t'utility',\n\t]).isRequired,\n\t/**\n\t * CSS classes that are applied to the SVG.\n\t */\n\tclassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * CSS classes that are applied to the span.\n\t */\n\tcontainerClassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * Styles that are applied to the span.\n\t */\n\tcontainerStyle: PropTypes.object,\n\t/**\n\t * Icon color variants\n\t */\n\tcolorVariant: PropTypes.oneOf([\n\t\t'base',\n\t\t'default',\n\t\t'error',\n\t\t'light',\n\t\t'warning',\n\t]),\n\t/**\n\t * A custom SVG object to use instead of the supplied SLDS icons, look in `design-system-react/icons` for examples and syntax.\n\t */\n\ticon: PropTypes.object,\n\t/**\n\t * Setting `inverse` to true will switch the color of the icon: light to dark, dark to light.\n\t */\n\tinverse: PropTypes.bool,\n\t/**\n\t * Name of the icon. Visit <a href='http://www.lightningdesignsystem.com/resources/icons'>Lightning Design System Icons</a> to reference icon names.\n\t */\n\tname: PropTypes.string,\n\t/**\n\t * Path to the icon. This will override any global icon settings\n\t */\n\tpath: PropTypes.string,\n\t/**\n\t * Background theme color for the icon. **Only compatible with icon category `standard`**\n\t */\n\tproductTheme: PropTypes.oneOf([\n\t\t'global-setup',\n\t\t'service-cloud',\n\t\t'industry-cloud',\n\t\t'sales-cloud',\n\t\t'commerce-cloud',\n\t\t'community-cloud',\n\t\t'marketing-cloud',\n\t\t'quip',\n\t]),\n\t/**\n\t * Size of the icon. Visit [lightningdesignsystem.com/components/icons/#flavor-sizes](https://www.lightningdesignsystem.com/components/icons/#flavor-sizes)\n\t */\n\tsize: PropTypes.oneOf(['xx-small', 'x-small', 'small', 'medium', 'large']),\n\t/**\n\t * Custom styles to be passed to the SVG. Could be used to change icon or background color.\n\t */\n\tstyle: PropTypes.object,\n\t/**\n\t * Title attribute for the icon container\n\t */\n\ttitle: PropTypes.string,\n};\n\nIcon.defaultProps = defaultProps;\n\nexport default Icon;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../.tmp-es/components/icon/index.jsx"],"names":["React","PropTypes","checkProps","componentDoc","classNames","UtilityIcon","IconBackgrounds","ICON","defaultProps","assistiveText","category","colorVariant","size","Icon","props","className","containerClassName","containerStyle","icon","inverse","name","path","title","productTheme","style","backgroundColor","label","kababCaseName","replace","displayName","propTypes","shape","string","oneOf","isRequired","oneOfType","array","object","bool"],"mappings":";;;;;;AAAA;;AACA;AAEA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,eAAvB;AACA,OAAOC,YAAP,MAAyB,kBAAzB,C,CAEA;AACA;AACA;;AACA,OAAOC,UAAP,MAAuB,6BAAvB,C,CAEA;;AACA,OAAOC,WAAP,MAAwB,2BAAxB;AAEA,OAAOC,eAAP,MAA4B,iDAA5B;AAEA,SAASC,IAAT,QAAqB,2BAArB;AAEA,IAAMC,YAAY,GAAG;AACpBC,EAAAA,aAAa,EAAE,EADK;AAEpBC,EAAAA,QAAQ,EAAE,UAFU;AAGpBC,EAAAA,YAAY,EAAE,SAHM;AAIpBC,EAAAA,IAAI,EAAE;AAJc,CAArB;AAOA;AACA;AACA;;AACA,IAAMC,IAAI,GAAG,SAAPA,IAAO,CAACC,KAAD,EAAW;AACvBZ,EAAAA,UAAU,CAACK,IAAD,EAAOO,KAAP,EAAcX,YAAd,CAAV;AACA,MACCO,QADD,GAaII,KAbJ,CACCJ,QADD;AAAA,MAECK,SAFD,GAaID,KAbJ,CAECC,SAFD;AAAA,MAGCJ,YAHD,GAaIG,KAbJ,CAGCH,YAHD;AAAA,MAICK,kBAJD,GAaIF,KAbJ,CAICE,kBAJD;AAAA,MAKCC,cALD,GAaIH,KAbJ,CAKCG,cALD;AAAA,MAMCC,IAND,GAaIJ,KAbJ,CAMCI,IAND;AAAA,MAOCC,OAPD,GAaIL,KAbJ,CAOCK,OAPD;AAAA,MAQCC,IARD,GAaIN,KAbJ,CAQCM,IARD;AAAA,MASCC,IATD,GAaIP,KAbJ,CASCO,IATD;AAAA,MAUCT,IAVD,GAaIE,KAbJ,CAUCF,IAVD;AAAA,MAWCU,KAXD,GAaIR,KAbJ,CAWCQ,KAXD;AA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AACgC,KAAV,CAAgB,CAC7B,MAD6B,EAE7B,SAF6B,EAG7B,OAH6B,EAI7B,OAJ6B,EAK7B,SAL6B,EAM7B,SAN6B,CAAhB,CA1CE;;AAkDhB;AACD;AACA;AACCf,EAAAA,IAAI,EAAEjB,SAAS,CAACoC,MArDA;;AAsDhB;AACD;AACA;AACClB,EAAAA,OAAO,EAAElB,SAAS,CAACqC,IAzDH;;AA0DhB;AACD;AACA;AACClB,EAAAA,IAAI,EAAEnB,SAAS,CAAC+B,MA7DA;;AA8DhB;AACD;AACA;AACCX,EAAAA,IAAI,EAAEpB,SAAS,CAAC+B,MAjEA;;AAkEhB;AACD;AACA;AACCT,EAAAA,YAAY,EAAEtB,SAAS,CAACgC,KAAV,CAAgB,CAC7B,cAD6B,EAE7B,eAF6B,EAG7B,gBAH6B,EAI7B,aAJ6B,EAK7B,gBAL6B,EAM7B,iBAN6B,EAO7B,iBAP6B,EAQ7B,MAR6B,CAAhB,CArEE;;AA+EhB;AACD;AACA;AACCrB,EAAAA,IAAI,EAAEX,SAAS,CAACgC,KAAV,CAAgB,CAAC,UAAD,EAAa,SAAb,EAAwB,OAAxB,EAAiC,QAAjC,EAA2C,OAA3C,CAAhB,CAlFU;;AAmFhB;AACD;AACA;AACCT,EAAAA,KAAK,EAAEvB,SAAS,CAACoC,MAtFD;;AAuFhB;AACD;AACA;AACCf,EAAAA,KAAK,EAAErB,SAAS,CAAC+B;AA1FD,CAAjB;AA6FAnB,IAAI,CAACL,YAAL,GAAoBA,YAApB;AAEA,eAAeK,IAAf","sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// # Icon Component\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// A simple javascript utility for conditionally joining classNames together.\nimport classNames from '../../utilities/class-names';\n\n// ## Children\nimport UtilityIcon from '../utilities/utility-icon';\n\nimport IconBackgrounds from '../../utilities/product-tokens/icon-backgrounds';\n\nimport { ICON } from '../../utilities/constants';\n\nconst defaultProps = {\n\tassistiveText: {},\n\tcategory: 'standard',\n\tcolorVariant: 'default',\n\tsize: 'medium',\n};\n\n/**\n * The Icon component is the Lightning Design System Icon component and should be used for naked icons. For icons that are buttons, use the <a href='/components/buttons/'>Button component</a> component with <code>variant='icon'</code>.\n */\nconst Icon = (props) => {\n\tcheckProps(ICON, props, componentDoc);\n\tconst {\n\t\tcategory,\n\t\tclassName,\n\t\tcolorVariant,\n\t\tcontainerClassName,\n\t\tcontainerStyle,\n\t\ticon,\n\t\tinverse,\n\t\tname,\n\t\tpath,\n\t\tsize,\n\t\ttitle,\n\t\tproductTheme,\n\t} = props;\n\n\tlet { style } = props;\n\tif (productTheme) {\n\t\tstyle = { backgroundColor: IconBackgrounds[productTheme], ...style };\n\t}\n\tconst assistiveText =\n\t\ttypeof props.assistiveText === 'string'\n\t\t\t? props.assistiveText\n\t\t\t: {\n\t\t\t\t\t...defaultProps.assistiveText,\n\t\t\t\t\t...props.assistiveText,\n\t\t\t }.label;\n\n\tconst kababCaseName = name ? name.replace(/_/g, '-') : '';\n\n\treturn (\n\t\t<span\n\t\t\tclassName={classNames(\n\t\t\t\t{\n\t\t\t\t\t'slds-icon_container': category !== 'utility',\n\t\t\t\t\t'slds-icon_container_circle': category === 'action',\n\t\t\t\t\t[`slds-icon-${category}-${kababCaseName}`]:\n\t\t\t\t\t\tcategory !== 'utility' && category !== 'doctype' && !path,\n\t\t\t\t},\n\t\t\t\tcontainerClassName\n\t\t\t)}\n\t\t\tstyle={containerStyle}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<UtilityIcon\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tcategory={category}\n\t\t\t\tclassName={classNames(className, 'slds-icon', {\n\t\t\t\t\t'slds-icon_xx-small': size === 'xx-small',\n\t\t\t\t\t'slds-icon_x-small': size === 'x-small',\n\t\t\t\t\t'slds-icon_small': size === 'small',\n\t\t\t\t\t// medium intentially not present\n\t\t\t\t\t'slds-icon_large': size === 'large',\n\t\t\t\t\t// if category is `utility` and `inverse` is false (default), icon will be dark // return true\n\t\t\t\t\t// if category is `utility` and `inverse` is true, icon will be light // return false\n\t\t\t\t\t// if category is NOT `utility` and `inverse` is false (default), icon will be light // return false\n\t\t\t\t\t// if category is NOT `utility` and `inverse` is true, icon will be dark // return true\n\t\t\t\t\t'slds-icon-text-default':\n\t\t\t\t\t\tcolorVariant === 'default' && category === 'utility'\n\t\t\t\t\t\t\t? !inverse\n\t\t\t\t\t\t\t: inverse,\n\t\t\t\t\t'slds-icon-text-success': colorVariant === 'success',\n\t\t\t\t\t'slds-icon-text-warning': colorVariant === 'warning',\n\t\t\t\t\t'slds-icon-text-error': colorVariant === 'error',\n\t\t\t\t\t'slds-icon-text-light': colorVariant === 'light',\n\t\t\t\t})}\n\t\t\t\ticon={icon}\n\t\t\t\tname={name}\n\t\t\t\tpath={path}\n\t\t\t\tstyle={style}\n\t\t\t/>\n\t\t\t{assistiveText ? (\n\t\t\t\t<span className=\"slds-assistive-text\">{assistiveText}</span>\n\t\t\t) : (\n\t\t\t\t''\n\t\t\t)}\n\t\t</span>\n\t);\n};\n\n// ### Display Name\n// Always use the canonical component name as the React display name.\nIcon.displayName = ICON;\n\n// ### Prop Types\nIcon.propTypes = {\n\t/**\n\t * **Assistive text for accessibility.**\n\t * This object is merged with the default props object on every render.\n\t * * `label`: Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. Naked icons must have assistive text, however, if you also have visible descriptive text with the icon, declare this prop as <code>assistiveText=''</code>.\n\t */\n\tassistiveText: PropTypes.shape({\n\t\tlabel: PropTypes.string,\n\t}),\n\t/**\n\t * Icon category from [lightningdesignsystem.com/icons/](https://www.lightningdesignsystem.com/icons/)\n\t */\n\tcategory: PropTypes.oneOf([\n\t\t'action',\n\t\t'custom',\n\t\t'doctype',\n\t\t'standard',\n\t\t'utility',\n\t]).isRequired,\n\t/**\n\t * CSS classes that are applied to the SVG.\n\t */\n\tclassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * CSS classes that are applied to the span.\n\t */\n\tcontainerClassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * Styles that are applied to the span.\n\t */\n\tcontainerStyle: PropTypes.object,\n\t/**\n\t * Icon color variants\n\t */\n\tcolorVariant: PropTypes.oneOf([\n\t\t'base',\n\t\t'default',\n\t\t'error',\n\t\t'light',\n\t\t'warning',\n\t\t'success',\n\t]),\n\t/**\n\t * A custom SVG object to use instead of the supplied SLDS icons, look in `design-system-react/icons` for examples and syntax.\n\t */\n\ticon: PropTypes.object,\n\t/**\n\t * Setting `inverse` to true will switch the color of the icon: light to dark, dark to light.\n\t */\n\tinverse: PropTypes.bool,\n\t/**\n\t * Name of the icon. Visit <a href='http://www.lightningdesignsystem.com/resources/icons'>Lightning Design System Icons</a> to reference icon names.\n\t */\n\tname: PropTypes.string,\n\t/**\n\t * Path to the icon. This will override any global icon settings\n\t */\n\tpath: PropTypes.string,\n\t/**\n\t * Background theme color for the icon. **Only compatible with icon category `standard`**\n\t */\n\tproductTheme: PropTypes.oneOf([\n\t\t'global-setup',\n\t\t'service-cloud',\n\t\t'industry-cloud',\n\t\t'sales-cloud',\n\t\t'commerce-cloud',\n\t\t'community-cloud',\n\t\t'marketing-cloud',\n\t\t'quip',\n\t]),\n\t/**\n\t * Size of the icon. Visit [lightningdesignsystem.com/components/icons/#flavor-sizes](https://www.lightningdesignsystem.com/components/icons/#flavor-sizes)\n\t */\n\tsize: PropTypes.oneOf(['xx-small', 'x-small', 'small', 'medium', 'large']),\n\t/**\n\t * Custom styles to be passed to the SVG. Could be used to change icon or background color.\n\t */\n\tstyle: PropTypes.object,\n\t/**\n\t * Title attribute for the icon container\n\t */\n\ttitle: PropTypes.string,\n};\n\nIcon.defaultProps = defaultProps;\n\nexport default Icon;\n"],"file":"index.js"}
@@ -33,7 +33,7 @@ declare module '@salesforce/design-system-react/components/icon' {
33
33
  /**
34
34
  * Icon color variants
35
35
  */
36
- colorVariant?: 'base' | 'default' | 'error' | 'light' | 'warning';
36
+ colorVariant?: 'base' | 'default' | 'success' | 'error' | 'light' | 'warning';
37
37
  /**
38
38
  * A custom SVG object to use instead of the supplied SLDS icons, look in `design-system-react/icons` for examples and syntax.
39
39
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/design-system-react",
3
- "version": "0.10.42",
3
+ "version": "0.10.43",
4
4
  "description": "Salesforce Lightning Design System for React",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "engines": {},