solid-tiny-ui 0.5.0 → 0.6.0

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 (356) hide show
  1. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/alert/alert.js +5 -0
  2. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/alert/alert.jsx +5 -0
  3. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/buttons/basic-button/basic-button.js +1 -1
  4. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/buttons/basic-button/basic-button.jsx +1 -1
  5. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer-helper.js +5 -0
  6. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer-helper.jsx +5 -0
  7. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer.js +5 -0
  8. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer.jsx +5 -0
  9. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/field/field.js +5 -0
  10. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/field/field.jsx +5 -0
  11. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/checkbox/checkbox.js +5 -0
  12. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/checkbox/checkbox.jsx +5 -0
  13. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/combobox/combobox.js +5 -0
  14. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/combobox/combobox.jsx +5 -0
  15. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/number-input/number-input.js +5 -0
  16. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/number-input/number-input.jsx +5 -0
  17. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/password-input/password-input.js +5 -0
  18. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/password-input/password-input.jsx +5 -0
  19. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/radio-group/radio-group.js +5 -0
  20. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/radio-group/radio-group.jsx +5 -0
  21. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/switcher/switcher.js +5 -0
  22. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/switcher/switcher.jsx +5 -0
  23. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/text-field/text-field.js +5 -0
  24. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/text-field/text-field.jsx +5 -0
  25. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/textarea/textarea.js +5 -0
  26. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/textarea/textarea.jsx +5 -0
  27. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/time-picker/time-picker.js +5 -0
  28. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/time-picker/time-picker.jsx +5 -0
  29. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/modal/modal-helper.js +1 -1
  30. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/modal/modal-helper.jsx +1 -1
  31. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/modal/modal.js +1 -1
  32. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/modal/modal.jsx +1 -1
  33. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/pagination/pagination.js +5 -0
  34. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/pagination/pagination.jsx +5 -0
  35. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/popover/popover.js +1 -1
  36. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/popover/popover.jsx +1 -1
  37. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/spin/spin.js +1 -1
  38. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/spin/spin.jsx +1 -1
  39. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/tabs/tabs.js +1 -1
  40. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/tabs/tabs.jsx +1 -1
  41. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/toaster/toaster.js +5 -0
  42. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/toaster/toaster.jsx +5 -0
  43. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/tooltip/tooltip.js +1 -1
  44. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/tooltip/tooltip.jsx +1 -1
  45. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/root-provider/global.js +1 -1
  46. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/root-provider/global.jsx +1 -1
  47. package/dist/components/alert/alert.d.ts +25 -0
  48. package/dist/components/alert/alert.js +186 -0
  49. package/dist/components/alert/alert.jsx +73 -0
  50. package/dist/components/alert/index.d.ts +1 -0
  51. package/dist/components/alert/index.js +1 -0
  52. package/dist/components/alert/index.jsx +1 -0
  53. package/dist/components/buttons/basic-button/basic-button.d.ts +2 -2
  54. package/dist/components/buttons/basic-button/basic-button.js +20 -29
  55. package/dist/components/buttons/basic-button/basic-button.jsx +6 -7
  56. package/dist/components/buttons/state-button/state-button.d.ts +2 -2
  57. package/dist/components/buttons/state-button/state-button.js +2 -2
  58. package/dist/components/buttons/state-button/state-button.jsx +2 -2
  59. package/dist/components/drawer/helpers.d.ts +25 -0
  60. package/dist/components/drawer/helpers.js +104 -0
  61. package/dist/components/drawer/helpers.jsx +60 -0
  62. package/dist/components/drawer/index.d.ts +42 -0
  63. package/dist/components/drawer/index.js +95 -0
  64. package/dist/components/drawer/index.jsx +57 -0
  65. package/dist/components/field/index.d.ts +10 -0
  66. package/dist/components/field/index.js +11 -0
  67. package/dist/components/field/index.jsx +11 -0
  68. package/dist/components/field/parts.d.ts +24 -0
  69. package/dist/components/field/parts.js +69 -0
  70. package/dist/components/field/parts.jsx +41 -0
  71. package/dist/components/form-components/checkbox/checkbox.d.ts +26 -0
  72. package/dist/components/form-components/checkbox/checkbox.js +118 -0
  73. package/dist/components/form-components/checkbox/checkbox.jsx +42 -0
  74. package/dist/components/form-components/checkbox/index.d.ts +1 -0
  75. package/dist/components/form-components/checkbox/index.js +1 -0
  76. package/dist/components/form-components/checkbox/index.jsx +1 -0
  77. package/dist/components/form-components/checkbox-group/checkbox-group.d.ts +26 -0
  78. package/dist/components/form-components/checkbox-group/checkbox-group.js +76 -0
  79. package/dist/components/form-components/checkbox-group/checkbox-group.jsx +34 -0
  80. package/dist/components/form-components/checkbox-group/index.d.ts +1 -0
  81. package/dist/components/form-components/checkbox-group/index.js +1 -0
  82. package/dist/components/form-components/checkbox-group/index.jsx +1 -0
  83. package/dist/components/{combobox → form-components/combobox}/combobox.d.ts +6 -4
  84. package/dist/components/{combobox → form-components/combobox}/combobox.js +18 -14
  85. package/dist/components/{combobox → form-components/combobox}/combobox.jsx +10 -10
  86. package/dist/components/form-components/index.d.ts +19 -0
  87. package/dist/components/form-components/index.js +19 -0
  88. package/dist/components/form-components/index.jsx +19 -0
  89. package/dist/components/form-components/number-input/index.d.ts +1 -0
  90. package/dist/components/form-components/number-input/index.js +1 -0
  91. package/dist/components/form-components/number-input/index.jsx +1 -0
  92. package/dist/components/form-components/number-input/number-input.d.ts +33 -0
  93. package/dist/components/form-components/number-input/number-input.js +113 -0
  94. package/dist/components/form-components/number-input/number-input.jsx +59 -0
  95. package/dist/components/form-components/password-input/index.d.ts +1 -0
  96. package/dist/components/form-components/password-input/index.js +1 -0
  97. package/dist/components/form-components/password-input/index.jsx +1 -0
  98. package/dist/components/form-components/password-input/password-input.d.ts +31 -0
  99. package/dist/components/form-components/password-input/password-input.js +95 -0
  100. package/dist/components/form-components/password-input/password-input.jsx +36 -0
  101. package/dist/components/form-components/radio-group/index.d.ts +1 -0
  102. package/dist/components/form-components/radio-group/index.js +1 -0
  103. package/dist/components/form-components/radio-group/index.jsx +1 -0
  104. package/dist/components/form-components/radio-group/radio-group.d.ts +26 -0
  105. package/dist/components/form-components/radio-group/radio-group.js +118 -0
  106. package/dist/components/form-components/radio-group/radio-group.jsx +45 -0
  107. package/dist/components/form-components/switcher/index.d.ts +1 -0
  108. package/dist/components/form-components/switcher/index.js +1 -0
  109. package/dist/components/form-components/switcher/index.jsx +1 -0
  110. package/dist/components/form-components/switcher/switcher.d.ts +23 -0
  111. package/dist/components/form-components/switcher/switcher.js +92 -0
  112. package/dist/components/form-components/switcher/switcher.jsx +32 -0
  113. package/dist/components/form-components/text-field/index.d.ts +1 -0
  114. package/dist/components/form-components/text-field/index.js +1 -0
  115. package/dist/components/form-components/text-field/index.jsx +1 -0
  116. package/dist/components/form-components/text-field/text-field.d.ts +30 -0
  117. package/dist/components/form-components/text-field/text-field.js +112 -0
  118. package/dist/components/form-components/text-field/text-field.jsx +40 -0
  119. package/dist/components/{textarea → form-components/textarea}/textarea.d.ts +5 -2
  120. package/dist/components/form-components/textarea/textarea.js +55 -0
  121. package/dist/components/form-components/textarea/textarea.jsx +24 -0
  122. package/dist/components/form-components/time-picker/index.d.ts +27 -0
  123. package/dist/components/{time-picker → form-components/time-picker}/index.js +21 -5
  124. package/dist/components/{time-picker → form-components/time-picker}/index.jsx +11 -6
  125. package/dist/components/{time-picker → form-components/time-picker}/panel.js +6 -6
  126. package/dist/components/{time-picker → form-components/time-picker}/panel.jsx +6 -6
  127. package/dist/components/{time-picker → form-components/time-picker}/trigger.js +14 -10
  128. package/dist/components/{time-picker → form-components/time-picker}/trigger.jsx +4 -4
  129. package/dist/components/modal/helpers.js +1 -1
  130. package/dist/components/modal/helpers.jsx +1 -1
  131. package/dist/components/modal/index.d.ts +5 -8
  132. package/dist/components/modal/index.js +13 -10
  133. package/dist/components/modal/index.jsx +7 -4
  134. package/dist/components/pagination/index.d.ts +1 -0
  135. package/dist/components/pagination/index.js +1 -0
  136. package/dist/components/pagination/index.jsx +1 -0
  137. package/dist/components/pagination/pagination.d.ts +32 -0
  138. package/dist/components/pagination/pagination.js +336 -0
  139. package/dist/components/pagination/pagination.jsx +104 -0
  140. package/dist/components/progress/circle-progress.d.ts +7 -0
  141. package/dist/components/progress/circle-progress.js +33 -14
  142. package/dist/components/progress/circle-progress.jsx +15 -12
  143. package/dist/components/progress/line-progress.d.ts +2 -2
  144. package/dist/components/progress/line-progress.js +6 -5
  145. package/dist/components/progress/line-progress.jsx +6 -5
  146. package/dist/components/progress/loading-bar.d.ts +2 -2
  147. package/dist/components/spin/spin-ring.d.ts +2 -2
  148. package/dist/components/spin/spin-ring.js +1 -1
  149. package/dist/components/spin/spin-ring.jsx +1 -1
  150. package/dist/components/spin/spin.js +8 -7
  151. package/dist/components/spin/spin.jsx +6 -5
  152. package/dist/components/tabs/index.d.ts +7 -0
  153. package/dist/components/tabs/index.js +40 -12
  154. package/dist/components/tabs/index.jsx +9 -7
  155. package/dist/components/toaster/context.js +31 -0
  156. package/dist/components/toaster/context.jsx +31 -0
  157. package/dist/components/toaster/icon.js +50 -0
  158. package/dist/components/toaster/icon.jsx +27 -0
  159. package/dist/components/toaster/index.d.ts +3 -0
  160. package/dist/components/toaster/index.js +2 -0
  161. package/dist/components/toaster/index.jsx +2 -0
  162. package/dist/components/toaster/locator.js +67 -0
  163. package/dist/components/toaster/locator.jsx +54 -0
  164. package/dist/components/toaster/one-toaster.js +146 -0
  165. package/dist/components/toaster/one-toaster.jsx +104 -0
  166. package/dist/components/toaster/provider.d.ts +11 -0
  167. package/dist/components/toaster/provider.js +64 -0
  168. package/dist/components/toaster/provider.jsx +51 -0
  169. package/dist/components/toaster/type.d.ts +15 -0
  170. package/dist/components/toaster/use-toaster.d.ts +48 -0
  171. package/dist/components/toaster/use-toaster.js +72 -0
  172. package/dist/components/toaster/use-toaster.jsx +72 -0
  173. package/dist/components/tooltip/tooltip.d.ts +7 -0
  174. package/dist/components/tooltip/tooltip.js +9 -2
  175. package/dist/components/tooltip/tooltip.jsx +4 -2
  176. package/dist/components/visually-hidden/index.js +10 -8
  177. package/dist/components/visually-hidden/index.jsx +3 -2
  178. package/dist/icons/arrow-down-s-line.d.ts +3 -2
  179. package/dist/icons/arrow-down-s-line.js +4 -4
  180. package/dist/icons/arrow-down-s-line.jsx +2 -2
  181. package/dist/icons/arrow-left.d.ts +7 -0
  182. package/dist/icons/arrow-left.js +13 -0
  183. package/dist/icons/arrow-left.jsx +11 -0
  184. package/dist/icons/arrow-right.d.ts +7 -0
  185. package/dist/icons/arrow-right.js +13 -0
  186. package/dist/icons/arrow-right.jsx +11 -0
  187. package/dist/icons/check-bold.d.ts +7 -0
  188. package/dist/icons/check-bold.js +13 -0
  189. package/dist/icons/check-bold.jsx +11 -0
  190. package/dist/icons/check-line.d.ts +3 -2
  191. package/dist/icons/check-line.js +4 -4
  192. package/dist/icons/check-line.jsx +2 -2
  193. package/dist/icons/checkbox-circle-line.d.ts +7 -0
  194. package/dist/icons/checkbox-circle-line.js +13 -0
  195. package/dist/icons/checkbox-circle-line.jsx +11 -0
  196. package/dist/icons/close-line.d.ts +3 -2
  197. package/dist/icons/close-line.js +4 -4
  198. package/dist/icons/close-line.jsx +2 -2
  199. package/dist/icons/common.d.ts +9 -0
  200. package/dist/icons/common.js +12 -2
  201. package/dist/icons/common.jsx +1 -1
  202. package/dist/icons/ellipsis.d.ts +7 -0
  203. package/dist/icons/ellipsis.js +13 -0
  204. package/dist/icons/ellipsis.jsx +11 -0
  205. package/dist/icons/error-warning-line.d.ts +7 -0
  206. package/dist/icons/error-warning-line.js +13 -0
  207. package/dist/icons/error-warning-line.jsx +11 -0
  208. package/dist/icons/eye-line.d.ts +7 -0
  209. package/dist/icons/eye-line.js +13 -0
  210. package/dist/icons/eye-line.jsx +11 -0
  211. package/dist/icons/eye-off-line.d.ts +7 -0
  212. package/dist/icons/eye-off-line.js +13 -0
  213. package/dist/icons/eye-off-line.jsx +11 -0
  214. package/dist/icons/index.d.ts +12 -1
  215. package/dist/icons/index.js +12 -1
  216. package/dist/icons/index.jsx +12 -1
  217. package/dist/icons/information-line.d.ts +7 -0
  218. package/dist/icons/information-line.js +13 -0
  219. package/dist/icons/information-line.jsx +11 -0
  220. package/dist/icons/loading.d.ts +13 -0
  221. package/dist/icons/loading.js +18 -0
  222. package/dist/icons/loading.jsx +19 -0
  223. package/dist/icons/subtract.d.ts +7 -0
  224. package/dist/icons/subtract.js +13 -0
  225. package/dist/icons/subtract.jsx +11 -0
  226. package/dist/index.d.ts +23 -9
  227. package/dist/index.js +23 -10
  228. package/dist/index.jsx +23 -10
  229. package/dist/layout/flex/index.d.ts +5 -4
  230. package/dist/layout/flex/index.js +25 -15
  231. package/dist/layout/flex/index.jsx +23 -10
  232. package/dist/layout/index.d.ts +1 -2
  233. package/dist/layout/index.js +0 -1
  234. package/dist/layout/index.jsx +0 -1
  235. package/dist/primitives/animated-group/context.d.ts +6 -6
  236. package/dist/primitives/animated-group/panel.js +14 -13
  237. package/dist/primitives/animated-group/panel.jsx +7 -6
  238. package/dist/primitives/animated-group/root.d.ts +4 -4
  239. package/dist/primitives/animated-group/root.js +2 -3
  240. package/dist/primitives/animated-group/root.jsx +2 -3
  241. package/dist/primitives/checkbox/context.d.ts +63 -0
  242. package/dist/primitives/checkbox/context.js +13 -0
  243. package/dist/primitives/checkbox/context.jsx +13 -0
  244. package/dist/primitives/checkbox/index.d.ts +26 -0
  245. package/dist/primitives/checkbox/index.js +13 -0
  246. package/dist/primitives/checkbox/index.jsx +13 -0
  247. package/dist/primitives/checkbox/parts.d.ts +10 -0
  248. package/dist/primitives/checkbox/parts.js +62 -0
  249. package/dist/primitives/checkbox/parts.jsx +28 -0
  250. package/dist/primitives/checkbox/root.d.ts +16 -0
  251. package/dist/primitives/checkbox/root.js +25 -0
  252. package/dist/primitives/checkbox/root.jsx +24 -0
  253. package/dist/primitives/checkbox-group/context.js +21 -0
  254. package/dist/primitives/checkbox-group/context.jsx +21 -0
  255. package/dist/primitives/checkbox-group/index.js +12 -0
  256. package/dist/primitives/checkbox-group/index.jsx +12 -0
  257. package/dist/primitives/checkbox-group/parts.js +33 -0
  258. package/dist/primitives/checkbox-group/parts.jsx +21 -0
  259. package/dist/primitives/checkbox-group/root.js +24 -0
  260. package/dist/primitives/checkbox-group/root.jsx +23 -0
  261. package/dist/primitives/fake-scroll-list/index.d.ts +2 -2
  262. package/dist/primitives/fake-scroll-list/listbox.js +2 -2
  263. package/dist/primitives/floating/content.js +12 -11
  264. package/dist/primitives/floating/content.jsx +7 -6
  265. package/dist/primitives/floating/context.d.ts +10 -9
  266. package/dist/primitives/floating/context.js +1 -1
  267. package/dist/primitives/floating/context.jsx +1 -1
  268. package/dist/primitives/floating/index.d.ts +5 -4
  269. package/dist/primitives/floating/trigger.js +1 -1
  270. package/dist/primitives/floating/trigger.jsx +1 -1
  271. package/dist/primitives/floating/types.d.ts +2 -1
  272. package/dist/primitives/index.d.ts +7 -1
  273. package/dist/primitives/index.js +7 -3
  274. package/dist/primitives/index.jsx +7 -3
  275. package/dist/primitives/listbox/listbox.d.ts +3 -3
  276. package/dist/primitives/modal/content.d.ts +3 -3
  277. package/dist/primitives/modal/content.js +2 -3
  278. package/dist/primitives/modal/content.jsx +2 -3
  279. package/dist/primitives/modal/context.d.ts +16 -29
  280. package/dist/primitives/modal/context.js +2 -4
  281. package/dist/primitives/modal/context.jsx +2 -4
  282. package/dist/primitives/modal/index.d.ts +5 -8
  283. package/dist/primitives/modal/portal.js +1 -1
  284. package/dist/primitives/modal/portal.jsx +1 -1
  285. package/dist/primitives/modal/root.d.ts +2 -3
  286. package/dist/primitives/modal/root.js +10 -10
  287. package/dist/primitives/modal/root.jsx +10 -10
  288. package/dist/primitives/pagination/context.d.ts +89 -0
  289. package/dist/primitives/pagination/context.js +88 -0
  290. package/dist/primitives/pagination/context.jsx +88 -0
  291. package/dist/primitives/pagination/index.d.ts +33 -0
  292. package/dist/primitives/pagination/index.js +12 -0
  293. package/dist/primitives/pagination/index.jsx +12 -0
  294. package/dist/primitives/pagination/items.d.ts +9 -0
  295. package/dist/primitives/pagination/items.js +19 -0
  296. package/dist/primitives/pagination/items.jsx +11 -0
  297. package/dist/primitives/pagination/root.d.ts +16 -0
  298. package/dist/primitives/pagination/root.js +24 -0
  299. package/dist/primitives/pagination/root.jsx +23 -0
  300. package/dist/primitives/radio-group/context.d.ts +91 -0
  301. package/dist/primitives/radio-group/context.js +16 -0
  302. package/dist/primitives/radio-group/context.jsx +16 -0
  303. package/dist/primitives/radio-group/index.d.ts +34 -0
  304. package/dist/primitives/radio-group/index.js +15 -0
  305. package/dist/primitives/radio-group/index.jsx +15 -0
  306. package/dist/primitives/radio-group/item.d.ts +19 -0
  307. package/dist/primitives/radio-group/item.js +74 -0
  308. package/dist/primitives/radio-group/item.jsx +44 -0
  309. package/dist/primitives/radio-group/root.d.ts +14 -0
  310. package/dist/primitives/radio-group/root.js +23 -0
  311. package/dist/primitives/radio-group/root.jsx +22 -0
  312. package/dist/root-provider/context.d.ts +16 -9
  313. package/dist/root-provider/context.js +4 -1
  314. package/dist/root-provider/context.jsx +4 -1
  315. package/dist/root-provider/gen-colors.js +138 -0
  316. package/dist/root-provider/gen-colors.jsx +138 -0
  317. package/dist/root-provider/provider.js +4 -3
  318. package/dist/root-provider/provider.jsx +3 -2
  319. package/dist/utils/duration.js +10 -0
  320. package/dist/utils/duration.jsx +10 -0
  321. package/dist/utils/index.js +1 -4
  322. package/dist/utils/index.jsx +1 -4
  323. package/dist/utils/types.d.ts +4 -8
  324. package/package.json +4 -4
  325. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/combobox/combobox.js +0 -5
  326. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/combobox/combobox.jsx +0 -5
  327. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/input/input.js +0 -5
  328. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/input/input.jsx +0 -5
  329. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/textarea/textarea.js +0 -5
  330. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/textarea/textarea.jsx +0 -5
  331. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/time-picker/time-picker.js +0 -5
  332. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/time-picker/time-picker.jsx +0 -5
  333. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/layout/input-compact/input-compact.js +0 -5
  334. package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/layout/input-compact/input-compact.jsx +0 -5
  335. package/dist/components/input/index.d.ts +0 -1
  336. package/dist/components/input/index.js +0 -1
  337. package/dist/components/input/index.jsx +0 -1
  338. package/dist/components/input/input.d.ts +0 -15
  339. package/dist/components/input/input.js +0 -44
  340. package/dist/components/input/input.jsx +0 -16
  341. package/dist/components/textarea/textarea.js +0 -49
  342. package/dist/components/textarea/textarea.jsx +0 -24
  343. package/dist/components/time-picker/index.d.ts +0 -18
  344. package/dist/layout/input-compact/index.d.ts +0 -13
  345. package/dist/layout/input-compact/index.js +0 -42
  346. package/dist/layout/input-compact/index.jsx +0 -32
  347. package/dist/root-provider/gen-brand.js +0 -55
  348. package/dist/root-provider/gen-brand.jsx +0 -55
  349. package/dist/utils/types.js +0 -7
  350. package/dist/utils/types.jsx +0 -7
  351. /package/dist/components/{combobox → form-components/combobox}/index.d.ts +0 -0
  352. /package/dist/components/{combobox → form-components/combobox}/index.js +0 -0
  353. /package/dist/components/{combobox → form-components/combobox}/index.jsx +0 -0
  354. /package/dist/components/{textarea → form-components/textarea}/index.d.ts +0 -0
  355. /package/dist/components/{textarea → form-components/textarea}/index.js +0 -0
  356. /package/dist/components/{textarea → form-components/textarea}/index.jsx +0 -0
