@duyluonganduin/acl-web-components 0.0.6 → 0.0.8

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
@@ -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?: string
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 ───────────────────────────────────────────────────
@@ -272,6 +278,33 @@ declare module 'react' {
272
278
 
273
279
  // ── anduin-well-close ─────────────────────────────────────────────────
274
280
  'anduin-well-close': Base
281
+
282
+ // ── anduin-modal ──────────────────────────────────────────────────────
283
+ 'anduin-modal': Base & {
284
+ /** Whether the modal is open */
285
+ open?: boolean | string
286
+ /** Modal title text */
287
+ heading?: string
288
+ /** Max-width preset: '480' | '600' | '720' | '960' | '1160', or any CSS value (default: '480') */
289
+ 'max-width'?: '480' | '600' | '720' | '960' | '1160' | string
290
+ /** Hide the footer slot container */
291
+ 'hide-footer'?: boolean | string
292
+ /** Fired when the modal should close (X, overlay, or anduin-modal-close) */
293
+ onClose?: (e: CustomEvent) => void
294
+ }
295
+
296
+ // ── anduin-modal-close ────────────────────────────────────────────────
297
+ 'anduin-modal-close': Base
298
+
299
+ // ── anduin-file-icon ──────────────────────────────────────────────────
300
+ 'anduin-file-icon': Base & {
301
+ /** 'archive' | 'audio' | 'blueprint' | 'box' | 'csv' | 'excel' | 'folder'
302
+ * | 'folder-empty' | 'form' | 'generic' | 'image' | 'link' | 'pdf'
303
+ * | 'powerpoint' | 'signed' | 'text' | 'video' | 'word' */
304
+ type?: string
305
+ /** 16 | 24 | 32 (default: 32) */
306
+ size?: 16 | 24 | 32 | string
307
+ }
275
308
  }
276
309
  }
277
310
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duyluonganduin/acl-web-components",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "./dist/acl-web-components.cjs",
6
6
  "module": "./dist/acl-web-components.js",