@helpdice/ui 1.0.1 → 1.0.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 (1008) hide show
  1. package/dist/auto-complete/auto-complete-context.d.ts +10 -0
  2. package/dist/auto-complete/auto-complete-dropdown.d.ts +12 -0
  3. package/dist/auto-complete/auto-complete-empty.d.ts +8 -0
  4. package/dist/auto-complete/auto-complete-item.d.ts +8 -0
  5. package/dist/auto-complete/auto-complete-searching.d.ts +38 -0
  6. package/dist/auto-complete/auto-complete.d.ts +32 -0
  7. package/dist/auto-complete/index.d.ts +13 -0
  8. package/dist/auto-complete/index.js +2334 -0
  9. package/dist/avatar/avatar-group.d.ts +43 -0
  10. package/dist/avatar/avatar.d.ts +43 -0
  11. package/dist/avatar/index.d.ts +9 -0
  12. package/dist/avatar/index.js +1192 -0
  13. package/dist/badge/badge-anchor.d.ts +11 -0
  14. package/dist/badge/badge.d.ts +46 -0
  15. package/dist/badge/index.d.ts +9 -0
  16. package/dist/badge/index.js +1290 -0
  17. package/dist/breadcrumbs/breadcrumbs-item.d.ts +15 -0
  18. package/dist/breadcrumbs/breadcrumbs-separator.d.ts +42 -0
  19. package/dist/breadcrumbs/breadcrumbs.d.ts +43 -0
  20. package/dist/breadcrumbs/index.d.ts +12 -0
  21. package/dist/breadcrumbs/index.js +1366 -0
  22. package/dist/button/button-icon.d.ts +10 -0
  23. package/dist/button/button-loading.d.ts +6 -0
  24. package/dist/button/button.d.ts +55 -0
  25. package/dist/button/button.drip.d.ts +10 -0
  26. package/dist/button/index.d.ts +4 -0
  27. package/dist/button/index.js +1679 -0
  28. package/dist/button/styles.d.ts +18 -0
  29. package/dist/button/utils.d.ts +8 -0
  30. package/dist/button-dropdown/button-dropdown-context.d.ts +10 -0
  31. package/dist/button-dropdown/button-dropdown-item.d.ts +13 -0
  32. package/dist/button-dropdown/button-dropdown.d.ts +49 -0
  33. package/dist/button-dropdown/icon.d.ts +7 -0
  34. package/dist/button-dropdown/index.d.ts +9 -0
  35. package/dist/button-dropdown/index.js +1474 -0
  36. package/dist/button-dropdown/styles.d.ts +11 -0
  37. package/dist/button-group/button-group-context.d.ts +10 -0
  38. package/dist/button-group/button-group.d.ts +47 -0
  39. package/dist/button-group/index.d.ts +4 -0
  40. package/dist/button-group/index.js +1183 -0
  41. package/dist/capacity/capacity.d.ts +43 -0
  42. package/dist/capacity/index.d.ts +3 -0
  43. package/dist/capacity/index.js +1186 -0
  44. package/dist/card/card-content.d.ts +42 -0
  45. package/dist/card/card-footer.d.ts +43 -0
  46. package/dist/card/card.d.ts +46 -0
  47. package/dist/card/index.d.ts +15 -0
  48. package/dist/card/index.js +1637 -0
  49. package/dist/card/styles.d.ts +8 -0
  50. package/dist/cart/index.d.ts +72 -0
  51. package/dist/cart/useLocalStorage.d.ts +1 -0
  52. package/dist/checkbox/checkbox-context.d.ts +9 -0
  53. package/dist/checkbox/checkbox-group.d.ts +45 -0
  54. package/dist/checkbox/checkbox.d.ts +57 -0
  55. package/dist/checkbox/checkbox.icon.d.ts +9 -0
  56. package/dist/checkbox/index.d.ts +9 -0
  57. package/dist/checkbox/index.js +1410 -0
  58. package/dist/checkbox/styles.d.ts +7 -0
  59. package/dist/code/code.d.ts +45 -0
  60. package/dist/code/index.d.ts +3 -0
  61. package/dist/code/index.js +1205 -0
  62. package/dist/code-block/index.d.ts +10 -0
  63. package/dist/col/index.js +567 -0
  64. package/dist/collapse/collapse-context.d.ts +7 -0
  65. package/dist/collapse/collapse-group.d.ts +43 -0
  66. package/dist/collapse/collapse-icon.d.ts +6 -0
  67. package/dist/collapse/collapse.d.ts +47 -0
  68. package/dist/collapse/index.d.ts +9 -0
  69. package/dist/collapse/index.js +1513 -0
  70. package/dist/css-baseline/css-baseline.d.ts +11 -0
  71. package/dist/css-baseline/index.d.ts +1 -0
  72. package/dist/css-baseline/index.js +839 -0
  73. package/dist/description/description.d.ts +42 -0
  74. package/dist/description/index.d.ts +3 -0
  75. package/dist/description/index.js +1149 -0
  76. package/dist/display/display.d.ts +44 -0
  77. package/dist/display/index.d.ts +3 -0
  78. package/dist/display/index.js +1153 -0
  79. package/dist/divider/divider.d.ts +46 -0
  80. package/dist/divider/index.d.ts +4 -0
  81. package/dist/divider/index.js +1172 -0
  82. package/dist/dot/dot.d.ts +45 -0
  83. package/dist/dot/index.d.ts +3 -0
  84. package/dist/dot/index.js +1159 -0
  85. package/dist/drawer/drawer-wrapper.d.ts +10 -0
  86. package/dist/drawer/drawer.d.ts +15 -0
  87. package/dist/drawer/helper.d.ts +9 -0
  88. package/dist/drawer/index.d.ts +13 -0
  89. package/dist/drawer/index.js +1839 -0
  90. package/dist/fieldset/fieldset-content.d.ts +42 -0
  91. package/dist/fieldset/fieldset-context.d.ts +12 -0
  92. package/dist/fieldset/fieldset-footer.d.ts +42 -0
  93. package/dist/fieldset/fieldset-group.d.ts +44 -0
  94. package/dist/fieldset/fieldset-subtitle.d.ts +8 -0
  95. package/dist/fieldset/fieldset-title.d.ts +8 -0
  96. package/dist/fieldset/fieldset.d.ts +46 -0
  97. package/dist/fieldset/index.d.ts +22 -0
  98. package/dist/fieldset/index.js +1444 -0
  99. package/dist/form/ErrorMessage.d.ts +17 -0
  100. package/dist/form/Field.d.ts +53 -0
  101. package/dist/form/FormWrapper.d.ts +62 -0
  102. package/dist/form/FormikContext.d.ts +6 -0
  103. package/dist/form/connect.d.ts +12 -0
  104. package/dist/form/constants.d.ts +1 -0
  105. package/dist/form/index.d.ts +9 -0
  106. package/dist/form/types.d.ts +249 -0
  107. package/dist/form/utils.d.ts +68 -0
  108. package/dist/form/withFormik.d.ts +68 -0
  109. package/dist/grid/basic-item.d.ts +19 -0
  110. package/dist/grid/grid-container.d.ts +299 -0
  111. package/dist/grid/grid-types.d.ts +11 -0
  112. package/dist/grid/grid.d.ts +296 -0
  113. package/dist/grid/index.d.ts +11 -0
  114. package/dist/grid/index.js +1262 -0
  115. package/dist/image/helpers.d.ts +2 -0
  116. package/dist/image/image-browser-https-icon.d.ts +3 -0
  117. package/dist/image/image-browser.d.ts +47 -0
  118. package/dist/image/image.d.ts +43 -0
  119. package/dist/image/image.skeleton.d.ts +7 -0
  120. package/dist/image/index.d.ts +9 -0
  121. package/dist/image/index.js +1470 -0
  122. package/dist/image/styles.d.ts +9 -0
  123. package/dist/index.d.ts +130 -0
  124. package/dist/index.js +34412 -0
  125. package/dist/input/index.d.ts +13 -0
  126. package/dist/input/index.js +1629 -0
  127. package/dist/input/input-block-label.d.ts +5 -0
  128. package/dist/input/input-icon-clear.d.ts +8 -0
  129. package/dist/input/input-icon.d.ts +8 -0
  130. package/dist/input/input-label.d.ts +6 -0
  131. package/dist/input/input-props.d.ts +29 -0
  132. package/dist/input/input.d.ts +38 -0
  133. package/dist/input/password-icon.d.ts +6 -0
  134. package/dist/input/password.d.ts +51 -0
  135. package/dist/input/styles.d.ts +8 -0
  136. package/dist/keyboard/index.d.ts +3 -0
  137. package/dist/keyboard/index.js +1127 -0
  138. package/dist/keyboard/keyboard.d.ts +46 -0
  139. package/dist/link/icon.d.ts +4 -0
  140. package/dist/link/index.d.ts +3 -0
  141. package/dist/link/index.js +1260 -0
  142. package/dist/link/link.d.ts +45 -0
  143. package/dist/loading/index.d.ts +3 -0
  144. package/dist/loading/index.js +1170 -0
  145. package/dist/loading/loading.d.ts +47 -0
  146. package/dist/login-with/LoginSocialAmazon/index.d.ts +19 -0
  147. package/dist/login-with/LoginSocialApple/index.d.ts +14 -0
  148. package/dist/login-with/LoginSocialFacebook/index.d.ts +26 -0
  149. package/dist/login-with/LoginSocialGithub/index.d.ts +21 -0
  150. package/dist/login-with/LoginSocialGoogle/index.d.ts +25 -0
  151. package/dist/login-with/LoginSocialInstagram/index.d.ts +22 -0
  152. package/dist/login-with/LoginSocialLinkedin/index.d.ts +20 -0
  153. package/dist/login-with/LoginSocialMicrosoft/index.d.ts +24 -0
  154. package/dist/login-with/LoginSocialPinterest/index.d.ts +19 -0
  155. package/dist/login-with/LoginSocialTiktok/index.d.ts +16 -0
  156. package/dist/login-with/LoginSocialTwitter/index.d.ts +20 -0
  157. package/dist/login-with/index.d.ts +18 -0
  158. package/dist/modal/index.d.ts +18 -0
  159. package/dist/modal/index.js +2440 -0
  160. package/dist/modal/modal-action.d.ts +46 -0
  161. package/dist/modal/modal-actions.d.ts +5 -0
  162. package/dist/modal/modal-content.d.ts +42 -0
  163. package/dist/modal/modal-context.d.ts +6 -0
  164. package/dist/modal/modal-subtitle.d.ts +42 -0
  165. package/dist/modal/modal-title.d.ts +42 -0
  166. package/dist/modal/modal-wrapper.d.ts +8 -0
  167. package/dist/modal/modal.d.ts +50 -0
  168. package/dist/note/index.d.ts +3 -0
  169. package/dist/note/index.js +1177 -0
  170. package/dist/note/note.d.ts +48 -0
  171. package/dist/page/index.d.ts +16 -0
  172. package/dist/page/index.js +1313 -0
  173. package/dist/page/page-content.d.ts +42 -0
  174. package/dist/page/page-footer.d.ts +42 -0
  175. package/dist/page/page-header.d.ts +43 -0
  176. package/dist/page/page.d.ts +51 -0
  177. package/dist/pagination/index.d.ts +12 -0
  178. package/dist/pagination/index.js +1563 -0
  179. package/dist/pagination/pagination-context.d.ts +11 -0
  180. package/dist/pagination/pagination-ellipsis.d.ts +7 -0
  181. package/dist/pagination/pagination-item.d.ts +10 -0
  182. package/dist/pagination/pagination-next.d.ts +4 -0
  183. package/dist/pagination/pagination-pages.d.ts +9 -0
  184. package/dist/pagination/pagination-previous.d.ts +4 -0
  185. package/dist/pagination/pagination.d.ts +47 -0
  186. package/dist/popover/index.d.ts +10 -0
  187. package/dist/popover/index.js +1849 -0
  188. package/dist/popover/popover-context.d.ts +7 -0
  189. package/dist/popover/popover-item.d.ts +45 -0
  190. package/dist/popover/popover.d.ts +52 -0
  191. package/dist/progress/index.d.ts +3 -0
  192. package/dist/progress/index.js +1208 -0
  193. package/dist/progress/progress.d.ts +51 -0
  194. package/dist/radio/index.d.ts +13 -0
  195. package/dist/radio/index.js +1392 -0
  196. package/dist/radio/radio-context.d.ts +9 -0
  197. package/dist/radio/radio-description.d.ts +42 -0
  198. package/dist/radio/radio-group.d.ts +47 -0
  199. package/dist/radio/radio.d.ts +58 -0
  200. package/dist/radio/styles.d.ts +8 -0
  201. package/dist/rating/index.d.ts +3 -0
  202. package/dist/rating/index.js +1297 -0
  203. package/dist/rating/rating-icon.d.ts +3 -0
  204. package/dist/rating/rating.d.ts +54 -0
  205. package/dist/row/index.js +895 -0
  206. package/dist/search-bar/index.js +1176 -0
  207. package/dist/select/index.d.ts +9 -0
  208. package/dist/select/index.js +2125 -0
  209. package/dist/select/select-context.d.ts +11 -0
  210. package/dist/select/select-dropdown.d.ts +14 -0
  211. package/dist/select/select-icon-clear.d.ts +6 -0
  212. package/dist/select/select-icon.d.ts +3 -0
  213. package/dist/select/select-input.d.ts +8 -0
  214. package/dist/select/select-multiple-value.d.ts +7 -0
  215. package/dist/select/select-option.d.ts +47 -0
  216. package/dist/select/select.d.ts +62 -0
  217. package/dist/select/styles.d.ts +9 -0
  218. package/dist/shared/backdrop.d.ts +14 -0
  219. package/dist/shared/css-transition.d.ts +12 -0
  220. package/dist/shared/dropdown.d.ts +9 -0
  221. package/dist/shared/ellipsis.d.ts +6 -0
  222. package/dist/shared/expand.d.ts +7 -0
  223. package/dist/shared/highlight.d.ts +13 -0
  224. package/dist/skeleton/index.d.ts +14 -0
  225. package/dist/slider/index.d.ts +3 -0
  226. package/dist/slider/index.js +1461 -0
  227. package/dist/slider/slider-dot.d.ts +12 -0
  228. package/dist/slider/slider-mark.d.ts +10 -0
  229. package/dist/slider/slider.d.ts +54 -0
  230. package/dist/slider/styles.d.ts +6 -0
  231. package/dist/snippet/index.d.ts +4 -0
  232. package/dist/snippet/index.js +1547 -0
  233. package/dist/snippet/snippet-icon.d.ts +3 -0
  234. package/dist/snippet/snippet.d.ts +51 -0
  235. package/dist/snippet/styles.d.ts +8 -0
  236. package/dist/spacer/index.d.ts +3 -0
  237. package/dist/spacer/index.js +1109 -0
  238. package/dist/spacer/spacer.d.ts +41 -0
  239. package/dist/spinner/index.d.ts +3 -0
  240. package/dist/spinner/index.js +1166 -0
  241. package/dist/spinner/spinner.d.ts +40 -0
  242. package/dist/styled-jsx.cjs.js +748 -0
  243. package/dist/table/index.d.ts +5 -0
  244. package/dist/table/index.js +1486 -0
  245. package/dist/table/table-body.d.ts +18 -0
  246. package/dist/table/table-cell.d.ts +18 -0
  247. package/dist/table/table-column.d.ts +14 -0
  248. package/dist/table/table-context.d.ts +8 -0
  249. package/dist/table/table-head.d.ts +14 -0
  250. package/dist/table/table-types.d.ts +14 -0
  251. package/dist/table/table.d.ts +57 -0
  252. package/dist/tabs/index.d.ts +9 -0
  253. package/dist/tabs/index.js +1488 -0
  254. package/dist/tabs/tabs-context.d.ts +21 -0
  255. package/dist/tabs/tabs-item.d.ts +44 -0
  256. package/dist/tabs/tabs.d.ts +54 -0
  257. package/dist/tag/index.d.ts +3 -0
  258. package/dist/tag/index.js +1155 -0
  259. package/dist/tag/tag.d.ts +51 -0
  260. package/dist/text/child.d.ts +11 -0
  261. package/dist/text/index.d.ts +3 -0
  262. package/dist/text/index.js +1251 -0
  263. package/dist/text/text.d.ts +59 -0
  264. package/dist/textarea/index.d.ts +3 -0
  265. package/dist/textarea/index.js +1298 -0
  266. package/dist/textarea/textarea.d.ts +54 -0
  267. package/dist/themes/index.d.ts +4 -0
  268. package/dist/themes/index.js +302 -0
  269. package/dist/themes/presets/dark.d.ts +8 -0
  270. package/dist/themes/presets/default.d.ts +8 -0
  271. package/dist/themes/presets/index.d.ts +90 -0
  272. package/dist/themes/presets/shared.d.ts +4 -0
  273. package/dist/themes/themes.d.ts +18 -0
  274. package/dist/toggle/index.d.ts +3 -0
  275. package/dist/toggle/index.js +1245 -0
  276. package/dist/toggle/styles.d.ts +6 -0
  277. package/dist/toggle/toggle.d.ts +60 -0
  278. package/dist/tooltip/helper.d.ts +10 -0
  279. package/dist/tooltip/index.d.ts +3 -0
  280. package/dist/tooltip/index.js +1709 -0
  281. package/dist/tooltip/placement.d.ts +29 -0
  282. package/dist/tooltip/styles.d.ts +7 -0
  283. package/dist/tooltip/tooltip-content.d.ts +18 -0
  284. package/dist/tooltip/tooltip-icon.d.ts +8 -0
  285. package/dist/tooltip/tooltip.d.ts +59 -0
  286. package/dist/tree/index.d.ts +10 -0
  287. package/dist/tree/index.js +1410 -0
  288. package/dist/tree/tree-context.d.ts +8 -0
  289. package/dist/tree/tree-file-icon.d.ts +8 -0
  290. package/dist/tree/tree-file.d.ts +12 -0
  291. package/dist/tree/tree-folder-icon.d.ts +8 -0
  292. package/dist/tree/tree-folder.d.ts +12 -0
  293. package/dist/tree/tree-help.d.ts +4 -0
  294. package/dist/tree/tree-indents.d.ts +6 -0
  295. package/dist/tree/tree-status-icon.d.ts +9 -0
  296. package/dist/tree/tree.d.ts +18 -0
  297. package/dist/ui-provider/index.d.ts +3 -0
  298. package/dist/ui-provider/index.js +2155 -0
  299. package/dist/ui-provider/theme-provider.d.ts +8 -0
  300. package/dist/ui-provider/ui-provider.d.ts +8 -0
  301. package/dist/use-all-themes/all-themes-context.d.ts +7 -0
  302. package/dist/use-all-themes/index.d.ts +3 -0
  303. package/dist/use-all-themes/index.js +318 -0
  304. package/dist/use-body-scroll/index.d.ts +3 -0
  305. package/dist/use-body-scroll/index.js +158 -0
  306. package/dist/use-body-scroll/use-body-scroll.d.ts +11 -0
  307. package/dist/use-classes/index.d.ts +2 -0
  308. package/dist/use-classes/index.js +47 -0
  309. package/dist/use-classes/use-classes.d.ts +4 -0
  310. package/dist/use-click-away/index.d.ts +2 -0
  311. package/dist/use-click-away/index.js +26 -0
  312. package/dist/use-click-away/use-click-away.d.ts +4 -0
  313. package/dist/use-clipboard/index.d.ts +3 -0
  314. package/dist/use-clipboard/index.js +158 -0
  315. package/dist/use-clipboard/use-clipboard.d.ts +8 -0
  316. package/dist/use-current-state/index.d.ts +2 -0
  317. package/dist/use-current-state/index.js +76 -0
  318. package/dist/use-current-state/use-current-state.d.ts +4 -0
  319. package/dist/use-input/index.d.ts +3 -0
  320. package/dist/use-input/index.js +112 -0
  321. package/dist/use-input/use-input.d.ts +13 -0
  322. package/dist/use-keyboard/codes.d.ts +92 -0
  323. package/dist/use-keyboard/helper.d.ts +3 -0
  324. package/dist/use-keyboard/index.d.ts +5 -0
  325. package/dist/use-keyboard/index.js +203 -0
  326. package/dist/use-keyboard/use-keyboard.d.ts +22 -0
  327. package/dist/use-media-query/index.d.ts +3 -0
  328. package/dist/use-media-query/index.js +455 -0
  329. package/dist/use-media-query/use-media-query.d.ts +12 -0
  330. package/dist/use-modal/index.d.ts +3 -0
  331. package/dist/use-modal/index.js +97 -0
  332. package/dist/use-modal/use-modal.d.ts +10 -0
  333. package/dist/use-scale/index.d.ts +6 -0
  334. package/dist/use-scale/index.js +592 -0
  335. package/dist/use-scale/scale-context.d.ts +50 -0
  336. package/dist/use-scale/utils.d.ts +68 -0
  337. package/dist/use-scale/with-scale.d.ts +35 -0
  338. package/dist/use-tabs/index.d.ts +2 -0
  339. package/dist/use-tabs/index.js +96 -0
  340. package/dist/use-tabs/use-tabs.d.ts +11 -0
  341. package/dist/use-theme/index.d.ts +2 -0
  342. package/dist/use-theme/index.js +316 -0
  343. package/dist/use-theme/theme-context.d.ts +4 -0
  344. package/dist/use-toasts/helpers.d.ts +17 -0
  345. package/dist/use-toasts/index.d.ts +3 -0
  346. package/dist/use-toasts/index.js +207 -0
  347. package/dist/use-toasts/toast-container.d.ts +3 -0
  348. package/dist/use-toasts/toast-item.d.ts +8 -0
  349. package/dist/use-toasts/use-toast.d.ts +40 -0
  350. package/dist/user/index.d.ts +8 -0
  351. package/dist/user/index.js +1392 -0
  352. package/dist/user/user-link.d.ts +11 -0
  353. package/dist/user/user.d.ts +46 -0
  354. package/dist/utils/calculations.d.ts +10 -0
  355. package/dist/utils/collections.d.ts +15 -0
  356. package/dist/utils/color.d.ts +2 -0
  357. package/dist/utils/layouts.d.ts +20 -0
  358. package/dist/utils/prop-types.d.ts +19 -0
  359. package/dist/utils/types.d.ts +3 -0
  360. package/dist/utils/use-body-scroll.d.ts +2 -0
  361. package/dist/utils/use-click-anywhere.d.ts +2 -0
  362. package/dist/utils/use-click-away.d.ts +2 -0
  363. package/dist/utils/use-clipboard.d.ts +2 -0
  364. package/dist/utils/use-current-state.d.ts +2 -0
  365. package/dist/utils/use-dom-observer.d.ts +3 -0
  366. package/dist/utils/use-drag.d.ts +8 -0
  367. package/dist/utils/use-hd-ui-context.d.ts +16 -0
  368. package/dist/utils/use-portal.d.ts +2 -0
  369. package/dist/utils/use-previous.d.ts +2 -0
  370. package/dist/utils/use-real-shape.d.ts +9 -0
  371. package/dist/utils/use-resize.d.ts +2 -0
  372. package/dist/utils/use-ssr.d.ts +6 -0
  373. package/dist/utils/use-warning.d.ts +2 -0
  374. package/esm/auto-complete/auto-complete-context.d.ts +10 -0
  375. package/esm/auto-complete/auto-complete-context.js +8 -0
  376. package/esm/auto-complete/auto-complete-dropdown.d.ts +12 -0
  377. package/esm/auto-complete/auto-complete-dropdown.js +43 -0
  378. package/esm/auto-complete/auto-complete-empty.d.ts +8 -0
  379. package/esm/auto-complete/auto-complete-empty.js +15 -0
  380. package/esm/auto-complete/auto-complete-item.d.ts +8 -0
  381. package/esm/auto-complete/auto-complete-item.js +45 -0
  382. package/esm/auto-complete/auto-complete-searching.d.ts +38 -0
  383. package/esm/auto-complete/auto-complete-searching.js +25 -0
  384. package/esm/auto-complete/auto-complete.d.ts +32 -0
  385. package/esm/auto-complete/auto-complete.js +197 -0
  386. package/esm/auto-complete/index.d.ts +13 -0
  387. package/esm/auto-complete/index.js +11 -0
  388. package/esm/avatar/avatar-group.d.ts +43 -0
  389. package/esm/avatar/avatar-group.js +25 -0
  390. package/esm/avatar/avatar.d.ts +43 -0
  391. package/esm/avatar/avatar.js +54 -0
  392. package/esm/avatar/index.d.ts +9 -0
  393. package/esm/avatar/index.js +6 -0
  394. package/esm/badge/badge-anchor.d.ts +11 -0
  395. package/esm/badge/badge-anchor.js +64 -0
  396. package/esm/badge/badge.d.ts +46 -0
  397. package/esm/badge/badge.js +50 -0
  398. package/esm/badge/index.d.ts +9 -0
  399. package/esm/badge/index.js +6 -0
  400. package/esm/breadcrumbs/breadcrumbs-item.d.ts +15 -0
  401. package/esm/breadcrumbs/breadcrumbs-item.js +43 -0
  402. package/esm/breadcrumbs/breadcrumbs-separator.d.ts +42 -0
  403. package/esm/breadcrumbs/breadcrumbs-separator.js +21 -0
  404. package/esm/breadcrumbs/breadcrumbs.d.ts +43 -0
  405. package/esm/breadcrumbs/breadcrumbs.js +41 -0
  406. package/esm/breadcrumbs/index.d.ts +12 -0
  407. package/esm/breadcrumbs/index.js +8 -0
  408. package/esm/button/button-icon.d.ts +10 -0
  409. package/esm/button/button-icon.js +26 -0
  410. package/esm/button/button-loading.d.ts +6 -0
  411. package/esm/button/button-loading.js +15 -0
  412. package/esm/button/button.d.ts +55 -0
  413. package/esm/button/button.drip.d.ts +10 -0
  414. package/esm/button/button.drip.js +58 -0
  415. package/esm/button/button.js +132 -0
  416. package/esm/button/index.d.ts +4 -0
  417. package/esm/button/index.js +4 -0
  418. package/esm/button/styles.d.ts +18 -0
  419. package/esm/button/styles.js +188 -0
  420. package/esm/button/utils.d.ts +8 -0
  421. package/esm/button/utils.js +40 -0
  422. package/esm/button-dropdown/button-dropdown-context.d.ts +10 -0
  423. package/esm/button-dropdown/button-dropdown-context.js +11 -0
  424. package/esm/button-dropdown/button-dropdown-item.d.ts +13 -0
  425. package/esm/button-dropdown/button-dropdown-item.js +47 -0
  426. package/esm/button-dropdown/button-dropdown.d.ts +49 -0
  427. package/esm/button-dropdown/button-dropdown.js +105 -0
  428. package/esm/button-dropdown/icon.d.ts +7 -0
  429. package/esm/button-dropdown/icon.js +28 -0
  430. package/esm/button-dropdown/index.d.ts +9 -0
  431. package/esm/button-dropdown/index.js +6 -0
  432. package/esm/button-dropdown/styles.d.ts +11 -0
  433. package/esm/button-dropdown/styles.js +46 -0
  434. package/esm/button-group/button-group-context.d.ts +10 -0
  435. package/esm/button-group/button-group-context.js +9 -0
  436. package/esm/button-group/button-group.d.ts +47 -0
  437. package/esm/button-group/button-group.js +63 -0
  438. package/esm/button-group/index.d.ts +4 -0
  439. package/esm/button-group/index.js +4 -0
  440. package/esm/capacity/capacity.d.ts +43 -0
  441. package/esm/capacity/capacity.js +46 -0
  442. package/esm/capacity/index.d.ts +3 -0
  443. package/esm/capacity/index.js +4 -0
  444. package/esm/card/card-content.d.ts +42 -0
  445. package/esm/card/card-content.js +24 -0
  446. package/esm/card/card-footer.d.ts +43 -0
  447. package/esm/card/card-footer.js +31 -0
  448. package/esm/card/card.d.ts +46 -0
  449. package/esm/card/card.js +57 -0
  450. package/esm/card/index.d.ts +15 -0
  451. package/esm/card/index.js +10 -0
  452. package/esm/card/styles.d.ts +8 -0
  453. package/esm/card/styles.js +53 -0
  454. package/esm/cart/index.d.ts +72 -0
  455. package/esm/cart/index.js +266 -0
  456. package/esm/cart/useLocalStorage.d.ts +1 -0
  457. package/esm/cart/useLocalStorage.js +28 -0
  458. package/esm/checkbox/checkbox-context.d.ts +9 -0
  459. package/esm/checkbox/checkbox-context.js +10 -0
  460. package/esm/checkbox/checkbox-group.d.ts +45 -0
  461. package/esm/checkbox/checkbox-group.js +64 -0
  462. package/esm/checkbox/checkbox.d.ts +57 -0
  463. package/esm/checkbox/checkbox.icon.d.ts +9 -0
  464. package/esm/checkbox/checkbox.icon.js +46 -0
  465. package/esm/checkbox/checkbox.js +103 -0
  466. package/esm/checkbox/index.d.ts +9 -0
  467. package/esm/checkbox/index.js +6 -0
  468. package/esm/checkbox/styles.d.ts +7 -0
  469. package/esm/checkbox/styles.js +27 -0
  470. package/esm/code/code.d.ts +45 -0
  471. package/esm/code/code.js +51 -0
  472. package/esm/code/index.d.ts +3 -0
  473. package/esm/code/index.js +4 -0
  474. package/esm/code-block/index.d.ts +10 -0
  475. package/esm/code-block/index.js +28 -0
  476. package/esm/col/col.js +26 -0
  477. package/esm/col/index.js +4 -0
  478. package/esm/collapse/collapse-context.d.ts +7 -0
  479. package/esm/collapse/collapse-context.js +8 -0
  480. package/esm/collapse/collapse-group.d.ts +43 -0
  481. package/esm/collapse/collapse-group.js +68 -0
  482. package/esm/collapse/collapse-icon.d.ts +6 -0
  483. package/esm/collapse/collapse-icon.js +26 -0
  484. package/esm/collapse/collapse.d.ts +47 -0
  485. package/esm/collapse/collapse.js +83 -0
  486. package/esm/collapse/index.d.ts +9 -0
  487. package/esm/collapse/index.js +6 -0
  488. package/esm/css-baseline/css-baseline.d.ts +11 -0
  489. package/esm/css-baseline/css-baseline.js +24 -0
  490. package/esm/css-baseline/index.d.ts +1 -0
  491. package/esm/css-baseline/index.js +3 -0
  492. package/esm/description/description.d.ts +42 -0
  493. package/esm/description/description.js +34 -0
  494. package/esm/description/index.d.ts +3 -0
  495. package/esm/description/index.js +4 -0
  496. package/esm/display/display.d.ts +44 -0
  497. package/esm/display/display.js +38 -0
  498. package/esm/display/index.d.ts +3 -0
  499. package/esm/display/index.js +4 -0
  500. package/esm/divider/divider.d.ts +46 -0
  501. package/esm/divider/divider.js +57 -0
  502. package/esm/divider/index.d.ts +4 -0
  503. package/esm/divider/index.js +4 -0
  504. package/esm/dot/dot.d.ts +45 -0
  505. package/esm/dot/dot.js +44 -0
  506. package/esm/dot/index.d.ts +3 -0
  507. package/esm/dot/index.js +4 -0
  508. package/esm/drawer/drawer-wrapper.d.ts +10 -0
  509. package/esm/drawer/drawer-wrapper.js +80 -0
  510. package/esm/drawer/drawer.d.ts +15 -0
  511. package/esm/drawer/drawer.js +73 -0
  512. package/esm/drawer/helper.d.ts +9 -0
  513. package/esm/drawer/helper.js +27 -0
  514. package/esm/drawer/index.d.ts +13 -0
  515. package/esm/drawer/index.js +10 -0
  516. package/esm/fieldset/fieldset-content.d.ts +42 -0
  517. package/esm/fieldset/fieldset-content.js +25 -0
  518. package/esm/fieldset/fieldset-context.d.ts +12 -0
  519. package/esm/fieldset/fieldset-context.js +9 -0
  520. package/esm/fieldset/fieldset-footer.d.ts +42 -0
  521. package/esm/fieldset/fieldset-footer.js +25 -0
  522. package/esm/fieldset/fieldset-group.d.ts +44 -0
  523. package/esm/fieldset/fieldset-group.js +79 -0
  524. package/esm/fieldset/fieldset-subtitle.d.ts +8 -0
  525. package/esm/fieldset/fieldset-subtitle.js +18 -0
  526. package/esm/fieldset/fieldset-title.d.ts +8 -0
  527. package/esm/fieldset/fieldset-title.js +20 -0
  528. package/esm/fieldset/fieldset.d.ts +46 -0
  529. package/esm/fieldset/fieldset.js +84 -0
  530. package/esm/fieldset/index.d.ts +22 -0
  531. package/esm/fieldset/index.js +15 -0
  532. package/esm/form/ErrorMessage.d.ts +17 -0
  533. package/esm/form/ErrorMessage.js +45 -0
  534. package/esm/form/FastField.js +147 -0
  535. package/esm/form/Field.d.ts +53 -0
  536. package/esm/form/Field.js +137 -0
  537. package/esm/form/FieldArray.js +281 -0
  538. package/esm/form/Form.js +23 -0
  539. package/esm/form/FormWrapper.d.ts +62 -0
  540. package/esm/form/FormWrapper.js +977 -0
  541. package/esm/form/FormikContext.d.ts +6 -0
  542. package/esm/form/FormikContext.js +11 -0
  543. package/esm/form/connect.d.ts +12 -0
  544. package/esm/form/connect.js +30 -0
  545. package/esm/form/constants.d.ts +1 -0
  546. package/esm/form/constants.js +1 -0
  547. package/esm/form/index.d.ts +9 -0
  548. package/esm/form/index.js +15 -0
  549. package/esm/form/types.d.ts +249 -0
  550. package/esm/form/types.js +1 -0
  551. package/esm/form/utils.d.ts +68 -0
  552. package/esm/form/utils.js +179 -0
  553. package/esm/form/withFormik.d.ts +68 -0
  554. package/esm/form/withFormik.js +107 -0
  555. package/esm/formik-native/src/index.js +12 -0
  556. package/esm/formik-native/test/blah.test.js +5 -0
  557. package/esm/grid/basic-item.d.ts +19 -0
  558. package/esm/grid/basic-item.js +87 -0
  559. package/esm/grid/grid-container.d.ts +299 -0
  560. package/esm/grid/grid-container.js +40 -0
  561. package/esm/grid/grid-types.d.ts +11 -0
  562. package/esm/grid/grid-types.js +8 -0
  563. package/esm/grid/grid.d.ts +296 -0
  564. package/esm/grid/grid.js +34 -0
  565. package/esm/grid/index.d.ts +11 -0
  566. package/esm/grid/index.js +6 -0
  567. package/esm/image/helpers.d.ts +2 -0
  568. package/esm/image/helpers.js +14 -0
  569. package/esm/image/image-browser-https-icon.d.ts +3 -0
  570. package/esm/image/image-browser-https-icon.js +21 -0
  571. package/esm/image/image-browser.d.ts +47 -0
  572. package/esm/image/image-browser.js +80 -0
  573. package/esm/image/image.d.ts +43 -0
  574. package/esm/image/image.js +82 -0
  575. package/esm/image/image.skeleton.d.ts +7 -0
  576. package/esm/image/image.skeleton.js +20 -0
  577. package/esm/image/index.d.ts +9 -0
  578. package/esm/image/index.js +4 -0
  579. package/esm/image/styles.d.ts +9 -0
  580. package/esm/image/styles.js +15 -0
  581. package/esm/index.d.ts +130 -0
  582. package/esm/index.js +78 -0
  583. package/esm/input/index.d.ts +13 -0
  584. package/esm/input/index.js +8 -0
  585. package/esm/input/input-block-label.d.ts +5 -0
  586. package/esm/input/input-block-label.js +16 -0
  587. package/esm/input/input-icon-clear.d.ts +8 -0
  588. package/esm/input/input-icon-clear.js +43 -0
  589. package/esm/input/input-icon.d.ts +8 -0
  590. package/esm/input/input-icon.js +18 -0
  591. package/esm/input/input-label.d.ts +6 -0
  592. package/esm/input/input-label.js +16 -0
  593. package/esm/input/input-props.d.ts +29 -0
  594. package/esm/input/input-props.js +1 -0
  595. package/esm/input/input.d.ts +38 -0
  596. package/esm/input/input.js +184 -0
  597. package/esm/input/password-icon.d.ts +6 -0
  598. package/esm/input/password-icon.js +28 -0
  599. package/esm/input/password.d.ts +51 -0
  600. package/esm/input/password.js +54 -0
  601. package/esm/input/styles.d.ts +8 -0
  602. package/esm/input/styles.js +31 -0
  603. package/esm/keyboard/index.d.ts +3 -0
  604. package/esm/keyboard/index.js +4 -0
  605. package/esm/keyboard/keyboard.d.ts +46 -0
  606. package/esm/keyboard/keyboard.js +43 -0
  607. package/esm/link/icon.d.ts +4 -0
  608. package/esm/link/icon.js +30 -0
  609. package/esm/link/index.d.ts +3 -0
  610. package/esm/link/index.js +2 -0
  611. package/esm/link/link.d.ts +45 -0
  612. package/esm/link/link.js +47 -0
  613. package/esm/loading/index.d.ts +3 -0
  614. package/esm/loading/index.js +2 -0
  615. package/esm/loading/loading.d.ts +47 -0
  616. package/esm/loading/loading.js +55 -0
  617. package/esm/login-with/LoginSocialAmazon/index.d.ts +19 -0
  618. package/esm/login-with/LoginSocialAmazon/index.js +142 -0
  619. package/esm/login-with/LoginSocialApple/index.d.ts +14 -0
  620. package/esm/login-with/LoginSocialApple/index.js +141 -0
  621. package/esm/login-with/LoginSocialFacebook/index.d.ts +26 -0
  622. package/esm/login-with/LoginSocialFacebook/index.js +148 -0
  623. package/esm/login-with/LoginSocialGithub/index.d.ts +21 -0
  624. package/esm/login-with/LoginSocialGithub/index.js +163 -0
  625. package/esm/login-with/LoginSocialGoogle/index.d.ts +25 -0
  626. package/esm/login-with/LoginSocialGoogle/index.js +206 -0
  627. package/esm/login-with/LoginSocialInstagram/index.d.ts +22 -0
  628. package/esm/login-with/LoginSocialInstagram/index.js +145 -0
  629. package/esm/login-with/LoginSocialLinkedin/index.d.ts +20 -0
  630. package/esm/login-with/LoginSocialLinkedin/index.js +151 -0
  631. package/esm/login-with/LoginSocialMicrosoft/index.d.ts +24 -0
  632. package/esm/login-with/LoginSocialMicrosoft/index.js +154 -0
  633. package/esm/login-with/LoginSocialPinterest/index.d.ts +19 -0
  634. package/esm/login-with/LoginSocialPinterest/index.js +171 -0
  635. package/esm/login-with/LoginSocialTiktok/index.d.ts +16 -0
  636. package/esm/login-with/LoginSocialTiktok/index.js +152 -0
  637. package/esm/login-with/LoginSocialTwitter/index.d.ts +20 -0
  638. package/esm/login-with/LoginSocialTwitter/index.js +177 -0
  639. package/esm/login-with/helper/signature.js +142 -0
  640. package/esm/login-with/index.d.ts +18 -0
  641. package/esm/login-with/index.js +11 -0
  642. package/esm/modal/index.d.ts +18 -0
  643. package/esm/modal/index.js +10 -0
  644. package/esm/modal/modal-action.d.ts +46 -0
  645. package/esm/modal/modal-action.js +69 -0
  646. package/esm/modal/modal-actions.d.ts +5 -0
  647. package/esm/modal/modal-actions.js +36 -0
  648. package/esm/modal/modal-content.d.ts +42 -0
  649. package/esm/modal/modal-content.js +24 -0
  650. package/esm/modal/modal-context.d.ts +6 -0
  651. package/esm/modal/modal-context.js +6 -0
  652. package/esm/modal/modal-subtitle.d.ts +42 -0
  653. package/esm/modal/modal-subtitle.js +25 -0
  654. package/esm/modal/modal-title.d.ts +42 -0
  655. package/esm/modal/modal-title.js +25 -0
  656. package/esm/modal/modal-wrapper.d.ts +8 -0
  657. package/esm/modal/modal-wrapper.js +74 -0
  658. package/esm/modal/modal.d.ts +50 -0
  659. package/esm/modal/modal.js +94 -0
  660. package/esm/note/index.d.ts +3 -0
  661. package/esm/note/index.js +2 -0
  662. package/esm/note/note.d.ts +48 -0
  663. package/esm/note/note.js +62 -0
  664. package/esm/page/index.d.ts +16 -0
  665. package/esm/page/index.js +9 -0
  666. package/esm/page/page-content.d.ts +42 -0
  667. package/esm/page/page-content.js +23 -0
  668. package/esm/page/page-footer.d.ts +42 -0
  669. package/esm/page/page-footer.js +21 -0
  670. package/esm/page/page-header.d.ts +43 -0
  671. package/esm/page/page-header.js +29 -0
  672. package/esm/page/page.d.ts +51 -0
  673. package/esm/page/page.js +80 -0
  674. package/esm/pagination/index.d.ts +12 -0
  675. package/esm/pagination/index.js +6 -0
  676. package/esm/pagination/pagination-context.d.ts +11 -0
  677. package/esm/pagination/pagination-context.js +8 -0
  678. package/esm/pagination/pagination-ellipsis.d.ts +7 -0
  679. package/esm/pagination/pagination-ellipsis.js +69 -0
  680. package/esm/pagination/pagination-item.d.ts +10 -0
  681. package/esm/pagination/pagination-item.js +43 -0
  682. package/esm/pagination/pagination-next.d.ts +4 -0
  683. package/esm/pagination/pagination-next.js +21 -0
  684. package/esm/pagination/pagination-pages.d.ts +9 -0
  685. package/esm/pagination/pagination-pages.js +86 -0
  686. package/esm/pagination/pagination-previous.d.ts +4 -0
  687. package/esm/pagination/pagination-previous.js +21 -0
  688. package/esm/pagination/pagination.d.ts +47 -0
  689. package/esm/pagination/pagination.js +96 -0
  690. package/esm/popover/index.d.ts +10 -0
  691. package/esm/popover/index.js +7 -0
  692. package/esm/popover/popover-context.d.ts +7 -0
  693. package/esm/popover/popover-context.js +9 -0
  694. package/esm/popover/popover-item.d.ts +45 -0
  695. package/esm/popover/popover-item.js +55 -0
  696. package/esm/popover/popover.d.ts +52 -0
  697. package/esm/popover/popover.js +86 -0
  698. package/esm/progress/index.d.ts +3 -0
  699. package/esm/progress/index.js +2 -0
  700. package/esm/progress/progress.d.ts +51 -0
  701. package/esm/progress/progress.js +68 -0
  702. package/esm/radio/index.d.ts +13 -0
  703. package/esm/radio/index.js +7 -0
  704. package/esm/radio/radio-context.d.ts +9 -0
  705. package/esm/radio/radio-context.js +9 -0
  706. package/esm/radio/radio-description.d.ts +42 -0
  707. package/esm/radio/radio-description.js +25 -0
  708. package/esm/radio/radio-group.d.ts +47 -0
  709. package/esm/radio/radio-group.js +57 -0
  710. package/esm/radio/radio.d.ts +58 -0
  711. package/esm/radio/radio.js +109 -0
  712. package/esm/radio/styles.d.ts +8 -0
  713. package/esm/radio/styles.js +31 -0
  714. package/esm/rating/index.d.ts +3 -0
  715. package/esm/rating/index.js +2 -0
  716. package/esm/rating/rating-icon.d.ts +3 -0
  717. package/esm/rating/rating-icon.js +18 -0
  718. package/esm/rating/rating.d.ts +54 -0
  719. package/esm/rating/rating.js +101 -0
  720. package/esm/row/index.js +2 -0
  721. package/esm/row/row.js +51 -0
  722. package/esm/search-bar/components/ClearIcon.js +42 -0
  723. package/esm/search-bar/components/Results.js +87 -0
  724. package/esm/search-bar/components/SearchIcon.js +24 -0
  725. package/esm/search-bar/components/SearchInput.js +75 -0
  726. package/esm/search-bar/components/index.js +302 -0
  727. package/esm/search-bar/config/config.js +26 -0
  728. package/esm/search-bar/index.js +2 -0
  729. package/esm/search-bar/utils/utils.js +14 -0
  730. package/esm/select/index.d.ts +9 -0
  731. package/esm/select/index.js +4 -0
  732. package/esm/select/select-context.d.ts +11 -0
  733. package/esm/select/select-context.js +9 -0
  734. package/esm/select/select-dropdown.d.ts +14 -0
  735. package/esm/select/select-dropdown.js +41 -0
  736. package/esm/select/select-icon-clear.d.ts +6 -0
  737. package/esm/select/select-icon-clear.js +37 -0
  738. package/esm/select/select-icon.d.ts +3 -0
  739. package/esm/select/select-icon.js +21 -0
  740. package/esm/select/select-input.d.ts +8 -0
  741. package/esm/select/select-input.js +35 -0
  742. package/esm/select/select-multiple-value.d.ts +7 -0
  743. package/esm/select/select-multiple-value.js +21 -0
  744. package/esm/select/select-option.d.ts +47 -0
  745. package/esm/select/select-option.js +86 -0
  746. package/esm/select/select.d.ts +62 -0
  747. package/esm/select/select.js +211 -0
  748. package/esm/select/styles.d.ts +9 -0
  749. package/esm/select/styles.js +36 -0
  750. package/esm/shared/backdrop.d.ts +14 -0
  751. package/esm/shared/backdrop.js +66 -0
  752. package/esm/shared/css-transition.d.ts +12 -0
  753. package/esm/shared/css-transition.js +65 -0
  754. package/esm/shared/dropdown.d.ts +9 -0
  755. package/esm/shared/dropdown.js +99 -0
  756. package/esm/shared/ellipsis.d.ts +6 -0
  757. package/esm/shared/ellipsis.js +13 -0
  758. package/esm/shared/expand.d.ts +7 -0
  759. package/esm/shared/expand.js +86 -0
  760. package/esm/shared/highlight.d.ts +13 -0
  761. package/esm/shared/highlight.js +46 -0
  762. package/esm/skeleton/index.d.ts +14 -0
  763. package/esm/skeleton/index.js +48 -0
  764. package/esm/slider/index.d.ts +3 -0
  765. package/esm/slider/index.js +2 -0
  766. package/esm/slider/slider-dot.d.ts +12 -0
  767. package/esm/slider/slider-dot.js +27 -0
  768. package/esm/slider/slider-mark.d.ts +10 -0
  769. package/esm/slider/slider-mark.js +35 -0
  770. package/esm/slider/slider.d.ts +54 -0
  771. package/esm/slider/slider.js +146 -0
  772. package/esm/slider/styles.d.ts +6 -0
  773. package/esm/slider/styles.js +21 -0
  774. package/esm/snippet/index.d.ts +4 -0
  775. package/esm/snippet/index.js +2 -0
  776. package/esm/snippet/snippet-icon.d.ts +3 -0
  777. package/esm/snippet/snippet-icon.js +25 -0
  778. package/esm/snippet/snippet.d.ts +51 -0
  779. package/esm/snippet/snippet.js +93 -0
  780. package/esm/snippet/styles.d.ts +8 -0
  781. package/esm/snippet/styles.js +48 -0
  782. package/esm/spacer/index.d.ts +3 -0
  783. package/esm/spacer/index.js +2 -0
  784. package/esm/spacer/spacer.d.ts +41 -0
  785. package/esm/spacer/spacer.js +24 -0
  786. package/esm/spinner/index.d.ts +3 -0
  787. package/esm/spinner/index.js +2 -0
  788. package/esm/spinner/spinner.d.ts +40 -0
  789. package/esm/spinner/spinner.js +40 -0
  790. package/esm/styled-jsx-server.es.js +5 -0
  791. package/esm/styled-jsx.es.js +737 -0
  792. package/esm/table/index.d.ts +5 -0
  793. package/esm/table/index.js +2 -0
  794. package/esm/table/table-body.d.ts +18 -0
  795. package/esm/table/table-body.js +45 -0
  796. package/esm/table/table-cell.d.ts +18 -0
  797. package/esm/table/table-cell.js +25 -0
  798. package/esm/table/table-column.d.ts +14 -0
  799. package/esm/table/table-column.js +33 -0
  800. package/esm/table/table-context.d.ts +8 -0
  801. package/esm/table/table-context.js +9 -0
  802. package/esm/table/table-head.d.ts +14 -0
  803. package/esm/table/table-head.js +51 -0
  804. package/esm/table/table-types.d.ts +14 -0
  805. package/esm/table/table-types.js +1 -0
  806. package/esm/table/table.d.ts +57 -0
  807. package/esm/table/table.js +104 -0
  808. package/esm/tabs/index.d.ts +9 -0
  809. package/esm/tabs/index.js +7 -0
  810. package/esm/tabs/tabs-context.d.ts +21 -0
  811. package/esm/tabs/tabs-context.js +8 -0
  812. package/esm/tabs/tabs-item.d.ts +44 -0
  813. package/esm/tabs/tabs-item.js +71 -0
  814. package/esm/tabs/tabs.d.ts +54 -0
  815. package/esm/tabs/tabs.js +138 -0
  816. package/esm/tag/index.d.ts +3 -0
  817. package/esm/tag/index.js +4 -0
  818. package/esm/tag/tag.d.ts +51 -0
  819. package/esm/tag/tag.js +71 -0
  820. package/esm/text/child.d.ts +11 -0
  821. package/esm/text/child.js +70 -0
  822. package/esm/text/index.d.ts +3 -0
  823. package/esm/text/index.js +4 -0
  824. package/esm/text/text.d.ts +59 -0
  825. package/esm/text/text.js +103 -0
  826. package/esm/textarea/index.d.ts +3 -0
  827. package/esm/textarea/index.js +2 -0
  828. package/esm/textarea/textarea.d.ts +54 -0
  829. package/esm/textarea/textarea.js +105 -0
  830. package/esm/themes/index.d.ts +4 -0
  831. package/esm/themes/index.js +2 -0
  832. package/esm/themes/presets/dark.d.ts +8 -0
  833. package/esm/themes/presets/dark.js +64 -0
  834. package/esm/themes/presets/default.d.ts +8 -0
  835. package/esm/themes/presets/default.js +64 -0
  836. package/esm/themes/presets/index.d.ts +90 -0
  837. package/esm/themes/presets/index.js +1 -0
  838. package/esm/themes/presets/shared.d.ts +4 -0
  839. package/esm/themes/presets/shared.js +42 -0
  840. package/esm/themes/themes.d.ts +18 -0
  841. package/esm/themes/themes.js +76 -0
  842. package/esm/toggle/index.d.ts +3 -0
  843. package/esm/toggle/index.js +2 -0
  844. package/esm/toggle/styles.d.ts +6 -0
  845. package/esm/toggle/styles.js +21 -0
  846. package/esm/toggle/toggle.d.ts +60 -0
  847. package/esm/toggle/toggle.js +76 -0
  848. package/esm/tooltip/__test__/index.test.js +168 -0
  849. package/esm/tooltip/helper.d.ts +10 -0
  850. package/esm/tooltip/helper.js +21 -0
  851. package/esm/tooltip/index.d.ts +3 -0
  852. package/esm/tooltip/index.js +2 -0
  853. package/esm/tooltip/placement.d.ts +29 -0
  854. package/esm/tooltip/placement.js +160 -0
  855. package/esm/tooltip/styles.d.ts +7 -0
  856. package/esm/tooltip/styles.js +16 -0
  857. package/esm/tooltip/tooltip-content.d.ts +18 -0
  858. package/esm/tooltip/tooltip-content.js +75 -0
  859. package/esm/tooltip/tooltip-icon.d.ts +8 -0
  860. package/esm/tooltip/tooltip-icon.js +28 -0
  861. package/esm/tooltip/tooltip.d.ts +59 -0
  862. package/esm/tooltip/tooltip.js +120 -0
  863. package/esm/tree/index.d.ts +10 -0
  864. package/esm/tree/index.js +6 -0
  865. package/esm/tree/tree-context.d.ts +8 -0
  866. package/esm/tree/tree-context.js +9 -0
  867. package/esm/tree/tree-file-icon.d.ts +8 -0
  868. package/esm/tree/tree-file-icon.js +34 -0
  869. package/esm/tree/tree-file.d.ts +12 -0
  870. package/esm/tree/tree-file.js +52 -0
  871. package/esm/tree/tree-folder-icon.d.ts +8 -0
  872. package/esm/tree/tree-folder-icon.js +31 -0
  873. package/esm/tree/tree-folder.d.ts +12 -0
  874. package/esm/tree/tree-folder.js +81 -0
  875. package/esm/tree/tree-help.d.ts +4 -0
  876. package/esm/tree/tree-help.js +16 -0
  877. package/esm/tree/tree-indents.d.ts +6 -0
  878. package/esm/tree/tree-indents.js +22 -0
  879. package/esm/tree/tree-status-icon.d.ts +9 -0
  880. package/esm/tree/tree-status-icon.js +44 -0
  881. package/esm/tree/tree.d.ts +18 -0
  882. package/esm/tree/tree.js +62 -0
  883. package/esm/ui-provider/index.d.ts +3 -0
  884. package/esm/ui-provider/index.js +2 -0
  885. package/esm/ui-provider/theme-provider.d.ts +8 -0
  886. package/esm/ui-provider/theme-provider.js +45 -0
  887. package/esm/ui-provider/ui-provider.d.ts +8 -0
  888. package/esm/ui-provider/ui-provider.js +55 -0
  889. package/esm/use-all-themes/all-themes-context.d.ts +7 -0
  890. package/esm/use-all-themes/all-themes-context.js +9 -0
  891. package/esm/use-all-themes/index.d.ts +3 -0
  892. package/esm/use-all-themes/index.js +2 -0
  893. package/esm/use-body-scroll/index.d.ts +3 -0
  894. package/esm/use-body-scroll/index.js +2 -0
  895. package/esm/use-body-scroll/use-body-scroll.d.ts +11 -0
  896. package/esm/use-body-scroll/use-body-scroll.js +63 -0
  897. package/esm/use-classes/index.d.ts +2 -0
  898. package/esm/use-classes/index.js +2 -0
  899. package/esm/use-classes/use-classes.d.ts +4 -0
  900. package/esm/use-classes/use-classes.js +32 -0
  901. package/esm/use-click-away/index.d.ts +2 -0
  902. package/esm/use-click-away/index.js +2 -0
  903. package/esm/use-click-away/use-click-away.d.ts +4 -0
  904. package/esm/use-click-away/use-click-away.js +21 -0
  905. package/esm/use-clipboard/index.d.ts +3 -0
  906. package/esm/use-clipboard/index.js +2 -0
  907. package/esm/use-clipboard/use-clipboard.d.ts +8 -0
  908. package/esm/use-clipboard/use-clipboard.js +39 -0
  909. package/esm/use-current-state/index.d.ts +2 -0
  910. package/esm/use-current-state/index.js +2 -0
  911. package/esm/use-current-state/use-current-state.d.ts +4 -0
  912. package/esm/use-current-state/use-current-state.js +23 -0
  913. package/esm/use-input/index.d.ts +3 -0
  914. package/esm/use-input/index.js +2 -0
  915. package/esm/use-input/use-input.d.ts +13 -0
  916. package/esm/use-input/use-input.js +29 -0
  917. package/esm/use-keyboard/codes.d.ts +92 -0
  918. package/esm/use-keyboard/codes.js +95 -0
  919. package/esm/use-keyboard/helper.d.ts +3 -0
  920. package/esm/use-keyboard/helper.js +26 -0
  921. package/esm/use-keyboard/index.d.ts +5 -0
  922. package/esm/use-keyboard/index.js +4 -0
  923. package/esm/use-keyboard/use-keyboard.d.ts +22 -0
  924. package/esm/use-keyboard/use-keyboard.js +70 -0
  925. package/esm/use-media-query/index.d.ts +3 -0
  926. package/esm/use-media-query/index.js +2 -0
  927. package/esm/use-media-query/use-media-query.d.ts +12 -0
  928. package/esm/use-media-query/use-media-query.js +81 -0
  929. package/esm/use-modal/index.d.ts +3 -0
  930. package/esm/use-modal/index.js +2 -0
  931. package/esm/use-modal/use-modal.d.ts +10 -0
  932. package/esm/use-modal/use-modal.js +22 -0
  933. package/esm/use-scale/index.d.ts +6 -0
  934. package/esm/use-scale/index.js +8 -0
  935. package/esm/use-scale/scale-context.d.ts +50 -0
  936. package/esm/use-scale/scale-context.js +37 -0
  937. package/esm/use-scale/utils.d.ts +68 -0
  938. package/esm/use-scale/utils.js +49 -0
  939. package/esm/use-scale/with-scale.d.ts +35 -0
  940. package/esm/use-scale/with-scale.js +102 -0
  941. package/esm/use-tabs/index.d.ts +2 -0
  942. package/esm/use-tabs/index.js +2 -0
  943. package/esm/use-tabs/use-tabs.d.ts +11 -0
  944. package/esm/use-tabs/use-tabs.js +21 -0
  945. package/esm/use-theme/index.d.ts +2 -0
  946. package/esm/use-theme/index.js +2 -0
  947. package/esm/use-theme/theme-context.d.ts +4 -0
  948. package/esm/use-theme/theme-context.js +9 -0
  949. package/esm/use-toasts/helpers.d.ts +17 -0
  950. package/esm/use-toasts/helpers.js +68 -0
  951. package/esm/use-toasts/index.d.ts +3 -0
  952. package/esm/use-toasts/index.js +2 -0
  953. package/esm/use-toasts/toast-container.d.ts +3 -0
  954. package/esm/use-toasts/toast-container.js +120 -0
  955. package/esm/use-toasts/toast-item.d.ts +8 -0
  956. package/esm/use-toasts/toast-item.js +43 -0
  957. package/esm/use-toasts/use-toast.d.ts +40 -0
  958. package/esm/use-toasts/use-toast.js +103 -0
  959. package/esm/user/index.d.ts +8 -0
  960. package/esm/user/index.js +4 -0
  961. package/esm/user/user-link.d.ts +11 -0
  962. package/esm/user/user-link.js +26 -0
  963. package/esm/user/user.d.ts +46 -0
  964. package/esm/user/user.js +44 -0
  965. package/esm/utils/calculations.d.ts +10 -0
  966. package/esm/utils/calculations.js +27 -0
  967. package/esm/utils/collections.d.ts +15 -0
  968. package/esm/utils/collections.js +126 -0
  969. package/esm/utils/color.d.ts +2 -0
  970. package/esm/utils/color.js +35 -0
  971. package/esm/utils/layouts.d.ts +20 -0
  972. package/esm/utils/layouts.js +73 -0
  973. package/esm/utils/prop-types.d.ts +19 -0
  974. package/esm/utils/prop-types.js +20 -0
  975. package/esm/utils/types.d.ts +3 -0
  976. package/esm/utils/types.js +1 -0
  977. package/esm/utils/use-body-scroll.d.ts +2 -0
  978. package/esm/utils/use-body-scroll.js +2 -0
  979. package/esm/utils/use-click-anywhere.d.ts +2 -0
  980. package/esm/utils/use-click-anywhere.js +15 -0
  981. package/esm/utils/use-click-away.d.ts +2 -0
  982. package/esm/utils/use-click-away.js +2 -0
  983. package/esm/utils/use-clipboard.d.ts +2 -0
  984. package/esm/utils/use-clipboard.js +2 -0
  985. package/esm/utils/use-context-state/create-geist-context.js +50 -0
  986. package/esm/utils/use-context-state/use-context-state.js +40 -0
  987. package/esm/utils/use-current-state.d.ts +2 -0
  988. package/esm/utils/use-current-state.js +2 -0
  989. package/esm/utils/use-default-props.js +17 -0
  990. package/esm/utils/use-dom-observer.d.ts +3 -0
  991. package/esm/utils/use-dom-observer.js +26 -0
  992. package/esm/utils/use-drag.d.ts +8 -0
  993. package/esm/utils/use-drag.js +66 -0
  994. package/esm/utils/use-hd-ui-context.d.ts +16 -0
  995. package/esm/utils/use-hd-ui-context.js +27 -0
  996. package/esm/utils/use-portal.d.ts +2 -0
  997. package/esm/utils/use-portal.js +34 -0
  998. package/esm/utils/use-previous.d.ts +2 -0
  999. package/esm/utils/use-previous.js +11 -0
  1000. package/esm/utils/use-real-shape.d.ts +9 -0
  1001. package/esm/utils/use-real-shape.js +47 -0
  1002. package/esm/utils/use-resize.d.ts +2 -0
  1003. package/esm/utils/use-resize.js +19 -0
  1004. package/esm/utils/use-ssr.d.ts +6 -0
  1005. package/esm/utils/use-ssr.js +19 -0
  1006. package/esm/utils/use-warning.d.ts +2 -0
  1007. package/esm/utils/use-warning.js +13 -0
  1008. package/package.json +1 -1
