@fluentui-copilot/react-attachments 0.12.5 → 0.13.1
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/CHANGELOG.json +24 -1
- package/CHANGELOG.md +15 -2
- package/dist/index.d.ts +0 -151
- package/lib/components/AgentTag/useAgentTagStyles.styles.js +4 -4
- package/lib/components/AgentTag/useAgentTagStyles.styles.js.map +1 -1
- package/lib/components/index.js +0 -3
- package/lib/components/index.js.map +1 -1
- package/lib/index.js +0 -3
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.js +2 -2
- package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.js.map +1 -1
- package/lib-commonjs/components/index.js +0 -60
- package/lib-commonjs/components/index.js.map +1 -1
- package/lib-commonjs/index.js +0 -48
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/AttachmentTag.js +0 -2
- package/lib/AttachmentTag.js.map +0 -1
- package/lib/AttachmentTagItem.js +0 -2
- package/lib/AttachmentTagItem.js.map +0 -1
- package/lib/AttachmentTagList.js +0 -2
- package/lib/AttachmentTagList.js.map +0 -1
- package/lib/components/AttachmentTag/AttachmentTag.js +0 -17
- package/lib/components/AttachmentTag/AttachmentTag.js.map +0 -1
- package/lib/components/AttachmentTag/AttachmentTag.types.js +0 -4
- package/lib/components/AttachmentTag/AttachmentTag.types.js.map +0 -1
- package/lib/components/AttachmentTag/index.js +0 -5
- package/lib/components/AttachmentTag/index.js.map +0 -1
- package/lib/components/AttachmentTag/renderAttachmentTag.js +0 -12
- package/lib/components/AttachmentTag/renderAttachmentTag.js.map +0 -1
- package/lib/components/AttachmentTag/useAttachmentTag.js +0 -21
- package/lib/components/AttachmentTag/useAttachmentTag.js.map +0 -1
- package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.js +0 -45
- package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.js.map +0 -1
- package/lib/components/AttachmentTagItem/AttachmentTagItem.js +0 -15
- package/lib/components/AttachmentTagItem/AttachmentTagItem.js.map +0 -1
- package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js +0 -4
- package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js.map +0 -1
- package/lib/components/AttachmentTagItem/index.js +0 -5
- package/lib/components/AttachmentTagItem/index.js.map +0 -1
- package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js +0 -12
- package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js.map +0 -1
- package/lib/components/AttachmentTagItem/useAttachmentTagItem.js +0 -21
- package/lib/components/AttachmentTagItem/useAttachmentTagItem.js.map +0 -1
- package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.js +0 -32
- package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.js.map +0 -1
- package/lib/components/AttachmentTagList/AttachmentTagList.js +0 -19
- package/lib/components/AttachmentTagList/AttachmentTagList.js.map +0 -1
- package/lib/components/AttachmentTagList/AttachmentTagList.types.js +0 -2
- package/lib/components/AttachmentTagList/AttachmentTagList.types.js.map +0 -1
- package/lib/components/AttachmentTagList/index.js +0 -5
- package/lib/components/AttachmentTagList/index.js.map +0 -1
- package/lib/components/AttachmentTagList/renderAttachmentTagList.js +0 -14
- package/lib/components/AttachmentTagList/renderAttachmentTagList.js.map +0 -1
- package/lib/components/AttachmentTagList/useAttachmentTagList.js +0 -35
- package/lib/components/AttachmentTagList/useAttachmentTagList.js.map +0 -1
- package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js +0 -13
- package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +0 -1
- package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.js +0 -17
- package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.js.map +0 -1
- package/lib/components/utils/useAttachmentTagSlots.js +0 -62
- package/lib/components/utils/useAttachmentTagSlots.js.map +0 -1
- package/lib/contexts/attachmentTagListContext.js +0 -8
- package/lib/contexts/attachmentTagListContext.js.map +0 -1
- package/lib-commonjs/AttachmentTag.js +0 -41
- package/lib-commonjs/AttachmentTag.js.map +0 -1
- package/lib-commonjs/AttachmentTagItem.js +0 -29
- package/lib-commonjs/AttachmentTagItem.js.map +0 -1
- package/lib-commonjs/AttachmentTagList.js +0 -29
- package/lib-commonjs/AttachmentTagList.js.map +0 -1
- package/lib-commonjs/components/AttachmentTag/AttachmentTag.js +0 -23
- package/lib-commonjs/components/AttachmentTag/AttachmentTag.js.map +0 -1
- package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js +0 -7
- package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js.map +0 -1
- package/lib-commonjs/components/AttachmentTag/index.js +0 -44
- package/lib-commonjs/components/AttachmentTag/index.js.map +0 -1
- package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js +0 -22
- package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js.map +0 -1
- package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js +0 -21
- package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js.map +0 -1
- package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.js +0 -78
- package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js +0 -21
- package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js +0 -7
- package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagItem/index.js +0 -32
- package/lib-commonjs/components/AttachmentTagItem/index.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js +0 -22
- package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js +0 -21
- package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.js +0 -45
- package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js +0 -25
- package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js +0 -5
- package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagList/index.js +0 -32
- package/lib-commonjs/components/AttachmentTagList/index.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js +0 -20
- package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js +0 -33
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js +0 -20
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +0 -1
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.js +0 -31
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.js.map +0 -1
- package/lib-commonjs/components/utils/useAttachmentTagSlots.js +0 -62
- package/lib-commonjs/components/utils/useAttachmentTagSlots.js.map +0 -1
- package/lib-commonjs/contexts/attachmentTagListContext.js +0 -28
- package/lib-commonjs/contexts/attachmentTagListContext.js.map +0 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,30 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-attachments",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 12 Jun 2025 17:50:57 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-attachments_v0.13.0",
|
|
7
|
+
"version": "0.13.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "jiangemma@microsoft.com",
|
|
12
|
+
"package": "@fluentui-copilot/react-attachments",
|
|
13
|
+
"commit": "8bbf3c6d14a6578c0ec5e7d5d6ab952ab1f8ef6d",
|
|
14
|
+
"comment": "chore: Remove deprecated AttachmentTag, AttachmentTagItem, AttachmentTagList components."
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"patch": [
|
|
18
|
+
{
|
|
19
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
20
|
+
"package": "@fluentui-copilot/react-attachments",
|
|
21
|
+
"commit": "53a6e5419e6170dea520ebec933d347ce0bedb60",
|
|
22
|
+
"comment": "chore: Update typographyStyles import to use @fluentui-copilot/tokens instead of @fluentui/react-components"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"date": "Wed, 28 May 2025 16:45:32 GMT",
|
|
6
29
|
"tag": "@fluentui-copilot/react-attachments_v0.12.5",
|
|
7
30
|
"version": "0.12.5",
|
|
8
31
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-attachments
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 12 Jun 2025 17:50:57 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [0.13.0](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-attachments_v0.13.0)
|
|
8
|
+
|
|
9
|
+
Thu, 12 Jun 2025 17:50:57 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-attachments_v0.12.5..@fluentui-copilot/react-attachments_v0.13.0)
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- chore: Remove deprecated AttachmentTag, AttachmentTagItem, AttachmentTagList components. ([PR #3072](https://github.com/microsoft/fluentai/pull/3072) by jiangemma@microsoft.com)
|
|
15
|
+
|
|
16
|
+
### Patches
|
|
17
|
+
|
|
18
|
+
- chore: Update typographyStyles import to use @fluentui-copilot/tokens instead of @fluentui/react-components ([PR #3125](https://github.com/microsoft/fluentai/pull/3125) by Humberto.Morimoto@microsoft.com)
|
|
19
|
+
|
|
7
20
|
## [0.12.5](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-attachments_v0.12.5)
|
|
8
21
|
|
|
9
|
-
Wed, 28 May 2025 16:45:
|
|
22
|
+
Wed, 28 May 2025 16:45:32 GMT
|
|
10
23
|
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-attachments_v0.12.4..@fluentui-copilot/react-attachments_v0.12.5)
|
|
11
24
|
|
|
12
25
|
### Patches
|
package/dist/index.d.ts
CHANGED
|
@@ -248,94 +248,6 @@ export declare type AttachmentState = ComponentState<AttachmentSlots> & Required
|
|
|
248
248
|
shouldUseOverflow: boolean;
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
-
/**
|
|
252
|
-
* @deprecated use new Attachment component exported from \@fluentui-copilot/react-attachments package instead.
|
|
253
|
-
* Deprecated on 4/9/2024.
|
|
254
|
-
*/
|
|
255
|
-
export declare const AttachmentTag: ForwardRefComponent<AttachmentTagProps>;
|
|
256
|
-
|
|
257
|
-
export declare const attachmentTagClassNames: SlotClassNames<AttachmentTagSlots>;
|
|
258
|
-
|
|
259
|
-
export declare type AttachmentTagDismissedData = {
|
|
260
|
-
content?: AttachmentTagProps['children'];
|
|
261
|
-
media?: AttachmentTagProps['media'];
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* @deprecated use new AttachmentOverflowMenuItem component exported from \@fluentui-copilot/react-attachments package instead.
|
|
266
|
-
* Deprecated on 4/9/2024.
|
|
267
|
-
*/
|
|
268
|
-
export declare const AttachmentTagItem: ForwardRefComponent<AttachmentTagItemProps>;
|
|
269
|
-
|
|
270
|
-
export declare const attachmentTagItemClassNames: SlotClassNames<AttachmentTagItemSlots>;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* AttachmentTagItem Props
|
|
274
|
-
*/
|
|
275
|
-
export declare type AttachmentTagItemProps = ComponentProps<Partial<AttachmentTagItemSlots>>;
|
|
276
|
-
|
|
277
|
-
export declare type AttachmentTagItemSlots = {
|
|
278
|
-
root: NonNullable<Slot<'div'>>;
|
|
279
|
-
media?: Slot<'span'>;
|
|
280
|
-
content: NonNullable<Slot<'span'>>;
|
|
281
|
-
icon: NonNullable<Slot<'span'>>;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* State used in rendering AttachmentTagItem
|
|
286
|
-
*/
|
|
287
|
-
export declare type AttachmentTagItemState = ComponentState<AttachmentTagItemSlots>;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* @deprecated use new AttachmentList component exported from \@fluentui-copilot/react-attachments package instead.
|
|
291
|
-
* Deprecated on 4/9/2024.
|
|
292
|
-
*/
|
|
293
|
-
export declare const AttachmentTagList: ForwardRefComponent<AttachmentTagListProps>;
|
|
294
|
-
|
|
295
|
-
export declare const attachmentTagListClassNames: SlotClassNames<AttachmentTagListSlots>;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Context shared between AttachmentTagList and its children components
|
|
299
|
-
*/
|
|
300
|
-
declare type AttachmentTagListContextValue = Pick<AttachmentTagListProps, 'onAttachmentTagDismiss'>;
|
|
301
|
-
|
|
302
|
-
declare type AttachmentTagListContextValues = {
|
|
303
|
-
tagList: AttachmentTagListContextValue;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* AttachmentTagList Props
|
|
308
|
-
*/
|
|
309
|
-
export declare type AttachmentTagListProps = ComponentProps<AttachmentTagListSlots> & {
|
|
310
|
-
onAttachmentTagDismiss?: (e: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>, data: AttachmentTagDismissedData) => void;
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
export declare type AttachmentTagListSlots = {
|
|
314
|
-
root: Slot<'div'>;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* State used in rendering AttachmentTagList
|
|
319
|
-
*/
|
|
320
|
-
export declare type AttachmentTagListState = ComponentState<AttachmentTagListSlots> & Pick<AttachmentTagListProps, 'onAttachmentTagDismiss'>;
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* AttachmentTag Props
|
|
324
|
-
*/
|
|
325
|
-
export declare type AttachmentTagProps = ComponentProps<Partial<AttachmentTagSlots>>;
|
|
326
|
-
|
|
327
|
-
export declare type AttachmentTagSlots = {
|
|
328
|
-
root: NonNullable<Slot<'button'>>;
|
|
329
|
-
media?: Slot<'span'>;
|
|
330
|
-
content: NonNullable<Slot<'span'>>;
|
|
331
|
-
icon: NonNullable<Slot<'span'>>;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* State used in rendering AttachmentTag
|
|
336
|
-
*/
|
|
337
|
-
export declare type AttachmentTagState = ComponentState<AttachmentTagSlots>;
|
|
338
|
-
|
|
339
251
|
/**
|
|
340
252
|
* Render the final JSX of AgentTag
|
|
341
253
|
*/
|
|
@@ -369,21 +281,6 @@ export declare const renderAttachmentOverflowMenuButton_unstable: (state: Attach
|
|
|
369
281
|
*/
|
|
370
282
|
export declare const renderAttachmentOverflowMenuItem_unstable: (state: AttachmentOverflowMenuItemState) => JSX.Element | null;
|
|
371
283
|
|
|
372
|
-
/**
|
|
373
|
-
* Render the final JSX of AttachmentTag
|
|
374
|
-
*/
|
|
375
|
-
export declare const renderAttachmentTag_unstable: (state: AttachmentTagState) => JSX.Element;
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Render the final JSX of AttachmentTagItem
|
|
379
|
-
*/
|
|
380
|
-
export declare const renderAttachmentTagItem_unstable: (state: AttachmentTagItemState) => JSX.Element;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Render the final JSX of AttachmentTagList
|
|
384
|
-
*/
|
|
385
|
-
export declare const renderAttachmentTagList_unstable: (state: AttachmentTagListState, contextValues: AttachmentTagListContextValues) => JSX.Element;
|
|
386
|
-
|
|
387
284
|
/**
|
|
388
285
|
* Create the state required to render AgentTag.
|
|
389
286
|
*
|
|
@@ -478,52 +375,4 @@ export declare const useAttachmentOverflowMenuItemStyles_unstable: (state: Attac
|
|
|
478
375
|
*/
|
|
479
376
|
export declare const useAttachmentStyles_unstable: (state: AttachmentState) => AttachmentState;
|
|
480
377
|
|
|
481
|
-
/**
|
|
482
|
-
* Create the state required to render AttachmentTag.
|
|
483
|
-
*
|
|
484
|
-
* The returned state can be modified with hooks such as useAttachmentTagStyles_unstable,
|
|
485
|
-
* before being passed to renderAttachmentTag_unstable.
|
|
486
|
-
*
|
|
487
|
-
* @param props - props from this instance of AttachmentTag
|
|
488
|
-
* @param ref - reference to root HTMLElement of AttachmentTag
|
|
489
|
-
*/
|
|
490
|
-
export declare const useAttachmentTag_unstable: (props: AttachmentTagProps, ref: React_2.Ref<HTMLButtonElement>) => AttachmentTagState;
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* Create the state required to render AttachmentTagItem.
|
|
494
|
-
*
|
|
495
|
-
* The returned state can be modified with hooks such as useAttachmentTagItemStyles_unstable,
|
|
496
|
-
* before being passed to renderAttachmentTagItem_unstable.
|
|
497
|
-
*
|
|
498
|
-
* @param props - props from this instance of AttachmentTagItem
|
|
499
|
-
* @param ref - reference to root HTMLElement of AttachmentTagItem
|
|
500
|
-
*/
|
|
501
|
-
export declare const useAttachmentTagItem_unstable: (props: AttachmentTagItemProps, ref: React_2.Ref<HTMLDivElement>) => AttachmentTagItemState;
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* Apply styling to the AttachmentTagItem slots based on the state
|
|
505
|
-
*/
|
|
506
|
-
export declare const useAttachmentTagItemStyles_unstable: (state: AttachmentTagItemState) => AttachmentTagItemState;
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* Create the state required to render AttachmentTagList.
|
|
510
|
-
*
|
|
511
|
-
* The returned state can be modified with hooks such as useAttachmentTagListStyles_unstable,
|
|
512
|
-
* before being passed to renderAttachmentTagList_unstable.
|
|
513
|
-
*
|
|
514
|
-
* @param props - props from this instance of AttachmentTagList
|
|
515
|
-
* @param ref - reference to root HTMLElement of AttachmentTagList
|
|
516
|
-
*/
|
|
517
|
-
export declare const useAttachmentTagList_unstable: (props: AttachmentTagListProps, ref: React_2.Ref<HTMLDivElement>) => AttachmentTagListState;
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* Apply styling to the AttachmentTagList slots based on the state
|
|
521
|
-
*/
|
|
522
|
-
export declare const useAttachmentTagListStyles_unstable: (state: AttachmentTagListState) => AttachmentTagListState;
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* Apply styling to the AttachmentTag slots based on the state
|
|
526
|
-
*/
|
|
527
|
-
export declare const useAttachmentTagStyles_unstable: (state: AttachmentTagState) => AttachmentTagState;
|
|
528
|
-
|
|
529
378
|
export { }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __styles, mergeClasses
|
|
1
|
+
import { __styles, mergeClasses } from '@fluentui/react-components';
|
|
2
2
|
import { useAttachmentStyles_unstable } from '..';
|
|
3
|
-
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
|
+
import { tokens, typographyStyles } from '@fluentui-copilot/tokens';
|
|
4
4
|
export const agentTagClassNames = {
|
|
5
5
|
root: 'fai-AgentTag',
|
|
6
6
|
primaryAction: 'fai-AgentTag__primaryAction',
|
|
@@ -27,7 +27,7 @@ const useContentStyles = __styles({
|
|
|
27
27
|
Bahqtrf: "fk6fouc",
|
|
28
28
|
Be2twd7: "fod5ikn",
|
|
29
29
|
Bhrd7zp: "fl43uef",
|
|
30
|
-
Bg96gwp: "
|
|
30
|
+
Bg96gwp: "f1anucx2",
|
|
31
31
|
sj55zd: "fkfq4zb"
|
|
32
32
|
},
|
|
33
33
|
sidecar: {
|
|
@@ -38,7 +38,7 @@ const useContentStyles = __styles({
|
|
|
38
38
|
sj55zd: "fkfq4zb"
|
|
39
39
|
}
|
|
40
40
|
}, {
|
|
41
|
-
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".
|
|
41
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1anucx2{line-height:var(--lineHeightBase450);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
|
|
42
42
|
});
|
|
43
43
|
const useDismissButtonStyles = __styles({
|
|
44
44
|
canvas: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAgentTagStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses
|
|
1
|
+
{"version":3,"sources":["useAgentTagStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-components';\nimport type { AgentTagSlots, AgentTagState } from './AgentTag.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\nimport { useAttachmentStyles_unstable } from '..';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\n\nexport const agentTagClassNames: SlotClassNames<AgentTagSlots> = {\n root: 'fai-AgentTag',\n primaryAction: 'fai-AgentTag__primaryAction',\n dismissIcon: 'fai-AgentTag__dismissIcon',\n dismissButton: 'fai-AgentTag__dismissButton',\n media: 'fai-AgentTag__media',\n content: 'fai-AgentTag__content',\n progress: 'fai-AgentTag__progress',\n};\n\nconst useMediaStyles = makeStyles({\n canvas: {\n width: '24px',\n height: '24px',\n },\n sidecar: { width: '20px', height: '20px' },\n});\n\nconst useContentStyles = makeStyles({\n canvas: {\n ...typographyStyles.subtitle2,\n color: tokens.colorNeutralForeground2,\n },\n sidecar: {\n ...typographyStyles.body1Strong,\n color: tokens.colorNeutralForeground2,\n },\n});\n\nconst useDismissButtonStyles = makeStyles({\n canvas: {\n borderRadius: tokens.borderRadius2XL,\n paddingLeft: tokens.spacingHorizontalL,\n paddingRight: tokens.spacingHorizontalM,\n },\n sidecar: {\n paddingLeft: tokens.spacingHorizontalM,\n paddingRight: tokens.spacingHorizontalS,\n borderRadius: tokens.borderRadiusXLarge,\n },\n});\n\n/**\n * Apply styling to the AgentTag slots based on the state\n */\nexport const useAgentTagStyles_unstable = (state: AgentTagState): AgentTagState => {\n 'use no memo';\n\n const { mode } = state;\n\n const contentStyles = useContentStyles();\n const dismissButtonStyles = useDismissButtonStyles();\n const mediaStyles = useMediaStyles();\n\n state.root.className = mergeClasses(agentTagClassNames.root, state.root.className);\n\n state.primaryAction.className = mergeClasses(agentTagClassNames.primaryAction, state.primaryAction.className);\n\n state.dismissIcon.className = mergeClasses(agentTagClassNames.dismissIcon, state.dismissIcon.className);\n\n state.dismissButton.className = mergeClasses(\n agentTagClassNames.dismissButton,\n dismissButtonStyles[mode],\n state.dismissButton.className,\n );\n\n if (state.media) {\n state.media.className = mergeClasses(agentTagClassNames.media, mediaStyles[mode], state.media.className);\n }\n\n state.content.className = mergeClasses(agentTagClassNames.content, contentStyles[mode], state.content.className);\n\n if (state.progress) {\n state.progress.className = mergeClasses(agentTagClassNames.progress, state.progress.className);\n }\n\n useAttachmentStyles_unstable(state);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","useAttachmentStyles_unstable","tokens","typographyStyles","agentTagClassNames","root","primaryAction","dismissIcon","dismissButton","media","content","progress","useMediaStyles","canvas","width","height","sidecar","useContentStyles","subtitle2","color","colorNeutralForeground2","body1Strong","useDismissButtonStyles","borderRadius","borderRadius2XL","paddingLeft","spacingHorizontalL","paddingRight","spacingHorizontalM","spacingHorizontalS","borderRadiusXLarge","useAgentTagStyles_unstable","state","mode","contentStyles","dismissButtonStyles","mediaStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,6BAA6B;AAGtE,SAASC,4BAA4B,QAAQ,KAAK;AAClD,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,2BAA2B;AAEpE,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC,eAAe;IACfC,OAAO;IACPC,SAAS;IACTC,UAAU;AACZ,EAAE;AAEF,MAAMC,iBAAiBb,WAAW;IAChCc,QAAQ;QACNC,OAAO;QACPC,QAAQ;IACV;IACAC,SAAS;QAAEF,OAAO;QAAQC,QAAQ;IAAO;AAC3C;AAEA,MAAME,mBAAmBlB,WAAW;IAClCc,QAAQ;QACN,GAAGV,iBAAiBe,SAAS;QAC7BC,OAAOjB,OAAOkB,uBAAuB;IACvC;IACAJ,SAAS;QACP,GAAGb,iBAAiBkB,WAAW;QAC/BF,OAAOjB,OAAOkB,uBAAuB;IACvC;AACF;AAEA,MAAME,yBAAyBvB,WAAW;IACxCc,QAAQ;QACNU,cAAcrB,OAAOsB,eAAe;QACpCC,aAAavB,OAAOwB,kBAAkB;QACtCC,cAAczB,OAAO0B,kBAAkB;IACzC;IACAZ,SAAS;QACPS,aAAavB,OAAO0B,kBAAkB;QACtCD,cAAczB,OAAO2B,kBAAkB;QACvCN,cAAcrB,OAAO4B,kBAAkB;IACzC;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,6BAA6B,CAACC;IACzC;IAEA,MAAM,EAAEC,IAAI,EAAE,GAAGD;IAEjB,MAAME,gBAAgBjB;IACtB,MAAMkB,sBAAsBb;IAC5B,MAAMc,cAAcxB;IAEpBoB,MAAM3B,IAAI,CAACgC,SAAS,GAAGrC,aAAaI,mBAAmBC,IAAI,EAAE2B,MAAM3B,IAAI,CAACgC,SAAS;IAEjFL,MAAM1B,aAAa,CAAC+B,SAAS,GAAGrC,aAAaI,mBAAmBE,aAAa,EAAE0B,MAAM1B,aAAa,CAAC+B,SAAS;IAE5GL,MAAMzB,WAAW,CAAC8B,SAAS,GAAGrC,aAAaI,mBAAmBG,WAAW,EAAEyB,MAAMzB,WAAW,CAAC8B,SAAS;IAEtGL,MAAMxB,aAAa,CAAC6B,SAAS,GAAGrC,aAC9BI,mBAAmBI,aAAa,EAChC2B,mBAAmB,CAACF,KAAK,EACzBD,MAAMxB,aAAa,CAAC6B,SAAS;IAG/B,IAAIL,MAAMvB,KAAK,EAAE;QACfuB,MAAMvB,KAAK,CAAC4B,SAAS,GAAGrC,aAAaI,mBAAmBK,KAAK,EAAE2B,WAAW,CAACH,KAAK,EAAED,MAAMvB,KAAK,CAAC4B,SAAS;IACzG;IAEAL,MAAMtB,OAAO,CAAC2B,SAAS,GAAGrC,aAAaI,mBAAmBM,OAAO,EAAEwB,aAAa,CAACD,KAAK,EAAED,MAAMtB,OAAO,CAAC2B,SAAS;IAE/G,IAAIL,MAAMrB,QAAQ,EAAE;QAClBqB,MAAMrB,QAAQ,CAAC0B,SAAS,GAAGrC,aAAaI,mBAAmBO,QAAQ,EAAEqB,MAAMrB,QAAQ,CAAC0B,SAAS;IAC/F;IAEApC,6BAA6B+B;IAE7B,OAAOA;AACT,EAAE"}
|
package/lib/components/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export { ATTACHMENTTAG_MAXWIDTH, AttachmentTag, attachmentTagClassNames, renderAttachmentTag_unstable, useAttachmentTagStyles_unstable, useAttachmentTag_unstable, useContentBaseClassName, useIconBaseClassName, useMediaBaseClassName } from './AttachmentTag';
|
|
2
|
-
export { AttachmentTagList, attachmentTagListClassNames, renderAttachmentTagList_unstable, useAttachmentTagListStyles_unstable, useAttachmentTagList_unstable } from './AttachmentTagList';
|
|
3
|
-
export { AttachmentTagItem, attachmentTagItemClassNames, renderAttachmentTagItem_unstable, useAttachmentTagItemStyles_unstable, useAttachmentTagItem_unstable } from './AttachmentTagItem';
|
|
4
1
|
export { Attachment, attachmentClassNames, renderAttachment_unstable, useAttachmentStyles_unstable, useAttachment_unstable, useOverflowStyles } from './Attachment';
|
|
5
2
|
export { AttachmentList, attachmentListClassNames, renderAttachmentList_unstable, useAttachmentListStyles_unstable, useAttachmentList_unstable } from './AttachmentList';
|
|
6
3
|
export { AttachmentOverflowMenu, renderAttachmentOverflowMenu_unstable, useAttachmentOverflowMenuContextValues_unstable, useAttachmentOverflowMenu_unstable } from './AttachmentOverflowMenu';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export type {
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export type { AttachmentProps, AttachmentSlots, AttachmentState } from './Attachment';\nexport {\n Attachment,\n attachmentClassNames,\n renderAttachment_unstable,\n useAttachmentStyles_unstable,\n useAttachment_unstable,\n useOverflowStyles,\n} from './Attachment';\nexport type {\n AttachmentDismissedData,\n AttachmentListContextValues,\n AttachmentListProps,\n AttachmentListSlots,\n AttachmentListState,\n} from './AttachmentList';\nexport {\n AttachmentList,\n attachmentListClassNames,\n renderAttachmentList_unstable,\n useAttachmentListStyles_unstable,\n useAttachmentList_unstable,\n} from './AttachmentList';\nexport type {\n AttachmentOverflowMenuContextValues,\n AttachmentOverflowMenuProps,\n AttachmentOverflowMenuSlots,\n AttachmentOverflowMenuState,\n} from './AttachmentOverflowMenu';\nexport {\n AttachmentOverflowMenu,\n renderAttachmentOverflowMenu_unstable,\n useAttachmentOverflowMenuContextValues_unstable,\n useAttachmentOverflowMenu_unstable,\n} from './AttachmentOverflowMenu';\nexport type {\n AttachmentOverflowMenuButtonProps,\n AttachmentOverflowMenuButtonSlots,\n AttachmentOverflowMenuButtonState,\n} from './AttachmentOverflowMenuButton';\nexport {\n AttachmentOverflowMenuButton,\n attachmentOverflowMenuButtonClassNames,\n renderAttachmentOverflowMenuButton_unstable,\n useAttachmentOverflowMenuButtonStyles_unstable,\n useAttachmentOverflowMenuButton_unstable,\n} from './AttachmentOverflowMenuButton';\nexport type {\n AttachmentOverflowMenuItemProps,\n AttachmentOverflowMenuItemSlots,\n AttachmentOverflowMenuItemState,\n} from './AttachmentOverflowMenuItem';\nexport {\n AttachmentOverflowMenuItem,\n attachmentOverflowMenuItemClassNames,\n renderAttachmentOverflowMenuItem_unstable,\n useAttachmentOverflowMenuItemStyles_unstable,\n useAttachmentOverflowMenuItem_unstable,\n} from './AttachmentOverflowMenuItem';\n"],"names":["Attachment","attachmentClassNames","renderAttachment_unstable","useAttachmentStyles_unstable","useAttachment_unstable","useOverflowStyles","AttachmentList","attachmentListClassNames","renderAttachmentList_unstable","useAttachmentListStyles_unstable","useAttachmentList_unstable","AttachmentOverflowMenu","renderAttachmentOverflowMenu_unstable","useAttachmentOverflowMenuContextValues_unstable","useAttachmentOverflowMenu_unstable","AttachmentOverflowMenuButton","attachmentOverflowMenuButtonClassNames","renderAttachmentOverflowMenuButton_unstable","useAttachmentOverflowMenuButtonStyles_unstable","useAttachmentOverflowMenuButton_unstable","AttachmentOverflowMenuItem","attachmentOverflowMenuItemClassNames","renderAttachmentOverflowMenuItem_unstable","useAttachmentOverflowMenuItemStyles_unstable","useAttachmentOverflowMenuItem_unstable"],"rangeMappings":";;;;","mappings":"AACA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,iBAAiB,QACZ,eAAe;AAQtB,SACEC,cAAc,EACdC,wBAAwB,EACxBC,6BAA6B,EAC7BC,gCAAgC,EAChCC,0BAA0B,QACrB,mBAAmB;AAO1B,SACEC,sBAAsB,EACtBC,qCAAqC,EACrCC,+CAA+C,EAC/CC,kCAAkC,QAC7B,2BAA2B;AAMlC,SACEC,4BAA4B,EAC5BC,sCAAsC,EACtCC,2CAA2C,EAC3CC,8CAA8C,EAC9CC,wCAAwC,QACnC,iCAAiC;AAMxC,SACEC,0BAA0B,EAC1BC,oCAAoC,EACpCC,yCAAyC,EACzCC,4CAA4C,EAC5CC,sCAAsC,QACjC,+BAA+B"}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export { AttachmentTag, attachmentTagClassNames, renderAttachmentTag_unstable, useAttachmentTagStyles_unstable, useAttachmentTag_unstable } from './AttachmentTag';
|
|
2
|
-
export { AttachmentTagList, attachmentTagListClassNames, renderAttachmentTagList_unstable, useAttachmentTagListStyles_unstable, useAttachmentTagList_unstable } from './AttachmentTagList';
|
|
3
|
-
export { AttachmentTagItem, attachmentTagItemClassNames, renderAttachmentTagItem_unstable, useAttachmentTagItemStyles_unstable, useAttachmentTagItem_unstable } from './AttachmentTagItem';
|
|
4
1
|
export { AttachmentList, attachmentListClassNames, renderAttachmentList_unstable, useAttachmentListStyles_unstable, useAttachmentList_unstable } from './AttachmentList';
|
|
5
2
|
export { AttachmentListContext, AttachmentListProvider, useAttachmentListContext_unstable } from './contexts/attachmentListContext';
|
|
6
3
|
export { Attachment, attachmentClassNames, renderAttachment_unstable, useAttachmentStyles_unstable, useAttachment_unstable } from './Attachment';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export type {
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export type {\n AttachmentListProps,\n AttachmentListSlots,\n AttachmentListState,\n AttachmentDismissedData,\n} from './AttachmentList';\nexport {\n AttachmentList,\n attachmentListClassNames,\n renderAttachmentList_unstable,\n useAttachmentListStyles_unstable,\n useAttachmentList_unstable,\n} from './AttachmentList';\nexport type { AttachmentListContextValue } from './contexts/attachmentListContext';\nexport {\n AttachmentListContext,\n AttachmentListProvider,\n useAttachmentListContext_unstable,\n} from './contexts/attachmentListContext';\nexport type { AttachmentProps, AttachmentSlots, AttachmentState } from './Attachment';\nexport {\n Attachment,\n attachmentClassNames,\n renderAttachment_unstable,\n useAttachmentStyles_unstable,\n useAttachment_unstable,\n} from './Attachment';\n\nexport type {\n AttachmentOverflowMenuProps,\n AttachmentOverflowMenuSlots,\n AttachmentOverflowMenuState,\n} from './AttachmentOverflowMenu';\nexport {\n AttachmentOverflowMenu,\n renderAttachmentOverflowMenu_unstable,\n useAttachmentOverflowMenu_unstable,\n} from './AttachmentOverflowMenu';\n\nexport type { AttachmentOverflowMenuContextValue } from './contexts/attachmentOverflowMenuContext';\nexport {\n AttachmentOverflowMenuContext,\n AttachmentOverflowMenuProvider,\n useAttachmentOverflowMenuContext_unstable,\n} from './contexts/attachmentOverflowMenuContext';\n\nexport type {\n AttachmentOverflowMenuButtonProps,\n AttachmentOverflowMenuButtonSlots,\n AttachmentOverflowMenuButtonState,\n} from './AttachmentOverflowMenuButton';\nexport {\n AttachmentOverflowMenuButton,\n attachmentOverflowMenuButtonClassNames,\n renderAttachmentOverflowMenuButton_unstable,\n useAttachmentOverflowMenuButtonStyles_unstable,\n useAttachmentOverflowMenuButton_unstable,\n} from './AttachmentOverflowMenuButton';\n\nexport type {\n AttachmentOverflowMenuItemProps,\n AttachmentOverflowMenuItemSlots,\n AttachmentOverflowMenuItemState,\n} from './AttachmentOverflowMenuItem';\nexport {\n AttachmentOverflowMenuItem,\n attachmentOverflowMenuItemClassNames,\n renderAttachmentOverflowMenuItem_unstable,\n useAttachmentOverflowMenuItemStyles_unstable,\n useAttachmentOverflowMenuItem_unstable,\n} from './AttachmentOverflowMenuItem';\n\nexport {\n AgentTag,\n renderAgentTag_unstable,\n useAgentTag_unstable,\n agentTagClassNames,\n useAgentTagStyles_unstable,\n} from './AgentTag';\nexport type { AgentTagProps, AgentTagSlots, AgentTagState } from './AgentTag';\n"],"names":["AttachmentList","attachmentListClassNames","renderAttachmentList_unstable","useAttachmentListStyles_unstable","useAttachmentList_unstable","AttachmentListContext","AttachmentListProvider","useAttachmentListContext_unstable","Attachment","attachmentClassNames","renderAttachment_unstable","useAttachmentStyles_unstable","useAttachment_unstable","AttachmentOverflowMenu","renderAttachmentOverflowMenu_unstable","useAttachmentOverflowMenu_unstable","AttachmentOverflowMenuContext","AttachmentOverflowMenuProvider","useAttachmentOverflowMenuContext_unstable","AttachmentOverflowMenuButton","attachmentOverflowMenuButtonClassNames","renderAttachmentOverflowMenuButton_unstable","useAttachmentOverflowMenuButtonStyles_unstable","useAttachmentOverflowMenuButton_unstable","AttachmentOverflowMenuItem","attachmentOverflowMenuItemClassNames","renderAttachmentOverflowMenuItem_unstable","useAttachmentOverflowMenuItemStyles_unstable","useAttachmentOverflowMenuItem_unstable","AgentTag","renderAgentTag_unstable","useAgentTag_unstable","agentTagClassNames","useAgentTagStyles_unstable"],"rangeMappings":";;;;;;;","mappings":"AAMA,SACEA,cAAc,EACdC,wBAAwB,EACxBC,6BAA6B,EAC7BC,gCAAgC,EAChCC,0BAA0B,QACrB,mBAAmB;AAE1B,SACEC,qBAAqB,EACrBC,sBAAsB,EACtBC,iCAAiC,QAC5B,mCAAmC;AAE1C,SACEC,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,eAAe;AAOtB,SACEC,sBAAsB,EACtBC,qCAAqC,EACrCC,kCAAkC,QAC7B,2BAA2B;AAGlC,SACEC,6BAA6B,EAC7BC,8BAA8B,EAC9BC,yCAAyC,QACpC,2CAA2C;AAOlD,SACEC,4BAA4B,EAC5BC,sCAAsC,EACtCC,2CAA2C,EAC3CC,8CAA8C,EAC9CC,wCAAwC,QACnC,iCAAiC;AAOxC,SACEC,0BAA0B,EAC1BC,oCAAoC,EACpCC,yCAAyC,EACzCC,4CAA4C,EAC5CC,sCAAsC,QACjC,+BAA+B;AAEtC,SACEC,QAAQ,EACRC,uBAAuB,EACvBC,oBAAoB,EACpBC,kBAAkB,EAClBC,0BAA0B,QACrB,aAAa"}
|
|
@@ -49,7 +49,7 @@ const useContentStyles = (0, _reactcomponents.__styles)({
|
|
|
49
49
|
Bahqtrf: "fk6fouc",
|
|
50
50
|
Be2twd7: "fod5ikn",
|
|
51
51
|
Bhrd7zp: "fl43uef",
|
|
52
|
-
Bg96gwp: "
|
|
52
|
+
Bg96gwp: "f1anucx2",
|
|
53
53
|
sj55zd: "fkfq4zb"
|
|
54
54
|
},
|
|
55
55
|
sidecar: {
|
|
@@ -64,7 +64,7 @@ const useContentStyles = (0, _reactcomponents.__styles)({
|
|
|
64
64
|
".fk6fouc{font-family:var(--fontFamilyBase);}",
|
|
65
65
|
".fod5ikn{font-size:var(--fontSizeBase400);}",
|
|
66
66
|
".fl43uef{font-weight:var(--fontWeightSemibold);}",
|
|
67
|
-
".
|
|
67
|
+
".f1anucx2{line-height:var(--lineHeightBase450);}",
|
|
68
68
|
".fkfq4zb{color:var(--colorNeutralForeground2);}",
|
|
69
69
|
".fkhj508{font-size:var(--fontSizeBase300);}",
|
|
70
70
|
".f1i3iumi{line-height:var(--lineHeightBase300);}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAgentTagStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses
|
|
1
|
+
{"version":3,"sources":["useAgentTagStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-components';\nimport type { AgentTagSlots, AgentTagState } from './AgentTag.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\nimport { useAttachmentStyles_unstable } from '..';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\n\nexport const agentTagClassNames: SlotClassNames<AgentTagSlots> = {\n root: 'fai-AgentTag',\n primaryAction: 'fai-AgentTag__primaryAction',\n dismissIcon: 'fai-AgentTag__dismissIcon',\n dismissButton: 'fai-AgentTag__dismissButton',\n media: 'fai-AgentTag__media',\n content: 'fai-AgentTag__content',\n progress: 'fai-AgentTag__progress',\n};\n\nconst useMediaStyles = makeStyles({\n canvas: {\n width: '24px',\n height: '24px',\n },\n sidecar: { width: '20px', height: '20px' },\n});\n\nconst useContentStyles = makeStyles({\n canvas: {\n ...typographyStyles.subtitle2,\n color: tokens.colorNeutralForeground2,\n },\n sidecar: {\n ...typographyStyles.body1Strong,\n color: tokens.colorNeutralForeground2,\n },\n});\n\nconst useDismissButtonStyles = makeStyles({\n canvas: {\n borderRadius: tokens.borderRadius2XL,\n paddingLeft: tokens.spacingHorizontalL,\n paddingRight: tokens.spacingHorizontalM,\n },\n sidecar: {\n paddingLeft: tokens.spacingHorizontalM,\n paddingRight: tokens.spacingHorizontalS,\n borderRadius: tokens.borderRadiusXLarge,\n },\n});\n\n/**\n * Apply styling to the AgentTag slots based on the state\n */\nexport const useAgentTagStyles_unstable = (state: AgentTagState): AgentTagState => {\n 'use no memo';\n\n const { mode } = state;\n\n const contentStyles = useContentStyles();\n const dismissButtonStyles = useDismissButtonStyles();\n const mediaStyles = useMediaStyles();\n\n state.root.className = mergeClasses(agentTagClassNames.root, state.root.className);\n\n state.primaryAction.className = mergeClasses(agentTagClassNames.primaryAction, state.primaryAction.className);\n\n state.dismissIcon.className = mergeClasses(agentTagClassNames.dismissIcon, state.dismissIcon.className);\n\n state.dismissButton.className = mergeClasses(\n agentTagClassNames.dismissButton,\n dismissButtonStyles[mode],\n state.dismissButton.className,\n );\n\n if (state.media) {\n state.media.className = mergeClasses(agentTagClassNames.media, mediaStyles[mode], state.media.className);\n }\n\n state.content.className = mergeClasses(agentTagClassNames.content, contentStyles[mode], state.content.className);\n\n if (state.progress) {\n state.progress.className = mergeClasses(agentTagClassNames.progress, state.progress.className);\n }\n\n useAttachmentStyles_unstable(state);\n\n return state;\n};\n"],"names":["agentTagClassNames","root","primaryAction","dismissIcon","dismissButton","media","content","progress","useMediaStyles","makeStyles","canvas","width","height","sidecar","d","useContentStyles","typographyStyles","subtitle2","color","Bahqtrf","sj55zd","useDismissButtonStyles","borderRadius","paddingLeft","paddingRight","__styles","Beyfa6y","Btl43ni","B7oj6ja","Dimara","mode","uwmqm3","contentStyles","z189sj","dismissButtonStyles","state","className","mergeClasses","Bbmb7ep","useAttachmentStyles_unstable","p"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAMaA,kBAAAA;eAAAA;;;;;;iCANoB;kBAGY;AAGtC,MAAMA,qBAAoD;UAC/DC;mBACAC;iBACAC;mBACAC;WACAC;aACAC;cACAC;AACF;AAEA,MAAMC,iBAAiBC,IAAAA,yBAAAA,EAAAA;YACrBC;gBACEC;iBACAC;;aAEFC;gBAAWF;iBAAeC;;AAC5B,GAAA;IAEAE,GAAA;QAAMC;QAAmBN;QAAW;QAAA;KAAA;;yBAE7BO,IAAAA,yBAAiBC,EAAAA;YACpBC;QACFC,SAAA;QACAN,SAAS;iBACJG;iBACHE;QACFE,QAAA;IACF;IAEAP,SAAMQ;QACJX,SAAQ;iBACNY;iBACAC;iBACAC;QACFJ,QAAA;;;;;QAGyC;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;;MAEzCC,yBAAAI,IAAAA,yBAAA,EAAA;IACFf,QAAA;QAEAgB,SAAA;;QAGAC,SAAO;QACLC,SAAA;QAEAC,QAAQC;QAERC,QAAMC;YAAAA;YAAAA;SAAgBjB;QACtBkB,QAAMC;YAAAA;YAAAA;SAAsBb;;aAGtBpB;QAENkC,QAAMjC;YAAAA;YAAckC;SAAS;QAE7BD,QAAMhC;YAAAA;YAAYiC;SAAYC;QAE9BF,SAAM/B;QAMNkC,SAAIH;iBACFA;QACFP,SAAA;QAEAO,QAAM7B;;;OAIN;QAAA;YAAA;YAAA;gBAEAiC,GAAAA,CAAAA;;SAEA;QAAA;QAAOJ;QAAAA;QAAAA;QAAAA;QAAAA;QAAAA;YAAAA;YAAAA;gBACPK,GAAA,CAAA"}
|
|
@@ -9,9 +9,6 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
ATTACHMENTTAG_MAXWIDTH: function() {
|
|
13
|
-
return _AttachmentTag.ATTACHMENTTAG_MAXWIDTH;
|
|
14
|
-
},
|
|
15
12
|
Attachment: function() {
|
|
16
13
|
return _Attachment.Attachment;
|
|
17
14
|
},
|
|
@@ -27,15 +24,6 @@ _export(exports, {
|
|
|
27
24
|
AttachmentOverflowMenuItem: function() {
|
|
28
25
|
return _AttachmentOverflowMenuItem.AttachmentOverflowMenuItem;
|
|
29
26
|
},
|
|
30
|
-
AttachmentTag: function() {
|
|
31
|
-
return _AttachmentTag.AttachmentTag;
|
|
32
|
-
},
|
|
33
|
-
AttachmentTagItem: function() {
|
|
34
|
-
return _AttachmentTagItem.AttachmentTagItem;
|
|
35
|
-
},
|
|
36
|
-
AttachmentTagList: function() {
|
|
37
|
-
return _AttachmentTagList.AttachmentTagList;
|
|
38
|
-
},
|
|
39
27
|
attachmentClassNames: function() {
|
|
40
28
|
return _Attachment.attachmentClassNames;
|
|
41
29
|
},
|
|
@@ -48,15 +36,6 @@ _export(exports, {
|
|
|
48
36
|
attachmentOverflowMenuItemClassNames: function() {
|
|
49
37
|
return _AttachmentOverflowMenuItem.attachmentOverflowMenuItemClassNames;
|
|
50
38
|
},
|
|
51
|
-
attachmentTagClassNames: function() {
|
|
52
|
-
return _AttachmentTag.attachmentTagClassNames;
|
|
53
|
-
},
|
|
54
|
-
attachmentTagItemClassNames: function() {
|
|
55
|
-
return _AttachmentTagItem.attachmentTagItemClassNames;
|
|
56
|
-
},
|
|
57
|
-
attachmentTagListClassNames: function() {
|
|
58
|
-
return _AttachmentTagList.attachmentTagListClassNames;
|
|
59
|
-
},
|
|
60
39
|
renderAttachmentList_unstable: function() {
|
|
61
40
|
return _AttachmentList.renderAttachmentList_unstable;
|
|
62
41
|
},
|
|
@@ -69,15 +48,6 @@ _export(exports, {
|
|
|
69
48
|
renderAttachmentOverflowMenu_unstable: function() {
|
|
70
49
|
return _AttachmentOverflowMenu.renderAttachmentOverflowMenu_unstable;
|
|
71
50
|
},
|
|
72
|
-
renderAttachmentTagItem_unstable: function() {
|
|
73
|
-
return _AttachmentTagItem.renderAttachmentTagItem_unstable;
|
|
74
|
-
},
|
|
75
|
-
renderAttachmentTagList_unstable: function() {
|
|
76
|
-
return _AttachmentTagList.renderAttachmentTagList_unstable;
|
|
77
|
-
},
|
|
78
|
-
renderAttachmentTag_unstable: function() {
|
|
79
|
-
return _AttachmentTag.renderAttachmentTag_unstable;
|
|
80
|
-
},
|
|
81
51
|
renderAttachment_unstable: function() {
|
|
82
52
|
return _Attachment.renderAttachment_unstable;
|
|
83
53
|
},
|
|
@@ -108,43 +78,13 @@ _export(exports, {
|
|
|
108
78
|
useAttachmentStyles_unstable: function() {
|
|
109
79
|
return _Attachment.useAttachmentStyles_unstable;
|
|
110
80
|
},
|
|
111
|
-
useAttachmentTagItemStyles_unstable: function() {
|
|
112
|
-
return _AttachmentTagItem.useAttachmentTagItemStyles_unstable;
|
|
113
|
-
},
|
|
114
|
-
useAttachmentTagItem_unstable: function() {
|
|
115
|
-
return _AttachmentTagItem.useAttachmentTagItem_unstable;
|
|
116
|
-
},
|
|
117
|
-
useAttachmentTagListStyles_unstable: function() {
|
|
118
|
-
return _AttachmentTagList.useAttachmentTagListStyles_unstable;
|
|
119
|
-
},
|
|
120
|
-
useAttachmentTagList_unstable: function() {
|
|
121
|
-
return _AttachmentTagList.useAttachmentTagList_unstable;
|
|
122
|
-
},
|
|
123
|
-
useAttachmentTagStyles_unstable: function() {
|
|
124
|
-
return _AttachmentTag.useAttachmentTagStyles_unstable;
|
|
125
|
-
},
|
|
126
|
-
useAttachmentTag_unstable: function() {
|
|
127
|
-
return _AttachmentTag.useAttachmentTag_unstable;
|
|
128
|
-
},
|
|
129
81
|
useAttachment_unstable: function() {
|
|
130
82
|
return _Attachment.useAttachment_unstable;
|
|
131
83
|
},
|
|
132
|
-
useContentBaseClassName: function() {
|
|
133
|
-
return _AttachmentTag.useContentBaseClassName;
|
|
134
|
-
},
|
|
135
|
-
useIconBaseClassName: function() {
|
|
136
|
-
return _AttachmentTag.useIconBaseClassName;
|
|
137
|
-
},
|
|
138
|
-
useMediaBaseClassName: function() {
|
|
139
|
-
return _AttachmentTag.useMediaBaseClassName;
|
|
140
|
-
},
|
|
141
84
|
useOverflowStyles: function() {
|
|
142
85
|
return _Attachment.useOverflowStyles;
|
|
143
86
|
}
|
|
144
87
|
});
|
|
145
|
-
const _AttachmentTag = require("./AttachmentTag");
|
|
146
|
-
const _AttachmentTagList = require("./AttachmentTagList");
|
|
147
|
-
const _AttachmentTagItem = require("./AttachmentTagItem");
|
|
148
88
|
const _Attachment = require("./Attachment");
|
|
149
89
|
const _AttachmentList = require("./AttachmentList");
|
|
150
90
|
const _AttachmentOverflowMenu = require("./AttachmentOverflowMenu");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export type {
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export type { AttachmentProps, AttachmentSlots, AttachmentState } from './Attachment';\nexport {\n Attachment,\n attachmentClassNames,\n renderAttachment_unstable,\n useAttachmentStyles_unstable,\n useAttachment_unstable,\n useOverflowStyles,\n} from './Attachment';\nexport type {\n AttachmentDismissedData,\n AttachmentListContextValues,\n AttachmentListProps,\n AttachmentListSlots,\n AttachmentListState,\n} from './AttachmentList';\nexport {\n AttachmentList,\n attachmentListClassNames,\n renderAttachmentList_unstable,\n useAttachmentListStyles_unstable,\n useAttachmentList_unstable,\n} from './AttachmentList';\nexport type {\n AttachmentOverflowMenuContextValues,\n AttachmentOverflowMenuProps,\n AttachmentOverflowMenuSlots,\n AttachmentOverflowMenuState,\n} from './AttachmentOverflowMenu';\nexport {\n AttachmentOverflowMenu,\n renderAttachmentOverflowMenu_unstable,\n useAttachmentOverflowMenuContextValues_unstable,\n useAttachmentOverflowMenu_unstable,\n} from './AttachmentOverflowMenu';\nexport type {\n AttachmentOverflowMenuButtonProps,\n AttachmentOverflowMenuButtonSlots,\n AttachmentOverflowMenuButtonState,\n} from './AttachmentOverflowMenuButton';\nexport {\n AttachmentOverflowMenuButton,\n attachmentOverflowMenuButtonClassNames,\n renderAttachmentOverflowMenuButton_unstable,\n useAttachmentOverflowMenuButtonStyles_unstable,\n useAttachmentOverflowMenuButton_unstable,\n} from './AttachmentOverflowMenuButton';\nexport type {\n AttachmentOverflowMenuItemProps,\n AttachmentOverflowMenuItemSlots,\n AttachmentOverflowMenuItemState,\n} from './AttachmentOverflowMenuItem';\nexport {\n AttachmentOverflowMenuItem,\n attachmentOverflowMenuItemClassNames,\n renderAttachmentOverflowMenuItem_unstable,\n useAttachmentOverflowMenuItemStyles_unstable,\n useAttachmentOverflowMenuItem_unstable,\n} from './AttachmentOverflowMenuItem';\n"],"names":["Attachment","AttachmentList","AttachmentOverflowMenu","AttachmentOverflowMenuButton","AttachmentOverflowMenuItem","attachmentClassNames","attachmentListClassNames","attachmentOverflowMenuButtonClassNames","attachmentOverflowMenuItemClassNames","renderAttachmentList_unstable","renderAttachmentOverflowMenuButton_unstable","renderAttachmentOverflowMenuItem_unstable","renderAttachmentOverflowMenu_unstable","renderAttachment_unstable","useAttachmentListStyles_unstable","useAttachmentList_unstable","useAttachmentOverflowMenuButtonStyles_unstable","useAttachmentOverflowMenuButton_unstable","useAttachmentOverflowMenuContextValues_unstable","useAttachmentOverflowMenuItemStyles_unstable","useAttachmentOverflowMenuItem_unstable","useAttachmentOverflowMenu_unstable","useAttachmentStyles_unstable","useAttachment_unstable","useOverflowStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEEA,UAAU;eAAVA,sBAAU;;IAeVC,cAAc;eAAdA,8BAAc;;IAadC,sBAAsB;eAAtBA,8CAAsB;;IAWtBC,4BAA4B;eAA5BA,0DAA4B;;IAY5BC,0BAA0B;eAA1BA,sDAA0B;;IAlD1BC,oBAAoB;eAApBA,gCAAoB;;IAepBC,wBAAwB;eAAxBA,wCAAwB;;IAwBxBC,sCAAsC;eAAtCA,oEAAsC;;IAYtCC,oCAAoC;eAApCA,gEAAoC;;IAnCpCC,6BAA6B;eAA7BA,6CAA6B;;IAwB7BC,2CAA2C;eAA3CA,yEAA2C;;IAY3CC,yCAAyC;eAAzCA,qEAAyC;;IAxBzCC,qCAAqC;eAArCA,6DAAqC;;IA3BrCC,yBAAyB;eAAzBA,qCAAyB;;IAgBzBC,gCAAgC;eAAhCA,gDAAgC;;IAChCC,0BAA0B;eAA1BA,0CAA0B;;IAuB1BC,8CAA8C;eAA9CA,4EAA8C;;IAC9CC,wCAAwC;eAAxCA,sEAAwC;;IAbxCC,+CAA+C;eAA/CA,uEAA+C;;IAwB/CC,4CAA4C;eAA5CA,wEAA4C;;IAC5CC,sCAAsC;eAAtCA,kEAAsC;;IAxBtCC,kCAAkC;eAAlCA,0DAAkC;;IA5BlCC,4BAA4B;eAA5BA,wCAA4B;;IAC5BC,sBAAsB;eAAtBA,kCAAsB;;IACtBC,iBAAiB;eAAjBA,6BAAiB;;;4BACZ;gCAcA;wCAYA;8CAYA;4CAYA"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -39,15 +39,6 @@ _export(exports, {
|
|
|
39
39
|
AttachmentOverflowMenuProvider: function() {
|
|
40
40
|
return _attachmentOverflowMenuContext.AttachmentOverflowMenuProvider;
|
|
41
41
|
},
|
|
42
|
-
AttachmentTag: function() {
|
|
43
|
-
return _AttachmentTag.AttachmentTag;
|
|
44
|
-
},
|
|
45
|
-
AttachmentTagItem: function() {
|
|
46
|
-
return _AttachmentTagItem.AttachmentTagItem;
|
|
47
|
-
},
|
|
48
|
-
AttachmentTagList: function() {
|
|
49
|
-
return _AttachmentTagList.AttachmentTagList;
|
|
50
|
-
},
|
|
51
42
|
agentTagClassNames: function() {
|
|
52
43
|
return _AgentTag.agentTagClassNames;
|
|
53
44
|
},
|
|
@@ -63,15 +54,6 @@ _export(exports, {
|
|
|
63
54
|
attachmentOverflowMenuItemClassNames: function() {
|
|
64
55
|
return _AttachmentOverflowMenuItem.attachmentOverflowMenuItemClassNames;
|
|
65
56
|
},
|
|
66
|
-
attachmentTagClassNames: function() {
|
|
67
|
-
return _AttachmentTag.attachmentTagClassNames;
|
|
68
|
-
},
|
|
69
|
-
attachmentTagItemClassNames: function() {
|
|
70
|
-
return _AttachmentTagItem.attachmentTagItemClassNames;
|
|
71
|
-
},
|
|
72
|
-
attachmentTagListClassNames: function() {
|
|
73
|
-
return _AttachmentTagList.attachmentTagListClassNames;
|
|
74
|
-
},
|
|
75
57
|
renderAgentTag_unstable: function() {
|
|
76
58
|
return _AgentTag.renderAgentTag_unstable;
|
|
77
59
|
},
|
|
@@ -87,15 +69,6 @@ _export(exports, {
|
|
|
87
69
|
renderAttachmentOverflowMenu_unstable: function() {
|
|
88
70
|
return _AttachmentOverflowMenu.renderAttachmentOverflowMenu_unstable;
|
|
89
71
|
},
|
|
90
|
-
renderAttachmentTagItem_unstable: function() {
|
|
91
|
-
return _AttachmentTagItem.renderAttachmentTagItem_unstable;
|
|
92
|
-
},
|
|
93
|
-
renderAttachmentTagList_unstable: function() {
|
|
94
|
-
return _AttachmentTagList.renderAttachmentTagList_unstable;
|
|
95
|
-
},
|
|
96
|
-
renderAttachmentTag_unstable: function() {
|
|
97
|
-
return _AttachmentTag.renderAttachmentTag_unstable;
|
|
98
|
-
},
|
|
99
72
|
renderAttachment_unstable: function() {
|
|
100
73
|
return _Attachment.renderAttachment_unstable;
|
|
101
74
|
},
|
|
@@ -135,31 +108,10 @@ _export(exports, {
|
|
|
135
108
|
useAttachmentStyles_unstable: function() {
|
|
136
109
|
return _Attachment.useAttachmentStyles_unstable;
|
|
137
110
|
},
|
|
138
|
-
useAttachmentTagItemStyles_unstable: function() {
|
|
139
|
-
return _AttachmentTagItem.useAttachmentTagItemStyles_unstable;
|
|
140
|
-
},
|
|
141
|
-
useAttachmentTagItem_unstable: function() {
|
|
142
|
-
return _AttachmentTagItem.useAttachmentTagItem_unstable;
|
|
143
|
-
},
|
|
144
|
-
useAttachmentTagListStyles_unstable: function() {
|
|
145
|
-
return _AttachmentTagList.useAttachmentTagListStyles_unstable;
|
|
146
|
-
},
|
|
147
|
-
useAttachmentTagList_unstable: function() {
|
|
148
|
-
return _AttachmentTagList.useAttachmentTagList_unstable;
|
|
149
|
-
},
|
|
150
|
-
useAttachmentTagStyles_unstable: function() {
|
|
151
|
-
return _AttachmentTag.useAttachmentTagStyles_unstable;
|
|
152
|
-
},
|
|
153
|
-
useAttachmentTag_unstable: function() {
|
|
154
|
-
return _AttachmentTag.useAttachmentTag_unstable;
|
|
155
|
-
},
|
|
156
111
|
useAttachment_unstable: function() {
|
|
157
112
|
return _Attachment.useAttachment_unstable;
|
|
158
113
|
}
|
|
159
114
|
});
|
|
160
|
-
const _AttachmentTag = require("./AttachmentTag");
|
|
161
|
-
const _AttachmentTagList = require("./AttachmentTagList");
|
|
162
|
-
const _AttachmentTagItem = require("./AttachmentTagItem");
|
|
163
115
|
const _AttachmentList = require("./AttachmentList");
|
|
164
116
|
const _attachmentListContext = require("./contexts/attachmentListContext");
|
|
165
117
|
const _Attachment = require("./Attachment");
|