@tempots/beatui 0.94.0 → 1.0.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 (279) hide show
  1. package/dist/ar-CuI1Jgt6.cjs +1 -0
  2. package/dist/{ar-8Cko5i-Z.js → ar-DaKbK_t8.js} +88 -11
  3. package/dist/auth/index.cjs.js +1 -1
  4. package/dist/auth/index.es.js +1 -1
  5. package/dist/{auth-divider-Rt0WDKAe.js → auth-divider-BQIhr3-R.js} +99 -98
  6. package/dist/auth-divider-DvnUModP.cjs +1 -0
  7. package/dist/beatui.css +1628 -541
  8. package/dist/beatui.tailwind.css +1629 -542
  9. package/dist/better-auth/index.cjs.js +1 -1
  10. package/dist/better-auth/index.es.js +9 -9
  11. package/dist/codehighlight/index.cjs.js +22 -0
  12. package/dist/codehighlight/index.es.js +76 -0
  13. package/dist/colors-B-p6IzX9.cjs +1 -0
  14. package/dist/{colors-BY0Ja_bf.js → colors-DwufPN8S.js} +18 -18
  15. package/dist/{de-Bt-d2iKj.js → de-3MTPDS1i.js} +83 -6
  16. package/dist/de-DthHehbh.cjs +1 -0
  17. package/dist/{deep-merge-CoLO4id0.js → deep-merge-BzIheQtH.js} +511 -517
  18. package/dist/deep-merge-EkjEgK0N.cjs +1 -0
  19. package/dist/{duration-input-47x7nbGh.cjs → duration-input-ClgYjeBa.cjs} +1 -1
  20. package/dist/{duration-input-DrVonjKK.js → duration-input-DGzmIImj.js} +5 -5
  21. package/dist/{editor-toolbar-group-CzdBZ1yr.js → editor-toolbar-group-Crlu1QJw.js} +3 -3
  22. package/dist/{editor-toolbar-group-DhKJdqER.cjs → editor-toolbar-group-mkL4QozO.cjs} +1 -1
  23. package/dist/es-B6GJLk9h.cjs +1 -0
  24. package/dist/{es-2llfNFX2.js → es-DwMUvBeU.js} +95 -18
  25. package/dist/{fa-CQVIBjKP.js → fa-0rvQiKrJ.js} +88 -11
  26. package/dist/fa-BwgP93iV.cjs +1 -0
  27. package/dist/{fr-CC3smTlW.js → fr-B4i6NzLl.js} +87 -10
  28. package/dist/fr-CQzk5zqY.cjs +1 -0
  29. package/dist/{he-CZilsN75.js → he-C71n-hsn.js} +88 -11
  30. package/dist/he-DcxxvRfs.cjs +1 -0
  31. package/dist/hi-D-KHVWg4.cjs +1 -0
  32. package/dist/{hi-CAZjwGv-.js → hi-xmrXpeVU.js} +88 -11
  33. package/dist/index-B5MAsOC-.cjs +1 -0
  34. package/dist/{index-B8cqD9ny.js → index-C3o9GSH6.js} +106 -105
  35. package/dist/index.cjs.js +4 -4
  36. package/dist/index.es.js +8055 -5285
  37. package/dist/input-container-BvEcp7FU.js +275 -0
  38. package/dist/input-container-Di1YvVB_.cjs +1 -0
  39. package/dist/{it-D6RXFIL6.js → it-CDZTtOBC.js} +84 -7
  40. package/dist/it-D344Dutu.cjs +1 -0
  41. package/dist/ja-BNgnDZ27.cjs +1 -0
  42. package/dist/{ja-D7zsz4Ij.js → ja-Zz1LzidW.js} +92 -15
  43. package/dist/json-schema/index.cjs.js +1 -1
  44. package/dist/json-schema/index.es.js +261 -257
  45. package/dist/json-schema-display/index.cjs.js +1 -1
  46. package/dist/json-schema-display/index.es.js +2 -2
  47. package/dist/json-structure/index.cjs.js +1 -1
  48. package/dist/json-structure/index.es.js +132 -133
  49. package/dist/{ko-taN2Npr4.js → ko-9laUsZDL.js} +91 -14
  50. package/dist/ko-D-WJ9NK7.cjs +1 -0
  51. package/dist/lexical/index.cjs.js +2 -39
  52. package/dist/lexical/index.es.js +2102 -20521
  53. package/dist/markdown/index.cjs.js +1 -1
  54. package/dist/markdown/index.es.js +41 -4
  55. package/dist/{menu-CV85y3Xf.js → menu-B8yoDMRS.js} +23 -23
  56. package/dist/menu-B92oSDct.cjs +1 -0
  57. package/dist/modal-BT0jjDqX.cjs +1 -0
  58. package/dist/{modal-ZitwUeXx.js → modal-DBguyX-b.js} +9 -9
  59. package/dist/monaco/index.cjs.js +2 -2
  60. package/dist/monaco/index.es.js +7 -7
  61. package/dist/nl-CrqUlFie.cjs +1 -0
  62. package/dist/{nl-CRC6r4Q4.js → nl-Dcll9fVA.js} +87 -10
  63. package/dist/{notice-E_p2hg1G.js → notice-E19wu9lA.js} +51 -51
  64. package/dist/notice-_9XhdrFw.cjs +1 -0
  65. package/dist/oneof-branch-detection-J_DYEEcD.js +1077 -0
  66. package/dist/oneof-branch-detection-ZUBZ6hqy.cjs +1 -0
  67. package/dist/pl-9UksIrvX.cjs +1 -0
  68. package/dist/{pl-C6qNs0Lq.js → pl-Dm9N9Gbr.js} +84 -7
  69. package/dist/prosemirror/index.cjs.js +3 -1
  70. package/dist/prosemirror/index.es.js +636 -4
  71. package/dist/{pt-CcWPLqBh.js → pt-CFi5cn0k.js} +89 -12
  72. package/dist/pt-_kfdzwqi.cjs +1 -0
  73. package/dist/{ru-Dt9-9m0E.js → ru-CEhZUw8R.js} +92 -15
  74. package/dist/ru-CW1WNNlr.cjs +1 -0
  75. package/dist/stack-BLMteGTn.js +15 -0
  76. package/dist/stack-dwLevGa2.cjs +1 -0
  77. package/dist/tailwind/preset.cjs.js +1 -1
  78. package/dist/tailwind/preset.es.js +2 -2
  79. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  80. package/dist/tailwind/vite-plugin.es.js +1 -1
  81. package/dist/text-input-DfqXolVe.js +55 -0
  82. package/dist/text-input-X_q01NsY.cjs +1 -0
  83. package/dist/toolbar-DY0ax2Qd.js +130 -0
  84. package/dist/toolbar-DoKdYXIL.cjs +1 -0
  85. package/dist/tr-B6GIRegf.cjs +1 -0
  86. package/dist/{tr-CDTWeRY0.js → tr-ZmnVDhLP.js} +83 -6
  87. package/dist/{translations-NBY7SubC.js → translations-A4kR7CW8.js} +1 -1
  88. package/dist/{translations-CiBhB2FV.js → translations-B1_yyDUK.js} +185 -106
  89. package/dist/{translations-BdCtLBZt.cjs → translations-C81buKAw.cjs} +1 -1
  90. package/dist/translations-Dbx7L7Q1.cjs +1 -0
  91. package/dist/types/beatui-i18n/default.d.ts +72 -0
  92. package/dist/types/beatui-i18n/locales/en.d.ts +72 -0
  93. package/dist/types/beatui-i18n/translations.d.ts +72 -0
  94. package/dist/types/codehighlight/code-highlight.d.ts +21 -0
  95. package/dist/types/codehighlight/index.d.ts +14 -0
  96. package/dist/types/components/button/toggle-button.d.ts +4 -4
  97. package/dist/types/components/data/avatar.d.ts +3 -1
  98. package/dist/types/components/data/badge.d.ts +10 -18
  99. package/dist/types/components/data/column-filter-panel.d.ts +31 -0
  100. package/dist/types/components/data/column-filter.d.ts +110 -0
  101. package/dist/types/components/data/column-header-menu.d.ts +42 -0
  102. package/dist/types/components/data/data-source.d.ts +190 -0
  103. package/dist/types/components/data/data-table-body.d.ts +12 -0
  104. package/dist/types/components/data/data-table-column-toggle.d.ts +4 -0
  105. package/dist/types/components/data/data-table-context.d.ts +53 -0
  106. package/dist/types/components/data/data-table-header.d.ts +6 -0
  107. package/dist/types/components/data/data-table-resolve.d.ts +26 -0
  108. package/dist/types/components/data/data-table-types.d.ts +201 -0
  109. package/dist/types/components/data/data-table.d.ts +38 -0
  110. package/dist/types/components/data/data-toolbar.d.ts +44 -0
  111. package/dist/types/components/data/date-picker-shared.d.ts +55 -0
  112. package/dist/types/components/data/date-picker.d.ts +58 -0
  113. package/dist/types/components/data/date-range-picker.d.ts +56 -0
  114. package/dist/types/components/data/filter.d.ts +268 -0
  115. package/dist/types/components/data/index.d.ts +13 -4
  116. package/dist/types/components/data/indicator.d.ts +41 -0
  117. package/dist/types/components/data/progress-bar.d.ts +2 -2
  118. package/dist/types/components/data/selection-checkbox.d.ts +63 -0
  119. package/dist/types/components/data/skeleton.d.ts +1 -1
  120. package/dist/types/components/data/sortable-header.d.ts +55 -0
  121. package/dist/types/components/data/unstyled-drop-zone.d.ts +2 -2
  122. package/dist/types/components/form/control/control.d.ts +9 -9
  123. package/dist/types/components/form/input/advanced-slider.d.ts +6 -6
  124. package/dist/types/components/form/input/appearance-selector.d.ts +9 -2
  125. package/dist/types/components/form/input/checkbox-input.d.ts +6 -7
  126. package/dist/types/components/form/input/color-input.d.ts +1 -1
  127. package/dist/types/components/form/input/color-swatch-input.d.ts +3 -3
  128. package/dist/types/components/form/input/combobox-input.d.ts +5 -5
  129. package/dist/types/components/form/input/combobox-tags-input.d.ts +5 -5
  130. package/dist/types/components/form/input/create-nullable-string-input.d.ts +2 -2
  131. package/dist/types/components/form/input/date-input.d.ts +4 -4
  132. package/dist/types/components/form/input/dropdown-input.d.ts +5 -5
  133. package/dist/types/components/form/input/editable-text.d.ts +2 -2
  134. package/dist/types/components/form/input/email-input.d.ts +4 -4
  135. package/dist/types/components/form/input/index.d.ts +1 -0
  136. package/dist/types/components/form/input/input-container.d.ts +1 -1
  137. package/dist/types/components/form/input/input-options.d.ts +28 -1
  138. package/dist/types/components/form/input/mask-input.d.ts +8 -2
  139. package/dist/types/components/form/input/native-select.d.ts +3 -3
  140. package/dist/types/components/form/input/nullable-date-input.d.ts +2 -2
  141. package/dist/types/components/form/input/nullable-email-input.d.ts +3 -3
  142. package/dist/types/components/form/input/nullable-rating-input.d.ts +8 -8
  143. package/dist/types/components/form/input/nullable-uuid-input.d.ts +4 -4
  144. package/dist/types/components/form/input/number-input.d.ts +3 -3
  145. package/dist/types/components/form/input/otp-input.d.ts +12 -12
  146. package/dist/types/components/form/input/rating-input.d.ts +7 -8
  147. package/dist/types/components/form/input/select-tags-input.d.ts +5 -5
  148. package/dist/types/components/form/input/switch.d.ts +2 -2
  149. package/dist/types/components/form/input/tri-state-checkbox-input.d.ts +82 -0
  150. package/dist/types/components/form/input/uuid-input.d.ts +2 -2
  151. package/dist/types/components/json-structure/controls/uuid-control.d.ts +1 -1
  152. package/dist/types/components/layout/card.d.ts +66 -0
  153. package/dist/types/components/layout/collapse.d.ts +2 -2
  154. package/dist/types/components/layout/flex.d.ts +26 -0
  155. package/dist/types/components/layout/index.d.ts +1 -0
  156. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +2 -2
  157. package/dist/types/components/lexical/toolbar/toolbar-registry.d.ts +2 -1
  158. package/dist/types/components/media/pdf-page-viewer.d.ts +8 -5
  159. package/dist/types/components/misc/index.d.ts +1 -0
  160. package/dist/types/components/misc/loading-overlay.d.ts +29 -0
  161. package/dist/types/components/misc/notice.d.ts +4 -4
  162. package/dist/types/components/misc/notification-provider.d.ts +9 -3
  163. package/dist/types/components/misc/notification.d.ts +9 -9
  164. package/dist/types/components/navigation/breadcrumbs.d.ts +1 -1
  165. package/dist/types/components/navigation/menu.d.ts +6 -6
  166. package/dist/types/components/navigation/pagination.d.ts +17 -4
  167. package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +2 -2
  168. package/dist/types/components/navigation/tabs/tabs.d.ts +17 -8
  169. package/dist/types/components/navigation/toolbar/toolbar.d.ts +12 -6
  170. package/dist/types/components/overlay/announcement-bar.d.ts +12 -4
  171. package/dist/types/components/overlay/dialogs.d.ts +2 -2
  172. package/dist/types/components/overlay/modal.d.ts +9 -2
  173. package/dist/types/components/overlay/tooltip.d.ts +6 -6
  174. package/dist/types/components/theme/types.d.ts +15 -4
  175. package/dist/types/lexical/index.d.ts +2 -2
  176. package/dist/types/lexical/plugins/index.d.ts +1 -1
  177. package/dist/types/lexical/plugins/slash-commands.d.ts +1 -1
  178. package/dist/types/lexical/plugins/text.d.ts +5 -0
  179. package/dist/types/lexical/types.d.ts +126 -5
  180. package/dist/types/lexical-i18n/default.d.ts +1 -0
  181. package/dist/types/lexical-i18n/locales/ar.d.ts +1 -0
  182. package/dist/types/lexical-i18n/locales/de.d.ts +1 -0
  183. package/dist/types/lexical-i18n/locales/en.d.ts +1 -0
  184. package/dist/types/lexical-i18n/locales/es.d.ts +1 -0
  185. package/dist/types/lexical-i18n/locales/fa.d.ts +1 -0
  186. package/dist/types/lexical-i18n/locales/fr.d.ts +1 -0
  187. package/dist/types/lexical-i18n/locales/he.d.ts +1 -0
  188. package/dist/types/lexical-i18n/locales/hi.d.ts +1 -0
  189. package/dist/types/lexical-i18n/locales/it.d.ts +1 -0
  190. package/dist/types/lexical-i18n/locales/ja.d.ts +1 -0
  191. package/dist/types/lexical-i18n/locales/ko.d.ts +1 -0
  192. package/dist/types/lexical-i18n/locales/nl.d.ts +1 -0
  193. package/dist/types/lexical-i18n/locales/pl.d.ts +1 -0
  194. package/dist/types/lexical-i18n/locales/pt.d.ts +1 -0
  195. package/dist/types/lexical-i18n/locales/ru.d.ts +1 -0
  196. package/dist/types/lexical-i18n/locales/tr.d.ts +1 -0
  197. package/dist/types/lexical-i18n/locales/ur.d.ts +1 -0
  198. package/dist/types/lexical-i18n/locales/vi.d.ts +1 -0
  199. package/dist/types/lexical-i18n/locales/zh.d.ts +1 -0
  200. package/dist/types/tokens/z-index.d.ts +18 -18
  201. package/dist/types/utils/use-animated-toggle.d.ts +12 -4
  202. package/dist/ur-CtFl_tz6.cjs +1 -0
  203. package/dist/{ur-CLrK5FPQ.js → ur-yYgj3NmT.js} +88 -11
  204. package/dist/use-animated-toggle-C3asw_Sg.js +207 -0
  205. package/dist/use-animated-toggle-cKcuItmz.cjs +1 -0
  206. package/dist/use-form-CaW192gw.cjs +2 -0
  207. package/dist/{use-form-BQRVnIp9.js → use-form-Dn6v2tEh.js} +153 -152
  208. package/dist/utils-DmEuG3Np.cjs +1 -0
  209. package/dist/utils-vUtP6iPG.js +165 -0
  210. package/dist/{vi-B1_QDUQJ.js → vi-D5u4CLQO.js} +89 -12
  211. package/dist/vi-DyCZSpsk.cjs +1 -0
  212. package/dist/widget-customization-DgW1SXN6.cjs +1 -0
  213. package/dist/{widget-customization-C-fSx3RB.js → widget-customization-Dkx7kNSe.js} +413 -398
  214. package/dist/{zh-rDtQ92Pp.js → zh-B0kwMMer.js} +91 -14
  215. package/dist/zh-C3ZxMQKb.cjs +1 -0
  216. package/package.json +209 -38
  217. package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
  218. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  219. package/dist/ar-D2DjoXta.cjs +0 -1
  220. package/dist/auth-divider-C3E16pml.cjs +0 -1
  221. package/dist/colors-BI0YhONJ.cjs +0 -1
  222. package/dist/de-Cdf3432J.cjs +0 -1
  223. package/dist/deep-merge-Blrucd-E.cjs +0 -1
  224. package/dist/es-6fFPkKHL.cjs +0 -1
  225. package/dist/fa-GXyNzAXz.cjs +0 -1
  226. package/dist/fr-C6EYTwSH.cjs +0 -1
  227. package/dist/he-CJUgxvi8.cjs +0 -1
  228. package/dist/hi-DqIR4VtX.cjs +0 -1
  229. package/dist/hls.light.min-C6xKDzRR.cjs +0 -27
  230. package/dist/hls.light.min-hEMf_E8u.js +0 -8311
  231. package/dist/index-1JaBwDB-.js +0 -921
  232. package/dist/index-B-cwxUsP.cjs +0 -1
  233. package/dist/index-BFzxpY7y.js +0 -68
  234. package/dist/index-BOC0cVoY.cjs +0 -36
  235. package/dist/index-CN10Cyqr.cjs +0 -1
  236. package/dist/index-CTcbhnPw.cjs +0 -4
  237. package/dist/index-DF7RFzD9.cjs +0 -1
  238. package/dist/index-DJ9YIJcG.js +0 -14308
  239. package/dist/index-DfPkCwdC.js +0 -2709
  240. package/dist/input-container-9r1F3KuX.js +0 -263
  241. package/dist/input-container-DiYEl_y8.cjs +0 -1
  242. package/dist/it-BvHsJ7fH.cjs +0 -1
  243. package/dist/ja-B2gP7OHY.cjs +0 -1
  244. package/dist/ko-BddhddIA.cjs +0 -1
  245. package/dist/menu-De_-sGeb.cjs +0 -1
  246. package/dist/modal-DUlqGUW7.cjs +0 -1
  247. package/dist/nl-COrtZUnH.cjs +0 -1
  248. package/dist/notice-DAVOTnfA.cjs +0 -1
  249. package/dist/oneof-branch-detection-D6Xa8qNR.cjs +0 -8
  250. package/dist/oneof-branch-detection-DCPwyutI.js +0 -6290
  251. package/dist/pl-BHI4zBgV.cjs +0 -1
  252. package/dist/pt-BGzC9MhU.cjs +0 -1
  253. package/dist/ru-CXeFbIPb.cjs +0 -1
  254. package/dist/stack-4VUGISn6.cjs +0 -1
  255. package/dist/stack-Bm-UZosx.js +0 -879
  256. package/dist/string-B9vVyfq3.cjs +0 -1
  257. package/dist/string-DYyMxBl-.js +0 -19
  258. package/dist/text-input-BgPx8BbG.js +0 -45
  259. package/dist/text-input-DUnhBUd6.cjs +0 -1
  260. package/dist/timer-BJHOsuS6.cjs +0 -1
  261. package/dist/timer-Rd2sKnvH.js +0 -65
  262. package/dist/toolbar-DKOh_gbA.js +0 -118
  263. package/dist/toolbar-Dkc2y1dI.cjs +0 -1
  264. package/dist/tr-CdOtQAtA.cjs +0 -1
  265. package/dist/translations-Cy9hoMGV.cjs +0 -1
  266. package/dist/types/components/data/calendar-shared.d.ts +0 -59
  267. package/dist/types/components/data/calendar.d.ts +0 -107
  268. package/dist/types/components/data/icon-badge.d.ts +0 -14
  269. package/dist/types/components/data/range-calendar.d.ts +0 -104
  270. package/dist/types/components/data/tag.d.ts +0 -51
  271. package/dist/ur-C7itXvnC.cjs +0 -1
  272. package/dist/use-animated-toggle-C7PTmnZi.js +0 -195
  273. package/dist/use-animated-toggle-DrqK7nUS.cjs +0 -1
  274. package/dist/use-form-DTyNw0kM.cjs +0 -2
  275. package/dist/utils-DEbsp9Q9.js +0 -129
  276. package/dist/utils-DIUEhA-Z.cjs +0 -1
  277. package/dist/vi-CQrUWB3y.cjs +0 -1
  278. package/dist/widget-customization-xEBfEPhQ.cjs +0 -1
  279. package/dist/zh-DWswYYTS.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";class o extends Error{constructor(r="Missing implementation"){super(r),this.name="MissingImplementationError"}}const t=e=>s(e).split("_").join(" "),s=e=>(e=e.replace(/::/g,"/"),e=e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2"),e=e.replace(/([a-z\d])([A-Z])/g,"$1_$2"),e=e.replace(/-/g,"_"),e.toLowerCase()),n=e=>e.substring(0,1).toUpperCase()+e.substring(1),i=e=>{if(typeof Buffer<"u")return Buffer.from(e,"base64").toString("utf8");if(typeof atob<"u")return atob(e);throw new o("No implementation found for base64 decoding")};exports.$t=i;exports._t=n;exports.gt=t;
