@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.
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +2164 -0
- package/dist/install-layer.d.ts +4 -0
- package/dist/items/accordion.d.ts +7 -0
- package/dist/items/alert-dialog.d.ts +7 -0
- package/dist/items/alert.d.ts +7 -0
- package/dist/items/auth-form.d.ts +7 -0
- package/dist/items/autocomplete.d.ts +7 -0
- package/dist/items/avatar.d.ts +7 -0
- package/dist/items/badge.d.ts +7 -0
- package/dist/items/button.d.ts +7 -0
- package/dist/items/card.d.ts +7 -0
- package/dist/items/checkbox-group.d.ts +7 -0
- package/dist/items/checkbox.d.ts +7 -0
- package/dist/items/collapsible.d.ts +7 -0
- package/dist/items/combobox.d.ts +7 -0
- package/dist/items/command-palette.d.ts +7 -0
- package/dist/items/context-menu.d.ts +7 -0
- package/dist/items/dashboard-shell.d.ts +7 -0
- package/dist/items/dialog.d.ts +7 -0
- package/dist/items/drawer.d.ts +7 -0
- package/dist/items/field.d.ts +7 -0
- package/dist/items/fieldset.d.ts +7 -0
- package/dist/items/form-field.d.ts +7 -0
- package/dist/items/form.d.ts +7 -0
- package/dist/items/index.d.ts +49 -0
- package/dist/items/input.d.ts +7 -0
- package/dist/items/menu.d.ts +7 -0
- package/dist/items/menubar.d.ts +7 -0
- package/dist/items/meter.d.ts +7 -0
- package/dist/items/navigation-menu.d.ts +7 -0
- package/dist/items/number-field.d.ts +7 -0
- package/dist/items/otp-field.d.ts +7 -0
- package/dist/items/popover.d.ts +7 -0
- package/dist/items/preview-card.d.ts +7 -0
- package/dist/items/progress.d.ts +7 -0
- package/dist/items/radio-group.d.ts +7 -0
- package/dist/items/scroll-area.d.ts +7 -0
- package/dist/items/select.d.ts +7 -0
- package/dist/items/separator.d.ts +7 -0
- package/dist/items/settings-panel.d.ts +7 -0
- package/dist/items/sidebar.d.ts +7 -0
- package/dist/items/slider.d.ts +7 -0
- package/dist/items/switch.d.ts +7 -0
- package/dist/items/tabs.d.ts +7 -0
- package/dist/items/textarea.d.ts +7 -0
- package/dist/items/toast.d.ts +7 -0
- package/dist/items/toggle-group.d.ts +7 -0
- package/dist/items/toggle.d.ts +7 -0
- package/dist/items/toolbar.d.ts +7 -0
- package/dist/items/tooltip.d.ts +7 -0
- package/dist/registry.types.d.ts +40 -0
- package/dist/styles/theme.d.ts +2 -0
- package/dist/utilities/cn.d.ts +2 -0
- package/dist/validate-registry-composition.d.ts +2 -0
- package/dist/validate-registry-item.d.ts +2 -0
- package/dist/validate-registry-template-imports.d.ts +4 -0
- package/dist/validate-registry.d.ts +9 -0
- package/package.json +52 -0
- package/templates/blocks/AuthForm/AuthForm.tsx +109 -0
- package/templates/blocks/AuthForm/AuthForm.types.ts +34 -0
- package/templates/blocks/AuthForm/AuthForm.variants.ts +11 -0
- package/templates/blocks/CommandPalette/CommandPalette.tsx +245 -0
- package/templates/blocks/CommandPalette/CommandPalette.types.ts +73 -0
- package/templates/blocks/CommandPalette/CommandPalette.variants.ts +26 -0
- package/templates/blocks/FormField/FormField.tsx +83 -0
- package/templates/blocks/FormField/FormField.types.ts +26 -0
- package/templates/blocks/FormField/FormField.variants.ts +9 -0
- package/templates/blocks/SettingsPanel/SettingsPanel.tsx +104 -0
- package/templates/blocks/SettingsPanel/SettingsPanel.types.ts +31 -0
- package/templates/blocks/SettingsPanel/SettingsPanel.variants.ts +9 -0
- package/templates/blocks/Sidebar/Sidebar.tsx +414 -0
- package/templates/blocks/Sidebar/Sidebar.types.ts +99 -0
- package/templates/blocks/Sidebar/Sidebar.variants.ts +84 -0
- package/templates/primitives/Accordion/Accordion.tsx +102 -0
- package/templates/primitives/Accordion/Accordion.types.ts +20 -0
- package/templates/primitives/Accordion/Accordion.variants.ts +32 -0
- package/templates/primitives/Alert/Alert.tsx +62 -0
- package/templates/primitives/Alert/Alert.types.ts +35 -0
- package/templates/primitives/Alert/Alert.variants.ts +41 -0
- package/templates/primitives/AlertDialog/AlertDialog.tsx +168 -0
- package/templates/primitives/AlertDialog/AlertDialog.types.ts +30 -0
- package/templates/primitives/AlertDialog/AlertDialog.variants.ts +57 -0
- package/templates/primitives/Autocomplete/Autocomplete.tsx +394 -0
- package/templates/primitives/Autocomplete/Autocomplete.types.ts +82 -0
- package/templates/primitives/Autocomplete/Autocomplete.variants.ts +154 -0
- package/templates/primitives/Avatar/Avatar.tsx +56 -0
- package/templates/primitives/Avatar/Avatar.types.ts +31 -0
- package/templates/primitives/Avatar/Avatar.variants.ts +40 -0
- package/templates/primitives/Badge/Badge.tsx +30 -0
- package/templates/primitives/Badge/Badge.types.ts +30 -0
- package/templates/primitives/Badge/Badge.variants.ts +81 -0
- package/templates/primitives/Button/Button.tsx +53 -0
- package/templates/primitives/Button/Button.types.ts +25 -0
- package/templates/primitives/Button/Button.variants.ts +69 -0
- package/templates/primitives/Card/Card.tsx +85 -0
- package/templates/primitives/Card/Card.types.ts +54 -0
- package/templates/primitives/Card/Card.variants.ts +46 -0
- package/templates/primitives/Checkbox/Checkbox.tsx +72 -0
- package/templates/primitives/Checkbox/Checkbox.types.ts +28 -0
- package/templates/primitives/Checkbox/Checkbox.variants.ts +39 -0
- package/templates/primitives/CheckboxGroup/CheckboxGroup.tsx +32 -0
- package/templates/primitives/CheckboxGroup/CheckboxGroup.types.ts +17 -0
- package/templates/primitives/CheckboxGroup/CheckboxGroup.variants.ts +25 -0
- package/templates/primitives/Collapsible/Collapsible.tsx +74 -0
- package/templates/primitives/Collapsible/Collapsible.types.ts +28 -0
- package/templates/primitives/Collapsible/Collapsible.variants.ts +44 -0
- package/templates/primitives/Combobox/Combobox.tsx +450 -0
- package/templates/primitives/Combobox/Combobox.types.ts +99 -0
- package/templates/primitives/Combobox/Combobox.variants.ts +180 -0
- package/templates/primitives/ContextMenu/ContextMenu.tsx +375 -0
- package/templates/primitives/ContextMenu/ContextMenu.types.ts +57 -0
- package/templates/primitives/ContextMenu/ContextMenu.variants.ts +39 -0
- package/templates/primitives/Dialog/Dialog.tsx +148 -0
- package/templates/primitives/Dialog/Dialog.types.ts +29 -0
- package/templates/primitives/Dialog/Dialog.variants.ts +56 -0
- package/templates/primitives/Drawer/Drawer.tsx +266 -0
- package/templates/primitives/Drawer/Drawer.types.ts +77 -0
- package/templates/primitives/Drawer/Drawer.variants.ts +175 -0
- package/templates/primitives/Field/Field.tsx +132 -0
- package/templates/primitives/Field/Field.types.ts +43 -0
- package/templates/primitives/Field/Field.variants.ts +77 -0
- package/templates/primitives/Fieldset/Fieldset.tsx +36 -0
- package/templates/primitives/Fieldset/Fieldset.types.ts +26 -0
- package/templates/primitives/Fieldset/Fieldset.variants.ts +37 -0
- package/templates/primitives/Form/Form.tsx +24 -0
- package/templates/primitives/Form/Form.types.ts +13 -0
- package/templates/primitives/Form/Form.variants.ts +11 -0
- package/templates/primitives/Input/Input.tsx +36 -0
- package/templates/primitives/Input/Input.types.ts +27 -0
- package/templates/primitives/Input/Input.variants.ts +41 -0
- package/templates/primitives/Menu/Menu.tsx +352 -0
- package/templates/primitives/Menu/Menu.types.ts +56 -0
- package/templates/primitives/Menu/Menu.variants.ts +73 -0
- package/templates/primitives/Menubar/Menubar.tsx +25 -0
- package/templates/primitives/Menubar/Menubar.types.ts +12 -0
- package/templates/primitives/Menubar/Menubar.variants.ts +22 -0
- package/templates/primitives/Meter/Meter.tsx +123 -0
- package/templates/primitives/Meter/Meter.types.ts +45 -0
- package/templates/primitives/Meter/Meter.variants.ts +47 -0
- package/templates/primitives/NavigationMenu/NavigationMenu.tsx +256 -0
- package/templates/primitives/NavigationMenu/NavigationMenu.types.ts +58 -0
- package/templates/primitives/NavigationMenu/NavigationMenu.variants.ts +40 -0
- package/templates/primitives/NumberField/NumberField.tsx +168 -0
- package/templates/primitives/NumberField/NumberField.types.ts +51 -0
- package/templates/primitives/NumberField/NumberField.variants.ts +92 -0
- package/templates/primitives/OtpField/OtpField.tsx +65 -0
- package/templates/primitives/OtpField/OtpField.types.ts +29 -0
- package/templates/primitives/OtpField/OtpField.variants.ts +45 -0
- package/templates/primitives/Popover/Popover.tsx +193 -0
- package/templates/primitives/Popover/Popover.types.ts +35 -0
- package/templates/primitives/Popover/Popover.variants.ts +68 -0
- package/templates/primitives/PreviewCard/PreviewCard.tsx +153 -0
- package/templates/primitives/PreviewCard/PreviewCard.types.ts +42 -0
- package/templates/primitives/PreviewCard/PreviewCard.variants.ts +24 -0
- package/templates/primitives/Progress/Progress.tsx +95 -0
- package/templates/primitives/Progress/Progress.types.ts +39 -0
- package/templates/primitives/Progress/Progress.variants.ts +39 -0
- package/templates/primitives/RadioGroup/RadioGroup.tsx +66 -0
- package/templates/primitives/RadioGroup/RadioGroup.types.ts +34 -0
- package/templates/primitives/RadioGroup/RadioGroup.variants.ts +59 -0
- package/templates/primitives/ScrollArea/ScrollArea.tsx +135 -0
- package/templates/primitives/ScrollArea/ScrollArea.types.ts +34 -0
- package/templates/primitives/ScrollArea/ScrollArea.variants.ts +38 -0
- package/templates/primitives/Select/Select.tsx +319 -0
- package/templates/primitives/Select/Select.types.ts +74 -0
- package/templates/primitives/Select/Select.variants.ts +94 -0
- package/templates/primitives/Separator/Separator.tsx +30 -0
- package/templates/primitives/Separator/Separator.types.ts +13 -0
- package/templates/primitives/Separator/Separator.variants.ts +19 -0
- package/templates/primitives/Slider/Slider.tsx +124 -0
- package/templates/primitives/Slider/Slider.types.ts +51 -0
- package/templates/primitives/Slider/Slider.variants.ts +38 -0
- package/templates/primitives/Switch/Switch.tsx +61 -0
- package/templates/primitives/Switch/Switch.types.ts +29 -0
- package/templates/primitives/Switch/Switch.variants.ts +48 -0
- package/templates/primitives/Tabs/Tabs.tsx +70 -0
- package/templates/primitives/Tabs/Tabs.types.ts +23 -0
- package/templates/primitives/Tabs/Tabs.variants.ts +29 -0
- package/templates/primitives/Textarea/Textarea.tsx +42 -0
- package/templates/primitives/Textarea/Textarea.types.ts +31 -0
- package/templates/primitives/Textarea/Textarea.variants.ts +46 -0
- package/templates/primitives/Toast/Toast.tsx +195 -0
- package/templates/primitives/Toast/Toast.types.ts +52 -0
- package/templates/primitives/Toast/Toast.variants.ts +88 -0
- package/templates/primitives/Toggle/Toggle.tsx +24 -0
- package/templates/primitives/Toggle/Toggle.types.ts +19 -0
- package/templates/primitives/Toggle/Toggle.variants.ts +32 -0
- package/templates/primitives/ToggleGroup/ToggleGroup.tsx +34 -0
- package/templates/primitives/ToggleGroup/ToggleGroup.types.ts +19 -0
- package/templates/primitives/ToggleGroup/ToggleGroup.variants.ts +32 -0
- package/templates/primitives/Toolbar/Toolbar.tsx +118 -0
- package/templates/primitives/Toolbar/Toolbar.types.ts +32 -0
- package/templates/primitives/Toolbar/Toolbar.variants.ts +84 -0
- package/templates/primitives/Tooltip/Tooltip.tsx +98 -0
- package/templates/primitives/Tooltip/Tooltip.types.ts +22 -0
- package/templates/primitives/Tooltip/Tooltip.variants.ts +24 -0
- package/templates/shared/utils/cn.ts +46 -0
- package/templates/styles/theme.css +311 -0
- package/templates/styles/tokens.css +1445 -0
- package/templates/templates/DashboardShell/DashboardShell.tsx +124 -0
- package/templates/templates/DashboardShell/DashboardShell.types.ts +37 -0
- package/templates/templates/DashboardShell/DashboardShell.variants.ts +25 -0
- 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,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,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,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
|
+
}
|