@nextui-org/react 1.0.1-alpha.7 → 1.0.2-alpha.2

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 (837) hide show
  1. package/README.md +53 -45
  2. package/avatar/package.json +6 -0
  3. package/backdrop/package.json +6 -0
  4. package/button/package.json +6 -0
  5. package/card/package.json +6 -0
  6. package/checkbox/package.json +6 -0
  7. package/cjs/avatar/avatar-group.d.ts +13 -0
  8. package/cjs/avatar/avatar-group.js +35 -0
  9. package/cjs/avatar/avatar-group.styles.d.ts +1785 -0
  10. package/cjs/avatar/avatar-group.styles.js +52 -0
  11. package/cjs/avatar/avatar.d.ts +21 -0
  12. package/cjs/avatar/avatar.js +75 -0
  13. package/cjs/avatar/avatar.styles.d.ts +904 -0
  14. package/cjs/avatar/avatar.styles.js +334 -0
  15. package/cjs/avatar/index.d.ts +7 -0
  16. package/cjs/avatar/index.js +22 -0
  17. package/cjs/backdrop/backdrop.d.ts +37 -0
  18. package/cjs/backdrop/backdrop.js +137 -0
  19. package/cjs/backdrop/backdrop.styles.d.ts +2677 -0
  20. package/cjs/backdrop/backdrop.styles.js +119 -0
  21. package/cjs/backdrop/index.d.ts +5 -0
  22. package/cjs/backdrop/index.js +16 -0
  23. package/{dist/components → cjs}/button/button-group-context.d.ts +3 -2
  24. package/cjs/button/button-group-context.js +21 -0
  25. package/cjs/button/button-group.d.ts +34 -0
  26. package/cjs/button/button-group.js +81 -0
  27. package/cjs/button/button-group.styles.d.ts +899 -0
  28. package/cjs/button/button-group.styles.js +136 -0
  29. package/cjs/button/button-icon.d.ts +909 -0
  30. package/cjs/button/button-icon.js +68 -0
  31. package/cjs/button/button.d.ts +30 -0
  32. package/cjs/button/button.js +145 -0
  33. package/cjs/button/button.styles.d.ts +907 -0
  34. package/cjs/button/button.styles.js +695 -0
  35. package/cjs/button/index.d.ts +10 -0
  36. package/cjs/button/index.js +25 -0
  37. package/{dist/components → cjs}/button/utils.d.ts +2 -2
  38. package/cjs/button/utils.js +27 -0
  39. package/cjs/card/card.d.ts +23 -0
  40. package/cjs/card/card.js +117 -0
  41. package/cjs/card/card.styles.d.ts +3575 -0
  42. package/cjs/card/card.styles.js +267 -0
  43. package/cjs/card/index.d.ts +5 -0
  44. package/cjs/card/index.js +24 -0
  45. package/{dist/components → cjs}/checkbox/checkbox-context.d.ts +3 -2
  46. package/cjs/checkbox/checkbox-context.js +25 -0
  47. package/cjs/checkbox/checkbox-group.d.ts +29 -0
  48. package/cjs/checkbox/checkbox-group.js +89 -0
  49. package/{dist/components → cjs}/checkbox/checkbox.d.ts +21 -10
  50. package/cjs/checkbox/checkbox.js +192 -0
  51. package/cjs/checkbox/checkbox.styles.d.ts +8054 -0
  52. package/cjs/checkbox/checkbox.styles.js +563 -0
  53. package/cjs/checkbox/index.d.ts +6 -0
  54. package/cjs/checkbox/index.js +26 -0
  55. package/cjs/code/code.d.ts +15 -0
  56. package/cjs/code/code.js +42 -0
  57. package/cjs/code/code.styles.d.ts +1782 -0
  58. package/cjs/code/code.styles.js +14 -0
  59. package/cjs/code/index.d.ts +5 -0
  60. package/cjs/code/index.js +15 -0
  61. package/{dist/components → cjs}/col/col.d.ts +5 -7
  62. package/cjs/col/col.js +46 -0
  63. package/cjs/col/col.styles.d.ts +893 -0
  64. package/cjs/col/col.styles.js +16 -0
  65. package/cjs/col/index.d.ts +5 -0
  66. package/cjs/col/index.js +14 -0
  67. package/cjs/collapse/collapse-context.d.ts +9 -0
  68. package/cjs/collapse/collapse-context.js +20 -0
  69. package/cjs/collapse/collapse-group.d.ts +18 -0
  70. package/cjs/collapse/collapse-group.js +90 -0
  71. package/cjs/collapse/collapse-icon.d.ts +19 -0
  72. package/cjs/collapse/collapse-icon.js +41 -0
  73. package/cjs/collapse/collapse.d.ts +41 -0
  74. package/cjs/collapse/collapse.js +190 -0
  75. package/cjs/collapse/collapse.styles.d.ts +4472 -0
  76. package/cjs/collapse/collapse.styles.js +254 -0
  77. package/cjs/collapse/index.d.ts +6 -0
  78. package/cjs/collapse/index.js +22 -0
  79. package/cjs/container/container.d.ts +40 -0
  80. package/cjs/container/container.js +91 -0
  81. package/cjs/container/container.styles.d.ts +896 -0
  82. package/cjs/container/container.styles.js +45 -0
  83. package/cjs/container/index.d.ts +5 -0
  84. package/cjs/container/index.js +14 -0
  85. package/{dist/components → cjs}/css-baseline/css-baseline.d.ts +2 -2
  86. package/cjs/css-baseline/css-baseline.js +247 -0
  87. package/{dist/components → cjs}/css-baseline/index.d.ts +0 -0
  88. package/cjs/css-baseline/index.js +11 -0
  89. package/cjs/divider/divider.d.ts +22 -0
  90. package/cjs/divider/divider.js +82 -0
  91. package/cjs/divider/divider.styles.d.ts +1787 -0
  92. package/cjs/divider/divider.styles.js +77 -0
  93. package/cjs/divider/index.d.ts +5 -0
  94. package/cjs/divider/index.js +15 -0
  95. package/cjs/grid/grid-container.d.ts +22 -0
  96. package/cjs/grid/grid-container.js +60 -0
  97. package/{dist/components/grid/basic-item.d.ts → cjs/grid/grid-item.d.ts} +14 -5
  98. package/cjs/grid/grid-item.js +123 -0
  99. package/cjs/grid/grid.d.ts +9 -0
  100. package/cjs/grid/grid.js +29 -0
  101. package/cjs/grid/grid.styles.d.ts +1783 -0
  102. package/cjs/grid/grid.styles.js +15 -0
  103. package/cjs/grid/index.d.ts +7 -0
  104. package/cjs/grid/index.js +18 -0
  105. package/{dist/components → cjs}/image/image.d.ts +17 -15
  106. package/cjs/image/image.js +150 -0
  107. package/cjs/image/image.skeleton.d.ts +19 -0
  108. package/cjs/image/image.skeleton.js +50 -0
  109. package/cjs/image/image.styles.d.ts +2676 -0
  110. package/cjs/image/image.styles.js +57 -0
  111. package/cjs/image/index.d.ts +5 -0
  112. package/cjs/image/index.js +16 -0
  113. package/cjs/index.d.ts +79 -0
  114. package/cjs/index.js +435 -0
  115. package/cjs/input/index.d.ts +7 -0
  116. package/cjs/input/index.js +30 -0
  117. package/cjs/input/input-password.d.ts +98 -0
  118. package/cjs/input/input-password.js +80 -0
  119. package/cjs/input/input-props.d.ts +66 -0
  120. package/cjs/input/input-props.js +30 -0
  121. package/cjs/input/input.d.ts +18 -0
  122. package/cjs/input/input.js +317 -0
  123. package/cjs/input/input.styles.d.ts +9854 -0
  124. package/cjs/input/input.styles.js +878 -0
  125. package/cjs/input/password-icon.d.ts +6 -0
  126. package/cjs/input/password-icon.js +51 -0
  127. package/{dist/components → cjs}/link/icon.d.ts +0 -0
  128. package/cjs/link/icon.js +42 -0
  129. package/cjs/link/index.d.ts +5 -0
  130. package/cjs/link/index.js +15 -0
  131. package/cjs/link/link.d.ts +43 -0
  132. package/cjs/link/link.js +42 -0
  133. package/cjs/link/link.styles.d.ts +1788 -0
  134. package/cjs/link/link.styles.js +135 -0
  135. package/cjs/loading/index.d.ts +7 -0
  136. package/cjs/loading/index.js +24 -0
  137. package/{dist/components → cjs}/loading/loading.d.ts +11 -9
  138. package/cjs/loading/loading.js +80 -0
  139. package/cjs/loading/loading.styles.d.ts +5356 -0
  140. package/cjs/loading/loading.styles.js +438 -0
  141. package/cjs/loading/spinner.d.ts +17 -0
  142. package/cjs/loading/spinner.js +47 -0
  143. package/cjs/modal/index.d.ts +8 -0
  144. package/cjs/modal/index.js +28 -0
  145. package/cjs/modal/modal-body.d.ts +45 -0
  146. package/cjs/modal/modal-body.js +62 -0
  147. package/cjs/modal/modal-close-button.d.ts +13 -0
  148. package/cjs/modal/modal-close-button.js +49 -0
  149. package/cjs/modal/modal-context.d.ts +8 -0
  150. package/cjs/modal/modal-context.js +18 -0
  151. package/cjs/modal/modal-footer.d.ts +24 -0
  152. package/cjs/modal/modal-footer.js +69 -0
  153. package/cjs/modal/modal-header.d.ts +24 -0
  154. package/cjs/modal/modal-header.js +69 -0
  155. package/cjs/modal/modal-wrapper.d.ts +24 -0
  156. package/cjs/modal/modal-wrapper.js +153 -0
  157. package/cjs/modal/modal.d.ts +42 -0
  158. package/cjs/modal/modal.js +159 -0
  159. package/cjs/modal/modal.styles.d.ts +5362 -0
  160. package/cjs/modal/modal.styles.js +243 -0
  161. package/cjs/modal/use-modal.d.ts +11 -0
  162. package/cjs/modal/use-modal.js +25 -0
  163. package/cjs/pagination/index.d.ts +7 -0
  164. package/cjs/pagination/index.js +19 -0
  165. package/cjs/pagination/pagination-ellipsis.d.ts +11 -0
  166. package/cjs/pagination/pagination-ellipsis.js +86 -0
  167. package/cjs/pagination/pagination-highlight.d.ts +14 -0
  168. package/cjs/pagination/pagination-highlight.js +52 -0
  169. package/cjs/pagination/pagination-icon.d.ts +16 -0
  170. package/cjs/pagination/pagination-icon.js +59 -0
  171. package/cjs/pagination/pagination-item.d.ts +22 -0
  172. package/cjs/pagination/pagination-item.js +104 -0
  173. package/cjs/pagination/pagination.d.ts +46 -0
  174. package/cjs/pagination/pagination.js +169 -0
  175. package/cjs/pagination/pagination.styles.d.ts +5369 -0
  176. package/cjs/pagination/pagination.styles.js +361 -0
  177. package/cjs/progress/index.d.ts +5 -0
  178. package/cjs/progress/index.js +15 -0
  179. package/cjs/progress/progress.d.ts +65 -0
  180. package/cjs/progress/progress.js +101 -0
  181. package/cjs/progress/progress.styles.d.ts +1793 -0
  182. package/cjs/progress/progress.styles.js +165 -0
  183. package/cjs/radio/index.d.ts +4 -0
  184. package/cjs/radio/index.js +24 -0
  185. package/{dist/components → cjs}/radio/radio-context.d.ts +3 -2
  186. package/cjs/radio/radio-context.js +24 -0
  187. package/cjs/radio/radio-group.d.ts +30 -0
  188. package/cjs/radio/radio-group.js +78 -0
  189. package/{dist/components → cjs}/radio/radio.d.ts +19 -16
  190. package/cjs/radio/radio.js +156 -0
  191. package/cjs/radio/radio.styles.d.ts +5357 -0
  192. package/cjs/radio/radio.styles.js +240 -0
  193. package/cjs/row/index.d.ts +5 -0
  194. package/cjs/row/index.js +14 -0
  195. package/cjs/row/row.d.ts +21 -0
  196. package/cjs/row/row.js +54 -0
  197. package/cjs/row/row.styles.d.ts +895 -0
  198. package/cjs/row/row.styles.js +25 -0
  199. package/cjs/snippet/index.d.ts +5 -0
  200. package/cjs/snippet/index.js +16 -0
  201. package/{dist/components → cjs}/snippet/snippet-icon.d.ts +5 -2
  202. package/cjs/snippet/snippet-icon.js +52 -0
  203. package/cjs/snippet/snippet.d.ts +35 -0
  204. package/cjs/snippet/snippet.js +137 -0
  205. package/cjs/snippet/snippet.styles.d.ts +3570 -0
  206. package/cjs/snippet/snippet.styles.js +141 -0
  207. package/cjs/spacer/index.d.ts +5 -0
  208. package/cjs/spacer/index.js +14 -0
  209. package/cjs/spacer/spacer.d.ts +41 -0
  210. package/cjs/spacer/spacer.js +49 -0
  211. package/cjs/spacer/spacer.styles.d.ts +894 -0
  212. package/cjs/spacer/spacer.styles.js +24 -0
  213. package/cjs/switch/index.d.ts +5 -0
  214. package/cjs/switch/index.js +17 -0
  215. package/cjs/switch/switch.d.ts +82 -0
  216. package/cjs/switch/switch.js +142 -0
  217. package/cjs/switch/switch.styles.d.ts +3576 -0
  218. package/cjs/switch/switch.styles.js +283 -0
  219. package/cjs/text/child.d.ts +21 -0
  220. package/cjs/text/child.js +83 -0
  221. package/cjs/text/index.d.ts +4 -0
  222. package/cjs/text/index.js +14 -0
  223. package/{dist/components → cjs}/text/text.d.ts +13 -17
  224. package/cjs/text/text.js +124 -0
  225. package/cjs/text/text.styles.d.ts +894 -0
  226. package/cjs/text/text.styles.js +41 -0
  227. package/cjs/textarea/index.d.ts +3 -0
  228. package/cjs/textarea/index.js +12 -0
  229. package/cjs/textarea/textarea.d.ts +42 -0
  230. package/cjs/textarea/textarea.js +126 -0
  231. package/cjs/textarea/utils.d.ts +13 -0
  232. package/cjs/textarea/utils.js +126 -0
  233. package/cjs/theme/common.d.ts +1584 -0
  234. package/cjs/theme/common.js +490 -0
  235. package/cjs/theme/dark-theme.d.ts +33 -0
  236. package/cjs/theme/dark-theme.js +38 -0
  237. package/cjs/theme/index.js +31 -0
  238. package/cjs/theme/light-theme.d.ts +28 -0
  239. package/cjs/theme/light-theme.js +33 -0
  240. package/cjs/theme/ssr-provider.d.ts +7 -0
  241. package/cjs/theme/ssr-provider.js +51 -0
  242. package/cjs/theme/stitches.config.d.ts +8700 -0
  243. package/cjs/theme/stitches.config.js +88 -0
  244. package/cjs/theme/theme-context.d.ts +5 -0
  245. package/cjs/theme/theme-context.js +22 -0
  246. package/cjs/theme/theme-provider.d.ts +14 -0
  247. package/cjs/theme/theme-provider.js +115 -0
  248. package/cjs/theme/types.d.ts +75 -0
  249. package/cjs/theme/types.js +3 -0
  250. package/cjs/theme/utils.d.ts +16 -0
  251. package/cjs/theme/utils.js +113 -0
  252. package/cjs/tooltip/index.d.ts +6 -0
  253. package/cjs/tooltip/index.js +17 -0
  254. package/cjs/tooltip/placement.d.ts +39 -0
  255. package/cjs/tooltip/placement.js +193 -0
  256. package/cjs/tooltip/tooltip-content.d.ts +27 -0
  257. package/cjs/tooltip/tooltip-content.js +135 -0
  258. package/cjs/tooltip/tooltip.d.ts +56 -0
  259. package/cjs/tooltip/tooltip.js +141 -0
  260. package/cjs/tooltip/tooltip.styles.d.ts +3571 -0
  261. package/cjs/tooltip/tooltip.styles.js +159 -0
  262. package/cjs/use-body-scroll/index.d.ts +3 -0
  263. package/cjs/use-body-scroll/index.js +12 -0
  264. package/cjs/use-body-scroll/use-body-scroll.d.ts +9 -0
  265. package/cjs/use-body-scroll/use-body-scroll.js +77 -0
  266. package/cjs/use-click-anywhere/index.d.ts +2 -0
  267. package/cjs/use-click-anywhere/index.js +12 -0
  268. package/cjs/use-click-anywhere/use-click-anywhere.d.ts +2 -0
  269. package/cjs/use-click-anywhere/use-click-anywhere.js +19 -0
  270. package/cjs/use-click-away/index.d.ts +2 -0
  271. package/cjs/use-click-away/index.js +12 -0
  272. package/cjs/use-click-away/use-click-away.d.ts +3 -0
  273. package/cjs/use-click-away/use-click-away.js +23 -0
  274. package/cjs/use-clipboard/index.d.ts +3 -0
  275. package/cjs/use-clipboard/index.js +12 -0
  276. package/{dist/hooks → cjs/use-clipboard}/use-clipboard.d.ts +0 -0
  277. package/cjs/use-clipboard/use-clipboard.js +57 -0
  278. package/cjs/use-current-state/index.d.ts +2 -0
  279. package/cjs/use-current-state/index.js +12 -0
  280. package/{dist/hooks → cjs/use-current-state}/use-current-state.d.ts +0 -0
  281. package/cjs/use-current-state/use-current-state.js +28 -0
  282. package/cjs/use-drip/index.d.ts +2 -0
  283. package/cjs/use-drip/index.js +12 -0
  284. package/cjs/use-drip/use-drip.d.ts +9 -0
  285. package/cjs/use-drip/use-drip.js +38 -0
  286. package/cjs/use-input/index.d.ts +2 -0
  287. package/cjs/use-input/index.js +12 -0
  288. package/cjs/use-input/use-input.d.ts +13 -0
  289. package/cjs/use-input/use-input.js +32 -0
  290. package/cjs/use-keyboard/codes.d.ts +92 -0
  291. package/cjs/use-keyboard/codes.js +104 -0
  292. package/cjs/use-keyboard/helper.d.ts +3 -0
  293. package/cjs/use-keyboard/helper.js +35 -0
  294. package/cjs/use-keyboard/index.d.ts +5 -0
  295. package/cjs/use-keyboard/index.js +15 -0
  296. package/cjs/use-keyboard/use-keyboard.d.ts +22 -0
  297. package/cjs/use-keyboard/use-keyboard.js +76 -0
  298. package/cjs/use-pagination/index.d.ts +20 -0
  299. package/cjs/use-pagination/index.js +88 -0
  300. package/cjs/use-portal/index.d.ts +2 -0
  301. package/cjs/use-portal/index.js +12 -0
  302. package/{dist/hooks → cjs/use-portal}/use-portal.d.ts +0 -0
  303. package/cjs/use-portal/use-portal.js +43 -0
  304. package/cjs/use-real-shape/index.d.ts +2 -0
  305. package/cjs/use-real-shape/index.js +12 -0
  306. package/{dist/hooks → cjs/use-real-shape}/use-real-shape.d.ts +0 -0
  307. package/cjs/use-real-shape/use-real-shape.js +55 -0
  308. package/cjs/use-resize/index.d.ts +2 -0
  309. package/cjs/use-resize/index.js +12 -0
  310. package/{dist/hooks → cjs/use-resize}/use-resize.d.ts +0 -0
  311. package/cjs/use-resize/use-resize.js +23 -0
  312. package/cjs/use-ssr/index.d.ts +2 -0
  313. package/cjs/use-ssr/index.js +12 -0
  314. package/{dist/hooks → cjs/use-ssr}/use-ssr.d.ts +0 -0
  315. package/cjs/use-ssr/use-ssr.js +25 -0
  316. package/cjs/use-theme/index.d.ts +2 -0
  317. package/cjs/use-theme/index.js +12 -0
  318. package/cjs/use-theme/use-theme.d.ts +3 -0
  319. package/cjs/use-theme/use-theme.js +16 -0
  320. package/cjs/use-warning/index.d.ts +2 -0
  321. package/cjs/use-warning/index.js +12 -0
  322. package/{dist/hooks → cjs/use-warning}/use-warning.d.ts +0 -0
  323. package/cjs/use-warning/use-warning.js +23 -0
  324. package/cjs/user/index.d.ts +6 -0
  325. package/cjs/user/index.js +21 -0
  326. package/cjs/user/user-link.d.ts +32 -0
  327. package/cjs/user/user-link.js +46 -0
  328. package/{dist/components → cjs}/user/user.d.ts +12 -7
  329. package/cjs/user/user.js +63 -0
  330. package/cjs/user/user.styles.d.ts +4456 -0
  331. package/cjs/user/user.styles.js +56 -0
  332. package/cjs/utils/assertion.d.ts +8 -0
  333. package/cjs/utils/assertion.js +42 -0
  334. package/cjs/utils/clear-icon.d.ts +16 -0
  335. package/cjs/utils/clear-icon.js +70 -0
  336. package/cjs/utils/clsx.d.ts +1 -0
  337. package/cjs/utils/clsx.js +57 -0
  338. package/cjs/utils/collections.d.ts +12 -0
  339. package/cjs/utils/collections.js +110 -0
  340. package/{dist → cjs}/utils/color.d.ts +6 -6
  341. package/cjs/utils/color.js +187 -0
  342. package/cjs/utils/css-transition.d.ts +27 -0
  343. package/cjs/utils/css-transition.js +76 -0
  344. package/cjs/utils/deep-merge.d.ts +1 -0
  345. package/cjs/utils/deep-merge.js +33 -0
  346. package/{dist → cjs}/utils/dimensions.d.ts +0 -0
  347. package/cjs/utils/dimensions.js +10 -0
  348. package/cjs/utils/dom.js +110 -0
  349. package/cjs/utils/drip.d.ts +936 -0
  350. package/cjs/utils/drip.js +116 -0
  351. package/cjs/utils/expand.d.ts +20 -0
  352. package/cjs/utils/expand.js +109 -0
  353. package/cjs/utils/icons.js +481 -0
  354. package/cjs/utils/numbers.d.ts +9 -0
  355. package/cjs/utils/numbers.js +23 -0
  356. package/cjs/utils/object.d.ts +11 -0
  357. package/cjs/utils/object.js +40 -0
  358. package/cjs/utils/prop-types.d.ts +54 -0
  359. package/cjs/utils/prop-types.js +56 -0
  360. package/cjs/utils/react.js +24 -0
  361. package/cjs/utils/strings.js +18 -0
  362. package/cjs/utils/types.d.js +3 -0
  363. package/{dist → cjs}/utils/with-defaults.d.ts +0 -0
  364. package/cjs/utils/with-defaults.js +13 -0
  365. package/code/package.json +6 -0
  366. package/col/package.json +6 -0
  367. package/collapse/package.json +6 -0
  368. package/container/package.json +6 -0
  369. package/css-baseline/package.json +6 -0
  370. package/divider/package.json +6 -0
  371. package/esm/avatar/avatar-group.d.ts +13 -0
  372. package/esm/avatar/avatar-group.js +35 -0
  373. package/esm/avatar/avatar-group.styles.d.ts +1785 -0
  374. package/esm/avatar/avatar-group.styles.js +52 -0
  375. package/esm/avatar/avatar.d.ts +21 -0
  376. package/esm/avatar/avatar.js +75 -0
  377. package/esm/avatar/avatar.styles.d.ts +904 -0
  378. package/esm/avatar/avatar.styles.js +334 -0
  379. package/esm/avatar/index.d.ts +7 -0
  380. package/esm/avatar/index.js +22 -0
  381. package/esm/backdrop/backdrop.d.ts +37 -0
  382. package/esm/backdrop/backdrop.js +137 -0
  383. package/esm/backdrop/backdrop.styles.d.ts +2677 -0
  384. package/esm/backdrop/backdrop.styles.js +119 -0
  385. package/esm/backdrop/index.d.ts +5 -0
  386. package/esm/backdrop/index.js +16 -0
  387. package/esm/button/button-group-context.d.ts +20 -0
  388. package/esm/button/button-group-context.js +21 -0
  389. package/esm/button/button-group.d.ts +34 -0
  390. package/esm/button/button-group.js +81 -0
  391. package/esm/button/button-group.styles.d.ts +899 -0
  392. package/esm/button/button-group.styles.js +136 -0
  393. package/esm/button/button-icon.d.ts +909 -0
  394. package/esm/button/button-icon.js +68 -0
  395. package/esm/button/button.d.ts +30 -0
  396. package/esm/button/button.js +145 -0
  397. package/esm/button/button.styles.d.ts +907 -0
  398. package/esm/button/button.styles.js +695 -0
  399. package/esm/button/index.d.ts +10 -0
  400. package/esm/button/index.js +25 -0
  401. package/esm/button/utils.d.ts +4 -0
  402. package/esm/button/utils.js +27 -0
  403. package/esm/card/card.d.ts +23 -0
  404. package/esm/card/card.js +117 -0
  405. package/esm/card/card.styles.d.ts +3575 -0
  406. package/esm/card/card.styles.js +267 -0
  407. package/esm/card/index.d.ts +5 -0
  408. package/esm/card/index.js +24 -0
  409. package/esm/checkbox/checkbox-context.d.ts +13 -0
  410. package/esm/checkbox/checkbox-context.js +25 -0
  411. package/esm/checkbox/checkbox-group.d.ts +29 -0
  412. package/esm/checkbox/checkbox-group.js +89 -0
  413. package/esm/checkbox/checkbox.d.ts +58 -0
  414. package/esm/checkbox/checkbox.js +192 -0
  415. package/esm/checkbox/checkbox.styles.d.ts +8054 -0
  416. package/esm/checkbox/checkbox.styles.js +563 -0
  417. package/esm/checkbox/index.d.ts +6 -0
  418. package/esm/checkbox/index.js +26 -0
  419. package/esm/code/code.d.ts +15 -0
  420. package/esm/code/code.js +42 -0
  421. package/esm/code/code.styles.d.ts +1782 -0
  422. package/esm/code/code.styles.js +14 -0
  423. package/esm/code/index.d.ts +5 -0
  424. package/esm/code/index.js +15 -0
  425. package/esm/col/col.d.ts +20 -0
  426. package/esm/col/col.js +46 -0
  427. package/esm/col/col.styles.d.ts +893 -0
  428. package/esm/col/col.styles.js +16 -0
  429. package/esm/col/index.d.ts +5 -0
  430. package/esm/col/index.js +14 -0
  431. package/esm/collapse/collapse-context.d.ts +9 -0
  432. package/esm/collapse/collapse-context.js +20 -0
  433. package/esm/collapse/collapse-group.d.ts +18 -0
  434. package/esm/collapse/collapse-group.js +90 -0
  435. package/esm/collapse/collapse-icon.d.ts +19 -0
  436. package/esm/collapse/collapse-icon.js +41 -0
  437. package/esm/collapse/collapse.d.ts +41 -0
  438. package/esm/collapse/collapse.js +190 -0
  439. package/esm/collapse/collapse.styles.d.ts +4472 -0
  440. package/esm/collapse/collapse.styles.js +254 -0
  441. package/esm/collapse/index.d.ts +6 -0
  442. package/esm/collapse/index.js +22 -0
  443. package/esm/container/container.d.ts +40 -0
  444. package/esm/container/container.js +91 -0
  445. package/esm/container/container.styles.d.ts +896 -0
  446. package/esm/container/container.styles.js +45 -0
  447. package/esm/container/index.d.ts +5 -0
  448. package/esm/container/index.js +14 -0
  449. package/esm/css-baseline/css-baseline.d.ts +9 -0
  450. package/esm/css-baseline/css-baseline.js +247 -0
  451. package/esm/css-baseline/index.d.ts +1 -0
  452. package/esm/css-baseline/index.js +11 -0
  453. package/esm/divider/divider.d.ts +22 -0
  454. package/esm/divider/divider.js +82 -0
  455. package/esm/divider/divider.styles.d.ts +1787 -0
  456. package/esm/divider/divider.styles.js +77 -0
  457. package/esm/divider/index.d.ts +5 -0
  458. package/esm/divider/index.js +15 -0
  459. package/esm/grid/grid-container.d.ts +22 -0
  460. package/esm/grid/grid-container.js +60 -0
  461. package/esm/grid/grid-item.d.ts +37 -0
  462. package/esm/grid/grid-item.js +123 -0
  463. package/esm/grid/grid.d.ts +9 -0
  464. package/esm/grid/grid.js +29 -0
  465. package/esm/grid/grid.styles.d.ts +1783 -0
  466. package/esm/grid/grid.styles.js +15 -0
  467. package/esm/grid/index.d.ts +7 -0
  468. package/esm/grid/index.js +18 -0
  469. package/esm/image/image.d.ts +29 -0
  470. package/esm/image/image.js +150 -0
  471. package/esm/image/image.skeleton.d.ts +19 -0
  472. package/esm/image/image.skeleton.js +50 -0
  473. package/esm/image/image.styles.d.ts +2676 -0
  474. package/esm/image/image.styles.js +57 -0
  475. package/esm/image/index.d.ts +5 -0
  476. package/esm/image/index.js +16 -0
  477. package/esm/index.d.ts +79 -0
  478. package/esm/index.js +435 -0
  479. package/esm/input/index.d.ts +7 -0
  480. package/esm/input/index.js +30 -0
  481. package/esm/input/input-password.d.ts +98 -0
  482. package/esm/input/input-password.js +80 -0
  483. package/esm/input/input-props.d.ts +66 -0
  484. package/esm/input/input-props.js +30 -0
  485. package/esm/input/input.d.ts +18 -0
  486. package/esm/input/input.js +317 -0
  487. package/esm/input/input.styles.d.ts +9854 -0
  488. package/esm/input/input.styles.js +878 -0
  489. package/esm/input/password-icon.d.ts +6 -0
  490. package/esm/input/password-icon.js +51 -0
  491. package/esm/link/icon.d.ts +4 -0
  492. package/esm/link/icon.js +42 -0
  493. package/esm/link/index.d.ts +5 -0
  494. package/esm/link/index.js +15 -0
  495. package/esm/link/link.d.ts +43 -0
  496. package/esm/link/link.js +42 -0
  497. package/esm/link/link.styles.d.ts +1788 -0
  498. package/esm/link/link.styles.js +135 -0
  499. package/esm/loading/index.d.ts +7 -0
  500. package/esm/loading/index.js +24 -0
  501. package/esm/loading/loading.d.ts +24 -0
  502. package/esm/loading/loading.js +80 -0
  503. package/esm/loading/loading.styles.d.ts +5356 -0
  504. package/esm/loading/loading.styles.js +438 -0
  505. package/esm/loading/spinner.d.ts +17 -0
  506. package/esm/loading/spinner.js +47 -0
  507. package/esm/modal/index.d.ts +8 -0
  508. package/esm/modal/index.js +28 -0
  509. package/esm/modal/modal-body.d.ts +45 -0
  510. package/esm/modal/modal-body.js +62 -0
  511. package/esm/modal/modal-close-button.d.ts +13 -0
  512. package/esm/modal/modal-close-button.js +49 -0
  513. package/esm/modal/modal-context.d.ts +8 -0
  514. package/esm/modal/modal-context.js +18 -0
  515. package/esm/modal/modal-footer.d.ts +24 -0
  516. package/esm/modal/modal-footer.js +69 -0
  517. package/esm/modal/modal-header.d.ts +24 -0
  518. package/esm/modal/modal-header.js +69 -0
  519. package/esm/modal/modal-wrapper.d.ts +24 -0
  520. package/esm/modal/modal-wrapper.js +153 -0
  521. package/esm/modal/modal.d.ts +42 -0
  522. package/esm/modal/modal.js +159 -0
  523. package/esm/modal/modal.styles.d.ts +5362 -0
  524. package/esm/modal/modal.styles.js +243 -0
  525. package/esm/modal/use-modal.d.ts +11 -0
  526. package/esm/modal/use-modal.js +25 -0
  527. package/esm/pagination/index.d.ts +7 -0
  528. package/esm/pagination/index.js +19 -0
  529. package/esm/pagination/pagination-ellipsis.d.ts +11 -0
  530. package/esm/pagination/pagination-ellipsis.js +86 -0
  531. package/esm/pagination/pagination-highlight.d.ts +14 -0
  532. package/esm/pagination/pagination-highlight.js +52 -0
  533. package/esm/pagination/pagination-icon.d.ts +16 -0
  534. package/esm/pagination/pagination-icon.js +59 -0
  535. package/esm/pagination/pagination-item.d.ts +22 -0
  536. package/esm/pagination/pagination-item.js +104 -0
  537. package/esm/pagination/pagination.d.ts +46 -0
  538. package/esm/pagination/pagination.js +169 -0
  539. package/esm/pagination/pagination.styles.d.ts +5369 -0
  540. package/esm/pagination/pagination.styles.js +361 -0
  541. package/esm/progress/index.d.ts +5 -0
  542. package/esm/progress/index.js +15 -0
  543. package/esm/progress/progress.d.ts +65 -0
  544. package/esm/progress/progress.js +101 -0
  545. package/esm/progress/progress.styles.d.ts +1793 -0
  546. package/esm/progress/progress.styles.js +165 -0
  547. package/esm/radio/index.d.ts +4 -0
  548. package/esm/radio/index.js +24 -0
  549. package/esm/radio/radio-context.d.ts +13 -0
  550. package/esm/radio/radio-context.js +24 -0
  551. package/esm/radio/radio-group.d.ts +30 -0
  552. package/esm/radio/radio-group.js +78 -0
  553. package/esm/radio/radio.d.ts +45 -0
  554. package/esm/radio/radio.js +156 -0
  555. package/esm/radio/radio.styles.d.ts +5357 -0
  556. package/esm/radio/radio.styles.js +240 -0
  557. package/esm/row/index.d.ts +5 -0
  558. package/esm/row/index.js +14 -0
  559. package/esm/row/row.d.ts +21 -0
  560. package/esm/row/row.js +54 -0
  561. package/esm/row/row.styles.d.ts +895 -0
  562. package/esm/row/row.styles.js +25 -0
  563. package/esm/snippet/index.d.ts +5 -0
  564. package/esm/snippet/index.js +16 -0
  565. package/esm/snippet/snippet-icon.d.ts +21 -0
  566. package/esm/snippet/snippet-icon.js +52 -0
  567. package/esm/snippet/snippet.d.ts +35 -0
  568. package/esm/snippet/snippet.js +137 -0
  569. package/esm/snippet/snippet.styles.d.ts +3570 -0
  570. package/esm/snippet/snippet.styles.js +141 -0
  571. package/esm/spacer/index.d.ts +5 -0
  572. package/esm/spacer/index.js +14 -0
  573. package/esm/spacer/spacer.d.ts +41 -0
  574. package/esm/spacer/spacer.js +49 -0
  575. package/esm/spacer/spacer.styles.d.ts +894 -0
  576. package/esm/spacer/spacer.styles.js +24 -0
  577. package/esm/switch/index.d.ts +5 -0
  578. package/esm/switch/index.js +17 -0
  579. package/esm/switch/switch.d.ts +82 -0
  580. package/esm/switch/switch.js +142 -0
  581. package/esm/switch/switch.styles.d.ts +3576 -0
  582. package/esm/switch/switch.styles.js +283 -0
  583. package/esm/text/child.d.ts +21 -0
  584. package/esm/text/child.js +83 -0
  585. package/esm/text/index.d.ts +4 -0
  586. package/esm/text/index.js +14 -0
  587. package/esm/text/text.d.ts +59 -0
  588. package/esm/text/text.js +124 -0
  589. package/esm/text/text.styles.d.ts +894 -0
  590. package/esm/text/text.styles.js +41 -0
  591. package/esm/textarea/index.d.ts +3 -0
  592. package/esm/textarea/index.js +12 -0
  593. package/esm/textarea/textarea.d.ts +42 -0
  594. package/esm/textarea/textarea.js +126 -0
  595. package/esm/textarea/utils.d.ts +13 -0
  596. package/esm/textarea/utils.js +126 -0
  597. package/esm/theme/common.d.ts +1584 -0
  598. package/esm/theme/common.js +490 -0
  599. package/esm/theme/dark-theme.d.ts +33 -0
  600. package/esm/theme/dark-theme.js +38 -0
  601. package/esm/theme/index.js +31 -0
  602. package/esm/theme/light-theme.d.ts +28 -0
  603. package/esm/theme/light-theme.js +33 -0
  604. package/esm/theme/ssr-provider.d.ts +7 -0
  605. package/esm/theme/ssr-provider.js +51 -0
  606. package/esm/theme/stitches.config.d.ts +8700 -0
  607. package/esm/theme/stitches.config.js +88 -0
  608. package/esm/theme/theme-context.d.ts +5 -0
  609. package/esm/theme/theme-context.js +22 -0
  610. package/esm/theme/theme-provider.d.ts +14 -0
  611. package/esm/theme/theme-provider.js +115 -0
  612. package/esm/theme/types.d.ts +75 -0
  613. package/esm/theme/types.js +3 -0
  614. package/esm/theme/utils.d.ts +16 -0
  615. package/esm/theme/utils.js +113 -0
  616. package/esm/tooltip/index.d.ts +6 -0
  617. package/esm/tooltip/index.js +17 -0
  618. package/esm/tooltip/placement.d.ts +39 -0
  619. package/esm/tooltip/placement.js +193 -0
  620. package/esm/tooltip/tooltip-content.d.ts +27 -0
  621. package/esm/tooltip/tooltip-content.js +135 -0
  622. package/esm/tooltip/tooltip.d.ts +56 -0
  623. package/esm/tooltip/tooltip.js +141 -0
  624. package/esm/tooltip/tooltip.styles.d.ts +3571 -0
  625. package/esm/tooltip/tooltip.styles.js +159 -0
  626. package/esm/use-body-scroll/index.d.ts +3 -0
  627. package/esm/use-body-scroll/index.js +12 -0
  628. package/esm/use-body-scroll/use-body-scroll.d.ts +9 -0
  629. package/esm/use-body-scroll/use-body-scroll.js +77 -0
  630. package/esm/use-click-anywhere/index.d.ts +2 -0
  631. package/esm/use-click-anywhere/index.js +12 -0
  632. package/esm/use-click-anywhere/use-click-anywhere.d.ts +2 -0
  633. package/esm/use-click-anywhere/use-click-anywhere.js +19 -0
  634. package/esm/use-click-away/index.d.ts +2 -0
  635. package/esm/use-click-away/index.js +12 -0
  636. package/esm/use-click-away/use-click-away.d.ts +3 -0
  637. package/esm/use-click-away/use-click-away.js +23 -0
  638. package/esm/use-clipboard/index.d.ts +3 -0
  639. package/esm/use-clipboard/index.js +12 -0
  640. package/esm/use-clipboard/use-clipboard.d.ts +8 -0
  641. package/esm/use-clipboard/use-clipboard.js +57 -0
  642. package/esm/use-current-state/index.d.ts +2 -0
  643. package/esm/use-current-state/index.js +12 -0
  644. package/esm/use-current-state/use-current-state.d.ts +8 -0
  645. package/esm/use-current-state/use-current-state.js +28 -0
  646. package/esm/use-drip/index.d.ts +2 -0
  647. package/esm/use-drip/index.js +12 -0
  648. package/esm/use-drip/use-drip.d.ts +9 -0
  649. package/esm/use-drip/use-drip.js +38 -0
  650. package/esm/use-input/index.d.ts +2 -0
  651. package/esm/use-input/index.js +12 -0
  652. package/esm/use-input/use-input.d.ts +13 -0
  653. package/esm/use-input/use-input.js +32 -0
  654. package/esm/use-keyboard/codes.d.ts +92 -0
  655. package/esm/use-keyboard/codes.js +104 -0
  656. package/esm/use-keyboard/helper.d.ts +3 -0
  657. package/esm/use-keyboard/helper.js +35 -0
  658. package/esm/use-keyboard/index.d.ts +5 -0
  659. package/esm/use-keyboard/index.js +15 -0
  660. package/esm/use-keyboard/use-keyboard.d.ts +22 -0
  661. package/esm/use-keyboard/use-keyboard.js +76 -0
  662. package/esm/use-pagination/index.d.ts +20 -0
  663. package/esm/use-pagination/index.js +88 -0
  664. package/esm/use-portal/index.d.ts +2 -0
  665. package/esm/use-portal/index.js +12 -0
  666. package/esm/use-portal/use-portal.d.ts +2 -0
  667. package/esm/use-portal/use-portal.js +43 -0
  668. package/esm/use-real-shape/index.d.ts +2 -0
  669. package/esm/use-real-shape/index.js +12 -0
  670. package/esm/use-real-shape/use-real-shape.d.ts +9 -0
  671. package/esm/use-real-shape/use-real-shape.js +55 -0
  672. package/esm/use-resize/index.d.ts +2 -0
  673. package/esm/use-resize/index.js +12 -0
  674. package/esm/use-resize/use-resize.d.ts +2 -0
  675. package/esm/use-resize/use-resize.js +23 -0
  676. package/esm/use-ssr/index.d.ts +2 -0
  677. package/esm/use-ssr/index.js +12 -0
  678. package/esm/use-ssr/use-ssr.d.ts +6 -0
  679. package/esm/use-ssr/use-ssr.js +25 -0
  680. package/esm/use-theme/index.d.ts +2 -0
  681. package/esm/use-theme/index.js +12 -0
  682. package/esm/use-theme/use-theme.d.ts +3 -0
  683. package/esm/use-theme/use-theme.js +16 -0
  684. package/esm/use-warning/index.d.ts +2 -0
  685. package/esm/use-warning/index.js +12 -0
  686. package/esm/use-warning/use-warning.d.ts +2 -0
  687. package/esm/use-warning/use-warning.js +23 -0
  688. package/esm/user/index.d.ts +6 -0
  689. package/esm/user/index.js +21 -0
  690. package/esm/user/user-link.d.ts +32 -0
  691. package/esm/user/user-link.js +46 -0
  692. package/esm/user/user.d.ts +35 -0
  693. package/esm/user/user.js +63 -0
  694. package/esm/user/user.styles.d.ts +4456 -0
  695. package/esm/user/user.styles.js +56 -0
  696. package/esm/utils/assertion.d.ts +8 -0
  697. package/esm/utils/assertion.js +42 -0
  698. package/esm/utils/clear-icon.d.ts +16 -0
  699. package/esm/utils/clear-icon.js +70 -0
  700. package/esm/utils/clsx.d.ts +1 -0
  701. package/esm/utils/clsx.js +57 -0
  702. package/esm/utils/collections.d.ts +12 -0
  703. package/esm/utils/collections.js +110 -0
  704. package/esm/utils/color.d.ts +28 -0
  705. package/esm/utils/color.js +187 -0
  706. package/esm/utils/css-transition.d.ts +27 -0
  707. package/esm/utils/css-transition.js +76 -0
  708. package/esm/utils/deep-merge.d.ts +1 -0
  709. package/esm/utils/deep-merge.js +33 -0
  710. package/esm/utils/dimensions.d.ts +1 -0
  711. package/esm/utils/dimensions.js +10 -0
  712. package/esm/utils/dom.js +110 -0
  713. package/esm/utils/drip.d.ts +936 -0
  714. package/esm/utils/drip.js +116 -0
  715. package/esm/utils/expand.d.ts +20 -0
  716. package/esm/utils/expand.js +109 -0
  717. package/esm/utils/icons.js +481 -0
  718. package/esm/utils/numbers.d.ts +9 -0
  719. package/esm/utils/numbers.js +23 -0
  720. package/esm/utils/object.d.ts +11 -0
  721. package/esm/utils/object.js +40 -0
  722. package/esm/utils/prop-types.d.ts +54 -0
  723. package/esm/utils/prop-types.js +56 -0
  724. package/esm/utils/react.js +24 -0
  725. package/esm/utils/strings.js +18 -0
  726. package/esm/utils/types.d.js +3 -0
  727. package/esm/utils/with-defaults.d.ts +3 -0
  728. package/esm/utils/with-defaults.js +13 -0
  729. package/grid/package.json +6 -0
  730. package/image/package.json +6 -0
  731. package/input/package.json +6 -0
  732. package/link/package.json +6 -0
  733. package/loading/package.json +6 -0
  734. package/modal/package.json +6 -0
  735. package/package.json +16 -76
  736. package/pagination/package.json +6 -0
  737. package/progress/package.json +6 -0
  738. package/radio/package.json +6 -0
  739. package/row/package.json +6 -0
  740. package/snippet/package.json +6 -0
  741. package/spacer/package.json +6 -0
  742. package/switch/package.json +6 -0
  743. package/text/package.json +6 -0
  744. package/textarea/package.json +6 -0
  745. package/tooltip/package.json +6 -0
  746. package/umd/nextui.js +14059 -0
  747. package/umd/nextui.min.js +2 -0
  748. package/umd/nextui.min.js.LICENSE.txt +14 -0
  749. package/use-body-scroll/package.json +6 -0
  750. package/use-click-anywhere/package.json +6 -0
  751. package/use-click-away/package.json +6 -0
  752. package/use-clipboard/package.json +6 -0
  753. package/use-current-state/package.json +6 -0
  754. package/use-drip/package.json +6 -0
  755. package/use-input/package.json +6 -0
  756. package/use-keyboard/package.json +6 -0
  757. package/use-portal/package.json +6 -0
  758. package/use-real-shape/package.json +6 -0
  759. package/use-resize/package.json +6 -0
  760. package/use-ssr/package.json +6 -0
  761. package/use-theme/package.json +6 -0
  762. package/use-warning/package.json +6 -0
  763. package/user/package.json +6 -0
  764. package/utils/package.json +6 -0
  765. package/dist/components/avatar/avatar-group.d.ts +0 -17
  766. package/dist/components/avatar/avatar.d.ts +0 -33
  767. package/dist/components/avatar/index.d.ts +0 -2
  768. package/dist/components/button/button-group.d.ts +0 -56
  769. package/dist/components/button/button-icon.d.ts +0 -17
  770. package/dist/components/button/button-loading.d.ts +0 -18
  771. package/dist/components/button/button.d.ts +0 -51
  772. package/dist/components/button/button.drip.d.ts +0 -20
  773. package/dist/components/button/index.d.ts +0 -2
  774. package/dist/components/button/styles.d.ts +0 -40
  775. package/dist/components/card/card-content.d.ts +0 -13
  776. package/dist/components/card/card-footer.d.ts +0 -16
  777. package/dist/components/card/card.d.ts +0 -33
  778. package/dist/components/card/index.d.ts +0 -2
  779. package/dist/components/card/styles.d.ts +0 -12
  780. package/dist/components/checkbox/checkbox-group.d.ts +0 -31
  781. package/dist/components/checkbox/index.d.ts +0 -5
  782. package/dist/components/checkbox/styles.d.ts +0 -4
  783. package/dist/components/code/code.d.ts +0 -17
  784. package/dist/components/code/index.d.ts +0 -4
  785. package/dist/components/col/index.d.ts +0 -4
  786. package/dist/components/container/container.d.ts +0 -39
  787. package/dist/components/container/index.d.ts +0 -2
  788. package/dist/components/divider/divider.d.ts +0 -30
  789. package/dist/components/divider/index.d.ts +0 -2
  790. package/dist/components/grid/grid-container.d.ts +0 -18
  791. package/dist/components/grid/grid.d.ts +0 -16
  792. package/dist/components/grid/index.d.ts +0 -2
  793. package/dist/components/image/image-browser-https-icon.d.ts +0 -3
  794. package/dist/components/image/image-browser.d.ts +0 -31
  795. package/dist/components/image/image.skeleton.d.ts +0 -12
  796. package/dist/components/image/index.d.ts +0 -2
  797. package/dist/components/image/styles.d.ts +0 -9
  798. package/dist/components/index.d.ts +0 -20
  799. package/dist/components/link/index.d.ts +0 -4
  800. package/dist/components/link/link.d.ts +0 -39
  801. package/dist/components/loading/index.d.ts +0 -2
  802. package/dist/components/loading/spinner.d.ts +0 -16
  803. package/dist/components/loading/styles.d.ts +0 -18
  804. package/dist/components/radio/index.d.ts +0 -2
  805. package/dist/components/radio/radio-description.d.ts +0 -13
  806. package/dist/components/radio/radio-group.d.ts +0 -33
  807. package/dist/components/row/index.d.ts +0 -4
  808. package/dist/components/row/row.d.ts +0 -32
  809. package/dist/components/snippet/index.d.ts +0 -2
  810. package/dist/components/snippet/snippet.d.ts +0 -36
  811. package/dist/components/snippet/styles.d.ts +0 -8
  812. package/dist/components/spacer/index.d.ts +0 -4
  813. package/dist/components/spacer/spacer.d.ts +0 -27
  814. package/dist/components/switch/index.d.ts +0 -2
  815. package/dist/components/switch/styles.d.ts +0 -6
  816. package/dist/components/switch/switch.d.ts +0 -50
  817. package/dist/components/text/child.d.ts +0 -22
  818. package/dist/components/text/index.d.ts +0 -4
  819. package/dist/components/user/index.d.ts +0 -2
  820. package/dist/components/user/user-link.d.ts +0 -16
  821. package/dist/hooks/index.d.ts +0 -5
  822. package/dist/hooks/use-theme.d.ts +0 -3
  823. package/dist/index.d.ts +0 -3
  824. package/dist/index.js +0 -1
  825. package/dist/index.min.js +0 -1
  826. package/dist/theme/common.d.ts +0 -63
  827. package/dist/theme/dark.d.ts +0 -8
  828. package/dist/theme/default.d.ts +0 -8
  829. package/dist/theme/index.d.ts +0 -2
  830. package/dist/theme/shared.d.ts +0 -4
  831. package/dist/theme/theme-context.d.ts +0 -4
  832. package/dist/theme/theme-provider.d.ts +0 -7
  833. package/dist/theme/types.d.ts +0 -94
  834. package/dist/theme/utils.d.ts +0 -7
  835. package/dist/utils/collections.d.ts +0 -4
  836. package/dist/utils/object.d.ts +0 -5
  837. package/dist/utils/prop-types.d.ts +0 -37
