@baishuyun/ui-base 6.0.0 → 6.2.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 (186) hide show
  1. package/dist/Amap/AmapProvider/index.js +3 -3
  2. package/dist/Amap/{AmapProvider-BkJp-sWi.js → AmapProvider-BgGnih_w.js} +1 -1
  3. package/dist/Amap/index.js +3 -3
  4. package/dist/Calendar/AllDaySection-DS0Frx1p.js +53 -0
  5. package/dist/Calendar/Calendar-CAG1Fxlh.js +806 -0
  6. package/dist/Calendar/CurrentTimeIndicator-DaIywtIA.js +59 -0
  7. package/dist/Calendar/EventCard-D_VeOVDQ.js +155 -0
  8. package/dist/Calendar/TimeAxis-gKb8dTwY.js +13 -0
  9. package/dist/Calendar/TimeGrid-D8Du5vFP.js +47 -0
  10. package/dist/Calendar/adapters/index.js +2 -0
  11. package/dist/Calendar/adapters-zYR7CgzD.js +20 -0
  12. package/dist/Calendar/colorUtils-DcpqM3KR.js +55 -0
  13. package/dist/Calendar/context/index.js +2 -0
  14. package/dist/Calendar/context-DNOJ9LW_.js +21 -0
  15. package/dist/Calendar/index.js +21 -0
  16. package/dist/Calendar/layout-DvWx_7gn.js +302 -0
  17. package/dist/Calendar/shared/AllDaySection/index.js +8 -0
  18. package/dist/Calendar/shared/CurrentTimeIndicator/index.js +5 -0
  19. package/dist/Calendar/shared/EventCard/index.js +6 -0
  20. package/dist/Calendar/shared/TimeAxis/index.js +4 -0
  21. package/dist/Calendar/shared/TimeGrid/index.js +4 -0
  22. package/dist/Calendar/style/index.js +2 -0
  23. package/dist/Calendar/style-hCRKx3m1.js +55 -0
  24. package/dist/Calendar/utils/index.js +114 -0
  25. package/dist/Calendar/utils/layout/index.js +3 -0
  26. package/dist/Card/{Card-D__c94yx.js → Card-CRrtIjNT.js} +1 -1
  27. package/dist/Card/index.js +2 -2
  28. package/dist/CheckBox/{CheckBox-DF201Nxg.js → CheckBox-CkVe5Boq.js} +1 -1
  29. package/dist/CheckBox/{CheckBox-B04hZKaC.js → CheckBox-DIunYcfS.js} +1 -1
  30. package/dist/CheckBox/index.js +3 -3
  31. package/dist/ColorPicker/ColorPicker-CKqNqAsK.js +150 -0
  32. package/dist/ColorPicker/index.js +6 -5
  33. package/dist/ConfigProvider/index.js +2 -2
  34. package/dist/DatePicker/DatePicker-BIxiJQ_W.js +91 -0
  35. package/dist/DatePicker/DatePickerPanel-CsiEGC-1.js +217 -0
  36. package/dist/DatePicker/ensureDayjsPlugins-DZjJnZgo.js +16 -0
  37. package/dist/DatePicker/index.js +8 -0
  38. package/dist/DatePicker/pickerLocale-VqSP_iIm.js +15 -0
  39. package/dist/DatePicker/style/index.js +2 -0
  40. package/dist/DatePicker/style-DZaSSoNs.js +15 -0
  41. package/dist/DropDown/{DropDown-CMKiQDrc.js → DropDown-BR-Tz58r.js} +5 -5
  42. package/dist/DropDown/index.js +7 -7
  43. package/dist/Editor/{Buttons-D17RQIEb.js → Buttons-DdZg3jAa.js} +6 -6
  44. package/dist/Editor/ToolbarPlugin/Buttons/index.js +14 -13
  45. package/dist/Editor/index.js +14 -13
  46. package/dist/Icon/{Icon-CTZCSuVg.js → Icon-BQ3Whub2.js} +1 -1
  47. package/dist/Icon/index.js +1 -1
  48. package/dist/InputTag/{InputTag-F2Dv-r56.js → InputTag-zP5QdId7.js} +1 -1
  49. package/dist/InputTag/index.js +2 -2
  50. package/dist/Loading/index.js +1 -1
  51. package/dist/Modal/{Modal-CweuD-VO.js → Modal-B5AW5GKt.js} +6 -5
  52. package/dist/Modal/index.js +2 -2
  53. package/dist/NotFoundContent/index.js +1 -1
  54. package/dist/Radio/index.js +1 -1
  55. package/dist/Segmented/Segmented-BTW445jc.js +82 -0
  56. package/dist/Segmented/index.js +1 -1
  57. package/dist/Select/{Select-D8T0S1_m.js → Select-BGsQ-PVq.js} +14 -15
  58. package/dist/Select/{SelectInputSearch-Dm3CI_L4.js → SelectInputSearch-CraymTXM.js} +3 -3
  59. package/dist/Select/index.js +11 -11
  60. package/dist/Tabs/{Tabs-Cxf7jwys.js → Tabs-CPRNkfMo.js} +4 -4
  61. package/dist/Tabs/index.js +4 -4
  62. package/dist/Tooltip/Tooltip-RkD8fs0B.js +169 -0
  63. package/dist/Tooltip/index.js +2 -0
  64. package/dist/Tree/index.js +4 -4
  65. package/dist/components/Calendar/Calendar.d.ts +3 -0
  66. package/dist/components/Calendar/Header/CalendarHeader/CalendarHeader.d.ts +2 -0
  67. package/dist/components/Calendar/Header/CalendarHeaderLeft/CalendarHeaderLeft.d.ts +2 -0
  68. package/dist/components/Calendar/Header/DateDisplay/DateDisplay.d.ts +2 -0
  69. package/dist/components/Calendar/Header/DateDisplay/__tests__/DateDisplay.weekPicker.test.d.ts +1 -0
  70. package/dist/components/Calendar/Header/NavButton/NavButton.d.ts +6 -0
  71. package/dist/components/Calendar/Header/TodayButton/TodayButton.d.ts +2 -0
  72. package/dist/components/Calendar/__tests__/Calendar.contract.test.d.ts +1 -0
  73. package/dist/components/Calendar/__tests__/algorithm/monthLayoutAlgorithm.test.d.ts +1 -0
  74. package/dist/components/Calendar/__tests__/helpers/testFormatMessage.d.ts +2 -0
  75. package/dist/components/Calendar/adapters/__tests__/platformTheme.test.d.ts +1 -0
  76. package/dist/components/Calendar/adapters/index.d.ts +1 -0
  77. package/dist/components/Calendar/adapters/platformTheme.d.ts +29 -0
  78. package/dist/components/Calendar/constants.d.ts +12 -0
  79. package/dist/components/Calendar/context/CalendarContext.d.ts +29 -0
  80. package/dist/components/Calendar/context/index.d.ts +2 -0
  81. package/dist/components/Calendar/context/useCalendarContext.d.ts +3 -0
  82. package/dist/components/Calendar/index.d.ts +4 -0
  83. package/dist/components/Calendar/interface.d.ts +62 -0
  84. package/dist/components/Calendar/internalTypes.d.ts +56 -0
  85. package/dist/components/Calendar/panels/DayPanel/DayPanel.d.ts +3 -0
  86. package/dist/components/Calendar/panels/DayPanel/__tests__/CalendarDay.dayFilter.test.d.ts +1 -0
  87. package/dist/components/Calendar/panels/MonthPanel/MonthCell/MonthCell.d.ts +10 -0
  88. package/dist/components/Calendar/panels/MonthPanel/MonthCell/MonthCellPopover/MonthCellPopover.d.ts +10 -0
  89. package/dist/components/Calendar/panels/MonthPanel/MonthHeader/MonthHeader.d.ts +2 -0
  90. package/dist/components/Calendar/panels/MonthPanel/MonthPanel.d.ts +3 -0
  91. package/dist/components/Calendar/panels/MonthPanel/WeekEventLayer/MoreButton.d.ts +11 -0
  92. package/dist/components/Calendar/panels/MonthPanel/WeekEventLayer/WeekEventLayer.d.ts +3 -0
  93. package/dist/components/Calendar/panels/WeekPanel/WeekAllDaySection/WeekAllDaySection.d.ts +11 -0
  94. package/dist/components/Calendar/panels/WeekPanel/WeekHeader/WeekHeader.d.ts +6 -0
  95. package/dist/components/Calendar/panels/WeekPanel/WeekPanel.d.ts +3 -0
  96. package/dist/components/Calendar/shared/AllDaySection/AllDaySection.d.ts +7 -0
  97. package/dist/components/Calendar/shared/AllDaySection/index.d.ts +1 -0
  98. package/dist/components/Calendar/shared/CurrentTimeIndicator/CurrentTimeIndicator.d.ts +10 -0
  99. package/dist/components/Calendar/shared/CurrentTimeIndicator/__tests__/CurrentTimeIndicator.test.d.ts +1 -0
  100. package/dist/components/Calendar/shared/CurrentTimeIndicator/index.d.ts +1 -0
  101. package/dist/components/Calendar/shared/EventCard/EventCard.d.ts +22 -0
  102. package/dist/components/Calendar/shared/EventCard/__tests__/EventCard.tooltip.test.d.ts +1 -0
  103. package/dist/components/Calendar/shared/EventCard/index.d.ts +1 -0
  104. package/dist/components/Calendar/shared/TimeAxis/TimeAxis.d.ts +6 -0
  105. package/dist/components/Calendar/shared/TimeAxis/index.d.ts +1 -0
  106. package/dist/components/Calendar/shared/TimeGrid/TimeGrid.d.ts +11 -0
  107. package/dist/components/Calendar/shared/TimeGrid/index.d.ts +1 -0
  108. package/dist/components/Calendar/style/__tests__/resolveCalendarThemeVars.test.d.ts +1 -0
  109. package/dist/components/Calendar/style/__tests__/resolveScheduleColorVars.test.d.ts +1 -0
  110. package/dist/components/Calendar/style/__tests__/resolveSubcomponentThemes.test.d.ts +1 -0
  111. package/dist/components/Calendar/style/index.d.ts +5 -0
  112. package/dist/components/Calendar/style/resolveCalendarThemeVars.d.ts +2 -0
  113. package/dist/components/Calendar/style/resolveScheduleColorVars.d.ts +3 -0
  114. package/dist/components/Calendar/style/resolveSubcomponentThemes.d.ts +5 -0
  115. package/dist/components/Calendar/utils/__tests__/dateUtils.test.d.ts +1 -0
  116. package/dist/components/Calendar/utils/__tests__/eventUtils.contract.test.d.ts +1 -0
  117. package/dist/components/Calendar/utils/__tests__/normalizeData.test.d.ts +1 -0
  118. package/dist/components/Calendar/utils/colorUtils.d.ts +8 -0
  119. package/dist/components/Calendar/utils/dateUtils.d.ts +25 -0
  120. package/dist/components/Calendar/utils/eventUtils.d.ts +44 -0
  121. package/dist/components/Calendar/utils/index.d.ts +7 -0
  122. package/dist/components/Calendar/utils/layout/dayLayoutAlgorithm.d.ts +31 -0
  123. package/dist/components/Calendar/utils/layout/index.d.ts +3 -0
  124. package/dist/components/Calendar/utils/layout/monthLayoutAlgorithm.d.ts +59 -0
  125. package/dist/components/Calendar/utils/layout/weekLayoutAlgorithm.d.ts +7 -0
  126. package/dist/components/Calendar/utils/normalizeData.d.ts +7 -0
  127. package/dist/components/Calendar/utils/timeUtils.d.ts +27 -0
  128. package/dist/components/Calendar/utils/weekTimedLayout.d.ts +14 -0
  129. package/dist/components/ColorPicker/useFloatingColorPicker.d.ts +1 -23
  130. package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +1 -0
  131. package/dist/components/DatePicker/DatePicker.d.ts +3 -0
  132. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +17 -0
  133. package/dist/components/DatePicker/DatePickerPanel/DatePickerPanel.d.ts +9 -0
  134. package/dist/components/DatePicker/MonthPicker/MonthPicker.d.ts +4 -0
  135. package/dist/components/DatePicker/TodayFooter/TodayFooter.d.ts +5 -0
  136. package/dist/components/DatePicker/YearPicker/YearPicker.d.ts +4 -0
  137. package/dist/components/DatePicker/__tests__/DatePicker.theme.test.d.ts +1 -0
  138. package/dist/components/DatePicker/__tests__/DatePickerPanel.dom.test.d.ts +1 -0
  139. package/dist/components/DatePicker/__tests__/DatePickerPanel.styles.test.d.ts +1 -0
  140. package/dist/components/DatePicker/index.d.ts +2 -0
  141. package/dist/components/DatePicker/interface.d.ts +37 -0
  142. package/dist/components/DatePicker/style/__tests__/resolveDatePickerThemeVars.test.d.ts +1 -0
  143. package/dist/components/DatePicker/style/index.d.ts +1 -0
  144. package/dist/components/DatePicker/style/resolveDatePickerThemeVars.d.ts +2 -0
  145. package/dist/components/DatePicker/utils/__tests__/normalizePickerValue.test.d.ts +1 -0
  146. package/dist/components/DatePicker/utils/chunkArray.d.ts +1 -0
  147. package/dist/components/DatePicker/utils/ensureDayjsPlugins.d.ts +2 -0
  148. package/dist/components/DatePicker/utils/formatPickerLabel.d.ts +1 -0
  149. package/dist/components/DatePicker/utils/normalizePickerValue.d.ts +10 -0
  150. package/dist/components/DatePicker/utils/pickerConstants.d.ts +8 -0
  151. package/dist/components/DatePicker/utils/pickerLocale.d.ts +4 -0
  152. package/dist/components/Segmented/Segmented.type.d.ts +30 -0
  153. package/dist/components/Segmented/__tests__/Segmented.theme.test.d.ts +1 -0
  154. package/dist/components/Segmented/index.d.ts +1 -1
  155. package/dist/components/Tooltip/Tooltip.d.ts +6 -0
  156. package/dist/components/Tooltip/Tooltip.type.d.ts +33 -0
  157. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  158. package/dist/components/Tooltip/context/TooltipFloatingContext.d.ts +2 -0
  159. package/dist/components/Tooltip/index.d.ts +3 -0
  160. package/dist/components/index.d.ts +8 -0
  161. package/dist/hooks/useFloatingOverlay.d.ts +20 -0
  162. package/dist/hooks/useLocale.d.ts +4 -2
  163. package/dist/index.js +39 -23
  164. package/dist/locale/LocaleContext.d.ts +2 -1
  165. package/dist/locale/formatLocaleMessage.d.ts +2 -0
  166. package/dist/locale/lang/en-US.json.d.ts +43 -1
  167. package/dist/locale/lang/zh-CN.json.d.ts +43 -1
  168. package/dist/locale/lang/zh-TW.json.d.ts +43 -1
  169. package/dist/style.css +1 -1
  170. package/dist/utils/cssVars.d.ts +1 -0
  171. package/dist/utils/mergeRefs.d.ts +4 -0
  172. package/dist/vendors/{ConfigProvider-BekyDD3V.js → ConfigProvider-aWr8b3e3.js} +123 -32
  173. package/dist/vendors/{LocaleContext-Jj_JGgi2.js → LocaleContext-CuXR7Y03.js} +52 -7
  174. package/dist/vendors/{Tree-Bg2UzLsC.js → Tree-BTQ25Pi7.js} +3 -3
  175. package/dist/vendors/cssVars-C4BlzyxA.js +6 -0
  176. package/dist/vendors/useFloatingOverlay-uxlI1G-V.js +26 -0
  177. package/dist/vendors/{useLocale-Mk0d7wNt.js → useLocale-DvdSwM9e.js} +1 -1
  178. package/package.json +8 -3
  179. package/dist/ColorPicker/ColorPicker-nnQIw0_e.js +0 -168
  180. package/dist/Segmented/Segmented-Byw8j1hQ.js +0 -62
  181. /package/dist/Loading/{Loading-dsLWSWsE.js → Loading-WjmzBabh.js} +0 -0
  182. /package/dist/NotFoundContent/{NotFoundContent-DJUQ0_2D.js → NotFoundContent-7xV-zOG2.js} +0 -0
  183. /package/dist/Radio/{Radio-WNw-VqIS.js → Radio-DkrZHoG1.js} +0 -0
  184. /package/dist/vendors/{animations-C2i5EijE.js → animations-BmT0HT5q.js} +0 -0
  185. /package/dist/vendors/{color-CxdZwdYM.js → color-BeQo449h.js} +0 -0
  186. /package/dist/vendors/{useFloatingPortal-CDgiCnbb.js → useFloatingPortal-DsEtsAGW.js} +0 -0
