@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @bug-on/m3-expressive
2
2
 
3
+ ## 1.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 719c20f: Add AI docs and TOC hierarchy
8
+
3
9
  ## 1.3.2
4
10
 
5
11
  ### Patch Changes
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
- "text-sm font-medium",
2154
- "px-2 py-1 rounded-sm",
2155
- "focus-visible:outline-none focus-visible:ring-2",
2156
- "transition-colors whitespace-nowrap",
2157
- "text-m3-inverse-primary"
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: "filled",
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
  )