@@ -0,0 +1,336 @@
1
+ import { IconArrowLeft } from "../../icons/arrow-left.js";
2
+ import { IconArrowRight } from "../../icons/arrow-right.js";
3
+ import { IconEllipsis } from "../../icons/ellipsis.js";
4
+ import "../../icons/index.js";
5
+ import { createClassStyles } from "../../utils/index.js";
6
+ import { PaginationCore } from "../../primitives/pagination/index.js";
7
+ import "../../primitives/index.js";
8
+ import pagination_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/pagination/pagination.js";
9
+ import { addEventListener, className, createComponent, delegateEvents, effect, insert, setAttribute, style, template, use } from "solid-js/web";
10
+ import { Show, createSignal, onMount } from "solid-js";
11
+ import { combineClass, combineStyle, createWatch, dataIf, makeEventListener, mountStyle } from "solid-tiny-utils";
12
+ import { Ref } from "@solid-primitives/refs";
13
+
14
+ //#region src/components/pagination/pagination.tsx
15
+ var _tmpl$ = /* @__PURE__ */ template(`<input min=1 type=number>`), _tmpl$2 = /* @__PURE__ */ template(`<button type=button>`), _tmpl$3 = /* @__PURE__ */ template(`<span>/`), _tmpl$4 = /* @__PURE__ */ template(`<div><button type=button></button><div></div><button type=button>`);
16
+ function GoToPageInput(props) {
17
+ let ref;
18
+ onMount(() => {
19
+ ref.focus();
20
+ });
21
+ const handleKeyDown = (e) => {
22
+ if (e.key === "Enter") ref.blur();
23
+ };
24
+ return (() => {
25
+ var _el$ = _tmpl$();
26
+ var _ref$ = ref;
27
+ typeof _ref$ === "function" ? use(_ref$, _el$) : ref = _el$;
28
+ _el$.$$keydown = handleKeyDown;
29
+ addEventListener(_el$, "blur", props.onBlur);
30
+ effect((_p$) => {
31
+ var _v$ = combineClass("tiny-pagination-input", props.class), _v$2 = combineStyle({ "--width": `${props.width}px` }, props.style);
32
+ _v$ !== _p$.e && className(_el$, _p$.e = _v$);
33
+ _p$.t = style(_el$, _v$2, _p$.t);
34
+ return _p$;
35
+ }, {
36
+ e: void 0,
37
+ t: void 0
38
+ });
39
+ effect(() => _el$.value = props.value);
40
+ return _el$;
41
+ })();
42
+ }
43
+ function GoToPageEditable(props) {
44
+ const [editable, setEditable] = createSignal(false);
45
+ const [ref, setRef] = createSignal(null);
46
+ const [w, setW] = createSignal(0);
47
+ createWatch(ref, (el) => {
48
+ if (!el) return;
49
+ makeEventListener(el, "click", () => {
50
+ setW(el.offsetWidth);
51
+ setEditable(true);
52
+ });
53
+ });
54
+ return createComponent(Show, {
55
+ get fallback() {
56
+ return createComponent(Ref, {
57
+ ref: setRef,
58
+ get children() {
59
+ return props.children;
60
+ }
61
+ });
62
+ },
63
+ get when() {
64
+ return editable();
65
+ },
66
+ get children() {
67
+ return createComponent(GoToPageInput, {
68
+ get ["class"]() {
69
+ return props.inputClass;
70
+ },
71
+ onBlur: (e) => {
72
+ const tryTo = e.currentTarget.valueAsNumber;
73
+ if (tryTo > 0 && tryTo !== props.current) props.gotoPage(tryTo);
74
+ setEditable(false);
75
+ },
76
+ get style() {
77
+ return props.inputStyle;
78
+ },
79
+ get value() {
80
+ return props.current;
81
+ },
82
+ get width() {
83
+ return w();
84
+ }
85
+ });
86
+ }
87
+ });
88
+ }
89
+ function DensePages(props) {
90
+ return [
91
+ createComponent(GoToPageEditable, {
92
+ get current() {
93
+ return props.current;
94
+ },
95
+ get disabled() {
96
+ return props.disabled;
97
+ },
98
+ get gotoPage() {
99
+ return props.onPageClick;
100
+ },
101
+ get inputClass() {
102
+ return props.inputClass;
103
+ },
104
+ get inputStyle() {
105
+ return props.inputStyle;
106
+ },
107
+ get children() {
108
+ var _el$2 = _tmpl$2();
109
+ insert(_el$2, () => props.current);
110
+ effect((_p$) => {
111
+ var _v$3 = combineClass("tiny-pagination-item", props.itemClass), _v$4 = props.disabled, _v$5 = combineStyle({}, props.itemStyle);
112
+ _v$3 !== _p$.e && className(_el$2, _p$.e = _v$3);
113
+ _v$4 !== _p$.t && (_el$2.disabled = _p$.t = _v$4);
114
+ _p$.a = style(_el$2, _v$5, _p$.a);
115
+ return _p$;
116
+ }, {
117
+ e: void 0,
118
+ t: void 0,
119
+ a: void 0
120
+ });
121
+ return _el$2;
122
+ }
123
+ }),
124
+ (() => {
125
+ var _el$3 = _tmpl$3();
126
+ effect((_p$) => {
127
+ var _v$6 = combineClass("tiny-pagination-separator", props.separatorClass), _v$7 = dataIf(props.disabled), _v$8 = combineStyle({}, props.separatorStyle);
128
+ _v$6 !== _p$.e && className(_el$3, _p$.e = _v$6);
129
+ _v$7 !== _p$.t && setAttribute(_el$3, "data-disabled", _p$.t = _v$7);
130
+ _p$.a = style(_el$3, _v$8, _p$.a);
131
+ return _p$;
132
+ }, {
133
+ e: void 0,
134
+ t: void 0,
135
+ a: void 0
136
+ });
137
+ return _el$3;
138
+ })(),
139
+ (() => {
140
+ var _el$4 = _tmpl$2();
141
+ _el$4.$$click = () => props.onPageClick(props.totalPages);
142
+ insert(_el$4, () => props.totalPages);
143
+ effect((_p$) => {
144
+ var _v$9 = combineClass("tiny-pagination-item", props.itemClass), _v$0 = props.disabled, _v$1 = combineStyle({}, props.itemStyle);
145
+ _v$9 !== _p$.e && className(_el$4, _p$.e = _v$9);
146
+ _v$0 !== _p$.t && (_el$4.disabled = _p$.t = _v$0);
147
+ _p$.a = style(_el$4, _v$1, _p$.a);
148
+ return _p$;
149
+ }, {
150
+ e: void 0,
151
+ t: void 0,
152
+ a: void 0
153
+ });
154
+ return _el$4;
155
+ })()
156
+ ];
157
+ }
158
+ /**
159
+ * A pagination component for navigating through pages of content.
160
+ *
161
+ * maxVisiblePages: Maximum number of page buttons to display (default: 7, minimum: 5).
162
+ */
163
+ function Pagination(props) {
164
+ mountStyle(pagination_default, "tiny-pagination");
165
+ const size = () => props.size ?? "middle";
166
+ const [classes, styles] = createClassStyles(() => props.classNames, () => props.styles, () => ({
167
+ disabled: props.disabled ?? false,
168
+ size: size(),
169
+ dense: props.dense ?? false
170
+ }));
171
+ return createComponent(PaginationCore, {
172
+ get current() {
173
+ return props.current;
174
+ },
175
+ get disabled() {
176
+ return props.disabled;
177
+ },
178
+ get maxVisiblePages() {
179
+ return props.maxVisiblePages;
180
+ },
181
+ get onChange() {
182
+ return props.onChange;
183
+ },
184
+ get pageSize() {
185
+ return props.pageSize;
186
+ },
187
+ get total() {
188
+ return props.total;
189
+ },
190
+ children: (state, actions) => {
191
+ return (() => {
192
+ var _el$5 = _tmpl$4(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling;
193
+ addEventListener(_el$6, "click", actions.prev, true);
194
+ insert(_el$6, createComponent(IconArrowLeft, {}));
195
+ insert(_el$7, createComponent(Show, {
196
+ get fallback() {
197
+ return createComponent(DensePages, {
198
+ get current() {
199
+ return state.current;
200
+ },
201
+ get disabled() {
202
+ return state.disabled;
203
+ },
204
+ get inputClass() {
205
+ return classes().input;
206
+ },
207
+ get inputStyle() {
208
+ return styles().input;
209
+ },
210
+ get itemClass() {
211
+ return classes().item;
212
+ },
213
+ get itemStyle() {
214
+ return styles().item;
215
+ },
216
+ get onPageClick() {
217
+ return actions.gotoPage;
218
+ },
219
+ get separatorClass() {
220
+ return classes().separator;
221
+ },
222
+ get separatorStyle() {
223
+ return styles().separator;
224
+ },
225
+ get totalPages() {
226
+ return state.totalPages;
227
+ }
228
+ });
229
+ },
230
+ get when() {
231
+ return !props.dense;
232
+ },
233
+ get children() {
234
+ return createComponent(PaginationCore.Items, { render: (page) => {
235
+ return createComponent(Show, {
236
+ get fallback() {
237
+ return createComponent(GoToPageEditable, {
238
+ get current() {
239
+ return state.current;
240
+ },
241
+ get disabled() {
242
+ return state.disabled;
243
+ },
244
+ get gotoPage() {
245
+ return actions.gotoPage;
246
+ },
247
+ get inputClass() {
248
+ return classes().input;
249
+ },
250
+ get inputStyle() {
251
+ return styles().input;
252
+ },
253
+ get children() {
254
+ var _el$0 = _tmpl$2();
255
+ insert(_el$0, createComponent(IconEllipsis, {}));
256
+ effect((_p$) => {
257
+ var _v$26 = combineClass("tiny-pagination-item", classes().item), _v$27 = state.disabled, _v$28 = combineStyle({}, styles().item);
258
+ _v$26 !== _p$.e && className(_el$0, _p$.e = _v$26);
259
+ _v$27 !== _p$.t && (_el$0.disabled = _p$.t = _v$27);
260
+ _p$.a = style(_el$0, _v$28, _p$.a);
261
+ return _p$;
262
+ }, {
263
+ e: void 0,
264
+ t: void 0,
265
+ a: void 0
266
+ });
267
+ return _el$0;
268
+ }
269
+ });
270
+ },
271
+ get when() {
272
+ return page.type === "page";
273
+ },
274
+ get children() {
275
+ var _el$9 = _tmpl$2();
276
+ _el$9.$$click = () => actions.gotoPage(page.page);
277
+ insert(_el$9, () => page.page);
278
+ effect((_p$) => {
279
+ var _v$22 = combineClass("tiny-pagination-item", classes().item), _v$23 = dataIf(page.page === state.current), _v$24 = state.disabled, _v$25 = combineStyle({}, styles().item);
280
+ _v$22 !== _p$.e && className(_el$9, _p$.e = _v$22);
281
+ _v$23 !== _p$.t && setAttribute(_el$9, "data-active", _p$.t = _v$23);
282
+ _v$24 !== _p$.a && (_el$9.disabled = _p$.a = _v$24);
283
+ _p$.o = style(_el$9, _v$25, _p$.o);
284
+ return _p$;
285
+ }, {
286
+ e: void 0,
287
+ t: void 0,
288
+ a: void 0,
289
+ o: void 0
290
+ });
291
+ return _el$9;
292
+ }
293
+ });
294
+ } });
295
+ }
296
+ }));
297
+ addEventListener(_el$8, "click", actions.next, true);
298
+ insert(_el$8, createComponent(IconArrowRight, {}));
299
+ effect((_p$) => {
300
+ var _v$10 = combineClass("tiny-pagination", classes().root), _v$11 = dataIf(state.disabled), _v$12 = size(), _v$13 = combineStyle({}, styles().root), _v$14 = combineClass("tiny-pagination-prev", classes().prev), _v$15 = state.disabled || state.current <= 1, _v$16 = combineStyle({}, styles().prev), _v$17 = combineClass("tiny-pagination-items", classes().items), _v$18 = combineStyle({}, styles().items), _v$19 = combineClass("tiny-pagination-next", classes().next), _v$20 = state.disabled || state.current >= state.totalPages, _v$21 = combineStyle({}, styles().next);
301
+ _v$10 !== _p$.e && className(_el$5, _p$.e = _v$10);
302
+ _v$11 !== _p$.t && setAttribute(_el$5, "data-disabled", _p$.t = _v$11);
303
+ _v$12 !== _p$.a && setAttribute(_el$5, "data-size", _p$.a = _v$12);
304
+ _p$.o = style(_el$5, _v$13, _p$.o);
305
+ _v$14 !== _p$.i && className(_el$6, _p$.i = _v$14);
306
+ _v$15 !== _p$.n && (_el$6.disabled = _p$.n = _v$15);
307
+ _p$.s = style(_el$6, _v$16, _p$.s);
308
+ _v$17 !== _p$.h && className(_el$7, _p$.h = _v$17);
309
+ _p$.r = style(_el$7, _v$18, _p$.r);
310
+ _v$19 !== _p$.d && className(_el$8, _p$.d = _v$19);
311
+ _v$20 !== _p$.l && (_el$8.disabled = _p$.l = _v$20);
312
+ _p$.u = style(_el$8, _v$21, _p$.u);
313
+ return _p$;
314
+ }, {
315
+ e: void 0,
316
+ t: void 0,
317
+ a: void 0,
318
+ o: void 0,
319
+ i: void 0,
320
+ n: void 0,
321
+ s: void 0,
322
+ h: void 0,
323
+ r: void 0,
324
+ d: void 0,
325
+ l: void 0,
326
+ u: void 0
327
+ });
328
+ return _el$5;
329
+ })();
330
+ }
331
+ });
332
+ }
333
+ delegateEvents(["keydown", "click"]);
334
+
335
+ //#endregion
336
+ export { Pagination };
@@ -0,0 +1,104 @@
1
+ import { IconArrowLeft } from "../../icons/arrow-left.jsx";
2
+ import { IconArrowRight } from "../../icons/arrow-right.jsx";
3
+ import { IconEllipsis } from "../../icons/ellipsis.jsx";
4
+ import "../../icons/index.jsx";
5
+ import { createClassStyles } from "../../utils/index.jsx";
6
+ import { PaginationCore } from "../../primitives/pagination/index.jsx";
7
+ import "../../primitives/index.jsx";
8
+ import pagination_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/pagination/pagination.jsx";
9
+ import { Show, createSignal, onMount } from "solid-js";
10
+ import { combineClass, combineStyle, createWatch, dataIf, makeEventListener, mountStyle } from "solid-tiny-utils";
11
+ import { Ref } from "@solid-primitives/refs";
12
+
13
+ //#region src/components/pagination/pagination.tsx
14
+ function GoToPageInput(props) {
15
+ let ref;
16
+ onMount(() => {
17
+ ref.focus();
18
+ });
19
+ const handleKeyDown = (e) => {
20
+ if (e.key === "Enter") ref.blur();
21
+ };
22
+ return <input class={combineClass("tiny-pagination-input", props.class)} min="1" onBlur={props.onBlur} onKeyDown={handleKeyDown} ref={ref} style={combineStyle({ "--width": `${props.width}px` }, props.style)} type="number" value={props.value} />;
23
+ }
24
+ function GoToPageEditable(props) {
25
+ const [editable, setEditable] = createSignal(false);
26
+ const [ref, setRef] = createSignal(null);
27
+ const [w, setW] = createSignal(0);
28
+ createWatch(ref, (el) => {
29
+ if (!el) return;
30
+ makeEventListener(el, "click", () => {
31
+ setW(el.offsetWidth);
32
+ setEditable(true);
33
+ });
34
+ });
35
+ return <Show fallback={<Ref ref={setRef}>{props.children}</Ref>} when={editable()}>
36
+ <GoToPageInput class={props.inputClass} onBlur={(e) => {
37
+ const tryTo = e.currentTarget.valueAsNumber;
38
+ if (tryTo > 0 && tryTo !== props.current) props.gotoPage(tryTo);
39
+ setEditable(false);
40
+ }} style={props.inputStyle} value={props.current} width={w()} />
41
+ </Show>;
42
+ }
43
+ function DensePages(props) {
44
+ return <>
45
+ <GoToPageEditable current={props.current} disabled={props.disabled} gotoPage={props.onPageClick} inputClass={props.inputClass} inputStyle={props.inputStyle}>
46
+ <button class={combineClass("tiny-pagination-item", props.itemClass)} disabled={props.disabled} style={combineStyle({}, props.itemStyle)} type="button">
47
+ {props.current}
48
+ </button>
49
+ </GoToPageEditable>
50
+
51
+ <span class={combineClass("tiny-pagination-separator", props.separatorClass)} data-disabled={dataIf(props.disabled)} style={combineStyle({}, props.separatorStyle)}>
52
+ /
53
+ </span>
54
+
55
+ <button class={combineClass("tiny-pagination-item", props.itemClass)} disabled={props.disabled} onClick={() => props.onPageClick(props.totalPages)} style={combineStyle({}, props.itemStyle)} type="button">
56
+ {props.totalPages}
57
+ </button>
58
+ </>;
59
+ }
60
+ /**
61
+ * A pagination component for navigating through pages of content.
62
+ *
63
+ * maxVisiblePages: Maximum number of page buttons to display (default: 7, minimum: 5).
64
+ */
65
+ function Pagination(props) {
66
+ mountStyle(pagination_default, "tiny-pagination");
67
+ const size = () => props.size ?? "middle";
68
+ const [classes, styles] = createClassStyles(() => props.classNames, () => props.styles, () => ({
69
+ disabled: props.disabled ?? false,
70
+ size: size(),
71
+ dense: props.dense ?? false
72
+ }));
73
+ return <PaginationCore current={props.current} disabled={props.disabled} maxVisiblePages={props.maxVisiblePages} onChange={props.onChange} pageSize={props.pageSize} total={props.total}>
74
+ {(state, actions) => {
75
+ return <div class={combineClass("tiny-pagination", classes().root)} data-disabled={dataIf(state.disabled)} data-size={size()} style={combineStyle({}, styles().root)}>
76
+ <button class={combineClass("tiny-pagination-prev", classes().prev)} disabled={state.disabled || state.current <= 1} onClick={actions.prev} style={combineStyle({}, styles().prev)} type="button">
77
+ <IconArrowLeft />
78
+ </button>
79
+ <div class={combineClass("tiny-pagination-items", classes().items)} style={combineStyle({}, styles().items)}>
80
+ <Show fallback={<DensePages current={state.current} disabled={state.disabled} inputClass={classes().input} inputStyle={styles().input} itemClass={classes().item} itemStyle={styles().item} onPageClick={actions.gotoPage} separatorClass={classes().separator} separatorStyle={styles().separator} totalPages={state.totalPages} />} when={!props.dense}>
81
+ <PaginationCore.Items render={(page) => {
82
+ return <Show fallback={<GoToPageEditable current={state.current} disabled={state.disabled} gotoPage={actions.gotoPage} inputClass={classes().input} inputStyle={styles().input}>
83
+ <button class={combineClass("tiny-pagination-item", classes().item)} disabled={state.disabled} style={combineStyle({}, styles().item)} type="button">
84
+ <IconEllipsis />
85
+ </button>
86
+ </GoToPageEditable>} when={page.type === "page"}>
87
+ <button class={combineClass("tiny-pagination-item", classes().item)} data-active={dataIf(page.page === state.current)} disabled={state.disabled} onClick={() => actions.gotoPage(page.page)} style={combineStyle({}, styles().item)} type="button">
88
+ {page.page}
89
+ </button>
90
+ </Show>;
91
+ }} />
92
+ </Show>
93
+ </div>
94
+
95
+ <button class={combineClass("tiny-pagination-next", classes().next)} disabled={state.disabled || state.current >= state.totalPages} onClick={actions.next} style={combineStyle({}, styles().next)} type="button">
96
+ <IconArrowRight />
97
+ </button>
98
+ </div>;
99
+ }}
100
+ </PaginationCore>;
101
+ }
102
+
103
+ //#endregion
104
+ export { Pagination };
@@ -1,3 +1,4 @@
1
+ import { ClassNames, Styles } from "../../utils/types.js";
1
2
  import { JSX } from "solid-js/jsx-runtime";
2
3
 
3
4
  //#region src/components/progress/circle-progress.d.ts
@@ -12,6 +13,12 @@ declare function CircleProgress(props: {
12
13
  children?: JSX.Element;
13
14
  railColor?: string;
14
15
  fillColor?: string;
16
+ classNames?: ClassNames<"root" | "wrapper" | "content", {
17
+ percent: number;
18
+ }>;
19
+ styles?: Styles<"root" | "wrapper" | "content", {
20
+ percent: number;
21
+ }>;
15
22
  }): JSX.Element;
16
23
  //#endregion
17
24
  export { CircleProgress };
@@ -1,10 +1,10 @@
1
- import { getGlobalToken } from "../../utils/index.js";
2
- import { createComponent, effect, insert, setAttribute, setStyleProperty, style, template } from "solid-js/web";
1
+ import { createClassStyles, getGlobalToken } from "../../utils/index.js";
2
+ import { className, createComponent, effect, insert, setAttribute, setStyleProperty, style, template } from "solid-js/web";
3
3
  import { createMemo, mergeProps as mergeProps$1 } from "solid-js";
4
- import { max } from "solid-tiny-utils";
4
+ import { combineStyle, max } from "solid-tiny-utils";
5
5
 
6
6
  //#region src/components/progress/circle-progress.tsx
7
- var _tmpl$ = /* @__PURE__ */ template(`<div><svg aria-label=progress role=img>`), _tmpl$2 = /* @__PURE__ */ template(`<svg><g><path fill=none stroke-linecap=round></svg>`, false, true, false), _tmpl$3 = /* @__PURE__ */ template(`<div style=position:relative><div style=position:absolute;inset:0;display:flex;align-items:center;justify-content:center>`);
7
+ var _tmpl$ = /* @__PURE__ */ template(`<div><svg aria-label=progress role=img>`), _tmpl$2 = /* @__PURE__ */ template(`<svg><g><path fill=none stroke-linecap=round></svg>`, false, true, false), _tmpl$3 = /* @__PURE__ */ template(`<div><div></div><div>`);
8
8
  function getPathString(r, viewBoxSize) {
9
9
  const vw = viewBoxSize;
10
10
  return `m ${vw / 2} ${vw / 2 - r} a ${r} ${r} 0 1 1 0 ${2 * r} a ${r} ${r} 0 1 1 0 -${2 * r}`;
@@ -93,17 +93,18 @@ function CircleProgress(props) {
93
93
  gapDegree: 0,
94
94
  offsetDegree: 0,
95
95
  size: "100px",
96
- railColor: getGlobalToken("c-neutral-3"),
97
- fillColor: getGlobalToken("c-brand-5")
96
+ railColor: `rgb(${getGlobalToken("rgb-neutral-3")})`,
97
+ fillColor: `rgb(${getGlobalToken("rgb-brand-5")})`
98
98
  }, props);
99
+ const [classes, styles] = createClassStyles(() => props.classNames, () => props.styles, () => ({ percent: real.percent }));
99
100
  const viewBoxSize = 100;
100
101
  const viewBoxPadding = 5;
101
102
  const radius = createMemo(() => {
102
103
  return (viewBoxSize - max(real.fillWidth, real.railWidth) - viewBoxPadding * 2) / 2;
103
104
  });
104
105
  return (() => {
105
- var _el$7 = _tmpl$3(), _el$8 = _el$7.firstChild;
106
- insert(_el$7, createComponent(Wrapper, {
106
+ var _el$7 = _tmpl$3(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling;
107
+ insert(_el$8, createComponent(Wrapper, {
107
108
  get gapOffsetDegree() {
108
109
  return real.offsetDegree;
109
110
  },
@@ -145,16 +146,34 @@ function CircleProgress(props) {
145
146
  viewBoxSize
146
147
  })];
147
148
  }
148
- }), _el$8);
149
- insert(_el$8, () => props.children);
149
+ }));
150
+ insert(_el$9, () => props.children);
150
151
  effect((_p$) => {
151
- var _v$9 = real.size, _v$0 = real.size;
152
- _v$9 !== _p$.e && setStyleProperty(_el$7, "width", _p$.e = _v$9);
153
- _v$0 !== _p$.t && setStyleProperty(_el$7, "height", _p$.t = _v$0);
152
+ var _v$9 = classes().root, _v$0 = combineStyle({
153
+ width: real.size,
154
+ height: real.size,
155
+ position: "relative"
156
+ }, styles().root), _v$1 = classes().wrapper, _v$10 = combineStyle({}, styles().wrapper), _v$11 = classes().content, _v$12 = combineStyle({
157
+ position: "absolute",
158
+ inset: 0,
159
+ display: "flex",
160
+ "align-items": "center",
161
+ "justify-content": "center"
162
+ }, styles().content);
163
+ _v$9 !== _p$.e && className(_el$7, _p$.e = _v$9);
164
+ _p$.t = style(_el$7, _v$0, _p$.t);
165
+ _v$1 !== _p$.a && className(_el$8, _p$.a = _v$1);
166
+ _p$.o = style(_el$8, _v$10, _p$.o);
167
+ _v$11 !== _p$.i && className(_el$9, _p$.i = _v$11);
168
+ _p$.n = style(_el$9, _v$12, _p$.n);
154
169
  return _p$;
155
170
  }, {
156
171
  e: void 0,
157
- t: void 0
172
+ t: void 0,
173
+ a: void 0,
174
+ o: void 0,
175
+ i: void 0,
176
+ n: void 0
158
177
  });
159
178
  return _el$7;
160
179
  })();
