@nova-design-system/nova-react 3.5.0 → 3.7.0
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/README.md +6 -0
- package/dist/cjs/{timeline.animation-1b88f052-B8-vCVrY.js → collapse.animation-16e3af45-CChx_tQJ.js} +4 -25
- package/dist/cjs/fade.animation-71e8e34c-BAw_TYsB.js +68 -0
- package/dist/cjs/{index-Te0zRbKN.js → index-Cv7U-U85.js} +2237 -1595
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/nv-accordion-item.entry-BgDBJjHO.js +178 -0
- package/dist/cjs/nv-accordion.entry-1dHBq_qo.js +164 -0
- package/dist/cjs/{nv-alert.entry-CPbApg9_.js → nv-alert.entry-6J-BEBxl.js} +10 -8
- package/dist/cjs/{nv-avatar.entry-CwM8IOei.js → nv-avatar.entry-Lav6aVEw.js} +2 -2
- package/dist/cjs/{nv-badge_2.entry-Bqu-2k7E.js → nv-badge_2.entry-DaAOJgy_.js} +14 -12
- package/dist/cjs/{nv-breadcrumb.entry-CmceXVS9.js → nv-breadcrumb.entry-BKoLlkWC.js} +2 -2
- package/dist/cjs/{nv-breadcrumbs.entry-B7xbEUl5.js → nv-breadcrumbs.entry-BdGgzdxC.js} +2 -2
- package/dist/cjs/{nv-button.entry-Cd_CE1fx.js → nv-button.entry-Pe2qJFy0.js} +2 -2
- package/dist/cjs/{nv-calendar.entry-B2lm2nvb.js → nv-calendar.entry-WRFrbZtz.js} +97 -67
- package/dist/cjs/{nv-col.entry-BF8XR4B1.js → nv-col.entry-C3IgKfxS.js} +2 -2
- package/dist/cjs/{nv-datagrid.entry-CcQ8XP6J.js → nv-datagrid.entry-Bh1mgk8D.js} +3 -3
- package/dist/cjs/{nv-datagridcolumn.entry-uGbQ4NMr.js → nv-datagridcolumn.entry-DopvtY6C.js} +2 -2
- package/dist/cjs/{nv-dialog.entry-DyK4wFFz.js → nv-dialog.entry-D8oF5B-9.js} +20 -7
- package/dist/cjs/{nv-dialogfooter_2.entry-DT3kR9Xn.js → nv-dialogfooter_2.entry-QE1dFuOh.js} +3 -3
- package/dist/cjs/{nv-fieldcheckbox.entry-D_wHbgcq.js → nv-fieldcheckbox.entry-BbC0JUWc.js} +5 -5
- package/dist/cjs/{nv-fielddate.entry-BaIcP2EG.js → nv-fielddate.entry-BIuQgdYW.js} +122 -36
- package/dist/cjs/{nv-fielddaterange.entry-BNcF2N2M.js → nv-fielddaterange.entry-C82h1WUR.js} +33 -5
- package/dist/cjs/{nv-fielddropdown.entry-DWlDvODi.js → nv-fielddropdown.entry-CWqg8M3_.js} +4 -4
- package/dist/cjs/{nv-fielddropdownitem.entry-BIy_GUKA.js → nv-fielddropdownitem.entry-KuL1iVS4.js} +2 -2
- package/dist/cjs/{nv-fieldmultiselect.entry-B74CLRuh.js → nv-fieldmultiselect.entry-CAdWlUw2.js} +96 -103
- package/dist/cjs/{nv-fieldnumber.entry-BQBy1EIj.js → nv-fieldnumber.entry-Bbk2wO5k.js} +4 -4
- package/dist/cjs/{nv-fieldpassword.entry-DNFZvmBx.js → nv-fieldpassword.entry-BOtLqrGx.js} +4 -4
- package/dist/cjs/{nv-fieldradio.entry-BIR29jv5.js → nv-fieldradio.entry-CY4txacC.js} +4 -4
- package/dist/cjs/{nv-fieldselect.entry-DulA_N5q.js → nv-fieldselect.entry-CRP6e7uq.js} +6 -6
- package/dist/cjs/{nv-fieldslider.entry-DCslY5gg.js → nv-fieldslider.entry-BLO9yOcu.js} +54 -10
- package/dist/cjs/{nv-fieldtext.entry-Dvv8KjJC.js → nv-fieldtext.entry-BqgV8SxD.js} +4 -4
- package/dist/cjs/{nv-fieldtextarea.entry-rVcnznae.js → nv-fieldtextarea.entry-dDaXddme.js} +4 -4
- package/dist/cjs/{nv-fieldtime.entry-_fXkWsoI.js → nv-fieldtime.entry-DAIYFHO7.js} +11 -11
- package/dist/cjs/{nv-icon.entry-BGyFETNH.js → nv-icon.entry-CxE0uTUN.js} +2 -2
- package/dist/cjs/{nv-iconbutton_2.entry-CtClzxKf.js → nv-iconbutton_2.entry-DAWQjqvb.js} +3 -3
- package/dist/cjs/{nv-menu.entry-B3vFxd1E.js → nv-menu.entry-Fg1jfAeH.js} +2 -2
- package/dist/cjs/{nv-menuitem.entry-BIWwr98d.js → nv-menuitem.entry-CGg4iJrd.js} +2 -2
- package/dist/cjs/{nv-popover.entry-vonHjF_y.js → nv-popover.entry-DsKxPxfa.js} +9 -8
- package/dist/cjs/{nv-row.entry-BYUhLZ0r.js → nv-row.entry-BsPFwLLA.js} +2 -2
- package/dist/cjs/{nv-stack.entry-Cxc6QmII.js → nv-stack.entry-4Ec3nJml.js} +2 -2
- package/dist/cjs/{nv-table.entry-DSBUXcSF.js → nv-table.entry-Bv0iDqou.js} +3 -3
- package/dist/cjs/{nv-tablecolumn.entry-BP857bqD.js → nv-tablecolumn.entry-XJJCmUC2.js} +1 -1
- package/dist/cjs/{nv-toggle.entry-CnquGUlJ.js → nv-toggle.entry-C72c_569.js} +3 -3
- package/dist/cjs/{nv-tooltip.entry-XvxL_FTH.js → nv-tooltip.entry-BNvm30iV.js} +4 -3
- package/dist/cjs/{fade.animation-2a077983-aKN0EDTo.js → stylefire.es-74da334a-y0piPjlz.js} +0 -64
- package/dist/cjs/timeline.animation-adf35ecb-CE6Dsdxr.js +23 -0
- package/dist/generated/components.js +18 -2
- package/dist/generated/components.server.js +23 -3
- package/dist/types/generated/components.d.ts +17 -3
- package/dist/types/generated/components.server.d.ts +17 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,12 @@ npm install @nova-design-system/nova-webcomponents @nova-design-system/nova-base
|
|
|
45
45
|
yarn add @nova-design-system/nova-webcomponents @nova-design-system/nova-base @nova-design-system/nova-react
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
> In some case, you might experience SSL certificate issues when working on Developers' VM. As documented in the [Developers' setup guide](https://wiki.eliagroup.eu/spaces/EAing/pages/89296007/2.3.3.10+Developer+Setup#id-2.3.3.10DeveloperSetup-NPMconfig), you need to turn off the SSL certificate verification:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm config set strict-ssl false
|
|
52
|
+
```
|
|
53
|
+
|
|
48
54
|
> **Note for Yarn Users**
|
|
49
55
|
> Yarn **does not automatically** install peer dependencies. You must install the following peer dependency manually:
|
|
50
56
|
> ```bash
|
package/dist/cjs/{timeline.animation-1b88f052-B8-vCVrY.js → collapse.animation-16e3af45-CChx_tQJ.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var stylefire_es74da334a = require('./stylefire.es-74da334a-y0piPjlz.js');
|
|
4
4
|
|
|
5
5
|
const useCollapse = (node, { duration } = { duration: 200 }) => {
|
|
6
|
-
const nodeStyler =
|
|
6
|
+
const nodeStyler = stylefire_es74da334a.index(node);
|
|
7
7
|
/**
|
|
8
8
|
* Will set the overflow to hidden, and animate the max height to 0. Make sure
|
|
9
9
|
* the element has no border or y padding set, otherwise the animation will
|
|
@@ -13,7 +13,7 @@ const useCollapse = (node, { duration } = { duration: 200 }) => {
|
|
|
13
13
|
return new Promise(resolve => {
|
|
14
14
|
const height = node.getBoundingClientRect().height;
|
|
15
15
|
nodeStyler.set({ overflow: 'hidden' });
|
|
16
|
-
|
|
16
|
+
stylefire_es74da334a.animate({
|
|
17
17
|
from: height,
|
|
18
18
|
to: 0,
|
|
19
19
|
duration,
|
|
@@ -56,7 +56,7 @@ const useCollapse = (node, { duration } = { duration: 200 }) => {
|
|
|
56
56
|
nodeStyler.set({
|
|
57
57
|
overflow: 'hidden',
|
|
58
58
|
});
|
|
59
|
-
|
|
59
|
+
stylefire_es74da334a.animate({
|
|
60
60
|
from: 0,
|
|
61
61
|
to: scrollHeight,
|
|
62
62
|
duration,
|
|
@@ -81,25 +81,4 @@ const useCollapse = (node, { duration } = { duration: 200 }) => {
|
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
* Will execute a series of animation promises in sequence.
|
|
86
|
-
* This is useful for chaining animations where each step depends on the
|
|
87
|
-
* previous one completing before starting the next.
|
|
88
|
-
*
|
|
89
|
-
* @param {Array<() => Promise<void>>} animations - The array of animation functions.
|
|
90
|
-
* @returns {Object} - An object with a `start` method to begin the timeline.
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* const { fadeOut } = useFade(this.ref);
|
|
94
|
-
* const { collapse } = useCollapse(this.ref);
|
|
95
|
-
*
|
|
96
|
-
* timeline(fadeOut, collapse).start();
|
|
97
|
-
*/
|
|
98
|
-
const timeline = (...animations) => ({
|
|
99
|
-
start: () => {
|
|
100
|
-
return animations.reduce((promise, animation) => promise.then(() => animation()), Promise.resolve());
|
|
101
|
-
},
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
exports.timeline = timeline;
|
|
105
84
|
exports.useCollapse = useCollapse;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var stylefire_es74da334a = require('./stylefire.es-74da334a-y0piPjlz.js');
|
|
4
|
+
|
|
5
|
+
const useFade = (node, { duration } = { duration: 200 }) => {
|
|
6
|
+
const nodeStyler = stylefire_es74da334a.index(node);
|
|
7
|
+
/**
|
|
8
|
+
* Will animate the opacity to 1, and removes the opacity style attribute once
|
|
9
|
+
* complete.
|
|
10
|
+
*/
|
|
11
|
+
function fadeIn() {
|
|
12
|
+
return new Promise(resolve => {
|
|
13
|
+
stylefire_es74da334a.animate({
|
|
14
|
+
from: { opacity: 0 },
|
|
15
|
+
to: { opacity: 1 },
|
|
16
|
+
duration,
|
|
17
|
+
onUpdate(latest) {
|
|
18
|
+
nodeStyler.set({ opacity: latest.opacity });
|
|
19
|
+
},
|
|
20
|
+
onComplete() {
|
|
21
|
+
resolve();
|
|
22
|
+
node.style.removeProperty('opacity');
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Applies the fadeOut styles without animating, useful when initial state
|
|
29
|
+
* is hidden.
|
|
30
|
+
*/
|
|
31
|
+
function setFadeOut() {
|
|
32
|
+
node.style.opacity = '0';
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Applies the fadeIn styles without animating, useful when initial state
|
|
36
|
+
* is visible.
|
|
37
|
+
*/
|
|
38
|
+
function setFadeIn() {
|
|
39
|
+
node.style.opacity = '1';
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Will animate the opacity to 0, once complete, the opacity style attribute
|
|
43
|
+
* will stay on the element.
|
|
44
|
+
*/
|
|
45
|
+
function fadeOut() {
|
|
46
|
+
return new Promise(resolve => {
|
|
47
|
+
stylefire_es74da334a.animate({
|
|
48
|
+
from: { opacity: 1 },
|
|
49
|
+
to: { opacity: 0 },
|
|
50
|
+
duration,
|
|
51
|
+
onUpdate(latest) {
|
|
52
|
+
nodeStyler.set({ opacity: latest.opacity });
|
|
53
|
+
},
|
|
54
|
+
onComplete() {
|
|
55
|
+
resolve();
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
fadeIn,
|
|
62
|
+
fadeOut,
|
|
63
|
+
setFadeOut,
|
|
64
|
+
setFadeIn,
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.useFade = useFade;
|