@unicom-cloud/ui 0.8.106 → 0.8.108

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 (197) hide show
  1. package/App.js +7 -0
  2. package/BackTop.js +2 -4
  3. package/Calendar.js +2 -2
  4. package/ColorPicker.js +15 -14
  5. package/Constant.js +4 -0
  6. package/Copy.js +4 -3
  7. package/Countdown.js +25 -0
  8. package/Grid.js +8 -10
  9. package/LiquidFill.js +4 -3
  10. package/List.js +7 -6
  11. package/Marquee.js +4 -3
  12. package/Modal.js +4 -2
  13. package/PageHeader.js +3 -2
  14. package/QrCode.js +4 -3
  15. package/RowCol.js +8 -0
  16. package/Segmented.js +14 -4
  17. package/Statistic.js +5 -4
  18. package/Tour.js +4 -3
  19. package/Transfer.js +4 -2
  20. package/anchor/Link.js +1 -1
  21. package/app/App.js +26 -0
  22. package/app/context.js +9 -0
  23. package/app/index.js +9 -0
  24. package/app/interface.js +1 -0
  25. package/app/useApp.js +8 -0
  26. package/avatar/Group.js +1 -1
  27. package/back-top/index.js +44 -56
  28. package/button/index.js +52 -51
  29. package/calendar/Lunar.js +71 -0
  30. package/calendar/index.js +11 -11
  31. package/cascader/base/node.js +22 -20
  32. package/cascader/base/store.js +10 -10
  33. package/cascader/util.js +29 -27
  34. package/color-picker/Mode.js +8 -7
  35. package/color-picker/hooks/useColorPicker.js +56 -55
  36. package/color-picker/index.js +49 -48
  37. package/color-picker/utils.js +58 -57
  38. package/components/common/empty/index.js +2 -2
  39. package/components/common/flex/index.js +64 -55
  40. package/components/common/flex/interface.js +6 -6
  41. package/components/common/hooks/useInterval.js +6 -6
  42. package/components/common/icons/file/index.js +13 -11
  43. package/components/common/space/index.js +53 -53
  44. package/components/common/utils/dayjs.js +114 -126
  45. package/components/common/utils/is.js +98 -104
  46. package/components/common/utils/setDir.js +12 -0
  47. package/components/common/utils/setTheme.js +13 -13
  48. package/components/common/utils/toArray.js +7 -5
  49. package/config-provider/ConfigProvider.js +32 -30
  50. package/constant/index.js +4 -0
  51. package/copy/index.js +2 -1
  52. package/countdown/index.js +113 -0
  53. package/countdown/interface.js +1 -0
  54. package/countdown/util.js +29 -0
  55. package/descriptions/index.js +45 -45
  56. package/divider/index.js +28 -20
  57. package/dropdown/Button.js +1 -1
  58. package/empty/index.js +1 -1
  59. package/flex/index.js +30 -29
  60. package/form/FormItem.js +126 -122
  61. package/grid/Grid.js +56 -90
  62. package/grid/Item.js +44 -65
  63. package/grid/context.js +2 -6
  64. package/grid/index.js +6 -8
  65. package/grid/util.js +6 -44
  66. package/hooks/useResponsiveState.js +54 -0
  67. package/index.js +614 -605
  68. package/input/Button.js +12 -12
  69. package/input/Group.js +11 -12
  70. package/input/Input.js +112 -102
  71. package/input/InputElement.js +25 -24
  72. package/input/Search.js +24 -24
  73. package/layout/Sider.js +1 -1
  74. package/liquid-fill/index.js +4 -3
  75. package/list/Item.js +21 -21
  76. package/list/index.js +53 -52
  77. package/marquee/index.js +20 -19
  78. package/marquee-/index.js +4 -3
  79. package/mentions/util.js +9 -8
  80. package/modal/Confirm.js +17 -17
  81. package/modal/Modal.js +247 -237
  82. package/modal/index.js +4 -2
  83. package/modal/use-modal/index.js +2 -2
  84. package/package.json +1 -1
  85. package/page-header/index.js +57 -56
  86. package/pagination/Pagination.js +89 -92
  87. package/qr-code/index.js +4 -3
  88. package/radio/Group.js +1 -1
  89. package/row-col/Col-.js +88 -0
  90. package/row-col/Col.js +159 -0
  91. package/row-col/Row.js +73 -0
  92. package/row-col/context.js +5 -0
  93. package/row-col/index.js +11 -0
  94. package/row-col/interface.js +1 -0
  95. package/segmented/index.js +257 -206
  96. package/select/Select.js +191 -191
  97. package/select/util.js +50 -50
  98. package/select-view/Core.js +31 -28
  99. package/space/index.js +15 -13
  100. package/splitter/SplitBar.js +44 -46
  101. package/statistic/index.js +56 -55
  102. package/statistic/interface.js +4 -1
  103. package/style.css +1 -1
  104. package/table/Table.js +198 -210
  105. package/table/hook/useColumns.js +27 -26
  106. package/table/hook/useStickyClassNames.js +9 -8
  107. package/table/hook/useThResizable.js +4 -3
  108. package/table/th-resizable/index.js +2 -2
  109. package/table/thead/index.js +18 -16
  110. package/time-picker/util.js +20 -30
  111. package/timeline/Item.js +1 -1
  112. package/tour/index.js +4 -3
  113. package/transfer/index.js +93 -91
  114. package/trigger/index.js +66 -66
  115. package/types/common/development/interface.d.ts +3 -3
  116. package/types/common/flex/index.d.ts +3 -9
  117. package/types/common/flex/interface.d.ts +15 -4
  118. package/types/common/space/index.d.ts +3 -5
  119. package/types/common/space/interface.d.ts +2 -0
  120. package/types/common/utils/dayjs.d.ts +3 -1
  121. package/types/common/utils/is.d.ts +3 -4
  122. package/types/common/utils/setDir.d.ts +2 -0
  123. package/types/pc/app/App.d.ts +6 -0
  124. package/types/pc/app/context.d.ts +4 -0
  125. package/types/pc/app/index.d.ts +5 -0
  126. package/types/pc/app/interface.d.ts +17 -0
  127. package/types/pc/app/useApp.d.ts +3 -0
  128. package/types/pc/back-top/interface.d.ts +4 -17
  129. package/types/pc/button/interface.d.ts +2 -2
  130. package/types/pc/calendar/Lunar.d.ts +17 -0
  131. package/types/pc/calendar/index.d.ts +1 -1
  132. package/types/pc/config-provider/interface.d.ts +17 -12
  133. package/types/pc/constant/index.d.ts +1 -0
  134. package/types/pc/countdown/interface.d.ts +65 -0
  135. package/types/pc/countdown/util.d.ts +7 -0
  136. package/types/pc/divider/interface.d.ts +1 -0
  137. package/types/pc/flex/index.d.ts +8 -6
  138. package/types/pc/flex/interface.d.ts +3 -10
  139. package/types/pc/form/FormItem.d.ts +1 -1
  140. package/types/pc/form/interface.d.ts +1 -1
  141. package/types/pc/grid/Grid.d.ts +2 -4
  142. package/types/pc/grid/Item.d.ts +1 -5
  143. package/types/pc/grid/context.d.ts +4 -15
  144. package/types/pc/grid/index.d.ts +4 -6
  145. package/types/pc/grid/interface.d.ts +14 -142
  146. package/types/pc/grid/util.d.ts +1 -10
  147. package/types/pc/hooks/useResponsiveState.d.ts +3 -0
  148. package/types/pc/index.d.ts +10 -4
  149. package/types/pc/input/Button.d.ts +2 -2
  150. package/types/pc/list/interface.d.ts +2 -1
  151. package/types/pc/message/index.d.ts +1 -9
  152. package/types/pc/message/interface.d.ts +8 -0
  153. package/types/pc/message/useMessage.d.ts +1 -2
  154. package/types/pc/modal/Modal.d.ts +1 -0
  155. package/types/pc/modal/config.d.ts +1 -2
  156. package/types/pc/modal/index.d.ts +2 -1
  157. package/types/pc/modal/interface.d.ts +17 -5
  158. package/types/pc/notification/index.d.ts +2 -9
  159. package/types/pc/notification/interface.d.ts +7 -0
  160. package/types/pc/notification/useNotification.d.ts +1 -2
  161. package/types/pc/pagination/PageOption.d.ts +0 -1
  162. package/types/pc/pagination/interface.d.ts +5 -6
  163. package/types/pc/{grid → row-col}/Col-.d.ts +1 -1
  164. package/types/pc/{grid → row-col}/Col.d.ts +1 -2
  165. package/types/pc/{grid → row-col}/Row.d.ts +1 -2
  166. package/types/pc/row-col/context.d.ts +6 -0
  167. package/types/pc/row-col/index.d.ts +7 -0
  168. package/types/pc/row-col/interface.d.ts +112 -0
  169. package/types/pc/segmented/index.d.ts +3 -7
  170. package/types/pc/segmented/interface.d.ts +38 -5
  171. package/types/pc/select-view/Core.d.ts +1 -8
  172. package/types/pc/select-view/index.d.ts +1 -8
  173. package/types/pc/select-view/interface.d.ts +9 -2
  174. package/types/pc/space/index.d.ts +5 -7
  175. package/types/pc/space/interface.d.ts +3 -10
  176. package/types/pc/statistic/index.d.ts +1 -1
  177. package/types/pc/statistic/interface.d.ts +1 -49
  178. package/types/pc/utils/is.d.ts +1 -1
  179. package/types/pc/utils/names.d.ts +422 -111
  180. package/types/pc/utils/responsiveObserve.d.ts +8 -8
  181. package/typography/Ellipsis.js +5 -4
  182. package/typography/Operations.js +4 -3
  183. package/utils/dayjs.js +13 -11
  184. package/utils/index.js +245 -244
  185. package/utils/is.js +65 -66
  186. package/utils/names.js +309 -150
  187. package/utils/responsiveObserve.js +43 -36
  188. package/version/index.js +1 -1
  189. package/grid/Col-.js +0 -86
  190. package/grid/Col.js +0 -169
  191. package/grid/Row.js +0 -96
  192. package/grid/hook/useResponsiveState.js +0 -38
  193. package/statistic/Countdown.js +0 -56
  194. package/statistic/util.js +0 -33
  195. package/types/pc/grid/hook/useResponsiveState.d.ts +0 -2
  196. package/types/pc/statistic/util.d.ts +0 -1
  197. /package/types/pc/{statistic/Countdown.d.ts → countdown/index.d.ts} +0 -0
