@g4rcez/components 5.0.0 → 5.0.1

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 (366) hide show
  1. package/dist/{MotionConfig-BLwtdAWy.js → MotionConfig-DKKYqBH2.js} +2 -2
  2. package/dist/{MotionConfig-BLwtdAWy.js.map → MotionConfig-DKKYqBH2.js.map} +1 -1
  3. package/dist/{autocomplete-DVKTP0Il.js → autocomplete-D3VOTihi.js} +2 -2
  4. package/dist/{autocomplete-DVKTP0Il.js.map → autocomplete-D3VOTihi.js.map} +1 -1
  5. package/dist/{calendar-_DZjphH8.js → calendar-PCCZDUIL.js} +4 -4
  6. package/dist/{calendar-_DZjphH8.js.map → calendar-PCCZDUIL.js.map} +1 -1
  7. package/dist/components/display/alert.js +1 -1
  8. package/dist/components/display/calendar.js +1 -1
  9. package/dist/components/display/list.js +2 -2
  10. package/dist/components/display/notifications.js +1 -1
  11. package/dist/components/floating/expand.js +1 -1
  12. package/dist/components/floating/modal.js +1 -1
  13. package/dist/components/form/autocomplete.js +1 -1
  14. package/dist/components/form/date-picker.js +1 -1
  15. package/dist/components/form/file-upload.js +1 -1
  16. package/dist/components/table/table.js +1 -1
  17. package/dist/{date-picker-9q_Ki5Vu.js → date-picker-BhKEFZew.js} +2 -2
  18. package/dist/{date-picker-9q_Ki5Vu.js.map → date-picker-BhKEFZew.js.map} +1 -1
  19. package/dist/{dist-Buc00Zls.js → dist-BrGpYRaj.js} +56 -55
  20. package/dist/{dist-Buc00Zls.js.map → dist-BrGpYRaj.js.map} +1 -1
  21. package/dist/{file-upload-COk6_Bs5.js → file-upload-DWbZfeG5.js} +15 -15
  22. package/dist/{file-upload-COk6_Bs5.js.map → file-upload-DWbZfeG5.js.map} +1 -1
  23. package/dist/index.js +646 -647
  24. package/dist/index.js.map +1 -1
  25. package/dist/{modal-Cn-OaKRp.js → modal-Bz-61ays.js} +3 -3
  26. package/dist/{modal-Cn-OaKRp.js.map → modal-Bz-61ays.js.map} +1 -1
  27. package/dist/{notifications-l_B9J4Gx.js → notifications-MT4XkLov.js} +270 -269
  28. package/dist/{notifications-l_B9J4Gx.js.map → notifications-MT4XkLov.js.map} +1 -1
  29. package/dist/{proxy-Drpz0Avo.js → proxy-BcJ_5Dwq.js} +465 -468
  30. package/dist/{proxy-Drpz0Avo.js.map → proxy-BcJ_5Dwq.js.map} +1 -1
  31. package/dist/{table-Dql6Yzag.js → table-CUFbAI2k.js} +3 -3
  32. package/dist/{table-Dql6Yzag.js.map → table-CUFbAI2k.js.map} +1 -1
  33. package/package.json +1 -1
  34. package/dist/src/components/core/button.d.ts +0 -77
  35. package/dist/src/components/core/button.d.ts.map +0 -1
  36. package/dist/src/components/core/button.jsx +0 -79
  37. package/dist/src/components/core/heading.d.ts +0 -3
  38. package/dist/src/components/core/heading.d.ts.map +0 -1
  39. package/dist/src/components/core/heading.jsx +0 -4
  40. package/dist/src/components/core/polymorph.d.ts +0 -10
  41. package/dist/src/components/core/polymorph.d.ts.map +0 -1
  42. package/dist/src/components/core/polymorph.jsx +0 -5
  43. package/dist/src/components/core/render-on-view.d.ts +0 -7
  44. package/dist/src/components/core/render-on-view.d.ts.map +0 -1
  45. package/dist/src/components/core/render-on-view.jsx +0 -31
  46. package/dist/src/components/core/resizable.d.ts +0 -3
  47. package/dist/src/components/core/resizable.d.ts.map +0 -1
  48. package/dist/src/components/core/resizable.jsx +0 -51
  49. package/dist/src/components/core/slot.d.ts +0 -16
  50. package/dist/src/components/core/slot.d.ts.map +0 -1
  51. package/dist/src/components/core/slot.jsx +0 -156
  52. package/dist/src/components/core/tag.d.ts +0 -35
  53. package/dist/src/components/core/tag.d.ts.map +0 -1
  54. package/dist/src/components/core/tag.jsx +0 -53
  55. package/dist/src/components/core/typography.d.ts +0 -25
  56. package/dist/src/components/core/typography.d.ts.map +0 -1
  57. package/dist/src/components/core/typography.jsx +0 -20
  58. package/dist/src/components/display/alert.d.ts +0 -28
  59. package/dist/src/components/display/alert.d.ts.map +0 -1
  60. package/dist/src/components/display/alert.jsx +0 -61
  61. package/dist/src/components/display/calendar.d.ts +0 -42
  62. package/dist/src/components/display/calendar.d.ts.map +0 -1
  63. package/dist/src/components/display/calendar.jsx +0 -318
  64. package/dist/src/components/display/card.d.ts +0 -29
  65. package/dist/src/components/display/card.d.ts.map +0 -1
  66. package/dist/src/components/display/card.jsx +0 -43
  67. package/dist/src/components/display/empty.d.ts +0 -8
  68. package/dist/src/components/display/empty.d.ts.map +0 -1
  69. package/dist/src/components/display/empty.jsx +0 -11
  70. package/dist/src/components/display/list.d.ts +0 -16
  71. package/dist/src/components/display/list.d.ts.map +0 -1
  72. package/dist/src/components/display/list.jsx +0 -85
  73. package/dist/src/components/display/notifications.d.ts +0 -27
  74. package/dist/src/components/display/notifications.d.ts.map +0 -1
  75. package/dist/src/components/display/notifications.jsx +0 -130
  76. package/dist/src/components/display/progress.d.ts +0 -16
  77. package/dist/src/components/display/progress.d.ts.map +0 -1
  78. package/dist/src/components/display/progress.jsx +0 -21
  79. package/dist/src/components/display/shortcut.d.ts +0 -4
  80. package/dist/src/components/display/shortcut.d.ts.map +0 -1
  81. package/dist/src/components/display/shortcut.jsx +0 -23
  82. package/dist/src/components/display/skeleton.d.ts +0 -12
  83. package/dist/src/components/display/skeleton.d.ts.map +0 -1
  84. package/dist/src/components/display/skeleton.jsx +0 -19
  85. package/dist/src/components/display/spinner.d.ts +0 -5
  86. package/dist/src/components/display/spinner.d.ts.map +0 -1
  87. package/dist/src/components/display/spinner.jsx +0 -11
  88. package/dist/src/components/display/stats.d.ts +0 -12
  89. package/dist/src/components/display/stats.d.ts.map +0 -1
  90. package/dist/src/components/display/stats.jsx +0 -16
  91. package/dist/src/components/display/step.d.ts +0 -24
  92. package/dist/src/components/display/step.d.ts.map +0 -1
  93. package/dist/src/components/display/step.jsx +0 -145
  94. package/dist/src/components/display/tabs.d.ts +0 -24
  95. package/dist/src/components/display/tabs.d.ts.map +0 -1
  96. package/dist/src/components/display/tabs.jsx +0 -125
  97. package/dist/src/components/display/timeline.d.ts +0 -10
  98. package/dist/src/components/display/timeline.d.ts.map +0 -1
  99. package/dist/src/components/display/timeline.jsx +0 -25
  100. package/dist/src/components/floating/command-palette.d.ts +0 -49
  101. package/dist/src/components/floating/command-palette.d.ts.map +0 -1
  102. package/dist/src/components/floating/command-palette.jsx +0 -223
  103. package/dist/src/components/floating/dropdown.d.ts +0 -15
  104. package/dist/src/components/floating/dropdown.d.ts.map +0 -1
  105. package/dist/src/components/floating/dropdown.jsx +0 -56
  106. package/dist/src/components/floating/expand.d.ts +0 -11
  107. package/dist/src/components/floating/expand.d.ts.map +0 -1
  108. package/dist/src/components/floating/expand.jsx +0 -44
  109. package/dist/src/components/floating/menu.d.ts +0 -52
  110. package/dist/src/components/floating/menu.d.ts.map +0 -1
  111. package/dist/src/components/floating/menu.jsx +0 -165
  112. package/dist/src/components/floating/modal.d.ts +0 -60
  113. package/dist/src/components/floating/modal.d.ts.map +0 -1
  114. package/dist/src/components/floating/modal.jsx +0 -336
  115. package/dist/src/components/floating/toolbar.d.ts +0 -6
  116. package/dist/src/components/floating/toolbar.d.ts.map +0 -1
  117. package/dist/src/components/floating/toolbar.jsx +0 -5
  118. package/dist/src/components/floating/tooltip.d.ts +0 -17
  119. package/dist/src/components/floating/tooltip.d.ts.map +0 -1
  120. package/dist/src/components/floating/tooltip.jsx +0 -67
  121. package/dist/src/components/floating/wizard.d.ts +0 -26
  122. package/dist/src/components/floating/wizard.d.ts.map +0 -1
  123. package/dist/src/components/floating/wizard.jsx +0 -165
  124. package/dist/src/components/form/autocomplete.d.ts +0 -16
  125. package/dist/src/components/form/autocomplete.d.ts.map +0 -1
  126. package/dist/src/components/form/autocomplete.jsx +0 -290
  127. package/dist/src/components/form/checkbox.d.ts +0 -12
  128. package/dist/src/components/form/checkbox.d.ts.map +0 -1
  129. package/dist/src/components/form/checkbox.jsx +0 -12
  130. package/dist/src/components/form/date-picker.d.ts +0 -10
  131. package/dist/src/components/form/date-picker.d.ts.map +0 -1
  132. package/dist/src/components/form/date-picker.jsx +0 -115
  133. package/dist/src/components/form/file-upload.d.ts +0 -15
  134. package/dist/src/components/form/file-upload.d.ts.map +0 -1
  135. package/dist/src/components/form/file-upload.jsx +0 -138
  136. package/dist/src/components/form/form.d.ts +0 -3
  137. package/dist/src/components/form/form.d.ts.map +0 -1
  138. package/dist/src/components/form/form.jsx +0 -10
  139. package/dist/src/components/form/formReset.d.ts +0 -2
  140. package/dist/src/components/form/formReset.d.ts.map +0 -1
  141. package/dist/src/components/form/formReset.jsx +0 -17
  142. package/dist/src/components/form/free-text.d.ts +0 -11
  143. package/dist/src/components/form/free-text.d.ts.map +0 -1
  144. package/dist/src/components/form/free-text.jsx +0 -41
  145. package/dist/src/components/form/input-field.d.ts +0 -34
  146. package/dist/src/components/form/input-field.d.ts.map +0 -1
  147. package/dist/src/components/form/input-field.jsx +0 -58
  148. package/dist/src/components/form/input.d.ts +0 -52
  149. package/dist/src/components/form/input.d.ts.map +0 -1
  150. package/dist/src/components/form/input.jsx +0 -36
  151. package/dist/src/components/form/multi-select.d.ts +0 -19
  152. package/dist/src/components/form/multi-select.d.ts.map +0 -1
  153. package/dist/src/components/form/multi-select.jsx +0 -344
  154. package/dist/src/components/form/radiobox.d.ts +0 -7
  155. package/dist/src/components/form/radiobox.d.ts.map +0 -1
  156. package/dist/src/components/form/radiobox.jsx +0 -6
  157. package/dist/src/components/form/select.d.ts +0 -13
  158. package/dist/src/components/form/select.d.ts.map +0 -1
  159. package/dist/src/components/form/select.jsx +0 -44
  160. package/dist/src/components/form/slider.d.ts +0 -7
  161. package/dist/src/components/form/slider.d.ts.map +0 -1
  162. package/dist/src/components/form/slider.jsx +0 -45
  163. package/dist/src/components/form/switch.d.ts +0 -9
  164. package/dist/src/components/form/switch.d.ts.map +0 -1
  165. package/dist/src/components/form/switch.jsx +0 -46
  166. package/dist/src/components/form/task-list.d.ts +0 -3
  167. package/dist/src/components/form/task-list.d.ts.map +0 -1
  168. package/dist/src/components/form/task-list.jsx +0 -26
  169. package/dist/src/components/form/textarea.d.ts +0 -5
  170. package/dist/src/components/form/textarea.d.ts.map +0 -1
  171. package/dist/src/components/form/textarea.jsx +0 -26
  172. package/dist/src/components/index.d.ts +0 -45
  173. package/dist/src/components/index.d.ts.map +0 -1
  174. package/dist/src/components/index.js +0 -44
  175. package/dist/src/components/page-calendar/calendar-header.d.ts +0 -16
  176. package/dist/src/components/page-calendar/calendar-header.d.ts.map +0 -1
  177. package/dist/src/components/page-calendar/calendar-header.jsx +0 -83
  178. package/dist/src/components/page-calendar/day-view.d.ts +0 -12
  179. package/dist/src/components/page-calendar/day-view.d.ts.map +0 -1
  180. package/dist/src/components/page-calendar/day-view.jsx +0 -89
  181. package/dist/src/components/page-calendar/event-pill.d.ts +0 -9
  182. package/dist/src/components/page-calendar/event-pill.d.ts.map +0 -1
  183. package/dist/src/components/page-calendar/event-pill.jsx +0 -25
  184. package/dist/src/components/page-calendar/index.d.ts +0 -4
  185. package/dist/src/components/page-calendar/index.d.ts.map +0 -1
  186. package/dist/src/components/page-calendar/index.js +0 -2
  187. package/dist/src/components/page-calendar/month-view.d.ts +0 -11
  188. package/dist/src/components/page-calendar/month-view.d.ts.map +0 -1
  189. package/dist/src/components/page-calendar/month-view.jsx +0 -46
  190. package/dist/src/components/page-calendar/page-calendar.d.ts +0 -18
  191. package/dist/src/components/page-calendar/page-calendar.d.ts.map +0 -1
  192. package/dist/src/components/page-calendar/page-calendar.jsx +0 -41
  193. package/dist/src/components/page-calendar/page-calendar.types.d.ts +0 -18
  194. package/dist/src/components/page-calendar/page-calendar.types.d.ts.map +0 -1
  195. package/dist/src/components/page-calendar/page-calendar.types.js +0 -1
  196. package/dist/src/components/page-calendar/page-calendar.utils.d.ts +0 -24
  197. package/dist/src/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
  198. package/dist/src/components/page-calendar/page-calendar.utils.js +0 -93
  199. package/dist/src/components/page-calendar/week-view.d.ts +0 -11
  200. package/dist/src/components/page-calendar/week-view.d.ts.map +0 -1
  201. package/dist/src/components/page-calendar/week-view.jsx +0 -66
  202. package/dist/src/components/table/filter.d.ts +0 -42
  203. package/dist/src/components/table/filter.d.ts.map +0 -1
  204. package/dist/src/components/table/filter.jsx +0 -169
  205. package/dist/src/components/table/group.d.ts +0 -17
  206. package/dist/src/components/table/group.d.ts.map +0 -1
  207. package/dist/src/components/table/group.jsx +0 -75
  208. package/dist/src/components/table/index.d.ts +0 -19
  209. package/dist/src/components/table/index.d.ts.map +0 -1
  210. package/dist/src/components/table/index.jsx +0 -63
  211. package/dist/src/components/table/inner-table.d.ts +0 -29
  212. package/dist/src/components/table/inner-table.d.ts.map +0 -1
  213. package/dist/src/components/table/inner-table.jsx +0 -102
  214. package/dist/src/components/table/metadata.d.ts +0 -4
  215. package/dist/src/components/table/metadata.d.ts.map +0 -1
  216. package/dist/src/components/table/metadata.jsx +0 -36
  217. package/dist/src/components/table/pagination.d.ts +0 -5
  218. package/dist/src/components/table/pagination.d.ts.map +0 -1
  219. package/dist/src/components/table/pagination.jsx +0 -74
  220. package/dist/src/components/table/row.d.ts +0 -11
  221. package/dist/src/components/table/row.d.ts.map +0 -1
  222. package/dist/src/components/table/row.jsx +0 -49
  223. package/dist/src/components/table/sort.d.ts +0 -28
  224. package/dist/src/components/table/sort.d.ts.map +0 -1
  225. package/dist/src/components/table/sort.jsx +0 -109
  226. package/dist/src/components/table/table-lib.d.ts +0 -135
  227. package/dist/src/components/table/table-lib.d.ts.map +0 -1
  228. package/dist/src/components/table/table-lib.js +0 -83
  229. package/dist/src/components/table/table.context.d.ts +0 -10
  230. package/dist/src/components/table/table.context.d.ts.map +0 -1
  231. package/dist/src/components/table/table.context.jsx +0 -5
  232. package/dist/src/components/table/thead.d.ts +0 -9
  233. package/dist/src/components/table/thead.d.ts.map +0 -1
  234. package/dist/src/components/table/thead.jsx +0 -103
  235. package/dist/src/config/context.d.ts +0 -21
  236. package/dist/src/config/context.d.ts.map +0 -1
  237. package/dist/src/config/context.js +0 -12
  238. package/dist/src/config/default-translations.d.ts +0 -94
  239. package/dist/src/config/default-translations.d.ts.map +0 -1
  240. package/dist/src/config/default-translations.jsx +0 -87
  241. package/dist/src/config/default-tweaks.d.ts +0 -13
  242. package/dist/src/config/default-tweaks.d.ts.map +0 -1
  243. package/dist/src/config/default-tweaks.js +0 -4
  244. package/dist/src/constants.d.ts +0 -3
  245. package/dist/src/constants.d.ts.map +0 -1
  246. package/dist/src/constants.js +0 -2
  247. package/dist/src/hooks/use-click-outside.d.ts +0 -3
  248. package/dist/src/hooks/use-click-outside.d.ts.map +0 -1
  249. package/dist/src/hooks/use-click-outside.js +0 -17
  250. package/dist/src/hooks/use-color-parser.d.ts +0 -2
  251. package/dist/src/hooks/use-color-parser.d.ts.map +0 -1
  252. package/dist/src/hooks/use-color-parser.js +0 -9
  253. package/dist/src/hooks/use-components-provider.d.ts +0 -15
  254. package/dist/src/hooks/use-components-provider.d.ts.map +0 -1
  255. package/dist/src/hooks/use-components-provider.jsx +0 -22
  256. package/dist/src/hooks/use-debounce.d.ts +0 -5
  257. package/dist/src/hooks/use-debounce.d.ts.map +0 -1
  258. package/dist/src/hooks/use-debounce.js +0 -12
  259. package/dist/src/hooks/use-floating-ref.d.ts +0 -2
  260. package/dist/src/hooks/use-floating-ref.d.ts.map +0 -1
  261. package/dist/src/hooks/use-floating-ref.js +0 -6
  262. package/dist/src/hooks/use-form.d.ts +0 -394
  263. package/dist/src/hooks/use-form.d.ts.map +0 -1
  264. package/dist/src/hooks/use-form.js +0 -563
  265. package/dist/src/hooks/use-hover.d.ts +0 -3
  266. package/dist/src/hooks/use-hover.d.ts.map +0 -1
  267. package/dist/src/hooks/use-hover.js +0 -18
  268. package/dist/src/hooks/use-input-id.d.ts +0 -4
  269. package/dist/src/hooks/use-input-id.d.ts.map +0 -1
  270. package/dist/src/hooks/use-input-id.js +0 -5
  271. package/dist/src/hooks/use-is-coarse-device.d.ts +0 -2
  272. package/dist/src/hooks/use-is-coarse-device.d.ts.map +0 -1
  273. package/dist/src/hooks/use-is-coarse-device.js +0 -12
  274. package/dist/src/hooks/use-locale.d.ts +0 -3
  275. package/dist/src/hooks/use-locale.d.ts.map +0 -1
  276. package/dist/src/hooks/use-locale.js +0 -10
  277. package/dist/src/hooks/use-media-query.d.ts +0 -2
  278. package/dist/src/hooks/use-media-query.d.ts.map +0 -1
  279. package/dist/src/hooks/use-media-query.js +0 -25
  280. package/dist/src/hooks/use-on-event.d.ts +0 -4
  281. package/dist/src/hooks/use-on-event.d.ts.map +0 -1
  282. package/dist/src/hooks/use-on-event.js +0 -10
  283. package/dist/src/hooks/use-parent.d.ts +0 -3
  284. package/dist/src/hooks/use-parent.d.ts.map +0 -1
  285. package/dist/src/hooks/use-parent.js +0 -21
  286. package/dist/src/hooks/use-preferences.d.ts +0 -2
  287. package/dist/src/hooks/use-preferences.d.ts.map +0 -1
  288. package/dist/src/hooks/use-preferences.js +0 -23
  289. package/dist/src/hooks/use-previous.d.ts +0 -2
  290. package/dist/src/hooks/use-previous.d.ts.map +0 -1
  291. package/dist/src/hooks/use-previous.js +0 -9
  292. package/dist/src/hooks/use-reactive.d.ts +0 -2
  293. package/dist/src/hooks/use-reactive.d.ts.map +0 -1
  294. package/dist/src/hooks/use-reactive.js +0 -9
  295. package/dist/src/hooks/use-remove-scroll.d.ts +0 -4
  296. package/dist/src/hooks/use-remove-scroll.d.ts.map +0 -1
  297. package/dist/src/hooks/use-remove-scroll.js +0 -48
  298. package/dist/src/hooks/use-resize-observer.d.ts +0 -2
  299. package/dist/src/hooks/use-resize-observer.d.ts.map +0 -1
  300. package/dist/src/hooks/use-resize-observer.js +0 -17
  301. package/dist/src/hooks/use-stable-ref.d.ts +0 -2
  302. package/dist/src/hooks/use-stable-ref.d.ts.map +0 -1
  303. package/dist/src/hooks/use-stable-ref.js +0 -9
  304. package/dist/src/hooks/use-swipe.d.ts +0 -8
  305. package/dist/src/hooks/use-swipe.d.ts.map +0 -1
  306. package/dist/src/hooks/use-swipe.js +0 -17
  307. package/dist/src/hooks/use-translations.d.ts +0 -92
  308. package/dist/src/hooks/use-translations.d.ts.map +0 -1
  309. package/dist/src/hooks/use-translations.js +0 -9
  310. package/dist/src/hooks/use-tweaks.d.ts +0 -3
  311. package/dist/src/hooks/use-tweaks.d.ts.map +0 -1
  312. package/dist/src/hooks/use-tweaks.js +0 -9
  313. package/dist/src/hooks/use-window-size.d.ts +0 -5
  314. package/dist/src/hooks/use-window-size.d.ts.map +0 -1
  315. package/dist/src/hooks/use-window-size.js +0 -14
  316. package/dist/src/index.d.ts +0 -22
  317. package/dist/src/index.d.ts.map +0 -1
  318. package/dist/src/index.js +0 -20
  319. package/dist/src/lib/combi-keys.d.ts +0 -15
  320. package/dist/src/lib/combi-keys.d.ts.map +0 -1
  321. package/dist/src/lib/combi-keys.js +0 -60
  322. package/dist/src/lib/dict.d.ts +0 -9
  323. package/dist/src/lib/dict.d.ts.map +0 -1
  324. package/dist/src/lib/dict.js +0 -28
  325. package/dist/src/lib/dom.d.ts +0 -20
  326. package/dist/src/lib/dom.d.ts.map +0 -1
  327. package/dist/src/lib/dom.js +0 -185
  328. package/dist/src/lib/fns.d.ts +0 -11
  329. package/dist/src/lib/fns.d.ts.map +0 -1
  330. package/dist/src/lib/fns.js +0 -46
  331. package/dist/src/lib/fzf.d.ts +0 -16
  332. package/dist/src/lib/fzf.d.ts.map +0 -1
  333. package/dist/src/lib/fzf.js +0 -115
  334. package/dist/src/lib/keyboard-area.d.ts +0 -16
  335. package/dist/src/lib/keyboard-area.d.ts.map +0 -1
  336. package/dist/src/lib/keyboard-area.js +0 -14
  337. package/dist/src/styles/common.d.ts +0 -8
  338. package/dist/src/styles/common.d.ts.map +0 -1
  339. package/dist/src/styles/common.js +0 -20
  340. package/dist/src/styles/components.d.ts +0 -3
  341. package/dist/src/styles/components.d.ts.map +0 -1
  342. package/dist/src/styles/components.js +0 -397
  343. package/dist/src/styles/dark.d.ts +0 -3
  344. package/dist/src/styles/dark.d.ts.map +0 -1
  345. package/dist/src/styles/dark.js +0 -217
  346. package/dist/src/styles/default-tokens.d.ts +0 -74
  347. package/dist/src/styles/default-tokens.d.ts.map +0 -1
  348. package/dist/src/styles/default-tokens.js +0 -41
  349. package/dist/src/styles/design-tokens.d.ts +0 -29
  350. package/dist/src/styles/design-tokens.d.ts.map +0 -1
  351. package/dist/src/styles/design-tokens.js +0 -73
  352. package/dist/src/styles/light.d.ts +0 -3
  353. package/dist/src/styles/light.d.ts.map +0 -1
  354. package/dist/src/styles/light.js +0 -217
  355. package/dist/src/styles/theme.d.ts +0 -3
  356. package/dist/src/styles/theme.d.ts.map +0 -1
  357. package/dist/src/styles/theme.js +0 -4
  358. package/dist/src/styles/theme.types.d.ts +0 -540
  359. package/dist/src/styles/theme.types.d.ts.map +0 -1
  360. package/dist/src/styles/theme.types.js +0 -1
  361. package/dist/src/types.d.ts +0 -26
  362. package/dist/src/types.d.ts.map +0 -1
  363. package/dist/src/types.js +0 -1
  364. package/dist/tsconfig.lib.tsbuildinfo +0 -1
  365. package/dist/with-selector-BAUQ-vKK.js +0 -187
  366. package/dist/with-selector-BAUQ-vKK.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-tokens.d.ts","sourceRoot":"","sources":["../../../src/styles/default-tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAavB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;CAQtB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC"}