@@ -0,0 +1,150 @@
1
+ import { t as e } from "../Icon/Icon-BQ3Whub2.js";
2
+ import { t } from "../vendors/useFloatingOverlay-uxlI1G-V.js";
3
+ import { t as n } from "../vendors/useLocale-DvdSwM9e.js";
4
+ import { t as r } from "../vendors/color-BeQo449h.js";
5
+ import { n as i } from "../vendors/animations-BmT0HT5q.js";
6
+ import { isArray as a } from "lodash-es";
7
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import { cloneElement as l, isValidElement as u, useMemo as d, useRef as f, useState as p } from "react";
9
+ import { ColorPicker as m } from "antd";
10
+ import h from "clsx";
11
+ import { useControllableValue as g } from "ahooks";
12
+ import { AnimatePresence as _, motion as v } from "motion/react";
13
+ import { FloatingPortal as y } from "@floating-ui/react";
14
+ import b from "tinycolor2";
15
+ //#region src/components/ColorPicker/constants.ts
16
+ var x = [
17
+ "rgba(240, 102, 72, 1)",
18
+ "rgba(255, 197, 2, 1)",
19
+ "rgba(74, 204, 140, 1)",
20
+ "rgba(74, 192, 236, 1)",
21
+ "rgba(255, 153, 33, 1)",
22
+ "rgba(101, 101, 101, 1)",
23
+ "rgba(255, 156, 136, 1)",
24
+ "rgba(98, 98, 206, 1)",
25
+ "rgba(241, 104, 182, 1)",
26
+ "rgba(55, 103, 241, 1)",
27
+ "rgba(162, 206, 30, 1)",
28
+ "rgba(179, 179, 179, 1)",
29
+ "rgba(0, 0, 0, 1)",
30
+ "rgba(102, 102, 102, 1)",
31
+ "rgba(153, 153, 153, 1)",
32
+ "rgba(194, 194, 194, 1)",
33
+ "rgba(224, 224, 224, 1)",
34
+ "rgba(77, 96, 159, 1)"
35
+ ], S = (e = "bottom-start") => t({ placement: e }), C = "_preview_11t7y_62", w = {
36
+ "bsy-color-picker__floating": "_bsy-color-picker__floating_11t7y_1",
37
+ "bsy-color-picker__content": "_bsy-color-picker__content_11t7y_4",
38
+ "bsy-color-picker__grid": "_bsy-color-picker__grid_11t7y_11",
39
+ "bsy-color-picker__preset-colors-title": "_bsy-color-picker__preset-colors-title_11t7y_15",
40
+ "bsy-color-picker__preset-colors-grid": "_bsy-color-picker__preset-colors-grid_11t7y_19",
41
+ "bsy-color-picker__preset-colors-item": "_bsy-color-picker__preset-colors-item_11t7y_24",
42
+ "bsy-color-picker__custom-color-title": "_bsy-color-picker__custom-color-title_11t7y_48",
43
+ "bsy-color-picker__custom-color-btn": "_bsy-color-picker__custom-color-btn_11t7y_52",
44
+ preview: C,
45
+ "bsy-color-picker__custom-color-btn--active": "_bsy-color-picker__custom-color-btn--active_11t7y_62",
46
+ "bsy-color-picker__custom-color-btn--preview": "_bsy-color-picker__custom-color-btn--preview_11t7y_66",
47
+ "bsy-color-picker__custom-color-content": "_bsy-color-picker__custom-color-content_11t7y_69",
48
+ "bsy-color-picker__check-icon": "_bsy-color-picker__check-icon_11t7y_73"
49
+ }, T = ({ currentColor: t, onColorSelect: n, options: i, style: a }) => /* @__PURE__ */ s("div", {
50
+ className: w["bsy-color-picker__preset-colors-grid"],
51
+ style: a,
52
+ children: i.map((i) => /* @__PURE__ */ s("div", {
53
+ className: w["bsy-color-picker__preset-colors-item"],
54
+ style: {
55
+ backgroundColor: i,
56
+ "--hover-color": b(i).setAlpha(.5).toRgbString()
57
+ },
58
+ onClick: () => n(i),
59
+ children: r(t, i) && /* @__PURE__ */ s(e, {
60
+ name: "checkthebox",
61
+ className: w["bsy-color-picker__check-icon"]
62
+ })
63
+ }, i))
64
+ }), E = (e) => {
65
+ let { children: t, placement: p = "bottom-start", disabled: m = !1, presetColors: h, getPopupContainer: b } = e, { t: C } = n(), [E, O] = g(e, { defaultValue: e.value }), { isOpen: k, refs: A, floatingStyles: j, getReferenceProps: M, getFloatingProps: N } = S(p), P = u(t) ? l(t, {
66
+ ...M(),
67
+ ref: A.setReference,
68
+ disabled: m
69
+ }) : t, F = a(h) && h.length ? h : x, I = f(F.some((e) => r(e, E)) ? [] : [E]);
70
+ return /* @__PURE__ */ c(o, { children: [P, /* @__PURE__ */ s(y, {
71
+ root: d(() => k ? b?.() : void 0, [k, b]),
72
+ children: /* @__PURE__ */ s(_, { children: k && /* @__PURE__ */ s("div", {
73
+ ref: A.setFloating,
74
+ style: j,
75
+ ...N(),
76
+ className: w["bsy-color-picker__floating"],
77
+ children: /* @__PURE__ */ s(v.div, {
78
+ ...i,
79
+ children: /* @__PURE__ */ s("div", {
80
+ className: w["bsy-color-picker__content"],
81
+ children: /* @__PURE__ */ c("div", {
82
+ className: w["bsy-color-picker__grid"],
83
+ children: [/* @__PURE__ */ c("div", {
84
+ className: w["bsy-color-picker__preset-colors"],
85
+ children: [/* @__PURE__ */ s("div", {
86
+ className: w["bsy-color-picker__preset-colors-title"],
87
+ children: C("presetColors")
88
+ }), /* @__PURE__ */ s(T, {
89
+ currentColor: E,
90
+ onColorSelect: O,
91
+ options: F
92
+ })]
93
+ }), /* @__PURE__ */ s(D, {
94
+ value: E,
95
+ onChange: O,
96
+ onColorInput: e.onColorInput,
97
+ options: F,
98
+ list: I.current
99
+ })]
100
+ })
101
+ })
102
+ })
103
+ }) })
104
+ })] });
105
+ }, D = (t) => {
106
+ let { list: r } = t, [i, a] = p(), [o, l] = p(!1), { t: u } = n();
107
+ return /* @__PURE__ */ c("div", {
108
+ className: w["bsy-color-picker__custom-color"],
109
+ children: [/* @__PURE__ */ s("div", {
110
+ className: w["bsy-color-picker__custom-color-title"],
111
+ children: u("customColor")
112
+ }), /* @__PURE__ */ c("div", {
113
+ className: w["bsy-color-picker__custom-color-content"],
114
+ children: [/* @__PURE__ */ s(m, {
115
+ value: i,
116
+ onChange: (e) => {
117
+ let n = e.toRgbString();
118
+ a(n), t.onColorInput?.(n);
119
+ },
120
+ open: o,
121
+ onOpenChange: (e) => {
122
+ l(e), !e && i && (r.includes(i) || r.unshift(i), t.onChange(i), a(void 0));
123
+ },
124
+ children: /* @__PURE__ */ s("div", {
125
+ className: h(w["bsy-color-picker__custom-color-btn"], {
126
+ [w["bsy-color-picker__custom-color-btn--active"]]: o && !i,
127
+ [w["bsy-color-picker__custom-color-btn--preview"]]: !!i
128
+ }),
129
+ role: "button",
130
+ style: { backgroundColor: i || void 0 },
131
+ onClick: () => {
132
+ l(!0);
133
+ },
134
+ children: /* @__PURE__ */ s(e, {
135
+ name: "add",
136
+ style: { visibility: i ? "hidden" : "visible" }
137
+ })
138
+ })
139
+ }), /* @__PURE__ */ s(T, {
140
+ currentColor: t.value,
141
+ onColorSelect: t.onChange,
142
+ options: r.slice(0, 5),
143
+ style: { gridTemplateColumns: "repeat(5, 1fr)" }
144
+ })]
145
+ })]
146
+ });
147
+ };
148
+ E.displayName = "BsyColorPicker";
149
+ //#endregion
150
+ export { x as n, E as t };
@@ -1,6 +1,7 @@
1
- import "../Icon/Icon-CTZCSuVg.js";
2
- import "../vendors/LocaleContext-Jj_JGgi2.js";
3
- import { n as e, t } from "./ColorPicker-nnQIw0_e.js";
4
- import "../vendors/useLocale-Mk0d7wNt.js";
5
- import "../vendors/color-CxdZwdYM.js";
1
+ import "../Icon/Icon-BQ3Whub2.js";
2
+ import "../vendors/LocaleContext-CuXR7Y03.js";
3
+ import { n as e, t } from "./ColorPicker-CKqNqAsK.js";
4
+ import "../vendors/useFloatingOverlay-uxlI1G-V.js";
5
+ import "../vendors/useLocale-DvdSwM9e.js";
6
+ import "../vendors/color-BeQo449h.js";
6
7
  export { e as COLOR_OPTIONS_RGBA, t as default };