@@ -1,6 +1,6 @@
1
- import { getGlobalToken } from "../../utils/index.jsx";
1
+ import { createClassStyles, getGlobalToken } from "../../utils/index.jsx";
2
2
  import { createMemo, mergeProps } from "solid-js";
3
- import { max } from "solid-tiny-utils";
3
+ import { combineStyle, max } from "solid-tiny-utils";
4
4
 
5
5
  //#region src/components/progress/circle-progress.tsx
6
6
  function getPathString(r, viewBoxSize) {
@@ -58,30 +58,33 @@ function CircleProgress(props) {
58
58
  gapDegree: 0,
59
59
  offsetDegree: 0,
60
60
  size: "100px",
61
- railColor: getGlobalToken("c-neutral-3"),
62
- fillColor: getGlobalToken("c-brand-5")
61
+ railColor: `rgb(${getGlobalToken("rgb-neutral-3")})`,
62
+ fillColor: `rgb(${getGlobalToken("rgb-brand-5")})`
63
63
  }, props);
64
+ const [classes, styles] = createClassStyles(() => props.classNames, () => props.styles, () => ({ percent: real.percent }));
64
65
  const viewBoxSize = 100;
65
66
  const viewBoxPadding = 5;
66
67
  const radius = createMemo(() => {
67
68
  return (viewBoxSize - max(real.fillWidth, real.railWidth) - viewBoxPadding * 2) / 2;
68
69
  });
