@nice2dev/ui 1.0.21 → 1.0.22

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +144 -0
  2. package/dist/NiceErrorBoundary-B0262Ffc.js +770 -0
  3. package/dist/NiceErrorBoundary-BXOLv-zG.cjs +1 -0
  4. package/dist/NiceErrorBoundary-DsreAsON.cjs +1 -0
  5. package/dist/NiceErrorBoundary-HMfrXIir.js +770 -0
  6. package/dist/NiceForm-B7D1MASh.js +5383 -0
  7. package/dist/NiceForm-BA9zZdm8.cjs +382 -0
  8. package/dist/NiceForm-Ba9rvBoT.cjs +382 -0
  9. package/dist/NiceForm-DAGMJpgx.js +5383 -0
  10. package/dist/NiceModal-BVT9cZbf.cjs +1 -0
  11. package/dist/NiceModal-CiOYOWJy.cjs +1 -0
  12. package/dist/NiceModal-DZbHCdKq.js +95 -0
  13. package/dist/NiceModal-MeC1cNtW.js +95 -0
  14. package/dist/NiceModuleLifecyclePanel-BiX4KxaK.js +6781 -0
  15. package/dist/NiceModuleLifecyclePanel-CDo0iVfr.js +6781 -0
  16. package/dist/NiceModuleLifecyclePanel-DEJpoz5a.cjs +1 -0
  17. package/dist/NiceModuleLifecyclePanel-DrDTpH6K.cjs +1 -0
  18. package/dist/NiceModuleLifecyclePanel.css +1 -1
  19. package/dist/NicePagination-C8gx6Bcl.js +171 -0
  20. package/dist/NicePagination-CNxEAb4C.cjs +1 -0
  21. package/dist/NicePagination-Cg_WEf-R.cjs +1 -0
  22. package/dist/NicePagination-DQXdzx7W.js +171 -0
  23. package/dist/NicePinCodeInput-3WugpLHi.js +12240 -0
  24. package/dist/NicePinCodeInput-CSfRHs4v.cjs +419 -0
  25. package/dist/NicePinCodeInput-CjwFvOEQ.js +13092 -0
  26. package/dist/NicePinCodeInput-DoBQnMj9.cjs +694 -0
  27. package/dist/NiceSavedQueryPanel-DFDDuKWd.js +6597 -0
  28. package/dist/NiceSavedQueryPanel-DTU4eiIH.cjs +596 -0
  29. package/dist/NiceSavedQueryPanel-qtWETcRP.cjs +596 -0
  30. package/dist/NiceSavedQueryPanel-z29D7N_A.js +6584 -0
  31. package/dist/NiceTabs-B4dM77y_.js +1657 -0
  32. package/dist/NiceTabs-BTVTtRZR.cjs +1 -0
  33. package/dist/NiceTabs-BXGmot7J.cjs +1 -0
  34. package/dist/NiceTabs-DJdhKste.js +1657 -0
  35. package/dist/NiceWindow-Cs6-Dbci.js +1592 -0
  36. package/dist/NiceWindow-DYw4NCeb.js +1592 -0
  37. package/dist/NiceWindow-O_g8StvA.cjs +1 -0
  38. package/dist/NiceWindow-a4wB_m30.cjs +1 -0
  39. package/dist/NiceWindow.css +1 -0
  40. package/dist/charts-BDr6B81L.js +4657 -0
  41. package/dist/charts-Ci_KrAoU.cjs +761 -0
  42. package/dist/charts-ClxW-i5q.js +4657 -0
  43. package/dist/charts-Dr_FIPZT.cjs +761 -0
  44. package/dist/charts.cjs +1 -1
  45. package/dist/charts.mjs +1 -1
  46. package/dist/core-BIz6zQ5u.cjs +122 -0
  47. package/dist/core-BYxnKGOi.js +23141 -0
  48. package/dist/core-Cjw8oBvC.cjs +96 -0
  49. package/dist/core-xcuNJ-DB.js +24948 -0
  50. package/dist/data-branching-Byz79mmA.cjs +1 -0
  51. package/dist/data-branching-DjuerHfS.js +6133 -0
  52. package/dist/data-branching.cjs +1 -1
  53. package/dist/data-branching.d.ts +3 -0
  54. package/dist/data-branching.mjs +1 -1
  55. package/dist/data.cjs +1 -1
  56. package/dist/data.d.ts +10 -7
  57. package/dist/data.mjs +1 -1
  58. package/dist/devops-DYFov8j3.js +7684 -0
  59. package/dist/devops-g4qcLXah.cjs +17 -0
  60. package/dist/devops.cjs +1 -1
  61. package/dist/devops.d.ts +5 -0
  62. package/dist/devops.mjs +1 -1
  63. package/dist/editors.cjs +1 -1
  64. package/dist/editors.d.ts +172 -1
  65. package/dist/editors.mjs +44 -41
  66. package/dist/feedback.cjs +1 -1
  67. package/dist/feedback.d.ts +1 -2
  68. package/dist/feedback.mjs +2 -2
  69. package/dist/index-AEO3cK4T.cjs +5194 -0
  70. package/dist/index-BMQ-F0zE.js +65054 -0
  71. package/dist/index-BNb9q4Ll.cjs +5490 -0
  72. package/dist/index-CjdfogVa.js +66711 -0
  73. package/dist/index.cjs +1 -1
  74. package/dist/index.d.ts +504 -25
  75. package/dist/index.mjs +979 -963
  76. package/dist/lazy.cjs +1 -1
  77. package/dist/lazy.d.ts +11 -0
  78. package/dist/lazy.mjs +24 -24
  79. package/dist/navigation.cjs +1 -1
  80. package/dist/navigation.mjs +34 -34
  81. package/dist/no-code-Dl3ima61.cjs +332 -0
  82. package/dist/no-code-ktRzFaET.js +7133 -0
  83. package/dist/no-code.cjs +1 -1
  84. package/dist/no-code.d.ts +11 -0
  85. package/dist/no-code.mjs +1 -1
  86. package/dist/overlays.cjs +1 -1
  87. package/dist/overlays.d.ts +38 -0
  88. package/dist/overlays.mjs +48 -48
  89. package/dist/style.css +5 -2
  90. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),t=require("./core-BIz6zQ5u.cjs"),a=require("react"),g=require("react-dom"),E=({open:l,onClose:c,title:n,size:f="md",children:h,footer:r,closeOnOverlay:v=!0,closeOnEscape:d=!0,fullscreenable:y,zIndex:i,className:x,style:_,displayStyle:u})=>{const{t:b}=t.Zt(),j=a.useContext(t.fr),m=a.useRef(null),[o,N]=a.useState(!1),k=t.ks("modal",u),w=t.Ms("modal",u);if(t.Ws(m,l),a.useEffect(()=>{if(!l||!d)return;const s=L=>{L.key==="Escape"&&c()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[l,d,c]),a.useEffect(()=>(l?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[l]),!l||typeof document>"u")return null;const C=e.jsx("div",{className:"nice-modal-overlay",style:i?{zIndex:i}:void 0,onClick:v?c:void 0,children:e.jsxs("div",{ref:m,className:`nice-modal nice-modal--${o?"full":f} nice-modal--ds-${w} ${x||""}`,style:{...k,..._},role:"dialog","aria-modal":"true","aria-label":n,onClick:s=>s.stopPropagation(),children:[n&&e.jsxs("div",{className:"nice-modal__header",children:[e.jsx("h2",{className:"nice-modal__title",children:n}),e.jsxs("div",{className:"nice-modal__header-actions",children:[y&&e.jsx("button",{type:"button",className:"nice-modal__fullscreen",onClick:()=>N(s=>!s),"aria-label":o?"Exit fullscreen":"Fullscreen",children:o?"⇲":"⇱"}),e.jsx("button",{type:"button",className:"nice-modal__close",onClick:c,"aria-label":b("controls.close","Close"),children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]})]}),e.jsx("div",{className:"nice-modal__body",children:h}),r&&e.jsx("div",{className:"nice-modal__footer",children:r})]})});return g.createPortal(C,j?.portalTarget??document.body)};exports.NiceModal=E;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),t=require("./core-Cjw8oBvC.cjs"),a=require("react"),g=require("react-dom"),E=({open:l,onClose:c,title:n,size:f="md",children:h,footer:r,closeOnOverlay:v=!0,closeOnEscape:d=!0,fullscreenable:y,zIndex:i,className:x,style:_,displayStyle:u})=>{const{t:b}=t.Jo(),j=a.useContext(t.lr),m=a.useRef(null),[o,N]=a.useState(!1),k=t.vs("modal",u),w=t.Ss("modal",u);if(t.Ps(m,l),a.useEffect(()=>{if(!l||!d)return;const s=L=>{L.key==="Escape"&&c()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[l,d,c]),a.useEffect(()=>(l?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[l]),!l||typeof document>"u")return null;const C=e.jsx("div",{className:"nice-modal-overlay",style:i?{zIndex:i}:void 0,onClick:v?c:void 0,children:e.jsxs("div",{ref:m,className:`nice-modal nice-modal--${o?"full":f} nice-modal--ds-${w} ${x||""}`,style:{...k,..._},role:"dialog","aria-modal":"true","aria-label":n,onClick:s=>s.stopPropagation(),children:[n&&e.jsxs("div",{className:"nice-modal__header",children:[e.jsx("h2",{className:"nice-modal__title",children:n}),e.jsxs("div",{className:"nice-modal__header-actions",children:[y&&e.jsx("button",{type:"button",className:"nice-modal__fullscreen",onClick:()=>N(s=>!s),"aria-label":o?"Exit fullscreen":"Fullscreen",children:o?"⇲":"⇱"}),e.jsx("button",{type:"button",className:"nice-modal__close",onClick:c,"aria-label":b("controls.close","Close"),children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]})]}),e.jsx("div",{className:"nice-modal__body",children:h}),r&&e.jsx("div",{className:"nice-modal__footer",children:r})]})});return g.createPortal(C,j?.portalTarget??document.body)};exports.NiceModal=E;
@@ -0,0 +1,95 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import { J as g, l as E, v as P, S as F, P as S } from "./core-BYxnKGOi.js";
3
+ import { useContext as $, useRef as j, useState as J, useEffect as u } from "react";
4
+ import { createPortal as M } from "react-dom";
5
+ const z = ({
6
+ open: l,
7
+ onClose: o,
8
+ title: t,
9
+ size: f = "md",
10
+ children: h,
11
+ footer: n,
12
+ closeOnOverlay: v = !0,
13
+ closeOnEscape: d = !0,
14
+ fullscreenable: y,
15
+ zIndex: c,
16
+ className: _,
17
+ style: b,
18
+ displayStyle: i
19
+ }) => {
20
+ const { t: N } = g(), k = $(E), m = j(null), [r, p] = J(!1), w = P("modal", i), x = F("modal", i);
21
+ if (S(m, l), u(() => {
22
+ if (!l || !d)
23
+ return;
24
+ const a = (L) => {
25
+ L.key === "Escape" && o();
26
+ };
27
+ return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
28
+ }, [l, d, o]), u(() => (l ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
29
+ document.body.style.overflow = "";
30
+ }), [l]), !l || typeof document > "u")
31
+ return null;
32
+ const C = /* @__PURE__ */ e(
33
+ "div",
34
+ {
35
+ className: "nice-modal-overlay",
36
+ style: c ? { zIndex: c } : void 0,
37
+ onClick: v ? o : void 0,
38
+ children: /* @__PURE__ */ s(
39
+ "div",
40
+ {
41
+ ref: m,
42
+ className: `nice-modal nice-modal--${r ? "full" : f} nice-modal--ds-${x} ${_ || ""}`,
43
+ style: { ...w, ...b },
44
+ role: "dialog",
45
+ "aria-modal": "true",
46
+ "aria-label": t,
47
+ onClick: (a) => a.stopPropagation(),
48
+ children: [
49
+ t && /* @__PURE__ */ s("div", { className: "nice-modal__header", children: [
50
+ /* @__PURE__ */ e("h2", { className: "nice-modal__title", children: t }),
51
+ /* @__PURE__ */ s("div", { className: "nice-modal__header-actions", children: [
52
+ y && /* @__PURE__ */ e(
53
+ "button",
54
+ {
55
+ type: "button",
56
+ className: "nice-modal__fullscreen",
57
+ onClick: () => p((a) => !a),
58
+ "aria-label": r ? "Exit fullscreen" : "Fullscreen",
59
+ children: r ? "⇲" : "⇱"
60
+ }
61
+ ),
62
+ /* @__PURE__ */ e(
63
+ "button",
64
+ {
65
+ type: "button",
66
+ className: "nice-modal__close",
67
+ onClick: o,
68
+ "aria-label": N("controls.close", "Close"),
69
+ children: /* @__PURE__ */ e(
70
+ "svg",
71
+ {
72
+ width: "24",
73
+ height: "24",
74
+ viewBox: "0 0 20 20",
75
+ fill: "currentColor",
76
+ "aria-hidden": "true",
77
+ children: /* @__PURE__ */ e("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
78
+ }
79
+ )
80
+ }
81
+ )
82
+ ] })
83
+ ] }),
84
+ /* @__PURE__ */ e("div", { className: "nice-modal__body", children: h }),
85
+ n && /* @__PURE__ */ e("div", { className: "nice-modal__footer", children: n })
86
+ ]
87
+ }
88
+ )
89
+ }
90
+ );
91
+ return M(C, k?.portalTarget ?? document.body);
92
+ };
93
+ export {
94
+ z as N
95
+ };
@@ -0,0 +1,95 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import { Z as g, f as E, k as M, M as F, W as $ } from "./core-xcuNJ-DB.js";
3
+ import { useContext as j, useRef as P, useState as R, useEffect as u } from "react";
4
+ import { createPortal as W } from "react-dom";
5
+ const q = ({
6
+ open: l,
7
+ onClose: o,
8
+ title: t,
9
+ size: f = "md",
10
+ children: h,
11
+ footer: n,
12
+ closeOnOverlay: v = !0,
13
+ closeOnEscape: d = !0,
14
+ fullscreenable: y,
15
+ zIndex: c,
16
+ className: _,
17
+ style: b,
18
+ displayStyle: i
19
+ }) => {
20
+ const { t: N } = g(), k = j(E), m = P(null), [r, p] = R(!1), w = M("modal", i), x = F("modal", i);
21
+ if ($(m, l), u(() => {
22
+ if (!l || !d)
23
+ return;
24
+ const a = (L) => {
25
+ L.key === "Escape" && o();
26
+ };
27
+ return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
28
+ }, [l, d, o]), u(() => (l ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
29
+ document.body.style.overflow = "";
30
+ }), [l]), !l || typeof document > "u")
31
+ return null;
32
+ const C = /* @__PURE__ */ e(
33
+ "div",
34
+ {
35
+ className: "nice-modal-overlay",
36
+ style: c ? { zIndex: c } : void 0,
37
+ onClick: v ? o : void 0,
38
+ children: /* @__PURE__ */ s(
39
+ "div",
40
+ {
41
+ ref: m,
42
+ className: `nice-modal nice-modal--${r ? "full" : f} nice-modal--ds-${x} ${_ || ""}`,
43
+ style: { ...w, ...b },
44
+ role: "dialog",
45
+ "aria-modal": "true",
46
+ "aria-label": t,
47
+ onClick: (a) => a.stopPropagation(),
48
+ children: [
49
+ t && /* @__PURE__ */ s("div", { className: "nice-modal__header", children: [
50
+ /* @__PURE__ */ e("h2", { className: "nice-modal__title", children: t }),
51
+ /* @__PURE__ */ s("div", { className: "nice-modal__header-actions", children: [
52
+ y && /* @__PURE__ */ e(
53
+ "button",
54
+ {
55
+ type: "button",
56
+ className: "nice-modal__fullscreen",
57
+ onClick: () => p((a) => !a),
58
+ "aria-label": r ? "Exit fullscreen" : "Fullscreen",
59
+ children: r ? "⇲" : "⇱"
60
+ }
61
+ ),
62
+ /* @__PURE__ */ e(
63
+ "button",
64
+ {
65
+ type: "button",
66
+ className: "nice-modal__close",
67
+ onClick: o,
68
+ "aria-label": N("controls.close", "Close"),
69
+ children: /* @__PURE__ */ e(
70
+ "svg",
71
+ {
72
+ width: "24",
73
+ height: "24",
74
+ viewBox: "0 0 20 20",
75
+ fill: "currentColor",
76
+ "aria-hidden": "true",
77
+ children: /* @__PURE__ */ e("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
78
+ }
79
+ )
80
+ }
81
+ )
82
+ ] })
83
+ ] }),
84
+ /* @__PURE__ */ e("div", { className: "nice-modal__body", children: h }),
85
+ n && /* @__PURE__ */ e("div", { className: "nice-modal__footer", children: n })
86
+ ]
87
+ }
88
+ )
89
+ }
90
+ );
91
+ return W(C, k?.portalTarget ?? document.body);
92
+ };
93
+ export {
94
+ q as N
95
+ };