@dalexto/lexsys-registry 0.0.2

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 (206) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +98 -0
  3. package/dist/index.d.ts +25 -0
  4. package/dist/index.js +2164 -0
  5. package/dist/install-layer.d.ts +4 -0
  6. package/dist/items/accordion.d.ts +7 -0
  7. package/dist/items/alert-dialog.d.ts +7 -0
  8. package/dist/items/alert.d.ts +7 -0
  9. package/dist/items/auth-form.d.ts +7 -0
  10. package/dist/items/autocomplete.d.ts +7 -0
  11. package/dist/items/avatar.d.ts +7 -0
  12. package/dist/items/badge.d.ts +7 -0
  13. package/dist/items/button.d.ts +7 -0
  14. package/dist/items/card.d.ts +7 -0
  15. package/dist/items/checkbox-group.d.ts +7 -0
  16. package/dist/items/checkbox.d.ts +7 -0
  17. package/dist/items/collapsible.d.ts +7 -0
  18. package/dist/items/combobox.d.ts +7 -0
  19. package/dist/items/command-palette.d.ts +7 -0
  20. package/dist/items/context-menu.d.ts +7 -0
  21. package/dist/items/dashboard-shell.d.ts +7 -0
  22. package/dist/items/dialog.d.ts +7 -0
  23. package/dist/items/drawer.d.ts +7 -0
  24. package/dist/items/field.d.ts +7 -0
  25. package/dist/items/fieldset.d.ts +7 -0
  26. package/dist/items/form-field.d.ts +7 -0
  27. package/dist/items/form.d.ts +7 -0
  28. package/dist/items/index.d.ts +49 -0
  29. package/dist/items/input.d.ts +7 -0
  30. package/dist/items/menu.d.ts +7 -0
  31. package/dist/items/menubar.d.ts +7 -0
  32. package/dist/items/meter.d.ts +7 -0
  33. package/dist/items/navigation-menu.d.ts +7 -0
  34. package/dist/items/number-field.d.ts +7 -0
  35. package/dist/items/otp-field.d.ts +7 -0
  36. package/dist/items/popover.d.ts +7 -0
  37. package/dist/items/preview-card.d.ts +7 -0
  38. package/dist/items/progress.d.ts +7 -0
  39. package/dist/items/radio-group.d.ts +7 -0
  40. package/dist/items/scroll-area.d.ts +7 -0
  41. package/dist/items/select.d.ts +7 -0
  42. package/dist/items/separator.d.ts +7 -0
  43. package/dist/items/settings-panel.d.ts +7 -0
  44. package/dist/items/sidebar.d.ts +7 -0
  45. package/dist/items/slider.d.ts +7 -0
  46. package/dist/items/switch.d.ts +7 -0
  47. package/dist/items/tabs.d.ts +7 -0
  48. package/dist/items/textarea.d.ts +7 -0
  49. package/dist/items/toast.d.ts +7 -0
  50. package/dist/items/toggle-group.d.ts +7 -0
  51. package/dist/items/toggle.d.ts +7 -0
  52. package/dist/items/toolbar.d.ts +7 -0
  53. package/dist/items/tooltip.d.ts +7 -0
  54. package/dist/registry.types.d.ts +40 -0
  55. package/dist/styles/theme.d.ts +2 -0
  56. package/dist/utilities/cn.d.ts +2 -0
  57. package/dist/validate-registry-composition.d.ts +2 -0
  58. package/dist/validate-registry-item.d.ts +2 -0
  59. package/dist/validate-registry-template-imports.d.ts +4 -0
  60. package/dist/validate-registry.d.ts +9 -0
  61. package/package.json +52 -0
  62. package/templates/blocks/AuthForm/AuthForm.tsx +109 -0
  63. package/templates/blocks/AuthForm/AuthForm.types.ts +34 -0
  64. package/templates/blocks/AuthForm/AuthForm.variants.ts +11 -0
  65. package/templates/blocks/CommandPalette/CommandPalette.tsx +245 -0
  66. package/templates/blocks/CommandPalette/CommandPalette.types.ts +73 -0
  67. package/templates/blocks/CommandPalette/CommandPalette.variants.ts +26 -0
  68. package/templates/blocks/FormField/FormField.tsx +83 -0
  69. package/templates/blocks/FormField/FormField.types.ts +26 -0
  70. package/templates/blocks/FormField/FormField.variants.ts +9 -0
  71. package/templates/blocks/SettingsPanel/SettingsPanel.tsx +104 -0
  72. package/templates/blocks/SettingsPanel/SettingsPanel.types.ts +31 -0
  73. package/templates/blocks/SettingsPanel/SettingsPanel.variants.ts +9 -0
  74. package/templates/blocks/Sidebar/Sidebar.tsx +414 -0
  75. package/templates/blocks/Sidebar/Sidebar.types.ts +99 -0
  76. package/templates/blocks/Sidebar/Sidebar.variants.ts +84 -0
  77. package/templates/primitives/Accordion/Accordion.tsx +102 -0
  78. package/templates/primitives/Accordion/Accordion.types.ts +20 -0
  79. package/templates/primitives/Accordion/Accordion.variants.ts +32 -0
  80. package/templates/primitives/Alert/Alert.tsx +62 -0
  81. package/templates/primitives/Alert/Alert.types.ts +35 -0
  82. package/templates/primitives/Alert/Alert.variants.ts +41 -0
  83. package/templates/primitives/AlertDialog/AlertDialog.tsx +168 -0
  84. package/templates/primitives/AlertDialog/AlertDialog.types.ts +30 -0
  85. package/templates/primitives/AlertDialog/AlertDialog.variants.ts +57 -0
  86. package/templates/primitives/Autocomplete/Autocomplete.tsx +394 -0
  87. package/templates/primitives/Autocomplete/Autocomplete.types.ts +82 -0
  88. package/templates/primitives/Autocomplete/Autocomplete.variants.ts +154 -0
  89. package/templates/primitives/Avatar/Avatar.tsx +56 -0
  90. package/templates/primitives/Avatar/Avatar.types.ts +31 -0
  91. package/templates/primitives/Avatar/Avatar.variants.ts +40 -0
  92. package/templates/primitives/Badge/Badge.tsx +30 -0
  93. package/templates/primitives/Badge/Badge.types.ts +30 -0
  94. package/templates/primitives/Badge/Badge.variants.ts +81 -0
  95. package/templates/primitives/Button/Button.tsx +53 -0
  96. package/templates/primitives/Button/Button.types.ts +25 -0
  97. package/templates/primitives/Button/Button.variants.ts +69 -0
  98. package/templates/primitives/Card/Card.tsx +85 -0
  99. package/templates/primitives/Card/Card.types.ts +54 -0
  100. package/templates/primitives/Card/Card.variants.ts +46 -0
  101. package/templates/primitives/Checkbox/Checkbox.tsx +72 -0
  102. package/templates/primitives/Checkbox/Checkbox.types.ts +28 -0
  103. package/templates/primitives/Checkbox/Checkbox.variants.ts +39 -0
  104. package/templates/primitives/CheckboxGroup/CheckboxGroup.tsx +32 -0
  105. package/templates/primitives/CheckboxGroup/CheckboxGroup.types.ts +17 -0
  106. package/templates/primitives/CheckboxGroup/CheckboxGroup.variants.ts +25 -0
  107. package/templates/primitives/Collapsible/Collapsible.tsx +74 -0
  108. package/templates/primitives/Collapsible/Collapsible.types.ts +28 -0
  109. package/templates/primitives/Collapsible/Collapsible.variants.ts +44 -0
  110. package/templates/primitives/Combobox/Combobox.tsx +450 -0
  111. package/templates/primitives/Combobox/Combobox.types.ts +99 -0
  112. package/templates/primitives/Combobox/Combobox.variants.ts +180 -0
  113. package/templates/primitives/ContextMenu/ContextMenu.tsx +375 -0
  114. package/templates/primitives/ContextMenu/ContextMenu.types.ts +57 -0
  115. package/templates/primitives/ContextMenu/ContextMenu.variants.ts +39 -0
  116. package/templates/primitives/Dialog/Dialog.tsx +148 -0
  117. package/templates/primitives/Dialog/Dialog.types.ts +29 -0
  118. package/templates/primitives/Dialog/Dialog.variants.ts +56 -0
  119. package/templates/primitives/Drawer/Drawer.tsx +266 -0
  120. package/templates/primitives/Drawer/Drawer.types.ts +77 -0
  121. package/templates/primitives/Drawer/Drawer.variants.ts +175 -0
  122. package/templates/primitives/Field/Field.tsx +132 -0
  123. package/templates/primitives/Field/Field.types.ts +43 -0
  124. package/templates/primitives/Field/Field.variants.ts +77 -0
  125. package/templates/primitives/Fieldset/Fieldset.tsx +36 -0
  126. package/templates/primitives/Fieldset/Fieldset.types.ts +26 -0
  127. package/templates/primitives/Fieldset/Fieldset.variants.ts +37 -0
  128. package/templates/primitives/Form/Form.tsx +24 -0
  129. package/templates/primitives/Form/Form.types.ts +13 -0
  130. package/templates/primitives/Form/Form.variants.ts +11 -0
  131. package/templates/primitives/Input/Input.tsx +36 -0
  132. package/templates/primitives/Input/Input.types.ts +27 -0
  133. package/templates/primitives/Input/Input.variants.ts +41 -0
  134. package/templates/primitives/Menu/Menu.tsx +352 -0
  135. package/templates/primitives/Menu/Menu.types.ts +56 -0
  136. package/templates/primitives/Menu/Menu.variants.ts +73 -0
  137. package/templates/primitives/Menubar/Menubar.tsx +25 -0
  138. package/templates/primitives/Menubar/Menubar.types.ts +12 -0
  139. package/templates/primitives/Menubar/Menubar.variants.ts +22 -0
  140. package/templates/primitives/Meter/Meter.tsx +123 -0
  141. package/templates/primitives/Meter/Meter.types.ts +45 -0
  142. package/templates/primitives/Meter/Meter.variants.ts +47 -0
  143. package/templates/primitives/NavigationMenu/NavigationMenu.tsx +256 -0
  144. package/templates/primitives/NavigationMenu/NavigationMenu.types.ts +58 -0
  145. package/templates/primitives/NavigationMenu/NavigationMenu.variants.ts +40 -0
  146. package/templates/primitives/NumberField/NumberField.tsx +168 -0
  147. package/templates/primitives/NumberField/NumberField.types.ts +51 -0
  148. package/templates/primitives/NumberField/NumberField.variants.ts +92 -0
  149. package/templates/primitives/OtpField/OtpField.tsx +65 -0
  150. package/templates/primitives/OtpField/OtpField.types.ts +29 -0
  151. package/templates/primitives/OtpField/OtpField.variants.ts +45 -0
  152. package/templates/primitives/Popover/Popover.tsx +193 -0
  153. package/templates/primitives/Popover/Popover.types.ts +35 -0
  154. package/templates/primitives/Popover/Popover.variants.ts +68 -0
  155. package/templates/primitives/PreviewCard/PreviewCard.tsx +153 -0
  156. package/templates/primitives/PreviewCard/PreviewCard.types.ts +42 -0
  157. package/templates/primitives/PreviewCard/PreviewCard.variants.ts +24 -0
  158. package/templates/primitives/Progress/Progress.tsx +95 -0
  159. package/templates/primitives/Progress/Progress.types.ts +39 -0
  160. package/templates/primitives/Progress/Progress.variants.ts +39 -0
  161. package/templates/primitives/RadioGroup/RadioGroup.tsx +66 -0
  162. package/templates/primitives/RadioGroup/RadioGroup.types.ts +34 -0
  163. package/templates/primitives/RadioGroup/RadioGroup.variants.ts +59 -0
  164. package/templates/primitives/ScrollArea/ScrollArea.tsx +135 -0
  165. package/templates/primitives/ScrollArea/ScrollArea.types.ts +34 -0
  166. package/templates/primitives/ScrollArea/ScrollArea.variants.ts +38 -0
  167. package/templates/primitives/Select/Select.tsx +319 -0
  168. package/templates/primitives/Select/Select.types.ts +74 -0
  169. package/templates/primitives/Select/Select.variants.ts +94 -0
  170. package/templates/primitives/Separator/Separator.tsx +30 -0
  171. package/templates/primitives/Separator/Separator.types.ts +13 -0
  172. package/templates/primitives/Separator/Separator.variants.ts +19 -0
  173. package/templates/primitives/Slider/Slider.tsx +124 -0
  174. package/templates/primitives/Slider/Slider.types.ts +51 -0
  175. package/templates/primitives/Slider/Slider.variants.ts +38 -0
  176. package/templates/primitives/Switch/Switch.tsx +61 -0
  177. package/templates/primitives/Switch/Switch.types.ts +29 -0
  178. package/templates/primitives/Switch/Switch.variants.ts +48 -0
  179. package/templates/primitives/Tabs/Tabs.tsx +70 -0
  180. package/templates/primitives/Tabs/Tabs.types.ts +23 -0
  181. package/templates/primitives/Tabs/Tabs.variants.ts +29 -0
  182. package/templates/primitives/Textarea/Textarea.tsx +42 -0
  183. package/templates/primitives/Textarea/Textarea.types.ts +31 -0
  184. package/templates/primitives/Textarea/Textarea.variants.ts +46 -0
  185. package/templates/primitives/Toast/Toast.tsx +195 -0
  186. package/templates/primitives/Toast/Toast.types.ts +52 -0
  187. package/templates/primitives/Toast/Toast.variants.ts +88 -0
  188. package/templates/primitives/Toggle/Toggle.tsx +24 -0
  189. package/templates/primitives/Toggle/Toggle.types.ts +19 -0
  190. package/templates/primitives/Toggle/Toggle.variants.ts +32 -0
  191. package/templates/primitives/ToggleGroup/ToggleGroup.tsx +34 -0
  192. package/templates/primitives/ToggleGroup/ToggleGroup.types.ts +19 -0
  193. package/templates/primitives/ToggleGroup/ToggleGroup.variants.ts +32 -0
  194. package/templates/primitives/Toolbar/Toolbar.tsx +118 -0
  195. package/templates/primitives/Toolbar/Toolbar.types.ts +32 -0
  196. package/templates/primitives/Toolbar/Toolbar.variants.ts +84 -0
  197. package/templates/primitives/Tooltip/Tooltip.tsx +98 -0
  198. package/templates/primitives/Tooltip/Tooltip.types.ts +22 -0
  199. package/templates/primitives/Tooltip/Tooltip.variants.ts +24 -0
  200. package/templates/shared/utils/cn.ts +46 -0
  201. package/templates/styles/theme.css +311 -0
  202. package/templates/styles/tokens.css +1445 -0
  203. package/templates/templates/DashboardShell/DashboardShell.tsx +124 -0
  204. package/templates/templates/DashboardShell/DashboardShell.types.ts +37 -0
  205. package/templates/templates/DashboardShell/DashboardShell.variants.ts +25 -0
  206. package/templates/tsconfig.json +5 -0
