@occmundial/occ-atomic 2.0.0-beta.18 → 2.0.0-beta.19

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
@@ -1,3 +1,10 @@
1
+ # [2.0.0-beta.19](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.18...v2.0.0-beta.19) (2024-05-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * Update Autocomplete styles ([fa449be](https://github.com/occmundial/occ-atomic/commit/fa449be2322c75857e6350ee9dee596cd441b033))
7
+
1
8
  # [2.0.0-beta.18](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.17...v2.0.0-beta.18) (2024-05-21)
2
9
 
3
10
 
@@ -243,7 +243,8 @@ Autocomplete.propTypes = {
243
243
  className: _propTypes["default"].string,
244
244
  inputClassName: _propTypes["default"].string,
245
245
  disabled: _propTypes["default"].bool,
246
- testId: _propTypes["default"].string
246
+ testId: _propTypes["default"].string,
247
+ disableAutoComplete: _propTypes["default"].bool
247
248
  }).isRequired,
248
249
 
249
250
  /** Object with the props for the Droplist component. Check their descriptions in the Droplist docs. */
@@ -279,9 +280,6 @@ Autocomplete.propTypes = {
279
280
  /** Function to call on mouse down (Droplist item). */
280
281
  onMouseDown: _propTypes["default"].func,
281
282
  onRef: _propTypes["default"].func,
282
-
283
- /** Disables native autoComplete on browsers. */
284
- disableAutoComplete: _propTypes["default"].bool,
285
283
  id: _propTypes["default"].string,
286
284
  className: _propTypes["default"].string,
287
285
  style: _propTypes["default"].object,
@@ -292,7 +290,6 @@ Autocomplete.propTypes = {
292
290
  Autocomplete.defaultProps = {
293
291
  textfieldProps: {},
294
292
  droplistProps: {},
295
- disableAutoComplete: false,
296
293
  showInitialData: false
297
294
  };
298
295
  var _default = Autocomplete;
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _idx = _interopRequireDefault(require("idx"));
9
9
 
10
- var _spacing = _interopRequireDefault(require("../subatomic/spacing"));
11
-
12
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
11
 
14
12
  var _default = {
@@ -20,10 +18,12 @@ var _default = {
20
18
  zIndex: 2,
21
19
  top: function top(props) {
22
20
  return (0, _idx["default"])(props, function (_) {
23
- return _.textfieldProps.label;
21
+ return _.textfieldProps.assistiveText;
24
22
  }) || (0, _idx["default"])(props, function (_) {
25
- return _.textfieldProps.lockHeight;
26
- }) ? _spacing["default"].xLarge : 40;
23
+ return _.textfieldProps.counter;
24
+ }) && (0, _idx["default"])(props, function (_) {
25
+ return _.textfieldProps.maxLength;
26
+ }) ? 'calc(100% - 21px)' : 'calc(100% + 8px)';
27
27
  },
28
28
  left: 0,
29
29
  width: '100%'
@@ -257,7 +257,7 @@
257
257
  "selected": {
258
258
  "bg": {
259
259
  "default": "#0059CD",
260
- "hover": "#0047A5"
260
+ "hover": "#083CAE"
261
261
  }
262
262
  },
263
263
  "bg": {
@@ -279,7 +279,7 @@
279
279
  "selected": {
280
280
  "bg": {
281
281
  "default": "#0059CD",
282
- "hover": "#0047A5",
282
+ "hover": "#083CAE",
283
283
  "disabled": "#8DA5DA"
284
284
  },
285
285
  "border": {
@@ -310,7 +310,7 @@
310
310
  "selected": {
311
311
  "bg": {
312
312
  "default": "#0059CD",
313
- "hover": "#0047A5",
313
+ "hover": "#083CAE",
314
314
  "disabled": "hsl(221 91.2% 35.7% / 0.1)"
315
315
  },
316
316
  "border": {
@@ -342,7 +342,7 @@
342
342
  "border": "#d7f6e3"
343
343
  },
344
344
  "info": {
345
- "bg": "#f7faff",
345
+ "bg": "#e3efff",
346
346
  "border": "#e3efff"
347
347
  },
348
348
  "neutral": {
@@ -354,7 +354,7 @@
354
354
  "track": {
355
355
  "bg": {
356
356
  "default": "#0059CD",
357
- "hover": "#0047A5",
357
+ "hover": "#083CAE",
358
358
  "disabled": "#8DA5DA"
359
359
  }
360
360
  },
@@ -379,7 +379,7 @@
379
379
  "selected": {
380
380
  "bg": {
381
381
  "default": "#0059CD",
382
- "hover": "#0047A5",
382
+ "hover": "#083CAE",
383
383
  "disabled": "#8DA5DA"
384
384
  },
385
385
  "border": {
@@ -401,7 +401,7 @@
401
401
  "border": "#fff1d3"
402
402
  },
403
403
  "info": {
404
- "bg": "#f7faff",
404
+ "bg": "#e3efff",
405
405
  "border": "#e3efff"
406
406
  },
407
407
  "featured": {
@@ -439,6 +439,30 @@
439
439
  }
440
440
  }
441
441
  },
442
+ "nav": {
443
+ "bg": {
444
+ "inverse": "#083CAE",
445
+ "default": "#fff"
446
+ }
447
+ },
448
+ "pill": {
449
+ "selected": {
450
+ "bg": {
451
+ "default": "#0059CD",
452
+ "hover": "#083CAE",
453
+ "active": "#06308A",
454
+ "disabled": "#8DA5DA"
455
+ }
456
+ },
457
+ "unselected": {
458
+ "bg": {
459
+ "default": "hsl(221 91.2% 35.7% / 0.05)",
460
+ "hover": "hsl(221 91.2% 35.7% / 0.1)",
461
+ "active": "hsl(221 91.2% 35.7% / 0.2)",
462
+ "disabled": "hsl(221 91.2% 35.7% / 0.1)"
463
+ }
464
+ }
465
+ },
442
466
  "bg": {
443
467
  "action": {
444
468
  "primary": {
@@ -469,11 +493,13 @@
469
493
  },
470
494
  "brand": {
471
495
  "default": "#0059CD",
472
- "hover": "#0047A5",
496
+ "hover": "#083CAE",
497
+ "active": "#06308A",
473
498
  "disabled": "#8DA5DA",
474
499
  "subtle": {
475
500
  "default": "#E9EEF8",
476
- "hover": "#CAD5EE"
501
+ "hover": "#CAD5EE",
502
+ "active": "#ABBDE4"
477
503
  }
478
504
  },
479
505
  "ghost": {
@@ -490,7 +516,7 @@
490
516
  "warning": "#fff8e9",
491
517
  "error": "#fce8e8",
492
518
  "success": "#ebfbf1",
493
- "info": "#f7faff",
519
+ "info": "#e3efff",
494
520
  "overlay": "rgba(0,0,0,0.8)",
495
521
  "neutral": "#000"
496
522
  },
@@ -515,7 +541,8 @@
515
541
  },
516
542
  "border": {
517
543
  "inverse": {
518
- "default": "#fff",
544
+ "bold": "#fff",
545
+ "default": "rgba(255,255,255,0.5)",
519
546
  "subtle": "rgba(255,255,255,0.2)"
520
547
  },
521
548
  "default": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "2.0.0-beta.18",
3
+ "version": "2.0.0-beta.19",
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",