@@ -1,20 +1,20 @@
1
+ type SubscribeFunc = (screens: ScreenMap, breakpointChecked: Breakpoint | null, media: string | null) => void;
2
+ type MatchHandler = {
3
+ mql: MediaQueryList;
4
+ listener: (this: MediaQueryList, ev: MediaQueryListEvent) => void;
5
+ };
1
6
  export type Breakpoint = 'xxxl' | 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
2
7
  export type BreakpointMap = Record<Breakpoint, string>;
3
8
  export type ScreenMap = Partial<Record<Breakpoint, boolean>>;
4
9
  export declare const responsiveArray: Breakpoint[];
5
10
  export declare const responsiveMap: BreakpointMap;
6
- type SubscribeFunc = (screens: ScreenMap, breakpointChecked: Breakpoint | null) => void;
7
- type MatchHandler = {
8
- mql: MediaQueryList;
9
- listener: (this: MediaQueryList, ev: MediaQueryListEvent) => void;
10
- };
11
11
  declare const responsiveObserve: {
12
12
  matchHandlers: Record<string, MatchHandler>;
13
- dispatch(pointMap: ScreenMap, breakpointChecked: Breakpoint | null): boolean;
13
+ register(): void;
14
+ unregister(): void;
14
15
  subscribe(func: SubscribeFunc): string;
15
16
  unsubscribe(token: string): void;
16
- unregister(): void;
17
- register(): void;
17
+ dispatch(pointMap: ScreenMap, breakpointChecked: Breakpoint | null, media: any): boolean;
18
18
  };