@@ -1,3 +1,3 @@
1
- import "../vendors/LocaleContext-Jj_JGgi2.js";
2
- import { n as e, t } from "../vendors/ConfigProvider-BekyDD3V.js";
1
+ import "../vendors/LocaleContext-CuXR7Y03.js";
2
+ import { n as e, t } from "../vendors/ConfigProvider-aWr8b3e3.js";
3
3
  export { t as ConfigProvider, t as default, e as useConfig };
@@ -0,0 +1,91 @@
1
+ import { t as e } from "../vendors/useFloatingOverlay-uxlI1G-V.js";
2
+ import { t } from "../vendors/useLocale-DvdSwM9e.js";
3
+ import { n } from "../vendors/animations-BmT0HT5q.js";
4
+ import { t as r } from "./ensureDayjsPlugins-DZjJnZgo.js";
5
+ import { n as i } from "./pickerLocale-VqSP_iIm.js";
6
+ import { t as a } from "./style-DZaSSoNs.js";
7
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import { Suspense as l, cloneElement as u, isValidElement as d, lazy as f, useCallback as p, useMemo as m } from "react";
9
+ import { useControllableValue as h } from "ahooks";
10
+ import { AnimatePresence as g, motion as _ } from "motion/react";
11
+ import { FloatingPortal as v } from "@floating-ui/react";
12
+ import y from "dayjs";
13
+ var b = {
14
+ footer: "_footer_h6lng_1",
15
+ today: "_today_h6lng_11"
16
+ }, x = ({ onClick: e }) => {
17
+ let { t: n } = t();
18
+ return /* @__PURE__ */ s("div", {
19
+ className: b.footer,
20
+ children: /* @__PURE__ */ s("button", {
21
+ type: "button",
22
+ className: b.today,
23
+ onClick: e,
24
+ children: n("datePicker.today")
25
+ })
26
+ });
27
+ }, S = (e, t) => {
28
+ switch (t) {
29
+ case "week": return e.startOf("isoWeek");
30
+ case "month": return e.startOf("month");
31
+ case "year": return e.startOf("year");
32
+ default: return e.startOf("day");
33
+ }
34
+ }, C = {
35
+ "bsy-date-picker": "_bsy-date-picker_legiv_1",
36
+ "bsy-date-picker__content": "_bsy-date-picker__content_legiv_33",
37
+ "bsy-date-picker__divider": "_bsy-date-picker__divider_legiv_43",
38
+ "bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_legiv_49"
39
+ }, w = f(() => import("./DatePickerPanel-CsiEGC-1.js"));
40
+ r();
41
+ var T = (r) => {
42
+ let { children: f, picker: b = "date", theme: T } = r, { locale: E } = t(), [D, O] = h(r, {
43
+ defaultValuePropName: "defaultValue",
44
+ valuePropName: "value",
45
+ trigger: "onChange",
46
+ defaultValue: y().locale(i(E)).startOf("day")
47
+ }), { isOpen: k, setIsOpen: A, refs: j, floatingStyles: M, getReferenceProps: N, getFloatingProps: P } = e(), F = p((e) => {
48
+ e && (O(S(e, b)), A(!1));
49
+ }, [
50
+ b,
51
+ O,
52
+ A
53
+ ]), I = p(() => {
54
+ F(y().locale(i(E)));
55
+ }, [F, E]), L = m(() => a(T), [T]);
56
+ return d(f) || process.env.NODE_ENV !== "production" && console.warn("[DatePicker] children 必须是单个 React 元素"), /* @__PURE__ */ c(o, { children: [d(f) ? u(f, {
57
+ ...N(),
58
+ ref: j.setReference
59
+ }) : f, /* @__PURE__ */ s(v, { children: /* @__PURE__ */ s(g, { children: k ? /* @__PURE__ */ s("div", {
60
+ ref: j.setFloating,
61
+ style: {
62
+ ...M,
63
+ ...L
64
+ },
65
+ ...P(),
66
+ "data-bsy-date-picker": !0,
67
+ className: C["bsy-date-picker"],
68
+ children: /* @__PURE__ */ c(_.div, {
69
+ ...n,
70
+ className: C["bsy-date-picker__content"],
71
+ children: [
72
+ /* @__PURE__ */ s(l, {
73
+ fallback: /* @__PURE__ */ s("div", {
74
+ className: C["bsy-date-picker__panel-loading"],
75
+ "aria-hidden": !0
76
+ }),
77
+ children: /* @__PURE__ */ s(w, {
78
+ picker: b,
79
+ value: D,
80
+ onChange: F
81
+ })
82
+ }),
83
+ /* @__PURE__ */ s("div", { className: C["bsy-date-picker__divider"] }),
84
+ /* @__PURE__ */ s(x, { onClick: I })
85
+ ]
86
+ })
87
+ }) : null }) })] });
88
+ };
89
+ T.displayName = "BsyDatePicker";
90
+ //#endregion
91
+ export { T as t };
@@ -0,0 +1,217 @@
1
+ import { t as e } from "../Icon/Icon-BQ3Whub2.js";
2
+ import "../vendors/LocaleContext-CuXR7Y03.js";
3
+ import { t } from "../vendors/useLocale-DvdSwM9e.js";
4
+ import { t as n } from "./pickerLocale-VqSP_iIm.js";
5
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { useCallback as o, useEffect as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
7
+ import { clsx as f } from "clsx";
8
+ import { motion as p } from "motion/react";
9
+ import { PickerPanel as m } from "@rc-component/picker";
10
+ import h from "@rc-component/picker/es/generate/dayjs";
11
+ //#region src/components/DatePicker/DatePickerHeader/DatePickerHeader.tsx
12
+ var g = (t) => {
13
+ let { prefixCls: n, yearLabel: o, monthLabel: s, rangeLabel: c, isMonthPanel: l = !1, navType: u, prevLabel: d, nextLabel: f, switchToMonthLabel: m, onPrev: h, onNext: g, onYearClick: _, onMonthClick: v } = t, y = `${n}-header`, b = u === "month" ? `${y}-prev-btn` : `${y}-super-prev-btn`, x = u === "month" ? `${y}-next-btn` : `${y}-super-next-btn`, S = u === "month" ? "‹" : "«", C = u === "month" ? "›" : "»";
14
+ return /* @__PURE__ */ a("div", {
15
+ className: y,
16
+ children: [
17
+ /* @__PURE__ */ a("div", {
18
+ className: `${y}-view`,
19
+ children: [
20
+ c ? /* @__PURE__ */ i("span", {
21
+ className: `${n}-decade-btn`,
22
+ children: c
23
+ }) : null,
24
+ o ? /* @__PURE__ */ i("button", {
25
+ type: "button",
26
+ tabIndex: -1,
27
+ className: `${n}-year-btn`,
28
+ onClick: _,
29
+ children: o
30
+ }) : null,
31
+ s ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("button", {
32
+ type: "button",
33
+ tabIndex: -1,
34
+ className: `${n}-month-label`,
35
+ onClick: v,
36
+ children: s
37
+ }), /* @__PURE__ */ i("button", {
38
+ type: "button",
39
+ tabIndex: -1,
40
+ "aria-label": m,
41
+ className: `${n}-month-label-arrow-btn`,
42
+ onClick: v,
43
+ children: /* @__PURE__ */ i(p.span, {
44
+ className: `${n}-month-label-arrow`,
45
+ animate: { rotate: l ? 180 : 0 },
46
+ transition: { duration: .2 },
47
+ children: /* @__PURE__ */ i(e, {
48
+ name: "arrow-down",
49
+ size: 16
50
+ })
51
+ })
52
+ })] }) : null
53
+ ]
54
+ }),
55
+ /* @__PURE__ */ i("button", {
56
+ type: "button",
57
+ tabIndex: -1,
58
+ "aria-label": d,
59
+ className: b,
60
+ onClick: h,
61
+ children: S
62
+ }),
63
+ /* @__PURE__ */ i("button", {
64
+ type: "button",
65
+ tabIndex: -1,
66
+ "aria-label": f,
67
+ className: x,
68
+ onClick: g,
69
+ children: C
70
+ })
71
+ ]
72
+ });
73
+ }, _ = (e, t) => {
74
+ let n = [];
75
+ for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
76
+ return n;
77
+ }, v = (e, t) => Object.entries(t).reduce((e, [t, n]) => e.replace(RegExp(`\\{\\{${t}\\}\\}`, "g"), String(n)), e), y = "bsy-date-picker", b = (e) => Math.floor(e / 20) * 20, x = (e) => `${e}-${e + 20 - 1}`, S = 12, C = (e) => {
78
+ let { prefixCls: n, generateConfig: r, value: a, pickerValue: o, onSelect: s } = e, { t: c } = t(), u = `${n}-month-panel`, d = `${n}-cell`, p = l(() => {
79
+ let e = r.setMonth(o, 0);
80
+ return _(Array.from({ length: S }, (t, n) => r.addMonth(e, n)), 3);
81
+ }, [r, o]), m = a ? r.getYear(a) : null, h = a ? r.getMonth(a) : null;
82
+ return /* @__PURE__ */ i("div", {
83
+ className: u,
84
+ children: /* @__PURE__ */ i("div", {
85
+ className: `${n}-body`,
86
+ children: /* @__PURE__ */ i("table", {
87
+ className: `${n}-content`,
88
+ children: /* @__PURE__ */ i("tbody", { children: p.map((e) => /* @__PURE__ */ i("tr", { children: e.map((e) => {
89
+ let t = r.getMonth(e), n = m === r.getYear(e) && h === t;
90
+ return /* @__PURE__ */ i("td", {
91
+ className: f(d, `${d}-in-view`, { [`${d}-selected`]: n }),
92
+ onClick: () => s(e),
93
+ children: /* @__PURE__ */ i("div", {
94
+ className: `${d}-inner`,
95
+ children: v(c("datePicker.monthLabel"), { month: t + 1 })
96
+ })
97
+ }, t);
98
+ }) }, r.getMonth(e[0]))) })
99
+ })
100
+ })
101
+ });
102
+ }, w = (e) => {
103
+ let { prefixCls: t, generateConfig: n, value: r, pickerValue: a, onSelect: o } = e, s = `${t}-year-panel`, c = `${t}-cell`, u = b(n.getYear(a)), d = l(() => {
104
+ let e = n.setYear(a, u);
105
+ return _(Array.from({ length: 20 }, (t, r) => n.addYear(e, r)), 4);
106
+ }, [
107
+ u,
108
+ n,
109
+ a
110
+ ]), p = r ? n.getYear(r) : null;
111
+ return /* @__PURE__ */ i("div", {
112
+ className: s,
113
+ children: /* @__PURE__ */ i("div", {
114
+ className: `${t}-body`,
115
+ children: /* @__PURE__ */ i("table", {
116
+ className: `${t}-content`,
117
+ children: /* @__PURE__ */ i("tbody", { children: d.map((e) => /* @__PURE__ */ i("tr", { children: e.map((e) => {
118
+ let t = n.getYear(e), r = p === t;
119
+ return /* @__PURE__ */ i("td", {
120
+ className: f(c, {
121
+ [`${c}-in-view`]: !0,
122
+ [`${c}-selected`]: r
123
+ }),
124
+ onClick: () => o(e),
125
+ children: /* @__PURE__ */ i("div", {
126
+ className: `${c}-inner`,
127
+ children: t
128
+ })
129
+ }, t);
130
+ }) }, n.getYear(e[0]))) })
131
+ })
132
+ })
133
+ });
134
+ }, T = { "date-picker-panel": "_date-picker-panel_3dzdg_1" }, E = {
135
+ month: C,
136
+ year: w
137
+ }, D = ({ picker: e, value: r, onChange: f }) => {
138
+ let { locale: p, t: _ } = t(), S = u(null), C = l(() => n(p), [p]), [w, D] = d(e), [O, k] = d(r ?? h.getNow());
139
+ c(() => {
140
+ S.current?.querySelectorAll(`.${y}-cell[title]`).forEach((e) => {
141
+ e.removeAttribute("title");
142
+ });
143
+ }, [
144
+ O,
145
+ w,
146
+ e,
147
+ r
148
+ ]), s(() => {
149
+ D(e), k(r ?? h.getNow());
150
+ }, [e, r]);
151
+ let A = o((e) => {
152
+ e && !Array.isArray(e) && f(e);
153
+ }, [f]), j = o((e, t) => {
154
+ k(e), (t === "date" || t === "week" || t === "month" || t === "year") && D(t);
155
+ }, []), M = o((e) => {
156
+ k(e);
157
+ }, []), N = l(() => {
158
+ let e = h.getYear(O), t = h.getMonth(O) + 1, n = b(e);
159
+ return {
160
+ year: v(_("datePicker.yearLabel"), { year: e }),
161
+ month: v(_("datePicker.monthLabel"), { month: t }),
162
+ range: x(n)
163
+ };
164
+ }, [O, _]), P = o(() => {
165
+ k(w === "year" ? h.addYear(O, -20) : w === "month" ? h.addYear(O, -1) : h.addMonth(O, -1));
166
+ }, [w, O]), F = o(() => {
167
+ k(w === "year" ? h.addYear(O, 20) : w === "month" ? h.addYear(O, 1) : h.addMonth(O, 1));
168
+ }, [w, O]), I = o(() => {
169
+ if (e === "month") {
170
+ D("year");
171
+ return;
172
+ }
173
+ D(w === "month" ? e : "month");
174
+ }, [w, e]), L = o(() => {
175
+ D("year");
176
+ }, []), R = l(() => ({
177
+ prevLabel: _(w === "year" ? "datePicker.prevYearsPage" : w === "month" ? "datePicker.prevYear" : "datePicker.prevMonth"),
178
+ nextLabel: _(w === "year" ? "datePicker.nextYearsPage" : w === "month" ? "datePicker.nextYear" : "datePicker.nextMonth"),
179
+ switchToMonthLabel: _("datePicker.switchToMonthPanel")
180
+ }), [w, _]), z = (e === "date" || e === "week") && w === "month", B = w === "year" ? "years" : w === "month" ? "year" : "month";
181
+ return /* @__PURE__ */ a("div", {
182
+ ref: S,
183
+ className: T["date-picker-panel"],
184
+ "data-bsy-date-picker-panel": e,
185
+ "data-bsy-date-picker-mode": w,
186
+ children: [/* @__PURE__ */ i(g, {
187
+ prefixCls: y,
188
+ yearLabel: w === "year" ? void 0 : N.year,
189
+ monthLabel: w === "year" ? void 0 : N.month,
190
+ rangeLabel: w === "year" ? N.range : void 0,
191
+ isMonthPanel: z,
192
+ navType: B,
193
+ prevLabel: R.prevLabel,
194
+ nextLabel: R.nextLabel,
195
+ switchToMonthLabel: R.switchToMonthLabel,
196
+ onPrev: P,
197
+ onNext: F,
198
+ onYearClick: L,
199
+ onMonthClick: I
200
+ }), /* @__PURE__ */ i(m, {
201
+ prefixCls: y,
202
+ picker: e,
203
+ mode: w,
204
+ value: r ?? null,
205
+ pickerValue: O,
206
+ generateConfig: h,
207
+ locale: C,
208
+ components: E,
209
+ hideHeader: !0,
210
+ onChange: A,
211
+ onPanelChange: j,
212
+ onPickerValueChange: M
213
+ })]
214
+ });
215
+ };
216
+ //#endregion
217
+ export { D as default };
@@ -0,0 +1,16 @@
1
+ import e from "dayjs";
2
+ import t from "dayjs/plugin/isoWeek";
3
+ import n from "dayjs/plugin/localeData";
4
+ import r from "dayjs/plugin/timezone";
5
+ import i from "dayjs/plugin/updateLocale";
6
+ import a from "dayjs/plugin/utc";
7
+ import o from "dayjs/plugin/weekday";
8
+ import "dayjs/locale/zh-cn";
9
+ import "dayjs/locale/zh-tw";
10
+ import "dayjs/locale/en";
11
+ //#region src/components/DatePicker/utils/ensureDayjsPlugins.ts
12
+ var s = !1, c = () => {
13
+ s ||= (e.extend(a), e.extend(r), e.extend(t), e.extend(o), e.extend(n), e.extend(i), !0);
14
+ };
15
+ //#endregion
16
+ export { c as t };
@@ -0,0 +1,8 @@
1
+ import "../vendors/LocaleContext-CuXR7Y03.js";
2
+ import "../vendors/useFloatingOverlay-uxlI1G-V.js";
3
+ import "../vendors/useLocale-DvdSwM9e.js";
4
+ import { t as e } from "./DatePicker-BIxiJQ_W.js";
5
+ import "./ensureDayjsPlugins-DZjJnZgo.js";
6
+ import "./pickerLocale-VqSP_iIm.js";
7
+ import "./style-DZaSSoNs.js";
8
+ export { e as default };
@@ -0,0 +1,15 @@
1
+ import e from "@rc-component/picker/es/locale/en_US";
2
+ import t from "@rc-component/picker/es/locale/zh_CN";
3
+ import n from "@rc-component/picker/es/locale/zh_TW";
4
+ //#region src/components/DatePicker/utils/pickerLocale.ts
5
+ var r = {
6
+ "zh-CN": t,
7
+ "zh-TW": n,
8
+ "en-US": e
9
+ }, i = (e) => r[e] ?? t, a = {
10
+ "zh-CN": "zh-cn",
11
+ "zh-TW": "zh-tw",
12
+ "en-US": "en"
13
+ }, o = (e) => a[e] ?? "zh-cn";
14
+ //#endregion
15
+ export { o as n, i as t };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../style-DZaSSoNs.js";
2
+ export { e as resolveDatePickerThemeVars };
@@ -0,0 +1,15 @@
1
+ import { t as e } from "../vendors/cssVars-C4BlzyxA.js";
2
+ import t from "tinycolor2";
3
+ //#region src/components/DatePicker/style/resolveDatePickerThemeVars.ts
4
+ var n = .3, r = "#fff", i = (i) => {
5
+ if (!i) return {};
6
+ let a = {};
7
+ if (e(a, "--bsy-date-picker-color-surface", i.colorBgContainer), e(a, "--bsy-date-picker-color-primary", i.colorPrimary), i.colorPrimaryHover) e(a, "--bsy-date-picker-color-primary-hover", i.colorPrimaryHover), e(a, "--bsy-date-picker-color-today-bg", i.colorPrimaryHover);
8
+ else if (i.colorPrimary) {
9
+ let r = t(i.colorPrimary).setAlpha(n).toRgbString();
10
+ e(a, "--bsy-date-picker-color-primary-hover", r), e(a, "--bsy-date-picker-color-today-bg", r);
11
+ }
12
+ return e(a, "--bsy-date-picker-color-arrow", i.headerColor), e(a, "--bsy-date-picker-color-header", i.headerColor), e(a, "--bsy-date-picker-color-header-hover", i.headerHoverColor), e(a, "--bsy-date-picker-color-cell", i.colorText), e(a, "--bsy-date-picker-color-cell-tertiary", i.colorTextTertiary), e(a, "--bsy-date-picker-color-cell-selected-bg", i.cellSelectedBg), e(a, "--bsy-date-picker-color-week-row-bg", i.weekRangeBg), i.cellSelectedBg && (a["--bsy-date-picker-color-cell-selected"] = r), a;
13
+ };
14
+ //#endregion
15
+ export { i as t };
@@ -1,8 +1,8 @@
1
- import { t as e } from "../vendors/useLocale-Mk0d7wNt.js";
2
- import { n as t } from "../vendors/animations-C2i5EijE.js";
3
- import { t as n } from "../Select/SelectInputSearch-Dm3CI_L4.js";
4
- import { t as r } from "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
5
- import { t as i } from "../vendors/useFloatingPortal-CDgiCnbb.js";
1
+ import { t as e } from "../vendors/useLocale-DvdSwM9e.js";
2
+ import { n as t } from "../vendors/animations-BmT0HT5q.js";
3
+ import { t as n } from "../Select/SelectInputSearch-CraymTXM.js";
4
+ import { t as r } from "../NotFoundContent/NotFoundContent-7xV-zOG2.js";
5
+ import { t as i } from "../vendors/useFloatingPortal-DsEtsAGW.js";
6
6
  import { isEmpty as a, isNumber as o } from "lodash-es";
