@baishuyun/ui-mobile 0.6.1 → 0.8.0
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/AMap/{AMap-DwrSlwyV.js → AMap-BwIa29WQ.js} +2 -2
- package/dist/AMap/index.js +4 -4
- package/dist/ActionSheet/ActionSheet-8cPpwho3.js +85 -0
- package/dist/ActionSheet/index.js +6 -4
- package/dist/Calendar/{Calendar-Bd6CS8y7.js → Calendar-B9IuDHRd.js} +611 -596
- package/dist/Calendar/{timeUtils-t4A3-Hr6.js → cssVars-E8Cq0tta.js} +3 -1
- package/dist/Calendar/index.js +4 -4
- package/dist/ConfigProvider/{ConfigProvider-DnlakyRE.js → ConfigProvider-CCXPxdJt.js} +29 -21
- package/dist/ConfigProvider/index.js +4 -3
- package/dist/ConfigProvider/{useLocale-CP8NRZoj.js → useLocale-D12uIZ9q.js} +1 -0
- package/dist/Gantt/{Gantt-CR7eRNVP.js → Gantt-fRNTYViS.js} +384 -379
- package/dist/Gantt/index.js +8 -6
- package/dist/Icon/{Icon-CFvcrGGg.js → Icon-OUPXAIEn.js} +1 -1
- package/dist/Icon/index.js +2 -2
- package/dist/Overlay/Overlay-YzAfhILA.js +61 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Popup/Popup-C1uwPnxj.js +78 -0
- package/dist/Popup/index.js +5 -0
- package/dist/components/ActionSheet/ActionSheet.d.ts +1 -1
- package/dist/components/ActionSheet/interface.d.ts +1 -2
- package/dist/components/Calendar/context/CalendarContext.d.ts +1 -3
- package/dist/components/Calendar/index.d.ts +1 -1
- package/dist/components/Calendar/interface.d.ts +23 -2
- package/dist/components/Calendar/utils/colorUtils.d.ts +1 -2
- package/dist/components/Calendar/utils/index.d.ts +2 -1
- package/dist/components/Calendar/utils/theme/index.d.ts +1 -0
- package/dist/components/Calendar/utils/theme/resolveCalendarThemeVars.d.ts +4 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +1 -1
- package/dist/components/ConfigProvider/context.d.ts +14 -0
- package/dist/components/Gantt/index.d.ts +1 -1
- package/dist/components/Gantt/interface.d.ts +16 -0
- package/dist/components/Gantt/utils/theme/index.d.ts +1 -0
- package/dist/components/Gantt/utils/theme/resolveGanttThemeVars.d.ts +3 -0
- package/dist/components/Overlay/OverlayContext.d.ts +17 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Popup/Popup.d.ts +3 -0
- package/dist/components/Popup/index.d.ts +2 -0
- package/dist/components/Popup/interface.d.ts +46 -0
- package/dist/components/index.d.ts +6 -2
- package/dist/index.js +12 -10
- package/dist/locale/lang/en-US.json.d.ts +3 -0
- package/dist/locale/lang/zh-CN.json.d.ts +3 -0
- package/dist/locale/lang/zh-TW.json.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/utils/cssVars.d.ts +1 -0
- package/dist/vendors/{version-DsM7d69k.js → version-DdP63VFD.js} +1 -1
- package/package.json +2 -2
- package/dist/ActionSheet/ActionSheet-DbrKxa_y.js +0 -133
|
@@ -22,6 +22,8 @@ var a = () => e(null), o = (e, t) => !!(t && e.$x?.$timezone === t), s = (t, n)
|
|
|
22
22
|
}, c = (t) => t ? e().tz(t) : e(), l = (t) => {
|
|
23
23
|
let n = t ? e().tz(t).utcOffset() : e().utcOffset(), r = n >= 0 ? "+" : "-", i = Math.abs(n), a = Math.floor(i / 60), o = i % 60;
|
|
24
24
|
return o === 0 ? `GMT${r}${a}` : `GMT${r}${a}:${String(o).padStart(2, "0")}`;
|
|
25
|
+
}, u = (e, t, n) => {
|
|
26
|
+
n && (e[t] = n);
|
|
25
27
|
};
|
|
26
28
|
//#endregion
|
|
27
|
-
export {
|
|
29
|
+
export { s as i, c as n, l as r, u as t };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import { t as e } from "./Calendar-
|
|
3
|
-
import "../ConfigProvider/useLocale-
|
|
4
|
-
import "./
|
|
1
|
+
import "../vendors/version-DdP63VFD.js";
|
|
2
|
+
import { t as e } from "./Calendar-B9IuDHRd.js";
|
|
3
|
+
import "../ConfigProvider/useLocale-D12uIZ9q.js";
|
|
4
|
+
import "./cssVars-E8Cq0tta.js";
|
|
5
5
|
export { e as default };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { r as e } from "../Overlay/Overlay-YzAfhILA.js";
|
|
2
|
+
import { a as t, i as n, n as r } from "./useLocale-D12uIZ9q.js";
|
|
3
|
+
import { useCallback as i, useContext as a, useMemo as o } from "react";
|
|
4
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
+
var c = {
|
|
5
6
|
actionSheet: { close: "關閉" },
|
|
7
|
+
popup: { close: "關閉" },
|
|
6
8
|
calendar: {
|
|
7
9
|
today: "今天",
|
|
8
10
|
viewDay: "日",
|
|
@@ -93,8 +95,9 @@ var s = {
|
|
|
93
95
|
failed: "定位失敗,請檢查是否開啟定位權限"
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
|
-
},
|
|
98
|
+
}, l = {
|
|
97
99
|
actionSheet: { close: "Close" },
|
|
100
|
+
popup: { close: "Close" },
|
|
98
101
|
calendar: {
|
|
99
102
|
today: "Today",
|
|
100
103
|
viewDay: "Day",
|
|
@@ -185,24 +188,29 @@ var s = {
|
|
|
185
188
|
failed: "Location failed. Check that location access is enabled"
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
|
-
},
|
|
189
|
-
"zh-CN":
|
|
190
|
-
"zh-TW":
|
|
191
|
-
"en-US":
|
|
192
|
-
},
|
|
193
|
-
let
|
|
194
|
-
locale:
|
|
195
|
-
t:
|
|
196
|
-
amap:
|
|
191
|
+
}, u = {
|
|
192
|
+
"zh-CN": t,
|
|
193
|
+
"zh-TW": c,
|
|
194
|
+
"en-US": l
|
|
195
|
+
}, d = ({ locale: t, amap: c, overlayOffset: l, overlayStep: d, overlayMax: f, children: p }) => {
|
|
196
|
+
let m = a(r), h = t ?? m.locale, g = c ?? m.amap, _ = i((e, t) => n(u[h], e, t), [h]), v = o(() => ({
|
|
197
|
+
locale: h,
|
|
198
|
+
t: _,
|
|
199
|
+
amap: g
|
|
197
200
|
}), [
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
h,
|
|
202
|
+
_,
|
|
203
|
+
g
|
|
201
204
|
]);
|
|
202
|
-
return /* @__PURE__ */
|
|
203
|
-
|
|
204
|
-
|
|
205
|
+
return /* @__PURE__ */ s(e, {
|
|
206
|
+
offset: l,
|
|
207
|
+
step: d,
|
|
208
|
+
max: f,
|
|
209
|
+
children: /* @__PURE__ */ s(r.Provider, {
|
|
210
|
+
value: v,
|
|
211
|
+
children: p
|
|
212
|
+
})
|
|
205
213
|
});
|
|
206
214
|
};
|
|
207
215
|
//#endregion
|
|
208
|
-
export {
|
|
216
|
+
export { d as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import "../vendors/version-DdP63VFD.js";
|
|
2
|
+
import "../Overlay/Overlay-YzAfhILA.js";
|
|
3
|
+
import { r as e, t } from "./useLocale-D12uIZ9q.js";
|
|
4
|
+
import { t as n } from "./ConfigProvider-CCXPxdJt.js";
|
|
4
5
|
export { n as ConfigProvider, n as default, e as useAMapConfig, t as useLocale };
|