@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.
Files changed (112) hide show
  1. package/CHANGELOG.json +24 -1
  2. package/CHANGELOG.md +15 -2
  3. package/dist/index.d.ts +0 -151
  4. package/lib/components/AgentTag/useAgentTagStyles.styles.js +4 -4
  5. package/lib/components/AgentTag/useAgentTagStyles.styles.js.map +1 -1
  6. package/lib/components/index.js +0 -3
  7. package/lib/components/index.js.map +1 -1
  8. package/lib/index.js +0 -3
  9. package/lib/index.js.map +1 -1
  10. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.js +2 -2
  11. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.js.map +1 -1
  12. package/lib-commonjs/components/index.js +0 -60
  13. package/lib-commonjs/components/index.js.map +1 -1
  14. package/lib-commonjs/index.js +0 -48
  15. package/lib-commonjs/index.js.map +1 -1
  16. package/package.json +2 -2
  17. package/lib/AttachmentTag.js +0 -2
  18. package/lib/AttachmentTag.js.map +0 -1
  19. package/lib/AttachmentTagItem.js +0 -2
  20. package/lib/AttachmentTagItem.js.map +0 -1
  21. package/lib/AttachmentTagList.js +0 -2
  22. package/lib/AttachmentTagList.js.map +0 -1
  23. package/lib/components/AttachmentTag/AttachmentTag.js +0 -17
  24. package/lib/components/AttachmentTag/AttachmentTag.js.map +0 -1
  25. package/lib/components/AttachmentTag/AttachmentTag.types.js +0 -4
  26. package/lib/components/AttachmentTag/AttachmentTag.types.js.map +0 -1
  27. package/lib/components/AttachmentTag/index.js +0 -5
  28. package/lib/components/AttachmentTag/index.js.map +0 -1
  29. package/lib/components/AttachmentTag/renderAttachmentTag.js +0 -12
  30. package/lib/components/AttachmentTag/renderAttachmentTag.js.map +0 -1
  31. package/lib/components/AttachmentTag/useAttachmentTag.js +0 -21
  32. package/lib/components/AttachmentTag/useAttachmentTag.js.map +0 -1
  33. package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.js +0 -45
  34. package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.js.map +0 -1
  35. package/lib/components/AttachmentTagItem/AttachmentTagItem.js +0 -15
  36. package/lib/components/AttachmentTagItem/AttachmentTagItem.js.map +0 -1
  37. package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js +0 -4
  38. package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js.map +0 -1
  39. package/lib/components/AttachmentTagItem/index.js +0 -5
  40. package/lib/components/AttachmentTagItem/index.js.map +0 -1
  41. package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js +0 -12
  42. package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js.map +0 -1
  43. package/lib/components/AttachmentTagItem/useAttachmentTagItem.js +0 -21
  44. package/lib/components/AttachmentTagItem/useAttachmentTagItem.js.map +0 -1
  45. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.js +0 -32
  46. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.js.map +0 -1
  47. package/lib/components/AttachmentTagList/AttachmentTagList.js +0 -19
  48. package/lib/components/AttachmentTagList/AttachmentTagList.js.map +0 -1
  49. package/lib/components/AttachmentTagList/AttachmentTagList.types.js +0 -2
  50. package/lib/components/AttachmentTagList/AttachmentTagList.types.js.map +0 -1
  51. package/lib/components/AttachmentTagList/index.js +0 -5
  52. package/lib/components/AttachmentTagList/index.js.map +0 -1
  53. package/lib/components/AttachmentTagList/renderAttachmentTagList.js +0 -14
  54. package/lib/components/AttachmentTagList/renderAttachmentTagList.js.map +0 -1
  55. package/lib/components/AttachmentTagList/useAttachmentTagList.js +0 -35
  56. package/lib/components/AttachmentTagList/useAttachmentTagList.js.map +0 -1
  57. package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js +0 -13
  58. package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +0 -1
  59. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.js +0 -17
  60. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.js.map +0 -1
  61. package/lib/components/utils/useAttachmentTagSlots.js +0 -62
  62. package/lib/components/utils/useAttachmentTagSlots.js.map +0 -1
  63. package/lib/contexts/attachmentTagListContext.js +0 -8
  64. package/lib/contexts/attachmentTagListContext.js.map +0 -1
  65. package/lib-commonjs/AttachmentTag.js +0 -41
  66. package/lib-commonjs/AttachmentTag.js.map +0 -1
  67. package/lib-commonjs/AttachmentTagItem.js +0 -29
  68. package/lib-commonjs/AttachmentTagItem.js.map +0 -1
  69. package/lib-commonjs/AttachmentTagList.js +0 -29
  70. package/lib-commonjs/AttachmentTagList.js.map +0 -1
  71. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js +0 -23
  72. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js.map +0 -1
  73. package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js +0 -7
  74. package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js.map +0 -1
  75. package/lib-commonjs/components/AttachmentTag/index.js +0 -44
  76. package/lib-commonjs/components/AttachmentTag/index.js.map +0 -1
  77. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js +0 -22
  78. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js.map +0 -1
  79. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js +0 -21
  80. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js.map +0 -1
  81. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.js +0 -78
  82. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.js.map +0 -1
  83. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js +0 -21
  84. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js.map +0 -1
  85. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js +0 -7
  86. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js.map +0 -1
  87. package/lib-commonjs/components/AttachmentTagItem/index.js +0 -32
  88. package/lib-commonjs/components/AttachmentTagItem/index.js.map +0 -1
  89. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js +0 -22
  90. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js.map +0 -1
  91. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js +0 -21
  92. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js.map +0 -1
  93. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.js +0 -45
  94. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.js.map +0 -1
  95. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js +0 -25
  96. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js.map +0 -1
  97. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js +0 -5
  98. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js.map +0 -1
  99. package/lib-commonjs/components/AttachmentTagList/index.js +0 -32
  100. package/lib-commonjs/components/AttachmentTagList/index.js.map +0 -1
  101. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js +0 -20
  102. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js.map +0 -1
  103. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js +0 -33
  104. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js.map +0 -1
  105. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js +0 -20
  106. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +0 -1
  107. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.js +0 -31
  108. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.js.map +0 -1
  109. package/lib-commonjs/components/utils/useAttachmentTagSlots.js +0 -62
  110. package/lib-commonjs/components/utils/useAttachmentTagSlots.js.map +0 -1
  111. package/lib-commonjs/contexts/attachmentTagListContext.js +0 -28
  112. package/lib-commonjs/contexts/attachmentTagListContext.js.map +0 -1