69
- return <div style={{
70
+ return <div class={classes().root} style={combineStyle({
70
71
  width: real.size,
71
72
  height: real.size,
72
73
  position: "relative"
73
- }}>
74
- <Wrapper gapOffsetDegree={real.offsetDegree} viewBoxSize={viewBoxSize}>
75
- <Rail color={real.railColor} gapDegree={real.gapDegree} radius={radius()} railWidth={real.railWidth} viewBoxSize={viewBoxSize} />
76
- <Fill color={real.fillColor} fillWidth={real.fillWidth} gapDegree={real.gapDegree} offsetDegree={real.offsetDegree} percent={real.percent} radius={radius()} viewBoxSize={viewBoxSize} />
77
- </Wrapper>
78
- <div style={{
74
+ }, styles().root)}>
75
+ <div class={classes().wrapper} style={combineStyle({}, styles().wrapper)}>
76
+ <Wrapper gapOffsetDegree={real.offsetDegree} viewBoxSize={viewBoxSize}>
77
+ <Rail color={real.railColor} gapDegree={real.gapDegree} radius={radius()} railWidth={real.railWidth} viewBoxSize={viewBoxSize} />
78
+ <Fill color={real.fillColor} fillWidth={real.fillWidth} gapDegree={real.gapDegree} offsetDegree={real.offsetDegree} percent={real.percent} radius={radius()} viewBoxSize={viewBoxSize} />
79
+ </Wrapper>
80
+ </div>
81
+ <div class={classes().content} style={combineStyle({
79
82
  position: "absolute",
80
83
  inset: 0,
81
84
  display: "flex",
82
85
  "align-items": "center",
83
86
  "justify-content": "center"
84
- }}>
87
+ }, styles().content)}>
85
88
  {props.children}
