@nice2dev/ui 1.4.16 → 1.4.18
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/CHANGELOG.md +57 -0
- package/dist/NiceAlert-RVTgQxCE.cjs +1 -0
- package/dist/NiceDataGrid-Cszjz8NV.cjs +10 -0
- package/dist/NiceForm-DM2tARZT.cjs +1 -0
- package/dist/{NiceHtmlEditor-By7R1wRo.cjs → NiceHtmlEditor-BEWNA_UI.cjs} +1 -1
- package/dist/NiceLoginForm-Bkm5j80r.cjs +1 -0
- package/dist/{NiceMention-i7n2BoMw.cjs → NiceMention-DhaTUqvR.cjs} +1 -1
- package/dist/NiceModuleLifecyclePanel-DAIbzfZd.cjs +1 -0
- package/dist/{NicePagination-D9JguOl0.cjs → NicePagination-CnKYyKI5.cjs} +1 -1
- package/dist/{NicePivotGrid-B_7iQJys.cjs → NicePivotGrid-BshofJh1.cjs} +1 -1
- package/dist/NiceSavedQueryPanel-DJKEOqy5.cjs +587 -0
- package/dist/{NiceScheduler-B2DamQ_L.cjs → NiceScheduler-Dff8fuq_.cjs} +1 -1
- package/dist/{core-lazy-ChKRuEPb.cjs → core-lazy-BhQxFuLf.cjs} +1 -1
- package/dist/data/NiceRowEditDialog.mjs +42 -35
- package/dist/data/NiceTreeGrid.mjs +512 -474
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +30 -3
- package/dist/editors/forms/NiceForm.mjs +55 -52
- package/dist/editors/inputs/NiceRadioGroup.mjs +12 -12
- package/dist/editors/inputs/NiceSelect.mjs +51 -51
- package/dist/editors/pickers/NiceLanguagePicker.mjs +129 -125
- package/dist/editors/pickers/NiceThemePicker.mjs +1 -1
- package/dist/editors/pickers/pickerCommons.mjs +155 -203
- package/dist/editors.cjs +1 -1
- package/dist/feedback.cjs +1 -1
- package/dist/index.cjs +96 -96
- package/dist/index.d.ts +41 -7
- package/dist/lazy.cjs +1 -1
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +6 -0
- package/dist/{no-code-CN_q6TcB.cjs → no-code-DPc82kyy.cjs} +11 -11
- package/dist/no-code.cjs +1 -1
- package/dist/pickerCommons-CQnae2FM.cjs +1 -0
- package/dist/style.css +2 -2
- package/dist/tools/NiceThemeGalleryPicker.mjs +168 -265
- package/package.json +4 -4
- package/dist/NiceDataGrid-B1AOjgjm.cjs +0 -10
- package/dist/NiceForm-fmePSeA9.cjs +0 -1
- package/dist/NiceLoginForm-C2-WgRn0.cjs +0 -1
- package/dist/NiceModuleLifecyclePanel-DVHQuhc-.cjs +0 -1
- package/dist/NiceSavedQueryPanel-ChY4HwpM.cjs +0 -587
- package/dist/pickerCommons-CwcCc8Qi.cjs +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { useNiceTranslation as y } from "@nice2dev/ui-core";
|
|
3
3
|
import * as k from "country-flag-icons/string/3x2";
|
|
4
4
|
import { useState as M, useCallback as S, useEffect as C } from "react";
|
|
5
5
|
import { getFlagColors as R } from "./countryFlagColors.mjs";
|
|
6
|
-
const
|
|
7
|
-
code:
|
|
8
|
-
size:
|
|
9
|
-
className:
|
|
6
|
+
const A = k, F = ({
|
|
7
|
+
code: e,
|
|
8
|
+
size: r = 22,
|
|
9
|
+
className: o
|
|
10
10
|
}) => {
|
|
11
|
-
const { t:
|
|
12
|
-
return
|
|
11
|
+
const { t: s } = y(), l = e?.toUpperCase(), i = l ? A[l] : void 0, t = r, d = Math.round(r * 2 / 3);
|
|
12
|
+
return i ? /* @__PURE__ */ n(
|
|
13
13
|
"span",
|
|
14
14
|
{
|
|
15
|
-
className:
|
|
15
|
+
className: o,
|
|
16
16
|
role: "img",
|
|
17
|
-
"aria-label":
|
|
17
|
+
"aria-label": s("pickerCommons.flag", "{upper} flag").replace("{upper}", String(l)),
|
|
18
18
|
style: {
|
|
19
19
|
display: "inline-block",
|
|
20
|
-
width:
|
|
21
|
-
height:
|
|
20
|
+
width: t,
|
|
21
|
+
height: d,
|
|
22
22
|
boxSizing: "content-box",
|
|
23
23
|
border: "1px solid var(--nice-overlay-15, rgba(0, 0, 0, 0.15))",
|
|
24
24
|
borderRadius: 2,
|
|
@@ -28,29 +28,29 @@ const I = k, F = ({
|
|
|
28
28
|
lineHeight: 0
|
|
29
29
|
},
|
|
30
30
|
dangerouslySetInnerHTML: {
|
|
31
|
-
__html:
|
|
31
|
+
__html: i.replace(
|
|
32
32
|
"<svg ",
|
|
33
|
-
`<svg width="${
|
|
33
|
+
`<svg width="${t}" height="${d}" preserveAspectRatio="xMidYMid slice" `
|
|
34
34
|
)
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
) : /* @__PURE__ */
|
|
38
|
-
},
|
|
39
|
-
code:
|
|
40
|
-
size:
|
|
41
|
-
className:
|
|
37
|
+
) : /* @__PURE__ */ n(I, { code: e, size: r, className: o });
|
|
38
|
+
}, I = ({
|
|
39
|
+
code: e,
|
|
40
|
+
size: r = 18,
|
|
41
|
+
className: o
|
|
42
42
|
}) => {
|
|
43
|
-
const { t:
|
|
44
|
-
return /* @__PURE__ */
|
|
43
|
+
const { t: s } = y(), l = R(e);
|
|
44
|
+
return /* @__PURE__ */ n(
|
|
45
45
|
"span",
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
47
|
+
className: o,
|
|
48
48
|
role: "img",
|
|
49
|
-
"aria-label":
|
|
49
|
+
"aria-label": s("pickerCommons.flag2", "{code} flag").replace("{code}", String(e)),
|
|
50
50
|
style: {
|
|
51
51
|
display: "inline-flex",
|
|
52
|
-
width:
|
|
53
|
-
height: Math.round(
|
|
52
|
+
width: r,
|
|
53
|
+
height: Math.round(r * 0.7),
|
|
54
54
|
boxSizing: "content-box",
|
|
55
55
|
border: "1px solid var(--nice-overlay-15, rgba(0, 0, 0, 0.15))",
|
|
56
56
|
borderRadius: 2,
|
|
@@ -58,215 +58,167 @@ const I = k, F = ({
|
|
|
58
58
|
flexShrink: 0,
|
|
59
59
|
verticalAlign: "middle"
|
|
60
60
|
},
|
|
61
|
-
children: l.map((
|
|
61
|
+
children: l.map((i, t) => /* @__PURE__ */ n("span", { style: { flex: 1, background: i } }, t))
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
};
|
|
65
|
-
function P(
|
|
66
|
-
const [l,
|
|
67
|
-
if (
|
|
68
|
-
|
|
65
|
+
function P(e, r, o, s = 280) {
|
|
66
|
+
const [l, i] = M(o === "left" ? "left" : "right"), t = S(() => {
|
|
67
|
+
if (o !== "auto") {
|
|
68
|
+
i(o);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
71
|
+
const d = r.current;
|
|
72
|
+
if (!d || typeof window > "u")
|
|
73
73
|
return;
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
}, [
|
|
74
|
+
const a = d.getBoundingClientRect(), p = window.innerWidth - a.left, u = a.right;
|
|
75
|
+
p >= s && p > u ? i("left") : i("right");
|
|
76
|
+
}, [o, r, s]);
|
|
77
77
|
return C(() => {
|
|
78
|
-
if (
|
|
79
|
-
return
|
|
80
|
-
window.removeEventListener("resize",
|
|
78
|
+
if (e)
|
|
79
|
+
return t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0), () => {
|
|
80
|
+
window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0);
|
|
81
81
|
};
|
|
82
|
-
}, [
|
|
82
|
+
}, [e, t]), l;
|
|
83
83
|
}
|
|
84
|
-
const g = (
|
|
85
|
-
backgroundColor:
|
|
86
|
-
backgroundImage:
|
|
84
|
+
const g = (e, r) => ({
|
|
85
|
+
backgroundColor: e,
|
|
86
|
+
backgroundImage: r
|
|
87
87
|
});
|
|
88
|
-
function L({ roles:
|
|
89
|
-
const
|
|
90
|
-
{ key: "side", style: g(
|
|
91
|
-
{ key: "top", style: g(
|
|
92
|
-
{ key: "body", style: g(
|
|
93
|
-
{ key: "
|
|
94
|
-
{ key: "highlight", style: g(t.highlight) }
|
|
88
|
+
function L({ roles: e, w: r, h: o, border: s, className: l, label: i }) {
|
|
89
|
+
const t = [
|
|
90
|
+
{ key: "side", style: g(e.sideNav, e.sideNavImage) },
|
|
91
|
+
{ key: "top", style: g(e.topNav, e.topNavImage) },
|
|
92
|
+
{ key: "body", style: g(e.body, e.bodyImage) },
|
|
93
|
+
{ key: "primary", style: g(e.primary) }
|
|
95
94
|
];
|
|
96
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ n(
|
|
97
96
|
"span",
|
|
98
97
|
{
|
|
99
98
|
className: l,
|
|
100
99
|
role: "img",
|
|
101
|
-
"aria-label":
|
|
100
|
+
"aria-label": i,
|
|
102
101
|
"data-preview": "columns",
|
|
103
102
|
style: {
|
|
104
103
|
display: "inline-flex",
|
|
105
|
-
width:
|
|
106
|
-
height:
|
|
107
|
-
border: `1px solid ${
|
|
108
|
-
borderRadius: Math.max(2, Math.round(
|
|
104
|
+
width: r,
|
|
105
|
+
height: o,
|
|
106
|
+
border: `1px solid ${s}`,
|
|
107
|
+
borderRadius: Math.max(2, Math.round(o * 0.14)),
|
|
109
108
|
overflow: "hidden",
|
|
110
109
|
flexShrink: 0,
|
|
111
110
|
verticalAlign: "middle"
|
|
112
111
|
},
|
|
113
|
-
children:
|
|
114
|
-
"span",
|
|
115
|
-
{
|
|
116
|
-
"data-role": n.key,
|
|
117
|
-
style: { flex: 1, display: "flex", flexDirection: "column", ...n.style },
|
|
118
|
-
children: n.stripes?.map((c, r) => /* @__PURE__ */ o("span", { style: { flex: "0 0 20%", background: c } }, r))
|
|
119
|
-
},
|
|
120
|
-
n.key
|
|
121
|
-
))
|
|
112
|
+
children: t.map((d) => /* @__PURE__ */ n("span", { "data-role": d.key, style: { flex: 1, ...d.style } }, d.key))
|
|
122
113
|
}
|
|
123
114
|
);
|
|
124
115
|
}
|
|
125
|
-
function $({ roles:
|
|
126
|
-
const
|
|
116
|
+
function $({ roles: e, w: r, h: o, border: s, className: l, label: i }) {
|
|
117
|
+
const t = Math.max(4, Math.round(o * 0.24)), d = Math.max(4, Math.round(r * 0.24)), a = Math.max(2, Math.round(o * 0.1)), h = Math.max(2, Math.round(o * 0.1)), p = t + a, u = d + a, c = (m) => ({
|
|
127
118
|
position: "absolute",
|
|
128
|
-
...
|
|
119
|
+
...m
|
|
129
120
|
});
|
|
130
121
|
return /* @__PURE__ */ x(
|
|
131
122
|
"span",
|
|
132
123
|
{
|
|
133
124
|
className: l,
|
|
134
125
|
role: "img",
|
|
135
|
-
"aria-label":
|
|
126
|
+
"aria-label": i,
|
|
136
127
|
"data-preview": "layout",
|
|
137
128
|
style: {
|
|
138
129
|
position: "relative",
|
|
139
130
|
display: "inline-block",
|
|
140
|
-
width:
|
|
141
|
-
height:
|
|
131
|
+
width: r,
|
|
132
|
+
height: o,
|
|
142
133
|
boxSizing: "content-box",
|
|
143
|
-
...g(
|
|
144
|
-
border: `1px solid ${
|
|
145
|
-
borderRadius: Math.max(2, Math.round(
|
|
134
|
+
...g(e.body, e.bodyImage),
|
|
135
|
+
border: `1px solid ${s}`,
|
|
136
|
+
borderRadius: Math.max(2, Math.round(o * 0.1)),
|
|
146
137
|
overflow: "hidden",
|
|
147
138
|
flexShrink: 0,
|
|
148
139
|
verticalAlign: "middle"
|
|
149
140
|
},
|
|
150
141
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ n(
|
|
152
143
|
"span",
|
|
153
144
|
{
|
|
154
|
-
|
|
145
|
+
"data-role": "top",
|
|
146
|
+
style: c({
|
|
155
147
|
top: 0,
|
|
156
148
|
left: 0,
|
|
157
149
|
right: 0,
|
|
158
|
-
height:
|
|
159
|
-
...g(
|
|
160
|
-
})
|
|
161
|
-
}
|
|
162
|
-
),
|
|
163
|
-
/* @__PURE__ */ o(
|
|
164
|
-
"span",
|
|
165
|
-
{
|
|
166
|
-
style: h({
|
|
167
|
-
top: Math.round(e * 0.3),
|
|
168
|
-
left: r,
|
|
169
|
-
width: Math.round(e * 0.4),
|
|
170
|
-
height: Math.round(e * 0.4),
|
|
171
|
-
borderRadius: "50%",
|
|
172
|
-
background: t.primary
|
|
150
|
+
height: t,
|
|
151
|
+
...g(e.topNav, e.topNavImage)
|
|
173
152
|
})
|
|
174
153
|
}
|
|
175
154
|
),
|
|
176
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ n(
|
|
177
156
|
"span",
|
|
178
157
|
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
width: Math.round(i * 0.22),
|
|
183
|
-
height: s,
|
|
184
|
-
background: t.topNavText,
|
|
185
|
-
opacity: 0.8
|
|
186
|
-
})
|
|
187
|
-
}
|
|
188
|
-
),
|
|
189
|
-
/* @__PURE__ */ o(
|
|
190
|
-
"span",
|
|
191
|
-
{
|
|
192
|
-
style: h({
|
|
193
|
-
top: e,
|
|
158
|
+
"data-role": "side",
|
|
159
|
+
style: c({
|
|
160
|
+
top: t,
|
|
194
161
|
bottom: 0,
|
|
195
162
|
left: 0,
|
|
196
|
-
width:
|
|
197
|
-
...g(
|
|
163
|
+
width: d,
|
|
164
|
+
...g(e.sideNav, e.sideNavImage)
|
|
198
165
|
})
|
|
199
166
|
}
|
|
200
167
|
),
|
|
201
|
-
|
|
202
|
-
"span",
|
|
203
|
-
{
|
|
204
|
-
style: h({ top: e + b * c, left: 0, width: n, height: c, background: u })
|
|
205
|
-
},
|
|
206
|
-
b
|
|
207
|
-
)),
|
|
208
|
-
/* @__PURE__ */ o(
|
|
168
|
+
/* @__PURE__ */ n(
|
|
209
169
|
"span",
|
|
210
170
|
{
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
171
|
+
"data-role": "panel",
|
|
172
|
+
style: c({
|
|
173
|
+
top: p,
|
|
174
|
+
left: u,
|
|
175
|
+
right: a,
|
|
176
|
+
bottom: a,
|
|
177
|
+
...g(e.panel, e.panelImage),
|
|
178
|
+
border: `1px solid ${e.panelBorder}`,
|
|
179
|
+
borderRadius: Math.max(1, Math.round(a * 0.6))
|
|
217
180
|
})
|
|
218
181
|
}
|
|
219
182
|
),
|
|
220
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ n(
|
|
221
184
|
"span",
|
|
222
185
|
{
|
|
223
|
-
style:
|
|
224
|
-
top:
|
|
225
|
-
left:
|
|
226
|
-
right:
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
borderRadius: 2
|
|
231
|
-
})
|
|
232
|
-
}
|
|
233
|
-
),
|
|
234
|
-
/* @__PURE__ */ o(
|
|
235
|
-
"span",
|
|
236
|
-
{
|
|
237
|
-
style: h({
|
|
238
|
-
top: e + r * 2.2,
|
|
239
|
-
left: n + r * 2,
|
|
240
|
-
right: r * 3,
|
|
241
|
-
height: s,
|
|
242
|
-
background: t.text,
|
|
186
|
+
style: c({
|
|
187
|
+
top: p + a,
|
|
188
|
+
left: u + a,
|
|
189
|
+
right: a * 2,
|
|
190
|
+
height: h,
|
|
191
|
+
borderRadius: h / 2,
|
|
192
|
+
background: e.text,
|
|
243
193
|
opacity: 0.85
|
|
244
194
|
})
|
|
245
195
|
}
|
|
246
196
|
),
|
|
247
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ n(
|
|
248
198
|
"span",
|
|
249
199
|
{
|
|
250
|
-
style:
|
|
251
|
-
top:
|
|
252
|
-
left:
|
|
253
|
-
width: Math.round((
|
|
254
|
-
height:
|
|
255
|
-
|
|
200
|
+
style: c({
|
|
201
|
+
top: p + a + h + a,
|
|
202
|
+
left: u + a,
|
|
203
|
+
width: Math.round((r - u - a * 3) * 0.55),
|
|
204
|
+
height: h,
|
|
205
|
+
borderRadius: h / 2,
|
|
206
|
+
background: e.text,
|
|
256
207
|
opacity: 0.55
|
|
257
208
|
})
|
|
258
209
|
}
|
|
259
210
|
),
|
|
260
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ n(
|
|
261
212
|
"span",
|
|
262
213
|
{
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
214
|
+
"data-role": "primary",
|
|
215
|
+
style: c({
|
|
216
|
+
bottom: a * 2,
|
|
217
|
+
right: a * 2,
|
|
218
|
+
width: Math.round((r - u) * 0.32),
|
|
219
|
+
height: h + 2,
|
|
220
|
+
borderRadius: Math.max(1, Math.round(h / 2)),
|
|
221
|
+
background: e.primary
|
|
270
222
|
})
|
|
271
223
|
}
|
|
272
224
|
)
|
|
@@ -274,61 +226,61 @@ function $({ roles: t, w: i, h: a, border: p, className: l, label: d }) {
|
|
|
274
226
|
}
|
|
275
227
|
);
|
|
276
228
|
}
|
|
277
|
-
const _ = ({ colors:
|
|
278
|
-
const { t: l } = y(),
|
|
279
|
-
if (
|
|
280
|
-
const
|
|
281
|
-
return
|
|
229
|
+
const _ = ({ colors: e, size: r = 28, shape: o = "page", className: s }) => {
|
|
230
|
+
const { t: l } = y(), i = r, t = Math.round(r * 0.75), d = e.border ?? "color-mix(in srgb, currentColor 30%, transparent)", a = l("pickerCommons.themePreview", "Theme preview");
|
|
231
|
+
if (e.roles) {
|
|
232
|
+
const b = { roles: e.roles, w: i, h: t, border: d, className: s, label: a };
|
|
233
|
+
return o === "swatch" || o === "columns" ? /* @__PURE__ */ n(L, { ...b }) : /* @__PURE__ */ n($, { ...b });
|
|
282
234
|
}
|
|
283
|
-
if (
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
235
|
+
if (o === "swatch" || o === "columns") {
|
|
236
|
+
const b = [
|
|
237
|
+
e.primary,
|
|
238
|
+
e.background,
|
|
239
|
+
e.backgroundSecondary ?? e.background,
|
|
240
|
+
e.textColor
|
|
289
241
|
];
|
|
290
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ n(
|
|
291
243
|
"span",
|
|
292
244
|
{
|
|
293
|
-
className:
|
|
245
|
+
className: s,
|
|
294
246
|
role: "img",
|
|
295
247
|
"aria-label": l("pickerCommons.themePreview", "Theme preview"),
|
|
296
248
|
style: {
|
|
297
249
|
display: "inline-flex",
|
|
298
|
-
width:
|
|
299
|
-
height:
|
|
300
|
-
border: `1px solid ${
|
|
250
|
+
width: i,
|
|
251
|
+
height: t,
|
|
252
|
+
border: `1px solid ${d}`,
|
|
301
253
|
borderRadius: 2,
|
|
302
254
|
overflow: "hidden",
|
|
303
255
|
flexShrink: 0,
|
|
304
256
|
verticalAlign: "middle"
|
|
305
257
|
},
|
|
306
|
-
children:
|
|
258
|
+
children: b.map((v, w) => /* @__PURE__ */ n("span", { style: { flex: 1, background: v } }, w))
|
|
307
259
|
}
|
|
308
260
|
);
|
|
309
261
|
}
|
|
310
|
-
const
|
|
262
|
+
const h = Math.max(2, Math.round(t * 0.17)), p = Math.max(2, Math.round(i * 0.14)), u = i - p * 2, c = Math.max(2, Math.round(u * 0.16)), m = Math.max(1, Math.round(t * 0.07)), f = t - h;
|
|
311
263
|
return /* @__PURE__ */ x(
|
|
312
264
|
"span",
|
|
313
265
|
{
|
|
314
|
-
className:
|
|
266
|
+
className: s,
|
|
315
267
|
role: "img",
|
|
316
268
|
"aria-label": l("pickerCommons.themePreview", "Theme preview"),
|
|
317
269
|
style: {
|
|
318
270
|
position: "relative",
|
|
319
271
|
display: "inline-block",
|
|
320
|
-
width:
|
|
321
|
-
height:
|
|
272
|
+
width: i,
|
|
273
|
+
height: t,
|
|
322
274
|
boxSizing: "content-box",
|
|
323
|
-
background:
|
|
324
|
-
border: `1px solid ${
|
|
275
|
+
background: e.backgroundSecondary ?? e.background,
|
|
276
|
+
border: `1px solid ${d}`,
|
|
325
277
|
borderRadius: 2,
|
|
326
278
|
overflow: "hidden",
|
|
327
279
|
flexShrink: 0,
|
|
328
280
|
verticalAlign: "middle"
|
|
329
281
|
},
|
|
330
282
|
children: [
|
|
331
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ n(
|
|
332
284
|
"span",
|
|
333
285
|
{
|
|
334
286
|
style: {
|
|
@@ -336,49 +288,49 @@ const _ = ({ colors: t, size: i = 28, shape: a = "page", className: p }) => {
|
|
|
336
288
|
top: 0,
|
|
337
289
|
left: 0,
|
|
338
290
|
right: 0,
|
|
339
|
-
height:
|
|
340
|
-
background:
|
|
291
|
+
height: h,
|
|
292
|
+
background: e.primary
|
|
341
293
|
}
|
|
342
294
|
}
|
|
343
295
|
),
|
|
344
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ n(
|
|
345
297
|
"span",
|
|
346
298
|
{
|
|
347
299
|
style: {
|
|
348
300
|
position: "absolute",
|
|
349
|
-
top:
|
|
301
|
+
top: h,
|
|
350
302
|
bottom: 0,
|
|
351
|
-
left:
|
|
352
|
-
right:
|
|
353
|
-
background:
|
|
354
|
-
borderLeft: `1px solid ${
|
|
355
|
-
borderRight: `1px solid ${
|
|
303
|
+
left: p,
|
|
304
|
+
right: p,
|
|
305
|
+
background: e.background,
|
|
306
|
+
borderLeft: `1px solid ${d}`,
|
|
307
|
+
borderRight: `1px solid ${d}`
|
|
356
308
|
}
|
|
357
309
|
}
|
|
358
310
|
),
|
|
359
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ n(
|
|
360
312
|
"span",
|
|
361
313
|
{
|
|
362
314
|
style: {
|
|
363
315
|
position: "absolute",
|
|
364
|
-
top:
|
|
365
|
-
left:
|
|
366
|
-
right:
|
|
367
|
-
height:
|
|
368
|
-
background:
|
|
316
|
+
top: h + Math.round(f * 0.28),
|
|
317
|
+
left: p + c,
|
|
318
|
+
right: p + c,
|
|
319
|
+
height: m,
|
|
320
|
+
background: e.textColor
|
|
369
321
|
}
|
|
370
322
|
}
|
|
371
323
|
),
|
|
372
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ n(
|
|
373
325
|
"span",
|
|
374
326
|
{
|
|
375
327
|
style: {
|
|
376
328
|
position: "absolute",
|
|
377
|
-
top:
|
|
378
|
-
left:
|
|
379
|
-
width: Math.max(3, Math.round((
|
|
380
|
-
height:
|
|
381
|
-
background:
|
|
329
|
+
top: h + Math.round(f * 0.55),
|
|
330
|
+
left: p + c,
|
|
331
|
+
width: Math.max(3, Math.round((u - c * 2) * 0.6)),
|
|
332
|
+
height: m,
|
|
333
|
+
background: e.textColor
|
|
382
334
|
}
|
|
383
335
|
}
|
|
384
336
|
)
|
|
@@ -388,7 +340,7 @@ const _ = ({ colors: t, size: i = 28, shape: a = "page", className: p }) => {
|
|
|
388
340
|
};
|
|
389
341
|
export {
|
|
390
342
|
F as FlagIcon,
|
|
391
|
-
|
|
343
|
+
I as FlagSwatch,
|
|
392
344
|
_ as ThemePreviewSwatch,
|
|
393
345
|
P as useDropdownAlignment
|
|
394
346
|
};
|
package/dist/editors.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./no-code-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./no-code-DPc82kyy.cjs"),i=require("./NiceForm-DM2tARZT.cjs"),e=require("./NiceMention-DhaTUqvR.cjs"),o=require("./pickerCommons-CQnae2FM.cjs"),N=require("./NiceColorPicker-79rkvaSk.cjs"),t=require("./NiceHtmlEditor-BEWNA_UI.cjs"),r=require("./NiceCodeEditor-DhdjnDLV.cjs");exports.NiceCheckbox=c.NiceCheckbox;exports.NiceNumberInput=c.NiceNumberInput;exports.NiceSelect=c.NiceSelect;exports.NiceTextInput=c.NiceTextInput;exports.MASK_PRESETS=i.MASK_PRESETS;exports.NiceAutocomplete=i.NiceAutocomplete;exports.NiceCalendar=i.NiceCalendar;exports.NiceCountryPicker=i.NiceCountryPicker;exports.NiceDateTimePicker=i.NiceDateTimePicker;exports.NiceForm=i.NiceForm;exports.NiceMaskedInput=i.NiceMaskedInput;exports.NicePasswordInput=i.NicePasswordInput;exports.NiceRadioGroup=i.NiceRadioGroup;exports.NiceRating=i.NiceRating;exports.NiceSlider=i.NiceSlider;exports.NiceTagBox=i.NiceTagBox;exports.NiceTextArea=i.NiceTextArea;exports.NiceUpload=i.NiceUpload;exports.NICE_COLOR_PRESET_KEYS=e.NICE_COLOR_PRESET_KEYS;exports.NiceAccountPicker=e.NiceAccountPicker;exports.NiceAddressInput=e.NiceAddressInput;exports.NiceCodeEditorAI=e.NiceCodeEditorAI;exports.NiceColorPalette=e.NiceColorPalette;exports.NiceContactPicker=e.NiceContactPicker;exports.NiceCropEditor=e.NiceCropEditor;exports.NiceDateRangeBox=e.NiceDateRangeBox;exports.NiceDocumentEditor=e.NiceDocumentEditor;exports.NiceDropDownBox=e.NiceDropDownBox;exports.NiceEmojiPicker=e.NiceEmojiPicker;exports.NiceGradientPicker=e.NiceGradientPicker;exports.NiceHtmlEditorAI=e.NiceHtmlEditorAI;exports.NiceImageAnnotator=e.NiceImageAnnotator;exports.NiceImageEditor=e.NiceImageEditor;exports.NiceInputOtp=e.NiceInputOtp;exports.NiceInvoiceLineEditor=e.NiceInvoiceLineEditor;exports.NiceKeyValueEditor=e.NiceKeyValueEditor;exports.NiceKnob=e.NiceKnob;exports.NiceLogConsole=e.NiceLogConsole;exports.NiceLookup=e.NiceLookup;exports.NiceMarkdownEditor=e.NiceMarkdownEditor;exports.NiceMention=e.NiceMention;exports.NicePDFAnnotationEditor=e.NicePDFAnnotationEditor;exports.NicePickList=e.NicePickList;exports.NiceRangeSlider=e.NiceRangeSlider;exports.NiceScannerControl=e.NiceScannerControl;exports.NiceScriptRunner=e.NiceScriptRunner;exports.NiceSignature=e.NiceSignature;exports.NiceTreeSelect=e.NiceTreeSelect;exports.NiceWiki=e.NiceWiki;exports.NiceToggle=o.NiceToggle;exports.NiceColorPicker=N.NiceColorPicker;exports.NiceHtmlEditor=t.NiceHtmlEditor;exports.NiceCodeEditor=r.NiceCodeEditor;
|
package/dist/feedback.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./NiceAlert-RVTgQxCE.cjs"),r=require("./NiceModal-BRVzjuUN.cjs"),o=require("./devops-o6Zm0VKB.cjs"),e=require("./NiceLoginForm-Bkm5j80r.cjs");exports.NiceAlert=i.NiceAlert;exports.alertIcons=i.alertIcons;exports.NiceModal=r.NiceModal;exports.NiceConfirmDialog=o.NiceConfirmDialog;exports.useNiceDialogs=o.useNiceDialogs;exports.NiceCookieConsent=e.NiceCookieConsent;exports.NiceDrawer=e.NiceDrawer;exports.NiceErrorBoundary=e.NiceErrorBoundary;exports.NiceLoginForm=e.NiceLoginForm;exports.NiceOfflineBanner=e.NiceOfflineBanner;exports.NiceRetryPanel=e.NiceRetryPanel;exports.NiceTimeoutFeedback=e.NiceTimeoutFeedback;exports.NiceToastContainer=e.NiceToastContainer;exports.useNiceToast=e.useNiceToast;
|