@occmundial/occ-atomic 3.0.0-beta.36 → 3.0.0-beta.38

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [3.0.0-beta.38](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.37...v3.0.0-beta.38) (2024-07-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Icon disabled styles ([d8bc738](https://github.com/occmundial/occ-atomic/commit/d8bc73881275ec1537e5a06bd37f9a869a5fe210))
7
+
8
+ # [3.0.0-beta.37](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.36...v3.0.0-beta.37) (2024-07-24)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Add placement to use memo dependencies ([3a14e00](https://github.com/occmundial/occ-atomic/commit/3a14e00b5fe72d55043f1be4b1fb57f1c860d584))
14
+
1
15
  # [3.0.0-beta.36](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.35...v3.0.0-beta.36) (2024-07-24)
2
16
 
3
17
 
@@ -134,15 +134,4 @@ describe("Button styles", function () {
134
134
  it('matches the snapshot', function () {
135
135
  expect(_styles["default"]).toMatchSnapshot();
136
136
  });
137
- it('returns the right icons', function () {
138
- var props = {
139
- icon: 'testing'
140
- };
141
- expect(_styles["default"].primary['& span span'].background(props)).toBe('url(data:image/svg+xml;base64,dGVzdGluZyAtICNmZmY=)');
142
- expect(_styles["default"].secondary['& span span'].background(props)).toBe('url(data:image/svg+xml;base64,dGVzdGluZyAtICMwODNDQUU=)');
143
- expect(_styles["default"].tertiary['& span span'].background(props)).toBe('url(data:image/svg+xml;base64,dGVzdGluZyAtICMwODNDQUU=)');
144
- expect(_styles["default"].ghostPink['& span span'].background(props)).toBe('url(data:image/svg+xml;base64,dGVzdGluZyAtICNmMTM0NjU=)');
145
- expect(_styles["default"].ghostGrey['& span span'].background(props)).toBe('url(data:image/svg+xml;base64,dGVzdGluZyAtICM1QTVEN0I=)');
146
- expect(_styles["default"].ghostWhite['& span span'].background(props)).toBe('url(data:image/svg+xml;base64,dGVzdGluZyAtICNmZmY=)');
147
- });
148
137
  });
@@ -48,19 +48,19 @@ Object {
48
48
  "pointerEvents": "none",
49
49
  },
50
50
  "ghostGrey": Object {
51
- "& $loadIcon": Object {
51
+ "& $icon, & $iconRight": Object {
52
52
  "fill": "#5A5D7B",
53
53
  },
54
- "& span span": Object {
55
- "background": [Function],
54
+ "& $loadIcon": Object {
55
+ "fill": "#5A5D7B",
56
56
  },
57
57
  "&$disabled": Object {
58
+ "& $icon, & $iconRight": Object {
59
+ "fill": "#D3D4DC",
60
+ },
58
61
  "background": "transparent",
59
62
  "color": "#878A9F",
60
63
  },
61
- "&$disabled span span": Object {
62
- "background": [Function],
63
- },
64
64
  "&:active": Object {
65
65
  "background": "hsl(234 75.4% 12.7% / 0.1)",
66
66
  },
@@ -77,13 +77,7 @@ Object {
77
77
  "& $loadIcon": Object {
78
78
  "fill": "#f13465",
79
79
  },
80
- "& span span": Object {
81
- "background": [Function],
82
- },
83
80
  "&$disabled": Object {
84
- "& span span": Object {
85
- "background": [Function],
86
- },
87
81
  "background": "transparent !important",
88
82
  "border": "none !important",
89
83
  "color": "#fa90ac !important",
@@ -107,16 +101,16 @@ Object {
107
101
  ],
108
102
  },
109
103
  "ghostWhite": Object {
110
- "& span span": Object {
111
- "background": [Function],
104
+ "& $icon, & $iconRight": Object {
105
+ "fill": "#fff",
112
106
  },
113
107
  "&$disabled": Object {
108
+ "& $icon, & $iconRight": Object {
109
+ "fill": "rgba(255,255,255,0.3)",
110
+ },
114
111
  "background": "transparent",
115
112
  "color": "rgba(255,255,255,0.7)",
116
113
  },
117
- "&$disabled span span": Object {
118
- "background": [Function],
119
- },
120
114
  "&:active": Object {
121
115
  "background": "rgba(255,255,255,0.1)",
122
116
  },
@@ -198,17 +192,17 @@ Object {
198
192
  ],
199
193
  },
200
194
  "primary": Object {
201
- "& span span": Object {
202
- "background": [Function],
195
+ "& $icon, & $iconRight": Object {
196
+ "fill": "#fff",
203
197
  },
204
198
  "&$disabled": Object {
199
+ "& $icon, & $iconRight": Object {
200
+ "fill": "rgba(255,255,255,0.3)",
201
+ },
205
202
  "background": "#F6809E",
206
203
  "color": "rgba(255,255,255,0.7)",
207
204
  "cursor": "not-allowed",
208
205
  },
209
- "&$disabled span span": Object {
210
- "background": [Function],
211
- },
212
206
  "&:active": Object {
213
207
  "background": "#821C36",
214
208
  },
@@ -230,19 +224,19 @@ Object {
230
224
  "borderRadius": "50%",
231
225
  },
232
226
  "secondary": Object {
233
- "& $loadIcon": Object {
227
+ "& $icon, & $iconRight": Object {
234
228
  "fill": "#083CAE",
235
229
  },
236
- "& span span": Object {
237
- "background": [Function],
230
+ "& $loadIcon": Object {
231
+ "fill": "#083CAE",
238
232
  },
239
233
  "&$disabled": Object {
234
+ "& $icon, & $iconRight": Object {
235
+ "fill": "#8DA5DA",
236
+ },
240
237
  "background": "hsl(221 91.2% 35.7% / 0.1)",
241
238
  "color": "#486EC3",
242
239
  },
243
- "&$disabled span span": Object {
244
- "background": [Function],
245
- },
246
240
  "&:active": Object {
247
241
  "background": "hsl(221 91.2% 35.7% / 0.2)",
248
242
  },
@@ -256,19 +250,19 @@ Object {
256
250
  "color": "#083CAE",
257
251
  },
258
252
  "tertiary": Object {
259
- "& $loadIcon": Object {
253
+ "& $icon, & $iconRight": Object {
260
254
  "fill": "#083CAE",
261
255
  },
262
- "& span span": Object {
263
- "background": [Function],
256
+ "& $loadIcon": Object {
257
+ "fill": "#083CAE",
264
258
  },
265
259
  "&$disabled": Object {
260
+ "& $icon, & $iconRight": Object {
261
+ "fill": "#8DA5DA",
262
+ },
266
263
  "background": "transparent",
267
264
  "color": "#486EC3",
268
- "outline": "2px solid #8DA5DA",
269
- },
270
- "&$disabled span span": Object {
271
- "background": [Function],
265
+ "outlineColor": "#8DA5DA",
272
266
  },
273
267
  "&:active": Object {
274
268
  "background": "hsl(221 91.2% 35.7% / 0.1)",
@@ -288,15 +282,16 @@ Object {
288
282
  "outlineOffset": "-2px",
289
283
  },
290
284
  "tertiaryWhite": Object {
291
- "& span span": Object {
292
- "background": [Function],
285
+ "& $icon, & $iconRight": Object {
286
+ "fill": "#fff",
293
287
  },
294
288
  "&$disabled": Object {
289
+ "& $icon, & $iconRight": Object {
290
+ "fill": "rgba(255,255,255,0.3)",
291
+ },
295
292
  "background": "transparent",
296
293
  "color": "rgba(255,255,255,0.7)",
297
- },
298
- "&$disabled span span": Object {
299
- "background": [Function],
294
+ "outlineColor": "rgba(255,255,255,0.2)",
300
295
  },
301
296
  "&:active": Object {
302
297
  "background": "rgba(255,255,255,0.1)",
@@ -27,7 +27,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
27
27
 
28
28
  var sec = _colors["default"].sec,
29
29
  secDark = _colors["default"].secDark,
30
- grey500 = _colors["default"].grey500,
31
30
  secLight = _colors["default"].secLight;
32
31
  var sm = _fonts2["default"]['button-small'];
33
32
  var md = _fonts2["default"]['button-medium'];
@@ -105,19 +104,15 @@ var _default = {
105
104
  '&:focus-visible': {
106
105
  boxShadow: _shadows["default"]['focus-pink']
107
106
  },
107
+ '& $icon, & $iconRight': {
108
+ fill: _colors2["default"].icon.inverse["default"]
109
+ },
108
110
  '&$disabled': {
109
111
  background: _colors2["default"].button.primary.bg.disabled,
110
112
  color: _colors2["default"].text.white.secondary,
111
- cursor: 'not-allowed'
112
- },
113
- '& span span': {
114
- background: function background(props) {
115
- return renderIcon(props, [_colors2["default"].icon.inverse["default"]]);
116
- }
117
- },
118
- '&$disabled span span': {
119
- background: function background(props) {
120
- return renderIcon(props, [_colors2["default"].icon.inverse.disabled]);
113
+ cursor: 'not-allowed',
114
+ '& $icon, & $iconRight': {
115
+ fill: _colors2["default"].icon.inverse.disabled
121
116
  }
122
117
  }
123
118
  },
@@ -133,18 +128,14 @@ var _default = {
133
128
  '&:focus-visible': {
134
129
  boxShadow: _shadows["default"]['focus-indigo']
135
130
  },
131
+ '& $icon, & $iconRight': {
132
+ fill: _colors2["default"].icon.brand["default"]
133
+ },
136
134
  '&$disabled': {
137
135
  background: _colors2["default"].button.secondary.bg.disabled,
138
- color: _colors2["default"].text.indigo.secondary
139
- },
140
- '& span span': {
141
- background: function background(props) {
142
- return renderIcon(props, [_colors2["default"].icon.brand["default"]]);
143
- }
144
- },
145
- '&$disabled span span': {
146
- background: function background(props) {
147
- return renderIcon(props, [_colors2["default"].icon.brand.disabled]);
136
+ color: _colors2["default"].text.indigo.secondary,
137
+ '& $icon, & $iconRight': {
138
+ fill: _colors2["default"].icon.brand.disabled
148
139
  }
149
140
  },
150
141
  '& $loadIcon': {
@@ -168,19 +159,15 @@ var _default = {
168
159
  '&:focus-visible': {
169
160
  boxShadow: _shadows["default"]['focus-indigo']
170
161
  },
171
- '& span span': {
172
- background: function background(props) {
173
- return renderIcon(props, [_colors2["default"].icon.brand["default"]]);
174
- }
162
+ '& $icon, & $iconRight': {
163
+ fill: _colors2["default"].icon.brand["default"]
175
164
  },
176
165
  '&$disabled': {
177
166
  background: 'transparent',
178
167
  color: _colors2["default"].text.indigo.secondary,
179
- outline: "2px solid ".concat(_colors2["default"].button.tertiary.border.disabled)
180
- },
181
- '&$disabled span span': {
182
- background: function background(props) {
183
- return renderIcon(props, [_colors2["default"].icon.brand.disabled]);
168
+ outlineColor: _colors2["default"].button.tertiary.border.disabled,
169
+ '& $icon, & $iconRight': {
170
+ fill: _colors2["default"].icon.brand.disabled
184
171
  }
185
172
  },
186
173
  '& $loadIcon': {
@@ -204,18 +191,15 @@ var _default = {
204
191
  '&:focus-visible': {
205
192
  boxShadow: _shadows["default"]['focus-white']
206
193
  },
207
- '& span span': {
208
- background: function background(props) {
209
- return renderIcon(props, [_colors2["default"].icon.inverse["default"]]);
210
- }
194
+ '& $icon, & $iconRight': {
195
+ fill: _colors2["default"].icon.inverse["default"]
211
196
  },
212
197
  '&$disabled': {
213
198
  background: 'transparent',
214
- color: _colors2["default"].text.white.secondary
215
- },
216
- '&$disabled span span': {
217
- background: function background(props) {
218
- return renderIcon(props, [_colors2["default"].icon.inverse.disabled]);
199
+ color: _colors2["default"].text.white.secondary,
200
+ outlineColor: _colors2["default"].button.tertiary.border.inverse.disabled,
201
+ '& $icon, & $iconRight': {
202
+ fill: _colors2["default"].icon.inverse.disabled
219
203
  }
220
204
  }
221
205
  },
@@ -233,20 +217,10 @@ var _default = {
233
217
  }
234
218
  }
235
219
  },
236
- '& span span': {
237
- background: function background(props) {
238
- return renderIcon(props, [sec]);
239
- }
240
- },
241
220
  '&$disabled': {
242
221
  background: "transparent !important",
243
222
  color: "".concat(secLight, " !important"),
244
- border: "none !important",
245
- '& span span': {
246
- background: function background(props) {
247
- return renderIcon(props, [grey500]);
248
- }
249
- }
223
+ border: "none !important"
250
224
  },
251
225
  '& $loadIcon': {
252
226
  fill: sec
@@ -264,18 +238,14 @@ var _default = {
264
238
  '&:focus-visible': {
265
239
  boxShadow: _shadows["default"]['focus-corp']
266
240
  },
267
- '& span span': {
268
- background: function background(props) {
269
- return renderIcon(props, [_colors2["default"].icon["default"]["default"]]);
270
- }
241
+ '& $icon, & $iconRight': {
242
+ fill: _colors2["default"].icon["default"]["default"]
271
243
  },
272
244
  '&$disabled': {
273
245
  background: 'transparent',
274
- color: _colors2["default"].text.corp.disabled
275
- },
276
- '&$disabled span span': {
277
- background: function background(props) {
278
- return renderIcon(props, [_colors2["default"].icon["default"].disabled]);
246
+ color: _colors2["default"].text.corp.disabled,
247
+ '& $icon, & $iconRight': {
248
+ fill: _colors2["default"].icon["default"].disabled
279
249
  }
280
250
  },
281
251
  '& $loadIcon': {
@@ -294,18 +264,14 @@ var _default = {
294
264
  '&:focus-visible': {
295
265
  boxShadow: _shadows["default"]['focus-white']
296
266
  },
297
- '& span span': {
298
- background: function background(props) {
299
- return renderIcon(props, [_colors2["default"].icon.inverse["default"]]);
300
- }
267
+ '& $icon, & $iconRight': {
268
+ fill: _colors2["default"].icon.inverse["default"]
301
269
  },
302
270
  '&$disabled': {
303
271
  background: 'transparent',
304
- color: _colors2["default"].text.white.secondary
305
- },
306
- '&$disabled span span': {
307
- background: function background(props) {
308
- return renderIcon(props, [_colors2["default"].icon.inverse.disabled]);
272
+ color: _colors2["default"].text.white.secondary,
273
+ '& $icon, & $iconRight': {
274
+ fill: _colors2["default"].icon.inverse.disabled
309
275
  }
310
276
  }
311
277
  },
@@ -2,11 +2,11 @@
2
2
 
3
3
  exports[`FAB matches the snapshot 1`] = `
4
4
  <button
5
- className="Button-btn-0-1-28 Button-btn-0-1-1 Button-tertiary-0-1-23 Button-tertiary-0-1-6 fab Button-iconOnly-0-1-38 Button-iconOnly-0-1-18 Button-round-0-1-40 Button-round-0-1-20"
5
+ className="Button-btn-0-1-22 Button-btn-0-1-1 Button-tertiary-0-1-27 Button-tertiary-0-1-6 fab Button-iconOnly-0-1-38 Button-iconOnly-0-1-18 Button-round-0-1-40 Button-round-0-1-20"
6
6
  disabled={false}
7
7
  >
8
8
  <span
9
- className="Button-cont-0-1-29 Button-cont-0-1-2"
9
+ className="Button-cont-0-1-23 Button-cont-0-1-2"
10
10
  >
11
11
  <span
12
12
  className="Icon-oldIcon-0-1-45 Icon-oldIcon-0-1-43 Button-icon-0-1-36 Button-icon-0-1-16"
@@ -153,7 +153,7 @@ function Tooltip(_ref) {
153
153
  sizeMiddleware.name = "size-".concat(fit, "-").concat(width);
154
154
  middlewares.push(sizeMiddleware);
155
155
  return middlewares;
156
- }, [showArrow, fit, width]);
156
+ }, [showArrow, fit, width, placement]);
157
157
 
158
158
  var _useFloating = (0, _react2.useFloating)({
159
159
  open: open,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.36",
3
+ "version": "3.0.0-beta.38",
4
4
  "description": "Collection of shareable styled React components for OCC applications.",
5
5
  "homepage": "http://occmundial.github.io/occ-atomic",
6
6
  "main": "build/index.js",