19
19
  export { responsiveObserve };
20
20
  export default responsiveObserve;
@@ -45,7 +45,7 @@ import "../dist/react-transition-group/chunk/CPfP7aNL.js";
45
45
  import "../dist/react-transition-group/src/TransitionGroup.js";
46
46
  import "../components/common/utils/reactDOM.js";
47
47
  import { resizeObserver as it } from "../components/common/utils/resizeObserver.js";
48
- import "uuid";
48
+ import "../utils/responsiveObserve.js";
49
49
  import "@unicom-cloud/utils/file/saveAs";
50
50
  import "@unicom-cloud/utils/screenfull";
51
51
  import "@unicom-cloud/utils/tinycolor";
@@ -56,6 +56,7 @@ import { throttleByRaf as nt } from "../components/common/utils/throttleByRaf.js
56
56
  import "react-is";
57
57
  import "@unicom-cloud/utils/tree";
58
58
  import { isPlainObject as b, isFunction as st } from "@unicom-cloud/utils/is";
59
+ import "uuid";
59
60
  import "../dist/validate/src/index.js";
60
61
  import "@unicom-cloud/utils/constant/keyboardCode";
61
62
  import lt from "../config-provider/context.js";
@@ -67,7 +68,7 @@ const pt = {
67
68
  const C = U(lt), N = Z(
68
69
  j,
69
70
  pt,
70
- C.componentConfig?.["Typography.Ellipsis"]
71
+ C.componentConfig?.TypographyEllipsis
71
72
  ), {
72
73
  className: A,
73
74
  style: L,
@@ -217,7 +218,7 @@ const pt = {
217
218
  I(),
218
219
  J()
219
220
  ] });
220
- }, ge = Q(at);
221
+ }, ve = Q(at);
221
222
  export {
222
- ge as default
223
+ ve as default
223
224
  };
@@ -44,7 +44,7 @@ import "../dist/react-transition-group/src/SwitchTransition.js";
44
44
  import "../dist/react-transition-group/chunk/CPfP7aNL.js";
45
45
  import "../dist/react-transition-group/src/TransitionGroup.js";
46
46
  import "../components/common/utils/reactDOM.js";
47
- import "uuid";
47
+ import "../utils/responsiveObserve.js";
48
48
  import "@unicom-cloud/utils/file/saveAs";
49
49
  import "@unicom-cloud/utils/screenfull";
50
50
  import "@unicom-cloud/utils/tinycolor";
@@ -53,9 +53,10 @@ import "@unicom-cloud/utils/constant/ui.js";
53
53
  import "react-is";
54
54
  import "@unicom-cloud/utils/tree";
55
55
  import { isFunction as K } from "@unicom-cloud/utils/is";
56
+ import "uuid";
56
57
  import "../dist/validate/src/index.js";
57
58
  import "@unicom-cloud/utils/constant/keyboardCode";
58
- function Bo(u) {
59
+ function Do(u) {
59
60
  const {
60
61
  children: s,
61
62
  copyable: i,
@@ -121,5 +122,5 @@ function Bo(u) {
121
122
  ] });
122
123
  }
123
124
  export {
124
- Bo as default
125
+ Do as default
125
126
  };
package/utils/dayjs.js CHANGED
@@ -1,17 +1,19 @@
1
- import { dayjs as t, dayjs as o, getDayjsValue as s, getNow as i, getSortedDayjsArray as r, getTimeFormat as g, getValueWithTime as m, isDayjsArrayChange as y, isDayjsChange as d, isValidTimeString as j, methods as l, timezoneToOffset as n, toLocal as T, toTimezone as f } from "../components/common/utils/dayjs.js";
1
+ import { dayjs as t, dayjs as o, formatValue as i, getDayjsValue as s, getNow as m, getRealTime as r, getSortedDayjsArray as g, getTimeFormat as y, getValueWithTime as l, isDayjsArrayChange as d, isDayjsChange as j, isValidTimeString as T, methods as f, timezoneToOffset as n, toLocal as h, toTimezone as u } from "../components/common/utils/dayjs.js";
2
2
  export {
3
3
  t as dayjs,
4
4
  o as default,
5
+ i as formatValue,
5
6
  s as getDayjsValue,
6
- i as getNow,
7
- r as getSortedDayjsArray,
8
- g as getTimeFormat,
9
- m as getValueWithTime,
10
- y as isDayjsArrayChange,
11
- d as isDayjsChange,
12
- j as isValidTimeString,
13
- l as methods,
7
+ m as getNow,
8
+ r as getRealTime,
9
+ g as getSortedDayjsArray,
10
+ y as getTimeFormat,
11
+ l as getValueWithTime,
12
+ d as isDayjsArrayChange,
13
+ j as isDayjsChange,
14
+ T as isValidTimeString,
15
+ f as methods,
14
16
  n as timezoneToOffset,
15
- T as toLocal,
16
- f as toTimezone
17
+ h as toLocal,
18
+ u as toTimezone
17
19
  };
package/utils/index.js CHANGED
@@ -1,264 +1,265 @@
1
1
  export * from "@unicom-cloud/utils/date";
2
2
  import { default as i } from "@unicom-cloud/utils/case-name";
