@front10/helpers 2.0.21 → 2.0.23

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.
@@ -20,6 +20,8 @@ function ContextProvider(_ref) {
20
20
  localizationData = _ref.localizationData,
21
21
  theme = _ref.theme,
22
22
  moment = _ref.moment,
23
+ tenant = _ref.tenant,
24
+ componentName = _ref.componentName,
23
25
  children = _ref.children;
24
26
 
25
27
  var value = _react["default"].useMemo(function () {
@@ -28,9 +30,11 @@ function ContextProvider(_ref) {
28
30
  direction: direction.toLowerCase(),
29
31
  localizationData: localizationData,
30
32
  theme: theme,
31
- moment: moment
33
+ moment: moment,
34
+ tenant: tenant,
35
+ componentName: componentName
32
36
  };
33
- }, [translate, direction, localizationData, theme]);
37
+ }, [translate, direction, localizationData, theme, tenant, componentName]);
34
38
 
35
39
  return _react["default"].createElement(Context.Provider, {
36
40
  value: value
@@ -123,8 +123,8 @@ var initTheme = function initTheme(theme) {
123
123
  }
124
124
 
125
125
  if (colors.primary) {
126
- var primaryHover = (0, _Color.hexToRGBA)(colors.primary, 0.25);
127
- generatedStyles.push(".fr-focus:focus, .fr-form-control:focus, .fr-focus\\:focus{box-shadow: 0 0 0 0.2rem ".concat(primaryHover, ";outline: 0;}"));
126
+ var primaryHover = (0, _Color.hexToRGBA)(colors.primary, 0.4);
127
+ generatedStyles.push(".fr-focus:focus, .fr-form-control:focus, .fr-focus\\:focus{box-shadow: 0px 0px 0px 3.2px ".concat(primaryHover, ";outline: 0;}"));
128
128
  }
129
129
  }
130
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@front10/helpers",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "Helpers for front10 components",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/front10-helpers.js",