@nutui/taro-biz 0.0.1-alpha.0 → 0.0.1-alpha.10
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 -0
- package/dist/cjs/jdmaterialsblurtarget.taro-BbcxTuKJ.js +1 -0
- package/dist/cjs/jdmaterialview/index.js +1 -0
- package/dist/cjs/jdmaterialview.taro-Bsnb_oHs.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 +4 -0
- package/dist/es/jdmaterialsblurtarget.taro-DCTEjmIC.mjs +30 -0
- package/dist/es/jdmaterialview/index.js +8 -0
- package/dist/es/jdmaterialview.taro-BVqkdHrB.mjs +246 -0
- package/dist/es/typings-CdeuPEKG.mjs +7 -0
- package/package.json +17 -4
- package/readme.md +16 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jdmaterialview.taro-Bsnb_oHs.js"),r=require("../jdmaterialsblurtarget.taro-BbcxTuKJ.js");exports.JDMaterialView=e.JDMaterialView;exports.JDMaterialsBlurTarget=r.JDMaterialsBlurTarget;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("../jdmaterialsblurtarget.taro-BbcxTuKJ.js");module.exports=r.JDMaterialsBlurTarget;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("classnames"),u=require("@tarojs/taro"),m=require("@tarojs/components"),d=require("./typings-DP_XKs5o.js"),f={...d.ComponentDefaults};function g(){var r;try{return String(((r=u.getSystemInfoSync())==null?void 0:r.platform)||"").toLowerCase()==="android"}catch{return!1}}const s=r=>{const{className:a,style:n,children:t,blurId:c,...i}={...f,...r};if(!g())return e.jsx(e.Fragment,{children:t});const o=l("nut-jdmaterialsblurtarget",a);return e.jsx(m.View,{className:o,style:n,blurId:c,...i,children:t})};s.displayName="NutJDMaterialsBlurTarget";exports.JDMaterialsBlurTarget=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jdmaterialview.taro-Bsnb_oHs.js");exports.default=e.JDMaterialView;exports.getCornerRadius=e.getCornerRadius;exports.getFrostedPreset=e.getFrostedPreset;exports.getPreset=e.getPreset;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const C=require("react/jsx-runtime"),y=require("react"),P=require("classnames"),d=require("@tarojs/taro"),M=require("@tarojs/components"),j=require("@jdtaro/ui"),x=require("./typings-DP_XKs5o.js"),w=26;function F(t,r,e){const s=e>=w;switch(t){case"top-solid":return s?{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 s?{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 s?{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 $(t,r){const e=r>=w;switch(t){case"top-bar":case"bottom-bar":return 0;case"top-plain":return e?12:0;case"top-solid":case"promotion-fair":case"promotion-deep":case"immersive":return e?12:8;default:return 0}}const R="255, 255, 255",S="31, 34, 38";function k(t,r){switch(t){case"top-solid":return{blurRadius:40,borderRadius:12,tintColor:r?"rgba(42, 47, 54, 1)":"rgba(255, 255, 255, 1)"};case"top-plain":return{blurRadius:40,borderRadius:12};case"top-bar":return{blurRadius:40,borderRadius:12,tintColor:r?`rgba(${S}, 0.9)`:`rgba(${R}, 0.9)`};case"promotion-fair":return{blurRadius:40,borderRadius:12,tintColor:`rgba(${R}, 0.85)`};case"promotion-deep":return{blurRadius:40,borderRadius:12,tintColor:`rgba(${R}, 0.2)`};case"immersive":return{blurRadius:40,borderRadius:12,tintColor:`rgba(${S}, 0.4)`};case"bottom-bar":return{blurRadius:50,borderRadius:0,tintColor:r?`rgba(${S}, 0.8)`:`rgba(${R}, 0.8)`};default:return{blurRadius:40,borderRadius:12}}}function N(t,r){const e=r?"dark":"light";switch(t){case"top-solid":return{blurScale:1,borderRadius:8,colorMode:e,overlayColor:r?"#2A2F36":"#FFFFFF"};case"top-plain":return{blurScale:0,borderRadius:8,colorMode:e};case"top-bar":return{blurScale:.9,borderRadius:0,colorMode:e};case"promotion-fair":return{blurScale:.85,borderRadius:8,colorMode:"light"};case"promotion-deep":return{blurScale:.2,borderRadius:8,colorMode:"light"};case"immersive":return{blurScale:.4,borderRadius:8,colorMode:"dark"};case"bottom-bar":return{blurScale:.2,borderRadius:0,colorMode:e};default:return{blurScale:0,borderRadius:0,colorMode:e}}}const V={...x.ComponentDefaults};function B(){return["harmony","harmonyhybrid","jdharmony"].includes(d.getEnv().toLowerCase())}function _(){var t;try{const r=d.getSystemInfoSync(),e=String((r==null?void 0:r.platform)||"").toLowerCase(),s=String((r==null?void 0:r.system)||""),a=e==="ios",n=a?parseInt(((t=s.match(/\d+/))==null?void 0:t[0])||"0",10):0,g=String((r==null?void 0:r.theme)||"").toLowerCase()==="dark";return{isIOS:a,iosMajor:n,dark:g}}catch{return{isIOS:!1,iosMajor:0,dark:!1}}}function E(){try{const t=d.getSystemInfoSync();return String((t==null?void 0:t.theme)||"").toLowerCase()==="dark"}catch{return!1}}function H(t){const{scene:r,dark:e,overlayColor:s,cls:a,style:n,children:g,rest:f}=t,u=r?N(r,e):void 0,o={};u?(o.blurScale=u.blurScale,o.borderRadius=u.borderRadius,o.colorMode=u.colorMode):o.colorMode=e?"dark":"light",(n==null?void 0:n.borderRadius)!==void 0&&(o.borderRadius=parseFloat(String(n.borderRadius)));const l={...n},m=s??(u==null?void 0:u.overlayColor);return m&&l.backgroundColor===void 0&&(l.backgroundColor=m),C.jsx(M.View,{className:a,style:l,...o,...f,children:g})}function J(t){const{scene:r,dark:e,targetId:s,overlayColor:a,cls:n,style:g,children:f,rest:u}=t,o=r?k(r,e):void 0,l={...g};o&&o.blurRadius>0&&(l.backdropFilter=`blur(${o.blurRadius}px)`),o&&l.borderRadius===void 0&&(l.borderRadius=`${o.borderRadius}px`);const m=a??(o==null?void 0:o.tintColor),b={};return s&&(b.targetId=s),r&&(b.scene=r),m&&(b.overlayColor=m),C.jsx(M.View,{className:n,style:l,...b,...u,children:f})}const q=t=>{const{className:r,style:e,children:s,scene:a,targetId:n,liquidGlass:g,frostedGlass:f,gradientBlur:u,overlayColor:o,...l}={...V,...t},b=P("nut-jdmaterialview",r),{isIOS:I,iosMajor:G}=y.useMemo(()=>_(),[]),[h,L]=y.useState(()=>E()),v=y.useCallback(c=>{const p=typeof c=="string"?c:String((c==null?void 0:c.theme)||"");L(p.toLowerCase()==="dark")},[]);y.useEffect(()=>{var c;try{(c=d.onThemeChange)==null||c.call(d,v)}catch{}return()=>{var p;try{(p=d.offThemeChange)==null||p.call(d,v)}catch{}}},[v]);const i=y.useMemo(()=>a?F(a,h,G):void 0,[a,h,G]),O=g??(i==null?void 0:i.liquidGlass),A=f??(i==null?void 0:i.frostedGlass),D=u??(i==null?void 0:i.gradientBlur);if(I){const c={...i==null?void 0:i.fallbackStyle,...e};return C.jsx(j.JDIOSMaterialView,{className:b,style:c,liquidGlass:O,frostedGlass:A,gradientBlur:D,...l,children:s})}return B()?H({scene:a,dark:h,overlayColor:o,cls:b,style:e,children:s,rest:l}):J({scene:a,dark:h,targetId:n,overlayColor:o,cls:b,style:e,children:s,rest:l})};q.displayName="NutJDMaterialView";exports.JDMaterialView=q;exports.getCornerRadius=$;exports.getFrostedPreset=k;exports.getPreset=F;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s={className:"",style:{}};exports.ComponentDefaults=s;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as s, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import m from "classnames";
|
|
3
|
+
import c from "@tarojs/taro";
|
|
4
|
+
import { View as f } from "@tarojs/components";
|
|
5
|
+
import { C as u } from "./typings-CdeuPEKG.mjs";
|
|
6
|
+
const p = {
|
|
7
|
+
...u
|
|
8
|
+
};
|
|
9
|
+
function d() {
|
|
10
|
+
var r;
|
|
11
|
+
try {
|
|
12
|
+
return String(((r = c.getSystemInfoSync()) == null ? void 0 : r.platform) || "").toLowerCase() === "android";
|
|
13
|
+
} catch {
|
|
14
|
+
return !1;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const g = (r) => {
|
|
18
|
+
const { className: a, style: e, children: t, blurId: o, ...n } = {
|
|
19
|
+
...p,
|
|
20
|
+
...r
|
|
21
|
+
};
|
|
22
|
+
if (!d())
|
|
23
|
+
return /* @__PURE__ */ s(i, { children: t });
|
|
24
|
+
const l = m("nut-jdmaterialsblurtarget", a);
|
|
25
|
+
return /* @__PURE__ */ s(f, { className: l, style: e, blurId: o, ...n, children: t });
|
|
26
|
+
};
|
|
27
|
+
g.displayName = "NutJDMaterialsBlurTarget";
|
|
28
|
+
export {
|
|
29
|
+
g as J
|
|
30
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as k, useState as D, useCallback as $, useEffect as N } from "react";
|
|
3
|
+
import P from "classnames";
|
|
4
|
+
import h, { getEnv as x } from "@tarojs/taro";
|
|
5
|
+
import { View as F } from "@tarojs/components";
|
|
6
|
+
import { JDIOSMaterialView as B } from "@jdtaro/ui";
|
|
7
|
+
import { C as T } from "./typings-CdeuPEKG.mjs";
|
|
8
|
+
const w = 26;
|
|
9
|
+
function j(o, r, e) {
|
|
10
|
+
const a = e >= w;
|
|
11
|
+
switch (o) {
|
|
12
|
+
case "top-solid":
|
|
13
|
+
return a ? {
|
|
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 a ? {
|
|
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 a ? {
|
|
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 tr(o, r) {
|
|
65
|
+
const e = r >= w;
|
|
66
|
+
switch (o) {
|
|
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 p = "255, 255, 255", v = "31, 34, 38";
|
|
82
|
+
function V(o, r) {
|
|
83
|
+
switch (o) {
|
|
84
|
+
case "top-solid":
|
|
85
|
+
return {
|
|
86
|
+
blurRadius: 40,
|
|
87
|
+
borderRadius: 12,
|
|
88
|
+
tintColor: r ? "rgba(42, 47, 54, 1)" : "rgba(255, 255, 255, 1)"
|
|
89
|
+
};
|
|
90
|
+
case "top-plain":
|
|
91
|
+
return { blurRadius: 40, borderRadius: 12 };
|
|
92
|
+
case "top-bar":
|
|
93
|
+
return {
|
|
94
|
+
blurRadius: 40,
|
|
95
|
+
borderRadius: 12,
|
|
96
|
+
tintColor: r ? `rgba(${v}, 0.9)` : `rgba(${p}, 0.9)`
|
|
97
|
+
};
|
|
98
|
+
case "promotion-fair":
|
|
99
|
+
return { blurRadius: 40, borderRadius: 12, tintColor: `rgba(${p}, 0.85)` };
|
|
100
|
+
case "promotion-deep":
|
|
101
|
+
return { blurRadius: 40, borderRadius: 12, tintColor: `rgba(${p}, 0.2)` };
|
|
102
|
+
case "immersive":
|
|
103
|
+
return { blurRadius: 40, borderRadius: 12, tintColor: `rgba(${v}, 0.4)` };
|
|
104
|
+
case "bottom-bar":
|
|
105
|
+
return {
|
|
106
|
+
blurRadius: 50,
|
|
107
|
+
borderRadius: 0,
|
|
108
|
+
tintColor: r ? `rgba(${v}, 0.8)` : `rgba(${p}, 0.8)`
|
|
109
|
+
};
|
|
110
|
+
default:
|
|
111
|
+
return { blurRadius: 40, borderRadius: 12 };
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function _(o, r) {
|
|
115
|
+
const e = r ? "dark" : "light";
|
|
116
|
+
switch (o) {
|
|
117
|
+
case "top-solid":
|
|
118
|
+
return {
|
|
119
|
+
blurScale: 1,
|
|
120
|
+
borderRadius: 8,
|
|
121
|
+
colorMode: e,
|
|
122
|
+
overlayColor: r ? "#2A2F36" : "#FFFFFF"
|
|
123
|
+
};
|
|
124
|
+
case "top-plain":
|
|
125
|
+
return { blurScale: 0, borderRadius: 8, colorMode: e };
|
|
126
|
+
case "top-bar":
|
|
127
|
+
return { blurScale: 0.9, borderRadius: 0, colorMode: e };
|
|
128
|
+
case "promotion-fair":
|
|
129
|
+
return { blurScale: 0.85, borderRadius: 8, colorMode: "light" };
|
|
130
|
+
case "promotion-deep":
|
|
131
|
+
return { blurScale: 0.2, borderRadius: 8, colorMode: "light" };
|
|
132
|
+
case "immersive":
|
|
133
|
+
return { blurScale: 0.4, borderRadius: 8, colorMode: "dark" };
|
|
134
|
+
case "bottom-bar":
|
|
135
|
+
return { blurScale: 0.2, borderRadius: 0, colorMode: e };
|
|
136
|
+
default:
|
|
137
|
+
return { blurScale: 0, borderRadius: 0, colorMode: e };
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
const E = {
|
|
141
|
+
...T
|
|
142
|
+
};
|
|
143
|
+
function H() {
|
|
144
|
+
return ["harmony", "harmonyhybrid", "jdharmony"].includes(
|
|
145
|
+
x().toLowerCase()
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function J() {
|
|
149
|
+
var o;
|
|
150
|
+
try {
|
|
151
|
+
const r = h.getSystemInfoSync(), e = String((r == null ? void 0 : r.platform) || "").toLowerCase(), a = String((r == null ? void 0 : r.system) || ""), s = e === "ios", n = s ? parseInt(((o = a.match(/\d+/)) == null ? void 0 : o[0]) || "0", 10) : 0, b = String((r == null ? void 0 : r.theme) || "").toLowerCase() === "dark";
|
|
152
|
+
return { isIOS: s, iosMajor: n, dark: b };
|
|
153
|
+
} catch {
|
|
154
|
+
return { isIOS: !1, iosMajor: 0, dark: !1 };
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function Y() {
|
|
158
|
+
try {
|
|
159
|
+
const o = h.getSystemInfoSync();
|
|
160
|
+
return String((o == null ? void 0 : o.theme) || "").toLowerCase() === "dark";
|
|
161
|
+
} catch {
|
|
162
|
+
return !1;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function K(o) {
|
|
166
|
+
const { scene: r, dark: e, overlayColor: a, cls: s, style: n, children: b, rest: f } = o, u = r ? _(r, e) : void 0, t = {};
|
|
167
|
+
u ? (t.blurScale = u.blurScale, t.borderRadius = u.borderRadius, t.colorMode = u.colorMode) : t.colorMode = e ? "dark" : "light", (n == null ? void 0 : n.borderRadius) !== void 0 && (t.borderRadius = parseFloat(String(n.borderRadius)));
|
|
168
|
+
const l = { ...n }, m = a ?? (u == null ? void 0 : u.overlayColor);
|
|
169
|
+
return m && l.backgroundColor === void 0 && (l.backgroundColor = m), /* @__PURE__ */ S(F, { className: s, style: l, ...t, ...f, children: b });
|
|
170
|
+
}
|
|
171
|
+
function Q(o) {
|
|
172
|
+
const { scene: r, dark: e, targetId: a, overlayColor: s, cls: n, style: b, children: f, rest: u } = o, t = r ? V(r, e) : void 0, l = { ...b };
|
|
173
|
+
t && t.blurRadius > 0 && (l.backdropFilter = `blur(${t.blurRadius}px)`), t && l.borderRadius === void 0 && (l.borderRadius = `${t.borderRadius}px`);
|
|
174
|
+
const m = s ?? (t == null ? void 0 : t.tintColor), d = {};
|
|
175
|
+
return a && (d.targetId = a), r && (d.scene = r), m && (d.overlayColor = m), /* @__PURE__ */ S(F, { className: n, style: l, ...d, ...u, children: f });
|
|
176
|
+
}
|
|
177
|
+
const U = (o) => {
|
|
178
|
+
const {
|
|
179
|
+
className: r,
|
|
180
|
+
style: e,
|
|
181
|
+
children: a,
|
|
182
|
+
scene: s,
|
|
183
|
+
targetId: n,
|
|
184
|
+
liquidGlass: b,
|
|
185
|
+
frostedGlass: f,
|
|
186
|
+
gradientBlur: u,
|
|
187
|
+
overlayColor: t,
|
|
188
|
+
...l
|
|
189
|
+
} = { ...E, ...o }, d = P("nut-jdmaterialview", r), { isIOS: I, iosMajor: C } = k(() => J(), []), [g, q] = D(() => Y()), R = $(
|
|
190
|
+
(c) => {
|
|
191
|
+
const y = typeof c == "string" ? c : String((c == null ? void 0 : c.theme) || "");
|
|
192
|
+
q(y.toLowerCase() === "dark");
|
|
193
|
+
},
|
|
194
|
+
[]
|
|
195
|
+
);
|
|
196
|
+
N(() => {
|
|
197
|
+
var c, y;
|
|
198
|
+
try {
|
|
199
|
+
(y = (c = h).onThemeChange) == null || y.call(c, R);
|
|
200
|
+
} catch {
|
|
201
|
+
}
|
|
202
|
+
return () => {
|
|
203
|
+
var G, M;
|
|
204
|
+
try {
|
|
205
|
+
(M = (G = h).offThemeChange) == null || M.call(G, R);
|
|
206
|
+
} catch {
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}, [R]);
|
|
210
|
+
const i = k(
|
|
211
|
+
() => s ? j(s, g, C) : void 0,
|
|
212
|
+
[s, g, C]
|
|
213
|
+
), L = b ?? (i == null ? void 0 : i.liquidGlass), O = f ?? (i == null ? void 0 : i.frostedGlass), A = u ?? (i == null ? void 0 : i.gradientBlur);
|
|
214
|
+
if (I) {
|
|
215
|
+
const c = { ...i == null ? void 0 : i.fallbackStyle, ...e };
|
|
216
|
+
return /* @__PURE__ */ S(
|
|
217
|
+
B,
|
|
218
|
+
{
|
|
219
|
+
className: d,
|
|
220
|
+
style: c,
|
|
221
|
+
liquidGlass: L,
|
|
222
|
+
frostedGlass: O,
|
|
223
|
+
gradientBlur: A,
|
|
224
|
+
...l,
|
|
225
|
+
children: a
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
return H() ? K({ scene: s, dark: g, overlayColor: t, cls: d, style: e, children: a, rest: l }) : Q({
|
|
230
|
+
scene: s,
|
|
231
|
+
dark: g,
|
|
232
|
+
targetId: n,
|
|
233
|
+
overlayColor: t,
|
|
234
|
+
cls: d,
|
|
235
|
+
style: e,
|
|
236
|
+
children: a,
|
|
237
|
+
rest: l
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
U.displayName = "NutJDMaterialView";
|
|
241
|
+
export {
|
|
242
|
+
U as J,
|
|
243
|
+
V as a,
|
|
244
|
+
j as b,
|
|
245
|
+
tr as g
|
|
246
|
+
};
|
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.10",
|
|
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/*",
|
|
@@ -78,5 +77,19 @@
|
|
|
78
77
|
},
|
|
79
78
|
"dependencies": {
|
|
80
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
|
+
}
|
|
81
94
|
}
|
|
82
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
|