@unicom-cloud/ui 0.8.94 → 0.8.96

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 (46) hide show
  1. package/Tooltip.js +1 -1
  2. package/alert/index.js +50 -49
  3. package/badge/index.js +11 -11
  4. package/color-picker/InputHex.js +1 -1
  5. package/color-picker/InputRgb.js +1 -1
  6. package/color-picker/Palette.js +1 -1
  7. package/color-picker/Panel.js +1 -1
  8. package/color-picker/colors.js +1 -1
  9. package/color-picker/hooks/useColorPicker.js +1 -1
  10. package/color-picker/utils.js +1 -1
  11. package/components/common/empty/index.js +33 -13
  12. package/components/common/hooks/useForceUpdate.js +6 -2
  13. package/components/common/hooks/useId.js +8 -8
  14. package/components/common/space/index.js +1 -1
  15. package/components/common/utils/setPrimaryColor.js +21 -21
  16. package/components/common/utils/setTheme.js +23 -23
  17. package/details/index.js +32 -31
  18. package/dist/tinycolor/chunk/{DGZSWe7E.js → BOzCVdr0.js} +43 -43
  19. package/dist/tinycolor/customize/index.js +1 -1
  20. package/hooks/index.js +50 -52
  21. package/index.js +674 -680
  22. package/package.json +1 -1
  23. package/rate/index.js +1 -1
  24. package/slider/index.js +1 -1
  25. package/slider/util.js +1 -1
  26. package/style.css +1 -1
  27. package/table/Table.js +145 -145
  28. package/tag/index.js +24 -24
  29. package/tooltip/index.js +1 -1
  30. package/types/common/utils/math.d.ts +1 -1
  31. package/types/pc/alert/interface.d.ts +2 -2
  32. package/types/pc/badge/interface.d.ts +1 -1
  33. package/types/pc/details/interface.d.ts +2 -2
  34. package/types/pc/hooks/index.d.ts +0 -1
  35. package/types/pc/menu/context.d.ts +1 -1
  36. package/types/pc/utils/math.d.ts +1 -1
  37. package/typography/Ellipsis.js +1 -1
  38. package/utils/color.js +1 -1
  39. package/utils/index.js +174 -178
  40. package/utils/math.js +7 -11
  41. package/utils/tinycolor.js +1 -1
  42. package/version/index.js +1 -1
  43. package/components/common/hooks/useComputedState.js +0 -11
  44. package/hooks/useComputedState.js +0 -4
  45. package/types/common/hooks/useComputedState.d.ts +0 -4
  46. package/types/pc/hooks/useComputedState.d.ts +0 -1
package/utils/index.js CHANGED
@@ -2,10 +2,10 @@ import { default as a } from "@unicom-cloud/utils/case-name";
2
2
  import { default as i } from "@unicom-cloud/utils/class-name";
3
3
  import { cmykToRgb as f, convertDecimalToHex as p, convertHexToDecimal as l, hslToRgb as n, hsvToRgb as d, numberInputToObject as x, parseIntFromHex as u, rgbToCmyk as c, rgbToHex as g, rgbToHsl as y, rgbToHsv as S, rgbToRgb as R, rgbaToArgbHex as T, rgbaToHex as b } from "../dist/tinycolor/src/conversion.js";
4
4
  import { names as h } from "../dist/tinycolor/src/css-color-names.js";
5
- import { inputToRGB as N, isValidCSSUnit as A, stringInputToObject as v } from "../dist/tinycolor/src/format-input.js";
5
+ import { inputToRGB as N, isValidCSSUnit as A, stringInputToObject as M } from "../dist/tinycolor/src/format-input.js";
6
6
  import { compareColorByRange as D } from "../dist/tinycolor/customize/index.js";
7
7
  import { TinyColor as O } from "../dist/tinycolor/src/index.js";
8
- import { a as k } from "../dist/tinycolor/chunk/DGZSWe7E.js";
8
+ import { a as k } from "../dist/tinycolor/chunk/BOzCVdr0.js";
9
9
  import { compute as w, compute as V } from "../dist/compute-scroll-into-view/src/index.js";
10
10
  import { newArray as F, pickTriggerPropsFromRest as H } from "./constant.js";
11
11
  import { ContextHolderElement as W } from "./contextHolder.js";
@@ -20,7 +20,7 @@ import { getStringLength as be } from "../components/common/utils/getStringLengt
20
20
  import { include as he } from "../components/common/utils/include.js";
