@nova-design-system/nova-react 3.0.0-beta.42 → 3.0.0-beta.44
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/index-BZCQTWfv.js +26372 -0
- package/dist/cjs/index-B_VOAJzk.js +26373 -0
- package/dist/cjs/index-CDe7nrrW.js +26373 -0
- package/dist/cjs/index-CEWbQ5nh.js +26373 -0
- package/dist/cjs/index-CIcUUomJ.js +26373 -0
- package/dist/cjs/index-CtI3SivD.js +26373 -0
- package/dist/cjs/index-wDACGzKb.js +26373 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/nv-alert.entry-B-P-Fgdo.js +173 -0
- package/dist/cjs/nv-alert.entry-B3NpZh1C.js +173 -0
- package/dist/cjs/nv-alert.entry-BU86GY-d.js +173 -0
- package/dist/cjs/nv-alert.entry-CwZcD170.js +173 -0
- package/dist/cjs/nv-alert.entry-CxSN1zpW.js +173 -0
- package/dist/cjs/nv-alert.entry-DsoqN5tQ.js +173 -0
- package/dist/cjs/nv-alert.entry-xuY-Lvuj.js +173 -0
- package/dist/cjs/nv-avatar.entry-CFgnor0-.js +67 -0
- package/dist/cjs/nv-avatar.entry-DJkpupVT.js +67 -0
- package/dist/cjs/nv-avatar.entry-DKXMQPOz.js +67 -0
- package/dist/cjs/nv-avatar.entry-DWOADxdQ.js +67 -0
- package/dist/cjs/nv-avatar.entry-DjyiGt07.js +67 -0
- package/dist/cjs/nv-avatar.entry-DuN1d3Vy.js +67 -0
- package/dist/cjs/nv-avatar.entry-yyLQEqI7.js +67 -0
- package/dist/cjs/nv-badge_2.entry-BFURAuBQ.js +195 -0
- package/dist/cjs/nv-badge_2.entry-BQXL0ZhP.js +195 -0
- package/dist/cjs/nv-badge_2.entry-CJQWS2xG.js +195 -0
- package/dist/cjs/nv-badge_2.entry-D0jeqYIQ.js +195 -0
- package/dist/cjs/nv-badge_2.entry-DKGHx4c8.js +194 -0
- package/dist/cjs/nv-badge_2.entry-Drgx-565.js +195 -0
- package/dist/cjs/nv-badge_2.entry-im1VnU5f.js +195 -0
- package/dist/cjs/nv-base.entry-9HF044Di.js +71 -0
- package/dist/cjs/nv-base.entry-BmY-1Lne.js +71 -0
- package/dist/cjs/nv-base.entry-BuxI7QmU.js +71 -0
- package/dist/cjs/nv-base.entry-CcaAXjnO.js +71 -0
- package/dist/cjs/nv-base.entry-Ch8ncPl0.js +71 -0
- package/dist/cjs/nv-base.entry-D7gUvPIG.js +71 -0
- package/dist/cjs/nv-base.entry-c723sI4Y.js +71 -0
- package/dist/cjs/nv-breadcrumb.entry-B9rOxsg_.js +45 -0
- package/dist/cjs/nv-breadcrumb.entry-BtM_AHRC.js +45 -0
- package/dist/cjs/nv-breadcrumb.entry-C-xHbSJw.js +45 -0
- package/dist/cjs/nv-breadcrumb.entry-CL9l0Wkr.js +45 -0
- package/dist/cjs/nv-breadcrumb.entry-CxGReUqZ.js +45 -0
- package/dist/cjs/nv-breadcrumb.entry-LYt0sALP.js +45 -0
- package/dist/cjs/nv-breadcrumb.entry-wy-P2BMg.js +45 -0
- package/dist/cjs/nv-breadcrumbs.entry-9LlUycIv.js +20 -0
- package/dist/cjs/nv-breadcrumbs.entry-B7CaTbBe.js +20 -0
- package/dist/cjs/nv-breadcrumbs.entry-BA-TnreZ.js +20 -0
- package/dist/cjs/nv-breadcrumbs.entry-CEmZ3yFi.js +20 -0
- package/dist/cjs/nv-breadcrumbs.entry-De5lsjQf.js +20 -0
- package/dist/cjs/nv-breadcrumbs.entry-_w38BddR.js +20 -0
- package/dist/cjs/nv-breadcrumbs.entry-ubxLcEUH.js +20 -0
- package/dist/cjs/nv-button.entry-B3rEQuGV.js +162 -0
- package/dist/cjs/nv-button.entry-B5-Wf9hh.js +162 -0
- package/dist/cjs/nv-button.entry-CBNfIn-r.js +162 -0
- package/dist/cjs/nv-button.entry-D-DPQDNM.js +162 -0
- package/dist/cjs/nv-button.entry-DHZX7KH4.js +162 -0
- package/dist/cjs/nv-button.entry-DLoECCSK.js +162 -0
- package/dist/cjs/nv-button.entry-Dk6DqHG2.js +162 -0
- package/dist/cjs/nv-calendar.entry-BeCCaAVE.js +1036 -0
- package/dist/cjs/nv-calendar.entry-DNyH8T5e.js +1036 -0
- package/dist/cjs/nv-calendar.entry-DSWhDnEC.js +1036 -0
- package/dist/cjs/nv-calendar.entry-DUHckAh3.js +1036 -0
- package/dist/cjs/nv-calendar.entry-NU1TumeS.js +1036 -0
- package/dist/cjs/nv-calendar.entry-UUE6v4YC.js +1036 -0
- package/dist/cjs/nv-calendar.entry-ZtfR2qOV.js +1036 -0
- package/dist/cjs/nv-col.entry-B5nCHhbO.js +37 -0
- package/dist/cjs/nv-col.entry-Bx1VZSMw.js +37 -0
- package/dist/cjs/nv-col.entry-C400BeEE.js +37 -0
- package/dist/cjs/nv-col.entry-CYjFAVMF.js +37 -0
- package/dist/cjs/nv-col.entry-DDEtfCv-.js +37 -0
- package/dist/cjs/nv-col.entry-DqzImLSJ.js +37 -0
- package/dist/cjs/nv-col.entry-DtYBQEJz.js +37 -0
- package/dist/cjs/nv-datagrid.entry-5VIvkJGL.js +3671 -0
- package/dist/cjs/nv-datagrid.entry-Ba9sfMQp.js +3671 -0
- package/dist/cjs/nv-datagrid.entry-Beehe_Sq.js +3671 -0
- package/dist/cjs/nv-datagrid.entry-CkD_jV75.js +3671 -0
- package/dist/cjs/nv-datagrid.entry-D6p67Pa6.js +3671 -0
- package/dist/cjs/nv-datagrid.entry-DKqScS8N.js +3671 -0
- package/dist/cjs/nv-datagrid.entry-ee865R4b.js +3671 -0
- package/dist/cjs/nv-datagridcolumn.entry-BeGXaBUe.js +18 -0
- package/dist/cjs/nv-datagridcolumn.entry-BodICzof.js +18 -0
- package/dist/cjs/nv-datagridcolumn.entry-C_FtSltZ.js +18 -0
- package/dist/cjs/nv-datagridcolumn.entry-D1cyTR_G.js +18 -0
- package/dist/cjs/nv-datagridcolumn.entry-DRE7BDkk.js +18 -0
- package/dist/cjs/nv-datagridcolumn.entry-Du6-7fjr.js +18 -0
- package/dist/cjs/nv-datagridcolumn.entry-N70Aen6Q.js +18 -0
- package/dist/cjs/nv-dialog.entry-BgHknrOx.js +784 -0
- package/dist/cjs/nv-dialog.entry-C1hg-EG1.js +784 -0
- package/dist/cjs/nv-dialog.entry-COv2do_O.js +784 -0
- package/dist/cjs/nv-dialog.entry-Ck2hU43g.js +784 -0
- package/dist/cjs/nv-dialog.entry-Cl8iLrCo.js +784 -0
- package/dist/cjs/nv-dialog.entry-Cy71tlWz.js +784 -0
- package/dist/cjs/nv-dialog.entry-DdAHZGzm.js +784 -0
- package/dist/cjs/nv-dialogfooter_2.entry-CXvA0O-2.js +134 -0
- package/dist/cjs/nv-dialogfooter_2.entry-Ck6adFfd.js +134 -0
- package/dist/cjs/nv-dialogfooter_2.entry-DHa0SYhR.js +134 -0
- package/dist/cjs/nv-dialogfooter_2.entry-DKvzkpt3.js +134 -0
- package/dist/cjs/nv-dialogfooter_2.entry-D_VuofBe.js +134 -0
- package/dist/cjs/nv-dialogfooter_2.entry-L5tHIb_T.js +134 -0
- package/dist/cjs/nv-dialogfooter_2.entry-kEa1K0n5.js +134 -0
- package/dist/cjs/nv-fieldcheckbox.entry-B4We4zG2.js +137 -0
- package/dist/cjs/nv-fieldcheckbox.entry-BmYyNV4r.js +137 -0
- package/dist/cjs/nv-fieldcheckbox.entry-CBsQsbIA.js +137 -0
- package/dist/cjs/nv-fieldcheckbox.entry-DTIebeJR.js +137 -0
- package/dist/cjs/nv-fieldcheckbox.entry-P--9IAJF.js +137 -0
- package/dist/cjs/nv-fieldcheckbox.entry-dBYg7CBU.js +137 -0
- package/dist/cjs/nv-fieldcheckbox.entry-dxhUZiEg.js +137 -0
- package/dist/cjs/nv-fielddate.entry-B53E-JaI.js +278 -0
- package/dist/cjs/nv-fielddate.entry-Bofdd2rE.js +278 -0
- package/dist/cjs/nv-fielddate.entry-CIo_61Dc.js +278 -0
- package/dist/cjs/nv-fielddate.entry-CekIFTA0.js +278 -0
- package/dist/cjs/nv-fielddate.entry-DgS0X1wI.js +278 -0
- package/dist/cjs/nv-fielddate.entry-Do69eqHA.js +278 -0
- package/dist/cjs/nv-fielddate.entry-NJ6RAqlG.js +278 -0
- package/dist/cjs/nv-fielddaterange.entry-BtPwfRw-.js +355 -0
- package/dist/cjs/nv-fielddaterange.entry-CxaBrZAX.js +355 -0
- package/dist/cjs/nv-fielddaterange.entry-D-6LjhjB.js +355 -0
- package/dist/cjs/nv-fielddaterange.entry-D0fq5KFb.js +355 -0
- package/dist/cjs/nv-fielddaterange.entry-D2dzD3rW.js +355 -0
- package/dist/cjs/nv-fielddaterange.entry-DTLKVIqg.js +355 -0
- package/dist/cjs/nv-fielddaterange.entry-w8WXPDuX.js +355 -0
- package/dist/cjs/nv-fielddropdown.entry-BAaPyGtB.js +361 -0
- package/dist/cjs/nv-fielddropdown.entry-C5kMWmPP.js +361 -0
- package/dist/cjs/nv-fielddropdown.entry-CX2Ycn2i.js +361 -0
- package/dist/cjs/nv-fielddropdown.entry-CZxQlRNa.js +361 -0
- package/dist/cjs/nv-fielddropdown.entry-DVl_Uy5A.js +361 -0
- package/dist/cjs/nv-fielddropdown.entry-akfp1Bcy.js +361 -0
- package/dist/cjs/nv-fielddropdown.entry-hHh_RDC4.js +361 -0
- package/dist/cjs/nv-fielddropdownitem.entry-BscNyhXz.js +68 -0
- package/dist/cjs/nv-fielddropdownitem.entry-CMWgXP_Z.js +68 -0
- package/dist/cjs/nv-fielddropdownitem.entry-CS1Ejbc9.js +68 -0
- package/dist/cjs/nv-fielddropdownitem.entry-CW4WMmSZ.js +68 -0
- package/dist/cjs/nv-fielddropdownitem.entry-CuQqsz4f.js +68 -0
- package/dist/cjs/nv-fielddropdownitem.entry-Dn2HJc1t.js +68 -0
- package/dist/cjs/nv-fielddropdownitem.entry-HK2I5pUG.js +68 -0
- package/dist/cjs/nv-fieldmultiselect.entry-5jdK36m6.js +1060 -0
- package/dist/cjs/nv-fieldmultiselect.entry-6o1yhNI5.js +1060 -0
- package/dist/cjs/nv-fieldmultiselect.entry-BGzYCJuF.js +1060 -0
- package/dist/cjs/nv-fieldmultiselect.entry-BN1ObPi8.js +1060 -0
- package/dist/cjs/nv-fieldmultiselect.entry-CuVEYN0v.js +1060 -0
- package/dist/cjs/nv-fieldmultiselect.entry-DHXJErt4.js +1060 -0
- package/dist/cjs/nv-fieldmultiselect.entry-DycRd14V.js +1060 -0
- package/dist/cjs/nv-fieldnumber.entry-BHhIsjLK.js +126 -0
- package/dist/cjs/nv-fieldnumber.entry-BklKxOFA.js +126 -0
- package/dist/cjs/nv-fieldnumber.entry-C8zJkL24.js +126 -0
- package/dist/cjs/nv-fieldnumber.entry-C9rKWY_M.js +126 -0
- package/dist/cjs/nv-fieldnumber.entry-CEmPQK-3.js +126 -0
- package/dist/cjs/nv-fieldnumber.entry-CLhjFlCj.js +126 -0
- package/dist/cjs/nv-fieldnumber.entry-_UiieYov.js +126 -0
- package/dist/cjs/nv-fieldpassword.entry-7lS0Msfg.js +115 -0
- package/dist/cjs/nv-fieldpassword.entry-B9-QFEsB.js +115 -0
- package/dist/cjs/nv-fieldpassword.entry-BIIoIKH4.js +115 -0
- package/dist/cjs/nv-fieldpassword.entry-BPhQxjsj.js +115 -0
- package/dist/cjs/nv-fieldpassword.entry-C5vG4jlh.js +115 -0
- package/dist/cjs/nv-fieldpassword.entry-C_jsHFJI.js +115 -0
- package/dist/cjs/nv-fieldpassword.entry-DZkGQwM8.js +115 -0
- package/dist/cjs/nv-fieldradio.entry-BgpmbG9E.js +102 -0
- package/dist/cjs/nv-fieldradio.entry-CXR4k3wf.js +102 -0
- package/dist/cjs/nv-fieldradio.entry-CnasQlEx.js +102 -0
- package/dist/cjs/nv-fieldradio.entry-DUDPigQb.js +102 -0
- package/dist/cjs/nv-fieldradio.entry-DiD7Luxv.js +102 -0
- package/dist/cjs/nv-fieldradio.entry-Ili2RVKl.js +102 -0
- package/dist/cjs/nv-fieldradio.entry-aRAaLwpK.js +102 -0
- package/dist/cjs/nv-fieldselect.entry-B94QXSEk.js +365 -0
- package/dist/cjs/nv-fieldselect.entry-BwtEjL08.js +365 -0
- package/dist/cjs/nv-fieldselect.entry-CFDqeR-D.js +365 -0
- package/dist/cjs/nv-fieldselect.entry-CJSu63o5.js +365 -0
- package/dist/cjs/nv-fieldselect.entry-CmN1R9ij.js +365 -0
- package/dist/cjs/nv-fieldselect.entry-CoDfr4ie.js +365 -0
- package/dist/cjs/nv-fieldselect.entry-DgmnHnOR.js +365 -0
- package/dist/cjs/nv-fieldtext.entry-B1TlZWjU.js +119 -0
- package/dist/cjs/nv-fieldtext.entry-BfQrX8ft.js +119 -0
- package/dist/cjs/nv-fieldtext.entry-BrUQu4OD.js +119 -0
- package/dist/cjs/nv-fieldtext.entry-CW6P-R-Q.js +119 -0
- package/dist/cjs/nv-fieldtext.entry-CyLJxDw6.js +119 -0
- package/dist/cjs/nv-fieldtext.entry-DDqDSJp3.js +119 -0
- package/dist/cjs/nv-fieldtext.entry-IeIHa3jf.js +119 -0
- package/dist/cjs/nv-fieldtextarea.entry-D86SKGIN.js +194 -0
- package/dist/cjs/nv-fieldtextarea.entry-DlFdCv_d.js +194 -0
- package/dist/cjs/nv-fieldtextarea.entry-DqzeITCG.js +194 -0
- package/dist/cjs/nv-fieldtextarea.entry-TI-bucN-.js +194 -0
- package/dist/cjs/nv-fieldtextarea.entry-qMX2O8cX.js +194 -0
- package/dist/cjs/nv-fieldtextarea.entry-tTnWQgE4.js +194 -0
- package/dist/cjs/nv-fieldtextarea.entry-v6VpnEuH.js +194 -0
- package/dist/cjs/nv-fieldtime.entry-CPyLyQfR.js +1011 -0
- package/dist/cjs/nv-fieldtime.entry-CYmcHY1D.js +1011 -0
- package/dist/cjs/nv-fieldtime.entry-DGP1X4wF.js +1011 -0
- package/dist/cjs/nv-fieldtime.entry-DLSuRrlr.js +1011 -0
- package/dist/cjs/nv-fieldtime.entry-Zbjbmm7_.js +1011 -0
- package/dist/cjs/nv-fieldtime.entry-eDVRT6te.js +1011 -0
- package/dist/cjs/nv-fieldtime.entry-j-Fliiqj.js +1011 -0
- package/dist/cjs/nv-icon.entry-B0Y3rgBQ.js +79 -0
- package/dist/cjs/nv-icon.entry-B_wtREWb.js +79 -0
- package/dist/cjs/nv-icon.entry-BfRAl2b6.js +79 -0
- package/dist/cjs/nv-icon.entry-CrKTCqY_.js +79 -0
- package/dist/cjs/nv-icon.entry-DRRmcXzh.js +79 -0
- package/dist/cjs/nv-icon.entry-Dlj1ko2i.js +79 -0
- package/dist/cjs/nv-icon.entry-S7WlK_lO.js +79 -0
- package/dist/cjs/nv-iconbutton_2.entry-B02iDUid.js +163 -0
- package/dist/cjs/nv-iconbutton_2.entry-C1Legk9t.js +163 -0
- package/dist/cjs/nv-iconbutton_2.entry-CUiW6MtK.js +163 -0
- package/dist/cjs/nv-iconbutton_2.entry-ClcvupMe.js +163 -0
- package/dist/cjs/nv-iconbutton_2.entry-D8MI5uzP.js +163 -0
- package/dist/cjs/nv-iconbutton_2.entry-D8hZ51H-.js +163 -0
- package/dist/cjs/nv-iconbutton_2.entry-QwaiOoYl.js +163 -0
- package/dist/cjs/nv-menu.entry-BfmYkdYY.js +227 -0
- package/dist/cjs/nv-menu.entry-CT98WIRF.js +227 -0
- package/dist/cjs/nv-menu.entry-CfERF478.js +227 -0
- package/dist/cjs/nv-menu.entry-Ci3I7PDt.js +227 -0
- package/dist/cjs/nv-menu.entry-DtLnsQW-.js +227 -0
- package/dist/cjs/nv-menu.entry-Kz5kGi2w.js +227 -0
- package/dist/cjs/nv-menu.entry-XdjjbAL6.js +227 -0
- package/dist/cjs/nv-menuitem.entry-C8nXPwP0.js +58 -0
- package/dist/cjs/nv-menuitem.entry-C9dsQqqN.js +58 -0
- package/dist/cjs/nv-menuitem.entry-Cedg0TCQ.js +58 -0
- package/dist/cjs/nv-menuitem.entry-CxCLeNsY.js +58 -0
- package/dist/cjs/nv-menuitem.entry-DkIG5z-x.js +58 -0
- package/dist/cjs/nv-menuitem.entry-bPnSDq_9.js +58 -0
- package/dist/cjs/nv-menuitem.entry-sRx1fD0O.js +58 -0
- package/dist/cjs/nv-popover.entry-BGXEOQM6.js +1960 -0
- package/dist/cjs/nv-popover.entry-C57rfYUn.js +1960 -0
- package/dist/cjs/nv-popover.entry-C6HFJJ-m.js +1960 -0
- package/dist/cjs/nv-popover.entry-CiGCCbn9.js +1960 -0
- package/dist/cjs/nv-popover.entry-CjTPZYkq.js +1960 -0
- package/dist/cjs/nv-popover.entry-CtO6pR6l.js +1960 -0
- package/dist/cjs/nv-popover.entry-Mo3DNUH6.js +1960 -0
- package/dist/cjs/nv-row.entry-BEgyuDR-.js +21 -0
- package/dist/cjs/nv-row.entry-BM_EcSp4.js +21 -0
- package/dist/cjs/nv-row.entry-B_7PiJA7.js +21 -0
- package/dist/cjs/nv-row.entry-Ca7LiDAy.js +21 -0
- package/dist/cjs/nv-row.entry-Cy9vd2iY.js +21 -0
- package/dist/cjs/nv-row.entry-DKoNhAcX.js +21 -0
- package/dist/cjs/nv-row.entry-OYGKTXhV.js +21 -0
- package/dist/cjs/nv-stack.entry-BNyPxECg.js +30 -0
- package/dist/cjs/nv-stack.entry-C8ZFDaKn.js +30 -0
- package/dist/cjs/nv-stack.entry-CLMAAbkw.js +30 -0
- package/dist/cjs/nv-stack.entry-DfRRFeEo.js +30 -0
- package/dist/cjs/nv-stack.entry-DiXvhuSS.js +30 -0
- package/dist/cjs/nv-stack.entry-lwhqS230.js +30 -0
- package/dist/cjs/nv-stack.entry-u3NjC31-.js +30 -0
- package/dist/cjs/nv-table.entry-BNy2ALll.js +338 -0
- package/dist/cjs/nv-table.entry-BPazUUGA.js +338 -0
- package/dist/cjs/nv-table.entry-COwgRxqz.js +338 -0
- package/dist/cjs/nv-table.entry-CTo8cqCN.js +338 -0
- package/dist/cjs/nv-table.entry-DzOGLNUx.js +338 -0
- package/dist/cjs/nv-table.entry-mEtRfake.js +338 -0
- package/dist/cjs/nv-table.entry-o525Lfea.js +338 -0
- package/dist/cjs/nv-tablecolumn.entry-BESdQMDh.js +18 -0
- package/dist/cjs/nv-tablecolumn.entry-CuEt5Wgn.js +18 -0
- package/dist/cjs/nv-tablecolumn.entry-D3I1dB1X.js +18 -0
- package/dist/cjs/nv-tablecolumn.entry-DvJF_QTE.js +18 -0
- package/dist/cjs/nv-tablecolumn.entry-DvO0JxdY.js +18 -0
- package/dist/cjs/nv-tablecolumn.entry-L4KLlHFu.js +18 -0
- package/dist/cjs/nv-tablecolumn.entry-vrmt1Y0L.js +18 -0
- package/dist/cjs/nv-toggle.entry-BIclNIeq.js +79 -0
- package/dist/cjs/nv-toggle.entry-Bv0DrF-x.js +79 -0
- package/dist/cjs/nv-toggle.entry-BxKZDHdI.js +79 -0
- package/dist/cjs/nv-toggle.entry-DYhnFucd.js +79 -0
- package/dist/cjs/nv-toggle.entry-PRWy57Ro.js +79 -0
- package/dist/cjs/nv-toggle.entry-fDIAyeVX.js +79 -0
- package/dist/cjs/nv-toggle.entry-yqg7e7Qc.js +79 -0
- package/dist/cjs/nv-tooltip.entry--TVfBopp.js +44 -0
- package/dist/cjs/nv-tooltip.entry-58RCazbO.js +44 -0
- package/dist/cjs/nv-tooltip.entry-BBJNnZmj.js +44 -0
- package/dist/cjs/nv-tooltip.entry-Bnu7xEl6.js +44 -0
- package/dist/cjs/nv-tooltip.entry-BrrSQyMx.js +44 -0
- package/dist/cjs/nv-tooltip.entry-BuSwME_F.js +44 -0
- package/dist/cjs/nv-tooltip.entry-ChQpdQn_.js +44 -0
- package/dist/generated/components.js +2 -2
- package/dist/types/generated/components.d.ts +2 -4
- package/package.json +1 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-B_VOAJzk.js');
|
|
4
|
+
var constants98e2dcc2 = require('./constants-98e2dcc2-C0SBCapP.js');
|
|
5
|
+
require('react');
|
|
6
|
+
|
|
7
|
+
const nvDialogfooterCss = "nv-dialogfooter{display:flex;padding:var(--dialog-footer-padding-top) var(--dialog-footer-padding-x) var(--dialog-footer-padding-bottom) var(--dialog-footer-padding-x);justify-content:flex-end;align-items:flex-end;gap:var(--dialog-footer-gap-y);align-self:stretch}";
|
|
8
|
+
const NvDialogfooterStyle0 = nvDialogfooterCss;
|
|
9
|
+
|
|
10
|
+
const NvDialogfooter = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.dialogCanceled = index.createEvent(this, "dialogCanceled");
|
|
14
|
+
this.dialogPrimaryClicked = index.createEvent(this, "dialogPrimaryClicked");
|
|
15
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
16
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
20
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
21
|
+
}
|
|
22
|
+
this.hasSlot = false;
|
|
23
|
+
/****************************************************************************/
|
|
24
|
+
//#region PROPERTIES
|
|
25
|
+
/**
|
|
26
|
+
* Disables the primary button, preventing user interaction.
|
|
27
|
+
*/
|
|
28
|
+
this.disabled = false;
|
|
29
|
+
/**
|
|
30
|
+
* Controls the visibility of the cancel button. When true, the cancel button is
|
|
31
|
+
* hidden.
|
|
32
|
+
*/
|
|
33
|
+
this.undismissable = false;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the leading icon for the primary button.
|
|
36
|
+
*/
|
|
37
|
+
this.leadingIcon = '';
|
|
38
|
+
/**
|
|
39
|
+
* Sets the trailing icon for the primary button.
|
|
40
|
+
*/
|
|
41
|
+
this.trailingIcon = '';
|
|
42
|
+
/**
|
|
43
|
+
* Sets the danger state for the primary button.
|
|
44
|
+
*/
|
|
45
|
+
this.danger = false;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the label for the cancel button.
|
|
48
|
+
*/
|
|
49
|
+
this.cancelLabel = 'Cancel';
|
|
50
|
+
/**
|
|
51
|
+
* Sets the label for the primary button.
|
|
52
|
+
*/
|
|
53
|
+
this.primaryLabel = 'Primary';
|
|
54
|
+
/**
|
|
55
|
+
* Sets the type of the primary button.
|
|
56
|
+
*/
|
|
57
|
+
this.primaryButtonType = constants98e2dcc2.ButtonType.Button;
|
|
58
|
+
//#endregion EVENTS
|
|
59
|
+
/****************************************************************************/
|
|
60
|
+
//#region METHODS
|
|
61
|
+
/**
|
|
62
|
+
* Handles the primary action when the primary button is clicked.
|
|
63
|
+
* @param {Event} event - The click event.
|
|
64
|
+
*/
|
|
65
|
+
this.handlePrimary = (event) => {
|
|
66
|
+
event.stopPropagation();
|
|
67
|
+
this.dialogPrimaryClicked.emit();
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Handles the cancel action when the cancel button is clicked. This will close the dialog.
|
|
71
|
+
* @param {Event} event - The click event.
|
|
72
|
+
*/
|
|
73
|
+
this.handleCancel = (event) => {
|
|
74
|
+
event.stopPropagation();
|
|
75
|
+
this.dialogCanceled.emit();
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
//#endregion METHODS
|
|
79
|
+
/****************************************************************************/
|
|
80
|
+
//#region LIFECYCLE
|
|
81
|
+
componentWillLoad() {
|
|
82
|
+
// Check if there are any child elements that don't have a slot attribute
|
|
83
|
+
this.hasSlot = Array.from(this.el.childNodes).some(node => {
|
|
84
|
+
return (node.nodeType === Node.ELEMENT_NODE &&
|
|
85
|
+
!node.hasAttribute('slot'));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion LIFECYCLE
|
|
89
|
+
/****************************************************************************/
|
|
90
|
+
//#region RENDER
|
|
91
|
+
render() {
|
|
92
|
+
return (index.h(index.Host, { key: '20d86d12b859505ed088fc21ee04d8ee1d9bbb81' }, !this.hasSlot ? (index.h(index.Fragment, null, !this.undismissable && (index.h("nv-button", { onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), index.h("nv-button", { onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (index.h("nv-icon", { slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (index.h("nv-icon", { slot: "trailing-icon", name: this.trailingIcon, size: "sm" }))))) : (index.h("slot", null))));
|
|
93
|
+
}
|
|
94
|
+
static get formAssociated() { return true; }
|
|
95
|
+
get el() { return index.getElement(this); }
|
|
96
|
+
};
|
|
97
|
+
NvDialogfooter.style = NvDialogfooterStyle0;
|
|
98
|
+
|
|
99
|
+
const nvDialogheaderCss = "nv-dialogheader{padding:var(--dialog-header-padding-top) var(--dialog-header-padding-x) var(--dialog-header-padding-bottom) var(--dialog-header-padding-x);justify-content:space-between;align-items:flex-start;align-self:stretch}nv-dialogheader .heading{color:var(--color-content-high-text);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--font-size-lg);font-style:normal;font-weight:500;line-height:var(--leading-px-6);letter-spacing:var(--letter-spacing-heading-xs)}nv-dialogheader .subheading{color:var(--color-content-low-text);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--font-size-sm);font-style:normal;font-weight:400;line-height:var(--line-height-sm);}";
|
|
100
|
+
const NvDialogheaderStyle0 = nvDialogheaderCss;
|
|
101
|
+
|
|
102
|
+
const NvDialogheader = class {
|
|
103
|
+
constructor(hostRef) {
|
|
104
|
+
index.registerInstance(this, hostRef);
|
|
105
|
+
this.hasSlot = false;
|
|
106
|
+
/****************************************************************************/
|
|
107
|
+
//#region PROPERTIES
|
|
108
|
+
/**
|
|
109
|
+
* Sets the heading text for the dialog.
|
|
110
|
+
*/
|
|
111
|
+
this.heading = 'Dialog Title';
|
|
112
|
+
}
|
|
113
|
+
//#endregion PROPERTIES
|
|
114
|
+
/****************************************************************************/
|
|
115
|
+
//#region LIFECYCLE
|
|
116
|
+
componentWillLoad() {
|
|
117
|
+
// Check if there are any child elements that don't have a slot attribute
|
|
118
|
+
this.hasSlot = Array.from(this.el.childNodes).some(node => {
|
|
119
|
+
return (node.nodeType === Node.ELEMENT_NODE &&
|
|
120
|
+
!node.hasAttribute('slot'));
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
//#endregion LIFECYCLE
|
|
124
|
+
/****************************************************************************/
|
|
125
|
+
//#region RENDER
|
|
126
|
+
render() {
|
|
127
|
+
return (index.h(index.Host, { key: '6840a5af95a0534339bc0682d829c33d7376a79a' }, !this.hasSlot ? (index.h(index.Fragment, null, index.h("div", { class: "heading" }, this.heading), index.h("div", { class: "subheading" }, this.subheading))) : (index.h("slot", null))));
|
|
128
|
+
}
|
|
129
|
+
get el() { return index.getElement(this); }
|
|
130
|
+
};
|
|
131
|
+
NvDialogheader.style = NvDialogheaderStyle0;
|
|
132
|
+
|
|
133
|
+
exports.nv_dialogfooter = NvDialogfooter;
|
|
134
|
+
exports.nv_dialogheader = NvDialogheader;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CEWbQ5nh.js');
|
|
4
|
+
var constants98e2dcc2 = require('./constants-98e2dcc2-C0SBCapP.js');
|
|
5
|
+
require('react');
|
|
6
|
+
|
|
7
|
+
const nvDialogfooterCss = "nv-dialogfooter{display:flex;padding:var(--dialog-footer-padding-top) var(--dialog-footer-padding-x) var(--dialog-footer-padding-bottom) var(--dialog-footer-padding-x);justify-content:flex-end;align-items:flex-end;gap:var(--dialog-footer-gap-y);align-self:stretch}";
|
|
8
|
+
const NvDialogfooterStyle0 = nvDialogfooterCss;
|
|
9
|
+
|
|
10
|
+
const NvDialogfooter = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.dialogCanceled = index.createEvent(this, "dialogCanceled");
|
|
14
|
+
this.dialogPrimaryClicked = index.createEvent(this, "dialogPrimaryClicked");
|
|
15
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
16
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
20
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
21
|
+
}
|
|
22
|
+
this.hasSlot = false;
|
|
23
|
+
/****************************************************************************/
|
|
24
|
+
//#region PROPERTIES
|
|
25
|
+
/**
|
|
26
|
+
* Disables the primary button, preventing user interaction.
|
|
27
|
+
*/
|
|
28
|
+
this.disabled = false;
|
|
29
|
+
/**
|
|
30
|
+
* Controls the visibility of the cancel button. When true, the cancel button is
|
|
31
|
+
* hidden.
|
|
32
|
+
*/
|
|
33
|
+
this.undismissable = false;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the leading icon for the primary button.
|
|
36
|
+
*/
|
|
37
|
+
this.leadingIcon = '';
|
|
38
|
+
/**
|
|
39
|
+
* Sets the trailing icon for the primary button.
|
|
40
|
+
*/
|
|
41
|
+
this.trailingIcon = '';
|
|
42
|
+
/**
|
|
43
|
+
* Sets the danger state for the primary button.
|
|
44
|
+
*/
|
|
45
|
+
this.danger = false;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the label for the cancel button.
|
|
48
|
+
*/
|
|
49
|
+
this.cancelLabel = 'Cancel';
|
|
50
|
+
/**
|
|
51
|
+
* Sets the label for the primary button.
|
|
52
|
+
*/
|
|
53
|
+
this.primaryLabel = 'Primary';
|
|
54
|
+
/**
|
|
55
|
+
* Sets the type of the primary button.
|
|
56
|
+
*/
|
|
57
|
+
this.primaryButtonType = constants98e2dcc2.ButtonType.Button;
|
|
58
|
+
//#endregion EVENTS
|
|
59
|
+
/****************************************************************************/
|
|
60
|
+
//#region METHODS
|
|
61
|
+
/**
|
|
62
|
+
* Handles the primary action when the primary button is clicked.
|
|
63
|
+
* @param {Event} event - The click event.
|
|
64
|
+
*/
|
|
65
|
+
this.handlePrimary = (event) => {
|
|
66
|
+
event.stopPropagation();
|
|
67
|
+
this.dialogPrimaryClicked.emit();
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Handles the cancel action when the cancel button is clicked. This will close the dialog.
|
|
71
|
+
* @param {Event} event - The click event.
|
|
72
|
+
*/
|
|
73
|
+
this.handleCancel = (event) => {
|
|
74
|
+
event.stopPropagation();
|
|
75
|
+
this.dialogCanceled.emit();
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
//#endregion METHODS
|
|
79
|
+
/****************************************************************************/
|
|
80
|
+
//#region LIFECYCLE
|
|
81
|
+
componentWillLoad() {
|
|
82
|
+
// Check if there are any child elements that don't have a slot attribute
|
|
83
|
+
this.hasSlot = Array.from(this.el.childNodes).some(node => {
|
|
84
|
+
return (node.nodeType === Node.ELEMENT_NODE &&
|
|
85
|
+
!node.hasAttribute('slot'));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion LIFECYCLE
|
|
89
|
+
/****************************************************************************/
|
|
90
|
+
//#region RENDER
|
|
91
|
+
render() {
|
|
92
|
+
return (index.h(index.Host, { key: '11bfb772cb942d91363b9636f0baf10d33ce6bbd' }, !this.hasSlot ? (index.h(index.Fragment, null, !this.undismissable && (index.h("nv-button", { onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), index.h("nv-button", { onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (index.h("nv-icon", { slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (index.h("nv-icon", { slot: "trailing-icon", name: this.trailingIcon, size: "sm" }))))) : (index.h("slot", null))));
|
|
93
|
+
}
|
|
94
|
+
static get formAssociated() { return true; }
|
|
95
|
+
get el() { return index.getElement(this); }
|
|
96
|
+
};
|
|
97
|
+
NvDialogfooter.style = NvDialogfooterStyle0;
|
|
98
|
+
|
|
99
|
+
const nvDialogheaderCss = "nv-dialogheader{padding:var(--dialog-header-padding-top) var(--dialog-header-padding-x) var(--dialog-header-padding-bottom) var(--dialog-header-padding-x);justify-content:space-between;align-items:flex-start;align-self:stretch}nv-dialogheader .heading{color:var(--color-content-high-text);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--font-size-lg);font-style:normal;font-weight:500;line-height:var(--leading-px-6);letter-spacing:var(--letter-spacing-heading-xs)}nv-dialogheader .subheading{color:var(--color-content-low-text);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--font-size-sm);font-style:normal;font-weight:400;line-height:var(--line-height-sm);}";
|
|
100
|
+
const NvDialogheaderStyle0 = nvDialogheaderCss;
|
|
101
|
+
|
|
102
|
+
const NvDialogheader = class {
|
|
103
|
+
constructor(hostRef) {
|
|
104
|
+
index.registerInstance(this, hostRef);
|
|
105
|
+
this.hasSlot = false;
|
|
106
|
+
/****************************************************************************/
|
|
107
|
+
//#region PROPERTIES
|
|
108
|
+
/**
|
|
109
|
+
* Sets the heading text for the dialog.
|
|
110
|
+
*/
|
|
111
|
+
this.heading = 'Dialog Title';
|
|
112
|
+
}
|
|
113
|
+
//#endregion PROPERTIES
|
|
114
|
+
/****************************************************************************/
|
|
115
|
+
//#region LIFECYCLE
|
|
116
|
+
componentWillLoad() {
|
|
117
|
+
// Check if there are any child elements that don't have a slot attribute
|
|
118
|
+
this.hasSlot = Array.from(this.el.childNodes).some(node => {
|
|
119
|
+
return (node.nodeType === Node.ELEMENT_NODE &&
|
|
120
|
+
!node.hasAttribute('slot'));
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
//#endregion LIFECYCLE
|
|
124
|
+
/****************************************************************************/
|
|
125
|
+
//#region RENDER
|
|
126
|
+
render() {
|
|
127
|
+
return (index.h(index.Host, { key: '7658d8f0517e63b3688b938108e8c3a6df788a77' }, !this.hasSlot ? (index.h(index.Fragment, null, index.h("div", { class: "heading" }, this.heading), index.h("div", { class: "subheading" }, this.subheading))) : (index.h("slot", null))));
|
|
128
|
+
}
|
|
129
|
+
get el() { return index.getElement(this); }
|
|
130
|
+
};
|
|
131
|
+
NvDialogheader.style = NvDialogheaderStyle0;
|
|
132
|
+
|
|
133
|
+
exports.nv_dialogfooter = NvDialogfooter;
|
|
134
|
+
exports.nv_dialogheader = NvDialogheader;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-B_VOAJzk.js');
|
|
4
|
+
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
+
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
+
require('react');
|
|
7
|
+
|
|
8
|
+
const nvFieldcheckboxCss = "nv-fieldcheckbox{--nv-fieldcheckbox-border-default:var(\n --components-form-field-border-default\n );--nv-fieldcheckbox-border-hover:var(--components-form-field-border-hover);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-default);--nv-fieldcheckbox-background-default:var(\n --components-form-field-background-default\n );--nv-fieldcheckbox-background-checked:var(\n --components-form-field-background-checked\n );--nv-fieldcheckbox-background-disabled:var(\n --components-form-field-background-disabled\n );--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-brand);--nv-fieldcheckbox-color-checked:var(\n --components-form-shape-foreground-default\n );--nv-fieldcheckbox-color-disabled:var(\n --components-form-shape-foreground-disabled\n );--nv-fieldcheckbox-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-fieldcheckbox:not([disabled],[readonly]) input,nv-fieldcheckbox:not([disabled],[readonly]) label{cursor:pointer}nv-fieldcheckbox.error>.input-container{--nv-fieldcheckbox-border-default:var(--components-form-field-border-error);--nv-fieldcheckbox-border-hover:var(--nv-fieldcheckbox-border-default);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-error);--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-destructive);--nv-fieldcheckbox-color-disabled:var(\n --components-form-shape-foreground-disabled-error\n );--nv-fieldcheckbox-background-checked:var(\n --components-form-field-background-error\n );--nv-fieldcheckbox-outline-color:var(--color-focus-destructive)}nv-fieldcheckbox.label-placement-before{flex-direction:row-reverse}nv-fieldcheckbox[disabled]:not([disabled=false]){opacity:0.5}nv-fieldcheckbox>.input-container{position:relative;color:var(--nv-fieldcheckbox-color-checked)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--nv-fieldcheckbox-color-disabled)}nv-fieldcheckbox>.input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-checkbox-size);height:var(--form-checkbox-size);flex-direction:column;align-items:flex-start;border-radius:var(--form-checkbox-radius);border-width:var(--form-checkbox-border-width);border-style:solid;border-color:var(--nv-fieldcheckbox-border-default);background:var(--nv-fieldcheckbox-background-default)}nv-fieldcheckbox>.input-container input[type=checkbox]:hover{border-color:var(--nv-fieldcheckbox-border-hover)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus{border-color:var(--nv-fieldcheckbox-border-focus)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus,nv-fieldcheckbox>.input-container input[type=checkbox]:focus-within{outline:none}nv-fieldcheckbox>.input-container input[type=checkbox]:focus-visible,nv-fieldcheckbox>.input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldcheckbox-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldcheckbox>.input-container input[type=checkbox]:checked,nv-fieldcheckbox>.input-container input[type=checkbox]:indeterminate{background:var(--nv-fieldcheckbox-background-checked);border-color:var(--nv-fieldcheckbox-background-checked)}nv-fieldcheckbox>.input-container input[type=checkbox]:disabled:not([readonly]){background:var(--nv-fieldcheckbox-background-disabled);border-color:var(--nv-fieldcheckbox-border-default)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container .icon{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}nv-fieldcheckbox>.input-container .icon svg{width:var(--form-checkbox-icon-size);height:var(--form-checkbox-icon-size);fill:none;stroke:currentcolor;stroke-width:var(--form-checkbox-icon-stroke);flex-shrink:0}nv-fieldcheckbox>.text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}nv-fieldcheckbox>.text-container 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:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldcheckbox>.text-container .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:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldcheckbox>.text-container .error-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:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}";
|
|
9
|
+
const NvFieldcheckboxStyle0 = nvFieldcheckboxCss;
|
|
10
|
+
|
|
11
|
+
const NvFieldcheckbox = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
+
/**
|
|
16
|
+
* When true, the label will be placed before the checkbox.
|
|
17
|
+
* @deprecated Use `labelPlacement = end` instead.
|
|
18
|
+
* */
|
|
19
|
+
this.labelBefore = false;
|
|
20
|
+
//#endregion DEPRECATED
|
|
21
|
+
/****************************************************************************/
|
|
22
|
+
//#region PROPERTIES
|
|
23
|
+
/**
|
|
24
|
+
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
+
* the associated label. If no ID is provided, a random one will be
|
|
26
|
+
* automatically generated to ensure unique identification, facilitating
|
|
27
|
+
* proper label association and accessibility.
|
|
28
|
+
*/
|
|
29
|
+
this.inputId = v4A79185f4.v4();
|
|
30
|
+
/**
|
|
31
|
+
* Hides the label visually while still keeping it available for screen
|
|
32
|
+
* readers.
|
|
33
|
+
*/
|
|
34
|
+
this.hideLabel = false;
|
|
35
|
+
/**
|
|
36
|
+
* Signals that there is an error associated with the checkbox, which can
|
|
37
|
+
* trigger visual cues.
|
|
38
|
+
* @validator error
|
|
39
|
+
*/
|
|
40
|
+
this.error = false;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether the checkbox is checked or not.
|
|
43
|
+
*/
|
|
44
|
+
this.checked = false;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether the checkbox is in an indeterminate state, typically used
|
|
47
|
+
* for hierarchical checkboxes.
|
|
48
|
+
*/
|
|
49
|
+
this.indeterminate = false;
|
|
50
|
+
/**
|
|
51
|
+
* Disables the checkbox, preventing user interaction.
|
|
52
|
+
*/
|
|
53
|
+
this.disabled = false;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the checkbox to read-only, preventing user changes but still allowing
|
|
56
|
+
* focus and selection of text.
|
|
57
|
+
*/
|
|
58
|
+
this.readonly = false;
|
|
59
|
+
/**
|
|
60
|
+
* Marks the checkbox as required, indicating that it must be checked for
|
|
61
|
+
* form submission.
|
|
62
|
+
*/
|
|
63
|
+
this.required = false;
|
|
64
|
+
/**
|
|
65
|
+
* Applies focus to the input field as soon as the component is mounted. This
|
|
66
|
+
* is equivalent to setting the native autofocus attribute on an <input>
|
|
67
|
+
* element.
|
|
68
|
+
*/
|
|
69
|
+
this.autofocus = false;
|
|
70
|
+
}
|
|
71
|
+
//#endregion EVENTS
|
|
72
|
+
/****************************************************************************/
|
|
73
|
+
//#region LISTENERS
|
|
74
|
+
/**
|
|
75
|
+
* Listens for the change event on the checkbox input element and updates the
|
|
76
|
+
* checked state.
|
|
77
|
+
* @param {Event} event - The change event.
|
|
78
|
+
*/
|
|
79
|
+
handleChange(event) {
|
|
80
|
+
const target = event.target;
|
|
81
|
+
if (target.type === 'checkbox' && target.id === this.inputId) {
|
|
82
|
+
if (this.readonly || this.disabled) {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (this.indeterminate) {
|
|
87
|
+
this.indeterminate = false;
|
|
88
|
+
}
|
|
89
|
+
this.checked = target.checked;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//#endregion LISTENERS
|
|
93
|
+
/****************************************************************************/
|
|
94
|
+
//#region WATCHERS
|
|
95
|
+
/**
|
|
96
|
+
* Watches for changes to the checked state and emits the new value.
|
|
97
|
+
* @param {boolean} checked - The new value of the checked state.
|
|
98
|
+
*/
|
|
99
|
+
onCheckedChanged(checked) {
|
|
100
|
+
this.checkedChanged.emit(checked);
|
|
101
|
+
}
|
|
102
|
+
//#endregion WATCHERS
|
|
103
|
+
/****************************************************************************/
|
|
104
|
+
//#region LIFECYCLE
|
|
105
|
+
componentWillRender() {
|
|
106
|
+
if (this.message) {
|
|
107
|
+
this.description = this.message;
|
|
108
|
+
}
|
|
109
|
+
if (this.labelBefore) {
|
|
110
|
+
this.labelPlacement = 'before';
|
|
111
|
+
}
|
|
112
|
+
if (this.validation) {
|
|
113
|
+
this.errorDescription = this.validation;
|
|
114
|
+
this.error = true;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
//#endregion LIFECYCLE
|
|
118
|
+
/****************************************************************************/
|
|
119
|
+
//#region RENDER
|
|
120
|
+
render() {
|
|
121
|
+
return (index.h(index.Host, { key: 'de53d56a14565faed09432cf9caa2ac04009a395', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: '1b2eaf318015983b76354a0f98ca659748defaf2', class: "input-container" }, index.h("input", { key: '949928601227543717db9cec038e6f55efa618d1', type: "checkbox", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly && !this.required, required: this.required, indeterminate: this.indeterminate, ref: el => {
|
|
122
|
+
if (el) {
|
|
123
|
+
el.indeterminate = this.indeterminate;
|
|
124
|
+
}
|
|
125
|
+
} }), index.h("span", { key: '6e969279cb7279a1fbe6c1112e77139d274eccfd', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: '9655696bf7ecda02105f4ab68743800fec0c6500', name: "checked-icon" }, index.h("svg", { key: '1fe56dea643795713cc6df292757256d89a7ae11', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'd3ee68e0b4199591794ba39b4cc6aa4b24e61ee6', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: 'c598b604c2c3aec0c1d36d36ff243972b33d4f77', name: "indeterminate-icon" }, index.h("svg", { key: '38eb1768bc6e5d7b5dfdcaafbc39a7618500a1d4', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '06170fa3c62bb8793ea76ea30925d1a2b3520a77', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("div", { key: '375979126e20eea97fde15f7c3b9237880f40766', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'abe195bf795d754abd5462605440e2fa40c756e1', htmlFor: this.inputId, class: clsx297c1ffe.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: '7c25e043ab0bb79cc51594336dfce76086b6c901', name: "label" }, this.label))), (this.description ||
|
|
126
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '365c2da85957590b6c365b95c78309711dec1fc7', class: "description" }, index.h("slot", { key: '4f95fa143036d8f701cce9e2bd29036414426f38', name: "description" }, this.description))), (this.errorDescription ||
|
|
127
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'c7db38efbfcfb30d8de8ccad513e96019ade14be', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'c0ecad03278dc4ebbb43a3b30ff00c5be5051f6e', name: "error-description" }, this.errorDescription))))));
|
|
128
|
+
}
|
|
129
|
+
static get formAssociated() { return true; }
|
|
130
|
+
get el() { return index.getElement(this); }
|
|
131
|
+
static get watchers() { return {
|
|
132
|
+
"checked": ["onCheckedChanged"]
|
|
133
|
+
}; }
|
|
134
|
+
};
|
|
135
|
+
NvFieldcheckbox.style = NvFieldcheckboxStyle0;
|
|
136
|
+
|
|
137
|
+
exports.nv_fieldcheckbox = NvFieldcheckbox;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BZCQTWfv.js');
|
|
4
|
+
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
+
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
+
require('react');
|
|
7
|
+
|
|
8
|
+
const nvFieldcheckboxCss = "nv-fieldcheckbox{--nv-fieldcheckbox-border-default:var(\n --components-form-field-border-default\n );--nv-fieldcheckbox-border-hover:var(--components-form-field-border-hover);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-default);--nv-fieldcheckbox-background-default:var(\n --components-form-field-background-default\n );--nv-fieldcheckbox-background-checked:var(\n --components-form-field-background-checked\n );--nv-fieldcheckbox-background-disabled:var(\n --components-form-field-background-disabled\n );--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-brand);--nv-fieldcheckbox-color-checked:var(\n --components-form-shape-foreground-default\n );--nv-fieldcheckbox-color-disabled:var(\n --components-form-shape-foreground-disabled\n );--nv-fieldcheckbox-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-fieldcheckbox:not([disabled],[readonly]) input,nv-fieldcheckbox:not([disabled],[readonly]) label{cursor:pointer}nv-fieldcheckbox.error>.input-container{--nv-fieldcheckbox-border-default:var(--components-form-field-border-error);--nv-fieldcheckbox-border-hover:var(--nv-fieldcheckbox-border-default);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-error);--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-destructive);--nv-fieldcheckbox-color-disabled:var(\n --components-form-shape-foreground-disabled-error\n );--nv-fieldcheckbox-background-checked:var(\n --components-form-field-background-error\n );--nv-fieldcheckbox-outline-color:var(--color-focus-destructive)}nv-fieldcheckbox.label-placement-before{flex-direction:row-reverse}nv-fieldcheckbox[disabled]:not([disabled=false]){opacity:0.5}nv-fieldcheckbox>.input-container{position:relative;color:var(--nv-fieldcheckbox-color-checked)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--nv-fieldcheckbox-color-disabled)}nv-fieldcheckbox>.input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-checkbox-size);height:var(--form-checkbox-size);flex-direction:column;align-items:flex-start;border-radius:var(--form-checkbox-radius);border-width:var(--form-checkbox-border-width);border-style:solid;border-color:var(--nv-fieldcheckbox-border-default);background:var(--nv-fieldcheckbox-background-default)}nv-fieldcheckbox>.input-container input[type=checkbox]:hover{border-color:var(--nv-fieldcheckbox-border-hover)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus{border-color:var(--nv-fieldcheckbox-border-focus)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus,nv-fieldcheckbox>.input-container input[type=checkbox]:focus-within{outline:none}nv-fieldcheckbox>.input-container input[type=checkbox]:focus-visible,nv-fieldcheckbox>.input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldcheckbox-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldcheckbox>.input-container input[type=checkbox]:checked,nv-fieldcheckbox>.input-container input[type=checkbox]:indeterminate{background:var(--nv-fieldcheckbox-background-checked);border-color:var(--nv-fieldcheckbox-background-checked)}nv-fieldcheckbox>.input-container input[type=checkbox]:disabled:not([readonly]){background:var(--nv-fieldcheckbox-background-disabled);border-color:var(--nv-fieldcheckbox-border-default)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container .icon{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}nv-fieldcheckbox>.input-container .icon svg{width:var(--form-checkbox-icon-size);height:var(--form-checkbox-icon-size);fill:none;stroke:currentcolor;stroke-width:var(--form-checkbox-icon-stroke);flex-shrink:0}nv-fieldcheckbox>.text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}nv-fieldcheckbox>.text-container 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:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldcheckbox>.text-container .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:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldcheckbox>.text-container .error-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:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}";
|
|
9
|
+
const NvFieldcheckboxStyle0 = nvFieldcheckboxCss;
|
|
10
|
+
|
|
11
|
+
const NvFieldcheckbox = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
+
/**
|
|
16
|
+
* When true, the label will be placed before the checkbox.
|
|
17
|
+
* @deprecated Use `labelPlacement = end` instead.
|
|
18
|
+
* */
|
|
19
|
+
this.labelBefore = false;
|
|
20
|
+
//#endregion DEPRECATED
|
|
21
|
+
/****************************************************************************/
|
|
22
|
+
//#region PROPERTIES
|
|
23
|
+
/**
|
|
24
|
+
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
+
* the associated label. If no ID is provided, a random one will be
|
|
26
|
+
* automatically generated to ensure unique identification, facilitating
|
|
27
|
+
* proper label association and accessibility.
|
|
28
|
+
*/
|
|
29
|
+
this.inputId = v4A79185f4.v4();
|
|
30
|
+
/**
|
|
31
|
+
* Hides the label visually while still keeping it available for screen
|
|
32
|
+
* readers.
|
|
33
|
+
*/
|
|
34
|
+
this.hideLabel = false;
|
|
35
|
+
/**
|
|
36
|
+
* Signals that there is an error associated with the checkbox, which can
|
|
37
|
+
* trigger visual cues.
|
|
38
|
+
* @validator error
|
|
39
|
+
*/
|
|
40
|
+
this.error = false;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether the checkbox is checked or not.
|
|
43
|
+
*/
|
|
44
|
+
this.checked = false;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether the checkbox is in an indeterminate state, typically used
|
|
47
|
+
* for hierarchical checkboxes.
|
|
48
|
+
*/
|
|
49
|
+
this.indeterminate = false;
|
|
50
|
+
/**
|
|
51
|
+
* Disables the checkbox, preventing user interaction.
|
|
52
|
+
*/
|
|
53
|
+
this.disabled = false;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the checkbox to read-only, preventing user changes but still allowing
|
|
56
|
+
* focus and selection of text.
|
|
57
|
+
*/
|
|
58
|
+
this.readonly = false;
|
|
59
|
+
/**
|
|
60
|
+
* Marks the checkbox as required, indicating that it must be checked for
|
|
61
|
+
* form submission.
|
|
62
|
+
*/
|
|
63
|
+
this.required = false;
|
|
64
|
+
/**
|
|
65
|
+
* Applies focus to the input field as soon as the component is mounted. This
|
|
66
|
+
* is equivalent to setting the native autofocus attribute on an <input>
|
|
67
|
+
* element.
|
|
68
|
+
*/
|
|
69
|
+
this.autofocus = false;
|
|
70
|
+
}
|
|
71
|
+
//#endregion EVENTS
|
|
72
|
+
/****************************************************************************/
|
|
73
|
+
//#region LISTENERS
|
|
74
|
+
/**
|
|
75
|
+
* Listens for the change event on the checkbox input element and updates the
|
|
76
|
+
* checked state.
|
|
77
|
+
* @param {Event} event - The change event.
|
|
78
|
+
*/
|
|
79
|
+
handleChange(event) {
|
|
80
|
+
const target = event.target;
|
|
81
|
+
if (target.type === 'checkbox' && target.id === this.inputId) {
|
|
82
|
+
if (this.readonly || this.disabled) {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (this.indeterminate) {
|
|
87
|
+
this.indeterminate = false;
|
|
88
|
+
}
|
|
89
|
+
this.checked = target.checked;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//#endregion LISTENERS
|
|
93
|
+
/****************************************************************************/
|
|
94
|
+
//#region WATCHERS
|
|
95
|
+
/**
|
|
96
|
+
* Watches for changes to the checked state and emits the new value.
|
|
97
|
+
* @param {boolean} checked - The new value of the checked state.
|
|
98
|
+
*/
|
|
99
|
+
onCheckedChanged(checked) {
|
|
100
|
+
this.checkedChanged.emit(checked);
|
|
101
|
+
}
|
|
102
|
+
//#endregion WATCHERS
|
|
103
|
+
/****************************************************************************/
|
|
104
|
+
//#region LIFECYCLE
|
|
105
|
+
componentWillRender() {
|
|
106
|
+
if (this.message) {
|
|
107
|
+
this.description = this.message;
|
|
108
|
+
}
|
|
109
|
+
if (this.labelBefore) {
|
|
110
|
+
this.labelPlacement = 'before';
|
|
111
|
+
}
|
|
112
|
+
if (this.validation) {
|
|
113
|
+
this.errorDescription = this.validation;
|
|
114
|
+
this.error = true;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
//#endregion LIFECYCLE
|
|
118
|
+
/****************************************************************************/
|
|
119
|
+
//#region RENDER
|
|
120
|
+
render() {
|
|
121
|
+
return (index.h(index.Host, { key: 'de53d56a14565faed09432cf9caa2ac04009a395', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: '1b2eaf318015983b76354a0f98ca659748defaf2', class: "input-container" }, index.h("input", { key: '949928601227543717db9cec038e6f55efa618d1', type: "checkbox", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly && !this.required, required: this.required, indeterminate: this.indeterminate, ref: el => {
|
|
122
|
+
if (el) {
|
|
123
|
+
el.indeterminate = this.indeterminate;
|
|
124
|
+
}
|
|
125
|
+
} }), index.h("span", { key: '6e969279cb7279a1fbe6c1112e77139d274eccfd', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: '9655696bf7ecda02105f4ab68743800fec0c6500', name: "checked-icon" }, index.h("svg", { key: '1fe56dea643795713cc6df292757256d89a7ae11', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'd3ee68e0b4199591794ba39b4cc6aa4b24e61ee6', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: 'c598b604c2c3aec0c1d36d36ff243972b33d4f77', name: "indeterminate-icon" }, index.h("svg", { key: '38eb1768bc6e5d7b5dfdcaafbc39a7618500a1d4', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '06170fa3c62bb8793ea76ea30925d1a2b3520a77', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("div", { key: '375979126e20eea97fde15f7c3b9237880f40766', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'abe195bf795d754abd5462605440e2fa40c756e1', htmlFor: this.inputId, class: clsx297c1ffe.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: '7c25e043ab0bb79cc51594336dfce76086b6c901', name: "label" }, this.label))), (this.description ||
|
|
126
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '365c2da85957590b6c365b95c78309711dec1fc7', class: "description" }, index.h("slot", { key: '4f95fa143036d8f701cce9e2bd29036414426f38', name: "description" }, this.description))), (this.errorDescription ||
|
|
127
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'c7db38efbfcfb30d8de8ccad513e96019ade14be', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'c0ecad03278dc4ebbb43a3b30ff00c5be5051f6e', name: "error-description" }, this.errorDescription))))));
|
|
128
|
+
}
|
|
129
|
+
static get formAssociated() { return true; }
|
|
130
|
+
get el() { return index.getElement(this); }
|
|
131
|
+
static get watchers() { return {
|
|
132
|
+
"checked": ["onCheckedChanged"]
|
|
133
|
+
}; }
|
|
134
|
+
};
|
|
135
|
+
NvFieldcheckbox.style = NvFieldcheckboxStyle0;
|
|
136
|
+
|
|
137
|
+
exports.nv_fieldcheckbox = NvFieldcheckbox;
|