@tempots/beatui 0.87.3 → 0.88.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 (177) hide show
  1. package/dist/{ar-DjMvIww5.js → ar-MUKILk4c.js} +1 -1
  2. package/dist/auth/index.cjs.js +1 -1
  3. package/dist/auth/index.es.js +1 -1
  4. package/dist/{auth-divider-V_Se6Qhe.cjs → auth-divider-Cj-xJxF_.cjs} +1 -1
  5. package/dist/{auth-divider-BIefTDoO.js → auth-divider-DvVmqjnk.js} +101 -103
  6. package/dist/beatui.css +732 -671
  7. package/dist/beatui.tailwind.css +714 -662
  8. package/dist/better-auth/index.cjs.js +1 -1
  9. package/dist/better-auth/index.es.js +12 -12
  10. package/dist/{colors-BmLYKmoH.js → colors-BY0Ja_bf.js} +12 -12
  11. package/dist/{de-wChFYqM4.js → de-CEsW1rVX.js} +1 -1
  12. package/dist/deep-merge-Dgy9xj6w.cjs +1 -0
  13. package/dist/{deep-merge-BRqRzEQs.js → deep-merge-OvVqSLSN.js} +443 -429
  14. package/dist/{duration-input-BDEb1Bb7.js → duration-input-BCXujp0V.js} +5 -5
  15. package/dist/{duration-input-BtFL5Vjx.cjs → duration-input-MJz6UO6E.cjs} +1 -1
  16. package/dist/{editor-toolbar-group-CwCCGzEC.js → editor-toolbar-group-Cnta0SOa.js} +6 -3
  17. package/dist/{es-CmPF3IGl.js → es-ChP-aFwC.js} +1 -1
  18. package/dist/{fa-D696e75R.js → fa-CNsrlIqh.js} +1 -1
  19. package/dist/{fr-B0jeX1Hx.js → fr-DgEFKpML.js} +1 -1
  20. package/dist/{he-SgAsIYJA.js → he-B4TqfISZ.js} +1 -1
  21. package/dist/{hi-s9oiIihq.js → hi-TSoDsngT.js} +1 -1
  22. package/dist/{index-KNk3k6NI.js → index-1JaBwDB-.js} +1 -1
  23. package/dist/index-B8cqD9ny.js +838 -0
  24. package/dist/index-CN10Cyqr.cjs +1 -0
  25. package/dist/{index-yMrXbIdg.cjs → index-CTcbhnPw.cjs} +1 -1
  26. package/dist/{index-CaWDj1Vg.cjs → index-D3QVPAme.cjs} +10 -10
  27. package/dist/{index-qa82MK4Z.cjs → index-D4ZFV8Rs.cjs} +1 -1
  28. package/dist/{index-anrXec7K.cjs → index-DF7RFzD9.cjs} +1 -1
  29. package/dist/{index-B0t-nt7i.js → index-DOc1_-Nm.js} +4 -4
  30. package/dist/{index-DdqGL9Jk.js → index-D_aTUfqS.js} +701 -684
  31. package/dist/{index-BFe-x3-z.js → index-DfPkCwdC.js} +2 -2
  32. package/dist/index.cjs.js +4 -4
  33. package/dist/index.es.js +2285 -2260
  34. package/dist/{index.esm-ChUrm4xR.js → index.esm-By0m3ki1.js} +3 -3
  35. package/dist/{input-container-DhUiLmXE.js → input-container-BBWCDGTv.js} +1 -1
  36. package/dist/{it-Dc4IMciD.js → it-BrbebXg4.js} +1 -1
  37. package/dist/{ja-D2t2g5xj.js → ja-DcfOktrV.js} +1 -1
  38. package/dist/json-schema/index.cjs.js +1 -1
  39. package/dist/json-schema/index.es.js +97 -103
  40. package/dist/json-schema-display/index.cjs.js +1 -1
  41. package/dist/json-schema-display/index.es.js +15 -15
  42. package/dist/json-structure/index.cjs.js +1 -1
  43. package/dist/json-structure/index.es.js +349 -351
  44. package/dist/{ko-BRylA5JZ.js → ko-73e6t369.js} +1 -1
  45. package/dist/lexical/index.cjs.js +5 -12
  46. package/dist/lexical/index.es.js +57 -87
  47. package/dist/lexical.css +24 -23
  48. package/dist/markdown/index.cjs.js +1 -1
  49. package/dist/markdown/index.es.js +1 -1
  50. package/dist/markdown.css +7 -7
  51. package/dist/{menu-Ui4lUPHM.js → menu-CV85y3Xf.js} +1 -1
  52. package/dist/{modal-Dkje8L_l.js → modal-BBJWY7NB.js} +5 -5
  53. package/dist/{modal-Coenk8Fy.cjs → modal-jJMS0ZlW.cjs} +1 -1
  54. package/dist/monaco/index.es.js +1 -1
  55. package/dist/{nl-Dh7LUWAn.js → nl-Bq-1-ulc.js} +1 -1
  56. package/dist/notice-9lpZ-VDn.cjs +1 -0
  57. package/dist/{notice-BmkckDsD.js → notice-AUVH8Lho.js} +26 -28
  58. package/dist/{oneof-branch-detection-BED_n2MT.js → oneof-branch-detection-BQnRjp9P.js} +1740 -1734
  59. package/dist/{oneof-branch-detection-Vov_e3kI.cjs → oneof-branch-detection-BsGhMslW.cjs} +6 -6
  60. package/dist/{pl-XEG-p1Q9.js → pl-Du9-VCfW.js} +1 -1
  61. package/dist/prosemirror/index.cjs.js +1 -1
  62. package/dist/prosemirror/index.es.js +1 -1
  63. package/dist/prosemirror.css +7 -7
  64. package/dist/{pt-DYsDA2sZ.js → pt-B2UqqSAB.js} +1 -1
  65. package/dist/{ru-BTKBykp-.js → ru-DiWa2inw.js} +1 -1
  66. package/dist/stack-4VUGISn6.cjs +1 -0
  67. package/dist/{stack-BJgsPJ9A.js → stack-Bm-UZosx.js} +145 -139
  68. package/dist/styles-url-4g2WnNJ8.js +4 -0
  69. package/dist/{styles-url-DZhZ-9Bf.js → styles-url-CJYy5nML.js} +1 -1
  70. package/dist/{styles-url-YAJ6Q1GS.cjs → styles-url-D8nVwSmZ.cjs} +1 -1
  71. package/dist/{styles-url-BSUFsmMD.cjs → styles-url-evUdl8tK.cjs} +1 -1
  72. package/dist/{styles-url-BvcVGpBJ.js → styles-url-hKxIOumK.js} +1 -1
  73. package/dist/styles-url-mlDYoWbF.cjs +1 -0
  74. package/dist/tailwind/preset.cjs.js +1 -1
  75. package/dist/tailwind/preset.es.js +2 -2
  76. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  77. package/dist/tailwind/vite-plugin.es.js +1 -1
  78. package/dist/{text-input-BZmAB3_o.js → text-input-6FD7p7hN.js} +5 -5
  79. package/dist/{theme-BzpMLdvH.js → theme-kQZEeusG.js} +4 -4
  80. package/dist/{toolbar-Pdj-F80l.js → toolbar-Cr0JGj5h.js} +1 -1
  81. package/dist/{tr-Cp8ZCUic.js → tr-Culcm2Zb.js} +1 -1
  82. package/dist/{translations-jUYta1_1.js → translations-Cttn6w0G.js} +1 -1
  83. package/dist/{translations-BGblCUBj.js → translations-uEUkO6gJ.js} +30 -30
  84. package/dist/types/auth-i18n/translations.d.ts +2 -2
  85. package/dist/types/beatui-i18n/translations.d.ts +2 -2
  86. package/dist/types/better-auth/components/authenticated.d.ts +2 -2
  87. package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
  88. package/dist/types/better-auth/i18n/translations.d.ts +2 -2
  89. package/dist/types/better-auth/provider.d.ts +2 -2
  90. package/dist/types/components/auth/auth-container.d.ts +1 -1
  91. package/dist/types/components/auth/auth-email-prop.d.ts +1 -1
  92. package/dist/types/components/beatui.d.ts +1 -1
  93. package/dist/types/components/button/button.d.ts +1 -1
  94. package/dist/types/components/content/native-pdf-preview.d.ts +1 -1
  95. package/dist/types/components/content/pdfjs-preview.d.ts +1 -1
  96. package/dist/types/components/data/icon.d.ts +1 -1
  97. package/dist/types/components/data/page-drop-zone.d.ts +1 -1
  98. package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
  99. package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +1 -1
  100. package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +1 -1
  101. package/dist/types/components/form/control/control.d.ts +2 -2
  102. package/dist/types/components/form/control/ensure-control.d.ts +1 -1
  103. package/dist/types/components/form/control/list-control.d.ts +1 -1
  104. package/dist/types/components/form/controller/color-controller.d.ts +4 -4
  105. package/dist/types/components/form/input/appearance-selector.d.ts +2 -2
  106. package/dist/types/components/form/input/base64-input.d.ts +1 -1
  107. package/dist/types/components/form/input/base64s-input.d.ts +1 -1
  108. package/dist/types/components/form/input/combobox-tags-input.d.ts +1 -1
  109. package/dist/types/components/form/input/email-input.d.ts +1 -1
  110. package/dist/types/components/form/input/file-input.d.ts +1 -1
  111. package/dist/types/components/form/input/files-input.d.ts +1 -1
  112. package/dist/types/components/form/input/input-options.d.ts +1 -1
  113. package/dist/types/components/form/input/list-input.d.ts +1 -1
  114. package/dist/types/components/form/input/nullable-base64-input.d.ts +1 -1
  115. package/dist/types/components/form/input/nullable-plain-date-input.d.ts +12 -12
  116. package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +12 -12
  117. package/dist/types/components/form/input/nullable-plain-time-input.d.ts +12 -12
  118. package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +12 -12
  119. package/dist/types/components/form/input/password-input.d.ts +1 -1
  120. package/dist/types/components/form/input/plain-date-input.d.ts +12 -12
  121. package/dist/types/components/form/input/plain-date-time-input.d.ts +12 -12
  122. package/dist/types/components/form/input/plain-time-input.d.ts +12 -12
  123. package/dist/types/components/form/input/plain-year-month-input.d.ts +12 -12
  124. package/dist/types/components/form/input/select-tags-input.d.ts +3 -3
  125. package/dist/types/components/form/input/step-utils.d.ts +5 -0
  126. package/dist/types/components/form/use-form.d.ts +3 -3
  127. package/dist/types/components/i18n/locale-direction.d.ts +1 -1
  128. package/dist/types/components/i18n/locale-selector.d.ts +1 -1
  129. package/dist/types/components/i18n/locale.d.ts +1 -1
  130. package/dist/types/components/i18n/make-i18nprovider.d.ts +2 -2
  131. package/dist/types/components/layout/app-shell.d.ts +1 -1
  132. package/dist/types/components/lexical/code/language-selector.d.ts +1 -1
  133. package/dist/types/components/lexical/floating/block-handle.d.ts +1 -1
  134. package/dist/types/components/lexical/floating/floating-toolbar.d.ts +1 -1
  135. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +1 -1
  136. package/dist/types/components/lexical/table/table-controls.d.ts +1 -1
  137. package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +1 -1
  138. package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +2 -2
  139. package/dist/types/components/media/pdf-page-viewer.d.ts +1 -1
  140. package/dist/types/components/misc/notification-provider.d.ts +2 -2
  141. package/dist/types/components/navigation/link/button-link.d.ts +1 -1
  142. package/dist/types/components/navigation/link/link.d.ts +1 -1
  143. package/dist/types/components/navigation/link/navigation-link.d.ts +1 -1
  144. package/dist/types/components/navigation/pagination.d.ts +1 -1
  145. package/dist/types/components/navigation/sidebar/sidebar.d.ts +2 -2
  146. package/dist/types/components/navigation/toolbar/toolbar.d.ts +1 -1
  147. package/dist/types/components/prosemirror/link-control.d.ts +1 -1
  148. package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +1 -1
  149. package/dist/types/components/prosemirror/utils.d.ts +2 -2
  150. package/dist/types/components/theme/theme.d.ts +2 -2
  151. package/dist/types/i18n/translate.d.ts +1 -1
  152. package/dist/types/tailwind/preset.d.ts +1 -1
  153. package/dist/types/tailwind/vite-plugin.d.ts +1 -1
  154. package/dist/types/tokens/borders.d.ts +104 -0
  155. package/dist/types/tokens/controls.d.ts +127 -0
  156. package/dist/types/tokens/index.d.ts +2 -0
  157. package/dist/types/tokens/radius.d.ts +14 -14
  158. package/dist/types/tokens/typography.d.ts +33 -33
  159. package/dist/types/utils/delay-signal.d.ts +1 -1
  160. package/dist/types/utils/use-animated-toggle.d.ts +22 -22
  161. package/dist/{ur-DkIYJxsF.js → ur-Deb-uH6b.js} +1 -1
  162. package/dist/{use-animated-toggle-89fKlXxy.js → use-animated-toggle-C7PTmnZi.js} +7 -7
  163. package/dist/{use-form-B_mCauP0.cjs → use-form-i97PToWB.cjs} +1 -1
  164. package/dist/{use-form-BSvvERhX.js → use-form-lg6-7Brc.js} +14 -13
  165. package/dist/{vi-DKw6PBja.js → vi-CUsCVh3n.js} +1 -1
  166. package/dist/widget-customization-BLvD4Lqt.cjs +1 -0
  167. package/dist/{widget-customization-DFr3ycD7.js → widget-customization-CDD72zYs.js} +29 -29
  168. package/dist/{zh-CaKHseXJ.js → zh-Dil2Jft8.js} +1 -1
  169. package/package.json +35 -31
  170. package/dist/deep-merge-CvN7Xvd1.cjs +0 -1
  171. package/dist/index-BywbRDsb.cjs +0 -1
  172. package/dist/index-D2_J_-XS.js +0 -671
  173. package/dist/notice-DMK7dx9a.cjs +0 -1
  174. package/dist/stack-DcZ_u50f.cjs +0 -1
  175. package/dist/styles-url-CCopc5pG.js +0 -4
  176. package/dist/styles-url-CEDSZTyZ.cjs +0 -1
  177. package/dist/widget-customization-BASfRpF7.cjs +0 -1