3
3
  import { default as f } from "@unicom-cloud/utils/class-name";
4
- import { newArray as p, pickTriggerPropsFromRest as n } from "./constant.js";
4
+ import { newArray as p, pickTriggerPropsFromRest as d } from "./constant.js";
5
5
  import { ContextHolderElement as x } from "./contextHolder.js";
6
6
  import { default as c, default as y } from "@unicom-cloud/utils/clipboard-copy";
7
- import { dayjs as S, getDayjsValue as R, getNow as C, getSortedDayjsArray as h, getTimeFormat as T, getValueWithTime as E, isDayjsArrayChange as b, isDayjsChange as N, isValidTimeString as A, methods as M, timezoneToOffset as P, toLocal as D, toTimezone as I } from "../components/common/utils/dayjs.js";
8
- import { contains as k, getScrollElements as v, isScrollElement as B, isServerRendering as w, off as V, on as F } from "../components/common/utils/dom.js";
9
- import { default as L } from "@unicom-cloud/utils/file/fileToURL";
10
- import { fillNBSP as _ } from "../components/common/utils/fillNBSP.js";
11
- import { getHighlightText as H } from "../components/common/utils/getHighlightText.js";
12
- import { getHotkeyHandler as q } from "../components/common/utils/getHotkeyHandler.js";
13
- import { getStringLength as K } from "../components/common/utils/getStringLength.js";
14
- import { include as Y } from "../components/common/utils/include.js";
7
+ import { dayjs as S, formatValue as R, getDayjsValue as C, getNow as h, getRealTime as T, getSortedDayjsArray as E, getTimeFormat as b, getValueWithTime as N, isDayjsArrayChange as A, isDayjsChange as P, isValidTimeString as D, methods as I, timezoneToOffset as M, toLocal as O, toTimezone as k } from "../components/common/utils/dayjs.js";
8
+ import { contains as B, getScrollElements as V, isScrollElement as w, isServerRendering as F, off as j, on as L } from "../components/common/utils/dom.js";
9
+ import { default as _ } from "@unicom-cloud/utils/file/fileToURL";
10
+ import { fillNBSP as H } from "../components/common/utils/fillNBSP.js";
11
+ import { getHighlightText as q } from "../components/common/utils/getHighlightText.js";
12
+ import { getHotkeyHandler as K } from "../components/common/utils/getHotkeyHandler.js";
13
+ import { getStringLength as Y } from "../components/common/utils/getStringLength.js";
14
+ import { include as X } from "../components/common/utils/include.js";
15
15
  import "lodash/isFunction";
16
- import { default as X } from "lodash/throttle";
16
+ import { default as $ } from "lodash/throttle";
17
17
  import * as t from "./is.js";
