mlola-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +72 -0
- package/bin/index.js +4 -0
- package/package.json +44 -0
- package/registry/catalog.json +97 -0
- package/registry/index.json +2938 -0
- package/registry/source/packages/components/_internal/anchor.ts +54 -0
- package/registry/source/packages/components/_internal/dialog.ts +142 -0
- package/registry/source/packages/components/_internal/floating.ts +73 -0
- package/registry/source/packages/components/_internal/match.ts +39 -0
- package/registry/source/packages/components/_internal/react.ts +40 -0
- package/registry/source/packages/components/_internal/scroll.ts +15 -0
- package/registry/source/packages/components/accordion/accordion.tsx +164 -0
- package/registry/source/packages/components/activity-heatmap/activity-heatmap.tsx +204 -0
- package/registry/source/packages/components/activity-heatmap/calendar.ts +92 -0
- package/registry/source/packages/components/alert/alert.tsx +83 -0
- package/registry/source/packages/components/app-shell/app-shell.tsx +186 -0
- package/registry/source/packages/components/avatar/avatar.tsx +56 -0
- package/registry/source/packages/components/badge/badge.tsx +39 -0
- package/registry/source/packages/components/breadcrumb/breadcrumb.tsx +61 -0
- package/registry/source/packages/components/button/button.tsx +42 -0
- package/registry/source/packages/components/calendar/calendar.tsx +309 -0
- package/registry/source/packages/components/calendar/dates.ts +163 -0
- package/registry/source/packages/components/card/card.tsx +39 -0
- package/registry/source/packages/components/carousel/carousel.tsx +248 -0
- package/registry/source/packages/components/checkbox/checkbox.tsx +66 -0
- package/registry/source/packages/components/color-picker/color-picker.tsx +261 -0
- package/registry/source/packages/components/color-picker/color.ts +124 -0
- package/registry/source/packages/components/combobox/combobox.tsx +320 -0
- package/registry/source/packages/components/command-menu/command-menu.tsx +199 -0
- package/registry/source/packages/components/context-menu/context-menu.tsx +192 -0
- package/registry/source/packages/components/date-picker/date-picker.tsx +185 -0
- package/registry/source/packages/components/dropdown-menu/dropdown-menu.tsx +157 -0
- package/registry/source/packages/components/dropzone/dropzone.tsx +185 -0
- package/registry/source/packages/components/empty-state/empty-state.tsx +32 -0
- package/registry/source/packages/components/hover-card/hover-card.tsx +103 -0
- package/registry/source/packages/components/input/input.tsx +101 -0
- package/registry/source/packages/components/kbd/kbd.tsx +54 -0
- package/registry/source/packages/components/modal/modal.tsx +100 -0
- package/registry/source/packages/components/number-input/number-input.tsx +184 -0
- package/registry/source/packages/components/number-input/number.ts +50 -0
- package/registry/source/packages/components/otp-input/otp-input.tsx +116 -0
- package/registry/source/packages/components/pagination/pagination.tsx +65 -0
- package/registry/source/packages/components/popover/popover.tsx +107 -0
- package/registry/source/packages/components/priority-icon/labels.ts +13 -0
- package/registry/source/packages/components/priority-icon/priority-icon.tsx +60 -0
- package/registry/source/packages/components/progress/progress.tsx +110 -0
- package/registry/source/packages/components/radio-group/radio-group.tsx +106 -0
- package/registry/source/packages/components/rating/rating.tsx +94 -0
- package/registry/source/packages/components/resizable/resizable.tsx +171 -0
- package/registry/source/packages/components/segmented-control/segmented-control.tsx +78 -0
- package/registry/source/packages/components/select/select.tsx +332 -0
- package/registry/source/packages/components/sheet/sheet.tsx +109 -0
- package/registry/source/packages/components/skeleton/skeleton.tsx +84 -0
- package/registry/source/packages/components/slider/slider.tsx +99 -0
- package/registry/source/packages/components/status-icon/labels.ts +14 -0
- package/registry/source/packages/components/status-icon/status-icon.tsx +76 -0
- package/registry/source/packages/components/stepper/stepper.tsx +87 -0
- package/registry/source/packages/components/table/table.tsx +66 -0
- package/registry/source/packages/components/tabs/tabs.tsx +163 -0
- package/registry/source/packages/components/tag-input/tag-input.tsx +273 -0
- package/registry/source/packages/components/textarea/textarea.tsx +70 -0
- package/registry/source/packages/components/time-picker/time-picker.tsx +286 -0
- package/registry/source/packages/components/time-picker/times.ts +76 -0
- package/registry/source/packages/components/timeline/timeline.tsx +115 -0
- package/registry/source/packages/components/toast/toast.tsx +317 -0
- package/registry/source/packages/components/toggle/toggle.tsx +80 -0
- package/registry/source/packages/components/tooltip/tooltip.tsx +70 -0
- package/registry/source/packages/components/tour/tour.tsx +193 -0
- package/registry/source/packages/components/virtual-list/virtual-list.tsx +121 -0
- package/registry/source/packages/components/virtual-list/virtual.ts +33 -0
- package/registry/source-manifest.json +67 -0
- package/src/cli.js +262 -0
- package/src/config.js +114 -0
- package/src/doctor.js +156 -0
- package/src/installer.js +131 -0
- package/src/pro.js +160 -0
- package/src/registry.js +91 -0
- package/src/theme-pull.js +91 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mlola
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# mlola-ui
|
|
2
|
+
|
|
3
|
+
The Mlola UI source-copy CLI. It writes components, blocks, pages, and templates
|
|
4
|
+
into your project, rewrites their imports to your aliases, and installs nothing
|
|
5
|
+
else. Framework-free: the copied markup works in any language that can emit
|
|
6
|
+
HTML, and React sources use only React.
|
|
7
|
+
|
|
8
|
+
The library's contract is generated from its own stylesheet, so a model reading
|
|
9
|
+
it cannot invent a class or attribute that does not exist.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx mlola-ui init
|
|
15
|
+
npx mlola-ui add button sheet hero-split landing
|
|
16
|
+
npx mlola-ui doctor
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
`init` writes `mlola.config.json` and the engine stylesheet. `add` resolves the
|
|
20
|
+
dependency graph (a page pulls its blocks, a block pulls its components) and
|
|
21
|
+
copies only what you asked for. `doctor` checks the project against the registry:
|
|
22
|
+
missing engine imports, legacy attributes, modified generated files, and
|
|
23
|
+
forbidden dependencies.
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
| Command | What it does |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| `init` | create `mlola.config.json` and the stylesheet entry |
|
|
30
|
+
| `add <items…>` | copy items and their dependencies into the project |
|
|
31
|
+
| `list [--json]` | print every installable item |
|
|
32
|
+
| `doctor` | report project and registry problems |
|
|
33
|
+
| `login <token>` | save a Mlola Pro token (from /account) for this user |
|
|
34
|
+
| `logout` | forget the saved token |
|
|
35
|
+
|
|
36
|
+
## Mlola Pro
|
|
37
|
+
|
|
38
|
+
Pro components, blocks, pages and templates are not in this package. With a
|
|
39
|
+
licence, create a token at https://ui.mlola.com/account, then:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
npx mlola-ui login mlp_…
|
|
43
|
+
npx mlola-ui add conversation bot
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`add` fetches Pro items and their Pro dependencies from the service, checks
|
|
47
|
+
every file against its integrity hash, and writes them like any other item.
|
|
48
|
+
Free dependencies still come from this package. Pro stylesheets land in
|
|
49
|
+
`styles/mlola-pro/`, gathered by `styles/mlola-pro.css`: import it once, after
|
|
50
|
+
the engine stylesheet. `mlola-pro.agents.md` at the project root lists every
|
|
51
|
+
Pro class and attribute for coding agents; point your `AGENTS.md` at it. In CI, set `MLOLA_PRO_TOKEN` instead of logging in. The
|
|
52
|
+
token is stored in `~/.config/mlola-ui/credentials.json`, readable by you only.
|
|
53
|
+
|
|
54
|
+
## Configuration
|
|
55
|
+
|
|
56
|
+
Aliases and targets live in `mlola.config.json`:
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"aliases": {
|
|
61
|
+
"components": "@/components/ui",
|
|
62
|
+
"blocks": "@/components/blocks",
|
|
63
|
+
"pages": "@/app/pages",
|
|
64
|
+
"templates": "@/app/templates"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The CLI works from an npm tarball with no repository checkout; the packed
|
|
70
|
+
installation is tested in CI.
|
|
71
|
+
|
|
72
|
+
MIT licensed. Part of [Mlola UI](https://ui.mlola.com).
|
package/bin/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mlola-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Source-copy CLI that writes framework-free Mlola UI items into your project",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"mlola-ui": "./bin/index.js"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./src/cli.js"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"bin",
|
|
14
|
+
"src",
|
|
15
|
+
"registry"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "node --check bin/index.js && node --check src/cli.js",
|
|
19
|
+
"test": "node --test test/*.test.js"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mlola",
|
|
23
|
+
"ui",
|
|
24
|
+
"components",
|
|
25
|
+
"design-system",
|
|
26
|
+
"cli",
|
|
27
|
+
"registry"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=20"
|
|
31
|
+
},
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"author": "Mlola",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/mlolahq/mlola-ui.git",
|
|
38
|
+
"directory": "packages/cli"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://ui.mlola.com",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/mlolahq/mlola-ui/issues"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": [
|
|
3
|
+
"bot",
|
|
4
|
+
"citation",
|
|
5
|
+
"code-block",
|
|
6
|
+
"confidence-text",
|
|
7
|
+
"context-cards",
|
|
8
|
+
"context-meter",
|
|
9
|
+
"conversation",
|
|
10
|
+
"diff-view",
|
|
11
|
+
"file-changes",
|
|
12
|
+
"message",
|
|
13
|
+
"model-picker",
|
|
14
|
+
"orb",
|
|
15
|
+
"prompt-input",
|
|
16
|
+
"selection-actions",
|
|
17
|
+
"streaming-text",
|
|
18
|
+
"suggestions",
|
|
19
|
+
"task-list",
|
|
20
|
+
"thinking",
|
|
21
|
+
"tool-call",
|
|
22
|
+
"voice-wave",
|
|
23
|
+
"file-tree",
|
|
24
|
+
"terminal",
|
|
25
|
+
"source-control",
|
|
26
|
+
"commit-history",
|
|
27
|
+
"editor-tabs",
|
|
28
|
+
"canvas",
|
|
29
|
+
"canvas-toolbar",
|
|
30
|
+
"minimap",
|
|
31
|
+
"node-graph",
|
|
32
|
+
"whiteboard",
|
|
33
|
+
"rich-text-editor",
|
|
34
|
+
"block-editor",
|
|
35
|
+
"suggested-edit",
|
|
36
|
+
"property-picker",
|
|
37
|
+
"filter-bar",
|
|
38
|
+
"kanban",
|
|
39
|
+
"chart",
|
|
40
|
+
"line-chart",
|
|
41
|
+
"bar-chart",
|
|
42
|
+
"donut-chart",
|
|
43
|
+
"sparkline",
|
|
44
|
+
"gantt",
|
|
45
|
+
"data-grid",
|
|
46
|
+
"scheduler",
|
|
47
|
+
"funnel-chart",
|
|
48
|
+
"radar-chart",
|
|
49
|
+
"scatter-chart",
|
|
50
|
+
"treemap",
|
|
51
|
+
"trace-viewer",
|
|
52
|
+
"eval-grid",
|
|
53
|
+
"model-compare",
|
|
54
|
+
"prompt-playground",
|
|
55
|
+
"generative-ui",
|
|
56
|
+
"transcript"
|
|
57
|
+
],
|
|
58
|
+
"blocks": [
|
|
59
|
+
"ai-chat",
|
|
60
|
+
"auth-split",
|
|
61
|
+
"cta-footer",
|
|
62
|
+
"data-table",
|
|
63
|
+
"faq-accordion",
|
|
64
|
+
"feature-grid",
|
|
65
|
+
"hero-split",
|
|
66
|
+
"navbar",
|
|
67
|
+
"newsletter",
|
|
68
|
+
"pricing-tiers",
|
|
69
|
+
"product-grid",
|
|
70
|
+
"stats-band",
|
|
71
|
+
"testimonials",
|
|
72
|
+
"thread-sidebar",
|
|
73
|
+
"voice-session"
|
|
74
|
+
],
|
|
75
|
+
"pages": [
|
|
76
|
+
"auth",
|
|
77
|
+
"blog",
|
|
78
|
+
"chat-app",
|
|
79
|
+
"dashboard",
|
|
80
|
+
"landing",
|
|
81
|
+
"pricing"
|
|
82
|
+
],
|
|
83
|
+
"templates": [
|
|
84
|
+
"code-agent",
|
|
85
|
+
"ecommerce",
|
|
86
|
+
"canvas-studio",
|
|
87
|
+
"notebook",
|
|
88
|
+
"tracker",
|
|
89
|
+
"analytics",
|
|
90
|
+
"settings",
|
|
91
|
+
"ai-console",
|
|
92
|
+
"crm",
|
|
93
|
+
"mail",
|
|
94
|
+
"scheduling",
|
|
95
|
+
"support"
|
|
96
|
+
]
|
|
97
|
+
}
|