@@ -0,0 +1,1486 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React$1 = require('react');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default$1 = /*#__PURE__*/_interopDefaultLegacy(React$1);
10
+
11
+ function _arrayLikeToArray(r, a) {
12
+ (null == a || a > r.length) && (a = r.length);
13
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
14
+ return n;
15
+ }
16
+ function _arrayWithHoles(r) {
17
+ if (Array.isArray(r)) return r;
18
+ }
19
+ function _arrayWithoutHoles(r) {
20
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
21
+ }
22
+ function _createForOfIteratorHelper(r, e) {
23
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
24
+ if (!t) {
25
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
26
+ t && (r = t);
27
+ var n = 0,
28
+ F = function () {};
29
+ return {
30
+ s: F,
31
+ n: function () {
32
+ return n >= r.length ? {
33
+ done: !0
34
+ } : {
35
+ done: !1,
36
+ value: r[n++]
37
+ };
38
+ },
39
+ e: function (r) {
40
+ throw r;
41
+ },
42
+ f: F
43
+ };
44
+ }
45
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
46
+ }
47
+ var o,
48
+ a = !0,
49
+ u = !1;
50
+ return {
51
+ s: function () {
52
+ t = t.call(r);
53
+ },
54
+ n: function () {
55
+ var r = t.next();
56
+ return a = r.done, r;
57
+ },
58
+ e: function (r) {
59
+ u = !0, o = r;
60
+ },
61
+ f: function () {
62
+ try {
63
+ a || null == t.return || t.return();
64
+ } finally {
65
+ if (u) throw o;
66
+ }
67
+ }
68
+ };
69
+ }
70
+ function _defineProperty(e, r, t) {
71
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
72
+ value: t,
73
+ enumerable: !0,
74
+ configurable: !0,
75
+ writable: !0
76
+ }) : e[r] = t, e;
77
+ }
78
+ function _extends() {
79
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
80
+ for (var e = 1; e < arguments.length; e++) {
81
+ var t = arguments[e];
82
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
83
+ }
84
+ return n;
85
+ }, _extends.apply(null, arguments);
86
+ }
87
+ function _iterableToArray(r) {
88
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
89
+ }
90
+ function _iterableToArrayLimit(r, l) {
91
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
92
+ if (null != t) {
93
+ var e,
94
+ n,
95
+ i,
96
+ u,
97
+ a = [],
98
+ f = !0,
99
+ o = !1;
100
+ try {
101
+ if (i = (t = t.call(r)).next, 0 === l) {
102
+ if (Object(t) !== t) return;
103
+ f = !1;
104
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
105
+ } catch (r) {
106
+ o = !0, n = r;
107
+ } finally {
108
+ try {
109
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
110
+ } finally {
111
+ if (o) throw n;
112
+ }
113
+ }
114
+ return a;
115
+ }
116
+ }
117
+ function _nonIterableRest() {
118
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
119
+ }
120
+ function _nonIterableSpread() {
121
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
122
+ }
123
+ function ownKeys(e, r) {
124
+ var t = Object.keys(e);
125
+ if (Object.getOwnPropertySymbols) {
126
+ var o = Object.getOwnPropertySymbols(e);
127
+ r && (o = o.filter(function (r) {
128
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
129
+ })), t.push.apply(t, o);
130
+ }
131
+ return t;
132
+ }
133
+ function _objectSpread2(e) {
134
+ for (var r = 1; r < arguments.length; r++) {
135
+ var t = null != arguments[r] ? arguments[r] : {};
136
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
137
+ _defineProperty(e, r, t[r]);
138
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
139
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
140
+ });
141
+ }
142
+ return e;
143
+ }
144
+ function _objectWithoutProperties(e, t) {
145
+ if (null == e) return {};
146
+ var o,
147
+ r,
148
+ i = _objectWithoutPropertiesLoose(e, t);
149
+ if (Object.getOwnPropertySymbols) {
150
+ var n = Object.getOwnPropertySymbols(e);
151
+ for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
152
+ }
153
+ return i;
154
+ }
155
+ function _objectWithoutPropertiesLoose(r, e) {
156
+ if (null == r) return {};
157
+ var t = {};
158
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
159
+ if (e.indexOf(n) >= 0) continue;
160
+ t[n] = r[n];
161
+ }
162
+ return t;
163
+ }
164
+ function _slicedToArray(r, e) {
165
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
166
+ }
167
+ function _toConsumableArray(r) {
168
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
169
+ }
170
+ function _toPrimitive(t, r) {
171
+ if ("object" != typeof t || !t) return t;
172
+ var e = t[Symbol.toPrimitive];
173
+ if (void 0 !== e) {
174
+ var i = e.call(t, r || "default");
175
+ if ("object" != typeof i) return i;
176
+ throw new TypeError("@@toPrimitive must return a primitive value.");
177
+ }
178
+ return ("string" === r ? String : Number)(t);
179
+ }
180
+ function _toPropertyKey(t) {
181
+ var i = _toPrimitive(t, "string");
182
+ return "symbol" == typeof i ? i : i + "";
183
+ }
184
+ function _typeof(o) {
185
+ "@babel/helpers - typeof";
186
+
187
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
188
+ return typeof o;
189
+ } : function (o) {
190
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
191
+ }, _typeof(o);
192
+ }
193
+ function _unsupportedIterableToArray(r, a) {
194
+ if (r) {
195
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
196
+ var t = {}.toString.call(r).slice(8, -1);
197
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
198
+ }
199
+ }
200
+
201
+ var index = {};
202
+
203
+ var React = React__default$1["default"];
204
+
205
+ function _interopDefaultLegacy$1 (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
206
+
207
+ var React__default = /*#__PURE__*/_interopDefaultLegacy$1(React);
208
+
209
+ /*
210
+ Based on Glamor's sheet
211
+ https://github.com/threepointone/glamor/blob/667b480d31b3721a905021b26e1290ce92ca2879/src/sheet.js
212
+ */ function _defineProperties(target, props) {
213
+ for(var i = 0; i < props.length; i++){
214
+ var descriptor = props[i];
215
+ descriptor.enumerable = descriptor.enumerable || false;
216
+ descriptor.configurable = true;
217
+ if ("value" in descriptor) descriptor.writable = true;
218
+ Object.defineProperty(target, descriptor.key, descriptor);
219
+ }
220
+ }
221
+ function _createClass(Constructor, protoProps, staticProps) {
222
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
223
+ if (staticProps) _defineProperties(Constructor, staticProps);
224
+ return Constructor;
225
+ }
226
+ var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
227
+ var isString = function(o) {
228
+ return Object.prototype.toString.call(o) === "[object String]";
229
+ };
230
+ var StyleSheet = /*#__PURE__*/ function() {
231
+ function StyleSheet(param) {
232
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
233
+ invariant$1(isString(name), "`name` must be a string");
234
+ this._name = name;
235
+ this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
236
+ invariant$1(typeof optimizeForSpeed === "boolean", "`optimizeForSpeed` must be a boolean");
237
+ this._optimizeForSpeed = optimizeForSpeed;
238
+ this._serverSheet = undefined;
239
+ this._tags = [];
240
+ this._injected = false;
241
+ this._rulesCount = 0;
242
+ var node = typeof window !== "undefined" && document.querySelector('meta[property="csp-nonce"]');
243
+ this._nonce = node ? node.getAttribute("content") : null;
244
+ }
245
+ var _proto = StyleSheet.prototype;
246
+ _proto.setOptimizeForSpeed = function setOptimizeForSpeed(bool) {
247
+ invariant$1(typeof bool === "boolean", "`setOptimizeForSpeed` accepts a boolean");
248
+ invariant$1(this._rulesCount === 0, "optimizeForSpeed cannot be when rules have already been inserted");
249
+ this.flush();
250
+ this._optimizeForSpeed = bool;
251
+ this.inject();
252
+ };
253
+ _proto.isOptimizeForSpeed = function isOptimizeForSpeed() {
254
+ return this._optimizeForSpeed;
255
+ };
256
+ _proto.inject = function inject() {
257
+ var _this = this;
258
+ invariant$1(!this._injected, "sheet already injected");
259
+ this._injected = true;
260
+ if (typeof window !== "undefined" && this._optimizeForSpeed) {
261
+ this._tags[0] = this.makeStyleTag(this._name);
262
+ this._optimizeForSpeed = "insertRule" in this.getSheet();
263
+ if (!this._optimizeForSpeed) {
264
+ if (!isProd) {
265
+ console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode.");
266
+ }
267
+ this.flush();
268
+ this._injected = true;
269
+ }
270
+ return;
271
+ }
272
+ this._serverSheet = {
273
+ cssRules: [],
274
+ insertRule: function(rule, index) {
275
+ if (typeof index === "number") {
276
+ _this._serverSheet.cssRules[index] = {
277
+ cssText: rule
278
+ };
279
+ } else {
280
+ _this._serverSheet.cssRules.push({
281
+ cssText: rule
282
+ });
283
+ }
284
+ return index;
285
+ },
286
+ deleteRule: function(index) {
287
+ _this._serverSheet.cssRules[index] = null;
288
+ }
289
+ };
290
+ };
291
+ _proto.getSheetForTag = function getSheetForTag(tag) {
292
+ if (tag.sheet) {
293
+ return tag.sheet;
294
+ }
295
+ // this weirdness brought to you by firefox
296
+ for(var i = 0; i < document.styleSheets.length; i++){
297
+ if (document.styleSheets[i].ownerNode === tag) {
298
+ return document.styleSheets[i];
299
+ }
300
+ }
301
+ };
302
+ _proto.getSheet = function getSheet() {
303
+ return this.getSheetForTag(this._tags[this._tags.length - 1]);
304
+ };
305
+ _proto.insertRule = function insertRule(rule, index) {
306
+ invariant$1(isString(rule), "`insertRule` accepts only strings");
307
+ if (typeof window === "undefined") {
308
+ if (typeof index !== "number") {
309
+ index = this._serverSheet.cssRules.length;
310
+ }
311
+ this._serverSheet.insertRule(rule, index);
312
+ return this._rulesCount++;
313
+ }
314
+ if (this._optimizeForSpeed) {
315
+ var sheet = this.getSheet();
316
+ if (typeof index !== "number") {
317
+ index = sheet.cssRules.length;
318
+ }
319
+ // this weirdness for perf, and chrome's weird bug
320
+ // https://stackoverflow.com/questions/20007992/chrome-suddenly-stopped-accepting-insertrule
321
+ try {
322
+ sheet.insertRule(rule, index);
323
+ } catch (error) {
324
+ if (!isProd) {
325
+ console.warn("StyleSheet: illegal rule: \n\n" + rule + "\n\nSee https://stackoverflow.com/q/20007992 for more info");
326
+ }
327
+ return -1;
328
+ }
329
+ } else {
330
+ var insertionPoint = this._tags[index];
331
+ this._tags.push(this.makeStyleTag(this._name, rule, insertionPoint));
332
+ }
333
+ return this._rulesCount++;
334
+ };
335
+ _proto.replaceRule = function replaceRule(index, rule) {
336
+ if (this._optimizeForSpeed || typeof window === "undefined") {
337
+ var sheet = typeof window !== "undefined" ? this.getSheet() : this._serverSheet;
338
+ if (!rule.trim()) {
339
+ rule = this._deletedRulePlaceholder;
340
+ }
341
+ if (!sheet.cssRules[index]) {
342
+ // @TBD Should we throw an error?
343
+ return index;
344
+ }
345
+ sheet.deleteRule(index);
346
+ try {
347
+ sheet.insertRule(rule, index);
348
+ } catch (error) {
349
+ if (!isProd) {
350
+ console.warn("StyleSheet: illegal rule: \n\n" + rule + "\n\nSee https://stackoverflow.com/q/20007992 for more info");
351
+ }
352
+ // In order to preserve the indices we insert a deleteRulePlaceholder
353
+ sheet.insertRule(this._deletedRulePlaceholder, index);
354
+ }
355
+ } else {
356
+ var tag = this._tags[index];
357
+ invariant$1(tag, "old rule at index `" + index + "` not found");
358
+ tag.textContent = rule;
359
+ }
360
+ return index;
361
+ };
362
+ _proto.deleteRule = function deleteRule(index) {
363
+ if (typeof window === "undefined") {
364
+ this._serverSheet.deleteRule(index);
365
+ return;
366
+ }
367
+ if (this._optimizeForSpeed) {
368
+ this.replaceRule(index, "");
369
+ } else {
370
+ var tag = this._tags[index];
371
+ invariant$1(tag, "rule at index `" + index + "` not found");
372
+ tag.parentNode.removeChild(tag);
373
+ this._tags[index] = null;
374
+ }
375
+ };
376
+ _proto.flush = function flush() {
377
+ this._injected = false;
378
+ this._rulesCount = 0;
379
+ if (typeof window !== "undefined") {
380
+ this._tags.forEach(function(tag) {
381
+ return tag && tag.parentNode.removeChild(tag);
382
+ });
383
+ this._tags = [];
384
+ } else {
385
+ // simpler on server
386
+ this._serverSheet.cssRules = [];
387
+ }
388
+ };
389
+ _proto.cssRules = function cssRules() {
390
+ var _this = this;
391
+ if (typeof window === "undefined") {
392
+ return this._serverSheet.cssRules;
393
+ }
394
+ return this._tags.reduce(function(rules, tag) {
395
+ if (tag) {
396
+ rules = rules.concat(Array.prototype.map.call(_this.getSheetForTag(tag).cssRules, function(rule) {
397
+ return rule.cssText === _this._deletedRulePlaceholder ? null : rule;
398
+ }));
399
+ } else {
400
+ rules.push(null);
401
+ }
402
+ return rules;
403
+ }, []);
404
+ };
405
+ _proto.makeStyleTag = function makeStyleTag(name, cssString, relativeToTag) {
406
+ if (cssString) {
407
+ invariant$1(isString(cssString), "makeStyleTag accepts only strings as second parameter");
408
+ }
409
+ var tag = document.createElement("style");
410
+ if (this._nonce) tag.setAttribute("nonce", this._nonce);
411
+ tag.type = "text/css";
412
+ tag.setAttribute("data-" + name, "");
413
+ if (cssString) {
414
+ tag.appendChild(document.createTextNode(cssString));
415
+ }
416
+ var head = document.head || document.getElementsByTagName("head")[0];
417
+ if (relativeToTag) {
418
+ head.insertBefore(tag, relativeToTag);
419
+ } else {
420
+ head.appendChild(tag);
421
+ }
422
+ return tag;
423
+ };
424
+ _createClass(StyleSheet, [
425
+ {
426
+ key: "length",
427
+ get: function get() {
428
+ return this._rulesCount;
429
+ }
430
+ }
431
+ ]);
432
+ return StyleSheet;
433
+ }();
434
+ function invariant$1(condition, message) {
435
+ if (!condition) {
436
+ throw new Error("StyleSheet: " + message + ".");
437
+ }
438
+ }
439
+
440
+ function hash(str) {
441
+ var _$hash = 5381, i = str.length;
442
+ while(i){
443
+ _$hash = _$hash * 33 ^ str.charCodeAt(--i);
444
+ }
445
+ /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
446
+ * integers. Since we want the results to be always positive, convert the
447
+ * signed int to an unsigned by doing an unsigned bitshift. */ return _$hash >>> 0;
448
+ }
449
+ var stringHash = hash;
450
+
451
+ var sanitize = function(rule) {
452
+ return rule.replace(/\/style/gi, "\\/style");
453
+ };
454
+ var cache = {};
455
+ /**
456
+ * computeId
457
+ *
458
+ * Compute and memoize a jsx id from a basedId and optionally props.
459
+ */ function computeId(baseId, props) {
460
+ if (!props) {
461
+ return "jsx-" + baseId;
462
+ }
463
+ var propsToString = String(props);
464
+ var key = baseId + propsToString;
465
+ if (!cache[key]) {
466
+ cache[key] = "jsx-" + stringHash(baseId + "-" + propsToString);
467
+ }
468
+ return cache[key];
469
+ }
470
+ /**
471
+ * computeSelector
472
+ *
473
+ * Compute and memoize dynamic selectors.
474
+ */ function computeSelector(id, css) {
475
+ var selectoPlaceholderRegexp = /__jsx-style-dynamic-selector/g;
476
+ // Sanitize SSR-ed CSS.
477
+ // Client side code doesn't need to be sanitized since we use
478
+ // document.createTextNode (dev) and the CSSOM api sheet.insertRule (prod).
479
+ if (typeof window === "undefined") {
480
+ css = sanitize(css);
481
+ }
482
+ var idcss = id + css;
483
+ if (!cache[idcss]) {
484
+ cache[idcss] = css.replace(selectoPlaceholderRegexp, id);
485
+ }
486
+ return cache[idcss];
487
+ }
488
+
489
+ function mapRulesToStyle(cssRules, options) {
490
+ if (options === void 0) options = {};
491
+ return cssRules.map(function(args) {
492
+ var id = args[0];
493
+ var css = args[1];
494
+ return /*#__PURE__*/ React__default["default"].createElement("style", {
495
+ id: "__" + id,
496
+ // Avoid warnings upon render with a key
497
+ key: "__" + id,
498
+ nonce: options.nonce ? options.nonce : undefined,
499
+ dangerouslySetInnerHTML: {
500
+ __html: css
501
+ }
502
+ });
503
+ });
504
+ }
505
+ var StyleSheetRegistry = /*#__PURE__*/ function() {
506
+ function StyleSheetRegistry(param) {
507
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
508
+ this._sheet = styleSheet || new StyleSheet({
509
+ name: "styled-jsx",
510
+ optimizeForSpeed: optimizeForSpeed
511
+ });
512
+ this._sheet.inject();
513
+ if (styleSheet && typeof optimizeForSpeed === "boolean") {
514
+ this._sheet.setOptimizeForSpeed(optimizeForSpeed);
515
+ this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();
516
+ }
517
+ this._fromServer = undefined;
518
+ this._indices = {};
519
+ this._instancesCounts = {};
520
+ }
521
+ var _proto = StyleSheetRegistry.prototype;
522
+ _proto.add = function add(props) {
523
+ var _this = this;
524
+ if (undefined === this._optimizeForSpeed) {
525
+ this._optimizeForSpeed = Array.isArray(props.children);
526
+ this._sheet.setOptimizeForSpeed(this._optimizeForSpeed);
527
+ this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();
528
+ }
529
+ if (typeof window !== "undefined" && !this._fromServer) {
530
+ this._fromServer = this.selectFromServer();
531
+ this._instancesCounts = Object.keys(this._fromServer).reduce(function(acc, tagName) {
532
+ acc[tagName] = 0;
533
+ return acc;
534
+ }, {});
535
+ }
536
+ var ref = this.getIdAndRules(props), styleId = ref.styleId, rules = ref.rules;
537
+ // Deduping: just increase the instances count.
538
+ if (styleId in this._instancesCounts) {
539
+ this._instancesCounts[styleId] += 1;
540
+ return;
541
+ }
542
+ var indices = rules.map(function(rule) {
543
+ return _this._sheet.insertRule(rule);
544
+ })// Filter out invalid rules
545
+ .filter(function(index) {
546
+ return index !== -1;
547
+ });
548
+ this._indices[styleId] = indices;
549
+ this._instancesCounts[styleId] = 1;
550
+ };
551
+ _proto.remove = function remove(props) {
552
+ var _this = this;
553
+ var styleId = this.getIdAndRules(props).styleId;
554
+ invariant(styleId in this._instancesCounts, "styleId: `" + styleId + "` not found");
555
+ this._instancesCounts[styleId] -= 1;
556
+ if (this._instancesCounts[styleId] < 1) {
557
+ var tagFromServer = this._fromServer && this._fromServer[styleId];
558
+ if (tagFromServer) {
559
+ tagFromServer.parentNode.removeChild(tagFromServer);
560
+ delete this._fromServer[styleId];
561
+ } else {
562
+ this._indices[styleId].forEach(function(index) {
563
+ return _this._sheet.deleteRule(index);
564
+ });
565
+ delete this._indices[styleId];
566
+ }
567
+ delete this._instancesCounts[styleId];
568
+ }
569
+ };
570
+ _proto.update = function update(props, nextProps) {
571
+ this.add(nextProps);
572
+ this.remove(props);
573
+ };
574
+ _proto.flush = function flush() {
575
+ this._sheet.flush();
576
+ this._sheet.inject();
577
+ this._fromServer = undefined;
578
+ this._indices = {};
579
+ this._instancesCounts = {};
580
+ };
581
+ _proto.cssRules = function cssRules() {
582
+ var _this = this;
583
+ var fromServer = this._fromServer ? Object.keys(this._fromServer).map(function(styleId) {
584
+ return [
585
+ styleId,
586
+ _this._fromServer[styleId]
587
+ ];
588
+ }) : [];
589
+ var cssRules = this._sheet.cssRules();
590
+ return fromServer.concat(Object.keys(this._indices).map(function(styleId) {
591
+ return [
592
+ styleId,
593
+ _this._indices[styleId].map(function(index) {
594
+ return cssRules[index].cssText;
595
+ }).join(_this._optimizeForSpeed ? "" : "\n")
596
+ ];
597
+ })// filter out empty rules
598
+ .filter(function(rule) {
599
+ return Boolean(rule[1]);
600
+ }));
601
+ };
602
+ _proto.styles = function styles(options) {
603
+ return mapRulesToStyle(this.cssRules(), options);
604
+ };
605
+ _proto.getIdAndRules = function getIdAndRules(props) {
606
+ var css = props.children, dynamic = props.dynamic, id = props.id;
607
+ if (dynamic) {
608
+ var styleId = computeId(id, dynamic);
609
+ return {
610
+ styleId: styleId,
611
+ rules: Array.isArray(css) ? css.map(function(rule) {
612
+ return computeSelector(styleId, rule);
613
+ }) : [
614
+ computeSelector(styleId, css)
615
+ ]
616
+ };
617
+ }
618
+ return {
619
+ styleId: computeId(id),
620
+ rules: Array.isArray(css) ? css : [
621
+ css
622
+ ]
623
+ };
624
+ };
625
+ /**
626
+ * selectFromServer
627
+ *
628
+ * Collects style tags from the document with id __jsx-XXX
629
+ */ _proto.selectFromServer = function selectFromServer() {
630
+ var elements = Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]'));
631
+ return elements.reduce(function(acc, element) {
632
+ var id = element.id.slice(2);
633
+ acc[id] = element;
634
+ return acc;
635
+ }, {});
636
+ };
637
+ return StyleSheetRegistry;
638
+ }();
639
+ function invariant(condition, message) {
640
+ if (!condition) {
641
+ throw new Error("StyleSheetRegistry: " + message + ".");
642
+ }
643
+ }
644
+ var StyleSheetContext = /*#__PURE__*/ React.createContext(null);
645
+ StyleSheetContext.displayName = "StyleSheetContext";
646
+ function createStyleRegistry() {
647
+ return new StyleSheetRegistry();
648
+ }
649
+ function StyleRegistry(param) {
650
+ var configuredRegistry = param.registry, children = param.children;
651
+ var rootRegistry = React.useContext(StyleSheetContext);
652
+ var ref = React.useState(function() {
653
+ return rootRegistry || configuredRegistry || createStyleRegistry();
654
+ }), registry = ref[0];
655
+ return /*#__PURE__*/ React__default["default"].createElement(StyleSheetContext.Provider, {
656
+ value: registry
657
+ }, children);
658
+ }
659
+ function useStyleRegistry() {
660
+ return React.useContext(StyleSheetContext);
661
+ }
662
+
663
+ // Opt-into the new `useInsertionEffect` API in React 18, fallback to `useLayoutEffect`.
664
+ // https://github.com/reactwg/react-18/discussions/110
665
+ var useInsertionEffect = React__default["default"].useInsertionEffect || React__default["default"].useLayoutEffect;
666
+ var defaultRegistry = typeof window !== "undefined" ? createStyleRegistry() : undefined;
667
+ function JSXStyle(props) {
668
+ var registry = defaultRegistry ? defaultRegistry : useStyleRegistry();
669
+ // If `registry` does not exist, we do nothing here.
670
+ if (!registry) {
671
+ return null;
672
+ }
673
+ if (typeof window === "undefined") {
674
+ registry.add(props);
675
+ return null;
676
+ }
677
+ useInsertionEffect(function() {
678
+ registry.add(props);
679
+ return function() {
680
+ registry.remove(props);
681
+ };
682
+ // props.children can be string[], will be striped since id is identical
683
+ }, [
684
+ props.id,
685
+ String(props.dynamic)
686
+ ]);
687
+ return null;
688
+ }
689
+ JSXStyle.dynamic = function(info) {
690
+ return info.map(function(tagInfo) {
691
+ var baseId = tagInfo[0];
692
+ var props = tagInfo[1];
693
+ return computeId(baseId, props);
694
+ }).join(" ");
695
+ };
696
+
697
+ index.StyleRegistry = StyleRegistry;
698
+ index.createStyleRegistry = createStyleRegistry;
699
+ index.style = JSXStyle;
700
+ index.useStyleRegistry = useStyleRegistry;
701
+
702
+ var style = index.style;
703
+
704
+ var defaultFont = {
705
+ sans: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
706
+ mono: 'Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace',
707
+ prism: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,"Liberation Mono", "Courier New", monospace'
708
+ };
709
+ var defaultBreakpoints = {
710
+ xs: {
711
+ min: '0',
712
+ max: '650px'
713
+ },
714
+ sm: {
715
+ min: '650px',
716
+ max: '900px'
717
+ },
718
+ md: {
719
+ min: '900px',
720
+ max: '1280px'
721
+ },
722
+ lg: {
723
+ min: '1280px',
724
+ max: '1920px'
725
+ },
726
+ xl: {
727
+ min: '1920px',
728
+ max: '10000px'
729
+ }
730
+ };
731
+ var defaultLayout = {
732
+ gap: '16pt',
733
+ gapNegative: '-16pt',
734
+ gapHalf: '8pt',
735
+ gapHalfNegative: '-8pt',
736
+ gapQuarter: '4pt',
737
+ gapQuarterNegative: '-4pt',
738
+ pageMargin: '16pt',
739
+ pageWidth: '750pt',
740
+ pageWidthWithMargin: '782pt',
741
+ breakpointMobile: defaultBreakpoints.xs.max,
742
+ breakpointTablet: defaultBreakpoints.sm.max,
743
+ radius: '6px',
744
+ unit: '16px'
745
+ };
746
+
747
+ var palette$1 = {
748
+ accents_1: '#fafafa',
749
+ accents_2: '#eaeaea',
750
+ accents_3: '#999',
751
+ accents_4: '#888',
752
+ accents_5: '#666',
753
+ accents_6: '#444',
754
+ accents_7: '#333',
755
+ accents_8: '#111',
756
+ background: '#fff',
757
+ foreground: '#000',
758
+ selection: '#79ffe1',
759
+ secondary: '#666',
760
+ code: '#f81ce5',
761
+ border: '#eaeaea',
762
+ error: '#e00',
763
+ errorLight: '#ff1a1a',
764
+ errorLighter: '#f7d4d6',
765
+ errorDark: '#c50000',
766
+ success: '#0070f3',
767
+ successLight: '#3291ff',
768
+ successLighter: '#d3e5ff',
769
+ successDark: '#0761d1',
770
+ warning: '#f5a623',
771
+ warningLight: '#f7b955',
772
+ warningLighter: '#ffefcf',
773
+ warningDark: '#ab570a',
774
+ cyan: '#50e3c2',
775
+ cyanLighter: '#aaffec',
776
+ cyanLight: '#79ffe1',
777
+ cyanDark: '#29bc9b',
778
+ violet: '#7928ca',
779
+ violetLighter: '#e3d7fc',
780
+ violetLight: '#8a63d2',
781
+ violetDark: '#4c2889',
782
+ purple: '#f81ce5',
783
+ alert: '#ff0080',
784
+ magenta: '#eb367f',
785
+ link: '#0070f3'
786
+ };
787
+ var expressiveness$1 = {
788
+ linkStyle: 'none',
789
+ linkHoverStyle: 'none',
790
+ dropdownBoxShadow: '0 4px 4px 0 rgba(0, 0, 0, 0.02)',
791
+ scrollerStart: 'rgba(255, 255, 255, 1)',
792
+ scrollerEnd: 'rgba(255, 255, 255, 0)',
793
+ shadowSmall: '0 5px 10px rgba(0, 0, 0, 0.12)',
794
+ shadowMedium: '0 8px 30px rgba(0, 0, 0, 0.12)',
795
+ shadowLarge: '0 30px 60px rgba(0, 0, 0, 0.12)',
796
+ portalOpacity: 0.25
797
+ };
798
+ var font$1 = defaultFont;
799
+ var breakpoints$1 = defaultBreakpoints;
800
+ var layout$1 = defaultLayout;
801
+ var themes$1 = {
802
+ type: 'light',
803
+ font: font$1,
804
+ layout: layout$1,
805
+ palette: palette$1,
806
+ breakpoints: breakpoints$1,
807
+ expressiveness: expressiveness$1
808
+ };
809
+ var lightTheme = themes$1;
810
+
811
+ var palette = {
812
+ accents_1: '#111',
813
+ accents_2: '#333',
814
+ accents_3: '#444',
815
+ accents_4: '#666',
816
+ accents_5: '#888',
817
+ accents_6: '#999',
818
+ accents_7: '#eaeaea',
819
+ accents_8: '#fafafa',
820
+ background: '#000',
821
+ foreground: '#fff',
822
+ selection: '#f81ce5',
823
+ secondary: '#888',
824
+ code: '#79ffe1',
825
+ border: '#333',
826
+ error: '#e00',
827
+ errorLighter: '#f7d4d6',
828
+ errorLight: '#ff1a1a',
829
+ errorDark: '#c50000',
830
+ success: '#0070f3',
831
+ successLighter: '#d3e5ff',
832
+ successLight: '#3291ff',
833
+ successDark: '#0761d1',
834
+ warning: '#f5a623',
835
+ warningLighter: '#ffefcf',
836
+ warningLight: '#f7b955',
837
+ warningDark: '#ab570a',
838
+ cyan: '#50e3c2',
839
+ cyanLighter: '#aaffec',
840
+ cyanLight: '#79ffe1',
841
+ cyanDark: '#29bc9b',
842
+ violet: '#7928ca',
843
+ violetLighter: '#e3d7fc',
844
+ violetLight: '#8a63d2',
845
+ violetDark: '#4c2889',
846
+ purple: '#f81ce5',
847
+ alert: '#ff0080',
848
+ magenta: '#eb367f',
849
+ link: '#3291ff'
850
+ };
851
+ var expressiveness = {
852
+ linkStyle: 'none',
853
+ linkHoverStyle: 'none',
854
+ dropdownBoxShadow: '0 0 0 1px #333',
855
+ scrollerStart: 'rgba(255, 255, 255, 1)',
856
+ scrollerEnd: 'rgba(255, 255, 255, 0)',
857
+ shadowSmall: '0 0 0 1px #333',
858
+ shadowMedium: '0 0 0 1px #333',
859
+ shadowLarge: '0 0 0 1px #333',
860
+ portalOpacity: 0.75
861
+ };
862
+ var font = defaultFont;
863
+ var breakpoints = defaultBreakpoints;
864
+ var layout = defaultLayout;
865
+ var themes = {
866
+ type: 'dark',
867
+ font: font,
868
+ layout: layout,
869
+ palette: palette,
870
+ breakpoints: breakpoints,
871
+ expressiveness: expressiveness
872
+ };
873
+ var darkTheme = themes;
874
+
875
+ var isObject = function isObject(target) {
876
+ return target && _typeof(target) === 'object';
877
+ };
878
+ var deepDuplicable = function deepDuplicable(source, target) {
879
+ if (!isObject(target) || !isObject(source)) return source;
880
+ var sourceKeys = Object.keys(source);
881
+ var result = {};
882
+ for (var _i = 0, _sourceKeys = sourceKeys; _i < _sourceKeys.length; _i++) {
883
+ var key = _sourceKeys[_i];
884
+ var sourceValue = source[key];
885
+ var targetValue = target[key];
886
+ if (Array.isArray(sourceValue) && Array.isArray(targetValue)) {
887
+ result[key] = targetValue.concat(sourceValue);
888
+ } else if (isObject(sourceValue) && isObject(targetValue)) {
889
+ result[key] = deepDuplicable(sourceValue, _objectSpread2({}, targetValue));
890
+ } else if (targetValue) {
891
+ result[key] = targetValue;
892
+ } else {
893
+ result[key] = sourceValue;
894
+ }
895
+ }
896
+ return result;
897
+ };
898
+ var getPresets = function getPresets() {
899
+ return [lightTheme, darkTheme];
900
+ };
901
+ var getPresetStaticTheme = function getPresetStaticTheme() {
902
+ return lightTheme;
903
+ };
904
+ var isAvailableThemeType = function isAvailableThemeType(type) {
905
+ if (!type) return false;
906
+ var presetThemes = getPresets();
907
+ var hasType = presetThemes.find(function (theme) {
908
+ return theme.type === type;
909
+ });
910
+ return !hasType;
911
+ };
912
+ var isPresetTheme = function isPresetTheme(themeOrType) {
913
+ if (!themeOrType) return false;
914
+ var isType = typeof themeOrType === 'string';
915
+ var type = isType ? themeOrType : themeOrType.type;
916
+ return !isAvailableThemeType(type);
917
+ };
918
+ var hasUserCustomTheme = function hasUserCustomTheme() {
919
+ var themes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
920
+ return !!themes.find(function (item) {
921
+ return isAvailableThemeType(item.type);
922
+ });
923
+ };
924
+ var create = function create(base, custom) {
925
+ if (!isAvailableThemeType(custom.type)) {
926
+ throw new Error('Duplicate or unavailable theme type');
927
+ }
928
+ return deepDuplicable(base, custom);
929
+ };
930
+ var createFromDark = function createFromDark(custom) {
931
+ return create(darkTheme, custom);
932
+ };
933
+ var createFromLight = function createFromLight(custom) {
934
+ return create(lightTheme, custom);
935
+ };
936
+ var Themes = {
937
+ isPresetTheme: isPresetTheme,
938
+ isAvailableThemeType: isAvailableThemeType,
939
+ hasUserCustomTheme: hasUserCustomTheme,
940
+ getPresets: getPresets,
941
+ getPresetStaticTheme: getPresetStaticTheme,
942
+ create: create,
943
+ createFromDark: createFromDark,
944
+ createFromLight: createFromLight
945
+ };
946
+ var Themes$1 = Themes;
947
+
948
+ var defaultTheme = Themes$1.getPresetStaticTheme();
949
+ var ThemeContext = /*#__PURE__*/React__default$1["default"].createContext(defaultTheme);
950
+ var useTheme$1 = function useTheme() {
951
+ return React__default$1["default"].useContext(ThemeContext);
952
+ };
953
+
954
+ var useTheme = useTheme$1;
955
+
956
+ var makeColgroup = function makeColgroup(width, columns) {
957
+ var unsetWidthCount = columns.filter(function (c) {
958
+ return !c.width;
959
+ }).length;
960
+ var customWidthTotal = columns.reduce(function (pre, current) {
961
+ return current.width ? pre + current.width : pre;
962
+ }, 0);
963
+ var averageWidth = (width - customWidthTotal) / unsetWidthCount;
964
+ if (averageWidth <= 0) return /*#__PURE__*/React__default$1["default"].createElement("colgroup", null);
965
+ return /*#__PURE__*/React__default$1["default"].createElement("colgroup", null, columns.map(function (column, index) {
966
+ return /*#__PURE__*/React__default$1["default"].createElement("col", {
967
+ key: "colgroup-".concat(index),
968
+ width: column.width || averageWidth
969
+ });
970
+ }));
971
+ };
972
+ var TableHead = function TableHead(props) {
973
+ var theme = useTheme();
974
+ var _ref = props,
975
+ columns = _ref.columns,
976
+ width = _ref.width;
977
+ var isScalableWidth = React$1.useMemo(function () {
978
+ return columns.find(function (item) {
979
+ return !!item.width;
980
+ });
981
+ }, [columns]);
982
+ var colgroup = React$1.useMemo(function () {
983
+ if (!isScalableWidth) return /*#__PURE__*/React__default$1["default"].createElement("colgroup", null);
984
+ return makeColgroup(width, columns);
985
+ }, [isScalableWidth, width]);
986
+ return /*#__PURE__*/React__default$1["default"].createElement(React__default$1["default"].Fragment, null, colgroup, /*#__PURE__*/React__default$1["default"].createElement("thead", {
987
+ className: style.dynamic([["134865897", [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
988
+ }, /*#__PURE__*/React__default$1["default"].createElement("tr", {
989
+ className: style.dynamic([["134865897", [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
990
+ }, columns.map(function (column, index) {
991
+ return /*#__PURE__*/React__default$1["default"].createElement("th", {
992
+ key: "table-th-".concat(column.prop.toString(), "-").concat(index),
993
+ className: style.dynamic([["134865897", [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + (column.className || "")
994
+ }, /*#__PURE__*/React__default$1["default"].createElement("div", {
995
+ className: style.dynamic([["134865897", [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + "thead-box"
996
+ }, column.label));
997
+ }))), /*#__PURE__*/React__default$1["default"].createElement(style, {
998
+ id: "134865897",
999
+ dynamic: [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]
1000
+ }, "thead.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;font-size:inherit;}th.__jsx-style-dynamic-selector{padding:0 0.5em;font-size:calc(0.75 * var(--table-font-size));font-weight:normal;text-align:left;-webkit-letter-spacing:0;-moz-letter-spacing:0;-ms-letter-spacing:0;letter-spacing:0;vertical-align:middle;min-height:calc(2.5 * var(--table-font-size));color:".concat(theme.palette.accents_5, ";background:").concat(theme.palette.accents_1, ";border-bottom:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-radius:0;}th.__jsx-style-dynamic-selector:nth-child(1){border-bottom:1px solid ").concat(theme.palette.border, ";border-left:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-left-radius:").concat(theme.layout.radius, ";border-bottom-left-radius:").concat(theme.layout.radius, ";}th.__jsx-style-dynamic-selector:last-child{border-bottom:1px solid ").concat(theme.palette.border, ";border-right:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-right-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";}.thead-box.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-align:center;min-height:calc(2.5 * var(--table-font-size));text-transform:uppercase;}")));
1001
+ };
1002
+ TableHead.displayName = 'TableHead';
1003
+ var TableHead$1 = TableHead;
1004
+
1005
+ var TableCell = function TableCell(_ref) {
1006
+ var columns = _ref.columns,
1007
+ row = _ref.row,
1008
+ rowIndex = _ref.rowIndex,
1009
+ emptyText = _ref.emptyText,
1010
+ onCellClick = _ref.onCellClick;
1011
+ /* eslint-disable react/jsx-no-useless-fragment */
1012
+ return /*#__PURE__*/React__default$1["default"].createElement(React__default$1["default"].Fragment, null, columns.map(function (column, index) {
1013
+ var currentRowValue = row[column.prop];
1014
+ var cellValue = currentRowValue || emptyText;
1015
+ var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
1016
+ return /*#__PURE__*/React__default$1["default"].createElement("td", {
1017
+ key: "row-td-".concat(index, "-").concat(column.prop.toString()),
1018
+ onClick: function onClick() {
1019
+ return onCellClick && onCellClick(currentRowValue, rowIndex, index);
1020
+ },
1021
+ className: column.className
1022
+ }, /*#__PURE__*/React__default$1["default"].createElement("div", {
1023
+ className: "cell"
1024
+ }, shouldBeRenderElement ? shouldBeRenderElement : cellValue));
1025
+ }));
1026
+ /* eslint-enable */
1027
+ };
1028
+ var TableCell$1 = TableCell;
1029
+
1030
+ var defaultContext$1 = {
1031
+ columns: [],
1032
+ updateColumn: function updateColumn() {}
1033
+ };
1034
+ var TableContext = /*#__PURE__*/React__default$1["default"].createContext(defaultContext$1);
1035
+ var useTableContext = function useTableContext() {
1036
+ return React__default$1["default"].useContext(TableContext);
1037
+ };
1038
+
1039
+ var classObjectToString = function classObjectToString(className) {
1040
+ var keys = Object.keys(className);
1041
+ var len = keys.length;
1042
+ var str = '';
1043
+ for (var index = 0; index < len; index++) {
1044
+ var key = keys[index];
1045
+ var val = className[keys[index]];
1046
+ if (!val) continue;
1047
+ str = str ? "".concat(str, " ").concat(String(key)) : String(key);
1048
+ }
1049
+ return str;
1050
+ };
1051
+ var isObjectClassName = function isObjectClassName(value) {
1052
+ return _typeof(value) === 'object' && !Array.isArray(value);
1053
+ };
1054
+ var useClasses = function useClasses() {
1055
+ var len = arguments.length;
1056
+ var classes = '';
1057
+ if (len === 0) return classes;
1058
+ for (var index = 0; index < len; index++) {
1059
+ var val = index < 0 || arguments.length <= index ? undefined : arguments[index];
1060
+ if (!val) continue;
1061
+ if (isObjectClassName(val)) {
1062
+ classes += " ".concat(classObjectToString(val));
1063
+ } else {
1064
+ classes += " ".concat(String(val).trim());
1065
+ }
1066
+ }
1067
+ return classes.trim();
1068
+ };
1069
+ var useClasses$1 = useClasses;
1070
+
1071
+ var TableBody = function TableBody(_ref) {
1072
+ var data = _ref.data,
1073
+ hover = _ref.hover,
1074
+ emptyText = _ref.emptyText,
1075
+ onRow = _ref.onRow,
1076
+ onCell = _ref.onCell,
1077
+ rowClassName = _ref.rowClassName;
1078
+ var theme = useTheme();
1079
+ var _useTableContext = useTableContext(),
1080
+ columns = _useTableContext.columns;
1081
+ var rowClickHandler = function rowClickHandler(row, index) {
1082
+ onRow && onRow(row, index);
1083
+ };
1084
+ return /*#__PURE__*/React__default$1["default"].createElement("tbody", {
1085
+ className: style.dynamic([["3433300570", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
1086
+ }, data.map(function (row, index) {
1087
+ var className = rowClassName(row, index);
1088
+ return /*#__PURE__*/React__default$1["default"].createElement("tr", {
1089
+ key: "tbody-row-".concat(index),
1090
+ onClick: function onClick() {
1091
+ return rowClickHandler(row, index);
1092
+ },
1093
+ className: style.dynamic([["3433300570", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]]) + " " + (useClasses$1({
1094
+ hover: hover
1095
+ }, className) || "")
1096
+ }, /*#__PURE__*/React__default$1["default"].createElement(TableCell$1, {
1097
+ columns: columns,
1098
+ row: row,
1099
+ rowIndex: index,
1100
+ emptyText: emptyText,
1101
+ onCellClick: onCell
1102
+ }));
1103
+ }), /*#__PURE__*/React__default$1["default"].createElement(style, {
1104
+ id: "3433300570",
1105
+ dynamic: [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]
1106
+ }, "tr.__jsx-style-dynamic-selector{-webkit-transition:background-color 0.25s ease;transition:background-color 0.25s ease;font-size:inherit;}tr.hover.__jsx-style-dynamic-selector:hover{background-color:".concat(theme.palette.accents_1, ";}tr.__jsx-style-dynamic-selector td{padding:0 0.5em;border-bottom:1px solid ").concat(theme.palette.border, ";color:").concat(theme.palette.accents_6, ";font-size:calc(0.875 * var(--table-font-size));text-align:left;}tr.__jsx-style-dynamic-selector .cell{min-height:calc(3.125 * var(--table-font-size));display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;}")));
1107
+ };
1108
+ TableBody.displayName = 'TableBody';
1109
+ var TableBody$1 = TableBody;
1110
+
1111
+ var getRealShape = function getRealShape(el) {
1112
+ var defaultShape = {
1113
+ width: 0,
1114
+ height: 0
1115
+ };
1116
+ if (!el || typeof window === 'undefined') return defaultShape;
1117
+ var rect = el.getBoundingClientRect();
1118
+ var _window$getComputedSt = window.getComputedStyle(el),
1119
+ width = _window$getComputedSt.width,
1120
+ height = _window$getComputedSt.height;
1121
+ var getCSSStyleVal = function getCSSStyleVal(str, parentNum) {
1122
+ if (!str) return 0;
1123
+ var strVal = str.includes('px') ? +str.split('px')[0] : str.includes('%') ? +str.split('%')[0] * parentNum * 0.01 : str;
1124
+ return Number.isNaN(+strVal) ? 0 : +strVal;
1125
+ };
1126
+ return {
1127
+ width: getCSSStyleVal("".concat(width), rect.width),
1128
+ height: getCSSStyleVal("".concat(height), rect.height)
1129
+ };
1130
+ };
1131
+ var useRealShape = function useRealShape(ref) {
1132
+ var _useState = React$1.useState({
1133
+ width: 0,
1134
+ height: 0
1135
+ }),
1136
+ _useState2 = _slicedToArray(_useState, 2),
1137
+ state = _useState2[0],
1138
+ setState = _useState2[1];
1139
+ var update = function update() {
1140
+ var _getRealShape = getRealShape(ref.current),
1141
+ width = _getRealShape.width,
1142
+ height = _getRealShape.height;
1143
+ setState({
1144
+ width: width,
1145
+ height: height
1146
+ });
1147
+ };
1148
+ React$1.useEffect(function () {
1149
+ return update();
1150
+ }, [ref.current]);
1151
+ return [state, update];
1152
+ };
1153
+ var useRealShape$1 = useRealShape;
1154
+
1155
+ var useResize = function useResize(callback) {
1156
+ var immediatelyInvoke = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1157
+ React$1.useEffect(function () {
1158
+ var fn = function fn() {
1159
+ return callback();
1160
+ };
1161
+ if (immediatelyInvoke) {
1162
+ fn();
1163
+ }
1164
+ window.addEventListener('resize', fn);
1165
+ return function () {
1166
+ return window.removeEventListener('resize', fn);
1167
+ };
1168
+ }, []);
1169
+ };
1170
+ var useResize$1 = useResize;
1171
+
1172
+ var ScalePropKeys = ['width', 'height', 'padding', 'margin', 'w', 'h', 'paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom', 'pl', 'pr', 'pt', 'pb', 'marginLeft', 'marginRight', 'marginTop', 'marginBottom', 'ml', 'mr', 'mt', 'mb', 'px', 'py', 'mx', 'my', 'font', 'unit', 'scale'];
1173
+ var defaultDynamicLayoutPipe = function defaultDynamicLayoutPipe(scale1x) {
1174
+ return "".concat(scale1x);
1175
+ };
1176
+ var defaultContext = {
1177
+ getScaleProps: function getScaleProps() {
1178
+ return undefined;
1179
+ },
1180
+ getAllScaleProps: function getAllScaleProps() {
1181
+ return {};
1182
+ },
1183
+ SCALES: {
1184
+ pl: defaultDynamicLayoutPipe,
1185
+ pr: defaultDynamicLayoutPipe,
1186
+ pb: defaultDynamicLayoutPipe,
1187
+ pt: defaultDynamicLayoutPipe,
1188
+ px: defaultDynamicLayoutPipe,
1189
+ py: defaultDynamicLayoutPipe,
1190
+ mb: defaultDynamicLayoutPipe,
1191
+ ml: defaultDynamicLayoutPipe,
1192
+ mr: defaultDynamicLayoutPipe,
1193
+ mt: defaultDynamicLayoutPipe,
1194
+ mx: defaultDynamicLayoutPipe,
1195
+ my: defaultDynamicLayoutPipe,
1196
+ width: defaultDynamicLayoutPipe,
1197
+ height: defaultDynamicLayoutPipe,
1198
+ font: defaultDynamicLayoutPipe
1199
+ },
1200
+ unit: '16px'
1201
+ };
1202
+ var ScaleContext = /*#__PURE__*/React__default$1["default"].createContext(defaultContext);
1203
+ var useScale$1 = function useScale() {
1204
+ return React__default$1["default"].useContext(ScaleContext);
1205
+ };
1206
+
1207
+ var isCSSNumberValue = function isCSSNumberValue(value) {
1208
+ return value !== undefined && !Number.isNaN(+value);
1209
+ };
1210
+
1211
+ var generateGetScaleProps = function generateGetScaleProps(props) {
1212
+ var getScaleProps = function getScaleProps(keyOrKeys) {
1213
+ if (!Array.isArray(keyOrKeys)) return props[keyOrKeys];
1214
+ var value = undefined;
1215
+ var _iterator = _createForOfIteratorHelper(keyOrKeys),
1216
+ _step;
1217
+ try {
1218
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1219
+ var key = _step.value;
1220
+ var currentValue = props[key];
1221
+ if (typeof currentValue !== 'undefined') {
1222
+ value = currentValue;
1223
+ }
1224
+ }
1225
+ } catch (err) {
1226
+ _iterator.e(err);
1227
+ } finally {
1228
+ _iterator.f();
1229
+ }
1230
+ return value;
1231
+ };
1232
+ return getScaleProps;
1233
+ };
1234
+ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
1235
+ var getAllScaleProps = function getAllScaleProps() {
1236
+ var scaleProps = {};
1237
+ var _iterator2 = _createForOfIteratorHelper(ScalePropKeys),
1238
+ _step2;
1239
+ try {
1240
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1241
+ var key = _step2.value;
1242
+ var value = props[key];
1243
+ if (typeof value !== 'undefined') {
1244
+ scaleProps[key] = value;
1245
+ }
1246
+ }
1247
+ } catch (err) {
1248
+ _iterator2.e(err);
1249
+ } finally {
1250
+ _iterator2.f();
1251
+ }
1252
+ return scaleProps;
1253
+ };
1254
+ return getAllScaleProps;
1255
+ };
1256
+
1257
+ var _excluded$1 = ["children"];
1258
+ var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
1259
+ if (scale === 1) return scale;
1260
+ var diff = Math.abs((scale - 1) / 2);
1261
+ return scale > 1 ? 1 + diff : 1 - diff;
1262
+ };
1263
+ var withScale = function withScale(Render) {
1264
+ var ScaleFC = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
1265
+ var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31, _ref32, _ref33;
1266
+ var children = _ref.children,
1267
+ props = _objectWithoutProperties(_ref, _excluded$1);
1268
+ var _useTheme = useTheme(),
1269
+ layout = _useTheme.layout;
1270
+ var paddingLeft = props.paddingLeft,
1271
+ pl = props.pl,
1272
+ paddingRight = props.paddingRight,
1273
+ pr = props.pr,
1274
+ paddingTop = props.paddingTop,
1275
+ pt = props.pt,
1276
+ paddingBottom = props.paddingBottom,
1277
+ pb = props.pb,
1278
+ marginTop = props.marginTop,
1279
+ mt = props.mt,
1280
+ marginRight = props.marginRight,
1281
+ mr = props.mr,
1282
+ marginBottom = props.marginBottom,
1283
+ mb = props.mb,
1284
+ marginLeft = props.marginLeft,
1285
+ ml = props.ml,
1286
+ px = props.px,
1287
+ py = props.py,
1288
+ mx = props.mx,
1289
+ my = props.my,
1290
+ width = props.width,
1291
+ height = props.height,
1292
+ font = props.font,
1293
+ w = props.w,
1294
+ h = props.h,
1295
+ margin = props.margin,
1296
+ padding = props.padding,
1297
+ _props$unit = props.unit,
1298
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1299
+ _props$scale = props.scale,
1300
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1301
+ var makeScaleHandler = function makeScaleHandler(attrValue) {
1302
+ return function (scale1x, defaultValue) {
1303
+ // 0 means disable scale and the default value is 0
1304
+ if (scale1x === 0) {
1305
+ scale1x = 1;
1306
+ defaultValue = defaultValue || 0;
1307
+ }
1308
+ var factor = reduceScaleCoefficient(scale) * scale1x;
1309
+ if (typeof attrValue === 'undefined') {
1310
+ if (typeof defaultValue !== 'undefined') return "".concat(defaultValue);
1311
+ return "calc(".concat(factor, " * ").concat(unit, ")");
1312
+ }
1313
+ if (!isCSSNumberValue(attrValue)) return "".concat(attrValue);
1314
+ var customFactor = factor * Number(attrValue);
1315
+ return "calc(".concat(customFactor, " * ").concat(unit, ")");
1316
+ };
1317
+ };
1318
+ var value = {
1319
+ unit: unit,
1320
+ SCALES: {
1321
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1322
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1323
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1324
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1325
+ px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
1326
+ py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
1327
+ mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1328
+ mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1329
+ mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1330
+ ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1331
+ mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
1332
+ my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
1333
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1334
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1335
+ font: makeScaleHandler(font)
1336
+ },
1337
+ getScaleProps: generateGetScaleProps(props),
1338
+ getAllScaleProps: generateGetAllScaleProps(props)
1339
+ };
1340
+ return /*#__PURE__*/React__default$1["default"].createElement(ScaleContext.Provider, {
1341
+ value: value
1342
+ }, /*#__PURE__*/React__default$1["default"].createElement(Render, _extends({}, props, {
1343
+ ref: ref
1344
+ }), children));
1345
+ });
1346
+ ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
1347
+ return ScaleFC;
1348
+ };
1349
+ var withScale$1 = withScale;
1350
+
1351
+ var useScale = useScale$1;
1352
+
1353
+ var warningStack = {};
1354
+ var useWarning = function useWarning(message, component) {
1355
+ var tag = component ? " [".concat(component, "]") : ' ';
1356
+ var log = "[Geist UI]".concat(tag, ": ").concat(message);
1357
+ if (typeof console === 'undefined') return;
1358
+ if (warningStack[log]) return;
1359
+ warningStack[log] = true;
1360
+ if (process.env.NODE_ENV !== 'production') {
1361
+ return console.error(log);
1362
+ }
1363
+ console.warn(log);
1364
+ };
1365
+ var useWarning$1 = useWarning;
1366
+
1367
+ var TableColumn = function TableColumn(columnProps) {
1368
+ var _ref = columnProps,
1369
+ children = _ref.children,
1370
+ prop = _ref.prop,
1371
+ label = _ref.label,
1372
+ width = _ref.width,
1373
+ _ref$className = _ref.className,
1374
+ className = _ref$className === void 0 ? '' : _ref$className,
1375
+ renderHandler = _ref.render;
1376
+ var _useTableContext = useTableContext(),
1377
+ updateColumn = _useTableContext.updateColumn;
1378
+ var safeProp = "".concat(prop.toString()).trim();
1379
+ if (!safeProp) {
1380
+ useWarning$1('The props "prop" is required.', 'Table.Column');
1381
+ }
1382
+ React$1.useEffect(function () {
1383
+ updateColumn({
1384
+ label: children || label,
1385
+ prop: safeProp,
1386
+ width: width,
1387
+ className: className,
1388
+ renderHandler: function renderHandler() {}
1389
+ });
1390
+ }, [children, label, prop, width, className, renderHandler]);
1391
+ return null;
1392
+ };
1393
+ TableColumn.displayName = 'TableColumn';
1394
+ var TableColumn$1 = TableColumn;
1395
+
1396
+ var _excluded = ["children", "data", "initialData", "hover", "emptyText", "onRow", "onCell", "onChange", "className", "rowClassName"];
1397
+ function TableComponent(tableProps) {
1398
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1399
+ var _ref = tableProps,
1400
+ children = _ref.children,
1401
+ customData = _ref.data,
1402
+ _ref$initialData = _ref.initialData,
1403
+ initialData = _ref$initialData === void 0 ? [] : _ref$initialData,
1404
+ _ref$hover = _ref.hover,
1405
+ hover = _ref$hover === void 0 ? true : _ref$hover,
1406
+ _ref$emptyText = _ref.emptyText,
1407
+ emptyText = _ref$emptyText === void 0 ? '' : _ref$emptyText,
1408
+ onRow = _ref.onRow,
1409
+ onCell = _ref.onCell;
1410
+ _ref.onChange;
1411
+ var _ref$className = _ref.className,
1412
+ className = _ref$className === void 0 ? '' : _ref$className,
1413
+ _ref$rowClassName = _ref.rowClassName,
1414
+ rowClassName = _ref$rowClassName === void 0 ? function () {
1415
+ return '';
1416
+ } : _ref$rowClassName,
1417
+ props = _objectWithoutProperties(_ref, _excluded);
1418
+ /* eslint-enable @typescript-eslint/no-unused-vars */
1419
+ var _useScale = useScale(),
1420
+ SCALES = _useScale.SCALES;
1421
+ var ref = React$1.useRef(null);
1422
+ var _useRealShape = useRealShape$1(ref),
1423
+ _useRealShape2 = _slicedToArray(_useRealShape, 2),
1424
+ width = _useRealShape2[0].width,
1425
+ updateShape = _useRealShape2[1];
1426
+ var _useState = React$1.useState([]),
1427
+ _useState2 = _slicedToArray(_useState, 2),
1428
+ columns = _useState2[0],
1429
+ setColumns = _useState2[1];
1430
+ var _useState3 = React$1.useState(initialData),
1431
+ _useState4 = _slicedToArray(_useState3, 2),
1432
+ data = _useState4[0],
1433
+ setData = _useState4[1];
1434
+ var updateColumn = function updateColumn(column) {
1435
+ setColumns(function (last) {
1436
+ var hasColumn = last.find(function (item) {
1437
+ return item.prop === column.prop;
1438
+ });
1439
+ if (!hasColumn) return [].concat(_toConsumableArray(last), [column]);
1440
+ return last.map(function (item) {
1441
+ if (item.prop !== column.prop) return item;
1442
+ return column;
1443
+ });
1444
+ });
1445
+ };
1446
+ var contextValue = React$1.useMemo(function () {
1447
+ return {
1448
+ columns: columns,
1449
+ updateColumn: updateColumn
1450
+ };
1451
+ }, [columns]);
1452
+ React$1.useEffect(function () {
1453
+ if (typeof customData === 'undefined') return;
1454
+ setData(customData);
1455
+ }, [customData]);
1456
+ useResize$1(function () {
1457
+ return updateShape();
1458
+ });
1459
+ return /*#__PURE__*/React__default$1["default"].createElement(TableContext.Provider, {
1460
+ value: contextValue
1461
+ }, /*#__PURE__*/React__default$1["default"].createElement("table", _extends({
1462
+ ref: ref
1463
+ }, props, {
1464
+ className: style.dynamic([["2132340556", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || className || "")
1465
+ }), /*#__PURE__*/React__default$1["default"].createElement(TableHead$1, {
1466
+ columns: columns,
1467
+ width: width
1468
+ }), /*#__PURE__*/React__default$1["default"].createElement(TableBody$1, {
1469
+ data: data,
1470
+ hover: hover,
1471
+ emptyText: emptyText,
1472
+ onRow: onRow,
1473
+ onCell: onCell,
1474
+ rowClassName: rowClassName
1475
+ }), children, /*#__PURE__*/React__default$1["default"].createElement(style, {
1476
+ id: "2132340556",
1477
+ dynamic: [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]
1478
+ }, "table.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;--table-font-size:".concat(SCALES.font(1), ";font-size:var(--table-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}"))));
1479
+ }
1480
+ TableComponent.displayName = 'Table';
1481
+ TableComponent.Column = TableColumn$1;
1482
+ var Table = withScale$1(TableComponent);
1483
+ Table.Column = TableColumn$1;
1484
+ var Table$1 = Table;
1485
+
1486
+ exports["default"] = Table$1;