@duyluonganduin/acl-web-components 0.0.7 → 0.0.9
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 +484 -172
- package/dist/acl-web-components.d.ts +69 -1
- package/dist/acl-web-components.js +1738 -1059
- package/dist/react.d.ts +37 -1
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ declare module 'react' {
|
|
|
156
156
|
'anduin-input': Base & {
|
|
157
157
|
value?: string
|
|
158
158
|
/** 'small' | 'default' | 'large' (default: 'default') */
|
|
159
|
-
size?:
|
|
159
|
+
size?: 'small' | 'default' | 'large'
|
|
160
160
|
disabled?: boolean | string
|
|
161
161
|
readonly?: boolean | string
|
|
162
162
|
placeholder?: string
|
|
@@ -164,6 +164,12 @@ declare module 'react' {
|
|
|
164
164
|
inputid?: string
|
|
165
165
|
/** 'valid' | 'invalid' | 'warning' | 'loading' */
|
|
166
166
|
status?: string
|
|
167
|
+
/** anduin-icon name shown on the left */
|
|
168
|
+
'start-icon'?: string
|
|
169
|
+
/** anduin-icon name shown on the right */
|
|
170
|
+
'end-icon'?: string
|
|
171
|
+
/** Show a clear button when value is non-empty */
|
|
172
|
+
clearable?: boolean | string
|
|
167
173
|
}
|
|
168
174
|
|
|
169
175
|
// ── anduin-textarea ───────────────────────────────────────────────────
|
|
@@ -281,14 +287,44 @@ declare module 'react' {
|
|
|
281
287
|
heading?: string
|
|
282
288
|
/** Max-width preset: '480' | '600' | '720' | '960' | '1160', or any CSS value (default: '480') */
|
|
283
289
|
'max-width'?: '480' | '600' | '720' | '960' | '1160' | string
|
|
290
|
+
/** Hide the header (title + close button) */
|
|
291
|
+
'hide-header'?: boolean | string
|
|
284
292
|
/** Hide the footer slot container */
|
|
285
293
|
'hide-footer'?: boolean | string
|
|
294
|
+
/** Cover the full viewport; hides overlay and removes border-radius */
|
|
295
|
+
fullscreen?: boolean | string
|
|
286
296
|
/** Fired when the modal should close (X, overlay, or anduin-modal-close) */
|
|
287
297
|
onClose?: (e: CustomEvent) => void
|
|
288
298
|
}
|
|
289
299
|
|
|
290
300
|
// ── anduin-modal-close ────────────────────────────────────────────────
|
|
291
301
|
'anduin-modal-close': Base
|
|
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-file-icon ──────────────────────────────────────────────────
|
|
320
|
+
'anduin-file-icon': Base & {
|
|
321
|
+
/** 'archive' | 'audio' | 'blueprint' | 'box' | 'csv' | 'excel' | 'folder'
|
|
322
|
+
* | 'folder-empty' | 'form' | 'generic' | 'image' | 'link' | 'pdf'
|
|
323
|
+
* | 'powerpoint' | 'signed' | 'text' | 'video' | 'word' */
|
|
324
|
+
type?: string
|
|
325
|
+
/** 16 | 24 | 32 (default: 32) */
|
|
326
|
+
size?: 16 | 24 | 32 | string
|
|
327
|
+
}
|
|
292
328
|
}
|
|
293
329
|
}
|
|
294
330
|
}
|