18
- import { default as $ } from "lodash/camelCase";
19
- import { default as te } from "lodash/capitalize";
20
- import { default as oe } from "lodash/cloneDeep";
21
- import { default as se } from "lodash/debounce";
22
- import { default as me } from "lodash/get";
23
- import { default as le } from "lodash/has";
24
- import { default as ne } from "lodash/kebabCase";
25
- import { default as xe } from "lodash/merge";
26
- import { default as ce } from "lodash/mergeWith";
27
- import { default as ge } from "lodash/set";
28
- import { default as Re } from "lodash/setWith";
29
- import { default as he } from "lodash/snakeCase";
30
- import { default as Ee } from "lodash/startCase";
31
- import { default as Ne } from "lodash/uniq";
32
- import { default as Me } from "lodash/upperFirst";
33
- import { div as De, default as Ie, minus as Oe, plus as ke, times as ve } from "@unicom-cloud/utils/math";
34
- import { mergedToString as we } from "../components/common/utils/mergedToString.js";
35
- import { mergeProps as Fe } from "../components/common/utils/mergeProps.js";
36
- import { COMPONENT_NAMES as Le } from "./names.js";
37
- import { omit as _e } from "../components/common/utils/omit.js";
38
- import { padEnd as He, padStart as Ue } from "../components/common/utils/pad.js";
39
- import { pick as Ge, pickDataAttributes as Ke } from "../components/common/utils/pick.js";
40
- import { PqbCSSTransition as Ye } from "../components/common/utils/PqbCSSTransition.js";
41
- import { callbackOriginRef as Xe, findDOMNode_ as Ze } from "../components/common/utils/reactDOM.js";
42
- import { default as et } from "../dist/react-transition-group/src/CSSTransition.js";
43
- import { default as rt } from "../dist/react-transition-group/src/ReplaceTransition.js";
44
- import { default as at } from "../dist/react-transition-group/src/SwitchTransition.js";
45
- import { T as it } from "../dist/react-transition-group/chunk/CPfP7aNL.js";
46
- import { default as ft, default as lt } from "../dist/react-transition-group/src/TransitionGroup.js";
47
- import { responsiveArray as nt, responsiveMap as dt, responsiveObserve as xt } from "./responsiveObserve.js";
48
- import { default as ct } from "@unicom-cloud/utils/file/saveAs";
49
- import { default as gt } from "@unicom-cloud/utils/screenfull";
50
- import { scrollIntoView as Rt } from "../components/common/utils/scrollIntoViewIfNeeded.js";
51
- import { removeDarkTheme as ht, setDarkTheme as Tt } from "./setDarkTheme.js";
52
- import { setPrimaryColor as bt } from "./setPrimaryColor.js";
53
- import { setTheme as At } from "./setTheme.js";
54
- import { fixedWidth as Pt, getStyle as Dt, setTransformStyle as It } from "../components/common/utils/style.js";
55
- import { throttleByRaf as kt } from "../components/common/utils/throttleByRaf.js";
56
- import { toArray as Bt } from "../components/common/utils/toArray.js";
57
- import { findNodeBy as Vt, getChildWithParentBy as Ft, getItemBy as jt, getItemBy2 as Lt, getItemBy3 as Wt, getItemByID as _t, getLabelFromDictionaryByValue as zt, searchTree as Ht, default as Ut } from "@unicom-cloud/utils/tree";
58
- import { Tween as Gt } from "../dist/tween/src/tween.js";
59
- import { default as Jt } from "../dist/tween/src/easing.js";
60
- import { v4 as Qt, v4 as Xt } from "uuid";
61
- import { Schema as $t, default as er } from "../dist/validate/src/index.js";
62
- import { d as rr } from "../dist/validate/chunk/BXTR2LmP.js";
63
- import { warning as ar } from "../components/common/utils/warning.js";
18
+ import { default as te } from "lodash/camelCase";
19
+ import { default as oe } from "lodash/capitalize";
20
+ import { default as se } from "lodash/cloneDeep";
21
+ import { default as me } from "lodash/debounce";
22
+ import { default as le } from "lodash/get";
23
+ import { default as de } from "lodash/has";
24
+ import { default as xe } from "lodash/kebabCase";
25
+ import { default as ce } from "lodash/merge";
26
+ import { default as ge } from "lodash/mergeWith";
27
+ import { default as Re } from "lodash/set";
28
+ import { default as he } from "lodash/setWith";
29
+ import { default as Ee } from "lodash/snakeCase";
30
+ import { default as Ne } from "lodash/startCase";
31
+ import { default as Pe } from "lodash/uniq";
32
+ import { default as Ie } from "lodash/upperFirst";
33
+ import { div as Oe, default as ke, minus as ve, plus as Be, times as Ve } from "@unicom-cloud/utils/math";
34
+ import { mergedToString as Fe } from "../components/common/utils/mergedToString.js";
35
+ import { mergeProps as Le } from "../components/common/utils/mergeProps.js";
36
+ import { COMPONENT_NAMES as _e } from "./names.js";
37
+ import { omit as He } from "../components/common/utils/omit.js";
38
+ import { padEnd as qe, padStart as Ge } from "../components/common/utils/pad.js";
39
+ import { pick as Je, pickDataAttributes as Ye } from "../components/common/utils/pick.js";
40
+ import { PqbCSSTransition as Xe } from "../components/common/utils/PqbCSSTransition.js";
41
+ import { callbackOriginRef as $e, findDOMNode_ as et } from "../components/common/utils/reactDOM.js";
42
+ import { default as rt } from "../dist/react-transition-group/src/CSSTransition.js";
43
+ import { default as at } from "../dist/react-transition-group/src/ReplaceTransition.js";
44
+ import { default as it } from "../dist/react-transition-group/src/SwitchTransition.js";
45
+ import { T as ft } from "../dist/react-transition-group/chunk/CPfP7aNL.js";
46
+ import { default as pt, default as dt } from "../dist/react-transition-group/src/TransitionGroup.js";
47
+ import { responsiveArray as xt, responsiveMap as ut, responsiveObserve as ct } from "./responsiveObserve.js";
48
+ import { default as gt } from "@unicom-cloud/utils/file/saveAs";
49
+ import { default as Rt } from "@unicom-cloud/utils/screenfull";
50
+ import { scrollIntoView as ht } from "../components/common/utils/scrollIntoViewIfNeeded.js";
51
+ import { removeDarkTheme as Et, setDarkTheme as bt } from "./setDarkTheme.js";
52
+ import { setPrimaryColor as At } from "./setPrimaryColor.js";
53
+ import { setTheme as Dt } from "./setTheme.js";
54
+ import { fixedWidth as Mt, getStyle as Ot, setTransformStyle as kt } from "../components/common/utils/style.js";
55
+ import { throttleByRaf as Bt } from "../components/common/utils/throttleByRaf.js";
56
+ import { toArray as wt } from "../components/common/utils/toArray.js";
57
+ import { findNodeBy as jt, getChildWithParentBy as Lt, getItemBy as Wt, getItemBy2 as _t, getItemBy3 as zt, getItemByID as Ht, getLabelFromDictionaryByValue as Ut, searchTree as qt, default as Gt } from "@unicom-cloud/utils/tree";
58
+ import { Tween as Jt } from "../dist/tween/src/tween.js";
59
+ import { default as Qt } from "../dist/tween/src/easing.js";
60
+ import { v4 as Zt, v4 as $t } from "uuid";
61
+ import { Schema as tr, default as rr } from "../dist/validate/src/index.js";
62
+ import { d as ar } from "../dist/validate/chunk/BXTR2LmP.js";
63
+ import { warning as ir } from "../components/common/utils/warning.js";
64
64
  import * as r from "@unicom-cloud/utils/constant/keyboardCode";
