@carbon/elements 10.26.0-rc.1 → 10.26.0
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/es/index.js +2 -2
- package/lib/index.js +158 -18
- package/package.json +11 -11
- package/src/__tests__/PublicAPI-test.js +12 -0
- package/src/__tests__/__snapshots__/PublicAPI-test.js.snap +299 -0
- package/src/index.js +30 -2
- package/umd/index.js +160 -20
package/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { black, black100, blue, blue10, blue100, blue20, blue30, blue40, blue50, blue60, blue70, blue80, blue90, colors, coolGray, coolGray10, coolGray100, coolGray20, coolGray30, coolGray40, coolGray50, coolGray60, coolGray70, coolGray80, coolGray90, cyan, cyan10, cyan100, cyan20, cyan30, cyan40, cyan50, cyan60, cyan70, cyan80, cyan90, gray, gray10, gray100, gray20, gray30, gray40, gray50, gray60, gray70, gray80, gray90, green, green10, green100, green20, green30, green40, green50, green60, green70, green80, green90, magenta, magenta10, magenta100, magenta20, magenta30, magenta40, magenta50, magenta60, magenta70, magenta80, magenta90, orange, orange40, orange60, orange70, purple, purple10, purple100, purple20, purple30, purple40, purple50, purple60, purple70, purple80, purple90, red, red10, red100, red20, red30, red40, red50, red60, red70, red80, red90, rgba, teal, teal10, teal100, teal20, teal30, teal40, teal50, teal60, teal70, teal80, teal90, warmGray, warmGray10, warmGray100, warmGray20, warmGray30, warmGray40, warmGray50, warmGray60, warmGray70, warmGray80, warmGray90, white0, yellow, yellow20, yellow30, yellow40, yellow50 } from '@carbon/colors';
|
|
2
|
+
export { fluid, fontFamilies, fontFamily, fontWeight, fontWeights, getTypeSize, print, reset, scale, styles, unstable_tokens } from '@carbon/type';
|
|
3
|
+
export { baseFontSize, breakpoint, breakpointDown, breakpointUp, breakpoints, container, em, fluidSpacing, iconSize, layout, miniUnit, miniUnits, px, rem, spacing } from '@carbon/layout';
|
|
2
4
|
export * from '@carbon/themes';
|
|
3
|
-
export * from '@carbon/layout';
|
|
4
5
|
export * from '@carbon/motion';
|
|
5
|
-
export * from '@carbon/type';
|
package/lib/index.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var colors = require('@carbon/colors');
|
|
6
|
-
var
|
|
6
|
+
var type = require('@carbon/type');
|
|
7
7
|
var layout = require('@carbon/layout');
|
|
8
|
+
var themes = require('@carbon/themes');
|
|
8
9
|
var motion = require('@carbon/motion');
|
|
9
|
-
var type = require('@carbon/type');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,14 +18,6 @@ Object.keys(themes).forEach(function (k) {
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
Object.keys(layout).forEach(function (k) {
|
|
22
|
-
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () {
|
|
25
|
-
return layout[k];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
21
|
Object.keys(motion).forEach(function (k) {
|
|
30
22
|
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
31
23
|
enumerable: true,
|
|
@@ -34,14 +26,6 @@ Object.keys(motion).forEach(function (k) {
|
|
|
34
26
|
}
|
|
35
27
|
});
|
|
36
28
|
});
|
|
37
|
-
Object.keys(type).forEach(function (k) {
|
|
38
|
-
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function () {
|
|
41
|
-
return type[k];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
29
|
Object.defineProperty(exports, 'black', {
|
|
46
30
|
enumerable: true,
|
|
47
31
|
get: function () {
|
|
@@ -786,3 +770,159 @@ Object.defineProperty(exports, 'yellow50', {
|
|
|
786
770
|
return colors.yellow50;
|
|
787
771
|
}
|
|
788
772
|
});
|
|
773
|
+
Object.defineProperty(exports, 'fluid', {
|
|
774
|
+
enumerable: true,
|
|
775
|
+
get: function () {
|
|
776
|
+
return type.fluid;
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
Object.defineProperty(exports, 'fontFamilies', {
|
|
780
|
+
enumerable: true,
|
|
781
|
+
get: function () {
|
|
782
|
+
return type.fontFamilies;
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
Object.defineProperty(exports, 'fontFamily', {
|
|
786
|
+
enumerable: true,
|
|
787
|
+
get: function () {
|
|
788
|
+
return type.fontFamily;
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
Object.defineProperty(exports, 'fontWeight', {
|
|
792
|
+
enumerable: true,
|
|
793
|
+
get: function () {
|
|
794
|
+
return type.fontWeight;
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
Object.defineProperty(exports, 'fontWeights', {
|
|
798
|
+
enumerable: true,
|
|
799
|
+
get: function () {
|
|
800
|
+
return type.fontWeights;
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
Object.defineProperty(exports, 'getTypeSize', {
|
|
804
|
+
enumerable: true,
|
|
805
|
+
get: function () {
|
|
806
|
+
return type.getTypeSize;
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
Object.defineProperty(exports, 'print', {
|
|
810
|
+
enumerable: true,
|
|
811
|
+
get: function () {
|
|
812
|
+
return type.print;
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
Object.defineProperty(exports, 'reset', {
|
|
816
|
+
enumerable: true,
|
|
817
|
+
get: function () {
|
|
818
|
+
return type.reset;
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
Object.defineProperty(exports, 'scale', {
|
|
822
|
+
enumerable: true,
|
|
823
|
+
get: function () {
|
|
824
|
+
return type.scale;
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
Object.defineProperty(exports, 'styles', {
|
|
828
|
+
enumerable: true,
|
|
829
|
+
get: function () {
|
|
830
|
+
return type.styles;
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
Object.defineProperty(exports, 'unstable_tokens', {
|
|
834
|
+
enumerable: true,
|
|
835
|
+
get: function () {
|
|
836
|
+
return type.unstable_tokens;
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
Object.defineProperty(exports, 'baseFontSize', {
|
|
840
|
+
enumerable: true,
|
|
841
|
+
get: function () {
|
|
842
|
+
return layout.baseFontSize;
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
Object.defineProperty(exports, 'breakpoint', {
|
|
846
|
+
enumerable: true,
|
|
847
|
+
get: function () {
|
|
848
|
+
return layout.breakpoint;
|
|
849
|
+
}
|
|
850
|
+
});
|
|
851
|
+
Object.defineProperty(exports, 'breakpointDown', {
|
|
852
|
+
enumerable: true,
|
|
853
|
+
get: function () {
|
|
854
|
+
return layout.breakpointDown;
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
Object.defineProperty(exports, 'breakpointUp', {
|
|
858
|
+
enumerable: true,
|
|
859
|
+
get: function () {
|
|
860
|
+
return layout.breakpointUp;
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
Object.defineProperty(exports, 'breakpoints', {
|
|
864
|
+
enumerable: true,
|
|
865
|
+
get: function () {
|
|
866
|
+
return layout.breakpoints;
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
Object.defineProperty(exports, 'container', {
|
|
870
|
+
enumerable: true,
|
|
871
|
+
get: function () {
|
|
872
|
+
return layout.container;
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
Object.defineProperty(exports, 'em', {
|
|
876
|
+
enumerable: true,
|
|
877
|
+
get: function () {
|
|
878
|
+
return layout.em;
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
Object.defineProperty(exports, 'fluidSpacing', {
|
|
882
|
+
enumerable: true,
|
|
883
|
+
get: function () {
|
|
884
|
+
return layout.fluidSpacing;
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
Object.defineProperty(exports, 'iconSize', {
|
|
888
|
+
enumerable: true,
|
|
889
|
+
get: function () {
|
|
890
|
+
return layout.iconSize;
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
Object.defineProperty(exports, 'layout', {
|
|
894
|
+
enumerable: true,
|
|
895
|
+
get: function () {
|
|
896
|
+
return layout.layout;
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
Object.defineProperty(exports, 'miniUnit', {
|
|
900
|
+
enumerable: true,
|
|
901
|
+
get: function () {
|
|
902
|
+
return layout.miniUnit;
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
Object.defineProperty(exports, 'miniUnits', {
|
|
906
|
+
enumerable: true,
|
|
907
|
+
get: function () {
|
|
908
|
+
return layout.miniUnits;
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
Object.defineProperty(exports, 'px', {
|
|
912
|
+
enumerable: true,
|
|
913
|
+
get: function () {
|
|
914
|
+
return layout.px;
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
Object.defineProperty(exports, 'rem', {
|
|
918
|
+
enumerable: true,
|
|
919
|
+
get: function () {
|
|
920
|
+
return layout.rem;
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
Object.defineProperty(exports, 'spacing', {
|
|
924
|
+
enumerable: true,
|
|
925
|
+
get: function () {
|
|
926
|
+
return layout.spacing;
|
|
927
|
+
}
|
|
928
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/elements",
|
|
3
3
|
"description": "A collection of design elements in code for the IBM Design Language",
|
|
4
|
-
"version": "10.26.0
|
|
4
|
+
"version": "10.26.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"clean": "rimraf es lib umd && node tasks/clean.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@carbon/colors": "^10.19.0
|
|
39
|
-
"@carbon/grid": "^10.19.0
|
|
40
|
-
"@carbon/icons": "^10.24.0
|
|
41
|
-
"@carbon/import-once": "^10.5.0
|
|
42
|
-
"@carbon/layout": "^10.17.0
|
|
43
|
-
"@carbon/motion": "^10.12.0
|
|
44
|
-
"@carbon/themes": "^10.26.0
|
|
45
|
-
"@carbon/type": "^10.20.0
|
|
38
|
+
"@carbon/colors": "^10.19.0",
|
|
39
|
+
"@carbon/grid": "^10.19.0",
|
|
40
|
+
"@carbon/icons": "^10.24.0",
|
|
41
|
+
"@carbon/import-once": "^10.5.0",
|
|
42
|
+
"@carbon/layout": "^10.17.0",
|
|
43
|
+
"@carbon/motion": "^10.12.0",
|
|
44
|
+
"@carbon/themes": "^10.26.0",
|
|
45
|
+
"@carbon/type": "^10.20.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@carbon/cli": "^10.18.0
|
|
48
|
+
"@carbon/cli": "^10.18.0",
|
|
49
49
|
"fs-extra": "^8.1.0",
|
|
50
50
|
"klaw-sync": "^6.0.0",
|
|
51
51
|
"replace-in-file": "^3.4.2",
|
|
52
52
|
"rimraf": "^3.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "9e4485a39c8ced35313aa834c4d162a99bc57fb9"
|
|
55
55
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
|
|
8
|
+
import * as CarbonElements from '../';
|
|
9
|
+
|
|
10
|
+
test('Public API should only change with a semver change', () => {
|
|
11
|
+
expect(Object.keys(CarbonElements).sort()).toMatchSnapshot();
|
|
12
|
+
});
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Public API should only change with a semver change 1`] = `
|
|
4
|
+
Array [
|
|
5
|
+
"active01",
|
|
6
|
+
"activeDanger",
|
|
7
|
+
"activeLightUI",
|
|
8
|
+
"activePrimary",
|
|
9
|
+
"activeSecondary",
|
|
10
|
+
"activeTertiary",
|
|
11
|
+
"activeUI",
|
|
12
|
+
"baseFontSize",
|
|
13
|
+
"black",
|
|
14
|
+
"black100",
|
|
15
|
+
"blue",
|
|
16
|
+
"blue10",
|
|
17
|
+
"blue100",
|
|
18
|
+
"blue20",
|
|
19
|
+
"blue30",
|
|
20
|
+
"blue40",
|
|
21
|
+
"blue50",
|
|
22
|
+
"blue60",
|
|
23
|
+
"blue70",
|
|
24
|
+
"blue80",
|
|
25
|
+
"blue90",
|
|
26
|
+
"bodyLong01",
|
|
27
|
+
"bodyLong02",
|
|
28
|
+
"bodyShort01",
|
|
29
|
+
"bodyShort02",
|
|
30
|
+
"brand01",
|
|
31
|
+
"brand02",
|
|
32
|
+
"brand03",
|
|
33
|
+
"breakpoint",
|
|
34
|
+
"breakpointDown",
|
|
35
|
+
"breakpointUp",
|
|
36
|
+
"breakpoints",
|
|
37
|
+
"buttonSeparator",
|
|
38
|
+
"caption01",
|
|
39
|
+
"code01",
|
|
40
|
+
"code02",
|
|
41
|
+
"colors",
|
|
42
|
+
"container",
|
|
43
|
+
"container01",
|
|
44
|
+
"container02",
|
|
45
|
+
"container03",
|
|
46
|
+
"container04",
|
|
47
|
+
"container05",
|
|
48
|
+
"coolGray",
|
|
49
|
+
"coolGray10",
|
|
50
|
+
"coolGray100",
|
|
51
|
+
"coolGray20",
|
|
52
|
+
"coolGray30",
|
|
53
|
+
"coolGray40",
|
|
54
|
+
"coolGray50",
|
|
55
|
+
"coolGray60",
|
|
56
|
+
"coolGray70",
|
|
57
|
+
"coolGray80",
|
|
58
|
+
"coolGray90",
|
|
59
|
+
"cyan",
|
|
60
|
+
"cyan10",
|
|
61
|
+
"cyan100",
|
|
62
|
+
"cyan20",
|
|
63
|
+
"cyan30",
|
|
64
|
+
"cyan40",
|
|
65
|
+
"cyan50",
|
|
66
|
+
"cyan60",
|
|
67
|
+
"cyan70",
|
|
68
|
+
"cyan80",
|
|
69
|
+
"cyan90",
|
|
70
|
+
"danger",
|
|
71
|
+
"danger01",
|
|
72
|
+
"danger02",
|
|
73
|
+
"decorative01",
|
|
74
|
+
"disabled01",
|
|
75
|
+
"disabled02",
|
|
76
|
+
"disabled03",
|
|
77
|
+
"display01",
|
|
78
|
+
"display02",
|
|
79
|
+
"display03",
|
|
80
|
+
"display04",
|
|
81
|
+
"easings",
|
|
82
|
+
"em",
|
|
83
|
+
"expressiveHeading01",
|
|
84
|
+
"expressiveHeading02",
|
|
85
|
+
"expressiveHeading03",
|
|
86
|
+
"expressiveHeading04",
|
|
87
|
+
"expressiveHeading05",
|
|
88
|
+
"expressiveHeading06",
|
|
89
|
+
"expressiveParagraph01",
|
|
90
|
+
"field01",
|
|
91
|
+
"field02",
|
|
92
|
+
"fluid",
|
|
93
|
+
"fluidSpacing",
|
|
94
|
+
"fluidSpacing01",
|
|
95
|
+
"fluidSpacing02",
|
|
96
|
+
"fluidSpacing03",
|
|
97
|
+
"fluidSpacing04",
|
|
98
|
+
"focus",
|
|
99
|
+
"fontFamilies",
|
|
100
|
+
"fontFamily",
|
|
101
|
+
"fontWeight",
|
|
102
|
+
"fontWeights",
|
|
103
|
+
"formatTokenName",
|
|
104
|
+
"g10",
|
|
105
|
+
"g100",
|
|
106
|
+
"g90",
|
|
107
|
+
"getTypeSize",
|
|
108
|
+
"gray",
|
|
109
|
+
"gray10",
|
|
110
|
+
"gray100",
|
|
111
|
+
"gray20",
|
|
112
|
+
"gray30",
|
|
113
|
+
"gray40",
|
|
114
|
+
"gray50",
|
|
115
|
+
"gray60",
|
|
116
|
+
"gray70",
|
|
117
|
+
"gray80",
|
|
118
|
+
"gray90",
|
|
119
|
+
"green",
|
|
120
|
+
"green10",
|
|
121
|
+
"green100",
|
|
122
|
+
"green20",
|
|
123
|
+
"green30",
|
|
124
|
+
"green40",
|
|
125
|
+
"green50",
|
|
126
|
+
"green60",
|
|
127
|
+
"green70",
|
|
128
|
+
"green80",
|
|
129
|
+
"green90",
|
|
130
|
+
"heading01",
|
|
131
|
+
"heading02",
|
|
132
|
+
"helperText01",
|
|
133
|
+
"highlight",
|
|
134
|
+
"hoverDanger",
|
|
135
|
+
"hoverField",
|
|
136
|
+
"hoverLightUI",
|
|
137
|
+
"hoverPrimary",
|
|
138
|
+
"hoverPrimaryText",
|
|
139
|
+
"hoverRow",
|
|
140
|
+
"hoverSecondary",
|
|
141
|
+
"hoverSelectedUI",
|
|
142
|
+
"hoverTertiary",
|
|
143
|
+
"hoverUI",
|
|
144
|
+
"icon01",
|
|
145
|
+
"icon02",
|
|
146
|
+
"icon03",
|
|
147
|
+
"iconSize",
|
|
148
|
+
"iconSize01",
|
|
149
|
+
"iconSize02",
|
|
150
|
+
"interactive01",
|
|
151
|
+
"interactive02",
|
|
152
|
+
"interactive03",
|
|
153
|
+
"interactive04",
|
|
154
|
+
"inverse01",
|
|
155
|
+
"inverse02",
|
|
156
|
+
"inverseFocusUi",
|
|
157
|
+
"inverseHoverUI",
|
|
158
|
+
"inverseLink",
|
|
159
|
+
"inverseSupport01",
|
|
160
|
+
"inverseSupport02",
|
|
161
|
+
"inverseSupport03",
|
|
162
|
+
"inverseSupport04",
|
|
163
|
+
"label01",
|
|
164
|
+
"layout",
|
|
165
|
+
"layout01",
|
|
166
|
+
"layout02",
|
|
167
|
+
"layout03",
|
|
168
|
+
"layout04",
|
|
169
|
+
"layout05",
|
|
170
|
+
"layout06",
|
|
171
|
+
"layout07",
|
|
172
|
+
"link01",
|
|
173
|
+
"magenta",
|
|
174
|
+
"magenta10",
|
|
175
|
+
"magenta100",
|
|
176
|
+
"magenta20",
|
|
177
|
+
"magenta30",
|
|
178
|
+
"magenta40",
|
|
179
|
+
"magenta50",
|
|
180
|
+
"magenta60",
|
|
181
|
+
"magenta70",
|
|
182
|
+
"magenta80",
|
|
183
|
+
"magenta90",
|
|
184
|
+
"miniUnit",
|
|
185
|
+
"miniUnits",
|
|
186
|
+
"motion",
|
|
187
|
+
"orange",
|
|
188
|
+
"orange40",
|
|
189
|
+
"orange60",
|
|
190
|
+
"orange70",
|
|
191
|
+
"overlay01",
|
|
192
|
+
"print",
|
|
193
|
+
"productiveHeading01",
|
|
194
|
+
"productiveHeading02",
|
|
195
|
+
"productiveHeading03",
|
|
196
|
+
"productiveHeading04",
|
|
197
|
+
"productiveHeading05",
|
|
198
|
+
"productiveHeading06",
|
|
199
|
+
"productiveHeading07",
|
|
200
|
+
"purple",
|
|
201
|
+
"purple10",
|
|
202
|
+
"purple100",
|
|
203
|
+
"purple20",
|
|
204
|
+
"purple30",
|
|
205
|
+
"purple40",
|
|
206
|
+
"purple50",
|
|
207
|
+
"purple60",
|
|
208
|
+
"purple70",
|
|
209
|
+
"purple80",
|
|
210
|
+
"purple90",
|
|
211
|
+
"px",
|
|
212
|
+
"quotation01",
|
|
213
|
+
"quotation02",
|
|
214
|
+
"red",
|
|
215
|
+
"red10",
|
|
216
|
+
"red100",
|
|
217
|
+
"red20",
|
|
218
|
+
"red30",
|
|
219
|
+
"red40",
|
|
220
|
+
"red50",
|
|
221
|
+
"red60",
|
|
222
|
+
"red70",
|
|
223
|
+
"red80",
|
|
224
|
+
"red90",
|
|
225
|
+
"rem",
|
|
226
|
+
"reset",
|
|
227
|
+
"rgba",
|
|
228
|
+
"scale",
|
|
229
|
+
"selectedLightUI",
|
|
230
|
+
"selectedUI",
|
|
231
|
+
"skeleton01",
|
|
232
|
+
"skeleton02",
|
|
233
|
+
"spacing",
|
|
234
|
+
"spacing01",
|
|
235
|
+
"spacing02",
|
|
236
|
+
"spacing03",
|
|
237
|
+
"spacing04",
|
|
238
|
+
"spacing05",
|
|
239
|
+
"spacing06",
|
|
240
|
+
"spacing07",
|
|
241
|
+
"spacing08",
|
|
242
|
+
"spacing09",
|
|
243
|
+
"spacing10",
|
|
244
|
+
"spacing11",
|
|
245
|
+
"spacing12",
|
|
246
|
+
"styles",
|
|
247
|
+
"support01",
|
|
248
|
+
"support02",
|
|
249
|
+
"support03",
|
|
250
|
+
"support04",
|
|
251
|
+
"teal",
|
|
252
|
+
"teal10",
|
|
253
|
+
"teal100",
|
|
254
|
+
"teal20",
|
|
255
|
+
"teal30",
|
|
256
|
+
"teal40",
|
|
257
|
+
"teal50",
|
|
258
|
+
"teal60",
|
|
259
|
+
"teal70",
|
|
260
|
+
"teal80",
|
|
261
|
+
"teal90",
|
|
262
|
+
"text01",
|
|
263
|
+
"text02",
|
|
264
|
+
"text03",
|
|
265
|
+
"text04",
|
|
266
|
+
"text05",
|
|
267
|
+
"textError",
|
|
268
|
+
"themes",
|
|
269
|
+
"tokens",
|
|
270
|
+
"ui01",
|
|
271
|
+
"ui02",
|
|
272
|
+
"ui03",
|
|
273
|
+
"ui04",
|
|
274
|
+
"ui05",
|
|
275
|
+
"uiBackground",
|
|
276
|
+
"unstable__meta",
|
|
277
|
+
"unstable_tokens",
|
|
278
|
+
"v9",
|
|
279
|
+
"visitedLink",
|
|
280
|
+
"warmGray",
|
|
281
|
+
"warmGray10",
|
|
282
|
+
"warmGray100",
|
|
283
|
+
"warmGray20",
|
|
284
|
+
"warmGray30",
|
|
285
|
+
"warmGray40",
|
|
286
|
+
"warmGray50",
|
|
287
|
+
"warmGray60",
|
|
288
|
+
"warmGray70",
|
|
289
|
+
"warmGray80",
|
|
290
|
+
"warmGray90",
|
|
291
|
+
"white",
|
|
292
|
+
"white0",
|
|
293
|
+
"yellow",
|
|
294
|
+
"yellow20",
|
|
295
|
+
"yellow30",
|
|
296
|
+
"yellow40",
|
|
297
|
+
"yellow50",
|
|
298
|
+
]
|
|
299
|
+
`;
|
package/src/index.js
CHANGED
|
@@ -131,7 +131,35 @@ export {
|
|
|
131
131
|
yellow40,
|
|
132
132
|
yellow50,
|
|
133
133
|
} from '@carbon/colors';
|
|
134
|
+
export {
|
|
135
|
+
fluid,
|
|
136
|
+
fontFamilies,
|
|
137
|
+
fontFamily,
|
|
138
|
+
fontWeights,
|
|
139
|
+
fontWeight,
|
|
140
|
+
print,
|
|
141
|
+
reset,
|
|
142
|
+
getTypeSize,
|
|
143
|
+
scale,
|
|
144
|
+
styles,
|
|
145
|
+
unstable_tokens,
|
|
146
|
+
} from '@carbon/type';
|
|
147
|
+
export {
|
|
148
|
+
baseFontSize,
|
|
149
|
+
rem,
|
|
150
|
+
em,
|
|
151
|
+
px,
|
|
152
|
+
breakpoints,
|
|
153
|
+
breakpointUp,
|
|
154
|
+
breakpointDown,
|
|
155
|
+
breakpoint,
|
|
156
|
+
container,
|
|
157
|
+
fluidSpacing,
|
|
158
|
+
iconSize,
|
|
159
|
+
miniUnit,
|
|
160
|
+
miniUnits,
|
|
161
|
+
layout,
|
|
162
|
+
spacing,
|
|
163
|
+
} from '@carbon/layout';
|
|
134
164
|
export * from '@carbon/themes';
|
|
135
|
-
export * from '@carbon/layout';
|
|
136
165
|
export * from '@carbon/motion';
|
|
137
|
-
export * from '@carbon/type';
|
package/umd/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@carbon/colors'), require('@carbon/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@carbon/colors', '@carbon/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonElements = {}, global.CarbonColors, global.
|
|
5
|
-
}(this, (function (exports, colors,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@carbon/colors'), require('@carbon/type'), require('@carbon/layout'), require('@carbon/themes'), require('@carbon/motion')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@carbon/colors', '@carbon/type', '@carbon/layout', '@carbon/themes', '@carbon/motion'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonElements = {}, global.CarbonColors, global.CarbonType, global.CarbonLayout, global.CarbonThemes, global.CarbonMotion));
|
|
5
|
+
}(this, (function (exports, colors, type, layout, themes, motion) { 'use strict';
|
|
6
6
|
|
|
7
7
|
Object.keys(themes).forEach(function (k) {
|
|
8
8
|
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
@@ -12,14 +12,6 @@
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
|
-
Object.keys(layout).forEach(function (k) {
|
|
16
|
-
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () {
|
|
19
|
-
return layout[k];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
15
|
Object.keys(motion).forEach(function (k) {
|
|
24
16
|
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
25
17
|
enumerable: true,
|
|
@@ -28,14 +20,6 @@
|
|
|
28
20
|
}
|
|
29
21
|
});
|
|
30
22
|
});
|
|
31
|
-
Object.keys(type).forEach(function (k) {
|
|
32
|
-
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return type[k];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
23
|
Object.defineProperty(exports, 'black', {
|
|
40
24
|
enumerable: true,
|
|
41
25
|
get: function () {
|
|
@@ -780,6 +764,162 @@
|
|
|
780
764
|
return colors.yellow50;
|
|
781
765
|
}
|
|
782
766
|
});
|
|
767
|
+
Object.defineProperty(exports, 'fluid', {
|
|
768
|
+
enumerable: true,
|
|
769
|
+
get: function () {
|
|
770
|
+
return type.fluid;
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
Object.defineProperty(exports, 'fontFamilies', {
|
|
774
|
+
enumerable: true,
|
|
775
|
+
get: function () {
|
|
776
|
+
return type.fontFamilies;
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
Object.defineProperty(exports, 'fontFamily', {
|
|
780
|
+
enumerable: true,
|
|
781
|
+
get: function () {
|
|
782
|
+
return type.fontFamily;
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
Object.defineProperty(exports, 'fontWeight', {
|
|
786
|
+
enumerable: true,
|
|
787
|
+
get: function () {
|
|
788
|
+
return type.fontWeight;
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
Object.defineProperty(exports, 'fontWeights', {
|
|
792
|
+
enumerable: true,
|
|
793
|
+
get: function () {
|
|
794
|
+
return type.fontWeights;
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
Object.defineProperty(exports, 'getTypeSize', {
|
|
798
|
+
enumerable: true,
|
|
799
|
+
get: function () {
|
|
800
|
+
return type.getTypeSize;
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
Object.defineProperty(exports, 'print', {
|
|
804
|
+
enumerable: true,
|
|
805
|
+
get: function () {
|
|
806
|
+
return type.print;
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
Object.defineProperty(exports, 'reset', {
|
|
810
|
+
enumerable: true,
|
|
811
|
+
get: function () {
|
|
812
|
+
return type.reset;
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
Object.defineProperty(exports, 'scale', {
|
|
816
|
+
enumerable: true,
|
|
817
|
+
get: function () {
|
|
818
|
+
return type.scale;
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
Object.defineProperty(exports, 'styles', {
|
|
822
|
+
enumerable: true,
|
|
823
|
+
get: function () {
|
|
824
|
+
return type.styles;
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
Object.defineProperty(exports, 'unstable_tokens', {
|
|
828
|
+
enumerable: true,
|
|
829
|
+
get: function () {
|
|
830
|
+
return type.unstable_tokens;
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
Object.defineProperty(exports, 'baseFontSize', {
|
|
834
|
+
enumerable: true,
|
|
835
|
+
get: function () {
|
|
836
|
+
return layout.baseFontSize;
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
Object.defineProperty(exports, 'breakpoint', {
|
|
840
|
+
enumerable: true,
|
|
841
|
+
get: function () {
|
|
842
|
+
return layout.breakpoint;
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
Object.defineProperty(exports, 'breakpointDown', {
|
|
846
|
+
enumerable: true,
|
|
847
|
+
get: function () {
|
|
848
|
+
return layout.breakpointDown;
|
|
849
|
+
}
|
|
850
|
+
});
|
|
851
|
+
Object.defineProperty(exports, 'breakpointUp', {
|
|
852
|
+
enumerable: true,
|
|
853
|
+
get: function () {
|
|
854
|
+
return layout.breakpointUp;
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
Object.defineProperty(exports, 'breakpoints', {
|
|
858
|
+
enumerable: true,
|
|
859
|
+
get: function () {
|
|
860
|
+
return layout.breakpoints;
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
Object.defineProperty(exports, 'container', {
|
|
864
|
+
enumerable: true,
|
|
865
|
+
get: function () {
|
|
866
|
+
return layout.container;
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
Object.defineProperty(exports, 'em', {
|
|
870
|
+
enumerable: true,
|
|
871
|
+
get: function () {
|
|
872
|
+
return layout.em;
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
Object.defineProperty(exports, 'fluidSpacing', {
|
|
876
|
+
enumerable: true,
|
|
877
|
+
get: function () {
|
|
878
|
+
return layout.fluidSpacing;
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
Object.defineProperty(exports, 'iconSize', {
|
|
882
|
+
enumerable: true,
|
|
883
|
+
get: function () {
|
|
884
|
+
return layout.iconSize;
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
Object.defineProperty(exports, 'layout', {
|
|
888
|
+
enumerable: true,
|
|
889
|
+
get: function () {
|
|
890
|
+
return layout.layout;
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
Object.defineProperty(exports, 'miniUnit', {
|
|
894
|
+
enumerable: true,
|
|
895
|
+
get: function () {
|
|
896
|
+
return layout.miniUnit;
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
Object.defineProperty(exports, 'miniUnits', {
|
|
900
|
+
enumerable: true,
|
|
901
|
+
get: function () {
|
|
902
|
+
return layout.miniUnits;
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
Object.defineProperty(exports, 'px', {
|
|
906
|
+
enumerable: true,
|
|
907
|
+
get: function () {
|
|
908
|
+
return layout.px;
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
Object.defineProperty(exports, 'rem', {
|
|
912
|
+
enumerable: true,
|
|
913
|
+
get: function () {
|
|
914
|
+
return layout.rem;
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
Object.defineProperty(exports, 'spacing', {
|
|
918
|
+
enumerable: true,
|
|
919
|
+
get: function () {
|
|
920
|
+
return layout.spacing;
|
|
921
|
+
}
|
|
922
|
+
});
|
|
783
923
|
|
|
784
924
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
785
925
|
|