7
7
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
8
8
  import { cloneElement as u, isValidElement as d, memo as f, useMemo as p, useState as m } from "react";
@@ -1,8 +1,8 @@
1
- import "../Icon/Icon-CTZCSuVg.js";
2
- import "../vendors/LocaleContext-Jj_JGgi2.js";
3
- import "../vendors/useLocale-Mk0d7wNt.js";
4
- import "../Select/SelectInputSearch-Dm3CI_L4.js";
5
- import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
6
- import "../vendors/useFloatingPortal-CDgiCnbb.js";
7
- import { t as e } from "./DropDown-CMKiQDrc.js";
1
+ import "../Icon/Icon-BQ3Whub2.js";
2
+ import "../vendors/LocaleContext-CuXR7Y03.js";
3
+ import "../vendors/useLocale-DvdSwM9e.js";
4
+ import "../Select/SelectInputSearch-CraymTXM.js";
5
+ import "../NotFoundContent/NotFoundContent-7xV-zOG2.js";
6
+ import "../vendors/useFloatingPortal-DsEtsAGW.js";
7
+ import { t as e } from "./DropDown-BR-Tz58r.js";
8
8
  export { e as default };
@@ -1,9 +1,9 @@
1
- import { t as e } from "../Icon/Icon-CTZCSuVg.js";
2
- import { t } from "../Modal/Modal-CweuD-VO.js";
3
- import { t as n } from "../ColorPicker/ColorPicker-nnQIw0_e.js";
4
- import { t as r } from "../vendors/useLocale-Mk0d7wNt.js";
5
- import { t as i } from "../CheckBox/CheckBox-B04hZKaC.js";
6
- import { t as a } from "../DropDown/DropDown-CMKiQDrc.js";
1
+ import { t as e } from "../Icon/Icon-BQ3Whub2.js";
2
+ import { t } from "../Modal/Modal-B5AW5GKt.js";
3
+ import { t as n } from "../ColorPicker/ColorPicker-CKqNqAsK.js";
4
+ import { t as r } from "../vendors/useLocale-DvdSwM9e.js";
5
+ import { t as i } from "../CheckBox/CheckBox-DIunYcfS.js";
6
+ import { t as a } from "../DropDown/DropDown-BR-Tz58r.js";
7
7
  import { FONT_SIZES as o } from "./constants/index.js";
