@kvell-group/ui 1.9.0 → 1.9.2

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.
@@ -1,705 +0,0 @@
1
- import { createContext as F, useContext as M, useMemo as H } from "react";
2
- import { jsx as _ } from "react/jsx-runtime";
3
- function rr(r) {
4
- return Object.keys(r);
5
- }
6
- function v(r) {
7
- return r && typeof r == "object" && !Array.isArray(r);
8
- }
9
- function L(r, e) {
10
- const t = { ...r }, o = e;
11
- return v(r) && v(e) && Object.keys(e).forEach((i) => {
12
- v(o[i]) && i in r ? t[i] = L(t[i], o[i]) : t[i] = o[i];
13
- }), t;
14
- }
15
- function y(r) {
16
- return r === "0rem" ? "0rem" : `calc(${r} * var(--mantine-scale))`;
17
- }
18
- function N(r, { shouldScale: e = !1 } = {}) {
19
- function t(o) {
20
- if (o === 0 || o === "0")
21
- return `0${r}`;
22
- if (typeof o == "number") {
23
- const i = `${o / 16}${r}`;
24
- return e ? y(i) : i;
25
- }
26
- if (typeof o == "string") {
27
- if (o === "" || o.startsWith("calc(") || o.startsWith("clamp(") || o.includes("rgba("))
28
- return o;
29
- if (o.includes(","))
30
- return o.split(",").map((a) => t(a)).join(",");
31
- if (o.includes(" "))
32
- return o.split(" ").map((a) => t(a)).join(" ");
33
- if (o.includes(r))
34
- return e ? y(o) : o;
35
- const i = o.replace("px", "");
36
- if (!Number.isNaN(Number(i))) {
37
- const a = `${Number(i) / 16}${r}`;
38
- return e ? y(a) : a;
39
- }
40
- }
41
- return o;
42
- }
43
- return t;
44
- }
45
- const n = N("rem", { shouldScale: !0 }), er = N("em"), j = F(null);
46
- function u() {
47
- const r = M(j);
48
- if (!r)
49
- throw new Error("[@mantine/core] MantineProvider was not found in tree");
50
- return r;
51
- }
52
- function nr() {
53
- return u().cssVariablesResolver;
54
- }
55
- function ar() {
56
- return u().classNamesPrefix;
57
- }
58
- function tr() {
59
- return u().getStyleNonce;
60
- }
61
- function or() {
62
- return u().withStaticClasses;
63
- }
64
- function ir() {
65
- return u().headless;
66
- }
67
- function sr() {
68
- var r;
69
- return (r = u().stylesTransform) == null ? void 0 : r.sx;
70
- }
71
- function fr() {
72
- var r;
73
- return (r = u().stylesTransform) == null ? void 0 : r.styles;
74
- }
75
- function cr() {
76
- return u().env || "default";
77
- }
78
- function W(r) {
79
- return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(r);
80
- }
81
- function z(r) {
82
- let e = r.replace("#", "");
83
- if (e.length === 3) {
84
- const f = e.split("");
85
- e = [
86
- f[0],
87
- f[0],
88
- f[1],
89
- f[1],
90
- f[2],
91
- f[2]
92
- ].join("");
93
- }
94
- if (e.length === 8) {
95
- const f = parseInt(e.slice(6, 8), 16) / 255;
96
- return {
97
- r: parseInt(e.slice(0, 2), 16),
98
- g: parseInt(e.slice(2, 4), 16),
99
- b: parseInt(e.slice(4, 6), 16),
100
- a: f
101
- };
102
- }
103
- const t = parseInt(e, 16), o = t >> 16 & 255, i = t >> 8 & 255, a = t & 255;
104
- return {
105
- r: o,
106
- g: i,
107
- b: a,
108
- a: 1
109
- };
110
- }
111
- function G(r) {
112
- const [e, t, o, i] = r.replace(/[^0-9,./]/g, "").split(/[/,]/).map(Number);
113
- return { r: e, g: t, b: o, a: i || 1 };
114
- }
115
- function D(r) {
116
- const e = /^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i, t = r.match(e);
117
- if (!t)
118
- return {
119
- r: 0,
120
- g: 0,
121
- b: 0,
122
- a: 1
123
- };
124
- const o = parseInt(t[1], 10), i = parseInt(t[2], 10) / 100, a = parseInt(t[3], 10) / 100, f = t[5] ? parseFloat(t[5]) : void 0, s = (1 - Math.abs(2 * a - 1)) * i, c = o / 60, d = s * (1 - Math.abs(c % 2 - 1)), $ = a - s / 2;
125
- let b, h, m;
126
- return c >= 0 && c < 1 ? (b = s, h = d, m = 0) : c >= 1 && c < 2 ? (b = d, h = s, m = 0) : c >= 2 && c < 3 ? (b = 0, h = s, m = d) : c >= 3 && c < 4 ? (b = 0, h = d, m = s) : c >= 4 && c < 5 ? (b = d, h = 0, m = s) : (b = s, h = 0, m = d), {
127
- r: Math.round((b + $) * 255),
128
- g: Math.round((h + $) * 255),
129
- b: Math.round((m + $) * 255),
130
- a: f || 1
131
- };
132
- }
133
- function x(r) {
134
- return W(r) ? z(r) : r.startsWith("rgb") ? G(r) : r.startsWith("hsl") ? D(r) : {
135
- r: 0,
136
- g: 0,
137
- b: 0,
138
- a: 1
139
- };
140
- }
141
- function p(r, e) {
142
- if (r.startsWith("var("))
143
- return `color-mix(in srgb, ${r}, black ${e * 100}%)`;
144
- const { r: t, g: o, b: i, a } = x(r), f = 1 - e, s = (c) => Math.round(c * f);
145
- return `rgba(${s(t)}, ${s(o)}, ${s(i)}, ${a})`;
146
- }
147
- function O(r, e) {
148
- return typeof r.primaryShade == "number" ? r.primaryShade : e === "dark" ? r.primaryShade.dark : r.primaryShade.light;
149
- }
150
- function C(r) {
151
- return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
152
- }
153
- function V(r) {
154
- const e = r.match(/oklch\((.*?)%\s/);
155
- return e ? parseFloat(e[1]) : null;
156
- }
157
- function U(r) {
158
- if (r.startsWith("oklch("))
159
- return (V(r) || 0) / 100;
160
- const { r: e, g: t, b: o } = x(r), i = e / 255, a = t / 255, f = o / 255, s = C(i), c = C(a), d = C(f);
161
- return 0.2126 * s + 0.7152 * c + 0.0722 * d;
162
- }
163
- function g(r, e = 0.179) {
164
- return r.startsWith("var(") ? !1 : U(r) > e;
165
- }
166
- function P({
167
- color: r,
168
- theme: e,
169
- colorScheme: t
170
- }) {
171
- if (typeof r != "string")
172
- throw new Error(
173
- `[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof r}`
174
- );
175
- if (r === "bright")
176
- return {
177
- color: r,
178
- value: t === "dark" ? e.white : e.black,
179
- shade: void 0,
180
- isThemeColor: !1,
181
- isLight: g(
182
- t === "dark" ? e.white : e.black,
183
- e.luminanceThreshold
184
- ),
185
- variable: "--mantine-color-bright"
186
- };
187
- if (r === "dimmed")
188
- return {
189
- color: r,
190
- value: t === "dark" ? e.colors.dark[2] : e.colors.gray[7],
191
- shade: void 0,
192
- isThemeColor: !1,
193
- isLight: g(
194
- t === "dark" ? e.colors.dark[2] : e.colors.gray[6],
195
- e.luminanceThreshold
196
- ),
197
- variable: "--mantine-color-dimmed"
198
- };
199
- if (r === "white" || r === "black")
200
- return {
201
- color: r,
202
- value: r === "white" ? e.white : e.black,
203
- shade: void 0,
204
- isThemeColor: !1,
205
- isLight: g(
206
- r === "white" ? e.white : e.black,
207
- e.luminanceThreshold
208
- ),
209
- variable: `--mantine-color-${r}`
210
- };
211
- const [o, i] = r.split("."), a = i ? Number(i) : void 0, f = o in e.colors;
212
- if (f) {
213
- const s = a !== void 0 ? e.colors[o][a] : e.colors[o][O(e, t || "light")];
214
- return {
215
- color: o,
216
- value: s,
217
- shade: a,
218
- isThemeColor: f,
219
- isLight: g(s, e.luminanceThreshold),
220
- variable: i ? `--mantine-color-${o}-${a}` : `--mantine-color-${o}-filled`
221
- };
222
- }
223
- return {
224
- color: r,
225
- value: r,
226
- isThemeColor: f,
227
- isLight: g(r, e.luminanceThreshold),
228
- shade: a,
229
- variable: void 0
230
- };
231
- }
232
- function w(r, e) {
233
- const t = P({ color: r || e.primaryColor, theme: e });
234
- return t.variable ? `var(${t.variable})` : r;
235
- }
236
- function S(r, e) {
237
- const t = {
238
- from: (r == null ? void 0 : r.from) || e.defaultGradient.from,
239
- to: (r == null ? void 0 : r.to) || e.defaultGradient.to,
240
- deg: (r == null ? void 0 : r.deg) ?? e.defaultGradient.deg ?? 0
241
- }, o = w(t.from, e), i = w(t.to, e);
242
- return `linear-gradient(${t.deg}deg, ${o} 0%, ${i} 100%)`;
243
- }
244
- function l(r, e) {
245
- if (typeof r != "string" || e > 1 || e < 0)
246
- return "rgba(0, 0, 0, 1)";
247
- if (r.startsWith("var(")) {
248
- const a = (1 - e) * 100;
249
- return `color-mix(in srgb, ${r}, transparent ${a}%)`;
250
- }
251
- if (r.startsWith("oklch"))
252
- return r.includes("/") ? r.replace(/\/\s*[\d.]+\s*\)/, `/ ${e})`) : r.replace(")", ` / ${e})`);
253
- const { r: t, g: o, b: i } = x(r);
254
- return `rgba(${t}, ${o}, ${i}, ${e})`;
255
- }
256
- const lr = l, X = ({
257
- color: r,
258
- theme: e,
259
- variant: t,
260
- gradient: o,
261
- autoContrast: i
262
- }) => {
263
- const a = P({ color: r, theme: e }), f = typeof i == "boolean" ? i : e.autoContrast;
264
- if (t === "filled") {
265
- const s = f && a.isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
266
- return a.isThemeColor ? a.shade === void 0 ? {
267
- background: `var(--mantine-color-${r}-filled)`,
268
- hover: `var(--mantine-color-${r}-filled-hover)`,
269
- color: s,
270
- border: `${n(1)} solid transparent`
271
- } : {
272
- background: `var(--mantine-color-${a.color}-${a.shade})`,
273
- hover: `var(--mantine-color-${a.color}-${a.shade === 9 ? 8 : a.shade + 1})`,
274
- color: s,
275
- border: `${n(1)} solid transparent`
276
- } : {
277
- background: r,
278
- hover: p(r, 0.1),
279
- color: s,
280
- border: `${n(1)} solid transparent`
281
- };
282
- }
283
- if (t === "light") {
284
- if (a.isThemeColor) {
285
- if (a.shade === void 0)
286
- return {
287
- background: `var(--mantine-color-${r}-light)`,
288
- hover: `var(--mantine-color-${r}-light-hover)`,
289
- color: `var(--mantine-color-${r}-light-color)`,
290
- border: `${n(1)} solid transparent`
291
- };
292
- const s = e.colors[a.color][a.shade];
293
- return {
294
- background: l(s, 0.1),
295
- hover: l(s, 0.12),
296
- color: `var(--mantine-color-${a.color}-${Math.min(a.shade, 6)})`,
297
- border: `${n(1)} solid transparent`
298
- };
299
- }
300
- return {
301
- background: l(r, 0.1),
302
- hover: l(r, 0.12),
303
- color: r,
304
- border: `${n(1)} solid transparent`
305
- };
306
- }
307
- if (t === "outline")
308
- return a.isThemeColor ? a.shade === void 0 ? {
309
- background: "transparent",
310
- hover: `var(--mantine-color-${r}-outline-hover)`,
311
- color: `var(--mantine-color-${r}-outline)`,
312
- border: `${n(1)} solid var(--mantine-color-${r}-outline)`
313
- } : {
314
- background: "transparent",
315
- hover: l(e.colors[a.color][a.shade], 0.05),
316
- color: `var(--mantine-color-${a.color}-${a.shade})`,
317
- border: `${n(1)} solid var(--mantine-color-${a.color}-${a.shade})`
318
- } : {
319
- background: "transparent",
320
- hover: l(r, 0.05),
321
- color: r,
322
- border: `${n(1)} solid ${r}`
323
- };
324
- if (t === "subtle") {
325
- if (a.isThemeColor) {
326
- if (a.shade === void 0)
327
- return {
328
- background: "transparent",
329
- hover: `var(--mantine-color-${r}-light-hover)`,
330
- color: `var(--mantine-color-${r}-light-color)`,
331
- border: `${n(1)} solid transparent`
332
- };
333
- const s = e.colors[a.color][a.shade];
334
- return {
335
- background: "transparent",
336
- hover: l(s, 0.12),
337
- color: `var(--mantine-color-${a.color}-${Math.min(a.shade, 6)})`,
338
- border: `${n(1)} solid transparent`
339
- };
340
- }
341
- return {
342
- background: "transparent",
343
- hover: l(r, 0.12),
344
- color: r,
345
- border: `${n(1)} solid transparent`
346
- };
347
- }
348
- return t === "transparent" ? a.isThemeColor ? a.shade === void 0 ? {
349
- background: "transparent",
350
- hover: "transparent",
351
- color: `var(--mantine-color-${r}-light-color)`,
352
- border: `${n(1)} solid transparent`
353
- } : {
354
- background: "transparent",
355
- hover: "transparent",
356
- color: `var(--mantine-color-${a.color}-${Math.min(a.shade, 6)})`,
357
- border: `${n(1)} solid transparent`
358
- } : {
359
- background: "transparent",
360
- hover: "transparent",
361
- color: r,
362
- border: `${n(1)} solid transparent`
363
- } : t === "white" ? a.isThemeColor ? a.shade === void 0 ? {
364
- background: "var(--mantine-color-white)",
365
- hover: p(e.white, 0.01),
366
- color: `var(--mantine-color-${r}-filled)`,
367
- border: `${n(1)} solid transparent`
368
- } : {
369
- background: "var(--mantine-color-white)",
370
- hover: p(e.white, 0.01),
371
- color: `var(--mantine-color-${a.color}-${a.shade})`,
372
- border: `${n(1)} solid transparent`
373
- } : {
374
- background: "var(--mantine-color-white)",
375
- hover: p(e.white, 0.01),
376
- color: r,
377
- border: `${n(1)} solid transparent`
378
- } : t === "gradient" ? {
379
- background: S(o, e),
380
- hover: S(o, e),
381
- color: "var(--mantine-color-white)",
382
- border: "none"
383
- } : t === "default" ? {
384
- background: "var(--mantine-color-default)",
385
- hover: "var(--mantine-color-default-hover)",
386
- color: "var(--mantine-color-default-color)",
387
- border: `${n(1)} solid var(--mantine-color-default-border)`
388
- } : {};
389
- }, Y = {
390
- dark: [
391
- "#C9C9C9",
392
- "#b8b8b8",
393
- "#828282",
394
- "#696969",
395
- "#424242",
396
- "#3b3b3b",
397
- "#2e2e2e",
398
- "#242424",
399
- "#1f1f1f",
400
- "#141414"
401
- ],
402
- gray: [
403
- "#f8f9fa",
404
- "#f1f3f5",
405
- "#e9ecef",
406
- "#dee2e6",
407
- "#ced4da",
408
- "#adb5bd",
409
- "#868e96",
410
- "#495057",
411
- "#343a40",
412
- "#212529"
413
- ],
414
- red: [
415
- "#fff5f5",
416
- "#ffe3e3",
417
- "#ffc9c9",
418
- "#ffa8a8",
419
- "#ff8787",
420
- "#ff6b6b",
421
- "#fa5252",
422
- "#f03e3e",
423
- "#e03131",
424
- "#c92a2a"
425
- ],
426
- pink: [
427
- "#fff0f6",
428
- "#ffdeeb",
429
- "#fcc2d7",
430
- "#faa2c1",
431
- "#f783ac",
432
- "#f06595",
433
- "#e64980",
434
- "#d6336c",
435
- "#c2255c",
436
- "#a61e4d"
437
- ],
438
- grape: [
439
- "#f8f0fc",
440
- "#f3d9fa",
441
- "#eebefa",
442
- "#e599f7",
443
- "#da77f2",
444
- "#cc5de8",
445
- "#be4bdb",
446
- "#ae3ec9",
447
- "#9c36b5",
448
- "#862e9c"
449
- ],
450
- violet: [
451
- "#f3f0ff",
452
- "#e5dbff",
453
- "#d0bfff",
454
- "#b197fc",
455
- "#9775fa",
456
- "#845ef7",
457
- "#7950f2",
458
- "#7048e8",
459
- "#6741d9",
460
- "#5f3dc4"
461
- ],
462
- indigo: [
463
- "#edf2ff",
464
- "#dbe4ff",
465
- "#bac8ff",
466
- "#91a7ff",
467
- "#748ffc",
468
- "#5c7cfa",
469
- "#4c6ef5",
470
- "#4263eb",
471
- "#3b5bdb",
472
- "#364fc7"
473
- ],
474
- blue: [
475
- "#e7f5ff",
476
- "#d0ebff",
477
- "#a5d8ff",
478
- "#74c0fc",
479
- "#4dabf7",
480
- "#339af0",
481
- "#228be6",
482
- "#1c7ed6",
483
- "#1971c2",
484
- "#1864ab"
485
- ],
486
- cyan: [
487
- "#e3fafc",
488
- "#c5f6fa",
489
- "#99e9f2",
490
- "#66d9e8",
491
- "#3bc9db",
492
- "#22b8cf",
493
- "#15aabf",
494
- "#1098ad",
495
- "#0c8599",
496
- "#0b7285"
497
- ],
498
- teal: [
499
- "#e6fcf5",
500
- "#c3fae8",
501
- "#96f2d7",
502
- "#63e6be",
503
- "#38d9a9",
504
- "#20c997",
505
- "#12b886",
506
- "#0ca678",
507
- "#099268",
508
- "#087f5b"
509
- ],
510
- green: [
511
- "#ebfbee",
512
- "#d3f9d8",
513
- "#b2f2bb",
514
- "#8ce99a",
515
- "#69db7c",
516
- "#51cf66",
517
- "#40c057",
518
- "#37b24d",
519
- "#2f9e44",
520
- "#2b8a3e"
521
- ],
522
- lime: [
523
- "#f4fce3",
524
- "#e9fac8",
525
- "#d8f5a2",
526
- "#c0eb75",
527
- "#a9e34b",
528
- "#94d82d",
529
- "#82c91e",
530
- "#74b816",
531
- "#66a80f",
532
- "#5c940d"
533
- ],
534
- yellow: [
535
- "#fff9db",
536
- "#fff3bf",
537
- "#ffec99",
538
- "#ffe066",
539
- "#ffd43b",
540
- "#fcc419",
541
- "#fab005",
542
- "#f59f00",
543
- "#f08c00",
544
- "#e67700"
545
- ],
546
- orange: [
547
- "#fff4e6",
548
- "#ffe8cc",
549
- "#ffd8a8",
550
- "#ffc078",
551
- "#ffa94d",
552
- "#ff922b",
553
- "#fd7e14",
554
- "#f76707",
555
- "#e8590c",
556
- "#d9480f"
557
- ]
558
- }, R = "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", A = {
559
- scale: 1,
560
- fontSmoothing: !0,
561
- focusRing: "auto",
562
- white: "#fff",
563
- black: "#000",
564
- colors: Y,
565
- primaryShade: { light: 6, dark: 8 },
566
- primaryColor: "blue",
567
- variantColorResolver: X,
568
- autoContrast: !1,
569
- luminanceThreshold: 0.3,
570
- fontFamily: R,
571
- fontFamilyMonospace: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",
572
- respectReducedMotion: !1,
573
- cursorType: "default",
574
- defaultGradient: { from: "blue", to: "cyan", deg: 45 },
575
- defaultRadius: "sm",
576
- activeClassName: "mantine-active",
577
- focusClassName: "",
578
- headings: {
579
- fontFamily: R,
580
- fontWeight: "700",
581
- textWrap: "wrap",
582
- sizes: {
583
- h1: { fontSize: n(34), lineHeight: "1.3" },
584
- h2: { fontSize: n(26), lineHeight: "1.35" },
585
- h3: { fontSize: n(22), lineHeight: "1.4" },
586
- h4: { fontSize: n(18), lineHeight: "1.45" },
587
- h5: { fontSize: n(16), lineHeight: "1.5" },
588
- h6: { fontSize: n(14), lineHeight: "1.5" }
589
- }
590
- },
591
- fontSizes: {
592
- xs: n(12),
593
- sm: n(14),
594
- md: n(16),
595
- lg: n(18),
596
- xl: n(20)
597
- },
598
- lineHeights: {
599
- xs: "1.4",
600
- sm: "1.45",
601
- md: "1.55",
602
- lg: "1.6",
603
- xl: "1.65"
604
- },
605
- radius: {
606
- xs: n(2),
607
- sm: n(4),
608
- md: n(8),
609
- lg: n(16),
610
- xl: n(32)
611
- },
612
- spacing: {
613
- xs: n(10),
614
- sm: n(12),
615
- md: n(16),
616
- lg: n(20),
617
- xl: n(32)
618
- },
619
- breakpoints: {
620
- xs: "36em",
621
- sm: "48em",
622
- md: "62em",
623
- lg: "75em",
624
- xl: "88em"
625
- },
626
- shadows: {
627
- xs: `0 ${n(1)} ${n(3)} rgba(0, 0, 0, 0.05), 0 ${n(1)} ${n(2)} rgba(0, 0, 0, 0.1)`,
628
- sm: `0 ${n(1)} ${n(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${n(10)} ${n(
629
- 15
630
- )} ${n(-5)}, rgba(0, 0, 0, 0.04) 0 ${n(7)} ${n(7)} ${n(-5)}`,
631
- md: `0 ${n(1)} ${n(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${n(20)} ${n(
632
- 25
633
- )} ${n(-5)}, rgba(0, 0, 0, 0.04) 0 ${n(10)} ${n(10)} ${n(-5)}`,
634
- lg: `0 ${n(1)} ${n(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${n(28)} ${n(
635
- 23
636
- )} ${n(-7)}, rgba(0, 0, 0, 0.04) 0 ${n(12)} ${n(12)} ${n(-7)}`,
637
- xl: `0 ${n(1)} ${n(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${n(36)} ${n(
638
- 28
639
- )} ${n(-7)}, rgba(0, 0, 0, 0.04) 0 ${n(17)} ${n(17)} ${n(-7)}`
640
- },
641
- other: {},
642
- components: {}
643
- }, B = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color", E = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
644
- function k(r) {
645
- return r < 0 || r > 9 ? !1 : parseInt(r.toString(), 10) === r;
646
- }
647
- function I(r) {
648
- if (!(r.primaryColor in r.colors))
649
- throw new Error(B);
650
- if (typeof r.primaryShade == "object" && (!k(r.primaryShade.dark) || !k(r.primaryShade.light)))
651
- throw new Error(E);
652
- if (typeof r.primaryShade == "number" && !k(r.primaryShade))
653
- throw new Error(E);
654
- }
655
- function q(r, e) {
656
- var o;
657
- if (!e)
658
- return I(r), r;
659
- const t = L(r, e);
660
- return e.fontFamily && !((o = e.headings) != null && o.fontFamily) && (t.headings.fontFamily = e.fontFamily), I(t), t;
661
- }
662
- const T = F(null), J = () => M(T) || A;
663
- function dr() {
664
- const r = M(T);
665
- if (!r)
666
- throw new Error(
667
- "@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app"
668
- );
669
- return r;
670
- }
671
- function K({
672
- theme: r,
673
- children: e,
674
- inherit: t = !0
675
- }) {
676
- const o = J(), i = H(
677
- () => q(t ? o : A, r),
678
- [r, o, t]
679
- );
680
- return /* @__PURE__ */ _(T.Provider, { value: i, children: e });
681
- }
682
- K.displayName = "@mantine/core/MantineThemeProvider";
683
- export {
684
- A as D,
685
- j as M,
686
- S as a,
687
- tr as b,
688
- O as c,
689
- lr as d,
690
- er as e,
691
- L as f,
692
- w as g,
693
- nr as h,
694
- K as i,
695
- cr as j,
696
- rr as k,
697
- fr as l,
698
- ar as m,
699
- or as n,
700
- ir as o,
701
- P as p,
702
- sr as q,
703
- n as r,
704
- dr as u
705
- };