65
- import { NOOP as ir } from "../components/common/utils/constant.js";
66
- import { UI_PC_KEY as fr, UI_PC_THEME_DARK_CLASS_NAME as lr } from "@unicom-cloud/utils/constant/ui";
67
- import { isArguments as nr, isArray as dr, isArrayBuffer as xr, isArrayLike as ur, isArrayLikeObject as cr, isBlob as yr, isBoolean as gr, isBuffer as Sr, isColor as Rr, isColor2 as Cr, isDate as hr, isElement as Tr, isEmpty as Er, isEmptyArray as br, isEmptyObject as Nr, isEmptyValue as Ar, isEqual as Mr, isEqualWith as Pr, isError as Dr, isFile as Ir, isFinite as Or, isFunction as kr, isInteger as vr, isJSON as Br, isLength as wr, isMap as Vr, isMatch as Fr, isMatchWith as jr, isNaN as Lr, isNative as Wr, isNil as _r, isNull as zr, isNumber as Hr, isObject as Ur, isObjectLike as qr, isPlainObject as Gr, isPromise as Kr, isReadableByteStreamControllerSupported as Jr, isReadableStream as Yr, isReadableStreamDefaultControllerSupported as Qr, isReadableStreamSupported as Xr, isReadableStreamSymbolAsyncIteratorSupported as Zr, isRegExp as $r, isSafeInteger as eo, isSet as to, isString as ro, isSymbol as oo, isTypedArray as ao, isUndefined as so, isValidColor as io, isWeakMap as mo, isWeakSet as fo } from "@unicom-cloud/utils/is";
68
- import { isClassComponent as po, isDOMElement as no, isDayjs as xo, isEmptyReactNode as uo, isExist as co, isForwardRefReact as yo, isNullOrUndefined as go, isReact18 as So, isReact19 as Ro, isReactComponent as Co, isSupportRef as ho, isWindow as To, supportRef as Eo } from "../components/common/utils/is.js";
69
- import { isAsyncMode as No, isConcurrentMode as Ao, isContextConsumer as Mo, isContextProvider as Po, isElement as Do, isForwardRef as Io, isFragment as Oo, isLazy as ko, isMemo as vo, isPortal as Bo, isProfiler as wo, isStrictMode as Vo, isSuspense as Fo, isValidElementType as jo } from "react-is";
70
- import { compute as Wo } from "../dist/scroll-into-view-if-needed/compute/index.js";
71
- import { default as zo } from "../dist/scroll-into-view-if-needed/src/index.js";
72
- import { default as Uo, default as qo } from "../dist/scroll-into-view-if-needed/smooth/index.js";
65
+ import { NOOP as fr } from "../components/common/utils/constant.js";
66
+ import { UI_PC_KEY as pr, UI_PC_THEME_DARK_CLASS_NAME as dr } from "@unicom-cloud/utils/constant/ui";
67
+ import { isArguments as xr, isArray as ur, isArrayBuffer as cr, isArrayLike as yr, isArrayLikeObject as gr, isBlob as Sr, isBoolean as Rr, isBuffer as Cr, isColor as hr, isColor2 as Tr, isDate as Er, isElement as br, isEmpty as Nr, isEmptyArray as Ar, isEmptyObject as Pr, isEmptyValue as Dr, isEqual as Ir, isEqualWith as Mr, isError as Or, isFile as kr, isFinite as vr, isFunction as Br, isInteger as Vr, isJSON as wr, isLength as Fr, isMap as jr, isMatch as Lr, isMatchWith as Wr, isNaN as _r, isNative as zr, isNil as Hr, isNull as Ur, isNumber as qr, isObject as Gr, isObjectLike as Kr, isPlainObject as Jr, isPromise as Yr, isReadableByteStreamControllerSupported as Qr, isReadableStream as Xr, isReadableStreamDefaultControllerSupported as Zr, isReadableStreamSupported as $r, isReadableStreamSymbolAsyncIteratorSupported as eo, isRegExp as to, isSafeInteger as ro, isSet as oo, isString as ao, isSymbol as so, isTypedArray as io, isUndefined as mo, isValidColor as fo, isWeakMap as lo, isWeakSet as po } from "@unicom-cloud/utils/is";
68
+ import { isClassComponent as xo, isDOMElement as uo, isEmptyReactNode as co, isExist as yo, isForwardRefReact as go, isNullOrUndefined as So, isReact18 as Ro, isReact19 as Co, isReactComponent as ho, isSupportRef as To, isWindow as Eo, supportRef as bo } from "../components/common/utils/is.js";
69
+ import { isDayjs as Ao } from "dayjs";
70
+ import { isContextConsumer as Do, isContextProvider as Io, isElement as Mo, isForwardRef as Oo, isFragment as ko, isLazy as vo, isMemo as Bo, isPortal as Vo, isProfiler as wo, isStrictMode as Fo, isSuspense as jo, isValidElementType as Lo } from "react-is";
71
+ import { compute as _o } from "../dist/scroll-into-view-if-needed/compute/index.js";
72
+ import { default as Ho } from "../dist/scroll-into-view-if-needed/src/index.js";
73
+ import { default as qo, default as Go } from "../dist/scroll-into-view-if-needed/smooth/index.js";
73
74
  export {
74
- Le as COMPONENT_NAMES,
75
- et as CSSTransition,
75
+ _e as COMPONENT_NAMES,
76
+ rt as CSSTransition,
76
77
  x as ContextHolderElement,
77
- rr as DefaultValidateMessage,
78
- ir as NOOP,
79
- Ye as PqbCSSTransition,
80
- rt as ReplaceTransition,
81
- $t as Schema,
82
- at as SwitchTransition,
83
- it as Transition,
84
- ft as TransitionGroup,
85
- Gt as Tween,
86
- fr as UI_PC_KEY,
87
- lr as UI_PC_THEME_DARK_CLASS_NAME,
88
- Xe as callbackOriginRef,
89
- $ as camelCase,
90
- te as capitalize,
78
+ ar as DefaultValidateMessage,
79
+ fr as NOOP,
80
+ Xe as PqbCSSTransition,
81
+ at as ReplaceTransition,
82
+ tr as Schema,
83
+ it as SwitchTransition,
84
+ ft as Transition,
85
+ pt as TransitionGroup,
86
+ Jt as Tween,
87
+ pr as UI_PC_KEY,
88
+ dr as UI_PC_THEME_DARK_CLASS_NAME,
89
+ $e as callbackOriginRef,
90
+ te as camelCase,
91
+ oe as capitalize,
91
92
  i as caseName,
92
93
  f as className,
93
94
  c as clipboardCopy,
94
- oe as cloneDeep,
95
- Wo as compute,
96
- k as contains,
95
+ se as cloneDeep,
96
+ _o as compute,
97
+ B as contains,
97
98
  y as copy,
98
99
  S as dayjs,
99
- se as debounce,
100
- De as div,
101
- Jt as easing,
102
- L as fileToURL,
103
- _ as fillNBSP,
104
- Ze as findDOMNode_,
105
- Vt as findNodeBy,
106
- Pt as fixedWidth,
107
- me as get,
108
- Ft as getChildWithParentBy,
109
- R as getDayjsValue,
110
- H as getHighlightText,
111
- q as getHotkeyHandler,
112
- jt as getItemBy,
113
- Lt as getItemBy2,
114
- Wt as getItemBy3,
115
- _t as getItemByID,
116
- zt as getLabelFromDictionaryByValue,
117
- C as getNow,
118
- v as getScrollElements,
119
- h as getSortedDayjsArray,
120
- K as getStringLength,
121
- Dt as getStyle,
122
- T as getTimeFormat,
123
- E as getValueWithTime,
124
- le as has,
125
- Y as include,
100
+ me as debounce,
101
+ Oe as div,
102
+ Qt as easing,
103
+ _ as fileToURL,
104
+ H as fillNBSP,
105
+ et as findDOMNode_,
106
+ jt as findNodeBy,
107
+ Mt as fixedWidth,
108
+ R as formatValue,
109
+ le as get,
110
+ Lt as getChildWithParentBy,
111
+ C as getDayjsValue,
112
+ q as getHighlightText,
113
+ K as getHotkeyHandler,
114
+ Wt as getItemBy,
115
+ _t as getItemBy2,
116
+ zt as getItemBy3,
117
+ Ht as getItemByID,
118
+ Ut as getLabelFromDictionaryByValue,
119
+ h as getNow,
120
+ T as getRealTime,
121
+ V as getScrollElements,
122
+ E as getSortedDayjsArray,
123
+ Y as getStringLength,
124
+ Ot as getStyle,
125
+ b as getTimeFormat,
126
+ N as getValueWithTime,
127
+ de as has,
128
+ X as include,
126
129
  t as is,
127
- nr as isArguments,
128
- dr as isArray,
129
- xr as isArrayBuffer,
130
- ur as isArrayLike,
131
- cr as isArrayLikeObject,
132
- yr as isBlob,
133
- gr as isBoolean,
134
- Sr as isBuffer,
135
- po as isClassComponent,
136
- Rr as isColor,
137
- Cr as isColor2,
138
- no as isDOMElement,
139
- hr as isDate,
140
- xo as isDayjs,
141
- b as isDayjsArrayChange,
142
- N as isDayjsChange,
143
- Tr as isElement,
144
- Er as isEmpty,
145
- br as isEmptyArray,
146
- Nr as isEmptyObject,
147
- uo as isEmptyReactNode,
148
- Ar as isEmptyValue,
149
- Mr as isEqual,
150
- Pr as isEqualWith,
151
- Dr as isError,
152
- co as isExist,
153
- Ir as isFile,
154
- Or as isFinite,
155
- yo as isForwardRefReact,
156
- kr as isFunction,
157
- vr as isInteger,
158
- Br as isJSON,
159
- wr as isLength,
160
- Vr as isMap,
161
- Fr as isMatch,
162
- jr as isMatchWith,
163
- Lr as isNaN,
164
- Wr as isNative,
165
- _r as isNil,
166
- zr as isNull,
167
- go as isNullOrUndefined,
168
- Hr as isNumber,
169
- Ur as isObject,
170
- qr as isObjectLike,
171
- Gr as isPlainObject,
172
- Kr as isPromise,
173
- So as isReact18,
174
- Ro as isReact19,
175
- No as isReactAsyncMode,
176
- Co as isReactComponent,
177
- Ao as isReactConcurrentMode,
178
- Mo as isReactContextConsumer,
179
- Po as isReactContextProvider,
180
- Do as isReactElement,
181
- Io as isReactForwardRef,
182
- Oo as isReactFragment,
183
- ko as isReactLazy,
184
- vo as isReactMemo,
185
- Bo as isReactPortal,
130
+ xr as isArguments,
131
+ ur as isArray,
132
+ cr as isArrayBuffer,
133
+ yr as isArrayLike,
134
+ gr as isArrayLikeObject,
135
+ Sr as isBlob,
136
+ Rr as isBoolean,
137
+ Cr as isBuffer,
138
+ xo as isClassComponent,
139
+ hr as isColor,
140
+ Tr as isColor2,
141
+ uo as isDOMElement,
142
+ Er as isDate,
143
+ Ao as isDayjs,
144
+ A as isDayjsArrayChange,
145
+ P as isDayjsChange,
146
+ br as isElement,
147
+ Nr as isEmpty,
148
+ Ar as isEmptyArray,
149
+ Pr as isEmptyObject,
150
+ co as isEmptyReactNode,
151
+ Dr as isEmptyValue,
152
+ Ir as isEqual,
153
+ Mr as isEqualWith,
154
+ Or as isError,
155
+ yo as isExist,
156
+ kr as isFile,
157
+ vr as isFinite,
158
+ go as isForwardRefReact,
159
+ Br as isFunction,
160
+ Vr as isInteger,
161
+ wr as isJSON,
162
+ Fr as isLength,
163
+ jr as isMap,
164
+ Lr as isMatch,
165
+ Wr as isMatchWith,
166
+ _r as isNaN,
167
+ zr as isNative,
168
+ Hr as isNil,
169
+ Ur as isNull,
170
+ So as isNullOrUndefined,
171
+ qr as isNumber,
172
+ Gr as isObject,
173
+ Kr as isObjectLike,
174
+ Jr as isPlainObject,
175
+ Yr as isPromise,
176
+ Ro as isReact18,
177
+ Co as isReact19,
178
+ ho as isReactComponent,
179
+ Do as isReactContextConsumer,
180
+ Io as isReactContextProvider,
181
+ Mo as isReactElement,
182
+ Oo as isReactForwardRef,
183
+ ko as isReactFragment,
184
+ vo as isReactLazy,
185
+ Bo as isReactMemo,
186
+ Vo as isReactPortal,
186
187
  wo as isReactProfiler,
187
- Vo as isReactStrictMode,
188
- Fo as isReactSuspense,
189
- jo as isReactValidElementType,
190
- Jr as isReadableByteStreamControllerSupported,
191
- Yr as isReadableStream,
192
- Qr as isReadableStreamDefaultControllerSupported,
193
- Xr as isReadableStreamSupported,
194
- Zr as isReadableStreamSymbolAsyncIteratorSupported,
195
- $r as isRegExp,
196
- eo as isSafeInteger,
197
- B as isScrollElement,
198
- w as isServerRendering,
199
- to as isSet,
200
- ro as isString,
201
- ho as isSupportRef,
202
- oo as isSymbol,
203
- ao as isTypedArray,
204
- so as isUndefined,
205
- io as isValidColor,
206
- A as isValidTimeString,
207
- mo as isWeakMap,
208
- fo as isWeakSet,
209
- To as isWindow,
210
- ne as kebabCase,
188
+ Fo as isReactStrictMode,
189
+ jo as isReactSuspense,
190
+ Lo as isReactValidElementType,
191
+ Qr as isReadableByteStreamControllerSupported,
192
+ Xr as isReadableStream,
193
+ Zr as isReadableStreamDefaultControllerSupported,
194
+ $r as isReadableStreamSupported,
195
+ eo as isReadableStreamSymbolAsyncIteratorSupported,
196
+ to as isRegExp,
197
+ ro as isSafeInteger,
198
+ w as isScrollElement,
199
+ F as isServerRendering,
200
+ oo as isSet,
201
+ ao as isString,
202
+ To as isSupportRef,
203
+ so as isSymbol,
204
+ io as isTypedArray,
205
+ mo as isUndefined,
206
+ fo as isValidColor,
207
+ D as isValidTimeString,
208
+ lo as isWeakMap,
209
+ po as isWeakSet,
210
+ Eo as isWindow,
211
+ xe as kebabCase,
211
212
  r as keyboardCode,
212
- Ie as math,
213
- xe as merge,
214
- Fe as mergeProps,
215
- ce as mergeWith,
216
- we as mergedToString,
217
- M as methods,
218
- Oe as minus,
213
+ ke as math,
214
+ ce as merge,
215
+ Le as mergeProps,
216
+ ge as mergeWith,
217
+ Fe as mergedToString,
218
+ I as methods,
219
+ ve as minus,
219
220
  p as newArray,
220
- V as off,
221
- _e as omit,
222
- F as on,
223
- He as padEnd,
224
- Ue as padStart,
225
- Ge as pick,
226
- Ke as pickDataAttributes,
227
- n as pickTriggerPropsFromRest,
228
- ke as plus,
229
- lt as reactTransitionGroup,
230
- ht as removeDarkTheme,
231
- nt as responsiveArray,
232
- dt as responsiveMap,
233
- xt as responsiveObserve,
234
- ct as saveAs,
235
- gt as screenfull,
236
- Rt as scrollIntoView,
237
- zo as scrollIntoViewIfNeeded,
238
- Uo as scrollIntoViewIfNeededSmooth,
239
- Ht as searchTree,
240
- ge as set,
241
- Tt as setDarkTheme,
242
- bt as setPrimaryColor,
243
- At as setTheme,
244
- It as setTransformStyle,
245
- Re as setWith,
246
- qo as smoothScrollIntoViewIfNeeded,
247
- he as snakeCase,
248
- Ee as startCase,
249
- Eo as supportRef,
250
- X as throttle,
251
- kt as throttleByRaf,
252
- ve as times,
253
- P as timezoneToOffset,
254
- Bt as toArray,
255
- D as toLocal,
256
- I as toTimezone,
257
- Ut as tree,
258
- Ne as uniq,
259
- Me as upperFirst,
260
- Qt as uuid,
261
- Xt as uuidv4,
262
- er as validate,
263
- ar as warning
221
+ j as off,
222
+ He as omit,
223
+ L as on,
224
+ qe as padEnd,
225
+ Ge as padStart,
226
+ Je as pick,
227
+ Ye as pickDataAttributes,
228
+ d as pickTriggerPropsFromRest,
229
+ Be as plus,
230
+ dt as reactTransitionGroup,
231
+ Et as removeDarkTheme,
232
+ xt as responsiveArray,
233
+ ut as responsiveMap,
234
+ ct as responsiveObserve,
235
+ gt as saveAs,
236
+ Rt as screenfull,
237
+ ht as scrollIntoView,
238
+ Ho as scrollIntoViewIfNeeded,
239
+ qo as scrollIntoViewIfNeededSmooth,
240
+ qt as searchTree,
241
+ Re as set,
242
+ bt as setDarkTheme,
243
+ At as setPrimaryColor,
244
+ Dt as setTheme,
245
+ kt as setTransformStyle,
246
+ he as setWith,
247
+ Go as smoothScrollIntoViewIfNeeded,
248
+ Ee as snakeCase,
249
+ Ne as startCase,
250
+ bo as supportRef,
251
+ $ as throttle,
252
+ Bt as throttleByRaf,
253
+ Ve as times,
254
+ M as timezoneToOffset,
255
+ wt as toArray,
256
+ O as toLocal,
257
+ k as toTimezone,
258
+ Gt as tree,
259
+ Pe as uniq,
260
+ Ie as upperFirst,
261
+ Zt as uuid,
262
+ $t as uuidv4,
263
+ rr as validate,
264
+ ir as warning
264
265
  };