@descope/web-components-ui 1.0.266 → 1.0.268
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +13 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +386 -264
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -3
- package/src/helpers/themeHelpers/index.js +13 -1
- package/src/index.js +2 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@descope/web-components-ui",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.268",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/cjs/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -94,8 +94,7 @@
|
|
94
94
|
"color": "^4.2.3",
|
95
95
|
"element-internals-polyfill": "^1.3.9",
|
96
96
|
"lint-staged": "^15.0.0",
|
97
|
-
"lodash.merge": "4.6.2"
|
98
|
-
"lodash.set": "4.3.2"
|
97
|
+
"lodash.merge": "4.6.2"
|
99
98
|
},
|
100
99
|
"vaadin": {
|
101
100
|
"disableUsageStatistics": true
|
@@ -1,11 +1,23 @@
|
|
1
1
|
import merge from 'lodash.merge';
|
2
|
-
import set from 'lodash.set';
|
3
2
|
import { BASE_THEME_SECTION, DESCOPE_PREFIX, PORTAL_THEME_PREFIX } from '../../constants';
|
4
3
|
import { isUrl, kebabCase } from '..';
|
5
4
|
import { getComponentName, getCssVarName } from '../componentHelpers';
|
6
5
|
|
7
6
|
const getVarName = (path) => getCssVarName(DESCOPE_PREFIX, ...path);
|
8
7
|
|
8
|
+
// lodash.set alternative
|
9
|
+
const set = (obj, path, value) => {
|
10
|
+
const pathArray = Array.isArray(path) ? path : path.match(/([^[.\]])+/g);
|
11
|
+
|
12
|
+
pathArray.reduce((acc, key, i) => {
|
13
|
+
if (acc[key] === undefined) acc[key] = {};
|
14
|
+
if (i === pathArray.length - 1) acc[key] = value;
|
15
|
+
return acc[key];
|
16
|
+
}, obj);
|
17
|
+
|
18
|
+
return obj;
|
19
|
+
};
|
20
|
+
|
9
21
|
const transformTheme = (theme, path, getTransformation) => {
|
10
22
|
return Object.entries(theme).reduce((acc, [key, val]) => {
|
11
23
|
if (val?.constructor !== Object) {
|
package/src/index.js
CHANGED
@@ -26,9 +26,11 @@ export * from './components/descope-upload-file';
|
|
26
26
|
export * from './components/button-selection-group-fields/descope-button-selection-group';
|
27
27
|
export * from './components/button-selection-group-fields/descope-button-multi-selection-group';
|
28
28
|
export * from './components/descope-grid';
|
29
|
+
export * from './components/descope-combo-box';
|
29
30
|
export * from './components/descope-multi-select-combo-box';
|
30
31
|
export * from './components/descope-badge';
|
31
32
|
export * from './components/descope-modal';
|
33
|
+
export * from './components/descope-notification';
|
32
34
|
|
33
35
|
export {
|
34
36
|
globalsThemeToStyle,
|