@nextui-org/react 1.0.2-alpha.2 → 1.0.2-beta.4

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 (720) hide show
  1. package/README.md +10 -5
  2. package/cjs/avatar/avatar-group.js +1 -35
  3. package/cjs/avatar/avatar-group.styles.js +1 -52
  4. package/cjs/avatar/avatar.js +1 -75
  5. package/cjs/avatar/avatar.styles.js +1 -334
  6. package/cjs/avatar/index.js +1 -22
  7. package/cjs/backdrop/backdrop.js +1 -137
  8. package/cjs/backdrop/backdrop.styles.js +1 -119
  9. package/cjs/backdrop/index.js +1 -16
  10. package/cjs/button/button-group-context.js +1 -21
  11. package/cjs/button/button-group.js +1 -81
  12. package/cjs/button/button-group.styles.js +1 -136
  13. package/cjs/button/button-icon.js +1 -68
  14. package/cjs/button/button.js +1 -145
  15. package/cjs/button/button.styles.js +1 -695
  16. package/cjs/button/index.js +1 -25
  17. package/cjs/button/utils.js +1 -27
  18. package/cjs/card/card.js +1 -117
  19. package/cjs/card/card.styles.js +1 -267
  20. package/cjs/card/index.js +1 -24
  21. package/cjs/checkbox/checkbox-context.js +1 -25
  22. package/cjs/checkbox/checkbox-group.js +1 -89
  23. package/cjs/checkbox/checkbox.js +1 -192
  24. package/cjs/checkbox/checkbox.styles.js +1 -563
  25. package/cjs/checkbox/index.js +1 -26
  26. package/cjs/code/code.js +1 -42
  27. package/cjs/code/code.styles.js +1 -14
  28. package/cjs/code/index.js +1 -15
  29. package/cjs/col/col.js +1 -46
  30. package/cjs/col/col.styles.js +1 -16
  31. package/cjs/col/index.js +1 -14
  32. package/cjs/collapse/collapse-context.js +1 -20
  33. package/cjs/collapse/collapse-group.js +1 -90
  34. package/cjs/collapse/collapse-icon.js +1 -41
  35. package/cjs/collapse/collapse.js +1 -190
  36. package/cjs/collapse/collapse.styles.js +1 -254
  37. package/cjs/collapse/index.js +1 -22
  38. package/cjs/container/container.js +1 -91
  39. package/cjs/container/container.styles.js +1 -45
  40. package/cjs/container/index.js +1 -14
  41. package/cjs/css-baseline/css-baseline.js +1 -247
  42. package/cjs/css-baseline/index.js +1 -11
  43. package/cjs/divider/divider.js +1 -82
  44. package/cjs/divider/divider.styles.js +1 -77
  45. package/cjs/divider/index.js +1 -15
  46. package/cjs/grid/grid-container.js +1 -60
  47. package/cjs/grid/grid-item.js +1 -123
  48. package/cjs/grid/grid.js +1 -29
  49. package/cjs/grid/grid.styles.js +1 -15
  50. package/cjs/grid/index.js +1 -18
  51. package/cjs/image/image.js +1 -150
  52. package/cjs/image/image.skeleton.js +1 -50
  53. package/cjs/image/image.styles.js +1 -57
  54. package/cjs/image/index.js +1 -16
  55. package/cjs/index.js +1 -435
  56. package/cjs/input/index.js +1 -30
  57. package/cjs/input/input-password.js +1 -80
  58. package/cjs/input/input-props.js +1 -30
  59. package/cjs/input/input.js +1 -317
  60. package/cjs/input/input.styles.js +1 -878
  61. package/cjs/input/password-icon.js +1 -51
  62. package/cjs/link/icon.js +1 -42
  63. package/cjs/link/index.js +1 -15
  64. package/cjs/link/link.js +1 -42
  65. package/cjs/link/link.styles.js +1 -135
  66. package/cjs/loading/index.js +1 -24
  67. package/cjs/loading/loading.js +1 -80
  68. package/cjs/loading/loading.styles.js +1 -438
  69. package/cjs/loading/spinner.js +1 -47
  70. package/cjs/modal/index.js +1 -28
  71. package/cjs/modal/modal-body.js +1 -62
  72. package/cjs/modal/modal-close-button.js +1 -49
  73. package/cjs/modal/modal-context.js +1 -18
  74. package/cjs/modal/modal-footer.js +1 -69
  75. package/cjs/modal/modal-header.js +1 -69
  76. package/cjs/modal/modal-wrapper.js +1 -153
  77. package/cjs/modal/modal.js +1 -159
  78. package/cjs/modal/modal.styles.js +1 -243
  79. package/cjs/modal/use-modal.js +1 -25
  80. package/cjs/pagination/index.js +1 -19
  81. package/cjs/pagination/pagination-ellipsis.js +1 -86
  82. package/cjs/pagination/pagination-highlight.js +1 -52
  83. package/cjs/pagination/pagination-icon.js +1 -59
  84. package/cjs/pagination/pagination-item.js +1 -104
  85. package/cjs/pagination/pagination.js +1 -169
  86. package/cjs/pagination/pagination.styles.js +1 -361
  87. package/cjs/progress/index.js +1 -15
  88. package/cjs/progress/progress.js +1 -101
  89. package/cjs/progress/progress.styles.js +1 -165
  90. package/cjs/radio/index.js +1 -24
  91. package/cjs/radio/radio-context.js +1 -24
  92. package/cjs/radio/radio-group.js +1 -78
  93. package/cjs/radio/radio.js +1 -156
  94. package/cjs/radio/radio.styles.js +1 -240
  95. package/cjs/row/index.js +1 -14
  96. package/cjs/row/row.js +1 -54
  97. package/cjs/row/row.styles.js +1 -25
  98. package/cjs/snippet/index.js +1 -16
  99. package/cjs/snippet/snippet-icon.js +1 -52
  100. package/cjs/snippet/snippet.js +1 -137
  101. package/cjs/snippet/snippet.styles.js +1 -141
  102. package/cjs/spacer/index.js +1 -14
  103. package/cjs/spacer/spacer.js +1 -49
  104. package/cjs/spacer/spacer.styles.js +1 -24
  105. package/cjs/switch/index.js +1 -17
  106. package/cjs/switch/switch.js +1 -142
  107. package/cjs/switch/switch.styles.js +1 -283
  108. package/cjs/text/child.js +1 -83
  109. package/cjs/text/index.js +1 -14
  110. package/cjs/text/text.js +1 -124
  111. package/cjs/text/text.styles.js +1 -41
  112. package/cjs/textarea/index.js +1 -12
  113. package/cjs/textarea/textarea.js +1 -126
  114. package/cjs/textarea/utils.js +1 -126
  115. package/cjs/theme/common.js +1 -490
  116. package/cjs/theme/dark-theme.js +1 -38
  117. package/cjs/theme/index.js +1 -31
  118. package/cjs/theme/light-theme.js +1 -33
  119. package/cjs/theme/stitches.config.js +1 -88
  120. package/cjs/theme/theme-context.js +1 -22
  121. package/cjs/theme/theme-provider.js +1 -115
  122. package/cjs/theme/types.js +1 -3
  123. package/cjs/theme/utils.js +1 -113
  124. package/cjs/tooltip/index.js +1 -17
  125. package/cjs/tooltip/placement.js +1 -193
  126. package/cjs/tooltip/tooltip-content.js +1 -135
  127. package/cjs/tooltip/tooltip.js +1 -141
  128. package/cjs/tooltip/tooltip.styles.js +1 -159
  129. package/cjs/use-body-scroll/index.js +1 -12
  130. package/cjs/use-body-scroll/use-body-scroll.js +1 -77
  131. package/cjs/use-click-anywhere/index.js +1 -12
  132. package/cjs/use-click-anywhere/use-click-anywhere.js +1 -19
  133. package/cjs/use-click-away/index.js +1 -12
  134. package/cjs/use-click-away/use-click-away.js +1 -23
  135. package/cjs/use-clipboard/index.js +1 -12
  136. package/cjs/use-clipboard/use-clipboard.js +1 -57
  137. package/cjs/use-current-state/index.js +1 -12
  138. package/cjs/use-current-state/use-current-state.js +1 -28
  139. package/cjs/use-drip/index.js +1 -12
  140. package/cjs/use-drip/use-drip.js +1 -38
  141. package/cjs/use-input/index.js +1 -12
  142. package/cjs/use-input/use-input.js +1 -32
  143. package/cjs/use-keyboard/codes.js +1 -104
  144. package/cjs/use-keyboard/helper.js +1 -35
  145. package/cjs/use-keyboard/index.js +1 -15
  146. package/cjs/use-keyboard/use-keyboard.js +1 -76
  147. package/cjs/use-pagination/index.js +1 -88
  148. package/cjs/use-portal/index.js +1 -12
  149. package/cjs/use-portal/use-portal.js +1 -43
  150. package/cjs/use-real-shape/index.js +1 -12
  151. package/cjs/use-real-shape/use-real-shape.js +1 -55
  152. package/cjs/use-resize/index.js +1 -12
  153. package/cjs/use-resize/use-resize.js +1 -23
  154. package/cjs/use-ssr/index.js +1 -12
  155. package/cjs/use-ssr/use-ssr.js +1 -25
  156. package/cjs/use-theme/index.js +1 -12
  157. package/cjs/use-theme/use-theme.js +1 -16
  158. package/cjs/use-warning/index.js +1 -12
  159. package/cjs/use-warning/use-warning.js +1 -23
  160. package/cjs/user/index.js +1 -21
  161. package/cjs/user/user-link.js +1 -46
  162. package/cjs/user/user.js +1 -63
  163. package/cjs/user/user.styles.js +1 -56
  164. package/cjs/utils/assertion.js +1 -42
  165. package/cjs/utils/clear-icon.js +1 -70
  166. package/cjs/utils/clsx.js +1 -57
  167. package/cjs/utils/collections.js +1 -110
  168. package/cjs/utils/color.js +1 -187
  169. package/cjs/utils/css-transition.js +1 -76
  170. package/cjs/utils/deep-merge.js +1 -33
  171. package/cjs/utils/dimensions.js +1 -10
  172. package/cjs/utils/dom.js +1 -110
  173. package/cjs/utils/drip.js +1 -116
  174. package/cjs/utils/expand.js +1 -109
  175. package/cjs/utils/icons.js +1 -481
  176. package/cjs/utils/numbers.js +1 -23
  177. package/cjs/utils/object.js +1 -40
  178. package/cjs/utils/prop-types.js +1 -56
  179. package/cjs/utils/react.js +1 -24
  180. package/cjs/utils/strings.js +1 -18
  181. package/cjs/utils/types.d.js +1 -3
  182. package/cjs/utils/with-defaults.js +1 -13
  183. package/esm/avatar/avatar-group.js +1 -35
  184. package/esm/avatar/avatar-group.styles.js +1 -52
  185. package/esm/avatar/avatar.js +1 -75
  186. package/esm/avatar/avatar.styles.js +1 -334
  187. package/esm/avatar/index.js +1 -22
  188. package/esm/backdrop/backdrop.js +1 -137
  189. package/esm/backdrop/backdrop.styles.js +1 -119
  190. package/esm/backdrop/index.js +1 -16
  191. package/esm/button/button-group-context.js +1 -21
  192. package/esm/button/button-group.js +1 -81
  193. package/esm/button/button-group.styles.js +1 -136
  194. package/esm/button/button-icon.js +1 -68
  195. package/esm/button/button.js +1 -145
  196. package/esm/button/button.styles.js +1 -695
  197. package/esm/button/index.js +1 -25
  198. package/esm/button/utils.js +1 -27
  199. package/esm/card/card.js +1 -117
  200. package/esm/card/card.styles.js +1 -267
  201. package/esm/card/index.js +1 -24
  202. package/esm/checkbox/checkbox-context.js +1 -25
  203. package/esm/checkbox/checkbox-group.js +1 -89
  204. package/esm/checkbox/checkbox.js +1 -192
  205. package/esm/checkbox/checkbox.styles.js +1 -563
  206. package/esm/checkbox/index.js +1 -26
  207. package/esm/code/code.js +1 -42
  208. package/esm/code/code.styles.js +1 -14
  209. package/esm/code/index.js +1 -15
  210. package/esm/col/col.js +1 -46
  211. package/esm/col/col.styles.js +1 -16
  212. package/esm/col/index.js +1 -14
  213. package/esm/collapse/collapse-context.js +1 -20
  214. package/esm/collapse/collapse-group.js +1 -90
  215. package/esm/collapse/collapse-icon.js +1 -41
  216. package/esm/collapse/collapse.js +1 -190
  217. package/esm/collapse/collapse.styles.js +1 -254
  218. package/esm/collapse/index.js +1 -22
  219. package/esm/container/container.js +1 -91
  220. package/esm/container/container.styles.js +1 -45
  221. package/esm/container/index.js +1 -14
  222. package/esm/css-baseline/css-baseline.js +1 -247
  223. package/esm/css-baseline/index.js +1 -11
  224. package/esm/divider/divider.js +1 -82
  225. package/esm/divider/divider.styles.js +1 -77
  226. package/esm/divider/index.js +1 -15
  227. package/esm/grid/grid-container.js +1 -60
  228. package/esm/grid/grid-item.js +1 -123
  229. package/esm/grid/grid.js +1 -29
  230. package/esm/grid/grid.styles.js +1 -15
  231. package/esm/grid/index.js +1 -18
  232. package/esm/image/image.js +1 -150
  233. package/esm/image/image.skeleton.js +1 -50
  234. package/esm/image/image.styles.js +1 -57
  235. package/esm/image/index.js +1 -16
  236. package/esm/index.js +1 -435
  237. package/esm/input/index.js +1 -30
  238. package/esm/input/input-password.js +1 -80
  239. package/esm/input/input-props.js +1 -30
  240. package/esm/input/input.js +1 -317
  241. package/esm/input/input.styles.js +1 -878
  242. package/esm/input/password-icon.js +1 -51
  243. package/esm/link/icon.js +1 -42
  244. package/esm/link/index.js +1 -15
  245. package/esm/link/link.js +1 -42
  246. package/esm/link/link.styles.js +1 -135
  247. package/esm/loading/index.js +1 -24
  248. package/esm/loading/loading.js +1 -80
  249. package/esm/loading/loading.styles.js +1 -438
  250. package/esm/loading/spinner.js +1 -47
  251. package/esm/modal/index.js +1 -28
  252. package/esm/modal/modal-body.js +1 -62
  253. package/esm/modal/modal-close-button.js +1 -49
  254. package/esm/modal/modal-context.js +1 -18
  255. package/esm/modal/modal-footer.js +1 -69
  256. package/esm/modal/modal-header.js +1 -69
  257. package/esm/modal/modal-wrapper.js +1 -153
  258. package/esm/modal/modal.js +1 -159
  259. package/esm/modal/modal.styles.js +1 -243
  260. package/esm/modal/use-modal.js +1 -25
  261. package/esm/pagination/index.js +1 -19
  262. package/esm/pagination/pagination-ellipsis.js +1 -86
  263. package/esm/pagination/pagination-highlight.js +1 -52
  264. package/esm/pagination/pagination-icon.js +1 -59
  265. package/esm/pagination/pagination-item.js +1 -104
  266. package/esm/pagination/pagination.js +1 -169
  267. package/esm/pagination/pagination.styles.js +1 -361
  268. package/esm/progress/index.js +1 -15
  269. package/esm/progress/progress.js +1 -101
  270. package/esm/progress/progress.styles.js +1 -165
  271. package/esm/radio/index.js +1 -24
  272. package/esm/radio/radio-context.js +1 -24
  273. package/esm/radio/radio-group.js +1 -78
  274. package/esm/radio/radio.js +1 -156
  275. package/esm/radio/radio.styles.js +1 -240
  276. package/esm/row/index.js +1 -14
  277. package/esm/row/row.js +1 -54
  278. package/esm/row/row.styles.js +1 -25
  279. package/esm/snippet/index.js +1 -16
  280. package/esm/snippet/snippet-icon.js +1 -52
  281. package/esm/snippet/snippet.js +1 -137
  282. package/esm/snippet/snippet.styles.js +1 -141
  283. package/esm/spacer/index.js +1 -14
  284. package/esm/spacer/spacer.js +1 -49
  285. package/esm/spacer/spacer.styles.js +1 -24
  286. package/esm/switch/index.js +1 -17
  287. package/esm/switch/switch.js +1 -142
  288. package/esm/switch/switch.styles.js +1 -283
  289. package/esm/text/child.js +1 -83
  290. package/esm/text/index.js +1 -14
  291. package/esm/text/text.js +1 -124
  292. package/esm/text/text.styles.js +1 -41
  293. package/esm/textarea/index.js +1 -12
  294. package/esm/textarea/textarea.js +1 -126
  295. package/esm/textarea/utils.js +1 -126
  296. package/esm/theme/common.js +1 -490
  297. package/esm/theme/dark-theme.js +1 -38
  298. package/esm/theme/index.js +1 -31
  299. package/esm/theme/light-theme.js +1 -33
  300. package/esm/theme/stitches.config.js +1 -88
  301. package/esm/theme/theme-context.js +1 -22
  302. package/esm/theme/theme-provider.js +1 -115
  303. package/esm/theme/types.js +1 -3
  304. package/esm/theme/utils.js +1 -113
  305. package/esm/tooltip/index.js +1 -17
  306. package/esm/tooltip/placement.js +1 -193
  307. package/esm/tooltip/tooltip-content.js +1 -135
  308. package/esm/tooltip/tooltip.js +1 -141
  309. package/esm/tooltip/tooltip.styles.js +1 -159
  310. package/esm/use-body-scroll/index.js +1 -12
  311. package/esm/use-body-scroll/use-body-scroll.js +1 -77
  312. package/esm/use-click-anywhere/index.js +1 -12
  313. package/esm/use-click-anywhere/use-click-anywhere.js +1 -19
  314. package/esm/use-click-away/index.js +1 -12
  315. package/esm/use-click-away/use-click-away.js +1 -23
  316. package/esm/use-clipboard/index.js +1 -12
  317. package/esm/use-clipboard/use-clipboard.js +1 -57
  318. package/esm/use-current-state/index.js +1 -12
  319. package/esm/use-current-state/use-current-state.js +1 -28
  320. package/esm/use-drip/index.js +1 -12
  321. package/esm/use-drip/use-drip.js +1 -38
  322. package/esm/use-input/index.js +1 -12
  323. package/esm/use-input/use-input.js +1 -32
  324. package/esm/use-keyboard/codes.js +1 -104
  325. package/esm/use-keyboard/helper.js +1 -35
  326. package/esm/use-keyboard/index.js +1 -15
  327. package/esm/use-keyboard/use-keyboard.js +1 -76
  328. package/esm/use-pagination/index.js +1 -88
  329. package/esm/use-portal/index.js +1 -12
  330. package/esm/use-portal/use-portal.js +1 -43
  331. package/esm/use-real-shape/index.js +1 -12
  332. package/esm/use-real-shape/use-real-shape.js +1 -55
  333. package/esm/use-resize/index.js +1 -12
  334. package/esm/use-resize/use-resize.js +1 -23
  335. package/esm/use-ssr/index.js +1 -12
  336. package/esm/use-ssr/use-ssr.js +1 -25
  337. package/esm/use-theme/index.js +1 -12
  338. package/esm/use-theme/use-theme.js +1 -16
  339. package/esm/use-warning/index.js +1 -12
  340. package/esm/use-warning/use-warning.js +1 -23
  341. package/esm/user/index.js +1 -21
  342. package/esm/user/user-link.js +1 -46
  343. package/esm/user/user.js +1 -63
  344. package/esm/user/user.styles.js +1 -56
  345. package/esm/utils/assertion.js +1 -42
  346. package/esm/utils/clear-icon.js +1 -70
  347. package/esm/utils/clsx.js +1 -57
  348. package/esm/utils/collections.js +1 -110
  349. package/esm/utils/color.js +1 -187
  350. package/esm/utils/css-transition.js +1 -76
  351. package/esm/utils/deep-merge.js +1 -33
  352. package/esm/utils/dimensions.js +1 -10
  353. package/esm/utils/dom.js +1 -110
  354. package/esm/utils/drip.js +1 -116
  355. package/esm/utils/expand.js +1 -109
  356. package/esm/utils/icons.js +1 -481
  357. package/esm/utils/numbers.js +1 -23
  358. package/esm/utils/object.js +1 -40
  359. package/esm/utils/prop-types.js +1 -56
  360. package/esm/utils/react.js +1 -24
  361. package/esm/utils/strings.js +1 -18
  362. package/esm/utils/types.d.js +1 -3
  363. package/esm/utils/with-defaults.js +1 -13
  364. package/package.json +8 -3
  365. package/{cjs → types}/avatar/avatar-group.d.ts +0 -0
  366. package/{cjs → types}/avatar/avatar-group.styles.d.ts +82 -0
  367. package/{cjs → types}/avatar/avatar.d.ts +0 -0
  368. package/{esm → types}/avatar/avatar.styles.d.ts +41 -0
  369. package/{cjs → types}/avatar/index.d.ts +0 -0
  370. package/{cjs → types}/backdrop/backdrop.d.ts +1 -1
  371. package/{cjs → types}/backdrop/backdrop.styles.d.ts +123 -0
  372. package/{cjs → types}/backdrop/index.d.ts +0 -0
  373. package/{cjs → types}/button/button-group-context.d.ts +0 -0
  374. package/{cjs → types}/button/button-group.d.ts +0 -0
  375. package/{cjs → types}/button/button-group.styles.d.ts +41 -0
  376. package/{esm → types}/button/button-icon.d.ts +42 -0
  377. package/{cjs → types}/button/button.d.ts +1 -0
  378. package/{esm/backdrop/backdrop.styles.d.ts → types/button/button.styles.d.ts} +1286 -898
  379. package/{cjs → types}/button/index.d.ts +0 -0
  380. package/{cjs → types}/button/utils.d.ts +0 -0
  381. package/{cjs → types}/card/card.d.ts +0 -0
  382. package/{cjs → types}/card/card.styles.d.ts +164 -0
  383. package/{cjs → types}/card/index.d.ts +0 -0
  384. package/{cjs → types}/checkbox/checkbox-context.d.ts +0 -0
  385. package/{cjs → types}/checkbox/checkbox-group.d.ts +0 -0
  386. package/{cjs → types}/checkbox/checkbox.d.ts +0 -0
  387. package/{cjs → types}/checkbox/checkbox.styles.d.ts +369 -0
  388. package/{cjs → types}/checkbox/index.d.ts +0 -0
  389. package/{cjs → types}/code/code.d.ts +0 -0
  390. package/{esm → types}/code/code.styles.d.ts +82 -0
  391. package/{cjs → types}/code/index.d.ts +0 -0
  392. package/{cjs → types}/col/col.d.ts +0 -0
  393. package/{cjs → types}/col/col.styles.d.ts +41 -0
  394. package/{cjs → types}/col/index.d.ts +0 -0
  395. package/{cjs → types}/collapse/collapse-context.d.ts +0 -0
  396. package/{cjs → types}/collapse/collapse-group.d.ts +0 -0
  397. package/{cjs → types}/collapse/collapse-icon.d.ts +0 -0
  398. package/{esm → types}/collapse/collapse.d.ts +5 -3
  399. package/{esm → types}/collapse/collapse.styles.d.ts +205 -0
  400. package/{cjs → types}/collapse/index.d.ts +0 -0
  401. package/{cjs → types}/container/container.d.ts +0 -0
  402. package/{cjs → types}/container/container.styles.d.ts +41 -0
  403. package/{cjs → types}/container/index.d.ts +0 -0
  404. package/{cjs → types}/css-baseline/css-baseline.d.ts +0 -0
  405. package/{cjs → types}/css-baseline/index.d.ts +0 -0
  406. package/{cjs → types}/divider/divider.d.ts +0 -0
  407. package/{esm → types}/divider/divider.styles.d.ts +82 -0
  408. package/{cjs → types}/divider/index.d.ts +0 -0
  409. package/{cjs → types}/grid/grid-container.d.ts +0 -0
  410. package/{cjs → types}/grid/grid-item.d.ts +0 -0
  411. package/{cjs → types}/grid/grid.d.ts +0 -0
  412. package/{cjs → types}/grid/grid.styles.d.ts +82 -0
  413. package/{cjs → types}/grid/index.d.ts +0 -0
  414. package/{cjs → types}/image/image.d.ts +0 -0
  415. package/{cjs → types}/image/image.skeleton.d.ts +0 -0
  416. package/{esm → types}/image/image.styles.d.ts +123 -0
  417. package/{cjs → types}/image/index.d.ts +0 -0
  418. package/{cjs → types}/index.d.ts +0 -0
  419. package/{cjs → types}/input/index.d.ts +0 -0
  420. package/{cjs → types}/input/input-password.d.ts +0 -0
  421. package/{cjs → types}/input/input-props.d.ts +0 -0
  422. package/{cjs → types}/input/input.d.ts +0 -0
  423. package/{cjs → types}/input/input.styles.d.ts +451 -0
  424. package/{cjs → types}/input/password-icon.d.ts +0 -0
  425. package/{cjs → types}/link/icon.d.ts +0 -0
  426. package/{cjs → types}/link/index.d.ts +0 -0
  427. package/{cjs → types}/link/link.d.ts +1 -1
  428. package/{cjs → types}/link/link.styles.d.ts +83 -1
  429. package/{cjs → types}/loading/index.d.ts +0 -0
  430. package/{cjs → types}/loading/loading.d.ts +0 -0
  431. package/{esm → types}/loading/loading.styles.d.ts +246 -0
  432. package/{cjs → types}/loading/spinner.d.ts +0 -0
  433. package/{cjs → types}/modal/index.d.ts +0 -0
  434. package/{cjs → types}/modal/modal-body.d.ts +0 -0
  435. package/{cjs → types}/modal/modal-close-button.d.ts +0 -0
  436. package/{cjs → types}/modal/modal-context.d.ts +0 -0
  437. package/{cjs → types}/modal/modal-footer.d.ts +0 -0
  438. package/{cjs → types}/modal/modal-header.d.ts +0 -0
  439. package/{cjs → types}/modal/modal-wrapper.d.ts +0 -0
  440. package/{cjs → types}/modal/modal.d.ts +0 -0
  441. package/{cjs → types}/modal/modal.styles.d.ts +246 -0
  442. package/{cjs → types}/modal/use-modal.d.ts +0 -0
  443. package/{cjs → types}/pagination/index.d.ts +0 -0
  444. package/{cjs → types}/pagination/pagination-ellipsis.d.ts +0 -0
  445. package/{cjs → types}/pagination/pagination-highlight.d.ts +0 -0
  446. package/{cjs → types}/pagination/pagination-icon.d.ts +0 -0
  447. package/{cjs → types}/pagination/pagination-item.d.ts +0 -0
  448. package/{cjs → types}/pagination/pagination.d.ts +0 -0
  449. package/{esm → types}/pagination/pagination.styles.d.ts +246 -0
  450. package/{cjs → types}/progress/index.d.ts +0 -0
  451. package/{esm → types}/progress/progress.d.ts +1 -1
  452. package/{esm → types}/progress/progress.styles.d.ts +83 -1
  453. package/{cjs → types}/radio/index.d.ts +0 -0
  454. package/{cjs → types}/radio/radio-context.d.ts +0 -0
  455. package/{cjs → types}/radio/radio-group.d.ts +0 -0
  456. package/{cjs → types}/radio/radio.d.ts +0 -0
  457. package/{cjs → types}/radio/radio.styles.d.ts +246 -0
  458. package/{cjs → types}/row/index.d.ts +0 -0
  459. package/{cjs → types}/row/row.d.ts +0 -0
  460. package/{cjs → types}/row/row.styles.d.ts +41 -0
  461. package/{cjs → types}/snippet/index.d.ts +0 -0
  462. package/{cjs → types}/snippet/snippet-icon.d.ts +0 -0
  463. package/{cjs → types}/snippet/snippet.d.ts +0 -0
  464. package/{esm → types}/snippet/snippet.styles.d.ts +164 -0
  465. package/{cjs → types}/spacer/index.d.ts +0 -0
  466. package/{cjs → types}/spacer/spacer.d.ts +0 -0
  467. package/{cjs → types}/spacer/spacer.styles.d.ts +41 -0
  468. package/{cjs → types}/switch/index.d.ts +1 -1
  469. package/{cjs → types}/switch/switch.d.ts +0 -0
  470. package/{cjs → types}/switch/switch.styles.d.ts +164 -0
  471. package/{esm → types}/text/child.d.ts +2 -0
  472. package/{cjs → types}/text/index.d.ts +0 -0
  473. package/{cjs → types}/text/text.d.ts +3 -3
  474. package/{cjs → types}/text/text.styles.d.ts +41 -0
  475. package/{cjs → types}/textarea/index.d.ts +0 -0
  476. package/{cjs → types}/textarea/textarea.d.ts +0 -0
  477. package/{cjs → types}/textarea/utils.d.ts +0 -0
  478. package/{cjs → types}/theme/common.d.ts +76 -0
  479. package/{cjs → types}/theme/dark-theme.d.ts +10 -0
  480. package/{cjs → types}/theme/light-theme.d.ts +0 -0
  481. package/{cjs → types}/theme/stitches.config.d.ts +5411 -4087
  482. package/{cjs → types}/theme/theme-context.d.ts +0 -0
  483. package/{cjs → types}/theme/theme-provider.d.ts +0 -0
  484. package/{cjs → types}/theme/types.d.ts +1 -0
  485. package/{cjs → types}/theme/utils.d.ts +0 -0
  486. package/{cjs → types}/tooltip/index.d.ts +0 -0
  487. package/{cjs → types}/tooltip/placement.d.ts +0 -0
  488. package/{cjs → types}/tooltip/tooltip-content.d.ts +0 -0
  489. package/{esm → types}/tooltip/tooltip.d.ts +4 -1
  490. package/{esm → types}/tooltip/tooltip.styles.d.ts +164 -0
  491. package/{cjs → types}/use-body-scroll/index.d.ts +0 -0
  492. package/{cjs → types}/use-body-scroll/use-body-scroll.d.ts +0 -0
  493. package/{cjs → types}/use-click-anywhere/index.d.ts +0 -0
  494. package/{cjs → types}/use-click-anywhere/use-click-anywhere.d.ts +0 -0
  495. package/{cjs → types}/use-click-away/index.d.ts +0 -0
  496. package/{cjs → types}/use-click-away/use-click-away.d.ts +0 -0
  497. package/{cjs → types}/use-clipboard/index.d.ts +0 -0
  498. package/{cjs → types}/use-clipboard/use-clipboard.d.ts +0 -0
  499. package/{cjs → types}/use-current-state/index.d.ts +0 -0
  500. package/{cjs → types}/use-current-state/use-current-state.d.ts +0 -0
  501. package/{cjs → types}/use-drip/index.d.ts +0 -0
  502. package/{cjs → types}/use-drip/use-drip.d.ts +0 -0
  503. package/{cjs → types}/use-input/index.d.ts +0 -0
  504. package/{cjs → types}/use-input/use-input.d.ts +0 -0
  505. package/{cjs → types}/use-keyboard/codes.d.ts +0 -0
  506. package/{cjs → types}/use-keyboard/helper.d.ts +0 -0
  507. package/{cjs → types}/use-keyboard/index.d.ts +0 -0
  508. package/{cjs → types}/use-keyboard/use-keyboard.d.ts +0 -0
  509. package/{cjs → types}/use-pagination/index.d.ts +0 -0
  510. package/{cjs → types}/use-portal/index.d.ts +0 -0
  511. package/{cjs → types}/use-portal/use-portal.d.ts +0 -0
  512. package/{cjs → types}/use-real-shape/index.d.ts +0 -0
  513. package/{cjs → types}/use-real-shape/use-real-shape.d.ts +0 -0
  514. package/{cjs → types}/use-resize/index.d.ts +0 -0
  515. package/{cjs → types}/use-resize/use-resize.d.ts +0 -0
  516. package/{cjs → types}/use-ssr/index.d.ts +0 -0
  517. package/{cjs → types}/use-ssr/use-ssr.d.ts +0 -0
  518. package/{cjs → types}/use-theme/index.d.ts +0 -0
  519. package/{cjs → types}/use-theme/use-theme.d.ts +0 -0
  520. package/{cjs → types}/use-warning/index.d.ts +0 -0
  521. package/{cjs → types}/use-warning/use-warning.d.ts +0 -0
  522. package/{cjs → types}/user/index.d.ts +0 -0
  523. package/{cjs → types}/user/user-link.d.ts +0 -0
  524. package/{cjs → types}/user/user.d.ts +0 -0
  525. package/{cjs → types}/user/user.styles.d.ts +205 -0
  526. package/{cjs → types}/utils/assertion.d.ts +0 -0
  527. package/{cjs → types}/utils/clear-icon.d.ts +0 -0
  528. package/{cjs → types}/utils/clsx.d.ts +0 -0
  529. package/{cjs → types}/utils/collections.d.ts +0 -0
  530. package/{cjs → types}/utils/color.d.ts +0 -0
  531. package/{cjs → types}/utils/css-transition.d.ts +0 -0
  532. package/{cjs → types}/utils/deep-merge.d.ts +0 -0
  533. package/{cjs → types}/utils/dimensions.d.ts +0 -0
  534. package/{cjs → types}/utils/drip.d.ts +41 -0
  535. package/{cjs → types}/utils/expand.d.ts +0 -0
  536. package/{cjs → types}/utils/numbers.d.ts +0 -0
  537. package/{cjs → types}/utils/object.d.ts +0 -0
  538. package/{cjs → types}/utils/prop-types.d.ts +0 -0
  539. package/{cjs → types}/utils/with-defaults.d.ts +0 -0
  540. package/umd/nextui.js +4532 -602
  541. package/umd/nextui.min.js +1 -1
  542. package/cjs/avatar/avatar.styles.d.ts +0 -904
  543. package/cjs/button/button-icon.d.ts +0 -909
  544. package/cjs/button/button.styles.d.ts +0 -907
  545. package/cjs/code/code.styles.d.ts +0 -1782
  546. package/cjs/collapse/collapse.d.ts +0 -41
  547. package/cjs/collapse/collapse.styles.d.ts +0 -4472
  548. package/cjs/divider/divider.styles.d.ts +0 -1787
  549. package/cjs/image/image.styles.d.ts +0 -2676
  550. package/cjs/loading/loading.styles.d.ts +0 -5356
  551. package/cjs/pagination/pagination.styles.d.ts +0 -5369
  552. package/cjs/progress/progress.d.ts +0 -65
  553. package/cjs/progress/progress.styles.d.ts +0 -1793
  554. package/cjs/snippet/snippet.styles.d.ts +0 -3570
  555. package/cjs/text/child.d.ts +0 -21
  556. package/cjs/theme/ssr-provider.d.ts +0 -7
  557. package/cjs/theme/ssr-provider.js +0 -51
  558. package/cjs/tooltip/tooltip.d.ts +0 -56
  559. package/cjs/tooltip/tooltip.styles.d.ts +0 -3571
  560. package/esm/avatar/avatar-group.d.ts +0 -13
  561. package/esm/avatar/avatar-group.styles.d.ts +0 -1785
  562. package/esm/avatar/avatar.d.ts +0 -21
  563. package/esm/avatar/index.d.ts +0 -7
  564. package/esm/backdrop/backdrop.d.ts +0 -37
  565. package/esm/backdrop/index.d.ts +0 -5
  566. package/esm/button/button-group-context.d.ts +0 -20
  567. package/esm/button/button-group.d.ts +0 -34
  568. package/esm/button/button-group.styles.d.ts +0 -899
  569. package/esm/button/button.d.ts +0 -30
  570. package/esm/button/button.styles.d.ts +0 -907
  571. package/esm/button/index.d.ts +0 -10
  572. package/esm/button/utils.d.ts +0 -4
  573. package/esm/card/card.d.ts +0 -23
  574. package/esm/card/card.styles.d.ts +0 -3575
  575. package/esm/card/index.d.ts +0 -5
  576. package/esm/checkbox/checkbox-context.d.ts +0 -13
  577. package/esm/checkbox/checkbox-group.d.ts +0 -29
  578. package/esm/checkbox/checkbox.d.ts +0 -58
  579. package/esm/checkbox/checkbox.styles.d.ts +0 -8054
  580. package/esm/checkbox/index.d.ts +0 -6
  581. package/esm/code/code.d.ts +0 -15
  582. package/esm/code/index.d.ts +0 -5
  583. package/esm/col/col.d.ts +0 -20
  584. package/esm/col/col.styles.d.ts +0 -893
  585. package/esm/col/index.d.ts +0 -5
  586. package/esm/collapse/collapse-context.d.ts +0 -9
  587. package/esm/collapse/collapse-group.d.ts +0 -18
  588. package/esm/collapse/collapse-icon.d.ts +0 -19
  589. package/esm/collapse/index.d.ts +0 -6
  590. package/esm/container/container.d.ts +0 -40
  591. package/esm/container/container.styles.d.ts +0 -896
  592. package/esm/container/index.d.ts +0 -5
  593. package/esm/css-baseline/css-baseline.d.ts +0 -9
  594. package/esm/css-baseline/index.d.ts +0 -1
  595. package/esm/divider/divider.d.ts +0 -22
  596. package/esm/divider/index.d.ts +0 -5
  597. package/esm/grid/grid-container.d.ts +0 -22
  598. package/esm/grid/grid-item.d.ts +0 -37
  599. package/esm/grid/grid.d.ts +0 -9
  600. package/esm/grid/grid.styles.d.ts +0 -1783
  601. package/esm/grid/index.d.ts +0 -7
  602. package/esm/image/image.d.ts +0 -29
  603. package/esm/image/image.skeleton.d.ts +0 -19
  604. package/esm/image/index.d.ts +0 -5
  605. package/esm/index.d.ts +0 -79
  606. package/esm/input/index.d.ts +0 -7
  607. package/esm/input/input-password.d.ts +0 -98
  608. package/esm/input/input-props.d.ts +0 -66
  609. package/esm/input/input.d.ts +0 -18
  610. package/esm/input/input.styles.d.ts +0 -9854
  611. package/esm/input/password-icon.d.ts +0 -6
  612. package/esm/link/icon.d.ts +0 -4
  613. package/esm/link/index.d.ts +0 -5
  614. package/esm/link/link.d.ts +0 -43
  615. package/esm/link/link.styles.d.ts +0 -1788
  616. package/esm/loading/index.d.ts +0 -7
  617. package/esm/loading/loading.d.ts +0 -24
  618. package/esm/loading/spinner.d.ts +0 -17
  619. package/esm/modal/index.d.ts +0 -8
  620. package/esm/modal/modal-body.d.ts +0 -45
  621. package/esm/modal/modal-close-button.d.ts +0 -13
  622. package/esm/modal/modal-context.d.ts +0 -8
  623. package/esm/modal/modal-footer.d.ts +0 -24
  624. package/esm/modal/modal-header.d.ts +0 -24
  625. package/esm/modal/modal-wrapper.d.ts +0 -24
  626. package/esm/modal/modal.d.ts +0 -42
  627. package/esm/modal/modal.styles.d.ts +0 -5362
  628. package/esm/modal/use-modal.d.ts +0 -11
  629. package/esm/pagination/index.d.ts +0 -7
  630. package/esm/pagination/pagination-ellipsis.d.ts +0 -11
  631. package/esm/pagination/pagination-highlight.d.ts +0 -14
  632. package/esm/pagination/pagination-icon.d.ts +0 -16
  633. package/esm/pagination/pagination-item.d.ts +0 -22
  634. package/esm/pagination/pagination.d.ts +0 -46
  635. package/esm/progress/index.d.ts +0 -5
  636. package/esm/radio/index.d.ts +0 -4
  637. package/esm/radio/radio-context.d.ts +0 -13
  638. package/esm/radio/radio-group.d.ts +0 -30
  639. package/esm/radio/radio.d.ts +0 -45
  640. package/esm/radio/radio.styles.d.ts +0 -5357
  641. package/esm/row/index.d.ts +0 -5
  642. package/esm/row/row.d.ts +0 -21
  643. package/esm/row/row.styles.d.ts +0 -895
  644. package/esm/snippet/index.d.ts +0 -5
  645. package/esm/snippet/snippet-icon.d.ts +0 -21
  646. package/esm/snippet/snippet.d.ts +0 -35
  647. package/esm/spacer/index.d.ts +0 -5
  648. package/esm/spacer/spacer.d.ts +0 -41
  649. package/esm/spacer/spacer.styles.d.ts +0 -894
  650. package/esm/switch/index.d.ts +0 -5
  651. package/esm/switch/switch.d.ts +0 -82
  652. package/esm/switch/switch.styles.d.ts +0 -3576
  653. package/esm/text/index.d.ts +0 -4
  654. package/esm/text/text.d.ts +0 -59
  655. package/esm/text/text.styles.d.ts +0 -894
  656. package/esm/textarea/index.d.ts +0 -3
  657. package/esm/textarea/textarea.d.ts +0 -42
  658. package/esm/textarea/utils.d.ts +0 -13
  659. package/esm/theme/common.d.ts +0 -1584
  660. package/esm/theme/dark-theme.d.ts +0 -33
  661. package/esm/theme/light-theme.d.ts +0 -28
  662. package/esm/theme/ssr-provider.d.ts +0 -7
  663. package/esm/theme/ssr-provider.js +0 -51
  664. package/esm/theme/stitches.config.d.ts +0 -8700
  665. package/esm/theme/theme-context.d.ts +0 -5
  666. package/esm/theme/theme-provider.d.ts +0 -14
  667. package/esm/theme/types.d.ts +0 -75
  668. package/esm/theme/utils.d.ts +0 -16
  669. package/esm/tooltip/index.d.ts +0 -6
  670. package/esm/tooltip/placement.d.ts +0 -39
  671. package/esm/tooltip/tooltip-content.d.ts +0 -27
  672. package/esm/use-body-scroll/index.d.ts +0 -3
  673. package/esm/use-body-scroll/use-body-scroll.d.ts +0 -9
  674. package/esm/use-click-anywhere/index.d.ts +0 -2
  675. package/esm/use-click-anywhere/use-click-anywhere.d.ts +0 -2
  676. package/esm/use-click-away/index.d.ts +0 -2
  677. package/esm/use-click-away/use-click-away.d.ts +0 -3
  678. package/esm/use-clipboard/index.d.ts +0 -3
  679. package/esm/use-clipboard/use-clipboard.d.ts +0 -8
  680. package/esm/use-current-state/index.d.ts +0 -2
  681. package/esm/use-current-state/use-current-state.d.ts +0 -8
  682. package/esm/use-drip/index.d.ts +0 -2
  683. package/esm/use-drip/use-drip.d.ts +0 -9
  684. package/esm/use-input/index.d.ts +0 -2
  685. package/esm/use-input/use-input.d.ts +0 -13
  686. package/esm/use-keyboard/codes.d.ts +0 -92
  687. package/esm/use-keyboard/helper.d.ts +0 -3
  688. package/esm/use-keyboard/index.d.ts +0 -5
  689. package/esm/use-keyboard/use-keyboard.d.ts +0 -22
  690. package/esm/use-pagination/index.d.ts +0 -20
  691. package/esm/use-portal/index.d.ts +0 -2
  692. package/esm/use-portal/use-portal.d.ts +0 -2
  693. package/esm/use-real-shape/index.d.ts +0 -2
  694. package/esm/use-real-shape/use-real-shape.d.ts +0 -9
  695. package/esm/use-resize/index.d.ts +0 -2
  696. package/esm/use-resize/use-resize.d.ts +0 -2
  697. package/esm/use-ssr/index.d.ts +0 -2
  698. package/esm/use-ssr/use-ssr.d.ts +0 -6
  699. package/esm/use-theme/index.d.ts +0 -2
  700. package/esm/use-theme/use-theme.d.ts +0 -3
  701. package/esm/use-warning/index.d.ts +0 -2
  702. package/esm/use-warning/use-warning.d.ts +0 -2
  703. package/esm/user/index.d.ts +0 -6
  704. package/esm/user/user-link.d.ts +0 -32
  705. package/esm/user/user.d.ts +0 -35
  706. package/esm/user/user.styles.d.ts +0 -4456
  707. package/esm/utils/assertion.d.ts +0 -8
  708. package/esm/utils/clear-icon.d.ts +0 -16
  709. package/esm/utils/clsx.d.ts +0 -1
  710. package/esm/utils/collections.d.ts +0 -12
  711. package/esm/utils/color.d.ts +0 -28
  712. package/esm/utils/css-transition.d.ts +0 -27
  713. package/esm/utils/deep-merge.d.ts +0 -1
  714. package/esm/utils/dimensions.d.ts +0 -1
  715. package/esm/utils/drip.d.ts +0 -936
  716. package/esm/utils/expand.d.ts +0 -20
  717. package/esm/utils/numbers.d.ts +0 -9
  718. package/esm/utils/object.d.ts +0 -11
  719. package/esm/utils/prop-types.d.ts +0 -54
  720. package/esm/utils/with-defaults.d.ts +0 -3
