@pie-lib/render-ui 4.17.0-beta.0 → 4.17.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/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
- # [4.17.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.17.0-beta.0) (2025-07-15)
6
+ # [4.17.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.17.0) (2025-07-31)
7
7
 
8
8
  **Note:** Version bump only for package @pie-lib/render-ui
9
9
 
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [4.16.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.0) (2025-07-15)
14
+ # [4.18.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.18.0) (2025-07-31)
15
15
 
16
16
  **Note:** Version bump only for package @pie-lib/render-ui
17
17
 
@@ -19,18 +19,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
19
 
20
20
 
21
21
 
22
- ## [4.15.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.8...@pie-lib/render-ui@4.15.9) (2023-10-03)
22
+ # [4.17.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.17.0) (2025-07-31)
23
+
24
+ **Note:** Version bump only for package @pie-lib/render-ui
23
25
 
24
26
 
25
- ### Bug Fixes
26
27
 
27
- * revert to pie-lib/math-rendering that what working ([25660ea](https://github.com/pie-framework/pie-lib/commit/25660ea6595e800a71c5494bd3bb9eecd3609a5a))
28
28
 
29
29
 
30
+ # [4.16.0-beta.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.8) (2025-07-25)
30
31
 
32
+ **Note:** Version bump only for package @pie-lib/render-ui
31
33
 
32
34
 
33
- ## [4.15.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.7...@pie-lib/render-ui@4.15.8) (2023-10-01)
35
+
36
+
37
+
38
+ # [4.16.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.7) (2025-07-25)
34
39
 
35
40
  **Note:** Version bump only for package @pie-lib/render-ui
36
41
 
@@ -38,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
38
43
 
39
44
 
40
45
 
41
- ## [4.15.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.6...@pie-lib/render-ui@4.15.7) (2023-09-27)
46
+ # [4.16.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.7) (2025-07-25)
42
47
 
43
48
  **Note:** Version bump only for package @pie-lib/render-ui
44
49
 
@@ -46,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
46
51
 
47
52
 
48
53
 
49
- ## [4.15.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.5...@pie-lib/render-ui@4.15.6) (2023-09-27)
54
+ # [4.16.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.6) (2025-07-25)
50
55
 
51
56
  **Note:** Version bump only for package @pie-lib/render-ui
52
57
 
@@ -54,7 +59,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
54
59
 
55
60
 
56
61
 
57
- ## [4.15.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.4...@pie-lib/render-ui@4.15.5) (2023-09-25)
62
+ # [4.16.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.6) (2025-07-25)
58
63
 
59
64
  **Note:** Version bump only for package @pie-lib/render-ui
60
65
 
@@ -62,7 +67,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
62
67
 
63
68
 
64
69
 
65
- ## [4.15.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.3...@pie-lib/render-ui@4.15.4) (2023-09-20)
70
+ # [4.16.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.5) (2025-07-25)
66
71
 
67
72
  **Note:** Version bump only for package @pie-lib/render-ui
68
73
 
@@ -70,7 +75,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
70
75
 
71
76
 
72
77
 
73
- ## [4.15.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.2...@pie-lib/render-ui@4.15.3) (2023-09-20)
78
+ # [4.16.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.5) (2025-07-25)
74
79
 
75
80
  **Note:** Version bump only for package @pie-lib/render-ui
76
81
 
@@ -78,7 +83,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
78
83
 
79
84
 
80
85
 
81
- ## [4.15.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.1...@pie-lib/render-ui@4.15.2) (2023-09-14)
86
+ # [4.16.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.4) (2025-07-25)
82
87
 
83
88
  **Note:** Version bump only for package @pie-lib/render-ui
84
89
 
@@ -86,56 +91,155 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
86
91
 
87
92
 
88
93
 
89
- ## [4.15.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.0...@pie-lib/render-ui@4.15.1) (2023-08-21)
94
+ # [4.16.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.3) (2025-07-25)
90
95
 
96
+ **Note:** Version bump only for package @pie-lib/render-ui
91
97
 
92
- ### Bug Fixes
93
98
 
94
- * **render-ui:** DNA-17953 - avoid fontSize to fave initial value, avoid margins fot p elements ([3bdf0cf](https://github.com/pie-framework/pie-lib/commit/3bdf0cfa0ff343444b387b4840e904d76b27b41a))
95
99
 
96
100
 
97
101
 
102
+ # [4.16.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.4) (2025-07-23)
98
103
 
104
+ **Note:** Version bump only for package @pie-lib/render-ui
99
105
 
100
- # [4.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.29...@pie-lib/render-ui@4.15.0) (2023-08-15)
101
106
 
102
107
 
103
- ### Features
104
108
 
105
- * **text-select:** adjust colors and alignment of the color ([a51ba55](https://github.com/pie-framework/pie-lib/commit/a51ba5547f6e1559915d6ea967d406923831b561))
106
- * **text-select:** PD-1163 create wrapper component ([b41db39](https://github.com/pie-framework/pie-lib/commit/b41db39ade332d19dca70a06d54acf51b5888c69))
107
- * **text-select:** PD-1163 updates to tokens in text select ([2535c91](https://github.com/pie-framework/pie-lib/commit/2535c911f378f4cf41c8471bfa1898b996ffacee))
108
109
 
110
+ # [4.16.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.3) (2025-07-23)
109
111
 
112
+ **Note:** Version bump only for package @pie-lib/render-ui
113
+
114
+
115
+
116
+
117
+
118
+ # [4.16.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.3) (2025-07-20)
119
+
120
+ **Note:** Version bump only for package @pie-lib/render-ui
121
+
122
+
123
+
124
+
125
+
126
+ # [4.16.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.2) (2025-07-20)
127
+
128
+ **Note:** Version bump only for package @pie-lib/render-ui
129
+
130
+
131
+
132
+
133
+
134
+ # [4.16.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.1) (2025-07-20)
135
+
136
+ **Note:** Version bump only for package @pie-lib/render-ui
137
+
138
+
139
+
140
+
141
+
142
+ # [4.16.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.2) (2025-07-20)
143
+
144
+ **Note:** Version bump only for package @pie-lib/render-ui
145
+
146
+
147
+
148
+
149
+
150
+ # [4.16.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.1) (2025-07-20)
151
+
152
+ **Note:** Version bump only for package @pie-lib/render-ui
110
153
 
111
154
 
112
155
 
113
- ## [4.14.29](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.28...@pie-lib/render-ui@4.14.29) (2023-07-24)
114
156
 
115
157
 
158
+ # [4.16.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.1) (2025-07-20)
159
+
160
+ **Note:** Version bump only for package @pie-lib/render-ui
161
+
162
+
163
+
164
+
165
+
166
+ # [4.16.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.0) (2025-07-20)
167
+
168
+ **Note:** Version bump only for package @pie-lib/render-ui
169
+
170
+
171
+
172
+
173
+
174
+ # [4.17.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.17.0-beta.0) (2025-07-15)
175
+
176
+ **Note:** Version bump only for package @pie-lib/render-ui
177
+
178
+ # [4.16.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.9...@pie-lib/render-ui@4.16.0-beta.0) (2025-07-15)
179
+
180
+ **Note:** Version bump only for package @pie-lib/render-ui
181
+
182
+ ## [4.15.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.8...@pie-lib/render-ui@4.15.9) (2023-10-03)
183
+
116
184
  ### Bug Fixes
117
185
 
118
- * **render-ui:** answer choices answered rendered in a smaller font-size ([e7503e0](https://github.com/pie-framework/pie-lib/commit/e7503e029ed6872098646e8787e124f2d6a8a018))
186
+ - revert to pie-lib/math-rendering that what working ([25660ea](https://github.com/pie-framework/pie-lib/commit/25660ea6595e800a71c5494bd3bb9eecd3609a5a))
119
187
 
188
+ ## [4.15.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.7...@pie-lib/render-ui@4.15.8) (2023-10-01)
120
189
 
190
+ **Note:** Version bump only for package @pie-lib/render-ui
121
191
 
192
+ ## [4.15.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.6...@pie-lib/render-ui@4.15.7) (2023-09-27)
122
193
 
194
+ **Note:** Version bump only for package @pie-lib/render-ui
123
195
 
124
- ## [4.14.28](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.27...@pie-lib/render-ui@4.14.28) (2023-06-24)
196
+ ## [4.15.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.5...@pie-lib/render-ui@4.15.6) (2023-09-27)
125
197
 
126
198
  **Note:** Version bump only for package @pie-lib/render-ui
127
199
 
200
+ ## [4.15.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.4...@pie-lib/render-ui@4.15.5) (2023-09-25)
128
201
 
202
+ **Note:** Version bump only for package @pie-lib/render-ui
129
203
 
204
+ ## [4.15.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.3...@pie-lib/render-ui@4.15.4) (2023-09-20)
130
205
 
206
+ **Note:** Version bump only for package @pie-lib/render-ui
131
207
 
132
- ## [4.14.27](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.26...@pie-lib/render-ui@4.14.27) (2023-06-13)
208
+ ## [4.15.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.2...@pie-lib/render-ui@4.15.3) (2023-09-20)
133
209
 
134
210
  **Note:** Version bump only for package @pie-lib/render-ui
135
211
 
212
+ ## [4.15.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.1...@pie-lib/render-ui@4.15.2) (2023-09-14)
136
213
 
214
+ **Note:** Version bump only for package @pie-lib/render-ui
137
215
 
216
+ ## [4.15.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.15.0...@pie-lib/render-ui@4.15.1) (2023-08-21)
217
+
218
+ ### Bug Fixes
219
+
220
+ - **render-ui:** DNA-17953 - avoid fontSize to fave initial value, avoid margins fot p elements ([3bdf0cf](https://github.com/pie-framework/pie-lib/commit/3bdf0cfa0ff343444b387b4840e904d76b27b41a))
138
221
 
222
+ # [4.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.29...@pie-lib/render-ui@4.15.0) (2023-08-15)
223
+
224
+ ### Features
225
+
226
+ - **text-select:** adjust colors and alignment of the color ([a51ba55](https://github.com/pie-framework/pie-lib/commit/a51ba5547f6e1559915d6ea967d406923831b561))
227
+ - **text-select:** PD-1163 create wrapper component ([b41db39](https://github.com/pie-framework/pie-lib/commit/b41db39ade332d19dca70a06d54acf51b5888c69))
228
+ - **text-select:** PD-1163 updates to tokens in text select ([2535c91](https://github.com/pie-framework/pie-lib/commit/2535c911f378f4cf41c8471bfa1898b996ffacee))
229
+
230
+ ## [4.14.29](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.28...@pie-lib/render-ui@4.14.29) (2023-07-24)
231
+
232
+ ### Bug Fixes
233
+
234
+ - **render-ui:** answer choices answered rendered in a smaller font-size ([e7503e0](https://github.com/pie-framework/pie-lib/commit/e7503e029ed6872098646e8787e124f2d6a8a018))
235
+
236
+ ## [4.14.28](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.27...@pie-lib/render-ui@4.14.28) (2023-06-24)
237
+
238
+ **Note:** Version bump only for package @pie-lib/render-ui
239
+
240
+ ## [4.14.27](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.26...@pie-lib/render-ui@4.14.27) (2023-06-13)
241
+
242
+ **Note:** Version bump only for package @pie-lib/render-ui
139
243
 
140
244
  ## [4.14.26](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.14.25...@pie-lib/render-ui@4.14.26) (2023-06-12)
141
245
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/render-ui",
3
- "version": "4.17.0-beta.0",
3
+ "version": "4.17.0",
4
4
  "description": "Some shared ui elements when rendering - but not worthy of their own package yet.",
5
5
  "module": "src/index.js",
6
6
  "main": "lib/index.js",
@@ -11,14 +11,16 @@
11
11
  "dependencies": {
12
12
  "@material-ui/core": "^3.8.3",
13
13
  "@material-ui/icons": "^3.0.2",
14
- "@pie-lib/icons": "^2.6.0-beta.0",
15
- "@pie-lib/math-rendering": "^3.4.0-beta.0",
14
+ "@pie-lib/icons": "^2.7.0",
15
+ "@pie-lib/math-rendering": "^3.5.0",
16
16
  "classnames": "^2.2.6",
17
17
  "debug": "^4.1.1",
18
+ "lodash": "^4.17.11",
18
19
  "prop-types": "^15.7.2",
19
20
  "react-transition-group": "^2.5.2"
20
21
  },
21
22
  "peerDependencies": {
23
+ "@pie-lib/test-utils": "beta",
22
24
  "react": "^16.8.1",
23
25
  "react-dom": "^16.8.1"
24
26
  },
@@ -26,5 +28,5 @@
26
28
  "react": "^16.8.1",
27
29
  "react-dom": "^16.8.1"
28
30
  },
29
- "gitHead": "3818c24530f62b5bb9be7a2c6aa5428f13a17e0a"
31
+ "gitHead": "889a13bfea2c768b8a3a6eabfc6fe7b7725aa832"
30
32
  }
@@ -1,9 +1,6 @@
1
1
  import HtmlAndMath from '../html-and-math';
2
2
  import { shallow } from 'enzyme';
3
3
  import React from 'react';
4
- import { renderMath } from '@pie-lib/math-rendering';
5
-
6
- jest.mock('@pie-lib/math-rendering', () => ({ renderMath: jest.fn() }));
7
4
 
8
5
  describe('html-and-math', () => {
9
6
  const mkWrapper = (extras) => {
@@ -24,23 +21,4 @@ describe('html-and-math', () => {
24
21
  expect(w).toMatchSnapshot();
25
22
  });
26
23
  });
27
-
28
- describe('componentDidMount', () => {
29
- it('calls renderMath', () => {
30
- const w = mkWrapper();
31
- //mock the ref
32
- w.instance().node = { node: true };
33
- w.instance().componentDidMount();
34
- expect(renderMath).toHaveBeenCalled();
35
- });
36
- });
37
- describe('componentDidUpdate', () => {
38
- it('calls renderMath', () => {
39
- const w = mkWrapper();
40
- //mock the ref
41
- w.instance().node = { node: true };
42
- w.instance().componentDidUpdate();
43
- expect(renderMath).toHaveBeenCalled();
44
- });
45
- });
46
24
  });
package/src/color.js CHANGED
@@ -10,6 +10,7 @@ export const defaults = {
10
10
  DISABLED_SECONDARY: '#ABABAB',
11
11
  CORRECT: green[500],
12
12
  CORRECT_SECONDARY: green[50],
13
+ CORRECT_TERTIARY: '#0EA449',
13
14
  CORRECT_WITH_ICON: '#087D38',
14
15
  INCORRECT: orange[500],
15
16
  INCORRECT_SECONDARY: red[50],
@@ -26,11 +27,13 @@ export const defaults = {
26
27
  TERTIARY_LIGHT: '#D0E2F0',
27
28
  BACKGROUND: 'rgba(255,255,255,0)',
28
29
  BACKGROUND_DARK: '#ECEDF1',
30
+ DROPDOWN_BACKGROUND: '#E0E1E6', // this is used for inline-dropdown
29
31
  // this is only used for multi-trait-rubric, we might want to use BACKGROUND_DARK instead
30
32
  SECONDARY_BACKGROUND: 'rgba(241,241,241,1)',
31
33
  BORDER: '#9A9A9A',
32
34
  BORDER_LIGHT: '#D1D1D1',
33
35
  BORDER_DARK: '#646464',
36
+ BORDER_GRAY: '#7E8494',
34
37
  BLACK: '#000000',
35
38
  WHITE: '#ffffff',
36
39
  TRANSPARENT: 'transparent',
@@ -39,6 +42,13 @@ export const defaults = {
39
42
  FOCUS_CHECKED_BORDER: '#1565C0',
40
43
  FOCUS_UNCHECKED: '#E0E0E0',
41
44
  FOCUS_UNCHECKED_BORDER: '#757575',
45
+ // this is used for select text tokens
46
+ BLUE_GREY100: '#F3F5F7',
47
+ BLUE_GREY300: '#C0C3CF',
48
+ BLUE_GREY600: '#7E8494',
49
+ BLUE_GREY900: '#152452',
50
+ // this is used for charting
51
+ FADED_PRIMARY: '#DCDAFB',
42
52
  };
43
53
 
44
54
  Object.freeze(defaults);
@@ -57,6 +67,7 @@ export const disabled = () => pv('disabled', defaults.DISABLED);
57
67
  export const disabledSecondary = () => pv('disabled-secondary', defaults.DISABLED_SECONDARY);
58
68
  export const correct = () => pv('correct', defaults.CORRECT);
59
69
  export const correctSecondary = () => pv('correct-secondary', defaults.CORRECT_SECONDARY);
70
+ export const correctTertiary = () => pv('correct-tertiary', defaults.CORRECT_TERTIARY);
60
71
  export const correctWithIcon = () => pv('correct-icon', defaults.CORRECT_WITH_ICON);
61
72
  export const incorrect = () => pv('incorrect', defaults.INCORRECT);
62
73
  export const incorrectWithIcon = () => pv('incorrect-icon', defaults.INCORRECT_WITH_ICON);
@@ -68,6 +79,7 @@ export const primary = () => pv('primary', defaults.PRIMARY);
68
79
  export const primaryLight = () => pv('primary-light', defaults.PRIMARY_LIGHT);
69
80
  export const primaryDark = () => pv('primary-dark', defaults.PRIMARY_DARK);
70
81
  export const primaryText = () => pv('primary-text', 'text', defaults.TEXT);
82
+ export const fadedPrimary = () => pv('faded-primary', defaults.FADED_PRIMARY);
71
83
 
72
84
  export const secondary = () => pv('secondary', defaults.SECONDARY);
73
85
  export const secondaryLight = () => pv('secondary-light', defaults.SECONDARY_LIGHT);
@@ -77,6 +89,7 @@ export const secondaryText = () => pv('secondary-text', 'text', defaults.TEXT);
77
89
  export const background = () => pv('background', defaults.BACKGROUND);
78
90
  export const backgroundDark = () => pv('background-dark', defaults.BACKGROUND_DARK);
79
91
  export const secondaryBackground = () => pv('secondary-background', defaults.SECONDARY_BACKGROUND);
92
+ export const dropdownBackground = () => pv('dropdown-background', defaults.DROPDOWN_BACKGROUND);
80
93
 
81
94
  export const tertiary = () => pv('tertiary', defaults.TERTIARY);
82
95
  export const tertiaryLight = () => pv('tertiary-light', defaults.TERTIARY_LIGHT);
@@ -84,6 +97,7 @@ export const tertiaryLight = () => pv('tertiary-light', defaults.TERTIARY_LIGHT)
84
97
  export const border = () => pv('border', defaults.BORDER);
85
98
  export const borderLight = () => pv('border-light', defaults.BORDER_LIGHT);
86
99
  export const borderDark = () => pv('border-dark', defaults.BORDER_DARK);
100
+ export const borderGray = () => pv('border-gray', defaults.BORDER_GRAY);
87
101
 
88
102
  export const black = () => pv('black', defaults.BLACK);
89
103
  export const white = () => pv('white', defaults.WHITE);
@@ -93,3 +107,15 @@ export const focusChecked = () => pv('focus-checked', defaults.FOCUS_CHECKED);
93
107
  export const focusCheckedBorder = () => pv('focus-checked-border', defaults.FOCUS_CHECKED_BORDER);
94
108
  export const focusUnchecked = () => pv('focus-unchecked', defaults.FOCUS_UNCHECKED);
95
109
  export const focusUncheckedBorder = () => pv('focus-unchecked-border', defaults.FOCUS_UNCHECKED_BORDER);
110
+
111
+ export const blueGrey100 = () => pv('blue-grey-100', defaults.BLUE_GREY100);
112
+ export const blueGrey300 = () => pv('blue-grey-300', defaults.BLUE_GREY300);
113
+ export const blueGrey600 = () => pv('blue-grey-600', defaults.BLUE_GREY600);
114
+ export const blueGrey900 = () => pv('blue-grey-900', defaults.BLUE_GREY900);
115
+
116
+ export const visualElementsColors = {
117
+ AXIS_LINE_COLOR: '#5A53C9',
118
+ ROLLOVER_FILL_BAR_COLOR: '#050F2D',
119
+ GRIDLINES_COLOR: '#8E88EA',
120
+ PLOT_FILL_COLOR: '#1463B3',
121
+ };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { renderMath } from '@pie-lib/math-rendering';
3
2
  import PropTypes from 'prop-types';
4
3
 
5
4
  export default class HtmlAndMath extends React.Component {
@@ -14,18 +13,6 @@ export default class HtmlAndMath extends React.Component {
14
13
  html: '',
15
14
  };
16
15
 
17
- componentDidMount() {
18
- if (this.node) {
19
- renderMath(this.node);
20
- }
21
- }
22
-
23
- componentDidUpdate() {
24
- if (this.node) {
25
- renderMath(this.node);
26
- }
27
- }
28
-
29
16
  render() {
30
17
  const { tag, className, html } = this.props;
31
18
  const Tag = tag || 'div';
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
6
-
7
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
8
-
9
- var _color = require("../color");
10
-
11
- var _templateObject;
12
-
13
- describe('v', function () {
14
- it.each(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n args | expected\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n "])), ['text', 'black'], 'var(--pie-text, black)', ['primary-text', 'text', 'black'], 'var(--pie-primary-text, var(--pie-text, black))', ['black'], 'black', ['#00ff00'], '#00ff00')('$args => $expected', function (_ref) {
15
- var args = _ref.args,
16
- expected = _ref.expected;
17
- expect((0, _color.v)('pie').apply(void 0, (0, _toConsumableArray2["default"])(args))).toEqual(expected);
18
- });
19
- });
20
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy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IHZhcigtLXBpZS10ZXh0LCBibGFjaykpJ31cbiAgICAke1snYmxhY2snXX0gICAgICAgICAgICAgICAgICAgICAgICAgfCAkeydibGFjayd9XG4gICAgJHtbJyMwMGZmMDAnXX0gICAgICAgICAgICAgICAgICAgICAgIHwgJHsnIzAwZmYwMCd9XG4gIGAoJyRhcmdzID0+ICRleHBlY3RlZCcsICh7IGFyZ3MsIGV4cGVjdGVkIH0pID0+IHtcbiAgICBleHBlY3QodigncGllJykoLi4uYXJncykpLnRvRXF1YWwoZXhwZWN0ZWQpO1xuICB9KTtcbn0pO1xuIl19
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
8
-
9
- var React = _interopRequireWildcard(require("react"));
10
-
11
- var _hasMedia = require("../has-media");
12
-
13
- var _templateObject;
14
-
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
-
17
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
-
19
- // Assuming you have a hasMedia function
20
- describe('hasMedia', function () {
21
- it.each(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n input | expected\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n "])), '<img src="image.jpg" />', true, '<audio src="audio.mp3" />', true, '<div><img src="image.jpg" /></div>', true, '<div><audio src="audio.mp3" /></div>', true, '<div>No media here</div>', false, '<div></div>', false, ' ', false, null, false)('$input -> $expected', function (_ref) {
22
- var input = _ref.input,
23
- expected = _ref.expected;
24
- var output = (0, _hasMedia.hasMedia)(input);
25
- expect(output).toEqual(expected);
26
- });
27
- });
28
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9fX3Rlc3RzX18vaGFzLW1lZGlhLnRlc3QuanMiXSwibmFtZXMiOlsiZGVzY3JpYmUiLCJpdCIsImVhY2giLCJpbnB1dCIsImV4cGVjdGVkIiwib3V0cHV0IiwiZXhwZWN0IiwidG9FcXVhbCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7QUFDQTs7Ozs7Ozs7QUFBeUM7QUFFekNBLFFBQVEsQ0FBQyxVQUFELEVBQWEsWUFBTTtBQUN6QkMsRUFBQUEsRUFBRSxDQUFDQyxJQUFILGlhQUVJLHlCQUZKLEVBRWdELElBRmhELEVBR0ksMkJBSEosRUFHZ0QsSUFIaEQsRUFJSSxvQ0FKSixFQUlnRCxJQUpoRCxFQUtJLHNDQUxKLEVBS2dELElBTGhELEVBTUksMEJBTkosRUFNZ0QsS0FOaEQsRUFPSSxhQVBKLEVBT2dELEtBUGhELEVBUUksR0FSSixFQVFnRCxLQVJoRCxFQVNJLElBVEosRUFTZ0QsS0FUaEQsRUFVRSxxQkFWRixFQVV5QixnQkFBeUI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fCAke2ZhbHNlfVxuICAgICR7bnVsbH0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgJHtmYWxzZX1cbiAgYCgnJGlucHV0IC0+ICRleHBlY3RlZCcsICh7IGlucHV0LCBleHBlY3RlZCB9KSA9PiB7XG4gICAgY29uc3Qgb3V0cHV0ID0gaGFzTWVkaWEoaW5wdXQpO1xuXG4gICAgZXhwZWN0KG91dHB1dCkudG9FcXVhbChleHBlY3RlZCk7XG4gIH0pO1xufSk7XG4iXX0=
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
8
-
9
- var React = _interopRequireWildcard(require("react"));
10
-
11
- var _hasText = require("../has-text");
12
-
13
- var _templateObject;
14
-
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
-
17
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
-
19
- describe('has-text', function () {
20
- it.each(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n input | expected\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n "])), '<div>Rationale</div>', true, 'Rationale', true, '<div>hi</div>', true, '<div>hi', true, '<div></div>', false, '<div> </div>', false, '<div><br /> </div>', false, ' ', false, null, false)('$input -> $expected', function (_ref) {
21
- var input = _ref.input,
22
- expected = _ref.expected;
23
- var output = (0, _hasText.hasText)(input);
24
- expect(output).toEqual(expected);
25
- });
26
- });
27
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9fX3Rlc3RzX18vaGFzLXRleHQudGVzdC5qcyJdLCJuYW1lcyI6WyJkZXNjcmliZSIsIml0IiwiZWFjaCIsImlucHV0IiwiZXhwZWN0ZWQiLCJvdXRwdXQiLCJleHBlY3QiLCJ0b0VxdWFsIl0sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBOztBQUNBOzs7Ozs7OztBQUVBQSxRQUFRLENBQUMsVUFBRCxFQUFhLFlBQU07QUFDekJDLEVBQUFBLEVBQUUsQ0FBQ0MsSUFBSCxrWEFFSSxzQkFGSixFQUVnQyxJQUZoQyxFQUdJLFdBSEosRUFHZ0MsSUFIaEMsRUFJSSxlQUpKLEVBSWdDLElBSmhDLEVBS0ksU0FMSixFQUtnQyxJQUxoQyxFQU1JLGFBTkosRUFNZ0MsS0FOaEMsRUFPSSxlQVBKLEVBT2dDLEtBUGhDLEVBUUksc0JBUkosRUFRZ0MsS0FSaEMsRUFTSSxHQVRKLEVBU2dDLEtBVGhDLEVBVUksSUFWSixFQVVnQyxLQVZoQyxFQVdFLHFCQVhGLEVBV3lCLGdCQUF5QjtBQUFBLFFBQXRCQyxLQUFzQixRQUF0QkEsS0FBc0I7QUFBQSxRQUFmQy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GVkKTtcbiAgfSk7XG59KTtcbiJdfQ==
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
6
-
7
- var _htmlAndMath = _interopRequireDefault(require("../html-and-math"));
8
-
9
- var _enzyme = require("enzyme");
10
-
11
- var _react = _interopRequireDefault(require("react"));
12
-
13
- var _mathRendering = require("@pie-lib/math-rendering");
14
-
15
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
-
17
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
-
19
- jest.mock('@pie-lib/math-rendering', function () {
20
- return {
21
- renderMath: jest.fn()
22
- };
23
- });
24
- describe('html-and-math', function () {
25
- var mkWrapper = function mkWrapper(extras) {
26
- var props = _objectSpread({
27
- html: '<p>hi</p>'
28
- }, extras);
29
-
30
- return (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_htmlAndMath["default"], props), {
31
- disableLifecycleMethods: true
32
- });
33
- };
34
-
35
- describe('render', function () {
36
- it('renders', function () {
37
- var w = mkWrapper();
38
- expect(w).toMatchSnapshot();
39
- });
40
- });
41
- describe('componentDidMount', function () {
42
- it('calls renderMath', function () {
43
- var w = mkWrapper(); //mock the ref
44
-
45
- w.instance().node = {
46
- node: true
47
- };
48
- w.instance().componentDidMount();
49
- expect(_mathRendering.renderMath).toHaveBeenCalled();
50
- });
51
- });
52
- describe('componentDidUpdate', function () {
53
- it('calls renderMath', function () {
54
- var w = mkWrapper(); //mock the ref
55
-
56
- w.instance().node = {
57
- node: true
58
- };
59
- w.instance().componentDidUpdate();
60
- expect(_mathRendering.renderMath).toHaveBeenCalled();
61
- });
62
- });
63
- });
64
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9fX3Rlc3RzX18vaHRtbC1hbmQtbWF0aC50ZXN0LmpzIl0sIm5hbWVzIjpbImplc3QiLCJtb2NrIiwicmVuZGVyTWF0aCIsImZuIiwiZGVzY3JpYmUiLCJta1dyYXBwZXIiLCJleHRyYXMiLCJwcm9wcyIsImh0bWwiLCJkaXNhYmxlTGlmZWN5Y2xlTWV0aG9kcyIsIml0IiwidyIsImV4cGVjdCIsInRvTWF0Y2hTbmFwc2hvdCIsImluc3RhbmNlIiwibm9kZSIsImNvbXBvbmVudERpZE1vdW50IiwidG9IYXZlQmVlbkNhbGxlZCIsImNvbXBvbmVudERpZFVwZGF0ZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7O0FBQ0E7Ozs7OztBQUVBQSxJQUFJLENBQUNDLElBQUwsQ0FBVSx5QkFBVixFQUFxQztBQUFBLFNBQU87QUFBRUMsSUFBQUEsVUFBVSxFQUFFRixJQUFJLENBQUNHLEVBQUw7QUFBZCxHQUFQO0FBQUEsQ0FBckM7QUFFQUMsUUFBUSxDQUFDLGVBQUQsRUFBa0IsWUFBTTtBQUM5QixNQUFNQyxTQUFTLEdBQUcsU0FBWkEsU0FBWSxDQUFDQyxNQUFELEVBQVk7QUFDNUIsUUFBTUMsS0FBSztBQUNUQyxNQUFBQSxJQUFJLEVBQUU7QUFERyxPQUVORixNQUZNLENBQVg7O0FBS0EsV0FBTyxtQ0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