@occmundial/occ-atomic 3.0.0-beta.26 → 3.0.0-beta.28

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ # [3.0.0-beta.28](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.27...v3.0.0-beta.28) (2024-07-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add hover transition styles to link toaster ([dcb67ab](https://github.com/occmundial/occ-atomic/commit/dcb67aba17e6f669d5554f397c516aca687ebc53))
7
+ * Move css to flexbox props ([cedb764](https://github.com/occmundial/occ-atomic/commit/cedb7644bdc88a19ca385e4a0d8902f19900eaf0))
8
+
9
+ # [3.0.0-beta.27](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.26...v3.0.0-beta.27) (2024-07-08)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * CHanged outlines with shadows ([bba0c01](https://github.com/occmundial/occ-atomic/commit/bba0c01a54a13b1b405c2405eb1ab764cc1ab367))
15
+
16
+
17
+ ### Features
18
+
19
+ * Changed tag border to outline ([89ccbaf](https://github.com/occmundial/occ-atomic/commit/89ccbaf7f1d0c183940cfb3ef2fb8f270928aedf))
20
+
1
21
  # [3.0.0-beta.26](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.25...v3.0.0-beta.26) (2024-07-05)
2
22
 
3
23
 
@@ -31,7 +31,7 @@ Object {
31
31
  },
32
32
  "error": Object {
33
33
  "background": "#fce8e8",
34
- "border": "1px solid #FBDFDF",
34
+ "boxShadow": "inset 0px 0px 0px 1px #FBDFDF",
35
35
  "color": "#8b1313",
36
36
  },
37
37
  "errorIcon": Object {
@@ -39,7 +39,7 @@ Object {
39
39
  },
40
40
  "featured": Object {
41
41
  "background": "#0059CD",
42
- "border": "1px solid rgba(255,255,255,0.2)",
42
+ "boxShadow": "inset 0px 0px 0px 1px rgba(255,255,255,0.2)",
43
43
  "color": "#fff",
44
44
  },
45
45
  "featuredIcon": Object {
@@ -55,7 +55,7 @@ Object {
55
55
  },
56
56
  "info": Object {
57
57
  "background": "#e3efff",
58
- "border": "1px solid #b9d7ff",
58
+ "boxShadow": "inset 0px 0px 0px 1px #b9d7ff",
59
59
  "color": "#083CAE",
60
60
  },
61
61
  "infoIcon": Object {
@@ -76,7 +76,7 @@ Object {
76
76
  },
77
77
  "promo": Object {
78
78
  "background": "#080D39",
79
- "border": "1px solid rgba(255,255,255,0.2)",
79
+ "boxShadow": "inset 0px 0px 0px 1px rgba(255,255,255,0.2)",
80
80
  "color": "#fff",
81
81
  },
82
82
  "promoIcon": Object {
@@ -94,7 +94,7 @@ Object {
94
94
  },
95
95
  "success": Object {
96
96
  "background": "#ebfbf1",
97
- "border": "1px solid #d7f6e3",
97
+ "boxShadow": "inset 0px 0px 0px 1px #d7f6e3",
98
98
  "color": "#16542e",
99
99
  },
100
100
  "successIcon": Object {
@@ -123,7 +123,7 @@ Object {
123
123
  },
124
124
  "warning": Object {
125
125
  "background": "#fff8e9",
126
- "border": "1px solid #fff1d3",
126
+ "boxShadow": "inset 0px 0px 0px 1px #fff1d3",
127
127
  "color": "#664a0e",
128
128
  },
129
129
  "warningIcon": Object {
@@ -85,32 +85,32 @@ var _default = {
85
85
  featured: {
86
86
  color: text.white.primary,
87
87
  background: tag.featured.bg,
88
- border: "1px solid ".concat(tag.featured.border)
88
+ boxShadow: "inset 0px 0px 0px 1px ".concat(tag.featured.border)
89
89
  },
90
90
  promo: {
91
91
  color: text.white.primary,
92
92
  background: tag.promo.bg,
93
- border: "1px solid ".concat(tag.promo.border)
93
+ boxShadow: "inset 0px 0px 0px 1px ".concat(tag.promo.border)
94
94
  },
95
95
  success: {
96
96
  color: text.success,
97
97
  background: tag.success.bg,
98
- border: "1px solid ".concat(tag.success.border)
98
+ boxShadow: "inset 0px 0px 0px 1px ".concat(tag.success.border)
99
99
  },
100
100
  info: {
101
101
  color: text.indigo.primary,
102
102
  background: tag.info.bg,
103
- border: "1px solid ".concat(tag.info.border)
103
+ boxShadow: "inset 0px 0px 0px 1px ".concat(tag.info.border)
104
104
  },
105
105
  warning: {
106
106
  color: text.warning,
107
107
  background: tag.warning.bg,
108
- border: "1px solid ".concat(tag.warning.border)
108
+ boxShadow: "inset 0px 0px 0px 1px ".concat(tag.warning.border)
109
109
  },
110
110
  error: {
111
111
  color: text.error,
112
112
  background: tag.error.bg,
113
- border: "1px solid ".concat(tag.error.border)
113
+ boxShadow: "inset 0px 0px 0px 1px ".concat(tag.error.border)
114
114
  },
115
115
 
116
116
  /* Icon with themes */
package/build/Tip/Tip.js CHANGED
@@ -81,7 +81,9 @@ var Tip = function Tip(_ref) {
81
81
  display: "flex",
82
82
  direction: size === 'small' ? 'col' : 'row',
83
83
  justifyContent: banner ? 'center' : 'start',
84
- className: "".concat(classes.textContainer).concat(banner ? " ".concat(classes.maxWidth) : '')
84
+ alignSelf: "center",
85
+ flex: "1",
86
+ className: banner ? " ".concat(classes.maxWidth) : ''
85
87
  }, /*#__PURE__*/_react["default"].createElement(_TipText["default"], {
86
88
  classes: "".concat(classes.normalText, " ").concat(classes[colorTextClasses[theme]]).concat(!banner ? " ".concat(classes.growText) : ''),
87
89
  text: children
@@ -138,7 +138,6 @@ Object {
138
138
  "outline": "1px solid #d7f6e3",
139
139
  },
140
140
  "textContainer": Object {
141
- "alignSelf": "center",
142
141
  "flex": 1,
143
142
  },
144
143
  "textError": Object {
@@ -147,8 +147,7 @@ var _default = {
147
147
  margin: 0
148
148
  },
149
149
  textContainer: {
150
- flex: 1,
151
- alignSelf: 'center'
150
+ flex: 1
152
151
  },
153
152
  growText: {
154
153
  flexGrow: 1
@@ -35,6 +35,13 @@ var colorTextClasses = {
35
35
  success: 'textSuccess',
36
36
  error: 'textError'
37
37
  };
38
+ var colorLinkClasses = {
39
+ info: 'linkInfo',
40
+ promote: 'linkPromote',
41
+ warning: 'linkWarning',
42
+ success: 'linkSuccess',
43
+ error: 'linkError'
44
+ };
38
45
 
39
46
  var Toast = function Toast(_ref) {
40
47
  var classes = _ref.classes,
@@ -86,7 +93,7 @@ var Toast = function Toast(_ref) {
86
93
  }, title), description && /*#__PURE__*/_react["default"].createElement("p", {
87
94
  className: "".concat(classes.description, " ").concat(classes[colorTextClasses[theme]])
88
95
  }, description)), action ? /*#__PURE__*/_react["default"].createElement("a", _extends({
89
- className: "".concat(classes.actionText, " ").concat(classes[colorTextClasses[theme]]),
96
+ className: "".concat(classes.actionText, " ").concat(classes[colorLinkClasses[theme]]),
90
97
  onClick: function onClick() {
91
98
  return onActionClick(action);
92
99
  }
@@ -91,6 +91,46 @@ var _default = {
91
91
  textPromote: {
92
92
  color: _colors["default"].text.white.primary
93
93
  },
94
+ linkInfo: {
95
+ color: _colors["default"].text.indigo.primary,
96
+ backgroundRepeat: 'no-repeat',
97
+ background: "linear-gradient(".concat(_colors["default"].link.brand.bg.hover, ", ").concat(_colors["default"].link.brand.bg.hover, ")"),
98
+ '&:active': {
99
+ background: "linear-gradient(".concat(_colors["default"].link.brand.bg.active, ", ").concat(_colors["default"].link.brand.bg.active, ")")
100
+ }
101
+ },
102
+ linkWarning: {
103
+ color: _colors["default"].text.warning,
104
+ backgroundRepeat: 'no-repeat',
105
+ background: "linear-gradient(".concat(_colors["default"].link.warning.bg.hover, ", ").concat(_colors["default"].link.warning.bg.hover, ")"),
106
+ '&:active': {
107
+ background: "linear-gradient(".concat(_colors["default"].link.warning.bg.active, ", ").concat(_colors["default"].link.warning.bg.active, ")")
108
+ }
109
+ },
110
+ linkSuccess: {
111
+ color: _colors["default"].text.success,
112
+ backgroundRepeat: 'no-repeat',
113
+ background: "linear-gradient(".concat(_colors["default"].link.success.bg.hover, ", ").concat(_colors["default"].link.success.bg.hover, ")"),
114
+ '&:active': {
115
+ background: "linear-gradient(".concat(_colors["default"].link.success.bg.active, ", ").concat(_colors["default"].link.success.bg.active, ")")
116
+ }
117
+ },
118
+ linkError: {
119
+ color: _colors["default"].text.error,
120
+ backgroundRepeat: 'no-repeat',
121
+ background: "linear-gradient(".concat(_colors["default"].link.error.bg.hover, ", ").concat(_colors["default"].link.error.bg.hover, ")"),
122
+ '&:active': {
123
+ background: "linear-gradient(".concat(_colors["default"].link.error.bg.active, ", ").concat(_colors["default"].link.error.bg.active, ")")
124
+ }
125
+ },
126
+ linkPromote: {
127
+ color: _colors["default"].text.white.primary,
128
+ backgroundRepeat: 'no-repeat',
129
+ background: "linear-gradient(".concat(_colors["default"].link.white.bg.hover, ", ").concat(_colors["default"].link.white.bg.hover, ")"),
130
+ '&:active': {
131
+ background: "linear-gradient(".concat(_colors["default"].link.white.bg.active, ", ").concat(_colors["default"].link.white.bg.active, ")")
132
+ }
133
+ },
94
134
  title: {
95
135
  font: (0, _styles.parseFontValue)(_fonts["default"]['alert-default']),
96
136
  margin: 0
@@ -117,6 +157,12 @@ var _default = {
117
157
  textDecoration: 'underline',
118
158
  cursor: 'pointer',
119
159
  alignSelf: 'start',
160
+ transition: 'all ease-out 150ms',
161
+ backgroundSize: '0%',
162
+ '&:hover': {
163
+ backgroundSize: '100%',
164
+ cursor: 'pointer'
165
+ },
120
166
  margin: [_spacing["default"]['size-2'], 0, 0]
121
167
  }, "@media screen and (min-width:".concat(_grid["default"].xs, "px)"), {
122
168
  margin: [0, 0, 0, _spacing["default"]['size-4']],
@@ -1,5 +1,5 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Toaster launches a toast 1`] = `"<div class=\\"container\\"><div class=\\"Toast-toast-0-1-1 Toast-success-0-1-3\\"><div class=\\"Flexbox-flex-0-1-20 Flexbox-jbetween-0-1-32\\"><div class=\\"Flexbox-flex-0-1-20 Flexbox-acenter-0-1-37 Flexbox-scenter-0-1-49\\" style=\\"flex: 1;\\"><svg class=\\"Icon-icon-0-1-55 Icon-icon-0-1-52 undefined__check-circle Toast-icon-0-1-16\\" width=\\"24\\" height=\\"24\\" fill=\\"#38d373\\" style=\\"transition: 0.3s all;\\"><use xlink:href=\\"undefined#undefined__check-circle\\"></use></svg><div class=\\"Flexbox-flex-0-1-20 Flexbox-jbetween-0-1-32 Flexbox-scenter-0-1-49 Toast-content-0-1-15\\" style=\\"flex: 1;\\"><div class=\\"Flexbox-flex-0-1-20 Flexbox-col-0-1-24\\"><p class=\\"Toast-title-0-1-13 Toast-textSuccess-0-1-10\\">Title</p></div></div></div></div></div></div>"`;
3
+ exports[`Toaster launches a toast 1`] = `"<div class=\\"container\\"><div class=\\"Toast-toast-0-1-1 Toast-success-0-1-3\\"><div class=\\"Flexbox-flex-0-1-25 Flexbox-jbetween-0-1-37\\"><div class=\\"Flexbox-flex-0-1-25 Flexbox-acenter-0-1-42 Flexbox-scenter-0-1-54\\" style=\\"flex: 1;\\"><svg class=\\"Icon-icon-0-1-60 Icon-icon-0-1-57 undefined__check-circle Toast-icon-0-1-21\\" width=\\"24\\" height=\\"24\\" fill=\\"#38d373\\" style=\\"transition: 0.3s all;\\"><use xlink:href=\\"undefined#undefined__check-circle\\"></use></svg><div class=\\"Flexbox-flex-0-1-25 Flexbox-jbetween-0-1-37 Flexbox-scenter-0-1-54 Toast-content-0-1-20\\" style=\\"flex: 1;\\"><div class=\\"Flexbox-flex-0-1-25 Flexbox-col-0-1-29\\"><p class=\\"Toast-title-0-1-18 Toast-textSuccess-0-1-10\\">Title</p></div></div></div></div></div></div>"`;
4
4
 
5
5
  exports[`Toaster matches the snapshot 1`] = `"<div class=\\"container\\"></div>"`;
@@ -29,6 +29,10 @@ var toaster = {
29
29
  value.type = 'warning';
30
30
  this.addToast(value);
31
31
  },
32
+ promote: function promote(value) {
33
+ value.type = 'promote';
34
+ this.addToast(value);
35
+ },
32
36
  close: function close() {
33
37
  if (this.closeListener && !(0, _isEmpty["default"])(this.toast)) this.closeListener(this.toast);
34
38
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.26",
3
+ "version": "3.0.0-beta.28",
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",