@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.
Files changed (48) hide show
  1. package/dist/AMap/{AMap-DwrSlwyV.js → AMap-BwIa29WQ.js} +2 -2
  2. package/dist/AMap/index.js +4 -4
  3. package/dist/ActionSheet/ActionSheet-8cPpwho3.js +85 -0
  4. package/dist/ActionSheet/index.js +6 -4
  5. package/dist/Calendar/{Calendar-Bd6CS8y7.js → Calendar-B9IuDHRd.js} +611 -596
  6. package/dist/Calendar/{timeUtils-t4A3-Hr6.js → cssVars-E8Cq0tta.js} +3 -1
  7. package/dist/Calendar/index.js +4 -4
  8. package/dist/ConfigProvider/{ConfigProvider-DnlakyRE.js → ConfigProvider-CCXPxdJt.js} +29 -21
  9. package/dist/ConfigProvider/index.js +4 -3
  10. package/dist/ConfigProvider/{useLocale-CP8NRZoj.js → useLocale-D12uIZ9q.js} +1 -0
  11. package/dist/Gantt/{Gantt-CR7eRNVP.js → Gantt-fRNTYViS.js} +384 -379
  12. package/dist/Gantt/index.js +8 -6
  13. package/dist/Icon/{Icon-CFvcrGGg.js → Icon-OUPXAIEn.js} +1 -1
  14. package/dist/Icon/index.js +2 -2
  15. package/dist/Overlay/Overlay-YzAfhILA.js +61 -0
  16. package/dist/Overlay/index.js +3 -0
  17. package/dist/Popup/Popup-C1uwPnxj.js +78 -0
  18. package/dist/Popup/index.js +5 -0
  19. package/dist/components/ActionSheet/ActionSheet.d.ts +1 -1
  20. package/dist/components/ActionSheet/interface.d.ts +1 -2
  21. package/dist/components/Calendar/context/CalendarContext.d.ts +1 -3
  22. package/dist/components/Calendar/index.d.ts +1 -1
  23. package/dist/components/Calendar/interface.d.ts +23 -2
  24. package/dist/components/Calendar/utils/colorUtils.d.ts +1 -2
  25. package/dist/components/Calendar/utils/index.d.ts +2 -1
  26. package/dist/components/Calendar/utils/theme/index.d.ts +1 -0
  27. package/dist/components/Calendar/utils/theme/resolveCalendarThemeVars.d.ts +4 -0
  28. package/dist/components/ConfigProvider/ConfigProvider.d.ts +1 -1
  29. package/dist/components/ConfigProvider/context.d.ts +14 -0
  30. package/dist/components/Gantt/index.d.ts +1 -1
  31. package/dist/components/Gantt/interface.d.ts +16 -0
  32. package/dist/components/Gantt/utils/theme/index.d.ts +1 -0
  33. package/dist/components/Gantt/utils/theme/resolveGanttThemeVars.d.ts +3 -0
  34. package/dist/components/Overlay/OverlayContext.d.ts +17 -0
  35. package/dist/components/Overlay/index.d.ts +2 -0
  36. package/dist/components/Popup/Popup.d.ts +3 -0
  37. package/dist/components/Popup/index.d.ts +2 -0
  38. package/dist/components/Popup/interface.d.ts +46 -0
  39. package/dist/components/index.d.ts +6 -2
  40. package/dist/index.js +12 -10
  41. package/dist/locale/lang/en-US.json.d.ts +3 -0
  42. package/dist/locale/lang/zh-CN.json.d.ts +3 -0
  43. package/dist/locale/lang/zh-TW.json.d.ts +3 -0
  44. package/dist/style.css +1 -1
  45. package/dist/utils/cssVars.d.ts +1 -0
  46. package/dist/vendors/{version-DsM7d69k.js → version-DdP63VFD.js} +1 -1
  47. package/package.json +2 -2
  48. package/dist/ActionSheet/ActionSheet-DbrKxa_y.js +0 -133
