bitz-react-admin-ui 2.0.7 → 2.0.8

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 (218) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +10 -4
  2. package/dist/assets/iconfont/IconClose.mjs +7 -1
  3. package/dist/assets/iconfont/IconCuowu.mjs +8 -2
  4. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  5. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  6. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  7. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  8. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  9. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  10. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  11. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  12. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  13. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  14. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  15. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  16. package/dist/assets/iconfont/IconMore.mjs +26 -4
  17. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  18. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  19. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  20. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  21. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  22. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  23. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  24. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  25. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  26. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  27. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  28. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  29. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  30. package/dist/assets/iconfont/index.mjs +29 -29
  31. package/dist/components/BitzAddTag/index.mjs +41 -8
  32. package/dist/components/BitzAddressBook/index.mjs +122 -35
  33. package/dist/components/BitzAppPage/index.mjs +18 -4
  34. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  35. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  36. package/dist/components/BitzButton/index.mjs +23 -9
  37. package/dist/components/BitzCalendar/index.mjs +52 -19
  38. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  39. package/dist/components/BitzCascader/index.mjs +6 -2
  40. package/dist/components/BitzCollapse/index.mjs +4 -4
  41. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  42. package/dist/components/BitzConfigProvider/index.mjs +12 -8
  43. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  44. package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
  45. package/dist/components/BitzConvert/index.mjs +1 -1
  46. package/dist/components/BitzDescriptions/index.mjs +11 -1
  47. package/dist/components/BitzDrawer/index.mjs +17 -2
  48. package/dist/components/BitzEmpty/index.mjs +6 -2
  49. package/dist/components/BitzException/index.mjs +6 -1
  50. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  51. package/dist/components/BitzFluentInput/index.mjs +23 -4
  52. package/dist/components/BitzFluentSelect/index.mjs +24 -5
  53. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  54. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  55. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  56. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +29 -6
  57. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  58. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  59. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
  60. package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
  61. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  62. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  63. package/dist/components/BitzFullScreen/index.mjs +9 -6
  64. package/dist/components/BitzHighlight/Child.mjs +23 -9
  65. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  66. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  67. package/dist/components/BitzHighlight/style.mjs +4 -1
  68. package/dist/components/BitzImage/index.mjs +1 -1
  69. package/dist/components/BitzImage/previewImage.mjs +12 -5
  70. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  71. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  72. package/dist/components/BitzList/List.mjs +17 -3
  73. package/dist/components/BitzList/LoadMore.mjs +29 -20
  74. package/dist/components/BitzLoadMore/index.mjs +34 -14
  75. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  76. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  77. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  78. package/dist/components/BitzModal/index.mjs +24 -11
  79. package/dist/components/BitzNoData/index.mjs +4 -1
  80. package/dist/components/BitzNoMore/index.mjs +1 -1
  81. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  82. package/dist/components/BitzPageContainer/index.mjs +107 -46
  83. package/dist/components/BitzPageHeader/index.mjs +89 -21
  84. package/dist/components/BitzPagination/index.mjs +62 -14
  85. package/dist/components/BitzPopover/index.mjs +4 -4
  86. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  87. package/dist/components/BitzQRCode/index.mjs +6 -1
  88. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  89. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  90. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  91. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  92. package/dist/components/BitzRefresh/index.mjs +5 -1
  93. package/dist/components/BitzRemark/index.mjs +4 -4
  94. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  95. package/dist/components/BitzSearch/index.mjs +1 -1
  96. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  97. package/dist/components/BitzSelect/index.mjs +1 -1
  98. package/dist/components/BitzSkeleton/index.mjs +31 -1
  99. package/dist/components/BitzSwitch/index.mjs +7 -2
  100. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  101. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  102. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +33 -5
  103. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  104. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  105. package/dist/components/BitzTable/ActionCol/index.mjs +90 -16
  106. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  107. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  108. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  109. package/dist/components/BitzTable/SelectionBar/Button.mjs +32 -14
  110. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
  111. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  112. package/dist/components/BitzTable/Store/index.mjs +68 -45
  113. package/dist/components/BitzTable/Store/utils/index.mjs +30 -14
  114. package/dist/components/BitzTable/Table/index.mjs +305 -145
  115. package/dist/components/BitzTable/Table/style.mjs +10 -1
  116. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  117. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +10 -0
  118. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +100 -0
  119. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.d.ts +10 -0
  120. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +103 -0
  121. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +13 -0
  122. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +88 -0
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +14 -0
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +261 -0
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +6 -0
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +17 -0
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.d.ts +8 -0
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +13 -0
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +10 -0
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +163 -0
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +11 -0
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +44 -0
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +2 -0
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +249 -0
  135. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
  136. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  137. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
  138. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +64 -19
  139. package/dist/components/BitzTable/ToolBar/index.d.ts +2 -0
  140. package/dist/components/BitzTable/ToolBar/index.mjs +6 -4
  141. package/dist/components/BitzTableOperations/index.mjs +13 -3
  142. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  143. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  144. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +21 -11
  145. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
  146. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  147. package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
  148. package/dist/components/BitzTableSelect/index.mjs +61 -13
  149. package/dist/components/BitzTag/index.mjs +1 -1
  150. package/dist/components/BitzTheme/index.mjs +6 -6
  151. package/dist/components/BitzTimeline/index.mjs +11 -1
  152. package/dist/components/BitzTimer/Form.mjs +32 -11
  153. package/dist/components/BitzTimer/Timer.mjs +76 -38
  154. package/dist/components/BitzTimer/index.mjs +66 -43
  155. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  156. package/dist/components/BitzToast/index.mjs +1 -1
  157. package/dist/components/BitzTree/index.mjs +4 -1
  158. package/dist/components/BitzUeEditor/index.mjs +5 -5
  159. package/dist/components/BitzUpload/index.mjs +81 -43
  160. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  161. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  162. package/dist/hooks/use-event-listener.mjs +11 -2
  163. package/dist/hooks/use-lock-fn.mjs +13 -10
  164. package/dist/hooks/use-scroll-parent.mjs +16 -14
  165. package/dist/hooks/useEvent.mjs +7 -4
  166. package/dist/hooks/useMergedState.mjs +11 -11
  167. package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
  168. package/dist/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +15 -0
  169. package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
  170. package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
  171. package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
  172. package/dist/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +5 -0
  173. package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
  174. package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
  175. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
  176. package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2179 -0
  177. package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
  178. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
  179. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
  180. package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
  181. package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
  182. package/dist/node_modules/lodash-es/_Set.mjs +7 -0
  183. package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
  184. package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
  185. package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
  186. package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
  187. package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
  188. package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
  189. package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
  190. package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
  191. package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
  192. package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
  193. package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
  194. package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
  195. package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
  196. package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
  197. package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
  198. package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
  199. package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
  200. package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
  201. package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
  202. package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
  203. package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
  204. package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
  205. package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
  206. package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
  207. package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
  208. package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
  209. package/dist/node_modules/lodash-es/_parent.mjs +8 -0
  210. package/dist/node_modules/lodash-es/isMap.mjs +8 -0
  211. package/dist/node_modules/lodash-es/isSet.mjs +8 -0
  212. package/dist/node_modules/lodash-es/keys.mjs +9 -0
  213. package/dist/node_modules/lodash-es/last.mjs +7 -0
  214. package/dist/node_modules/lodash-es/omit.mjs +24 -0
  215. package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
  216. package/dist/style.css +1 -1
  217. package/dist/utils/create.mjs +7 -1
  218. package/package.json +1 -1