@@ -0,0 +1,4 @@
1
+ import type { RegistryItem } from "./registry.types.js";
2
+ export type InstallLayer = "primitive" | "block" | "template";
3
+ export declare const getInstallLayer: (item: RegistryItem) => InstallLayer | null;
4
+ export declare const getDependencyInstallLayer: (item: RegistryItem) => InstallLayer | null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * accordion.ts
3
+ *
4
+ * Registry metadata for the Accordion component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const accordionRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * alert-dialog.ts
3
+ *
4
+ * Registry metadata for the AlertDialog component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const alertDialogRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * alert.ts
3
+ *
4
+ * Registry metadata for the Alert component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const alertRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * auth-form.ts
3
+ *
4
+ * Registry metadata for the AuthForm block.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const authFormRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * autocomplete.ts
3
+ *
4
+ * Registry metadata for the Autocomplete component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const autocompleteRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * avatar.ts
3
+ *
4
+ * Registry metadata for the Avatar component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const avatarRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * badge.ts
3
+ *
4
+ * Registry metadata for the Badge component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const badgeRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * button.ts
3
+ *
4
+ * Registry metadata for the Button component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const buttonRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * card.ts
3
+ *
4
+ * Registry metadata for the Card component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const cardRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * checkbox-group.ts
3
+ *
4
+ * Registry metadata for the CheckboxGroup component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const checkboxGroupRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * checkbox.ts
3
+ *
4
+ * Registry metadata for the Checkbox component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const checkboxRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * collapsible.ts
3
+ *
4
+ * Registry metadata for the Collapsible component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const collapsibleRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * combobox.ts
3
+ *
4
+ * Registry metadata for the Combobox component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const comboboxRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * command-palette.ts
3
+ *
4
+ * Registry metadata for the CommandPalette block.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const commandPaletteRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * context-menu.ts
3
+ *
4
+ * Registry metadata for the ContextMenu component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const contextMenuRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * dashboard-shell.ts
3
+ *
4
+ * Registry metadata for the DashboardShell template.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const dashboardShellRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * dialog.ts
3
+ *
4
+ * Registry metadata for the Dialog component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const dialogRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * drawer.ts
3
+ *
4
+ * Registry metadata for the Drawer component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const drawerRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * field.ts
3
+ *
4
+ * Registry metadata for the Field component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const fieldRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * fieldset.ts
3
+ *
4
+ * Registry metadata for the Fieldset component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const fieldsetRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * form-field.ts
3
+ *
4
+ * Registry metadata for the FormField block.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const formFieldRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * form.ts
3
+ *
4
+ * Registry metadata for the Form component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const formRegistryItem: RegistryItem;
@@ -0,0 +1,49 @@
1
+ import type { RegistryItem } from "../registry.types.js";
2
+ export { accordionRegistryItem } from "./accordion.js";
3
+ export { alertDialogRegistryItem } from "./alert-dialog.js";
4
+ export { alertRegistryItem } from "./alert.js";
5
+ export { avatarRegistryItem } from "./avatar.js";
6
+ export { badgeRegistryItem } from "./badge.js";
7
+ export { buttonRegistryItem } from "./button.js";
8
+ export { cardRegistryItem } from "./card.js";
9
+ export { checkboxRegistryItem } from "./checkbox.js";
10
+ export { collapsibleRegistryItem } from "./collapsible.js";
11
+ export { contextMenuRegistryItem } from "./context-menu.js";
12
+ export { dialogRegistryItem } from "./dialog.js";
13
+ export { drawerRegistryItem } from "./drawer.js";
14
+ export { fieldRegistryItem } from "./field.js";
15
+ export { fieldsetRegistryItem } from "./fieldset.js";
16
+ export { formRegistryItem } from "./form.js";
17
+ export { inputRegistryItem } from "./input.js";
18
+ export { menuRegistryItem } from "./menu.js";
19
+ export { menubarRegistryItem } from "./menubar.js";
20
+ export { meterRegistryItem } from "./meter.js";
21
+ export { numberFieldRegistryItem } from "./number-field.js";
22
+ export { navigationMenuRegistryItem } from "./navigation-menu.js";
23
+ export { popoverRegistryItem } from "./popover.js";
24
+ export { previewCardRegistryItem } from "./preview-card.js";
25
+ export { progressRegistryItem } from "./progress.js";
26
+ export { radioGroupRegistryItem } from "./radio-group.js";
27
+ export { selectRegistryItem } from "./select.js";
28
+ export { separatorRegistryItem } from "./separator.js";
29
+ export { sliderRegistryItem } from "./slider.js";
30
+ export { switchRegistryItem } from "./switch.js";
31
+ export { tabsRegistryItem } from "./tabs.js";
32
+ export { textareaRegistryItem } from "./textarea.js";
33
+ export { toastRegistryItem } from "./toast.js";
34
+ export { toggleGroupRegistryItem } from "./toggle-group.js";
35
+ export { toggleRegistryItem } from "./toggle.js";
36
+ export { toolbarRegistryItem } from "./toolbar.js";
37
+ export { tooltipRegistryItem } from "./tooltip.js";
38
+ export { dashboardShellRegistryItem } from "./dashboard-shell.js";
39
+ export { formFieldRegistryItem } from "./form-field.js";
40
+ export { settingsPanelRegistryItem } from "./settings-panel.js";
41
+ export { sidebarRegistryItem } from "./sidebar.js";
42
+ export { scrollAreaRegistryItem } from "./scroll-area.js";
43
+ export { autocompleteRegistryItem } from "./autocomplete.js";
44
+ export { checkboxGroupRegistryItem } from "./checkbox-group.js";
45
+ export { comboboxRegistryItem } from "./combobox.js";
46
+ export { authFormRegistryItem } from "./auth-form.js";
47
+ export { commandPaletteRegistryItem } from "./command-palette.js";
48
+ export { otpFieldRegistryItem } from "./otp-field.js";
49
+ export declare const registryItems: RegistryItem[];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * input.ts
3
+ *
4
+ * Registry metadata for the Input component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const inputRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * menu.ts
3
+ *
4
+ * Registry metadata for the Menu component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const menuRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * menubar.ts
3
+ *
4
+ * Registry metadata for the Menubar component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const menubarRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * meter.ts
3
+ *
4
+ * Registry metadata for the Meter component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const meterRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * navigation-menu.ts
3
+ *
4
+ * Registry metadata for the NavigationMenu component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const navigationMenuRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * number-field.ts
3
+ *
4
+ * Registry metadata for the NumberField component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const numberFieldRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * otp-field.ts
3
+ *
4
+ * Registry metadata for the OtpField component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const otpFieldRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * popover.ts
3
+ *
4
+ * Registry metadata for the Popover component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const popoverRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * preview-card.ts
3
+ *
4
+ * Registry metadata for the PreviewCard component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const previewCardRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * progress.ts
3
+ *
4
+ * Registry metadata for the Progress component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const progressRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * radio-group.ts
3
+ *
4
+ * Registry metadata for the RadioGroup component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const radioGroupRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * scroll-area.ts
3
+ *
4
+ * Registry metadata for the ScrollArea component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const scrollAreaRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * select.ts
3
+ *
4
+ * Registry metadata for the Select component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const selectRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * separator.ts
3
+ *
4
+ * Registry metadata for the Separator component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const separatorRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * settings-panel.ts
3
+ *
4
+ * Registry metadata for the SettingsPanel block.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const settingsPanelRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * sidebar.ts
3
+ *
4
+ * Registry metadata for the Sidebar block.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const sidebarRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * slider.ts
3
+ *
4
+ * Registry metadata for the Slider component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const sliderRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * switch.ts
3
+ *
4
+ * Registry metadata for the Switch component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const switchRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * tabs.ts
3
+ *
4
+ * Registry metadata for the Tabs component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const tabsRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * textarea.ts
3
+ *
4
+ * Registry metadata for the Textarea component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const textareaRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * toast.ts
3
+ *
4
+ * Registry metadata for the Toast component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const toastRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * toggle-group.ts
3
+ *
4
+ * Registry metadata for the ToggleGroup component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const toggleGroupRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * toggle.ts
3
+ *
4
+ * Registry metadata for the Toggle component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const toggleRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * toolbar.ts
3
+ *
4
+ * Registry metadata for the Toolbar component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const toolbarRegistryItem: RegistryItem;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * tooltip.ts
3
+ *
4
+ * Registry metadata for the Tooltip component.
5
+ */
6
+ import type { RegistryItem } from "../registry.types.js";
7
+ export declare const tooltipRegistryItem: RegistryItem;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * registry.types.ts
3
+ *
4
+ * Shared registry metadata types.
5
+ */
6
+ export type RegistryItemType = "component" | "block" | "utility" | "style";
7
+ export interface RegistryFile {
8
+ path: string;
9
+ remoteUrl?: string;
10
+ }
11
+ export interface RegistryStyleFile {
12
+ path: string;
13
+ target: string;
14
+ }
15
+ export interface RegistryStyle {
16
+ name: string;
17
+ version: string;
18
+ files: RegistryStyleFile[];
19
+ }
20
+ export interface RegistryUtility {
21
+ name: string;
22
+ path: string;
23
+ target: string;
24
+ }
25
+ export type RegistryItemCategory = "actions" | "forms" | "overlays" | "navigation" | "feedback" | "layout" | "data-display" | "utilities" | "blocks";
26
+ export interface RegistryItem {
27
+ name: string;
28
+ canonicalName: string;
29
+ version: string;
30
+ type: RegistryItemType;
31
+ category: RegistryItemCategory;
32
+ aliases: string[];
33
+ files: string[];
34
+ remoteFiles?: RegistryFile[];
35
+ dependencies: string[];
36
+ registryDependencies: string[];
37
+ utilities: string[];
38
+ styles: string[];
39
+ target: string;
40
+ }
@@ -0,0 +1,2 @@
1
+ import type { RegistryStyle } from "../registry.types.js";
2
+ export declare const themeRegistryStyle: RegistryStyle;
@@ -0,0 +1,2 @@
1
+ import type { RegistryUtility } from "../registry.types.js";
2
+ export declare const cnRegistryUtility: RegistryUtility;
@@ -0,0 +1,2 @@
1
+ import type { RegistryItem } from "./registry.types.js";
2
+ export declare const validateRegistryComposition: (items: RegistryItem[]) => string[];
@@ -0,0 +1,2 @@
1
+ import type { RegistryItem } from "./registry.types.js";
2
+ export declare const validateRegistryItem: (item: RegistryItem) => void;
@@ -0,0 +1,4 @@
1
+ import type { RegistryItem } from "./registry.types.js";
2
+ export declare const toRegistryItemName: (canonicalName: string) => string;
3
+ export declare const extractRegistryCompositionImports: (source: string) => string[];
4
+ export declare const validateRegistryTemplateImports: (items: RegistryItem[], readTemplate: (templatePath: string) => string) => string[];
@@ -0,0 +1,9 @@
1
+ import type { RegistryItem, RegistryStyle, RegistryUtility } from "./registry.types.js";
2
+ interface ValidateRegistryOptions {
3
+ styles?: RegistryStyle[];
4
+ utilities?: RegistryUtility[];
5
+ templateFiles?: string[];
6
+ readTemplateFile?: (templatePath: string) => string;
7
+ }
8
+ export declare const validateRegistry: (items: RegistryItem[], options?: ValidateRegistryOptions) => void;
9
+ export {};
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@dalexto/lexsys-registry",
3
+ "version": "0.0.2",
4
+ "description": "Install metadata and templates for the Lexsys registry-first UI framework",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "DaLexto",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/DaLexto/lexsys-ui.git",
11
+ "directory": "packages/registry"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/DaLexto/lexsys-ui/issues"
15
+ },
16
+ "homepage": "https://github.com/DaLexto/lexsys-ui#readme",
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "main": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "files": [
23
+ "dist",
24
+ "templates",
25
+ "README.md"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js"
31
+ },
32
+ "./templates/*": "./templates/*"
33
+ },
34
+ "engines": {
35
+ "node": ">=24 <25"
36
+ },
37
+ "devDependencies": {
38
+ "@types/node": "^25.9.1"
39
+ },
40
+ "scripts": {
41
+ "build": "tsup && tsc -p tsconfig.json --emitDeclarationOnly --outDir dist",
42
+ "check": "pnpm run lint && pnpm run typecheck && pnpm run templates:check-sync && pnpm run styles:check-sync && pnpm run test",
43
+ "lint": "eslint src test --max-warnings=0",
44
+ "lint:fix": "eslint src test --fix",
45
+ "styles:check-sync": "node scripts/check-registry-styles-sync.mjs",
46
+ "styles:sync": "pnpm --filter @dalexto/lexsys-tokens generate:styles",
47
+ "templates:check-sync": "node scripts/sync-all-templates.mjs --check",
48
+ "templates:sync": "node scripts/sync-all-templates.mjs",
49
+ "test": "vitest run test --passWithNoTests --pool threads --exclude \"dist/**\"",
50
+ "typecheck": "tsc -p tsconfig.json --noEmit"
51
+ }
52
+ }