@@ -1,62 +0,0 @@
1
- import * as React from 'react';
2
- import { getIntrinsicElementProps, mergeCallbacks, slot } from '@fluentui/react-components';
3
- import { useHasParentContext } from '@fluentui/react-context-selector';
4
- import { Dismiss20Regular, Dismiss20Filled, bundleIcon } from '@fluentui/react-icons';
5
- import { useAttachmentTagListContext_unstable } from '../../contexts/attachmentTagListContext';
6
- import { AttachmentTagListContext } from '../../contexts/attachmentTagListContext';
7
- /**
8
- * @internal
9
- * Create the slots required to render AttachmentTag or AttachmentTagItem.
10
- */
11
- export function useAttachmentTagSlots(props, ref, options) {
12
- const onAttachmentTagDismiss = useAttachmentTagListContext_unstable(context => context.onAttachmentTagDismiss);
13
- const {
14
- children,
15
- role
16
- } = props;
17
- const {
18
- elementType
19
- } = options;
20
- const DismissIcon = bundleIcon(Dismiss20Filled, Dismiss20Regular);
21
- const hasParentContext = useHasParentContext(AttachmentTagListContext);
22
- const rootRole = role !== null && role !== void 0 ? role : hasParentContext ? 'menuitem' : undefined;
23
- const root = slot.always(getIntrinsicElementProps(elementType.root, {
24
- ref,
25
- ...props,
26
- role: rootRole
27
- }), {
28
- elementType: elementType.root
29
- });
30
- root.onClick = mergeCallbacks(root.onClick, ev => onAttachmentTagDismiss === null || onAttachmentTagDismiss === void 0 ? void 0 : onAttachmentTagDismiss(ev, {
31
- content: children,
32
- media
33
- }));
34
- const media = slot.optional(props.media, {
35
- elementType: elementType.media
36
- });
37
- const content = slot.always(props.content, {
38
- defaultProps: {
39
- children
40
- },
41
- elementType: elementType.content
42
- });
43
- const icon = slot.always(props.icon, {
44
- defaultProps: {
45
- children: /*#__PURE__*/React.createElement(DismissIcon, null)
46
- },
47
- elementType: elementType.icon
48
- });
49
- return {
50
- components: {
51
- root: elementType.root,
52
- media: elementType.media,
53
- content: elementType.content,
54
- icon: elementType.icon
55
- },
56
- root,
57
- media,
58
- content,
59
- icon
60
- };
61
- }
62
- //# sourceMappingURL=useAttachmentTagSlots.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useAttachmentTagSlots.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { getIntrinsicElementProps, mergeCallbacks, slot } from '@fluentui/react-components';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { Dismiss20Regular, Dismiss20Filled, bundleIcon } from '@fluentui/react-icons';\n\nimport { useAttachmentTagListContext_unstable } from '../../contexts/attachmentTagListContext';\n\nimport { AttachmentTagListContext } from '../../contexts/attachmentTagListContext';\nimport type { AttachmentTagProps, AttachmentTagState } from './../AttachmentTag/AttachmentTag.types';\nimport type { AttachmentTagItemProps, AttachmentTagItemState } from './../AttachmentTagItem/AttachmentTagItem.types';\n\n/**\n * @internal\n * Create the slots required to render AttachmentTag or AttachmentTagItem.\n */\nexport function useAttachmentTagSlots<TAttachmentTagState extends AttachmentTagState | AttachmentTagItemState>(\n props: AttachmentTagProps | AttachmentTagItemProps,\n ref: React.Ref<HTMLButtonElement | HTMLDivElement>,\n options: {\n elementType: TAttachmentTagState['components'];\n },\n): TAttachmentTagState {\n const onAttachmentTagDismiss = useAttachmentTagListContext_unstable(context => context.onAttachmentTagDismiss);\n const { children, role } = props;\n const { elementType } = options;\n\n const DismissIcon = bundleIcon(Dismiss20Filled, Dismiss20Regular);\n\n const hasParentContext = useHasParentContext(AttachmentTagListContext);\n const rootRole = role ?? (hasParentContext ? 'menuitem' : undefined);\n\n const root: TAttachmentTagState['root'] = slot.always(\n getIntrinsicElementProps(elementType.root as 'button' | 'div', {\n ref,\n ...props,\n role: rootRole,\n }),\n { elementType: elementType.root as 'button' | 'div' },\n );\n root.onClick = mergeCallbacks(\n root.onClick as React.MouseEventHandler<HTMLAnchorElement | HTMLButtonElement>,\n (ev: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) =>\n onAttachmentTagDismiss?.(ev, { content: children, media }),\n );\n\n const media: TAttachmentTagState['media'] = slot.optional(props.media, { elementType: elementType.media });\n\n const content: TAttachmentTagState['content'] = slot.always(props.content, {\n defaultProps: {\n children,\n },\n elementType: elementType.content,\n });\n\n const icon: TAttachmentTagState['icon'] = slot.always(props.icon, {\n defaultProps: {\n children: <DismissIcon />,\n },\n elementType: elementType.icon,\n });\n\n return {\n components: {\n root: elementType.root,\n media: elementType.media,\n content: elementType.content,\n icon: elementType.icon,\n },\n root,\n media,\n content,\n icon,\n } as TAttachmentTagState;\n}\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","slot","useHasParentContext","Dismiss20Regular","Dismiss20Filled","bundleIcon","useAttachmentTagListContext_unstable","AttachmentTagListContext","useAttachmentTagSlots","props","ref","options","onAttachmentTagDismiss","context","children","role","elementType","DismissIcon","hasParentContext","rootRole","undefined","root","always","onClick","ev","content","media","optional","defaultProps","icon","components"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,wBAAwB,EAAEC,cAAc,EAAEC,IAAI,QAAQ,6BAA6B;AAC5F,SAASC,mBAAmB,QAAQ,mCAAmC;AACvE,SAASC,gBAAgB,EAAEC,eAAe,EAAEC,UAAU,QAAQ,wBAAwB;AAEtF,SAASC,oCAAoC,QAAQ,0CAA0C;AAE/F,SAASC,wBAAwB,QAAQ,0CAA0C;AAInF;;;CAGC,GACD,OAAO,SAASC,sBACdC,KAAkD,EAClDC,GAAkD,EAClDC,OAEC;IAED,MAAMC,yBAAyBN,qCAAqCO,CAAAA,UAAWA,QAAQD,sBAAsB;IAC7G,MAAM,EAAEE,QAAQ,EAAEC,IAAI,EAAE,GAAGN;IAC3B,MAAM,EAAEO,WAAW,EAAE,GAAGL;IAExB,MAAMM,cAAcZ,WAAWD,iBAAiBD;IAEhD,MAAMe,mBAAmBhB,oBAAoBK;IAC7C,MAAMY,WAAWJ,iBAAAA,kBAAAA,OAASG,mBAAmB,aAAaE;IAE1D,MAAMC,OAAoCpB,KAAKqB,MAAM,CACnDvB,yBAAyBiB,YAAYK,IAAI,EAAsB;QAC7DX;QACA,GAAGD,KAAK;QACRM,MAAMI;IACR,IACA;QAAEH,aAAaA,YAAYK,IAAI;IAAqB;IAEtDA,KAAKE,OAAO,GAAGvB,eACbqB,KAAKE,OAAO,EACZ,CAACC,KACCZ,mCAAAA,6CAAAA,uBAAyBY,IAAI;YAAEC,SAASX;YAAUY;QAAM;IAG5D,MAAMA,QAAsCzB,KAAK0B,QAAQ,CAAClB,MAAMiB,KAAK,EAAE;QAAEV,aAAaA,YAAYU,KAAK;IAAC;IAExG,MAAMD,UAA0CxB,KAAKqB,MAAM,CAACb,MAAMgB,OAAO,EAAE;QACzEG,cAAc;YACZd;QACF;QACAE,aAAaA,YAAYS,OAAO;IAClC;IAEA,MAAMI,OAAoC5B,KAAKqB,MAAM,CAACb,MAAMoB,IAAI,EAAE;QAChED,cAAc;YACZd,wBAAU,oBAACG;QACb;QACAD,aAAaA,YAAYa,IAAI;IAC/B;IAEA,OAAO;QACLC,YAAY;YACVT,MAAML,YAAYK,IAAI;YACtBK,OAAOV,YAAYU,KAAK;YACxBD,SAAST,YAAYS,OAAO;YAC5BI,MAAMb,YAAYa,IAAI;QACxB;QACAR;QACAK;QACAD;QACAI;IACF;AACF"}
@@ -1,8 +0,0 @@
1
- import { createContext, useContextSelector } from '@fluentui/react-context-selector';
2
- export const AttachmentTagListContext = createContext(undefined);
3
- const tagListContextDefaultValue = {
4
- onAttachmentTagDismiss: () => null
5
- };
6
- export const AttachmentTagListProvider = AttachmentTagListContext.Provider;
7
- export const useAttachmentTagListContext_unstable = selector => useContextSelector(AttachmentTagListContext, (ctx = tagListContextDefaultValue) => selector(ctx));
8
- //# sourceMappingURL=attachmentTagListContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["attachmentTagListContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentTagListProps } from '../components/index';\n\nexport const AttachmentTagListContext: Context<AttachmentTagListContextValue> = createContext<\n AttachmentTagListContextValue | undefined\n>(undefined) as Context<AttachmentTagListContextValue>;\n\nconst tagListContextDefaultValue: AttachmentTagListContextValue = {\n onAttachmentTagDismiss: () => null,\n};\n\n/**\n * Context shared between AttachmentTagList and its children components\n */\nexport type AttachmentTagListContextValue = Pick<AttachmentTagListProps, 'onAttachmentTagDismiss'>;\n\nexport const AttachmentTagListProvider = AttachmentTagListContext.Provider;\n\nexport const useAttachmentTagListContext_unstable = <T>(selector: ContextSelector<AttachmentTagListContextValue, T>) =>\n useContextSelector(AttachmentTagListContext, (ctx = tagListContextDefaultValue) => selector(ctx));\n"],"names":["createContext","useContextSelector","AttachmentTagListContext","undefined","tagListContextDefaultValue","onAttachmentTagDismiss","AttachmentTagListProvider","Provider","useAttachmentTagListContext_unstable","selector","ctx"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,aAAa,EAAEC,kBAAkB,QAAQ,mCAAmC;AAIrF,OAAO,MAAMC,2BAAmEF,cAE9EG,WAAqD;AAEvD,MAAMC,6BAA4D;IAChEC,wBAAwB,IAAM;AAChC;AAOA,OAAO,MAAMC,4BAA4BJ,yBAAyBK,QAAQ,CAAC;AAE3E,OAAO,MAAMC,uCAAuC,CAAIC,WACtDR,mBAAmBC,0BAA0B,CAACQ,MAAMN,0BAA0B,GAAKK,SAASC,MAAM"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- ATTACHMENTTAG_MAXWIDTH: function() {
13
- return _index.ATTACHMENTTAG_MAXWIDTH;
14
- },
15
- AttachmentTag: function() {
16
- return _index.AttachmentTag;
17
- },
18
- attachmentTagClassNames: function() {
19
- return _index.attachmentTagClassNames;
20
- },
21
- renderAttachmentTag_unstable: function() {
22
- return _index.renderAttachmentTag_unstable;
23
- },
24
- useAttachmentTagStyles_unstable: function() {
25
- return _index.useAttachmentTagStyles_unstable;
26
- },
27
- useAttachmentTag_unstable: function() {
28
- return _index.useAttachmentTag_unstable;
29
- },
30
- useContentBaseClassName: function() {
31
- return _index.useContentBaseClassName;
32
- },
33
- useIconBaseClassName: function() {
34
- return _index.useIconBaseClassName;
35
- },
36
- useMediaBaseClassName: function() {
37
- return _index.useMediaBaseClassName;
38
- }
39
- });
40
- const _index = require("./components/AttachmentTag/index");
41
- //# sourceMappingURL=AttachmentTag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["AttachmentTag.ts"],"sourcesContent":["export type { AttachmentTagProps, AttachmentTagSlots, AttachmentTagState } from './components/AttachmentTag/index';\nexport { ATTACHMENTTAG_MAXWIDTH, AttachmentTag, attachmentTagClassNames, renderAttachmentTag_unstable, useAttachmentTagStyles_unstable, useAttachmentTag_unstable, useContentBaseClassName, useIconBaseClassName, useMediaBaseClassName } from './components/AttachmentTag/index';\n"],"names":["ATTACHMENTTAG_MAXWIDTH","AttachmentTag","attachmentTagClassNames","renderAttachmentTag_unstable","useAttachmentTagStyles_unstable","useAttachmentTag_unstable","useContentBaseClassName","useIconBaseClassName","useMediaBaseClassName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACSA,sBAAsB;eAAtBA,6BAAsB;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,uBAAuB;eAAvBA,8BAAuB;;IAAEC,4BAA4B;eAA5BA,mCAA4B;;IAAEC,+BAA+B;eAA/BA,sCAA+B;;IAAEC,yBAAyB;eAAzBA,gCAAyB;;IAAEC,uBAAuB;eAAvBA,8BAAuB;;IAAEC,oBAAoB;eAApBA,2BAAoB;;IAAEC,qBAAqB;eAArBA,4BAAqB;;;uBAAQ"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- AttachmentTagItem: function() {
13
- return _index.AttachmentTagItem;
14
- },
15
- attachmentTagItemClassNames: function() {
16
- return _index.attachmentTagItemClassNames;
17
- },
18
- renderAttachmentTagItem_unstable: function() {
19
- return _index.renderAttachmentTagItem_unstable;
20
- },
21
- useAttachmentTagItemStyles_unstable: function() {
22
- return _index.useAttachmentTagItemStyles_unstable;
23
- },
24
- useAttachmentTagItem_unstable: function() {
25
- return _index.useAttachmentTagItem_unstable;
26
- }
27
- });
28
- const _index = require("./components/AttachmentTagItem/index");
29
- //# sourceMappingURL=AttachmentTagItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["AttachmentTagItem.ts"],"sourcesContent":["export type { AttachmentTagItemProps, AttachmentTagItemSlots, AttachmentTagItemState } from './components/AttachmentTagItem/index';\nexport { AttachmentTagItem, attachmentTagItemClassNames, renderAttachmentTagItem_unstable, useAttachmentTagItemStyles_unstable, useAttachmentTagItem_unstable } from './components/AttachmentTagItem/index';\n"],"names":["AttachmentTagItem","attachmentTagItemClassNames","renderAttachmentTagItem_unstable","useAttachmentTagItemStyles_unstable","useAttachmentTagItem_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACSA,iBAAiB;eAAjBA,wBAAiB;;IAAEC,2BAA2B;eAA3BA,kCAA2B;;IAAEC,gCAAgC;eAAhCA,uCAAgC;;IAAEC,mCAAmC;eAAnCA,0CAAmC;;IAAEC,6BAA6B;eAA7BA,oCAA6B;;;uBAAQ"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- AttachmentTagList: function() {
13
- return _index.AttachmentTagList;
14
- },
15
- attachmentTagListClassNames: function() {
16
- return _index.attachmentTagListClassNames;
17
- },
18
- renderAttachmentTagList_unstable: function() {
19
- return _index.renderAttachmentTagList_unstable;
20
- },
21
- useAttachmentTagListStyles_unstable: function() {
22
- return _index.useAttachmentTagListStyles_unstable;
23
- },
24
- useAttachmentTagList_unstable: function() {
25
- return _index.useAttachmentTagList_unstable;
26
- }
27
- });
28
- const _index = require("./components/AttachmentTagList/index");
29
- //# sourceMappingURL=AttachmentTagList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["AttachmentTagList.ts"],"sourcesContent":["export type { AttachmentTagDismissedData, AttachmentTagListContextValues, AttachmentTagListProps, AttachmentTagListSlots, AttachmentTagListState } from './components/AttachmentTagList/index';\nexport { AttachmentTagList, attachmentTagListClassNames, renderAttachmentTagList_unstable, useAttachmentTagListStyles_unstable, useAttachmentTagList_unstable } from './components/AttachmentTagList/index';\n"],"names":["AttachmentTagList","attachmentTagListClassNames","renderAttachmentTagList_unstable","useAttachmentTagListStyles_unstable","useAttachmentTagList_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACSA,iBAAiB;eAAjBA,wBAAiB;;IAAEC,2BAA2B;eAA3BA,kCAA2B;;IAAEC,gCAAgC;eAAhCA,uCAAgC;;IAAEC,mCAAmC;eAAnCA,0CAAmC;;IAAEC,6BAA6B;eAA7BA,oCAA6B;;;uBAAQ"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "AttachmentTag", {
6
- enumerable: true,
7
- get: function() {
8
- return AttachmentTag;
9
- }
10
- });
11
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
- const _useAttachmentTag = require("./useAttachmentTag");
14
- const _renderAttachmentTag = require("./renderAttachmentTag");
15
- const _useAttachmentTagStylesstyles = require("./useAttachmentTagStyles.styles");
16
- const _reactprovider = require("@fluentui-copilot/react-provider");
17
- const AttachmentTag = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
18
- const state = (0, _useAttachmentTag.useAttachmentTag_unstable)(props, ref);
19
- (0, _useAttachmentTagStylesstyles.useAttachmentTagStyles_unstable)(state);
20
- (0, _reactprovider.useCustomStyleHook)('useAttachmentTagStyles')(state);
21
- return (0, _renderAttachmentTag.renderAttachmentTag_unstable)(state);
22
- });
23
- AttachmentTag.displayName = 'AttachmentTag'; //# sourceMappingURL=AttachmentTag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["AttachmentTag.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useAttachmentTag_unstable } from './useAttachmentTag';\nimport { renderAttachmentTag_unstable } from './renderAttachmentTag';\nimport { useAttachmentTagStyles_unstable } from './useAttachmentTagStyles.styles';\nimport type { AttachmentTagProps } from './AttachmentTag.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n\n/**\n * @deprecated use new Attachment component exported from \\@fluentui-copilot/react-attachments package instead.\n * Deprecated on 4/9/2024.\n */\nexport const AttachmentTag: ForwardRefComponent<AttachmentTagProps> = React.forwardRef((props, ref) => {\n const state = useAttachmentTag_unstable(props, ref);\n\n useAttachmentTagStyles_unstable(state);\n useCustomStyleHook('useAttachmentTagStyles')(state);\n\n return renderAttachmentTag_unstable(state);\n});\n\nAttachmentTag.displayName = 'AttachmentTag';\n"],"names":["state","useAttachmentTag_unstable","props","ref","useAttachmentTagStyles_unstable","renderAttachmentTag_unstable","AttachmentTag"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaQA;;;eAAAA;;;;iEAbe;kCACmB;qCACG;8CACG;+BAGb;AAOjC,MAAMA,gBAAQC,WAAAA,GAAAA,OAA0BC,UAAOC,CAAAA,CAAAA,OAAAA;UAE/CC,QAAAA,IAAAA,2CAAgCJ,EAAAA,OAAAA;qEACb,EAAAA;yCAEZK,EAAAA,0BAA6BL;IACtC,OAAGK,IAAAA,iDAAA,EAAAL;AAEHM"}
@@ -1,7 +0,0 @@
1
- /**
2
- * State used in rendering AttachmentTag
3
- */ "use strict";
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- //# sourceMappingURL=AttachmentTag.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["AttachmentTag.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-components';\n\nexport type AttachmentTagSlots = {\n root: NonNullable<Slot<'button'>>;\n\n media?: Slot<'span'>;\n\n content: NonNullable<Slot<'span'>>;\n\n icon: NonNullable<Slot<'span'>>;\n};\n\n/**\n * AttachmentTag Props\n */\nexport type AttachmentTagProps = ComponentProps<Partial<AttachmentTagSlots>>;\n\n/**\n * State used in rendering AttachmentTag\n */\nexport type AttachmentTagState = ComponentState<AttachmentTagSlots>;\n"],"names":[],"rangeMappings":";;","mappings":"AAiBA;;CAEC"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- ATTACHMENTTAG_MAXWIDTH: function() {
13
- return _useAttachmentTagStylesstyles.ATTACHMENTTAG_MAXWIDTH;
14
- },
15
- AttachmentTag: function() {
16
- return _AttachmentTag.AttachmentTag;
17
- },
18
- attachmentTagClassNames: function() {
19
- return _useAttachmentTagStylesstyles.attachmentTagClassNames;
20
- },
21
- renderAttachmentTag_unstable: function() {
22
- return _renderAttachmentTag.renderAttachmentTag_unstable;
23
- },
24
- useAttachmentTagStyles_unstable: function() {
25
- return _useAttachmentTagStylesstyles.useAttachmentTagStyles_unstable;
26
- },
27
- useAttachmentTag_unstable: function() {
28
- return _useAttachmentTag.useAttachmentTag_unstable;
29
- },
30
- useContentBaseClassName: function() {
31
- return _useAttachmentTagStylesstyles.useContentBaseClassName;
32
- },
33
- useIconBaseClassName: function() {
34
- return _useAttachmentTagStylesstyles.useIconBaseClassName;
35
- },
36
- useMediaBaseClassName: function() {
37
- return _useAttachmentTagStylesstyles.useMediaBaseClassName;
38
- }
39
- });
40
- const _AttachmentTag = require("./AttachmentTag");
41
- const _renderAttachmentTag = require("./renderAttachmentTag");
42
- const _useAttachmentTag = require("./useAttachmentTag");
43
- const _useAttachmentTagStylesstyles = require("./useAttachmentTagStyles.styles");
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export { AttachmentTag } from './AttachmentTag';\nexport type { AttachmentTagProps, AttachmentTagSlots, AttachmentTagState } from './AttachmentTag.types';\nexport { renderAttachmentTag_unstable } from './renderAttachmentTag';\nexport { useAttachmentTag_unstable } from './useAttachmentTag';\nexport { ATTACHMENTTAG_MAXWIDTH, attachmentTagClassNames, useAttachmentTagStyles_unstable, useContentBaseClassName, useIconBaseClassName, useMediaBaseClassName } from './useAttachmentTagStyles.styles';\n"],"names":["ATTACHMENTTAG_MAXWIDTH","AttachmentTag","attachmentTagClassNames","renderAttachmentTag_unstable","useAttachmentTagStyles_unstable","useAttachmentTag_unstable","useContentBaseClassName","useIconBaseClassName","useMediaBaseClassName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAISA,sBAAsB;eAAtBA,oDAAsB;;IAJtBC,aAAa;eAAbA,4BAAa;;IAIWC,uBAAuB;eAAvBA,qDAAuB;;IAF/CC,4BAA4B;eAA5BA,iDAA4B;;IAEqBC,+BAA+B;eAA/BA,6DAA+B;;IADhFC,yBAAyB;eAAzBA,2CAAyB;;IACyDC,uBAAuB;eAAvBA,qDAAuB;;IAAEC,oBAAoB;eAApBA,kDAAoB;;IAAEC,qBAAqB;eAArBA,mDAAqB;;;+BAJjI;qCAEe;kCACH;8CAC6H"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "renderAttachmentTag_unstable", {
6
- enumerable: true,
7
- get: function() {
8
- return renderAttachmentTag_unstable;
9
- }
10
- });
11
- const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
- const _reactcomponents = require("@fluentui/react-components");
13
- const renderAttachmentTag_unstable = (state)=>{
14
- (0, _reactcomponents.assertSlots)(state);
15
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
16
- children: [
17
- state.media && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.media, {}),
18
- /*#__PURE__*/ (0, _jsxruntime.jsx)(state.content, {}),
19
- /*#__PURE__*/ (0, _jsxruntime.jsx)(state.icon, {})
20
- ]
21
- });
22
- }; //# sourceMappingURL=renderAttachmentTag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["renderAttachmentTag.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { AttachmentTagState, AttachmentTagSlots } from './AttachmentTag.types';\n\n/**\n * Render the final JSX of AttachmentTag\n */\nexport const renderAttachmentTag_unstable = (state: AttachmentTagState) => {\n assertSlots<AttachmentTagSlots>(state);\n\n return (\n <state.root>\n {state.media && <state.media />}\n <state.content />\n <state.icon />\n </state.root>\n );\n};\n"],"names":["assertSlots","state","media","_jsx","content","icon"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUEA;;;eAAAA;;;4BATF;iCAE4B;AAO1BA,MAAAA,+BAAgCC,CAAAA;oCAEhC,EAAAA;;kBAEKA;YAAAA,MAAMC,KAAK,IAAA,WAAI,GAAAC,IAAAA,eAACF,EAAAA,MAAMC,KAAK,EAAA,CAAA;YAAA,WAAA,GAAAC,IAAAA,eAAA,EAAAF,MAAAG,OAAA,EAAA,CAAA;YAAA,WAAA,GAAAD,IAAAA,eAAA,EAAAF,MAAAI,IAAA,EAAA,CAAA;SAAA"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "useAttachmentTag_unstable", {
6
- enumerable: true,
7
- get: function() {
8
- return useAttachmentTag_unstable;
9
- }
10
- });
11
- const _useAttachmentTagSlots = require("../utils/useAttachmentTagSlots");
12
- const useAttachmentTag_unstable = (props, ref)=>{
13
- return (0, _useAttachmentTagSlots.useAttachmentTagSlots)(props, ref, {
14
- elementType: {
15
- root: 'button',
16
- media: 'span',
17
- content: 'span',
18
- icon: 'span'
19
- }
20
- });
21
- }; //# sourceMappingURL=useAttachmentTag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useAttachmentTag.tsx"],"sourcesContent":["import type * as React from 'react';\nimport { useAttachmentTagSlots } from '../utils/useAttachmentTagSlots';\nimport type { AttachmentTagProps, AttachmentTagState } from './AttachmentTag.types';\n\n/**\n * Create the state required to render AttachmentTag.\n *\n * The returned state can be modified with hooks such as useAttachmentTagStyles_unstable,\n * before being passed to renderAttachmentTag_unstable.\n *\n * @param props - props from this instance of AttachmentTag\n * @param ref - reference to root HTMLElement of AttachmentTag\n */\nexport const useAttachmentTag_unstable = (\n props: AttachmentTagProps,\n ref: React.Ref<HTMLButtonElement>,\n): AttachmentTagState => {\n return useAttachmentTagSlots(props, ref, {\n elementType: { root: 'button', media: 'span', content: 'span', icon: 'span' },\n });\n};\n"],"names":["useAttachmentTagSlots","ref","elementType","props","root","media","content","icon"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAiBSA;;;eAAAA;;;uCAhB6B;AAgBpC,MAAOA,4BAA6BC,CAAAA,OAAKA;WACvCC,IAAAA,4CAAa,EAAAC,OAAAF,KAAA;qBAAEG;kBAAgBC;mBAAeC;qBAAiBC;kBAAa;QAC9E;IACA"}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- ATTACHMENTTAG_MAXWIDTH: function() {
13
- return ATTACHMENTTAG_MAXWIDTH;
14
- },
15
- attachmentTagClassNames: function() {
16
- return attachmentTagClassNames;
17
- },
18
- useAttachmentTagStyles_unstable: function() {
19
- return useAttachmentTagStyles_unstable;
20
- },
21
- useContentBaseClassName: function() {
22
- return useContentBaseClassName;
23
- },
24
- useIconBaseClassName: function() {
25
- return useIconBaseClassName;
26
- },
27
- useMediaBaseClassName: function() {
28
- return useMediaBaseClassName;
29
- }
30
- });
31
- const _reactcomponents = require("@fluentui/react-components");
32
- const attachmentTagClassNames = {
33
- root: 'fai-AttachmentTag',
34
- media: 'fai-AttachmentTag__media',
35
- content: 'fai-AttachmentTag__content',
36
- icon: 'fai-AttachmentTag__icon'
37
- };
38
- const ATTACHMENTTAG_MAXWIDTH = '180px';
39
- const ATTACHMENTTAG_SIZE = '20px';
40
- const useRootBaseClassName = (0, _reactcomponents.__resetStyles)("r1km3emv", "r21ecva", [
41
- ".r1km3emv{color:var(--colorNeutralForeground1);align-items:center;background-color:var(--colorNeutralBackground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);box-sizing:border-box;column-gap:var(--spacingHorizontalSNudge);cursor:pointer;display:inline-flex;flex-wrap:nowrap;justify-content:center;max-width:180px;padding:var(--spacingVerticalXS) var(--spacingHorizontalXS) var(--spacingVerticalXS) var(--spacingHorizontalS);vertical-align:middle;}",
42
- ".r1km3emv:hover{border-color:var(--colorNeutralStroke1Hover);}",
43
- ".r1km3emv:hover .fai-AttachmentTag__icon{color:var(--colorBrandForegroundLinkHover);}",
44
- ".r1km3emv:hover:active{border-color:var(--colorNeutralStroke1Pressed);}",
45
- ".r1km3emv:hover:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}",
46
- ".r1km3emv:focus .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandHover);}",
47
- ".r1km3emv:focus:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}",
48
- ".r21ecva{color:var(--colorNeutralForeground1);align-items:center;background-color:var(--colorNeutralBackground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);box-sizing:border-box;column-gap:var(--spacingHorizontalSNudge);cursor:pointer;display:inline-flex;flex-wrap:nowrap;justify-content:center;max-width:180px;padding:var(--spacingVerticalXS) var(--spacingHorizontalS) var(--spacingVerticalXS) var(--spacingHorizontalXS);vertical-align:middle;}",
49
- ".r21ecva:hover{border-color:var(--colorNeutralStroke1Hover);}",
50
- ".r21ecva:hover .fai-AttachmentTag__icon{color:var(--colorBrandForegroundLinkHover);}",
51
- ".r21ecva:hover:active{border-color:var(--colorNeutralStroke1Pressed);}",
52
- ".r21ecva:hover:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}",
53
- ".r21ecva:focus .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandHover);}",
54
- ".r21ecva:focus:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}"
55
- ]);
56
- const useMediaBaseClassName = (0, _reactcomponents.__resetStyles)("r19jnv3a", null, [
57
- ".r19jnv3a{font-size:20px;height:20px;line-height:20px;width:20px;}"
58
- ]);
59
- const useContentBaseClassName = (0, _reactcomponents.__resetStyles)("rmt99gk", null, [
60
- ".rmt99gk{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"
61
- ]);
62
- const useIconBaseClassName = (0, _reactcomponents.__resetStyles)("r176grtk", null, [
63
- ".r176grtk{align-items:center;border-radius:var(--borderRadiusCircular);border:var(--strokeWidthThin) solid var(--colorTransparentStroke);box-sizing:border-box;color:var(--colorNeutralForeground1);display:inline-flex;font-size:20px;height:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingVerticalXXS));justify-content:center;max-width:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingHorizontalXXS));min-width:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingHorizontalXXS));padding:calc(var(--spacingVerticalXXS) / 2) calc(var(--spacingHorizontalXXS) / 2);}"
64
- ]);
65
- const useAttachmentTagStyles_unstable = (state)=>{
66
- 'use no memo';
67
- const rootBaseClassName = useRootBaseClassName();
68
- const mediaBaseClassName = useMediaBaseClassName();
69
- const contentBaseClassName = useContentBaseClassName();
70
- const iconBaseClassName = useIconBaseClassName();
71
- state.root.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.root, rootBaseClassName, state.root.className);
72
- if (state.media) {
73
- state.media.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.media, mediaBaseClassName, state.media.className);
74
- }
75
- state.content.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.content, contentBaseClassName, state.content.className);
76
- state.icon.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.icon, iconBaseClassName, state.icon.className);
77
- return state;
78
- }; //# sourceMappingURL=useAttachmentTagStyles.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useAttachmentTagStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { AttachmentTagSlots, AttachmentTagState } from './AttachmentTag.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentTagClassNames: SlotClassNames<AttachmentTagSlots> = {\n root: 'fai-AttachmentTag',\n media: 'fai-AttachmentTag__media',\n content: 'fai-AttachmentTag__content',\n icon: 'fai-AttachmentTag__icon',\n};\n\n/**\n * @internal\n */\nexport const ATTACHMENTTAG_MAXWIDTH = '180px';\nconst ATTACHMENTTAG_SIZE = '20px';\n\nconst useRootBaseClassName = makeResetStyles({\n color: tokens.colorNeutralForeground1,\n alignItems: 'center',\n backgroundColor: tokens.colorNeutralBackground1,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n columnGap: tokens.spacingHorizontalSNudge,\n cursor: 'pointer',\n display: 'inline-flex',\n flexWrap: 'nowrap',\n justifyContent: 'center',\n maxWidth: ATTACHMENTTAG_MAXWIDTH,\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,\n verticalAlign: 'middle',\n\n ':hover': {\n borderColor: tokens.colorNeutralStroke1Hover,\n\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorBrandForegroundLinkHover,\n },\n },\n\n ':hover:active': {\n borderColor: tokens.colorNeutralStroke1Pressed,\n\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n\n ':focus': {\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandHover,\n },\n },\n\n ':focus:active': {\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n});\n\n/**\n * @internal\n */\nexport const useMediaBaseClassName = makeResetStyles({\n fontSize: ATTACHMENTTAG_SIZE,\n height: ATTACHMENTTAG_SIZE,\n lineHeight: ATTACHMENTTAG_SIZE,\n width: ATTACHMENTTAG_SIZE,\n});\n\n/**\n * @internal\n */\nexport const useContentBaseClassName = makeResetStyles({\n overflowX: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n ...typographyStyles.body1,\n});\n\n/**\n * @internal\n */\nexport const useIconBaseClassName = makeResetStyles({\n alignItems: 'center',\n borderRadius: tokens.borderRadiusCircular,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n boxSizing: 'border-box',\n color: tokens.colorNeutralForeground1,\n display: 'inline-flex',\n fontSize: ATTACHMENTTAG_SIZE,\n height: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,\n justifyContent: 'center',\n maxWidth: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n minWidth: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`,\n});\n\n/**\n * Apply styling to the AttachmentTag slots based on the state\n */\nexport const useAttachmentTagStyles_unstable = (state: AttachmentTagState): AttachmentTagState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const iconBaseClassName = useIconBaseClassName();\n\n state.root.className = mergeClasses(attachmentTagClassNames.root, rootBaseClassName, state.root.className);\n\n if (state.media) {\n state.media.className = mergeClasses(attachmentTagClassNames.media, mediaBaseClassName, state.media.className);\n }\n\n state.content.className = mergeClasses(\n attachmentTagClassNames.content,\n contentBaseClassName,\n state.content.className,\n );\n\n state.icon.className = mergeClasses(attachmentTagClassNames.icon, iconBaseClassName, state.icon.className);\n\n return state;\n};\n"],"names":["ATTACHMENTTAG_SIZE","attachmentTagClassNames","useAttachmentTagStyles_unstable","useContentBaseClassName","useIconBaseClassName","spacingVerticalXS","borderRadius","borderRadiusMedium","root","media","content","icon","useRootBaseClassName","color","colorNeutralForeground1","display","__resetStyles","padding","tokens","spacingHorizontalXS","state","rootBaseClassName","mediaBaseClassName","useMediaBaseClassName","borderColor","colorNeutralStroke1Pressed","iconBaseClassName","colorNeutralForeground2BrandPressed","className","mergeClasses","contentBaseClassName","colorNeutralForeground2BrandHover"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAgBMA,sBAAqB;eAArBA;;IAXOC,uBAAAA;eAAAA;;IAgCJC,+BAA+B;eAA/BA;;IAVEC,uBAAA;eAAAA;;IAIAC,oBAAUC;eAAVD;;IARTE,qBAAqBC;eAArBD;;;iCAvBsD;AAKjD,MAAML,0BAA8D;UACzEO;WACAC;aACAC;UACAC;AACF;AAMMX,MAAAA,yBAAqB;AAE3B,MAAMY,qBAAAA;MACJC,uBAAcC,IAAAA,8BAAuB,EAAA,YAAA,WAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;CAAA;AAIrCR,MAAAA,wBAAqBC,IAAAA,8BAAkB,EAAA,YAAA,MAAA;IAAA;CAAA;AAIvCQ,MAASZ,0BAAAa,IAAAA,8BAAA,EAAA,WAAA,MAAA;IAAA;CAAA;AAITC,MAASb,uBAAUC,IAAAA,8BAAqBa,EAAAA,YAAOC,MAAAA;IAAAA;CAA8E;MAMtHjB,kCAAiCkB,CAAAA;;UAGxCC,oBAAAT;UAEAU,qBAAiBC;UACfC,uBAAoBC;UAEpBC,oBAAOzB;cACLY,CAAAA,SAAOK,GAAAA,IAAAA,6BAAOS,EAAAA,wBAAmCnB,IAAA,EAAAa,mBAAAD,MAAAZ,IAAA,CAAAoB,SAAA;cACnDnB,KAAA,EAAA;QACFW,MAAAX,KAAA,CAAAmB,SAAA,GAAAC,IAAAA,6BAAA,EAAA5B,wBAAAQ,KAAA,EAAAa,oBAAAF,MAAAX,KAAA,CAAAmB,SAAA;;UAGElB,OAAOT,CAAAA,SAAAA,GAAAA,IAAAA,6BAAwBU,EAAAA,wBAASD,OAAA,EAAAoB,sBAAAV,MAAAV,OAAA,CAAAkB,SAAA;cACtCf,CAAAA,SAAOK,GAAAA,IAAAA,6BAAOa,EAAAA,wBAAiCpB,IAAA,EAAAe,mBAAAN,MAAAT,IAAA,CAAAiB,SAAA;WACjDR;4DAGe"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "AttachmentTagItem", {
6
- enumerable: true,
7
- get: function() {
8
- return AttachmentTagItem;
9
- }
10
- });
11
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
- const _useAttachmentTagItem = require("./useAttachmentTagItem");
14
- const _renderAttachmentTagItem = require("./renderAttachmentTagItem");
15
- const _useAttachmentTagItemStylesstyles = require("./useAttachmentTagItemStyles.styles");
16
- const AttachmentTagItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
- const state = (0, _useAttachmentTagItem.useAttachmentTagItem_unstable)(props, ref);
18
- (0, _useAttachmentTagItemStylesstyles.useAttachmentTagItemStyles_unstable)(state);
19
- return (0, _renderAttachmentTagItem.renderAttachmentTagItem_unstable)(state);
20
- });
21
- AttachmentTagItem.displayName = 'AttachmentTagItem'; //# sourceMappingURL=AttachmentTagItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["AttachmentTagItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useAttachmentTagItem_unstable } from './useAttachmentTagItem';\nimport { renderAttachmentTagItem_unstable } from './renderAttachmentTagItem';\nimport { useAttachmentTagItemStyles_unstable } from './useAttachmentTagItemStyles.styles';\nimport type { AttachmentTagItemProps } from './AttachmentTagItem.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\n\n/**\n * @deprecated use new AttachmentOverflowMenuItem component exported from \\@fluentui-copilot/react-attachments package instead.\n * Deprecated on 4/9/2024.\n */\nexport const AttachmentTagItem: ForwardRefComponent<AttachmentTagItemProps> = React.forwardRef((props, ref) => {\n const state = useAttachmentTagItem_unstable(props, ref);\n\n useAttachmentTagItemStyles_unstable(state);\n return renderAttachmentTagItem_unstable(state);\n});\n\nAttachmentTagItem.displayName = 'AttachmentTagItem';\n"],"names":["state","useAttachmentTagItem_unstable","props","ref","useAttachmentTagItemStyles_unstable","renderAttachmentTagItem_unstable","AttachmentTagItem"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYQA;;;eAAAA;;;;iEAZe;sCACuB;yCACG;kDACG;AASlD,MAAMA,oBAAQC,WAAAA,GAAAA,OAA8BC,UAAOC,CAAAA,CAAAA,OAAAA;UAEnDC,QAAAA,IAAAA,mDAAoCJ,EAAAA,OAAAA;6EAC7BK,EAAAA;IACT,OAAGA,IAAAA,yDAAA,EAAAL;AAEHM"}
@@ -1,7 +0,0 @@
1
- /**
2
- * State used in rendering AttachmentTagItem
3
- */ "use strict";
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- //# sourceMappingURL=AttachmentTagItem.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["AttachmentTagItem.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-components';\n\nexport type AttachmentTagItemSlots = {\n root: NonNullable<Slot<'div'>>;\n media?: Slot<'span'>;\n content: NonNullable<Slot<'span'>>;\n icon: NonNullable<Slot<'span'>>;\n};\n\n/**\n * AttachmentTagItem Props\n */\nexport type AttachmentTagItemProps = ComponentProps<Partial<AttachmentTagItemSlots>>;\n\n/**\n * State used in rendering AttachmentTagItem\n */\nexport type AttachmentTagItemState = ComponentState<AttachmentTagItemSlots>;\n"],"names":[],"rangeMappings":";;","mappings":"AAcA;;CAEC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- AttachmentTagItem: function() {
13
- return _AttachmentTagItem.AttachmentTagItem;
14
- },
15
- attachmentTagItemClassNames: function() {
16
- return _useAttachmentTagItemStylesstyles.attachmentTagItemClassNames;
17
- },
18
- renderAttachmentTagItem_unstable: function() {
19
- return _renderAttachmentTagItem.renderAttachmentTagItem_unstable;
20
- },
21
- useAttachmentTagItemStyles_unstable: function() {
22
- return _useAttachmentTagItemStylesstyles.useAttachmentTagItemStyles_unstable;
23
- },
24
- useAttachmentTagItem_unstable: function() {
25
- return _useAttachmentTagItem.useAttachmentTagItem_unstable;
26
- }
27
- });
28
- const _AttachmentTagItem = require("./AttachmentTagItem");
29
- const _renderAttachmentTagItem = require("./renderAttachmentTagItem");
30
- const _useAttachmentTagItem = require("./useAttachmentTagItem");
31
- const _useAttachmentTagItemStylesstyles = require("./useAttachmentTagItemStyles.styles");
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export { AttachmentTagItem } from './AttachmentTagItem';\nexport type { AttachmentTagItemProps, AttachmentTagItemSlots, AttachmentTagItemState } from './AttachmentTagItem.types';\nexport { renderAttachmentTagItem_unstable } from './renderAttachmentTagItem';\nexport { useAttachmentTagItem_unstable } from './useAttachmentTagItem';\nexport { attachmentTagItemClassNames, useAttachmentTagItemStyles_unstable } from './useAttachmentTagItemStyles.styles';\n"],"names":["AttachmentTagItem","attachmentTagItemClassNames","renderAttachmentTagItem_unstable","useAttachmentTagItemStyles_unstable","useAttachmentTagItem_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,iBAAiB;eAAjBA,oCAAiB;;IAIjBC,2BAA2B;eAA3BA,6DAA2B;;IAF3BC,gCAAgC;eAAhCA,yDAAgC;;IAEHC,mCAAmC;eAAnCA,qEAAmC;;IADhEC,6BAA6B;eAA7BA,mDAA6B;;;mCAHJ;yCAEe;sCACH;kDACmC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "renderAttachmentTagItem_unstable", {
6
- enumerable: true,
7
- get: function() {
8
- return renderAttachmentTagItem_unstable;
9
- }
10
- });
11
- const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
- const _reactcomponents = require("@fluentui/react-components");
13
- const renderAttachmentTagItem_unstable = (state)=>{
14
- (0, _reactcomponents.assertSlots)(state);
15
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
16
- children: [
17
- state.media && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.media, {}),
18
- /*#__PURE__*/ (0, _jsxruntime.jsx)(state.content, {}),
19
- /*#__PURE__*/ (0, _jsxruntime.jsx)(state.icon, {})
20
- ]
21
- });
22
- }; //# sourceMappingURL=renderAttachmentTagItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["renderAttachmentTagItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { AttachmentTagItemState, AttachmentTagItemSlots } from './AttachmentTagItem.types';\n\n/**\n * Render the final JSX of AttachmentTagItem\n */\nexport const renderAttachmentTagItem_unstable = (state: AttachmentTagItemState) => {\n assertSlots<AttachmentTagItemSlots>(state);\n\n return (\n <state.root>\n {state.media && <state.media />}\n <state.content />\n <state.icon />\n </state.root>\n );\n};\n"],"names":["assertSlots","state","media","_jsx","content","icon"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUEA;;;eAAAA;;;4BATF;iCAE4B;AAO1BA,MAAAA,mCAAoCC,CAAAA;oCAEpC,EAAAA;;kBAEKA;YAAAA,MAAMC,KAAK,IAAA,WAAI,GAAAC,IAAAA,eAACF,EAAAA,MAAMC,KAAK,EAAA,CAAA;YAAA,WAAA,GAAAC,IAAAA,eAAA,EAAAF,MAAAG,OAAA,EAAA,CAAA;YAAA,WAAA,GAAAD,IAAAA,eAAA,EAAAF,MAAAI,IAAA,EAAA,CAAA;SAAA"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "useAttachmentTagItem_unstable", {
6
- enumerable: true,
7
- get: function() {
8
- return useAttachmentTagItem_unstable;
9
- }
10
- });
11
- const _useAttachmentTagSlots = require("../utils/useAttachmentTagSlots");
12
- const useAttachmentTagItem_unstable = (props, ref)=>{
13
- return (0, _useAttachmentTagSlots.useAttachmentTagSlots)(props, ref, {
14
- elementType: {
15
- root: 'div',
16
- media: 'span',
17
- content: 'span',
18
- icon: 'span'
19
- }
20
- });
21
- }; //# sourceMappingURL=useAttachmentTagItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useAttachmentTagItem.ts"],"sourcesContent":["import type * as React from 'react';\nimport { useAttachmentTagSlots } from '../utils/useAttachmentTagSlots';\nimport type { AttachmentTagItemProps, AttachmentTagItemState } from './AttachmentTagItem.types';\n\n/**\n * Create the state required to render AttachmentTagItem.\n *\n * The returned state can be modified with hooks such as useAttachmentTagItemStyles_unstable,\n * before being passed to renderAttachmentTagItem_unstable.\n *\n * @param props - props from this instance of AttachmentTagItem\n * @param ref - reference to root HTMLElement of AttachmentTagItem\n */\nexport const useAttachmentTagItem_unstable = (\n props: AttachmentTagItemProps,\n ref: React.Ref<HTMLDivElement>,\n): AttachmentTagItemState => {\n return useAttachmentTagSlots(props, ref, {\n elementType: { root: 'div', media: 'span', content: 'span', icon: 'span' },\n });\n};\n"],"names":["useAttachmentTagSlots","props","ref","elementType","root","media","content","icon"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAiBSA;;;eAAAA;;;uCAhB6B;AAgBpC,MAAOA,gCAAkC,CAAAC,OAAAC;WACvCC,IAAAA,4CAAa,EAAAF,OAAAC,KAAA;qBAAEE;kBAAaC;mBAAeC;qBAAiBC;kBAAa;QAC3E;IACA"}