@nulogy/components 6.2.0 → 6.3.2
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/dist/main.js +12 -6
- package/dist/main.module.js +12 -6
- package/dist/src/theme.type.d.ts +1 -0
- package/package.json +9 -9
package/dist/main.js
CHANGED
|
@@ -191,7 +191,8 @@
|
|
|
191
191
|
|
|
192
192
|
var i18nOptions = _objectSpread$6(_objectSpread$6(_objectSpread$6({}, getDefaults()), i18n.options.react), props);
|
|
193
193
|
|
|
194
|
-
var useSuspense = i18nOptions.useSuspense
|
|
194
|
+
var useSuspense = i18nOptions.useSuspense,
|
|
195
|
+
keyPrefix = i18nOptions.keyPrefix;
|
|
195
196
|
var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
|
|
196
197
|
namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
|
|
197
198
|
if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);
|
|
@@ -200,7 +201,7 @@
|
|
|
200
201
|
});
|
|
201
202
|
|
|
202
203
|
function getT() {
|
|
203
|
-
return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0]);
|
|
204
|
+
return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
|
|
204
205
|
}
|
|
205
206
|
|
|
206
207
|
var _useState = React.useState(getT),
|
|
@@ -274,7 +275,7 @@
|
|
|
274
275
|
|
|
275
276
|
/**
|
|
276
277
|
* Do not edit directly
|
|
277
|
-
* Generated on
|
|
278
|
+
* Generated on Wed, 10 Nov 2021 22:44:30 GMT
|
|
278
279
|
*/
|
|
279
280
|
|
|
280
281
|
const color_base_black = "#011e38";
|
|
@@ -283,6 +284,7 @@
|
|
|
283
284
|
const color_base_blue = "#216beb";
|
|
284
285
|
const color_base_light_blue = "#e1ebfa";
|
|
285
286
|
const color_base_dark_grey = "#434d59";
|
|
287
|
+
const color_base_mid_grey = "#6c7784";
|
|
286
288
|
const color_base_grey = "#c0c8d1";
|
|
287
289
|
const color_base_light_grey = "#e4e7eb";
|
|
288
290
|
const color_base_white_grey = "#f0f2f5";
|
|
@@ -364,6 +366,7 @@
|
|
|
364
366
|
blue: color_base_blue,
|
|
365
367
|
lightBlue: color_base_light_blue,
|
|
366
368
|
darkGrey: color_base_dark_grey,
|
|
369
|
+
midGrey: color_base_mid_grey,
|
|
367
370
|
grey: color_base_grey,
|
|
368
371
|
lightGrey: color_base_light_grey,
|
|
369
372
|
whiteGrey: color_base_white_grey,
|
|
@@ -20202,6 +20205,11 @@
|
|
|
20202
20205
|
|
|
20203
20206
|
var spaceProps = getSubset(props, propTypes.space);
|
|
20204
20207
|
var restProps = omitSubset(props, propTypes.space);
|
|
20208
|
+
var modifiers = React.useMemo(function () {
|
|
20209
|
+
return transformPropsToModifiers({
|
|
20210
|
+
boundariesElement: boundariesElement
|
|
20211
|
+
});
|
|
20212
|
+
}, [boundariesElement]);
|
|
20205
20213
|
return /*#__PURE__*/React__default['default'].createElement(Popper$1, {
|
|
20206
20214
|
trigger: /*#__PURE__*/React__default['default'].cloneElement(trigger(), Object.assign({
|
|
20207
20215
|
type: "button",
|
|
@@ -20216,9 +20224,7 @@
|
|
|
20216
20224
|
openOnClick: true,
|
|
20217
20225
|
ref: ref,
|
|
20218
20226
|
openOnHover: false,
|
|
20219
|
-
modifiers:
|
|
20220
|
-
boundariesElement: boundariesElement
|
|
20221
|
-
}),
|
|
20227
|
+
modifiers: modifiers,
|
|
20222
20228
|
backgroundColor: backgroundColor,
|
|
20223
20229
|
borderColor: backgroundColor,
|
|
20224
20230
|
openAriaLabel: openAriaLabel,
|
package/dist/main.module.js
CHANGED
|
@@ -165,7 +165,8 @@ function useTranslation(ns) {
|
|
|
165
165
|
|
|
166
166
|
var i18nOptions = _objectSpread$6(_objectSpread$6(_objectSpread$6({}, getDefaults()), i18n.options.react), props);
|
|
167
167
|
|
|
168
|
-
var useSuspense = i18nOptions.useSuspense
|
|
168
|
+
var useSuspense = i18nOptions.useSuspense,
|
|
169
|
+
keyPrefix = i18nOptions.keyPrefix;
|
|
169
170
|
var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
|
|
170
171
|
namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
|
|
171
172
|
if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);
|
|
@@ -174,7 +175,7 @@ function useTranslation(ns) {
|
|
|
174
175
|
});
|
|
175
176
|
|
|
176
177
|
function getT() {
|
|
177
|
-
return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0]);
|
|
178
|
+
return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
var _useState = useState(getT),
|
|
@@ -248,7 +249,7 @@ function I18nextProvider(_ref) {
|
|
|
248
249
|
|
|
249
250
|
/**
|
|
250
251
|
* Do not edit directly
|
|
251
|
-
* Generated on
|
|
252
|
+
* Generated on Wed, 10 Nov 2021 22:44:30 GMT
|
|
252
253
|
*/
|
|
253
254
|
|
|
254
255
|
const color_base_black = "#011e38";
|
|
@@ -257,6 +258,7 @@ const color_base_dark_blue = "#00438f";
|
|
|
257
258
|
const color_base_blue = "#216beb";
|
|
258
259
|
const color_base_light_blue = "#e1ebfa";
|
|
259
260
|
const color_base_dark_grey = "#434d59";
|
|
261
|
+
const color_base_mid_grey = "#6c7784";
|
|
260
262
|
const color_base_grey = "#c0c8d1";
|
|
261
263
|
const color_base_light_grey = "#e4e7eb";
|
|
262
264
|
const color_base_white_grey = "#f0f2f5";
|
|
@@ -338,6 +340,7 @@ var Theme = {
|
|
|
338
340
|
blue: color_base_blue,
|
|
339
341
|
lightBlue: color_base_light_blue,
|
|
340
342
|
darkGrey: color_base_dark_grey,
|
|
343
|
+
midGrey: color_base_mid_grey,
|
|
341
344
|
grey: color_base_grey,
|
|
342
345
|
lightGrey: color_base_light_grey,
|
|
343
346
|
whiteGrey: color_base_white_grey,
|
|
@@ -20176,6 +20179,11 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
20176
20179
|
|
|
20177
20180
|
var spaceProps = getSubset(props, propTypes.space);
|
|
20178
20181
|
var restProps = omitSubset(props, propTypes.space);
|
|
20182
|
+
var modifiers = useMemo(function () {
|
|
20183
|
+
return transformPropsToModifiers({
|
|
20184
|
+
boundariesElement: boundariesElement
|
|
20185
|
+
});
|
|
20186
|
+
}, [boundariesElement]);
|
|
20179
20187
|
return /*#__PURE__*/React__default.createElement(Popper$1, {
|
|
20180
20188
|
trigger: /*#__PURE__*/React__default.cloneElement(trigger(), Object.assign({
|
|
20181
20189
|
type: "button",
|
|
@@ -20190,9 +20198,7 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
20190
20198
|
openOnClick: true,
|
|
20191
20199
|
ref: ref,
|
|
20192
20200
|
openOnHover: false,
|
|
20193
|
-
modifiers:
|
|
20194
|
-
boundariesElement: boundariesElement
|
|
20195
|
-
}),
|
|
20201
|
+
modifiers: modifiers,
|
|
20196
20202
|
backgroundColor: backgroundColor,
|
|
20197
20203
|
borderColor: backgroundColor,
|
|
20198
20204
|
openAriaLabel: openAriaLabel,
|
package/dist/src/theme.type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "6.2
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@storybook/addon-storysource": "^6.1.9",
|
|
75
75
|
"@storybook/addon-viewport": "^6.1.9",
|
|
76
76
|
"@storybook/codemod": "^6.1.9",
|
|
77
|
-
"@storybook/react": "^6.
|
|
77
|
+
"@storybook/react": "^6.3.12",
|
|
78
78
|
"@storybook/theming": "^6.1.9",
|
|
79
79
|
"@testing-library/jest-dom": "5.11.5",
|
|
80
80
|
"@testing-library/react": "^10.0.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"babel-plugin-require-context-hook": "1.0.0",
|
|
95
95
|
"babel-plugin-styled-components": "1.10.7",
|
|
96
96
|
"babel-preset-react": "6.24.1",
|
|
97
|
-
"chromatic": "^
|
|
97
|
+
"chromatic": "^6.0.6",
|
|
98
98
|
"concurrently": "^5.2.0",
|
|
99
99
|
"cypress": "^4.0.0",
|
|
100
100
|
"cypress-enter-plugin": "^1.0.1",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"enzyme-to-json": "3.4.4",
|
|
105
105
|
"eslint": "6.8.0",
|
|
106
106
|
"eslint-plugin-prettier": "^3.1.4",
|
|
107
|
-
"http-server": "0.
|
|
107
|
+
"http-server": "^14.0.0",
|
|
108
108
|
"husky": "^4.3.0",
|
|
109
109
|
"jest": "24.1.0",
|
|
110
110
|
"jest-styled-components": "7",
|
|
@@ -113,7 +113,9 @@
|
|
|
113
113
|
"plop": "^2.4.0",
|
|
114
114
|
"prop-types": "15.7.2",
|
|
115
115
|
"puppeteer": "^3.3.0",
|
|
116
|
+
"react": "16.10.2",
|
|
116
117
|
"react-color": "^2.18.1",
|
|
118
|
+
"react-dom": "16.10.2",
|
|
117
119
|
"react-router-dom": "^5.2.0",
|
|
118
120
|
"react-select": "^3.0.8",
|
|
119
121
|
"react-test-renderer": "^16.10",
|
|
@@ -132,13 +134,11 @@
|
|
|
132
134
|
"typescript-eslint": "^0.0.1-alpha.0",
|
|
133
135
|
"wait-on": "^5.1.0",
|
|
134
136
|
"webpack": "^4.8.3",
|
|
135
|
-
"webpack-cli": "^3.1.0"
|
|
136
|
-
"react": "16.10.2",
|
|
137
|
-
"react-dom": "16.10.2"
|
|
137
|
+
"webpack-cli": "^3.1.0"
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
140
|
"@babel/runtime": "^7.9.6",
|
|
141
|
-
"@nulogy/tokens": "
|
|
141
|
+
"@nulogy/tokens": "^5.1.0",
|
|
142
142
|
"@styled-system/prop-types": "^5.1.4",
|
|
143
143
|
"@styled-system/theme-get": "^5.1.2",
|
|
144
144
|
"body-scroll-lock": "^3.1.5",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"polished": "3.4.4",
|
|
153
153
|
"react-datepicker": "^4.1.0",
|
|
154
154
|
"react-fast-compare": "^3.2.0",
|
|
155
|
-
"react-i18next": "^11.
|
|
155
|
+
"react-i18next": "^11.14.2",
|
|
156
156
|
"react-input-autosize": "^2.2.2",
|
|
157
157
|
"react-modal": "^3.10.1",
|
|
158
158
|
"react-popper": "1.3.7",
|