@koine/react 1.1.10 → 1.1.11

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 (627) hide show
  1. package/Alert/Alert.js +12 -8
  2. package/Alert/Alert.mjs +10 -0
  3. package/Alert/index.js +4 -1
  4. package/Alert/index.mjs +1 -0
  5. package/Alert/package.json +2 -2
  6. package/Animations/Reveal.js +18 -14
  7. package/Animations/Reveal.mjs +17 -0
  8. package/Animations/Underline.js +7 -4
  9. package/Animations/Underline.mjs +5 -0
  10. package/Animations/index.js +6 -3
  11. package/Animations/index.mjs +3 -0
  12. package/Animations/package.json +2 -2
  13. package/Animations/useReveal.js +11 -7
  14. package/{node/Animations/useReveal.js → Animations/useReveal.mjs} +7 -11
  15. package/Autocomplete/AutocompleteDownshift.js +4 -1
  16. package/{node/Autocomplete/AutocompleteDownshift.js → Autocomplete/AutocompleteDownshift.mjs} +1 -4
  17. package/Autocomplete/AutocompleteDownshiftMultiselect.js +4 -1
  18. package/{node/Autocomplete/AutocompleteDownshiftMultiselect.js → Autocomplete/AutocompleteDownshiftMultiselect.mjs} +1 -4
  19. package/Autocomplete/AutocompleteMui.js +33 -35
  20. package/{node/Autocomplete/AutocompleteMui.js → Autocomplete/AutocompleteMui.mjs} +35 -33
  21. package/Autocomplete/AutocompleteReach.js +4 -1
  22. package/{node/Autocomplete/AutocompleteReach.js → Autocomplete/AutocompleteReach.mjs} +1 -4
  23. package/Autocomplete/components.js +25 -22
  24. package/Autocomplete/components.mjs +34 -0
  25. package/Autocomplete/helpers.js +11 -6
  26. package/{node/Autocomplete/helpers.js → Autocomplete/helpers.mjs} +6 -11
  27. package/Autocomplete/index.js +5 -1
  28. package/Autocomplete/index.mjs +3 -0
  29. package/Autocomplete/package.json +2 -2
  30. package/Bg/BgColor.js +14 -10
  31. package/Bg/BgColor.mjs +21 -0
  32. package/Bg/BgPhoto.js +13 -9
  33. package/Bg/BgPhoto.mjs +16 -0
  34. package/Bg/BgSvg.js +10 -6
  35. package/Bg/BgSvg.mjs +12 -0
  36. package/Bg/index.js +6 -3
  37. package/Bg/index.mjs +3 -0
  38. package/Bg/package.json +2 -2
  39. package/Breadcrumbs/Breadcrumbs.js +22 -18
  40. package/Breadcrumbs/Breadcrumbs.mjs +27 -0
  41. package/Breadcrumbs/index.js +4 -1
  42. package/Breadcrumbs/index.mjs +1 -0
  43. package/Breadcrumbs/package.json +2 -2
  44. package/Buttons/Button.js +12 -9
  45. package/Buttons/Button.mjs +14 -0
  46. package/Buttons/ButtonComposite.js +20 -16
  47. package/Buttons/ButtonComposite.mjs +28 -0
  48. package/Buttons/ButtonFab.js +8 -5
  49. package/Buttons/ButtonFab.mjs +6 -0
  50. package/Buttons/ButtonLink.js +12 -8
  51. package/Buttons/ButtonLink.mjs +11 -0
  52. package/Buttons/IconButton.js +9 -6
  53. package/Buttons/IconButton.mjs +7 -0
  54. package/Buttons/index.js +8 -5
  55. package/Buttons/index.mjs +5 -0
  56. package/Buttons/package.json +2 -2
  57. package/Calendar/CalendarDaygridCell.js +16 -12
  58. package/{node/Calendar/CalendarDaygridCell.js → Calendar/CalendarDaygridCell.mjs} +12 -16
  59. package/Calendar/CalendarDaygridNav.js +14 -9
  60. package/Calendar/CalendarDaygridNav.mjs +23 -0
  61. package/Calendar/CalendarDaygridTable.js +23 -19
  62. package/{node/Calendar/CalendarDaygridTable.js → Calendar/CalendarDaygridTable.mjs} +19 -23
  63. package/Calendar/CalendarLegend.js +9 -5
  64. package/Calendar/CalendarLegend.mjs +16 -0
  65. package/Calendar/calendar-api-google.js +27 -23
  66. package/{node/Calendar/calendar-api-google.js → Calendar/calendar-api-google.mjs} +23 -27
  67. package/Calendar/index.js +9 -6
  68. package/Calendar/index.mjs +6 -0
  69. package/Calendar/package.json +2 -2
  70. package/Calendar/types.js +2 -1
  71. package/Calendar/types.mjs +1 -0
  72. package/Calendar/useCalendar.js +43 -39
  73. package/{node/Calendar/useCalendar.js → Calendar/useCalendar.mjs} +39 -43
  74. package/Calendar/utils.js +44 -31
  75. package/{node/Calendar/utils.js → Calendar/utils.mjs} +31 -44
  76. package/Carousel/Carousel.js +4 -1
  77. package/{node/Carousel/Carousel.js → Carousel/Carousel.mjs} +1 -4
  78. package/Carousel/CarouselCss.js +17 -13
  79. package/Carousel/CarouselCss.mjs +22 -0
  80. package/Carousel/index.js +4 -1
  81. package/Carousel/index.mjs +1 -0
  82. package/Carousel/package.json +2 -2
  83. package/Collapsable/Collapsable.js +4 -1
  84. package/Collapsable/Collapsable.mjs +1 -0
  85. package/{node/Collapsable/CollapsableReach.js → Collapsable/CollapsableReach.mjs} +0 -0
  86. package/Collapsable/index.js +4 -1
  87. package/Collapsable/index.mjs +2 -0
  88. package/Collapsable/package.json +2 -2
  89. package/Debug/Debug.js +10 -6
  90. package/Debug/Debug.mjs +9 -0
  91. package/Debug/index.js +4 -1
  92. package/Debug/index.mjs +1 -0
  93. package/Debug/package.json +2 -2
  94. package/Details/Details.js +30 -27
  95. package/Details/Details.mjs +63 -0
  96. package/Details/index.js +4 -1
  97. package/Details/index.mjs +1 -0
  98. package/Details/package.json +2 -2
  99. package/Dialog/DialogMui.js +28 -25
  100. package/{node/Dialog/DialogMui.js → Dialog/DialogMui.mjs} +25 -28
  101. package/Dialog/css/bare.js +21 -18
  102. package/Dialog/css/bare.mjs +21 -0
  103. package/Dialog/index.js +5 -1
  104. package/Dialog/index.mjs +1 -0
  105. package/Dialog/m/bare.js +26 -23
  106. package/Dialog/m/bare.mjs +52 -0
  107. package/Dialog/m/basic.js +7 -3
  108. package/{node/Dialog/m/basic.js → Dialog/m/basic.mjs} +3 -7
  109. package/Dialog/m/index.js +7 -3
  110. package/Dialog/m/index.mjs +4 -0
  111. package/Dialog/m/package.json +2 -2
  112. package/Dialog/package.json +2 -2
  113. package/Dialog/sc/bare.js +24 -21
  114. package/Dialog/sc/bare.mjs +43 -0
  115. package/Dialog/sc/framer.js +18 -15
  116. package/Dialog/sc/framer.mjs +16 -0
  117. package/Dialog/sc/framerMaterial.js +18 -15
  118. package/Dialog/sc/framerMaterial.mjs +16 -0
  119. package/Dialog/sc/material.js +22 -19
  120. package/Dialog/sc/material.mjs +21 -0
  121. package/Dialog/tw/bare.js +21 -18
  122. package/Dialog/tw/bare.mjs +42 -0
  123. package/Dialog/tw/elegant.js +21 -18
  124. package/Dialog/tw/elegant.mjs +20 -0
  125. package/Dialog/tw/framer.js +18 -15
  126. package/Dialog/tw/framer.mjs +16 -0
  127. package/Dialog/tw/framerMaterial.js +18 -15
  128. package/Dialog/tw/framerMaterial.mjs +16 -0
  129. package/Dialog/tw/material.js +21 -18
  130. package/Dialog/tw/material.mjs +20 -0
  131. package/Editor/Editor--tiptap.js +20 -15
  132. package/Editor/Editor--tiptap.mjs +26 -0
  133. package/Editor/components.js +14 -9
  134. package/Editor/components.mjs +10 -0
  135. package/Editor/index.js +4 -1
  136. package/Editor/index.mjs +1 -0
  137. package/Editor/package.json +2 -2
  138. package/FaviconTags/FaviconTags.js +8 -4
  139. package/FaviconTags/FaviconTags.mjs +16 -0
  140. package/FaviconTags/index.js +7 -2
  141. package/FaviconTags/index.mjs +2 -0
  142. package/FaviconTags/package.json +2 -2
  143. package/Form/Form.js +27 -23
  144. package/Form/Form.mjs +61 -0
  145. package/Form/index.js +4 -1
  146. package/Form/index.mjs +1 -0
  147. package/Form/package.json +2 -2
  148. package/Form/sc/bare.js +21 -18
  149. package/Form/sc/bare.mjs +20 -0
  150. package/Forms/Checkbox/Checkbox.js +16 -13
  151. package/Forms/Checkbox/Checkbox.mjs +18 -0
  152. package/Forms/Checkbox/index.js +4 -1
  153. package/Forms/Checkbox/index.mjs +1 -0
  154. package/Forms/Checkbox/package.json +2 -2
  155. package/Forms/Feedback/Feedback.js +10 -6
  156. package/Forms/Feedback/Feedback.mjs +9 -0
  157. package/Forms/Feedback/index.js +4 -1
  158. package/Forms/Feedback/index.mjs +1 -0
  159. package/Forms/Feedback/package.json +2 -2
  160. package/Forms/Field/Field.js +14 -10
  161. package/Forms/Field/Field.mjs +31 -0
  162. package/Forms/Field/FieldControl.js +18 -14
  163. package/Forms/Field/FieldControl.mjs +47 -0
  164. package/Forms/Field/FieldHint.js +6 -3
  165. package/Forms/Field/FieldHint.mjs +4 -0
  166. package/Forms/Field/index.js +5 -2
  167. package/Forms/Field/index.mjs +2 -0
  168. package/Forms/Field/package.json +2 -2
  169. package/Forms/Input/Input.js +17 -14
  170. package/Forms/Input/Input.mjs +17 -0
  171. package/Forms/Input/index.js +4 -1
  172. package/Forms/Input/index.mjs +1 -0
  173. package/Forms/Input/package.json +2 -2
  174. package/Forms/InputGroup/InputGroup.js +17 -13
  175. package/Forms/InputGroup/InputGroup.mjs +15 -0
  176. package/Forms/InputGroup/index.js +4 -1
  177. package/Forms/InputGroup/index.mjs +1 -0
  178. package/Forms/InputGroup/package.json +2 -2
  179. package/Forms/Label/Label.js +8 -5
  180. package/Forms/Label/Label.mjs +6 -0
  181. package/Forms/Label/index.js +4 -1
  182. package/Forms/Label/index.mjs +1 -0
  183. package/Forms/Label/package.json +2 -2
  184. package/Forms/Password/Password.js +17 -14
  185. package/Forms/Password/Password.mjs +17 -0
  186. package/Forms/Password/index.js +4 -1
  187. package/Forms/Password/index.mjs +1 -0
  188. package/Forms/Password/package.json +2 -2
  189. package/Forms/Radio/Radio.js +22 -19
  190. package/Forms/Radio/Radio.mjs +25 -0
  191. package/Forms/Radio/index.js +4 -1
  192. package/Forms/Radio/index.mjs +1 -0
  193. package/Forms/Radio/package.json +2 -2
  194. package/Forms/Switch/Switch.js +16 -13
  195. package/Forms/Switch/Switch.mjs +20 -0
  196. package/Forms/Switch/index.js +4 -1
  197. package/Forms/Switch/index.mjs +1 -0
  198. package/Forms/Switch/package.json +2 -2
  199. package/Forms/Textarea/Textarea.js +13 -10
  200. package/Forms/Textarea/Textarea.mjs +12 -0
  201. package/Forms/Textarea/TextareaRich.js +15 -12
  202. package/Forms/Textarea/TextareaRich.mjs +28 -0
  203. package/Forms/Textarea/index.js +5 -2
  204. package/Forms/Textarea/index.mjs +2 -0
  205. package/Forms/Textarea/package.json +2 -2
  206. package/{node/Forms/Toggle/Toggle-tailwind.js → Forms/Toggle/Toggle-tailwind.mjs} +0 -0
  207. package/Forms/Toggle/Toggle.js +26 -21
  208. package/Forms/Toggle/Toggle.mjs +31 -0
  209. package/Forms/Toggle/index.js +4 -1
  210. package/Forms/Toggle/index.mjs +1 -0
  211. package/Forms/Toggle/package.json +2 -2
  212. package/{node/Forms/Toggle/useToggle-tailwind.js → Forms/Toggle/useToggle-tailwind.mjs} +0 -0
  213. package/Forms/Toggle/useToggle.js +19 -15
  214. package/{node/Forms/Toggle/useToggle.js → Forms/Toggle/useToggle.mjs} +15 -19
  215. package/Forms/antispam.js +16 -10
  216. package/{node/Forms/antispam.js → Forms/antispam.mjs} +10 -16
  217. package/Forms/helpers.js +16 -8
  218. package/{node/Forms/helpers.js → Forms/helpers.mjs} +8 -16
  219. package/Forms/index.js +18 -15
  220. package/Forms/index.mjs +16 -0
  221. package/Forms/package.json +2 -2
  222. package/Forms/styles.js +19 -16
  223. package/Forms/styles.mjs +29 -0
  224. package/Gauge/Gauge.js +5 -1
  225. package/{node/Gauge/Gauge.js → Gauge/Gauge.mjs} +1 -5
  226. package/Grid/Grid.js +13 -10
  227. package/Grid/Grid.mjs +53 -0
  228. package/Grid/index.js +4 -1
  229. package/Grid/index.mjs +1 -0
  230. package/Grid/package.json +2 -2
  231. package/Hamburger/Hamburger.js +11 -7
  232. package/Hamburger/Hamburger.mjs +52 -0
  233. package/Hamburger/index.js +4 -1
  234. package/Hamburger/index.mjs +1 -0
  235. package/Hamburger/package.json +2 -2
  236. package/Header/index.js +4 -1
  237. package/Header/index.mjs +1 -0
  238. package/Header/package.json +2 -2
  239. package/Header/useHeader.js +18 -14
  240. package/Header/useHeader.mjs +31 -0
  241. package/Hidden/Hidden.js +6 -3
  242. package/Hidden/Hidden.mjs +10 -0
  243. package/Hidden/index.js +4 -1
  244. package/Hidden/index.mjs +1 -0
  245. package/Hidden/package.json +2 -2
  246. package/Img/index.js +4 -1
  247. package/Img/index.mjs +1 -0
  248. package/Img/package.json +2 -2
  249. package/Img/sc/bare.js +6 -3
  250. package/{node/Img/sc/bare.js → Img/sc/bare.mjs} +3 -6
  251. package/Img/types.js +2 -1
  252. package/Img/types.mjs +1 -0
  253. package/Link/Link.js +6 -3
  254. package/Link/Link.mjs +4 -0
  255. package/Link/LinkBlank.js +15 -11
  256. package/Link/LinkBlank.mjs +17 -0
  257. package/Link/index.js +5 -2
  258. package/Link/index.mjs +2 -0
  259. package/Link/package.json +2 -2
  260. package/Menu/Menu.js +6 -3
  261. package/Menu/Menu.mjs +4 -0
  262. package/Menu/MenuMui.js +29 -26
  263. package/Menu/MenuMui.mjs +75 -0
  264. package/Menu/index.js +4 -1
  265. package/Menu/index.mjs +1 -0
  266. package/Menu/package.json +2 -2
  267. package/MenuItem/MenuItem.js +6 -3
  268. package/MenuItem/MenuItem.mjs +4 -0
  269. package/MenuItem/MenuItemMui.js +13 -10
  270. package/MenuItem/MenuItemMui.mjs +15 -0
  271. package/MenuItem/index.js +4 -1
  272. package/MenuItem/index.mjs +1 -0
  273. package/MenuItem/package.json +2 -2
  274. package/MenuItem/useMenuItem.js +20 -16
  275. package/{node/MenuItem/useMenuItem.js → MenuItem/useMenuItem.mjs} +16 -20
  276. package/Meta/Meta.js +8 -4
  277. package/Meta/Meta.mjs +6 -0
  278. package/Meta/index.js +7 -2
  279. package/Meta/index.mjs +2 -0
  280. package/Meta/package.json +2 -2
  281. package/NoJs/NoJs.js +8 -4
  282. package/NoJs/NoJs.mjs +7 -0
  283. package/NoJs/index.js +7 -2
  284. package/NoJs/index.mjs +2 -0
  285. package/NoJs/package.json +2 -2
  286. package/Pagination/PaginationNav.js +22 -18
  287. package/Pagination/PaginationNav.mjs +61 -0
  288. package/Pagination/PaginationResults.js +12 -8
  289. package/Pagination/PaginationResults.mjs +11 -0
  290. package/Pagination/index.js +5 -2
  291. package/Pagination/index.mjs +2 -0
  292. package/Pagination/package.json +2 -2
  293. package/Pill/Pill.js +9 -6
  294. package/Pill/Pill.mjs +7 -0
  295. package/Pill/index.js +4 -1
  296. package/Pill/index.mjs +1 -0
  297. package/Pill/package.json +2 -2
  298. package/Progress/ProgressCircular.js +14 -10
  299. package/Progress/ProgressCircular.mjs +15 -0
  300. package/Progress/ProgressLinear.js +13 -9
  301. package/Progress/ProgressLinear.mjs +24 -0
  302. package/Progress/ProgressOverlay.js +20 -16
  303. package/Progress/ProgressOverlay.mjs +24 -0
  304. package/Progress/index.js +6 -3
  305. package/Progress/index.mjs +3 -0
  306. package/Progress/package.json +2 -2
  307. package/Rating/Rating.js +26 -21
  308. package/Rating/Rating.mjs +70 -0
  309. package/Rating/index.js +13 -5
  310. package/{node/Rating/index.js → Rating/index.mjs} +5 -13
  311. package/Rating/package.json +2 -2
  312. package/Select/SelectDownshift.js +4 -1
  313. package/{node/Select/SelectDownshift.js → Select/SelectDownshift.mjs} +1 -4
  314. package/Select/components.js +13 -10
  315. package/Select/components.mjs +12 -0
  316. package/Select/index.js +5 -1
  317. package/Select/index.mjs +3 -0
  318. package/Select/package.json +2 -2
  319. package/Sidebar/Sidebar.js +21 -17
  320. package/Sidebar/Sidebar.mjs +23 -0
  321. package/Sidebar/index.js +4 -1
  322. package/Sidebar/index.mjs +1 -0
  323. package/Sidebar/package.json +2 -2
  324. package/Spacing/Spacing.js +15 -11
  325. package/Spacing/Spacing.mjs +45 -0
  326. package/Spacing/index.js +4 -1
  327. package/Spacing/index.mjs +1 -0
  328. package/Spacing/package.json +2 -2
  329. package/Sticky/Sticky.js +4 -1
  330. package/{node/Sticky/Sticky.js → Sticky/Sticky.mjs} +1 -4
  331. package/Sticky/StickyCss.js +9 -5
  332. package/Sticky/StickyCss.mjs +6 -0
  333. package/Sticky/index.js +4 -1
  334. package/Sticky/index.mjs +1 -0
  335. package/Sticky/package.json +2 -2
  336. package/Tabs/TabsMui.js +28 -25
  337. package/Tabs/TabsMui.mjs +46 -0
  338. package/Tabs/index.js +4 -1
  339. package/Tabs/index.mjs +1 -0
  340. package/Tabs/package.json +2 -2
  341. package/{node/Tabs/sc/bare.js → Tabs/sc/bare.mjs} +0 -0
  342. package/Tabs/tw/bare.js +17 -14
  343. package/Tabs/tw/bare.mjs +17 -0
  344. package/Tabs/tw/material.js +17 -14
  345. package/Tabs/tw/material.mjs +18 -0
  346. package/Tabs/useTabs.js +12 -8
  347. package/{node/Tabs/useTabs.js → Tabs/useTabs.mjs} +8 -12
  348. package/Typography/CopyPasteVisible.js +6 -3
  349. package/Typography/CopyPasteVisible.mjs +4 -0
  350. package/Typography/Native.js +16 -13
  351. package/Typography/Native.mjs +14 -0
  352. package/Typography/ReadMore.js +28 -24
  353. package/Typography/ReadMore.mjs +43 -0
  354. package/Typography/TextLoop.js +21 -16
  355. package/{node/Typography/TextLoop.js → Typography/TextLoop.mjs} +16 -21
  356. package/Typography/TypeStairs.js +11 -8
  357. package/{node/Typography/TypeStairs.js → Typography/TypeStairs.mjs} +8 -11
  358. package/Typography/index.js +8 -5
  359. package/Typography/index.mjs +5 -0
  360. package/Typography/package.json +2 -2
  361. package/css/index.js +7 -2
  362. package/{node/tw/index.js → css/index.mjs} +2 -7
  363. package/css/package.json +2 -2
  364. package/helpers/classed.js +10 -6
  365. package/{node/helpers/classed.js → helpers/classed.mjs} +6 -10
  366. package/helpers/createUseMediaQueryWidth.js +16 -11
  367. package/{node/helpers/createUseMediaQueryWidth.js → helpers/createUseMediaQueryWidth.mjs} +11 -16
  368. package/helpers/extend-component.js +10 -6
  369. package/helpers/extend-component.mjs +13 -0
  370. package/helpers/index.js +7 -4
  371. package/helpers/index.mjs +4 -0
  372. package/helpers/mergeRefs.js +6 -2
  373. package/{node/helpers/mergeRefs.js → helpers/mergeRefs.mjs} +2 -6
  374. package/helpers/package.json +2 -2
  375. package/hooks/index.js +24 -21
  376. package/hooks/index.mjs +22 -0
  377. package/hooks/package.json +2 -2
  378. package/hooks/types.js +2 -1
  379. package/hooks/types.mjs +1 -0
  380. package/hooks/useAsyncFn.js +14 -10
  381. package/{node/hooks/useAsyncFn.js → hooks/useAsyncFn.mjs} +10 -14
  382. package/hooks/useDateLocale.js +14 -12
  383. package/{node/hooks/useDateLocale.js → hooks/useDateLocale.mjs} +10 -17
  384. package/hooks/useEffectOnce.js +8 -4
  385. package/hooks/useEffectOnce.mjs +9 -0
  386. package/hooks/useFirstMountState.js +8 -4
  387. package/hooks/useFirstMountState.mjs +13 -0
  388. package/hooks/useFixedOffset.js +21 -16
  389. package/hooks/useFixedOffset.mjs +57 -0
  390. package/hooks/useFocus.js +8 -4
  391. package/hooks/useFocus.mjs +12 -0
  392. package/hooks/useInterval.js +14 -10
  393. package/{node/hooks/useInterval.js → hooks/useInterval.mjs} +10 -14
  394. package/hooks/useIsomorphicLayoutEffect.js +10 -6
  395. package/hooks/useIsomorphicLayoutEffect.mjs +9 -0
  396. package/hooks/useKeyUp.js +12 -8
  397. package/{node/hooks/useKeyUp.js → hooks/useKeyUp.mjs} +8 -12
  398. package/hooks/useMeasure.js +30 -26
  399. package/{node/hooks/useMeasure.js → hooks/useMeasure.mjs} +26 -30
  400. package/hooks/useMount.js +8 -4
  401. package/hooks/useMount.mjs +10 -0
  402. package/hooks/useMountedState.js +10 -6
  403. package/hooks/useMountedState.mjs +16 -0
  404. package/hooks/useNavigateAway.js +13 -8
  405. package/{node/hooks/useNavigateAway.js → hooks/useNavigateAway.mjs} +8 -13
  406. package/hooks/usePrevious.js +8 -4
  407. package/hooks/usePrevious.mjs +12 -0
  408. package/hooks/usePreviousRef.js +9 -5
  409. package/hooks/usePreviousRef.mjs +9 -0
  410. package/hooks/useScrollPosition.js +16 -11
  411. package/{node/hooks/useScrollPosition.js → hooks/useScrollPosition.mjs} +11 -16
  412. package/hooks/useScrollThreshold.js +15 -10
  413. package/hooks/useScrollThreshold.mjs +28 -0
  414. package/hooks/useScrollTo.js +11 -6
  415. package/hooks/useScrollTo.mjs +22 -0
  416. package/hooks/useSmoothScroll.js +18 -13
  417. package/hooks/useSmoothScroll.mjs +39 -0
  418. package/hooks/useTraceUpdate.js +9 -5
  419. package/{node/hooks/useTraceUpdate.js → hooks/useTraceUpdate.mjs} +5 -9
  420. package/hooks/useUpdateEffect.js +10 -6
  421. package/hooks/useUpdateEffect.mjs +15 -0
  422. package/hooks/useWindowSize.js +15 -10
  423. package/hooks/useWindowSize.mjs +29 -0
  424. package/index.js +4 -1
  425. package/{node/index.js → index.mjs} +1 -4
  426. package/m/MotionProvider.js +10 -6
  427. package/{node/m/MotionProvider.js → m/MotionProvider.mjs} +6 -10
  428. package/m/index.js +4 -1
  429. package/m/index.mjs +6 -0
  430. package/m/lite.js +4 -2
  431. package/m/lite.mjs +2 -0
  432. package/m/max.js +4 -2
  433. package/m/max.mjs +2 -0
  434. package/m/package.json +2 -2
  435. package/package.json +5 -4
  436. package/sc/index.js +36 -30
  437. package/sc/index.mjs +31 -0
  438. package/sc/package.json +2 -2
  439. package/scm/index.js +34 -29
  440. package/scm/index.mjs +31 -0
  441. package/scm/package.json +2 -2
  442. package/shared/index.js +11 -8
  443. package/shared/index.mjs +8 -0
  444. package/shared/package.json +2 -2
  445. package/styles/Body.js +7 -4
  446. package/styles/Body.mjs +13 -0
  447. package/styles/Global.js +7 -4
  448. package/styles/Global.mjs +18 -0
  449. package/styles/index.js +10 -7
  450. package/styles/index.mjs +7 -0
  451. package/styles/media.js +13 -8
  452. package/{node/styles/media.js → styles/media.mjs} +8 -13
  453. package/styles/package.json +2 -2
  454. package/styles/spacing.js +11 -4
  455. package/{node/styles/spacing.js → styles/spacing.mjs} +4 -11
  456. package/styles/styled.js +11 -7
  457. package/styles/styled.mjs +13 -0
  458. package/styles/theme--vanilla.js +32 -26
  459. package/styles/theme--vanilla.mjs +58 -0
  460. package/styles/theme.js +12 -8
  461. package/{node/styles/theme.js → styles/theme.mjs} +8 -12
  462. package/tw/index.js +7 -2
  463. package/{node/css/index.js → tw/index.mjs} +2 -7
  464. package/tw/package.json +2 -2
  465. package/twm/index.js +7 -2
  466. package/{node/twm/index.js → twm/index.mjs} +2 -7
  467. package/twm/package.json +2 -2
  468. package/types.js +2 -1
  469. package/types.mjs +1 -0
  470. package/node/Alert/Alert.js +0 -14
  471. package/node/Alert/index.js +0 -4
  472. package/node/Animations/Reveal.js +0 -21
  473. package/node/Animations/Underline.js +0 -8
  474. package/node/Animations/index.js +0 -6
  475. package/node/Autocomplete/components.js +0 -37
  476. package/node/Autocomplete/index.js +0 -7
  477. package/node/Bg/BgColor.js +0 -25
  478. package/node/Bg/BgPhoto.js +0 -20
  479. package/node/Bg/BgSvg.js +0 -16
  480. package/node/Bg/index.js +0 -6
  481. package/node/Breadcrumbs/Breadcrumbs.js +0 -31
  482. package/node/Breadcrumbs/index.js +0 -4
  483. package/node/Buttons/Button.js +0 -17
  484. package/node/Buttons/ButtonComposite.js +0 -32
  485. package/node/Buttons/ButtonFab.js +0 -9
  486. package/node/Buttons/ButtonLink.js +0 -15
  487. package/node/Buttons/IconButton.js +0 -10
  488. package/node/Buttons/index.js +0 -8
  489. package/node/Calendar/CalendarDaygridNav.js +0 -28
  490. package/node/Calendar/CalendarLegend.js +0 -20
  491. package/node/Calendar/index.js +0 -9
  492. package/node/Calendar/types.js +0 -2
  493. package/node/Carousel/CarouselCss.js +0 -26
  494. package/node/Carousel/index.js +0 -4
  495. package/node/Collapsable/Collapsable.js +0 -4
  496. package/node/Collapsable/index.js +0 -5
  497. package/node/Debug/Debug.js +0 -13
  498. package/node/Debug/index.js +0 -4
  499. package/node/Details/Details.js +0 -66
  500. package/node/Details/index.js +0 -4
  501. package/node/Dialog/css/bare.js +0 -24
  502. package/node/Dialog/index.js +0 -5
  503. package/node/Dialog/m/bare.js +0 -55
  504. package/node/Dialog/m/index.js +0 -8
  505. package/node/Dialog/sc/bare.js +0 -46
  506. package/node/Dialog/sc/framer.js +0 -19
  507. package/node/Dialog/sc/framerMaterial.js +0 -19
  508. package/node/Dialog/sc/material.js +0 -24
  509. package/node/Dialog/tw/bare.js +0 -45
  510. package/node/Dialog/tw/elegant.js +0 -23
  511. package/node/Dialog/tw/framer.js +0 -19
  512. package/node/Dialog/tw/framerMaterial.js +0 -19
  513. package/node/Dialog/tw/material.js +0 -23
  514. package/node/Editor/Editor--tiptap.js +0 -31
  515. package/node/Editor/components.js +0 -15
  516. package/node/Editor/index.js +0 -4
  517. package/node/FaviconTags/FaviconTags.js +0 -20
  518. package/node/FaviconTags/index.js +0 -7
  519. package/node/Form/Form.js +0 -65
  520. package/node/Form/index.js +0 -4
  521. package/node/Form/sc/bare.js +0 -23
  522. package/node/Forms/Checkbox/Checkbox.js +0 -21
  523. package/node/Forms/Checkbox/index.js +0 -4
  524. package/node/Forms/Feedback/Feedback.js +0 -13
  525. package/node/Forms/Feedback/index.js +0 -4
  526. package/node/Forms/Field/Field.js +0 -35
  527. package/node/Forms/Field/FieldControl.js +0 -51
  528. package/node/Forms/Field/FieldHint.js +0 -7
  529. package/node/Forms/Field/index.js +0 -5
  530. package/node/Forms/Input/Input.js +0 -20
  531. package/node/Forms/Input/index.js +0 -4
  532. package/node/Forms/InputGroup/InputGroup.js +0 -19
  533. package/node/Forms/InputGroup/index.js +0 -4
  534. package/node/Forms/Label/Label.js +0 -9
  535. package/node/Forms/Label/index.js +0 -4
  536. package/node/Forms/Password/Password.js +0 -20
  537. package/node/Forms/Password/index.js +0 -4
  538. package/node/Forms/Radio/Radio.js +0 -28
  539. package/node/Forms/Radio/index.js +0 -4
  540. package/node/Forms/Switch/Switch.js +0 -23
  541. package/node/Forms/Switch/index.js +0 -4
  542. package/node/Forms/Textarea/Textarea.js +0 -15
  543. package/node/Forms/Textarea/TextareaRich.js +0 -31
  544. package/node/Forms/Textarea/index.js +0 -5
  545. package/node/Forms/Toggle/Toggle.js +0 -36
  546. package/node/Forms/Toggle/index.js +0 -4
  547. package/node/Forms/index.js +0 -19
  548. package/node/Forms/styles.js +0 -32
  549. package/node/Grid/Grid.js +0 -56
  550. package/node/Grid/index.js +0 -4
  551. package/node/Hamburger/Hamburger.js +0 -56
  552. package/node/Hamburger/index.js +0 -4
  553. package/node/Header/index.js +0 -4
  554. package/node/Header/useHeader.js +0 -35
  555. package/node/Hidden/Hidden.js +0 -13
  556. package/node/Hidden/index.js +0 -4
  557. package/node/Img/index.js +0 -4
  558. package/node/Img/types.js +0 -2
  559. package/node/Link/Link.js +0 -7
  560. package/node/Link/LinkBlank.js +0 -21
  561. package/node/Link/index.js +0 -5
  562. package/node/Menu/Menu.js +0 -7
  563. package/node/Menu/MenuMui.js +0 -78
  564. package/node/Menu/index.js +0 -4
  565. package/node/MenuItem/MenuItem.js +0 -7
  566. package/node/MenuItem/MenuItemMui.js +0 -18
  567. package/node/MenuItem/index.js +0 -4
  568. package/node/Meta/Meta.js +0 -10
  569. package/node/Meta/index.js +0 -7
  570. package/node/NoJs/NoJs.js +0 -11
  571. package/node/NoJs/index.js +0 -7
  572. package/node/Pagination/PaginationNav.js +0 -65
  573. package/node/Pagination/PaginationResults.js +0 -15
  574. package/node/Pagination/index.js +0 -5
  575. package/node/Pill/Pill.js +0 -10
  576. package/node/Pill/index.js +0 -4
  577. package/node/Progress/ProgressCircular.js +0 -19
  578. package/node/Progress/ProgressLinear.js +0 -28
  579. package/node/Progress/ProgressOverlay.js +0 -28
  580. package/node/Progress/index.js +0 -6
  581. package/node/Rating/Rating.js +0 -75
  582. package/node/Select/components.js +0 -15
  583. package/node/Select/index.js +0 -7
  584. package/node/Sidebar/Sidebar.js +0 -27
  585. package/node/Sidebar/index.js +0 -4
  586. package/node/Spacing/Spacing.js +0 -49
  587. package/node/Spacing/index.js +0 -4
  588. package/node/Sticky/StickyCss.js +0 -10
  589. package/node/Sticky/index.js +0 -4
  590. package/node/Tabs/TabsMui.js +0 -49
  591. package/node/Tabs/index.js +0 -4
  592. package/node/Tabs/tw/bare.js +0 -20
  593. package/node/Tabs/tw/material.js +0 -21
  594. package/node/Typography/CopyPasteVisible.js +0 -7
  595. package/node/Typography/Native.js +0 -17
  596. package/node/Typography/ReadMore.js +0 -47
  597. package/node/Typography/index.js +0 -8
  598. package/node/helpers/extend-component.js +0 -17
  599. package/node/helpers/index.js +0 -7
  600. package/node/hooks/index.js +0 -25
  601. package/node/hooks/types.js +0 -2
  602. package/node/hooks/useEffectOnce.js +0 -13
  603. package/node/hooks/useFirstMountState.js +0 -17
  604. package/node/hooks/useFixedOffset.js +0 -62
  605. package/node/hooks/useFocus.js +0 -16
  606. package/node/hooks/useIsomorphicLayoutEffect.js +0 -13
  607. package/node/hooks/useMount.js +0 -14
  608. package/node/hooks/useMountedState.js +0 -20
  609. package/node/hooks/usePrevious.js +0 -16
  610. package/node/hooks/usePreviousRef.js +0 -13
  611. package/node/hooks/useScrollThreshold.js +0 -33
  612. package/node/hooks/useScrollTo.js +0 -27
  613. package/node/hooks/useSmoothScroll.js +0 -44
  614. package/node/hooks/useUpdateEffect.js +0 -19
  615. package/node/hooks/useWindowSize.js +0 -34
  616. package/node/m/index.js +0 -9
  617. package/node/m/lite.js +0 -4
  618. package/node/m/max.js +0 -4
  619. package/node/sc/index.js +0 -37
  620. package/node/scm/index.js +0 -36
  621. package/node/shared/index.js +0 -11
  622. package/node/styles/Body.js +0 -16
  623. package/node/styles/Global.js +0 -21
  624. package/node/styles/index.js +0 -10
  625. package/node/styles/styled.js +0 -17
  626. package/node/styles/theme--vanilla.js +0 -64
  627. package/node/types.js +0 -2
