@bug-on/m3-expressive 1.3.2 → 1.3.3
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/CHANGELOG.md +6 -0
- package/README.md +25 -0
- package/dist/core.js +9 -7
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +9 -7
- package/dist/core.mjs.map +1 -1
- package/dist/feedback.d.mts +2 -1
- package/dist/feedback.d.ts +2 -1
- package/dist/feedback.js +10 -7
- package/dist/feedback.js.map +1 -1
- package/dist/feedback.mjs +10 -8
- package/dist/feedback.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +189 -72
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +189 -73
- package/dist/index.mjs.map +1 -1
- package/dist/layout.d.mts +16 -5
- package/dist/layout.d.ts +16 -5
- package/dist/layout.js +38 -18
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +38 -18
- package/dist/layout.mjs.map +1 -1
- package/dist/navigation.d.mts +24 -8
- package/dist/navigation.d.ts +24 -8
- package/dist/navigation.js +416 -293
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs +408 -286
- package/dist/navigation.mjs.map +1 -1
- package/llms-full.txt +255 -0
- package/llms.txt +102 -0
- package/package.json +10 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -221,6 +221,31 @@ export default function App() {
|
|
|
221
221
|
|
|
222
222
|
---
|
|
223
223
|
|
|
224
|
+
## 🤖 AI Agent Integration
|
|
225
|
+
|
|
226
|
+
This package ships with machine-readable LLM documentation (`llms.txt` and `llms-full.txt`) adhering to the [llmstxt.org](https://llmstxt.org/) standard. When installed in your project, AI coding assistants (Cursor, GitHub Copilot, Claude Code, ChatGPT Codex) can read the bundled specification directly to understand APIs and avoid hallucinating props.
|
|
227
|
+
|
|
228
|
+
### 📚 Locating LLM Documentation
|
|
229
|
+
|
|
230
|
+
- **Local (in your project after install)**:
|
|
231
|
+
- `node_modules/@bug-on/m3-expressive/llms-full.txt` *(Full API & Gotchas reference - Recommended)*
|
|
232
|
+
- `node_modules/@bug-on/m3-expressive/llms.txt` *(Quick overview)*
|
|
233
|
+
- **Remote CDN**:
|
|
234
|
+
- `https://unpkg.com/@bug-on/m3-expressive/llms-full.txt`
|
|
235
|
+
- `https://cdn.jsdelivr.net/npm/@bug-on/m3-expressive/llms-full.txt`
|
|
236
|
+
- `https://raw.githubusercontent.com/nguyentruongton/bug-on-md3-expressive/main/llms-full.txt`
|
|
237
|
+
|
|
238
|
+
### 💡 Suggested Prompt for your AI Assistant
|
|
239
|
+
Add this instruction to your project's `CLAUDE.md`, `.cursorrules`, or system prompt:
|
|
240
|
+
|
|
241
|
+
```markdown
|
|
242
|
+
Before generating or modifying UI components using @bug-on/m3-expressive, read:
|
|
243
|
+
- Local: node_modules/@bug-on/m3-expressive/llms-full.txt
|
|
244
|
+
- CDN: https://unpkg.com/@bug-on/m3-expressive/llms-full.txt
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
224
249
|
## ⚖️ License
|
|
225
250
|
|
|
226
251
|
[MIT](./LICENSE)
|
package/dist/core.js
CHANGED
|
@@ -2150,11 +2150,13 @@ var Snackbar = React4__namespace.memo(function Snackbar2({
|
|
|
2150
2150
|
type: "button",
|
|
2151
2151
|
onClick: handleAction,
|
|
2152
2152
|
className: cn(
|
|
2153
|
-
"
|
|
2154
|
-
"px-
|
|
2155
|
-
"
|
|
2156
|
-
"
|
|
2157
|
-
"
|
|
2153
|
+
"inline-flex items-center justify-center",
|
|
2154
|
+
"h-10 px-3 py-2.5 rounded-sm",
|
|
2155
|
+
"text-sm font-medium leading-5 whitespace-nowrap",
|
|
2156
|
+
"text-m3-inverse-primary",
|
|
2157
|
+
"hover:bg-m3-inverse-primary/8 focus-visible:bg-m3-inverse-primary/12 active:bg-m3-inverse-primary/12",
|
|
2158
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-inverse-primary",
|
|
2159
|
+
"transition-colors select-none cursor-pointer"
|
|
2158
2160
|
),
|
|
2159
2161
|
children: actionLabel
|
|
2160
2162
|
}
|
|
@@ -2163,10 +2165,10 @@ var Snackbar = React4__namespace.memo(function Snackbar2({
|
|
|
2163
2165
|
IconButton,
|
|
2164
2166
|
{
|
|
2165
2167
|
size: "sm",
|
|
2166
|
-
colorStyle: "
|
|
2168
|
+
colorStyle: "standard",
|
|
2167
2169
|
"aria-label": "Dismiss notification",
|
|
2168
2170
|
onClick: handleDismiss,
|
|
2169
|
-
className: "text-m3-inverse-on-surface bg-m3-inverse-surface",
|
|
2171
|
+
className: "text-m3-inverse-on-surface hover:bg-m3-inverse-on-surface/8 active:bg-m3-inverse-on-surface/12 focus-visible:ring-m3-inverse-primary",
|
|
2170
2172
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "close", "aria-hidden": "true" })
|
|
2171
2173
|
}
|
|
2172
2174
|
)
|