@codecademy/variance 0.18.2-alpha.ac83cf.0 → 0.19.1-alpha.a809e8.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +93 -56
  2. package/package.json +5 -5
  3. package/dist/core.d.ts +0 -10
  4. package/dist/core.js +0 -251
  5. package/dist/core.js.map +0 -1
  6. package/dist/createTheme/createTheme.d.ts +0 -55
  7. package/dist/createTheme/createTheme.js +0 -168
  8. package/dist/createTheme/createTheme.js.map +0 -1
  9. package/dist/createTheme/createTheme.test.d.ts +0 -1
  10. package/dist/createTheme/createTheme.test.js +0 -192
  11. package/dist/createTheme/createTheme.test.js.map +0 -1
  12. package/dist/createTheme/index.d.ts +0 -3
  13. package/dist/createTheme/index.js +0 -3
  14. package/dist/createTheme/index.js.map +0 -1
  15. package/dist/createTheme/types.d.ts +0 -42
  16. package/dist/createTheme/types.js +0 -0
  17. package/dist/createTheme/types.js.map +0 -1
  18. package/dist/index.d.ts +0 -5
  19. package/dist/index.js +0 -5
  20. package/dist/index.js.map +0 -1
  21. package/dist/scales/createScale.d.ts +0 -3
  22. package/dist/scales/createScale.js +0 -3
  23. package/dist/scales/createScale.js.map +0 -1
  24. package/dist/scales/createScaleLookup.d.ts +0 -5
  25. package/dist/scales/createScaleLookup.js +0 -24
  26. package/dist/scales/createScaleLookup.js.map +0 -1
  27. package/dist/transforms/index.d.ts +0 -1
  28. package/dist/transforms/index.js +0 -1
  29. package/dist/transforms/index.js.map +0 -1
  30. package/dist/transforms/transformSize.d.ts +0 -2
  31. package/dist/transforms/transformSize.js +0 -47
  32. package/dist/transforms/transformSize.js.map +0 -1
  33. package/dist/types/config.d.ts +0 -71
  34. package/dist/types/config.js +0 -0
  35. package/dist/types/config.js.map +0 -1
  36. package/dist/types/properties.d.ts +0 -22
  37. package/dist/types/properties.js +0 -0
  38. package/dist/types/properties.js.map +0 -1
  39. package/dist/types/props.d.ts +0 -47
  40. package/dist/types/props.js +0 -0
  41. package/dist/types/props.js.map +0 -1
  42. package/dist/types/theme.d.ts +0 -17
  43. package/dist/types/theme.js +0 -0
  44. package/dist/types/theme.js.map +0 -1
  45. package/dist/types/utils.d.ts +0 -3
  46. package/dist/types/utils.js +0 -0
  47. package/dist/types/utils.js.map +0 -1
  48. package/dist/utils/__fixtures__/testConfig.d.ts +0 -153
  49. package/dist/utils/__fixtures__/testConfig.js +0 -153
  50. package/dist/utils/__fixtures__/testConfig.js.map +0 -1
  51. package/dist/utils/flattenScale.d.ts +0 -20
  52. package/dist/utils/flattenScale.js +0 -24
  53. package/dist/utils/flattenScale.js.map +0 -1
  54. package/dist/utils/getStaticProperties.d.ts +0 -1
  55. package/dist/utils/getStaticProperties.js +0 -6
  56. package/dist/utils/getStaticProperties.js.map +0 -1
  57. package/dist/utils/propNames.d.ts +0 -6
  58. package/dist/utils/propNames.js +0 -52
  59. package/dist/utils/propNames.js.map +0 -1
  60. package/dist/utils/responsive.d.ts +0 -16
  61. package/dist/utils/responsive.js +0 -94
  62. package/dist/utils/responsive.js.map +0 -1
  63. package/dist/utils/serializeTokens.d.ts +0 -18
  64. package/dist/utils/serializeTokens.js +0 -42
  65. package/dist/utils/serializeTokens.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ### [0.18.2-alpha.ac83cf.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.18.1...@codecademy/variance@0.18.2-alpha.ac83cf.0) (2021-10-06)
6
+ ### [0.19.1-alpha.a809e8.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.19.0...@codecademy/variance@0.19.1-alpha.a809e8.0) (2022-01-06)
7
7
 
8
8
  **Note:** Version bump only for package @codecademy/variance
9
9
 
