@koine/react 2.0.0-beta.37 → 2.0.0-beta.39

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 (470) hide show
  1. package/README.md +1 -0
  2. package/calendar/CalendarDaygridCell.d.ts +4 -4
  3. package/calendar/CalendarDaygridNav.d.ts +3 -3
  4. package/calendar/CalendarDaygridTable.d.ts +4 -4
  5. package/calendar/CalendarLegend.d.ts +3 -3
  6. package/calendar/calendar-api-google.d.ts +2 -2
  7. package/calendar/useCalendar.d.ts +5 -5
  8. package/calendar/useDateLocale.d.ts +2 -0
  9. package/calendar/utils.d.ts +11 -11
  10. package/calendar.cjs.d.ts +1 -0
  11. package/calendar.cjs.default.js +1 -0
  12. package/calendar.cjs.js +62 -0
  13. package/calendar.cjs.mjs +2 -0
  14. package/calendar.d.ts +7 -0
  15. package/calendar.esm.js +35 -0
  16. package/components/FaviconTags.d.ts +8 -0
  17. package/components/Meta.d.ts +4 -0
  18. package/components/NoJs.d.ts +2 -0
  19. package/forms/antispam.d.ts +6 -6
  20. package/forms.cjs.d.ts +1 -0
  21. package/forms.cjs.default.js +1 -0
  22. package/forms.cjs.js +11 -0
  23. package/forms.cjs.mjs +2 -0
  24. package/forms.d.ts +1 -0
  25. package/forms.esm.js +6 -0
  26. package/hooks/index.d.ts +19 -0
  27. package/{useAsyncFn.d.ts → hooks/useAsyncFn.d.ts} +3 -3
  28. package/hooks/useFirstMountState.d.ts +1 -0
  29. package/hooks/useFixedOffset.d.ts +1 -0
  30. package/hooks/useFocus.d.ts +1 -0
  31. package/hooks/useInterval.d.ts +1 -0
  32. package/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
  33. package/hooks/useKeyUp.d.ts +1 -0
  34. package/{useMeasure.d.ts → hooks/useMeasure.d.ts} +2 -2
  35. package/hooks/useMountedState.d.ts +1 -0
  36. package/hooks/useNavigateAway.d.ts +2 -0
  37. package/hooks/usePrevious.d.ts +1 -0
  38. package/hooks/usePreviousRef.d.ts +1 -0
  39. package/{useReveal.d.ts → hooks/useReveal.d.ts} +1 -1
  40. package/hooks/useScrollPosition.d.ts +7 -0
  41. package/hooks/useScrollThreshold.d.ts +1 -0
  42. package/hooks/useScrollTo.d.ts +1 -0
  43. package/hooks/useSmoothScroll.d.ts +1 -0
  44. package/hooks/useSpinDelay.d.ts +1 -0
  45. package/hooks/useTraceUpdate.d.ts +1 -0
  46. package/hooks/useUpdateEffect.d.ts +2 -0
  47. package/hooks/useWindowSize.d.ts +2 -0
  48. package/index.cjs.d.ts +1 -0
  49. package/index.cjs.default.js +1 -0
  50. package/index.cjs.js +77 -0
  51. package/index.cjs.mjs +2 -0
  52. package/index.d.ts +3 -26
  53. package/index.esm.js +51 -0
  54. package/package.json +21 -646
  55. package/utils/classed.d.ts +8 -0
  56. package/{createUseMediaQueryWidth.d.ts → utils/createUseMediaQueryWidth.d.ts} +2 -2
  57. package/{extendComponent.d.ts → utils/extendComponent.d.ts} +2 -3
  58. package/utils/index.d.ts +5 -0
  59. package/utils/mergeRefs.d.ts +1 -0
  60. package/Alert/Alert.d.ts +0 -5
  61. package/Alert/Alert.js +0 -10
  62. package/Alert/index.d.ts +0 -1
  63. package/Alert/index.js +0 -1
  64. package/Animations/Reveal.d.ts +0 -3
  65. package/Animations/Reveal.js +0 -16
  66. package/Animations/Underline.d.ts +0 -1
  67. package/Animations/Underline.js +0 -5
  68. package/Animations/index.d.ts +0 -3
  69. package/Animations/index.js +0 -3
  70. package/Animations/useReveal.d.ts +0 -13
  71. package/Animations/useReveal.js +0 -43
  72. package/Autocomplete/AutocompleteDownshift.d.ts +0 -1
  73. package/Autocomplete/AutocompleteDownshift.js +0 -1
  74. package/Autocomplete/AutocompleteDownshiftMultiselect.d.ts +0 -1
  75. package/Autocomplete/AutocompleteDownshiftMultiselect.js +0 -1
  76. package/Autocomplete/AutocompleteMui.d.ts +0 -22
  77. package/Autocomplete/AutocompleteMui.js +0 -93
  78. package/Autocomplete/AutocompleteReach.d.ts +0 -1
  79. package/Autocomplete/AutocompleteReach.js +0 -1
  80. package/Autocomplete/components.d.ts +0 -12
  81. package/Autocomplete/components.js +0 -26
  82. package/Autocomplete/helpers.d.ts +0 -3
  83. package/Autocomplete/helpers.js +0 -16
  84. package/Autocomplete/index.d.ts +0 -2
  85. package/Autocomplete/index.js +0 -1
  86. package/Bg/BgColor.d.ts +0 -12
  87. package/Bg/BgColor.js +0 -16
  88. package/Bg/BgPhoto.d.ts +0 -8
  89. package/Bg/BgPhoto.js +0 -16
  90. package/Bg/BgSvg.d.ts +0 -4
  91. package/Bg/BgSvg.js +0 -9
  92. package/Bg/index.d.ts +0 -3
  93. package/Bg/index.js +0 -3
  94. package/Breadcrumbs/Breadcrumbs.d.ts +0 -13
  95. package/Breadcrumbs/Breadcrumbs.js +0 -27
  96. package/Breadcrumbs/index.d.ts +0 -1
  97. package/Breadcrumbs/index.js +0 -1
  98. package/Buttons/Button.d.ts +0 -14
  99. package/Buttons/Button.js +0 -10
  100. package/Buttons/ButtonComposite.d.ts +0 -22
  101. package/Buttons/ButtonComposite.js +0 -28
  102. package/Buttons/ButtonFab.d.ts +0 -4
  103. package/Buttons/ButtonFab.js +0 -6
  104. package/Buttons/ButtonLink.d.ts +0 -8
  105. package/Buttons/ButtonLink.js +0 -11
  106. package/Buttons/IconButton.d.ts +0 -8
  107. package/Buttons/IconButton.js +0 -7
  108. package/Buttons/index.d.ts +0 -5
  109. package/Buttons/index.js +0 -5
  110. package/Calendar/CalendarDaygridCell.d.ts +0 -35
  111. package/Calendar/CalendarDaygridCell.js +0 -46
  112. package/Calendar/CalendarDaygridNav.d.ts +0 -27
  113. package/Calendar/CalendarDaygridNav.js +0 -24
  114. package/Calendar/CalendarDaygridTable.d.ts +0 -25
  115. package/Calendar/CalendarDaygridTable.js +0 -45
  116. package/Calendar/CalendarLegend.d.ts +0 -18
  117. package/Calendar/CalendarLegend.js +0 -9
  118. package/Calendar/calendar-api-google.d.ts +0 -10
  119. package/Calendar/calendar-api-google.js +0 -124
  120. package/Calendar/index.d.ts +0 -6
  121. package/Calendar/index.js +0 -6
  122. package/Calendar/types.d.ts +0 -62
  123. package/Calendar/types.js +0 -1
  124. package/Calendar/useCalendar.d.ts +0 -35
  125. package/Calendar/useCalendar.js +0 -176
  126. package/Calendar/utils.d.ts +0 -11
  127. package/Calendar/utils.js +0 -185
  128. package/Carousel/Carousel.d.ts +0 -1
  129. package/Carousel/Carousel.js +0 -1
  130. package/Carousel/CarouselCss.d.ts +0 -13
  131. package/Carousel/CarouselCss.js +0 -19
  132. package/Carousel/index.d.ts +0 -1
  133. package/Carousel/index.js +0 -1
  134. package/Collapsable/Collapsable.d.ts +0 -1
  135. package/Collapsable/Collapsable.js +0 -1
  136. package/Collapsable/CollapsableReach.d.ts +0 -0
  137. package/Collapsable/CollapsableReach.js +0 -1
  138. package/Collapsable/index.d.ts +0 -1
  139. package/Collapsable/index.js +0 -1
  140. package/Debug/Debug.d.ts +0 -4
  141. package/Debug/Debug.js +0 -9
  142. package/Debug/index.d.ts +0 -1
  143. package/Debug/index.js +0 -1
  144. package/Details/Details.d.ts +0 -398
  145. package/Details/Details.js +0 -52
  146. package/Details/index.d.ts +0 -1
  147. package/Details/index.js +0 -1
  148. package/Dialog/DialogMui.d.ts +0 -165
  149. package/Dialog/DialogMui.js +0 -39
  150. package/Dialog/css/bare.d.ts +0 -171
  151. package/Dialog/css/bare.js +0 -21
  152. package/Dialog/index.d.ts +0 -2
  153. package/Dialog/index.js +0 -1
  154. package/Dialog/m/bare.d.ts +0 -4
  155. package/Dialog/m/bare.js +0 -3
  156. package/Dialog/m/basic.d.ts +0 -4
  157. package/Dialog/m/basic.js +0 -28
  158. package/Dialog/m/index.d.ts +0 -2
  159. package/Dialog/m/index.js +0 -4
  160. package/Dialog/sc/bare.d.ts +0 -61
  161. package/Dialog/sc/bare.js +0 -31
  162. package/Dialog/sc/framer.d.ts +0 -24
  163. package/Dialog/sc/framer.js +0 -16
  164. package/Dialog/sc/framerMaterial.d.ts +0 -24
  165. package/Dialog/sc/framerMaterial.js +0 -16
  166. package/Dialog/sc/material.d.ts +0 -60
  167. package/Dialog/sc/material.js +0 -21
  168. package/Dialog/tw/bare.d.ts +0 -208
  169. package/Dialog/tw/bare.js +0 -29
  170. package/Dialog/tw/elegant.d.ts +0 -270
  171. package/Dialog/tw/elegant.js +0 -21
  172. package/Dialog/tw/framer.d.ts +0 -108
  173. package/Dialog/tw/framer.js +0 -16
  174. package/Dialog/tw/framerMaterial.d.ts +0 -164
  175. package/Dialog/tw/framerMaterial.js +0 -16
  176. package/Dialog/tw/material.d.ts +0 -270
  177. package/Dialog/tw/material.js +0 -21
  178. package/Editor/Editor--tiptap.d.ts +0 -9
  179. package/Editor/Editor--tiptap.js +0 -26
  180. package/Editor/components.d.ts +0 -5
  181. package/Editor/components.js +0 -10
  182. package/Editor/index.d.ts +0 -1
  183. package/Editor/index.js +0 -1
  184. package/FaviconTags.d.ts +0 -9
  185. package/FaviconTags.js +0 -6
  186. package/Form/Form.d.ts +0 -125
  187. package/Form/Form.js +0 -60
  188. package/Form/index.d.ts +0 -1
  189. package/Form/index.js +0 -1
  190. package/Form/sc/bare.d.ts +0 -57
  191. package/Form/sc/bare.js +0 -20
  192. package/Forms/Checkbox/Checkbox.d.ts +0 -7
  193. package/Forms/Checkbox/Checkbox.js +0 -15
  194. package/Forms/Checkbox/index.d.ts +0 -1
  195. package/Forms/Checkbox/index.js +0 -1
  196. package/Forms/Feedback/Feedback.d.ts +0 -5
  197. package/Forms/Feedback/Feedback.js +0 -9
  198. package/Forms/Feedback/index.d.ts +0 -1
  199. package/Forms/Feedback/index.js +0 -1
  200. package/Forms/Field/Field.d.ts +0 -18
  201. package/Forms/Field/Field.js +0 -25
  202. package/Forms/Field/FieldControl.d.ts +0 -14
  203. package/Forms/Field/FieldControl.js +0 -35
  204. package/Forms/Field/FieldHint.d.ts +0 -1
  205. package/Forms/Field/FieldHint.js +0 -4
  206. package/Forms/Field/index.d.ts +0 -2
  207. package/Forms/Field/index.js +0 -2
  208. package/Forms/Input/Input.d.ts +0 -8
  209. package/Forms/Input/Input.js +0 -16
  210. package/Forms/Input/index.d.ts +0 -1
  211. package/Forms/Input/index.js +0 -1
  212. package/Forms/InputGroup/InputGroup.d.ts +0 -12
  213. package/Forms/InputGroup/InputGroup.js +0 -15
  214. package/Forms/InputGroup/index.d.ts +0 -1
  215. package/Forms/InputGroup/index.js +0 -1
  216. package/Forms/Label/Label.d.ts +0 -3
  217. package/Forms/Label/Label.js +0 -6
  218. package/Forms/Label/index.d.ts +0 -1
  219. package/Forms/Label/index.js +0 -1
  220. package/Forms/Password/Password.d.ts +0 -4
  221. package/Forms/Password/Password.js +0 -17
  222. package/Forms/Password/index.d.ts +0 -1
  223. package/Forms/Password/index.js +0 -1
  224. package/Forms/Radio/Radio.d.ts +0 -11
  225. package/Forms/Radio/Radio.js +0 -25
  226. package/Forms/Radio/index.d.ts +0 -1
  227. package/Forms/Radio/index.js +0 -1
  228. package/Forms/Switch/Switch.d.ts +0 -5
  229. package/Forms/Switch/Switch.js +0 -17
  230. package/Forms/Switch/index.d.ts +0 -1
  231. package/Forms/Switch/index.js +0 -1
  232. package/Forms/Textarea/Textarea.d.ts +0 -4
  233. package/Forms/Textarea/Textarea.js +0 -12
  234. package/Forms/Textarea/TextareaRich.d.ts +0 -5
  235. package/Forms/Textarea/TextareaRich.js +0 -26
  236. package/Forms/Textarea/index.d.ts +0 -2
  237. package/Forms/Textarea/index.js +0 -2
  238. package/Forms/Toggle/Toggle-tailwind.d.ts +0 -0
  239. package/Forms/Toggle/Toggle-tailwind.js +0 -1
  240. package/Forms/Toggle/Toggle.d.ts +0 -18
  241. package/Forms/Toggle/Toggle.js +0 -25
  242. package/Forms/Toggle/index.d.ts +0 -1
  243. package/Forms/Toggle/index.js +0 -1
  244. package/Forms/Toggle/useToggle-tailwind.d.ts +0 -0
  245. package/Forms/Toggle/useToggle-tailwind.js +0 -1
  246. package/Forms/Toggle/useToggle.d.ts +0 -16
  247. package/Forms/Toggle/useToggle.js +0 -85
  248. package/Forms/antispam.d.ts +0 -27
  249. package/Forms/antispam.js +0 -29
  250. package/Forms/helpers.d.ts +0 -18
  251. package/Forms/helpers.js +0 -35
  252. package/Forms/index.d.ts +0 -15
  253. package/Forms/index.js +0 -15
  254. package/Forms/styles.d.ts +0 -9
  255. package/Forms/styles.js +0 -19
  256. package/Gauge/Gauge.d.ts +0 -4
  257. package/Gauge/Gauge.js +0 -1
  258. package/Grid/Grid.d.ts +0 -32
  259. package/Grid/Grid.js +0 -52
  260. package/Grid/index.d.ts +0 -1
  261. package/Grid/index.js +0 -1
  262. package/Hamburger/Hamburger.d.ts +0 -5
  263. package/Hamburger/Hamburger.js +0 -47
  264. package/Hamburger/index.d.ts +0 -1
  265. package/Hamburger/index.js +0 -1
  266. package/Header/index.d.ts +0 -1
  267. package/Header/index.js +0 -1
  268. package/Header/useHeader.d.ts +0 -20
  269. package/Header/useHeader.js +0 -32
  270. package/Hidden/Hidden.d.ts +0 -6
  271. package/Hidden/Hidden.js +0 -10
  272. package/Hidden/index.d.ts +0 -1
  273. package/Hidden/index.js +0 -1
  274. package/Img/index.d.ts +0 -1
  275. package/Img/index.js +0 -1
  276. package/Img/sc/bare.d.ts +0 -2
  277. package/Img/sc/bare.js +0 -4
  278. package/Img/types.d.ts +0 -9
  279. package/Img/types.js +0 -1
  280. package/Link/Link.d.ts +0 -3
  281. package/Link/Link.js +0 -4
  282. package/Link/LinkBlank.d.ts +0 -5
  283. package/Link/LinkBlank.js +0 -15
  284. package/Link/index.d.ts +0 -2
  285. package/Link/index.js +0 -2
  286. package/Menu/Menu.d.ts +0 -1
  287. package/Menu/Menu.js +0 -4
  288. package/Menu/MenuMui.d.ts +0 -0
  289. package/Menu/MenuMui.js +0 -1
  290. package/Menu/index.d.ts +0 -1
  291. package/Menu/index.js +0 -1
  292. package/MenuItem/MenuItem.d.ts +0 -1
  293. package/MenuItem/MenuItem.js +0 -4
  294. package/MenuItem/MenuItemMui.d.ts +0 -0
  295. package/MenuItem/MenuItemMui.js +0 -1
  296. package/MenuItem/index.d.ts +0 -1
  297. package/MenuItem/index.js +0 -1
  298. package/MenuItem/useMenuItem.d.ts +0 -9
  299. package/MenuItem/useMenuItem.js +0 -42
  300. package/Meta.d.ts +0 -5
  301. package/Meta.js +0 -6
  302. package/NoJs.d.ts +0 -3
  303. package/NoJs.js +0 -7
  304. package/Pagination/PaginationNav.d.ts +0 -14
  305. package/Pagination/PaginationNav.js +0 -48
  306. package/Pagination/PaginationResults.d.ts +0 -3
  307. package/Pagination/PaginationResults.js +0 -11
  308. package/Pagination/index.d.ts +0 -2
  309. package/Pagination/index.js +0 -2
  310. package/Pill/Pill.d.ts +0 -5
  311. package/Pill/Pill.js +0 -7
  312. package/Pill/index.d.ts +0 -1
  313. package/Pill/index.js +0 -1
  314. package/Polymorphic.js +0 -1
  315. package/Progress/ProgressCircular.d.ts +0 -13
  316. package/Progress/ProgressCircular.js +0 -12
  317. package/Progress/ProgressLinear.d.ts +0 -15
  318. package/Progress/ProgressLinear.js +0 -21
  319. package/Progress/ProgressOverlay.d.ts +0 -4
  320. package/Progress/ProgressOverlay.js +0 -23
  321. package/Progress/index.d.ts +0 -3
  322. package/Progress/index.js +0 -3
  323. package/Rating/Rating.d.ts +0 -27
  324. package/Rating/Rating.js +0 -43
  325. package/Rating/index.d.ts +0 -8
  326. package/Rating/index.js +0 -45
  327. package/Select/SelectDownshift.d.ts +0 -5
  328. package/Select/SelectDownshift.js +0 -1
  329. package/Select/components.d.ts +0 -6
  330. package/Select/components.js +0 -12
  331. package/Select/index.d.ts +0 -2
  332. package/Select/index.js +0 -1
  333. package/Sidebar/Sidebar.d.ts +0 -3
  334. package/Sidebar/Sidebar.js +0 -23
  335. package/Sidebar/index.d.ts +0 -1
  336. package/Sidebar/index.js +0 -1
  337. package/Spacing/Spacing.d.ts +0 -17
  338. package/Spacing/Spacing.js +0 -32
  339. package/Spacing/index.d.ts +0 -1
  340. package/Spacing/index.js +0 -1
  341. package/Sticky/Sticky.d.ts +0 -2
  342. package/Sticky/Sticky.js +0 -1
  343. package/Sticky/StickyCss.d.ts +0 -5
  344. package/Sticky/StickyCss.js +0 -6
  345. package/Sticky/index.d.ts +0 -1
  346. package/Sticky/index.js +0 -1
  347. package/Tabs/TabsMui.d.ts +0 -84
  348. package/Tabs/TabsMui.js +0 -30
  349. package/Tabs/index.d.ts +0 -1
  350. package/Tabs/index.js +0 -1
  351. package/Tabs/sc/bare.d.ts +0 -0
  352. package/Tabs/sc/bare.js +0 -1
  353. package/Tabs/tw/bare.d.ts +0 -85
  354. package/Tabs/tw/bare.js +0 -17
  355. package/Tabs/tw/material.d.ts +0 -118
  356. package/Tabs/tw/material.js +0 -19
  357. package/Tabs/useTabs.d.ts +0 -21
  358. package/Tabs/useTabs.js +0 -44
  359. package/Typography/CopyPasteVisible.d.ts +0 -1
  360. package/Typography/CopyPasteVisible.js +0 -4
  361. package/Typography/Native.d.ts +0 -10
  362. package/Typography/Native.js +0 -14
  363. package/Typography/ReadMore.d.ts +0 -10
  364. package/Typography/ReadMore.js +0 -42
  365. package/Typography/TextLoop.d.ts +0 -16
  366. package/Typography/TextLoop.js +0 -45
  367. package/Typography/TypeStairs.d.ts +0 -6
  368. package/Typography/TypeStairs.js +0 -42
  369. package/Typography/index.d.ts +0 -5
  370. package/Typography/index.js +0 -5
  371. package/calendar/CalendarDaygridCell.js +0 -48
  372. package/calendar/CalendarDaygridNav.js +0 -24
  373. package/calendar/CalendarDaygridTable.js +0 -45
  374. package/calendar/CalendarLegend.js +0 -9
  375. package/calendar/calendar-api-google.js +0 -124
  376. package/calendar/index.d.ts +0 -6
  377. package/calendar/index.js +0 -6
  378. package/calendar/types.js +0 -1
  379. package/calendar/useCalendar.js +0 -176
  380. package/calendar/utils.js +0 -185
  381. package/classed.d.ts +0 -8
  382. package/classed.js +0 -43
  383. package/createUseMediaQueryWidth.js +0 -39
  384. package/css/index.d.ts +0 -1
  385. package/css/index.js +0 -1
  386. package/extendComponent.js +0 -9
  387. package/forms/antispam.js +0 -29
  388. package/forms/index.d.ts +0 -1
  389. package/forms/index.js +0 -1
  390. package/index.js +0 -24
  391. package/m/MotionProvider.d.ts +0 -6
  392. package/m/MotionProvider.js +0 -7
  393. package/m/index.d.ts +0 -1
  394. package/m/index.js +0 -1
  395. package/m/lite.d.ts +0 -2
  396. package/m/lite.js +0 -2
  397. package/m/max.d.ts +0 -2
  398. package/m/max.js +0 -2
  399. package/mergeRefs.d.ts +0 -2
  400. package/mergeRefs.js +0 -13
  401. package/sc/index.d.ts +0 -29
  402. package/sc/index.js +0 -29
  403. package/scm/index.d.ts +0 -28
  404. package/scm/index.js +0 -28
  405. package/shared/index.d.ts +0 -7
  406. package/shared/index.js +0 -7
  407. package/styles/Body.d.ts +0 -2
  408. package/styles/Body.js +0 -5
  409. package/styles/Global.d.ts +0 -2
  410. package/styles/Global.js +0 -5
  411. package/styles/index.d.ts +0 -7
  412. package/styles/index.js +0 -7
  413. package/styles/media.d.ts +0 -18
  414. package/styles/media.js +0 -75
  415. package/styles/spacing.d.ts +0 -12
  416. package/styles/spacing.js +0 -45
  417. package/styles/styled.d.ts +0 -8
  418. package/styles/styled.js +0 -9
  419. package/styles/theme--vanilla.d.ts +0 -17
  420. package/styles/theme--vanilla.js +0 -47
  421. package/styles/theme.d.ts +0 -53
  422. package/styles/theme.js +0 -30
  423. package/tw/index.d.ts +0 -1
  424. package/tw/index.js +0 -1
  425. package/twm/index.d.ts +0 -1
  426. package/twm/index.js +0 -1
  427. package/types.js +0 -1
  428. package/typings.d.ts +0 -6
  429. package/useAsyncFn.js +0 -33
  430. package/useDateLocale.d.ts +0 -3
  431. package/useDateLocale.js +0 -28
  432. package/useFirstMountState.d.ts +0 -2
  433. package/useFirstMountState.js +0 -10
  434. package/useFixedOffset.d.ts +0 -2
  435. package/useFixedOffset.js +0 -42
  436. package/useFocus.d.ts +0 -2
  437. package/useFocus.js +0 -9
  438. package/useInterval.d.ts +0 -2
  439. package/useInterval.js +0 -22
  440. package/useIsomorphicLayoutEffect.d.ts +0 -3
  441. package/useIsomorphicLayoutEffect.js +0 -6
  442. package/useKeyUp.d.ts +0 -2
  443. package/useKeyUp.js +0 -18
  444. package/useMeasure.js +0 -130
  445. package/useMountedState.d.ts +0 -2
  446. package/useMountedState.js +0 -13
  447. package/useNavigateAway.d.ts +0 -3
  448. package/useNavigateAway.js +0 -25
  449. package/usePrevious.d.ts +0 -2
  450. package/usePrevious.js +0 -10
  451. package/usePreviousRef.d.ts +0 -2
  452. package/usePreviousRef.js +0 -9
  453. package/useReveal.js +0 -43
  454. package/useScrollPosition.d.ts +0 -7
  455. package/useScrollPosition.js +0 -61
  456. package/useScrollThreshold.d.ts +0 -2
  457. package/useScrollThreshold.js +0 -27
  458. package/useScrollTo.d.ts +0 -2
  459. package/useScrollTo.js +0 -20
  460. package/useSmoothScroll.d.ts +0 -2
  461. package/useSmoothScroll.js +0 -32
  462. package/useSpinDelay.d.ts +0 -2
  463. package/useSpinDelay.js +0 -39
  464. package/useTraceUpdate.d.ts +0 -2
  465. package/useTraceUpdate.js +0 -19
  466. package/useUpdateEffect.d.ts +0 -3
  467. package/useUpdateEffect.js +0 -11
  468. package/useWindowSize.d.ts +0 -3
  469. package/useWindowSize.js +0 -20
  470. /package/{Polymorphic.d.ts → utils/Polymorphic.d.ts} +0 -0
