@nova-design-system/nova-react 3.19.0 → 3.21.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 +3 -20
- package/dist/cjs/generated/components.server.js +14 -2
- package/dist/cjs/{index-C12eD0Qt.js → index-yxDlFA78.js} +670 -346
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/{nv-accordion-item.entry-99OJUl7m.js → nv-accordion-item.entry-5DF2ffDE.js} +1 -1
- package/dist/cjs/{nv-accordion.entry-D8jaknF9.js → nv-accordion.entry-CPB1HBT1.js} +1 -1
- package/dist/cjs/{nv-alert.entry-D_uvQxc9.js → nv-alert.entry-jPxt1obA.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-B2zfDM3w.js → nv-avatar.entry-zmnREEN-.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-Fnq2K2Ul.js → nv-badge_2.entry-DtkQx_M9.js} +1 -1
- package/dist/cjs/{nv-breadcrumb.entry-CEN2iYUQ.js → nv-breadcrumb.entry-DHAe5FxQ.js} +1 -1
- package/dist/cjs/{nv-breadcrumbs.entry-Bq8qINNk.js → nv-breadcrumbs.entry-C7XepUqF.js} +1 -1
- package/dist/cjs/nv-button.entry-Dg1knj3Y.js +164 -0
- package/dist/cjs/{nv-buttongroup.entry-CbTXVSWL.js → nv-buttongroup.entry-Dlim9p8N.js} +1 -1
- package/dist/cjs/{nv-calendar.entry-DNkXS4ll.js → nv-calendar.entry-rL5_GdQg.js} +1 -1
- package/dist/cjs/{nv-col.entry-Dlrdqper.js → nv-col.entry-CnbFx7h1.js} +1 -1
- package/dist/cjs/{nv-datagrid.entry-Z5GHfOvp.js → nv-datagrid.entry-CjUfR4ha.js} +3 -3
- package/dist/cjs/{nv-datagridcolumn.entry-DvSFVguN.js → nv-datagridcolumn.entry-BiuYIp4q.js} +1 -1
- package/dist/cjs/{nv-dialog.entry-BV6QBtx2.js → nv-dialog.entry-fDywe5i2.js} +2 -2
- package/dist/cjs/{nv-dialogfooter_2.entry-Ci1C_E-2.js → nv-dialogfooter_2.entry-CckfZ_QW.js} +1 -1
- package/dist/cjs/{nv-fieldcheckbox.entry-BD9ETFVV.js → nv-fieldcheckbox.entry-WmfLxGad.js} +1 -1
- package/dist/cjs/{nv-fielddate.entry-C06n2Hri.js → nv-fielddate.entry-GLGb7tzu.js} +1 -1
- package/dist/cjs/{nv-fielddaterange.entry-DFlaA4gv.js → nv-fielddaterange.entry-C8gXNY2P.js} +1 -1
- package/dist/cjs/{nv-fielddropdown.entry-ONwdJHOm.js → nv-fielddropdown.entry-BX1V8Uef.js} +1 -1
- package/dist/cjs/{nv-fielddropdownitem.entry-CDKQtEra.js → nv-fielddropdownitem.entry-BMVFbA1v.js} +1 -1
- package/dist/cjs/{nv-fieldmultiselect.entry-BHJC59Mw.js → nv-fieldmultiselect.entry-BuV-qWbu.js} +1 -1
- package/dist/cjs/{nv-fieldnumber.entry-CmL1LPom.js → nv-fieldnumber.entry-qM1ct5SM.js} +25 -8
- package/dist/cjs/{nv-fieldpassword.entry-Bqbf_LJJ.js → nv-fieldpassword.entry-BnGWErFQ.js} +1 -1
- package/dist/cjs/{nv-fieldradio.entry-RzSCysif.js → nv-fieldradio.entry-EliQYldW.js} +1 -1
- package/dist/cjs/{nv-fieldselect.entry-COTE8Ntn.js → nv-fieldselect.entry-BfPVPmaZ.js} +1 -1
- package/dist/cjs/{nv-fieldslider.entry-BVfmpUhc.js → nv-fieldslider.entry-DBPpL94x.js} +4 -2
- package/dist/cjs/{nv-fieldtext.entry-DO0lmw9C.js → nv-fieldtext.entry-BnabKYgq.js} +1 -1
- package/dist/cjs/{nv-fieldtextarea.entry-CzVq8gjw.js → nv-fieldtextarea.entry-HaELAnJb.js} +1 -1
- package/dist/cjs/{nv-fieldtime.entry-CRNYbeMY.js → nv-fieldtime.entry-CWQM7fza.js} +1 -1
- package/dist/cjs/nv-icon.entry-B5cWNyvf.js +80 -0
- package/dist/cjs/{nv-iconbutton_2.entry-0lnnCk0B.js → nv-iconbutton_2.entry-CP1o9IVZ.js} +7 -2
- package/dist/cjs/{nv-menu.entry-BjXa70qP.js → nv-menu.entry-wMwI_sZ3.js} +1 -1
- package/dist/cjs/{nv-menuitem.entry-CSPwpUWz.js → nv-menuitem.entry-C53TrB0_.js} +1 -1
- package/dist/cjs/{nv-notification.entry-BYHTrzUz.js → nv-notification.entry-BPyEusqt.js} +1 -1
- package/dist/cjs/{nv-notificationcontainer.entry-BBjrL7gt.js → nv-notificationcontainer.entry-MRIJURIS.js} +1 -1
- package/dist/cjs/{nv-popover.entry-J_M8_rLL.js → nv-popover.entry-fj50OLMu.js} +1 -1
- package/dist/cjs/{nv-row.entry-CmOypCPp.js → nv-row.entry-T0OlcSij.js} +1 -1
- package/dist/cjs/{nv-split.entry-BqBytQZn.js → nv-split.entry-DlI7I6Tb.js} +1 -1
- package/dist/cjs/{nv-stack.entry-BKPf62wy.js → nv-stack.entry-991A3rOk.js} +1 -1
- package/dist/cjs/{nv-table.entry-DSL_jd5Y.js → nv-table.entry-ClSU3-cR.js} +1 -1
- package/dist/cjs/nv-tableheader.entry-DzvbPDBN.js +75 -0
- package/dist/cjs/{nv-toggle.entry-DbQQdp5m.js → nv-toggle.entry-Dq5hAoVB.js} +3 -3
- package/dist/cjs/nv-togglebutton.entry-DI8HQ5Ou.js +56 -0
- package/dist/cjs/{nv-togglebuttongroup.entry-Bl43CVZN.js → nv-togglebuttongroup.entry-DzGOSBF7.js} +2 -2
- package/dist/cjs/{nv-tooltip.entry-CV841nfI.js → nv-tooltip.entry-CF0-gdZL.js} +2 -2
- package/dist/components/{NvDatatable.js → NvDatatable/NvDatatable.js} +89 -32
- package/dist/components/NvDatatable/index.js +3 -0
- package/dist/components/NvDatatable/types.js +1 -0
- package/dist/components/NvDatatable/utils.js +5 -0
- package/dist/generated/components.js +8 -0
- package/dist/generated/components.server.js +13 -2
- package/dist/providers/NotificationProvider.js +27 -0
- package/dist/types/components/NvDatatable/NvDatatable.d.ts +7 -0
- package/dist/types/components/NvDatatable/index.d.ts +3 -0
- package/dist/types/components/{NvDatatable.d.ts → NvDatatable/types.d.ts} +37 -20
- package/dist/types/components/NvDatatable/utils.d.ts +2 -0
- package/dist/types/generated/components.d.ts +6 -1
- package/dist/types/generated/components.server.d.ts +6 -1
- package/dist/types/providers/NotificationProvider.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/nv-button.entry-CmpagMPP.js +0 -159
- package/dist/cjs/nv-icon.entry-FoRJzCHm.js +0 -80
- package/dist/cjs/nv-togglebutton.entry-DNG6SFTU.js +0 -56
package/README.md
CHANGED
|
@@ -2,26 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
**Nova Components React** provides an easy way to use [Nova’s native Web Components](https://www.npmjs.com/package/@nova-design-system/nova-webcomponents) within your React applications.
|
|
4
4
|
|
|
5
|
-
- [Nova Components React](#nova-components-react)
|
|
6
|
-
- [Key Features](#key-features)
|
|
7
|
-
- [Installation](#installation)
|
|
8
|
-
- [Setting up Tailwind](#setting-up-tailwind)
|
|
9
|
-
- [About Tailwind and the Nova Plugin](#about-tailwind-and-the-nova-plugin)
|
|
10
|
-
- [1. Install Tailwind CSS and the Vite Plugin](#1-install-tailwind-css-and-the-vite-plugin)
|
|
11
|
-
- [2. Configure the Vite Plugin](#2-configure-the-vite-plugin)
|
|
12
|
-
- [3. Create `tailwind.config.ts`](#3-create-tailwindconfigts)
|
|
13
|
-
- [4. Configure Tailwind and Nova Plugin in `index.css`](#4-configure-tailwind-and-nova-plugin-in-indexcss)
|
|
14
|
-
- [5. Include the Nova Tokens (Spark or Ocean)](#5-include-the-nova-tokens-spark-or-ocean)
|
|
15
|
-
- [6. Use Nova Components with Tailwind Utilities](#6-use-nova-components-with-tailwind-utilities)
|
|
16
|
-
- [7. Setup the Nova Font](#7-setup-the-nova-font)
|
|
17
|
-
- [Creating Your Own Style Components with Tailwind](#creating-your-own-style-components-with-tailwind)
|
|
18
|
-
- [Nova Font Pro Integration](#nova-font-pro-integration)
|
|
19
|
-
- [Option 1: Import in Global CSS (Recommended)](#option-1-import-in-global-css-recommended)
|
|
20
|
-
- [Option 2: HTML Integration](#option-2-html-integration)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
5
|
## Key Features
|
|
26
6
|
|
|
27
7
|
- **Lightweight Integration**: Leverage Nova Web Components with minimal configuration in React.
|
|
@@ -35,6 +15,9 @@
|
|
|
35
15
|
|
|
36
16
|
Install the necessary packages using the package manager of your choice:
|
|
37
17
|
|
|
18
|
+
> [!IMPORTANT]
|
|
19
|
+
> If you want to set it up in NextJS, please refer to the [NextJS Integration Guide](/docs/guides-next-js-integration--docs).
|
|
20
|
+
|
|
38
21
|
```bash
|
|
39
22
|
npm install @nova-design-system/nova-webcomponents @nova-design-system/nova-base @nova-design-system/nova-react
|
|
40
23
|
```
|
|
@@ -101,7 +101,8 @@ const NvButton = ssr.createComponent({
|
|
|
101
101
|
disabled: 'disabled',
|
|
102
102
|
fluid: 'fluid',
|
|
103
103
|
type: 'type',
|
|
104
|
-
form: 'form'
|
|
104
|
+
form: 'form',
|
|
105
|
+
disableTabindex: 'disable-tabindex'
|
|
105
106
|
},
|
|
106
107
|
hydrateModule: import('@nova-design-system/nova-webcomponents/hydrate'),
|
|
107
108
|
serializeShadowRoot
|
|
@@ -615,7 +616,8 @@ const NvIconbutton = ssr.createComponent({
|
|
|
615
616
|
active: 'active',
|
|
616
617
|
name: 'name',
|
|
617
618
|
type: 'type',
|
|
618
|
-
shape: 'shape'
|
|
619
|
+
shape: 'shape',
|
|
620
|
+
disableTabindex: 'disable-tabindex'
|
|
619
621
|
},
|
|
620
622
|
hydrateModule: import('@nova-design-system/nova-webcomponents/hydrate'),
|
|
621
623
|
serializeShadowRoot
|
|
@@ -726,6 +728,15 @@ const NvTable = ssr.createComponent({
|
|
|
726
728
|
hydrateModule: import('@nova-design-system/nova-webcomponents/hydrate'),
|
|
727
729
|
serializeShadowRoot
|
|
728
730
|
});
|
|
731
|
+
const NvTableheader = ssr.createComponent({
|
|
732
|
+
tagName: 'nv-tableheader',
|
|
733
|
+
properties: {
|
|
734
|
+
sortable: 'sortable',
|
|
735
|
+
sortDirection: 'sort-direction'
|
|
736
|
+
},
|
|
737
|
+
hydrateModule: import('@nova-design-system/nova-webcomponents/hydrate'),
|
|
738
|
+
serializeShadowRoot
|
|
739
|
+
});
|
|
729
740
|
const NvToggle = ssr.createComponent({
|
|
730
741
|
tagName: 'nv-toggle',
|
|
731
742
|
properties: {
|
|
@@ -821,6 +832,7 @@ exports.NvRow = NvRow;
|
|
|
821
832
|
exports.NvSplit = NvSplit;
|
|
822
833
|
exports.NvStack = NvStack;
|
|
823
834
|
exports.NvTable = NvTable;
|
|
835
|
+
exports.NvTableheader = NvTableheader;
|
|
824
836
|
exports.NvToggle = NvToggle;
|
|
825
837
|
exports.NvTogglebutton = NvTogglebutton;
|
|
826
838
|
exports.NvTogglebuttongroup = NvTogglebuttongroup;
|