@@ -0,0 +1,878 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.StyledInputWrapper = exports.StyledInputPlaceholder = exports.StyledInputMainContainer = exports.StyledInputLabel = exports.StyledInputContent = exports.StyledInputContainer = exports.StyledInputClearButton = exports.StyledInputBlockLabel = exports.StyledInput = exports.StyledHelperTextContainer = exports.StyledHelperText = void 0;
5
+
6
+ var _stitches = require("../theme/stitches.config");
7
+
8
+ var _color = require("../utils/color");
9
+
10
+ const baseInputValues = {
11
+ $$inputColor: '$colors$accents1',
12
+ $$inputTextColor: '$colors$text',
13
+ $$inputPlaceholderColor: '$colors$accents3',
14
+ $$inputPlaceholderOpacity: 1,
15
+ $$inputShadow: '$shadows$sm',
16
+ $$inputBorderColor: '$colors$border',
17
+ $$inputHoverBorderColor: '$colors$foreground',
18
+ $$inputLabelColor: '$$inputHoverBorderColor'
19
+ };
20
+ const StyledInputMainContainer = (0, _stitches.styled)('div', { ...baseInputValues,
21
+ display: 'inline-flex',
22
+ flexDirection: 'column',
23
+ justifyContent: 'center',
24
+ position: 'relative',
25
+ boxSizing: 'border-box',
26
+ WebkitBoxAlign: 'center',
27
+ variants: {
28
+ color: {
29
+ default: {},
30
+ primary: {
31
+ $$inputHoverBorderColor: '$colors$primary',
32
+ $$inputLabelColor: '$colors$primary'
33
+ },
34
+ secondary: {
35
+ $$inputHoverBorderColor: '$colors$secondary',
36
+ $$inputLabelColor: '$colors$secondary'
37
+ },
38
+ success: {
39
+ $$inputHoverBorderColor: '$colors$success',
40
+ $$inputLabelColor: '$colors$success'
41
+ },
42
+ warning: {
43
+ $$inputHoverBorderColor: '$colors$warning',
44
+ $$inputLabelColor: '$colors$warning'
45
+ },
46
+ error: {
47
+ $$inputHoverBorderColor: '$colors$error',
48
+ $$inputLabelColor: '$colors$error'
49
+ }
50
+ },
51
+ status: {
52
+ default: {},
53
+ primary: {
54
+ $$inputColor: (0, _color.addColorAlpha)(_stitches.theme == null ? void 0 : _stitches.theme.colors.primary.value, 0.2),
55
+ $$inputPlaceholderColor: '$colors$primary',
56
+ $$inputTextColor: '$colors$primary',
57
+ $$inputLabelColor: '$$inputTextColor',
58
+ $$inputHoverBorderColor: '$colors$primary',
59
+ $$inputPlaceholderOpacity: 0.5
60
+ },
61
+ secondary: {
62
+ $$inputColor: (0, _color.addColorAlpha)(_stitches.theme == null ? void 0 : _stitches.theme.colors.secondary.value, 0.2),
63
+ $$inputPlaceholderColor: '$colors$secondary',
64
+ $$inputTextColor: '$colors$secondary',
65
+ $$inputLabelColor: '$$inputTextColor',
66
+ $$inputHoverBorderColor: '$colors$secondary',
67
+ $$inputPlaceholderOpacity: 0.5
68
+ },
69
+ success: {
70
+ $$inputColor: (0, _color.addColorAlpha)(_stitches.theme == null ? void 0 : _stitches.theme.colors.success.value, 0.2),
71
+ $$inputPlaceholderColor: '$colors$success',
72
+ $$inputTextColor: '$colors$success',
73
+ $$inputLabelColor: '$$inputTextColor',
74
+ $$inputHoverBorderColor: '$colors$success',
75
+ $$inputPlaceholderOpacity: 0.5
76
+ },
77
+ warning: {
78
+ $$inputColor: (0, _color.addColorAlpha)(_stitches.theme == null ? void 0 : _stitches.theme.colors.warning.value, 0.2),
79
+ $$inputPlaceholderColor: '$colors$warning',
80
+ $$inputTextColor: '$colors$warning',
81
+ $$inputLabelColor: '$$inputTextColor',
82
+ $$inputHoverBorderColor: '$colors$warning',
83
+ $$inputPlaceholderOpacity: 0.5
84
+ },
85
+ error: {
86
+ $$inputColor: (0, _color.addColorAlpha)(_stitches.theme == null ? void 0 : _stitches.theme.colors.error.value, 0.2),
87
+ $$inputPlaceholderColor: '$colors$error',
88
+ $$inputTextColor: '$colors$error',
89
+ $$inputLabelColor: '$$inputTextColor',
90
+ $$inputHoverBorderColor: '$colors$error',
91
+ $$inputPlaceholderOpacity: 0.5
92
+ }
93
+ },
94
+ helperColor: {
95
+ default: {
96
+ $$inputHelperColor: '$colors$text'
97
+ },
98
+ primary: {
99
+ $$inputHelperColor: '$colors$primary'
100
+ },
101
+ secondary: {
102
+ $$inputHelperColor: '$colors$secondary'
103
+ },
104
+ success: {
105
+ $$inputHelperColor: '$colors$success'
106
+ },
107
+ warning: {
108
+ $$inputHelperColor: '$colors$warning'
109
+ },
110
+ error: {
111
+ $$inputHelperColor: '$colors$error'
112
+ }
113
+ },
114
+ borderWeight: {
115
+ light: {
116
+ $$inputBorderWeight: '$borderWeights$light'
117
+ },
118
+ normal: {
119
+ $$inputBorderWeight: '$borderWeights$normal'
120
+ },
121
+ bold: {
122
+ $$inputBorderWeight: '$borderWeights$bold'
123
+ },
124
+ extrabold: {
125
+ $$inputBorderWeight: '$borderWeights$extrabold'
126
+ },
127
+ black: {
128
+ $$inputBorderWeight: '$borderWeights$black'
129
+ }
130
+ },
131
+ size: {
132
+ xs: {
133
+ $$inputBorderRadius: '$space$3',
134
+ $$inputFontSize: '$fontSizes$tiny',
135
+ $$inputHeightRatio: '1.2',
136
+ br: '$$inputBorderRadius'
137
+ },
138
+ sm: {
139
+ $$inputBorderRadius: '$space$4',
140
+ $$inputFontSize: '$fontSizes$tiny',
141
+ $$inputHeightRatio: '1.6',
142
+ br: '$$inputBorderRadius'
143
+ },
144
+ md: {
145
+ $$inputBorderRadius: '$space$6',
146
+ $$inputFontSize: '$fontSizes$xs',
147
+ $$inputHeightRatio: '2',
148
+ br: '$$inputBorderRadius'
149
+ },
150
+ lg: {
151
+ $$inputBorderRadius: '$space$7',
152
+ $$inputFontSize: '$fontSizes$base',
153
+ $$inputHeightRatio: '2.2',
154
+ br: '$$inputBorderRadius'
155
+ },
156
+ xl: {
157
+ $$inputBorderRadius: '$space$8',
158
+ $$inputFontSize: '$fontSizes$sm',
159
+ $$inputHeightRatio: '2.6',
160
+ br: '$$inputBorderRadius'
161
+ }
162
+ },
163
+ rounded: {
164
+ true: {
165
+ $$inputBorderRadius: '$radii$pill'
166
+ }
167
+ },
168
+ disabled: {
169
+ true: {
170
+ $$inputColor: '$colors$accents2',
171
+ $$inputTextColor: '$colors$accents3',
172
+ $$inputPlaceholderColor: '$colors$accents3',
173
+ $$inputShadow: '$shadows$sm'
174
+ }
175
+ }
176
+ }
177
+ });
178
+ exports.StyledInputMainContainer = StyledInputMainContainer;
179
+ const StyledInputContainer = (0, _stitches.styled)('div', {
180
+ width: '100%',
181
+ br: '$$inputBorderRadius',
182
+ '@motion': {
183
+ transition: 'none'
184
+ },
185
+ variants: {
186
+ isTextarea: {
187
+ false: {
188
+ display: 'inline-flex',
189
+ alignItems: 'center',
190
+ height: 'calc($$inputHeightRatio * $9)'
191
+ }
192
+ },
193
+ focused: {
194
+ true: {}
195
+ },
196
+ isReadOnly: {
197
+ false: {}
198
+ },
199
+ underlined: {
200
+ true: {}
201
+ },
202
+ animated: {
203
+ true: {
204
+ transition: '$default'
205
+ },
206
+ false: {
207
+ transition: 'none'
208
+ }
209
+ }
210
+ },
211
+ compoundVariants: [{
212
+ // underlined && !isReadOnly
213
+ isReadOnly: false,
214
+ underlined: true,
215
+ css: {
216
+ transform: 'none'
217
+ }
218
+ }, {
219
+ // focused && animated && !isReadOnly && !underlined
220
+ focused: true,
221
+ animated: true,
222
+ isReadOnly: false,
223
+ underlined: false,
224
+ css: {
225
+ transform: 'translateY(-$space$1)'
226
+ }
227
+ }]
228
+ });
229
+ exports.StyledInputContainer = StyledInputContainer;
230
+ const StyledInput = (0, _stitches.styled)('input', {
231
+ padding: 0,
232
+ fontSize: '$$inputFontSize',
233
+ bg: 'transparent',
234
+ border: 'none',
235
+ color: '$$inputTextColor',
236
+ br: 0,
237
+ outline: 'none',
238
+ size: '100%',
239
+ minWidth: 0,
240
+ WebkitAppearance: 'none',
241
+ '::placeholder': {
242
+ color: '$$inputPlaceholderColor',
243
+ transition: 'opacity 0.25s ease 0s',
244
+ MozTransition: 'opacity 0.25s ease 0s',
245
+ MsTransition: 'opacity 0.25s ease 0s',
246
+ WebkitTransition: 'opacity 0.25s ease 0s'
247
+ },
248
+ '@motion': {
249
+ transition: 'none',
250
+ '&::placeholder': {
251
+ transition: 'none'
252
+ }
253
+ },
254
+ '&:disabled': {
255
+ pe: 'none',
256
+ color: '$accents4',
257
+ cursor: 'not-allowed'
258
+ },
259
+ variants: {
260
+ isTextarea: {
261
+ true: {
262
+ boxShadow: 'none',
263
+ display: 'block',
264
+ size: '100%',
265
+ resize: 'none',
266
+ border: 'none',
267
+ outline: 'none'
268
+ }
269
+ },
270
+ focused: {
271
+ true: {
272
+ '&::placeholder': {
273
+ opacity: 0,
274
+ transition: 'opacity 0.25s ease 0s'
275
+ }
276
+ }
277
+ },
278
+ bordered: {
279
+ true: {
280
+ padding: '0 $3'
281
+ }
282
+ },
283
+ rounded: {
284
+ true: {
285
+ padding: '0 $3'
286
+ }
287
+ },
288
+ animated: {
289
+ false: {
290
+ transition: 'none',
291
+ '::placeholder': {
292
+ transition: 'none'
293
+ }
294
+ }
295
+ },
296
+ hasLeftContent: {
297
+ true: {
298
+ ml: 0
299
+ }
300
+ },
301
+ hasRightContent: {
302
+ true: {
303
+ mr: 0
304
+ }
305
+ }
306
+ }
307
+ });
308
+ exports.StyledInput = StyledInput;
309
+ const StyledInputWrapper = (0, _stitches.styled)('div', {
310
+ flex: 1,
311
+ position: 'relative',
312
+ br: '$$inputBorderRadius',
313
+ bg: '$$inputColor',
314
+ display: 'inline-flex',
315
+ verticalAlign: 'middle',
316
+ alignItems: 'center',
317
+ userSelect: 'none',
318
+ '@motion': {
319
+ transition: 'none',
320
+ '&:before': {
321
+ transition: 'none'
322
+ },
323
+ '&:after': {
324
+ transition: 'none'
325
+ }
326
+ },
327
+ variants: {
328
+ focused: {
329
+ true: {}
330
+ },
331
+ isReadOnly: {
332
+ true: {}
333
+ },
334
+ bordered: {
335
+ true: {
336
+ bg: 'transparent',
337
+ border: 'none',
338
+ boxShadow: '0 0 0 $$inputBorderWeight $$inputBorderColor',
339
+ transition: 'box-shadow 0.25s ease'
340
+ }
341
+ },
342
+ shadow: {
343
+ true: {
344
+ transition: '$default'
345
+ }
346
+ },
347
+ disabled: {
348
+ true: {
349
+ cursor: 'not-allowed'
350
+ }
351
+ },
352
+ underlined: {
353
+ true: {
354
+ bg: 'transparent',
355
+ [`& ${StyledInput}`]: {
356
+ margin: '$2 $3'
357
+ },
358
+ '&:before': {
359
+ content: '',
360
+ position: 'absolute',
361
+ zIndex: '$2',
362
+ width: 0,
363
+ bottom: 0,
364
+ height: '$1',
365
+ left: '50%',
366
+ transform: 'translate(-50%)',
367
+ background: '$$inputHoverBorderColor',
368
+ transition: 'width 0.25s ease'
369
+ },
370
+ '&:after': {
371
+ content: '',
372
+ position: 'absolute',
373
+ zIndex: '$1',
374
+ bottom: 0,
375
+ width: '100%',
376
+ height: '$$inputBorderWeight',
377
+ bg: '$$inputBorderColor'
378
+ }
379
+ },
380
+ false: {
381
+ [`& ${StyledInput}`]: {
382
+ margin: '$2 $5'
383
+ }
384
+ }
385
+ },
386
+ animated: {
387
+ false: {
388
+ transition: 'none',
389
+ '&:before': {
390
+ transition: 'none'
391
+ },
392
+ '&:after': {
393
+ transition: 'none'
394
+ }
395
+ }
396
+ },
397
+ isTextarea: {
398
+ true: {
399
+ boxSizing: 'border-box',
400
+ width: '100%',
401
+ maxWidth: '100%',
402
+ height: 'auto'
403
+ },
404
+ false: {
405
+ height: '100%'
406
+ }
407
+ }
408
+ },
409
+ compoundVariants: [{
410
+ // underlined && bordered
411
+ bordered: true,
412
+ underlined: true,
413
+ css: {
414
+ boxShadow: '0 0 0 0px $$inputBorderColor'
415
+ }
416
+ }, {
417
+ // focused && underlined
418
+ focused: true,
419
+ underlined: true,
420
+ css: {
421
+ '&:before': {
422
+ width: '100%'
423
+ }
424
+ }
425
+ }, // focused && shadow && !readOnly
426
+ {
427
+ focused: true,
428
+ shadow: true,
429
+ isReadOnly: false,
430
+ underlined: false,
431
+ css: {
432
+ boxShadow: '$$inputShadow'
433
+ }
434
+ }, // focused && bordered && !readOnly && !underlined
435
+ {
436
+ focused: true,
437
+ bordered: true,
438
+ isReadOnly: false,
439
+ underlined: false,
440
+ css: {
441
+ boxShadow: '0 0 0 $$inputBorderWeight $$inputHoverBorderColor'
442
+ }
443
+ }, // bordered && !readOnly && !underlined
444
+ {
445
+ bordered: true,
446
+ isReadOnly: false,
447
+ underlined: false,
448
+ css: {
449
+ '&:hover': {
450
+ boxShadow: '0 0 0 $$inputBorderWeight $$inputHoverBorderColor'
451
+ }
452
+ }
453
+ }, // isTextarea && !underlined
454
+ {
455
+ isTextarea: true,
456
+ underlined: false,
457
+ css: {
458
+ [`& ${StyledInput}`]: {
459
+ margin: '$xs $sm'
460
+ }
461
+ }
462
+ }]
463
+ });
464
+ exports.StyledInputWrapper = StyledInputWrapper;
465
+ const StyledHelperTextContainer = (0, _stitches.styled)('div', {
466
+ position: 'absolute',
467
+ opacity: 0,
468
+ bottom: 'calc($$inputHeightRatio * -$space$5)',
469
+ '@motion': {
470
+ transition: 'none'
471
+ },
472
+ variants: {
473
+ animated: {
474
+ true: {
475
+ transition: 'opacity 0.25s ease'
476
+ },
477
+ false: {
478
+ transition: 'none'
479
+ }
480
+ },
481
+ withValue: {
482
+ true: {
483
+ opacity: 1
484
+ }
485
+ }
486
+ }
487
+ });
488
+ exports.StyledHelperTextContainer = StyledHelperTextContainer;
489
+ const StyledHelperText = (0, _stitches.styled)('p', {
490
+ margin: '$1 0 0 $5',
491
+ fontSize: '$space$5',
492
+ color: '$$inputHelperColor'
493
+ });
494
+ exports.StyledHelperText = StyledHelperText;
495
+ const StyledInputPlaceholder = (0, _stitches.styled)('span', {}, _stitches.sharedVisuallyHidden); /// Input accessories
496
+
497
+ exports.StyledInputPlaceholder = StyledInputPlaceholder;
498
+ const StyledInputBlockLabel = (0, _stitches.styled)('label', {
499
+ d: 'block',
500
+ fontWeight: '$normal',
501
+ color: '$$inputLabelColor',
502
+ p: '0 0 0 $2',
503
+ mb: '$3',
504
+ fs: '$$inputFontSize',
505
+ lh: '$md',
506
+ WebkitTouchCallout: 'none'
507
+ /* iOS Safari */
508
+ ,
509
+ WebkitUserSelect: 'none'
510
+ /* Safari */
511
+ ,
512
+ KhtmlUserSelect: 'none'
513
+ /* Konqueror HTML */
514
+ ,
515
+ MozUserSelect: 'none'
516
+ /* Firefox */
517
+ ,
518
+ MsUserSelect: 'none'
519
+ /* Internet Explorer/Edge */
520
+ ,
521
+ us: 'none'
522
+ /* Non-prefixed version, currently supported by Chrome and Opera */
523
+ ,
524
+ '> *:first-child': {
525
+ marginTop: 0
526
+ },
527
+ '> *:last-child': {
528
+ mb: 0
529
+ },
530
+ '@motion': {
531
+ transition: 'none'
532
+ },
533
+ variants: {
534
+ rounded: {
535
+ true: {
536
+ padding: '0 0 0 $3'
537
+ }
538
+ },
539
+ asPlaceholder: {
540
+ true: {
541
+ position: 'absolute',
542
+ padding: 0,
543
+ zIndex: '$1',
544
+ left: '$space$6',
545
+ top: '20%',
546
+ mb: 0,
547
+ cursor: 'text',
548
+ color: '$$inputPlaceholderColor',
549
+ transition: 'left 0.25s ease 0s, color 0.25s ease 0s, top 0.25s ease 0s'
550
+ }
551
+ },
552
+ animated: {
553
+ false: {
554
+ transition: 'none'
555
+ }
556
+ },
557
+ focused: {
558
+ true: {
559
+ color: '$$inputHoverBorderColor'
560
+ }
561
+ },
562
+ underlined: {
563
+ true: {}
564
+ },
565
+ withValue: {
566
+ true: {}
567
+ },
568
+ isTextarea: {
569
+ true: {}
570
+ },
571
+ bordered: {
572
+ true: {}
573
+ },
574
+ hasContentLeft: {
575
+ true: {}
576
+ }
577
+ },
578
+ compoundVariants: [// underlined && asPlaceholder
579
+ {
580
+ underlined: true,
581
+ asPlaceholder: true,
582
+ css: {
583
+ left: '$space$2'
584
+ }
585
+ }, // asPlaceholder && focused && !underlined
586
+ {
587
+ asPlaceholder: true,
588
+ focused: true,
589
+ underlined: false,
590
+ css: {
591
+ top: '-72%',
592
+ left: '$2',
593
+ cursor: 'inherit'
594
+ }
595
+ }, // asPlaceholder && focused && underlined
596
+ {
597
+ asPlaceholder: true,
598
+ focused: true,
599
+ underlined: true,
600
+ css: {
601
+ top: '-72%',
602
+ left: '0px',
603
+ cursor: 'inherit'
604
+ }
605
+ }, // asPlaceholder && focused && withValue && !underlined
606
+ {
607
+ asPlaceholder: true,
608
+ withValue: true,
609
+ underlined: false,
610
+ css: {
611
+ color: '$$inputTextColor',
612
+ top: '-72%',
613
+ left: '$2',
614
+ cursor: 'inherit'
615
+ }
616
+ }, // asPlaceholder && focused && withValue && underlined
617
+ {
618
+ asPlaceholder: true,
619
+ withValue: true,
620
+ underlined: true,
621
+ css: {
622
+ color: '$$inputTextColor',
623
+ top: '-72%',
624
+ left: '0px',
625
+ cursor: 'inherit'
626
+ }
627
+ }, // asPlaceholder && isTextarea
628
+ {
629
+ asPlaceholder: true,
630
+ isTextarea: true,
631
+ css: {
632
+ top: '$5'
633
+ }
634
+ }, // asPlaceholder && hasContentLeft
635
+ {
636
+ asPlaceholder: true,
637
+ hasContentLeft: true,
638
+ css: {
639
+ left: 'calc($space$6 + $$inputHeightRatio * $space$7)'
640
+ }
641
+ }, // asPlaceholder && isTextarea && focused
642
+ {
643
+ asPlaceholder: true,
644
+ isTextarea: true,
645
+ focused: true,
646
+ css: {
647
+ top: '-$10'
648
+ }
649
+ }, // asPlaceholder && isTextarea && withValue
650
+ {
651
+ asPlaceholder: true,
652
+ isTextarea: true,
653
+ withValue: true,
654
+ css: {
655
+ top: '-$11'
656
+ }
657
+ }, // focused && asPlaceholder && isTextarea && bordered
658
+ {
659
+ asPlaceholder: true,
660
+ focused: true,
661
+ isTextarea: true,
662
+ bordered: true,
663
+ css: {
664
+ top: '-$12'
665
+ }
666
+ }],
667
+ defaultVariants: {
668
+ asPlaceholder: false
669
+ }
670
+ });
671
+ exports.StyledInputBlockLabel = StyledInputBlockLabel;
672
+ const StyledInputLabel = (0, _stitches.styled)('span', {
673
+ position: 'relative',
674
+ display: 'inline-flex',
675
+ width: 'initial',
676
+ height: '100%',
677
+ fontWeight: '$medium',
678
+ ai: 'center',
679
+ pe: 'none',
680
+ margin: 0,
681
+ padding: '0 $sm',
682
+ color: '$$inputPlaceholderColor',
683
+ fontSize: '$$inputFontSize',
684
+ lineHeight: '$xs',
685
+ variants: {
686
+ isRight: {
687
+ true: {
688
+ btrr: '$$inputBorderRadius',
689
+ bbrr: '$$inputBorderRadius'
690
+ },
691
+ false: {
692
+ btlr: '$$inputBorderRadius',
693
+ bblr: '$$inputBorderRadius'
694
+ }
695
+ },
696
+ isDark: {
697
+ true: {}
698
+ },
699
+ isDefaultStatus: {
700
+ true: {}
701
+ },
702
+ underlined: {
703
+ true: {
704
+ bg: 'transparent'
705
+ }
706
+ },
707
+ bordered: {
708
+ true: {
709
+ '&:after': {
710
+ display: 'none'
711
+ },
712
+ '&:before': {
713
+ display: 'none'
714
+ }
715
+ }
716
+ }
717
+ },
718
+ compoundVariants: [// isRight && underlined
719
+ {
720
+ isRight: true,
721
+ underlined: true,
722
+ css: {
723
+ borderLeftColor: '$$inputPlaceholderColor',
724
+ borderLeftStyle: 'solid',
725
+ marginLeft: '$2',
726
+ borderLeftWidth: 'calc($$inputBorderWeight / 2)',
727
+ height: '40%'
728
+ }
729
+ }, // !isRight && underlined
730
+ {
731
+ isRight: false,
732
+ underlined: true,
733
+ css: {
734
+ borderRightColor: '$$inputPlaceholderColor',
735
+ borderRightStyle: 'solid',
736
+ marginRight: '$2',
737
+ borderRightWidth: 'calc($$inputBorderWeight / 1)',
738
+ height: '40%'
739
+ }
740
+ }, // isDefaultStatus && !bordered && !underlined
741
+ {
742
+ isDefaultStatus: true,
743
+ bordered: false,
744
+ underlined: false,
745
+ css: {
746
+ bg: '$accents2'
747
+ }
748
+ }, // isDefaultStatus && !bordered && !underlined && isDark
749
+ {
750
+ isDefaultStatus: true,
751
+ bordered: false,
752
+ underlined: false,
753
+ isDark: true,
754
+ css: {
755
+ color: '$accents6'
756
+ }
757
+ }, // !isDefaultStatus && !bordered && !underlined
758
+ {
759
+ isDefaultStatus: false,
760
+ bordered: true,
761
+ underlined: false,
762
+ css: {
763
+ bg: '$$inputColor'
764
+ }
765
+ }, // bordered && isRight
766
+ {
767
+ bordered: true,
768
+ isRight: true,
769
+ css: {
770
+ peddingRight: '$sm',
771
+ paddingLeft: 0
772
+ }
773
+ }, // bordered && !isRight
774
+ {
775
+ bordered: true,
776
+ isRight: false,
777
+ css: {
778
+ peddingLeft: '$sm',
779
+ paddingRight: 0
780
+ }
781
+ }],
782
+ defaultVariants: {
783
+ isRight: false
784
+ }
785
+ });
786
+ exports.StyledInputLabel = StyledInputLabel;
787
+ const StyledInputContent = (0, _stitches.styled)('span', {
788
+ variants: {
789
+ applyStyles: {
790
+ true: {
791
+ display: 'flex',
792
+ boxSizing: 'content-box',
793
+ width: 'calc($$inputHeightRatio * $space$4)',
794
+ height: '100%',
795
+ alignItems: 'center',
796
+ verticalAlign: 'center',
797
+ margin: 0,
798
+ padding: '0 calc($$inputHeightRatio * $3)',
799
+ color: '$$inputTextColor',
800
+ lineHeight: '$xs',
801
+ position: 'relative',
802
+ cursor: 'default',
803
+ pe: 'none'
804
+ }
805
+ },
806
+ clickable: {
807
+ true: {
808
+ cursor: 'pointer',
809
+ pe: 'auto'
810
+ }
811
+ }
812
+ }
813
+ });
814
+ exports.StyledInputContent = StyledInputContent;
815
+ const StyledInputClearButton = (0, _stitches.styled)('button', {
816
+ position: 'absolute',
817
+ right: 0,
818
+ margin: 0,
819
+ d: 'inline-flex',
820
+ ai: 'center',
821
+ border: 'none',
822
+ bg: 'transparent',
823
+ width: 'auto',
824
+ height: 'auto',
825
+ cursor: 'pointer',
826
+ boxSizing: 'border-box',
827
+ transition: 'color 250ms ease 0s, transform 250ms ease 0s, opacity 250ms ease 0s',
828
+ color: '$$inputPlaceholderColor',
829
+ visibility: 'hidden',
830
+ transform: 'translateX(20%)',
831
+ opacity: 0,
832
+ '&:hover': {
833
+ opacity: 0.85
834
+ },
835
+ svg: {
836
+ color: 'currentColor',
837
+ size: 'calc($space$5 * $$inputHeightRatio)'
838
+ },
839
+ '@motion': {
840
+ transition: 'none'
841
+ },
842
+ variants: {
843
+ visible: {
844
+ true: {
845
+ visibility: 'visible',
846
+ transform: 'translateX(0)',
847
+ opacity: 1
848
+ }
849
+ },
850
+ underlined: {
851
+ true: {
852
+ padding: '0 $1'
853
+ }
854
+ },
855
+ animated: {
856
+ false: {
857
+ transition: 'none'
858
+ }
859
+ },
860
+ hasContentRight: {
861
+ true: {
862
+ padding: 0,
863
+ position: 'relative',
864
+ transform: 'translateX(30%)'
865
+ }
866
+ },
867
+ disabled: {
868
+ true: {
869
+ cursor: 'not-allowed',
870
+ '&:hover': {
871
+ color: '$accents3'
872
+ }
873
+ }
874
+ }
875
+ }
876
+ }); // types
877
+
878
+ exports.StyledInputClearButton = StyledInputClearButton;