@@ -9,4 +9,4 @@ export interface LexicalToolbarOptions {
9
9
  readOnly?: Signal<boolean>;
10
10
  size?: Value<ControlSize>;
11
11
  }
12
- export declare function LexicalToolbar({ editor, stateUpdate, toolbar, readOnly, size, }: LexicalToolbarOptions): import("@tempots/dom").Renderable;
12
+ export declare function LexicalToolbar({ editor, stateUpdate, toolbar, readOnly, size, }: LexicalToolbarOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -13,7 +13,7 @@ export declare function createToolbarHelpers(ed: Signal<LexicalEditor>, stateUpd
13
13
  textFormatActive: (fmt: TextFormatType) => Signal<boolean>;
14
14
  blockTypeActive: (type: string) => Signal<boolean>;
15
15
  listTypeActive: (listType: string) => Signal<boolean>;
16
- headingActive: (level: number) => import("@tempots/dom").Computed<boolean>;
16
+ headingActive: (level: number) => import("@tempots/core").Computed<boolean>;
17
17
  linkActive: () => Signal<boolean>;
18
18
  dispatch: <T>(command: LexicalCommand<T>, payload: T) => () => void;
19
19
  toggleBlock: (type: string, create: () => ElementNode) => () => void;
@@ -29,4 +29,4 @@ export declare function createButtonFactory(readOnly: Signal<boolean>, size: Val
29
29
  onClick: () => void;
30
30
  label: Value<string>;
31
31
  icon: string;
32
- }) => import("@tempots/dom").Renderable;
32
+ }) => import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -64,5 +64,5 @@ export interface PdfPageViewerOptions {
64
64
  * @example
65
65
  * PdfPageViewer({ source: pdfUrl, page: 1 }, attr.class('my-canvas'))
66
66
  */
67
- export declare function PdfPageViewer({ source, page, fit, scale, rotation, quality, renderTextLayer, renderAnnotationLayer, onPageChange, onLoadComplete, }: PdfPageViewerOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
67
+ export declare function PdfPageViewer({ source, page, fit, scale, rotation, quality, renderTextLayer, renderAnnotationLayer, onPageChange, onLoadComplete, }: PdfPageViewerOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
68
68
  export {};
@@ -159,7 +159,7 @@ export declare const NotificationService: NotificationServiceImpl;
159
159
  * )
160
160
  * ```
161
161
  */
162
- export declare const NotificationProvider: Provider<NotificationProviderValue, NotificationProviderOptions>;
162
+ export declare const NotificationProvider: Provider<NotificationProviderValue>;
163
163
  /**
164
164
  * Renders the notification viewport container that displays active notifications.
165
165
  * Must be placed inside a tree that has a {@link NotificationProvider} ancestor.
@@ -184,5 +184,5 @@ export declare const NotificationProvider: Provider<NotificationProviderValue, N
184
184
  * )
185
185
  * ```
186
186
  */
187
- export declare function NotificationViewport(): import("@tempots/dom").Renderable;
187
+ export declare function NotificationViewport(): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
188
188
  export {};
@@ -22,4 +22,4 @@ export interface ButtonLinkOptions {
22
22
  fullWidth?: Value<boolean>;
23
23
  loading?: Value<boolean>;
24
24
  }
25
- export declare function ButtonLink({ href, viewTransition, state, scroll, replace, target, rel, matchMode, disableWhenActive, variant, size, color, roundedness, disabled, }: ButtonLinkOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
25
+ export declare function ButtonLink({ href, viewTransition, state, scroll, replace, target, rel, matchMode, disableWhenActive, variant, size, color, roundedness, disabled, }: ButtonLinkOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -117,4 +117,4 @@ export declare function generateLinkStyles(color: ThemeColorName): string;
117
117
  * )
118
118
  * ```
119
119
  */
120
- export declare function Link({ href, variant, color, colorDisabled, disabled, viewTransition, state, scroll, replace, target, rel, }: LinkOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
120
+ export declare function Link({ href, variant, color, colorDisabled, disabled, viewTransition, state, scroll, replace, target, rel, }: LinkOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -19,5 +19,5 @@ export interface NavigationLinkOptions extends Omit<LinkOptions, 'disabled'> {
19
19
  export declare function isUrlMatch(location: LocationData, targetHref: string, matchMode: UrlMatchMode): boolean;
20
20
  type LocationMatcher = string | RegExp | ((location: LocationData) => boolean);
21
21
  export declare function createLocationMatcher(href: Value<string>, matchMode: UrlMatchMode): Value<LocationMatcher>;
22
- export declare function NavigationLink({ href, matchMode, disableWhenActive, ...linkOptions }: NavigationLinkOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
22
+ export declare function NavigationLink({ href, matchMode, disableWhenActive, ...linkOptions }: NavigationLinkOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
23
23
  export {};
@@ -79,4 +79,4 @@ export declare function generatePaginationRange(current: number, total: number,
79
79
  * })
80
80
  * ```
81
81
  */
82
- export declare function Pagination({ currentPage, totalPages, onPageChange, siblings, showPrevNext, showFirstLast, size, justify, responsive, }: PaginationOptions): import("@tempots/dom").Renderable;
82
+ export declare function Pagination({ currentPage, totalPages, onPageChange, siblings, showPrevNext, showFirstLast, size, justify, responsive, }: PaginationOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -36,7 +36,7 @@ export type SidebarContextValue = {
36
36
  * })
37
37
  * ```
38
38
  */
39
- export declare const SidebarContext: Provider<SidebarContextValue, object>;
39
+ export declare const SidebarContext: Provider<SidebarContextValue>;
40
40
  /**
41
41
  * Sidebar navigation container that provides a vertical navigation panel with context
42
42
  * for child components.
@@ -64,4 +64,4 @@ export declare const SidebarContext: Provider<SidebarContextValue, object>;
64
64
  * )
65
65
  * ```
66
66
  */
67
- export declare function Sidebar({ backgroundMode }: SidebarOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
67
+ export declare function Sidebar({ backgroundMode }: SidebarOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -75,7 +75,7 @@ export interface ToolbarButtonOptions extends ButtonOptions {
75
75
  * )
76
76
  * ```
77
77
  */
78
- export declare function ToolbarButton(options: ButtonOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
78
+ export declare function ToolbarButton(options: ButtonOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
79
79
  /**
80
80
  * Configuration options for the {@link ToolbarGroup} component.
81
81
  */
@@ -50,4 +50,4 @@ export interface LinkDialogButtonProps {
50
50
  * })
51
51
  * ```
52
52
  */
53
- export declare function LinkControl({ stateUpdate, view, isReadOnly, label, linkUrlPlaceholder, size, }: LinkDialogButtonProps): import("@tempots/dom").Renderable<import("@tempots/dom").DOMContext>;
53
+ export declare function LinkControl({ stateUpdate, view, isReadOnly, label, linkUrlPlaceholder, size, }: LinkDialogButtonProps): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -55,4 +55,4 @@ export interface ProseMirrorToolbarOptions {
55
55
  * })
56
56
  * ```
57
57
  */
58
- export declare function ProseMirrorToolbar({ view, stateUpdate, features, readOnly, size, }: ProseMirrorToolbarOptions): import("@tempots/dom").Renderable;
58
+ export declare function ProseMirrorToolbar({ view, stateUpdate, features, readOnly, size, }: ProseMirrorToolbarOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -78,7 +78,7 @@ export declare function getMarkByType(state: EditorState, markType: MarkType): M
78
78
  * })
79
79
  * ```
80
80
  */
81
- export declare function makeActiveMarkSignal(state: Signal<number>, view: Signal<EditorView>, markType: string): import("@tempots/dom").Computed<boolean>;
81
+ export declare function makeActiveMarkSignal(state: Signal<number>, view: Signal<EditorView>, markType: string): import("@tempots/core").Computed<boolean>;
82
82
  /**
83
83
  * Checks whether a node of the given type is active at the current selection
84
84
  * position.
@@ -121,4 +121,4 @@ export declare function isNodeActive(state: EditorState, nodeType: NodeType, att
121
121
  * })
122
122
  * ```
123
123
  */
124
- export declare function makeActiveNodeSignal(state: Signal<number>, view: Signal<EditorView>, nodeTypeName: string, attrs?: Record<string, unknown>): import("@tempots/dom").Computed<boolean>;
124
+ export declare function makeActiveNodeSignal(state: Signal<number>, view: Signal<EditorView>, nodeTypeName: string, attrs?: Record<string, unknown>): import("@tempots/core").Computed<boolean>;
@@ -27,7 +27,7 @@ export interface ThemeOptions {
27
27
  * )
28
28
  * ```
29
29
  */
30
- export declare const Theme: Provider<ThemeValue, ThemeOptions>;
30
+ export declare const Theme: Provider<ThemeValue>;
31
31
  /**
32
32
  * Reactive node that applies the current theme appearance as a CSS class
33
33
  * (`'dark'` or `'light'`) on the `<html>` element via a Portal.
@@ -46,4 +46,4 @@ export declare const Theme: Provider<ThemeValue, ThemeOptions>;
46
46
  * )
47
47
  * ```
48
48
  */
49
- export declare const ThemeAppearance: () => import("@tempots/dom").Renderable;
49
+ export declare const ThemeAppearance: () => import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
@@ -63,5 +63,5 @@ export declare function makeMessages<M extends object>({ locale, defaultLocale,
63
63
  /** Clean up all resources and event listeners */
64
64
  dispose: () => void;
65
65
  /** Translation functions that return reactive signals */
66
- t: import("@tempots/dom").Prop<M>;
66
+ t: import("@tempots/core").Prop<M>;
67
67
  };
@@ -73,7 +73,7 @@ export interface BeatuiPresetOptions {
73
73
  */
74
74
  baseSpacing?: string;
75
75
  /**
76
- * Override the base font size (`--base-font-size`). All font size and per-size
76
+ * Override the base font size (`--font-size-base`). All font size and per-size
77
77
  * line height values are computed from this variable. Defaults to `'1rem'`.
78
78
  *
79
79
  * @example
@@ -30,7 +30,7 @@ export interface BeatuiTailwindPluginOptions {
30
30
  */
31
31
  baseSpacing?: string;
32
32
  /**
33
- * Override the base font size (`--base-font-size`). All font size and per-size
33
+ * Override the base font size (`--font-size-base`). All font size and per-size
34
34
  * line height values are computed from this variable. Defaults to `'1rem'`.
35
35
  */
36
36
  baseFontSize?: string;
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Border and outline design tokens for BeatUI.
3
+ *
4
+ * Defines scales for border widths and outline widths used consistently
5
+ * across all interactive components.
6
+ *
7
+ * @module
8
+ */
9
+ /**
10
+ * Border width scale mapping size names to CSS values.
11
+ *
12
+ * | Name | Value | Usage |
13
+ * |---------|--------|--------------------------------------|
14
+ * | none | 0 | No border |
15
+ * | thin | 1px | Subtle separators, dividers |
16
+ * | default | 1.5px | Buttons, inputs, badges |
17
+ * | medium | 2px | Focus rings, emphasis, tabs |
18
+ * | thick | 3px | Modals, heavy emphasis |
19
+ */
20
+ export declare const borderWidth: {
21
+ readonly none: "0";
22
+ readonly thin: "1px";
23
+ readonly default: "1.5px";
24
+ readonly medium: "2px";
25
+ readonly thick: "3px";
26
+ };
27
+ /**
28
+ * Union type of all available border width names.
29
+ */
30
+ export type BorderWidthName = keyof typeof borderWidth;
31
+ /**
32
+ * Returns the CSS custom property name for a border width.
33
+ *
34
+ * @param size - The border width name
35
+ * @returns The CSS variable name (e.g., `'--border-width-default'`)
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * getBorderWidthVarName('default') // '--border-width-default'
40
+ * ```
41
+ */
42
+ export declare function getBorderWidthVarName(size: BorderWidthName): string;
43
+ /**
44
+ * Returns a CSS `var()` expression referencing the border width custom property.
45
+ *
46
+ * @param size - The border width name
47
+ * @returns A CSS `var()` string (e.g., `'var(--border-width-default)'`)
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * getBorderWidthVar('default') // 'var(--border-width-default)'
52
+ * ```
53
+ */
54
+ export declare function getBorderWidthVar(size: BorderWidthName): string;
55
+ /**
56
+ * Generates CSS custom property declarations for all border width tokens.
57
+ *
58
+ * @returns A record mapping CSS variable names to their border width values
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const vars = generateBorderWidthVariables()
63
+ * // vars['--border-width-default'] === '1.5px'
64
+ * ```
65
+ */
66
+ export declare function generateBorderWidthVariables(): Record<string, string>;
67
+ /**
68
+ * Outline width scale mapping size names to CSS values.
69
+ *
70
+ * | Name | Value | Usage |
71
+ * |---------|-------|----------------------------------|
72
+ * | none | 0 | No outline |
73
+ * | default | 1px | Default input outline |
74
+ * | focus | 2px | Focus state, error state |
75
+ */
76
+ export declare const outlineWidth: {
77
+ readonly none: "0";
78
+ readonly default: "1px";
79
+ readonly focus: "2px";
80
+ };
81
+ /**
82
+ * Union type of all available outline width names.
83
+ */
84
+ export type OutlineWidthName = keyof typeof outlineWidth;
85
+ /**
86
+ * Returns the CSS custom property name for an outline width.
87
+ *
88
+ * @param size - The outline width name
89
+ * @returns The CSS variable name (e.g., `'--outline-width-focus'`)
90
+ */
91
+ export declare function getOutlineWidthVarName(size: OutlineWidthName): string;
92
+ /**
93
+ * Returns a CSS `var()` expression referencing the outline width custom property.
94
+ *
95
+ * @param size - The outline width name
96
+ * @returns A CSS `var()` string (e.g., `'var(--outline-width-focus)'`)
97
+ */
98
+ export declare function getOutlineWidthVar(size: OutlineWidthName): string;
99
+ /**
100
+ * Generates CSS custom property declarations for all outline width tokens.
101
+ *
102
+ * @returns A record mapping CSS variable names to their outline width values
103
+ */
104
+ export declare function generateOutlineWidthVariables(): Record<string, string>;
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Control design tokens for BeatUI.
3
+ *
4
+ * Defines semantic tokens for interactive controls (buttons, inputs, badges, etc.)
5
+ * including heights, padding, gaps, and overlay sizing. All values are computed
6
+ * from the base spacing variable, enabling global scaling.
7
+ *
8
+ * @module
9
+ */
10
+ /**
11
+ * Semantic control height scale. All values are multiples of `--spacing-base`,
12
+ * so changing the base spacing unit scales every control uniformly.
13
+ *
14
+ * | Name | Multiplier | Approx (at 0.25rem base) |
15
+ * |------|------------|--------------------------|
16
+ * | xs | base * 7 | 28px |
17
+ * | sm | base * 8 | 32px |
18
+ * | md | base * 10 | 40px |
19
+ * | lg | base * 12 | 48px |
20
+ * | xl | base * 14 | 56px |
21
+ */
22
+ export declare const controlHeight: {
23
+ readonly xs: "calc(var(--spacing-base) * 7)";
24
+ readonly sm: "calc(var(--spacing-base) * 8)";
25
+ readonly md: "calc(var(--spacing-base) * 10)";
26
+ readonly lg: "calc(var(--spacing-base) * 12)";
27
+ readonly xl: "calc(var(--spacing-base) * 14)";
28
+ };
29
+ export type ControlHeightName = keyof typeof controlHeight;
30
+ export declare function getControlHeightVarName(size: ControlHeightName): string;
31
+ export declare function getControlHeightVar(size: ControlHeightName): string;
32
+ export declare function generateControlHeightVariables(): Record<string, string>;
33
+ /**
34
+ * Semantic control block (vertical) padding scale.
35
+ *
36
+ * | Name | Token reference | Approx |
37
+ * |------|------------------|--------|
38
+ * | xs | --spacing-xs | 2px |
39
+ * | sm | --spacing-sm | 4px |
40
+ * | md | --spacing-md | 8px |
41
+ * | lg | --spacing-mdh | 12px |
42
+ * | xl | --spacing-lg | 16px |
43
+ */
44
+ export declare const controlPaddingBlock: {
45
+ readonly xs: "var(--spacing-xs)";
46
+ readonly sm: "var(--spacing-sm)";
47
+ readonly md: "var(--spacing-md)";
48
+ readonly lg: "var(--spacing-mdh)";
49
+ readonly xl: "var(--spacing-lg)";
50
+ };
51
+ export type ControlPaddingBlockName = keyof typeof controlPaddingBlock;
52
+ export declare function getControlPaddingBlockVarName(size: ControlPaddingBlockName): string;
53
+ export declare function getControlPaddingBlockVar(size: ControlPaddingBlockName): string;
54
+ /**
55
+ * Semantic control inline (horizontal) padding scale.
56
+ *
57
+ * | Name | Token reference | Approx |
58
+ * |------|------------------|--------|
59
+ * | xs | --spacing-md | 8px |
60
+ * | sm | --spacing-mdh | 12px |
61
+ * | md | --spacing-lg | 16px |
62
+ * | lg | --spacing-lgh | 20px |
63
+ * | xl | --spacing-xl | 24px |
64
+ */
65
+ export declare const controlPaddingInline: {
66
+ readonly xs: "var(--spacing-md)";
67
+ readonly sm: "var(--spacing-mdh)";
68
+ readonly md: "var(--spacing-lg)";
69
+ readonly lg: "var(--spacing-lgh)";
70
+ readonly xl: "var(--spacing-xl)";
71
+ };
72
+ export type ControlPaddingInlineName = keyof typeof controlPaddingInline;
73
+ export declare function getControlPaddingInlineVarName(size: ControlPaddingInlineName): string;
74
+ export declare function getControlPaddingInlineVar(size: ControlPaddingInlineName): string;
75
+ export declare function generateControlPaddingVariables(): Record<string, string>;
76
+ /**
77
+ * Semantic control gap scale for spacing between icon and text, items, etc.
78
+ *
79
+ * | Name | Token reference | Approx |
80
+ * |------|------------------|--------|
81
+ * | xs | --spacing-xs | 2px |
82
+ * | sm | --spacing-sm | 4px |
83
+ * | md | --spacing-smh | 6px |
84
+ * | lg | --spacing-md | 8px |
85
+ * | xl | --spacing-mdh | 12px |
86
+ */
87
+ export declare const controlGap: {
88
+ readonly xs: "var(--spacing-xs)";
89
+ readonly sm: "var(--spacing-sm)";
90
+ readonly md: "var(--spacing-smh)";
91
+ readonly lg: "var(--spacing-md)";
92
+ readonly xl: "var(--spacing-mdh)";
93
+ };
94
+ export type ControlGapName = keyof typeof controlGap;
95
+ export declare function getControlGapVarName(size: ControlGapName): string;
96
+ export declare function getControlGapVar(size: ControlGapName): string;
97
+ export declare function generateControlGapVariables(): Record<string, string>;
98
+ /**
99
+ * Semantic overlay/container width scale for modals, tooltips, menus, etc.
100
+ *
101
+ * | Name | Value | Approx |
102
+ * |-----------|---------------------|--------|
103
+ * | xs | min(20rem, 90vw) | ~320px |
104
+ * | sm | min(25rem, 90vw) | ~400px |
105
+ * | md | min(37.5rem, 90vw) | ~600px |
106
+ * | lg | min(50rem, 90vw) | ~800px |
107
+ * | xl | min(62.5rem, 90vw) | ~1000px|
108
+ * | min-width | 12rem | ~192px |
109
+ */
110
+ export declare const overlayWidth: {
111
+ readonly xs: "min(20rem, 90vw)";
112
+ readonly sm: "min(25rem, 90vw)";
113
+ readonly md: "min(37.5rem, 90vw)";
114
+ readonly lg: "min(50rem, 90vw)";
115
+ readonly xl: "min(62.5rem, 90vw)";
116
+ readonly 'min-width': "12rem";
117
+ };
118
+ export type OverlayWidthName = keyof typeof overlayWidth;
119
+ export declare function getOverlayWidthVarName(size: OverlayWidthName): string;
120
+ export declare function getOverlayWidthVar(size: OverlayWidthName): string;
121
+ export declare function generateOverlayWidthVariables(): Record<string, string>;
122
+ /**
123
+ * Generates CSS custom property declarations for all control and overlay tokens.
124
+ *
125
+ * @returns A record mapping CSS variable names to their values
126
+ */
127
+ export declare function generateControlTokenVariables(): Record<string, string>;
@@ -1,6 +1,8 @@
1
1
  export * from './base-colors';
2
+ export * from './borders';
2
3
  export * from './breakpoints';
3
4
  export * from './colors';
5
+ export * from './controls';
4
6
  export * from './radius';
5
7
  export * from './spacing';
6
8
  export * from './shadows';
@@ -11,23 +11,23 @@
11
11
  * Radius scale definitions mapping size names to CSS values.
12
12
  * Values are expressed as multiples of the base spacing variable.
13
13
  *
14
- * | Name | Value | Approx |
15
- * |------|------------------------------|--------|
16
- * | none | 0 | 0 |
17
- * | xs | base / 2 | 2px |
18
- * | sm | base | 4px |
19
- * | md | base * 1.5 | 6px |
20
- * | lg | base * 2 | 8px |
21
- * | xl | base * 3 | 12px |
22
- * | full | 9999px | pill |
14
+ * | Name | Value | Approx |
15
+ * |------|--------------------|--------|
16
+ * | none | 0 | 0 |
17
+ * | xs | --spacing-xs | 2px |
18
+ * | sm | --spacing-sm | 4px |
19
+ * | md | --spacing-smh | 6px |
20
+ * | lg | --spacing-md | 8px |
21
+ * | xl | --spacing-mdh | 12px |
22
+ * | full | 9999px | pill |
23
23
  */
24
24
  export declare const radius: {
25
25
  readonly none: "0";
26
- readonly xs: "calc(var(--spacing-base) / 2)";
27
- readonly sm: "var(--spacing-base)";
28
- readonly md: "calc(var(--spacing-base) * 1.5)";
29
- readonly lg: "calc(var(--spacing-base) * 2)";
30
- readonly xl: "calc(var(--spacing-base) * 3)";
26
+ readonly xs: "var(--spacing-xs)";
27
+ readonly sm: "var(--spacing-sm)";
28
+ readonly md: "var(--spacing-smh)";
29
+ readonly lg: "var(--spacing-md)";
30
+ readonly xl: "var(--spacing-mdh)";
31
31
  readonly full: "9999px";
32
32
  };
33
33
  /**
@@ -15,8 +15,8 @@
15
15
  export declare const baseFontSize = "1rem";
16
16
  /**
17
17
  * Font size scale mapping size names to `[fontSize, { lineHeight }]` tuples.
18
- * Each entry provides a font size derived from `--base-font-size` via `calc()`
19
- * and its recommended line height. When `--base-font-size` is `1rem` (default),
18
+ * Each entry provides a font size derived from `--font-size-base` via `calc()`
19
+ * and its recommended line height. When `--font-size-base` is `1rem` (default),
20
20
  * computed values match the pixel sizes shown.
21
21
  *
22
22
  * | Name | Multiplier | Line Height | Pixels (at 1rem base) |
@@ -33,49 +33,49 @@ export declare const baseFontSize = "1rem";
33
33
  * | 9xl | 8 | 1 (unitless) | 128px |
34
34
  */
35
35
  export declare const fontSize: {
36
- readonly '3xs': readonly ["calc(var(--base-font-size) * 0.5)", {
37
- readonly lineHeight: "calc(var(--base-font-size) * 0.75)";
36
+ readonly '3xs': readonly ["calc(var(--font-size-base) * 0.5)", {
37
+ readonly lineHeight: "calc(var(--font-size-base) * 0.75)";
38
38
  }];
39
- readonly '2xs': readonly ["calc(var(--base-font-size) * 0.625)", {
40
- readonly lineHeight: "calc(var(--base-font-size) * 0.75)";
39
+ readonly '2xs': readonly ["calc(var(--font-size-base) * 0.625)", {
40
+ readonly lineHeight: "calc(var(--font-size-base) * 0.75)";
41
41
  }];
42
- readonly xs: readonly ["calc(var(--base-font-size) * 0.75)", {
43
- readonly lineHeight: "var(--base-font-size)";
42
+ readonly xs: readonly ["calc(var(--font-size-base) * 0.75)", {
43
+ readonly lineHeight: "var(--font-size-base)";
44
44
  }];
45
- readonly sm: readonly ["calc(var(--base-font-size) * 0.875)", {
46
- readonly lineHeight: "calc(var(--base-font-size) * 1.25)";
45
+ readonly sm: readonly ["calc(var(--font-size-base) * 0.875)", {
46
+ readonly lineHeight: "calc(var(--font-size-base) * 1.25)";
47
47
  }];
48
- readonly md: readonly ["var(--base-font-size)", {
49
- readonly lineHeight: "calc(var(--base-font-size) * 1.5)";
48
+ readonly md: readonly ["var(--font-size-base)", {
49
+ readonly lineHeight: "calc(var(--font-size-base) * 1.5)";
50
50
  }];
51
- readonly lg: readonly ["calc(var(--base-font-size) * 1.125)", {
52
- readonly lineHeight: "calc(var(--base-font-size) * 1.75)";
51
+ readonly lg: readonly ["calc(var(--font-size-base) * 1.125)", {
52
+ readonly lineHeight: "calc(var(--font-size-base) * 1.75)";
53
53
  }];
54
- readonly xl: readonly ["calc(var(--base-font-size) * 1.25)", {
55
- readonly lineHeight: "calc(var(--base-font-size) * 1.75)";
54
+ readonly xl: readonly ["calc(var(--font-size-base) * 1.25)", {
55
+ readonly lineHeight: "calc(var(--font-size-base) * 1.75)";
56
56
  }];
57
- readonly '2xl': readonly ["calc(var(--base-font-size) * 1.5)", {
58
- readonly lineHeight: "calc(var(--base-font-size) * 2)";
57
+ readonly '2xl': readonly ["calc(var(--font-size-base) * 1.5)", {
58
+ readonly lineHeight: "calc(var(--font-size-base) * 2)";
59
59
  }];
60
- readonly '3xl': readonly ["calc(var(--base-font-size) * 1.875)", {
61
- readonly lineHeight: "calc(var(--base-font-size) * 2.25)";
60
+ readonly '3xl': readonly ["calc(var(--font-size-base) * 1.875)", {
61
+ readonly lineHeight: "calc(var(--font-size-base) * 2.25)";
62
62
  }];
63
- readonly '4xl': readonly ["calc(var(--base-font-size) * 2.25)", {
64
- readonly lineHeight: "calc(var(--base-font-size) * 2.5)";
63
+ readonly '4xl': readonly ["calc(var(--font-size-base) * 2.25)", {
64
+ readonly lineHeight: "calc(var(--font-size-base) * 2.5)";
65
65
  }];
66
- readonly '5xl': readonly ["calc(var(--base-font-size) * 3)", {
66
+ readonly '5xl': readonly ["calc(var(--font-size-base) * 3)", {
67
67
  readonly lineHeight: "1";
68
68
  }];
69
- readonly '6xl': readonly ["calc(var(--base-font-size) * 3.75)", {
69
+ readonly '6xl': readonly ["calc(var(--font-size-base) * 3.75)", {
70
70
  readonly lineHeight: "1";
71
71
  }];
72
- readonly '7xl': readonly ["calc(var(--base-font-size) * 4.5)", {
72
+ readonly '7xl': readonly ["calc(var(--font-size-base) * 4.5)", {
73
73
  readonly lineHeight: "1";
74
74
  }];
75
- readonly '8xl': readonly ["calc(var(--base-font-size) * 6)", {
75
+ readonly '8xl': readonly ["calc(var(--font-size-base) * 6)", {
76
76
  readonly lineHeight: "1";
77
77
  }];
78
- readonly '9xl': readonly ["calc(var(--base-font-size) * 8)", {
78
+ readonly '9xl': readonly ["calc(var(--font-size-base) * 8)", {
79
79
  readonly lineHeight: "1";
80
80
  }];
81
81
  };
@@ -251,13 +251,13 @@ export declare function getFontSizeVar(size: FontSize): string;
251
251
  /**
252
252
  * Returns the CSS custom property name for the base font size.
253
253
  *
254
- * @returns The CSS variable name `'--base-font-size'`
254
+ * @returns The CSS variable name `'--font-size-base'`
255
255
  */
256
256
  export declare function getBaseFontSizeVarName(): string;
257
257
  /**
258
258
  * Returns a CSS `var()` expression referencing the base font size custom property.
259
259
  *
260
- * @returns A CSS `var()` string `'var(--base-font-size)'`
260
+ * @returns A CSS `var()` string `'var(--font-size-base)'`
261
261
  */
262
262
  export declare function getBaseFontSizeVar(): string;
263
263
  /**
@@ -354,9 +354,9 @@ export declare function getSemanticFontVar(name: SemanticFontName): string;
354
354
  * @example
355
355
  * ```ts
356
356
  * const vars = generateTypographyVariables()
357
- * // vars['--base-font-size'] === '1rem'
358
- * // vars['--font-size-md'] === 'var(--base-font-size)'
359
- * // vars['--font-size-md-lh'] === 'calc(var(--base-font-size) * 1.5)'
357
+ * // vars['--font-size-base'] === '1rem'
358
+ * // vars['--font-size-md'] === 'var(--font-size-base)'
359
+ * // vars['--font-size-md-lh'] === 'calc(var(--font-size-base) * 1.5)'
360
360
  * // vars['--font-weight-bold'] === '700'
361
361
  * ```
362
362
  */
@@ -386,7 +386,7 @@ export declare function generateFontFamilyOverrideVariables(overrides?: FontFami
386
386
  * ```ts
387
387
  * const vars = generateSemanticFontVariables({ heading: 'var(--font-family-serif)' })
388
388
  * // vars['--font-heading'] === 'var(--font-family-serif)'
389
- * // vars['--default-font-family'] === 'var(--font-body)'
389
+ * // vars['--font-family-default'] === 'var(--font-body)'
390
390
  * ```
391
391
  */
392
392
  export declare function generateSemanticFontVariables(overrides?: SemanticFontOverrides): Record<string, string>;
@@ -1,2 +1,2 @@
1
1
  import { Signal } from '@tempots/dom';
2
- export declare function delaySignal<T>(signal: Signal<T>, delay?: number, predicate?: (v: T) => boolean): import("@tempots/dom").Prop<T>;
2
+ export declare function delaySignal<T>(signal: Signal<T>, delay?: number, predicate?: (v: T) => boolean): import("@tempots/core").Prop<T>;