@epam/ai-dial-attachment-input 1.2.5 → 1.3.0-dev.102
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/constants/attachment-group.d.ts +1 -1
- package/constants/attachment-group.d.ts.map +1 -1
- package/index.css +3 -2
- package/index.js +17 -17
- package/package.json +3 -3
|
@@ -3,5 +3,5 @@ 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
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-
|
|
6
|
+
export declare const ATTACHMENT_TILE_FOCUS_RING_CLASS = "outline-offset-1 focus-visible:outline-1";
|
|
7
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
|
-
.
|
|
2
|
-
/*$vite$:1
|
|
1
|
+
._tile_23kve_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_23kve_12._hovered_23kve_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_23kve_12{outline-color:var(--ai-tile-focus-outline,var(--stroke-focus,#161b2d))}._selected_23kve_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_23kve_33{background:var(--ai-tile-bg-error,var(--bg-error,#f3d6d8));border-color:var(--ai-tile-border-error,var(--stroke-error,#ae2f2f))}._nameText_23kve_38{color:var(--ai-tile-name-text,var(--text-primary,#161b2d))}._typeText_23kve_42{color:var(--ai-tile-type-text,var(--text-primary,#161b2d))}._placeholderIcon_23kve_46{color:var(--ai-tile-placeholder-icon,var(--text-secondary,#57647a))}._retryIcon_23kve_50{color:var(--ai-tile-error-text,var(--text-error,#ae2f2f))}._track_23kve_54{background:var(--ai-tile-progress-track,var(--bg-backdrop,#161b2d4d))}._tile_23kve_12 ._actionButton_23kve_65{background:var(--ai-tile-hover-icon-bg,var(--ai-tile-bg,var(--bg-layer-raised,#fcfcfc)))}._tile_23kve_12._hovered_23kve_18:hover ._actionButton_23kve_65{background:var(--ai-tile-hover-icon-bg,var(--ai-tile-bg-hover,var(--bg-control-neutral-hover-muted,#e0e6f0)))}._tile_23kve_12._selected_23kve_28 ._actionButton_23kve_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_23kve_12._tileError_23kve_33 ._actionButton_23kve_65{background:var(--ai-tile-bg-error,var(--bg-error,#f3d6d8));color:var(--ai-tile-error-text,var(--text-error,#ae2f2f))}._tile_23kve_12._loading_23kve_86 ._actionButton_23kve_65,._tile_23kve_12 ._imageActionButton_23kve_87,._tile_23kve_12._selected_23kve_28 ._imageActionButton_23kve_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_23kve_12._proxyFocus_23kve_96:has(:focus-visible){outline-width:1px;outline-style:solid}._tile_23kve_12._proxyFocus_23kve_96 ._actionButton_23kve_65:focus-visible{outline:none}._loading_23kve_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}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.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{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
|
@@ -113,7 +113,7 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
|
|
|
113
113
|
BottomIcon: d ? null : Ce(e),
|
|
114
114
|
typeLabel: d ? null : De(e, n)
|
|
115
115
|
};
|
|
116
|
-
}, Oe = 5, ke = "flex size-[100px] items-center justify-center rounded-xl border", Ae = "outline-
|
|
116
|
+
}, Oe = 5, ke = "flex size-[100px] items-center justify-center rounded-xl border", Ae = "outline-offset-1 focus-visible:outline-1", Y = {
|
|
117
117
|
tray: "dial-ai-attachment-tray",
|
|
118
118
|
trayItem: "dial-ai-attachment-tray-item",
|
|
119
119
|
tile: "dial-ai-attachment-tile",
|
|
@@ -122,19 +122,19 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
|
|
|
122
122
|
tileType: "dial-ai-attachment-tile-type",
|
|
123
123
|
tileAction: "dial-ai-attachment-tile-action"
|
|
124
124
|
}, X = {
|
|
125
|
-
tile: "
|
|
126
|
-
hovered: "
|
|
127
|
-
selected: "
|
|
128
|
-
tileError: "
|
|
129
|
-
nameText: "
|
|
130
|
-
typeText: "
|
|
131
|
-
placeholderIcon: "
|
|
132
|
-
retryIcon: "
|
|
133
|
-
track: "
|
|
134
|
-
actionButton: "
|
|
135
|
-
loading: "
|
|
136
|
-
imageActionButton: "
|
|
137
|
-
proxyFocus: "
|
|
125
|
+
tile: "_tile_23kve_12",
|
|
126
|
+
hovered: "_hovered_23kve_18",
|
|
127
|
+
selected: "_selected_23kve_28",
|
|
128
|
+
tileError: "_tileError_23kve_33",
|
|
129
|
+
nameText: "_nameText_23kve_38",
|
|
130
|
+
typeText: "_typeText_23kve_42",
|
|
131
|
+
placeholderIcon: "_placeholderIcon_23kve_46",
|
|
132
|
+
retryIcon: "_retryIcon_23kve_50",
|
|
133
|
+
track: "_track_23kve_54",
|
|
134
|
+
actionButton: "_actionButton_23kve_65",
|
|
135
|
+
loading: "_loading_23kve_86",
|
|
136
|
+
imageActionButton: "_imageActionButton_23kve_87",
|
|
137
|
+
proxyFocus: "_proxyFocus_23kve_96"
|
|
138
138
|
}, Z = ({ ariaLabel: e, errorTitle: t, errorDescId: n, onClick: r, id: i, icon: a, className: s, isAlwaysVisible: c }) => /* @__PURE__ */ G(he, {
|
|
139
139
|
icon: a,
|
|
140
140
|
size: W.Small,
|
|
@@ -226,7 +226,7 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
|
|
|
226
226
|
children: /* @__PURE__ */ G(me, { size: 32 })
|
|
227
227
|
}),
|
|
228
228
|
/* @__PURE__ */ K("div", {
|
|
229
|
-
className: "absolute
|
|
229
|
+
className: "absolute inset-e-1 top-1 flex",
|
|
230
230
|
children: [
|
|
231
231
|
ne && /* @__PURE__ */ G(Me, {
|
|
232
232
|
ariaLabel: x,
|
|
@@ -318,7 +318,7 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
|
|
|
318
318
|
className: "relative h-full w-full overflow-hidden",
|
|
319
319
|
children: [
|
|
320
320
|
/* @__PURE__ */ K("div", {
|
|
321
|
-
className: "absolute
|
|
321
|
+
className: "absolute inset-e-1 top-1 z-10 flex",
|
|
322
322
|
children: [a && /* @__PURE__ */ G(Pe, {
|
|
323
323
|
ariaLabel: m,
|
|
324
324
|
onClick: a,
|
|
@@ -449,7 +449,7 @@ var q = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, _e = (e) =
|
|
|
449
449
|
role: "group",
|
|
450
450
|
"aria-label": d,
|
|
451
451
|
style: E,
|
|
452
|
-
className: o("flex flex-col gap-2", A ? "w-full
|
|
452
|
+
className: o("flex flex-col gap-2", A ? "w-full max-w-[532px] min-w-0" : "max-w-[424px]", Ve.container, T),
|
|
453
453
|
children: [/* @__PURE__ */ K("div", {
|
|
454
454
|
className: "flex items-center justify-between",
|
|
455
455
|
children: [/* @__PURE__ */ K("div", {
|
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.
|
|
4
|
+
"version": "1.3.0-dev.102",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@tabler/icons-react": "^3.44.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@epam/ai-dial-chat-shared": "1.
|
|
23
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.102",
|
|
24
24
|
"react": "^19.2.8",
|
|
25
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
25
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.16"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|