@ringcentral/spring-ui 1.12.0 → 1.13.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 (213) hide show
  1. package/Accordion.js +90 -34
  2. package/AccordionHeader.js +71 -21
  3. package/Alert.js +120 -28
  4. package/Animation.js +2 -46
  5. package/Announcement.js +46 -35
  6. package/Autocomplete.js +1011 -583
  7. package/Avatar.js +134 -73
  8. package/AvatarGroup.js +50 -7
  9. package/Backdrop.js +45 -7
  10. package/Badge.js +77 -15
  11. package/Block.js +34 -12
  12. package/BlockHeader.js +57 -15
  13. package/BottomNavigation.js +181 -65
  14. package/BottomNavigationItem.js +93 -30
  15. package/Button.js +160 -24
  16. package/CallButton.js +53 -31
  17. package/Checkbox.js +88 -26
  18. package/Chip.js +126 -26
  19. package/CircularProgressIndicator.js +80 -8
  20. package/ClickAwayListener.js +4 -1
  21. package/ComponentsProps.js +1 -0
  22. package/DatePicker.js +611 -192
  23. package/DateUtilsContext.js +43 -25
  24. package/Dialer.js +564 -253
  25. package/Dialog.js +99 -45
  26. package/Divider.js +43 -7
  27. package/DragHandle.js +32 -6
  28. package/Drawer.js +117 -19
  29. package/Dropdown.js +154 -77
  30. package/EmptyState.js +65 -15
  31. package/FabButton.js +51 -17
  32. package/FocusTrap.js +109 -12
  33. package/FormField.js +108 -12
  34. package/FormLabel.js +81 -7
  35. package/Icon.js +1 -8
  36. package/IconButton.js +142 -26
  37. package/IconButtonGroup.js +35 -12
  38. package/InlineEditable.js +98 -44
  39. package/LinearProgressIndicator.js +73 -24
  40. package/Link.js +40 -11
  41. package/List.js +54 -9
  42. package/ListItem.js +152 -23
  43. package/ListItemText.js +44 -17
  44. package/ListNavigation.js +272 -20
  45. package/Menu.js +139 -23
  46. package/MenuActions.js +37 -12
  47. package/MenuDivider.js +34 -8
  48. package/MenuFooter.js +36 -12
  49. package/MenuHeader.js +54 -16
  50. package/MenuItem.js +402 -35
  51. package/MenuItemText.js +51 -9
  52. package/MenuList.js +87 -36
  53. package/Modal.js +345 -16
  54. package/NestedMenuContext.js +183 -11
  55. package/Option.js +32 -36
  56. package/Overlap.js +54 -7
  57. package/PageHeader.js +62 -24
  58. package/PickerTextField.js +156 -35
  59. package/Popover.js +262 -21
  60. package/Popper.js +112 -62
  61. package/PopperPaper.js +54 -8
  62. package/Portal.js +6 -1
  63. package/Radio.js +65 -21
  64. package/RadioGroup.js +56 -17
  65. package/Rating.js +223 -87
  66. package/Select.js +387 -44
  67. package/SingleFilter.js +148 -79
  68. package/Skeleton.js +68 -17
  69. package/Slider.js +167 -69
  70. package/Snackbar.js +122 -59
  71. package/SortableList.js +32 -12
  72. package/SortableListDndContext.js +69 -22
  73. package/SortableListItem.js +92 -47
  74. package/SortableVirtualizedList.js +44 -20
  75. package/SplitButton.js +124 -89
  76. package/Squircle.js +4 -7
  77. package/StatusIndicator.js +51 -9
  78. package/Step.js +63 -38
  79. package/StepButton.js +51 -23
  80. package/StepConnector.js +48 -8
  81. package/StepContent.js +67 -24
  82. package/StepIcon.js +90 -9
  83. package/StepLabel.js +90 -14
  84. package/Stepper.js +65 -23
  85. package/SubMenu.js +203 -101
  86. package/SwipeableDrawer.js +439 -194
  87. package/Switch.js +70 -23
  88. package/Tab.js +120 -57
  89. package/TabContext.js +59 -15
  90. package/TabPanel.js +40 -13
  91. package/Table.js +60 -17
  92. package/TableBody.js +42 -12
  93. package/TableCell.js +84 -50
  94. package/TableContainer.js +32 -10
  95. package/TableFooter.js +38 -10
  96. package/TableHead.js +49 -15
  97. package/TablePagination.js +153 -79
  98. package/TableRow.js +60 -21
  99. package/Tabs.js +592 -271
  100. package/Tag.js +51 -16
  101. package/Text.js +68 -37
  102. package/TextField.js +209 -31
  103. package/Textarea.js +51 -42
  104. package/TimePicker.js +490 -232
  105. package/Tooltip.js +48 -23
  106. package/Tray.js +237 -13
  107. package/TrayMenu.js +62 -43
  108. package/VirtualizedList.js +205 -107
  109. package/VirtualizedMenu.js +359 -29
  110. package/VisuallyHidden.js +29 -6
  111. package/chunks/1250.js +98 -0
  112. package/chunks/1294.js +126 -0
  113. package/chunks/2956.js +18 -0
  114. package/chunks/4476.js +460 -0
  115. package/chunks/4491.js +10 -0
  116. package/chunks/4535.js +364 -0
  117. package/chunks/5047.js +3 -0
  118. package/chunks/6335.js +24 -0
  119. package/chunks/7279.js +10 -0
  120. package/chunks/8011.js +8 -0
  121. package/chunks/8307.js +56 -0
  122. package/chunks/8467.js +8 -0
  123. package/chunks/8809.js +8 -0
  124. package/chunks/{RadioGroup.context.js → 9551.js} +12 -6
  125. package/chunks/987.js +8 -0
  126. package/index.css +2436 -2261
  127. package/index.js +245 -195
  128. package/internal/utils/setRef.d.ts +2 -1
  129. package/package.json +4 -4
  130. package/src/Animation/hooks/useMotionSafeTransition/useMotionSafeTransition.d.ts +2 -0
  131. package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +1 -1
  132. package/src/Button/Button.classes.d.ts +1 -1
  133. package/src/ComponentsProps.d.ts +111 -110
  134. package/src/DatePicker/DatePickerDataAttributes.d.ts +11 -0
  135. package/src/DatePicker/utils/DatePickerUtils.d.ts +1 -1
  136. package/src/MenuItem/MenuItem.type.d.ts +1 -0
  137. package/src/MenuList/MenuListContext.d.ts +2 -3
  138. package/src/Modal/Modal.type.d.ts +1 -0
  139. package/src/Popover/Popover.classes.d.ts +1 -1
  140. package/src/Popover/Popover.internal.d.ts +8 -0
  141. package/src/Popover/Popover.type.d.ts +1 -0
  142. package/src/Select/Select.type.d.ts +6 -4
  143. package/src/Table/Table.type.d.ts +3 -0
  144. package/src/Table/TableContext.d.ts +3 -0
  145. package/src/Table/TableRowContext.d.ts +7 -0
  146. package/src/Table/index.d.ts +1 -0
  147. package/src/TableCell/TableCell.classes.d.ts +1 -1
  148. package/src/TableFooter/TableFooter.classes.d.ts +1 -1
  149. package/src/TableFooter/TableFooter.type.d.ts +1 -0
  150. package/src/TableHead/TableHead.classes.d.ts +1 -1
  151. package/src/TableHead/TableHead.type.d.ts +1 -0
  152. package/src/TableRow/TableRow.type.d.ts +2 -0
  153. package/chunks/AccordionContext.js +0 -6
  154. package/chunks/Alert.js +0 -48
  155. package/chunks/AvatarGroup.js +0 -22
  156. package/chunks/Backdrop.js +0 -18
  157. package/chunks/Badge.js +0 -32
  158. package/chunks/BottomNavigationItem.js +0 -36
  159. package/chunks/Button.js +0 -88
  160. package/chunks/Chip.js +0 -73
  161. package/chunks/CircularProgressIndicator.js +0 -36
  162. package/chunks/Divider.js +0 -19
  163. package/chunks/DragHandle.js +0 -11
  164. package/chunks/Drawer.js +0 -33
  165. package/chunks/ExpandCollapseCaret.js +0 -24
  166. package/chunks/FormLabel.js +0 -27
  167. package/chunks/Icon.js +0 -25
  168. package/chunks/IconButtonLabel.js +0 -68
  169. package/chunks/List.js +0 -22
  170. package/chunks/ListItem.js +0 -83
  171. package/chunks/Menu.js +0 -61
  172. package/chunks/MenuDivider.js +0 -14
  173. package/chunks/MenuItemText.js +0 -18
  174. package/chunks/MenuList.js +0 -47
  175. package/chunks/Modal.js +0 -211
  176. package/chunks/Overlap.js +0 -25
  177. package/chunks/PickerTextField.js +0 -85
  178. package/chunks/Popover.js +0 -61
  179. package/chunks/PopperPaper.js +0 -15
  180. package/chunks/Select.js +0 -225
  181. package/chunks/ShowHideEye.js +0 -56
  182. package/chunks/SlideIn.js +0 -20
  183. package/chunks/SortableArrow.js +0 -73
  184. package/chunks/Squircle.js +0 -31
  185. package/chunks/StatusIndicator.js +0 -20
  186. package/chunks/StepConnector.js +0 -21
  187. package/chunks/StepIcon.js +0 -43
  188. package/chunks/StepLabel.js +0 -29
  189. package/chunks/StepperContext.js +0 -9
  190. package/chunks/TableContext.js +0 -6
  191. package/chunks/Tablelvl2Context.js +0 -6
  192. package/chunks/TabsContext.js +0 -6
  193. package/chunks/TextField.js +0 -110
  194. package/chunks/Tooltip.js +0 -217
  195. package/chunks/VirtualizedMenu.js +0 -162
  196. package/chunks/VisuallyHidden.js +0 -12
  197. package/chunks/composeEventHandlers.js +0 -10
  198. package/chunks/getFade.js +0 -27
  199. package/chunks/getGrow.js +0 -70
  200. package/chunks/getSlideIn.js +0 -30
  201. package/chunks/hasContent.js +0 -3
  202. package/chunks/useAnimationFrame.js +0 -15
  203. package/chunks/useFocusTrapStack.js +0 -38
  204. package/chunks/useHelperTextId.js +0 -24
  205. package/chunks/useListNavigation.js +0 -199
  206. package/chunks/useMenuItemSelect.js +0 -282
  207. package/chunks/useMotionSafeTransition.js +0 -9
  208. package/chunks/useNestedMenuItem.js +0 -27
  209. package/chunks/useNestedParentMenu.js +0 -113
  210. package/chunks/usePrefersReducedMotion.js +0 -36
  211. package/chunks/useTooltipForceHide.js +0 -27
  212. package/chunks/useTrayNavigate.js +0 -150
  213. package/chunks/withTooltip.js +0 -15