@@ -1,41 +0,0 @@
1
- export const defaultSpacingTokens = {
2
- base: "1rem",
3
- hairline: "0.0625rem",
4
- lg: "1.125rem",
5
- sm: "0.75rem",
6
- dialog: "20rem",
7
- "field-height": "1.5rem",
8
- "field-label": "0.875rem",
9
- "input-height": "2.5rem",
10
- "input-x": "0.5rem",
11
- "input-y": "0.25rem",
12
- "input-inline": "0.25rem",
13
- "input-gap": "0.3rem",
14
- };
15
- export const defaultRoundedTokens = {
16
- button: "0.55rem",
17
- pill: "2rem",
18
- card: "0.75rem",
19
- full: "9999px",
20
- };
21
- export const defaultZIndexTokens = {
22
- wizard: "50",
23
- normal: "1",
24
- navbar: "22",
25
- calendar: "2",
26
- overlay: "21",
27
- tooltip: "20",
28
- floating: "22",
29
- };
30
- export const defaultShadowTokens = {
31
- "shadow-notification": "1px 2px 2px 2px hsla(210, 25%, 40%, 0.15)",
32
- "shadow-floating": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
33
- "shadow-card": "0px 1px 2px 1px hsla(210, 25%, 20%, 0.1)",
34
- "shadow-table": "0px 1px 1px 1px hsla(210, 0%, 0%, 0.1)",
35
- };
36
- export const defaultTokens = {
37
- spacing: defaultSpacingTokens,
38
- rounded: defaultRoundedTokens,
39
- zIndex: defaultZIndexTokens,
40
- shadow: defaultShadowTokens,
41
- };
@@ -1,29 +0,0 @@
1
- import { CSSProperties } from "react";
2
- import { DesignTokens, DesignTokensBuilder, DesignTokensParser, GeneralTokens, Token } from "./theme.types";
3
- export declare const parsers: {
4
- hex: (v: string) => string;
5
- raw: (v: string) => string;
6
- hsl: (v: string) => `hsl(${string})`;
7
- rgb: (v: string) => `rgb(${string})`;
8
- z: (_: string, __: string, k: string) => `var(--z-${string})`;
9
- hsla: (v: string) => `hsla(${string})`;
10
- rgba: (v: string) => `rgba(${string})`;
11
- cssVariable: (_: string, __: string, k: string) => `var(--${string})`;
12
- formatWithVar: (format: string) => (_: string, __: string, v: string) => `${string}(var(--${string}), <alpha-value>)`;
13
- };
14
- export declare const reduceTokens: <T extends GeneralTokens>(colors: T, parse: DesignTokensBuilder, prefix?: string, append?: string) => Token[];
15
- export declare const createDesignTokens: <T extends GeneralTokens, Fn extends DesignTokensParser>(colors: T, parse: Fn, prefix?: string, append?: string) => T;
16
- export declare const createStyles: {
17
- default: (tokens: Token[]) => string;
18
- dark: (tokens: Token[]) => string;
19
- };
20
- type TokenParsersType = "colors" | "spacing" | "rounded" | "components" | "customTokens" | "zIndex";
21
- type TokenCustomParser = (t: Token) => Token;
22
- export type TokenRemap = Partial<Record<TokenParsersType, TokenCustomParser> & {
23
- name: string;
24
- }>;
25
- export declare const createTheme: (theme: DesignTokens, name?: string) => string;
26
- export declare const createCssProperties: (theme: DesignTokens, map?: TokenRemap) => CSSProperties;
27
- export declare const createTokenStyles: (theme: DesignTokens, map?: TokenRemap) => string;
28
- export {};
29
- //# sourceMappingURL=design-tokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"design-tokens.d.ts","sourceRoot":"","sources":["../../../src/styles/design-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE5G,eAAO,MAAM,OAAO;aACP,MAAM;aACN,MAAM;aACN,MAAM;aACN,MAAM;;cAEL,MAAM;cACN,MAAM;;4BAEQ,MAAM,SAAS,MAAM,MAAM,MAAM,KAAK,MAAM;CAC1B,CAAC;AAE/C,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,aAAa,EAAE,QAAQ,CAAC,EAAE,OAAO,mBAAmB,EAAE,SAAQ,MAAW,EAAE,SAAQ,MAAW,KAAG,KAAK,EAQnI,CAAC;AAEX,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,aAAa,EAAE,EAAE,SAAS,kBAAkB,EACrF,QAAQ,CAAC,EACT,OAAO,EAAE,EACT,SAAQ,MAAW,EACnB,SAAQ,MAAW,KACpB,CAWY,CAAC;AAmBhB,eAAO,MAAM,YAAY;sBACH,KAAK,EAAE;mBACV,KAAK,EAAE;CACzB,CAAC;AAEF,KAAK,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,cAAc,GAAG,QAAQ,CAAC;AAEpG,KAAK,iBAAiB,GAAG,CAAC,CAAC,EAAE,KAAK,KAAK,KAAK,CAAC;AAE7C,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAyBjG,eAAO,MAAM,WAAW,GAAI,OAAO,YAAY,EAAE,OAAO,MAAM,WAIxD,CAAC;AAEP,eAAO,MAAM,mBAAmB,GAAI,OAAO,YAAY,EAAE,MAAM,UAAU,KAAG,aAG3E,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,YAAY,EAAE,MAAM,UAAU,WAIjE,CAAC"}
@@ -1,73 +0,0 @@
1
- export const parsers = {
2
- hex: (v) => v,
3
- raw: (v) => v,
4
- hsl: (v) => `hsl(${v})`,
5
- rgb: (v) => `rgb(${v})`,
6
- z: (_, __, k) => `var(--z-${k})`,
7
- hsla: (v) => `hsla(${v})`,
8
- rgba: (v) => `rgba(${v})`,
9
- cssVariable: (_, __, k) => `var(--${k})`,
10
- formatWithVar: (format) => (_, __, v) => `${format}(var(--${v}), <alpha-value>)`,
11
- };
12
- export const reduceTokens = (colors, parse, prefix = "", append = "") => Object.entries(colors).reduce((acc, [key, value]) => {
13
- const combine = append === "" ? `${prefix}${key}` : `${append}-${key}`;
14
- if (typeof value === "string") {
15
- const k = append === "" ? `${prefix}${key}` : key;
16
- return acc.concat(parse(value, k, combine));
17
- }
18
- return acc.concat(reduceTokens(value, parse, prefix, combine));
19
- }, []);
20
- export const createDesignTokens = (colors, parse, prefix = "", append = "") => Object.entries(colors).reduce((acc, [key, value]) => {
21
- const combine = append === "" ? `${prefix}${key}` : `${append}-${key}`;
22
- if (typeof value === "string") {
23
- const k = append === "" ? `${prefix}${key}` : key;
24
- return { ...acc, [k]: parse(value, key, combine) };
25
- }
26
- return {
27
- ...acc,
28
- [key]: createDesignTokens(value, parse, prefix, combine),
29
- };
30
- }, {});
31
- const modifiers = {
32
- default: (variables) => `:root { ${variables} }`,
33
- dark: (variables) => `html.dark {${variables}}`,
34
- };
35
- const createStyleContent = (tokens, modifiers) => {
36
- const v = modifiers.value || ((_, s) => s);
37
- const content = tokens.map((token) => `${token.key}: ${v(token.key, token.value)}`).join(";");
38
- return modifiers.result(content);
39
- };
40
- export const createStyles = {
41
- default: (tokens) => createStyleContent(tokens, { result: modifiers.default }),
42
- dark: (tokens) => createStyleContent(tokens, { result: modifiers.dark }),
43
- };
44
- const fn = (p) => (value, _, key) => {
45
- const r = { key: `--${key}`, value: `${value}` };
46
- return p ? p(r) : r;
47
- };
48
- const zIndexParser = (t) => ({
49
- key: t.key.replace(/^--/, "--z-"),
50
- value: t.value,
51
- });
52
- const createTokens = (theme, map) => {
53
- const colors = reduceTokens(theme.colors, fn(map?.colors));
54
- const spacing = reduceTokens(theme.spacing, fn(map?.spacing));
55
- const rounded = reduceTokens(theme.rounded, fn(map?.rounded));
56
- const shadow = reduceTokens(theme.shadow, fn(map?.rounded));
57
- const zIndex = reduceTokens(theme.zIndex, fn(map?.zIndex ?? zIndexParser));
58
- const components = theme.components ? reduceTokens(theme.components, fn(map?.components)) : [];
59
- const customTokens = theme.custom ? reduceTokens(theme.custom, fn(map?.customTokens)) : [];
60
- return colors.concat(spacing, rounded, components, customTokens, zIndex, shadow);
61
- };
62
- export const createTheme = (theme, name) => createStyleContent(createTokens(theme), {
63
- result: (variables) => `html${name ? `.${name}` : ""} {${variables}}`,
64
- value: (_, v) => v.replace("hsla(", "").replace(")", ""),
65
- });
66
- export const createCssProperties = (theme, map) => {
67
- const tokens = createTokens(theme, map);
68
- return tokens.reduce((acc, el) => ({ ...acc, [el.key]: el.value }), {});
69
- };
70
- export const createTokenStyles = (theme, map) => createStyleContent(createTokens(theme, map), {
71
- result: (variables) => `html${map?.name ? `.${map.name}` : ""} {${variables}}`,
72
- value: (_, v) => v,
73
- });
@@ -1,3 +0,0 @@
1
- import { DesignTokens } from "./theme.types";
2
- export declare const LIGHT_THEME: DesignTokens;
3
- //# sourceMappingURL=light.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../src/styles/light.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,WAAW,EAAE,YAsNzB,CAAC"}
@@ -1,217 +0,0 @@
1
- import { rounded, spacing, zIndex } from "./common";
2
- import { components } from "./components";
3
- export const LIGHT_THEME = {
4
- rounded,
5
- spacing,
6
- components,
7
- name: "light",
8
- shadow: {
9
- "shadow-notification": "1px 2px 2px 2px hsla(210, 25%, 40%, 0.15)",
10
- "shadow-floating": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
11
- "shadow-card": "0px 1px 2px 1px transparent",
12
- "shadow-table": "0px 1px 1px 1px hsla(210, 0%, 0%, 0.1)",
13
- },
14
- zIndex,
15
- colors: {
16
- foreground: "hsla(221, 15%, 23%)",
17
- background: "hsla(0, 0%, 100%)",
18
- border: "hsla(240, 6%, 90%)",
19
- muted: {
20
- DEFAULT: "hsla(240, 5%, 96%)",
21
- foreground: "hsla(240, 4%, 46%)",
22
- subtle: "hsla(240, 4%, 46%)",
23
- hover: "hsla(240, 5%, 96%)",
24
- },
25
- disabled: "hsla(240, 5%, 96%)",
26
- emphasis: {
27
- foreground: "hsla(199, 89%, 28%)",
28
- DEFAULT: "hsla(199, 89%, 96%)",
29
- subtle: "hsla(199, 89%, 92%)",
30
- hover: "hsla(199, 89%, 24%)",
31
- },
32
- primary: {
33
- foreground: "hsla(240, 6%, 10%)",
34
- DEFAULT: "hsla(201,49%,36%)",
35
- subtle: "hsla(201,49%,28%)",
36
- hover: "hsla(201,49%,22%)",
37
- },
38
- secondary: {
39
- background: "hsla(240, 5%, 96%)",
40
- DEFAULT: "hsla(240, 6%, 10%)",
41
- subtle: "hsla(240, 5%, 96%)",
42
- hover: "hsla(240, 6%, 15%)",
43
- foreground: "hsla(0, 0%, 100%)",
44
- },
45
- info: {
46
- DEFAULT: "hsla(199, 89%, 48%)",
47
- subtle: "hsla(199, 89%, 96%)",
48
- hover: "hsla(199, 89%, 40%)",
49
- foreground: "hsla(0, 0%, 100%)",
50
- notification: "hsla(199, 89%, 48%)",
51
- },
52
- danger: {
53
- DEFAULT: "hsla(0, 84%, 60%)",
54
- subtle: "hsla(0, 84%, 96%)",
55
- hover: "hsla(0, 84%, 50%)",
56
- foreground: "hsla(0, 0%, 100%)",
57
- notification: "hsla(0, 84%, 60%)",
58
- },
59
- warn: {
60
- DEFAULT: "hsla(38, 92%, 50%)",
61
- subtle: "hsla(38, 92%, 96%)",
62
- hover: "hsla(38, 92%, 45%)",
63
- foreground: "hsla(0, 0%, 100%)",
64
- notification: "hsla(38, 92%, 50%)",
65
- },
66
- success: {
67
- DEFAULT: "hsla(142, 71%, 45%)",
68
- subtle: "hsla(142, 71%, 96%)",
69
- hover: "hsla(142, 71%, 40%)",
70
- foreground: "hsla(0, 0%, 100%)",
71
- notification: "hsla(142, 71%, 45%)",
72
- },
73
- ring: "hsla(201,49%,36%)",
74
- input: {
75
- border: "hsla(240, 6%, 90%)",
76
- placeholder: "hsla(240, 4%, 46%)",
77
- "mask-error": "hsla(0, 84%, 96%)",
78
- "switch-bg": "hsla(240, 6%, 90%)",
79
- switch: "hsla(0, 0%, 100%)",
80
- slider: "hsla(199, 89%, 48%)",
81
- },
82
- card: {
83
- muted: "hsla(240, 5%, 96%)",
84
- border: "hsla(240, 6%, 90%)",
85
- background: "hsla(0, 0%, 100%)",
86
- },
87
- floating: {
88
- foreground: "hsla(240, 10%, 4%)",
89
- background: "hsla(0, 0%, 100%)",
90
- hover: "hsla(240, 5%, 96%)",
91
- border: "hsla(240, 6%, 90%)",
92
- overlay: "hsla(240, 10%, 4%)",
93
- },
94
- tooltip: {
95
- foreground: "hsla(0, 0%, 100%)",
96
- background: "hsla(240, 10%, 4%)",
97
- hover: "hsla(240, 10%, 4%)",
98
- border: "hsla(240, 10%, 4%)",
99
- overlay: "hsla(0, 0%, 0%)",
100
- },
101
- table: {
102
- header: "hsla(240, 5%, 96%)",
103
- background: "hsla(0, 0%, 100%)",
104
- border: "hsla(240, 6%, 90%)",
105
- },
106
- button: {
107
- muted: {
108
- bg: "hsla(240, 5%, 96%)",
109
- text: "hsla(240, 6%, 10%)",
110
- },
111
- primary: {
112
- text: "hsla(0, 0%, 100%)",
113
- bg: "hsla(201,49%,36%)",
114
- },
115
- warn: {
116
- bg: "hsla(38, 92%, 50%)",
117
- text: "hsla(38, 92%, 15%)",
118
- },
119
- info: {
120
- text: "hsla(0, 0%, 100%)",
121
- bg: "hsla(199, 89%, 35%)",
122
- },
123
- success: {
124
- text: "hsla(142, 71%, 15%)",
125
- bg: "hsla(142, 71%, 45%)",
126
- },
127
- danger: {
128
- text: "hsla(0, 0%, 100%)",
129
- bg: "hsla(0, 72%, 42%)",
130
- },
131
- neutral: {
132
- text: "hsla(240, 6%, 10%)",
133
- bg: "hsla(240, 5%, 96%)",
134
- },
135
- secondary: {
136
- text: "hsla(0, 0%, 100%)",
137
- bg: "hsla(240, 6%, 10%)",
138
- },
139
- },
140
- tag: {
141
- muted: {
142
- bg: "hsla(240, 5%, 96%)",
143
- text: "hsla(240, 4%, 40%)",
144
- },
145
- primary: {
146
- text: "hsla(199, 89%, 28%)",
147
- bg: "hsla(199, 89%, 96%)",
148
- },
149
- warn: {
150
- bg: "hsla(38, 92%, 96%)",
151
- text: "hsla(38, 92%, 28%)",
152
- },
153
- info: {
154
- text: "hsla(199, 89%, 30%)",
155
- bg: "hsla(199, 89%, 96%)",
156
- },
157
- success: {
158
- text: "hsla(142, 71%, 25%)",
159
- bg: "hsla(142, 71%, 96%)",
160
- },
161
- danger: {
162
- text: "hsla(0, 84%, 40%)",
163
- bg: "hsla(0, 84%, 96%)",
164
- },
165
- neutral: {
166
- text: "hsla(240, 6%, 10%)",
167
- bg: "hsla(240, 5%, 96%)",
168
- },
169
- secondary: {
170
- text: "hsla(0, 0%, 100%)",
171
- bg: "hsla(240, 6%, 10%)",
172
- },
173
- },
174
- alert: {
175
- muted: {
176
- bg: "hsla(240, 5%, 96%)",
177
- text: "hsla(240, 6%, 10%)",
178
- border: "hsla(240, 6%, 90%)",
179
- },
180
- primary: {
181
- text: "hsla(199, 89%, 28%)",
182
- border: "hsla(199, 89%, 90%)",
183
- bg: "hsla(199, 89%, 98%)",
184
- },
185
- warn: {
186
- bg: "hsla(38, 92%, 98%)",
187
- text: "hsla(38, 92%, 28%)",
188
- border: "hsla(38, 92%, 90%)",
189
- },
190
- info: {
191
- text: "hsla(199, 89%, 30%)",
192
- bg: "hsla(199, 89%, 98%)",
193
- border: "hsla(199, 89%, 90%)",
194
- },
195
- success: {
196
- text: "hsla(142, 71%, 30%)",
197
- bg: "hsla(142, 71%, 98%)",
198
- border: "hsla(142, 71%, 90%)",
199
- },
200
- danger: {
201
- text: "hsla(0, 84%, 40%)",
202
- bg: "hsla(0, 84%, 98%)",
203
- border: "hsla(0, 84%, 90%)",
204
- },
205
- neutral: {
206
- text: "hsla(240, 6%, 10%)",
207
- bg: "hsla(240, 5%, 96%)",
208
- border: "hsla(240, 6%, 90%)",
209
- },
210
- secondary: {
211
- text: "hsla(0, 0%, 100%)",
212
- bg: "hsla(240, 6%, 10%)",
213
- border: "hsla(240, 6%, 10%)",
214
- },
215
- },
216
- },
217
- };
@@ -1,3 +0,0 @@
1
- export declare const defaultDarkTheme: import("./theme.types").DesignTokens;
2
- export declare const defaultLightTheme: import("./theme.types").DesignTokens;
3
- //# sourceMappingURL=theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/styles/theme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,sCAAa,CAAC;AAE3C,eAAO,MAAM,iBAAiB,sCAAc,CAAC"}
@@ -1,4 +0,0 @@
1
- import { DARK_THEME } from "./dark";
2
- import { LIGHT_THEME } from "./light";
3
- export const defaultDarkTheme = DARK_THEME;
4
- export const defaultLightTheme = LIGHT_THEME;