86
89
  </div>
87
90
  </div>;
@@ -1,5 +1,5 @@
1
1
  import { ClassNames, Styles } from "../../utils/types.js";
2
- import * as solid_js18 from "solid-js";
2
+ import * as solid_js45 from "solid-js";
3
3
 
4
4
  //#region src/components/progress/line-progress.d.ts
5
5
  interface LineProgressState {
@@ -17,6 +17,6 @@ declare function LineProgress(props: {
17
17
  width?: string;
18
18
  classNames?: ClassNames<"root" | "rail" | "fill", LineProgressState>;
19
19
  styles?: Styles<"root" | "rail" | "fill", LineProgressState>;
20
- }): solid_js18.JSX.Element;
20
+ }): solid_js45.JSX.Element;
21
21
  //#endregion
22
22
  export { LineProgress, LineProgressState };
@@ -2,7 +2,7 @@ import { createClassStyles, getGlobalToken } from "../../utils/index.js";
2
2
  import progress_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/progress/progress.js";
3
3
  import { className, effect, setAttribute, style, template } from "solid-js/web";
4
4
  import { createMemo } from "solid-js";
5
- import { combineClass, combineStyle, dataIf, mountStyle } from "solid-tiny-utils";
5
+ import { clamp, combineClass, combineStyle, dataIf, mountStyle } from "solid-tiny-utils";
6
6
 