8
8
  import { AlignCenterOutlined as s, AlignLeftOutlined as c, AlignRightOutlined as l } from "@ant-design/icons";
9
9
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,14 +1,15 @@
1
- import "../../../Icon/Icon-CTZCSuVg.js";
2
- import "../../../vendors/LocaleContext-Jj_JGgi2.js";
3
- import "../../../Modal/Modal-CweuD-VO.js";
4
- import "../../../ColorPicker/ColorPicker-nnQIw0_e.js";
5
- import "../../../vendors/useLocale-Mk0d7wNt.js";
6
- import "../../../vendors/color-CxdZwdYM.js";
7
- import "../../../Select/SelectInputSearch-Dm3CI_L4.js";
8
- import "../../../CheckBox/CheckBox-DF201Nxg.js";
9
- import "../../../CheckBox/CheckBox-B04hZKaC.js";
10
- import "../../../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
11
- import "../../../vendors/useFloatingPortal-CDgiCnbb.js";
12
- import "../../../DropDown/DropDown-CMKiQDrc.js";
13
- import { a as e, i as t, n, r, t as i } from "../../Buttons-D17RQIEb.js";
1
+ import "../../../Icon/Icon-BQ3Whub2.js";
2
+ import "../../../vendors/LocaleContext-CuXR7Y03.js";
3
+ import "../../../Modal/Modal-B5AW5GKt.js";
4
+ import "../../../ColorPicker/ColorPicker-CKqNqAsK.js";
5
+ import "../../../vendors/useFloatingOverlay-uxlI1G-V.js";
6
+ import "../../../vendors/useLocale-DvdSwM9e.js";
7
+ import "../../../vendors/color-BeQo449h.js";
8
+ import "../../../Select/SelectInputSearch-CraymTXM.js";
9
+ import "../../../CheckBox/CheckBox-CkVe5Boq.js";
10
+ import "../../../CheckBox/CheckBox-DIunYcfS.js";
11
+ import "../../../NotFoundContent/NotFoundContent-7xV-zOG2.js";
12
+ import "../../../vendors/useFloatingPortal-DsEtsAGW.js";
13
+ import "../../../DropDown/DropDown-BR-Tz58r.js";
14
+ import { a as e, i as t, n, r, t as i } from "../../Buttons-DdZg3jAa.js";
14
15
  export { i as default, n as getToolbarButton, r as listRegisteredToolbarButtons, t as registerToolbarButton, e as unregisterToolbarButton };
