musae 0.2.6 → 0.2.7

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 (127) hide show
  1. package/dist/components/avatar/avatar.js +1 -1
  2. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  3. package/dist/components/breadcrumb/item.js +1 -1
  4. package/dist/components/button/button.js +13 -16
  5. package/dist/components/calendar/calendar.js +1 -1
  6. package/dist/components/calendar/hooks.js +1 -1
  7. package/dist/components/checkbox/checkbox.d.ts +1 -1
  8. package/dist/components/checkbox/checkbox.js +203 -143
  9. package/dist/components/checkbox/group.d.ts +1 -1
  10. package/dist/components/checkbox/group.js +20 -19
  11. package/dist/components/checkbox/index.d.ts +2 -2
  12. package/dist/components/checkbox/types.d.ts +22 -1
  13. package/dist/components/clock/column.js +1 -1
  14. package/dist/components/collapse/collapse.js +1 -1
  15. package/dist/components/collapse/item.js +14 -8
  16. package/dist/components/date-picker/date-picker.js +1 -1
  17. package/dist/components/dialog/dialog.js +1 -1
  18. package/dist/components/dialog/popup.js +2 -2
  19. package/dist/components/divider/divider.js +1 -1
  20. package/dist/components/drawer/drawer.js +1 -1
  21. package/dist/components/drawer/popup.js +2 -2
  22. package/dist/components/empty/empty.js +1 -1
  23. package/dist/components/floating-action-button/floatable.d.ts +4 -0
  24. package/dist/components/floating-action-button/floatable.js +83 -0
  25. package/dist/components/floating-action-button/floating-action-button.d.ts +4 -0
  26. package/dist/components/floating-action-button/floating-action-button.js +26 -0
  27. package/dist/components/floating-action-button/index.d.ts +2 -0
  28. package/dist/components/floating-action-button/types.d.ts +44 -0
  29. package/dist/components/form/field/error.d.ts +2 -2
  30. package/dist/components/form/field/error.js +36 -22
  31. package/dist/components/form/field/field.js +6 -21
  32. package/dist/components/form/field/layout.js +1 -1
  33. package/dist/components/grid/col.js +1 -1
  34. package/dist/components/grid/row.js +1 -1
  35. package/dist/components/icon/icon.d.ts +1 -1
  36. package/dist/components/icon/icon.js +5 -3
  37. package/dist/components/icon/types.d.ts +6 -1
  38. package/dist/components/image/preview/operations.js +2 -2
  39. package/dist/components/image/preview/preview.js +1 -1
  40. package/dist/components/input/input.d.ts +6 -6
  41. package/dist/components/input/input.js +9 -15
  42. package/dist/components/layout/header.js +1 -1
  43. package/dist/components/layout/layout.js +1 -1
  44. package/dist/components/loading/loading.js +1 -1
  45. package/dist/components/menu/group.js +14 -8
  46. package/dist/components/menu/hooks.js +1 -1
  47. package/dist/components/menu/item.js +1 -1
  48. package/dist/components/notification/holder.js +2 -3
  49. package/dist/components/notification/notification.js +1 -1
  50. package/dist/components/otp-input/otp-input.js +1 -1
  51. package/dist/components/pagination/hooks.d.ts +4 -2
  52. package/dist/components/pagination/hooks.js +9 -4
  53. package/dist/components/pagination/item.js +6 -8
  54. package/dist/components/pagination/pagination.d.ts +1 -1
  55. package/dist/components/pagination/pagination.js +37 -9
  56. package/dist/components/pagination/types.d.ts +6 -0
  57. package/dist/components/picker/picker.js +2 -2
  58. package/dist/components/popover/popover.js +1 -1
  59. package/dist/components/popper/dropdown.js +1 -1
  60. package/dist/components/popper/popper.js +1 -1
  61. package/dist/components/portal/portal.js +6 -2
  62. package/dist/components/portal/types.d.ts +6 -0
  63. package/dist/components/progress/circular.js +1 -1
  64. package/dist/components/progress/linear.js +1 -1
  65. package/dist/components/radio/radio.js +1 -1
  66. package/dist/components/rate/rate.js +1 -1
  67. package/dist/components/rate/star.js +1 -1
  68. package/dist/components/ripple/ripple.js +1 -1
  69. package/dist/components/select/hooks.d.ts +1 -1
  70. package/dist/components/select/select.d.ts +1 -1
  71. package/dist/components/select/select.js +5 -5
  72. package/dist/components/select/selector.d.ts +3 -6
  73. package/dist/components/select/selector.js +16 -10
  74. package/dist/components/select/types.d.ts +3 -1
  75. package/dist/components/space/space.js +1 -1
  76. package/dist/components/steps/item.d.ts +1 -1
  77. package/dist/components/steps/item.js +46 -31
  78. package/dist/components/steps/steps.d.ts +1 -1
  79. package/dist/components/steps/steps.js +6 -4
  80. package/dist/components/steps/types.d.ts +15 -0
  81. package/dist/components/switch/switch.js +1 -1
  82. package/dist/components/table/body.js +1 -1
  83. package/dist/components/table/header/cell.js +1 -1
  84. package/dist/components/table/header/header.js +1 -1
  85. package/dist/components/tabs/hooks.js +5 -5
  86. package/dist/components/tabs/navigation.js +1 -1
  87. package/dist/components/tabs/panels.js +1 -1
  88. package/dist/components/tag/tag.js +1 -1
  89. package/dist/components/theme/tokens.stylex.d.ts +1 -0
  90. package/dist/components/time-picker/panel.js +1 -1
  91. package/dist/components/time-picker/time-picker.js +1 -1
  92. package/dist/components/timeline/item.js +30 -14
  93. package/dist/components/timeline/timeline.d.ts +1 -1
  94. package/dist/components/timeline/timeline.js +5 -3
  95. package/dist/components/timeline/types.d.ts +10 -0
  96. package/dist/components/tour/tour.js +3 -2
  97. package/dist/components/transfer/context.d.ts +6 -0
  98. package/dist/components/transfer/context.js +11 -0
  99. package/dist/components/transfer/hooks.d.ts +19 -0
  100. package/dist/components/transfer/hooks.js +49 -0
  101. package/dist/components/transfer/index.d.ts +2 -0
  102. package/dist/components/transfer/item.d.ts +4 -0
  103. package/dist/components/transfer/item.js +25 -0
  104. package/dist/components/transfer/list.d.ts +4 -0
  105. package/dist/components/transfer/list.js +122 -0
  106. package/dist/components/transfer/transfer.d.ts +4 -0
  107. package/dist/components/transfer/transfer.js +82 -0
  108. package/dist/components/transfer/types.d.ts +83 -0
  109. package/dist/components/tree/list.js +14 -7
  110. package/dist/components/tree/node.js +1 -1
  111. package/dist/components/waterfall/sequential.js +1 -1
  112. package/dist/components/waterfall/waterfall.js +1 -1
  113. package/dist/hooks/use-class-names.d.ts +17 -1
  114. package/dist/hooks/use-container.d.ts +11 -0
  115. package/dist/hooks/use-container.js +23 -0
  116. package/dist/hooks/use-expandable.d.ts +11 -0
  117. package/dist/hooks/use-expandable.js +37 -0
  118. package/dist/index.d.ts +2 -0
  119. package/dist/index.js +2 -0
  120. package/dist/stylex.css +20 -15
  121. package/dist/utils/class-name.d.ts +59 -10
  122. package/dist/utils/class-name.js +40 -6
  123. package/package.json +13 -5
  124. package/dist/hooks/use-expand-effect.d.ts +0 -12
  125. package/dist/hooks/use-expand-effect.js +0 -34
  126. /package/dist/node_modules/.pnpm/{@aiszlab_relax@1.2.56_react-dom@18.3.1_react@18.3.1 → @aiszlab_relax@1.2.59_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/@aiszlab/relax/dist/dom/contains.js +0 -0
  127. /package/dist/node_modules/.pnpm/{@stylexjs_stylex@0.7.4 → @stylexjs_stylex@0.7.5}/node_modules/@stylexjs/stylex/lib/es/stylex.js +0 -0
package/dist/stylex.css CHANGED
@@ -1,7 +1,7 @@
1
1
  :root{--musae-1aj7t22:0px;--musae-1ax7z96:1px;--musae-jdzqnm:2px;--musae-1hydgie:4px;--musae-fwu7zn:8px;--musae-1l9c3uf:16px;--musae-cx2xv5:20px;--musae-rlgvtq:24px;--musae-1qsoxbc:28px;--musae-16n5srz:32px;--musae-wll1cf:36px;--musae-cftog7:40px;--musae-laggmb:48px;--musae-xrqq76:64px;--musae-1spnrok:96px;--musae-11uhodo:120px;--musae-2h23ia:190px;--musae-1rrllem:calc(Infinity * 1px);--musae-1qj6wod:100%;--musae-70uu0v:50%;--musae-1yg5bqe:auto;}
2
2
  :root{--musae-1hpqja9:0.08;--musae-1my6c2f:0.12;--musae-a796q7:0.16;--musae-abm5yj:0.38;}
3
3
  :root{--musae-1odcd6w:0px;--musae-bbiwro:0.1px;--musae-1x9q6du:0.15px;--musae-1fsxyg9:0.25px;--musae-2s74kj:0.4px;--musae-1ry795:0.5px;}
4
- :root{--musae-1vh8wei:1;--musae-11upij1:50;--musae-oqacdq:60;--musae-9gpkaf:1080;--musae-80rspi:1080;--musae-ah5ngi:1080;--musae-ymrixl:1080;--musae-1tyqau6:1090;--musae-7fr0d6:1200;--musae-dlxqgz:9999;}
4
+ :root{--musae-1vh8wei:1;--musae-11upij1:50;--musae-oqacdq:60;--musae-if0yew:990;--musae-9gpkaf:1080;--musae-80rspi:1080;--musae-ah5ngi:1080;--musae-ymrixl:1080;--musae-1tyqau6:1090;--musae-7fr0d6:1200;--musae-dlxqgz:9999;}
5
5
  :root{--musae-1wblvyz:0px;--musae-dojqt2:1px;--musae-1h5s2h0:2px;--musae-qk2ac7:4px;--musae-h30iw9:6px;--musae-vk5id6:8px;--musae-1ncxh3n:12px;--musae-oohzsl:16px;--musae-1tzp6vk:24px;--musae-15cw4i4:32px;--musae-1n7xs5j:48px;--musae-68a8pz:auto;}
6
6
  :root{--musae-gmufu8:none;--musae-15zostt:0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);--musae-1trg6py:0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);--musae-4poz8g:0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);--musae-1vq77kn:0px 2px 3px 0px rgba(0, 0, 0, 0.30), 0px 6px 10px 4px rgba(0, 0, 0, 0.15);--musae-1yt3x0a:0px 4px 4px 0px rgba(0, 0, 0, 0.30), 0px 8px 12px 6px rgba(0, 0, 0, 0.15);}
