@duyluonganduin/acl-web-components 0.0.9 → 0.0.11

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/react.d.ts CHANGED
@@ -293,8 +293,9 @@ declare module 'react' {
293
293
  'hide-footer'?: boolean | string
294
294
  /** Cover the full viewport; hides overlay and removes border-radius */
295
295
  fullscreen?: boolean | string
296
- /** Fired when the modal should close (X, overlay, or anduin-modal-close) */
297
- onClose?: (e: CustomEvent) => void
296
+ /** Fired when the modal should close (X, overlay, or anduin-modal-close).
297
+ * Event name: 'anduin-close'. Use a ref or onAnduin-close won't work in React JSX —
298
+ * prefer: el.addEventListener('anduin-close', handler) */
298
299
  }
299
300
 
300
301
  // ── anduin-modal-close ────────────────────────────────────────────────
@@ -316,6 +317,22 @@ declare module 'react' {
316
317
  shape?: 'circle' | 'rounded'
317
318
  }
318
319
 
320
+ // ── anduin-toast ──────────────────────────────────────────────────────
321
+ 'anduin-toast': Base & {
322
+ /** 'gray' | 'primary' | 'success' | 'warning' | 'danger' (default: 'gray') */
323
+ variant?: 'gray' | 'primary' | 'success' | 'warning' | 'danger'
324
+ /** Bold title text */
325
+ heading?: string
326
+ /** Body text (or use slot content) */
327
+ description?: string
328
+ }
329
+
330
+ // ── anduin-toaster ────────────────────────────────────────────────────
331
+ 'anduin-toaster': Base & {
332
+ /** 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' (default: 'top-right') */
333
+ position?: string
334
+ }
335
+
319
336
  // ── anduin-file-icon ──────────────────────────────────────────────────
320
337
  'anduin-file-icon': Base & {
321
338
  /** 'archive' | 'audio' | 'blueprint' | 'box' | 'csv' | 'excel' | 'folder'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duyluonganduin/acl-web-components",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "main": "./dist/acl-web-components.cjs",
6
6
  "module": "./dist/acl-web-components.js",