@@ -1,16 +1,17 @@
1
- import "../Icon/Icon-CTZCSuVg.js";
2
- import "../vendors/LocaleContext-Jj_JGgi2.js";
3
- import "../Modal/Modal-CweuD-VO.js";
4
- import "../ColorPicker/ColorPicker-nnQIw0_e.js";
5
- import "../vendors/useLocale-Mk0d7wNt.js";
6
- import "../vendors/color-CxdZwdYM.js";
7
- import "../Select/SelectInputSearch-Dm3CI_L4.js";
8
- import "../CheckBox/CheckBox-DF201Nxg.js";
9
- import "../CheckBox/CheckBox-B04hZKaC.js";
10
- import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
11
- import "../vendors/useFloatingPortal-CDgiCnbb.js";
12
- import "../DropDown/DropDown-CMKiQDrc.js";
13
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-D17RQIEb.js";
1
+ import "../Icon/Icon-BQ3Whub2.js";
2
+ import "../vendors/LocaleContext-CuXR7Y03.js";
3
+ import "../Modal/Modal-B5AW5GKt.js";
4
+ import "../ColorPicker/ColorPicker-CKqNqAsK.js";
5
+ import "../vendors/useFloatingOverlay-uxlI1G-V.js";
6
+ import "../vendors/useLocale-DvdSwM9e.js";
7
+ import "../vendors/color-BeQo449h.js";
8
+ import "../Select/SelectInputSearch-CraymTXM.js";
9
+ import "../CheckBox/CheckBox-CkVe5Boq.js";
10
+ import "../CheckBox/CheckBox-DIunYcfS.js";
11
+ import "../NotFoundContent/NotFoundContent-7xV-zOG2.js";
12
+ import "../vendors/useFloatingPortal-DsEtsAGW.js";
13
+ import "../DropDown/DropDown-BR-Tz58r.js";
14
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-DdZg3jAa.js";
14
15
  import { DEFAULT_BACKGROUND_COLOR as c, DEFAULT_FONT_COLOR as l, DEFAULT_FONT_SIZE as u } from "./constants/index.js";
15
16
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
16
17
  import m, { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";