@duyluonganduin/acl-web-components 0.0.8 → 0.0.10
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/acl-web-components.cjs +410 -117
- package/dist/acl-web-components.d.ts +80 -0
- package/dist/acl-web-components.js +1226 -704
- package/dist/react.d.ts +36 -0
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -287,8 +287,12 @@ declare module 'react' {
|
|
|
287
287
|
heading?: string
|
|
288
288
|
/** Max-width preset: '480' | '600' | '720' | '960' | '1160', or any CSS value (default: '480') */
|
|
289
289
|
'max-width'?: '480' | '600' | '720' | '960' | '1160' | string
|
|
290
|
+
/** Hide the header (title + close button) */
|
|
291
|
+
'hide-header'?: boolean | string
|
|
290
292
|
/** Hide the footer slot container */
|
|
291
293
|
'hide-footer'?: boolean | string
|
|
294
|
+
/** Cover the full viewport; hides overlay and removes border-radius */
|
|
295
|
+
fullscreen?: boolean | string
|
|
292
296
|
/** Fired when the modal should close (X, overlay, or anduin-modal-close) */
|
|
293
297
|
onClose?: (e: CustomEvent) => void
|
|
294
298
|
}
|
|
@@ -296,6 +300,38 @@ declare module 'react' {
|
|
|
296
300
|
// ── anduin-modal-close ────────────────────────────────────────────────
|
|
297
301
|
'anduin-modal-close': Base
|
|
298
302
|
|
|
303
|
+
// ── anduin-avatar ─────────────────────────────────────────────────────
|
|
304
|
+
'anduin-avatar': Base & {
|
|
305
|
+
/** Image URL */
|
|
306
|
+
src?: string
|
|
307
|
+
/** Name used for initials and color */
|
|
308
|
+
name?: string
|
|
309
|
+
/** Alt text for the image */
|
|
310
|
+
alt?: string
|
|
311
|
+
/** anduin-icon name to show instead of initials */
|
|
312
|
+
icon?: string
|
|
313
|
+
/** 16 | 20 | 24 | 32 (default: 32) */
|
|
314
|
+
size?: 16 | 20 | 24 | 32 | string
|
|
315
|
+
/** 'circle' | 'rounded' (default: 'circle') */
|
|
316
|
+
shape?: 'circle' | 'rounded'
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// ── anduin-toast ──────────────────────────────────────────────────────
|
|
320
|
+
'anduin-toast': Base & {
|
|
321
|
+
/** 'gray' | 'primary' | 'success' | 'warning' | 'danger' (default: 'gray') */
|
|
322
|
+
variant?: 'gray' | 'primary' | 'success' | 'warning' | 'danger'
|
|
323
|
+
/** Bold title text */
|
|
324
|
+
heading?: string
|
|
325
|
+
/** Body text (or use slot content) */
|
|
326
|
+
description?: string
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// ── anduin-toaster ────────────────────────────────────────────────────
|
|
330
|
+
'anduin-toaster': Base & {
|
|
331
|
+
/** 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' (default: 'top-right') */
|
|
332
|
+
position?: string
|
|
333
|
+
}
|
|
334
|
+
|
|
299
335
|
// ── anduin-file-icon ──────────────────────────────────────────────────
|
|
300
336
|
'anduin-file-icon': Base & {
|
|
301
337
|
/** 'archive' | 'audio' | 'blueprint' | 'box' | 'csv' | 'excel' | 'folder'
|