@nice2dev/ui 1.3.18 → 1.4.1
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 +82 -0
- package/README.md +27 -0
- package/dist/{NiceDataGrid-CFibAGHt.cjs → NiceDataGrid-BT6iCUgP.cjs} +1 -1
- package/dist/{NiceForm-ChRj4r3f.cjs → NiceForm-Bysp66Ef.cjs} +1 -1
- package/dist/{NiceMention-DNx3d9L7.cjs → NiceMention-sc8W-DwH.cjs} +1 -1
- package/dist/NiceModuleLifecyclePanel-DBQPCa_V.cjs +1 -0
- package/dist/{NiceSavedQueryPanel-BuRAgrBk.cjs → NiceSavedQueryPanel-BbznsXFd.cjs} +1 -1
- package/dist/{NiceScheduler-DAoo1eyo.cjs → NiceScheduler-3Ez0zSQJ.cjs} +1 -1
- package/dist/{core-lazy-DohJQ33c.cjs → core-lazy-CL4ZIxF-.cjs} +1 -1
- package/dist/data.cjs +1 -1
- package/dist/editors/pickers/pickerCommons.mjs +284 -87
- package/dist/editors/pickers/themePickerHelpers.mjs +10 -8
- package/dist/editors.cjs +1 -1
- package/dist/index.cjs +166 -166
- package/dist/index.d.ts +142 -10
- package/dist/index.mjs +1517 -1488
- package/dist/navigation/sidebarColors.mjs +61 -50
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +7 -0
- package/dist/pickerCommons-CwcCc8Qi.cjs +1 -0
- package/dist/planning/NiceResourceAllocation.mjs +31 -31
- package/dist/style.css +4 -4
- package/dist/tools/NiceThemeDesigner.mjs +781 -708
- package/dist/tools/NiceThemePreview.mjs +344 -282
- package/dist/tools/themeCatalog.mjs +28 -44
- package/dist/tools/themeCatalogArchive.mjs +38 -0
- package/dist/tools/themeDesigner/ThemeSetEditors.mjs +400 -0
- package/dist/tools/themeDesigner/ThemeValueField.mjs +146 -0
- package/dist/tools/themeDesigner/themeDesignerPaths.mjs +105 -0
- package/package.json +4 -4
- package/dist/NiceModuleLifecyclePanel-D8Q081R6.cjs +0 -1
- package/dist/pickerCommons-BWglYl6J.cjs +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useNiceTranslation as
|
|
3
|
-
import * as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { getFlagColors as
|
|
6
|
-
const
|
|
7
|
-
code:
|
|
8
|
-
size:
|
|
9
|
-
className:
|
|
1
|
+
import { jsx as o, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { useNiceTranslation as y } from "@nice2dev/ui-core";
|
|
3
|
+
import * as k from "country-flag-icons/string/3x2";
|
|
4
|
+
import { useState as M, useCallback as S, useEffect as C } from "react";
|
|
5
|
+
import { getFlagColors as R } from "./countryFlagColors.mjs";
|
|
6
|
+
const I = k, F = ({
|
|
7
|
+
code: t,
|
|
8
|
+
size: i = 22,
|
|
9
|
+
className: a
|
|
10
10
|
}) => {
|
|
11
|
-
const { t:
|
|
12
|
-
return
|
|
11
|
+
const { t: p } = y(), l = t?.toUpperCase(), d = l ? I[l] : void 0, e = i, n = Math.round(i * 2 / 3);
|
|
12
|
+
return d ? /* @__PURE__ */ o(
|
|
13
13
|
"span",
|
|
14
14
|
{
|
|
15
|
-
className:
|
|
15
|
+
className: a,
|
|
16
16
|
role: "img",
|
|
17
|
-
"aria-label":
|
|
17
|
+
"aria-label": p("pickerCommons.flag", "{upper} flag").replace("{upper}", String(l)),
|
|
18
18
|
style: {
|
|
19
19
|
display: "inline-block",
|
|
20
|
-
width:
|
|
21
|
-
height:
|
|
20
|
+
width: e,
|
|
21
|
+
height: n,
|
|
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 C = v, F = ({
|
|
|
28
28
|
lineHeight: 0
|
|
29
29
|
},
|
|
30
30
|
dangerouslySetInnerHTML: {
|
|
31
|
-
__html:
|
|
31
|
+
__html: d.replace(
|
|
32
32
|
"<svg ",
|
|
33
|
-
`<svg width="${
|
|
33
|
+
`<svg width="${e}" height="${n}" preserveAspectRatio="xMidYMid slice" `
|
|
34
34
|
)
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
) : /* @__PURE__ */
|
|
37
|
+
) : /* @__PURE__ */ o(A, { code: t, size: i, className: a });
|
|
38
38
|
}, A = ({
|
|
39
|
-
code:
|
|
40
|
-
size:
|
|
41
|
-
className:
|
|
39
|
+
code: t,
|
|
40
|
+
size: i = 18,
|
|
41
|
+
className: a
|
|
42
42
|
}) => {
|
|
43
|
-
const { t:
|
|
44
|
-
return /* @__PURE__ */
|
|
43
|
+
const { t: p } = y(), l = R(t);
|
|
44
|
+
return /* @__PURE__ */ o(
|
|
45
45
|
"span",
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
47
|
+
className: a,
|
|
48
48
|
role: "img",
|
|
49
|
-
"aria-label":
|
|
49
|
+
"aria-label": p("pickerCommons.flag2", "{code} flag").replace("{code}", String(t)),
|
|
50
50
|
style: {
|
|
51
51
|
display: "inline-flex",
|
|
52
|
-
width:
|
|
53
|
-
height: Math.round(
|
|
52
|
+
width: i,
|
|
53
|
+
height: Math.round(i * 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,80 +58,277 @@ const C = v, F = ({
|
|
|
58
58
|
flexShrink: 0,
|
|
59
59
|
verticalAlign: "middle"
|
|
60
60
|
},
|
|
61
|
-
children:
|
|
61
|
+
children: l.map((d, e) => /* @__PURE__ */ o("span", { style: { flex: 1, background: d } }, e))
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
};
|
|
65
|
-
function
|
|
66
|
-
const [
|
|
67
|
-
if (
|
|
68
|
-
|
|
65
|
+
function P(t, i, a, p = 280) {
|
|
66
|
+
const [l, d] = M(a === "left" ? "left" : "right"), e = S(() => {
|
|
67
|
+
if (a !== "auto") {
|
|
68
|
+
d(a);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
71
|
+
const n = i.current;
|
|
72
|
+
if (!n || typeof window > "u")
|
|
73
73
|
return;
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
}, [
|
|
77
|
-
return
|
|
78
|
-
if (
|
|
79
|
-
return
|
|
80
|
-
window.removeEventListener("resize",
|
|
74
|
+
const c = n.getBoundingClientRect(), s = window.innerWidth - c.left, h = c.right;
|
|
75
|
+
s >= p && s > h ? d("left") : d("right");
|
|
76
|
+
}, [a, i, p]);
|
|
77
|
+
return C(() => {
|
|
78
|
+
if (t)
|
|
79
|
+
return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
|
|
80
|
+
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
81
81
|
};
|
|
82
|
-
}, [
|
|
82
|
+
}, [t, e]), l;
|
|
83
|
+
}
|
|
84
|
+
const g = (t, i) => ({
|
|
85
|
+
backgroundColor: t,
|
|
86
|
+
backgroundImage: i
|
|
87
|
+
});
|
|
88
|
+
function L({ roles: t, w: i, h: a, border: p, className: l, label: d }) {
|
|
89
|
+
const e = [
|
|
90
|
+
{ key: "side", style: g(t.sideNav, t.sideNavImage), stripes: t.headers },
|
|
91
|
+
{ key: "top", style: g(t.topNav, t.topNavImage) },
|
|
92
|
+
{ key: "body", style: g(t.body, t.bodyImage) },
|
|
93
|
+
{ key: "panel", style: g(t.panel, t.panelImage) },
|
|
94
|
+
{ key: "highlight", style: g(t.highlight) }
|
|
95
|
+
];
|
|
96
|
+
return /* @__PURE__ */ o(
|
|
97
|
+
"span",
|
|
98
|
+
{
|
|
99
|
+
className: l,
|
|
100
|
+
role: "img",
|
|
101
|
+
"aria-label": d,
|
|
102
|
+
"data-preview": "columns",
|
|
103
|
+
style: {
|
|
104
|
+
display: "inline-flex",
|
|
105
|
+
width: i,
|
|
106
|
+
height: a,
|
|
107
|
+
border: `1px solid ${p}`,
|
|
108
|
+
borderRadius: Math.max(2, Math.round(a * 0.14)),
|
|
109
|
+
overflow: "hidden",
|
|
110
|
+
flexShrink: 0,
|
|
111
|
+
verticalAlign: "middle"
|
|
112
|
+
},
|
|
113
|
+
children: e.map((n) => /* @__PURE__ */ o(
|
|
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
|
+
))
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
function $({ roles: t, w: i, h: a, border: p, className: l, label: d }) {
|
|
126
|
+
const e = Math.max(3, Math.round(a * 0.18)), n = Math.max(4, Math.round(i * 0.28)), c = Math.max(2, Math.round((a - e) * 0.13)), r = Math.max(2, Math.round(i * 0.06)), s = Math.max(1, Math.round(a * 0.06)), h = (u) => ({
|
|
127
|
+
position: "absolute",
|
|
128
|
+
...u
|
|
129
|
+
});
|
|
130
|
+
return /* @__PURE__ */ x(
|
|
131
|
+
"span",
|
|
132
|
+
{
|
|
133
|
+
className: l,
|
|
134
|
+
role: "img",
|
|
135
|
+
"aria-label": d,
|
|
136
|
+
"data-preview": "layout",
|
|
137
|
+
style: {
|
|
138
|
+
position: "relative",
|
|
139
|
+
display: "inline-block",
|
|
140
|
+
width: i,
|
|
141
|
+
height: a,
|
|
142
|
+
boxSizing: "content-box",
|
|
143
|
+
...g(t.body, t.bodyImage),
|
|
144
|
+
border: `1px solid ${p}`,
|
|
145
|
+
borderRadius: Math.max(2, Math.round(a * 0.08)),
|
|
146
|
+
overflow: "hidden",
|
|
147
|
+
flexShrink: 0,
|
|
148
|
+
verticalAlign: "middle"
|
|
149
|
+
},
|
|
150
|
+
children: [
|
|
151
|
+
/* @__PURE__ */ o(
|
|
152
|
+
"span",
|
|
153
|
+
{
|
|
154
|
+
style: h({
|
|
155
|
+
top: 0,
|
|
156
|
+
left: 0,
|
|
157
|
+
right: 0,
|
|
158
|
+
height: e,
|
|
159
|
+
...g(t.topNav, t.topNavImage)
|
|
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
|
|
173
|
+
})
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ o(
|
|
177
|
+
"span",
|
|
178
|
+
{
|
|
179
|
+
style: h({
|
|
180
|
+
top: Math.round(e * 0.42),
|
|
181
|
+
left: r + e,
|
|
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,
|
|
194
|
+
bottom: 0,
|
|
195
|
+
left: 0,
|
|
196
|
+
width: n,
|
|
197
|
+
...g(t.sideNav, t.sideNavImage)
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
t.headers.map((u, b) => /* @__PURE__ */ o(
|
|
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(
|
|
209
|
+
"span",
|
|
210
|
+
{
|
|
211
|
+
style: h({
|
|
212
|
+
top: e + t.headers.length * c + Math.round(c * 0.4),
|
|
213
|
+
left: 0,
|
|
214
|
+
width: n,
|
|
215
|
+
height: c,
|
|
216
|
+
background: t.highlight
|
|
217
|
+
})
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
/* @__PURE__ */ o(
|
|
221
|
+
"span",
|
|
222
|
+
{
|
|
223
|
+
style: h({
|
|
224
|
+
top: e + r,
|
|
225
|
+
left: n + r,
|
|
226
|
+
right: r,
|
|
227
|
+
bottom: r,
|
|
228
|
+
...g(t.panel, t.panelImage),
|
|
229
|
+
border: `1px solid ${t.panelBorder}`,
|
|
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,
|
|
243
|
+
opacity: 0.85
|
|
244
|
+
})
|
|
245
|
+
}
|
|
246
|
+
),
|
|
247
|
+
/* @__PURE__ */ o(
|
|
248
|
+
"span",
|
|
249
|
+
{
|
|
250
|
+
style: h({
|
|
251
|
+
top: e + r * 2.2 + s * 2.5,
|
|
252
|
+
left: n + r * 2,
|
|
253
|
+
width: Math.round((i - n) * 0.4),
|
|
254
|
+
height: s,
|
|
255
|
+
background: t.text,
|
|
256
|
+
opacity: 0.55
|
|
257
|
+
})
|
|
258
|
+
}
|
|
259
|
+
),
|
|
260
|
+
/* @__PURE__ */ o(
|
|
261
|
+
"span",
|
|
262
|
+
{
|
|
263
|
+
style: h({
|
|
264
|
+
bottom: r * 2,
|
|
265
|
+
right: r * 2,
|
|
266
|
+
width: Math.round((i - n) * 0.22),
|
|
267
|
+
height: Math.max(2, s * 2),
|
|
268
|
+
borderRadius: 2,
|
|
269
|
+
background: t.primary
|
|
270
|
+
})
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
);
|
|
83
276
|
}
|
|
84
|
-
const
|
|
85
|
-
const { t:
|
|
86
|
-
if (
|
|
277
|
+
const _ = ({ colors: t, size: i = 28, shape: a = "page", className: p }) => {
|
|
278
|
+
const { t: l } = y(), d = i, e = Math.round(i * 0.75), n = t.border ?? "color-mix(in srgb, currentColor 30%, transparent)", c = l("pickerCommons.themePreview", "Theme preview");
|
|
279
|
+
if (t.roles) {
|
|
280
|
+
const m = { roles: t.roles, w: d, h: e, border: n, className: p, label: c };
|
|
281
|
+
return a === "swatch" || a === "columns" ? /* @__PURE__ */ o(L, { ...m }) : /* @__PURE__ */ o($, { ...m });
|
|
282
|
+
}
|
|
283
|
+
if (a === "swatch" || a === "columns") {
|
|
87
284
|
const m = [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
285
|
+
t.primary,
|
|
286
|
+
t.background,
|
|
287
|
+
t.backgroundSecondary ?? t.background,
|
|
288
|
+
t.textColor
|
|
92
289
|
];
|
|
93
|
-
return /* @__PURE__ */
|
|
290
|
+
return /* @__PURE__ */ o(
|
|
94
291
|
"span",
|
|
95
292
|
{
|
|
96
|
-
className:
|
|
293
|
+
className: p,
|
|
97
294
|
role: "img",
|
|
98
|
-
"aria-label":
|
|
295
|
+
"aria-label": l("pickerCommons.themePreview", "Theme preview"),
|
|
99
296
|
style: {
|
|
100
297
|
display: "inline-flex",
|
|
101
|
-
width:
|
|
102
|
-
height:
|
|
103
|
-
border: `1px solid ${
|
|
298
|
+
width: d,
|
|
299
|
+
height: e,
|
|
300
|
+
border: `1px solid ${n}`,
|
|
104
301
|
borderRadius: 2,
|
|
105
302
|
overflow: "hidden",
|
|
106
303
|
flexShrink: 0,
|
|
107
304
|
verticalAlign: "middle"
|
|
108
305
|
},
|
|
109
|
-
children: m.map((
|
|
306
|
+
children: m.map((v, w) => /* @__PURE__ */ o("span", { style: { flex: 1, background: v } }, w))
|
|
110
307
|
}
|
|
111
308
|
);
|
|
112
309
|
}
|
|
113
|
-
const
|
|
310
|
+
const r = Math.max(2, Math.round(e * 0.17)), s = Math.max(2, Math.round(d * 0.14)), h = d - s * 2, u = Math.max(2, Math.round(h * 0.16)), b = Math.max(1, Math.round(e * 0.07)), f = e - r;
|
|
114
311
|
return /* @__PURE__ */ x(
|
|
115
312
|
"span",
|
|
116
313
|
{
|
|
117
|
-
className:
|
|
314
|
+
className: p,
|
|
118
315
|
role: "img",
|
|
119
|
-
"aria-label":
|
|
316
|
+
"aria-label": l("pickerCommons.themePreview", "Theme preview"),
|
|
120
317
|
style: {
|
|
121
318
|
position: "relative",
|
|
122
319
|
display: "inline-block",
|
|
123
|
-
width:
|
|
124
|
-
height:
|
|
320
|
+
width: d,
|
|
321
|
+
height: e,
|
|
125
322
|
boxSizing: "content-box",
|
|
126
|
-
background:
|
|
127
|
-
border: `1px solid ${
|
|
323
|
+
background: t.backgroundSecondary ?? t.background,
|
|
324
|
+
border: `1px solid ${n}`,
|
|
128
325
|
borderRadius: 2,
|
|
129
326
|
overflow: "hidden",
|
|
130
327
|
flexShrink: 0,
|
|
131
328
|
verticalAlign: "middle"
|
|
132
329
|
},
|
|
133
330
|
children: [
|
|
134
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ o(
|
|
135
332
|
"span",
|
|
136
333
|
{
|
|
137
334
|
style: {
|
|
@@ -139,49 +336,49 @@ const H = ({ colors: e, size: n = 28, shape: o = "page", className: d }) => {
|
|
|
139
336
|
top: 0,
|
|
140
337
|
left: 0,
|
|
141
338
|
right: 0,
|
|
142
|
-
height:
|
|
143
|
-
background:
|
|
339
|
+
height: r,
|
|
340
|
+
background: t.primary
|
|
144
341
|
}
|
|
145
342
|
}
|
|
146
343
|
),
|
|
147
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ o(
|
|
148
345
|
"span",
|
|
149
346
|
{
|
|
150
347
|
style: {
|
|
151
348
|
position: "absolute",
|
|
152
|
-
top:
|
|
349
|
+
top: r,
|
|
153
350
|
bottom: 0,
|
|
154
|
-
left:
|
|
155
|
-
right:
|
|
156
|
-
background:
|
|
157
|
-
borderLeft: `1px solid ${
|
|
158
|
-
borderRight: `1px solid ${
|
|
351
|
+
left: s,
|
|
352
|
+
right: s,
|
|
353
|
+
background: t.background,
|
|
354
|
+
borderLeft: `1px solid ${n}`,
|
|
355
|
+
borderRight: `1px solid ${n}`
|
|
159
356
|
}
|
|
160
357
|
}
|
|
161
358
|
),
|
|
162
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ o(
|
|
163
360
|
"span",
|
|
164
361
|
{
|
|
165
362
|
style: {
|
|
166
363
|
position: "absolute",
|
|
167
|
-
top:
|
|
168
|
-
left:
|
|
169
|
-
right:
|
|
170
|
-
height:
|
|
171
|
-
background:
|
|
364
|
+
top: r + Math.round(f * 0.28),
|
|
365
|
+
left: s + u,
|
|
366
|
+
right: s + u,
|
|
367
|
+
height: b,
|
|
368
|
+
background: t.textColor
|
|
172
369
|
}
|
|
173
370
|
}
|
|
174
371
|
),
|
|
175
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ o(
|
|
176
373
|
"span",
|
|
177
374
|
{
|
|
178
375
|
style: {
|
|
179
376
|
position: "absolute",
|
|
180
|
-
top:
|
|
181
|
-
left:
|
|
182
|
-
width: Math.max(3, Math.round((
|
|
183
|
-
height:
|
|
184
|
-
background:
|
|
377
|
+
top: r + Math.round(f * 0.55),
|
|
378
|
+
left: s + u,
|
|
379
|
+
width: Math.max(3, Math.round((h - u * 2) * 0.6)),
|
|
380
|
+
height: b,
|
|
381
|
+
background: t.textColor
|
|
185
382
|
}
|
|
186
383
|
}
|
|
187
384
|
)
|
|
@@ -192,6 +389,6 @@ const H = ({ colors: e, size: n = 28, shape: o = "page", className: d }) => {
|
|
|
192
389
|
export {
|
|
193
390
|
F as FlagIcon,
|
|
194
391
|
A as FlagSwatch,
|
|
195
|
-
|
|
196
|
-
|
|
392
|
+
_ as ThemePreviewSwatch,
|
|
393
|
+
P as useDropdownAlignment
|
|
197
394
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { NICE_THEME_PRESETS as o } from "@nice2dev/ui-core";
|
|
2
|
-
function
|
|
1
|
+
import { NICE_THEME_PRESETS as o, resolveTheme as a, themePreviewRoles as n } from "@nice2dev/ui-core";
|
|
2
|
+
function c(e) {
|
|
3
|
+
const r = a(e).theme;
|
|
3
4
|
return {
|
|
4
|
-
id:
|
|
5
|
-
name:
|
|
5
|
+
id: e.name,
|
|
6
|
+
name: e.name,
|
|
6
7
|
preview: {
|
|
7
8
|
background: r.backgrounds.primary,
|
|
8
9
|
backgroundSecondary: r.backgrounds.secondary,
|
|
9
10
|
primary: r.colors.primary,
|
|
10
11
|
textColor: r.text.primary,
|
|
11
|
-
border: r.borders.color
|
|
12
|
+
border: r.borders.color,
|
|
13
|
+
roles: n(e)
|
|
12
14
|
},
|
|
13
15
|
readOnly: !0
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
|
-
const
|
|
18
|
+
const t = /* @__PURE__ */ o.map(c);
|
|
17
19
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
t as NICE_THEME_PICKER_PRESETS,
|
|
21
|
+
c as toThemeDescriptor
|
|
20
22
|
};
|
package/dist/editors.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./no-code-B3BHeyG-.cjs"),i=require("./NiceForm-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./no-code-B3BHeyG-.cjs"),i=require("./NiceForm-Bysp66Ef.cjs"),e=require("./NiceMention-sc8W-DwH.cjs"),o=require("./NiceSelect-BNPXs6FQ.cjs"),N=require("./pickerCommons-CwcCc8Qi.cjs"),t=require("./NiceColorPicker-BLwYNSXJ.cjs"),r=require("./NiceHtmlEditor-C1OVtLQ6.cjs"),n=require("./NiceCodeEditor-D0QZW88r.cjs");exports.NiceCheckbox=c.NiceCheckbox;exports.NiceNumberInput=c.NiceNumberInput;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.NiceSelect=o.NiceSelect;exports.NiceToggle=N.NiceToggle;exports.NiceColorPicker=t.NiceColorPicker;exports.NiceHtmlEditor=r.NiceHtmlEditor;exports.NiceCodeEditor=n.NiceCodeEditor;
|