@@ -1,25 +1,37 @@
1
1
  import { j as i } from "../../node_modules/react/jsx-runtime.mjs";
2
- import { useState as t } from "react";
3
- import { isMobile as p } from "../../node_modules/react-device-detect/dist/lib.mjs";
2
+ import { useState as o } from "react";
3
+ import { isMobile as T } from "../../node_modules/react-device-detect/dist/lib.mjs";
4
4
  import P from "../BitzRefresh/index.mjs";
5
5
  import "./index.less.mjs";
6
- const M = ({ children: c, pageRefeshEmit: r = () => {
6
+ const b = ({ children: c, pageRefeshEmit: r = () => {
7
7
  } }) => {
8
- const [a, s] = t(!1), [h, u] = t(0), [f, e] = t(0), m = (o) => {
9
- const n = o.changedTouches[0].clientY;
10
- u(n);
11
- }, l = (o) => {
12
- const d = o.changedTouches[0].clientY - h;
13
- e(d);
14
- }, T = () => {
15
- p && (f > 400 && (s(!0), setTimeout(() => {
8
+ const [a, s] = o(!1), [u, h] = o(0), [f, e] = o(0), m = (t) => {
9
+ const n = t.changedTouches[0].clientY;
10
+ h(n);
11
+ }, l = (t) => {
12
+ const p = t.changedTouches[0].clientY - u;
13
+ e(p);
14
+ }, d = () => {
15
+ T && (f > 400 && (s(!0), setTimeout(() => {
16
16
  r(), s(!1);
17
17
  }, 2e3)), e(0));
18
18
  };
19
- return i.jsxs("div", { className: "bitzPageBlock", onTouchStart: m, onTouchMove: l, onTouchEnd: () => {
20
- T();
21
- }, children: [i.jsx(P, { showRefresh: a }), c] });
19
+ return /* @__PURE__ */ i.jsxs(
20
+ "div",
21
+ {
22
+ className: "bitzPageBlock",
23
+ onTouchStart: m,
24
+ onTouchMove: l,
25
+ onTouchEnd: () => {
26
+ d();
27
+ },
28
+ children: [
29
+ /* @__PURE__ */ i.jsx(P, { showRefresh: a }),
30
+ c
31
+ ]
32
+ }
33
+ );
22
34
  };
23
35
  export {
24
- M as default
36
+ b as default
25
37
  };
@@ -4,11 +4,11 @@ import l from "../../node_modules/prop-types/index.mjs";
4
4
  import x from "../../node_modules/better-scroll/dist/better-scroll.esm.mjs";
5
5
  import { debounce as m } from "../../node_modules/throttle-debounce/esm/index.mjs";
6
6
  const b = T((u, h) => {
7
- const [o, s] = E(), i = L(), { direction: f, click: w, refresh: D, pullUpLoading: y, pullDownLoading: P, bounceTop: S, bounceBottom: B } = u, { pullUp: n, pullDown: t, onScroll: c } = u, p = d(() => m(500, n), [n]), a = d(() => m(500, t), [t]);
7
+ const [o, s] = E(), f = L(), { direction: i, click: w, refresh: D, pullUpLoading: y, pullDownLoading: P, bounceTop: S, bounceBottom: B } = u, { pullUp: n, pullDown: t, onScroll: c } = u, p = d(() => m(500, n), [n]), a = d(() => m(500, t), [t]);
8
8
  return e(() => {
9
- const r = new x(i.current, {
10
- scrollX: f === "horizental",
11
- scrollY: f === "vertical",
9
+ const r = new x(f.current, {
10
+ scrollX: i === "horizental",
11
+ scrollY: i === "vertical",
12
12
  probeType: 3,
13
13
  click: w,
14
14
  bounce: {
@@ -52,7 +52,7 @@ const b = T((u, h) => {
52
52
  if (o)
53
53
  return o;
54
54
  }
55
- })), g.jsx("div", { className: "scroll_container", ref: i, children: u.children });
55
+ })), /* @__PURE__ */ g.jsx("div", { className: "scroll_container", ref: f, children: u.children });
56
56
  });
57
57
  b.defaultProps = {
58
58
  direction: "vertical",
@@ -2,15 +2,29 @@ import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { Button as l } from "antd";
3
3
  const c = ({ type: d = "default", warning: f = !1, success: n = !1, ...o }) => {
4
4
  const r = { type: d, ...o };
5
- return o.danger ? e.jsx(l, { danger: !0, ...r, children: r.children }) : f ? d === "default" ? e.jsx(l, { style: { borderColor: "#ff8f1f", color: "#ff8f1f" }, ...r, children: r.children }) : d === "dashed" ? e.jsx(l, { style: {
6
- borderColor: "#ff8f1f",
7
- borderWidth: "dashed",
8
- color: "#ff8f1f"
9
- }, ...r, children: r.children }) : d === "text" || d === "link" ? e.jsx(l, { style: { color: "#ff8f1f" }, ...r, children: r.children }) : e.jsx(l, { style: { backgroundColor: "#ff8f1f" }, ...r, children: r.children }) : n ? d === "default" ? e.jsx(l, { style: { borderColor: "#00b578", color: "#00b578" }, ...r, children: r.children }) : d === "dashed" ? e.jsx(l, { style: {
10
- borderColor: "#00b578",
11
- borderWidth: "dashed",
12
- color: "#00b578"
13
- }, ...r, children: r.children }) : d === "text" || d === "link" ? e.jsx(l, { style: { color: "#00b578" }, ...r, children: r.children }) : e.jsx(l, { style: { backgroundColor: "#00b578" }, ...r, children: r.children }) : e.jsx(l, { ...r, children: r.children });
5
+ return o.danger ? /* @__PURE__ */ e.jsx(l, { danger: !0, ...r, children: r.children }) : f ? d === "default" ? /* @__PURE__ */ e.jsx(l, { style: { borderColor: "#ff8f1f", color: "#ff8f1f" }, ...r, children: r.children }) : d === "dashed" ? /* @__PURE__ */ e.jsx(
6
+ l,
7
+ {
8
+ style: {
9
+ borderColor: "#ff8f1f",
10
+ borderWidth: "dashed",
11
+ color: "#ff8f1f"
12
+ },
13
+ ...r,
14
+ children: r.children
15
+ }
16
+ ) : d === "text" || d === "link" ? /* @__PURE__ */ e.jsx(l, { style: { color: "#ff8f1f" }, ...r, children: r.children }) : /* @__PURE__ */ e.jsx(l, { style: { backgroundColor: "#ff8f1f" }, ...r, children: r.children }) : n ? d === "default" ? /* @__PURE__ */ e.jsx(l, { style: { borderColor: "#00b578", color: "#00b578" }, ...r, children: r.children }) : d === "dashed" ? /* @__PURE__ */ e.jsx(
17
+ l,
18
+ {
19
+ style: {
20
+ borderColor: "#00b578",
21
+ borderWidth: "dashed",
22
+ color: "#00b578"
23
+ },
24
+ ...r,
25
+ children: r.children
26
+ }
27
+ ) : d === "text" || d === "link" ? /* @__PURE__ */ e.jsx(l, { style: { color: "#00b578" }, ...r, children: r.children }) : /* @__PURE__ */ e.jsx(l, { style: { backgroundColor: "#00b578" }, ...r, children: r.children }) : /* @__PURE__ */ e.jsx(l, { ...r, children: r.children });
14
28
  };
15
29
  export {
16
30
  c as default
@@ -16,25 +16,58 @@ const A = ({ fold: l = !1, ...g }) => {
16
16
  l ? o.style.display = o === r ? "table-row" : "none" : o.style.display = "table-row";
17
17
  });
18
18
  }, 0);
19
- }, [l]), n.jsx("div", { ref: f, children: n.jsx(k, { className: "BitzCalendarBlock", fullscreen: !1, headerRender: m.headerRender ? m.headerRender : ({ value: t, type: r, onChange: s, onTypeChange: u }) => {
20
- const o = [];
21
- let d = t.clone();
22
- const z = t.localeData(), x = [];
23
- for (let e = 0; e < 12; e++)
24
- d = d.month(e), x.push(z.monthsShort(d));
25
- for (let e = 0; e < 12; e++)
26
- o.push(n.jsx(a.Option, { value: e, className: "month-item", children: x[e] }, e));
27
- const h = t.year(), S = t.month(), j = [];
28
- for (let e = h - 10; e < h + 10; e += 1)
29
- j.push(n.jsx(a.Option, { value: e, className: "year-item", children: e }, e));
30
- return n.jsx("div", { style: { padding: 8 }, children: n.jsxs(w, { gutter: 8, children: [n.jsx(y, { children: n.jsx(a, { size: "small", popupMatchSelectWidth: !1, className: "my-year-select", value: h, onChange: (e) => {
31
- const p = t.clone().year(e);
32
- s(p);
33
- }, children: j }) }), n.jsx(y, { children: n.jsx(a, { size: "small", popupMatchSelectWidth: !1, value: S, onChange: (e) => {
34
- const p = t.clone().month(e);
35
- s(p);
36
- }, children: o }) })] }) });
37
- } }) });
19
+ }, [l]), /* @__PURE__ */ n.jsx("div", { ref: f, children: /* @__PURE__ */ n.jsx(
20
+ k,
21
+ {
22
+ className: "BitzCalendarBlock",
23
+ fullscreen: !1,
24
+ headerRender: m.headerRender ? m.headerRender : ({ value: t, type: r, onChange: s, onTypeChange: u }) => {
25
+ const o = [];
26
+ let d = t.clone();
27
+ const z = t.localeData(), x = [];
28
+ for (let e = 0; e < 12; e++)
29
+ d = d.month(e), x.push(z.monthsShort(d));
30
+ for (let e = 0; e < 12; e++)
31
+ o.push(
32
+ /* @__PURE__ */ n.jsx(a.Option, { value: e, className: "month-item", children: x[e] }, e)
33
+ );
34
+ const h = t.year(), S = t.month(), j = [];
35
+ for (let e = h - 10; e < h + 10; e += 1)
36
+ j.push(
37
+ /* @__PURE__ */ n.jsx(a.Option, { value: e, className: "year-item", children: e }, e)
38
+ );
39
+ return /* @__PURE__ */ n.jsx("div", { style: { padding: 8 }, children: /* @__PURE__ */ n.jsxs(w, { gutter: 8, children: [
40
+ /* @__PURE__ */ n.jsx(y, { children: /* @__PURE__ */ n.jsx(
41
+ a,
42
+ {
43
+ size: "small",
44
+ popupMatchSelectWidth: !1,
45
+ className: "my-year-select",
46
+ value: h,
47
+ onChange: (e) => {
48
+ const p = t.clone().year(e);
49
+ s(p);
50
+ },
51
+ children: j
52
+ }
53
+ ) }),
54
+ /* @__PURE__ */ n.jsx(y, { children: /* @__PURE__ */ n.jsx(
55
+ a,
56
+ {
57
+ size: "small",
58
+ popupMatchSelectWidth: !1,
59
+ value: S,
60
+ onChange: (e) => {
61
+ const p = t.clone().month(e);
62
+ s(p);
63
+ },
64
+ children: o
65
+ }
66
+ ) })
67
+ ] }) });
68
+ }
69
+ }
70
+ ) });
38
71
  };
39
72
  export {
40
73
  A as default
@@ -1,50 +1,88 @@
1
1
  import { j as n } from "../../node_modules/react/jsx-runtime.mjs";
2
- import { useState as u } from "react";
3
- import { Input as K, Tabs as N, Radio as O } from "antd";
4
- import { useImmer as g } from "../../node_modules/use-immer/dist/use-immer.module.mjs";
5
- import { BitzPickDrawer as z } from "../BitzDrawer/index.mjs";
6
- import B from "../../node_modules/@ant-design/icons/es/icons/DownOutlined.mjs";
2
+ import { useState as h } from "react";
3
+ import { Input as N, Tabs as g, Radio as z } from "antd";
4
+ import { useImmer as B } from "../../node_modules/use-immer/dist/use-immer.module.mjs";
5
+ import { BitzPickDrawer as K } from "../BitzDrawer/index.mjs";
6
+ import O from "../../node_modules/@ant-design/icons/es/icons/DownOutlined.mjs";
7
7
  const d = { label: "请选择", key: "", value: "" }, V = (t) => {
8
8
  var f;
9
- const [v, x] = u(((f = t.defaultValue) == null ? void 0 : f.join(" / ")) || ""), [j, r] = u(!1), [o, b] = g([{ ...d, children: t.options }]), [h, i] = u(d.label), m = () => {
9
+ const [v, x] = h(((f = t.defaultValue) == null ? void 0 : f.join(" / ")) || ""), [j, r] = h(!1), [o, b] = B([{ ...d, children: t.options }]), [u, i] = h(d.label), m = () => {
10
10
  r(!1), b([{ ...d, children: t.options }]), i(d.label);
11
11
  }, k = () => {
12
12
  var s;
13
- const e = o.slice(1), a = e.map((c) => ({
13
+ const l = o.slice(1), a = l.map((c) => ({
14
14
  label: c.label,
15
15
  value: c.value
16
- })), l = e.map((c) => c.key);
17
- (s = t.onChange) == null || s.call(t, l, a), r(!1), x(l.join(" / "));
18
- }, C = (e) => {
16
+ })), e = l.map((c) => c.key);
17
+ (s = t.onChange) == null || s.call(t, e, a), r(!1), x(e.join(" / "));
18
+ }, C = (l) => {
19
19
  b((a) => {
20
- const l = o.at(-1), s = a.at(-1);
21
- if (l) {
22
- const c = l.children, p = l.label;
20
+ const e = o.at(-1), s = a.at(-1);
21
+ if (e) {
22
+ const c = e.children, p = e.label;
23
23
  if (c != null && c.find((I) => I.label === p)) {
24
- s.label = e.label, s.key = e.label, i(e.label);
24
+ s.label = l.label, s.key = l.label, i(l.label);
25
25
  return;
26
26
  }
27
27
  }
28
28
  a.push({
29
- key: e.label,
30
- label: e.label,
31
- value: e.label,
32
- children: e.children ? e.children : s.children
33
- }), i(e.label);
29
+ key: l.label,
30
+ label: l.label,
31
+ value: l.label,
32
+ children: l.children ? l.children : s.children
33
+ }), i(l.label);
34
34
  });
35
- }, y = (e) => {
36
- i(e);
37
- const a = o.slice(0, o.findIndex((l) => l.label === e) + 1);
35
+ }, y = (l) => {
36
+ i(l);
37
+ const a = o.slice(0, o.findIndex((e) => e.label === l) + 1);
38
38
  b(a);
39
39
  };
40
- return n.jsxs("div", { className: "bitzCascaderMobileBlock", children: [n.jsx(K, { placeholder: t.placeholder, onClick: () => r(!0), value: v, suffix: n.jsx(B, {}) }), n.jsx(z, { open: j, handleCancel: m, handleOk: k, children: n.jsx(N, { defaultActiveKey: h, activeKey: h, items: o.map((e) => {
41
- var a;
42
- return {
43
- key: e.label,
44
- label: e.label,
45
- children: (a = e.children) == null ? void 0 : a.map((l, s) => n.jsxs("div", { className: "item", onClick: () => C(l), children: [n.jsx("span", { children: l.label }), n.jsx("span", { children: l.label === h ? n.jsx(O, { checked: !0 }) : "" })] }, s))
46
- };
47
- }), onChange: y }) })] });
40
+ return /* @__PURE__ */ n.jsxs("div", { className: "bitzCascaderMobileBlock", children: [
41
+ /* @__PURE__ */ n.jsx(
42
+ N,
43
+ {
44
+ placeholder: t.placeholder,
45
+ onClick: () => r(!0),
46
+ value: v,
47
+ suffix: /* @__PURE__ */ n.jsx(O, {})
48
+ }
49
+ ),
50
+ /* @__PURE__ */ n.jsx(
51
+ K,
52
+ {
53
+ open: j,
54
+ handleCancel: m,
55
+ handleOk: k,
56
+ children: /* @__PURE__ */ n.jsx(
57
+ g,
58
+ {
59
+ defaultActiveKey: u,
60
+ activeKey: u,
61
+ items: o.map((l) => {
62
+ var a;
63
+ return {
64
+ key: l.label,
65
+ label: l.label,
66
+ children: (a = l.children) == null ? void 0 : a.map((e, s) => /* @__PURE__ */ n.jsxs(
67
+ "div",
68
+ {
69
+ className: "item",
70
+ onClick: () => C(e),
71
+ children: [
72
+ /* @__PURE__ */ n.jsx("span", { children: e.label }),
73
+ /* @__PURE__ */ n.jsx("span", { children: e.label === u ? /* @__PURE__ */ n.jsx(z, { checked: !0 }) : "" })
74
+ ]
75
+ },
76
+ s
77
+ ))
78
+ };
79
+ }),
80
+ onChange: y
81
+ }
82
+ )
83
+ }
84
+ )
85
+ ] });
48
86
  };
49
87
  export {
50
88
  V as default
@@ -2,9 +2,13 @@ import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { Cascader as e } from "antd";
3
3
  import { isMobile as a } from "../../node_modules/react-device-detect/dist/lib.mjs";
4
4
  import m from "./BitzCascaderMobile.mjs";
5
- const x = ({ placeholder: t = "", options: s = [], ...i }) => {
5
+ const x = ({
6
+ placeholder: t = "",
7
+ options: s = [],
8
+ ...i
9
+ }) => {
6
10
  const r = { placeholder: t, options: s, ...i };
7
- return a ? o.jsx(m, { ...r }) : o.jsx(e, { ...r });
11
+ return a ? /* @__PURE__ */ o.jsx(m, { ...r }) : /* @__PURE__ */ o.jsx(e, { ...r });
8
12
  };
9
13
  export {
10
14
  x as default
@@ -1,9 +1,9 @@
1
1
  import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import "./index.less.mjs";
3
- import s from "../../node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs";
3
+ import i from "../../node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs";
4
4
  import e from "../../node_modules/@ant-design/icons/es/icons/MenuFoldOutlined.mjs";
5
- const a = ({ isCollapse: l, onClick: i = () => {
6
- } }) => o.jsx("div", { className: "bitzCollapseBlock", onClick: i, children: l ? o.jsx(s, { id: "isCollapse" }) : o.jsx(e, { id: "isCollapse" }) });
5
+ const d = ({ isCollapse: l, onClick: s = () => {
6
+ } }) => /* @__PURE__ */ o.jsx("div", { className: "bitzCollapseBlock", onClick: s, children: l ? /* @__PURE__ */ o.jsx(i, { id: "isCollapse" }) : /* @__PURE__ */ o.jsx(e, { id: "isCollapse" }) });
7
7
  export {
8
- a as default
8
+ d as default
9
9
  };
@@ -1,5 +1,7 @@
1
1
  import { createContext as t } from "react";
2
- const e = t({});
2
+ const e = t(
3
+ {}
4
+ );
3
5
  export {
4
6
  e as BitzConfigContext
5
7
  };
@@ -1,19 +1,23 @@
1
1
  import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
2
- import { ConfigProvider as d } from "antd";
3
- import { useState as f, useMemo as p } from "react";
2
+ import { ConfigProvider as f } from "antd";
3
+ import { useState as d, useMemo as p } from "react";
4
4
  import { BitzConfigContext as u } from "./context.mjs";
5
5
  import t from "../../node_modules/lodash-es/merge.mjs";
6
- const v = ({ children: s, context: e, ...m }) => {
7
- const [r, i] = f("current"), n = {
6
+ const v = ({
7
+ children: s,
8
+ context: e,
9
+ ...m
10
+ }) => {
11
+ const [r, i] = d("current"), n = {
8
12
  Table: {
9
13
  stylesScope: r,
10
14
  setStylesScope: i
11
15
  }
12
- }, l = p(() => {
13
- const a = t(e == null ? void 0 : e.Table, n.Table);
14
- return t(e, { Table: a });
16
+ }, a = p(() => {
17
+ const l = t(e == null ? void 0 : e.Table, n.Table);
18
+ return t(e, { Table: l });
15
19
  }, [e, r]);
16
- return o.jsx(d, { ...m, children: o.jsx(u.Provider, { value: l, children: s }) });
20
+ return /* @__PURE__ */ o.jsx(f, { ...m, children: /* @__PURE__ */ o.jsx(u.Provider, { value: a, children: s }) });
17
21
  };
18
22
  export {
19
23
  v as default
@@ -16,7 +16,30 @@ const _ = (m) => {
16
16
  }, y = () => {
17
17
  r == null || r(), o.resolve("cancel"), o.hide();
18
18
  };
19
- return e.jsx(g, { open: a.open, afterClose: a.afterClose, className: "bitzConfirmModalBlock", title: f || s("System_Tip", "提示"), width: 400, closeIcon: e.jsx(N, {}), onOk: k, onCancel: y, confirmLoading: h, okText: s("System_Deter", "确定"), okType: p || "primary", okButtonProps: { danger: !0, ...d }, cancelText: s("System_Cancel", "取消"), ...u, style: { "--modalContent-colorBg": (i = n.Modal) == null ? void 0 : i.headerBg }, children: e.jsxs("div", { className: "textBox", children: [e.jsx("div", { className: "warnIcon", children: e.jsx(M, { className: "icon", color: n.colorError, size: 20 }) }), e.jsx("div", { className: "modalText", children: x || s("System_CanUSure", "您确定要删除吗?") })] }) });
19
+ return /* @__PURE__ */ e.jsx(
20
+ g,
21
+ {
22
+ open: a.open,
23
+ afterClose: a.afterClose,
24
+ className: "bitzConfirmModalBlock",
25
+ title: f || s("System_Tip", "提示"),
26
+ width: 400,
27
+ closeIcon: /* @__PURE__ */ e.jsx(N, {}),
28
+ onOk: k,
29
+ onCancel: y,
30
+ confirmLoading: h,
31
+ okText: s("System_Deter", "确定"),
32
+ okType: p || "primary",
33
+ okButtonProps: { danger: !0, ...d },
34
+ cancelText: s("System_Cancel", "取消"),
35
+ ...u,
36
+ style: { "--modalContent-colorBg": (i = n.Modal) == null ? void 0 : i.headerBg },
37
+ children: /* @__PURE__ */ e.jsxs("div", { className: "textBox", children: [
38
+ /* @__PURE__ */ e.jsx("div", { className: "warnIcon", children: /* @__PURE__ */ e.jsx(M, { className: "icon", color: n.colorError, size: 20 }) }),
39
+ /* @__PURE__ */ e.jsx("div", { className: "modalText", children: x || s("System_CanUSure", "您确定要删除吗?") })
40
+ ] })
41
+ }
42
+ );
20
43
  }, D = j(_);
21
44
  export {
22
45
  D as default
@@ -1,21 +1,24 @@
1
1
  import { j as l } from "../../../node_modules/react/jsx-runtime.mjs";
2
- import { Dropdown as x, Tooltip as h } from "antd";
3
- import a, { useMemo as j } from "react";
4
- const m = ({ children: e, ...t }) => {
2
+ import { Dropdown as a, Tooltip as h } from "antd";
3
+ import k, { useMemo as j } from "react";
4
+ const m = ({
5
+ children: e,
6
+ ...t
7
+ }) => {
5
8
  var s, c, r;
6
9
  const { menu: o } = t, i = j(() => {
7
- var p, d;
8
- let n;
9
- if (((p = o == null ? void 0 : o.items) == null ? void 0 : p.length) === 1) {
10
- const k = ((d = o.items[0]) == null ? void 0 : d.key) || "";
11
- o.onClick && (n = () => {
10
+ var n, d;
11
+ let p;
12
+ if (((n = o == null ? void 0 : o.items) == null ? void 0 : n.length) === 1) {
13
+ const x = ((d = o.items[0]) == null ? void 0 : d.key) || "";
14
+ o.onClick && (p = () => {
12
15
  var f;
13
- return (f = o.onClick) == null ? void 0 : f.call(o, { key: k });
16
+ return (f = o.onClick) == null ? void 0 : f.call(o, { key: x });
14
17
  });
15
18
  }
16
- return a.cloneElement(e, { onClick: n });
19
+ return k.cloneElement(e, { onClick: p });
17
20
  }, [o == null ? void 0 : o.items, o == null ? void 0 : o.onClick, e]);
18
- return (((s = o == null ? void 0 : o.items) == null ? void 0 : s.length) || 0) > 1 ? l.jsx(x, { ...t, children: t.showTootip ? l.jsx(h, { title: t.tipText, children: i }) : i }) : t.showTootip ? l.jsx(h, { title: ((r = (c = o == null ? void 0 : o.items) == null ? void 0 : c[0]) == null ? void 0 : r.label) || "", children: i }) : i;
21
+ return (((s = o == null ? void 0 : o.items) == null ? void 0 : s.length) || 0) > 1 ? /* @__PURE__ */ l.jsx(a, { ...t, children: t.showTootip ? /* @__PURE__ */ l.jsx(h, { title: t.tipText, children: i }) : i }) : t.showTootip ? /* @__PURE__ */ l.jsx(h, { title: ((r = (c = o == null ? void 0 : o.items) == null ? void 0 : c[0]) == null ? void 0 : r.label) || "", children: i }) : i;
19
22
  };
20
23
  export {
21
24
  m as default
@@ -1,6 +1,6 @@
1
1
  import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import r from "./DropdownToButton/index.mjs";
3
- const t = () => o.jsx(o.Fragment, {});
3
+ const t = () => /* @__PURE__ */ o.jsx(o.Fragment, {});
4
4
  process.env.NODE_ENV !== "production" && (t.displayName = "BitzConvert");
5
5
  t.DropdownToButton = r;
6
6
  export {
@@ -1,6 +1,16 @@
1
1
  import { j as s } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { Descriptions as r } from "antd";
3
- const e = (t) => s.jsx(r, { ...t }), o = (t) => s.jsx(r.Item, { ...t });
3
+ const e = (t) => /* @__PURE__ */ s.jsx(
4
+ r,
5
+ {
6
+ ...t
7
+ }
8
+ ), o = (t) => /* @__PURE__ */ s.jsx(
9
+ r.Item,
10
+ {
11
+ ...t
12
+ }
13
+ );
4
14
  e.Item = o;
5
15
  export {
6
16
  e as default
@@ -4,8 +4,23 @@ import i from "../BitzButton/index.mjs";
4
4
  import "./index.less.mjs";
5
5
  const c = ({ open: e = !1, placement: a = "right", ...t }) => {
6
6
  const l = { open: e, placement: a, ...t };
7
- return r.jsx(n, { className: "bitzDrawerBlock", ...l, children: t.children });
8
- }, h = (e) => r.jsx(c, { open: e.open, placement: "bottom", closable: !1, className: "bitzPickDrawerheaderwrap", destroyOnClose: !0, title: r.jsxs("div", { className: "bitzPickDrawerheader", children: [r.jsx(i, { type: "text", onClick: e.handleCancel, children: "取消" }), r.jsx(i, { type: "link", onClick: e.handleOk, children: "确认" })] }), ...e, children: r.jsx("div", { className: "bitzPickDrawerContent", children: e.children }) });
7
+ return /* @__PURE__ */ r.jsx(n, { className: "bitzDrawerBlock", ...l, children: t.children });
8
+ }, h = (e) => /* @__PURE__ */ r.jsx(
9
+ c,
10
+ {
11
+ open: e.open,
12
+ placement: "bottom",
13
+ closable: !1,
14
+ className: "bitzPickDrawerheaderwrap",
15
+ destroyOnClose: !0,
16
+ title: /* @__PURE__ */ r.jsxs("div", { className: "bitzPickDrawerheader", children: [
17
+ /* @__PURE__ */ r.jsx(i, { type: "text", onClick: e.handleCancel, children: "取消" }),
18
+ /* @__PURE__ */ r.jsx(i, { type: "link", onClick: e.handleOk, children: "确认" })
19
+ ] }),
20
+ ...e,
21
+ children: /* @__PURE__ */ r.jsx("div", { className: "bitzPickDrawerContent", children: e.children })
22
+ }
23
+ );
9
24
  export {
10
25
  h as BitzPickDrawer,
11
26
  c as default
@@ -1,8 +1,12 @@
1
1
  import { j as n } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { Empty as e } from "antd";
3
- const p = ({ description: o = "暂无数据", image: m = "https://www.ailinkedlaw.com/Common/Images/nodata.png", ...t }) => {
3
+ const p = ({
4
+ description: o = "暂无数据",
5
+ image: m = "https://www.ailinkedlaw.com/Common/Images/nodata.png",
6
+ ...t
7
+ }) => {
4
8
  const r = { description: o, image: m, ...t };
5
- return n.jsx(e, { ...r, children: t.children });
9
+ return /* @__PURE__ */ n.jsx(e, { ...r, children: t.children });
6
10
  };
7
11
  export {
8
12
  p as default
@@ -1,6 +1,11 @@
1
1
  import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { Result as r } from "antd";
3
- const i = (t) => o.jsx(r, { ...t });
3
+ const i = (t) => /* @__PURE__ */ o.jsx(
4
+ r,
5
+ {
6
+ ...t
7
+ }
8
+ );
4
9
  export {
5
10
  i as default
6
11
  };
@@ -13,7 +13,16 @@ const [_, a] = u("bitzFloatLayoutBlock"), b = (s) => {
13
13
  l == null || l(!1);
14
14
  }, 300);
15
15
  };
16
- return e.jsxs("div", { className: d(a({ active: n }), c), style: { zIndex: m }, children: [i ? e.jsx("div", { onClick: o, className: a("overlay") }) : null, e.jsxs("div", { className: a("container"), children: [t ? e.jsxs("div", { className: a("header"), children: [e.jsx("div", { className: a("header__title"), children: t }), e.jsx("div", { onClick: o, className: a("header__close") })] }) : null, e.jsx("div", { className: a("body"), children: s == null ? void 0 : s.children })] })] });
16
+ return /* @__PURE__ */ e.jsxs("div", { className: d(a({ active: n }), c), style: { zIndex: m }, children: [
17
+ i ? /* @__PURE__ */ e.jsx("div", { onClick: o, className: a("overlay") }) : null,
18
+ /* @__PURE__ */ e.jsxs("div", { className: a("container"), children: [
19
+ t ? /* @__PURE__ */ e.jsxs("div", { className: a("header"), children: [
20
+ /* @__PURE__ */ e.jsx("div", { className: a("header__title"), children: t }),
21
+ /* @__PURE__ */ e.jsx("div", { onClick: o, className: a("header__close") })
22
+ ] }) : null,
23
+ /* @__PURE__ */ e.jsx("div", { className: a("body"), children: s == null ? void 0 : s.children })
24
+ ] })
25
+ ] });
17
26
  };
18
27
  export {
19
28
  b as default
@@ -3,12 +3,19 @@ import { css as a } from "../../node_modules/@emotion/css/dist/emotion-css.esm.m
3
3
  import { theme as d, Input as i } from "antd";
4
4
  import { useMemo as m } from "react";
5
5
  import u from "../../node_modules/lodash-es/isBoolean.mjs";
6
- const $ = ({ placeholder: r, hideFluent: f, ...e }) => {
6
+ const $ = ({
7
+ placeholder: r,
8
+ hideFluent: f,
9
+ ...e
10
+ }) => {
7
11
  const { token: t } = d.useToken(), o = m(() => {
8
12
  const c = e.value, s = e.defaultValue, n = c || s;
9
13
  return u(e.value) || u(e.defaultValue) ? !0 : !(n === void 0 || n === "" || n === null);
10
14
  }, [e.value, e.defaultValue]);
11
- return f ? l.jsx(i, { allowClear: !0, placeholder: r, ...e }) : l.jsxs("div", { className: a`
15
+ return f ? /* @__PURE__ */ l.jsx(i, { allowClear: !0, placeholder: r, ...e }) : /* @__PURE__ */ l.jsxs(
16
+ "div",
17
+ {
18
+ className: a`
12
19
  position: relative;
13
20
  &:focus-within {
14
21
  label {
@@ -18,7 +25,13 @@ const $ = ({ placeholder: r, hideFluent: f, ...e }) => {
18
25
  color: ${t.colorTextPlaceholder};
19
26
  }
20
27
  }
21
- `, children: [l.jsx(i, { allowClear: !0, ...e }), l.jsx("label", { className: a`
28
+ `,
29
+ children: [
30
+ /* @__PURE__ */ l.jsx(i, { allowClear: !0, ...e }),
31
+ /* @__PURE__ */ l.jsx(
32
+ "label",
33
+ {
34
+ className: a`
22
35
  position: absolute;
23
36
  top: ${o ? 0 : "50%"};
24
37
  left: 7px;
@@ -34,7 +47,13 @@ const $ = ({ placeholder: r, hideFluent: f, ...e }) => {
34
47
  color: ${t.colorTextPlaceholder};
35
48
  padding: 0 2px;
36
49
  border-radius: 2px;
37
- `, children: r })] });
50
+ `,
51
+ children: r
52
+ }
53
+ )
54
+ ]
55
+ }
56
+ );
38
57
  };
39
58
  export {
40
59
  $ as default