@incursa/ui-kit 0.3.5 → 0.3.6
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/AI-AGENT-INSTRUCTIONS.md +1 -0
- package/LLMS.txt +64 -0
- package/README.md +5 -1
- package/package.json +2 -1
package/AI-AGENT-INSTRUCTIONS.md
CHANGED
|
@@ -32,6 +32,7 @@ Repository brand assets live under `assets/brand/`. Prefer those local files whe
|
|
|
32
32
|
Use `inc-filter-bar`, `inc-filter-chip`, and `inc-bulk-bar` for search-heavy or multi-select operator screens.
|
|
33
33
|
- Cards and shells:
|
|
34
34
|
Use `inc-card` for plain cards and `inc-header-body inc-header-body--card` for titled sections with actions.
|
|
35
|
+
Use `inc-header-body--table-body` when the body contains a table and should keep section padding without adding extra bottom table margin.
|
|
35
36
|
- App layout:
|
|
36
37
|
Use `inc-app-shell`, `inc-footer-bar`, `inc-navbar`, `inc-breadcrumb`, `inc-nav-triad`, and `inc-sidebar-menu` when you need an opinionated application frame instead of isolated components.
|
|
37
38
|
- States and workflow:
|
package/LLMS.txt
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Incursa UI Kit
|
|
2
|
+
|
|
3
|
+
Short description:
|
|
4
|
+
Reusable UI kit for data-heavy business applications. The public surface uses `inc-*` classes and ships compiled CSS, optional vanilla-JS helpers, and SCSS source entrypoints.
|
|
5
|
+
|
|
6
|
+
Package identity:
|
|
7
|
+
- npm package: `@incursa/ui-kit`
|
|
8
|
+
- license: Apache-2.0
|
|
9
|
+
- repository: https://github.com/incursa/ui-kit
|
|
10
|
+
|
|
11
|
+
Fast path:
|
|
12
|
+
- Use `dist/inc-design-language.css` if the target app already has working HTML and mainly needs the visual language.
|
|
13
|
+
- Use `dist/inc-design-language.js` only for stateful primitives such as menus, tabs, and collapsible sections.
|
|
14
|
+
- Use `src/inc-design-language.scss` if the consumer needs to tune tokens, theme variables, density, or Bootstrap defaults.
|
|
15
|
+
|
|
16
|
+
Primary files:
|
|
17
|
+
- `dist/inc-design-language.css`: compiled standalone CSS output.
|
|
18
|
+
- `dist/inc-design-language.js`: optional dependency-free helper for menus, tabs, and collapsible sections.
|
|
19
|
+
- `src/inc-design-language.scss`: main SCSS entrypoint.
|
|
20
|
+
- `src/_inc-theme.scss`: brand-facing fonts, palette, semantic surfaces, and text colors.
|
|
21
|
+
- `src/_inc-tokens.scss`: deeper token and Bootstrap-facing overrides.
|
|
22
|
+
- `reference.html`: copy/paste catalog for standard controls and markup patterns.
|
|
23
|
+
- `states.html`, `forms-and-validation.html`, `data-grid-advanced.html`, `overlay-workflows.html`: workflow-heavy composition patterns.
|
|
24
|
+
- `demo.html`, `work-queue.html`, `record-detail.html`, `native-patterns.html`: fuller page examples.
|
|
25
|
+
|
|
26
|
+
Public naming rules:
|
|
27
|
+
- Use the `inc-` prefix for public classes.
|
|
28
|
+
- Keep the existing BEM structure: `inc-block`, `inc-block__element`, `inc-block--modifier`.
|
|
29
|
+
|
|
30
|
+
Core primitives:
|
|
31
|
+
- Tables: start with `inc-table`; use modifiers such as `inc-table__cell--numeric`, `inc-table__cell--action`, `inc-table__cell--min`, and `inc-table__cell--expand`.
|
|
32
|
+
- Buttons: use `inc-btn` with semantic modifiers such as `inc-btn--primary`, `inc-btn--secondary`, and `inc-btn--danger`. Use `inc-btn--micro` for in-row actions.
|
|
33
|
+
- Forms: use `inc-form--inline`, `inc-form__field`, `inc-form__group`, `inc-input-group`, `inc-form__hint`, `inc-form__feedback--error`, `inc-form__feedback--success`, and `inc-form__error-summary`.
|
|
34
|
+
- Filter bars: use `inc-filter-bar`, `inc-filter-chip`, and `inc-bulk-bar`.
|
|
35
|
+
- Cards and shells: use `inc-card` for plain cards. Use `inc-header-body` for titled sections with actions. Use `inc-header-body--table-body` when the body contains a table and should keep body padding without extra bottom table margin.
|
|
36
|
+
- App layout: use `inc-app-shell`, `inc-footer-bar`, `inc-navbar`, `inc-breadcrumb`, `inc-nav-triad`, and `inc-sidebar-menu`.
|
|
37
|
+
- States and workflow: use `inc-state-panel`, `inc-permission-banner`, `inc-toast-card`, `inc-timeline`, `inc-file-dropzone`, `inc-file-row`, and `inc-key-value`.
|
|
38
|
+
- Interaction: use `data-inc-toggle="menu"`, `data-inc-toggle="tab"`, and `data-inc-toggle="collapse"` with `data-inc-target="#target-id"` when you want the helper to wire behavior.
|
|
39
|
+
- Native interaction: use `details.inc-disclosure`, `details.inc-native-menu`, and `dialog.inc-native-dialog`.
|
|
40
|
+
- Status: use `inc-badge--success|warning|danger|info`.
|
|
41
|
+
- Metrics: use `inc-summary-overview` and `inc-summary-block`.
|
|
42
|
+
|
|
43
|
+
Customization order:
|
|
44
|
+
1. Change fonts and colors in `src/_inc-theme.scss`.
|
|
45
|
+
2. Use `src/_inc-tokens.scss` only for deeper token or Bootstrap-level tuning.
|
|
46
|
+
3. Rebuild the CSS.
|
|
47
|
+
4. Only add new component rules after checking whether an existing `inc-*` block already fits.
|
|
48
|
+
|
|
49
|
+
Packaging and build:
|
|
50
|
+
- `npm run build` rebuilds distributables.
|
|
51
|
+
- `npm pack` or `npm run package` produces a local installable tarball.
|
|
52
|
+
- The compiled CSS already includes the Bootstrap layer it was built from, so consumers do not need Bootstrap CSS at runtime when using compiled assets.
|
|
53
|
+
- The SCSS source path does require Bootstrap Sass at build time because it imports `bootstrap/scss/bootstrap`.
|
|
54
|
+
|
|
55
|
+
Guardrails:
|
|
56
|
+
- Keep typography split: sans for UI text, mono for data.
|
|
57
|
+
- Preserve explicit alignment classes for numeric table data.
|
|
58
|
+
- Avoid product-specific shell or background styles in this package.
|
|
59
|
+
- Keep new components generic enough to reuse across admin/data apps.
|
|
60
|
+
- Prefer native browser behavior first for disclosures and dialogs when it fits the product.
|
|
61
|
+
|
|
62
|
+
See also:
|
|
63
|
+
- `README.md` for package usage, release flow, and repository structure.
|
|
64
|
+
- `AI-AGENT-INSTRUCTIONS.md` for the same guidance in markdown form.
|
package/README.md
CHANGED
|
@@ -72,6 +72,8 @@ Licensed under Apache 2.0.
|
|
|
72
72
|
Sticky-header table, bulk selection, row states, busy buttons, and side drawer pattern.
|
|
73
73
|
- `showcase.css`
|
|
74
74
|
Small demo-only helper stylesheet for the static examples.
|
|
75
|
+
- `LLMS.txt`
|
|
76
|
+
Plain-text agent guidance in the emerging `llms.txt`-style format for packaged consumers and tooling.
|
|
75
77
|
- `AI-AGENT-INSTRUCTIONS.md`
|
|
76
78
|
Short operational guidance for an AI agent or another engineer.
|
|
77
79
|
|
|
@@ -89,6 +91,8 @@ Examples:
|
|
|
89
91
|
|
|
90
92
|
The BEM/modifier structure stays consistent across the package, for example `inc-table__cell--numeric` or `inc-btn--primary`.
|
|
91
93
|
|
|
94
|
+
For titled sections that wrap tables, use `inc-header-body--table-body` to keep body padding while removing extra bottom margin from nested table wrappers.
|
|
95
|
+
|
|
92
96
|
## Design language summary
|
|
93
97
|
|
|
94
98
|
- Typography: IBM Plex Sans for UI copy and IBM Plex Mono for data, amounts, and identifiers.
|
|
@@ -146,7 +150,7 @@ npm pack
|
|
|
146
150
|
Then in the consuming app:
|
|
147
151
|
|
|
148
152
|
```bash
|
|
149
|
-
npm install ../path-to-tarball/incursa-ui-kit-
|
|
153
|
+
npm install ../path-to-tarball/incursa-ui-kit-x.y.z.tgz
|
|
150
154
|
```
|
|
151
155
|
|
|
152
156
|
Or, while iterating locally:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incursa/ui-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable UI kit for data-heavy business applications.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"dist",
|
|
41
41
|
"src",
|
|
42
42
|
"README.md",
|
|
43
|
+
"LLMS.txt",
|
|
43
44
|
"AI-AGENT-INSTRUCTIONS.md",
|
|
44
45
|
"NOTICE"
|
|
45
46
|
],
|