7
7
  //#region src/components/progress/line-progress.tsx
8
8
  var _tmpl$ = /* @__PURE__ */ template(`<div role=progressbar><div><div>`);
@@ -10,10 +10,10 @@ function LineProgress(props) {
10
10
  mountStyle(progress_default, "tiny-progress");
11
11
  const normalizedPercent = createMemo(() => {
12
12
  if (props.percent === void 0) return 45;
13
- return Math.min(100, Math.max(0, props.percent));
13
+ return clamp(props.percent, 0, 100);
14
14
  });
15
15
  const background = createMemo(() => {
16
- const color = props.fillColor || getGlobalToken("c-brand-5");
16
+ const color = props.fillColor || `rgb(${getGlobalToken("rgb-brand-5")})`;
17
17
  if (props.indeterminate) return `linear-gradient(90deg, transparent, ${color} 30%, ${color} 65%, transparent)`;
18
18
  return color;
19
19
  });
@@ -32,11 +32,12 @@ function LineProgress(props) {
32
32
  overflow: "hidden",
33
33
  display: "flex",
34
34
  "align-items": "center",
35
- "border-radius": "3px"
35
+ "border-radius": "3px",
36
+ width: props.width || "100%"
36
37
  }, styles().root), _v$4 = combineClass("tiny-progress-line-rail", classes().rail), _v$5 = combineStyle({
37
38
  height: "1px",
38
39
  width: props.width || "100%",
39
- background: props.railColor || getGlobalToken("c-neutral-3"),
40
+ background: props.railColor || `rgb(${getGlobalToken("rgb-neutral-3")})`,
40
41
  overflow: "visible"
41
42
  }, styles().rail), _v$6 = combineClass("tiny-progress-line-fill", classes().fill), _v$7 = dataIf(props.indeterminate ?? false), _v$8 = combineStyle({
42
43
  width: `${normalizedPercent()}%`,