@@ -11,7 +11,44 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ### [0.18.1](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.18.0...@codecademy/variance@0.18.1) (2021-09-13)
14
+ ## 0.19.0 (2021-10-26)
15
+
16
+
17
+ ### Features
18
+
19
+ * Add admin theme ([7090b30](https://github.com/Codecademy/gamut/commit/7090b303c5451113983e5345316a821ddfaaf1fc))
20
+ * bump ESLint configs to latest ([4e3cf77](https://github.com/Codecademy/gamut/commit/4e3cf77928bdd69bce3eeca8a7f07439627b4f08))
21
+ * **Anchor:** Variance Migration + ColorMode [GM-203] ([dd0058b](https://github.com/Codecademy/gamut/commit/dd0058b0ba96a2f8cca804884c2d2fcf66951ee4))
22
+ * **Buttons:** ColorModes + Props + Refactor + Refs Oh My! [GM-211] [REACH-856] [GM-192] ([998c2cc](https://github.com/Codecademy/gamut/commit/998c2cc01945e8b675a01f60a38bc2a03250ac8e))
23
+ * **ColorModes:** Base ColorMode support and serialization of color variables [GM-177] ([9f322b4](https://github.com/Codecademy/gamut/commit/9f322b4ed959e1245a18dbddb42f33be3e0d9356))
24
+ * **LayoutGrid:** LayoutGrid conversion + Initial Variance Props [GM-81] ([14a753e](https://github.com/Codecademy/gamut/commit/14a753e2850bd381aa9f6819c5bac623b39e4036))
25
+ * **Text:** Add more common utility variants / states as props GM-248 ([ae5d92b](https://github.com/Codecademy/gamut/commit/ae5d92b7091ba2786890eb1a5aecdf93123eb3b0))
26
+ * **theme:** createTheme self containment ([87a203c](https://github.com/Codecademy/gamut/commit/87a203c56df8002406552208b8b5ffc55b228262)), closes [#666666](https://github.com/Codecademy/gamut/issues/666666) [#666666](https://github.com/Codecademy/gamut/issues/666666)
27
+ * **variance:** Computed styles, and configurable CSSType narrowing [GM-233] ([ddb4091](https://github.com/Codecademy/gamut/commit/ddb40917fe41b0dc741d34f5c34ec6d0bf29dad1))
28
+ * Navy scale + color alias changes GM-237 ([3c8a772](https://github.com/Codecademy/gamut/commit/3c8a772271492e0ecc8d724f296f0bfe5ef17112)), closes [#10162](https://github.com/Codecademy/gamut/issues/10162)
29
+ * **ThemeBuilder:** TypeSafe theme construction + variable serialization [WEB-1401] ([e0a4c16](https://github.com/Codecademy/gamut/commit/e0a4c163e39b64c7d7290a325c900f05ae5ce4e4))
30
+ * **variance:** states boolean toggle styles GM-233 ([a4fa8cf](https://github.com/Codecademy/gamut/commit/a4fa8cf473a1b22648fa480025630a9d1827f84d))
31
+ * **Variance:** `css` - Standard CSS Property Passthrough + Selector System Props [WEB-1117] ([7dbb56d](https://github.com/Codecademy/gamut/commit/7dbb56dbc5e4feaf572ded6a27c3f63403df3e65))
32
+ * **Variance:** base => _ for un scoped style [WEB-1381] ([2f9e8ba](https://github.com/Codecademy/gamut/commit/2f9e8ba3c472251f6ce71aed8e15e8a669b3588a))
33
+ * **Variance:** Experimental MVP for internal use ([0d4d545](https://github.com/Codecademy/gamut/commit/0d4d5450d2a37a12349b632865341857969c9462))
34
+ * **Variance:** Initial Props and Refactor Tests [WEB-1390] ([9f29489](https://github.com/Codecademy/gamut/commit/9f294894b49915ea0504749ecdca7e62d46d475e))
35
+ * **Variance:** Static CSS Methods `css` and `variant` [WEB-1116] ([cbba228](https://github.com/Codecademy/gamut/commit/cbba228c89fce89026fb14e15a1ec157cf574082))
36
+ * **Variance:** Use only the global emotion theme type (Stage 5: Acceptance) [WEB-1382] ([dff7044](https://github.com/Codecademy/gamut/commit/dff704492cd61a762ea315d86625ce78702347b9)), closes [/github.com/Codecademy/client-modules/blob/609bc7f3ab936d856225fb9885d0ae5afeac8b58/packages/variance/src/__tests__/localTheme.ts#L28-L29](https://github.com/Codecademy//github.com/Codecademy/client-modules/blob/609bc7f3ab936d856225fb9885d0ae5afeac8b58/packages/variance/src/__tests__/localTheme.ts/issues/L28-L29)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * **variance:** Ensure array scales always qualify for transformation ([64ef813](https://github.com/Codecademy/gamut/commit/64ef813d8224525c34e03ed66020753ad487cb1b))
42
+ * **variance:** Fix theme computations and add more tests for prop behavior ([078f9db](https://github.com/Codecademy/gamut/commit/078f9dba4f49803c374db6b93eeba878dc3dd2ac))
43
+ * Safe deep merge typings ([a190205](https://github.com/Codecademy/gamut/commit/a190205fff6a77cbdc7f9a2989aa824b36fac706))
44
+ * Theme extension merge logic ([de3cbf2](https://github.com/Codecademy/gamut/commit/de3cbf25995b6be7769cbb92bc51d13e5f6a6695))
45
+ * **Text:** Fontweight for body text and none scalar typings ([fe31fb2](https://github.com/Codecademy/gamut/commit/fe31fb239b9e958022585275025e976c6b559ddd))
46
+ * **variance:** Fix static css mutability for `css` [GM-235] ([ab5dd04](https://github.com/Codecademy/gamut/commit/ab5dd04724e120eca3069a44cb22cb92aebc714a))
47
+ * **Variance:** Add better prop sorting tests ([ee97906](https://github.com/Codecademy/gamut/commit/ee97906a04246629e1c0ccfd44cdf9131f9e821c))
48
+
49
+
50
+
51
+ ### [0.18.1](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.18.0...@codecademy/variance@0.18.1) (2021-09-13)
15
52
 
16
53
  **Note:** Version bump only for package @codecademy/variance
17
54
 
@@ -19,115 +56,115 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
56
 
20
57
 
21
58
 
22
- ## [0.18.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.17.4...@codecademy/variance@0.18.0) (2021-09-10)
59
+ ## [0.18.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.17.4...@codecademy/variance@0.18.0) (2021-09-10)
23
60
 
24
61
 
25
62
  ### Features
26
63
 
27
- * bump ESLint configs to latest ([e0a201a](https://github.com/Codecademy/client-modules/commit/e0a201abcc5f49718538d3d91af21cb37db4470e))
64
+ * bump ESLint configs to latest ([e0a201a](https://github.com/Codecademy/gamut/commit/e0a201abcc5f49718538d3d91af21cb37db4470e))
28
65
 
29
66
 
30
67
 
31
- ### [0.17.4](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.17.3...@codecademy/variance@0.17.4) (2021-08-30)
68
+ ### [0.17.4](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.17.3...@codecademy/variance@0.17.4) (2021-08-30)
32
69
 
33
70
 
34
71
  ### Bug Fixes
35
72
 
36
- * **variance:** Fix theme computations and add more tests for prop behavior ([0cc017a](https://github.com/Codecademy/client-modules/commit/0cc017ac3b6a519da9ee4d4d4488a9e0da9029a2))
73
+ * **variance:** Fix theme computations and add more tests for prop behavior ([0cc017a](https://github.com/Codecademy/gamut/commit/0cc017ac3b6a519da9ee4d4d4488a9e0da9029a2))
37
74
 
38
75
 
39
76
 
40
- ### [0.17.3](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.17.2...@codecademy/variance@0.17.3) (2021-08-12)
77
+ ### [0.17.3](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.17.2...@codecademy/variance@0.17.3) (2021-08-12)
41
78
 
42
79
 
43
80
  ### Bug Fixes
44
81
 
45
- * **variance:** Ensure array scales always qualify for transformation ([66f1760](https://github.com/Codecademy/client-modules/commit/66f1760c85aa605bae89195801683faab01822e3))
82
+ * **variance:** Ensure array scales always qualify for transformation ([66f1760](https://github.com/Codecademy/gamut/commit/66f1760c85aa605bae89195801683faab01822e3))
46
83
 
47
84
 
48
85
 
49
- ### [0.17.2](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.17.1...@codecademy/variance@0.17.2) (2021-07-19)
86
+ ### [0.17.2](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.17.1...@codecademy/variance@0.17.2) (2021-07-19)
50
87
 
51
88
 
52
89
  ### Bug Fixes
53
90
 
54
- * Safe deep merge typings ([541272c](https://github.com/Codecademy/client-modules/commit/541272c424637c8699c16ef25e3fefb9b17041ea))
91
+ * Safe deep merge typings ([541272c](https://github.com/Codecademy/gamut/commit/541272c424637c8699c16ef25e3fefb9b17041ea))
55
92
 
56
93
 
57
94
 
58
- ### [0.17.1](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.17.0...@codecademy/variance@0.17.1) (2021-07-16)
95
+ ### [0.17.1](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.17.0...@codecademy/variance@0.17.1) (2021-07-16)
59
96
 
60
97
 
61
98
  ### Bug Fixes
62
99
 
63
- * Theme extension merge logic ([9b32463](https://github.com/Codecademy/client-modules/commit/9b32463d044ead994b2c173bc07c5ebbd5511187))
100
+ * Theme extension merge logic ([9b32463](https://github.com/Codecademy/gamut/commit/9b32463d044ead994b2c173bc07c5ebbd5511187))
64
101
 
65
102
 
66
103
 
67
- ## [0.17.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.16.0...@codecademy/variance@0.17.0) (2021-07-15)
104
+ ## [0.17.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.16.0...@codecademy/variance@0.17.0) (2021-07-15)
68
105
 
69
106
 
70
107
  ### Features
71
108
 
72
- * Add admin theme ([c5f7bf9](https://github.com/Codecademy/client-modules/commit/c5f7bf9faaf86b2aca3f8dffd67480d50999be7b))
109
+ * Add admin theme ([c5f7bf9](https://github.com/Codecademy/gamut/commit/c5f7bf9faaf86b2aca3f8dffd67480d50999be7b))
73
110
 
74
111
 
75
112
 
76
- ## [0.16.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.15.0...@codecademy/variance@0.16.0) (2021-06-16)
113
+ ## [0.16.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.15.0...@codecademy/variance@0.16.0) (2021-06-16)
77
114
 
78
115
 
79
116
  ### Features
80
117
 
81
- * **variance:** Computed styles, and configurable CSSType narrowing [GM-233] ([c258c19](https://github.com/Codecademy/client-modules/commit/c258c19b7970b41361b6cfafe76e2a52b7b4c828))
118
+ * **variance:** Computed styles, and configurable CSSType narrowing [GM-233] ([c258c19](https://github.com/Codecademy/gamut/commit/c258c19b7970b41361b6cfafe76e2a52b7b4c828))
82
119
 
83
120
 
84
121
 
85
- ## [0.15.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.14.0...@codecademy/variance@0.15.0) (2021-06-16)
122
+ ## [0.15.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.14.0...@codecademy/variance@0.15.0) (2021-06-16)
86
123
 
87
124
 
88
125
  ### Features
89
126
 
90
- * **Text:** Add more common utility variants / states as props GM-248 ([85b541c](https://github.com/Codecademy/client-modules/commit/85b541cbb85ef5c60b8012196680e1062d469ad1))
127
+ * **Text:** Add more common utility variants / states as props GM-248 ([85b541c](https://github.com/Codecademy/gamut/commit/85b541cbb85ef5c60b8012196680e1062d469ad1))
91
128
 
92
129
 
93
130
 
94
- ## [0.14.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.13.0...@codecademy/variance@0.14.0) (2021-06-10)
131
+ ## [0.14.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.13.0...@codecademy/variance@0.14.0) (2021-06-10)
95
132
 
96
133
 
97
134
  ### Features
98
135
 
99
- * Navy scale + color alias changes GM-237 ([bf896dd](https://github.com/Codecademy/client-modules/commit/bf896dd3fcf0435ef557694740d96df38d12173b)), closes [#10162](https://github.com/Codecademy/client-modules/issues/10162)
136
+ * Navy scale + color alias changes GM-237 ([bf896dd](https://github.com/Codecademy/gamut/commit/bf896dd3fcf0435ef557694740d96df38d12173b)), closes [#10162](https://github.com/Codecademy/gamut/issues/10162)
100
137
 
101
138
 
102
139
 
103
- ## [0.13.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.12.1...@codecademy/variance@0.13.0) (2021-06-10)
140
+ ## [0.13.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.12.1...@codecademy/variance@0.13.0) (2021-06-10)
104
141
 
105
142
 
106
143
  ### Features
107
144
 
108
- * **variance:** states boolean toggle styles GM-233 ([e463f0e](https://github.com/Codecademy/client-modules/commit/e463f0e77802a3565ddda4de2e14050372923678))
145
+ * **variance:** states boolean toggle styles GM-233 ([e463f0e](https://github.com/Codecademy/gamut/commit/e463f0e77802a3565ddda4de2e14050372923678))
109
146
 
110
147
 
111
148
 
112
- ### [0.12.1](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.12.0...@codecademy/variance@0.12.1) (2021-06-02)
149
+ ### [0.12.1](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.12.0...@codecademy/variance@0.12.1) (2021-06-02)
113
150
 
114
151
 
115
152
  ### Bug Fixes
116
153
 
117
- * **variance:** Fix static css mutability for `css` [GM-235] ([5eab7d9](https://github.com/Codecademy/client-modules/commit/5eab7d99865947002a545db0ff372454b09494d3))
154
+ * **variance:** Fix static css mutability for `css` [GM-235] ([5eab7d9](https://github.com/Codecademy/gamut/commit/5eab7d99865947002a545db0ff372454b09494d3))
118
155
 
119
156
 
120
157
 
121
- ## [0.12.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.11.2...@codecademy/variance@0.12.0) (2021-05-18)
158
+ ## [0.12.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.11.2...@codecademy/variance@0.12.0) (2021-05-18)
122
159
 
123
160
 
124
161
  ### Features
125
162
 
126
- * **theme:** createTheme self containment ([59ddff7](https://github.com/Codecademy/client-modules/commit/59ddff7224cd8e0972212dd6ba1696f40ccac835)), closes [#666666](https://github.com/Codecademy/client-modules/issues/666666) [#666666](https://github.com/Codecademy/client-modules/issues/666666)
163
+ * **theme:** createTheme self containment ([59ddff7](https://github.com/Codecademy/gamut/commit/59ddff7224cd8e0972212dd6ba1696f40ccac835)), closes [#666666](https://github.com/Codecademy/gamut/issues/666666) [#666666](https://github.com/Codecademy/gamut/issues/666666)
127
164
 
128
165
 
129
166
 
130
- ### [0.11.2](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.11.1...@codecademy/variance@0.11.2) (2021-05-07)
167
+ ### [0.11.2](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.11.1...@codecademy/variance@0.11.2) (2021-05-07)
131
168
 
132
169
  **Note:** Version bump only for package @codecademy/variance
133
170
 
@@ -135,7 +172,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
135
172
 
136
173
 
137
174
 
138
- ### [0.11.1](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.11.0...@codecademy/variance@0.11.1) (2021-05-03)
175
+ ### [0.11.1](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.11.0...@codecademy/variance@0.11.1) (2021-05-03)
139
176
 
140
177
  **Note:** Version bump only for package @codecademy/variance
141
178
 
@@ -143,106 +180,106 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
143
180
 
144
181
 
145
182
 
146
- ## [0.11.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.10.1...@codecademy/variance@0.11.0) (2021-04-29)
183
+ ## [0.11.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.10.1...@codecademy/variance@0.11.0) (2021-04-29)
147
184
 
148
185
 
149
186
  ### Features
150
187
 
151
- * **Buttons:** ColorModes + Props + Refactor + Refs Oh My! [GM-211] [REACH-856] [GM-192] ([c4643db](https://github.com/Codecademy/client-modules/commit/c4643db64d3684319f8d5fc6f68d05197ec1f61e))
188
+ * **Buttons:** ColorModes + Props + Refactor + Refs Oh My! [GM-211] [REACH-856] [GM-192] ([c4643db](https://github.com/Codecademy/gamut/commit/c4643db64d3684319f8d5fc6f68d05197ec1f61e))
152
189
 
153
190
 
154
191
 
155
- ### [0.10.1](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.10.0...@codecademy/variance@0.10.1) (2021-04-27)
192
+ ### [0.10.1](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.10.0...@codecademy/variance@0.10.1) (2021-04-27)
156
193
 
157
194
 
158
195
  ### Bug Fixes
159
196
 
160
- * **Text:** Fontweight for body text and none scalar typings ([aa113dc](https://github.com/Codecademy/client-modules/commit/aa113dcaee4bffd7a23c9acf87308c32816f07fe))
197
+ * **Text:** Fontweight for body text and none scalar typings ([aa113dc](https://github.com/Codecademy/gamut/commit/aa113dcaee4bffd7a23c9acf87308c32816f07fe))
161
198
 
162
199
 
163
200
 
164
- ## [0.10.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.9.0...@codecademy/variance@0.10.0) (2021-04-26)
201
+ ## [0.10.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.9.0...@codecademy/variance@0.10.0) (2021-04-26)
165
202
 
166
203
 
167
204
  ### Features
168
205
 
169
- * **Anchor:** Variance Migration + ColorMode [GM-203] ([d5ae675](https://github.com/Codecademy/client-modules/commit/d5ae6758c65a837066562eb0ed8b964176889148))
206
+ * **Anchor:** Variance Migration + ColorMode [GM-203] ([d5ae675](https://github.com/Codecademy/gamut/commit/d5ae6758c65a837066562eb0ed8b964176889148))
170
207
 
171
208
 
172
209
 
173
- ## [0.9.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.8.0...@codecademy/variance@0.9.0) (2021-04-15)
210
+ ## [0.9.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.8.0...@codecademy/variance@0.9.0) (2021-04-15)
174
211
 
175
212
 
176
213
  ### Features
177
214
 
178
- * **LayoutGrid:** LayoutGrid conversion + Initial Variance Props [GM-81] ([2b51494](https://github.com/Codecademy/client-modules/commit/2b514940871759b66f91aa1f333be558e1ee517a))
215
+ * **LayoutGrid:** LayoutGrid conversion + Initial Variance Props [GM-81] ([2b51494](https://github.com/Codecademy/gamut/commit/2b514940871759b66f91aa1f333be558e1ee517a))
179
216
 
180
217
 
181
218
 
182
- ## [0.8.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.7.1...@codecademy/variance@0.8.0) (2021-04-15)
219
+ ## [0.8.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.7.1...@codecademy/variance@0.8.0) (2021-04-15)
183
220
 
184
221
 
185
222
  ### Features
186
223
 
187
- * **ThemeBuilder:** TypeSafe theme construction + variable serialization [WEB-1401] ([8ccae3d](https://github.com/Codecademy/client-modules/commit/8ccae3d2081df94525269e443ac1b335953597c7))
224
+ * **ThemeBuilder:** TypeSafe theme construction + variable serialization [WEB-1401] ([8ccae3d](https://github.com/Codecademy/gamut/commit/8ccae3d2081df94525269e443ac1b335953597c7))
188
225
 
189
226
 
190
227
 
191
- ### [0.7.1](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.7.0...@codecademy/variance@0.7.1) (2021-04-09)
228
+ ### [0.7.1](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.7.0...@codecademy/variance@0.7.1) (2021-04-09)
192
229
 
193
230
 
194
231
  ### Bug Fixes
195
232
 
196
- * **Variance:** Add better prop sorting tests ([c5e7d49](https://github.com/Codecademy/client-modules/commit/c5e7d494930ff4cb1bd304d2d220148a0bbe2fad))
233
+ * **Variance:** Add better prop sorting tests ([c5e7d49](https://github.com/Codecademy/gamut/commit/c5e7d494930ff4cb1bd304d2d220148a0bbe2fad))
197
234
 
198
235
 
199
236
 
200
- ## [0.7.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.6.0...@codecademy/variance@0.7.0) (2021-04-08)
237
+ ## [0.7.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.6.0...@codecademy/variance@0.7.0) (2021-04-08)
201
238
 
202
239
 
203
240
  ### Features
204
241
 
205
- * **ColorModes:** Base ColorMode support and serialization of color variables [GM-177] ([b588132](https://github.com/Codecademy/client-modules/commit/b5881326ace09f0b1b7052f24e59ecb5b8326aef))
242
+ * **ColorModes:** Base ColorMode support and serialization of color variables [GM-177] ([b588132](https://github.com/Codecademy/gamut/commit/b5881326ace09f0b1b7052f24e59ecb5b8326aef))
206
243
 
207
244
 
208
245
 
209
- ## [0.6.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.5.0...@codecademy/variance@0.6.0) (2021-04-06)
246
+ ## [0.6.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.5.0...@codecademy/variance@0.6.0) (2021-04-06)
210
247
 
211
248
 
212
249
  ### Features
213
250
 
214
- * **Variance:** Initial Props and Refactor Tests [WEB-1390] ([e4b5177](https://github.com/Codecademy/client-modules/commit/e4b5177544643fec274d20f37be594b140a4cba3))
251
+ * **Variance:** Initial Props and Refactor Tests [WEB-1390] ([e4b5177](https://github.com/Codecademy/gamut/commit/e4b5177544643fec274d20f37be594b140a4cba3))
215
252
 
216
253
 
217
254
 
218
- ## [0.5.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.4.0...@codecademy/variance@0.5.0) (2021-03-31)
255
+ ## [0.5.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.4.0...@codecademy/variance@0.5.0) (2021-03-31)
219
256
 
220
257
 
221
258
  ### Features
222
259
 
223
- * **Variance:** Use only the global emotion theme type (Stage 5: Acceptance) [WEB-1382] ([e4215e9](https://github.com/Codecademy/client-modules/commit/e4215e9aacb2092ed77cd530822c5389c7b47123)), closes [/github.com/Codecademy/client-modules/blob/609bc7f3ab936d856225fb9885d0ae5afeac8b58/packages/variance/src/__tests__/localTheme.ts#L28-L29](https://github.com/Codecademy//github.com/Codecademy/client-modules/blob/609bc7f3ab936d856225fb9885d0ae5afeac8b58/packages/variance/src/__tests__/localTheme.ts/issues/L28-L29)
260
+ * **Variance:** Use only the global emotion theme type (Stage 5: Acceptance) [WEB-1382] ([e4215e9](https://github.com/Codecademy/gamut/commit/e4215e9aacb2092ed77cd530822c5389c7b47123)), closes [/github.com/Codecademy/gamut/blob/609bc7f3ab936d856225fb9885d0ae5afeac8b58/packages/variance/src/__tests__/localTheme.ts#L28-L29](https://github.com/Codecademy//github.com/Codecademy/gamut/blob/609bc7f3ab936d856225fb9885d0ae5afeac8b58/packages/variance/src/__tests__/localTheme.ts/issues/L28-L29)
224
261
 
225
262
 
226
263
 
227
- ## [0.4.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.3.0...@codecademy/variance@0.4.0) (2021-03-31)
264
+ ## [0.4.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.3.0...@codecademy/variance@0.4.0) (2021-03-31)
228
265
 
229
266
 
230
267
  ### Features
231
268
 
232
- * **Variance:** base => _ for un scoped style [WEB-1381] ([f3d254c](https://github.com/Codecademy/client-modules/commit/f3d254cccc3dc3cd074df070a51ed8a2ca232a74))
269
+ * **Variance:** base => _ for un scoped style [WEB-1381] ([f3d254c](https://github.com/Codecademy/gamut/commit/f3d254cccc3dc3cd074df070a51ed8a2ca232a74))
233
270
 
234
271
 
235
272
 
236
- ## [0.3.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.2.1...@codecademy/variance@0.3.0) (2021-03-31)
273
+ ## [0.3.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.2.1...@codecademy/variance@0.3.0) (2021-03-31)
237
274
 
238
275
 
239
276
  ### Features
240
277
 
241
- * **Variance:** `css` - Standard CSS Property Passthrough + Selector System Props [WEB-1117] ([6c2c48d](https://github.com/Codecademy/client-modules/commit/6c2c48dc96012bc685ca4ab93d189d1e39d266b1))
278
+ * **Variance:** `css` - Standard CSS Property Passthrough + Selector System Props [WEB-1117] ([6c2c48d](https://github.com/Codecademy/gamut/commit/6c2c48dc96012bc685ca4ab93d189d1e39d266b1))
242
279
 
243
280
 
244
281
 
245
- ### [0.2.1](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.2.0...@codecademy/variance@0.2.1) (2021-03-30)
282
+ ### [0.2.1](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.2.0...@codecademy/variance@0.2.1) (2021-03-30)
246
283
 
247
284
  **Note:** Version bump only for package @codecademy/variance
248
285
 
@@ -250,16 +287,16 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
250
287
 
251
288
 
252
289
 
253
- ## [0.2.0](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.1.2...@codecademy/variance@0.2.0) (2021-03-30)
290
+ ## [0.2.0](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.1.2...@codecademy/variance@0.2.0) (2021-03-30)
254
291
 
255
292
 
256
293
  ### Features
257
294
 
258
- * **Variance:** Static CSS Methods `css` and `variant` [WEB-1116] ([b9915f5](https://github.com/Codecademy/client-modules/commit/b9915f54bc738d81e46cb84744a44e8bfbdd29a0))
295
+ * **Variance:** Static CSS Methods `css` and `variant` [WEB-1116] ([b9915f5](https://github.com/Codecademy/gamut/commit/b9915f54bc738d81e46cb84744a44e8bfbdd29a0))
259
296
 
260
297
 
261
298
 
262
- ### [0.1.2](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.1.1...@codecademy/variance@0.1.2) (2021-03-30)
299
+ ### [0.1.2](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.1.1...@codecademy/variance@0.1.2) (2021-03-30)
263
300
 
264
301
  **Note:** Version bump only for package @codecademy/variance
265
302
 
@@ -267,7 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
267
304
 
268
305
 
269
306
 
270
- ### [0.1.1](https://github.com/Codecademy/client-modules/compare/@codecademy/variance@0.1.0...@codecademy/variance@0.1.1) (2021-03-19)
307
+ ### [0.1.1](https://github.com/Codecademy/gamut/compare/@codecademy/variance@0.1.0...@codecademy/variance@0.1.1) (2021-03-19)
271
308
 
272
309
  **Note:** Version bump only for package @codecademy/variance
273
310
 
@@ -280,4 +317,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
280
317
 
281
318
  ### Features
282
319
 
283
- * **Variance:** Experimental MVP for internal use ([4422f3d](https://github.com/Codecademy/client-modules/commit/4422f3d340ce4e52f7f96f01c4dd01b88c1a677d))
320
+ * **Variance:** Experimental MVP for internal use ([4422f3d](https://github.com/Codecademy/gamut/commit/4422f3d340ce4e52f7f96f01c4dd01b88c1a677d))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/variance",
3
3
  "description": "Constraint based CSS in JS for building scalable design systems",
4
- "version": "0.18.2-alpha.ac83cf.0",
4
+ "version": "0.19.1-alpha.a809e8.0",
5
5
  "keywords": [
6
6
  "emotion",
7
7
  "css",
@@ -9,7 +9,7 @@
9
9
  "css-in-js"
10
10
  ],
11
11
  "author": "codecaaron <aaron@codecademy.com>",
12
- "homepage": "https://github.com/Codecademy/client-modules/variance",
12
+ "homepage": "https://github.com/Codecademy/gamut/variance",
13
13
  "license": "MIT",
14
14
  "main": "dist/index.js",
15
15
  "module": "dist/index.js",
@@ -19,13 +19,13 @@
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/Codecademy/client-modules.git"
22
+ "url": "git+https://github.com/Codecademy/gamut.git"
23
23
  },
24
24
  "scripts": {
25
25
  "build:clean": "rm -rf ./dist",
26
26
  "build:compile": "tsc -b",
27
27
  "build:transpile": "babel ./src --out-dir ./dist --copy-files --extensions \".ts,.tsx\"",
28
- "build": "yarn build:clean && yarn build:compile && yarn build:transpile",
28
+ "build": "yarn build:clean && yarn build:transpile && yarn build:compile",
29
29
  "lernaBuildTask": "yarn build"
30
30
  },
31
31
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "react": "16.13.1",
44
44
  "react-test-renderer": "16.13.1"
45
45
  },
46
- "gitHead": "f9b76ff08b360551b96766f2eb360b4760e897cc"
46
+ "gitHead": "7be5114e0f5a72b7d5835c0312490f467646a903"
47
47
  }
package/dist/core.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { AbstractParser, AbstractPropTransformer, Compose, CSS, Parser, Prop, PropTransformer, States, TransformerMap, Variant } from './types/config';
2
- export declare const variance: {
3
- createParser<Config extends Record<string, AbstractPropTransformer>>(config: Config): Parser<Config>;
4
- createTransform<P extends string, Config_1 extends Prop>(prop: P, config: Config_1): PropTransformer<P, Config_1>;
5
- compose<Args extends AbstractParser[]>(...parsers: Args): Parser<Compose<Args>>;
6
- createCss<Config_2 extends Record<string, Prop>, P_1 extends Parser<TransformerMap<Config_2>>>(config: Config_2): CSS<P_1>;
7
- createVariant<Config_3 extends Record<string, Prop>, P_2 extends Parser<TransformerMap<Config_3>>>(config: Config_3): Variant<P_2>;
8
- createStates<Config_4 extends Record<string, Prop>, P_3 extends Parser<TransformerMap<Config_4>>>(config: Config_4): States<P_3>;
9
- create<Config_5 extends Record<string, Prop>>(config: Config_5): Parser<TransformerMap<Config_5>>;
10
- };