fina-react-ds 1.0.29 → 1.0.31
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/lib/http.js +33 -34
- package/dist/themes/base.css +23 -27
- package/package.json +1 -1
package/dist/lib/http.js
CHANGED
|
@@ -1,52 +1,51 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var n = (t, e) => p(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import m from "qs";
|
|
4
|
-
const
|
|
4
|
+
const g = /* @__PURE__ */ n((t) => t != null, "valueExists"), j = /* @__PURE__ */ n((t, e) => {
|
|
5
5
|
if (t) {
|
|
6
6
|
if (t instanceof FormData)
|
|
7
7
|
return t;
|
|
8
|
-
if (
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return e;
|
|
8
|
+
if (e) {
|
|
9
|
+
const s = new FormData();
|
|
10
|
+
return console.log(t), console.log(Object.keys(t)), Object.keys(t).forEach((r) => {
|
|
11
|
+
if (console.log(r), Array.isArray(t[r])) {
|
|
12
|
+
console.log("array");
|
|
13
|
+
for (const a of t[r])
|
|
14
|
+
s.append(`${r}[]`, a || "");
|
|
15
|
+
} else
|
|
16
|
+
s.append(r, g(t[r]) ? t[r] : "");
|
|
17
|
+
}), s;
|
|
19
18
|
}
|
|
20
19
|
return JSON.stringify(t);
|
|
21
20
|
}
|
|
22
|
-
}, "formatBodyForRequest"),
|
|
23
|
-
let
|
|
24
|
-
return
|
|
25
|
-
}, "formatUrlForRequest"), v = /* @__PURE__ */
|
|
26
|
-
const
|
|
21
|
+
}, "formatBodyForRequest"), h = /* @__PURE__ */ n((t, e = null) => {
|
|
22
|
+
let s = t;
|
|
23
|
+
return e && (s += `?${m.stringify(e, { encode: !1 })}`), s;
|
|
24
|
+
}, "formatUrlForRequest"), v = /* @__PURE__ */ n(async (t, e, s = null, r = null, a = null, l = !1) => {
|
|
25
|
+
const c = new Headers({
|
|
27
26
|
Accept: "application/json",
|
|
28
|
-
...
|
|
27
|
+
...a
|
|
29
28
|
});
|
|
30
|
-
!
|
|
31
|
-
const
|
|
29
|
+
!l && !(r instanceof FormData) && c.append("Content-Type", "application/json");
|
|
30
|
+
const i = {
|
|
32
31
|
method: t,
|
|
33
|
-
headers:
|
|
34
|
-
body: j(
|
|
32
|
+
headers: c,
|
|
33
|
+
body: j(r, l)
|
|
35
34
|
};
|
|
36
|
-
let
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
).catch((f) => (
|
|
41
|
-
return
|
|
42
|
-
}, "requestApi"), w = /* @__PURE__ */
|
|
35
|
+
let o = null;
|
|
36
|
+
const u = await fetch(
|
|
37
|
+
h(e, s),
|
|
38
|
+
i
|
|
39
|
+
).catch((f) => (o = f, null));
|
|
40
|
+
return o ? Promise.reject(o) : w(u);
|
|
41
|
+
}, "requestApi"), w = /* @__PURE__ */ n(async (t) => {
|
|
43
42
|
if (t.status === 204)
|
|
44
43
|
return Promise.resolve(null);
|
|
45
|
-
const
|
|
46
|
-
return t.status >= 200 && t.status < 300 ? Promise.resolve(
|
|
44
|
+
const e = await (t.headers.get("Content-Type") === "application/json" ? t.json() : t.blob()).catch(() => "Response parsing error");
|
|
45
|
+
return t.status >= 200 && t.status < 300 ? Promise.resolve(e) : t.status >= 400 && t.status <= 500 ? Promise.reject({
|
|
47
46
|
status: t.status,
|
|
48
|
-
raw:
|
|
49
|
-
message:
|
|
47
|
+
raw: e,
|
|
48
|
+
message: e
|
|
50
49
|
}) : Promise.reject({
|
|
51
50
|
status: t.status,
|
|
52
51
|
raw: "",
|
package/dist/themes/base.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme {
|
|
@@ -1095,12 +1095,12 @@
|
|
|
1095
1095
|
.text-info-light-foreground {
|
|
1096
1096
|
color: var(--info-light-foreground);
|
|
1097
1097
|
}
|
|
1098
|
+
.text-input-accent-foreground {
|
|
1099
|
+
color: var(--input-accent-foreground);
|
|
1100
|
+
}
|
|
1098
1101
|
.text-muted {
|
|
1099
1102
|
color: var(--muted);
|
|
1100
1103
|
}
|
|
1101
|
-
.text-muted-foreground {
|
|
1102
|
-
color: var(--muted-foreground);
|
|
1103
|
-
}
|
|
1104
1104
|
.text-placeholder {
|
|
1105
1105
|
color: var(--placeholder);
|
|
1106
1106
|
}
|
|
@@ -1581,11 +1581,6 @@
|
|
|
1581
1581
|
color: var(--foreground);
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
|
-
.placeholder\:text-muted-foreground {
|
|
1585
|
-
&::placeholder {
|
|
1586
|
-
color: var(--muted-foreground);
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
1584
|
.placeholder\:text-placeholder {
|
|
1590
1585
|
&::placeholder {
|
|
1591
1586
|
color: var(--placeholder);
|
|
@@ -3037,13 +3032,6 @@
|
|
|
3037
3032
|
initial-value: 0;
|
|
3038
3033
|
}
|
|
3039
3034
|
:root {
|
|
3040
|
-
--background: oklch(0.9659 0.008 286.25);
|
|
3041
|
-
--foreground: oklch(0.145 0 0);
|
|
3042
|
-
--card: oklch(1 0 0);
|
|
3043
|
-
--card-foreground: oklch(0.145 0 0);
|
|
3044
|
-
--tabs: oklch(1 0 0);
|
|
3045
|
-
--popover: oklch(1 0 0);
|
|
3046
|
-
--popover-foreground: oklch(0.145 0 0);
|
|
3047
3035
|
--primary: oklch(0.4481 0.0944 269.57);
|
|
3048
3036
|
--primary-foreground: oklch(1 0 0);
|
|
3049
3037
|
--primary-light: oklch(0.9219 0.0113 269.54);
|
|
@@ -3066,15 +3054,22 @@
|
|
|
3066
3054
|
--success-light-foreground: oklch(0.6095 0.1094 179.62);
|
|
3067
3055
|
--dark: oklch(0 0 0);
|
|
3068
3056
|
--dark-foreground: oklch(1 0 0);
|
|
3057
|
+
--background: oklch(0.9659 0.008 286.25);
|
|
3058
|
+
--foreground: oklch(0.145 0 0);
|
|
3069
3059
|
--border: oklch(0.922 0 0);
|
|
3070
3060
|
--ring: oklch(0.708 0 0);
|
|
3071
3061
|
--muted: oklch(0.5517 0.0138 285.94);
|
|
3072
3062
|
--accent: oklch(0.9674 0.0013 286.38);
|
|
3073
3063
|
--accent-foreground: oklch(0.2103 0.0059 285.89);
|
|
3064
|
+
--card: oklch(1 0 0);
|
|
3065
|
+
--card-foreground: oklch(0.145 0 0);
|
|
3066
|
+
--tabs: oklch(1 0 0);
|
|
3067
|
+
--popover: oklch(1 0 0);
|
|
3068
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
3074
3069
|
--input: oklch(1 0 0);
|
|
3075
3070
|
--input-border: oklch(0.922 0 0);
|
|
3076
3071
|
--input-accent: oklch(0.922 0 0);
|
|
3077
|
-
--input-accent-foreground: oklch(0.
|
|
3072
|
+
--input-accent-foreground: oklch(0.145 0 0);
|
|
3078
3073
|
--placeholder: oklch(0.5517 0.0138 285.94);
|
|
3079
3074
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
3080
3075
|
--chart-2: oklch(0.6 0.118 184.704);
|
|
@@ -3091,13 +3086,6 @@
|
|
|
3091
3086
|
--sidebar-ring: oklch(0.708 0 0);
|
|
3092
3087
|
}
|
|
3093
3088
|
.dark {
|
|
3094
|
-
--background: oklch(0.2293 0.009 255.61);
|
|
3095
|
-
--foreground: oklch(0.985 0 0);
|
|
3096
|
-
--card: oklch(0.2621 0.0095 248.19);
|
|
3097
|
-
--card-foreground: oklch(0.985 0 0);
|
|
3098
|
-
--tabs: oklch(0.2621 0.0095 248.19);
|
|
3099
|
-
--popover: oklch(0.2293 0.009 255.61);
|
|
3100
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
3101
3089
|
--primary: oklch(0.4481 0.0944 269.57);
|
|
3102
3090
|
--primary-foreground: oklch(1 0 0);
|
|
3103
3091
|
--primary-light: oklch(0.289 0.0214 265.85);
|
|
@@ -3120,15 +3108,23 @@
|
|
|
3120
3108
|
--success-light-foreground: oklch(0.7381 0.1169 182.21);
|
|
3121
3109
|
--dark: oklch(0.3232 0.0068 248.04);
|
|
3122
3110
|
--dark-foreground: oklch(1 0 0);
|
|
3111
|
+
--background: oklch(0.2293 0.009 255.61);
|
|
3112
|
+
--foreground: oklch(0.985 0 0);
|
|
3123
3113
|
--border: oklch(1 0 0 / 10%);
|
|
3124
3114
|
--ring: oklch(0.556 0 0);
|
|
3115
|
+
--muted: oklch(0.708 0 0);
|
|
3116
|
+
--accent: oklch(0.3 0.007 248.07);
|
|
3117
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
3118
|
+
--card: oklch(0.2621 0.0095 248.19);
|
|
3119
|
+
--card-foreground: oklch(0.985 0 0);
|
|
3120
|
+
--tabs: oklch(0.2621 0.0095 248.19);
|
|
3121
|
+
--popover: oklch(0.2293 0.009 255.61);
|
|
3122
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
3125
3123
|
--input: oklch(0.2988 0.0092 248.14);
|
|
3126
3124
|
--input-border: oklch(1 0 0 / 15%);
|
|
3127
3125
|
--input-accent: oklch(1 0 0 / 15%);
|
|
3126
|
+
--input-accent-foreground: oklch(0.985 0 0);
|
|
3128
3127
|
--placeholder: oklch(0.708 0 0);
|
|
3129
|
-
--muted: oklch(0.708 0 0);
|
|
3130
|
-
--accent: oklch(0.3 0.007 248.07);
|
|
3131
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
3132
3128
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
3133
3129
|
--chart-2: oklch(0.696 0.17 162.48);
|
|
3134
3130
|
--chart-3: oklch(0.769 0.188 70.08);
|