@nutui/taro-biz 0.0.1-alpha.1 → 0.0.1-alpha.4
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/cjs/index/index.js +1 -0
- package/dist/cjs/jdmaterialsblurtarget/index.js +1 -1
- package/dist/cjs/jdmaterialsblurtarget.taro-B8SyDQOM.js +1 -0
- package/dist/cjs/jdmaterialview/index.js +1 -1
- package/dist/cjs/jdmaterialview.taro-Cd1WSYbL.js +1 -0
- package/dist/cjs/typings-DP_XKs5o.js +1 -0
- package/dist/es/index/index.js +6 -0
- package/dist/es/jdmaterialsblurtarget/index.js +2 -13
- package/dist/es/jdmaterialsblurtarget.taro-D9cwbzQi.mjs +17 -0
- package/dist/es/jdmaterialview/index.js +6 -161
- package/dist/es/jdmaterialview.taro-drVYyPsV.mjs +208 -0
- package/dist/es/typings-CdeuPEKG.mjs +7 -0
- package/package.json +17 -5
- package/readme.md +16 -7
- package/dist/cjs/typings-oda_k1Zf.js +0 -30
- package/dist/es/typings-Cti4YWFr.mjs +0 -635
- package/dist-taro/cjs/jdmaterialsblurtarget/index.js +0 -1
- package/dist-taro/cjs/jdmaterialview/index.js +0 -1
- package/dist-taro/cjs/typings-oda_k1Zf.js +0 -30
- package/dist-taro/es/jdmaterialsblurtarget/index.js +0 -16
- package/dist-taro/es/jdmaterialview/index.js +0 -178
- package/dist-taro/es/typings-Cti4YWFr.mjs +0 -635
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jdmaterialview.taro-Cd1WSYbL.js"),r=require("../jdmaterialsblurtarget.taro-B8SyDQOM.js");exports.JDMaterialView=e.JDMaterialView;exports.JDMaterialsBlurTarget=r.JDMaterialsBlurTarget;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("../jdmaterialsblurtarget.taro-B8SyDQOM.js");module.exports=r.JDMaterialsBlurTarget;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),o=require("classnames"),m=require("@tarojs/components"),d=require("./typings-DP_XKs5o.js"),p={...d.ComponentDefaults},e=t=>{const{className:r,style:a,children:l,blurId:n,...c}={...p,...t},i=o("nut-jdmaterialsblurtarget",r),s={};return s.blurId=n,u.jsx(m.View,{className:i,style:a,...s,...c,children:l})};e.displayName="NutJDMaterialsBlurTarget";exports.JDMaterialsBlurTarget=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jdmaterialview.taro-Cd1WSYbL.js");exports.default=e.JDMaterialView;exports.getCornerRadius=e.getCornerRadius;exports.getFrostedPreset=e.getFrostedPreset;exports.getPreset=e.getPreset;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),G=require("react"),B=require("classnames"),q=require("@tarojs/taro"),F=require("@tarojs/components"),N=require("@jdtaro/ui"),P=require("./typings-DP_XKs5o.js"),w=26;function I(e,r,t){const l=t>=w;switch(e){case"top-solid":return l?{liquidGlass:{style:"regular",interactive:!0,tintColor:r?"rgba(0, 0, 0, 0.75)":"rgba(255, 255, 255, 0.45)",showTintOverlay:r}}:{fallbackStyle:{backgroundColor:r?"#2A2F36":"#FFFFFF"}};case"top-plain":return l?{liquidGlass:{style:"regular",interactive:!0,tintColor:r?"rgba(0, 0, 0, 0.75)":"rgba(255, 255, 255, 0.45)",showTintOverlay:r}}:{};case"top-bar":return{frostedGlass:{style:r?"thick-dark":"thick-light"}};case"promotion-fair":return{liquidGlass:{style:"clear",interactive:!1},frostedGlass:{style:"thick-light",alpha:.85}};case"promotion-deep":return{liquidGlass:{style:"clear",interactive:!1},frostedGlass:{style:"thick-light",alpha:.35}};case"immersive":return l?{liquidGlass:{style:"regular",forceDark:!0,interactive:!0,tintColor:"rgba(0, 0, 0, 0.75)"}}:{frostedGlass:{style:"regular-dark",alpha:.4}};case"bottom-bar":return{gradientBlur:{minBlur:.5,maxBlur:.8,overlayAlpha:.9,overlayColor:r?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)"}};default:return{}}}function L(e,r){const t=r>=w;switch(e){case"top-bar":case"bottom-bar":return 0;case"top-plain":return t?12:0;case"top-solid":case"promotion-fair":case"promotion-deep":case"immersive":return t?12:8;default:return 0}}const y="255, 255, 255",v="31, 34, 38";function $(e,r){switch(e){case"top-solid":return{blurRadius:40,tintColor:r?"rgba(42, 47, 54, 1)":"rgba(255, 255, 255, 1)"};case"top-plain":return{blurRadius:40};case"top-bar":return{blurRadius:40,tintColor:r?`rgba(${v}, 0.9)`:`rgba(${y}, 0.9)`};case"promotion-fair":return{blurRadius:40,tintColor:`rgba(${y}, 0.85)`};case"promotion-deep":return{blurRadius:40,tintColor:`rgba(${y}, 0.2)`};case"immersive":return{blurRadius:40,tintColor:`rgba(${v}, 0.4)`};case"bottom-bar":return{blurRadius:50,tintColor:r?`rgba(${v}, 0.8)`:`rgba(${y}, 0.8)`};default:return{blurRadius:40}}}function D(e,r){switch(e){case"top-solid":return{blurScale:1,borderRadius:8,overlayColor:r?"#2A2F36":"#FFFFFF"};case"top-plain":return{blurScale:0,borderRadius:8};case"top-bar":return{blurScale:.9,borderRadius:0};case"promotion-fair":return{blurScale:.85,borderRadius:8};case"promotion-deep":return{blurScale:.2,borderRadius:8};case"immersive":return{blurScale:.4,borderRadius:8};case"bottom-bar":return{blurScale:.2,borderRadius:0};default:return{blurScale:0,borderRadius:0}}}const V={...P.ComponentDefaults};function J(){return["harmony","harmonyhybrid","jdharmony"].includes(q.getEnv().toLowerCase())}function _(e){return e.style.startsWith("thin")?10:e.style.startsWith("thick")?40:20}function T(e){const r={},t=e.maxBlur??0;return t>0&&(r.backdropFilter=`blur(${t*50}px)`),e.overlayAlpha&&e.overlayAlpha>0&&(r.backgroundColor=e.overlayColor||"rgba(255,255,255,1)",r.opacity=e.overlayAlpha),r}function E(){var e;try{const r=q.getSystemInfoSync(),t=String((r==null?void 0:r.platform)||"").toLowerCase(),l=String((r==null?void 0:r.system)||""),a=t==="ios",c=a?parseInt(((e=l.match(/\d+/))==null?void 0:e[0])||"0",10):0,f=String((r==null?void 0:r.theme)||"").toLowerCase()==="dark";return{isIOS:a,iosMajor:c,dark:f}}catch{return{isIOS:!1,iosMajor:0,dark:!1}}}const O=e=>{const{className:r,style:t,children:l,scene:a,targetId:c,liquidGlass:f,frostedGlass:k,gradientBlur:A,overlayColor:h,...g}={...V,...e},m=B("nut-jdmaterialview",r),{isIOS:x,iosMajor:S,dark:b}=G.useMemo(()=>E(),[]),o=G.useMemo(()=>a?I(a,b,S):void 0,[a,b,S]),M=f??(o==null?void 0:o.liquidGlass),i=k??(o==null?void 0:o.frostedGlass),d=A??(o==null?void 0:o.gradientBlur);if(x){const s={...o==null?void 0:o.fallbackStyle,...t};return p.jsx(N.JDIOSMaterialView,{className:m,style:s,liquidGlass:M,frostedGlass:i,gradientBlur:d,...g,children:l})}if(J()){const s=a?D(a,b):void 0,n={};s&&(n.blurScale=s.blurScale,n.borderRadius=s.borderRadius),n.colorMode=b?"dark":"light";const R=h??(s==null?void 0:s.overlayColor);return R&&(n.overlayColor=R),c&&(n.targetId=c),a&&(n.scene=a),p.jsx(F.View,{className:m,style:t,...n,...g,children:l})}const j=(()=>{const s={...t};if(i){const n=_(i);s.backdropFilter=`blur(${n}px)`,i.alpha!==void 0&&(s.opacity=i.alpha)}else d&&Object.assign(s,T(d));return s})(),C=h??(i?i.style.endsWith("-dark")?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.3)":void 0),u={};return u.targetId=c,a&&(u.scene=a),i&&(u.frostedGlass=JSON.stringify(i)),d&&(u.gradientBlur=JSON.stringify(d)),C&&(u.overlayColor=C),p.jsx(F.View,{className:m,style:j,...u,...g,children:l})};O.displayName="NutJDMaterialView";exports.JDMaterialView=O;exports.getCornerRadius=L;exports.getFrostedPreset=$;exports.getPreset=I;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s={className:"",style:{}};exports.ComponentDefaults=s;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import u from "classnames";
|
|
3
|
-
const m = {
|
|
4
|
-
...c
|
|
5
|
-
}, n = (s) => {
|
|
6
|
-
const { className: a, style: t, children: r, blurId: e, ...l } = {
|
|
7
|
-
...m,
|
|
8
|
-
...s
|
|
9
|
-
}, o = u("nut-jdmaterialsblurtarget", a);
|
|
10
|
-
return /* @__PURE__ */ i.jsx("div", { className: o, style: t, "data-blur-id": e, ...l, children: r });
|
|
11
|
-
};
|
|
12
|
-
n.displayName = "NutJDMaterialsBlurTarget";
|
|
1
|
+
import { J as r } from "../jdmaterialsblurtarget.taro-D9cwbzQi.mjs";
|
|
13
2
|
export {
|
|
14
|
-
|
|
3
|
+
r as default
|
|
15
4
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import i from "classnames";
|
|
3
|
+
import { View as n } from "@tarojs/components";
|
|
4
|
+
import { C as u } from "./typings-CdeuPEKG.mjs";
|
|
5
|
+
const p = {
|
|
6
|
+
...u
|
|
7
|
+
}, f = (r) => {
|
|
8
|
+
const { className: t, style: a, children: e, blurId: l, ...o } = {
|
|
9
|
+
...p,
|
|
10
|
+
...r
|
|
11
|
+
}, m = i("nut-jdmaterialsblurtarget", t), s = {};
|
|
12
|
+
return s.blurId = l, /* @__PURE__ */ c(n, { className: m, style: a, ...s, ...o, children: e });
|
|
13
|
+
};
|
|
14
|
+
f.displayName = "NutJDMaterialsBlurTarget";
|
|
15
|
+
export {
|
|
16
|
+
f as J
|
|
17
|
+
};
|
|
@@ -1,163 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import k from "classnames";
|
|
4
|
-
const d = 26;
|
|
5
|
-
function I(t, r, e) {
|
|
6
|
-
const s = e >= d;
|
|
7
|
-
switch (t) {
|
|
8
|
-
case "top-solid":
|
|
9
|
-
return s ? {
|
|
10
|
-
liquidGlass: {
|
|
11
|
-
style: "regular",
|
|
12
|
-
interactive: !0,
|
|
13
|
-
tintColor: r ? "rgba(0, 0, 0, 0.75)" : "rgba(255, 255, 255, 0.45)",
|
|
14
|
-
showTintOverlay: r
|
|
15
|
-
}
|
|
16
|
-
} : { fallbackStyle: { backgroundColor: r ? "#2A2F36" : "#FFFFFF" } };
|
|
17
|
-
case "top-plain":
|
|
18
|
-
return s ? {
|
|
19
|
-
liquidGlass: {
|
|
20
|
-
style: "regular",
|
|
21
|
-
interactive: !0,
|
|
22
|
-
tintColor: r ? "rgba(0, 0, 0, 0.75)" : "rgba(255, 255, 255, 0.45)",
|
|
23
|
-
showTintOverlay: r
|
|
24
|
-
}
|
|
25
|
-
} : {};
|
|
26
|
-
case "top-bar":
|
|
27
|
-
return { frostedGlass: { style: r ? "thick-dark" : "thick-light" } };
|
|
28
|
-
case "promotion-fair":
|
|
29
|
-
return {
|
|
30
|
-
liquidGlass: { style: "clear", interactive: !1 },
|
|
31
|
-
frostedGlass: { style: "thick-light", alpha: 0.85 }
|
|
32
|
-
};
|
|
33
|
-
case "promotion-deep":
|
|
34
|
-
return {
|
|
35
|
-
liquidGlass: { style: "clear", interactive: !1 },
|
|
36
|
-
frostedGlass: { style: "thick-light", alpha: 0.35 }
|
|
37
|
-
};
|
|
38
|
-
case "immersive":
|
|
39
|
-
return s ? {
|
|
40
|
-
liquidGlass: {
|
|
41
|
-
style: "regular",
|
|
42
|
-
forceDark: !0,
|
|
43
|
-
interactive: !0,
|
|
44
|
-
tintColor: "rgba(0, 0, 0, 0.75)"
|
|
45
|
-
}
|
|
46
|
-
} : { frostedGlass: { style: "regular-dark", alpha: 0.4 } };
|
|
47
|
-
case "bottom-bar":
|
|
48
|
-
return {
|
|
49
|
-
gradientBlur: {
|
|
50
|
-
minBlur: 0.5,
|
|
51
|
-
maxBlur: 0.8,
|
|
52
|
-
overlayAlpha: 0.9,
|
|
53
|
-
overlayColor: r ? "rgba(0, 0, 0, 1)" : "rgba(255, 255, 255, 1)"
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
default:
|
|
57
|
-
return {};
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function N(t, r) {
|
|
61
|
-
const e = r >= d;
|
|
62
|
-
switch (t) {
|
|
63
|
-
case "top-bar":
|
|
64
|
-
case "bottom-bar":
|
|
65
|
-
return 0;
|
|
66
|
-
case "top-plain":
|
|
67
|
-
return e ? 12 : 0;
|
|
68
|
-
case "top-solid":
|
|
69
|
-
case "promotion-fair":
|
|
70
|
-
case "promotion-deep":
|
|
71
|
-
case "immersive":
|
|
72
|
-
return e ? 12 : 8;
|
|
73
|
-
default:
|
|
74
|
-
return 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const u = "255, 255, 255", b = "31, 34, 38";
|
|
78
|
-
function G(t, r) {
|
|
79
|
-
switch (t) {
|
|
80
|
-
case "top-solid":
|
|
81
|
-
return {
|
|
82
|
-
blurRadius: 40,
|
|
83
|
-
tintColor: r ? "rgba(42, 47, 54, 1)" : "rgba(255, 255, 255, 1)"
|
|
84
|
-
};
|
|
85
|
-
case "top-plain":
|
|
86
|
-
return { blurRadius: 40 };
|
|
87
|
-
case "top-bar":
|
|
88
|
-
return {
|
|
89
|
-
blurRadius: 40,
|
|
90
|
-
tintColor: r ? `rgba(${b}, 0.9)` : `rgba(${u}, 0.9)`
|
|
91
|
-
};
|
|
92
|
-
case "promotion-fair":
|
|
93
|
-
return { blurRadius: 40, tintColor: `rgba(${u}, 0.85)` };
|
|
94
|
-
case "promotion-deep":
|
|
95
|
-
return { blurRadius: 40, tintColor: `rgba(${u}, 0.2)` };
|
|
96
|
-
case "immersive":
|
|
97
|
-
return { blurRadius: 40, tintColor: `rgba(${b}, 0.4)` };
|
|
98
|
-
case "bottom-bar":
|
|
99
|
-
return {
|
|
100
|
-
blurRadius: 50,
|
|
101
|
-
tintColor: r ? `rgba(${b}, 0.8)` : `rgba(${u}, 0.8)`
|
|
102
|
-
};
|
|
103
|
-
default:
|
|
104
|
-
return { blurRadius: 40 };
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
const R = {
|
|
108
|
-
...h
|
|
109
|
-
};
|
|
110
|
-
function x(t) {
|
|
111
|
-
return t.style.startsWith("thin") ? 10 : t.style.startsWith("thick") ? 40 : 20;
|
|
112
|
-
}
|
|
113
|
-
function F(t) {
|
|
114
|
-
const r = {}, e = t.maxBlur ?? 0;
|
|
115
|
-
if (e > 0 && (r.backdropFilter = `blur(${e * 50}px)`, r.WebkitBackdropFilter = `blur(${e * 50}px)`), t.overlayAlpha && t.overlayAlpha > 0) {
|
|
116
|
-
const s = t.overlayColor || "rgba(255,255,255,1)";
|
|
117
|
-
r.backgroundColor = s, r.opacity = t.overlayAlpha;
|
|
118
|
-
}
|
|
119
|
-
return r;
|
|
120
|
-
}
|
|
121
|
-
const $ = (t) => {
|
|
122
|
-
const {
|
|
123
|
-
className: r,
|
|
124
|
-
style: e,
|
|
125
|
-
children: s,
|
|
126
|
-
targetId: p,
|
|
127
|
-
frostedGlass: l,
|
|
128
|
-
gradientBlur: i,
|
|
129
|
-
overlayColor: n,
|
|
130
|
-
liquidGlass: A,
|
|
131
|
-
scene: c,
|
|
132
|
-
...f
|
|
133
|
-
} = { ...R, ...t }, g = k("nut-jdmaterialview", r), m = v(() => {
|
|
134
|
-
const a = { ...e };
|
|
135
|
-
if (c && !l && !i) {
|
|
136
|
-
const o = G(c, !1);
|
|
137
|
-
a.backdropFilter = `blur(${o.blurRadius}px)`, a.WebkitBackdropFilter = `blur(${o.blurRadius}px)`, o.tintColor && (a.backgroundColor = o.tintColor);
|
|
138
|
-
} else if (l) {
|
|
139
|
-
const o = x(l);
|
|
140
|
-
a.backdropFilter = `blur(${o}px)`, a.WebkitBackdropFilter = `blur(${o}px)`, l.alpha !== void 0 && (a.opacity = l.alpha);
|
|
141
|
-
const y = l.style.endsWith("-dark");
|
|
142
|
-
a.backgroundColor || (a.backgroundColor = y ? "rgba(0, 0, 0, 0.3)" : "rgba(255, 255, 255, 0.3)");
|
|
143
|
-
} else i && Object.assign(a, F(i));
|
|
144
|
-
return n && (a.backgroundColor = n), a;
|
|
145
|
-
}, [e, c, l, i, n]);
|
|
146
|
-
return /* @__PURE__ */ C.jsx(
|
|
147
|
-
"div",
|
|
148
|
-
{
|
|
149
|
-
className: g,
|
|
150
|
-
style: m,
|
|
151
|
-
"data-target-id": p,
|
|
152
|
-
...f,
|
|
153
|
-
children: s
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
};
|
|
157
|
-
$.displayName = "NutJDMaterialView";
|
|
1
|
+
import { J as r } from "../jdmaterialview.taro-drVYyPsV.mjs";
|
|
2
|
+
import { g as s, a as o, b as g } from "../jdmaterialview.taro-drVYyPsV.mjs";
|
|
158
3
|
export {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
4
|
+
r as default,
|
|
5
|
+
s as getCornerRadius,
|
|
6
|
+
o as getFrostedPreset,
|
|
7
|
+
g as getPreset
|
|
163
8
|
};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as R } from "react";
|
|
3
|
+
import B from "classnames";
|
|
4
|
+
import N, { getEnv as x } from "@tarojs/taro";
|
|
5
|
+
import { View as F } from "@tarojs/components";
|
|
6
|
+
import { JDIOSMaterialView as L } from "@jdtaro/ui";
|
|
7
|
+
import { C as M } from "./typings-CdeuPEKG.mjs";
|
|
8
|
+
const I = 26;
|
|
9
|
+
function $(t, r, e) {
|
|
10
|
+
const l = e >= I;
|
|
11
|
+
switch (t) {
|
|
12
|
+
case "top-solid":
|
|
13
|
+
return l ? {
|
|
14
|
+
liquidGlass: {
|
|
15
|
+
style: "regular",
|
|
16
|
+
interactive: !0,
|
|
17
|
+
tintColor: r ? "rgba(0, 0, 0, 0.75)" : "rgba(255, 255, 255, 0.45)",
|
|
18
|
+
showTintOverlay: r
|
|
19
|
+
}
|
|
20
|
+
} : { fallbackStyle: { backgroundColor: r ? "#2A2F36" : "#FFFFFF" } };
|
|
21
|
+
case "top-plain":
|
|
22
|
+
return l ? {
|
|
23
|
+
liquidGlass: {
|
|
24
|
+
style: "regular",
|
|
25
|
+
interactive: !0,
|
|
26
|
+
tintColor: r ? "rgba(0, 0, 0, 0.75)" : "rgba(255, 255, 255, 0.45)",
|
|
27
|
+
showTintOverlay: r
|
|
28
|
+
}
|
|
29
|
+
} : {};
|
|
30
|
+
case "top-bar":
|
|
31
|
+
return { frostedGlass: { style: r ? "thick-dark" : "thick-light" } };
|
|
32
|
+
case "promotion-fair":
|
|
33
|
+
return {
|
|
34
|
+
liquidGlass: { style: "clear", interactive: !1 },
|
|
35
|
+
frostedGlass: { style: "thick-light", alpha: 0.85 }
|
|
36
|
+
};
|
|
37
|
+
case "promotion-deep":
|
|
38
|
+
return {
|
|
39
|
+
liquidGlass: { style: "clear", interactive: !1 },
|
|
40
|
+
frostedGlass: { style: "thick-light", alpha: 0.35 }
|
|
41
|
+
};
|
|
42
|
+
case "immersive":
|
|
43
|
+
return l ? {
|
|
44
|
+
liquidGlass: {
|
|
45
|
+
style: "regular",
|
|
46
|
+
forceDark: !0,
|
|
47
|
+
interactive: !0,
|
|
48
|
+
tintColor: "rgba(0, 0, 0, 0.75)"
|
|
49
|
+
}
|
|
50
|
+
} : { frostedGlass: { style: "regular-dark", alpha: 0.4 } };
|
|
51
|
+
case "bottom-bar":
|
|
52
|
+
return {
|
|
53
|
+
gradientBlur: {
|
|
54
|
+
minBlur: 0.5,
|
|
55
|
+
maxBlur: 0.8,
|
|
56
|
+
overlayAlpha: 0.9,
|
|
57
|
+
overlayColor: r ? "rgba(0, 0, 0, 1)" : "rgba(255, 255, 255, 1)"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
default:
|
|
61
|
+
return {};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function X(t, r) {
|
|
65
|
+
const e = r >= I;
|
|
66
|
+
switch (t) {
|
|
67
|
+
case "top-bar":
|
|
68
|
+
case "bottom-bar":
|
|
69
|
+
return 0;
|
|
70
|
+
case "top-plain":
|
|
71
|
+
return e ? 12 : 0;
|
|
72
|
+
case "top-solid":
|
|
73
|
+
case "promotion-fair":
|
|
74
|
+
case "promotion-deep":
|
|
75
|
+
case "immersive":
|
|
76
|
+
return e ? 12 : 8;
|
|
77
|
+
default:
|
|
78
|
+
return 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const m = "255, 255, 255", v = "31, 34, 38";
|
|
82
|
+
function Z(t, r) {
|
|
83
|
+
switch (t) {
|
|
84
|
+
case "top-solid":
|
|
85
|
+
return {
|
|
86
|
+
blurRadius: 40,
|
|
87
|
+
tintColor: r ? "rgba(42, 47, 54, 1)" : "rgba(255, 255, 255, 1)"
|
|
88
|
+
};
|
|
89
|
+
case "top-plain":
|
|
90
|
+
return { blurRadius: 40 };
|
|
91
|
+
case "top-bar":
|
|
92
|
+
return {
|
|
93
|
+
blurRadius: 40,
|
|
94
|
+
tintColor: r ? `rgba(${v}, 0.9)` : `rgba(${m}, 0.9)`
|
|
95
|
+
};
|
|
96
|
+
case "promotion-fair":
|
|
97
|
+
return { blurRadius: 40, tintColor: `rgba(${m}, 0.85)` };
|
|
98
|
+
case "promotion-deep":
|
|
99
|
+
return { blurRadius: 40, tintColor: `rgba(${m}, 0.2)` };
|
|
100
|
+
case "immersive":
|
|
101
|
+
return { blurRadius: 40, tintColor: `rgba(${v}, 0.4)` };
|
|
102
|
+
case "bottom-bar":
|
|
103
|
+
return {
|
|
104
|
+
blurRadius: 50,
|
|
105
|
+
tintColor: r ? `rgba(${v}, 0.8)` : `rgba(${m}, 0.8)`
|
|
106
|
+
};
|
|
107
|
+
default:
|
|
108
|
+
return { blurRadius: 40 };
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function P(t, r) {
|
|
112
|
+
switch (t) {
|
|
113
|
+
case "top-solid":
|
|
114
|
+
return { blurScale: 1, borderRadius: 8, overlayColor: r ? "#2A2F36" : "#FFFFFF" };
|
|
115
|
+
case "top-plain":
|
|
116
|
+
return { blurScale: 0, borderRadius: 8 };
|
|
117
|
+
case "top-bar":
|
|
118
|
+
return { blurScale: 0.9, borderRadius: 0 };
|
|
119
|
+
case "promotion-fair":
|
|
120
|
+
return { blurScale: 0.85, borderRadius: 8 };
|
|
121
|
+
case "promotion-deep":
|
|
122
|
+
return { blurScale: 0.2, borderRadius: 8 };
|
|
123
|
+
case "immersive":
|
|
124
|
+
return { blurScale: 0.4, borderRadius: 8 };
|
|
125
|
+
case "bottom-bar":
|
|
126
|
+
return { blurScale: 0.2, borderRadius: 0 };
|
|
127
|
+
default:
|
|
128
|
+
return { blurScale: 0, borderRadius: 0 };
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const j = {
|
|
132
|
+
...M
|
|
133
|
+
};
|
|
134
|
+
function D() {
|
|
135
|
+
return ["harmony", "harmonyhybrid", "jdharmony"].includes(
|
|
136
|
+
x().toLowerCase()
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
function J(t) {
|
|
140
|
+
return t.style.startsWith("thin") ? 10 : t.style.startsWith("thick") ? 40 : 20;
|
|
141
|
+
}
|
|
142
|
+
function V(t) {
|
|
143
|
+
const r = {}, e = t.maxBlur ?? 0;
|
|
144
|
+
return e > 0 && (r.backdropFilter = `blur(${e * 50}px)`), t.overlayAlpha && t.overlayAlpha > 0 && (r.backgroundColor = t.overlayColor || "rgba(255,255,255,1)", r.opacity = t.overlayAlpha), r;
|
|
145
|
+
}
|
|
146
|
+
function _() {
|
|
147
|
+
var t;
|
|
148
|
+
try {
|
|
149
|
+
const r = N.getSystemInfoSync(), e = String((r == null ? void 0 : r.platform) || "").toLowerCase(), l = String((r == null ? void 0 : r.system) || ""), s = e === "ios", c = s ? parseInt(((t = l.match(/\d+/)) == null ? void 0 : t[0]) || "0", 10) : 0, f = String((r == null ? void 0 : r.theme) || "").toLowerCase() === "dark";
|
|
150
|
+
return { isIOS: s, iosMajor: c, dark: f };
|
|
151
|
+
} catch {
|
|
152
|
+
return { isIOS: !1, iosMajor: 0, dark: !1 };
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const T = (t) => {
|
|
156
|
+
const {
|
|
157
|
+
className: r,
|
|
158
|
+
style: e,
|
|
159
|
+
children: l,
|
|
160
|
+
scene: s,
|
|
161
|
+
targetId: c,
|
|
162
|
+
liquidGlass: f,
|
|
163
|
+
frostedGlass: w,
|
|
164
|
+
gradientBlur: O,
|
|
165
|
+
overlayColor: h,
|
|
166
|
+
...y
|
|
167
|
+
} = { ...j, ...t }, p = B("nut-jdmaterialview", r), { isIOS: k, iosMajor: S, dark: b } = R(() => _(), []), o = R(
|
|
168
|
+
() => s ? $(s, b, S) : void 0,
|
|
169
|
+
[s, b, S]
|
|
170
|
+
), A = f ?? (o == null ? void 0 : o.liquidGlass), i = w ?? (o == null ? void 0 : o.frostedGlass), d = O ?? (o == null ? void 0 : o.gradientBlur);
|
|
171
|
+
if (k) {
|
|
172
|
+
const a = { ...o == null ? void 0 : o.fallbackStyle, ...e };
|
|
173
|
+
return /* @__PURE__ */ g(
|
|
174
|
+
L,
|
|
175
|
+
{
|
|
176
|
+
className: p,
|
|
177
|
+
style: a,
|
|
178
|
+
liquidGlass: A,
|
|
179
|
+
frostedGlass: i,
|
|
180
|
+
gradientBlur: d,
|
|
181
|
+
...y,
|
|
182
|
+
children: l
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
if (D()) {
|
|
187
|
+
const a = s ? P(s, b) : void 0, n = {};
|
|
188
|
+
a && (n.blurScale = a.blurScale, n.borderRadius = a.borderRadius), n.colorMode = b ? "dark" : "light";
|
|
189
|
+
const G = h ?? (a == null ? void 0 : a.overlayColor);
|
|
190
|
+
return G && (n.overlayColor = G), c && (n.targetId = c), s && (n.scene = s), /* @__PURE__ */ g(F, { className: p, style: e, ...n, ...y, children: l });
|
|
191
|
+
}
|
|
192
|
+
const q = (() => {
|
|
193
|
+
const a = { ...e };
|
|
194
|
+
if (i) {
|
|
195
|
+
const n = J(i);
|
|
196
|
+
a.backdropFilter = `blur(${n}px)`, i.alpha !== void 0 && (a.opacity = i.alpha);
|
|
197
|
+
} else d && Object.assign(a, V(d));
|
|
198
|
+
return a;
|
|
199
|
+
})(), C = h ?? (i ? i.style.endsWith("-dark") ? "rgba(0, 0, 0, 0.3)" : "rgba(255, 255, 255, 0.3)" : void 0), u = {};
|
|
200
|
+
return u.targetId = c, s && (u.scene = s), i && (u.frostedGlass = JSON.stringify(i)), d && (u.gradientBlur = JSON.stringify(d)), C && (u.overlayColor = C), /* @__PURE__ */ g(F, { className: p, style: q, ...u, ...y, children: l });
|
|
201
|
+
};
|
|
202
|
+
T.displayName = "NutJDMaterialView";
|
|
203
|
+
export {
|
|
204
|
+
T as J,
|
|
205
|
+
Z as a,
|
|
206
|
+
$ as b,
|
|
207
|
+
X as g
|
|
208
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/taro-biz",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
4
|
-
"main": "dist/cjs/index.js",
|
|
5
|
-
"module": "dist/es/index.js",
|
|
6
|
-
"typings": "dist/es/index.d.ts",
|
|
3
|
+
"version": "0.0.1-alpha.4",
|
|
4
|
+
"main": "dist/cjs/index/index.js",
|
|
5
|
+
"module": "dist/es/index/index.js",
|
|
7
6
|
"sideEffects": [
|
|
8
7
|
"*.scss",
|
|
9
8
|
"dist/es/**/style/*",
|
|
@@ -22,7 +21,6 @@
|
|
|
22
21
|
"license": "MIT",
|
|
23
22
|
"files": [
|
|
24
23
|
"dist",
|
|
25
|
-
"dist-taro",
|
|
26
24
|
"README.md",
|
|
27
25
|
"package.json",
|
|
28
26
|
"LICENSE"
|
|
@@ -79,5 +77,19 @@
|
|
|
79
77
|
},
|
|
80
78
|
"dependencies": {
|
|
81
79
|
"classnames": "^2.3.2"
|
|
80
|
+
},
|
|
81
|
+
"exports": {
|
|
82
|
+
".": {
|
|
83
|
+
"import": "./dist/es/index/index.js",
|
|
84
|
+
"require": "./dist/cjs/index/index.js"
|
|
85
|
+
},
|
|
86
|
+
"./JDMaterialView": {
|
|
87
|
+
"import": "./dist/es/jdmaterialview/index.js",
|
|
88
|
+
"require": "./dist/cjs/jdmaterialview/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./JDMaterialsBlurTarget": {
|
|
91
|
+
"import": "./dist/es/jdmaterialsblurtarget/index.js",
|
|
92
|
+
"require": "./dist/cjs/jdmaterialsblurtarget/index.js"
|
|
93
|
+
}
|
|
82
94
|
}
|
|
83
95
|
}
|
package/readme.md
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
# NutUI Biz 组件库
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
- 是否可以先在 nutui-react 中生成一个用于多端脚手架的 skill?
|
|
5
|
-
- nutui-react 在同级目录 nutui-react 目录下
|
|
3
|
+
当前仅用于站内。目前包含 Taro 及 Web 两个端。
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
Taro 端会发布为 @nutui/taro-biz; Web 端会发布为 @nutui/biz。
|
|
6
|
+
|
|
7
|
+
## 组件列表
|
|
8
|
+
|
|
9
|
+
### 液态玻璃与毛玻璃
|
|
10
|
+
|
|
11
|
+
#### Taro 版本
|
|
12
|
+
|
|
13
|
+
- JDMaterialView
|
|
14
|
+
- JDMaterialsBlurTarget
|
|
15
|
+
|
|
16
|
+
#### Web 端
|
|
17
|
+
|
|
18
|
+
todo
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";const Ce=require("react");var X={exports:{}},k={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Te;function lr(){if(Te)return k;Te=1;var V=Ce,P=Symbol.for("react.element"),M=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,F=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function w(_,f,T){var p,E={},b=null,I=null;T!==void 0&&(b=""+T),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(I=f.ref);for(p in f)m.call(f,p)&&!A.hasOwnProperty(p)&&(E[p]=f[p]);if(_&&_.defaultProps)for(p in f=_.defaultProps,f)E[p]===void 0&&(E[p]=f[p]);return{$$typeof:P,type:_,key:b,ref:I,props:E,_owner:F.current}}return k.Fragment=M,k.jsx=w,k.jsxs=w,k}var D={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Oe;function fr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var V=Ce,P=Symbol.for("react.element"),M=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),H=Symbol.iterator,Se="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var r=H&&e[H]||e[Se];return typeof r=="function"?r:null}var O=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];we("error",e,t)}}function we(e,r,t){{var n=O.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var je=!1,xe=!1,ke=!1,De=!1,Fe=!1,Z;Z=Symbol.for("react.module.reference");function Ae(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===A||Fe||e===F||e===T||e===p||De||e===I||je||xe||ke||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===E||e.$$typeof===w||e.$$typeof===_||e.$$typeof===f||e.$$typeof===Z||e.getModuleId!==void 0))}function Ie(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function Q(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case M:return"Portal";case A:return"Profiler";case F:return"StrictMode";case T:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return Q(r)+".Consumer";case w:var t=e;return Q(t._context)+".Provider";case f:return Ie(e,e.render,"ForwardRef");case E:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case b:{var i=e,u=i._payload,o=i._init;try{return y(o(u))}catch{return null}}}return null}var h=Object.assign,j=0,ee,re,te,ne,ae,oe,ie;function ue(){}ue.__reactDisabledLog=!0;function $e(){{if(j===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,oe=console.groupCollapsed,ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function We(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:ee}),info:h({},e,{value:re}),warn:h({},e,{value:te}),error:h({},e,{value:ne}),group:h({},e,{value:ae}),groupCollapsed:h({},e,{value:oe}),groupEnd:h({},e,{value:ie})})}j<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=O.ReactCurrentDispatcher,N;function $(e,r,t){{if(N===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
|
|
18
|
-
`+N+e}}var q=!1,W;{var Ye=typeof WeakMap=="function"?WeakMap:Map;W=new Ye}function se(e,r){if(!e||q)return"";{var t=W.get(e);if(t!==void 0)return t}var n;q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=U.current,U.current=null,$e();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(d){n=d}Reflect.construct(e,[],o)}else{try{o.call()}catch(d){n=d}e.call(o.prototype)}}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
|
|
19
|
-
`),v=n.stack.split(`
|
|
20
|
-
`),s=a.length-1,l=v.length-1;s>=1&&l>=0&&a[s]!==v[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==v[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==v[l]){var g=`
|
|
21
|
-
`+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&W.set(e,g),g}while(s>=1&&l>=0);break}}}finally{q=!1,U.current=u,We(),Error.prepareStackTrace=i}var S=e?e.displayName||e.name:"",R=S?$(S):"";return typeof e=="function"&&W.set(e,R),R}function Le(e,r,t){return se(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Y(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Ve(e));if(typeof e=="string")return $(e);switch(e){case T:return $("Suspense");case p:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Le(e.render);case E:return Y(e.type,r,t);case b:{var n=e,i=n._payload,u=n._init;try{return Y(u(i),r,t)}catch{}}}return""}var x=Object.prototype.hasOwnProperty,le={},fe=O.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}function Me(e,r,t,n,i){{var u=Function.call.bind(x);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var v=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(i),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),L(null)),a instanceof Error&&!(a.message in le)&&(le[a.message]=!0,L(i),c("Failed %s type: %s",t,a.message),L(null))}}}var Ue=Array.isArray;function B(e){return Ue(e)}function Ne(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function qe(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(qe(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ne(e)),ce(e)}var de=O.ReactCurrentOwner,Be={key:!0,ref:!0,__self:!0,__source:!0},pe,ge;function Je(e){if(x.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(x.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ge(e,r){typeof e.ref=="string"&&de.current}function ze(e,r){{var t=function(){pe||(pe=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Xe(e,r){{var t=function(){ge||(ge=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var He=function(e,r,t,n,i,u,o){var a={$$typeof:P,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Ze(e,r,t,n,i){{var u,o={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Ke(r)&&(ve(r.key),a=""+r.key),Je(r)&&(v=r.ref,Ge(r,i));for(u in r)x.call(r,u)&&!Be.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ze(o,l),v&&Xe(o,l)}return He(e,a,v,i,n,de.current,o)}}var J=O.ReactCurrentOwner,Ee=O.ReactDebugCurrentFrame;function C(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var K;K=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===P}function ye(){{if(J.current){var e=y(J.current.type);if(e)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function Qe(e){return""}var _e={};function er(e){{var r=ye();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=er(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),C(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),C(null)}}function he(e,r){{if(typeof e!="object")return;if(B(e))for(var t=0;t<e.length;t++){var n=e[t];G(n)&&be(n,r)}else if(G(e))e._store&&(e._store.validated=!0);else if(e){var i=Pe(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)G(o.value)&&be(o.value,r)}}}function rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===E))t=r.propTypes;else return;if(t){var n=y(r);Me(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var i=y(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){C(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),C(null);break}}e.ref!==null&&(C(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),C(null))}}var Re={};function me(e,r,t,n,i,u){{var o=Ae(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=Qe();v?a+=v:a+=ye();var s;e===null?s="null":B(e)?s="array":e!==void 0&&e.$$typeof===P?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=Ze(e,r,t,i,u);if(l==null)return l;if(o){var g=r.children;if(g!==void 0)if(n)if(B(g)){for(var S=0;S<g.length;S++)he(g[S],e);Object.freeze&&Object.freeze(g)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(g,e)}if(x.call(r,"key")){var R=y(e),d=Object.keys(r).filter(function(sr){return sr!=="key"}),z=d.length>0?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}";if(!Re[R+z]){var ur=d.length>0?"{"+d.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,z,R,ur,R),Re[R+z]=!0}}return e===m?tr(l):rr(l),l}}function nr(e,r,t){return me(e,r,t,!0)}function ar(e,r,t){return me(e,r,t,!1)}var or=ar,ir=nr;D.Fragment=m,D.jsx=or,D.jsxs=ir}()),D}process.env.NODE_ENV==="production"?X.exports=lr():X.exports=fr();var cr=X.exports;const vr={className:"",style:{}};exports.ComponentDefaults=vr;exports.jsxRuntimeExports=cr;
|