@@ -1,5 +1,5 @@
1
- import { t as e } from "../Icon/Icon-CFvcrGGg.js";
2
- import { r as t, t as n } from "../ConfigProvider/useLocale-CP8NRZoj.js";
1
+ import { t as e } from "../Icon/Icon-OUPXAIEn.js";
2
+ import { r as t, t as n } from "../ConfigProvider/useLocale-D12uIZ9q.js";
3
3
  import { createContext as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
4
4
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
5
  //#region src/components/AMap/AMap.module.scss
@@ -1,5 +1,5 @@
1
- import "../vendors/version-DsM7d69k.js";
2
- import "../Icon/Icon-CFvcrGGg.js";
3
- import { n as e, t } from "./AMap-DwrSlwyV.js";
4
- import "../ConfigProvider/useLocale-CP8NRZoj.js";
1
+ import "../vendors/version-DdP63VFD.js";
2
+ import "../Icon/Icon-OUPXAIEn.js";
3
+ import { n as e, t } from "./AMap-BwIa29WQ.js";
4
+ import "../ConfigProvider/useLocale-D12uIZ9q.js";
5
5
  export { t as default, e as useAMap };
@@ -0,0 +1,85 @@
1
+ import { t as e } from "../Popup/Popup-C1uwPnxj.js";
2
+ import { t } from "../Icon/Icon-OUPXAIEn.js";
3
+ import { t as n } from "../ConfigProvider/useLocale-D12uIZ9q.js";
4
+ import { useId as r } from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ //#region src/components/ActionSheet/ActionSheet.module.scss
7
+ var o = {
8
+ "bsy-mobile-action-sheet": "_bsy-mobile-action-sheet_o2a6g_1",
9
+ "bsy-mobile-action-sheet__header": "_bsy-mobile-action-sheet__header_o2a6g_9",
10
+ "bsy-mobile-action-sheet__title": "_bsy-mobile-action-sheet__title_o2a6g_19",
11
+ "bsy-mobile-action-sheet__close": "_bsy-mobile-action-sheet__close_o2a6g_30",
12
+ "bsy-mobile-action-sheet__body": "_bsy-mobile-action-sheet__body_o2a6g_44",
13
+ "bsy-mobile-action-sheet__list": "_bsy-mobile-action-sheet__list_o2a6g_49",
14
+ "bsy-mobile-action-sheet--menu": "_bsy-mobile-action-sheet--menu_o2a6g_52",
15
+ "bsy-mobile-action-sheet__item": "_bsy-mobile-action-sheet__item_o2a6g_52",
16
+ "bsy-mobile-action-sheet__item--selected": "_bsy-mobile-action-sheet__item--selected_o2a6g_76",
17
+ "bsy-mobile-action-sheet__item--disabled": "_bsy-mobile-action-sheet__item--disabled_o2a6g_79",
18
+ "bsy-mobile-action-sheet__item-inner": "_bsy-mobile-action-sheet__item-inner_o2a6g_83",
19
+ "bsy-mobile-action-sheet--select": "_bsy-mobile-action-sheet--select_o2a6g_89",
20
+ "bsy-mobile-action-sheet__item-icon": "_bsy-mobile-action-sheet__item-icon_o2a6g_92",
21
+ "bsy-mobile-action-sheet__item-label": "_bsy-mobile-action-sheet__item-label_o2a6g_101",
22
+ "bsy-mobile-action-sheet__check": "_bsy-mobile-action-sheet__check_o2a6g_110"
23
+ }, s = (...e) => e.filter(Boolean).join(" "), c = ({ open: c, onClose: l, mode: u = "select", title: d, actions: f, onAction: p, children: m, zIndex: h, getPopupContainer: g, className: _ }) => {
24
+ let { t: v } = n(), y = r(), b = u === "menu", x = v("actionSheet.close");
25
+ return /* @__PURE__ */ i(e, {
26
+ open: c,
27
+ onClose: l,
28
+ position: "bottom",
29
+ zIndex: h,
30
+ getPopupContainer: g,
31
+ className: _,
32
+ children: /* @__PURE__ */ a("div", {
33
+ className: s(o["bsy-mobile-action-sheet"], b ? o["bsy-mobile-action-sheet--menu"] : o["bsy-mobile-action-sheet--select"]),
34
+ children: [/* @__PURE__ */ a("div", {
35
+ className: o["bsy-mobile-action-sheet__header"],
36
+ children: [/* @__PURE__ */ i("div", {
37
+ id: y,
38
+ className: o["bsy-mobile-action-sheet__title"],
39
+ children: d
40
+ }), /* @__PURE__ */ i("button", {
41
+ type: "button",
42
+ className: o["bsy-mobile-action-sheet__close"],
43
+ "aria-label": x,
44
+ onClick: l,
45
+ children: /* @__PURE__ */ i(t, {
46
+ name: "close",
47
+ size: 18
48
+ })
49
+ })]
50
+ }), /* @__PURE__ */ i("div", {
51
+ className: o["bsy-mobile-action-sheet__body"],
52
+ children: m ?? /* @__PURE__ */ i("div", {
53
+ className: o["bsy-mobile-action-sheet__list"],
54
+ children: f?.map((e) => /* @__PURE__ */ a("button", {
55
+ type: "button",
56
+ disabled: e.disabled,
57
+ className: s(o["bsy-mobile-action-sheet__item"], !b && e.selected && o["bsy-mobile-action-sheet__item--selected"], e.disabled && o["bsy-mobile-action-sheet__item--disabled"]),
58
+ style: b && !e.disabled && e.color ? { color: e.color } : void 0,
59
+ onClick: () => {
60
+ p?.(e), l();
61
+ },
62
+ children: [/* @__PURE__ */ a("span", {
63
+ className: o["bsy-mobile-action-sheet__item-inner"],
64
+ children: [b && e.icon ? /* @__PURE__ */ i("span", {
65
+ className: o["bsy-mobile-action-sheet__item-icon"],
66
+ children: e.icon
67
+ }) : null, /* @__PURE__ */ i("span", {
68
+ className: o["bsy-mobile-action-sheet__item-label"],
69
+ children: e.text
70
+ })]
71
+ }), !b && e.selected ? /* @__PURE__ */ i("span", {
72
+ className: o["bsy-mobile-action-sheet__check"],
73
+ children: /* @__PURE__ */ i(t, {
74
+ name: "checkthebox",
75
+ size: 16
76
+ })
77
+ }) : null]
78
+ }, e.key))
79
+ })
80
+ })]
81
+ })
82
+ });
83
+ };
84
+ //#endregion
85
+ export { c as t };
@@ -1,5 +1,7 @@
1
- import "../vendors/version-DsM7d69k.js";
2
- import { t as e } from "./ActionSheet-DbrKxa_y.js";
3
- import "../Icon/Icon-CFvcrGGg.js";
4
- import "../ConfigProvider/useLocale-CP8NRZoj.js";
1
+ import "../vendors/version-DdP63VFD.js";
2
+ import "../Popup/Popup-C1uwPnxj.js";
3
+ import { t as e } from "./ActionSheet-8cPpwho3.js";
4
+ import "../Icon/Icon-OUPXAIEn.js";
5
+ import "../Overlay/Overlay-YzAfhILA.js";
6
+ import "../ConfigProvider/useLocale-D12uIZ9q.js";
5
7
  export { e as default };