21
21
  import * as e from "./is.js";
22
22
  import { default as Ne } from "lodash/camelCase";
23
- import { default as ve } from "lodash/capitalize";
23
+ import { default as Me } from "lodash/capitalize";
24
24
  import { default as De } from "lodash/cloneDeep";
25
25
  import { default as Oe } from "lodash/debounce";
26
26
  import { default as ke } from "lodash/get";
@@ -35,61 +35,60 @@ import { default as Ye } from "lodash/startCase";
35
35
  import { default as Xe } from "lodash/throttle";
36
36
  import { default as $e } from "lodash/uniq";
37
37
  import { default as rr } from "lodash/upperFirst";
38
- import { add as or, div as ar, divide as sr, default as ir, minus as mr, multiply as fr, plus as pr, subtract as lr, times as nr } from "@unicom-cloud/utils/math";
39
- import { mergedToString as xr } from "../components/common/utils/mergedToString.js";
40
- import { mergeProps as cr } from "../components/common/utils/mergeProps.js";
41
- import { COMPONENT_NAMES as yr } from "./names.js";
42
- import { omit as Rr } from "../components/common/utils/omit.js";
43
- import { padEnd as br, padStart as Cr } from "../components/common/utils/pad.js";
44
- import { pick as Er, pickDataAttributes as Nr } from "../components/common/utils/pick.js";
45
- import { PqbCSSTransition as vr } from "../components/common/utils/PqbCSSTransition.js";
46
- import { callbackOriginRef as Dr, findDOMNode_ as Ir } from "../components/common/utils/reactDOM.js";
47
- import { default as Pr } from "../dist/react-transition-group/src/CSSTransition.js";
48
- import { default as Br } from "../dist/react-transition-group/src/ReplaceTransition.js";
49
- import { default as Vr } from "../dist/react-transition-group/src/SwitchTransition.js";
50
- import { T as Fr } from "../dist/react-transition-group/chunk/CPfP7aNL.js";
51
- import { default as Lr, default as Wr } from "../dist/react-transition-group/src/TransitionGroup.js";
52
- import { responsiveArray as Ur, responsiveMap as zr, responsiveObserve as qr } from "./responsiveObserve.js";
53
- import { default as Kr } from "@unicom-cloud/utils/file/saveAs";
54
- import { default as Yr } from "@unicom-cloud/utils/screenfull";
55
- import { scrollIntoView as Xr, scrollIntoView as Zr } from "../components/common/utils/scrollIntoView.js";
56
- import { removeDarkTheme as et, setDarkTheme as rt } from "./setDarkTheme.js";
57
- import { setPrimaryColor as ot } from "./setPrimaryColor.js";
58
- import { setTheme as st } from "./setTheme.js";
59
- import { fixedWidth as mt, getStyle as ft, setTransformStyle as pt } from "../components/common/utils/style.js";
60
- import { throttleByRaf as nt } from "../components/common/utils/throttleByRaf.js";
61
- import { findNodeBy as xt, getChildWithParentBy as ut, getItemBy as ct, getItemBy2 as gt, getItemBy3 as yt, getItemByID as St, getLabelFromDictionaryByValue as Rt } from "@unicom-cloud/utils/tree";
62
- import { Tween as bt } from "../dist/tween/src/tween.js";
63
- import { default as ht } from "../dist/tween/src/easing.js";
64
- import { v4 as Nt, v4 as At } from "uuid";
65
- import { Schema as Mt, default as Dt } from "../dist/validate/src/index.js";
66
- import { d as Ot } from "../dist/validate/chunk/BXTR2LmP.js";
67
- import { warning as kt } from "../components/common/utils/warning.js";
38
+ import { div as or, default as ar, minus as sr, plus as ir, times as mr } from "@unicom-cloud/utils/math";
39
+ import { mergedToString as pr } from "../components/common/utils/mergedToString.js";
40
+ import { mergeProps as nr } from "../components/common/utils/mergeProps.js";
41
+ import { COMPONENT_NAMES as xr } from "./names.js";
42
+ import { omit as cr } from "../components/common/utils/omit.js";
43
+ import { padEnd as yr, padStart as Sr } from "../components/common/utils/pad.js";
44
+ import { pick as Tr, pickDataAttributes as br } from "../components/common/utils/pick.js";
45
+ import { PqbCSSTransition as hr } from "../components/common/utils/PqbCSSTransition.js";
46
+ import { callbackOriginRef as Nr, findDOMNode_ as Ar } from "../components/common/utils/reactDOM.js";
47
+ import { default as vr } from "../dist/react-transition-group/src/CSSTransition.js";
48
+ import { default as Ir } from "../dist/react-transition-group/src/ReplaceTransition.js";
49
+ import { default as Pr } from "../dist/react-transition-group/src/SwitchTransition.js";
50
+ import { T as Br } from "../dist/react-transition-group/chunk/CPfP7aNL.js";
51
+ import { default as Vr, default as jr } from "../dist/react-transition-group/src/TransitionGroup.js";
52
+ import { responsiveArray as Hr, responsiveMap as Lr, responsiveObserve as Wr } from "./responsiveObserve.js";
53
+ import { default as Ur } from "@unicom-cloud/utils/file/saveAs";
54
+ import { default as qr } from "@unicom-cloud/utils/screenfull";
55
+ import { scrollIntoView as Kr, scrollIntoView as Jr } from "../components/common/utils/scrollIntoView.js";
56
+ import { removeDarkTheme as Qr, setDarkTheme as Xr } from "./setDarkTheme.js";
57
+ import { setPrimaryColor as $r } from "./setPrimaryColor.js";
58
+ import { setTheme as rt } from "./setTheme.js";
59
+ import { fixedWidth as ot, getStyle as at, setTransformStyle as st } from "../components/common/utils/style.js";
60
+ import { throttleByRaf as mt } from "../components/common/utils/throttleByRaf.js";
61
+ import { findNodeBy as pt, getChildWithParentBy as lt, getItemBy as nt, getItemBy2 as dt, getItemBy3 as xt, getItemByID as ut, getLabelFromDictionaryByValue as ct } from "@unicom-cloud/utils/tree";
62
+ import { Tween as yt } from "../dist/tween/src/tween.js";
63
+ import { default as Rt } from "../dist/tween/src/easing.js";
64
+ import { v4 as bt, v4 as Ct } from "uuid";
65
+ import { Schema as Et, default as Nt } from "../dist/validate/src/index.js";
66
+ import { d as Mt } from "../dist/validate/chunk/BXTR2LmP.js";
67
+ import { warning as Dt } from "../components/common/utils/warning.js";
68
68
  import * as r from "@unicom-cloud/utils/constant/keyboardCode";