@@ -1,15 +1,18 @@
1
- import { __assign, __rest } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { forwardRef } from "react";
4
- import { useMenuItem } from "@mui/base/MenuItemUnstyled";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MenuItem = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var jsx_runtime_1 = require("react/jsx-runtime");
6
+ var react_1 = require("react");
7
+ var MenuItemUnstyled_1 = require("@mui/base/MenuItemUnstyled");
5
8
  // import { useMenuItem } from "./useMenuItem";
6
- import clsx from "@koine/utils/clsx";
7
- export var MenuItem = forwardRef(function MenuItem(props, ref) {
8
- var _a = props.as, As = _a === void 0 ? "button" : _a, children = props.children, className = props.className, disabledProp = props.disabled, other = __rest(props, ["as", "children", "className", "disabled"]);
9
- var _b = useMenuItem({
9
+ var clsx_1 = tslib_1.__importDefault(require("@koine/utils/clsx"));
10
+ exports.MenuItem = (0, react_1.forwardRef)(function MenuItem(props, ref) {
11
+ var _a = props.as, As = _a === void 0 ? "button" : _a, children = props.children, className = props.className, disabledProp = props.disabled, other = tslib_1.__rest(props, ["as", "children", "className", "disabled"]);
12
+ var _b = (0, MenuItemUnstyled_1.useMenuItem)({
10
13
  ref: ref,
11
14
  disabled: disabledProp,
12
15
  }), getRootProps = _b.getRootProps, disabled = _b.disabled, focusVisible = _b.focusVisible;
13
- return (_jsx(As, __assign({ className: clsx(focusVisible && "", disabled && "", className) }, getRootProps(other), { children: children })));
16
+ return ((0, jsx_runtime_1.jsx)(As, tslib_1.__assign({ className: (0, clsx_1.default)(focusVisible && "", disabled && "", className) }, getRootProps(other), { children: children })));
14
17
  });
15
- export default MenuItem;
18
+ exports.default = exports.MenuItem;
@@ -0,0 +1,15 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { forwardRef } from "react";
4
+ import { useMenuItem } from "@mui/base/MenuItemUnstyled";
5
+ // import { useMenuItem } from "./useMenuItem";
6
+ import clsx from "@koine/utils/clsx";
7
+ export var MenuItem = forwardRef(function MenuItem(props, ref) {
8
+ var _a = props.as, As = _a === void 0 ? "button" : _a, children = props.children, className = props.className, disabledProp = props.disabled, other = __rest(props, ["as", "children", "className", "disabled"]);
9
+ var _b = useMenuItem({
10
+ ref: ref,
11
+ disabled: disabledProp,
12
+ }), getRootProps = _b.getRootProps, disabled = _b.disabled, focusVisible = _b.focusVisible;
13
+ return (_jsx(As, __assign({ className: clsx(focusVisible && "", disabled && "", className) }, getRootProps(other), { children: children })));
14
+ });
15
+ export default MenuItem;
package/MenuItem/index.js CHANGED
@@ -1 +1,4 @@
1
- export * from "./MenuItem";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./MenuItem"), exports);
@@ -0,0 +1 @@
1
+ export * from "./MenuItem";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sideEffects": false,
3
- "module": "./index.js",
4
- "main": "../node/MenuItem/index.js",
3
+ "module": "./index.mjs",
4
+ "main": "./index.js",
5
5
  "types": "./index.d.ts"
6
6
  }
@@ -1,20 +1,23 @@
1
- import { __assign } from "tslib";
2
- import { useCallback, useContext, useEffect, useId, useRef, useState, } from "react";
3
- import { unstable_useForkRef as useForkRef } from "@mui/utils";
4
- import { MenuUnstyledContext } from "@mui/base/MenuUnstyled";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useMenuItem = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var react_1 = require("react");
6
+ var utils_1 = require("@mui/utils");
7
+ var MenuUnstyled_1 = require("@mui/base/MenuUnstyled");
5
8
  // import { unstable_useIsFocusVisible as useIsFocusVisible } from "@mui/utils";
6
- export function useMenuItem(props) {
9
+ function useMenuItem(props) {
7
10
  var _a;
8
11
  var _b = props.disabled, disabled = _b === void 0 ? false : _b, ref = props.ref, label = props.label;
9
- var id = useId();
10
- var menuContext = useContext(MenuUnstyledContext);
11
- var itemRef = useRef(null);
12
- var handleRef = useForkRef(itemRef, ref);
12
+ var id = (0, react_1.useId)();
13
+ var menuContext = (0, react_1.useContext)(MenuUnstyled_1.MenuUnstyledContext);
14
+ var itemRef = (0, react_1.useRef)(null);
15
+ var handleRef = (0, utils_1.unstable_useForkRef)(itemRef, ref);
13
16
  if (menuContext === null) {
14
17
  throw new Error("MenuItemUnstyled must be used within a MenuUnstyled");
15
18
  }
16
19
  var registerItem = menuContext.registerItem, unregisterItem = menuContext.unregisterItem, open = menuContext.open;
17
- useEffect(function () {
20
+ (0, react_1.useEffect)(function () {
18
21
  registerItem(id, { disabled: disabled, id: id, ref: itemRef, label: label });
19
22
  return function () { return unregisterItem(id); };
20
23
  }, [id, registerItem, unregisterItem, disabled, ref, label]);
@@ -24,26 +27,26 @@ export function useMenuItem(props) {
24
27
  // ref: handleRef,
25
28
  // });
26
29
  // Ensure the menu item is focused when highlighted
27
- var _c = useState(false), focusRequested = _c[0], requestFocus = _c[1];
28
- var focusIfRequested = useCallback(function () {
30
+ var _c = (0, react_1.useState)(false), focusRequested = _c[0], requestFocus = _c[1];
31
+ var focusIfRequested = (0, react_1.useCallback)(function () {
29
32
  if (focusRequested && itemRef.current != null) {
30
33
  itemRef.current.focus();
31
34
  requestFocus(false);
32
35
  }
33
36
  }, [focusRequested]);
34
- useEffect(function () {
37
+ (0, react_1.useEffect)(function () {
35
38
  focusIfRequested();
36
39
  });
37
40
  // useDebugValue({ id, disabled, label });
38
41
  var itemState = menuContext.getItemState(id !== null && id !== void 0 ? id : "");
39
42
  var highlighted = (itemState !== null && itemState !== void 0 ? itemState : { highlighted: false }).highlighted;
40
- useEffect(function () {
43
+ (0, react_1.useEffect)(function () {
41
44
  requestFocus(highlighted && open);
42
45
  }, [highlighted, open]);
43
46
  return {
44
47
  getRootProps: function (other) {
45
48
  var optionProps = menuContext.getItemProps(id, other);
46
- return __assign(__assign({}, other), {
49
+ return tslib_1.__assign(tslib_1.__assign({}, other), {
47
50
  // ...getButtonProps(other),
48
51
  // @ts-expect-error type from @mui/base is not specific
49
52
  tabIndex: optionProps.tabIndex,
@@ -55,4 +58,5 @@ export function useMenuItem(props) {
55
58
  ref: handleRef,
56
59
  };
57
60
  }
58
- export default useMenuItem;
61
+ exports.useMenuItem = useMenuItem;
62
+ exports.default = useMenuItem;
@@ -1,23 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useMenuItem = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = require("react");
6
- var utils_1 = require("@mui/utils");
7
- var MenuUnstyled_1 = require("@mui/base/MenuUnstyled");
1
+ import { __assign } from "tslib";
2
+ import { useCallback, useContext, useEffect, useId, useRef, useState, } from "react";
3
+ import { unstable_useForkRef as useForkRef } from "@mui/utils";
4
+ import { MenuUnstyledContext } from "@mui/base/MenuUnstyled";
8
5
  // import { unstable_useIsFocusVisible as useIsFocusVisible } from "@mui/utils";
9
- function useMenuItem(props) {
6
+ export function useMenuItem(props) {
10
7
  var _a;
11
8
  var _b = props.disabled, disabled = _b === void 0 ? false : _b, ref = props.ref, label = props.label;
12
- var id = (0, react_1.useId)();
13
- var menuContext = (0, react_1.useContext)(MenuUnstyled_1.MenuUnstyledContext);
14
- var itemRef = (0, react_1.useRef)(null);
15
- var handleRef = (0, utils_1.unstable_useForkRef)(itemRef, ref);
9
+ var id = useId();
10
+ var menuContext = useContext(MenuUnstyledContext);
11
+ var itemRef = useRef(null);
12
+ var handleRef = useForkRef(itemRef, ref);
16
13
  if (menuContext === null) {
17
14
  throw new Error("MenuItemUnstyled must be used within a MenuUnstyled");
18
15
  }
19
16
  var registerItem = menuContext.registerItem, unregisterItem = menuContext.unregisterItem, open = menuContext.open;
20
- (0, react_1.useEffect)(function () {
17
+ useEffect(function () {
21
18
  registerItem(id, { disabled: disabled, id: id, ref: itemRef, label: label });
22
19
  return function () { return unregisterItem(id); };
23
20
  }, [id, registerItem, unregisterItem, disabled, ref, label]);
@@ -27,26 +24,26 @@ function useMenuItem(props) {
27
24
  // ref: handleRef,
28
25
  // });
29
26
  // Ensure the menu item is focused when highlighted
30
- var _c = (0, react_1.useState)(false), focusRequested = _c[0], requestFocus = _c[1];
31
- var focusIfRequested = (0, react_1.useCallback)(function () {
27
+ var _c = useState(false), focusRequested = _c[0], requestFocus = _c[1];
28
+ var focusIfRequested = useCallback(function () {
32
29
  if (focusRequested && itemRef.current != null) {
33
30
  itemRef.current.focus();
34
31
  requestFocus(false);
35
32
  }
36
33
  }, [focusRequested]);
37
- (0, react_1.useEffect)(function () {
34
+ useEffect(function () {
38
35
  focusIfRequested();
39
36
  });
40
37
  // useDebugValue({ id, disabled, label });
41
38
  var itemState = menuContext.getItemState(id !== null && id !== void 0 ? id : "");
42
39
  var highlighted = (itemState !== null && itemState !== void 0 ? itemState : { highlighted: false }).highlighted;
43
- (0, react_1.useEffect)(function () {
40
+ useEffect(function () {
44
41
  requestFocus(highlighted && open);
45
42
  }, [highlighted, open]);
46
43
  return {
47
44
  getRootProps: function (other) {
48
45
  var optionProps = menuContext.getItemProps(id, other);
49
- return tslib_1.__assign(tslib_1.__assign({}, other), {
46
+ return __assign(__assign({}, other), {
50
47
  // ...getButtonProps(other),
51
48
  // @ts-expect-error type from @mui/base is not specific
52
49
  tabIndex: optionProps.tabIndex,
@@ -58,5 +55,4 @@ function useMenuItem(props) {
58
55
  ref: handleRef,
59
56
  };
60
57
  }
61
- exports.useMenuItem = useMenuItem;
62
- exports.default = useMenuItem;
58
+ export default useMenuItem;
package/Meta/Meta.js CHANGED
@@ -1,6 +1,10 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- export var Meta = function (_a) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Meta = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var Meta = function (_a) {
3
6
  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") }));
7
+ return ((0, jsx_runtime_1.jsx)("meta", { name: "viewport", content: "width=device-width, initial-scale=1, maximum-scale=1".concat(zoom ? "" : ", user-scalable=0") }));
5
8
  };
6
- export default Meta;
9
+ exports.Meta = Meta;
10
+ exports.default = exports.Meta;
package/Meta/Meta.mjs ADDED
@@ -0,0 +1,6 @@
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/Meta/index.js CHANGED
@@ -1,2 +1,7 @@
1
- export * from "./Meta";
2
- export { Meta as default } from "./Meta";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = void 0;
4
+ var tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./Meta"), exports);
6
+ var Meta_1 = require("./Meta");
7
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return Meta_1.Meta; } });
package/Meta/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./Meta";
2
+ export { Meta as default } from "./Meta";
package/Meta/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sideEffects": false,
3
- "module": "./index.js",
4
- "main": "../node/Meta/index.js",
3
+ "module": "./index.mjs",
4
+ "main": "./index.js",
5
5
  "types": "./index.d.ts"
6
6
  }
package/NoJs/NoJs.js CHANGED
@@ -1,7 +1,11 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- export var NoJs = function (_props) {
3
- return (_jsx("script", { id: "no-js", dangerouslySetInnerHTML: {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoJs = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var NoJs = function (_props) {
6
+ return ((0, jsx_runtime_1.jsx)("script", { id: "no-js", dangerouslySetInnerHTML: {
4
7
  __html: "document.querySelector(\"html\").className=document.querySelector(\"html\").className.replace(/no-js/,\"\") + \"js\";",
5
8
  } }));
6
9
  };
7
- export default NoJs;
10
+ exports.NoJs = NoJs;
11
+ exports.default = exports.NoJs;
package/NoJs/NoJs.mjs ADDED
@@ -0,0 +1,7 @@
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;
package/NoJs/index.js CHANGED
@@ -1,2 +1,7 @@
1
- export * from "./NoJs";
2
- export { NoJs as default } from "./NoJs";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = void 0;
4
+ var tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./NoJs"), exports);
6
+ var NoJs_1 = require("./NoJs");
7
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return NoJs_1.NoJs; } });
package/NoJs/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./NoJs";
2
+ export { NoJs as default } from "./NoJs";
package/NoJs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sideEffects": false,
3
- "module": "./index.js",
4
- "main": "../node/NoJs/index.js",
3
+ "module": "./index.mjs",
4
+ "main": "./index.js",
5
5
  "types": "./index.d.ts"
6
6
  }
@@ -1,16 +1,19 @@
1
- import { __assign, __makeTemplateObject } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import styled from "styled-components";
4
- import { CgArrowRightR as IconArrowRight, CgArrowLeftR as IconArrowLeft, } from "react-icons/cg";
5
- import ensureInt from "@koine/utils/ensureInt";
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"])));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KoinePaginationNav = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var jsx_runtime_1 = require("react/jsx-runtime");
6
+ var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
7
+ var cg_1 = require("react-icons/cg");
8
+ var ensureInt_1 = tslib_1.__importDefault(require("@koine/utils/ensureInt"));
9
+ var Root = styled_components_1.default.nav(templateObject_1 || (templateObject_1 = tslib_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
10
  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 ItemCurrent = styled_components_1.default.span(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n ", "\n background: var(--accent400);\n border-radius: 2px;\n"], ["\n ", "\n background: var(--accent400);\n border-radius: 2px;\n"])), item);
12
+ var ItemLink = styled_components_1.default.a(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), item, function (props) { return (props.prev ? "color: var(--grey100);" : ""); });
13
+ var DotsSeparator = styled_components_1.default.span(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n color: var(--grey100);\n"], ["\n color: var(--grey100);\n"])));
11
14
  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);
15
+ var ItemPrev = styled_components_1.default.a(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), arrow);
16
+ var ItemNext = styled_components_1.default.a(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), arrow);
14
17
  /*
15
18
  * Possible outcomes:
16
19
  * [1] 2 3 ... 78 >
@@ -19,11 +22,11 @@ var ItemNext = styled.a(templateObject_6 || (templateObject_6 = __makeTemplateOb
19
22
  * < 1 ... 75 76 [77] 78 >
20
23
  * < 1 ... 76 77 [78]
21
24
  */
22
- export var KoinePaginationNav = function (_a) {
25
+ var KoinePaginationNav = function (_a) {
23
26
  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;
24
- total = ensureInt(total);
25
- currentPage = ensureInt(currentPage);
26
- perPage = ensureInt(perPage);
27
+ total = (0, ensureInt_1.default)(total);
28
+ currentPage = (0, ensureInt_1.default)(currentPage);
29
+ perPage = (0, ensureInt_1.default)(perPage);
27
30
  // page 0 means 1
28
31
  currentPage = currentPage || 1;
29
32
  baseUrl = baseUrl || currentUrl;
@@ -54,8 +57,9 @@ export var KoinePaginationNav = function (_a) {
54
57
  }
55
58
  var prevDots = pages[0] > firstPage + 1;
56
59
  var nextDots = pages[pages.length - 1] < lastPage - 1;
57
- return (_jsxs(Root, { children: [prevArrow && (_jsx(ItemPrev, __assign({ as: Link, href: "".concat(baseUrl, "/").concat(prevPage) }, { children: _jsx(IconArrowLeft, {}) }))), firstPage !== currentPage && (_jsx(ItemLink, __assign({ as: Link, href: "".concat(baseUrl), prev: true }, { children: firstPage }))), prevDots && _jsx(DotsSeparator, { children: "..." }), pages.map(function (page) {
58
- return page === currentPage ? (_jsx(ItemCurrent, { children: page }, page)) : (_jsx(ItemLink, __assign({ as: Link, href: "".concat(baseUrl, "/").concat(page), prev: page < currentPage, next: page > currentPage }, { children: page }), "pagination-".concat(page)));
59
- }), nextDots && _jsx(DotsSeparator, { children: "..." }), lastPage !== currentPage && (_jsx(ItemLink, __assign({ as: Link, href: "".concat(baseUrl, "/").concat(lastPage), next: true }, { children: lastPage }))), nextArrow && (_jsx(ItemNext, __assign({ as: Link, href: "".concat(baseUrl, "/").concat(nextPage) }, { children: _jsx(IconArrowRight, {}) })))] }));
60
+ return ((0, jsx_runtime_1.jsxs)(Root, { children: [prevArrow && ((0, jsx_runtime_1.jsx)(ItemPrev, tslib_1.__assign({ as: Link, href: "".concat(baseUrl, "/").concat(prevPage) }, { children: (0, jsx_runtime_1.jsx)(cg_1.CgArrowLeftR, {}) }))), firstPage !== currentPage && ((0, jsx_runtime_1.jsx)(ItemLink, tslib_1.__assign({ as: Link, href: "".concat(baseUrl), prev: true }, { children: firstPage }))), prevDots && (0, jsx_runtime_1.jsx)(DotsSeparator, { children: "..." }), pages.map(function (page) {
61
+ return page === currentPage ? ((0, jsx_runtime_1.jsx)(ItemCurrent, { children: page }, page)) : ((0, jsx_runtime_1.jsx)(ItemLink, tslib_1.__assign({ as: Link, href: "".concat(baseUrl, "/").concat(page), prev: page < currentPage, next: page > currentPage }, { children: page }), "pagination-".concat(page)));
62
+ }), nextDots && (0, jsx_runtime_1.jsx)(DotsSeparator, { children: "..." }), lastPage !== currentPage && ((0, jsx_runtime_1.jsx)(ItemLink, tslib_1.__assign({ as: Link, href: "".concat(baseUrl, "/").concat(lastPage), next: true }, { children: lastPage }))), nextArrow && ((0, jsx_runtime_1.jsx)(ItemNext, tslib_1.__assign({ as: Link, href: "".concat(baseUrl, "/").concat(nextPage) }, { children: (0, jsx_runtime_1.jsx)(cg_1.CgArrowRightR, {}) })))] }));
60
63
  };
64
+ exports.KoinePaginationNav = KoinePaginationNav;
61
65
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -0,0 +1,61 @@
1
+ import { __assign, __makeTemplateObject } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import styled from "styled-components";
4
+ import { CgArrowRightR as IconArrowRight, CgArrowLeftR as IconArrowLeft, } from "react-icons/cg";
5
+ import ensureInt from "@koine/utils/ensureInt";
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
+ /*
15
+ * Possible outcomes:
16
+ * [1] 2 3 ... 78 >
17
+ * < 1 2 [3] 4 5 ... 78 >
18
+ * < 1 ... 6 7 [8] 9 10 ... 78 >
19
+ * < 1 ... 75 76 [77] 78 >
20
+ * < 1 ... 76 77 [78]
21
+ */
22
+ export var KoinePaginationNav = function (_a) {
23
+ 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;
24
+ total = ensureInt(total);
25
+ currentPage = ensureInt(currentPage);
26
+ perPage = ensureInt(perPage);
27
+ // page 0 means 1
28
+ currentPage = currentPage || 1;
29
+ baseUrl = baseUrl || currentUrl;
30
+ // don't output anything if pagination is not needed
31
+ if (total < perPage) {
32
+ return null;
33
+ }
34
+ var firstPage = 1;
35
+ var lastPage = Math.ceil(total / perPage);
36
+ var prevPage = currentPage - 1 > firstPage ? currentPage - 1 : "";
37
+ var nextPage = currentPage + 1 < lastPage ? currentPage + 1 : lastPage;
38
+ var prevArrow = currentPage > firstPage;
39
+ var nextArrow = currentPage < lastPage;
40
+ var pages = [];
41
+ // fill the pages before the current
42
+ for (var i = currentPage - showOffset; i < currentPage; i++) {
43
+ if (i > 1) {
44
+ pages.push(i);
45
+ }
46
+ }
47
+ // add the current
48
+ pages.push(currentPage);
49
+ // fill the pages after the current
50
+ for (var i = currentPage + 1; i < currentPage + 1 + showOffset; i++) {
51
+ if (i < lastPage) {
52
+ pages.push(i);
53
+ }
54
+ }
55
+ var prevDots = pages[0] > firstPage + 1;
56
+ var nextDots = pages[pages.length - 1] < lastPage - 1;
57
+ return (_jsxs(Root, { children: [prevArrow && (_jsx(ItemPrev, __assign({ as: Link, href: "".concat(baseUrl, "/").concat(prevPage) }, { children: _jsx(IconArrowLeft, {}) }))), firstPage !== currentPage && (_jsx(ItemLink, __assign({ as: Link, href: "".concat(baseUrl), prev: true }, { children: firstPage }))), prevDots && _jsx(DotsSeparator, { children: "..." }), pages.map(function (page) {
58
+ return page === currentPage ? (_jsx(ItemCurrent, { children: page }, page)) : (_jsx(ItemLink, __assign({ as: Link, href: "".concat(baseUrl, "/").concat(page), prev: page < currentPage, next: page > currentPage }, { children: page }), "pagination-".concat(page)));
59
+ }), nextDots && _jsx(DotsSeparator, { children: "..." }), lastPage !== currentPage && (_jsx(ItemLink, __assign({ as: Link, href: "".concat(baseUrl, "/").concat(lastPage), next: true }, { children: lastPage }))), nextArrow && (_jsx(ItemNext, __assign({ as: Link, href: "".concat(baseUrl, "/").concat(nextPage) }, { children: _jsx(IconArrowRight, {}) })))] }));
60
+ };
61
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1,11 +1,15 @@
1
- import { __assign, __makeTemplateObject } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import styled from "styled-components";
4
- import { AnimatePresence, m } from "framer-motion";
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) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaginationResults = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var jsx_runtime_1 = require("react/jsx-runtime");
6
+ var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
7
+ var framer_motion_1 = require("framer-motion");
8
+ var Root = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n // overflow: hidden;\n"], ["\n // overflow: hidden;\n"])));
9
+ var Inner = (0, styled_components_1.default)(framer_motion_1.m.div)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject([""], [""])));
10
+ var PaginationResults = function (_a) {
8
11
  var children = _a.children;
9
- return (_jsx(AnimatePresence, __assign({ exitBeforeEnter: true, initial: true }, { children: _jsx(Root, { children: _jsx(Inner, __assign({ initial: { opacity: 0, x: -100 }, animate: { opacity: 1, x: 0 }, exit: { opacity: 0, x: 100 }, transition: { type: "linear", staggerChildren: 0.3 } }, { children: children })) }) })));
12
+ return ((0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, tslib_1.__assign({ exitBeforeEnter: true, initial: true }, { children: (0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsx)(Inner, tslib_1.__assign({ initial: { opacity: 0, x: -100 }, animate: { opacity: 1, x: 0 }, exit: { opacity: 0, x: 100 }, transition: { type: "linear", staggerChildren: 0.3 } }, { children: children })) }) })));
10
13
  };
14
+ exports.PaginationResults = PaginationResults;
11
15
  var templateObject_1, templateObject_2;
@@ -0,0 +1,11 @@
1
+ import { __assign, __makeTemplateObject } from "tslib";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import styled from "styled-components";
4
+ import { AnimatePresence, m } from "framer-motion";
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, __assign({ exitBeforeEnter: true, initial: true }, { children: _jsx(Root, { children: _jsx(Inner, __assign({ 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 +1,5 @@
1
- export * from "./PaginationNav";
2
- export * from "./PaginationResults";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./PaginationNav"), exports);
5
+ tslib_1.__exportStar(require("./PaginationResults"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./PaginationNav";
2
+ export * from "./PaginationResults";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sideEffects": false,
3
- "module": "./index.js",
4
- "main": "../node/Pagination/index.js",
3
+ "module": "./index.mjs",
4
+ "main": "./index.js",
5
5
  "types": "./index.d.ts"
6
6
  }
package/Pill/Pill.js CHANGED
@@ -1,7 +1,10 @@
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"])));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PillAccentLightOutlined = exports.PillAccentLight = exports.PillGreyLight = exports.Pill = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
6
+ exports.Pill = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_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"])));
7
+ exports.PillGreyLight = (0, styled_components_1.default)(exports.Pill)(templateObject_2 || (templateObject_2 = tslib_1.__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"])));
8
+ exports.PillAccentLight = (0, styled_components_1.default)(exports.Pill)(templateObject_3 || (templateObject_3 = tslib_1.__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"])));
9
+ exports.PillAccentLightOutlined = (0, styled_components_1.default)(exports.Pill)(templateObject_4 || (templateObject_4 = tslib_1.__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
10
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
package/Pill/Pill.mjs ADDED
@@ -0,0 +1,7 @@
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.js CHANGED
@@ -1 +1,4 @@
1
- export * from "./Pill";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Pill"), exports);
package/Pill/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from "./Pill";
package/Pill/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sideEffects": false,
3
- "module": "./index.js",
4
- "main": "../node/Pill/index.js",
3
+ "module": "./index.mjs",
4
+ "main": "./index.js",
5
5
  "types": "./index.d.ts"
6
6
  }
@@ -1,15 +1,19 @@
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);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProgressCircular = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var jsx_runtime_1 = require("react/jsx-runtime");
6
+ var styled_components_1 = tslib_1.__importStar(require("styled-components"));
7
+ var animationRotation = (0, styled_components_1.keyframes)(templateObject_1 || (templateObject_1 = tslib_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"])));
8
+ var animationCircle = (0, styled_components_1.keyframes)(templateObject_2 || (templateObject_2 = tslib_1.__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"])));
9
+ var ProgressCircularSvg = styled_components_1.default.svg(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n animation: ", " 1.5s linear infinite;\n"], ["\n animation: ", " 1.5s linear infinite;\n"])), animationRotation);
10
+ var ProgressCircularCircle = styled_components_1.default.circle(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n animation: ", " 1.5s linear infinite;\n"], ["\n animation: ", " 1.5s linear infinite;\n"])), animationCircle);
8
11
  /**
9
12
  * @see https://mui.com/components/progress/
10
13
  */
11
- export var ProgressCircular = function (_a) {
12
- 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"]);
13
- 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 } }) })));
14
+ var ProgressCircular = function (_a) {
15
+ 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 = tslib_1.__rest(_a, ["size", "thickness", "color"]);
16
+ return ((0, jsx_runtime_1.jsx)(ProgressCircularSvg, tslib_1.__assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 44 44", style: { width: size, height: size } }, props, { children: (0, jsx_runtime_1.jsx)(ProgressCircularCircle, { cx: "22", cy: "22", r: "20", fill: "none", strokeWidth: thickness, style: { stroke: color } }) })));
14
17
  };
18
+ exports.ProgressCircular = ProgressCircular;
15
19
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;