ionbase-ui 0.19.0 → 0.20.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/dist/meta/components.json +1 -1
- package/dist/meta/index.json +1 -1
- package/llms.txt +27 -0
- package/package.json +7 -4
package/dist/meta/index.json
CHANGED
package/llms.txt
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ionbase-ui
|
|
2
|
+
|
|
3
|
+
> IonBase is a React design system for enterprise SaaS, built to be consumed by an agent rather than read by a developer. Every component ships a machine-readable contract carrying the judgement a type signature cannot: when to use it, what to use instead, the anti-patterns, and what it guarantees for accessibility versus what it requires of you.
|
|
4
|
+
|
|
5
|
+
Version 0.20.0. 35 components.
|
|
6
|
+
|
|
7
|
+
## Read these, in this order
|
|
8
|
+
|
|
9
|
+
1. `dist/meta/index.json` — every component with its summary and variant axes. Pick one from here.
|
|
10
|
+
2. `dist/meta/<Name>.json` — the full contract for that one component: props with their origins and defaults, variant guidance, slots, accessibility guarantees and requirements, anti-patterns, tokens.
|
|
11
|
+
|
|
12
|
+
Both are importable: `ionbase-ui/meta/index` and `ionbase-ui/meta/<Name>.json`. Do NOT load `ionbase-ui/meta` (`components.json`) — it is all 35 contracts in one file, for tooling that wants a single fetch, and it will bury the component you need.
|
|
13
|
+
|
|
14
|
+
## Components
|
|
15
|
+
|
|
16
|
+
`Alert`, `Avatar`, `AvatarGroup`, `Badge`, `Button`, `Checkbox`, `Divider`, `FullCard`, `Header`, `Icon`, `Input`, `Link`, `Logo`, `LogoMark`, `Menu`, `MenuItem`, `Modal`, `NavItem`, `PhoneInput`, `Popover`, `Radio`, `RadioGroup`, `ScrollProgress`, `Select`, `TabItem`, `Table`, `TableBody`, `TableCell`, `TableHead`, `TableRow`, `Tabs`, `Toast`, `ToastProvider`, `Toggle`, `Tooltip`
|
|
17
|
+
|
|
18
|
+
## Rules that ship with this package
|
|
19
|
+
|
|
20
|
+
- `ionbase-ui/eslint-plugin` — five rules driven from the contracts: deprecated props, missing accessible names, raw style values, measured contrast failures, competing primary actions.
|
|
21
|
+
- `ionbase-ui/stylelint-config` — bans raw colour and spacing values in favour of tokens.
|
|
22
|
+
|
|
23
|
+
Turn both on. They encode the same judgement as the contracts, enforced.
|
|
24
|
+
|
|
25
|
+
## Hosted
|
|
26
|
+
|
|
27
|
+
https://raza-ahmed.github.io/ionbase-design-system/llms.txt — the same index with per-component markdown pages.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ionbase-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "IonBase Design System — accessible React components, styles and design tokens in one package",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"types": "./dist/tokens-js.d.ts",
|
|
23
23
|
"default": "./dist/tokens-js.js"
|
|
24
24
|
},
|
|
25
|
+
"./llms.txt": "./llms.txt",
|
|
25
26
|
"./stylelint-config": "./stylelint-config.js",
|
|
26
27
|
"./eslint-plugin": "./eslint-plugin/index.js"
|
|
27
28
|
},
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
"files": [
|
|
39
40
|
"dist",
|
|
40
41
|
"eslint-plugin",
|
|
41
|
-
"stylelint-config.js"
|
|
42
|
+
"stylelint-config.js",
|
|
43
|
+
"llms.txt"
|
|
42
44
|
],
|
|
43
45
|
"sideEffects": [
|
|
44
46
|
"**/*.css"
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
},
|
|
58
60
|
"scripts": {
|
|
59
61
|
"dev": "tsc --watch",
|
|
60
|
-
"build": "node scripts/sync-tokens.mjs && tsc --build --force && node scripts/copy-css.mjs && node scripts/verify-client-boundaries.mjs && node scripts/verify-contrast.mjs && node scripts/build-meta.mjs && node scripts/verify-meta.mjs",
|
|
62
|
+
"build": "node scripts/sync-tokens.mjs && tsc --build --force && node scripts/copy-css.mjs && node scripts/verify-client-boundaries.mjs && node scripts/verify-contrast.mjs && node scripts/build-meta.mjs && node scripts/verify-meta.mjs && node scripts/build-llms.mjs",
|
|
61
63
|
"typecheck": "tsc --noEmit",
|
|
62
64
|
"lint": "eslint . && stylelint \"src/styles/*.css\"",
|
|
63
65
|
"format": "prettier --check .",
|
|
@@ -65,7 +67,8 @@
|
|
|
65
67
|
"meta:build": "node scripts/build-meta.mjs",
|
|
66
68
|
"meta:verify": "node scripts/build-meta.mjs && node scripts/verify-meta.mjs",
|
|
67
69
|
"contrast": "node scripts/verify-contrast.mjs",
|
|
68
|
-
"contrast:list": "node scripts/verify-contrast.mjs --list"
|
|
70
|
+
"contrast:list": "node scripts/verify-contrast.mjs --list",
|
|
71
|
+
"llms": "node scripts/build-llms.mjs"
|
|
69
72
|
},
|
|
70
73
|
"peerDependencies": {
|
|
71
74
|
"react": "^18.0.0 || ^19.0.0",
|