69
- import { UI_PC_KEY as wt, UI_PC_THEME_DARK_CLASS_NAME as Vt } from "@unicom-cloud/utils/constant/ui";
70
- import { NOOP as Ft } from "../components/common/utils/constant.js";
71
- import { isArguments as Lt, isArray as Wt, isArrayBuffer as _t, isArrayLike as Ut, isArrayLikeObject as zt, isBlob as qt, isBoolean as Gt, isBuffer as Kt, isColor as Jt, isColor2 as Yt, isDate as Qt, isElement as Xt, isEmpty as Zt, isEmptyArray as $t, isEmptyObject as eo, isEmptyValue as ro, isEqual as to, isEqualWith as oo, isError as ao, isFile as so, isFinite as io, isFunction as mo, isInteger as fo, isJSON as po, isLength as lo, isMap as no, isMatch as xo, isMatchWith as uo, isNaN as co, isNative as go, isNil as yo, isNull as So, isNumber as Ro, isObject as To, isObjectLike as bo, isPlainObject as Co, isPromise as ho, isReadableByteStreamControllerSupported as Eo, isReadableStream as No, isReadableStreamDefaultControllerSupported as Ao, isReadableStreamSupported as vo, isReadableStreamSymbolAsyncIteratorSupported as Mo, isRegExp as Do, isSafeInteger as Io, isSet as Oo, isString as Po, isSymbol as ko, isTypedArray as Bo, isUndefined as wo, isValidColor as Vo, isWeakMap as jo, isWeakSet as Fo } from "@unicom-cloud/utils/is";
72
- import { isClassComponent as Lo, isDOMElement as Wo, isDayjs as _o, isEmptyReactNode as Uo, isExist as zo, isForwardRefReact as qo, isNullOrUndefined as Go, isReact18 as Ko, isReact19 as Jo, isReactComponent as Yo, isSupportRef as Qo, isWindow as Xo, supportRef as Zo } from "../components/common/utils/is.js";
73
- import { isAsyncMode as ea, isConcurrentMode as ra, isContextConsumer as ta, isContextProvider as oa, isElement as aa, isForwardRef as sa, isFragment as ia, isLazy as ma, isMemo as fa, isPortal as pa, isProfiler as la, isStrictMode as na, isSuspense as da, isValidElementType as xa } from "react-is";
69
+ import { UI_PC_KEY as Ot, UI_PC_THEME_DARK_CLASS_NAME as Pt } from "@unicom-cloud/utils/constant/ui";
70
+ import { NOOP as Bt } from "../components/common/utils/constant.js";
71
+ import { isArguments as Vt, isArray as jt, isArrayBuffer as Ft, isArrayLike as Ht, isArrayLikeObject as Lt, isBlob as Wt, isBoolean as _t, isBuffer as Ut, isColor as zt, isColor2 as qt, isDate as Gt, isElement as Kt, isEmpty as Jt, isEmptyArray as Yt, isEmptyObject as Qt, isEmptyValue as Xt, isEqual as Zt, isEqualWith as $t, isError as eo, isFile as ro, isFinite as to, isFunction as oo, isInteger as ao, isJSON as so, isLength as io, isMap as mo, isMatch as fo, isMatchWith as po, isNaN as lo, isNative as no, isNil as xo, isNull as uo, isNumber as co, isObject as go, isObjectLike as yo, isPlainObject as So, isPromise as Ro, isReadableByteStreamControllerSupported as To, isReadableStream as bo, isReadableStreamDefaultControllerSupported as Co, isReadableStreamSupported as ho, isReadableStreamSymbolAsyncIteratorSupported as Eo, isRegExp as No, isSafeInteger as Ao, isSet as Mo, isString as vo, isSymbol as Do, isTypedArray as Io, isUndefined as Oo, isValidColor as Po, isWeakMap as ko, isWeakSet as Bo } from "@unicom-cloud/utils/is";
72
+ import { isClassComponent as Vo, isDOMElement as jo, isDayjs as Fo, isEmptyReactNode as Ho, isExist as Lo, isForwardRefReact as Wo, isNullOrUndefined as _o, isReact18 as Uo, isReact19 as zo, isReactComponent as qo, isSupportRef as Go, isWindow as Ko, supportRef as Jo } from "../components/common/utils/is.js";
73
+ import { isAsyncMode as Qo, isConcurrentMode as Xo, isContextConsumer as Zo, isContextProvider as $o, isElement as ea, isForwardRef as ra, isFragment as ta, isLazy as oa, isMemo as aa, isPortal as sa, isProfiler as ia, isStrictMode as ma, isSuspense as fa, isValidElementType as pa } from "react-is";
74
74
  export {
75
- yr as COMPONENT_NAMES,
76
- Pr as CSSTransition,
75
+ xr as COMPONENT_NAMES,
76
+ vr as CSSTransition,
77
77
  W as ContextHolderElement,
78
- Ot as DefaultValidateMessage,
79
- Ft as NOOP,
80
- vr as PqbCSSTransition,
81
- Br as ReplaceTransition,
82
- Mt as Schema,
83
- Vr as SwitchTransition,
78
+ Mt as DefaultValidateMessage,
79
+ Bt as NOOP,
80
+ hr as PqbCSSTransition,
81
+ Ir as ReplaceTransition,
82
+ Et as Schema,
83
+ Pr as SwitchTransition,
84
84
  O as TinyColor,
85
- Fr as Transition,
86
- Lr as TransitionGroup,
87
- wt as UI_PC_KEY,
88
- Vt as UI_PC_THEME_DARK_CLASS_NAME,
89
- or as add,
90
- Dr as callbackOriginRef,
85
+ Br as Transition,
86
+ Vr as TransitionGroup,
87
+ Ot as UI_PC_KEY,
88
+ Pt as UI_PC_THEME_DARK_CLASS_NAME,
89
+ Nr as callbackOriginRef,
91
90
  Ne as camelCase,
92
- ve as capitalize,
91
+ Me as capitalize,
93
92
  a as caseName,
94
93
  i as className,
95
94
  U as clipboardCopy,
@@ -106,29 +105,28 @@ export {
106
105
  z as copy,
107
106
  G as dayjs,
108
107
  Oe as debounce,
109
- ar as div,
110
- sr as divide,
111
- ht as easing,
108
+ or as div,
109
+ Rt as easing,
112
110
  xe as fileToURL,
113
111
  ce as fillNBSP,
114
- Ir as findDOMNode_,
115
- xt as findNodeBy,
116
- mt as fixedWidth,
112
+ Ar as findDOMNode_,
113
+ pt as findNodeBy,
114
+ ot as fixedWidth,
117
115
  ke as get,
118
- ut as getChildWithParentBy,
116
+ lt as getChildWithParentBy,
119
117
  K as getDayjsValue,
120
118
  ye as getHighlightText,
121
119
  Re as getHotkeyHandler,
122
- ct as getItemBy,
123
- gt as getItemBy2,
124
- yt as getItemBy3,
125
- St as getItemByID,
126
- Rt as getLabelFromDictionaryByValue,
120
+ nt as getItemBy,
121
+ dt as getItemBy2,
122
+ xt as getItemBy3,
123
+ ut as getItemByID,
124
+ ct as getLabelFromDictionaryByValue,
127
125
  J as getNow,
128
126
  me as getScrollElements,
129
127
  Y as getSortedDayjsArray,
130
128
  be as getStringLength,
131
- ft as getStyle,
129
+ at as getStyle,
132
130
  Q as getTimeFormat,
133
131
  X as getValueWithTime,
134
132
  we as has,
@@ -137,117 +135,116 @@ export {
137
135
  he as include,
138
136
  N as inputToRGB,
139
137
  e as is,
140
- Lt as isArguments,
141
- Wt as isArray,
142
- _t as isArrayBuffer,
143
- Ut as isArrayLike,
144
- zt as isArrayLikeObject,
145
- qt as isBlob,
146
- Gt as isBoolean,
147
- Kt as isBuffer,
148
- Lo as isClassComponent,
149
- Jt as isColor,
150
- Yt as isColor2,
151
- Wo as isDOMElement,
152
- Qt as isDate,
153
- _o as isDayjs,
138
+ Vt as isArguments,
139
+ jt as isArray,
140
+ Ft as isArrayBuffer,
141
+ Ht as isArrayLike,
142
+ Lt as isArrayLikeObject,
143
+ Wt as isBlob,
144
+ _t as isBoolean,
145
+ Ut as isBuffer,
146
+ Vo as isClassComponent,
147
+ zt as isColor,
148
+ qt as isColor2,
149
+ jo as isDOMElement,
150
+ Gt as isDate,
151
+ Fo as isDayjs,
154
152
  Z as isDayjsArrayChange,
155
153
  $ as isDayjsChange,
156
- Xt as isElement,
157
- Zt as isEmpty,
158
- $t as isEmptyArray,
159
- eo as isEmptyObject,
160
- Uo as isEmptyReactNode,
161
- ro as isEmptyValue,
162
- to as isEqual,
163
- oo as isEqualWith,
164
- ao as isError,
165
- zo as isExist,
166
- so as isFile,
167
- io as isFinite,
168
- qo as isForwardRefReact,
169
- mo as isFunction,
170
- fo as isInteger,
171
- po as isJSON,
172
- lo as isLength,
173
- no as isMap,
174
- xo as isMatch,
175
- uo as isMatchWith,
176
- co as isNaN,
177
- go as isNative,
178
- yo as isNil,
179
- So as isNull,
180
- Go as isNullOrUndefined,
181
- Ro as isNumber,
182
- To as isObject,
183
- bo as isObjectLike,
184
- Co as isPlainObject,
185
- ho as isPromise,
186
- Ko as isReact18,
187
- Jo as isReact19,
188
- ea as isReactAsyncMode,
189
- Yo as isReactComponent,
190
- ra as isReactConcurrentMode,
191
- ta as isReactContextConsumer,
192
- oa as isReactContextProvider,
193
- aa as isReactElement,
194
- sa as isReactForwardRef,
195
- ia as isReactFragment,
196
- ma as isReactLazy,
197
- fa as isReactMemo,
198
- pa as isReactPortal,
199
- la as isReactProfiler,
200
- na as isReactStrictMode,
201
- da as isReactSuspense,
202
- xa as isReactValidElementType,
203
- Eo as isReadableByteStreamControllerSupported,
204
- No as isReadableStream,
205
- Ao as isReadableStreamDefaultControllerSupported,
206
- vo as isReadableStreamSupported,
207
- Mo as isReadableStreamSymbolAsyncIteratorSupported,
208
- Do as isRegExp,
209
- Io as isSafeInteger,
154
+ Kt as isElement,
155
+ Jt as isEmpty,
156
+ Yt as isEmptyArray,
157
+ Qt as isEmptyObject,
158
+ Ho as isEmptyReactNode,
159
+ Xt as isEmptyValue,
160
+ Zt as isEqual,
161
+ $t as isEqualWith,
162
+ eo as isError,
163
+ Lo as isExist,
164
+ ro as isFile,
165
+ to as isFinite,
166
+ Wo as isForwardRefReact,
167
+ oo as isFunction,
168
+ ao as isInteger,
169
+ so as isJSON,
170
+ io as isLength,
171
+ mo as isMap,
172
+ fo as isMatch,
173
+ po as isMatchWith,
174
+ lo as isNaN,
175
+ no as isNative,
176
+ xo as isNil,
177
+ uo as isNull,
178
+ _o as isNullOrUndefined,
179
+ co as isNumber,
180
+ go as isObject,
181
+ yo as isObjectLike,
182
+ So as isPlainObject,
183
+ Ro as isPromise,
184
+ Uo as isReact18,
185
+ zo as isReact19,
186
+ Qo as isReactAsyncMode,
187
+ qo as isReactComponent,
188
+ Xo as isReactConcurrentMode,
189
+ Zo as isReactContextConsumer,
190
+ $o as isReactContextProvider,
191
+ ea as isReactElement,
192
+ ra as isReactForwardRef,
193
+ ta as isReactFragment,
194
+ oa as isReactLazy,
195
+ aa as isReactMemo,
196
+ sa as isReactPortal,
197
+ ia as isReactProfiler,
198
+ ma as isReactStrictMode,
199
+ fa as isReactSuspense,
200
+ pa as isReactValidElementType,
201
+ To as isReadableByteStreamControllerSupported,
202
+ bo as isReadableStream,
203
+ Co as isReadableStreamDefaultControllerSupported,
204
+ ho as isReadableStreamSupported,
205
+ Eo as isReadableStreamSymbolAsyncIteratorSupported,
206
+ No as isRegExp,
207
+ Ao as isSafeInteger,
210
208
  fe as isScrollElement,
211
209
  pe as isServerRendering,
212
- Oo as isSet,
213
- Po as isString,
214
- Qo as isSupportRef,
215
- ko as isSymbol,
216
- Bo as isTypedArray,
217
- wo as isUndefined,
210
+ Mo as isSet,
211
+ vo as isString,
212
+ Go as isSupportRef,
213
+ Do as isSymbol,
214
+ Io as isTypedArray,
215
+ Oo as isUndefined,
218
216
  A as isValidCSSUnit,
219
- Vo as isValidColor,
217
+ Po as isValidColor,
220
218
  ee as isValidTimeString,
221
- jo as isWeakMap,
222
- Fo as isWeakSet,
223
- Xo as isWindow,
219
+ ko as isWeakMap,
220
+ Bo as isWeakSet,
221
+ Ko as isWindow,
224
222
  je as kebabCase,
225
223
  r as keyboardCode,
226
- ir as math,
224
+ ar as math,
227
225
  He as merge,
228
- cr as mergeProps,
226
+ nr as mergeProps,
229
227
  We as mergeWith,
230
- xr as mergedToString,
228
+ pr as mergedToString,
231
229
  re as methods,
232
- mr as minus,
233
- fr as multiply,
230
+ sr as minus,
234
231
  F as newArray,
235
232
  x as numberInputToObject,
236
233
  le as off,
237
- Rr as omit,
234
+ cr as omit,
238
235
  ne as on,
239
- br as padEnd,
240
- Cr as padStart,
236
+ yr as padEnd,
237
+ Sr as padStart,
241
238
  u as parseIntFromHex,
242
- Er as pick,
243
- Nr as pickDataAttributes,
239
+ Tr as pick,
240
+ br as pickDataAttributes,
244
241
  H as pickTriggerPropsFromRest,
245
- pr as plus,
246
- Wr as reactTransitionGroup,
247
- et as removeDarkTheme,
248
- Ur as responsiveArray,
249
- zr as responsiveMap,
250
- qr as responsiveObserve,
242
+ ir as plus,
243
+ jr as reactTransitionGroup,
244
+ Qr as removeDarkTheme,
245
+ Hr as responsiveArray,
246
+ Lr as responsiveMap,
247
+ Wr as responsiveObserve,
251
248
  c as rgbToCmyk,
252
249
  g as rgbToHex,
253
250
  y as rgbToHsl,
@@ -255,32 +252,31 @@ export {
255
252
  R as rgbToRgb,
256
253
  T as rgbaToArgbHex,
257
254
  b as rgbaToHex,
258
- Kr as saveAs,
259
- Yr as screenfull,
260
- Xr as scrollIntoView,
261
- Zr as scrollIntoViewIfNeeded,
255
+ Ur as saveAs,
256
+ qr as screenfull,
257
+ Kr as scrollIntoView,
258
+ Jr as scrollIntoViewIfNeeded,
262
259
  Ue as set,
263
- rt as setDarkTheme,
264
- ot as setPrimaryColor,
265
- st as setTheme,
266
- pt as setTransformStyle,
260
+ Xr as setDarkTheme,
261
+ $r as setPrimaryColor,
262
+ rt as setTheme,
263
+ st as setTransformStyle,
267
264
  qe as setWith,
268
265
  Ke as snakeCase,
269
266
  Ye as startCase,
270
- v as stringInputToObject,
271
- lr as subtract,
272
- Zo as supportRef,
267
+ M as stringInputToObject,
268
+ Jo as supportRef,
273
269
  Xe as throttle,
274
- nt as throttleByRaf,
275
- nr as times,
270
+ mt as throttleByRaf,
271
+ mr as times,
276
272
  te as timezoneToOffset,
277
273
  oe as toLocal,
278
274
  ae as toTimezone,
279
- bt as tween,
275
+ yt as tween,
280
276
  $e as uniq,
281
277
  rr as upperFirst,
282
- Nt as uuid,
283
- At as uuidv4,
284
- Dt as validate,
285
- kt as warning
278
+ bt as uuid,
279
+ Ct as uuidv4,
280
+ Nt as validate,
281
+ Dt as warning
286
282
  };
package/utils/math.js CHANGED
@@ -1,13 +1,9 @@
1
- import { add as a, default as i, div as u, divide as e, default as l, minus as m, multiply as s, plus as f, subtract as p, times as r } from "@unicom-cloud/utils/math";
1
+ import { default as e, div as m, default as s, minus as u, plus as d, times as f } from "@unicom-cloud/utils/math";
2
2
  export {
3
- a as add,
4
- i as default,
5
- u as div,
6
- e as divide,
7
- l as math,
8
- m as minus,
9
- s as multiply,
10
- f as plus,
11
- p as subtract,
12
- r as times
3
+ e as default,
4
+ m as div,
5
+ s as math,
6
+ u as minus,
7
+ d as plus,
8
+ f as times
13
9
  };
@@ -3,7 +3,7 @@ import { names as R } from "../dist/tinycolor/src/css-color-names.js";
3
3
  import { inputToRGB as y, isValidCSSUnit as C, stringInputToObject as v } from "../dist/tinycolor/src/format-input.js";
4
4
  import { compareColorByRange as d } from "../dist/tinycolor/customize/index.js";
5
5
  import { TinyColor as j, TinyColor as k } from "../dist/tinycolor/src/index.js";
6
- import "../dist/tinycolor/chunk/DGZSWe7E.js";
6
+ import "../dist/tinycolor/chunk/BOzCVdr0.js";
7
7
  export {
8
8
  j as TinyColor,
9
9
  t as cmykToRgb,
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const I = "2025-06-04 14:35:40", t = "1749018940206", E = "2.66.0";
1
+ const I = "2025-06-16 16:59:51", t = "1750064391096", E = "2.66.0";
2
2
  export {
3
3
  E as VERSION,
4
4
  I as VERSION_BUILD_DATE,
@@ -1,11 +0,0 @@
1
- import { useState as o, useEffect as u } from "react";
2
- function r(t, e) {
3
- const [s, a] = o(t());
4
- return u(() => {
5
- const n = t();
6
- a(n);
7
- }, [e]), s;
8
- }
9
- export {
10
- r as default
11
- };
@@ -1,4 +0,0 @@
1
- import { default as o } from "../components/common/hooks/useComputedState.js";
2
- export {
3
- o as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ComponentState, PropsWithoutRef } from 'react';
2
- type Dependency<T> = PropsWithoutRef<T> | ComponentState;
3
- declare function useComputedState<T>(computed: () => any, deps: Dependency<T>[]): any;
4
- export default useComputedState;
@@ -1 +0,0 @@
1
- export { default } from '../../common/hooks/useComputedState';