@nova-design-system/nova-react 3.14.0-beta.0 → 3.14.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/dist/cjs/{collapse.animation-6e0b08df-AHWzNGm_.js → collapse.animation-acda1bf5-BuORVmQv.js} +1 -4
- package/dist/cjs/{constants-69bafca2-DpB_ghPF.js → constants-d0f19e7b-s0SCO_vi.js} +0 -9
- package/dist/cjs/{fade.animation-9b939939-DV--bM4S.js → fade.animation-eb454088-Bma0SpTf.js} +2 -2
- package/dist/cjs/{index-CJDePE8Z.js → index-CKAZvszR.js} +328 -584
- package/dist/cjs/index.js +1 -9
- package/dist/cjs/{nv-accordion-item.entry-Begcz9SZ.js → nv-accordion-item.entry-CjBcmF8t.js} +4 -5
- package/dist/cjs/{nv-accordion.entry-DQAkheHY.js → nv-accordion.entry-CRk2Wvt3.js} +1 -2
- package/dist/cjs/{nv-alert.entry-CEzR0iu0.js → nv-alert.entry-D5qB5xZg.js} +11 -12
- package/dist/cjs/{nv-avatar.entry-B-u7r30l.js → nv-avatar.entry-CuNYdZl_.js} +7 -8
- package/dist/cjs/{nv-badge_2.entry-0vhTS5D7.js → nv-badge_2.entry-BDuX1qOQ.js} +10 -11
- package/dist/cjs/{nv-breadcrumb.entry-BkWs1x-W.js → nv-breadcrumb.entry-BE9U6AF_.js} +1 -2
- package/dist/cjs/{nv-breadcrumbs.entry-DglL-1Ed.js → nv-breadcrumbs.entry-DJXqtmMR.js} +1 -2
- package/dist/cjs/{nv-button.entry-BbT0aeQI.js → nv-button.entry-CF5IDcG3.js} +7 -8
- package/dist/cjs/{nv-buttongroup.entry-wlJma4qm.js → nv-buttongroup.entry-C0Zc2lOi.js} +1 -2
- package/dist/cjs/{nv-calendar.entry-wIPDRk0B.js → nv-calendar.entry-NbVLStMN.js} +7 -8
- package/dist/cjs/{nv-col.entry-Btsenp2c.js → nv-col.entry-ahFf8a1Z.js} +1 -2
- package/dist/cjs/{nv-datagrid.entry-Dae8YlRu.js → nv-datagrid.entry-C-MJXEdi.js} +6 -7
- package/dist/cjs/{nv-datagridcolumn.entry-D918Vo_U.js → nv-datagridcolumn.entry-CxU7soW7.js} +1 -2
- package/dist/cjs/{nv-dialog.entry--cGTlgDZ.js → nv-dialog.entry-WlnaC-w2.js} +3 -4
- package/dist/cjs/{nv-dialogfooter_2.entry-CXYjGHc5.js → nv-dialogfooter_2.entry-CEWmTnJc.js} +4 -5
- package/dist/cjs/{nv-fieldcheckbox.entry-9b_kDQGz.js → nv-fieldcheckbox.entry-BYhFVrYb.js} +2 -3
- package/dist/cjs/{nv-fielddate.entry-CRRTthds.js → nv-fielddate.entry-DVVnRiOT.js} +1 -2
- package/dist/cjs/{nv-fielddaterange.entry-BAVePsLs.js → nv-fielddaterange.entry-Cb4X5Q-C.js} +1 -2
- package/dist/cjs/{nv-fielddropdown.entry-Dy8sZyze.js → nv-fielddropdown.entry-D2PKGkpx.js} +1 -2
- package/dist/cjs/{nv-fielddropdownitem.entry-CuPocgsF.js → nv-fielddropdownitem.entry-BqgMRnIc.js} +1 -2
- package/dist/cjs/{nv-fieldmultiselect.entry-HWSDowQH.js → nv-fieldmultiselect.entry-Dzw4c9wO.js} +1 -2
- package/dist/cjs/{nv-fieldnumber.entry-fObgOYJX.js → nv-fieldnumber.entry-Cm5g6tw7.js} +1 -2
- package/dist/cjs/{nv-fieldpassword.entry-BRhKH_Mb.js → nv-fieldpassword.entry-BMI5M4RR.js} +1 -2
- package/dist/cjs/{nv-fieldradio.entry-D74Mlgjc.js → nv-fieldradio.entry-BrCJvkMR.js} +1 -2
- package/dist/cjs/{nv-fieldselect.entry-BS81ItZs.js → nv-fieldselect.entry-Cz76Y4Fb.js} +1 -2
- package/dist/cjs/{nv-fieldslider.entry-xyqrZxYj.js → nv-fieldslider.entry-C2ynnMK8.js} +1 -2
- package/dist/cjs/{nv-fieldtext.entry-BVUKbv4b.js → nv-fieldtext.entry-B6ciu2fU.js} +1 -2
- package/dist/cjs/{nv-fieldtextarea.entry-B7hb1so-.js → nv-fieldtextarea.entry-BL_gMvTp.js} +1 -2
- package/dist/cjs/{nv-fieldtime.entry-DvCbKaOO.js → nv-fieldtime.entry-Be5fujXA.js} +60 -61
- package/dist/cjs/{nv-icon.entry-DP715dyH.js → nv-icon.entry-C-wbfOy3.js} +8 -9
- package/dist/cjs/{nv-iconbutton_2.entry-FpzwxZe_.js → nv-iconbutton_2.entry-Dlk96yHi.js} +1 -2
- package/dist/cjs/{nv-menu.entry-ryMNpTHW.js → nv-menu.entry-CDn1Tk9J.js} +1 -2
- package/dist/cjs/{nv-menuitem.entry-SQBrWIYf.js → nv-menuitem.entry-DIkQnha9.js} +1 -2
- package/dist/cjs/nv-notification.entry-BiwnZCkF.js +178 -0
- package/dist/cjs/{nv-popover.entry-DOu6rhco.js → nv-popover.entry-Bz9ZWGlN.js} +6 -7
- package/dist/cjs/{nv-row.entry-Tx_yvWTJ.js → nv-row.entry-iJGXINmZ.js} +2 -3
- package/dist/cjs/{nv-stack.entry-Cn0JrM2N.js → nv-stack.entry-CifEjR2g.js} +2 -3
- package/dist/cjs/{nv-table.entry-D-uKGKnp.js → nv-table.entry-Dxg0j3fe.js} +3 -4
- package/dist/cjs/{nv-tablecolumn.entry-BsJzXKCk.js → nv-tablecolumn.entry--29MFEe9.js} +1 -2
- package/dist/cjs/{nv-toggle.entry-DuDRh-Ww.js → nv-toggle.entry-D0eQoEqf.js} +4 -5
- package/dist/cjs/{nv-togglebutton.entry-DAlky3tO.js → nv-togglebutton.entry-X4eLeP-C.js} +2 -3
- package/dist/cjs/{nv-togglebuttongroup.entry-DTadjqMQ.js → nv-togglebuttongroup.entry-BYO58vql.js} +2 -3
- package/dist/cjs/{nv-tooltip.entry-BWzlP6gC.js → nv-tooltip.entry-DaxjQSt1.js} +2 -3
- package/dist/generated/components.js +0 -8
- package/dist/generated/components.server.js +1 -8
- package/dist/index.js +0 -1
- package/dist/types/generated/components.d.ts +0 -3
- package/dist/types/generated/components.server.d.ts +0 -3
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -4
- package/dist/cjs/nv-notification.entry-DnCew-lG.js +0 -262
- package/dist/cjs/nv-notificationcontainer.entry-Dwlv9s1v.js +0 -41
- package/dist/providers/NotificationProvider.js +0 -83
- package/dist/types/providers/NotificationProvider.d.ts +0 -36
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
5
|
require('react');
|
|
6
|
-
require('react-dom');
|
|
7
6
|
|
|
8
7
|
const nvIconbuttonCss = "nv-iconbutton.root{display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:500;font-family:\"TT Norms Pro\", sans-serif;transition:background-color 150ms ease-out;height:fit-content;width:fit-content}nv-iconbutton.size-xs{padding:var(--button-xs-icon-button-padding);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);font-size:var(--button-xs-font-size)}nv-iconbutton.size-sm{padding:var(--button-sm-icon-button-padding);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);font-size:var(--button-sm-font-size)}nv-iconbutton.size-md{padding:var(--button-md-icon-button-padding);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);font-size:var(--button-md-font-size)}nv-iconbutton.size-lg{padding:var(--button-lg-icon-button-padding);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);font-size:var(--button-lg-font-size)}nv-iconbutton.emphasis-high{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-iconbutton.emphasis-high:hover{background:var(--components-button-high-background-hover);color:var(--components-button-high-text-hover)}nv-iconbutton.emphasis-high:focus,nv-iconbutton.emphasis-high:focus-within{outline:none}nv-iconbutton.emphasis-high:focus-visible,nv-iconbutton.emphasis-high:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-high:disabled{background:var(--components-button-high-background);color:var(--components-button-high-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-high nv-icon>svg{color:var(--components-button-high-icon)}nv-iconbutton.emphasis-medium{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-iconbutton.emphasis-medium:hover{background:var(--components-button-medium-background-hover);color:var(--components-button-medium-text-hover)}nv-iconbutton.emphasis-medium:focus,nv-iconbutton.emphasis-medium:focus-within{outline:none}nv-iconbutton.emphasis-medium:focus-visible,nv-iconbutton.emphasis-medium:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-medium:disabled{background:var(--components-button-medium-background);color:var(--components-button-medium-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-medium nv-icon>svg{color:var(--components-button-medium-icon)}nv-iconbutton.emphasis-low{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-iconbutton.emphasis-low:hover{background:var(--components-button-low-background-hover);color:var(--components-button-low-text-hover)}nv-iconbutton.emphasis-low:focus,nv-iconbutton.emphasis-low:focus-within{outline:none}nv-iconbutton.emphasis-low:focus-visible,nv-iconbutton.emphasis-low:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-low:disabled{background:var(--components-button-low-background);color:var(--components-button-low-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-low nv-icon>svg{color:var(--components-button-low-icon)}nv-iconbutton.emphasis-lower{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-iconbutton.emphasis-lower:hover{background:var(--components-button-lower-background-hover);color:var(--components-button-lower-text-hover)}nv-iconbutton.emphasis-lower:focus,nv-iconbutton.emphasis-lower:focus-within{outline:none}nv-iconbutton.emphasis-lower:focus-visible,nv-iconbutton.emphasis-lower:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-lower:disabled{background:var(--components-button-lower-background);color:var(--components-button-lower-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-lower nv-icon>svg{color:var(--components-button-lower-icon)}nv-iconbutton.loading [slot=leading-icon]{display:none}nv-iconbutton.shape-rounded{border-radius:var(--radius-rounded-full)}";
|
|
9
8
|
const NvIconbuttonStyle0 = nvIconbuttonCss;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('react-dom');
|
|
6
5
|
|
|
7
6
|
const nvMenuCss = "nv-menuitem{display:flex;align-items:center;max-width:300px;width:100vw;font-size:var(--menu-contextual-item-font-size);font-weight:var(--menu-contextual-item-font-weight);color:var(--components-menu-contextual-item-content);border-radius:var(--menu-contextual-item-radius);gap:var(--menu-contextual-item-gap-x);padding:var(--menu-contextual-item-padding-y) var(--menu-contextual-item-padding-x);transition:background-color 150ms ease-out;cursor:pointer}nv-menuitem:hover,nv-menuitem:focus,nv-menuitem:focus-within{background-color:var(--components-menu-contextual-item-background-hover);color:var(--components-menu-contextual-item-content-hover)}nv-menuitem *{pointer-events:none}nv-menuitem kbd{color:var(--components-menu-contextual-item-shortcut)}nv-menuitem [data-scope=text]{margin-right:auto}nv-menuitem[disabled]:not([disabled=false]){cursor:unset;background-color:unset;color:var(--components-menu-contextual-item-content-disabled)}nv-menu{display:inline-block;position:relative}nv-menu:has([fluid]:not([fluid=false])){display:block}nv-menu nv-popover{display:unset}nv-menu nv-popover [data-scope=popover]{background-color:transparent !important;padding:0 !important}nv-menu [slot=content]{padding:var(--menu-contextual-padding-y) var(--menu-contextual-padding-x);border-radius:var(--menu-contextual-radius);gap:var(--menu-contextual-gap-y);background-color:var(--components-menu-contextual-background);border-color:var(--components-menu-contextual-border);display:flex;flex-direction:column}nv-menu nv-menu[open]:not([open=false])>nv-menuitem{background-color:var(--components-menu-contextual-item-background-hover);color:var(--components-menu-contextual-item-content-hover)}nv-menu hr{display:block;margin:var(--menu-contextual-divider-padding-top) var(--menu-contextual-divider-padding-x) var(--menu-contextual-divider-padding-bottom) var(--menu-contextual-divider-padding-x)}";
|
|
8
7
|
const NvMenuStyle0 = nvMenuCss;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('react-dom');
|
|
6
5
|
|
|
7
6
|
const nvMenuitemCss = "nv-menuitem{display:flex;align-items:center;max-width:300px;width:100vw;font-size:var(--menu-contextual-item-font-size);font-weight:var(--menu-contextual-item-font-weight);color:var(--components-menu-contextual-item-content);border-radius:var(--menu-contextual-item-radius);gap:var(--menu-contextual-item-gap-x);padding:var(--menu-contextual-item-padding-y) var(--menu-contextual-item-padding-x);transition:background-color 150ms ease-out;cursor:pointer}nv-menuitem:hover,nv-menuitem:focus,nv-menuitem:focus-within{background-color:var(--components-menu-contextual-item-background-hover);color:var(--components-menu-contextual-item-content-hover)}nv-menuitem *{pointer-events:none}nv-menuitem kbd{color:var(--components-menu-contextual-item-shortcut)}nv-menuitem [data-scope=text]{margin-right:auto}nv-menuitem[disabled]:not([disabled=false]){cursor:unset;background-color:unset;color:var(--components-menu-contextual-item-content-disabled)}";
|
|
8
7
|
const NvMenuitemStyle0 = nvMenuitemCss;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
|
+
var constantsD0f19e7b = require('./constants-d0f19e7b-s0SCO_vi.js');
|
|
5
|
+
var collapse_animationAcda1bf5 = require('./collapse.animation-acda1bf5-BuORVmQv.js');
|
|
6
|
+
var fade_animationEb454088 = require('./fade.animation-eb454088-Bma0SpTf.js');
|
|
7
|
+
var styleValueTypes_esF5d10b79 = require('./style-value-types.es-f5d10b79-D0QCM8OB.js');
|
|
8
|
+
var timeline_animation79215cd4 = require('./timeline.animation-79215cd4-KteJaZPb.js');
|
|
9
|
+
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
10
|
+
require('react');
|
|
11
|
+
|
|
12
|
+
const useSlide = (node, { duration } = { duration: 200 }) => {
|
|
13
|
+
const nodeStyler = fade_animationEb454088.index(node);
|
|
14
|
+
/**
|
|
15
|
+
* Will animate the translateX to 100%, sliding the element to the right.
|
|
16
|
+
*/
|
|
17
|
+
function slideOut() {
|
|
18
|
+
return new Promise(resolve => {
|
|
19
|
+
styleValueTypes_esF5d10b79.animate({
|
|
20
|
+
from: { x: 0 },
|
|
21
|
+
to: { x: 100 },
|
|
22
|
+
ease: styleValueTypes_esF5d10b79.easeOut,
|
|
23
|
+
duration,
|
|
24
|
+
onUpdate(latest) {
|
|
25
|
+
nodeStyler.set({ transform: `translateX(${latest.x}%)` });
|
|
26
|
+
},
|
|
27
|
+
onComplete() {
|
|
28
|
+
resolve();
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Applies the slideOut styles without animating, useful when initial state
|
|
35
|
+
* is slid out.
|
|
36
|
+
*/
|
|
37
|
+
function setSlideOut() {
|
|
38
|
+
node.style.transform = 'translateX(100%)';
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Applies the slideIn styles without animating, useful when initial state
|
|
42
|
+
* is slid in.
|
|
43
|
+
*/
|
|
44
|
+
function setSlideIn() {
|
|
45
|
+
node.style.transform = '';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Will animate the translateX from 100% to 0%, sliding the element in from the right.
|
|
49
|
+
*/
|
|
50
|
+
function slideIn() {
|
|
51
|
+
return new Promise(resolve => {
|
|
52
|
+
styleValueTypes_esF5d10b79.animate({
|
|
53
|
+
from: { x: 100 },
|
|
54
|
+
to: { x: 0 },
|
|
55
|
+
duration,
|
|
56
|
+
onUpdate(latest) {
|
|
57
|
+
nodeStyler.set({ transform: `translateX(${latest.x}%)` });
|
|
58
|
+
},
|
|
59
|
+
onComplete() {
|
|
60
|
+
resolve();
|
|
61
|
+
node.style.removeProperty('transform');
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
slideIn,
|
|
68
|
+
slideOut,
|
|
69
|
+
setSlideOut,
|
|
70
|
+
setSlideIn,
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const nvNotificationCss = "nv-notification{display:block}nv-notification [data-scope=container]{display:flex;position:relative;max-width:512px;width:100%;padding:var(--notification-padding);align-items:flex-start;gap:var(--notification-gap-x);border-radius:var(--notification-radius);border-style:solid;box-shadow:0 var(--shadow-y-axis-lg-1, 4px) var(--shadow-blur-lg-1, 6px) var(--shadow-spread-lg-1, -2px) var(--shadow-color-opacity-1, rgba(14, 14, 14, 0.06)), 0 var(--shadow-y-axis-lg-2, 10px) var(--shadow-blur-lg-2, 15px) var(--shadow-spread-lg-2, -3px) var(--shadow-color-opacity-2, rgba(14, 14, 14, 0.1))}nv-notification [data-scope=container]>nv-icon{flex-shrink:0}nv-notification [data-scope=container] [data-scope=dismiss]{padding:var(--button-sm-icon-button-padding, 8px);justify-content:center;align-items:center;gap:var(--button-sm-gap, 6px);display:flex;position:absolute;right:8px;top:8px;border-radius:var(--button-sm-border-radius, 4px);background:var(--components-button-lower-background, rgba(255, 255, 255, 0));color:var(--components-button-lower-icon)}nv-notification [data-scope=container] [data-scope=content]{display:flex;padding-right:var(--notification-padding-right);flex-direction:column;align-items:flex-start;gap:var(--notification-gap-y);flex:1 0 0}nv-notification [data-scope=container] [data-scope=content] [data-scope=heading]{display:flex;align-items:flex-start;gap:var(--notification-gap-x);align-self:stretch;color:var(--components-notification-content-title);font-size:var(--notification-title-font-size);font-style:normal;font-weight:500;line-height:20px;}nv-notification [data-scope=container] [data-scope=content] [data-scope=message]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--notification-gap-y);align-self:stretch;color:var(--components-notification-content-description);font-variant-numeric:lining-nums tabular-nums slashed-zero;font-size:var(--font-size-sm, 14px);font-style:normal;font-weight:400;line-height:var(--line-height-sm, 20px)}nv-notification [data-scope=container] [data-scope=content] [data-scope=actions]{display:flex;padding:var(--spacing-2, 8px) 0;padding-bottom:0px;align-items:flex-start;gap:var(--notification-gap-x);align-self:stretch;margin-left:calc(-1 * var(--button-sm-padding-x))}nv-notification[feedback=information] [data-scope=container]{background-color:var(--components-notification-information-background);border-color:var(--components-notification-information-border)}nv-notification[feedback=information] [data-scope=container]>nv-icon{color:var(--components-notification-information-icon)}nv-notification[feedback=information]>[data-scope=close]:focus,nv-notification[feedback=information]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=information]>[data-scope=close]:focus-visible,nv-notification[feedback=information]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-information-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=warning] [data-scope=container]{background-color:var(--components-notification-warning-background);border-color:var(--components-notification-warning-border)}nv-notification[feedback=warning] [data-scope=container]>nv-icon{color:var(--components-notification-warning-icon)}nv-notification[feedback=warning]>[data-scope=close]:focus,nv-notification[feedback=warning]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=warning]>[data-scope=close]:focus-visible,nv-notification[feedback=warning]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-warning-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=error] [data-scope=container]{background-color:var(--components-notification-error-background);border-color:var(--components-notification-error-border)}nv-notification[feedback=error] [data-scope=container]>nv-icon{color:var(--components-notification-error-icon)}nv-notification[feedback=error]>[data-scope=close]:focus,nv-notification[feedback=error]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=error]>[data-scope=close]:focus-visible,nv-notification[feedback=error]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-error-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=success] [data-scope=container]{background-color:var(--components-notification-success-background);border-color:var(--components-notification-success-border)}nv-notification[feedback=success] [data-scope=container]>nv-icon{color:var(--components-notification-success-icon)}nv-notification[feedback=success]>[data-scope=close]:focus,nv-notification[feedback=success]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=success]>[data-scope=close]:focus-visible,nv-notification[feedback=success]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-success-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=neutral] [data-scope=container]{background-color:var(--components-notification-neutral-background);border-color:var(--components-notification-neutral-border)}nv-notification[feedback=neutral] [data-scope=container]>nv-icon{color:var(--components-notification-neutral-icon)}nv-notification[feedback=neutral]>[data-scope=close]:focus,nv-notification[feedback=neutral]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=neutral]>[data-scope=close]:focus-visible,nv-notification[feedback=neutral]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-neutral-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[emphasis=high] [data-scope=container]{border-width:1px;border-left-width:var(--notification-border-width-high-emphasis);padding-left:calc(var(--notification-padding) - var(--notification-border-width-high-emphasis) + 1px)}nv-notification[emphasis=medium] [data-scope=container]{border-width:var(--notification-border-width-low-emphasis);border-color:var(--color-content-low-border, #E3E3E3)}";
|
|
75
|
+
const NvNotificationStyle0 = nvNotificationCss;
|
|
76
|
+
|
|
77
|
+
const NvNotification = class {
|
|
78
|
+
constructor(hostRef) {
|
|
79
|
+
index.registerInstance(this, hostRef);
|
|
80
|
+
this.hiddenChanged = index.createEvent(this, "hiddenChanged");
|
|
81
|
+
/****************************************************************************/
|
|
82
|
+
//#region PROPERTIES
|
|
83
|
+
/**
|
|
84
|
+
* Set a unique ID for the notification. Used for aria attributes and managing
|
|
85
|
+
* multiple notifications.
|
|
86
|
+
*/
|
|
87
|
+
this.uid = v4A79185f4.v4();
|
|
88
|
+
/**
|
|
89
|
+
* Specifies the notification type which determines the color and default icon.
|
|
90
|
+
*/
|
|
91
|
+
this.feedback = 'information';
|
|
92
|
+
/**
|
|
93
|
+
* Adjusts the emphasis to make the notification more or less visually
|
|
94
|
+
* prominent to users. Use this to draw attention to important actions or
|
|
95
|
+
* reduce focus on less critical ones
|
|
96
|
+
*/
|
|
97
|
+
this.emphasis = 'medium';
|
|
98
|
+
/**
|
|
99
|
+
* Allows the notification to be dismissed via a close button (x). The
|
|
100
|
+
* notification is not dismissible unless explicitly enabled.
|
|
101
|
+
*/
|
|
102
|
+
this.dismissible = false;
|
|
103
|
+
/**
|
|
104
|
+
* Controls the visibility of the notification.
|
|
105
|
+
*/
|
|
106
|
+
this.hidden = false; // eslint-disable-line @stencil-community/reserved-member-names
|
|
107
|
+
//#endregion EVENTS
|
|
108
|
+
/****************************************************************************/
|
|
109
|
+
//#region INTERNAL
|
|
110
|
+
this.iconByFeedback = {
|
|
111
|
+
[constantsD0f19e7b.FeedbackColors.Warning]: 'alert-circle',
|
|
112
|
+
[constantsD0f19e7b.FeedbackColors.Information]: 'info-circle',
|
|
113
|
+
[constantsD0f19e7b.FeedbackColors.Success]: 'circle-check',
|
|
114
|
+
[constantsD0f19e7b.FeedbackColors.Error]: 'alert-triangle',
|
|
115
|
+
[constantsD0f19e7b.FeedbackColors.Neutral]: 'help',
|
|
116
|
+
};
|
|
117
|
+
this.roleByFeedback = {
|
|
118
|
+
[constantsD0f19e7b.FeedbackColors.Error]: 'alert',
|
|
119
|
+
[constantsD0f19e7b.FeedbackColors.Warning]: 'alert',
|
|
120
|
+
[constantsD0f19e7b.FeedbackColors.Information]: 'status',
|
|
121
|
+
[constantsD0f19e7b.FeedbackColors.Success]: 'status',
|
|
122
|
+
[constantsD0f19e7b.FeedbackColors.Neutral]: 'status',
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
//#endregion PROPERTIES
|
|
126
|
+
/****************************************************************************/
|
|
127
|
+
//#region METHODS
|
|
128
|
+
async dismiss() {
|
|
129
|
+
await this.dismissAnimation();
|
|
130
|
+
}
|
|
131
|
+
getDefaultIcon() {
|
|
132
|
+
var _a;
|
|
133
|
+
return (_a = this.iconByFeedback[this.feedback]) !== null && _a !== void 0 ? _a : 'info-circle';
|
|
134
|
+
}
|
|
135
|
+
getAriaRole() {
|
|
136
|
+
var _a;
|
|
137
|
+
return (_a = this.roleByFeedback[this.feedback]) !== null && _a !== void 0 ? _a : 'status';
|
|
138
|
+
}
|
|
139
|
+
getAriaLive() {
|
|
140
|
+
return this.getAriaRole() === 'alert' ? 'assertive' : 'polite';
|
|
141
|
+
}
|
|
142
|
+
getHeadingId() {
|
|
143
|
+
return this.heading ? `nv-notification-${this.uid}-heading` : null;
|
|
144
|
+
}
|
|
145
|
+
getMessageId() {
|
|
146
|
+
return this.message ? `nv-notification-${this.uid}-message` : null;
|
|
147
|
+
}
|
|
148
|
+
async dismissAnimation() {
|
|
149
|
+
const { fadeOut } = fade_animationEb454088.useFade(this.container, { duration: 300 });
|
|
150
|
+
const { slideOut } = useSlide(this.container, { duration: 800 });
|
|
151
|
+
const { collapse } = collapse_animationAcda1bf5.useCollapse(this.el, {
|
|
152
|
+
duration: 800,
|
|
153
|
+
overflow: 'visible',
|
|
154
|
+
});
|
|
155
|
+
await timeline_animation79215cd4.parallel(fadeOut, slideOut, collapse).start();
|
|
156
|
+
this.hidden = true;
|
|
157
|
+
this.hiddenChanged.emit(true);
|
|
158
|
+
}
|
|
159
|
+
//#endregion INTERNAL
|
|
160
|
+
/****************************************************************************/
|
|
161
|
+
//#region LIFECYCLE
|
|
162
|
+
componentWillLoad() {
|
|
163
|
+
this.headingSlot = this.el.querySelector('[slot="heading"]');
|
|
164
|
+
this.messageSlot = this.el.querySelector('[slot="content"]');
|
|
165
|
+
this.actionsSlot = this.el.querySelector('[slot="actions"]');
|
|
166
|
+
}
|
|
167
|
+
//#endregion LIFECYCLE
|
|
168
|
+
/****************************************************************************/
|
|
169
|
+
//#region RENDER
|
|
170
|
+
render() {
|
|
171
|
+
var _a, _b, _c;
|
|
172
|
+
return (index.h(index.Host, { key: '9146cea4ed72801aadf2fb4b7e44895038c98437', role: this.getAriaRole(), "aria-live": this.getAriaLive(), "aria-atomic": true, "aria-labelledby": (_a = this.getHeadingId()) !== null && _a !== void 0 ? _a : null, "aria-describedby": (_b = this.getMessageId()) !== null && _b !== void 0 ? _b : null, tabindex: "-1" }, index.h("div", { key: 'beed9ae5f6fac1b0c6d103dd75a41e0aede84041', "data-scope": "container", ref: el => (this.container = el) }, this.dismissible && (index.h("button", { key: '8e17f33867c2563de719dc1b0f0e2d4ae39ad1a6', "data-scope": "dismiss", type: "button", onClick: this.dismiss.bind(this) }, index.h("nv-icon", { key: 'cb8850135bb2383e33a16671569547611b55e434', name: "x", size: "sm" }))), index.h("nv-icon", { key: 'f5f58e1c3a94d854841271eb12af047322b2f0b4', name: (_c = this.icon) !== null && _c !== void 0 ? _c : this.getDefaultIcon(), size: "md" }), index.h("div", { key: '9c6f6bb0315cd25260d483472a24832031ce45da', "data-scope": "content" }, (this.heading || this.headingSlot) && (index.h("p", { key: '1013d6b6790f75682a1db0e43293b61e614f1c07', id: this.getHeadingId(), "data-scope": "heading" }, index.h("slot", { key: '844a7bccf6f365d4e59dfdec9b3c9096cbeda798', name: "heading" }, this.heading))), (this.message || this.messageSlot) && (index.h("p", { key: '6688e9dc927f6164ce60f27b84fdbeb257296504', id: this.getMessageId(), "data-scope": "message" }, index.h("slot", { key: 'f0c0790faa40411970575240a081f0f0bf0e9aff', name: "content" }, this.message))), this.actionsSlot && (index.h("div", { key: '0ba946edf5b3a8410da3b375e589613a2674fd15', "data-scope": "actions" }, index.h("slot", { key: '0360ab92db66957f0290569c39307ced2be5922d', name: "actions" })))))));
|
|
173
|
+
}
|
|
174
|
+
get el() { return index.getElement(this); }
|
|
175
|
+
};
|
|
176
|
+
NvNotification.style = NvNotificationStyle0;
|
|
177
|
+
|
|
178
|
+
exports.nv_notification = NvNotification;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
|
+
var fade_animationEb454088 = require('./fade.animation-eb454088-Bma0SpTf.js');
|
|
5
5
|
var styleValueTypes_esF5d10b79 = require('./style-value-types.es-f5d10b79-D0QCM8OB.js');
|
|
6
6
|
var events_utilsFe1d907f = require('./events.utils-fe1d907f-01N__3wY.js');
|
|
7
7
|
require('react');
|
|
8
|
-
require('react-dom');
|
|
9
8
|
|
|
10
9
|
const useGrow = (node, { duration = 200, amount = 0.8, hasFade = true } = {}) => {
|
|
11
|
-
const nodeStyler =
|
|
10
|
+
const nodeStyler = fade_animationEb454088.index(node);
|
|
12
11
|
/**
|
|
13
12
|
* Will animate the scale and optionally the opacity to make the element grow and fade in,
|
|
14
13
|
* and removes the scale and opacity style attributes once complete.
|
|
@@ -1903,7 +1902,7 @@ const NvPopover = class {
|
|
|
1903
1902
|
duration: isOtherMemberOpen ? 0 : 100,
|
|
1904
1903
|
amount: 0.85,
|
|
1905
1904
|
});
|
|
1906
|
-
const { fadeOut } =
|
|
1905
|
+
const { fadeOut } = fade_animationEb454088.useFade(this.popoverElement, {
|
|
1907
1906
|
duration: isOtherMemberOpen ? 0 : 100,
|
|
1908
1907
|
});
|
|
1909
1908
|
if (open === true) {
|
|
@@ -1940,7 +1939,7 @@ const NvPopover = class {
|
|
|
1940
1939
|
setGrowOut();
|
|
1941
1940
|
}
|
|
1942
1941
|
else {
|
|
1943
|
-
const { setFadeIn } =
|
|
1942
|
+
const { setFadeIn } = fade_animationEb454088.useFade(this.popoverElement);
|
|
1944
1943
|
setFadeIn();
|
|
1945
1944
|
this.popoverElement.removeAttribute('hidden');
|
|
1946
1945
|
}
|
|
@@ -1968,7 +1967,7 @@ const NvPopover = class {
|
|
|
1968
1967
|
/****************************************************************************/
|
|
1969
1968
|
//#region RENDER
|
|
1970
1969
|
render() {
|
|
1971
|
-
return (index.h(index.Host, { key: '
|
|
1970
|
+
return (index.h(index.Host, { key: 'dc7ef1862f1a1da4b32e02bee827f81545df73d1' }, index.h("slot", { key: '7535c2ba2b1f600c237602c68a04c85fd9d6d98b', name: "trigger" }), index.h("div", { key: '8e7907e2fda20d35b00642eca0507aa20e56f7cb', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (index.h("div", { key: '4e081e84e9597b69351253d1c1b89c115cdcfd9a', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), index.h("slot", { key: '5bcd80588e9746db974cee69c5963b698665d105', name: "content" }))));
|
|
1972
1971
|
}
|
|
1973
1972
|
get el() { return index.getElement(this); }
|
|
1974
1973
|
static get watchers() { return {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('react-dom');
|
|
6
5
|
|
|
7
6
|
const nvRowCss = "nv-row{display:flex;flex-wrap:wrap;margin-right:calc(var(--spacing-4) * -1);margin-left:calc(var(--spacing-4) * -1);row-gap:var(--spacing-4)}";
|
|
8
7
|
const NvRowStyle0 = nvRowCss;
|
|
@@ -14,7 +13,7 @@ const NvRow = class {
|
|
|
14
13
|
/****************************************************************************/
|
|
15
14
|
//#region RENDER
|
|
16
15
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: '8415bdad0106bd3d836996c617a749294e0c19e2' }, index.h("slot", { key: '77c069ced0dc25c4169945877c388f30d27fdc4f' })));
|
|
18
17
|
}
|
|
19
18
|
};
|
|
20
19
|
NvRow.style = NvRowStyle0;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
5
|
require('react');
|
|
6
|
-
require('react-dom');
|
|
7
6
|
|
|
8
7
|
const nvStackCss = "nv-stack{display:flex;align-items:center;justify-content:flex-start;flex-direction:row}nv-stack nv-col{display:flex}nv-stack:not(nv-row){flex-wrap:nowrap}nv-stack>.nv-stack-item-flex{flex-shrink:1;flex-grow:1}nv-stack>.nv-stack-item-lead{margin-right:auto}nv-stack>.nv-stack-item-lead+*{margin-left:0}nv-stack>.nv-stack-item-center{margin-right:auto;margin-left:auto}nv-stack>.nv-stack-item-tail{margin-left:auto}nv-stack>.nv-stack-nowrap{white-space:nowrap}nv-stack.nv-stack-vertical{align-items:stretch;flex-direction:column}nv-stack.nv-stack-vertical>.nv-stack-item-lead{margin-right:0;margin-bottom:auto}nv-stack.nv-stack-vertical>.nv-stack-item-lead+*{margin-top:0}nv-stack.nv-stack-vertical>.nv-stack-item-tail{margin-left:0;margin-top:auto}nv-stack.nv-stack-vertical>.nv-stack-item-center{margin:auto 0}nv-stack.nv-stack-flex>*{flex-shrink:1;flex-grow:1}nv-stack.nv-stack-fill>*{height:100%}nv-stack.nv-stack-fill.nv-stack-vertical>*{height:auto;width:100%}";
|
|
9
8
|
const NvStackStyle0 = nvStackCss;
|
|
@@ -23,7 +22,7 @@ const NvStack = class {
|
|
|
23
22
|
/****************************************************************************/
|
|
24
23
|
//#region RENDER
|
|
25
24
|
render() {
|
|
26
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '66123f22ad4a6ebefe8663c795274eb900d2c178', class: clsx297c1ffe.clsx(this.fill && 'nv-stack-fill', this.flex && 'nv-stack-flex', this.full && 'w-full', this.gutter && !this.vertical && `gap-x-${this.gutter}`, this.gutter && this.vertical && `gap-y-${this.gutter}`, this.vertical && 'nv-stack-vertical') }, index.h("slot", { key: '7b3d395c3490664f0e2f337a04f69cc717ed6c0e' })));
|
|
27
26
|
}
|
|
28
27
|
};
|
|
29
28
|
NvStack.style = NvStackStyle0;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
var dom_utilsAc71e0ef = require('./dom.utils-ac71e0ef-CmIwRr6O.js');
|
|
5
5
|
require('react');
|
|
6
|
-
require('react-dom');
|
|
7
6
|
|
|
8
7
|
const nvTableCss = "nv-table{display:block}nv-table .hidden{display:none}nv-table table{border-collapse:collapse;border-color:inherit;text-indent:0;width:100%}nv-table th{text-align:left;border-bottom:1px solid var(--components-datagrid-header-border);height:var(--spacing-12);padding:var(--spacing-3) var(--spacing-4);font-size:var(--font-size-md);font-weight:700;color:var(--components-datagrid-header-text)}nv-table td{border-bottom:1px solid var(--components-datagrid-body-border);height:var(--spacing-12);max-height:var(--spacing-14);padding:var(--spacing-2) var(--spacing-4);font-size:var(--font-size-md);font-weight:400;color:var(--components-datagrid-body-text);white-space:nowrap;text-overflow:ellipsis}nv-table tbody>tr:hover{background:var(--color-interaction-container-neutral-background-hover)}";
|
|
9
8
|
const NvTableStyle0 = nvTableCss;
|
|
@@ -315,14 +314,14 @@ const NvTable = class {
|
|
|
315
314
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
316
315
|
? []
|
|
317
316
|
: this.table.data;
|
|
318
|
-
return (index.h(index.Host, { key: '
|
|
317
|
+
return (index.h(index.Host, { key: 'ea0b3237145fbc199d356010f1e001797afc52d6' }, index.h("div", { key: 'd3bf41bad48e549d1799b2c8e55a308a7d767973', class: "hidden" }, index.h("slot", { key: '8263220ebd266240b16228b67f8d215d7d56afd7' })), index.h("slot", { key: '36d43d6870cf9a6021521579c0507afd1fe85081', name: "before" }), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (index.h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (index.h("table", { class: "table" }, this.parsedColumns.length > 0 && headerGroups.length > 0 && (index.h("thead", { class: "table-header" }, index.h("tr", null, headerGroups &&
|
|
319
318
|
headerGroups.map(col => {
|
|
320
319
|
return (index.h("th", { key: col.name }, this.renderTemplate(this.headerTemplateCache.get(col.name), {}) || col.header));
|
|
321
320
|
})))), index.h("tbody", { class: "table-body" }, !rows || rows.length === 0 ? (index.h("tr", null, index.h("td", { colSpan: headerGroups.length || 12, class: "no-data" }, this.noDataMessage))) : (rows.map(row => (index.h("tr", { key: JSON.stringify(row) }, headerGroups.map(col => {
|
|
322
321
|
var _a;
|
|
323
322
|
return (index.h("td", null, this.renderTemplate(this.templateCache.get(col.name), row) ||
|
|
324
323
|
((_a = row[col.name]) !== null && _a !== void 0 ? _a : this.fallbackValue)));
|
|
325
|
-
})))))))), index.h("slot", { key: '
|
|
324
|
+
})))))))), index.h("slot", { key: '233b61e9099f58ca0eeeb7d0f7fdc7bd71bc9065', name: "after" })));
|
|
326
325
|
}
|
|
327
326
|
get el() { return index.getElement(this); }
|
|
328
327
|
static get watchers() { return {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
5
|
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('react-dom');
|
|
8
7
|
|
|
9
|
-
const nvToggleCss = "nv-toggle{display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-toggle:not([disabled],[readonly]) input,nv-toggle:not([disabled],[readonly]) label{cursor:pointer}nv-toggle.label-placement-before{flex-direction:row-reverse}nv-toggle[disabled]{opacity:0.5}nv-toggle label{align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-toggle label.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-toggle .input-container{position:relative;color:var(--components-form-shape-foreground-default)}nv-toggle .input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--components-form-shape-foreground-disabled)}nv-toggle .input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-toggle-width);height:var(--form-toggle-height);flex-direction:column;align-items:flex-start;border-radius:var(--form-toggle-radius);border-width:var(--form-toggle-border-width);border-style:solid;border-color:var(--components-
|
|
8
|
+
const nvToggleCss = "nv-toggle{display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-toggle:not([disabled],[readonly]) input,nv-toggle:not([disabled],[readonly]) label{cursor:pointer}nv-toggle.label-placement-before{flex-direction:row-reverse}nv-toggle[disabled]{opacity:0.5}nv-toggle label{align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-toggle label.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-toggle .input-container{position:relative;color:var(--components-form-shape-foreground-default)}nv-toggle .input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--components-form-shape-foreground-disabled)}nv-toggle .input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-toggle-width);height:var(--form-toggle-height);flex-direction:column;align-items:flex-start;border-radius:var(--form-toggle-radius);border-width:var(--form-toggle-border-width);border-style:solid;border-color:var(--components-toggle-border-default);background:var(--components-toggle-background-default)}nv-toggle .input-container input[type=checkbox]::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-toggle-shape-default);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:25%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:hover{border-color:var(--components-toggle-border-hover)}nv-toggle .input-container input[type=checkbox]:hover::after{background-color:var(--components-toggle-shape-hover)}nv-toggle .input-container input[type=checkbox]:focus{border-color:var(--components-toggle-border-default)}nv-toggle .input-container input[type=checkbox]:focus::after{background-color:var(--components-toggle-shape-default)}nv-toggle .input-container input[type=checkbox]:focus,nv-toggle .input-container input[type=checkbox]:focus-within{outline:none}nv-toggle .input-container input[type=checkbox]:focus-visible,nv-toggle .input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-toggle .input-container input[type=checkbox]:checked{background:var(--components-toggle-background-default-checked);border-color:var(--components-toggle-border-default-checked)}nv-toggle .input-container input[type=checkbox]:checked::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-toggle-shape-default-checked);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:75%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:checked:focus{background:var(--components-toggle-background-default-checked);border-color:var(--components-toggle-border-default-checked)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]){box-shadow:unset;background:var(--components-toggle-background-disabled);border-color:var(--components-toggle-border-default)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]):checked{background:var(--components-toggle-background-disabled-checked);border-color:var(--components-toggle-border-disabled-checked)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]):checked::after{background-color:var(--components-toggle-shape-disabled-checked)}nv-toggle .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:450;line-height:var(--form-description-line-height)}nv-toggle .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
10
9
|
const NvToggleStyle0 = nvToggleCss;
|
|
11
10
|
|
|
12
11
|
const NvToggle = class {
|
|
@@ -66,8 +65,8 @@ const NvToggle = class {
|
|
|
66
65
|
/****************************************************************************/
|
|
67
66
|
//#region RENDER
|
|
68
67
|
render() {
|
|
69
|
-
return (index.h(index.Host, { key: '
|
|
70
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
68
|
+
return (index.h(index.Host, { key: 'db161d2edfcf7f83381b6431c8bc70a22c04fbf3', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before') }, index.h("div", { key: '086d6c429b4b7bcaa23093b13d30cf6ba21912f8', class: "input-container" }, index.h("input", { key: 'e83f407f2c3643c245198131a7991545b73dde78', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), index.h("div", { key: 'eb5af410d1c643c70a4364948bf8fad9d54e74df', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '54793fd81258bee7676801f23da4f5fb554242bf', htmlFor: this.inputId, class: clsx297c1ffe.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: '6af650d9677d1eb0f8cfa77cbcd6318f2d6f8aaf', name: "label" }, this.label))), (this.description ||
|
|
69
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '2c157429288779ad6cc18d4e318e64830a657c54', class: "description" }, index.h("slot", { key: 'fcfae2a0d7cdcc76d4b23c4b376c8e2496e11bb5', name: "description" }, this.description))))));
|
|
71
70
|
}
|
|
72
71
|
static get formAssociated() { return true; }
|
|
73
72
|
get el() { return index.getElement(this); }
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('react-dom');
|
|
6
5
|
|
|
7
6
|
const nvTogglebuttonCss = "nv-togglebutton{display:inline-flex;justify-content:center;align-items:center}nv-togglebutton:focus-visible,nv-togglebutton:has(:focus-visible){z-index:1}nv-togglebutton[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);font-size:var(--button-xs-font-size);padding-top:calc(var(--togglegroup-xs-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-xs-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-xs-button-radius));border-width:0}nv-togglebutton[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-togglebutton[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);font-size:var(--button-sm-font-size);padding-top:calc(var(--togglegroup-sm-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-sm-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-sm-button-radius));border-width:0}nv-togglebutton[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-togglebutton[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);font-size:var(--button-md-font-size);padding-top:calc(var(--togglegroup-md-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-md-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-md-button-radius));border-width:0}nv-togglebutton[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-togglebutton[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);font-size:var(--button-lg-font-size);padding-top:calc(var(--togglegroup-lg-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-lg-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-lg-button-radius));border-width:0}nv-togglebutton[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-togglebutton[emphasis=high]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-togglebutton[emphasis=high]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-togglebutton[emphasis=high]:active{background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-togglebutton[emphasis=high]:focus,nv-togglebutton[emphasis=high]:focus-within{outline:none}nv-togglebutton[emphasis=high]:focus-visible,nv-togglebutton[emphasis=high]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-togglebutton[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-togglebutton[emphasis=high][active]:not([active=false]){background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-togglebutton[emphasis=low]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-togglebutton[emphasis=low]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-togglebutton[emphasis=low]:active{background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-togglebutton[emphasis=low]:focus,nv-togglebutton[emphasis=low]:focus-within{outline:none}nv-togglebutton[emphasis=low]:focus-visible,nv-togglebutton[emphasis=low]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-togglebutton[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-togglebutton[emphasis=low][active]:not([active=false]),nv-togglebutton[emphasis=low]:active{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}";
|
|
8
7
|
const NvTogglebuttonStyle0 = nvTogglebuttonCss;
|
|
@@ -48,7 +47,7 @@ const NvTogglebutton = class {
|
|
|
48
47
|
/****************************************************************************/
|
|
49
48
|
//#region RENDER
|
|
50
49
|
render() {
|
|
51
|
-
return (index.h(index.Host, { key: '
|
|
50
|
+
return (index.h(index.Host, { key: 'cb15a84c7e7cc27a80773613f31b98168eee8475', role: "button", tabindex: "0", "aria-pressed": String(this.active), onClick: this.handleClick }, index.h("slot", { key: '32d6b9394088d88c4671fb7809ad6aa85b240fff' })));
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
53
|
NvTogglebutton.style = NvTogglebuttonStyle0;
|
package/dist/cjs/{nv-togglebuttongroup.entry-DTadjqMQ.js → nv-togglebuttongroup.entry-BYO58vql.js}
RENAMED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('react-dom');
|
|
6
5
|
|
|
7
6
|
const nvTogglebuttongroupCss = "nv-togglebuttongroup{display:flex;gap:var(--togglegroup-lg-gap);border-radius:var(--togglegroup-lg-radius);width:fit-content;padding:var(--togglegroup-lg-gap)}nv-togglebuttongroup[emphasis=high]{border:1px solid var(--components-togglegroup-high-border)}nv-togglebuttongroup[emphasis=low]{border:1px solid var(--components-togglegroup-low-border)}nv-togglebuttongroup[size=xs]{padding:calc(var(--togglegroup-xs-padding) - 1px);gap:var(--togglegroup-xs-gap);border-radius:var(--togglegroup-xs-radius)}nv-togglebuttongroup[size=sm]{padding:calc(var(--togglegroup-sm-padding) - 1px);gap:var(--togglegroup-sm-gap);border-radius:var(--togglegroup-sm-radius)}nv-togglebuttongroup[size=md]{padding:calc(var(--togglegroup-md-padding) - 1px);gap:var(--togglegroup-md-gap);border-radius:var(--togglegroup-md-radius)}nv-togglebuttongroup[size=lg]{padding:calc(var(--togglegroup-lg-padding) - 1px);gap:var(--togglegroup-lg-gap);border-radius:var(--togglegroup-lg-radius)}";
|
|
8
7
|
const NvTogglebuttongroupStyle0 = nvTogglebuttongroupCss;
|
|
@@ -156,7 +155,7 @@ const NvTogglebuttongroup = class {
|
|
|
156
155
|
/****************************************************************************/
|
|
157
156
|
//#region RENDER
|
|
158
157
|
render() {
|
|
159
|
-
return (index.h(index.Host, { key: '
|
|
158
|
+
return (index.h(index.Host, { key: 'ce185699fabd71bb5c22e5a0d73df88067acb9d6' }, index.h("slot", { key: 'a1e375fb1e8660f3fdb75d96f18db20735a3a64d' })));
|
|
160
159
|
}
|
|
161
160
|
get el() { return index.getElement(this); }
|
|
162
161
|
static get watchers() { return {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CKAZvszR.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('react-dom');
|
|
6
5
|
|
|
7
6
|
const nvTooltipCss = "nv-tooltip{display:inline-block;position:relative;user-select:none}nv-tooltip:has([fluid]:not([fluid=false])){display:block}nv-tooltip nv-popover>[data-scope=popover]{background:var(--components-tooltip-background);color:var(--components-tooltip-text);font-weight:var(--font-weight-medium-emphasis);padding:var(--tooltip-padding-y) var(--tooltip-padding-x);font-size:var(--tooltip-font-size);border-radius:var(--tooltip-radius);border:none;box-shadow:0px var(--shadow-y-axis-lg-1) var(--shadow-blur-lg-1) var(--shadow-spread-lg-1) var(--shadow-color-opacity-1), 0px var(--shadow-y-axis-lg-2) var(--shadow-blur-lg-2) var(--shadow-spread-lg-2) var(--shadow-color-opacity-2)}nv-tooltip nv-popover>[data-scope=popover] [data-scope=arrow]{background:var(--components-tooltip-background);box-shadow:none;border:none}";
|
|
8
7
|
const NvTooltipStyle0 = nvTooltipCss;
|
|
@@ -46,7 +45,7 @@ const NvTooltip = class {
|
|
|
46
45
|
/****************************************************************************/
|
|
47
46
|
//#region RENDER
|
|
48
47
|
render() {
|
|
49
|
-
return (index.h(index.Host, { key: '
|
|
48
|
+
return (index.h(index.Host, { key: 'e0b68e5ade824e2b0f9c5e5cac140349412c919d' }, index.h("slot", { key: 'd61a58d034818fdba87b4ab17ce903bbb13a47ff' }), index.h("nv-popover", { key: '408df675045f95adf270025f83285b2e125873c5', triggerMode: "hover", hasArrow: true, placement: this.placement, strategy: this.strategy, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, index.h("p", { key: 'e4f860f09f5e5ef83b5e704c271781f41a643e59', slot: "content" }, this.message), index.h("slot", { key: '2e2e4dcae68651d734696e718c59389f712562df', name: "content" }))));
|
|
50
49
|
}
|
|
51
50
|
get el() { return index.getElement(this); }
|
|
52
51
|
};
|
|
@@ -36,7 +36,6 @@ import { NvLoader as NvLoaderElement, defineCustomElement as defineNvLoader } fr
|
|
|
36
36
|
import { NvMenu as NvMenuElement, defineCustomElement as defineNvMenu } from "@nova-design-system/nova-webcomponents/dist/components/nv-menu.js";
|
|
37
37
|
import { NvMenuitem as NvMenuitemElement, defineCustomElement as defineNvMenuitem } from "@nova-design-system/nova-webcomponents/dist/components/nv-menuitem.js";
|
|
38
38
|
import { NvNotification as NvNotificationElement, defineCustomElement as defineNvNotification } from "@nova-design-system/nova-webcomponents/dist/components/nv-notification.js";
|
|
39
|
-
import { NvNotificationcontainer as NvNotificationcontainerElement, defineCustomElement as defineNvNotificationcontainer } from "@nova-design-system/nova-webcomponents/dist/components/nv-notificationcontainer.js";
|
|
40
39
|
import { NvPopover as NvPopoverElement, defineCustomElement as defineNvPopover } from "@nova-design-system/nova-webcomponents/dist/components/nv-popover.js";
|
|
41
40
|
import { NvRow as NvRowElement, defineCustomElement as defineNvRow } from "@nova-design-system/nova-webcomponents/dist/components/nv-row.js";
|
|
42
41
|
import { NvStack as NvStackElement, defineCustomElement as defineNvStack } from "@nova-design-system/nova-webcomponents/dist/components/nv-stack.js";
|
|
@@ -335,13 +334,6 @@ export const NvNotification = createComponent({
|
|
|
335
334
|
events: { onHiddenChanged: 'hiddenChanged' },
|
|
336
335
|
defineCustomElement: defineNvNotification
|
|
337
336
|
});
|
|
338
|
-
export const NvNotificationcontainer = createComponent({
|
|
339
|
-
tagName: 'nv-notificationcontainer',
|
|
340
|
-
elementClass: NvNotificationcontainerElement,
|
|
341
|
-
react: React,
|
|
342
|
-
events: {},
|
|
343
|
-
defineCustomElement: defineNvNotificationcontainer
|
|
344
|
-
});
|
|
345
337
|
export const NvPopover = createComponent({
|
|
346
338
|
tagName: 'nv-popover',
|
|
347
339
|
elementClass: NvPopoverElement,
|
|
@@ -658,18 +658,11 @@ export const NvNotification = createComponent({
|
|
|
658
658
|
message: 'message',
|
|
659
659
|
icon: 'icon',
|
|
660
660
|
dismissible: 'dismissible',
|
|
661
|
-
hidden: 'hidden'
|
|
662
|
-
initiallyHidden: 'initially-hidden'
|
|
661
|
+
hidden: 'hidden'
|
|
663
662
|
},
|
|
664
663
|
hydrateModule: import('@nova-design-system/nova-webcomponents/hydrate'),
|
|
665
664
|
serializeShadowRoot
|
|
666
665
|
});
|
|
667
|
-
export const NvNotificationcontainer = createComponent({
|
|
668
|
-
tagName: 'nv-notificationcontainer',
|
|
669
|
-
properties: { position: 'position' },
|
|
670
|
-
hydrateModule: import('@nova-design-system/nova-webcomponents/hydrate'),
|
|
671
|
-
serializeShadowRoot
|
|
672
|
-
});
|
|
673
666
|
export const NvPopover = createComponent({
|
|
674
667
|
tagName: 'nv-popover',
|
|
675
668
|
properties: {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export * from './generated/components';
|
|
2
2
|
export * from '@nova-design-system/nova-webcomponents/constants';
|
|
3
3
|
export { defineCustomElements } from '@nova-design-system/nova-webcomponents/loader';
|
|
4
|
-
export { useNotifications, NotificationProvider, } from './providers/NotificationProvider';
|
|
@@ -36,7 +36,6 @@ import { NvLoader as NvLoaderElement } from "@nova-design-system/nova-webcompone
|
|
|
36
36
|
import { NvMenu as NvMenuElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-menu.js";
|
|
37
37
|
import { NvMenuitem as NvMenuitemElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-menuitem.js";
|
|
38
38
|
import { NvNotification as NvNotificationElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-notification.js";
|
|
39
|
-
import { NvNotificationcontainer as NvNotificationcontainerElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-notificationcontainer.js";
|
|
40
39
|
import { NvPopover as NvPopoverElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-popover.js";
|
|
41
40
|
import { NvRow as NvRowElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-row.js";
|
|
42
41
|
import { NvStack as NvStackElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-stack.js";
|
|
@@ -211,8 +210,6 @@ export type NvNotificationEvents = {
|
|
|
211
210
|
onHiddenChanged: EventName<CustomEvent<boolean>>;
|
|
212
211
|
};
|
|
213
212
|
export declare const NvNotification: StencilReactComponent<NvNotificationElement, NvNotificationEvents>;
|
|
214
|
-
export type NvNotificationcontainerEvents = NonNullable<unknown>;
|
|
215
|
-
export declare const NvNotificationcontainer: StencilReactComponent<NvNotificationcontainerElement, NvNotificationcontainerEvents>;
|
|
216
213
|
export type NvPopoverEvents = {
|
|
217
214
|
onOpenChanged: EventName<CustomEvent<boolean>>;
|
|
218
215
|
};
|
|
@@ -36,7 +36,6 @@ import { NvLoader as NvLoaderElement } from "@nova-design-system/nova-webcompone
|
|
|
36
36
|
import { NvMenu as NvMenuElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-menu.js";
|
|
37
37
|
import { NvMenuitem as NvMenuitemElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-menuitem.js";
|
|
38
38
|
import { NvNotification as NvNotificationElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-notification.js";
|
|
39
|
-
import { NvNotificationcontainer as NvNotificationcontainerElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-notificationcontainer.js";
|
|
40
39
|
import { NvPopover as NvPopoverElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-popover.js";
|
|
41
40
|
import { NvRow as NvRowElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-row.js";
|
|
42
41
|
import { NvStack as NvStackElement } from "@nova-design-system/nova-webcomponents/dist/components/nv-stack.js";
|
|
@@ -213,8 +212,6 @@ export type NvNotificationEvents = {
|
|
|
213
212
|
onHiddenChanged: EventName<CustomEvent<boolean>>;
|
|
214
213
|
};
|
|
215
214
|
export declare const NvNotification: StencilReactComponent<NvNotificationElement, NvNotificationEvents>;
|
|
216
|
-
export type NvNotificationcontainerEvents = NonNullable<unknown>;
|
|
217
|
-
export declare const NvNotificationcontainer: StencilReactComponent<NvNotificationcontainerElement, NvNotificationcontainerEvents>;
|
|
218
215
|
export type NvPopoverEvents = {
|
|
219
216
|
onOpenChanged: EventName<CustomEvent<boolean>>;
|
|
220
217
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export * from './generated/components';
|
|
2
2
|
export * from '@nova-design-system/nova-webcomponents/constants';
|
|
3
3
|
export { defineCustomElements } from '@nova-design-system/nova-webcomponents/loader';
|
|
4
|
-
export { useNotifications, NotificationProvider, type NotificationOptions, type NotificationContextValue, type NotificationProviderProps, type Notification, } from './providers/NotificationProvider';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nova-design-system/nova-react",
|
|
3
|
-
"version": "3.14.0
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"description": "Nova is a design system created by Elia Group to empower creators to efficiently build solutions that people love to use.",
|
|
5
5
|
"author": "Elia Group",
|
|
6
6
|
"homepage": "https://nova.eliagroup.io",
|
|
@@ -27,10 +27,7 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "npm run build:cjs && npm run tsc",
|
|
29
29
|
"build:cjs": "rollup -c",
|
|
30
|
-
"build:watch": "npm run build:cjs:watch & npm run tsc:watch",
|
|
31
|
-
"build:cjs:watch": "rollup -c --watch",
|
|
32
30
|
"tsc": "tsc -p . --outDir ./dist --declarationDir ./dist/types --declaration true",
|
|
33
|
-
"tsc:watch": "tsc -p . --outDir ./dist --declarationDir ./dist/types --declaration true --watch",
|
|
34
31
|
"storybook": "storybook dev -p 6006",
|
|
35
32
|
"storybook.build": "storybook build -o ../../storybook-static/react",
|
|
36
33
|
"clean": "rimraf dist lib/generated",
|