@@ -1,109 +1 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- exports.__esModule = true;
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _stitches = require("../theme/stitches.config");
11
-
12
- var _withDefaults = _interopRequireDefault(require("../utils/with-defaults"));
13
-
14
- var _useRealShape = _interopRequireDefault(require("../use-real-shape"));
15
-
16
- var _jsxRuntime = require("react/jsx-runtime");
17
-
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
-
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
-
22
- const defaultProps = {
23
- isExpanded: false,
24
- animated: true,
25
- delay: 200
26
- };
27
- const StyledExpand = (0, _stitches.styled)('div', {
28
- p: 0,
29
- m: 0,
30
- h: 0,
31
- opacity: 0,
32
- overflow: 'hidden',
33
- variants: {
34
- expanded: {
35
- true: {
36
- opacity: 1
37
- }
38
- }
39
- }
40
- });
41
-
42
- const Expand = ({
43
- isExpanded,
44
- delay,
45
- animated,
46
- css,
47
- children
48
- }) => {
49
- const [height, setHeight] = (0, _react.useState)(isExpanded ? 'auto' : '0');
50
- const [selfExpanded, setSelfExpanded] = (0, _react.useState)(isExpanded);
51
- const contentRef = (0, _react.useRef)(null);
52
- const entryTimer = (0, _react.useRef)();
53
- const leaveTimer = (0, _react.useRef)();
54
- const resetTimer = (0, _react.useRef)();
55
- const [state, updateShape] = (0, _useRealShape.default)(contentRef);
56
- (0, _react.useEffect)(() => setHeight(`${state.height}px`), [state.height]);
57
- (0, _react.useEffect)(() => {
58
- if (isExpanded === selfExpanded) return; // show element or reset height.
59
- // force an update once manually, even if the element does not change.
60
- // (the height of the element might be "auto")
61
-
62
- if (!isExpanded) {
63
- updateShape();
64
- setHeight(`${state.height}px`);
65
- } // show expand animation
66
-
67
-
68
- entryTimer.current = window.setTimeout(() => {
69
- setSelfExpanded(isExpanded);
70
- clearTimeout(entryTimer.current);
71
- }, 30); // Reset height after animation
72
-
73
- if (isExpanded) {
74
- resetTimer.current = window.setTimeout(() => {
75
- setHeight('auto');
76
- clearTimeout(resetTimer.current);
77
- }, delay);
78
- } else {
79
- leaveTimer.current = window.setTimeout(() => {
80
- clearTimeout(leaveTimer.current);
81
- }, delay / 2);
82
- }
83
-
84
- return () => {
85
- clearTimeout(entryTimer.current);
86
- clearTimeout(leaveTimer.current);
87
- clearTimeout(resetTimer.current);
88
- };
89
- }, [isExpanded]);
90
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledExpand, {
91
- expanded: selfExpanded,
92
- css: {
93
- height: selfExpanded ? height : '0',
94
- transition: animated ? `height ${delay}ms ease 0ms,
95
- opacity ${delay * 1.5}ms ease 0ms;` : 'none',
96
- ...css
97
- },
98
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
99
- ref: contentRef,
100
- className: "nextui-expand-content",
101
- children: children
102
- })
103
- });
104
- };
105
-
106
- var _default = (0, _withDefaults.default)(Expand, defaultProps);
107
-
108
- exports.default = _default;
109
- module.exports = exports.default;
1
+ var e=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.default=void 0;var t=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var u={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(u,i,o):u[i]=e[i]}u.default=e,r&&r.set(e,u);return u}(require("react")),r=require("../theme/stitches.config"),u=e(require("../utils/with-defaults")),n=e(require("../use-real-shape")),i=require("react/jsx-runtime");function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}const o=(0,r.styled)("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}});var s=(0,u.default)((({isExpanded:e,delay:r,animated:u,css:a,children:s})=>{const[c,l]=(0,t.useState)(e?"auto":"0"),[d,f]=(0,t.useState)(e),p=(0,t.useRef)(null),h=(0,t.useRef)(),m=(0,t.useRef)(),x=(0,t.useRef)(),[y,v]=(0,n.default)(p);return(0,t.useEffect)((()=>l(`${y.height}px`)),[y.height]),(0,t.useEffect)((()=>{if(e!==d)return e||(v(),l(`${y.height}px`)),h.current=window.setTimeout((()=>{f(e),clearTimeout(h.current)}),30),e?x.current=window.setTimeout((()=>{l("auto"),clearTimeout(x.current)}),r):m.current=window.setTimeout((()=>{clearTimeout(m.current)}),r/2),()=>{clearTimeout(h.current),clearTimeout(m.current),clearTimeout(x.current)}}),[e]),(0,i.jsx)(o,{expanded:d,css:{height:d?c:"0",transition:u?`height ${r}ms ease 0ms,\n opacity ${1.5*r}ms ease 0ms;`:"none",...a},children:(0,i.jsx)("div",{ref:p,className:"nextui-expand-content",children:s})})}),{isExpanded:!1,animated:!0,delay:200});exports.default=s,module.exports=exports.default;
@@ -1,481 +1 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- exports.__esModule = true;
6
- exports.VolumeUp = exports.User = exports.Unlock = exports.Sun = exports.Plus = exports.Password = exports.Notification = exports.Moon = exports.Minus = exports.Mail = exports.Lock = exports.Camera = exports.Activity = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _jsxRuntime = require("react/jsx-runtime");
11
-
12
- const Sun = ({
13
- theme,
14
- fill,
15
- filled,
16
- size,
17
- height,
18
- width,
19
- label,
20
- ...props
21
- }) => {
22
- if (filled) {
23
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
24
- viewBox: "0 0 512 512",
25
- width: size || width || 24,
26
- height: size || height || 24,
27
- ...props,
28
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
- fill: fill,
30
- d: "M256 118a22 22 0 01-22-22V48a22 22 0 0144 0v48a22 22 0 01-22 22zM256 486a22 22 0 01-22-22v-48a22 22 0 0144 0v48a22 22 0 01-22 22zM369.14 164.86a22 22 0 01-15.56-37.55l33.94-33.94a22 22 0 0131.11 31.11l-33.94 33.94a21.93 21.93 0 01-15.55 6.44zM108.92 425.08a22 22 0 01-15.55-37.56l33.94-33.94a22 22 0 1131.11 31.11l-33.94 33.94a21.94 21.94 0 01-15.56 6.45zM464 278h-48a22 22 0 010-44h48a22 22 0 010 44zM96 278H48a22 22 0 010-44h48a22 22 0 010 44zM403.08 425.08a21.94 21.94 0 01-15.56-6.45l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.55 37.56zM142.86 164.86a21.89 21.89 0 01-15.55-6.44l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.56 37.55zM256 358a102 102 0 11102-102 102.12 102.12 0 01-102 102z"
31
- })
32
- });
33
- }
34
-
35
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
36
- viewBox: "0 0 512 512",
37
- width: size || width || 24,
38
- height: size || height || 24,
39
- ...props,
40
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
41
- fill: "none",
42
- stroke: fill,
43
- strokeLinecap: "round",
44
- strokeMiterlimit: 10,
45
- strokeWidth: 32,
46
- d: "M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94"
47
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
48
- cx: 256,
49
- cy: 256,
50
- r: 80,
51
- fill: "none",
52
- stroke: fill,
53
- strokeLinecap: "round",
54
- strokeMiterlimit: 10,
55
- strokeWidth: 32
56
- })]
57
- });
58
- };
59
-
60
- exports.Sun = Sun;
61
-
62
- const Mail = ({
63
- theme,
64
- fill,
65
- size,
66
- height,
67
- width,
68
- ...props
69
- }) => {
70
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
71
- width: size || width || 24,
72
- height: size || height || 24,
73
- viewBox: "0 0 24 24",
74
- ...props,
75
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
76
- fill: "none",
77
- stroke: fill,
78
- strokeLinecap: "round",
79
- strokeLinejoin: "round",
80
- strokeWidth: 1.5,
81
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
82
- d: "M12 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v3"
83
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
84
- d: "M17 9l-3.13 2.5a3.166 3.166 0 01-3.75 0L7 9M19.21 14.77l-3.539 3.54a1.232 1.232 0 00-.3.59l-.19 1.35a.635.635 0 00.76.76l1.35-.19a1.189 1.189 0 00.59-.3l3.54-3.54a1.365 1.365 0 000-2.22 1.361 1.361 0 00-2.211.01zM18.7 15.28a3.185 3.185 0 002.22 2.22"
85
- })]
86
- })
87
- });
88
- };
89
-
90
- exports.Mail = Mail;
91
-
92
- const Moon = ({
93
- theme,
94
- fill,
95
- filled,
96
- size,
97
- height,
98
- width,
99
- label,
100
- ...props
101
- }) => {
102
- if (filled) {
103
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
104
- viewBox: "0 0 512 512",
105
- width: size || width || 24,
106
- height: size || height || 24,
107
- ...props,
108
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
109
- fill: fill,
110
- d: "M152.62 126.77c0-33 4.85-66.35 17.23-94.77C87.54 67.83 32 151.89 32 247.38 32 375.85 136.15 480 264.62 480c95.49 0 179.55-55.54 215.38-137.85-28.42 12.38-61.8 17.23-94.77 17.23-128.47 0-232.61-104.14-232.61-232.61z"
111
- })
112
- });
113
- }
114
-
115
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
116
- viewBox: "0 0 512 512",
117
- width: size || width || 24,
118
- height: size || height || 24,
119
- ...props,
120
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
121
- d: "M160 136c0-30.62 4.51-61.61 16-88C99.57 81.27 48 159.32 48 248c0 119.29 96.71 216 216 216 88.68 0 166.73-51.57 200-128-26.39 11.49-57.38 16-88 16-119.29 0-216-96.71-216-216z",
122
- fill: "none",
123
- stroke: fill,
124
- strokeLinecap: "round",
125
- strokeLinejoin: "round",
126
- strokeWidth: 32
127
- })
128
- });
129
- };
130
-
131
- exports.Moon = Moon;
132
-
133
- const Lock = ({
134
- theme,
135
- fill,
136
- filled,
137
- size,
138
- height,
139
- width,
140
- label,
141
- ...props
142
- }) => {
143
- const color = fill;
144
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
145
- "data-name": "Iconly/Curved/Lock",
146
- xmlns: "http://www.w3.org/2000/svg",
147
- width: size || width || 24,
148
- height: size || height || 24,
149
- viewBox: "0 0 24 24",
150
- ...props,
151
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
152
- transform: "translate(3.5 2)",
153
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
154
- d: "M9.121,6.653V4.5A4.561,4.561,0,0,0,0,4.484V6.653",
155
- transform: "translate(3.85 0.75)",
156
- fill: "none",
157
- stroke: color,
158
- strokeLinecap: "round",
159
- strokeLinejoin: "round",
160
- strokeMiterlimit: "10",
161
- strokeWidth: 1.5
162
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
163
- d: "M.5,0V2.221",
164
- transform: "translate(7.91 12.156)",
165
- fill: "none",
166
- stroke: color,
167
- strokeLinecap: "round",
168
- strokeLinejoin: "round",
169
- strokeMiterlimit: "10",
170
- strokeWidth: 1.5
171
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
172
- d: "M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.4,0,7.66,0Z",
173
- transform: "translate(0.75 6.824)",
174
- fill: "none",
175
- stroke: color,
176
- strokeLinecap: "round",
177
- strokeLinejoin: "round",
178
- strokeMiterlimit: "10",
179
- strokeWidth: 1.5
180
- })]
181
- })
182
- });
183
- };
184
-
185
- exports.Lock = Lock;
186
-
187
- const Unlock = ({
188
- theme,
189
- fill,
190
- filled,
191
- size,
192
- height,
193
- width,
194
- label,
195
- ...props
196
- }) => {
197
- const color = fill;
198
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
199
- "data-name": "Iconly/Curved/Lock",
200
- xmlns: "http://www.w3.org/2000/svg",
201
- width: size || width || 24,
202
- height: size || height || 24,
203
- viewBox: "0 0 24 24",
204
- ...props,
205
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
206
- transform: "translate(3.5 2)",
207
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
208
- d: "M8.927,3.237A4.562,4.562,0,0,0,0,4.484V6.653",
209
- transform: "translate(3.849 0.75)",
210
- fill: "none",
211
- stroke: color,
212
- strokeLinecap: "round",
213
- strokeLinejoin: "round",
214
- strokeMiterlimit: "10",
215
- strokeWidth: 1.5
216
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
217
- d: "M.5,0V2.221",
218
- transform: "translate(7.91 12.156)",
219
- fill: "none",
220
- stroke: color,
221
- strokeLinecap: "round",
222
- strokeLinejoin: "round",
223
- strokeMiterlimit: "10",
224
- strokeWidth: 1.5
225
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
226
- d: "M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.406,0,7.66,0Z",
227
- transform: "translate(0.75 6.824)",
228
- fill: "none",
229
- stroke: color,
230
- strokeLinecap: "round",
231
- strokeLinejoin: "round",
232
- strokeMiterlimit: "10",
233
- strokeWidth: 1.5
234
- })]
235
- })
236
- });
237
- };
238
-
239
- exports.Unlock = Unlock;
240
-
241
- const Password = ({
242
- theme,
243
- fill,
244
- size,
245
- height,
246
- width,
247
- ...props
248
- }) => {
249
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
250
- width: size || width || 24,
251
- height: size || height || 24,
252
- viewBox: "0 0 24 24",
253
- ...props,
254
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
255
- fill: fill,
256
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
257
- d: "M18.75 8v2.1a12.984 12.984 0 00-1.5-.1V8c0-3.15-.89-5.25-5.25-5.25S6.75 4.85 6.75 8v2a12.984 12.984 0 00-1.5.1V8c0-2.9.7-6.75 6.75-6.75S18.75 5.1 18.75 8z"
258
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
259
- d: "M18.75 10.1a12.984 12.984 0 00-1.5-.1H6.75a12.984 12.984 0 00-1.5.1C2.7 10.41 2 11.66 2 15v2c0 4 1 5 5 5h10c4 0 5-1 5-5v-2c0-3.34-.7-4.59-3.25-4.9zM8.71 16.71A1.052 1.052 0 018 17a1 1 0 01-.38-.08 1.032 1.032 0 01-.33-.21A1.052 1.052 0 017 16a1 1 0 01.08-.38 1.155 1.155 0 01.21-.33 1.032 1.032 0 01.33-.21 1 1 0 011.09.21 1.155 1.155 0 01.21.33A1 1 0 019 16a1.052 1.052 0 01-.29.71zm4.21-.33a1.155 1.155 0 01-.21.33A1.052 1.052 0 0112 17a1.033 1.033 0 01-.71-.29 1.155 1.155 0 01-.21-.33A1 1 0 0111 16a1.033 1.033 0 01.29-.71 1.047 1.047 0 011.42 0A1.033 1.033 0 0113 16a1 1 0 01-.08.38zm3.79.33a1.014 1.014 0 01-1.42 0 1.014 1.014 0 010-1.42 1.047 1.047 0 011.42 0c.04.05.08.1.12.16a.556.556 0 01.09.17.636.636 0 01.06.18 1.5 1.5 0 01.02.2 1.052 1.052 0 01-.29.71z"
260
- })]
261
- })
262
- });
263
- };
264
-
265
- exports.Password = Password;
266
-
267
- const Notification = ({
268
- theme,
269
- fill,
270
- filled,
271
- size,
272
- height,
273
- width,
274
- label,
275
- ...props
276
- }) => {
277
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
278
- width: size || width || 24,
279
- height: size || height || 24,
280
- viewBox: "0 0 24 24",
281
- fill: "none",
282
- xmlns: "http://www.w3.org/2000/svg",
283
- ...props,
284
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
285
- fillRule: "evenodd",
286
- clipRule: "evenodd",
287
- d: "M18.707 8.796c0 1.256.332 1.997 1.063 2.85.553.628.73 1.435.73 2.31 0 .874-.287 1.704-.863 2.378a4.537 4.537 0 01-2.9 1.413c-1.571.134-3.143.247-4.736.247-1.595 0-3.166-.068-4.737-.247a4.532 4.532 0 01-2.9-1.413 3.616 3.616 0 01-.864-2.378c0-.875.178-1.682.73-2.31.754-.854 1.064-1.594 1.064-2.85V8.37c0-1.682.42-2.781 1.283-3.858C7.861 2.942 9.919 2 11.956 2h.09c2.08 0 4.204.987 5.466 2.625.82 1.054 1.195 2.108 1.195 3.745v.426zM9.074 20.061c0-.504.462-.734.89-.833.5-.106 3.545-.106 4.045 0 .428.099.89.33.89.833-.025.48-.306.904-.695 1.174a3.635 3.635 0 01-1.713.731 3.795 3.795 0 01-1.008 0 3.618 3.618 0 01-1.714-.732c-.39-.269-.67-.694-.695-1.173z",
288
- fill: fill
289
- })
290
- });
291
- };
292
-
293
- exports.Notification = Notification;
294
-
295
- const User = ({
296
- theme,
297
- fill,
298
- filled,
299
- size,
300
- height,
301
- width,
302
- label,
303
- ...props
304
- }) => {
305
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
306
- "data-name": "Iconly/Curved/Profile",
307
- xmlns: "http://www.w3.org/2000/svg",
308
- viewBox: "0 0 24 24",
309
- width: size || width || 24,
310
- height: size || height || 24,
311
- ...props,
312
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
313
- fill: "none",
314
- stroke: fill,
315
- strokeLinecap: "round",
316
- strokeLinejoin: "round",
317
- strokeMiterlimit: 10,
318
- strokeWidth: 1.5,
319
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
320
- "data-name": "Stroke 1",
321
- d: "M11.845 21.662C8.153 21.662 5 21.088 5 18.787s3.133-4.425 6.845-4.425c3.692 0 6.845 2.1 6.845 4.4s-3.134 2.9-6.845 2.9z"
322
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
323
- "data-name": "Stroke 3",
324
- d: "M11.837 11.174a4.372 4.372 0 10-.031 0z"
325
- })]
326
- })
327
- });
328
- };
329
-
330
- exports.User = User;
331
-
332
- const VolumeUp = ({
333
- theme,
334
- fill,
335
- filled,
336
- size,
337
- height,
338
- width,
339
- label,
340
- ...props
341
- }) => {
342
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
343
- xmlns: "http://www.w3.org/2000/svg",
344
- viewBox: "0 0 24 24",
345
- width: size || width || 24,
346
- height: size || height || 24,
347
- fill: "none",
348
- ...props,
349
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
350
- fillRule: "evenodd",
351
- clipRule: "evenodd",
352
- d: "M13.357 6.45c-.05-.486-.103-.99-.232-1.494C12.775 3.752 11.801 3 10.758 3c-.582-.002-1.318.356-1.736.72l-3.46 2.897h-1.81c-1.333 0-2.404 1.027-2.607 2.51-.172 1.424-.214 4.11 0 5.677.186 1.567 1.21 2.579 2.607 2.579h1.81l3.527 2.94c.362.315 1 .676 1.588.676l.105.001c1.063 0 2-.78 2.35-1.98.133-.509.18-.985.224-1.445l.001-.008.047-.459c.18-1.487.18-8.739 0-10.215l-.047-.442zm4.05.045a.907.907 0 00-1.279-.237.957.957 0 00-.228 1.308c.802 1.182 1.243 2.756 1.243 4.434 0 1.677-.441 3.252-1.243 4.434a.956.956 0 00.23 1.308.905.905 0 001.277-.237c1.012-1.492 1.571-3.447 1.571-5.505s-.559-4.013-1.571-5.505zM19.29 3.22a.905.905 0 011.277.236C22.136 5.767 23 8.802 23 12c0 3.2-.864 6.234-2.433 8.544a.902.902 0 01-1.276.236.957.957 0 01-.23-1.308c1.356-1.999 2.104-4.653 2.104-7.472 0-2.818-.748-5.472-2.105-7.471a.958.958 0 01.23-1.308z",
353
- fill: fill
354
- })
355
- });
356
- };
357
-
358
- exports.VolumeUp = VolumeUp;
359
-
360
- const Camera = ({
361
- theme,
362
- fill,
363
- filled,
364
- size,
365
- height,
366
- width,
367
- label,
368
- ...props
369
- }) => {
370
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
371
- width: size || width || 24,
372
- height: size || height || 24,
373
- viewBox: "0 0 24 24",
374
- fill: "none",
375
- xmlns: "http://www.w3.org/2000/svg",
376
- ...props,
377
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
378
- fillRule: "evenodd",
379
- clipRule: "evenodd",
380
- d: "M17.44 6.236c.04.07.11.12.2.12 2.4 0 4.36 1.958 4.36 4.355v5.934A4.368 4.368 0 0117.64 21H6.36A4.361 4.361 0 012 16.645V10.71a4.361 4.361 0 014.36-4.355c.08 0 .16-.04.19-.12l.06-.12.106-.222a97.79 97.79 0 01.714-1.486C7.89 3.51 8.67 3.01 9.64 3h4.71c.97.01 1.76.51 2.22 1.408.157.315.397.822.629 1.31l.141.299.1.22zm-.73 3.836c0 .5.4.9.9.9s.91-.4.91-.9-.41-.909-.91-.909-.9.41-.9.91zm-6.44 1.548c.47-.47 1.08-.719 1.73-.719.65 0 1.26.25 1.72.71.46.459.71 1.068.71 1.717A2.438 2.438 0 0112 15.756c-.65 0-1.26-.25-1.72-.71a2.408 2.408 0 01-.71-1.717v-.01c-.01-.63.24-1.24.7-1.699zm4.5 4.485a3.91 3.91 0 01-2.77 1.15 3.921 3.921 0 01-3.93-3.926 3.865 3.865 0 011.14-2.767A3.921 3.921 0 0112 9.402c1.05 0 2.04.41 2.78 1.15.74.749 1.15 1.738 1.15 2.777a3.958 3.958 0 01-1.16 2.776z",
381
- fill: fill
382
- })
383
- });
384
- };
385
-
386
- exports.Camera = Camera;
387
-
388
- const Activity = ({
389
- theme,
390
- fill,
391
- filled,
392
- size,
393
- height,
394
- width,
395
- label,
396
- ...props
397
- }) => {
398
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
399
- "data-name": "Iconly/Curved/Activity",
400
- xmlns: "http://www.w3.org/2000/svg",
401
- width: size || width || 24,
402
- height: size || height || 24,
403
- viewBox: "0 0 24 24",
404
- ...props,
405
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
406
- fill: "none",
407
- stroke: fill,
408
- strokeLinecap: "round",
409
- strokeLinejoin: "round",
410
- strokeMiterlimit: 10,
411
- strokeWidth: 1.5,
412
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
413
- d: "M6.918 14.854l2.993-3.889 3.414 2.68 2.929-3.78"
414
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
415
- d: "M19.668 2.35a1.922 1.922 0 11-1.922 1.922 1.921 1.921 0 011.922-1.922z"
416
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
417
- d: "M20.756 9.269a20.809 20.809 0 01.194 3.034c0 6.938-2.312 9.25-9.25 9.25s-9.25-2.312-9.25-9.25 2.313-9.25 9.25-9.25a20.931 20.931 0 012.983.187"
418
- })]
419
- })
420
- });
421
- };
422
-
423
- exports.Activity = Activity;
424
-
425
- const Plus = ({
426
- theme,
427
- fill,
428
- size,
429
- height,
430
- width,
431
- ...props
432
- }) => {
433
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
434
- xmlns: "http://www.w3.org/2000/svg",
435
- width: size || width || 24,
436
- height: size || height || 24,
437
- viewBox: "0 0 24 24",
438
- ...props,
439
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
440
- fill: "none",
441
- stroke: fill,
442
- strokeLinecap: "round",
443
- strokeLinejoin: "round",
444
- strokeWidth: 1.5,
445
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
446
- d: "M6 12h12"
447
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
448
- d: "M12 18V6"
449
- })]
450
- })
451
- });
452
- };
453
-
454
- exports.Plus = Plus;
455
-
456
- const Minus = ({
457
- theme,
458
- fill,
459
- size,
460
- height,
461
- width,
462
- ...props
463
- }) => {
464
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
465
- xmlns: "http://www.w3.org/2000/svg",
466
- width: size || width || 24,
467
- height: size || height || 24,
468
- viewBox: "0 0 24 24",
469
- ...props,
470
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
471
- d: "M6 12h12",
472
- fill: "none",
473
- stroke: fill,
474
- strokeLinecap: "round",
475
- strokeLinejoin: "round",
476
- strokeWidth: 1.5
477
- })
478
- });
479
- };
480
-
481
- exports.Minus = Minus;
1
+ var e=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.VolumeUp=exports.User=exports.Unlock=exports.Sun=exports.Plus=exports.Password=exports.Notification=exports.Moon=exports.Minus=exports.Mail=exports.Lock=exports.Camera=exports.Activity=void 0;e(require("react"));var t=require("react/jsx-runtime");exports.Sun=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>s?(0,t.jsx)("svg",{viewBox:"0 0 512 512",width:r||o||24,height:r||l||24,...n,children:(0,t.jsx)("path",{fill:i,d:"M256 118a22 22 0 01-22-22V48a22 22 0 0144 0v48a22 22 0 01-22 22zM256 486a22 22 0 01-22-22v-48a22 22 0 0144 0v48a22 22 0 01-22 22zM369.14 164.86a22 22 0 01-15.56-37.55l33.94-33.94a22 22 0 0131.11 31.11l-33.94 33.94a21.93 21.93 0 01-15.55 6.44zM108.92 425.08a22 22 0 01-15.55-37.56l33.94-33.94a22 22 0 1131.11 31.11l-33.94 33.94a21.94 21.94 0 01-15.56 6.45zM464 278h-48a22 22 0 010-44h48a22 22 0 010 44zM96 278H48a22 22 0 010-44h48a22 22 0 010 44zM403.08 425.08a21.94 21.94 0 01-15.56-6.45l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.55 37.56zM142.86 164.86a21.89 21.89 0 01-15.55-6.44l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.56 37.55zM256 358a102 102 0 11102-102 102.12 102.12 0 01-102 102z"})}):(0,t.jsxs)("svg",{viewBox:"0 0 512 512",width:r||o||24,height:r||l||24,...n,children:[(0,t.jsx)("path",{fill:"none",stroke:i,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94"}),(0,t.jsx)("circle",{cx:256,cy:256,r:80,fill:"none",stroke:i,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32})]});exports.Mail=({theme:e,fill:i,size:s,height:r,width:l,...o})=>(0,t.jsx)("svg",{width:s||l||24,height:s||r||24,viewBox:"0 0 24 24",...o,children:(0,t.jsxs)("g",{fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[(0,t.jsx)("path",{d:"M12 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v3"}),(0,t.jsx)("path",{d:"M17 9l-3.13 2.5a3.166 3.166 0 01-3.75 0L7 9M19.21 14.77l-3.539 3.54a1.232 1.232 0 00-.3.59l-.19 1.35a.635.635 0 00.76.76l1.35-.19a1.189 1.189 0 00.59-.3l3.54-3.54a1.365 1.365 0 000-2.22 1.361 1.361 0 00-2.211.01zM18.7 15.28a3.185 3.185 0 002.22 2.22"})]})});exports.Moon=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>s?(0,t.jsx)("svg",{viewBox:"0 0 512 512",width:r||o||24,height:r||l||24,...n,children:(0,t.jsx)("path",{fill:i,d:"M152.62 126.77c0-33 4.85-66.35 17.23-94.77C87.54 67.83 32 151.89 32 247.38 32 375.85 136.15 480 264.62 480c95.49 0 179.55-55.54 215.38-137.85-28.42 12.38-61.8 17.23-94.77 17.23-128.47 0-232.61-104.14-232.61-232.61z"})}):(0,t.jsx)("svg",{viewBox:"0 0 512 512",width:r||o||24,height:r||l||24,...n,children:(0,t.jsx)("path",{d:"M160 136c0-30.62 4.51-61.61 16-88C99.57 81.27 48 159.32 48 248c0 119.29 96.71 216 216 216 88.68 0 166.73-51.57 200-128-26.39 11.49-57.38 16-88 16-119.29 0-216-96.71-216-216z",fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32})});exports.Lock=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>{const a=i;return(0,t.jsx)("svg",{"data-name":"Iconly/Curved/Lock",xmlns:"http://www.w3.org/2000/svg",width:r||o||24,height:r||l||24,viewBox:"0 0 24 24",...n,children:(0,t.jsxs)("g",{transform:"translate(3.5 2)",children:[(0,t.jsx)("path",{d:"M9.121,6.653V4.5A4.561,4.561,0,0,0,0,4.484V6.653",transform:"translate(3.85 0.75)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),(0,t.jsx)("path",{d:"M.5,0V2.221",transform:"translate(7.91 12.156)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),(0,t.jsx)("path",{d:"M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.4,0,7.66,0Z",transform:"translate(0.75 6.824)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5})]})})};exports.Unlock=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>{const a=i;return(0,t.jsx)("svg",{"data-name":"Iconly/Curved/Lock",xmlns:"http://www.w3.org/2000/svg",width:r||o||24,height:r||l||24,viewBox:"0 0 24 24",...n,children:(0,t.jsxs)("g",{transform:"translate(3.5 2)",children:[(0,t.jsx)("path",{d:"M8.927,3.237A4.562,4.562,0,0,0,0,4.484V6.653",transform:"translate(3.849 0.75)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),(0,t.jsx)("path",{d:"M.5,0V2.221",transform:"translate(7.91 12.156)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),(0,t.jsx)("path",{d:"M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.406,0,7.66,0Z",transform:"translate(0.75 6.824)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5})]})})};exports.Password=({theme:e,fill:i,size:s,height:r,width:l,...o})=>(0,t.jsx)("svg",{width:s||l||24,height:s||r||24,viewBox:"0 0 24 24",...o,children:(0,t.jsxs)("g",{fill:i,children:[(0,t.jsx)("path",{d:"M18.75 8v2.1a12.984 12.984 0 00-1.5-.1V8c0-3.15-.89-5.25-5.25-5.25S6.75 4.85 6.75 8v2a12.984 12.984 0 00-1.5.1V8c0-2.9.7-6.75 6.75-6.75S18.75 5.1 18.75 8z"}),(0,t.jsx)("path",{d:"M18.75 10.1a12.984 12.984 0 00-1.5-.1H6.75a12.984 12.984 0 00-1.5.1C2.7 10.41 2 11.66 2 15v2c0 4 1 5 5 5h10c4 0 5-1 5-5v-2c0-3.34-.7-4.59-3.25-4.9zM8.71 16.71A1.052 1.052 0 018 17a1 1 0 01-.38-.08 1.032 1.032 0 01-.33-.21A1.052 1.052 0 017 16a1 1 0 01.08-.38 1.155 1.155 0 01.21-.33 1.032 1.032 0 01.33-.21 1 1 0 011.09.21 1.155 1.155 0 01.21.33A1 1 0 019 16a1.052 1.052 0 01-.29.71zm4.21-.33a1.155 1.155 0 01-.21.33A1.052 1.052 0 0112 17a1.033 1.033 0 01-.71-.29 1.155 1.155 0 01-.21-.33A1 1 0 0111 16a1.033 1.033 0 01.29-.71 1.047 1.047 0 011.42 0A1.033 1.033 0 0113 16a1 1 0 01-.08.38zm3.79.33a1.014 1.014 0 01-1.42 0 1.014 1.014 0 010-1.42 1.047 1.047 0 011.42 0c.04.05.08.1.12.16a.556.556 0 01.09.17.636.636 0 01.06.18 1.5 1.5 0 01.02.2 1.052 1.052 0 01-.29.71z"})]})});exports.Notification=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>(0,t.jsx)("svg",{width:r||o||24,height:r||l||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.707 8.796c0 1.256.332 1.997 1.063 2.85.553.628.73 1.435.73 2.31 0 .874-.287 1.704-.863 2.378a4.537 4.537 0 01-2.9 1.413c-1.571.134-3.143.247-4.736.247-1.595 0-3.166-.068-4.737-.247a4.532 4.532 0 01-2.9-1.413 3.616 3.616 0 01-.864-2.378c0-.875.178-1.682.73-2.31.754-.854 1.064-1.594 1.064-2.85V8.37c0-1.682.42-2.781 1.283-3.858C7.861 2.942 9.919 2 11.956 2h.09c2.08 0 4.204.987 5.466 2.625.82 1.054 1.195 2.108 1.195 3.745v.426zM9.074 20.061c0-.504.462-.734.89-.833.5-.106 3.545-.106 4.045 0 .428.099.89.33.89.833-.025.48-.306.904-.695 1.174a3.635 3.635 0 01-1.713.731 3.795 3.795 0 01-1.008 0 3.618 3.618 0 01-1.714-.732c-.39-.269-.67-.694-.695-1.173z",fill:i})});exports.User=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>(0,t.jsx)("svg",{"data-name":"Iconly/Curved/Profile",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:r||o||24,height:r||l||24,...n,children:(0,t.jsxs)("g",{fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[(0,t.jsx)("path",{"data-name":"Stroke 1",d:"M11.845 21.662C8.153 21.662 5 21.088 5 18.787s3.133-4.425 6.845-4.425c3.692 0 6.845 2.1 6.845 4.4s-3.134 2.9-6.845 2.9z"}),(0,t.jsx)("path",{"data-name":"Stroke 3",d:"M11.837 11.174a4.372 4.372 0 10-.031 0z"})]})});exports.VolumeUp=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:r||o||24,height:r||l||24,fill:"none",...n,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.357 6.45c-.05-.486-.103-.99-.232-1.494C12.775 3.752 11.801 3 10.758 3c-.582-.002-1.318.356-1.736.72l-3.46 2.897h-1.81c-1.333 0-2.404 1.027-2.607 2.51-.172 1.424-.214 4.11 0 5.677.186 1.567 1.21 2.579 2.607 2.579h1.81l3.527 2.94c.362.315 1 .676 1.588.676l.105.001c1.063 0 2-.78 2.35-1.98.133-.509.18-.985.224-1.445l.001-.008.047-.459c.18-1.487.18-8.739 0-10.215l-.047-.442zm4.05.045a.907.907 0 00-1.279-.237.957.957 0 00-.228 1.308c.802 1.182 1.243 2.756 1.243 4.434 0 1.677-.441 3.252-1.243 4.434a.956.956 0 00.23 1.308.905.905 0 001.277-.237c1.012-1.492 1.571-3.447 1.571-5.505s-.559-4.013-1.571-5.505zM19.29 3.22a.905.905 0 011.277.236C22.136 5.767 23 8.802 23 12c0 3.2-.864 6.234-2.433 8.544a.902.902 0 01-1.276.236.957.957 0 01-.23-1.308c1.356-1.999 2.104-4.653 2.104-7.472 0-2.818-.748-5.472-2.105-7.471a.958.958 0 01.23-1.308z",fill:i})});exports.Camera=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>(0,t.jsx)("svg",{width:r||o||24,height:r||l||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.44 6.236c.04.07.11.12.2.12 2.4 0 4.36 1.958 4.36 4.355v5.934A4.368 4.368 0 0117.64 21H6.36A4.361 4.361 0 012 16.645V10.71a4.361 4.361 0 014.36-4.355c.08 0 .16-.04.19-.12l.06-.12.106-.222a97.79 97.79 0 01.714-1.486C7.89 3.51 8.67 3.01 9.64 3h4.71c.97.01 1.76.51 2.22 1.408.157.315.397.822.629 1.31l.141.299.1.22zm-.73 3.836c0 .5.4.9.9.9s.91-.4.91-.9-.41-.909-.91-.909-.9.41-.9.91zm-6.44 1.548c.47-.47 1.08-.719 1.73-.719.65 0 1.26.25 1.72.71.46.459.71 1.068.71 1.717A2.438 2.438 0 0112 15.756c-.65 0-1.26-.25-1.72-.71a2.408 2.408 0 01-.71-1.717v-.01c-.01-.63.24-1.24.7-1.699zm4.5 4.485a3.91 3.91 0 01-2.77 1.15 3.921 3.921 0 01-3.93-3.926 3.865 3.865 0 011.14-2.767A3.921 3.921 0 0112 9.402c1.05 0 2.04.41 2.78 1.15.74.749 1.15 1.738 1.15 2.777a3.958 3.958 0 01-1.16 2.776z",fill:i})});exports.Activity=({theme:e,fill:i,filled:s,size:r,height:l,width:o,label:h,...n})=>(0,t.jsx)("svg",{"data-name":"Iconly/Curved/Activity",xmlns:"http://www.w3.org/2000/svg",width:r||o||24,height:r||l||24,viewBox:"0 0 24 24",...n,children:(0,t.jsxs)("g",{fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[(0,t.jsx)("path",{d:"M6.918 14.854l2.993-3.889 3.414 2.68 2.929-3.78"}),(0,t.jsx)("path",{d:"M19.668 2.35a1.922 1.922 0 11-1.922 1.922 1.921 1.921 0 011.922-1.922z"}),(0,t.jsx)("path",{d:"M20.756 9.269a20.809 20.809 0 01.194 3.034c0 6.938-2.312 9.25-9.25 9.25s-9.25-2.312-9.25-9.25 2.313-9.25 9.25-9.25a20.931 20.931 0 012.983.187"})]})});exports.Plus=({theme:e,fill:i,size:s,height:r,width:l,...o})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:s||l||24,height:s||r||24,viewBox:"0 0 24 24",...o,children:(0,t.jsxs)("g",{fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[(0,t.jsx)("path",{d:"M6 12h12"}),(0,t.jsx)("path",{d:"M12 18V6"})]})});exports.Minus=({theme:e,fill:i,size:s,height:r,width:l,...o})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:s||l||24,height:s||r||24,viewBox:"0 0 24 24",...o,children:(0,t.jsx)("path",{d:"M6 12h12",fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});
@@ -1,23 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.range = range;
5
- exports.valueToPercent = valueToPercent;
6
-
7
- /**
8
- * Convert a value to percentage based on lower and upper bound values
9
- *
10
- * @param value the value in number
11
- * @param min the minimum value
12
- * @param max the maximum value
13
- */
14
- function valueToPercent(value, min, max) {
15
- return (value - min) * 100 / (max - min);
16
- }
17
-
18
- function range(start, end) {
19
- const length = end - start + 1;
20
- return Array.from({
21
- length
22
- }, (_, index) => index + start);
23
- }
1
+ exports.__esModule=!0,exports.range=function(e,r){const n=r-e+1;return Array.from({length:n},((r,n)=>n+e))},exports.valueToPercent=function(e,r,n){return 100*(e-r)/(n-r)};
@@ -1,40 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.renameProp = exports.omitObject = exports.isObject = exports.copyObject = void 0;
5
-
6
- const isObject = target => target && typeof target === 'object';
7
-
8
- exports.isObject = isObject;
9
-
10
- const renameProp = (oldProp, newProp, {
11
- [oldProp]: old,
12
- ...others
13
- }) => ({
14
- [newProp]: old,
15
- ...others
16
- }); // copy an object without reference
17
-
18
-
19
- exports.renameProp = renameProp;
20
-
21
- const copyObject = obj => {
22
- if (!isObject(obj)) return obj;
23
- if (obj instanceof Array) return [...obj];
24
- return { ...obj
25
- };
26
- }; // copy an object omit some keys
27
-
28
-
29
- exports.copyObject = copyObject;
30
-
31
- const omitObject = (obj, omitKeys) => {
32
- if (!isObject(obj)) return obj;
33
- if (obj instanceof Array) return [...obj];
34
- const newObj = { ...obj
35
- };
36
- omitKeys.forEach(key => newObj[key] && delete newObj[key]);
37
- return newObj;
38
- };
39
-
40
- exports.omitObject = omitObject;
1
+ exports.__esModule=!0,exports.renameProp=exports.omitObject=exports.isObject=exports.copyObject=void 0;const e=e=>e&&"object"==typeof e;exports.isObject=e;exports.renameProp=(e,t,{[e]:o,...r})=>({[t]:o,...r});exports.copyObject=t=>e(t)?t instanceof Array?[...t]:{...t}:t;exports.omitObject=(t,o)=>{if(!e(t))return t;if(t instanceof Array)return[...t];const r={...t};return o.forEach((e=>r[e]&&delete r[e])),r};