@epam/ai-dial-attachment-input 1.3.0-dev.37 → 1.3.0-dev.371

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.
@@ -14,6 +14,8 @@ interface ActionProps {
14
14
  onClick: (id: string) => void;
15
15
  /** ID of the attachment the action applies to. */
16
16
  id?: string;
17
+ /** Whether the button stays visible without hover or keyboard focus on the tile. */
18
+ isAlwaysVisible?: boolean;
17
19
  }
18
20
  /** Retry button for failed uploads. */
19
21
  export declare const ReloadAction: FC<Omit<ActionProps, 'icon'>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentCard/Attachments/Actions.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,EAAmB,MAAM,OAAO,CAAC;AAI5D,UAAU,WAAW;IACnB,wCAAwC;IACxC,IAAI,EAAE,SAAS,CAAC;IAChB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,kDAAkD;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAgCD,uCAAuC;AACvC,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CActD,CAAC;AAEF,6CAA6C;AAC7C,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAaxD,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAaxD,CAAC;AAEF,wHAAwH;AACxH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAiBtD,CAAC"}
1
+ {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentCard/Attachments/Actions.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,EAAmB,MAAM,OAAO,CAAC;AAI5D,UAAU,WAAW;IACnB,wCAAwC;IACxC,IAAI,EAAE,SAAS,CAAC;IAChB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,kDAAkD;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oFAAoF;IACpF,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAmCD,uCAAuC;AACvC,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CActD,CAAC;AAEF,6CAA6C;AAC7C,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAaxD,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAaxD,CAAC;AAEF,wHAAwH;AACxH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAiBtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentCard/Attachments/File.tsx"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAsB/E,2HAA2H;AAC3H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAyRlD,CAAC"}
1
+ {"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentCard/Attachments/File.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAM7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAsB/E,2HAA2H;AAC3H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA2RlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentCard/Attachments/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAElB,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EACL,aAAa,EACb,KAAK,EAAE,EAIR,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAKzC,UAAU,oBAAoB;IAC5B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uHAAuH;IACvH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA6IpD,CAAC"}
1
+ {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentCard/Attachments/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAElB,MAAM,2BAA2B,CAAC;AASnC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAUxD,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAKzC,UAAU,oBAAoB;IAC5B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uHAAuH;IACvH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA2JpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentGroup.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentGroup/AttachmentGroup.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAO1E,kIAAkI;AAClI,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA2IpD,CAAC"}
1
+ {"version":3,"file":"AttachmentGroup.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentGroup/AttachmentGroup.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAO1E,kIAAkI;AAClI,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA2JpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FileDndOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/FileDndOverlay/FileDndOverlay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAa,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,uGAAuG;AACvG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA4ElD,CAAC"}
1
+ {"version":3,"file":"FileDndOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/FileDndOverlay/FileDndOverlay.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAa,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,uGAAuG;AACvG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAuFlD,CAAC"}
@@ -2,4 +2,6 @@
2
2
  export declare const ATTACHMENT_COLLAPSE_THRESHOLD = 5;
3
3
  /** Base Tailwind classes shared by every square attachment tile (100 × 100 px). */
4
4
  export declare const ATTACHMENT_TILE_BASE_CLASS = "flex size-[100px] items-center justify-center rounded-xl border";
5
+ /** Tailwind classes drawing the 1px tile focus ring, 1px clear of the border, on keyboard focus of the tile itself. */
6
+ export declare const ATTACHMENT_TILE_FOCUS_RING_CLASS = "outline-offset-1 focus-visible:outline-1";
5
7
  //# sourceMappingURL=attachment-group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-group.d.ts","sourceRoot":"","sources":["../../src/constants/attachment-group.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,mFAAmF;AACnF,eAAO,MAAM,0BAA0B,oEAC4B,CAAC"}
1
+ {"version":3,"file":"attachment-group.d.ts","sourceRoot":"","sources":["../../src/constants/attachment-group.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,mFAAmF;AACnF,eAAO,MAAM,0BAA0B,oEAC4B,CAAC;AAMpE,uHAAuH;AACvH,eAAO,MAAM,gCAAgC,6CACD,CAAC"}
package/index.css CHANGED
@@ -1,2 +1,3 @@
1
- ._tile_1wxo2_12{box-sizing:border-box;background:var(--ai-tile-bg,var(--bg-layer-raised,#fcfcfc));border-style:solid;border-color:var(--ai-tile-border,var(--stroke-secondary,#d1dbea))}._tile_1wxo2_12._hovered_1wxo2_18:hover{background:var(--ai-tile-bg-hover,var(--bg-control-neutral-hover-muted,#e0e6f0));border-color:var(--ai-tile-border-hover,var(--ai-tile-border,var(--stroke-secondary,#d1dbea)))}._tile_1wxo2_12:focus-visible{outline-color:var(--ai-tile-focus-outline,var(--stroke-focus,#161b2d))}._selected_1wxo2_28{background:var(--ai-tile-bg-selected,var(--bg-control-accent-alpha,#2764d90f));border-color:var(--ai-tile-border-selected,var(--stroke-accent-alpha,#2764d933))}._tileError_1wxo2_33{background:var(--ai-tile-bg-error,var(--bg-error,#f3d6d8));border-color:var(--ai-tile-border-error,var(--stroke-error,#ae2f2f))}._nameText_1wxo2_38{color:var(--ai-tile-name-text,var(--text-primary,#161b2d))}._typeText_1wxo2_42{color:var(--ai-tile-type-text,var(--text-primary,#161b2d))}._placeholderIcon_1wxo2_46{color:var(--ai-tile-placeholder-icon,var(--text-secondary,#57647a))}._retryIcon_1wxo2_50{color:var(--ai-tile-error-text,var(--text-error,#ae2f2f))}._track_1wxo2_54{background:var(--ai-tile-progress-track,var(--bg-backdrop,#161b2d4d))}._actionButton_1wxo2_60{background:var(--ai-tile-hover-icon-bg,var(--bg-control-neutral-hover-muted,#e0e6f0))}._imageActionButton_1wxo2_64{background:var(--ai-tile-hover-icon-bg,var(--bg-layer-base,#f5f7fa));color:var(--ai-tile-hover-icon-color,var(--text-secondary,#57647a))}._headerIcon_1dmgi_1,._headerLabel_1dmgi_2{color:var(--ai-group-text,var(--text-secondary,#57647a))}._overlay_mzpdp_1{background:var(--ai-fd-bg,var(--bg-backdrop,#161b2d4d))}._icon_mzpdp_5{color:var(--ai-fd-icon,var(--text-accent,#1d4ed8))}._deniedIcon_mzpdp_9{color:var(--ai-fd-denied-icon,var(--text-error,#ae2f2f))}
2
- /*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.end-1{inset-inline-end:.25rem}.start-\[-1px\]{inset-inline-start:-1px}.top-1{top:.25rem}.top-\[-1px\]{top:-1px}.z-10{z-index:10}.z-\[9999\]{z-index:9999}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.size-\[100px\]{height:100px;width:100px}.size-full{width:100%}.h-full,.size-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0}.max-w-\[424px\]{max-width:424px}.max-w-\[532px\]{max-width:532px}.flex-1{flex:1 1 0%}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-\[repeat\(5\2c 100px\)\]{grid-template-columns:repeat(5,100px)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:4px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.pe-11{padding-inline-end:2.75rem}.pe-5{padding-inline-end:1.25rem}.text-center{text-align:center}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline{outline-style:solid;outline-width:1px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.focus-within\:outline:focus-within{outline-style:solid;outline-width:1px}.focus-within\:outline-1:focus-within{outline-width:1px}.focus-within\:outline-offset-1:focus-within{outline-offset:1px}.focus-visible\:opacity-100:focus-visible{opacity:1}.group\/attachment-tile:focus-within .group-focus-within\/attachment-tile\:opacity-100{opacity:1}.group\/attachment-tile:hover .group-hover\/attachment-tile\:opacity-100{opacity:1}@media (max-width:1279px){.mobile\:opacity-100{opacity:1}}
1
+ ._tile_hb2mo_12{box-sizing:border-box;background:var(--ai-tile-bg,var(--bg-layer-raised,#fcfcfc));border-style:solid;border-color:var(--ai-tile-border,var(--stroke-secondary,#d1dbea))}._tile_hb2mo_12._hovered_hb2mo_18:hover{background:var(--ai-tile-bg-hover,var(--bg-control-neutral-hover-muted,#e0e6f0));border-color:var(--ai-tile-border-hover,var(--ai-tile-border,var(--stroke-secondary,#d1dbea)))}._tile_hb2mo_12{outline-color:var(--ai-tile-focus-outline,var(--stroke-focus,#161b2d))}._selected_hb2mo_28{background:var(--ai-tile-bg-selected,var(--bg-control-accent-alpha,#2764d90f));border-color:var(--ai-tile-border-selected,var(--stroke-accent-alpha,#2764d933))}._tileError_hb2mo_33{background:var(--ai-tile-bg-error,var(--bg-error,#f3d6d8));border-color:var(--ai-tile-border-error,var(--stroke-error,#ae2f2f))}._nameText_hb2mo_38{color:var(--ai-tile-name-text,var(--text-primary,#161b2d))}._typeText_hb2mo_42{color:var(--ai-tile-type-text,var(--text-primary,#161b2d))}._placeholderIcon_hb2mo_46{color:var(--ai-tile-placeholder-icon,var(--text-secondary,#57647a))}._retryIcon_hb2mo_50{color:var(--ai-tile-error-text,var(--text-error,#ae2f2f))}._track_hb2mo_54{background:var(--ai-tile-progress-track,var(--bg-backdrop,#161b2d4d))}._tile_hb2mo_12 ._actionButton_hb2mo_65{background:var(--ai-tile-hover-icon-bg,var(--ai-tile-bg,var(--bg-layer-raised,#fcfcfc)))}._tile_hb2mo_12._hovered_hb2mo_18:hover ._actionButton_hb2mo_65{background:var(--ai-tile-hover-icon-bg,var(--ai-tile-bg-hover,var(--bg-control-neutral-hover-muted,#e0e6f0)))}._tile_hb2mo_12._selected_hb2mo_28 ._actionButton_hb2mo_65{background:var(--ai-tile-hover-icon-bg,linear-gradient(var(--ai-tile-bg-selected,var(--bg-control-accent-alpha,#2764d90f)), var(--ai-tile-bg-selected,var(--bg-control-accent-alpha,#2764d90f))), var(--ai-tile-bg,var(--bg-layer-raised,#fcfcfc)))}._tile_hb2mo_12._tileError_hb2mo_33 ._actionButton_hb2mo_65{background:var(--ai-tile-bg-error,var(--bg-error,#f3d6d8));color:var(--ai-tile-error-text,var(--text-error,#ae2f2f))}._tile_hb2mo_12._loading_hb2mo_86 ._actionButton_hb2mo_65,._tile_hb2mo_12 ._imageActionButton_hb2mo_87,._tile_hb2mo_12._selected_hb2mo_28 ._imageActionButton_hb2mo_87{background:var(--ai-tile-hover-icon-bg,var(--bg-layer-base,#f5f7fa));color:var(--ai-tile-hover-icon-color,var(--text-secondary,#57647a))}._tile_hb2mo_12:has(._tileAction_hb2mo_99:focus-visible){outline-width:1px;outline-style:solid}._tileAction_hb2mo_99:focus-visible{outline:none}._tile_hb2mo_12._proxyFocus_hb2mo_108:has(:focus-visible){outline-width:1px;outline-style:solid}._tile_hb2mo_12._proxyFocus_hb2mo_108 ._actionButton_hb2mo_65:focus-visible{outline:none}._loading_hb2mo_86{cursor:progress}._headerIcon_1dmgi_1,._headerLabel_1dmgi_2{color:var(--ai-group-text,var(--text-secondary,#57647a))}._overlay_mzpdp_1{background:var(--ai-fd-bg,var(--bg-backdrop,#161b2d4d))}._icon_mzpdp_5{color:var(--ai-fd-icon,var(--text-accent,#1d4ed8))}._deniedIcon_mzpdp_9{color:var(--ai-fd-denied-icon,var(--text-error,#ae2f2f))}
2
+ /*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-e-1{inset-inline-end:.25rem}.top-1{top:.25rem}.z-10{z-index:10}.z-9999{z-index:9999}.-m-0\.5{margin:-.125rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.size-\[100px\]{width:100px;height:100px}.h-full{height:100%}.w-full{width:100%}.max-w-\[424px\]{max-width:424px}.max-w-\[532px\]{max-width:532px}.min-w-0{min-width:0}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-\[repeat\(5\,100px\)\]{grid-template-columns:repeat(5,100px)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-\[11px\]{border-radius:11px}.rounded-xl{border-radius:.75rem}.border{border-style:var(--tw-border-style);border-width:1px}.object-cover{object-fit:cover}.p-0\.5{padding:.125rem}.p-3{padding:.75rem}.text-center{text-align:center}.break-words,.wrap-break-word{overflow-wrap:break-word}.opacity-0{opacity:0}.opacity-100{opacity:1}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.outline-offset-1{outline-offset:1px}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.group-hover\/attachment-tile\:opacity-100:is(:where(.group\/attachment-tile):hover *){opacity:1}}.group-focus-visible\/attachment-tile\:opacity-100:is(:where(.group\/attachment-tile):focus-visible *),.group-has-focus-visible\/attachment-tile\:opacity-100:is(:where(.group\/attachment-tile):has(:focus-visible) *){opacity:1}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}@media (max-width:1279px){.mobile\:opacity-100{opacity:1}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
package/index.js CHANGED
@@ -1,32 +1,32 @@
1
- import { AttachmentErrorReason as e, AttachmentType as t, MIME_TYPE_EXT_MAP as n, RequestStatus as r, buildCssVars as i, getBaseMimeType as a, mergeClasses as o, normalizeMimeType as s } from "@epam/ai-dial-chat-shared";
2
- import { useCallback as c, useEffect as l, useId as u, useMemo as d, useRef as f, useState as p } from "react";
3
- import { IconClipboard as m, IconDownload as h, IconExternalLink as g, IconFile as _, IconFileDescription as v, IconFileTypeBmp as y, IconFileTypeCss as b, IconFileTypeCsv as x, IconFileTypeDoc as S, IconFileTypeDocx as C, IconFileTypeHtml as w, IconFileTypeJpg as T, IconFileTypeJs as E, IconFileTypeJsx as D, IconFileTypePdf as O, IconFileTypePhp as k, IconFileTypePng as A, IconFileTypePpt as j, IconFileTypeRs as M, IconFileTypeSql as N, IconFileTypeSvg as P, IconFileTypeTs as F, IconFileTypeTsx as I, IconFileTypeTxt as L, IconFileTypeVue as R, IconFileTypeXls as z, IconFileTypeXml as ee, IconFileTypeZip as te, IconFileX as ne, IconMusic as re, IconPaperclip as ie, IconPhoto as B, IconReload as V, IconTerminal2 as ae, IconVideo as oe, IconX as se } from "@tabler/icons-react";
4
- import { DIAL_ICON_SIZE as H, DIAL_KIT_ICON_STROKE as U, DialItemType as ce, ElementSize as W, FileIcon as le, GhostIconButton as ue, Highlight as de, Skeleton as fe, SkeletonVariant as pe, Spinner as me, StaticIconButton as he } from "@epam/ai-dial-ui-kit";
5
- import { Fragment as ge, jsx as G, jsxs as K } from "react/jsx-runtime";
1
+ import { AttachmentErrorReason as e, AttachmentType as t, MIME_TYPE_EXT_MAP as n, RequestStatus as r, buildCssVars as i, getBaseMimeType as a, mergeClasses as o, normalizeMimeType as s, useIsVerticallyClamped as c } from "@epam/ai-dial-chat-shared";
2
+ import { useCallback as l, useEffect as u, useId as d, useMemo as f, useRef as p, useState as m } from "react";
3
+ import { IconClipboard as h, IconDownload as g, IconExternalLink as _, IconFile as v, IconFileDescription as y, IconFileTypeBmp as b, IconFileTypeCss as x, IconFileTypeCsv as S, IconFileTypeDoc as C, IconFileTypeDocx as w, IconFileTypeHtml as T, IconFileTypeJpg as E, IconFileTypeJs as D, IconFileTypeJsx as O, IconFileTypePdf as k, IconFileTypePhp as A, IconFileTypePng as j, IconFileTypePpt as M, IconFileTypeRs as N, IconFileTypeSql as P, IconFileTypeSvg as F, IconFileTypeTs as I, IconFileTypeTsx as L, IconFileTypeTxt as R, IconFileTypeVue as z, IconFileTypeXls as B, IconFileTypeXml as ee, IconFileTypeZip as te, IconFileX as ne, IconMusic as re, IconPaperclip as V, IconPhoto as H, IconReload as ie, IconTerminal2 as ae, IconVideo as oe, IconX as U } from "@tabler/icons-react";
4
+ import { DIAL_ICON_SIZE as W, DIAL_KIT_ICON_STROKE as G, DialItemType as se, ElementSize as ce, FileIcon as le, GhostIconButton as ue, Highlight as de, LiveRegion as fe, LiveRegionElement as pe, Skeleton as me, SkeletonVariant as he, Spinner as ge, StaticIconButton as _e, Tooltip as ve } from "@epam/ai-dial-ui-kit";
5
+ import { Fragment as ye, jsx as K, jsxs as q } from "react/jsx-runtime";
6
6
  //#region src/utils/attachment.ts
7
- var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) => {
7
+ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, be = (e) => {
8
8
  if (e == null) return "";
9
9
  let t = e.lastIndexOf(".");
10
10
  return t > 0 ? e.slice(0, t) : e;
11
- }, ve = {
11
+ }, xe = {
12
12
  image: "Image files",
13
13
  audio: "Audio files",
14
14
  video: "Video files",
15
15
  text: "Text files",
16
16
  "*": "All files"
17
- }, ye = { "image/jpeg": "JPEG" }, be = (e, t = ve) => e.map((e) => {
17
+ }, Se = { "image/jpeg": "JPEG" }, Ce = (e, t = xe) => e.map((e) => {
18
18
  let r = a(e);
19
19
  if (r.endsWith("/*")) {
20
20
  let e = r.slice(0, -2);
21
21
  return t[e] ?? `${e} files`;
22
22
  }
23
- let i = s(r), o = ye[i];
23
+ let i = s(r), o = Se[i];
24
24
  if (o) return o;
25
25
  let c = n[i];
26
26
  if (c) return c.toUpperCase();
27
27
  let l = i.split("/")[1];
28
28
  return l == null ? e.toUpperCase() : l.toUpperCase();
29
- }).join(", "), xe = (e, t) => {
29
+ }).join(", "), we = (e, t) => {
30
30
  if (t.length === 0) return !1;
31
31
  let n = a(e), r = s(n);
32
32
  return t.some((e) => {
@@ -38,82 +38,82 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
38
38
  }
39
39
  return r === s(t);
40
40
  });
41
- }, Se = (e) => {
42
- if (!e) return _;
41
+ }, Te = (e) => {
42
+ if (!e) return v;
43
43
  let t = s(e);
44
44
  if (t.startsWith("image/")) switch (t) {
45
- case "image/jpeg": return T;
46
- case "image/png": return A;
47
- case "image/svg+xml": return P;
48
- case "image/bmp": return y;
49
- default: return B;
45
+ case "image/jpeg": return E;
46
+ case "image/png": return j;
47
+ case "image/svg+xml": return F;
48
+ case "image/bmp": return b;
49
+ default: return H;
50
50
  }
51
51
  if (t.startsWith("video/")) return oe;
52
52
  if (t.startsWith("audio/")) return re;
53
53
  switch (t) {
54
- case "application/pdf": return O;
55
- case "application/msword": return S;
56
- case "application/vnd.openxmlformats-officedocument.wordprocessingml.document": return C;
57
- case "application/vnd.ms-powerpoint": return j;
58
- case "application/vnd.openxmlformats-officedocument.presentationml.presentation": return j;
59
- case "application/vnd.ms-excel": return z;
60
- case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": return z;
54
+ case "application/pdf": return k;
55
+ case "application/msword": return C;
56
+ case "application/vnd.openxmlformats-officedocument.wordprocessingml.document": return w;
57
+ case "application/vnd.ms-powerpoint": return M;
58
+ case "application/vnd.openxmlformats-officedocument.presentationml.presentation": return M;
59
+ case "application/vnd.ms-excel": return B;
60
+ case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": return B;
61
61
  case "application/zip":
62
62
  case "application/vnd.rar":
63
63
  case "application/x-7z-compressed":
64
64
  case "application/gzip":
65
65
  case "application/x-tar": return te;
66
- case "text/csv": return x;
67
- case "text/plain": return L;
66
+ case "text/csv": return S;
67
+ case "text/plain": return R;
68
68
  case "text/html":
69
- case "application/xhtml+xml": return w;
69
+ case "application/xhtml+xml": return T;
70
70
  case "application/xml": return ee;
71
- case "application/sql": return N;
72
- case "text/javascript": return E;
73
- case "text/jsx": return D;
74
- case "text/typescript": return F;
75
- case "text/tsx": return I;
76
- case "text/css": return b;
77
- case "text/x-php": return k;
78
- case "text/x-rustsrc": return M;
79
- case "text/x-vue": return R;
80
- default: return _;
71
+ case "application/sql": return P;
72
+ case "text/javascript": return D;
73
+ case "text/jsx": return O;
74
+ case "text/typescript": return I;
75
+ case "text/tsx": return L;
76
+ case "text/css": return x;
77
+ case "text/x-php": return A;
78
+ case "text/x-rustsrc": return N;
79
+ case "text/x-vue": return z;
80
+ default: return v;
81
81
  }
82
- }, Ce = (e) => {
82
+ }, Ee = (e) => {
83
83
  let { type: n, contentType: r } = e;
84
- return n === t.Prompt ? ae : n === t.Pasted ? m : n === t.Image ? B : Se(r ?? "");
85
- }, we = (e) => {
84
+ return n === t.Prompt ? ae : n === t.Pasted ? h : n === t.Image ? H : Te(r ?? "");
85
+ }, De = (e) => {
86
86
  let t = s(e), r = n[t];
87
87
  if (r) return r;
88
88
  let i = t.split("/")[1];
89
89
  if (i && !i.startsWith("vnd.") && !i.includes("+")) return i;
90
- }, Te = (e) => {
90
+ }, Oe = (e) => {
91
91
  let { name: t, contentType: n } = e;
92
92
  if (n) {
93
- let e = we(n);
93
+ let e = De(n);
94
94
  if (e) return e;
95
95
  }
96
96
  if (t == null) return;
97
97
  let r = t.lastIndexOf(".");
98
98
  if (r > 0 && r < t.length - 1) return t.slice(r + 1).toLowerCase();
99
- }, Ee = (e) => e.type !== t.Prompt && e.type !== t.Pasted, De = (e, n) => {
99
+ }, ke = (e) => e.type !== t.Prompt && e.type !== t.Pasted, Ae = (e, n) => {
100
100
  let { type: r, name: i } = e;
101
101
  if (r === t.Prompt) return n.promptLabel ?? "Prompt";
102
102
  if (r === t.Pasted) return n.pastedLabel ?? "Pasted";
103
103
  if (r === t.Image) return n.imageLabel ?? "Image";
104
- let a = Te(e);
104
+ let a = Oe(e);
105
105
  return a ? `.${a}` : i ?? "";
106
- }, J = (e, n = {}) => {
106
+ }, Y = (e, n = {}) => {
107
107
  let { type: i, status: a, previewUrl: o, url: s } = e, c = a === r.Loading, l = a === r.Error, u = i === t.Image && !!(o ?? s) && !l, d = i === t.Link && !l;
108
108
  return {
109
109
  isLoading: c,
110
110
  isError: l,
111
111
  isImage: u,
112
112
  isLink: d,
113
- BottomIcon: d ? null : Ce(e),
114
- typeLabel: d ? null : De(e, n)
113
+ BottomIcon: d ? null : Ee(e),
114
+ typeLabel: d ? null : Ae(e, n)
115
115
  };
116
- }, Oe = 5, ke = "flex size-[100px] items-center justify-center rounded-xl border", Y = {
116
+ }, je = 5, Me = "flex size-[100px] items-center justify-center rounded-xl border", Ne = "outline-offset-1 focus-visible:outline-1", X = {
117
117
  tray: "dial-ai-attachment-tray",
118
118
  trayItem: "dial-ai-attachment-tray-item",
119
119
  tile: "dial-ai-attachment-tile",
@@ -121,166 +121,177 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
121
121
  tileName: "dial-ai-attachment-tile-name",
122
122
  tileType: "dial-ai-attachment-tile-type",
123
123
  tileAction: "dial-ai-attachment-tile-action"
124
- }, X = {
125
- tile: "_tile_1wxo2_12",
126
- hovered: "_hovered_1wxo2_18",
127
- selected: "_selected_1wxo2_28",
128
- tileError: "_tileError_1wxo2_33",
129
- nameText: "_nameText_1wxo2_38",
130
- typeText: "_typeText_1wxo2_42",
131
- placeholderIcon: "_placeholderIcon_1wxo2_46",
132
- retryIcon: "_retryIcon_1wxo2_50",
133
- track: "_track_1wxo2_54",
134
- actionButton: "_actionButton_1wxo2_60",
135
- imageActionButton: "_imageActionButton_1wxo2_64"
136
- }, Z = ({ ariaLabel: e, errorTitle: t, errorDescId: n, onClick: r, id: i, icon: a, className: s }) => /* @__PURE__ */ G(he, {
124
+ }, Z = {
125
+ tile: "_tile_hb2mo_12",
126
+ hovered: "_hovered_hb2mo_18",
127
+ selected: "_selected_hb2mo_28",
128
+ tileError: "_tileError_hb2mo_33",
129
+ nameText: "_nameText_hb2mo_38",
130
+ typeText: "_typeText_hb2mo_42",
131
+ placeholderIcon: "_placeholderIcon_hb2mo_46",
132
+ retryIcon: "_retryIcon_hb2mo_50",
133
+ track: "_track_hb2mo_54",
134
+ actionButton: "_actionButton_hb2mo_65",
135
+ loading: "_loading_hb2mo_86",
136
+ imageActionButton: "_imageActionButton_hb2mo_87",
137
+ tileAction: "_tileAction_hb2mo_99",
138
+ proxyFocus: "_proxyFocus_hb2mo_108"
139
+ }, Q = ({ ariaLabel: e, errorTitle: t, errorDescId: n, onClick: r, id: i, icon: a, className: s, isAlwaysVisible: c }) => /* @__PURE__ */ K(_e, {
137
140
  icon: a,
138
- size: W.Small,
139
- className: o("opacity-0 focus-visible:opacity-100 group-focus-within/attachment-tile:opacity-100 group-hover/attachment-tile:opacity-100", X.actionButton, s, Y.tileAction),
141
+ size: ce.Small,
142
+ className: o(c ? "opacity-100" : "opacity-0 group-hover/attachment-tile:opacity-100 group-focus-visible/attachment-tile:opacity-100 group-has-focus-visible/attachment-tile:opacity-100", Z.actionButton, s, X.tileAction),
140
143
  "aria-label": e,
141
144
  "aria-describedby": t ? n : void 0,
142
145
  onClick: (e) => {
143
146
  e.stopPropagation(), r(i);
144
147
  }
145
- }), Ae = ({ ...e }) => /* @__PURE__ */ G(Z, {
146
- icon: /* @__PURE__ */ G(V, {
147
- size: H.SM,
148
+ }), Pe = ({ ...e }) => /* @__PURE__ */ K(Q, {
149
+ icon: /* @__PURE__ */ K(ie, {
150
+ size: W.SM,
148
151
  "aria-hidden": !0,
149
- stroke: U
152
+ stroke: G
150
153
  }),
151
- className: X.retryIcon,
154
+ className: Z.retryIcon,
152
155
  ...e
153
- }), je = ({ ...e }) => /* @__PURE__ */ G(Z, {
154
- icon: /* @__PURE__ */ G(h, {
155
- size: H.SM,
156
+ }), Fe = ({ ...e }) => /* @__PURE__ */ K(Q, {
157
+ icon: /* @__PURE__ */ K(g, {
158
+ size: W.SM,
156
159
  "aria-hidden": !0,
157
- stroke: U
160
+ stroke: G
158
161
  }),
159
162
  ...e
160
- }), Me = ({ ...e }) => /* @__PURE__ */ G(Z, {
161
- icon: /* @__PURE__ */ G(g, {
162
- size: H.SM,
163
+ }), Ie = ({ ...e }) => /* @__PURE__ */ K(Q, {
164
+ icon: /* @__PURE__ */ K(_, {
165
+ size: W.SM,
163
166
  "aria-hidden": !0,
164
- stroke: U
167
+ stroke: G
165
168
  }),
166
169
  ...e
167
- }), Ne = ({ className: e, ...t }) => /* @__PURE__ */ G(Z, {
168
- icon: /* @__PURE__ */ G(se, {
169
- size: H.SM,
170
+ }), Le = ({ className: e, ...t }) => /* @__PURE__ */ K(Q, {
171
+ icon: /* @__PURE__ */ K(U, {
172
+ size: W.SM,
170
173
  "aria-hidden": !0,
171
- stroke: U
174
+ stroke: G
172
175
  }),
173
176
  className: o("mobile:opacity-100", e),
174
177
  ...t
175
- }), Pe = {
178
+ }), Re = {
176
179
  [e.Network]: "Upload failed · network error",
177
180
  [e.UnsupportedType]: "Upload failed · unsupported file type",
178
181
  [e.FileTooLarge]: "Upload failed · file too large"
179
- }, Fe = ({ attachment: t, searchQuery: n = "", onClick: i, onRetry: a, labels: s, styles: l, onDownload: f, isLink: p, cssVars: m, onExpand: h, isExpandable: g, onRemove: _, isSelected: v }) => {
180
- let { clickLabel: y = "Download attachment", expandLabel: b = "Expand pasted text", downloadLabel: x = "Download attachment", retryLabel: S = "Retry upload", removeLabel: C = "Remove attachment", openInNewTabLabel: w = "Open in new tab", sizeLabel: T, uploadingLabel: E = "Uploading", errorReasonLabels: D, genericErrorLabel: O = "Upload failed" } = s ?? {}, { typography: k, className: A } = l ?? {}, { id: j, name: M, status: N, errorReason: P } = t, F = N === r.Loading, I = N === r.Error, L = u(), R = I ? P && (D?.[P] ?? Pe[P]) || O : "", { BottomIcon: z, typeLabel: ee } = J(t), te = Ee(t), ne = !I && !F && f && !p, re = I && !!a && P !== e.UnsupportedType && P !== e.FileTooLarge, ie = Number(!!ne) + Number(!!re) + Number(!!p) + Number(!!_), B = ie > 1 ? "pe-11" : ie === 1 ? "pe-5" : void 0, V = !!g && h !== void 0, ae = V || i !== void 0, oe = () => {
181
- V ? h(j) : i?.(j);
182
- }, se = (e) => {
183
- e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), oe());
184
- }, W = d(() => _e(M), [M]), ue = c(() => {
182
+ }, ze = ({ attachment: t, searchQuery: n = "", onClick: i, onRetry: a, labels: s, styles: u, onDownload: p, isLink: m, cssVars: h, onExpand: g, isExpandable: _, onRemove: v, isSelected: y }) => {
183
+ let { clickLabel: b = "Download attachment", expandLabel: x = "Expand pasted text", downloadLabel: S = "Download attachment", retryLabel: C = "Retry upload", removeLabel: w = "Remove attachment", openInNewTabLabel: T = "Open in new tab", sizeLabel: E, uploadingLabel: D = "Uploading", errorReasonLabels: O, genericErrorLabel: k = "Upload failed" } = s ?? {}, { typography: A, className: j } = u ?? {}, { id: M, name: N, status: P, errorReason: F } = t, I = P === r.Loading, L = P === r.Error, R = d(), z = L ? F && (O?.[F] ?? Re[F]) || k : "", { BottomIcon: B, typeLabel: ee } = Y(t), te = ke(t), ne = !L && !I && p && !m, re = L && !!a && F !== e.UnsupportedType && F !== e.FileTooLarge, V = !!_ && g !== void 0, H = V || i !== void 0, ie = Number(!!ne) + Number(!!re) + Number(!!m) + Number(!!v), ae = !H && ie === 1, oe = () => {
184
+ V ? g(M) : i?.(M);
185
+ }, U = f(() => be(N), [N]), { ref: ce, isClamped: ue } = c(U), me = l(() => {
185
186
  window.open(t.referenceUrl, "_blank", "noopener,noreferrer");
186
- }, [t]), fe = o(ke, "group/attachment-tile relative flex-col justify-between items-start gap-1 overflow-hidden p-3", X.tile, !I && X.hovered, v && X.selected, I && X.tileError, Y.tile, v && Y.tileSelected), pe = /* @__PURE__ */ G("div", {
187
- title: W,
188
- className: o(k?.nameClassName ?? "dial-tiny-text", "line-clamp-2 w-full min-w-0 break-words", X.nameText, !I && B, Y.tileName),
189
- children: n ? /* @__PURE__ */ G(de, {
190
- text: W,
187
+ }, [t]), he = o(Me, "group/attachment-tile relative flex-col justify-between items-start gap-2 overflow-hidden p-3", Z.tile, H && !L && !I && Z.hovered, I && Z.loading, y && Z.selected, L && Z.tileError, ae && Z.proxyFocus, X.tile, y && X.tileSelected), _e = /* @__PURE__ */ K("div", {
188
+ ref: ce,
189
+ title: U,
190
+ className: o(A?.nameClassName ?? "dial-tiny-text", "line-clamp-2 w-full min-w-0 wrap-break-word", Z.nameText, X.tileName),
191
+ children: n ? /* @__PURE__ */ K(de, {
192
+ text: U,
191
193
  query: n,
192
194
  maxLines: 2
193
- }) : W
194
- }), he = z && /* @__PURE__ */ K("div", {
195
- className: o("flex w-full items-center gap-1", I && B, Y.tileType),
196
- children: [te ? /* @__PURE__ */ G(le, {
197
- type: ce.File,
198
- name: M ?? "",
199
- fileExtension: Te(t),
200
- size: H.SM,
195
+ }) : U
196
+ }), J = B && /* @__PURE__ */ q("div", {
197
+ className: o("flex w-full items-end gap-1", X.tileType),
198
+ children: [te ? /* @__PURE__ */ K(le, {
199
+ type: se.File,
200
+ name: N ?? "",
201
+ fileExtension: Oe(t),
202
+ size: W.MD,
201
203
  decorative: !0
202
- }) : /* @__PURE__ */ G(z, {
203
- size: H.SM,
204
- className: X.typeText,
205
- stroke: U,
204
+ }) : /* @__PURE__ */ K(B, {
205
+ size: W.MD,
206
+ className: Z.typeText,
207
+ stroke: G,
206
208
  "aria-hidden": !0
207
- }), /* @__PURE__ */ G("span", {
208
- className: o(k?.metaClassName ?? "dial-tiny-text", "min-w-0 flex-1 truncate", X.typeText),
209
- children: T ? `${ee} · ${T}` : ee
209
+ }), /* @__PURE__ */ K("span", {
210
+ className: o(A?.metaClassName ?? "dial-tiny-text", "min-w-0 flex-1 truncate", Z.typeText),
211
+ children: E ? `${ee} · ${E}` : ee
210
212
  })]
211
- }), q = ae ? {
212
- role: "button",
213
- tabIndex: 0,
214
- "aria-label": V ? b : y,
215
- onClick: oe,
216
- onKeyDown: se
217
- } : {}, ve = /* @__PURE__ */ K(ge, { children: [
218
- pe,
219
- he,
220
- F && /* @__PURE__ */ G("div", {
213
+ }), xe = /* @__PURE__ */ q(ye, { children: [
214
+ _e,
215
+ J,
216
+ H && /* @__PURE__ */ K(ve, {
217
+ tooltip: N,
218
+ hideTooltip: !ue,
219
+ triggerClassName: "absolute inset-0",
220
+ children: /* @__PURE__ */ K("button", {
221
+ type: "button",
222
+ "aria-label": V ? x : b,
223
+ "aria-pressed": !V && i !== void 0 ? y : void 0,
224
+ onClick: oe,
225
+ className: o("absolute inset-0 cursor-pointer rounded-[11px]", Z.tileAction)
226
+ })
227
+ }),
228
+ I && /* @__PURE__ */ K("div", {
221
229
  role: "progressbar",
222
- "aria-label": E,
223
- className: o("absolute start-[-1px] top-[-1px] flex size-full items-center justify-center rounded", X.track),
224
- children: /* @__PURE__ */ G(me, { size: 32 })
230
+ "aria-label": D,
231
+ className: o("absolute inset-0 flex items-center justify-center rounded-[11px]", Z.track),
232
+ children: /* @__PURE__ */ K("span", {
233
+ "aria-hidden": !0,
234
+ className: "flex",
235
+ children: /* @__PURE__ */ K(ge, { size: 32 })
236
+ })
225
237
  }),
226
- /* @__PURE__ */ K("div", {
227
- className: "absolute end-1 top-1 flex gap-1",
238
+ /* @__PURE__ */ q("div", {
239
+ className: "absolute inset-e-1 top-1 flex",
228
240
  children: [
229
- ne && /* @__PURE__ */ G(je, {
230
- ariaLabel: x,
231
- errorTitle: R,
232
- errorDescId: L,
233
- onClick: f,
234
- id: j
235
- }),
236
- re && /* @__PURE__ */ G(Ae, {
241
+ ne && /* @__PURE__ */ K(Fe, {
237
242
  ariaLabel: S,
238
- errorTitle: R,
239
- errorDescId: L,
243
+ errorTitle: z,
244
+ errorDescId: R,
245
+ onClick: p,
246
+ id: M
247
+ }),
248
+ re && /* @__PURE__ */ K(Pe, {
249
+ ariaLabel: C,
250
+ errorTitle: z,
251
+ errorDescId: R,
240
252
  onClick: a,
241
- id: j
253
+ id: M
242
254
  }),
243
- p && /* @__PURE__ */ G(Me, {
244
- ariaLabel: w,
245
- errorTitle: R,
246
- errorDescId: L,
247
- onClick: ue
255
+ m && /* @__PURE__ */ K(Ie, {
256
+ ariaLabel: T,
257
+ errorTitle: z,
258
+ errorDescId: R,
259
+ onClick: me
248
260
  }),
249
- _ && /* @__PURE__ */ G(Ne, {
250
- ariaLabel: C,
251
- errorTitle: R,
252
- errorDescId: L,
253
- onClick: _,
254
- id: j
261
+ v && /* @__PURE__ */ K(Le, {
262
+ ariaLabel: w,
263
+ errorTitle: z,
264
+ errorDescId: R,
265
+ onClick: v,
266
+ id: M,
267
+ isAlwaysVisible: I
255
268
  })
256
269
  ]
257
270
  }),
258
- I && /* @__PURE__ */ G("span", {
259
- id: L,
260
- role: "status",
261
- "aria-live": "polite",
262
- className: "sr-only",
263
- children: R
271
+ /* @__PURE__ */ K(fe, {
272
+ id: R,
273
+ visuallyHidden: !0,
274
+ as: pe.Span,
275
+ children: L ? z : ""
264
276
  })
265
277
  ] });
266
- return /* @__PURE__ */ G("div", {
267
- style: m,
268
- className: o("inline-flex", A),
269
- children: /* @__PURE__ */ G("div", {
270
- ...q,
271
- "aria-busy": F,
272
- style: m,
273
- className: o(fe, ae && "cursor-pointer", "focus-within:outline focus-within:outline-1 focus-within:outline-offset-1"),
274
- children: ve
278
+ return /* @__PURE__ */ K("div", {
279
+ style: h,
280
+ className: o("inline-flex", j),
281
+ children: /* @__PURE__ */ K("div", {
282
+ "aria-busy": I,
283
+ style: h,
284
+ className: o(he, H && "cursor-pointer", Ne),
285
+ children: xe
275
286
  })
276
287
  });
277
- }, Q = /* @__PURE__ */ function(e) {
288
+ }, Be = /* @__PURE__ */ function(e) {
278
289
  return e.Idle = "idle", e.Loading = "loading", e.Loaded = "loaded", e.Error = "error", e;
279
- }({}), Ie = ({ enabled: e, src: t }) => {
280
- let n = f(null), [r, i] = p("idle");
281
- return l(() => {
290
+ }({}), Ve = ({ enabled: e, src: t }) => {
291
+ let n = p(null), [r, i] = m("idle");
292
+ return u(() => {
282
293
  i(e && t ? "loading" : "idle");
283
- }, [e, t]), l(() => {
294
+ }, [e, t]), u(() => {
284
295
  let r = n.current;
285
296
  if (!r || !e || !t) return;
286
297
  let a = () => i("loaded"), o = () => i("error");
@@ -291,67 +302,77 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
291
302
  imageRef: n,
292
303
  imageLoadStatus: r
293
304
  };
294
- }, Le = ({ attachment: e, onExpand: n, onClick: r, labels: i, onRemove: a, cssVars: s, onDownload: c, styles: l, isSelected: u }) => {
295
- let { clickLabel: f = "Open attachment", expandLabel: p = "Expand pasted text", removeLabel: m = "Remove attachment", downloadLabel: h = "Download attachment" } = i ?? {}, { className: g } = l ?? {}, { id: _, name: v } = e, y = e.previewUrl ?? e.url, b = e.type === t.Pasted && n !== void 0, { isLoading: x, isError: S, isImage: C } = d(() => J(e), [e]), w = r !== void 0 && !b && !x && !S, T = b || w, { imageRef: E, imageLoadStatus: D } = Ie({
296
- enabled: C,
297
- src: y
298
- }), O = () => {
299
- b && n ? n(_) : w && r && r(_);
300
- }, k = T ? {
301
- role: "button",
302
- tabIndex: 0,
303
- "aria-label": b ? p : f,
304
- onClick: O,
305
- onKeyDown: (e) => {
306
- e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), O());
307
- }
308
- } : {};
309
- return /* @__PURE__ */ G("div", {
310
- className: o(ke, "group/attachment-tile", T && "cursor-pointer", X.tile, u && X.selected, g, Y.tile, u && Y.tileSelected),
311
- ...k,
305
+ }, He = ({ attachment: e, onExpand: n, onClick: r, labels: i, onRemove: a, cssVars: s, onDownload: c, styles: l, isSelected: u }) => {
306
+ let { clickLabel: d = "Open attachment", expandLabel: p = "Expand pasted text", removeLabel: m = "Remove attachment", downloadLabel: h = "Download attachment", uploadingLabel: g = "Uploading" } = i ?? {}, { className: _ } = l ?? {}, { id: v, name: y } = e, b = e.previewUrl ?? e.url, x = e.type === t.Pasted && n !== void 0, { isLoading: S, isError: C, isImage: w } = f(() => Y(e), [e]), T = r !== void 0 && !x && !S && !C, E = x || T, D = !!c && !S, O = !E && Number(!!a) + Number(D) === 1, { imageRef: k, imageLoadStatus: A } = Ve({
307
+ enabled: w,
308
+ src: b
309
+ }), j = () => {
310
+ x && n ? n(v) : T && r && r(v);
311
+ }, M = o(Me, "group/attachment-tile", E && "cursor-pointer", Z.tile, u && Z.selected, S && Z.loading, O && Z.proxyFocus, Ne, _, X.tile, u && X.tileSelected);
312
+ return /* @__PURE__ */ K("div", {
313
+ className: M,
314
+ "aria-busy": S,
312
315
  style: s,
313
- children: /* @__PURE__ */ K("div", {
316
+ children: /* @__PURE__ */ q("div", {
314
317
  className: "relative h-full w-full overflow-hidden",
315
318
  children: [
316
- /* @__PURE__ */ K("div", {
317
- className: "absolute end-1 top-1 z-10 flex gap-1",
318
- children: [a && /* @__PURE__ */ G(Ne, {
319
+ /* @__PURE__ */ q("div", {
320
+ className: "absolute inset-e-1 top-1 z-10 flex",
321
+ children: [a && /* @__PURE__ */ K(Le, {
319
322
  ariaLabel: m,
320
323
  onClick: a,
321
- id: _,
322
- className: X.imageActionButton
323
- }), c && /* @__PURE__ */ G(je, {
324
+ id: v,
325
+ className: Z.imageActionButton,
326
+ isAlwaysVisible: S
327
+ }), D && /* @__PURE__ */ K(Fe, {
324
328
  ariaLabel: h,
325
329
  onClick: c,
326
- id: _,
327
- className: X.imageActionButton
330
+ id: v,
331
+ className: Z.imageActionButton
328
332
  })]
329
333
  }),
330
- D !== Q.Loaded && /* @__PURE__ */ G(fe, {
331
- variant: pe.Rectangular,
334
+ A !== Be.Loaded && /* @__PURE__ */ K(me, {
335
+ variant: he.Rectangular,
332
336
  width: "100%",
333
337
  height: "100%",
334
- active: D === Q.Loading,
335
- overlay: /* @__PURE__ */ G(B, {
336
- size: H.LG,
337
- className: X.placeholderIcon,
338
+ active: A === Be.Loading,
339
+ overlay: /* @__PURE__ */ K(H, {
340
+ size: W.LG,
341
+ className: Z.placeholderIcon,
338
342
  "aria-hidden": !0,
339
- stroke: U
343
+ stroke: G
340
344
  }),
341
345
  className: "absolute inset-0 rounded-xl"
342
346
  }),
343
- /* @__PURE__ */ G("img", {
344
- ref: E,
345
- src: y,
346
- alt: v,
347
+ /* @__PURE__ */ K("img", {
348
+ ref: k,
349
+ src: b,
350
+ alt: y,
347
351
  loading: "lazy",
348
352
  decoding: "async",
349
- className: o("h-full w-full rounded-xl object-cover transition-opacity duration-200", D === Q.Loaded ? "opacity-100" : "opacity-0")
353
+ className: o("h-full w-full rounded-xl object-cover transition-opacity duration-200", A === Be.Loaded ? "opacity-100" : "opacity-0")
354
+ }),
355
+ E && /* @__PURE__ */ K("button", {
356
+ type: "button",
357
+ "aria-label": x ? p : d,
358
+ "aria-pressed": T ? u : void 0,
359
+ onClick: j,
360
+ className: o("absolute inset-0 cursor-pointer rounded-xl", Z.tileAction)
361
+ }),
362
+ S && /* @__PURE__ */ K("div", {
363
+ role: "progressbar",
364
+ "aria-label": g,
365
+ className: o("absolute inset-0 flex items-center justify-center rounded-xl", Z.track),
366
+ children: /* @__PURE__ */ K("span", {
367
+ "aria-hidden": !0,
368
+ className: "flex",
369
+ children: /* @__PURE__ */ K(ge, { size: 32 })
370
+ })
350
371
  })
351
372
  ]
352
373
  })
353
374
  });
354
- }, Re = ({ attachment: e, searchQuery: n = "", onRemove: r, onRetry: a, onExpand: o, onClick: s, onDownload: c, labels: l, styles: u, isSelected: f }) => {
375
+ }, Ue = ({ attachment: e, searchQuery: n = "", onRemove: r, onRetry: a, onExpand: o, onClick: s, onDownload: c, labels: l, styles: u, isSelected: d }) => {
355
376
  let { colors: p } = u ?? {}, m = e.type === t.Pasted && o !== void 0, h = i({
356
377
  "--ai-tile-bg": p?.background,
357
378
  "--ai-tile-border": p?.border,
@@ -369,8 +390,8 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
369
390
  "--ai-tile-hover-icon-bg": p?.hoverIconBackground,
370
391
  "--ai-tile-hover-icon-color": p?.hoverIconColor,
371
392
  "--ai-tile-progress-track": p?.trackBackground
372
- }), { isImage: g, isLink: _ } = d(() => J(e), [e]);
373
- return g ? /* @__PURE__ */ G(Le, {
393
+ }), { isImage: g, isLink: _ } = f(() => Y(e), [e]);
394
+ return g ? /* @__PURE__ */ K(He, {
374
395
  attachment: e,
375
396
  labels: l,
376
397
  onClick: s,
@@ -379,8 +400,8 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
379
400
  onRemove: r,
380
401
  cssVars: h,
381
402
  onDownload: c,
382
- isSelected: f
383
- }) : /* @__PURE__ */ G(Fe, {
403
+ isSelected: d
404
+ }) : /* @__PURE__ */ K(ze, {
384
405
  attachment: e,
385
406
  searchQuery: n,
386
407
  onClick: s,
@@ -393,18 +414,18 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
393
414
  onExpand: o,
394
415
  cssVars: h,
395
416
  isExpandable: m,
396
- isSelected: f
417
+ isSelected: d
397
418
  });
398
- }, ze = ({ attachments: e, onRemove: t, onRetry: n, onExpand: r, onAttachmentClick: i, labels: a, styles: s }) => {
419
+ }, We = ({ attachments: e, onRemove: t, onRetry: n, onExpand: r, onAttachmentClick: i, labels: a, styles: s }) => {
399
420
  let { ariaLabel: c = "Attached files", removeLabel: l, retryLabel: u, clickLabel: d, expandLabel: f, uploadingLabel: p } = a ?? {}, { className: m, card: h } = s ?? {};
400
- return e.length === 0 ? null : /* @__PURE__ */ G("div", {
421
+ return e.length === 0 ? null : /* @__PURE__ */ K("div", {
401
422
  role: "list",
402
423
  "aria-label": c,
403
- className: o("flex w-full min-w-0 gap-2 overflow-x-auto", m, Y.tray),
404
- children: e.map((e) => /* @__PURE__ */ G("div", {
424
+ className: o("-m-0.5 box-border flex min-w-0 gap-2 overflow-x-auto p-0.5", m, X.tray),
425
+ children: e.map((e) => /* @__PURE__ */ K("div", {
405
426
  role: "listitem",
406
- className: Y.trayItem,
407
- children: /* @__PURE__ */ G(Re, {
427
+ className: X.trayItem,
428
+ children: /* @__PURE__ */ K(Ue, {
408
429
  attachment: e,
409
430
  onRemove: t,
410
431
  onRetry: n,
@@ -421,118 +442,122 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
421
442
  })
422
443
  }, e.id))
423
444
  });
424
- }, Be = {
445
+ }, Ge = {
425
446
  headerIcon: "_headerIcon_1dmgi_1",
426
447
  headerLabel: "_headerLabel_1dmgi_2"
427
- }, Ve = (e, t) => `${e} ${t}${e === 1 ? "" : "s"}`, He = ({ attachments: e, onAttachmentClick: n, onDownloadAll: a, onRetry: s, labels: c, styles: l, selectedAttachmentId: u }) => {
428
- let { ariaLabel: d = "Attachments", clickLabel: f = "Download attachment", downloadLabel: p = "Download attachment", retryLabel: m = "Retry upload", downloadAllLabel: g = "Download all", openInNewTabLabel: v, getHeaderLabel: y = (e) => Ve(e, "attachment"), promptLabel: b, pastedLabel: x, imageLabel: S } = c ?? {}, { typography: C, colors: w, className: T } = l ?? {}, E = i({ "--ai-group-text": w?.text });
448
+ }, Ke = (e, t) => `${e} ${t}${e === 1 ? "" : "s"}`, qe = ({ attachments: e, onAttachmentClick: n, onDownloadAll: a, isAttachmentDownloadable: s, onRetry: c, labels: l, styles: u, selectedAttachmentId: d }) => {
449
+ let { ariaLabel: f = "Attachments", clickLabel: p = "Download attachment", downloadLabel: m = "Download attachment", retryLabel: h = "Retry upload", downloadAllLabel: _ = "Download all", openInNewTabLabel: y, getHeaderLabel: b = (e) => Ke(e, "attachment"), promptLabel: x, pastedLabel: S, imageLabel: C } = l ?? {}, { typography: w, colors: T, className: E } = u ?? {}, D = i({ "--ai-group-text": T?.text });
429
450
  if (e.length === 0) return null;
430
- let D = e.some((e) => e.type === t.Image), O = e.some((e) => e.type !== t.Image), k = D && O, A = e.length >= 5, j = k ? ie : D ? B : _, M = y(e.length), N = () => {
431
- let t = e.filter((e) => e.status === r.Idle);
432
- a ? a(t) : t.forEach((e) => n?.(e.id));
433
- }, P = (t) => {
451
+ let O = e.some((e) => e.type === t.Image), k = e.some((e) => e.type !== t.Image), A = O && k, j = e.length >= 5, M = v;
452
+ A ? M = V : O && (M = H);
453
+ let N = b(e.length), P = (e) => s?.(e) !== !1, F = e.filter((e) => e.status === r.Idle && P(e)), I = () => {
454
+ a ? a(F) : F.forEach((e) => n?.(e.id));
455
+ }, L = (t) => {
434
456
  let n = e.find((e) => e.id === t);
435
457
  n && a?.([n]);
436
458
  };
437
- return /* @__PURE__ */ K("div", {
459
+ return /* @__PURE__ */ q("div", {
438
460
  role: "group",
439
- "aria-label": d,
440
- style: E,
441
- className: o("flex flex-col gap-2", A ? "w-full min-w-0 max-w-[532px]" : "max-w-[424px]", Be.container, T),
442
- children: [/* @__PURE__ */ K("div", {
461
+ "aria-label": f,
462
+ style: D,
463
+ className: o("flex flex-col gap-2", j ? "w-full max-w-[532px] min-w-0" : "max-w-[424px]", Ge.container, E),
464
+ children: [/* @__PURE__ */ q("div", {
443
465
  className: "flex items-center justify-between",
444
- children: [/* @__PURE__ */ K("div", {
466
+ children: [/* @__PURE__ */ q("div", {
445
467
  className: "flex items-center gap-1",
446
- children: [/* @__PURE__ */ G(j, {
447
- size: H.SM,
448
- className: o("shrink-0", Be.headerIcon),
468
+ children: [/* @__PURE__ */ K(M, {
469
+ size: W.SM,
470
+ className: o("shrink-0", Ge.headerIcon),
449
471
  "aria-hidden": !0
450
- }), /* @__PURE__ */ G("span", {
451
- className: o(C?.headerLabelClassName ?? "dial-tiny-semi-text", Be.headerLabel),
452
- children: M
472
+ }), /* @__PURE__ */ K("span", {
473
+ className: o(w?.headerLabelClassName ?? "dial-tiny-semi-text", Ge.headerLabel),
474
+ children: N
453
475
  })]
454
- }), e.length >= 2 && (a || n) && /* @__PURE__ */ G(ue, {
455
- icon: /* @__PURE__ */ G(h, {
456
- size: H.SM,
476
+ }), e.length >= 2 && F.length > 0 && (a || n) && /* @__PURE__ */ K(ue, {
477
+ icon: /* @__PURE__ */ K(g, {
478
+ size: W.SM,
457
479
  "aria-hidden": !0,
458
- stroke: U
480
+ stroke: G
459
481
  }),
460
- size: W.Small,
461
- "aria-label": g,
462
- onClick: N
482
+ size: ce.Small,
483
+ "aria-label": _,
484
+ onClick: I
463
485
  })]
464
- }), /* @__PURE__ */ G("div", {
486
+ }), /* @__PURE__ */ K("div", {
465
487
  role: "list",
466
- "aria-label": M,
467
- className: o("gap-2", A ? "grid grid-cols-[repeat(5,100px)]" : "flex flex-wrap"),
468
- children: e.map((e, t) => /* @__PURE__ */ G("div", {
488
+ "aria-label": N,
489
+ className: o("gap-2", j ? "grid grid-cols-[repeat(5,100px)]" : "flex flex-wrap"),
490
+ children: e.map((e, t) => /* @__PURE__ */ K("div", {
469
491
  role: "listitem",
470
- children: /* @__PURE__ */ G(Re, {
492
+ children: /* @__PURE__ */ K(Ue, {
471
493
  attachment: e,
472
494
  onClick: n,
473
- onDownload: a ? P : void 0,
474
- onRetry: s,
495
+ onDownload: a && P(e) ? L : void 0,
496
+ onRetry: c,
475
497
  labels: {
476
- clickLabel: f,
477
- downloadLabel: p,
478
- retryLabel: m,
479
- promptLabel: b,
480
- pastedLabel: x,
481
- imageLabel: S,
482
- openInNewTabLabel: v
498
+ clickLabel: p,
499
+ downloadLabel: m,
500
+ retryLabel: h,
501
+ promptLabel: x,
502
+ pastedLabel: S,
503
+ imageLabel: C,
504
+ openInNewTabLabel: y
483
505
  },
484
- isSelected: e.id === u
506
+ isSelected: e.id === d
485
507
  })
486
508
  }, `${e.id}-${t}`))
487
509
  })]
488
510
  });
489
- }, Ue = {
511
+ }, Je = {
490
512
  overlay: "_overlay_mzpdp_1",
491
513
  icon: "_icon_mzpdp_5",
492
514
  deniedIcon: "_deniedIcon_mzpdp_9"
493
- }, We = ({ isVisible: e, isAttachmentsAllowed: t = !0, labels: n, styles: r }) => {
494
- let { title: a, subtitle: s } = n ?? {}, { colors: c, typography: l } = r ?? {};
495
- if (!e) return null;
496
- let u = i({
515
+ }, Ye = ({ isVisible: e, isAttachmentsAllowed: t = !0, labels: n, styles: r }) => {
516
+ let { title: a, subtitle: s } = n ?? {}, { colors: c, typography: l } = r ?? {}, u = a ?? (t ? "Attach files" : "No attachments allowed"), d = s ?? (t ? "Drop files here to attach them to message" : "Attachments can't be added to message"), f = /* @__PURE__ */ K(fe, {
517
+ visuallyHidden: !0,
518
+ as: pe.Span,
519
+ children: e ? `${u}. ${d}` : ""
520
+ });
521
+ if (!e) return f;
522
+ let p = i({
497
523
  "--ai-fd-bg": c?.background,
498
524
  "--ai-fd-icon": c?.icon,
499
525
  "--ai-fd-denied-icon": c?.deniedIcon
500
- }), d = a ?? (t ? "Attach files" : "No attachments allowed"), f = s ?? (t ? "Drop files here to attach them to message" : "Attachments can't be added to message"), p = t ? Ue.icon : Ue.deniedIcon, m = (e) => {
526
+ }), m = t ? Je.icon : Je.deniedIcon, h = (e) => {
501
527
  e.preventDefault();
502
- }, h = t ? v : ne;
503
- return /* @__PURE__ */ G("div", {
504
- role: "status",
505
- "aria-live": "polite",
506
- className: o("fixed inset-0 z-[9999] flex items-center justify-center backdrop-blur-sm", Ue.overlay, t ? "pointer-events-none" : "pointer-events-auto cursor-not-allowed"),
507
- onDragOver: t ? void 0 : m,
508
- onDrop: t ? void 0 : m,
509
- style: u,
510
- children: /* @__PURE__ */ K("div", {
528
+ }, g = t ? y : ne;
529
+ return /* @__PURE__ */ q(ye, { children: [f, /* @__PURE__ */ K("div", {
530
+ className: o("fixed inset-0 z-9999 flex items-center justify-center backdrop-blur-sm", Je.overlay, t ? "pointer-events-none" : "pointer-events-auto cursor-not-allowed"),
531
+ onDragOver: t ? void 0 : h,
532
+ onDrop: t ? void 0 : h,
533
+ style: p,
534
+ children: /* @__PURE__ */ q("div", {
535
+ "aria-hidden": !0,
511
536
  className: "flex flex-col items-center text-center",
512
537
  children: [
513
- /* @__PURE__ */ G(h, {
538
+ /* @__PURE__ */ K(g, {
514
539
  size: 100,
515
540
  stroke: 1,
516
- className: p,
541
+ className: m,
517
542
  "aria-hidden": !0
518
543
  }),
519
- /* @__PURE__ */ G("span", {
544
+ /* @__PURE__ */ K("span", {
520
545
  className: o("mt-5", l?.titleClassName ?? "dial-h3-text"),
521
- children: d
546
+ children: u
522
547
  }),
523
- /* @__PURE__ */ G("span", {
548
+ /* @__PURE__ */ K("span", {
524
549
  className: o("mt-4", l?.subtitleClassName ?? "dial-small-text"),
525
- children: f
550
+ children: d
526
551
  })
527
552
  ]
528
553
  })
529
- });
530
- }, $ = (e) => String(e).padStart(2, "0"), Ge = (e) => `${e.getFullYear()}-${$(e.getMonth() + 1)}-${$(e.getDate())} ${$(e.getHours())}-${$(e.getMinutes())}-${$(e.getSeconds())}`, Ke = (e, t, n) => {
554
+ })] });
555
+ }, $ = (e) => String(e).padStart(2, "0"), Xe = (e) => `${e.getFullYear()}-${$(e.getMonth() + 1)}-${$(e.getDate())} ${$(e.getHours())}-${$(e.getMinutes())}-${$(e.getSeconds())}`, Ze = (e, t, n) => {
531
556
  let r = e.lastIndexOf("."), i = r > 0, a = i ? e.slice(0, r) : e, o = i ? e.slice(r) : "", s = n === 0 ? "" : ` (${n + 1})`;
532
- return `${a} ${Ge(t)}${s}${o}`;
533
- }, qe = (e, n, i = {}) => {
557
+ return `${a} ${Xe(t)}${s}${o}`;
558
+ }, Qe = (e, n, i = {}) => {
534
559
  let { screenshotName: a = "Screenshot.png", pastedTextName: o = "Pasted text" } = i;
535
- return { handlePaste: c((i) => {
560
+ return { handlePaste: l((i) => {
536
561
  if (!i.clipboardData) return;
537
562
  let s = Array.from(i.clipboardData.items).filter((e) => e.kind === "file" && e.type.startsWith("image/")), c = i.clipboardData.getData("text/plain").length > 0;
538
563
  if (s.length > 0 && !c) {
@@ -540,8 +565,8 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
540
565
  for (let e of s) {
541
566
  let i = e.getAsFile();
542
567
  if (!i) continue;
543
- let s = Ke(a, o, n.length), c = new File([i], s, { type: i.type }), l = {
544
- id: q(),
568
+ let s = Ze(a, o, n.length), c = new File([i], s, { type: i.type }), l = {
569
+ id: J(),
545
570
  name: s,
546
571
  contentType: i.type,
547
572
  file: c,
@@ -556,8 +581,8 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
556
581
  }
557
582
  let l = i.clipboardData.getData("text/plain");
558
583
  if (l.length > n) {
559
- let n = `${o} ${Ge(/* @__PURE__ */ new Date())}.txt`, a = new File([l], n, { type: "text/plain" }), s = {
560
- id: q(),
584
+ let n = `${o} ${Xe(/* @__PURE__ */ new Date())}.txt`, a = new File([l], n, { type: "text/plain" }), s = {
585
+ id: J(),
561
586
  name: n,
562
587
  contentType: "text/plain",
563
588
  file: a,
@@ -572,6 +597,6 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
572
597
  a,
573
598
  o
574
599
  ]) };
575
- }, Je = 100;
600
+ }, $e = 100;
576
601
  //#endregion
577
- export { Oe as ATTACHMENT_COLLAPSE_THRESHOLD, Y as ATTACHMENT_INPUT_CLASS, Re as AttachmentCard, He as AttachmentGroup, ze as AttachmentTray, We as FileDndOverlay, Q as LazyImageLoadStatus, Je as MAX_UPLOADS_PER_MINUTE, q as generateAttachmentId, J as getAttachmentCardState, Se as getAttachmentIcon, we as getExtFromContentType, _e as getNameWithoutExtension, xe as isMimeTypeAllowed, be as mimeTypesToExtensionLabels, qe as useClipboardPaste, Ie as useLazyImageLoad };
602
+ export { je as ATTACHMENT_COLLAPSE_THRESHOLD, X as ATTACHMENT_INPUT_CLASS, Ue as AttachmentCard, qe as AttachmentGroup, We as AttachmentTray, Ye as FileDndOverlay, Be as LazyImageLoadStatus, $e as MAX_UPLOADS_PER_MINUTE, J as generateAttachmentId, Y as getAttachmentCardState, Te as getAttachmentIcon, De as getExtFromContentType, be as getNameWithoutExtension, we as isMimeTypeAllowed, Ce as mimeTypesToExtensionLabels, Qe as useClipboardPaste, Ve as useLazyImageLoad };
@@ -38,13 +38,13 @@ export interface AttachmentCardColors {
38
38
  backgroundSelected?: string;
39
39
  /** Tile border color in the selected state. */
40
40
  borderSelected?: string;
41
- /** Tile focus outline color. */
41
+ /** Tile focus ring color. Defaults to `--stroke-focus`. */
42
42
  focusOutline?: string;
43
43
  /** Tile background color in the error state. */
44
44
  backgroundError?: string;
45
45
  /** Tile border color in the error state. */
46
46
  borderError?: string;
47
- /** File name/type text color in the error state. */
47
+ /** Corner action icon color in the error state. Defaults to `--text-error`. */
48
48
  errorText?: string;
49
49
  /** File name text color. */
50
50
  nameText?: string;
@@ -52,9 +52,9 @@ export interface AttachmentCardColors {
52
52
  typeText?: string;
53
53
  /** Image placeholder icon color while the preview loads. Defaults to `--text-secondary`. */
54
54
  placeholderIcon?: string;
55
- /** Hover download icon background color. */
55
+ /** Corner action button background, overriding the default of matching the tile's current background (not applied in the error state). */
56
56
  hoverIconBackground?: string;
57
- /** Hover download icon color. */
57
+ /** Corner action icon color on image tiles and during upload. Defaults to `--text-secondary`. */
58
58
  hoverIconColor?: string;
59
59
  /** Upload progress track background color. */
60
60
  trackBackground?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-card.d.ts","sourceRoot":"","sources":["../../src/models/attachment-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,wGAAwG;AACxG,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,kFAAkF;AAClF,MAAM,WAAW,mBAAmB;IAClC,qDAAqD;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAC;IAC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,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uHAAuH;IACvH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"attachment-card.d.ts","sourceRoot":"","sources":["../../src/models/attachment-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,wGAAwG;AACxG,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,kFAAkF;AAClF,MAAM,WAAW,mBAAmB;IAClC,qDAAqD;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAC;IACjB,2DAA2D;IAC3D,MAAM,EAAE,OAAO,CAAC;IAChB,yDAAyD;IACzD,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,sEAAsE;IACtE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,YAAY,C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C1J,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,mGAAmG;IACnG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,0LAA0L;IAC1L,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,wPAAwP;IACxP,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,8JAA8J;IAC9J,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,wFAAwF;IACxF,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uHAAuH;IACvH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -52,6 +52,8 @@ export interface AttachmentGroupProps {
52
52
  * `onAttachmentClick` once per downloadable attachment when omitted.
53
53
  */
54
54
  onDownloadAll?: (attachments: DisplayAttachment[]) => void;
55
+ /** Whether an attachment can be downloaded; `false` hides its tile's download button and leaves it out of "download all". Defaults to every attachment being downloadable. */
56
+ isAttachmentDownloadable?: (attachment: DisplayAttachment) => boolean;
55
57
  /** Called when the user retries a failed upload. */
56
58
  onRetry?: (id: string) => void;
57
59
  /** Localised accessible labels for the group region, its actions, and the non-extension attachment type names (prompt/pasted/image), forwarded to each tile. */
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-group.d.ts","sourceRoot":"","sources":["../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AAqB,CAAC;IAC/B,iDAAiD;IACjD,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,sEAAsE;IACtE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,mGAAmG;IACnG,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAC3D,8KAA8K;IAC9K,wBAAwB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,OAAO,CAAC;IACtE,oDAAoD;IACpD,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gKAAgK;IAChK,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,qCAAqC;IACrC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,kHAAkH;IAClH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-attachment-input",
3
3
  "description": "File attachment input components with upload validation, drag-and-drop, and progress tracking",
4
- "version": "1.3.0-dev.37",
4
+ "version": "1.3.0-dev.371",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,12 +17,12 @@
17
17
  }
18
18
  },
19
19
  "dependencies": {
20
- "@tabler/icons-react": "^3.44.0"
20
+ "@tabler/icons-react": "^3.50.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@epam/ai-dial-chat-shared": "1.3.0-dev.37",
23
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.371",
24
24
  "react": "^19.2.8",
25
- "@epam/ai-dial-ui-kit": "^0.15.3"
25
+ "@epam/ai-dial-ui-kit": "^0.16.0"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",