@@ -1,19 +0,0 @@
1
- class o extends Error {
2
- constructor(r = "Missing implementation") {
3
- super(r), this.name = "MissingImplementationError";
4
- }
5
- }
6
- const n = (e) => s(e).split("_").join(" "), s = (e) => (e = e.replace(/::/g, "/"), e = e.replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2"), e = e.replace(/([a-z\d])([A-Z])/g, "$1_$2"), e = e.replace(/-/g, "_"), e.toLowerCase()), a = (e) => e.substring(0, 1).toUpperCase() + e.substring(1), t = (e) => {
7
- if (typeof Buffer < "u")
8
- return Buffer.from(e, "base64").toString("utf8");
9
- if (typeof atob < "u")
10
- return atob(e);
11
- throw new o(
12
- "No implementation found for base64 decoding"
13
- );
14
- };
15
- export {
16
- t as $,
17
- a as _,
18
- n as g
19
- };
@@ -1,45 +0,0 @@
1
- import { Fragment as I, attr as t, aria as c, html as f, Empty as o, on as p, emitValue as i } from "@tempots/dom";
2
- import { I as x } from "./input-container-9r1F3KuX.js";
3
- const C = ({
4
- autocomplete: n,
5
- autofocus: a,
6
- classes: e,
7
- disabled: u,
8
- name: l,
9
- placeholder: r,
10
- id: m,
11
- required: d,
12
- tabIndex: b,
13
- hasError: s
14
- }) => I(
15
- t.autocomplete(n),
16
- t.autofocus(a),
17
- t.class(e?.input),
18
- t.disabled(u),
19
- t.name(l ?? m),
20
- t.placeholder(r),
21
- t.id(m),
22
- c.required(d),
23
- t.tabindex(b),
24
- s != null ? c.invalid(
25
- s ?? !1
26
- ) : null
27
- ), v = (n) => {
28
- const { value: a, onBlur: e, onChange: u, onInput: l, type: r } = n;
29
- return x({
30
- ...n,
31
- input: f.input(
32
- t.type(r ?? "text"),
33
- C(n),
34
- t.value(a),
35
- t.class("bc-input"),
36
- e != null ? p.blur(i(e)) : o,
37
- u != null ? p.change(i(u)) : o,
38
- l != null ? p.input(i(l)) : o
39
- )
40
- });
41
- };
42
- export {
43
- C,
44
- v as T
45
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("@tempots/dom"),s=require("./input-container-DiYEl_y8.cjs"),p=({autocomplete:n,autofocus:r,classes:e,disabled:u,name:a,placeholder:l,id:i,required:m,tabIndex:c,hasError:o})=>t.Fragment(t.attr.autocomplete(n),t.attr.autofocus(r),t.attr.class(e?.input),t.attr.disabled(u),t.attr.name(a??i),t.attr.placeholder(l),t.attr.id(i),t.aria.required(m),t.attr.tabindex(c),o!=null?t.aria.invalid(o??!1):null),d=n=>{const{value:r,onBlur:e,onChange:u,onInput:a,type:l}=n;return s.InputContainer({...n,input:t.html.input(t.attr.type(l??"text"),p(n),t.attr.value(r),t.attr.class("bc-input"),e!=null?t.on.blur(t.emitValue(e)):t.Empty,u!=null?t.on.change(t.emitValue(u)):t.Empty,a!=null?t.on.input(t.emitValue(a)):t.Empty)})};exports.CommonInputAttributes=p;exports.TextInput=d;
@@ -1 +0,0 @@
1
- "use strict";const p=(t,n)=>{let e=()=>{};const o=setTimeout(()=>{const l=t();l!=null&&(e=l)},n);return()=>{clearTimeout(o),e()}},I=(t,n)=>{let e=()=>{};const o=setInterval(()=>{const l=t();l!=null&&(e=l)},n);return()=>{clearInterval(o),e()}};function w(t,n,e={}){const{noTrailing:o=!1,noLeading:l=!1,debounceMode:u}=e;let i,f=!1,a=0;function m(){i&&clearTimeout(i)}function v(s){const{upcomingOnly:r=!1}=s||{};m(),f=!r}function d(...s){if(f)return;const r=this,T=Date.now()-a;function c(){a=Date.now(),n.apply(r,s)}function g(){i=void 0}!l&&u&&!i&&c(),m(),u===void 0&&T>t?l?(a=Date.now(),o||(i=setTimeout(u?g:c,t))):c():o||(i=setTimeout(u?g:c,u===void 0?Math.max(0,t-T):t))}return d.cancel=v,d}function x(t,n,{atBegin:e=!1}={}){return w(t,n,{debounceMode:e!==!1})}const A=t=>{let n=null;const e=o=>{n=null,t(o)};return n==null&&(n=requestAnimationFrame(e)),()=>{n!=null&&(cancelAnimationFrame(n),n=null)}};exports.I=p;exports.T=I;exports.g=A;exports.x=x;
@@ -1,65 +0,0 @@
1
- const w = (t, n) => {
2
- let e = () => {
3
- };
4
- const o = setTimeout(() => {
5
- const l = t();
6
- l != null && (e = l);
7
- }, n);
8
- return () => {
9
- clearTimeout(o), e();
10
- };
11
- }, x = (t, n) => {
12
- let e = () => {
13
- };
14
- const o = setInterval(() => {
15
- const l = t();
16
- l != null && (e = l);
17
- }, n);
18
- return () => {
19
- clearInterval(o), e();
20
- };
21
- };
22
- function p(t, n, e = {}) {
23
- const { noTrailing: o = !1, noLeading: l = !1, debounceMode: u } = e;
24
- let i, f = !1, a = 0;
25
- function m() {
26
- i && clearTimeout(i);
27
- }
28
- function g(s) {
29
- const { upcomingOnly: r = !1 } = s || {};
30
- m(), f = !r;
31
- }
32
- function d(...s) {
33
- if (f) return;
34
- const r = this, T = Date.now() - a;
35
- function c() {
36
- a = Date.now(), n.apply(r, s);
37
- }
38
- function v() {
39
- i = void 0;
40
- }
41
- !l && u && !i && c(), m(), u === void 0 && T > t ? l ? (a = Date.now(), o || (i = setTimeout(u ? v : c, t))) : c() : o || (i = setTimeout(
42
- u ? v : c,
43
- u === void 0 ? Math.max(0, t - T) : t
44
- ));
45
- }
46
- return d.cancel = g, d;
47
- }
48
- function A(t, n, { atBegin: e = !1 } = {}) {
49
- return p(t, n, { debounceMode: e !== !1 });
50
- }
51
- const D = (t) => {
52
- let n = null;
53
- const e = (o) => {
54
- n = null, t(o);
55
- };
56
- return n == null && (n = requestAnimationFrame(e)), () => {
57
- n != null && (cancelAnimationFrame(n), n = null);
58
- };
59
- };
60
- export {
61
- w as I,
62
- x as T,
63
- D as g,
64
- A as x
65
- };
@@ -1,118 +0,0 @@
1
- import { html as c, attr as n, aria as m, WithElement as v, OnDispose as A } from "@tempots/dom";
2
- import { B as x } from "./input-container-9r1F3KuX.js";
3
- const l = [
4
- "button:not([disabled])",
5
- '[role="button"]:not([aria-disabled="true"])',
6
- "a[href]",
7
- "input:not([disabled])",
8
- "select:not([disabled])",
9
- "textarea:not([disabled])",
10
- '[tabindex]:not([tabindex="-1"])'
11
- ].join(", ");
12
- function y(...a) {
13
- return c.div(
14
- n.class("bc-toolbar"),
15
- n.role("toolbar"),
16
- m.orientation("horizontal"),
17
- // Keyboard navigation with roving tabindex among focusable children
18
- v((o) => {
19
- const h = () => {
20
- const e = Array.from(
21
- o.querySelectorAll(l)
22
- );
23
- e.length !== 0 && e.forEach(
24
- (t, r) => t.setAttribute("tabindex", r === 0 ? "0" : "-1")
25
- );
26
- }, u = (e) => {
27
- const t = Array.from(
28
- o.querySelectorAll(l)
29
- );
30
- if (t.length === 0) return;
31
- const r = t.findIndex(
32
- (b) => b === document.activeElement
33
- );
34
- let s = (r === -1 ? 0 : r) + e;
35
- s < 0 && (s = t.length - 1), s >= t.length && (s = 0), t.forEach((b) => b.setAttribute("tabindex", "-1"));
36
- const f = t[s];
37
- f.setAttribute("tabindex", "0"), f.focus();
38
- };
39
- setTimeout(h, 0);
40
- const d = (e) => {
41
- switch (e.key) {
42
- case "ArrowRight":
43
- e.preventDefault(), u(1);
44
- break;
45
- case "ArrowLeft":
46
- e.preventDefault(), u(-1);
47
- break;
48
- case "Home":
49
- e.preventDefault(), u(-1);
50
- {
51
- const t = Array.from(
52
- o.querySelectorAll(l)
53
- );
54
- if (t.length) {
55
- t.forEach((i) => i.setAttribute("tabindex", "-1"));
56
- const r = t[0];
57
- r.setAttribute("tabindex", "0"), r.focus();
58
- }
59
- }
60
- break;
61
- case "End":
62
- e.preventDefault();
63
- {
64
- const t = Array.from(
65
- o.querySelectorAll(l)
66
- );
67
- if (t.length) {
68
- t.forEach((i) => i.setAttribute("tabindex", "-1"));
69
- const r = t[t.length - 1];
70
- r.setAttribute("tabindex", "0"), r.focus();
71
- }
72
- }
73
- break;
74
- }
75
- };
76
- return o.addEventListener("keydown", d), A(() => {
77
- o.removeEventListener("keydown", d);
78
- });
79
- }),
80
- ...a
81
- );
82
- }
83
- function E(a, ...o) {
84
- return x(
85
- {
86
- color: "neutral",
87
- roundedness: "md",
88
- variant: "light",
89
- ...a
90
- },
91
- n.class("bc-toolbar__button"),
92
- ...o
93
- );
94
- }
95
- function _(...a) {
96
- return c.div(
97
- n.class("bc-toolbar__group"),
98
- n.role("group"),
99
- ...a
100
- );
101
- }
102
- function k() {
103
- return c.div(
104
- n.class("bc-toolbar__divider"),
105
- n.role("separator"),
106
- m.orientation("vertical")
107
- );
108
- }
109
- function T() {
110
- return c.div(n.class("bc-toolbar__spacer"));
111
- }
112
- export {
113
- E as T,
114
- _ as a,
115
- y as b,
116
- k as c,
117
- T as d
118
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("@tempots/dom"),h=require("./input-container-DiYEl_y8.cjs"),s=["button:not([disabled])",'[role="button"]:not([aria-disabled="true"])',"a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function m(...a){return e.html.div(e.attr.class("bc-toolbar"),e.attr.role("toolbar"),e.aria.orientation("horizontal"),e.WithElement(n=>{const f=()=>{const r=Array.from(n.querySelectorAll(s));r.length!==0&&r.forEach((t,o)=>t.setAttribute("tabindex",o===0?"0":"-1"))},u=r=>{const t=Array.from(n.querySelectorAll(s));if(t.length===0)return;const o=t.findIndex(c=>c===document.activeElement);let i=(o===-1?0:o)+r;i<0&&(i=t.length-1),i>=t.length&&(i=0),t.forEach(c=>c.setAttribute("tabindex","-1"));const d=t[i];d.setAttribute("tabindex","0"),d.focus()};setTimeout(f,0);const b=r=>{switch(r.key){case"ArrowRight":r.preventDefault(),u(1);break;case"ArrowLeft":r.preventDefault(),u(-1);break;case"Home":r.preventDefault(),u(-1);{const t=Array.from(n.querySelectorAll(s));if(t.length){t.forEach(l=>l.setAttribute("tabindex","-1"));const o=t[0];o.setAttribute("tabindex","0"),o.focus()}}break;case"End":r.preventDefault();{const t=Array.from(n.querySelectorAll(s));if(t.length){t.forEach(l=>l.setAttribute("tabindex","-1"));const o=t[t.length-1];o.setAttribute("tabindex","0"),o.focus()}}break}};return n.addEventListener("keydown",b),e.OnDispose(()=>{n.removeEventListener("keydown",b)})}),...a)}function v(a,...n){return h.Button({color:"neutral",roundedness:"md",variant:"light",...a},e.attr.class("bc-toolbar__button"),...n)}function A(...a){return e.html.div(e.attr.class("bc-toolbar__group"),e.attr.role("group"),...a)}function p(){return e.html.div(e.attr.class("bc-toolbar__divider"),e.attr.role("separator"),e.aria.orientation("vertical"))}function x(){return e.html.div(e.attr.class("bc-toolbar__spacer"))}exports.Toolbar=m;exports.ToolbarButton=v;exports.ToolbarDivider=p;exports.ToolbarGroup=A;exports.ToolbarSpacer=x;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-Cy9hoMGV.cjs"),o={loadingExtended:"Yükleniyor, lütfen bekleyin",loadingShort:"Yükleniyor...",locale:"Yerel",iconDescription:"Simge",loadingIcon:"Yükleme simgesi",failedToLoadIcon:"Simge yüklenemedi",editLabel:"Düzenle",selectOne:"Birini seç",selectNone:"Hiçbiri",selectMany:"Birden fazlasını seç",noResults:"Sonuç yok",passwordPlaceholderText:"Gizli Şifre",togglePasswordVisibility:"Şifre görünürlüğünü değiştir",toggleMenu:"Menüyü değiştir",toggleAside:"Yan paneli değiştir",mainNavigation:"Ana navigasyon",sidebar:"Kenar çubuğu",closeDrawer:"Çekmeceyi kapat",closeModal:"Modalı kapat",confirm:"Onayla",cancel:"İptal",addLabel:"Ekle",removeItem:"Öğeyi kaldır",currentLocale:"Türkçe",ar:"Arapça",de:"Almanca",en:"İngilizce",es:"İspanyolca",fr:"Fransızca",hi:"Hintçe",it:"İtalyanca",ja:"Japonca",ko:"Korece",nl:"Flemenkçe",pl:"Lehçe",pt:"Portekizce",ru:"Rusça",tr:"Türkçe",vi:"Vietnamca",zh:"Çince",he:"İbranice",fa:"Farsça",ur:"Urduca",emailPlaceholderText:"E-postanızı girin",incrementValue:"Değer artır",decrementValue:"Değer azalt",dropZoneInstructions:e=>e?"Seçmek için tıklayın veya dosyaları buraya sürükleyin, veya dosya seçiciyi açmak için Enter veya Boşluk tuşuna basın":"Dosyaları buraya sürükleyin",fileSizeUnits:["Bayt","KB","MB","GB","TB"],removeFile:"Dosyayı kaldır",clearAllFiles:"Tüm dosyaları temizle",clearValue:"Değeri temizle",unknownType:"Bilinmeyen tür",filesInputInstructions:(e,a,l)=>{let n=e==null||e>1?"Seçmek için tıklayın veya dosyaları buraya sürükleyin":"Seçmek için tıklayın veya dosyayı buraya sürükleyin";if(e||a){const i=[];if(e!=null&&e>1&&i.push(`en fazla ${e} dosya`),a&&l){const t=r.formatFileSize(a,{units:l});i.push(`her biri en fazla ${t}`)}i.length>0&&(n+=` (${i.join(", ")})`)}return n},paginationLabel:"Sayfalama",firstPage:"İlk sayfa",previousPage:"Önceki sayfa",nextPage:"Sonraki sayfa",lastPage:"Son sayfa",breadcrumbs:"İçerik haritası",commandPalette:"Komut paleti",typeACommand:"Bir komut yazın...",noResultsFound:"Sonuç bulunamadı",noMatchingCommands:"Eşleşen komut yok",appearanceSystem:"Sistem",appearanceLight:"Açık",appearanceDark:"Koyu",ok:"OK",changeTypeConfirmation:"Tür değiştirmek mevcut değeri silecektir. Devam edilsin mi?",notifications:"Bildirimler",markAllAsRead:"Tümünü okundu olarak işaretle",noNotifications:"Bildirim yok",schemaConflictsDetected:"Şema Çakışmaları Tespit Edildi",schemaViolationsDetected:"Şema İhlalleri Tespit Edildi",properties:"Özellikler",uploading:"Yükleniyor...",dropFilesOrBrowse:"Dosyaları buraya bırakın veya göz atmak için tıklayın",acceptedTypes:e=>`Kabul edilen türler: ${e}`,enterUrlPrompt:"URL girin:",exceeded:"(aşıldı)",pdfPreview:"PDF Önizleme",lexical:{fontFamily:"Yazı Tipi",fontSize:"Yazı Boyutu",fontColor:"Yazı Rengi",highlightColor:"Vurgu Rengi",backgroundColor:"Arka Plan Rengi",bold:"Kalın",italic:"İtalik",underline:"Altı Çizili",strikethrough:"Üstü Çizili",code:"Kod",clearFormatting:"Biçimlendirmeyi Temizle",normal:"Normal",heading:e=>`Başlık ${e}`,bulletList:"Madde İşaretli Liste",orderedList:"Numaralı Liste",checkList:"Kontrol Listesi",indent:"Girintiyi Artır",outdent:"Girintiyi Azalt",blockquote:"Alıntı",codeBlock:"Kod Bloğu",horizontalRule:"Yatay Çizgi",insertTable:"Tablo Ekle",link:"Bağlantı",undo:"Geri Al",redo:"Yinele",cut:"Kes",copy:"Kopyala",paste:"Yapıştır",defaultOption:"Varsayılan",slashCommands:"Eğik çizgi komutları",noCommandsFound:"Komut bulunamadı",changeBlockType:"Blok türünü değiştir",blockTypes:"Blok türleri",enterUrl:"URL girin:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF yükleniyor...",loadFailed:"PDF yüklenemedi",invalidPdf:"Geçersiz PDF dosyası",pageOutOfRange:(e,a)=>`Sayfa ${e} aralık dışında (1-${a})`,renderFailed:"PDF sayfası oluşturulamadı"}};exports.default=o;
@@ -1 +0,0 @@
1
- "use strict";const a=require("@tempots/dom"),C=require("@tempots/ui"),y=require("./colors-BI0YhONJ.cjs");function w(e,{units:t=["B","KB","MB","GB","TB"],decimalPlaces:o=0,locale:l}={}){if(e===0||e===0n)return new Intl.NumberFormat(l,{style:"unit",unit:"byte",unitDisplay:"short",maximumFractionDigits:0}).format(0).replace("byte",t[0]);let n,r;if(typeof e=="bigint"){let s=e<0n?-e:e;for(n=0;s>=1024n&&n<t.length-1;)s=s/1024n,n++;r=Number(e)/Math.pow(1024,n)}else n=Math.floor(Math.log(Math.abs(e))/Math.log(1024)),n=Math.min(n,t.length-1),r=e/Math.pow(1024,n);return new Intl.NumberFormat(l,{style:"unit",unit:"byte",unitDisplay:"short",minimumFractionDigits:n===0?0:o,maximumFractionDigits:n===0?0:o}).format(r).replace("byte",t[n])}const T={loadingExtended:"Loading, please wait",loadingShort:"Loading...",locale:"Locale",iconDescription:"Icon",loadingIcon:"Loading icon",failedToLoadIcon:"Failed to load icon",editLabel:"Edit",selectOne:"Select one",selectNone:"None",selectMany:"Select many",noResults:"No results",passwordPlaceholderText:"Secret Password",togglePasswordVisibility:"Toggle password visibility",toggleMenu:"Toggle menu",toggleAside:"Toggle aside",mainNavigation:"Main navigation",sidebar:"Sidebar",closeDrawer:"Close drawer",closeModal:"Close modal",confirm:"Confirm",cancel:"Cancel",addLabel:"Add",removeItem:"Remove item",currentLocale:"English",ar:"Arabic",de:"German",en:"English",es:"Spanish",fr:"French",hi:"Hindi",it:"Italian",ja:"Japanese",ko:"Korean",nl:"Dutch",pl:"Polish",pt:"Portuguese",ru:"Russian",tr:"Turkish",vi:"Vietnamese",zh:"Chinese",he:"Hebrew",fa:"Persian",ur:"Urdu",emailPlaceholderText:"Enter your email",incrementValue:"Increment value",decrementValue:"Decrement value",dropZoneInstructions:e=>e?"Click to choose or drag files here, or press Enter or Space to open file selector":"Drag files here",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Remove file",clearAllFiles:"Clear all files",clearValue:"Reset",unknownType:"Unknown type",filesInputInstructions:(e,t,o)=>{let l=e==null||e>1?"Click to choose or drag files here":"Click to choose or drag a file here";if(e||t){const n=[];if(e!=null&&e>1&&n.push(`up to ${e} files`),t&&o){const r=w(t,{units:o});n.push(`max ${r} each`)}n.length>0&&(l+=` (${n.join(", ")})`)}return l},paginationLabel:"Pagination",firstPage:"First page",previousPage:"Previous page",nextPage:"Next page",lastPage:"Last page",breadcrumbs:"Breadcrumbs",commandPalette:"Command palette",typeACommand:"Type a command...",noResultsFound:"No results found",noMatchingCommands:"No matching commands",appearanceSystem:"System",appearanceLight:"Light",appearanceDark:"Dark",ok:"OK",changeTypeConfirmation:"Changing type will clear the current value. Continue?",notifications:"Notifications",markAllAsRead:"Mark all as read",noNotifications:"No notifications",schemaConflictsDetected:"Schema Conflicts Detected",schemaViolationsDetected:"Schema Violations Detected",properties:"Properties",uploading:"Uploading...",dropFilesOrBrowse:"Drop files here or click to browse",acceptedTypes:e=>`Accepted types: ${e}`,enterUrlPrompt:"Enter URL:",exceeded:"(exceeded)",pdfPreview:"PDF Preview",lexical:{fontFamily:"Font Family",fontSize:"Font Size",fontColor:"Font Color",highlightColor:"Highlight Color",backgroundColor:"Background Color",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Code",clearFormatting:"Clear Formatting",normal:"Normal",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",checkList:"Check List",indent:"Indent",outdent:"Outdent",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",insertTable:"Insert Table",link:"Link",undo:"Undo",redo:"Redo",cut:"Cut",copy:"Copy",paste:"Paste",defaultOption:"Default",slashCommands:"Slash commands",noCommandsFound:"No commands found",changeBlockType:"Change block type",blockTypes:"Block types",enterUrl:"Enter URL:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},prosemirror:{bold:"Bold",italic:"Italic",code:"Inline code",link:"Insert link",removeLink:"Remove link",heading:e=>`Heading ${e}`,bulletList:"Bullet list",orderedList:"Ordered list",blockquote:"Blockquote",codeBlock:"Code block",horizontalRule:"Horizontal rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,t)=>`Page ${e} is out of range (1-${t})`,renderFailed:"Failed to render PDF page"}},f=T,p="en",M=new Set(["ar","he","fa","ur","ps","sd","ku","dv","yi","ji","iw","in"]);function v(e){if(!e)return"ltr";const t=e.split(/[-_]/)[0].toLowerCase();return M.has(t)?"rtl":"ltr"}function I(e,t){return e==="auto"?v(t):e}function O(e){return`b-${e}`}function V(e){return v(e)==="rtl"}function N(e){return e==="ltr"?"rtl":"ltr"}const L={ltr:{"inline-start":"left","inline-end":"right","block-start":"top","block-end":"bottom"},rtl:{"inline-start":"right","inline-end":"left","block-start":"top","block-end":"bottom"}};function $(e,t){return L[t][e]}const x={mark:a.makeProviderMark("Locale"),create:e=>{const t=a.localStorageProp({defaultValue:navigator.language??"en-US",key:"beatui-locale"}),o=a.localStorageProp({defaultValue:"auto",key:"beatui-direction-preference"}),l=a.computedOf(t,o)((r,i)=>I(i,r));return{value:{locale:t,setLocale:r=>t.set(r),direction:l,directionPreference:o,setDirectionPreference:r=>o.set(r)},dispose:()=>{t.dispose(),o.dispose(),l.dispose()}}}},{variants:A,special:U,overrides:k}=y.backgroundConfig;function d(e,t){switch(e){case"white":return"var(--color-white)";case"black":return"var(--color-black)";case"transparent":return"transparent";default:return y.getColorVar(e,t)}}function D(e,t){const o=U[e];if(!o)return;if(t==="light")return o;const l=k[e];return l?l[t]:o}function E(e,t,o){const l=k[e];if(l){const r=l[o];if(r)return{backgroundColor:r.backgroundColor,textColor:r.color}}if(t==="solid"){const r=D(e,o);if(r)return{backgroundColor:r.backgroundColor,textColor:r.color}}const n=A[t][o];return{backgroundColor:d(e,n.bgShade),textColor:n.textColor}}const j={light:{shade:700,textColor:"var(--color-white)"},dark:{shade:500,textColor:"var(--text-inverted-dark)"}},_={light:{shade:200,textColor:"var(--text-normal-light)"},dark:{shade:700,textColor:"var(--text-normal-dark)"}},z={light:{shade:400,textColor:"var(--text-normal-light)"},dark:{shade:600,textColor:"var(--text-normal-dark)"}};function H(e,t,o){const l=k[e];if(l){const r=l[o];if(r)return{backgroundColor:r.backgroundColor,textColor:r.color}}if(t==="solid"){const r=D(e,o);if(r)return{backgroundColor:r.backgroundColor,textColor:r.color};const i=j[o];return{backgroundColor:d(e,i.shade),textColor:i.textColor}}const n=t==="light"?_[o]:z[o];return{backgroundColor:d(e,n.shade),textColor:n.textColor}}function G(e,t){const o=t==="light"?500:600;switch(e){case"white":return t==="light"?"var(--text-inverse-light)":"var(--text-inverted-dark)";case"black":return"var(--color-black)";case"transparent":return"transparent";default:return d(e,o)}}function K(e,t){return e==="white"?"var(--color-white)":e==="black"?"var(--color-black)":e==="transparent"?"inherit":d(e,t==="light"?800:200)}function P(e,t,o){return t==="soft"?d(e,o==="light"?300:700):d(e,o==="light"?500:600)}const W="bui-icons",g=new Map,b=(()=>{try{return typeof indexedDB<"u"&&indexedDB!==null}catch{return!1}})();function Y(){return b?new Promise((e,t)=>{const o=indexedDB.open(W,1);o.onupgradeneeded=function(l){const n=l.target.result;n.objectStoreNames.contains("icons")||n.createObjectStore("icons")},o.onsuccess=function(){e(o.result)},o.onerror=function(){t(o.error)}}):Promise.reject(new Error("IndexedDB not available"))}const m=b?Y():null;async function B(e,t){try{if(m){const o=await m;return new Promise((l,n)=>{const r=o.transaction("icons","readwrite");r.objectStore("icons").put(t,e),r.oncomplete=()=>l(),r.onerror=n})}else g.set(e,t)}catch{g.set(e,t)}}async function S(e){try{if(m){const t=await m;return new Promise((o,l)=>{const i=t.transaction("icons","readonly").objectStore("icons").get(e);i.onsuccess=function(){o(i.result)},i.onerror=l})}else return g.get(e)||null}catch{return g.get(e)||null}}async function J(e){const t=`https://api.iconify.design/${e}.svg`;return fetch(t).then(o=>{if(o.status===200)return o.text();throw new Error(`Failed to load icon: ${e}`)})}async function Q(e){const t=e.replace(":","/"),o=await S(t);if(o)return o;const l=await J(t);return await B(t,l),l}function Z(e){return["bc-icon",`bc-icon--${e}`].join(" ")}function X(e,t="solid"){if(!e)return"";const o=P(e,t,"light"),l=P(e,t,"dark");return`--icon-color: ${o}; --icon-color-dark: ${l}`}function ee({icon:e,size:t="md",color:o,title:l,accessibility:n="auto",tone:r="solid"},...i){const u=a.computedOf(n,l)((s,c)=>s==="decorative"?!1:s==="informative"?!0:c!=null&&c!=="");return a.Use(R,s=>a.html.span(a.attr.class(a.computedOf(t,o)(c=>Z(c??"md"))),a.attr.style(a.computedOf(o,r)((c,h)=>X(c??void 0,h??"solid"))),a.When(u,()=>a.Fragment(a.attr.role("img"),a.aria.label(a.coalesce(l,s.$.iconDescription))),()=>a.aria.hidden(!0)),C.WhenInViewport({once:!0},()=>C.Query({request:e,load:({request:c})=>Q(c),convertError:String,success:({value:c})=>a.html.span(a.style.width("100%"),a.style.height("100%"),a.attr.innerHTML(c)),pending:()=>a.html.span(a.attr.class("animate-spin"),a.When(u,()=>a.Fragment(a.attr.role("img"),a.aria.label(s.$.loadingIcon)),()=>a.aria.hidden(!0)),"↻"),failure:({error:c})=>a.html.span(a.attr.title(c),a.attr.class("text-red-500"),a.When(u,()=>a.Fragment(a.attr.role("img"),a.aria.label(s.$.failedToLoadIcon)),()=>a.aria.hidden(!0)),"🚫")})),...i))}function te(e){const t=e.split("-"),o=[e];return t.length>1&&o.push(t[0]),o}function F({locale:e,defaultLocale:t="en-US",defaultMessages:o,localeLoader:l}){const n=a.prop(t),r=a.prop(o),i=e.on(async u=>{if(u===n.value)return;n.set(u);const s=te(u);for(const c of s)try{const h=await l(c);if(typeof h.default=="object"&&Object.keys(h).length===1){console.error("It appears that you are trying to load a translation module without referencing the default export. Please use `(await import(...)).default` in your loader function.");return}if(u===n.value){r.set(h);return}}catch{continue}console.warn(`No locale found for "${e.value}", using fallback`),u===n.value&&r.set(o)});return{dispose:()=>{i(),n.dispose(),r.dispose()},t:r}}function q({defaultLocale:e,defaultMessages:t,localeLoader:o,providerName:l="I18nProvider"}){return{mark:a.makeProviderMark(l),create:(n,r)=>{const{value:{locale:i}}=r.getProvider(x.mark),{t:u,dispose:s}=F({locale:i,defaultMessages:t,defaultLocale:e,localeLoader:o});return{value:u,dispose:s}}}}const oe=Object.assign({"./locales/ar.ts":()=>Promise.resolve().then(()=>require("./ar-D2DjoXta.cjs")).then(e=>e.default),"./locales/de.ts":()=>Promise.resolve().then(()=>require("./de-Cdf3432J.cjs")).then(e=>e.default),"./locales/es.ts":()=>Promise.resolve().then(()=>require("./es-6fFPkKHL.cjs")).then(e=>e.default),"./locales/fa.ts":()=>Promise.resolve().then(()=>require("./fa-GXyNzAXz.cjs")).then(e=>e.default),"./locales/fr.ts":()=>Promise.resolve().then(()=>require("./fr-C6EYTwSH.cjs")).then(e=>e.default),"./locales/he.ts":()=>Promise.resolve().then(()=>require("./he-CJUgxvi8.cjs")).then(e=>e.default),"./locales/hi.ts":()=>Promise.resolve().then(()=>require("./hi-DqIR4VtX.cjs")).then(e=>e.default),"./locales/it.ts":()=>Promise.resolve().then(()=>require("./it-BvHsJ7fH.cjs")).then(e=>e.default),"./locales/ja.ts":()=>Promise.resolve().then(()=>require("./ja-B2gP7OHY.cjs")).then(e=>e.default),"./locales/ko.ts":()=>Promise.resolve().then(()=>require("./ko-BddhddIA.cjs")).then(e=>e.default),"./locales/nl.ts":()=>Promise.resolve().then(()=>require("./nl-COrtZUnH.cjs")).then(e=>e.default),"./locales/pl.ts":()=>Promise.resolve().then(()=>require("./pl-BHI4zBgV.cjs")).then(e=>e.default),"./locales/pt.ts":()=>Promise.resolve().then(()=>require("./pt-BGzC9MhU.cjs")).then(e=>e.default),"./locales/ru.ts":()=>Promise.resolve().then(()=>require("./ru-CXeFbIPb.cjs")).then(e=>e.default),"./locales/tr.ts":()=>Promise.resolve().then(()=>require("./tr-CdOtQAtA.cjs")).then(e=>e.default),"./locales/ur.ts":()=>Promise.resolve().then(()=>require("./ur-C7itXvnC.cjs")).then(e=>e.default),"./locales/vi.ts":()=>Promise.resolve().then(()=>require("./vi-CQrUWB3y.cjs")).then(e=>e.default),"./locales/zh.ts":()=>Promise.resolve().then(()=>require("./zh-DWswYYTS.cjs")).then(e=>e.default)}),R=q({defaultLocale:p,defaultMessages:f,localeLoader:async e=>{if(e===p)return f;const t=oe[`./locales/${e}.ts`];return t?await t():f},providerName:"BeatUII18n"});exports.BeatUII18n=R;exports.Icon=ee;exports.LOGICAL_PROPERTY_MAP=L;exports.Locale=x;exports.backgroundValue=E;exports.borderColorValue=G;exports.defaultLocale=p;exports.defaultMessages=f;exports.formatFileSize=w;exports.getDirectionClassName=O;exports.getDirectionFromLocale=v;exports.getIconLocally=S;exports.getOppositeDirection=N;exports.getPhysicalProperty=$;exports.hoverBackgroundValue=H;exports.isIndexedDBAvailable=b;exports.isRTLLocale=V;exports.makeI18nProvider=q;exports.makeMessages=F;exports.resolveDirection=I;exports.storeIconLocally=B;exports.textColorValue=K;
@@ -1,59 +0,0 @@
1
- import { Value, type Prop, type TNode } from '@tempots/dom';
2
- import { ControlSize } from '../theme';
3
- import { ThemeColorName } from '../../tokens';
4
- import type { BeatUITemporal, PlainDate } from '../../temporal/types';
5
- export declare const YEARS_PER_PAGE = 20;
6
- export declare const DAYS_IN_WEEK = 7;
7
- export declare const MONTH_NAMES: string[];
8
- export declare const SHORT_MONTH_NAMES: string[];
9
- export declare const DAY_NAMES: string[];
10
- export type CalendarView = 'days' | 'months' | 'years';
11
- export declare function generateCalendarClasses(size: ControlSize, disabled: boolean): string;
12
- export declare function generateCalendarStyles(color: ThemeColorName): string;
13
- /** Base cell data computed by {@link buildCalendarGrid}. */
14
- export interface CalendarBaseCell {
15
- day: number;
16
- date: PlainDate;
17
- inMonth: boolean;
18
- isToday: boolean;
19
- isDisabled: boolean;
20
- }
21
- /** Builds the base array of day cells for a given month. */
22
- export declare function buildCalendarGrid(T: BeatUITemporal, year: number, month: number, weekStartsOn: number, today: PlainDate, isDateDisabled?: (date: PlainDate) => boolean): CalendarBaseCell[];
23
- /** State and actions returned by {@link createCalendarNav}. */
24
- export interface CalendarNav {
25
- today: PlainDate;
26
- currentYear: Prop<number>;
27
- currentMonth: Prop<number>;
28
- view: Prop<CalendarView>;
29
- yearPageStart: Prop<number>;
30
- shiftedDayNames: string[];
31
- prevMonth: () => void;
32
- nextMonth: () => void;
33
- prevYear: () => void;
34
- nextYear: () => void;
35
- prevYearPage: () => void;
36
- nextYearPage: () => void;
37
- switchToMonthsView: () => void;
38
- switchToYearsView: () => void;
39
- selectMonth: (month: number) => void;
40
- selectYear: (year: number) => void;
41
- }
42
- /** Creates the shared navigation state for a calendar. */
43
- export declare function createCalendarNav(T: BeatUITemporal, initialYear: number, initialMonth: number, disabled: Value<boolean>, weekStartsOn: number): CalendarNav;
44
- export interface CalendarShellOptions {
45
- size: Value<ControlSize>;
46
- disabled: Value<boolean>;
47
- color: Value<ThemeColorName>;
48
- ariaLabel: string;
49
- }
50
- /**
51
- * Renders the full calendar shell: outer wrapper, navigation header
52
- * (days/months/years), weekday headers, month picker, year picker,
53
- * and a custom day grid.
54
- */
55
- export declare function renderCalendarShell(nav: CalendarNav, opts: CalendarShellOptions, renderGrid: () => TNode): TNode;
56
- /** Converts a `PlainDate` to a JavaScript `Date` (local midnight). */
57
- export declare function plainDateToDate(pd: PlainDate): Date;
58
- /** Converts a JavaScript `Date` to a `PlainDate`. */
59
- export declare function dateToPlainDate(T: BeatUITemporal, d: Date): PlainDate;
@@ -1,107 +0,0 @@
1
- import { Value, type Renderable } from '@tempots/dom';
2
- import { ControlSize } from '../theme';
3
- import { ThemeColorName } from '../../tokens';
4
- import type { PlainDate } from '../../temporal/types';
5
- /**
6
- * Configuration options for the {@link Calendar} component.
7
- * Uses Temporal `PlainDate` for date values — no time or timezone concerns.
8
- */
9
- export interface CalendarOptions {
10
- /** The currently selected date. */
11
- value?: Value<PlainDate | null>;
12
- /** Callback invoked when a date is selected. */
13
- onSelect?: (date: PlainDate) => void;
14
- /**
15
- * Predicate that returns `true` if the given date should be disabled (unselectable).
16
- * Replaces min/max — use e.g. `d => PlainDate.compare(d, minDate) < 0` for range constraints.
17
- */
18
- isDateDisabled?: (date: PlainDate) => boolean;
19
- /** Theme color for selected and today highlights. @default 'primary' */
20
- color?: Value<ThemeColorName>;
21
- /** Visual size of the calendar. @default 'md' */
22
- size?: Value<ControlSize>;
23
- /** Whether the calendar is disabled. @default false */
24
- disabled?: Value<boolean>;
25
- /**
26
- * The day the week starts on.
27
- * 0 = Sunday, 1 = Monday, etc.
28
- * @default 0
29
- */
30
- weekStartsOn?: number;
31
- }
32
- /**
33
- * Configuration options for the {@link DateCalendar} component.
34
- * Convenience wrapper that uses JavaScript `Date` objects.
35
- */
36
- export interface DateCalendarOptions {
37
- /** The currently selected date (year, month, day). */
38
- value?: Value<Date | null>;
39
- /** Callback invoked when a date is selected. */
40
- onSelect?: (date: Date) => void;
41
- /**
42
- * Predicate that returns `true` if the given date should be disabled (unselectable).
43
- * Replaces min/max — use e.g. `d => d < minDate || d > maxDate` for range constraints.
44
- */
45
- isDateDisabled?: (date: Date) => boolean;
46
- /** Theme color for selected and today highlights. @default 'primary' */
47
- color?: Value<ThemeColorName>;
48
- /** Visual size of the calendar. @default 'md' */
49
- size?: Value<ControlSize>;
50
- /** Whether the calendar is disabled. @default false */
51
- disabled?: Value<boolean>;
52
- /**
53
- * The day the week starts on.
54
- * 0 = Sunday, 1 = Monday, etc.
55
- * @default 0
56
- */
57
- weekStartsOn?: number;
58
- }
59
- /**
60
- * A calendar component for date selection with month/year navigation.
61
- *
62
- * Uses Temporal `PlainDate` internally — a date-only type with no time or
63
- * timezone concerns, 1-based months, and proper date arithmetic.
64
- *
65
- * Renders a full month grid with day-of-week headers, previous/next month
66
- * navigation, and a flexible `isDateDisabled` predicate for controlling which
67
- * dates are selectable. The calendar highlights the currently selected date
68
- * and today's date. Navigation buttons allow moving between months and years.
69
- *
70
- * @param options - Configuration for the calendar
71
- * @returns A calendar element with date selection capability
72
- *
73
- * @example
74
- * ```ts
75
- * import { prop } from '@tempots/dom'
76
- * import { Calendar, PlainDate } from '@tempots/beatui'
77
- *
78
- * const date = prop<PlainDate | null>(null)
79
- * Calendar({
80
- * value: date,
81
- * onSelect: date.set,
82
- * })
83
- * ```
84
- */
85
- export declare function Calendar(options?: CalendarOptions): Renderable;
86
- /**
87
- * A convenience calendar wrapper that uses JavaScript `Date` objects.
88
- *
89
- * Accepts and fires `Date` values, converting to/from `PlainDate` internally.
90
- * Use this when integrating with existing `Date`-based code.
91
- *
92
- * @param options - Configuration for the calendar (uses `Date` objects)
93
- * @returns A calendar element with date selection capability
94
- *
95
- * @example
96
- * ```ts
97
- * import { prop } from '@tempots/dom'
98
- * import { DateCalendar } from '@tempots/beatui'
99
- *
100
- * const date = prop<Date | null>(new Date())
101
- * DateCalendar({
102
- * value: date,
103
- * onSelect: date.set,
104
- * })
105
- * ```
106
- */
107
- export declare function DateCalendar(options?: DateCalendarOptions): Renderable;
@@ -1,14 +0,0 @@
1
- import { TNode, Value } from '@tempots/dom';
2
- import { IconOptions } from './icon';
3
- import { ThemeColorName } from '../../tokens';
4
- export interface IconBadgeOptions extends IconOptions {
5
- /** Show a dot indicator */
6
- indicator?: Value<boolean>;
7
- /** Show a count badge. If > 0, displays the number. */
8
- count?: Value<number>;
9
- /** Max count to display (e.g., 9 shows "9+") */
10
- maxCount?: Value<number>;
11
- /** Color of the indicator badge */
12
- indicatorColor?: Value<ThemeColorName>;
13
- }
14
- export declare function IconBadge(options: IconBadgeOptions): TNode;
@@ -1,104 +0,0 @@
1
- import { Value, type Renderable } from '@tempots/dom';
2
- import { ControlSize } from '../theme';
3
- import { ThemeColorName } from '../../tokens';
4
- import type { PlainDate } from '../../temporal/types';
5
- /**
6
- * Configuration options for the {@link RangeCalendar} component.
7
- * Uses Temporal `PlainDate` for date values — no time or timezone concerns.
8
- */
9
- export interface RangeCalendarOptions {
10
- /** The currently selected date range as `[start, end]`. */
11
- value?: Value<[PlainDate, PlainDate] | null>;
12
- /** Callback invoked when a complete range is selected. */
13
- onChange?: (range: [PlainDate, PlainDate]) => void;
14
- /**
15
- * Predicate that returns `true` if the given date should be disabled (unselectable).
16
- */
17
- isDateDisabled?: (date: PlainDate) => boolean;
18
- /** Theme color for selected and today highlights. @default 'primary' */
19
- color?: Value<ThemeColorName>;
20
- /** Visual size of the calendar. @default 'md' */
21
- size?: Value<ControlSize>;
22
- /** Whether the calendar is disabled. @default false */
23
- disabled?: Value<boolean>;
24
- /**
25
- * The day the week starts on.
26
- * 0 = Sunday, 1 = Monday, etc.
27
- * @default 0
28
- */
29
- weekStartsOn?: number;
30
- }
31
- /**
32
- * Configuration options for the {@link DateRangeCalendar} component.
33
- * Convenience wrapper that uses JavaScript `Date` objects.
34
- */
35
- export interface DateRangeCalendarOptions {
36
- /** The currently selected date range as `[start, end]`. */
37
- value?: Value<[Date, Date] | null>;
38
- /** Callback invoked when a complete range is selected. */
39
- onChange?: (range: [Date, Date]) => void;
40
- /**
41
- * Predicate that returns `true` if the given date should be disabled (unselectable).
42
- */
43
- isDateDisabled?: (date: Date) => boolean;
44
- /** Theme color for selected and today highlights. @default 'primary' */
45
- color?: Value<ThemeColorName>;
46
- /** Visual size of the calendar. @default 'md' */
47
- size?: Value<ControlSize>;
48
- /** Whether the calendar is disabled. @default false */
49
- disabled?: Value<boolean>;
50
- /**
51
- * The day the week starts on.
52
- * 0 = Sunday, 1 = Monday, etc.
53
- * @default 0
54
- */
55
- weekStartsOn?: number;
56
- }
57
- /**
58
- * A calendar component for date range selection with hover preview.
59
- *
60
- * Uses Temporal `PlainDate` internally — a date-only type with no time or
61
- * timezone concerns, 1-based months, and proper date arithmetic.
62
- *
63
- * Users click twice to select a range: the first click sets the start date,
64
- * hovering shows a preview, and the second click completes the range.
65
- * The range is auto-sorted so start is always before end.
66
- *
67
- * @param options - Configuration for the range calendar
68
- * @returns A calendar element with date range selection capability
69
- *
70
- * @example
71
- * ```ts
72
- * import { prop } from '@tempots/dom'
73
- * import { RangeCalendar, PlainDate } from '@tempots/beatui'
74
- *
75
- * const range = prop<[PlainDate, PlainDate] | null>(null)
76
- * RangeCalendar({
77
- * value: range,
78
- * onChange: range.set,
79
- * })
80
- * ```
81
- */
82
- export declare function RangeCalendar(options?: RangeCalendarOptions): Renderable;
83
- /**
84
- * A convenience range calendar wrapper that uses JavaScript `Date` objects.
85
- *
86
- * Accepts and fires `Date` values, converting to/from `PlainDate` internally.
87
- * Use this when integrating with existing `Date`-based code.
88
- *
89
- * @param options - Configuration for the range calendar (uses `Date` objects)
90
- * @returns A calendar element with date range selection capability
91
- *
92
- * @example
93
- * ```ts
94
- * import { prop } from '@tempots/dom'
95
- * import { DateRangeCalendar } from '@tempots/beatui'
96
- *
97
- * const range = prop<[Date, Date] | null>(null)
98
- * DateRangeCalendar({
99
- * value: range,
100
- * onChange: range.set,
101
- * })
102
- * ```
103
- */
104
- export declare function DateRangeCalendar(options?: DateRangeCalendarOptions): Renderable;
@@ -1,51 +0,0 @@
1
- import { Value } from '@tempots/dom';
2
- import { ThemeColorName } from '../../tokens';
3
- import { ControlSize } from '../theme';
4
- /**
5
- * A small label component for categorization, filtering, or displaying metadata.
6
- * Supports optional close button for removable tags and theme-aware color styling.
7
- *
8
- * When an `onClose` callback is provided, a close button is rendered alongside the tag text.
9
- * The tag automatically adapts to light and dark themes using CSS custom properties.
10
- *
11
- * @param options - Tag configuration
12
- * @param options.value - Reactive string displayed as the tag label
13
- * @param options.color - Theme color for the tag background and text (default: 'base')
14
- * @param options.onClose - Callback when the close button is clicked; receives the current tag value
15
- * @param options.size - Size of the tag (default: 'md')
16
- * @param options.class - Additional CSS class(es) to apply
17
- * @param options.disabled - Whether the tag and its close button are disabled
18
- * @returns A styled span element representing the tag
19
- *
20
- * @example
21
- * ```typescript
22
- * Tag({ value: 'TypeScript', color: 'primary' })
23
- * ```
24
- *
25
- * @example
26
- * ```typescript
27
- * // Removable tag
28
- * const tags = prop(['React', 'Vue', 'Solid'])
29
- * ForEach(tags, tag =>
30
- * Tag({
31
- * value: tag,
32
- * color: 'info',
33
- * onClose: (v) => tags.set(tags.value.filter(t => t !== v))
34
- * })
35
- * )
36
- * ```
37
- */
38
- export declare const Tag: ({ value, color, onClose, size, class: cls, disabled, }: {
39
- /** Reactive string displayed as the tag label. */
40
- value: Value<string>;
41
- /** Theme color for the tag background and text. @default 'base' */
42
- color?: Value<ThemeColorName>;
43
- /** Callback when the close button is clicked; receives the current tag value. */
44
- onClose?: (value: string) => void;
45
- /** Size of the tag. @default 'md' */
46
- size?: Value<ControlSize>;
47
- /** Additional CSS class(es) to apply. */
48
- class?: Value<string>;
49
- /** Whether the tag and its close button are disabled. */
50
- disabled?: Value<boolean>;
51
- }) => import("@tempots/dom").Renderable;