package/Grid/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./Grid.js";
package/Grid/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./Grid.js";
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export type HamburgerProps = React.ComponentProps<"div"> & {
3
- toggled?: boolean;
4
- };
5
- export declare const Hamburger: ({ toggled, ...props }: HamburgerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,47 +0,0 @@
1
- import { __assign, __makeTemplateObject, __rest } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import styled from "styled-components";
4
- var HamburgerLabel = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n top: 30px;\n font-size: ", ";\n text-transform: uppercase;\n left: 7px;\n letter-spacing: 3px;\n"], ["\n position: absolute;\n top: 30px;\n font-size: ", ";\n text-transform: uppercase;\n left: 7px;\n letter-spacing: 3px;\n"])), function (_a) {
5
- var $toggled = _a.$toggled;
6
- return ($toggled ? "0" : "9px");
7
- });
8
- var area = 48;
9
- var lines = 3;
10
- var width = 32;
11
- var room = Math.round((area - width) / 2);
12
- var barHeightRaw = width / 12;
13
- var barHeight = Math.round(barHeightRaw);
14
- var space = 0.5;
15
- var marginRaw = width / (lines * (space + (lines === 3 ? 1 : 1.25)));
16
- var margin = Math.round(marginRaw);
17
- var height = barHeight * lines + margin * (lines - 1);
18
- var topOffset = Math.round((area - height) / 2);
19
- var translate = 4.6325;
20
- var deviation = (barHeightRaw - barHeight + (marginRaw - margin)) / (lines === 3 ? 1 : 2);
21
- var move = parseFloat((width / translate - deviation / (4 / 3)).toFixed(2));
22
- var time = 0.4;
23
- var easing = "cubic-bezier(0, 0, 0, 1)";
24
- var transition = "".concat(time, "s ").concat(easing);
25
- var burgerStyles = {
26
- marginRight: "-8px",
27
- position: "relative",
28
- width: "".concat(area, "px"),
29
- height: "".concat(area, "px"),
30
- userSelect: "none",
31
- outline: "0px",
32
- cursor: "pointer",
33
- transition: transition,
34
- };
35
- var barStyles = {
36
- position: "absolute",
37
- width: "".concat(width, "px"),
38
- height: "".concat(barHeight, "px"),
39
- left: "".concat(room, "px"),
40
- background: "currentColor",
41
- transition: transition,
42
- };
43
- export var Hamburger = function (_a) {
44
- var toggled = _a.toggled, props = __rest(_a, ["toggled"]);
45
- return (_jsxs("div", __assign({ style: __assign(__assign({}, burgerStyles), { transform: "".concat(toggled ? "rotate(90deg)" : "none") }), tabIndex: 0 }, props, { children: [_jsx("div", { style: __assign(__assign({}, barStyles), { top: "".concat(topOffset, "px"), transform: "".concat(toggled ? "rotate(-45deg) translate(0px, ".concat(move, "px)") : "none") }) }), _jsx("div", { style: __assign(__assign({}, barStyles), { top: "".concat(topOffset + barHeight + margin, "px"), transform: "".concat(toggled ? "rotate(45deg) translate(0, -".concat(move, "px)") : "none") }) }), _jsx(HamburgerLabel, { "$toggled": toggled, children: "Menu" })] })));
46
- };
47
- var templateObject_1;
@@ -1 +0,0 @@
1
- export * from "./Hamburger.js";
@@ -1 +0,0 @@
1
- export * from "./Hamburger.js";
package/Header/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./useHeader.js";
package/Header/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./useHeader.js";
@@ -1,20 +0,0 @@
1
- type isSticky = boolean & {
2
- _branded: true;
3
- };
4
- type placeholderHeight = number & {
5
- _branded: true;
6
- };
7
- type headerHeight = number & {
8
- _branded: true;
9
- };
10
- type logoWidth = number & {
11
- _branded: true;
12
- };
13
- type UseHeaderState = readonly [
14
- isSticky,
15
- placeholderHeight,
16
- headerHeight,
17
- logoWidth
18
- ];
19
- export declare const useHeader: () => UseHeaderState;
20
- export default useHeader;
@@ -1,32 +0,0 @@
1
- import { __read } from "tslib";
2
- import { useEffect, useState } from "react";
3
- import { useMedia } from "../styles/media.js";
4
- import { useTheme } from "../styles/theme.js";
5
- import { useScrollPosition } from "../useScrollPosition.js";
6
- export var useHeader = function () {
7
- var _a = __read(useState(false), 2), isSticky = _a[0], setIsSticky = _a[1];
8
- var themed = useTheme().header;
9
- var isDesktopLayout = useMedia("min:".concat(themed.breakpoint));
10
- var valueIdx = isDesktopLayout ? 1 : 0;
11
- var _b = __read(useState(themed.height[valueIdx]), 2), headerHeight = _b[0], setHeaderHeight = _b[1];
12
- var _c = __read(useState(themed.height[valueIdx]), 2), placeholderHeight = _c[0], setPlaceholderHeight = _c[1];
13
- var _d = __read(useState(themed.logoWidth[valueIdx]), 2), logoWidth = _d[0], setLogoWidth = _d[1];
14
- useScrollPosition(function (currentPosition) {
15
- var isPastThreshold = currentPosition.y * -1 > 40;
16
- if (isSticky !== isPastThreshold)
17
- setIsSticky(isPastThreshold);
18
- }, [isSticky]);
19
- useEffect(function () {
20
- var valueIdx = isDesktopLayout ? 1 : 0;
21
- setPlaceholderHeight(themed.height[valueIdx]);
22
- setHeaderHeight(isSticky ? themed.heightSticky[valueIdx] : themed.height[valueIdx]);
23
- setLogoWidth(isSticky ? themed.logoWidthSticky[valueIdx] : themed.logoWidth[valueIdx]);
24
- }, [themed, isSticky, isDesktopLayout]);
25
- return [
26
- isSticky,
27
- placeholderHeight,
28
- headerHeight,
29
- logoWidth,
30
- ];
31
- };
32
- export default useHeader;
@@ -1,6 +0,0 @@
1
- import { Breakpoint } from "../styles/theme.js";
2
- export type HiddenProps = {
3
- $min?: Breakpoint;
4
- $max?: Breakpoint;
5
- };
6
- export declare const Hidden: any;
package/Hidden/Hidden.js DELETED
@@ -1,10 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import styled from "styled-components";
3
- export var Hidden = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (p) {
4
- return "".concat(p.$min
5
- ? "\n @media (min-width: ".concat(p.theme.breakpoints[p.$min], "px) {\n display: none;\n }")
6
- : "", " ").concat(p.$max
7
- ? "\n @media (max-width: ".concat(p.theme.breakpoints[p.$max], "px) {\n display: none;\n }")
8
- : "");
9
- });
10
- var templateObject_1;
package/Hidden/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./Hidden.js";
package/Hidden/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./Hidden.js";
package/Img/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./types.js";
package/Img/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./types.js";
package/Img/sc/bare.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export type KoineImgProps = {};
2
- export declare const KoineImg: any;
package/Img/sc/bare.js DELETED
@@ -1,4 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import styled from "styled-components";
3
- export var KoineImg = styled.img(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
4
- var templateObject_1;
package/Img/types.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- export type KoineImgSmartWrapProps = React.PropsWithChildren<{
3
- $loaded?: boolean;
4
- $error?: boolean;
5
- $bg?: React.CSSProperties["backgroundColor"];
6
- }>;
7
- export type KoineImgSmartProps = {
8
- Wrap: React.FC<KoineImgSmartWrapProps>;
9
- };
package/Img/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
package/Link/Link.d.ts DELETED
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export type KoineLinkProps = React.ComponentPropsWithRef<"a">;
3
- export declare const KoineLink: any;
package/Link/Link.js DELETED
@@ -1,4 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import styled from "styled-components";
3
- export var KoineLink = styled.a(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
4
- var templateObject_1;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export type LinkBlankProps = React.ComponentPropsWithRef<"a">;
3
- export declare const LinkBlankA: any;
4
- export declare const LinkBlankIcon: any;
5
- export declare const LinkBlank: ({ children, target, rel, ...props }: LinkBlankProps) => import("react/jsx-runtime").JSX.Element;
package/Link/LinkBlank.js DELETED
@@ -1,15 +0,0 @@
1
- import { __assign, __makeTemplateObject, __rest } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { MdLaunch as IconOutboundLink } from "react-icons/md";
4
- import styled from "styled-components";
5
- import { max } from "../styles/media.js";
6
- export var LinkBlankA = styled.a.attrs({
7
- target: "_blank",
8
- rel: "noopener",
9
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
10
- export var LinkBlankIcon = styled(IconOutboundLink)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: var(---grey100);\n font-size: inherit;\n margin-left: 3px;\n line-height: inherit;\n vertical-align: middle;\n width: 0px;\n transition: width 0.1s ease-in-out;\n ", " {\n width: 20px;\n opacity: 0.8;\n }\n"], ["\n color: var(---grey100);\n font-size: inherit;\n margin-left: 3px;\n line-height: inherit;\n vertical-align: middle;\n width: 0px;\n transition: width 0.1s ease-in-out;\n ", " {\n width: 20px;\n opacity: 0.8;\n }\n"])), max.sm);
11
- export var LinkBlank = function (_a) {
12
- var children = _a.children, target = _a.target, rel = _a.rel, props = __rest(_a, ["children", "target", "rel"]);
13
- return (_jsxs(LinkBlankA, __assign({}, props, { children: [children, _jsx(LinkBlankIcon, {})] })));
14
- };
15
- var templateObject_1, templateObject_2;
package/Link/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Link.js";
2
- export * from "./LinkBlank.js";
package/Link/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Link.js";
2
- export * from "./LinkBlank.js";
package/Menu/Menu.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const Menu: any;
package/Menu/Menu.js DELETED
@@ -1,4 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import styled from "styled-components";
3
- export var Menu = styled.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: 3;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n background: #fff;\n width: 100%;\n box-shadow: var(--shadow);\n"], ["\n z-index: 3;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n background: #fff;\n width: 100%;\n box-shadow: var(--shadow);\n"])));
4
- var templateObject_1;
package/Menu/MenuMui.d.ts DELETED
File without changes
package/Menu/MenuMui.js DELETED
@@ -1 +0,0 @@
1
- "use strict";
package/Menu/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./Menu.js";
package/Menu/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./Menu.js";
@@ -1 +0,0 @@
1
- export declare const MenuItem: any;
@@ -1,4 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import styled from "styled-components";
3
- export var MenuItem = styled.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 8px 16px;\n\n &[aria-selected=\"true\"] {\n background: var(--accent400);\n }\n\n /** DEP: this is just for MultiselectMui? */\n &.Mui-focused,\n &[data-focus=\"true\"] {\n background: var(--accent300);\n color: white;\n }\n\n &:not([disabled]):hover {\n cursor: pointer;\n background: var(--accent300);\n }\n"], ["\n padding: 8px 16px;\n\n &[aria-selected=\"true\"] {\n background: var(--accent400);\n }\n\n /** DEP: this is just for MultiselectMui? */\n &.Mui-focused,\n &[data-focus=\"true\"] {\n background: var(--accent300);\n color: white;\n }\n\n &:not([disabled]):hover {\n cursor: pointer;\n background: var(--accent300);\n }\n"])));
4
- var templateObject_1;
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- export * from "./MenuItem.js";
package/MenuItem/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./MenuItem.js";
@@ -1,9 +0,0 @@
1
- import { UseMenuItemParameters } from "@mui/base/useMenuItem/useMenuItem.types";
2
- export declare function useMenuItem(props: UseMenuItemParameters): {
3
- getRootProps: (other?: Record<string, any>) => {
4
- role: string;
5
- };
6
- disabled: boolean;
7
- ref: ((instance: Element | null) => void) | null;
8
- };
9
- export default useMenuItem;
@@ -1,42 +0,0 @@
1
- import { __assign, __read } from "tslib";
2
- import useMenu from "@mui/base/useMenu";
3
- import useForkRef from "@mui/utils/useForkRef";
4
- import { useCallback, useEffect, useId, useRef, useState } from "react";
5
- export function useMenuItem(props) {
6
- var _a;
7
- var _b = props.disabled, disabled = _b === void 0 ? false : _b, ref = props.rootRef, label = props.label;
8
- var id = useId();
9
- var _c = useMenu(), contextValue = _c.contextValue, open = _c.open;
10
- var itemRef = useRef(null);
11
- var handleRef = useForkRef(itemRef, ref);
12
- if (contextValue === null) {
13
- throw new Error("MenuItemUnstyled must be used within a MenuUnstyled");
14
- }
15
- var registerItem = contextValue.registerItem, getItemState = contextValue.getItemState;
16
- useEffect(function () {
17
- registerItem(id, { disabled: disabled, id: id, ref: itemRef, label: label });
18
- }, [id, registerItem, disabled, ref, label]);
19
- var _d = __read(useState(false), 2), focusRequested = _d[0], requestFocus = _d[1];
20
- var focusIfRequested = useCallback(function () {
21
- if (focusRequested && itemRef.current != null) {
22
- itemRef.current.focus();
23
- requestFocus(false);
24
- }
25
- }, [focusRequested]);
26
- useEffect(function () {
27
- focusIfRequested();
28
- });
29
- var itemState = getItemState(id !== null && id !== void 0 ? id : "");
30
- var highlighted = (itemState !== null && itemState !== void 0 ? itemState : { highlighted: false }).highlighted;
31
- useEffect(function () {
32
- requestFocus(highlighted && open);
33
- }, [highlighted, open]);
34
- return {
35
- getRootProps: function (other) {
36
- return __assign(__assign({}, other), { role: "menuitem" });
37
- },
38
- disabled: (_a = itemState === null || itemState === void 0 ? void 0 : itemState.disabled) !== null && _a !== void 0 ? _a : false,
39
- ref: handleRef,
40
- };
41
- }
42
- export default useMenuItem;
package/Meta.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export type MetaProps = {
2
- zoom?: boolean;
3
- };
4
- export declare const Meta: ({ zoom }: MetaProps) => import("react/jsx-runtime").JSX.Element;
5
- export default Meta;
package/Meta.js DELETED
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- export var Meta = function (_a) {
3
- var zoom = _a.zoom;
4
- return (_jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1, maximum-scale=1".concat(zoom ? "" : ", user-scalable=0") }));
5
- };
6
- export default Meta;
package/NoJs.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export type NoJsProps = object;
2
- export declare const NoJs: (_props: NoJsProps) => import("react/jsx-runtime").JSX.Element;
3
- export default NoJs;
package/NoJs.js DELETED
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- export var NoJs = function (_props) {
3
- return (_jsx("script", { id: "no-js", dangerouslySetInnerHTML: {
4
- __html: "document.querySelector(\"html\").className=document.querySelector(\"html\").className.replace(/no-js/,\"\") + \"js\";",
5
- } }));
6
- };
7
- export default NoJs;
@@ -1,14 +0,0 @@
1
- import { KoineComponent, KoineComponentProps } from "../types.js";
2
- export type KoinePaginationNavProps = {
3
- total: string | number;
4
- perPage: string | number;
5
- currentPage: string | number;
6
- baseUrl?: string;
7
- showOffset?: number;
8
- };
9
- type PaginationNavProps = KoineComponentProps<KoinePaginationNavProps, {
10
- currentUrl?: string;
11
- Link?: KoineComponent;
12
- }>;
13
- export declare const KoinePaginationNav: ({ total, perPage, currentPage: _currentPage, baseUrl, showOffset, currentUrl, Link, }: PaginationNavProps) => import("react/jsx-runtime").JSX.Element | null;
14
- export {};
@@ -1,48 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { CgArrowLeftR as IconArrowLeft, CgArrowRightR as IconArrowRight, } from "react-icons/cg";
4
- import styled from "styled-components";
5
- import { ensureInt } from "@koine/utils";
6
- var Root = styled.nav(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 20px 0 40px;\n font-weight: 600;\n\n & a {\n text-decoration: none;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 20px 0 40px;\n font-weight: 600;\n\n & a {\n text-decoration: none;\n }\n"])));
7
- var item = "\n display: block;\n padding: 5px 10px;\n";
8
- var ItemCurrent = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n background: var(--accent400);\n border-radius: 2px;\n"], ["\n ", "\n background: var(--accent400);\n border-radius: 2px;\n"])), item);
9
- var ItemLink = styled.a(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), item, function (props) { return (props.prev ? "color: var(--grey100);" : ""); });
10
- var DotsSeparator = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: var(--grey100);\n"], ["\n color: var(--grey100);\n"])));
11
- var arrow = "display: flex; font-size: 20px;";
12
- var ItemPrev = styled.a(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), arrow);
13
- var ItemNext = styled.a(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), arrow);
14
- export var KoinePaginationNav = function (_a) {
15
- var total = _a.total, perPage = _a.perPage, _currentPage = _a.currentPage, baseUrl = _a.baseUrl, _b = _a.showOffset, showOffset = _b === void 0 ? 2 : _b, _c = _a.currentUrl, currentUrl = _c === void 0 ? "/" : _c, _d = _a.Link, Link = _d === void 0 ? "a" : _d;
16
- var currentPage = ensureInt(_currentPage);
17
- total = ensureInt(total);
18
- perPage = ensureInt(perPage);
19
- currentPage = currentPage || 1;
20
- baseUrl = baseUrl || currentUrl;
21
- if (total < perPage) {
22
- return null;
23
- }
24
- var firstPage = 1;
25
- var lastPage = Math.ceil(total / perPage);
26
- var prevPage = currentPage - 1 > firstPage ? currentPage - 1 : "";
27
- var nextPage = currentPage + 1 < lastPage ? currentPage + 1 : lastPage;
28
- var prevArrow = currentPage > firstPage;
29
- var nextArrow = currentPage < lastPage;
30
- var pages = [];
31
- for (var i = currentPage - showOffset; i < currentPage; i++) {
32
- if (i > 1) {
33
- pages.push(i);
34
- }
35
- }
36
- pages.push(currentPage);
37
- for (var i = currentPage + 1; i < currentPage + 1 + showOffset; i++) {
38
- if (i < lastPage) {
39
- pages.push(i);
40
- }
41
- }
42
- var prevDots = pages[0] > firstPage + 1;
43
- var nextDots = pages[pages.length - 1] < lastPage - 1;
44
- return (_jsxs(Root, { children: [prevArrow && (_jsx(ItemPrev, { as: Link, href: "".concat(baseUrl, "/").concat(prevPage), children: _jsx(IconArrowLeft, {}) })), firstPage !== currentPage && (_jsx(ItemLink, { as: Link, href: "".concat(baseUrl), prev: true, children: firstPage })), prevDots && _jsx(DotsSeparator, { children: "..." }), pages.map(function (page) {
45
- return page === currentPage ? (_jsx(ItemCurrent, { children: page }, page)) : (_jsx(ItemLink, { as: Link, href: "".concat(baseUrl, "/").concat(page), prev: page < currentPage, next: page > currentPage, children: page }, "pagination-".concat(page)));
46
- }), nextDots && _jsx(DotsSeparator, { children: "..." }), lastPage !== currentPage && (_jsx(ItemLink, { as: Link, href: "".concat(baseUrl, "/").concat(lastPage), next: true, children: lastPage })), nextArrow && (_jsx(ItemNext, { as: Link, href: "".concat(baseUrl, "/").concat(nextPage), children: _jsx(IconArrowRight, {}) }))] }));
47
- };
48
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export type PaginationResultsProps = React.PropsWithChildren<unknown>;
3
- export declare const PaginationResults: ({ children }: PaginationResultsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { AnimatePresence, m } from "framer-motion";
4
- import styled from "styled-components";
5
- var Root = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // overflow: hidden;\n"], ["\n // overflow: hidden;\n"])));
6
- var Inner = styled(m.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject([""], [""])));
7
- export var PaginationResults = function (_a) {
8
- var children = _a.children;
9
- return (_jsx(AnimatePresence, { exitBeforeEnter: true, initial: true, children: _jsx(Root, { children: _jsx(Inner, { initial: { opacity: 0, x: -100 }, animate: { opacity: 1, x: 0 }, exit: { opacity: 0, x: 100 }, transition: { type: "linear", staggerChildren: 0.3 }, children: children }) }) }));
10
- };
11
- var templateObject_1, templateObject_2;
@@ -1,2 +0,0 @@
1
- export * from "./PaginationNav.js";
2
- export * from "./PaginationResults.js";
@@ -1,2 +0,0 @@
1
- export * from "./PaginationNav.js";
2
- export * from "./PaginationResults.js";
package/Pill/Pill.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export type PillProps = object;
2
- export declare const Pill: any;
3
- export declare const PillGreyLight: any;
4
- export declare const PillAccentLight: any;
5
- export declare const PillAccentLightOutlined: any;
package/Pill/Pill.js DELETED
@@ -1,7 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import styled from "styled-components";
3
- export var Pill = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-block;\n padding: 5px 10px;\n margin: 0 0.5em 0.5em 0;\n border-radius: 2px;\n text-decoration: none;\n font-size: 13px;\n font-weight: 600;\n"], ["\n display: inline-block;\n padding: 5px 10px;\n margin: 0 0.5em 0.5em 0;\n border-radius: 2px;\n text-decoration: none;\n font-size: 13px;\n font-weight: 600;\n"])));
4
- export var PillGreyLight = styled(Pill)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: var(--grey800);\n color: var(--grey100);\n\n &:hover {\n color: white;\n background: var(--grey300);\n }\n"], ["\n background: var(--grey800);\n color: var(--grey100);\n\n &:hover {\n color: white;\n background: var(--grey300);\n }\n"])));
5
- export var PillAccentLight = styled(Pill)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: var(--accent400);\n color: var(--grey100);\n\n &:hover {\n color: #fff;\n background: var(--accent300);\n }\n"], ["\n background: var(--accent400);\n color: var(--grey100);\n\n &:hover {\n color: #fff;\n background: var(--accent300);\n }\n"])));
6
- export var PillAccentLightOutlined = styled(Pill)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border: 1px solid var(--accent300);\n color: var(--accent200);\n\n &:hover {\n color: #fff;\n background: var(--accent300);\n }\n"], ["\n border: 1px solid var(--accent300);\n color: var(--accent200);\n\n &:hover {\n color: #fff;\n background: var(--accent300);\n }\n"])));
7
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
package/Pill/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./Pill.js";
package/Pill/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./Pill.js";
package/Polymorphic.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import { CSSProperties } from "styled-components";
2
- import type { Theme } from "../styles/theme.js";
3
- export type ProgressCircularProps = {
4
- size?: CSSProperties["width"];
5
- thickness: number;
6
- color: keyof Theme | NonNullable<CSSProperties["color"]>;
7
- };
8
- export declare const ProgressCircular: ({ size, thickness, color, ...props }: {
9
- [x: string]: any;
10
- size?: string | undefined;
11
- thickness?: number | undefined;
12
- color?: string | undefined;
13
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { __assign, __makeTemplateObject, __rest } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import styled, { keyframes } from "styled-components";
4
- var animationRotation = keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
5
- var animationCircle = keyframes(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"], ["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])));
6
- var ProgressCircularSvg = styled.svg(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n animation: ", " 1.5s linear infinite;\n"], ["\n animation: ", " 1.5s linear infinite;\n"])), animationRotation);
7
- var ProgressCircularCircle = styled.circle(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n animation: ", " 1.5s linear infinite;\n"], ["\n animation: ", " 1.5s linear infinite;\n"])), animationCircle);
8
- export var ProgressCircular = function (_a) {
9
- var _b = _a.size, size = _b === void 0 ? "1em" : _b, _c = _a.thickness, thickness = _c === void 0 ? 1 : _c, _d = _a.color, color = _d === void 0 ? "currentColor" : _d, props = __rest(_a, ["size", "thickness", "color"]);
10
- return (_jsx(ProgressCircularSvg, __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 44 44", style: { width: size, height: size } }, props, { children: _jsx(ProgressCircularCircle, { cx: "22", cy: "22", r: "20", fill: "none", strokeWidth: thickness, style: { stroke: color } }) })));
11
- };
12
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -1,15 +0,0 @@
1
- import { CSSProperties } from "styled-components";
2
- import type { Theme } from "../styles/theme.js";
3
- export type ProgressLinearProps = {
4
- done?: boolean;
5
- height?: CSSProperties["height"];
6
- bg: keyof Theme | NonNullable<CSSProperties["color"]>;
7
- fg: keyof Theme | NonNullable<CSSProperties["color"]>;
8
- };
9
- export declare const ProgressLinear: ({ done, height, bg, fg, ...props }: {
10
- [x: string]: any;
11
- done?: boolean | undefined;
12
- height?: string | undefined;
13
- bg?: string | undefined;
14
- fg?: string | undefined;
15
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- import { __assign, __makeTemplateObject, __rest } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { m } from "framer-motion";
4
- import styled from "styled-components";
5
- var ProgressLinearBg = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n overflow: hidden;\n display: block;\n height: 4px;\n"], ["\n position: relative;\n overflow: hidden;\n display: block;\n height: 4px;\n"])));
6
- var ProgressLinearFg = styled(m.span)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n"], ["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n"])));
7
- export var ProgressLinear = function (_a) {
8
- var _b = _a.done, done = _b === void 0 ? false : _b, _c = _a.height, height = _c === void 0 ? "2px" : _c, _d = _a.bg, bg = _d === void 0 ? "transparent" : _d, _e = _a.fg, fg = _e === void 0 ? "currentColor" : _e, props = __rest(_a, ["done", "height", "bg", "fg"]);
9
- return (_jsx(ProgressLinearBg, __assign({ style: { height: height, background: bg } }, props, { children: _jsx(ProgressLinearFg, { style: { height: height, background: fg }, initial: {
10
- x: "-100%",
11
- }, animate: {
12
- x: done ? "-100%" : "0%",
13
- }, transition: done
14
- ? {}
15
- : {
16
- repeat: Infinity,
17
- repeatType: "reverse",
18
- duration: 2,
19
- } }) })));
20
- };
21
- var templateObject_1, templateObject_2;
@@ -1,4 +0,0 @@
1
- export type ProgressOverlayProps = {
2
- running?: boolean;
3
- };
4
- export declare const ProgressOverlay: ({ running }: ProgressOverlayProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,23 +0,0 @@
1
- import { __makeTemplateObject, __read } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { m } from "framer-motion";
4
- import { useEffect } from "react";
5
- import styled from "styled-components";
6
- import { useHeader } from "../Header/index.js";
7
- import { ProgressCircular } from "./ProgressCircular.js";
8
- import { ProgressLinear } from "./ProgressLinear.js";
9
- var ProgressOverlayWrap = styled(m.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: 10000;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n cursor: wait;\n"], ["\n z-index: 10000;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n cursor: wait;\n"])));
10
- var ProgressOverlayCenterer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--progress-overlay-bg);\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--progress-overlay-bg);\n"])));
11
- export var ProgressOverlay = function (_a) {
12
- var running = _a.running;
13
- var _b = __read(useHeader(), 3), headerHeight = _b[2];
14
- useEffect(function () {
15
- document.body.style.cursor = running ? "wait" : "";
16
- }, [running]);
17
- return (_jsxs(ProgressOverlayWrap, { animate: {
18
- opacity: running ? 1 : 0,
19
- }, initial: { opacity: 0 }, transition: { type: "easeInOut" }, children: [_jsx(ProgressLinear, { bg: "var(--accent400)", fg: "var(--accent300)", done: !running }), _jsx(ProgressOverlayCenterer, { style: {
20
- top: headerHeight + "px",
21
- }, children: _jsx(ProgressCircular, { size: "50px", color: "var(--accent300)" }) })] }));
22
- };
23
- var templateObject_1, templateObject_2;
@@ -1,3 +0,0 @@
1
- export * from "./ProgressCircular.js";
2
- export * from "./ProgressLinear.js";
3
- export * from "./ProgressOverlay.js";
package/Progress/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from "./ProgressCircular.js";
2
- export * from "./ProgressLinear.js";
3
- export * from "./ProgressOverlay.js";