@carbon/charts 0.41.49 → 0.41.50
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/CHANGELOG.md +8 -0
- package/build/demo/data/index.d.ts +9 -3
- package/build/demo/data/wordcloud.d.ts +14 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/charts/wordcloud.d.ts +6 -0
- package/build/src/components/graphs/wordcloud.d.ts +10 -0
- package/build/src/components/index.d.ts +1 -0
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/charts.d.ts +23 -0
- package/build/src/interfaces/events.d.ts +9 -0
- package/bundle.js +1 -1
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/charts/wordcloud.d.ts +6 -0
- package/charts/wordcloud.js +46 -0
- package/charts/wordcloud.js.map +1 -0
- package/components/essentials/tooltip-axis.js +1 -1
- package/components/essentials/tooltip-axis.js.map +1 -1
- package/components/graphs/boxplot.js +2 -2
- package/components/graphs/boxplot.js.map +1 -1
- package/components/graphs/wordcloud.d.ts +10 -0
- package/components/graphs/wordcloud.js +229 -0
- package/components/graphs/wordcloud.js.map +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +22 -0
- package/configuration.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/index.d.ts +9 -3
- package/demo/data/index.js +25 -8
- package/demo/data/index.js.map +1 -1
- package/demo/data/wordcloud.d.ts +14 -0
- package/demo/data/wordcloud.js +105 -0
- package/demo/data/wordcloud.js.map +1 -0
- package/demo/styles.css +2824 -28
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +29 -15
- package/interfaces/charts.d.ts +23 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/events.d.ts +9 -0
- package/interfaces/events.js +10 -0
- package/interfaces/events.js.map +1 -1
- package/package.json +8 -7
- package/styles/_type.scss +4 -2
- package/styles/graphs/_wordcloud.scss +7 -0
- package/styles/graphs/index.scss +1 -0
- package/styles/vendor/@carbon/colors/README.md +4 -3
- package/styles/vendor/@carbon/colors/es/index.js +13 -12
- package/styles/vendor/@carbon/colors/lib/index.js +98 -93
- package/styles/vendor/@carbon/colors/package.json +14 -10
- package/styles/vendor/@carbon/colors/scss/colors.scss +1 -1
- package/styles/vendor/@carbon/colors/scss/index.scss +1 -1
- package/styles/vendor/@carbon/colors/scss/mixins.scss +33 -13
- package/styles/vendor/@carbon/colors/umd/index.js +99 -94
- package/styles/vendor/@carbon/elements/README.md +0 -6
- package/styles/vendor/@carbon/elements/es/index.js +4 -11
- package/styles/vendor/@carbon/elements/lib/index.js +959 -13
- package/styles/vendor/@carbon/elements/package.json +17 -13
- package/styles/vendor/@carbon/elements/scss/colors/colors.scss +1 -1
- package/styles/vendor/@carbon/elements/scss/colors/index.scss +1 -1
- package/styles/vendor/@carbon/elements/scss/colors/mixins.scss +33 -13
- package/styles/vendor/@carbon/elements/scss/grid/_inlined/_mixins.scss +82 -22
- package/styles/vendor/@carbon/elements/scss/grid/_mixins.scss +82 -22
- package/styles/vendor/@carbon/elements/scss/grid/modules/_breakpoint.scss +266 -0
- package/styles/vendor/@carbon/{themes/node_modules/@carbon/colors/scss/colors.scss → elements/scss/grid/modules/_config.scss} +6 -6
- package/styles/vendor/@carbon/elements/scss/grid/modules/_css-grid.scss +350 -0
- package/styles/vendor/@carbon/elements/scss/grid/modules/_mixins.scss +323 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/elements/scss/layout/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/elements/scss/layout/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/elements/scss/motion/motion.scss +24 -0
- package/styles/vendor/@carbon/elements/scss/themes/generated/_mixins.scss +643 -138
- package/styles/vendor/@carbon/elements/scss/themes/generated/_themes.scss +154 -77
- package/styles/vendor/@carbon/elements/scss/themes/generated/_tokens.scss +157 -75
- package/styles/vendor/@carbon/elements/scss/themes/modules/_theme.scss +50 -0
- package/styles/vendor/@carbon/elements/scss/themes/modules/_themes.scss +8 -0
- package/styles/vendor/@carbon/elements/scss/themes/modules/_utilities.scss +18 -0
- package/styles/vendor/@carbon/elements/scss/themes/modules/generated/_themes.scss +247 -0
- package/styles/vendor/@carbon/elements/scss/type/_font-family.scss +2 -2
- package/styles/vendor/@carbon/elements/scss/type/_inlined/_font-family.scss +2 -2
- package/styles/vendor/@carbon/elements/scss/type/_inlined/_reset.scss +9 -3
- package/styles/vendor/@carbon/elements/scss/type/_inlined/_scale.scss +2 -2
- package/styles/vendor/@carbon/elements/scss/type/_inlined/_styles.scss +60 -57
- package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_mono.scss +72 -72
- package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_sans-condensed.scss +302 -0
- package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_sans.scss +84 -84
- package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_serif.scss +72 -72
- package/styles/vendor/@carbon/elements/scss/type/_reset.scss +9 -3
- package/styles/vendor/@carbon/elements/scss/type/_scale.scss +2 -2
- package/styles/vendor/@carbon/elements/scss/type/_styles.scss +60 -57
- package/styles/vendor/@carbon/elements/scss/type/font-face/_mono.scss +72 -72
- package/styles/vendor/@carbon/elements/scss/type/font-face/_sans-condensed.scss +302 -0
- package/styles/vendor/@carbon/elements/scss/type/font-face/_sans.scss +84 -84
- package/styles/vendor/@carbon/elements/scss/type/font-face/_serif.scss +72 -72
- package/styles/vendor/@carbon/elements/scss/type/modules/_classes.scss +42 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_font-family.scss +70 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_prefix.scss +11 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_reset.scss +92 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_scale.scss +56 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_styles.scss +713 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/elements/src/__tests__/PublicAPI-test.js +12 -0
- package/styles/vendor/@carbon/elements/src/__tests__/__snapshots__/PublicAPI-test.js.snap +306 -0
- package/styles/vendor/@carbon/elements/src/index.js +166 -4
- package/styles/vendor/@carbon/elements/umd/index.js +961 -17
- package/styles/vendor/@carbon/layout/README.md +0 -6
- package/styles/vendor/@carbon/layout/es/index.js +1 -1
- package/styles/vendor/@carbon/{themes/node_modules/@carbon/colors/scss → layout}/index.scss +5 -6
- package/styles/vendor/@carbon/layout/lib/index.js +30 -30
- package/styles/vendor/@carbon/layout/package.json +14 -10
- package/styles/vendor/@carbon/layout/scss/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/layout/scss/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/layout/scss/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/layout/scss/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/layout/scss/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/layout/scss/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/layout/scss/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/layout/umd/index.js +31 -31
- package/styles/vendor/@carbon/motion/README.md +0 -6
- package/styles/vendor/@carbon/motion/es/index.js +8 -1
- package/styles/vendor/@carbon/motion/index.scss +56 -0
- package/styles/vendor/@carbon/motion/lib/index.js +14 -0
- package/styles/vendor/@carbon/motion/package.json +10 -6
- package/styles/vendor/@carbon/motion/scss/motion.scss +24 -0
- package/styles/vendor/@carbon/motion/src/index.js +16 -0
- package/styles/vendor/@carbon/motion/umd/index.js +15 -1
- package/styles/vendor/@carbon/themes/README.md +5 -4
- package/styles/vendor/@carbon/themes/es/index.js +719 -57
- package/styles/vendor/@carbon/themes/index.scss +9 -0
- package/styles/vendor/@carbon/themes/lib/index.js +1297 -251
- package/styles/vendor/@carbon/themes/metadata.yml +3 -0
- package/styles/vendor/@carbon/themes/package.json +23 -14
- package/styles/vendor/@carbon/themes/scss/_mixins.scss +27 -146
- package/styles/vendor/@carbon/themes/scss/_theme-maps.scss +3 -263
- package/styles/vendor/@carbon/themes/scss/_tokens.scss +2 -297
- package/styles/vendor/@carbon/themes/scss/generated/_mixins.scss +1851 -0
- package/styles/vendor/@carbon/themes/scss/generated/_themes.scss +1534 -0
- package/styles/vendor/@carbon/themes/scss/generated/_tokens.scss +1757 -0
- package/styles/vendor/@carbon/themes/scss/modules/_theme.scss +50 -0
- package/styles/vendor/@carbon/themes/scss/modules/_themes.scss +8 -0
- package/styles/vendor/@carbon/themes/scss/modules/_utilities.scss +18 -0
- package/styles/vendor/@carbon/themes/scss/modules/generated/_themes.scss +247 -0
- package/styles/vendor/@carbon/themes/scss/themes.scss +3 -2
- package/styles/vendor/@carbon/themes/src/g10.js +97 -5
- package/styles/vendor/@carbon/themes/src/g100.js +96 -4
- package/styles/vendor/@carbon/themes/src/g90.js +98 -6
- package/styles/vendor/@carbon/themes/src/index.js +5 -3
- package/styles/vendor/@carbon/themes/src/tokens.js +112 -2
- package/styles/vendor/@carbon/themes/src/tools.js +25 -0
- package/styles/vendor/@carbon/themes/src/v9.js +181 -0
- package/styles/vendor/@carbon/themes/src/white.js +98 -3
- package/styles/vendor/@carbon/themes/umd/index.js +1297 -254
- package/styles/vendor/@carbon/type/README.md +0 -6
- package/styles/vendor/@carbon/type/es/index.js +111 -82
- package/styles/vendor/@carbon/type/lib/index.js +132 -103
- package/styles/vendor/@carbon/type/package.json +12 -8
- package/styles/vendor/@carbon/type/scss/_font-family.scss +2 -2
- package/styles/vendor/@carbon/type/scss/_inlined/_font-family.scss +2 -2
- package/styles/vendor/@carbon/type/scss/_inlined/_reset.scss +9 -3
- package/styles/vendor/@carbon/type/scss/_inlined/_scale.scss +2 -2
- package/styles/vendor/@carbon/type/scss/_inlined/_styles.scss +60 -57
- package/styles/vendor/@carbon/type/scss/_inlined/font-face/_mono.scss +72 -72
- package/styles/vendor/@carbon/type/scss/_inlined/font-face/_sans-condensed.scss +302 -0
- package/styles/vendor/@carbon/type/scss/_inlined/font-face/_sans.scss +84 -84
- package/styles/vendor/@carbon/type/scss/_inlined/font-face/_serif.scss +72 -72
- package/styles/vendor/@carbon/type/scss/_reset.scss +9 -3
- package/styles/vendor/@carbon/type/scss/_scale.scss +2 -2
- package/styles/vendor/@carbon/type/scss/_styles.scss +60 -57
- package/styles/vendor/@carbon/type/scss/font-face/_mono.scss +72 -72
- package/styles/vendor/@carbon/type/scss/font-face/_sans-condensed.scss +302 -0
- package/styles/vendor/@carbon/type/scss/font-face/_sans.scss +84 -84
- package/styles/vendor/@carbon/type/scss/font-face/_serif.scss +72 -72
- package/styles/vendor/@carbon/type/scss/modules/_classes.scss +42 -0
- package/styles/vendor/@carbon/type/scss/modules/_font-family.scss +70 -0
- package/styles/vendor/@carbon/type/scss/modules/_prefix.scss +11 -0
- package/styles/vendor/@carbon/type/scss/modules/_reset.scss +92 -0
- package/styles/vendor/@carbon/type/scss/modules/_scale.scss +56 -0
- package/styles/vendor/@carbon/type/scss/modules/_styles.scss +713 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/type/src/__tests__/__snapshots__/styles-test.js.snap +32 -34
- package/styles/vendor/@carbon/type/src/__tests__/exports-test.js +1 -1
- package/styles/vendor/@carbon/type/src/__tests__/fluid-test.js +26 -26
- package/styles/vendor/@carbon/type/src/__tests__/styles-test.js +1 -1
- package/styles/vendor/@carbon/type/src/__tests__/tokens-test.js +2 -2
- package/styles/vendor/@carbon/type/src/fluid.js +1 -1
- package/styles/vendor/@carbon/type/src/index.js +1 -1
- package/styles/vendor/@carbon/type/src/styles.js +65 -64
- package/styles/vendor/@carbon/type/src/tokens.js +64 -31
- package/styles/vendor/@carbon/type/umd/index.js +134 -105
- package/styles-g10.css +570 -2
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +574 -6
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +574 -6
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +570 -2
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tsconfig.tsbuildinfo +64 -14
- package/styles/vendor/@carbon/layout/docs/sass.md +0 -1899
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/LICENSE +0 -201
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/README.md +0 -154
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/es/index.js +0 -287
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/lib/index.js +0 -410
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/package.json +0 -51
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/scss/mixins.scss +0 -646
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/umd/index.js +0 -416
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2015 IBM Corp.
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
# @carbon/colors
|
|
2
|
-
|
|
3
|
-
> Colors for digital and software products using the Carbon Design System
|
|
4
|
-
|
|
5
|
-
## Getting started
|
|
6
|
-
|
|
7
|
-
To install `@carbon/colors` in your project, you will need to run the following
|
|
8
|
-
command using [npm](https://www.npmjs.com/):
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm install -S @carbon/colors
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
If you prefer [Yarn](https://yarnpkg.com/en/), use the following command
|
|
15
|
-
instead:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
yarn add @carbon/colors
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
You can use the `@carbon/colors` module in your JavaScript, in addition to your
|
|
24
|
-
Sass.
|
|
25
|
-
|
|
26
|
-
### Sass
|
|
27
|
-
|
|
28
|
-
In Sass, you can import the files individual by doing:
|
|
29
|
-
|
|
30
|
-
```scss
|
|
31
|
-
@import '@carbon/colors/scss/colors';
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
This file automatically includes the `carbon--colors` mixin which initializes
|
|
35
|
-
all the color variables for the IBM Design Language.
|
|
36
|
-
|
|
37
|
-
These color variables follow the naming convention: `$carbon--<swatch>-<grade>`.
|
|
38
|
-
For example:
|
|
39
|
-
|
|
40
|
-
```scss
|
|
41
|
-
$carbon--blue-50;
|
|
42
|
-
$carbon--cool-gray-10;
|
|
43
|
-
$carbon--black-100;
|
|
44
|
-
$carbon--white-0;
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
You can also use the shorthand form of these colors by dropping the `carbon--`
|
|
48
|
-
namespace:
|
|
49
|
-
|
|
50
|
-
```scss
|
|
51
|
-
$blue-50;
|
|
52
|
-
$cool-gray-10;
|
|
53
|
-
$black-100;
|
|
54
|
-
$white-0;
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
_Note: the shorthand variables require that you do not have any other
|
|
58
|
-
conflicting variables in your setup. Namespaced variables are always preferred
|
|
59
|
-
for this reason, unless you are confident that no collisions will occur._
|
|
60
|
-
|
|
61
|
-
If you would like you choose when these variables are defined, then you can call
|
|
62
|
-
the `carbon--colors` mixin directly by importing the following file:
|
|
63
|
-
|
|
64
|
-
```scss
|
|
65
|
-
@import '@carbon/colors/scss/mixins';
|
|
66
|
-
|
|
67
|
-
// ...
|
|
68
|
-
@include carbon--colors();
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Alongside the color variables detailed above, we also provide a map of colors so
|
|
72
|
-
that you can programmatically use these values. This map is called
|
|
73
|
-
`$carbon--colors` and each key is the name of a swatch. The value of these
|
|
74
|
-
swatches is also a map, but each key is now the grade. In code, this looks like
|
|
75
|
-
the following:
|
|
76
|
-
|
|
77
|
-
<!-- prettier-ignore-start -->
|
|
78
|
-
|
|
79
|
-
```scss
|
|
80
|
-
$carbon--colors: (
|
|
81
|
-
'blue': (
|
|
82
|
-
10: #edf4ff,
|
|
83
|
-
// ...
|
|
84
|
-
)
|
|
85
|
-
);
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
<!-- prettier-ignore-end -->
|
|
89
|
-
|
|
90
|
-
You can include this variable by including `@carbon/colors/scss/colors` or
|
|
91
|
-
calling the `carbon--colors()` mixin directly.
|
|
92
|
-
|
|
93
|
-
#### Migrating from previous versions
|
|
94
|
-
|
|
95
|
-
If you were originally using a project that had color variables defined as
|
|
96
|
-
`$ibm-color__<swatch>-<grade>`, or are relying on `$ibm-color-map`, you can also
|
|
97
|
-
use the entrypoint described above to access these colors. They are meant as an
|
|
98
|
-
easier way to help adopt these packages. However, these variables will be
|
|
99
|
-
removed in the next release of Carbon.
|
|
100
|
-
|
|
101
|
-
Similar to previous efforts, we also provide colors in the formats mentioned
|
|
102
|
-
above. For example:
|
|
103
|
-
|
|
104
|
-
```scss
|
|
105
|
-
$ibm-color__blue-50;
|
|
106
|
-
$ibm-color__warm-gray-100;
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
If you would like a mixin to conditionally include these variables, you can
|
|
110
|
-
include the mixin by using:
|
|
111
|
-
|
|
112
|
-
```scss
|
|
113
|
-
@import '@carbon/colors/scss/mixins';
|
|
114
|
-
|
|
115
|
-
@include ibm--colors();
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### JavaScript
|
|
119
|
-
|
|
120
|
-
For JavaScript, you can import and use this module by doing the following in
|
|
121
|
-
your code:
|
|
122
|
-
|
|
123
|
-
```js
|
|
124
|
-
// ESM
|
|
125
|
-
import { black, blue, warmGray } from '@carbon/colors';
|
|
126
|
-
|
|
127
|
-
// CommonJS
|
|
128
|
-
const { black, blue, warmGray } = require('@carbon/colors');
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
Each color swatch is exported as a variable, and each color name is also
|
|
132
|
-
exported as an object that can be called by specifying grade, for example:
|
|
133
|
-
|
|
134
|
-
```js
|
|
135
|
-
black;
|
|
136
|
-
blue[50]; // Using the `blue` object.
|
|
137
|
-
warmGray100; // Using the `warmGray100` variable.
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
## 📖 API Documentation
|
|
141
|
-
|
|
142
|
-
If you're looking for `@carbon/colors` API documentation, check out:
|
|
143
|
-
|
|
144
|
-
- [Sass](./docs/sass.md)
|
|
145
|
-
|
|
146
|
-
## 🙌 Contributing
|
|
147
|
-
|
|
148
|
-
We're always looking for contributors to help us fix bugs, build new features,
|
|
149
|
-
or help us improve the project documentation. If you're interested, definitely
|
|
150
|
-
check out our [Contributing Guide](/.github/CONTRIBUTING.md)! 👀
|
|
151
|
-
|
|
152
|
-
## 📝 License
|
|
153
|
-
|
|
154
|
-
Licensed under the [Apache 2.0 License](/LICENSE).
|
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2018, 2018
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
var black = '#000000';
|
|
8
|
-
var black100 = black;
|
|
9
|
-
var white = '#ffffff';
|
|
10
|
-
var white0 = white;
|
|
11
|
-
var yellow = '#fdd13a';
|
|
12
|
-
var yellow20 = yellow;
|
|
13
|
-
var orange = '#fc7b1e';
|
|
14
|
-
var orange40 = orange;
|
|
15
|
-
var red10 = '#fff0f1';
|
|
16
|
-
var red20 = '#fcd0d3';
|
|
17
|
-
var red30 = '#ffa4a9';
|
|
18
|
-
var red40 = '#ff767c';
|
|
19
|
-
var red50 = '#fb4b53';
|
|
20
|
-
var red60 = '#da1e28';
|
|
21
|
-
var red70 = '#a51920';
|
|
22
|
-
var red80 = '#750e13';
|
|
23
|
-
var red90 = '#570408';
|
|
24
|
-
var red100 = '#2c080a';
|
|
25
|
-
var red = {
|
|
26
|
-
10: red10,
|
|
27
|
-
20: red20,
|
|
28
|
-
30: red30,
|
|
29
|
-
40: red40,
|
|
30
|
-
50: red50,
|
|
31
|
-
60: red60,
|
|
32
|
-
70: red70,
|
|
33
|
-
80: red80,
|
|
34
|
-
90: red90,
|
|
35
|
-
100: red100
|
|
36
|
-
};
|
|
37
|
-
var magenta10 = '#fff0f6';
|
|
38
|
-
var magenta20 = '#ffcfe1';
|
|
39
|
-
var magenta30 = '#ffa0c2';
|
|
40
|
-
var magenta40 = '#fa75a6';
|
|
41
|
-
var magenta50 = '#ee538b';
|
|
42
|
-
var magenta60 = '#d12765';
|
|
43
|
-
var magenta70 = '#a11950';
|
|
44
|
-
var magenta80 = '#760a3a';
|
|
45
|
-
var magenta90 = '#57002b';
|
|
46
|
-
var magenta100 = '#2a0a16';
|
|
47
|
-
var magenta = {
|
|
48
|
-
10: magenta10,
|
|
49
|
-
20: magenta20,
|
|
50
|
-
30: magenta30,
|
|
51
|
-
40: magenta40,
|
|
52
|
-
50: magenta50,
|
|
53
|
-
60: magenta60,
|
|
54
|
-
70: magenta70,
|
|
55
|
-
80: magenta80,
|
|
56
|
-
90: magenta90,
|
|
57
|
-
100: magenta100
|
|
58
|
-
};
|
|
59
|
-
var purple10 = '#f7f1ff';
|
|
60
|
-
var purple20 = '#e6d6ff';
|
|
61
|
-
var purple30 = '#d0b0ff';
|
|
62
|
-
var purple40 = '#bb8eff';
|
|
63
|
-
var purple50 = '#a66efa';
|
|
64
|
-
var purple60 = '#8a3ffc';
|
|
65
|
-
var purple70 = '#6e32c9';
|
|
66
|
-
var purple80 = '#4f2196';
|
|
67
|
-
var purple90 = '#38146b';
|
|
68
|
-
var purple100 = '#1e1033';
|
|
69
|
-
var purple = {
|
|
70
|
-
10: purple10,
|
|
71
|
-
20: purple20,
|
|
72
|
-
30: purple30,
|
|
73
|
-
40: purple40,
|
|
74
|
-
50: purple50,
|
|
75
|
-
60: purple60,
|
|
76
|
-
70: purple70,
|
|
77
|
-
80: purple80,
|
|
78
|
-
90: purple90,
|
|
79
|
-
100: purple100
|
|
80
|
-
};
|
|
81
|
-
var blue10 = '#edf4ff';
|
|
82
|
-
var blue20 = '#c9deff';
|
|
83
|
-
var blue30 = '#97c1ff';
|
|
84
|
-
var blue40 = '#6ea6ff';
|
|
85
|
-
var blue50 = '#408bfc';
|
|
86
|
-
var blue60 = '#0062ff';
|
|
87
|
-
var blue70 = '#054ada';
|
|
88
|
-
var blue80 = '#0530ad';
|
|
89
|
-
var blue90 = '#061f80';
|
|
90
|
-
var blue100 = '#051243';
|
|
91
|
-
var blue = {
|
|
92
|
-
10: blue10,
|
|
93
|
-
20: blue20,
|
|
94
|
-
30: blue30,
|
|
95
|
-
40: blue40,
|
|
96
|
-
50: blue50,
|
|
97
|
-
60: blue60,
|
|
98
|
-
70: blue70,
|
|
99
|
-
80: blue80,
|
|
100
|
-
90: blue90,
|
|
101
|
-
100: blue100
|
|
102
|
-
};
|
|
103
|
-
var cyan10 = '#e3f6ff';
|
|
104
|
-
var cyan20 = '#b3e6ff';
|
|
105
|
-
var cyan30 = '#6ccaff';
|
|
106
|
-
var cyan40 = '#30b0ff';
|
|
107
|
-
var cyan50 = '#1191e6';
|
|
108
|
-
var cyan60 = '#0072c3';
|
|
109
|
-
var cyan70 = '#0058a1';
|
|
110
|
-
var cyan80 = '#003d73';
|
|
111
|
-
var cyan90 = '#002b50';
|
|
112
|
-
var cyan100 = '#07192b';
|
|
113
|
-
var cyan = {
|
|
114
|
-
10: cyan10,
|
|
115
|
-
20: cyan20,
|
|
116
|
-
30: cyan30,
|
|
117
|
-
40: cyan40,
|
|
118
|
-
50: cyan50,
|
|
119
|
-
60: cyan60,
|
|
120
|
-
70: cyan70,
|
|
121
|
-
80: cyan80,
|
|
122
|
-
90: cyan90,
|
|
123
|
-
100: cyan100
|
|
124
|
-
};
|
|
125
|
-
var teal10 = '#dbfbfb';
|
|
126
|
-
var teal20 = '#92eeee';
|
|
127
|
-
var teal30 = '#20d5d2';
|
|
128
|
-
var teal40 = '#00bab6';
|
|
129
|
-
var teal50 = '#009c98';
|
|
130
|
-
var teal60 = '#007d79';
|
|
131
|
-
var teal70 = '#006161';
|
|
132
|
-
var teal80 = '#004548';
|
|
133
|
-
var teal90 = '#003137';
|
|
134
|
-
var teal100 = '#081a1c';
|
|
135
|
-
var teal = {
|
|
136
|
-
10: teal10,
|
|
137
|
-
20: teal20,
|
|
138
|
-
30: teal30,
|
|
139
|
-
40: teal40,
|
|
140
|
-
50: teal50,
|
|
141
|
-
60: teal60,
|
|
142
|
-
70: teal70,
|
|
143
|
-
80: teal80,
|
|
144
|
-
90: teal90,
|
|
145
|
-
100: teal100
|
|
146
|
-
};
|
|
147
|
-
var green10 = '#dafbe4';
|
|
148
|
-
var green20 = '#9deeb2';
|
|
149
|
-
var green30 = '#56d679';
|
|
150
|
-
var green40 = '#3dbb61';
|
|
151
|
-
var green50 = '#24a148';
|
|
152
|
-
var green60 = '#198038';
|
|
153
|
-
var green70 = '#10642a';
|
|
154
|
-
var green80 = '#054719';
|
|
155
|
-
var green90 = '#01330f';
|
|
156
|
-
var green100 = '#081b09';
|
|
157
|
-
var green = {
|
|
158
|
-
10: green10,
|
|
159
|
-
20: green20,
|
|
160
|
-
30: green30,
|
|
161
|
-
40: green40,
|
|
162
|
-
50: green50,
|
|
163
|
-
60: green60,
|
|
164
|
-
70: green70,
|
|
165
|
-
80: green80,
|
|
166
|
-
90: green90,
|
|
167
|
-
100: green100
|
|
168
|
-
};
|
|
169
|
-
var coolGray10 = '#f2f4f8';
|
|
170
|
-
var coolGray20 = '#d5d9e0';
|
|
171
|
-
var coolGray30 = '#b9bfc7';
|
|
172
|
-
var coolGray40 = '#9fa5ad';
|
|
173
|
-
var coolGray50 = '#868d95';
|
|
174
|
-
var coolGray60 = '#697077';
|
|
175
|
-
var coolGray70 = '#50565b';
|
|
176
|
-
var coolGray80 = '#373d42';
|
|
177
|
-
var coolGray90 = '#242a2e';
|
|
178
|
-
var coolGray100 = '#13171a';
|
|
179
|
-
var coolGray = {
|
|
180
|
-
10: coolGray10,
|
|
181
|
-
20: coolGray20,
|
|
182
|
-
30: coolGray30,
|
|
183
|
-
40: coolGray40,
|
|
184
|
-
50: coolGray50,
|
|
185
|
-
60: coolGray60,
|
|
186
|
-
70: coolGray70,
|
|
187
|
-
80: coolGray80,
|
|
188
|
-
90: coolGray90,
|
|
189
|
-
100: coolGray100
|
|
190
|
-
};
|
|
191
|
-
var gray10 = '#f3f3f3';
|
|
192
|
-
var gray20 = '#dcdcdc';
|
|
193
|
-
var gray30 = '#bebebe';
|
|
194
|
-
var gray40 = '#a4a4a4';
|
|
195
|
-
var gray50 = '#8c8c8c';
|
|
196
|
-
var gray60 = '#6f6f6f';
|
|
197
|
-
var gray70 = '#565656';
|
|
198
|
-
var gray80 = '#3d3d3d';
|
|
199
|
-
var gray90 = '#282828';
|
|
200
|
-
var gray100 = '#171717';
|
|
201
|
-
var gray = {
|
|
202
|
-
10: gray10,
|
|
203
|
-
20: gray20,
|
|
204
|
-
30: gray30,
|
|
205
|
-
40: gray40,
|
|
206
|
-
50: gray50,
|
|
207
|
-
60: gray60,
|
|
208
|
-
70: gray70,
|
|
209
|
-
80: gray80,
|
|
210
|
-
90: gray90,
|
|
211
|
-
100: gray100
|
|
212
|
-
};
|
|
213
|
-
var warmGray10 = '#f7f3f1';
|
|
214
|
-
var warmGray20 = '#e0dbda';
|
|
215
|
-
var warmGray30 = '#c1bcbb';
|
|
216
|
-
var warmGray40 = '#a7a2a2';
|
|
217
|
-
var warmGray50 = '#8f8b8b';
|
|
218
|
-
var warmGray60 = '#726e6e';
|
|
219
|
-
var warmGray70 = '#595555';
|
|
220
|
-
var warmGray80 = '#403c3c';
|
|
221
|
-
var warmGray90 = '#2b2828';
|
|
222
|
-
var warmGray100 = '#1a1717';
|
|
223
|
-
var warmGray = {
|
|
224
|
-
10: warmGray10,
|
|
225
|
-
20: warmGray20,
|
|
226
|
-
30: warmGray30,
|
|
227
|
-
40: warmGray40,
|
|
228
|
-
50: warmGray50,
|
|
229
|
-
60: warmGray60,
|
|
230
|
-
70: warmGray70,
|
|
231
|
-
80: warmGray80,
|
|
232
|
-
90: warmGray90,
|
|
233
|
-
100: warmGray100
|
|
234
|
-
};
|
|
235
|
-
var colors = {
|
|
236
|
-
black: {
|
|
237
|
-
100: black
|
|
238
|
-
},
|
|
239
|
-
blue: blue,
|
|
240
|
-
coolGray: coolGray,
|
|
241
|
-
cyan: cyan,
|
|
242
|
-
gray: gray,
|
|
243
|
-
green: green,
|
|
244
|
-
magenta: magenta,
|
|
245
|
-
orange: {
|
|
246
|
-
40: orange40
|
|
247
|
-
},
|
|
248
|
-
purple: purple,
|
|
249
|
-
red: red,
|
|
250
|
-
teal: teal,
|
|
251
|
-
warmGray: warmGray,
|
|
252
|
-
white: {
|
|
253
|
-
0: white
|
|
254
|
-
},
|
|
255
|
-
yellow: {
|
|
256
|
-
20: yellow20
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Copyright IBM Corp. 2018, 2018
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
264
|
-
* LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Parse a given hexcode string into an rgba statement with the given opacity
|
|
269
|
-
* @param {string} hexcode
|
|
270
|
-
* @param {number} opacity
|
|
271
|
-
* @returns {string}
|
|
272
|
-
*/
|
|
273
|
-
function rgba(hexcode, opacity) {
|
|
274
|
-
var values = [hexcode.substring(1, 3), hexcode.substring(3, 5), hexcode.substring(5, 7)].map(function (string) {
|
|
275
|
-
return parseInt(string, 16);
|
|
276
|
-
});
|
|
277
|
-
return "rgba(".concat(values[0], ", ").concat(values[1], ", ").concat(values[2], ", ").concat(opacity, ")");
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Copyright IBM Corp. 2018, 2018
|
|
282
|
-
*
|
|
283
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
284
|
-
* LICENSE file in the root directory of this source tree.
|
|
285
|
-
*/
|
|
286
|
-
|
|
287
|
-
export { black, black100, white, white0, yellow, yellow20, orange, orange40, red10, red20, red30, red40, red50, red60, red70, red80, red90, red100, red, magenta10, magenta20, magenta30, magenta40, magenta50, magenta60, magenta70, magenta80, magenta90, magenta100, magenta, purple10, purple20, purple30, purple40, purple50, purple60, purple70, purple80, purple90, purple100, purple, blue10, blue20, blue30, blue40, blue50, blue60, blue70, blue80, blue90, blue100, blue, cyan10, cyan20, cyan30, cyan40, cyan50, cyan60, cyan70, cyan80, cyan90, cyan100, cyan, teal10, teal20, teal30, teal40, teal50, teal60, teal70, teal80, teal90, teal100, teal, green10, green20, green30, green40, green50, green60, green70, green80, green90, green100, green, coolGray10, coolGray20, coolGray30, coolGray40, coolGray50, coolGray60, coolGray70, coolGray80, coolGray90, coolGray100, coolGray, gray10, gray20, gray30, gray40, gray50, gray60, gray70, gray80, gray90, gray100, gray, warmGray10, warmGray20, warmGray30, warmGray40, warmGray50, warmGray60, warmGray70, warmGray80, warmGray90, warmGray100, warmGray, colors, rgba };
|