7
7
  @keyframes musae-r5zuwi-B{from{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-110;}12%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-110;}20%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-115;}40%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-195;}48%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-220;}62%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-220;}70%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-225;}90%{stroke-dasharray:20 200;stroke-width:30px;stroke-dashoffset:-305;}98%{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-330;}to{stroke-dasharray:0 220;stroke-width:20px;stroke-dashoffset:-330;}}
@@ -20,19 +20,15 @@
20
20
  .musae-nyuz70:not(#\#){grid-area:title}
21
21
  .musae-1t1eshv:not(#\#){grid:'leading description closer'}
22
22
  .musae-1js343y:not(#\#){grid:'leading title closer' 'leading description description'}
23
- .musae-1l2suiq:not(#\#){grid:'leading title' '. description'}
24
23
  .musae-10a8y8t:not(#\#){inset:0}
25
24
  .musae-1ug7cio:not(#\#){margin:var(--musae-15cw4i4)}
26
25
  .musae-ieb5ut:not(#\#){margin:var(--musae-1wblvyz)}
27
26
  .musae-1eddoca:not(#\#){margin:var(--musae-68a8pz)}
28
- .musae-1f5cgw:not(#\#){padding:var(--musae-1ncxh3n) var(--musae-15cw4i4)}
29
27
  .musae-4cezjj:not(#\#){padding:var(--musae-1ncxh3n)}
30
28
  .musae-vtf0vn:not(#\#){padding:var(--musae-1tzp6vk)}
31
- .musae-aubp7:not(#\#){padding:var(--musae-1wblvyz) var(--musae-h30iw9)}
32
29
  .musae-1jb30j6:not(#\#){padding:var(--musae-1wblvyz)}
33
30
  .musae-12ldsqu:not(#\#){padding:var(--musae-oohzsl)}
34
31
  .musae-8kignx:not(#\#){padding:var(--musae-qk2ac7)}
35
- .musae-wygk8u:not(#\#){padding:var(--musae-vk5id6) var(--musae-1tzp6vk)}
36
32
  .musae-1eubc7e:hover:not(#\#){border:var(--1n3s2ii,revert)}
37
33
  .musae-9r1u3d:not(#\#):not(#\#){border-color:transparent}
38
34
  .musae-eqt46j:not(#\#):not(#\#){border-color:var(--borderColor,revert)}
@@ -50,6 +46,7 @@
50
46
  .musae-1i8jmgv:not(#\#):not(#\#){border-width:var(--musae-1ax7z96)}
51
47
  .musae-zkb1zs:not(#\#):not(#\#){border-width:var(--musae-jdzqnm)}
52
48
  .musae-98rzlu:not(#\#):not(#\#){flex:1}
49
+ .musae-1isitws:not(#\#):not(#\#){flex:auto}
53
50
  .musae-ik99ff:not(#\#):not(#\#){gap:var(--musae-1ncxh3n)}
54
51
  .musae-oprw5n:not(#\#):not(#\#){gap:var(--musae-h30iw9)}
55
52
  .musae-1vkuzbb:not(#\#):not(#\#){gap:var(--musae-oohzsl)}
@@ -59,6 +56,7 @@
59
56
  .musae-196jfb2:not(#\#):not(#\#){grid-template-areas:'description leading'}
60
57
  .musae-1y7mvjm:not(#\#):not(#\#){grid-template-areas:'label leading description'}
61
58
  .musae-znaemz:not(#\#):not(#\#){grid-template-areas:'leading description'}
59
+ .musae-1tdxyq7:not(#\#):not(#\#){grid-template-areas:'leading title' '. description'}
62
60
  .musae-17y0mx6:not(#\#):not(#\#){inset-inline:0}
63
61
  .musae-e8uvvx:not(#\#):not(#\#){list-style:none}
64
62
  .musae-nweklb:not(#\#):not(#\#){margin-block:var(--musae-15cw4i4)}
@@ -71,6 +69,7 @@
71
69
  .musae-b3r6kr:not(#\#):not(#\#){overflow:hidden}
72
70
  .musae-avjae4:not(#\#):not(#\#){padding-block:var(--musae-1ncxh3n)}
73
71
  .musae-1c9czsq:not(#\#):not(#\#){padding-block:var(--musae-1tzp6vk)}
72
+ .musae-hwhe2e:not(#\#):not(#\#){padding-block:var(--musae-1wblvyz)}
74
73
  .musae-lfpk0v:not(#\#):not(#\#){padding-block:var(--musae-h30iw9)}
75
74
  .musae-mpfj0d:not(#\#):not(#\#){padding-block:var(--musae-oohzsl)}
76
75
  .musae-ovjknk:not(#\#):not(#\#){padding-block:var(--musae-qk2ac7)}
@@ -83,7 +82,6 @@
83
82
  .musae-381k9q:not(#\#):not(#\#){padding-inline:var(--musae-qk2ac7)}
84
83
  .musae-iujutg:not(#\#):not(#\#){padding-inline:var(--musae-vk5id6)}
85
84
  .musae-1ng1d19:not(#\#):not(#\#){transition:all .2s}
86
- .musae-nz68lp:not(#\#):not(#\#){transition:box-shadow .2s}
87
85
  .musae-1trvaba:not(#\#):not(#\#){transition:transform .2s}
88
86
  .musae-1yssd5k:not(#\#):not(#\#){transition:transform .3s}
89
87
  .musae-8gbvx8:not(#\#):not(#\#):not(#\#){align-content:flex-start}
@@ -106,9 +104,6 @@
106
104
  .musae-jbqb8w:not(#\#):not(#\#):not(#\#){background-color:transparent}
107
105
  .musae-q1mx2j:not(#\#):not(#\#):not(#\#){background-color:var(--backgroundColor,revert)}
108
106
  .musae-8hsaj5:not(#\#):not(#\#):not(#\#){background-color:var(--bcbnzo,revert)}
109
- .musae-is9nib:not(#\#):not(#\#):not(#\#){border-top-color:var(--borderTopColor,revert)}
110
- .musae-13fuv20:not(#\#):not(#\#):not(#\#){border-top-style:solid}
111
- .musae-1yeim8r:not(#\#):not(#\#):not(#\#){border-top-width:var(--musae-1ax7z96)}
112
107
  .musae-igitpm:not(#\#):not(#\#):not(#\#){box-shadow:var(--boxShadow,revert)}
113
108
  .musae-jdr3co:not(#\#):not(#\#):not(#\#){box-shadow:var(--musae-15zostt)}
114
109
  .musae-ezd0au:not(#\#):not(#\#):not(#\#){box-shadow:var(--musae-1trg6py)}
@@ -224,6 +219,8 @@
224
219
  .musae-2b8uid:not(#\#):not(#\#):not(#\#){text-align:center}
225
220
  html:not([dir='rtl']) .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:left}
226
221
  html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
222
+ html:not([dir='rtl']) .musae-p4054r:not(#\#):not(#\#):not(#\#){text-align:right}
223
+ html[dir='rtl'] .musae-p4054r:not(#\#):not(#\#):not(#\#){text-align:left}
227
224
  .musae-1bndym7:not(#\#):not(#\#):not(#\#){transform-origin:50% 50%}
228
225
  .musae-1g0ag68:not(#\#):not(#\#):not(#\#){transform-origin:center}
229
226
  .musae-9tu13d:not(#\#):not(#\#):not(#\#){transform:rotate(-90deg)}
@@ -236,12 +233,14 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
236
233
  .musae-1d8287x:not(#\#):not(#\#):not(#\#){transition-duration:.3s}
237
234
  .musae-fagghw:not(#\#):not(#\#):not(#\#){transition-property:all}
238
235
  .musae-xy01e9:not(#\#):not(#\#):not(#\#){transition-property:background-color,border,color}
236
+ .musae-kdsq27:not(#\#):not(#\#):not(#\#){transition-property:box-shadow}
239
237
  .musae-1ve1rmq:not(#\#):not(#\#):not(#\#){transition-property:margin-inline-start,margin-inline-end}
240
238
  .musae-1c9o64o:not(#\#):not(#\#):not(#\#){transition-property:margin-top,transform}
241
239
  .musae-19991ni:not(#\#):not(#\#):not(#\#){transition-property:opacity}
242
240
  .musae-bjh9w0:not(#\#):not(#\#):not(#\#){transition-property:padding-inline-start,padding-inline-end}
243
241
  .musae-11xpdln:not(#\#):not(#\#):not(#\#){transition-property:transform}
244
242
  .musae-87ps6o:not(#\#):not(#\#):not(#\#){user-select:none}
243
+ .musae-3ajldb:not(#\#):not(#\#):not(#\#){vertical-align:bottom}
245
244
  .musae-xymvpz:not(#\#):not(#\#):not(#\#){vertical-align:middle}
246
245
  .musae-lshs6z:not(#\#):not(#\#):not(#\#){visibility:hidden}
247
246
  .musae-uxw1ft:not(#\#):not(#\#):not(#\#){white-space:nowrap}
@@ -259,12 +258,13 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
259
258
  .musae-mn8nw1:not(#\#):not(#\#):not(#\#){z-index:var(--musae-80rspi)}
260
259
  .musae-1tv1kli:not(#\#):not(#\#):not(#\#){z-index:var(--musae-9gpkaf)}
261
260
  .musae-1q93749:not(#\#):not(#\#):not(#\#){z-index:var(--musae-ah5ngi)}
261
+ .musae-aefx0h:not(#\#):not(#\#):not(#\#){z-index:var(--musae-if0yew)}
262
262
  .musae-1axsr4t:not(#\#):not(#\#):not(#\#){z-index:var(--musae-oqacdq)}
263
263
  .musae-5w6sei:not(#\#):not(#\#):not(#\#){z-index:var(--musae-ymrixl)}
264
264
  .musae-9cqmhv:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{background-color:var(--1sg3dqs,revert)}
265
265
  .musae-x7gz8e:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{content:""}
266
- .musae-13amitz:hover > span:last-child:not(#\#):not(#\#):not(#\#){display:inline-flex}
267
- .musae-1pqvcko:hover > span:first-child:not(#\#):not(#\#):not(#\#){display:none}
266
+ .musae-1aldg33:hover > [role='separator']:not(#\#):not(#\#):not(#\#){display:none}
267
+ .musae-1oew0n0:not(:hover) > [role='button']:not(#\#):not(#\#):not(#\#){display:none}
268
268
  .musae-192i3sz:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{inset-inline-end:0}
269
269
  .musae-1i5rff9:not(:first-child):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--musae-vk5id6) * -1)}
270
270
  .musae-no41pc:not(:last-of-type):not(#\#):not(#\#):not(#\#)::after{position:absolute}
@@ -277,9 +277,14 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
277
277
  .musae-43481e:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-color:var(--borderBottomColor,revert)}
278
278
  .musae-1q0q8m5:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-style:solid}
279
279
  .musae-lntmim:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:var(--musae-1ax7z96)}
280
+ .musae-is9nib:not(#\#):not(#\#):not(#\#):not(#\#){border-top-color:var(--borderTopColor,revert)}
281
+ .musae-13fuv20:not(#\#):not(#\#):not(#\#):not(#\#){border-top-style:solid}
282
+ .musae-1yeim8r:not(#\#):not(#\#):not(#\#):not(#\#){border-top-width:var(--musae-1ax7z96)}
280
283
  .musae-1ey2m1c:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}
284
+ .musae-jnlgov:not(#\#):not(#\#):not(#\#):not(#\#){bottom:20px}
281
285
  .musae-1ii70tt:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--musae-15cw4i4)}
282
286
  .musae-8wmlod:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--musae-1wblvyz)}
287
+ .musae-qtp20y:not(#\#):not(#\#):not(#\#):not(#\#){height:0}
283
288
  .musae-1dr59a3:not(#\#):not(#\#):not(#\#):not(#\#){height:100vh}
284
289
  .musae-1m3v4wt:not(#\#):not(#\#):not(#\#):not(#\#){height:200px}
285
290
  .musae-xk0z11:not(#\#):not(#\#):not(#\#):not(#\#){height:24px}
@@ -288,12 +293,12 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
288
293
  .musae-g7h5cd:not(#\#):not(#\#):not(#\#):not(#\#){height:fit-content}
289
294
  .musae-1jwls1v:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--height,revert)}
290
295
  .musae-hfcj97:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-16n5srz)}
291
- .musae-ri8twg:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-1aj7t22)}
292
296
  .musae-1yri8c6:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-1ax7z96)}
293
297
  .musae-1k820er:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-1hydgie)}
294
298
  .musae-jazk0b:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-1l9c3uf)}
295
299
  .musae-b27hse:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-1qj6wod)}
296
300
  .musae-1vwksmh:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-1yg5bqe)}
301
+ .musae-1ajdkb8:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-2h23ia)}
297
302
  .musae-1cj5796:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-70uu0v)}
298
303
  .musae-7kkngq:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-cftog7)}
299
304
  .musae-kzsoxx:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--musae-jdzqnm)}
@@ -332,16 +337,15 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
332
337
  .musae-10wlt62:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:hidden}
333
338
  .musae-1244622:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--musae-1tzp6vk)}
334
339
  .musae-n01sgk:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--musae-oohzsl)}
335
- .musae-78w2x6:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--musae-qk2ac7)}
336
340
  .musae-16rezew:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--musae-vk5id6)}
337
341
  .musae-1k3zc6d:not(#\#):not(#\#):not(#\#):not(#\#){padding-left:var(--paddingLeft,revert)}
338
342
  .musae-sgdd5s:not(#\#):not(#\#):not(#\#):not(#\#){padding-right:var(--musae-1ncxh3n)}
339
343
  .musae-1y1aa1q:not(#\#):not(#\#):not(#\#):not(#\#){padding-right:var(--musae-oohzsl)}
340
344
  .musae-1teihh3:not(#\#):not(#\#):not(#\#):not(#\#){padding-right:var(--musae-vk5id6)}
341
345
  .musae-522f2k:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-oohzsl)}
342
- .musae-1p848mt:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-qk2ac7)}
343
346
  .musae-utp9vd:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--musae-vk5id6)}
344
347
  .musae-3m8u43:not(#\#):not(#\#):not(#\#):not(#\#){right:0}
348
+ .musae-k6ci0l:not(#\#):not(#\#):not(#\#):not(#\#){right:20px}
345
349
  .musae-14l26ut:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musae-15cw4i4)}
346
350
  .musae-6al1c1:not(#\#):not(#\#):not(#\#):not(#\#){right:var(--musae-oohzsl)}
347
351
  .musae-13vifvy:not(#\#):not(#\#):not(#\#):not(#\#){top:0}
@@ -359,6 +363,7 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
359
363
  .musae-jz7u3w:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musae-1hydgie)}
360
364
  .musae-103s5vv:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musae-1l9c3uf)}
361
365
  .musae-wfgd1y:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musae-1qj6wod)}
366
+ .musae-fx4e2q:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musae-2h23ia)}
362
367
  .musae-1gn8jaj:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musae-70uu0v)}
363
368
  .musae-1sgo4cp:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musae-cftog7)}
364
369
  .musae-1wmt73o:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--musae-laggmb)}
@@ -394,7 +399,6 @@ html[dir='rtl'] .musae-1yc453h:not(#\#):not(#\#):not(#\#){text-align:right}
394
399
  .musae-27d4w3:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:var(--15iyedw,revert)}
395
400
  .musae-rr6jkh:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--1lrm08k,revert)}
396
401
  .musae-1cj4lvr:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-thumb{background-color:var(--b44ld2,revert)}
397
- .musae-1dn9wut:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-top-width:var(--musae-1aj7t22)}
398
402
  html:not([dir='rtl']) .musae-15cyge6:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,.08)}
399
403
  html[dir='rtl'] .musae-15cyge6:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,.08)}
400
404
  html:not([dir='rtl']) .musae-91zhsk:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,.08)}
@@ -434,6 +438,7 @@ html[dir='rtl'] .musae-91zhsk:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#
434
438
  .musae-9xs3e7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-old(root){z-index:var(--musae-dlxqgz)}
435
439
  .musae-qotmtd:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-new(root){z-index:var(--musae-dlxqgz)}
436
440
  .musae-1p9jk5k:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-left-width:var(--musae-1aj7t22)}
441
+ .musae-1dn9wut:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-top-width:var(--musae-1aj7t22)}
437
442
  .musae-ec44on:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{height:calc(var(--musae-1l9c3uf) / 2)}
438
443
  .musae-17xd6cp:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{height:var(--12qatcd,revert)}
439
444
  .musae-1yecmy3:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{height:var(--1whluux,revert)}
@@ -47,7 +47,8 @@ export declare enum ComponentToken {
47
47
  Popover = 35,
48
48
  Loading = 36,
49
49
  Collapse = 37,
50
- Waterfall = 38
50
+ Waterfall = 38,
51
+ Transfer = 39
51
52
  }
52
53
  /**
53
54
  * @description
@@ -183,7 +184,8 @@ export declare enum TabsClassToken {
183
184
  Panel = 7
184
185
  }
185
186
  export declare enum PaginationClassToken {
186
- Pagination = 0
187
+ Pagination = 0,
188
+ SizeSelector = 1
187
189
  }
188
190
  export declare enum SwitchClassToken {
189
191
  Switch = 0,
@@ -210,15 +212,21 @@ export declare enum StepsClassToken {
210
212
  Steps = 0,
211
213
  Item = 1,
212
214
  Leading = 2,
213
- Title = 3,
214
- Description = 4,
215
- Done = 5,
216
- Doing = 6,
217
- Todo = 7
215
+ Sign = 3,
216
+ Title = 4,
217
+ Description = 5,
218
+ Done = 6,
219
+ Doing = 7,
220
+ Todo = 8
218
221
  }
219
222
  export declare enum TimelineClassToken {
220
223
  Timeline = 0,
221
- Item = 1
224
+ Item = 1,
225
+ Leading = 2,
226
+ Sign = 3,
227
+ Dot = 4,
228
+ Label = 5,
229
+ Description = 6
222
230
  }
223
231
  export declare enum BreadcrumbClassToken {
224
232
  Breadcrumb = 0,
@@ -268,6 +276,15 @@ export declare enum WaterfallClassToken {
268
276
  Waterfall = 0,
269
277
  Sequential = 1
270
278
  }
279
+ export declare enum TransferClassToken {
280
+ Transfer = 0,
281
+ List = 1,
282
+ Header = 2,
283
+ Title = 3,
284
+ Body = 4,
285
+ Item = 5,
286
+ Operation = 6
287
+ }
271
288
  /**
272
289
  * @description
273
290
  * class name collection
@@ -407,6 +424,7 @@ export declare const CLASS_NAMES: {
407
424
  };
408
425
  24: {
409
426
  0: string;
427
+ 1: string;
410
428
  };
411
429
  25: {
412
430
  0: string;
@@ -432,16 +450,22 @@ export declare const CLASS_NAMES: {
432
450
  28: {
433
451
  0: string;
434
452
  1: string;
435
- 5: string;
436
453
  6: string;
437
454
  7: string;
455
+ 8: string;
438
456
  2: string;
439
457
  3: string;
440
458
  4: string;
459
+ 5: string;
441
460
  };
442
461
  29: {
443
462
  0: string;
444
463
  1: string;
464
+ 2: string;
465
+ 3: string;
466
+ 4: string;
467
+ 5: string;
468
+ 6: string;
445
469
  };
446
470
  30: {
447
471
  0: string;
@@ -489,6 +513,15 @@ export declare const CLASS_NAMES: {
489
513
  0: string;
490
514
  1: string;
491
515
  };
516
+ 39: {
517
+ 0: string;
518
+ 6: string;
519
+ 1: string;
520
+ 3: string;
521
+ 5: string;
522
+ 2: string;
523
+ 4: string;
524
+ };
492
525
  };
493
526
  /**
494
527
  * @description
@@ -631,6 +664,7 @@ export declare const DEFAULT_CLASS_NAMES: {
631
664
  };
632
665
  24: {
633
666
  0: string;
667
+ 1: string;
634
668
  };
635
669
  25: {
636
670
  0: string;
@@ -656,16 +690,22 @@ export declare const DEFAULT_CLASS_NAMES: {
656
690
  28: {
657
691
  0: string;
658
692
  1: string;
659
- 5: string;
660
693
  6: string;
661
694
  7: string;
695
+ 8: string;
662
696
  2: string;
663
697
  3: string;
664
698
  4: string;
699
+ 5: string;
665
700
  };
666
701
  29: {
667
702
  0: string;
668
703
  1: string;
704
+ 2: string;
705
+ 3: string;
706
+ 4: string;
707
+ 5: string;
708
+ 6: string;
669
709
  };
670
710
  30: {
671
711
  0: string;
@@ -713,4 +753,13 @@ export declare const DEFAULT_CLASS_NAMES: {
713
753
  0: string;
714
754
  1: string;
715
755
  };
756
+ 39: {
757
+ 0: string;
758
+ 6: string;
759
+ 1: string;
760
+ 3: string;
761
+ 5: string;
762
+ 2: string;
763
+ 4: string;
764
+ };
716
765
  };
@@ -57,6 +57,7 @@ var ComponentToken;
57
57
  ComponentToken[ComponentToken["Loading"] = 36] = "Loading";
58
58
  ComponentToken[ComponentToken["Collapse"] = 37] = "Collapse";
59
59
  ComponentToken[ComponentToken["Waterfall"] = 38] = "Waterfall";
60
+ ComponentToken[ComponentToken["Transfer"] = 39] = "Transfer";
60
61
  })(ComponentToken || (ComponentToken = {}));
61
62
  /**
62
63
  * @description
@@ -218,6 +219,7 @@ var TabsClassToken;
218
219
  var PaginationClassToken;
219
220
  (function (PaginationClassToken) {
220
221
  PaginationClassToken[PaginationClassToken["Pagination"] = 0] = "Pagination";
222
+ PaginationClassToken[PaginationClassToken["SizeSelector"] = 1] = "SizeSelector";
221
223
  })(PaginationClassToken || (PaginationClassToken = {}));
222
224
  var SwitchClassToken;
223
225
  (function (SwitchClassToken) {
@@ -248,16 +250,22 @@ var StepsClassToken;
248
250
  StepsClassToken[StepsClassToken["Steps"] = 0] = "Steps";
249
251
  StepsClassToken[StepsClassToken["Item"] = 1] = "Item";
250
252
  StepsClassToken[StepsClassToken["Leading"] = 2] = "Leading";
251
- StepsClassToken[StepsClassToken["Title"] = 3] = "Title";
252
- StepsClassToken[StepsClassToken["Description"] = 4] = "Description";
253
- StepsClassToken[StepsClassToken["Done"] = 5] = "Done";
254
- StepsClassToken[StepsClassToken["Doing"] = 6] = "Doing";
255
- StepsClassToken[StepsClassToken["Todo"] = 7] = "Todo";
253
+ StepsClassToken[StepsClassToken["Sign"] = 3] = "Sign";
254
+ StepsClassToken[StepsClassToken["Title"] = 4] = "Title";
255
+ StepsClassToken[StepsClassToken["Description"] = 5] = "Description";
256
+ StepsClassToken[StepsClassToken["Done"] = 6] = "Done";
257
+ StepsClassToken[StepsClassToken["Doing"] = 7] = "Doing";
258
+ StepsClassToken[StepsClassToken["Todo"] = 8] = "Todo";
256
259
  })(StepsClassToken || (StepsClassToken = {}));
257
260
  var TimelineClassToken;
258
261
  (function (TimelineClassToken) {
259
262
  TimelineClassToken[TimelineClassToken["Timeline"] = 0] = "Timeline";
260
263
  TimelineClassToken[TimelineClassToken["Item"] = 1] = "Item";
264
+ TimelineClassToken[TimelineClassToken["Leading"] = 2] = "Leading";
265
+ TimelineClassToken[TimelineClassToken["Sign"] = 3] = "Sign";
266
+ TimelineClassToken[TimelineClassToken["Dot"] = 4] = "Dot";
267
+ TimelineClassToken[TimelineClassToken["Label"] = 5] = "Label";
268
+ TimelineClassToken[TimelineClassToken["Description"] = 6] = "Description";
261
269
  })(TimelineClassToken || (TimelineClassToken = {}));
262
270
  var BreadcrumbClassToken;
263
271
  (function (BreadcrumbClassToken) {
@@ -316,6 +324,16 @@ var WaterfallClassToken;
316
324
  WaterfallClassToken[WaterfallClassToken["Waterfall"] = 0] = "Waterfall";
317
325
  WaterfallClassToken[WaterfallClassToken["Sequential"] = 1] = "Sequential";
318
326
  })(WaterfallClassToken || (WaterfallClassToken = {}));
327
+ var TransferClassToken;
328
+ (function (TransferClassToken) {
329
+ TransferClassToken[TransferClassToken["Transfer"] = 0] = "Transfer";
330
+ TransferClassToken[TransferClassToken["List"] = 1] = "List";
331
+ TransferClassToken[TransferClassToken["Header"] = 2] = "Header";
332
+ TransferClassToken[TransferClassToken["Title"] = 3] = "Title";
333
+ TransferClassToken[TransferClassToken["Body"] = 4] = "Body";
334
+ TransferClassToken[TransferClassToken["Item"] = 5] = "Item";
335
+ TransferClassToken[TransferClassToken["Operation"] = 6] = "Operation";
336
+ })(TransferClassToken || (TransferClassToken = {}));
319
337
  /**
320
338
  * @description
321
339
  * class name collection
@@ -455,6 +473,7 @@ const CLASS_NAMES = {
455
473
  },
456
474
  [ComponentToken.Pagination]: {
457
475
  [PaginationClassToken.Pagination]: "pagination",
476
+ [PaginationClassToken.SizeSelector]: "pagination__size-selector",
458
477
  },
459
478
  [ComponentToken.Switch]: {
460
479
  [SwitchClassToken.Switch]: "switch",
@@ -484,12 +503,18 @@ const CLASS_NAMES = {
484
503
  [StepsClassToken.Doing]: "steps__item--doing",
485
504
  [StepsClassToken.Todo]: "steps__item--todo",
486
505
  [StepsClassToken.Leading]: "steps__item-leading",
506
+ [StepsClassToken.Sign]: "steps__item-leading-sign",
487
507
  [StepsClassToken.Title]: "steps__item-title",
488
508
  [StepsClassToken.Description]: "steps__item-description",
489
509
  },
490
510
  [ComponentToken.Timeline]: {
491
511
  [TimelineClassToken.Timeline]: "timeline",
492
512
  [TimelineClassToken.Item]: "timeline__item",
513
+ [TimelineClassToken.Leading]: "timeline__item-leading",
514
+ [TimelineClassToken.Sign]: "timeline__item-leading-sign",
515
+ [TimelineClassToken.Dot]: "timeline__item-leading-dot",
516
+ [TimelineClassToken.Label]: "timeline__item-label",
517
+ [TimelineClassToken.Description]: "timeline__item-description",
493
518
  },
494
519
  [ComponentToken.Breadcrumb]: {
495
520
  [BreadcrumbClassToken.Breadcrumb]: "breadcrumb",
@@ -537,6 +562,15 @@ const CLASS_NAMES = {
537
562
  [WaterfallClassToken.Waterfall]: "waterfall",
538
563
  [WaterfallClassToken.Sequential]: "waterfall--sequential",
539
564
  },
565
+ [ComponentToken.Transfer]: {
566
+ [TransferClassToken.Transfer]: "transfer",
567
+ [TransferClassToken.Operation]: "transfer__operation",
568
+ [TransferClassToken.List]: "transfer__list",
569
+ [TransferClassToken.Title]: "transfer__list-title",
570
+ [TransferClassToken.Item]: "transfer__list-item",
571
+ [TransferClassToken.Header]: "transfer__list-header",
572
+ [TransferClassToken.Body]: "transfer__list-body",
573
+ },
540
574
  };
541
575
  /**
542
576
  * @description
@@ -555,4 +589,4 @@ const addPrefix = (classNames, prefix) => {
555
589
  */
556
590
  const DEFAULT_CLASS_NAMES = addPrefix(CLASS_NAMES, Token.Prefix);
557
591
 
558
- export { AvatarClassToken, BreadcrumbClassToken, ButtonClassToken, CLASS_NAMES, CalendarClassToken, CascaderClassToken, CheckboxClassToken, ClockClassToken, CollapseClassToken, ComponentToken, DEFAULT_CLASS_NAMES, DatePickerClassToken, DateRangePickerClassToken, DialogClassToken, DividerClassToken, DrawerClassToken, EmptyClassToken, FormClassToken, GridClassToken, IconClassToken, InputClassToken, LoadingClassToken, MenuClassToken, NotificationClassToken, PaginationClassToken, PickerClassToken, PopoverClassToken, PopperClassToken, ProgressClassToken, RadioClassToken, RateClassToken, SelectClassToken, StepsClassToken, SwitchClassToken, TabsClassToken, TagClassToken, TimePickerClassToken, TimelineClassToken, TooltipClassToken, TourClassToken, TreeClassToken, WaterfallClassToken, addPrefix, withPrefix };
592
+ export { AvatarClassToken, BreadcrumbClassToken, ButtonClassToken, CLASS_NAMES, CalendarClassToken, CascaderClassToken, CheckboxClassToken, ClockClassToken, CollapseClassToken, ComponentToken, DEFAULT_CLASS_NAMES, DatePickerClassToken, DateRangePickerClassToken, DialogClassToken, DividerClassToken, DrawerClassToken, EmptyClassToken, FormClassToken, GridClassToken, IconClassToken, InputClassToken, LoadingClassToken, MenuClassToken, NotificationClassToken, PaginationClassToken, PickerClassToken, PopoverClassToken, PopperClassToken, ProgressClassToken, RadioClassToken, RateClassToken, SelectClassToken, StepsClassToken, SwitchClassToken, TabsClassToken, TagClassToken, TimePickerClassToken, TimelineClassToken, TooltipClassToken, TourClassToken, TransferClassToken, TreeClassToken, WaterfallClassToken, addPrefix, withPrefix };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "musae",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "musae-ui",
5
5
  "author": "tutu@fantufantu.com",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "scripts": {
9
+ "test": "jest",
9
10
  "dev": "rollup -c -w --environment NODE_ENV:development",
10
11
  "build": "rollup -c --environment NODE_ENV:production",
11
- "prepublish": "rm -rf dist && npm run build",
12
- "relink": "pnpm unlink && pnpm link",
13
- "test": "jest"
12
+ "prepublishOnly": "rm -rf dist && npm run build",
13
+ "preinstall": "npx @aiszlab/watchdog preinstall"
14
14
  },
15
15
  "exports": {
16
16
  ".": {
@@ -22,8 +22,14 @@
22
22
  "default": "./dist/components/icon/icons/index.js"
23
23
  }
24
24
  },
25
+ "engines": {
26
+ "node": ">=18.0.0",
27
+ "pnpm": ">=9"
28
+ },
25
29
  "dependencies": {
26
- "@aiszlab/relax": "^1.2.56",
30
+ "@aiszlab/relax": "^1.2.59",
31
+ "@dnd-kit/core": "^6.1.0",
32
+ "@dnd-kit/modifiers": "^7.0.0",
27
33
  "@floating-ui/dom": "^1.6.5",
28
34
  "@tanstack/react-table": "^8.16.0",
29
35
  "clsx": "^2.1.1",
@@ -31,6 +37,7 @@
31
37
  "deepmerge": "^4.3.1",
32
38
  "framer-motion": "^11.2.11",
33
39
  "react-hook-form": "^7.47.0",
40
+ "rrweb": "2.0.0-alpha.4",
34
41
  "rxjs": "^7.8.1"
35
42
  },
36
43
  "devDependencies": {
@@ -50,6 +57,7 @@
50
57
  "@testing-library/user-event": "^14.5.2",
51
58
  "@types/dom-view-transitions": "^1.0.4",
52
59
  "@types/jest": "^29.5.12",
60
+ "@types/node": "^20.14.10",
53
61
  "@types/react": "18",
54
62
  "@types/react-dom": "18",
55
63
  "babel-jest": "^29.7.0",
@@ -1,12 +0,0 @@
1
- import { useAnimate } from "framer-motion";
2
- type UsedAnimate = ReturnType<typeof useAnimate<HTMLElement>>;
3
- /**
4
- * @description
5
- * effect for expand handler
6
- */
7
- export declare const useExpandEffect: ({ expanded, target, animate, }: {
8
- expanded: boolean;
9
- target: UsedAnimate[0];
10
- animate: UsedAnimate[1];
11
- }) => void;
12
- export {};
@@ -1,34 +0,0 @@
1
- import { useUpdateEffect } from '@aiszlab/relax';
2
-
3
- /**
4
- * @description
5
- * effect for expand handler
6
- */
7
- const useExpandEffect = ({ expanded, target, animate, }) => {
8
- useUpdateEffect(async () => {
9
- if (expanded) {
10
- target.current.style.height = "0";
11
- target.current.style.overflow = "hidden";
12
- target.current.style.display = "inherit";
13
- await animate(target.current, {
14
- height: "auto",
15
- });
16
- target.current.style.height = "";
17
- target.current.style.overflow = "";
18
- target.current.style.display = "";
19
- return;
20
- }
21
- // style play like display: none
22
- target.current.style.overflow = "hidden";
23
- target.current.style.height = "auto";
24
- target.current.style.display = "inherit";
25
- await animate(target.current, {
26
- height: 0,
27
- });
28
- target.current.style.height = "";
29
- target.current.style.overflow = "";
30
- target.current.style.display = "none";
31
- }, [expanded]);
32
- };
33
-
34
- export { useExpandEffect };