package/chunks/4476.js ADDED
@@ -0,0 +1,460 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { motion } from "framer-motion";
3
+ import { motionTransition } from "@ringcentral/spring-theme";
4
+ import { useClasses } from "@ringcentral/spring-base";
5
+ import { useMotionSafeTransition, usePrefersReducedMotion } from "./1294.js";
6
+ import { Icon as Icon_Icon } from "./8307.js";
7
+
8
+
9
+
10
+
11
+
12
+ const getFade = ({ toggle = true, prefersReducedMotion = false, toggleOnTransition, toggleOffTransition } = {})=>({
13
+ initial: 'hidden',
14
+ animate: toggle ? 'show' : 'hidden',
15
+ exit: 'hidden',
16
+ variants: {
17
+ show: {
18
+ opacity: 1,
19
+ transition: prefersReducedMotion ? motionTransition.instant : toggleOnTransition || motionTransition["haste-01-fast"]
20
+ },
21
+ hidden: {
22
+ opacity: 0,
23
+ transition: prefersReducedMotion ? motionTransition.instant : toggleOffTransition || motionTransition["haste-01-slow"],
24
+ pointerEvents: 'none',
25
+ // Use transitionEnd to remove inline style, allowing CSS classes to control pointer-events
26
+ transitionEnd: {
27
+ pointerEvents: undefined
28
+ }
29
+ }
30
+ }
31
+ });
32
+
33
+
34
+
35
+
36
+
37
+ const Fade = (props)=>{
38
+ const { toggle, toggleOffTransition, toggleOnTransition, children, ...rest } = props;
39
+ const prefersReducedMotion = usePrefersReducedMotion();
40
+ return /*#__PURE__*/ jsx(motion.div, {
41
+ ...getFade({
42
+ toggle,
43
+ toggleOffTransition,
44
+ toggleOnTransition,
45
+ prefersReducedMotion
46
+ }),
47
+ ...rest,
48
+ children: children
49
+ });
50
+ };
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+ const getGrow = ({ toggle = true, direction = 'both', prefersReducedMotion = false, toggleOffTransition, toggleOnTransition, transformOrigin } = {})=>{
60
+ const directionStr = direction === 'both' ? '' : direction.toUpperCase();
61
+ return {
62
+ style: {
63
+ transformOrigin: transformOriginToString(transformOrigin)
64
+ },
65
+ initial: 'invisible',
66
+ animate: toggle ? 'visible' : 'invisible',
67
+ exit: 'invisible',
68
+ variants: {
69
+ invisible: {
70
+ transform: `scale${directionStr}(0.618)`,
71
+ opacity: 0,
72
+ ...!prefersReducedMotion && toggleOffTransition && {
73
+ transition: toggleOffTransition
74
+ }
75
+ },
76
+ visible: {
77
+ transform: `scale${directionStr}(1)`,
78
+ opacity: 1,
79
+ ...!prefersReducedMotion && toggleOnTransition && {
80
+ transition: toggleOnTransition
81
+ }
82
+ }
83
+ },
84
+ transition: prefersReducedMotion ? motionTransition.instant : motionTransition["spring-01-fast"]
85
+ };
86
+ };
87
+ const transformOriginToString = (transformOrigin)=>{
88
+ if (!transformOrigin) return undefined;
89
+ return `${typeof transformOrigin.vertical === 'number' ? transformOrigin.vertical + 'px' : transformOrigin.vertical} ${typeof transformOrigin.horizontal === 'number' ? transformOrigin.horizontal + 'px' : transformOrigin.horizontal}`;
90
+ };
91
+ const alignmentToHorizontalTransformOrigin = {
92
+ start: 'left',
93
+ end: 'right'
94
+ };
95
+ const alignmentToVerticalTransformOrigin = {
96
+ start: 'top',
97
+ end: 'bottom'
98
+ };
99
+ const getTransformOriginStringForPlacement = (params)=>{
100
+ const { placement } = params;
101
+ const [base, alignment] = placement.split('-');
102
+ if (base === 'top' || base === 'bottom') {
103
+ return transformOriginToString({
104
+ vertical: base === 'top' ? 'bottom' : 'top',
105
+ horizontal: !alignment ? 'center' : alignmentToHorizontalTransformOrigin[alignment]
106
+ });
107
+ } else if (base === 'left' || base === 'right') {
108
+ return transformOriginToString({
109
+ vertical: !alignment ? 'center' : alignmentToVerticalTransformOrigin[alignment],
110
+ horizontal: base === 'left' ? 'right' : 'left'
111
+ });
112
+ }
113
+ return undefined;
114
+ };
115
+
116
+
117
+
118
+
119
+
120
+ const Grow = (props)=>{
121
+ const { toggle, toggleOffTransition, toggleOnTransition, children, transformOrigin, direction = 'both', style, ...rest } = props;
122
+ const prefersReducedMotion = usePrefersReducedMotion();
123
+ const growProps = getGrow({
124
+ toggle,
125
+ direction,
126
+ prefersReducedMotion,
127
+ toggleOffTransition,
128
+ toggleOnTransition,
129
+ transformOrigin
130
+ });
131
+ return /*#__PURE__*/ jsx(motion.div, {
132
+ ...growProps,
133
+ ...rest,
134
+ style: {
135
+ ...growProps.style,
136
+ ...style
137
+ },
138
+ children: children
139
+ });
140
+ };
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ // extracted by css-extract-rspack-plugin
150
+ /* export default */ var ShowHideEye = ({"sui-show-hide-eye-root":"sui-show-hide-eye-root"});
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ const topEyelidVariants = {
159
+ show: {
160
+ d: 'M 17.5 12.25 C 16.75 10.25 13.8 7 10 7 C 6.2 7 3.25 10.25 2.5 12.25'
161
+ },
162
+ hide: {
163
+ d: 'M 17.5 6.75 C 16.75 8.75 14 12.2 10 12.2 C 6 12.2 3.25 8.75 2.5 6.75'
164
+ }
165
+ };
166
+ const bottomEyelidVariants = {
167
+ show: {
168
+ d: 'M 17.5 11.75 C 16.75 13.75 13.8 17 10 17 C 6.2 17 3.25 13.75 2.5 11.75'
169
+ },
170
+ hide: {
171
+ d: 'M 17.5 6.75 C 16.75 8.75 14 12.2 10 12.2 C 6 12.2 3.25 8.75 2.5 6.75'
172
+ }
173
+ };
174
+ const eyelashVariants = {
175
+ show: {
176
+ d: 'M 10 4.5 L 10 1.5 M 4 6.35 L 2.5 3.7 M 16 6.35 L 17.5 3.7'
177
+ },
178
+ hide: {
179
+ d: 'M 10 15.5 L 10 18.5 M 16 13.75 L 17.5 16.4 M 4 13.75 L 2.5 16.4'
180
+ }
181
+ };
182
+ const ShowHideEye_ShowHideEye = (props)=>{
183
+ const { classes, size = 'medium', hide = false, className, ...rest } = props;
184
+ const cls = useClasses('show-hide-eye', classes, className);
185
+ const transition = useMotionSafeTransition(motionTransition["spring-01-fast"]);
186
+ const pupilShowTransition = useMotionSafeTransition({
187
+ delay: 0.05
188
+ });
189
+ const pupilHideTransition = useMotionSafeTransition({
190
+ duration: 0.1
191
+ });
192
+ const pupilVariants = {
193
+ show: {
194
+ ry: 3.75,
195
+ transition: pupilShowTransition
196
+ },
197
+ hide: {
198
+ ry: 0,
199
+ transition: pupilHideTransition
200
+ }
201
+ };
202
+ return /*#__PURE__*/ jsx(Icon_Icon, {
203
+ ...rest,
204
+ size: size,
205
+ className: cls('root'),
206
+ children: /*#__PURE__*/ jsxs(motion.svg, {
207
+ xmlns: "http://www.w3.org/2000/svg",
208
+ viewBox: '0 0 20 20',
209
+ animate: hide ? 'hide' : 'show',
210
+ transition: transition,
211
+ children: [
212
+ /*#__PURE__*/ jsx(motion.path, {
213
+ initial: false,
214
+ stroke: "currentColor",
215
+ strokeWidth: 1.5,
216
+ strokeMiterlimit: 1.5,
217
+ strokeLinejoin: 'miter',
218
+ strokeLinecap: 'butt',
219
+ variants: topEyelidVariants,
220
+ transition: transition,
221
+ fill: "transparent"
222
+ }),
223
+ /*#__PURE__*/ jsx(motion.path, {
224
+ initial: false,
225
+ stroke: "currentColor",
226
+ strokeWidth: 1.5,
227
+ strokeMiterlimit: 1.5,
228
+ strokeLinejoin: 'miter',
229
+ strokeLinecap: 'butt',
230
+ variants: bottomEyelidVariants,
231
+ transition: transition,
232
+ fill: "transparent"
233
+ }),
234
+ /*#__PURE__*/ jsx(motion.ellipse, {
235
+ initial: false,
236
+ cx: 10,
237
+ cy: 10.5,
238
+ rx: 3.75,
239
+ fill: "currentColor",
240
+ variants: pupilVariants
241
+ }),
242
+ /*#__PURE__*/ jsx(motion.path, {
243
+ initial: false,
244
+ stroke: "currentColor",
245
+ strokeWidth: 1.5,
246
+ strokeMiterlimit: 1.5,
247
+ strokeLinejoin: 'miter',
248
+ strokeLinecap: 'butt',
249
+ variants: eyelashVariants,
250
+ transition: transition,
251
+ fill: "transparent"
252
+ })
253
+ ]
254
+ })
255
+ });
256
+ };
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+ const horizontal = [
267
+ 'right',
268
+ 'left'
269
+ ];
270
+ const plus = [
271
+ 'right',
272
+ 'bottom'
273
+ ];
274
+ const getSlideIn = ({ toggle = true, from = 'right', prefersReducedMotion = false, toggleOnTransition, toggleOffTransition, transition } = {})=>{
275
+ const axis = horizontal.includes(from) ? 'x' : 'y';
276
+ const invisibleValue = plus.includes(from) ? '100%' : '-100%';
277
+ return {
278
+ initial: 'invisible',
279
+ animate: toggle ? 'visible' : 'invisible',
280
+ exit: 'invisible',
281
+ variants: {
282
+ visible: {
283
+ [axis]: 0,
284
+ ...!prefersReducedMotion && toggleOnTransition && {
285
+ transition: toggleOnTransition
286
+ }
287
+ },
288
+ invisible: {
289
+ [axis]: invisibleValue,
290
+ ...!prefersReducedMotion && toggleOffTransition && {
291
+ transition: toggleOffTransition
292
+ }
293
+ }
294
+ },
295
+ transition: prefersReducedMotion ? motionTransition.instant : transition ?? motionTransition["spring-01-fast"]
296
+ };
297
+ };
298
+
299
+
300
+
301
+
302
+
303
+ const SlideIn = (props)=>{
304
+ const { toggle, toggleOnTransition, toggleOffTransition, transition, children, from = 'right', ...rest } = props;
305
+ const prefersReducedMotion = usePrefersReducedMotion();
306
+ return /*#__PURE__*/ jsx(motion.div, {
307
+ ...getSlideIn({
308
+ toggle,
309
+ from,
310
+ prefersReducedMotion,
311
+ toggleOnTransition,
312
+ toggleOffTransition,
313
+ transition
314
+ }),
315
+ ...rest,
316
+ children: children
317
+ });
318
+ };
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+ const topCaretVariants = {
334
+ initial: {
335
+ d: 'M 5 7.5 L 10 2.5 L 15 7.5',
336
+ opacity: 1
337
+ },
338
+ asc: {
339
+ d: 'M 4.75 9.5 L 10 4 L 15.25 9.5',
340
+ opacity: 1
341
+ },
342
+ desc: {
343
+ d: 'M 10 9.5 L 10 4.5 L 10 9.5',
344
+ opacity: 0,
345
+ transition: {
346
+ ease: 'easeOut',
347
+ duration: 0.15
348
+ }
349
+ }
350
+ };
351
+ const topLineVariants = {
352
+ initial: {
353
+ d: 'M 10 2.5 L 10 2.5',
354
+ opacity: 0
355
+ },
356
+ asc: {
357
+ d: 'M 10 4.5 L 10 15.5',
358
+ opacity: 1
359
+ }
360
+ };
361
+ const bottomLineVariants = {
362
+ initial: {
363
+ d: 'M 10 17.5 L 10 17.5',
364
+ opacity: 0
365
+ },
366
+ desc: {
367
+ d: 'M 10 15.5 L 10 4.5',
368
+ opacity: 1
369
+ }
370
+ };
371
+ const bottomCaretVariants = {
372
+ initial: {
373
+ d: 'M 5 12.5 L 10 17.5 L 15 12.5',
374
+ opacity: 1
375
+ },
376
+ asc: {
377
+ d: 'M 10 10.5 L 10 15.5 L 10 10.5',
378
+ opacity: 0,
379
+ transition: {
380
+ ease: 'easeOut',
381
+ duration: 0.15
382
+ }
383
+ },
384
+ desc: {
385
+ d: 'M 4.75 10.5 L 10 16 L 15.25 10.5',
386
+ opacity: 1
387
+ }
388
+ };
389
+ const SortableArrow = (props)=>{
390
+ const { classes, size = 'medium', direction = false, className, ...rest } = props;
391
+ const cls = useClasses('sortable-arrow', classes, className);
392
+ const caretTransition = useMotionSafeTransition(motionTransition["spring-01-fast"]);
393
+ const lineTransition = useMotionSafeTransition(motionTransition["neutral-01-fast"]);
394
+ return /*#__PURE__*/ jsx(Icon_Icon, {
395
+ ...rest,
396
+ size: size,
397
+ className: cls('root'),
398
+ children: /*#__PURE__*/ jsxs(motion.svg, {
399
+ xmlns: "http://www.w3.org/2000/svg",
400
+ viewBox: '0 0 20 20',
401
+ animate: direction || 'initial',
402
+ children: [
403
+ /*#__PURE__*/ jsx(motion.path, {
404
+ initial: false,
405
+ stroke: "currentColor",
406
+ strokeWidth: 1.5,
407
+ strokeMiterlimit: 1.5,
408
+ strokeLinejoin: 'miter',
409
+ variants: topCaretVariants,
410
+ transition: caretTransition,
411
+ fill: "transparent"
412
+ }),
413
+ direction !== 'desc' && /*#__PURE__*/ jsx(motion.path, {
414
+ initial: false,
415
+ stroke: "currentColor",
416
+ strokeWidth: 1.5,
417
+ strokeLinecap: 'square',
418
+ variants: topLineVariants,
419
+ transition: lineTransition,
420
+ fill: "transparent"
421
+ }),
422
+ direction !== 'asc' && /*#__PURE__*/ jsx(motion.path, {
423
+ initial: false,
424
+ stroke: "currentColor",
425
+ strokeWidth: 1.5,
426
+ strokeLinecap: 'square',
427
+ variants: bottomLineVariants,
428
+ transition: lineTransition,
429
+ fill: "transparent"
430
+ }),
431
+ /*#__PURE__*/ jsx(motion.path, {
432
+ initial: false,
433
+ stroke: "currentColor",
434
+ strokeWidth: 1.5,
435
+ strokeMiterlimit: 1.5,
436
+ strokeLinejoin: 'miter',
437
+ variants: bottomCaretVariants,
438
+ transition: caretTransition,
439
+ fill: "transparent"
440
+ })
441
+ ]
442
+ })
443
+ });
444
+ };
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+ export { Fade, Grow, ShowHideEye as showHideEyeStyles, ShowHideEye_ShowHideEye as ShowHideEye, SlideIn, SortableArrow, getFade, getGrow, getSlideIn, getTransformOriginStringForPlacement };
package/chunks/4491.js ADDED
@@ -0,0 +1,10 @@
1
+ const composeEventHandlers = (externalEventHandler, internalEventHandler, options = {})=>(event, ...args)=>{
2
+ const { checkForDefaultPrevented = true } = options;
3
+ externalEventHandler?.(event, ...args);
4
+ if (checkForDefaultPrevented && event.defaultPrevented) {
5
+ return;
6
+ }
7
+ internalEventHandler?.(event, ...args);
8
+ };
9
+
10
+ export { composeEventHandlers };