@fluentui-copilot/react-attachments 0.0.0-nightly-20240404-0406-2afa9891.1 → 0.0.0-nightly-20240408-0405-7fb364f9.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 (101) hide show
  1. package/CHANGELOG.json +5 -5
  2. package/CHANGELOG.md +5 -5
  3. package/dist/index.d.ts +137 -1
  4. package/lib/AttachmentOverflowMenu.js +2 -0
  5. package/lib/AttachmentOverflowMenu.js.map +1 -0
  6. package/lib/AttachmentOverflowMenuButton.js +2 -0
  7. package/lib/AttachmentOverflowMenuButton.js.map +1 -0
  8. package/lib/AttachmentOverflowMenuItem.js +2 -0
  9. package/lib/AttachmentOverflowMenuItem.js.map +1 -0
  10. package/lib/components/AttachmentList/AttachmentList.types.js.map +1 -1
  11. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +15 -0
  12. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -0
  13. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +2 -0
  14. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js.map +1 -0
  15. package/lib/components/AttachmentOverflowMenu/index.js +6 -0
  16. package/lib/components/AttachmentOverflowMenu/index.js.map +1 -0
  17. package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +18 -0
  18. package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -0
  19. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +24 -0
  20. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -0
  21. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +17 -0
  22. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -0
  23. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +11 -0
  24. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -0
  25. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +2 -0
  26. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js.map +1 -0
  27. package/lib/components/AttachmentOverflowMenuButton/index.js +6 -0
  28. package/lib/components/AttachmentOverflowMenuButton/index.js.map +1 -0
  29. package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +14 -0
  30. package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -0
  31. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +32 -0
  32. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -0
  33. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.js +17 -0
  34. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.js.map +1 -0
  35. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +11 -0
  36. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -0
  37. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +2 -0
  38. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js.map +1 -0
  39. package/lib/components/AttachmentOverflowMenuItem/index.js +6 -0
  40. package/lib/components/AttachmentOverflowMenuItem/index.js.map +1 -0
  41. package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +10 -0
  42. package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -0
  43. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +41 -0
  44. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -0
  45. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.js +14 -0
  46. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.js.map +1 -0
  47. package/lib/components/index.js +3 -0
  48. package/lib/components/index.js.map +1 -1
  49. package/lib/contexts/attachmentOverflowMenuContext.js +10 -0
  50. package/lib/contexts/attachmentOverflowMenuContext.js.map +1 -0
  51. package/lib/index.js +4 -0
  52. package/lib/index.js.map +1 -1
  53. package/lib-commonjs/AttachmentOverflowMenu.js +7 -0
  54. package/lib-commonjs/AttachmentOverflowMenu.js.map +1 -0
  55. package/lib-commonjs/AttachmentOverflowMenuButton.js +7 -0
  56. package/lib-commonjs/AttachmentOverflowMenuButton.js.map +1 -0
  57. package/lib-commonjs/AttachmentOverflowMenuItem.js +7 -0
  58. package/lib-commonjs/AttachmentOverflowMenuItem.js.map +1 -0
  59. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +24 -0
  60. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -0
  61. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +5 -0
  62. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js.map +1 -0
  63. package/lib-commonjs/components/AttachmentOverflowMenu/index.js +11 -0
  64. package/lib-commonjs/components/AttachmentOverflowMenu/index.js.map +1 -0
  65. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +21 -0
  66. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -0
  67. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +21 -0
  68. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -0
  69. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +22 -0
  70. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -0
  71. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +21 -0
  72. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -0
  73. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +5 -0
  74. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js.map +1 -0
  75. package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js +11 -0
  76. package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js.map +1 -0
  77. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +24 -0
  78. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -0
  79. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +28 -0
  80. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -0
  81. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.js +37 -0
  82. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.js.map +1 -0
  83. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +21 -0
  84. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -0
  85. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +5 -0
  86. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js.map +1 -0
  87. package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js +11 -0
  88. package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js.map +1 -0
  89. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +16 -0
  90. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -0
  91. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +39 -0
  92. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -0
  93. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.js +28 -0
  94. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.js.map +1 -0
  95. package/lib-commonjs/components/index.js +3 -0
  96. package/lib-commonjs/components/index.js.map +1 -1
  97. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js +30 -0
  98. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js.map +1 -0
  99. package/lib-commonjs/index.js +52 -0
  100. package/lib-commonjs/index.js.map +1 -1
  101. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenuItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { MenuItem, mergeCallbacks, slot, useIsOverflowItemVisible } from '@fluentui/react-components';\nimport { Dismiss20Filled, Dismiss20Regular, bundleIcon } from '@fluentui/react-icons';\nimport { useAttachmentListContext_unstable } from '../../contexts/attachmentListContext';\nimport type {\n AttachmentOverflowMenuItemProps,\n AttachmentOverflowMenuItemState,\n} from './AttachmentOverflowMenuItem.types';\n\n/**\n * Create the state required to render AttachmentOverflowMenuItem.\n *\n * The returned state can be modified with hooks such as useAttachmentOverflowMenuItemStyles_unstable,\n * before being passed to renderAttachmentOverflowMenuItem_unstable.\n *\n * @param props - props from this instance of AttachmentOverflowMenuItem\n * @param ref - reference to root HTMLElement of AttachmentOverflowMenuItem\n */\nexport const useAttachmentOverflowMenuItem_unstable = (\n props: AttachmentOverflowMenuItemProps,\n ref: React.Ref<HTMLDivElement>,\n): AttachmentOverflowMenuItemState => {\n const { id, media } = props;\n const DismissIcon = bundleIcon(Dismiss20Filled, Dismiss20Regular);\n const isVisible = useIsOverflowItemVisible(id);\n\n const onAttachmentDismiss = useAttachmentListContext_unstable(context => context.onAttachmentDismiss);\n\n const root = slot.always(\n { ref, icon: media, secondaryContent: <DismissIcon />, ...props },\n { elementType: MenuItem },\n );\n root.onClick = mergeCallbacks(root.onClick, ev =>\n onAttachmentDismiss?.(ev, {\n id,\n }),\n );\n\n return {\n components: {\n root: MenuItem,\n },\n root,\n isVisible,\n };\n};\n"],"names":["React","MenuItem","mergeCallbacks","slot","useIsOverflowItemVisible","Dismiss20Filled","Dismiss20Regular","bundleIcon","useAttachmentListContext_unstable","useAttachmentOverflowMenuItem_unstable","props","ref","id","media","DismissIcon","isVisible","onAttachmentDismiss","context","root","always","icon","secondaryContent","elementType","onClick","ev","components"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,QAAQ,EAAEC,cAAc,EAAEC,IAAI,EAAEC,wBAAwB,QAAQ,6BAA6B;AACtG,SAASC,eAAe,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,wBAAwB;AACtF,SAASC,iCAAiC,QAAQ,uCAAuC;AAMzF;;;;;;;;CAQC,GACD,OAAO,MAAMC,yCAAyC,CACpDC,OACAC;IAEA,MAAM,EAAEC,EAAE,EAAEC,KAAK,EAAE,GAAGH;IACtB,MAAMI,cAAcP,WAAWF,iBAAiBC;IAChD,MAAMS,YAAYX,yBAAyBQ;IAE3C,MAAMI,sBAAsBR,kCAAkCS,CAAAA,UAAWA,QAAQD,mBAAmB;IAEpG,MAAME,OAAOf,KAAKgB,MAAM,CACtB;QAAER;QAAKS,MAAMP;QAAOQ,gCAAkB,oBAACP;QAAgB,GAAGJ,KAAK;IAAC,GAChE;QAAEY,aAAarB;IAAS;IAE1BiB,KAAKK,OAAO,GAAGrB,eAAegB,KAAKK,OAAO,EAAEC,CAAAA,KAC1CR,gCAAAA,0CAAAA,oBAAsBQ,IAAI;YACxBZ;QACF;IAGF,OAAO;QACLa,YAAY;YACVP,MAAMjB;QACR;QACAiB;QACAH;IACF;AACF,EAAE"}
@@ -0,0 +1,14 @@
1
+ import { __resetStyles, mergeClasses } from '@fluentui/react-components';
2
+ export const attachmentOverflowMenuItemClassNames = {
3
+ root: 'fai-AttachmentOverflowMenuItem'
4
+ };
5
+ const useRootBaseClassName = __resetStyles("r0", null, []);
6
+ /**
7
+ * Apply styling to the AttachmentList slots based on the state
8
+ */
9
+ export const useAttachmentOverflowMenuItemStyles_unstable = state => {
10
+ const rootBaseClassName = useRootBaseClassName();
11
+ state.root.className = mergeClasses(attachmentOverflowMenuItemClassNames.root, rootBaseClassName, state.root.className);
12
+ return state;
13
+ };
14
+ //# sourceMappingURL=useAttachmentOverflowMenuItemStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenuItemStyles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@fluentui/react-components';\nimport type {\n AttachmentOverflowMenuItemSlots,\n AttachmentOverflowMenuItemState,\n} from './AttachmentOverflowMenuItem.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentOverflowMenuItemClassNames: SlotClassNames<AttachmentOverflowMenuItemSlots> = {\n root: 'fai-AttachmentOverflowMenuItem',\n};\n\nconst useRootBaseClassName = makeResetStyles({});\n\n/**\n * Apply styling to the AttachmentList slots based on the state\n */\nexport const useAttachmentOverflowMenuItemStyles_unstable = (\n state: AttachmentOverflowMenuItemState,\n): AttachmentOverflowMenuItemState => {\n const rootBaseClassName = useRootBaseClassName();\n\n state.root.className = mergeClasses(\n attachmentOverflowMenuItemClassNames.root,\n rootBaseClassName,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","attachmentOverflowMenuItemClassNames","root","useRootBaseClassName","useAttachmentOverflowMenuItemStyles_unstable","state","rootBaseClassName","className"],"mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,QAAQ,6BAA6B;AAO3E,OAAO,MAAMC,uCAAwF;IACnGC,MAAM;AACR,EAAE;AAEF,MAAMC,uBAAuBJ,gBAAgB,CAAC;AAE9C;;CAEC,GACD,OAAO,MAAMK,+CAA+C,CAC1DC;IAEA,MAAMC,oBAAoBH;IAE1BE,MAAMH,IAAI,CAACK,SAAS,GAAGP,aACrBC,qCAAqCC,IAAI,EACzCI,mBACAD,MAAMH,IAAI,CAACK,SAAS;IAGtB,OAAOF;AACT,EAAE"}
@@ -3,4 +3,7 @@ export * from './AttachmentTagList';
3
3
  export * from './AttachmentTagItem';
4
4
  export * from './Attachment';
5
5
  export * from './AttachmentList';
6
+ export * from './AttachmentOverflowMenu';
7
+ export * from './AttachmentOverflowMenuButton';
8
+ export * from './AttachmentOverflowMenuItem';
6
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './AttachmentTag';\nexport * from './AttachmentTagList';\nexport * from './AttachmentTagItem';\nexport * from './Attachment';\nexport * from './AttachmentList';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,sBAAsB;AACpC,cAAc,sBAAsB;AACpC,cAAc,eAAe;AAC7B,cAAc,mBAAmB"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './AttachmentTag';\nexport * from './AttachmentTagList';\nexport * from './AttachmentTagItem';\nexport * from './Attachment';\nexport * from './AttachmentList';\nexport * from './AttachmentOverflowMenu';\nexport * from './AttachmentOverflowMenuButton';\nexport * from './AttachmentOverflowMenuItem';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,sBAAsB;AACpC,cAAc,sBAAsB;AACpC,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,2BAA2B;AACzC,cAAc,iCAAiC;AAC/C,cAAc,+BAA+B"}
@@ -0,0 +1,10 @@
1
+ import { createContext, useContextSelector } from '@fluentui/react-context-selector';
2
+ export const AttachmentOverflowMenuContext = createContext(undefined);
3
+ const overflowMenuContextDefaultValue = {
4
+ isOverflowing: false,
5
+ overflowButtonRef: undefined,
6
+ overflowCount: 0
7
+ };
8
+ export const AttachmentOverflowMenuProvider = AttachmentOverflowMenuContext.Provider;
9
+ export const useAttachmentOverflowMenuContext_unstable = selector => useContextSelector(AttachmentOverflowMenuContext, (ctx = overflowMenuContextDefaultValue) => selector(ctx));
10
+ //# sourceMappingURL=attachmentOverflowMenuContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["attachmentOverflowMenuContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentOverflowMenuState } from '../components/index';\n\nexport const AttachmentOverflowMenuContext: Context<AttachmentOverflowMenuContextValue> = createContext<\n AttachmentOverflowMenuContextValue | undefined\n>(undefined) as Context<AttachmentOverflowMenuContextValue>;\n\nconst overflowMenuContextDefaultValue: AttachmentOverflowMenuContextValue = {\n isOverflowing: false,\n overflowButtonRef: undefined,\n overflowCount: 0,\n};\n\n/**\n * Context shared between AttachmentOverflowMenu and its children components\n */\nexport type AttachmentOverflowMenuContextValue = Pick<\n AttachmentOverflowMenuState,\n 'isOverflowing' | 'overflowButtonRef' | 'overflowCount'\n>;\nexport const AttachmentOverflowMenuProvider = AttachmentOverflowMenuContext.Provider;\n\nexport const useAttachmentOverflowMenuContext_unstable = <T>(\n selector: ContextSelector<AttachmentOverflowMenuContextValue, T>,\n) => useContextSelector(AttachmentOverflowMenuContext, (ctx = overflowMenuContextDefaultValue) => selector(ctx));\n"],"names":["createContext","useContextSelector","AttachmentOverflowMenuContext","undefined","overflowMenuContextDefaultValue","isOverflowing","overflowButtonRef","overflowCount","AttachmentOverflowMenuProvider","Provider","useAttachmentOverflowMenuContext_unstable","selector","ctx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,kBAAkB,QAAQ,mCAAmC;AAIrF,OAAO,MAAMC,gCAA6EF,cAExFG,WAA0D;AAE5D,MAAMC,kCAAsE;IAC1EC,eAAe;IACfC,mBAAmBH;IACnBI,eAAe;AACjB;AASA,OAAO,MAAMC,iCAAiCN,8BAA8BO,QAAQ,CAAC;AAErF,OAAO,MAAMC,4CAA4C,CACvDC,WACGV,mBAAmBC,+BAA+B,CAACU,MAAMR,+BAA+B,GAAKO,SAASC,MAAM"}
package/lib/index.js CHANGED
@@ -4,4 +4,8 @@ export { AttachmentTagItem, attachmentTagItemClassNames, renderAttachmentTagItem
4
4
  export { AttachmentList, attachmentListClassNames, renderAttachmentList_unstable, useAttachmentListStyles_unstable, useAttachmentList_unstable } from './AttachmentList';
5
5
  export { AttachmentListContext, AttachmentListProvider, useAttachmentListContext_unstable } from './contexts/attachmentListContext';
6
6
  export { Attachment, attachmentClassNames, renderAttachment_unstable, useAttachmentStyles_unstable, useAttachment_unstable } from './Attachment';
7
+ export { AttachmentOverflowMenu, renderAttachmentOverflowMenu_unstable, useAttachmentOverflowMenu_unstable } from './AttachmentOverflowMenu';
8
+ export { AttachmentOverflowMenuContext, AttachmentOverflowMenuProvider, useAttachmentOverflowMenuContext_unstable } from './contexts/attachmentOverflowMenuContext';
9
+ export { AttachmentOverflowMenuButton, attachmentOverflowMenuButtonClassNames, renderAttachmentOverflowMenuButton_unstable, useAttachmentOverflowMenuButtonStyles_unstable, useAttachmentOverflowMenuButton_unstable } from './AttachmentOverflowMenuButton';
10
+ export { AttachmentOverflowMenuItem, attachmentOverflowMenuItemClassNames, renderAttachmentOverflowMenuItem_unstable, useAttachmentOverflowMenuItemStyles_unstable, useAttachmentOverflowMenuItem_unstable } from './AttachmentOverflowMenuItem';
7
11
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export type { AttachmentTagProps, AttachmentTagSlots, AttachmentTagState } from './AttachmentTag';\nexport {\n AttachmentTag,\n attachmentTagClassNames,\n renderAttachmentTag_unstable,\n useAttachmentTagStyles_unstable,\n useAttachmentTag_unstable,\n} from './AttachmentTag';\nexport type {\n AttachmentTagDismissedData,\n AttachmentTagListProps,\n AttachmentTagListSlots,\n AttachmentTagListState,\n} from './AttachmentTagList';\nexport {\n AttachmentTagList,\n attachmentTagListClassNames,\n renderAttachmentTagList_unstable,\n useAttachmentTagListStyles_unstable,\n useAttachmentTagList_unstable,\n} from './AttachmentTagList';\n\nexport type { AttachmentTagItemProps, AttachmentTagItemSlots, AttachmentTagItemState } from './AttachmentTagItem';\nexport {\n AttachmentTagItem,\n attachmentTagItemClassNames,\n renderAttachmentTagItem_unstable,\n useAttachmentTagItemStyles_unstable,\n useAttachmentTagItem_unstable,\n} from './AttachmentTagItem';\n\nexport type { AttachmentListProps, AttachmentListSlots, AttachmentListState } 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"],"names":["AttachmentTag","attachmentTagClassNames","renderAttachmentTag_unstable","useAttachmentTagStyles_unstable","useAttachmentTag_unstable","AttachmentTagList","attachmentTagListClassNames","renderAttachmentTagList_unstable","useAttachmentTagListStyles_unstable","useAttachmentTagList_unstable","AttachmentTagItem","attachmentTagItemClassNames","renderAttachmentTagItem_unstable","useAttachmentTagItemStyles_unstable","useAttachmentTagItem_unstable","AttachmentList","attachmentListClassNames","renderAttachmentList_unstable","useAttachmentListStyles_unstable","useAttachmentList_unstable","AttachmentListContext","AttachmentListProvider","useAttachmentListContext_unstable","Attachment","attachmentClassNames","renderAttachment_unstable","useAttachmentStyles_unstable","useAttachment_unstable"],"mappings":"AACA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,kBAAkB;AAOzB,SACEC,iBAAiB,EACjBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,6BAA6B,QACxB,sBAAsB;AAG7B,SACEC,iBAAiB,EACjBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,6BAA6B,QACxB,sBAAsB;AAG7B,SACEC,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"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export type { AttachmentTagProps, AttachmentTagSlots, AttachmentTagState } from './AttachmentTag';\nexport {\n AttachmentTag,\n attachmentTagClassNames,\n renderAttachmentTag_unstable,\n useAttachmentTagStyles_unstable,\n useAttachmentTag_unstable,\n} from './AttachmentTag';\nexport type {\n AttachmentTagDismissedData,\n AttachmentTagListProps,\n AttachmentTagListSlots,\n AttachmentTagListState,\n} from './AttachmentTagList';\nexport {\n AttachmentTagList,\n attachmentTagListClassNames,\n renderAttachmentTagList_unstable,\n useAttachmentTagListStyles_unstable,\n useAttachmentTagList_unstable,\n} from './AttachmentTagList';\n\nexport type { AttachmentTagItemProps, AttachmentTagItemSlots, AttachmentTagItemState } from './AttachmentTagItem';\nexport {\n AttachmentTagItem,\n attachmentTagItemClassNames,\n renderAttachmentTagItem_unstable,\n useAttachmentTagItemStyles_unstable,\n useAttachmentTagItem_unstable,\n} from './AttachmentTagItem';\n\nexport type { AttachmentListProps, AttachmentListSlots, AttachmentListState } 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"],"names":["AttachmentTag","attachmentTagClassNames","renderAttachmentTag_unstable","useAttachmentTagStyles_unstable","useAttachmentTag_unstable","AttachmentTagList","attachmentTagListClassNames","renderAttachmentTagList_unstable","useAttachmentTagListStyles_unstable","useAttachmentTagList_unstable","AttachmentTagItem","attachmentTagItemClassNames","renderAttachmentTagItem_unstable","useAttachmentTagItemStyles_unstable","useAttachmentTagItem_unstable","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"],"mappings":"AACA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,kBAAkB;AAOzB,SACEC,iBAAiB,EACjBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,6BAA6B,QACxB,sBAAsB;AAG7B,SACEC,iBAAiB,EACjBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,6BAA6B,QACxB,sBAAsB;AAG7B,SACEC,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"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/AttachmentOverflowMenu/index"), exports);
7
+ //# sourceMappingURL=AttachmentOverflowMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenu.js"],"sourcesContent":["export * from './components/AttachmentOverflowMenu/index';\n//# sourceMappingURL=AttachmentOverflowMenu.js.map"],"names":[],"mappings":";;;;;uBAAc;CACd,kDAAkD"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/AttachmentOverflowMenuButton/index"), exports);
7
+ //# sourceMappingURL=AttachmentOverflowMenuButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenuButton.js"],"sourcesContent":["export * from './components/AttachmentOverflowMenuButton/index';\n//# sourceMappingURL=AttachmentOverflowMenuButton.js.map"],"names":[],"mappings":";;;;;uBAAc;CACd,wDAAwD"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/AttachmentOverflowMenuItem/index"), exports);
7
+ //# sourceMappingURL=AttachmentOverflowMenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenuItem.js"],"sourcesContent":["export * from './components/AttachmentOverflowMenuItem/index';\n//# sourceMappingURL=AttachmentOverflowMenuItem.js.map"],"names":[],"mappings":";;;;;uBAAc;CACd,sDAAsD"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "AttachmentOverflowMenu", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return AttachmentOverflowMenu;
9
+ }
10
+ });
11
+ const _useAttachmentOverflowMenu = require("./useAttachmentOverflowMenu");
12
+ const _renderAttachmentOverflowMenu = require("./renderAttachmentOverflowMenu");
13
+ const _useAttachmentOverflowMenuContextValues = require("./useAttachmentOverflowMenuContextValues");
14
+ const _reactcomponents = require("@fluentui/react-components");
15
+ const AttachmentOverflowMenu = (props)=>{
16
+ const state = (0, _useAttachmentOverflowMenu.useAttachmentOverflowMenu_unstable)(props);
17
+ const menuContextValues = (0, _reactcomponents.useMenuContextValues_unstable)(state);
18
+ const attachmentOverflowMenuContextValues = (0, _useAttachmentOverflowMenuContextValues.useAttachmentOverflowMenuContextValues_unstable)(state);
19
+ return (0, _renderAttachmentOverflowMenu.renderAttachmentOverflowMenu_unstable)(state, {
20
+ menuContextValues,
21
+ attachmentOverflowMenuContextValues
22
+ });
23
+ };
24
+ AttachmentOverflowMenu.displayName = 'AttachmentOverflowMenu'; //# sourceMappingURL=AttachmentOverflowMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenu.js"],"sourcesContent":["import { useAttachmentOverflowMenu_unstable } from './useAttachmentOverflowMenu';\nimport { renderAttachmentOverflowMenu_unstable } from './renderAttachmentOverflowMenu';\nimport { useAttachmentOverflowMenuContextValues_unstable } from './useAttachmentOverflowMenuContextValues';\nimport { useMenuContextValues_unstable } from '@fluentui/react-components';\nexport const AttachmentOverflowMenu = props => {\n const state = useAttachmentOverflowMenu_unstable(props);\n const menuContextValues = useMenuContextValues_unstable(state);\n const attachmentOverflowMenuContextValues = useAttachmentOverflowMenuContextValues_unstable(state);\n return renderAttachmentOverflowMenu_unstable(state, {\n menuContextValues,\n attachmentOverflowMenuContextValues\n });\n};\nAttachmentOverflowMenu.displayName = 'AttachmentOverflowMenu';\n//# sourceMappingURL=AttachmentOverflowMenu.js.map"],"names":["AttachmentOverflowMenu","props","state","useAttachmentOverflowMenu_unstable","menuContextValues","useMenuContextValues_unstable","attachmentOverflowMenuContextValues","useAttachmentOverflowMenuContextValues_unstable","renderAttachmentOverflowMenu_unstable","displayName"],"mappings":";;;;+BAIaA;;;eAAAA;;;2CAJsC;8CACG;wDACU;iCAClB;AACvC,MAAMA,yBAAyBC,CAAAA;IACpC,MAAMC,QAAQC,IAAAA,6DAAkC,EAACF;IACjD,MAAMG,oBAAoBC,IAAAA,8CAA6B,EAACH;IACxD,MAAMI,sCAAsCC,IAAAA,uFAA+C,EAACL;IAC5F,OAAOM,IAAAA,mEAAqC,EAACN,OAAO;QAClDE;QACAE;IACF;AACF;AACAN,uBAAuBS,WAAW,GAAG,0BACrC,kDAAkD"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ //# sourceMappingURL=AttachmentOverflowMenu.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenu.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=AttachmentOverflowMenu.types.js.map"],"names":[],"mappings":";;;;CACA,wDAAwD"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./AttachmentOverflowMenu"), exports);
7
+ _export_star._(require("./AttachmentOverflowMenu.types"), exports);
8
+ _export_star._(require("./renderAttachmentOverflowMenu"), exports);
9
+ _export_star._(require("./useAttachmentOverflowMenu"), exports);
10
+ _export_star._(require("./useAttachmentOverflowMenuContextValues"), exports);
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './AttachmentOverflowMenu';\nexport * from './AttachmentOverflowMenu.types';\nexport * from './renderAttachmentOverflowMenu';\nexport * from './useAttachmentOverflowMenu';\nexport * from './useAttachmentOverflowMenuContextValues';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;CACd,iCAAiC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderAttachmentOverflowMenu_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderAttachmentOverflowMenu_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactcomponents = require("@fluentui/react-components");
13
+ const _attachmentOverflowMenuContext = require("../../contexts/attachmentOverflowMenuContext");
14
+ const renderAttachmentOverflowMenu_unstable = (state, contextValues)=>{
15
+ const { menuContextValues, attachmentOverflowMenuContextValues } = contextValues;
16
+ (0, _reactcomponents.assertSlots)(state);
17
+ return state.isOverflowing ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_attachmentOverflowMenuContext.AttachmentOverflowMenuProvider, {
18
+ value: attachmentOverflowMenuContextValues.attachmentOverflowMenu,
19
+ children: (0, _reactcomponents.renderMenu_unstable)(state, menuContextValues)
20
+ }) : null;
21
+ }; //# sourceMappingURL=renderAttachmentOverflowMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderAttachmentOverflowMenu.js"],"sourcesContent":["import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots, renderMenu_unstable } from '@fluentui/react-components';\nimport { AttachmentOverflowMenuProvider } from '../../contexts/attachmentOverflowMenuContext';\n/**\n * Render the final JSX of AttachmentOverflowMenu\n */\nexport const renderAttachmentOverflowMenu_unstable = (state, contextValues) => {\n const {\n menuContextValues,\n attachmentOverflowMenuContextValues\n } = contextValues;\n assertSlots(state);\n return state.isOverflowing ? /*#__PURE__*/_jsx(AttachmentOverflowMenuProvider, {\n value: attachmentOverflowMenuContextValues.attachmentOverflowMenu,\n children: renderMenu_unstable(state, menuContextValues)\n }) : null;\n};\n//# sourceMappingURL=renderAttachmentOverflowMenu.js.map"],"names":["renderAttachmentOverflowMenu_unstable","state","contextValues","menuContextValues","attachmentOverflowMenuContextValues","assertSlots","isOverflowing","_jsx","AttachmentOverflowMenuProvider","value","attachmentOverflowMenu","children","renderMenu_unstable"],"mappings":";;;;+BAMaA;;;eAAAA;;;4BANe;iCACqB;+CACF;AAIxC,MAAMA,wCAAwC,CAACC,OAAOC;IAC3D,MAAM,EACJC,iBAAiB,EACjBC,mCAAmC,EACpC,GAAGF;IACJG,IAAAA,4BAAW,EAACJ;IACZ,OAAOA,MAAMK,aAAa,GAAG,WAAW,GAAEC,IAAAA,eAAI,EAACC,6DAA8B,EAAE;QAC7EC,OAAOL,oCAAoCM,sBAAsB;QACjEC,UAAUC,IAAAA,oCAAmB,EAACX,OAAOE;IACvC,KAAK;AACP,GACA,wDAAwD"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAttachmentOverflowMenu_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useAttachmentOverflowMenu_unstable;
9
+ }
10
+ });
11
+ const _reactcomponents = require("@fluentui/react-components");
12
+ const useAttachmentOverflowMenu_unstable = (props)=>{
13
+ const menuState = (0, _reactcomponents.useMenu_unstable)(props);
14
+ const { isOverflowing, ref: overflowButtonRef, overflowCount } = (0, _reactcomponents.useOverflowMenu)();
15
+ return {
16
+ ...menuState,
17
+ isOverflowing,
18
+ overflowButtonRef,
19
+ overflowCount
20
+ };
21
+ }; //# sourceMappingURL=useAttachmentOverflowMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenu.js"],"sourcesContent":["import { useMenu_unstable, useOverflowMenu } from '@fluentui/react-components';\n/**\n * Create the state required to render AttachmentOverflowMenu.\n *\n * The returned state can be modified with hooks such as useAttachmentOverflowMenuStyles_unstable,\n * before being passed to renderAttachmentOverflowMenu_unstable.\n *\n * @param props - props from this instance of AttachmentOverflowMenu\n */\nexport const useAttachmentOverflowMenu_unstable = props => {\n const menuState = useMenu_unstable(props);\n const {\n isOverflowing,\n ref: overflowButtonRef,\n overflowCount\n } = useOverflowMenu();\n return {\n ...menuState,\n isOverflowing,\n overflowButtonRef,\n overflowCount\n };\n};\n//# sourceMappingURL=useAttachmentOverflowMenu.js.map"],"names":["useAttachmentOverflowMenu_unstable","props","menuState","useMenu_unstable","isOverflowing","ref","overflowButtonRef","overflowCount","useOverflowMenu"],"mappings":";;;;+BASaA;;;eAAAA;;;iCATqC;AAS3C,MAAMA,qCAAqCC,CAAAA;IAChD,MAAMC,YAAYC,IAAAA,iCAAgB,EAACF;IACnC,MAAM,EACJG,aAAa,EACbC,KAAKC,iBAAiB,EACtBC,aAAa,EACd,GAAGC,IAAAA,gCAAe;IACnB,OAAO;QACL,GAAGN,SAAS;QACZE;QACAE;QACAC;IACF;AACF,GACA,qDAAqD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAttachmentOverflowMenuContextValues_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useAttachmentOverflowMenuContextValues_unstable;
9
+ }
10
+ });
11
+ function useAttachmentOverflowMenuContextValues_unstable(state) {
12
+ const { isOverflowing, overflowButtonRef, overflowCount } = state;
13
+ // This context is created with "@fluentui/react-context-selector", there is no sense to memoize it
14
+ const attachmentOverflowMenu = {
15
+ isOverflowing,
16
+ overflowButtonRef,
17
+ overflowCount
18
+ };
19
+ return {
20
+ attachmentOverflowMenu
21
+ };
22
+ } //# sourceMappingURL=useAttachmentOverflowMenuContextValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenuContextValues.js"],"sourcesContent":["export function useAttachmentOverflowMenuContextValues_unstable(state) {\n const {\n isOverflowing,\n overflowButtonRef,\n overflowCount\n } = state;\n // This context is created with \"@fluentui/react-context-selector\", there is no sense to memoize it\n const attachmentOverflowMenu = {\n isOverflowing,\n overflowButtonRef,\n overflowCount\n };\n return {\n attachmentOverflowMenu\n };\n}\n//# sourceMappingURL=useAttachmentOverflowMenuContextValues.js.map"],"names":["useAttachmentOverflowMenuContextValues_unstable","state","isOverflowing","overflowButtonRef","overflowCount","attachmentOverflowMenu"],"mappings":";;;;+BAAgBA;;;eAAAA;;;AAAT,SAASA,gDAAgDC,KAAK;IACnE,MAAM,EACJC,aAAa,EACbC,iBAAiB,EACjBC,aAAa,EACd,GAAGH;IACJ,mGAAmG;IACnG,MAAMI,yBAAyB;QAC7BH;QACAC;QACAC;IACF;IACA,OAAO;QACLC;IACF;AACF,EACA,kEAAkE"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "AttachmentOverflowMenuButton", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return AttachmentOverflowMenuButton;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _useAttachmentOverflowMenuButton = require("./useAttachmentOverflowMenuButton");
14
+ const _renderAttachmentOverflowMenuButton = require("./renderAttachmentOverflowMenuButton");
15
+ const _useAttachmentOverflowMenuButtonStyles = require("./useAttachmentOverflowMenuButtonStyles");
16
+ const AttachmentOverflowMenuButton = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
+ const state = (0, _useAttachmentOverflowMenuButton.useAttachmentOverflowMenuButton_unstable)(props, ref);
18
+ (0, _useAttachmentOverflowMenuButtonStyles.useAttachmentOverflowMenuButtonStyles_unstable)(state);
19
+ return (0, _renderAttachmentOverflowMenuButton.renderAttachmentOverflowMenuButton_unstable)(state);
20
+ });
21
+ AttachmentOverflowMenuButton.displayName = 'AttachmentOverflowMenuButton'; //# sourceMappingURL=AttachmentOverflowMenuButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenuButton.js"],"sourcesContent":["import * as React from 'react';\nimport { useAttachmentOverflowMenuButton_unstable } from './useAttachmentOverflowMenuButton';\nimport { renderAttachmentOverflowMenuButton_unstable } from './renderAttachmentOverflowMenuButton';\nimport { useAttachmentOverflowMenuButtonStyles_unstable } from './useAttachmentOverflowMenuButtonStyles';\nexport const AttachmentOverflowMenuButton = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useAttachmentOverflowMenuButton_unstable(props, ref);\n useAttachmentOverflowMenuButtonStyles_unstable(state);\n return renderAttachmentOverflowMenuButton_unstable(state);\n});\nAttachmentOverflowMenuButton.displayName = 'AttachmentOverflowMenuButton';\n//# sourceMappingURL=AttachmentOverflowMenuButton.js.map"],"names":["AttachmentOverflowMenuButton","React","forwardRef","props","ref","state","useAttachmentOverflowMenuButton_unstable","useAttachmentOverflowMenuButtonStyles_unstable","renderAttachmentOverflowMenuButton_unstable","displayName"],"mappings":";;;;+BAIaA;;;eAAAA;;;;iEAJU;iDACkC;oDACG;uDACG;AACxD,MAAMA,+BAA+B,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAChF,MAAMC,QAAQC,IAAAA,yEAAwC,EAACH,OAAOC;IAC9DG,IAAAA,qFAA8C,EAACF;IAC/C,OAAOG,IAAAA,+EAA2C,EAACH;AACrD;AACAL,6BAA6BS,WAAW,GAAG,gCAC3C,wDAAwD"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ //# sourceMappingURL=AttachmentOverflowMenuButton.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenuButton.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=AttachmentOverflowMenuButton.types.js.map"],"names":[],"mappings":";;;;CACA,8DAA8D"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./AttachmentOverflowMenuButton"), exports);
7
+ _export_star._(require("./AttachmentOverflowMenuButton.types"), exports);
8
+ _export_star._(require("./renderAttachmentOverflowMenuButton"), exports);
9
+ _export_star._(require("./useAttachmentOverflowMenuButton"), exports);
10
+ _export_star._(require("./useAttachmentOverflowMenuButtonStyles"), exports);
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './AttachmentOverflowMenuButton';\nexport * from './AttachmentOverflowMenuButton.types';\nexport * from './renderAttachmentOverflowMenuButton';\nexport * from './useAttachmentOverflowMenuButton';\nexport * from './useAttachmentOverflowMenuButtonStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;CACd,iCAAiC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderAttachmentOverflowMenuButton_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderAttachmentOverflowMenuButton_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactcomponents = require("@fluentui/react-components");
13
+ const renderAttachmentOverflowMenuButton_unstable = (state)=>{
14
+ (0, _reactcomponents.assertSlots)(state);
15
+ return state.isOverflowing ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactcomponents.MenuTrigger, {
16
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
17
+ children: [
18
+ " +",
19
+ state.overflowCount,
20
+ " "
21
+ ]
22
+ })
23
+ }) : null;
24
+ }; //# sourceMappingURL=renderAttachmentOverflowMenuButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderAttachmentOverflowMenuButton.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { MenuTrigger, assertSlots } from '@fluentui/react-components';\n/**\n * Render the final JSX of AttachmentOverflowMenuButton\n */\nexport const renderAttachmentOverflowMenuButton_unstable = state => {\n assertSlots(state);\n return state.isOverflowing ? /*#__PURE__*/_jsx(MenuTrigger, {\n children: /*#__PURE__*/_jsxs(state.root, {\n children: [\" +\", state.overflowCount, \" \"]\n })\n }) : null;\n};\n//# sourceMappingURL=renderAttachmentOverflowMenuButton.js.map"],"names":["renderAttachmentOverflowMenuButton_unstable","state","assertSlots","isOverflowing","_jsx","MenuTrigger","children","_jsxs","root","overflowCount"],"mappings":";;;;+BAKaA;;;eAAAA;;;4BAL8B;iCACF;AAIlC,MAAMA,8CAA8CC,CAAAA;IACzDC,IAAAA,4BAAW,EAACD;IACZ,OAAOA,MAAME,aAAa,GAAG,WAAW,GAAEC,IAAAA,eAAI,EAACC,4BAAW,EAAE;QAC1DC,UAAU,WAAW,GAAEC,IAAAA,gBAAK,EAACN,MAAMO,IAAI,EAAE;YACvCF,UAAU;gBAAC;gBAAML,MAAMQ,aAAa;gBAAE;aAAI;QAC5C;IACF,KAAK;AACP,GACA,8DAA8D"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAttachmentOverflowMenuButton_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useAttachmentOverflowMenuButton_unstable;
9
+ }
10
+ });
11
+ const _reactcomponents = require("@fluentui/react-components");
12
+ const _attachmentOverflowMenuContext = require("../../contexts/attachmentOverflowMenuContext");
13
+ const useAttachmentOverflowMenuButton_unstable = (props, ref)=>{
14
+ const { isOverflowing, overflowCount, overflowButtonRef } = (0, _attachmentOverflowMenuContext.useAttachmentOverflowMenuContext_unstable)((context)=>context);
15
+ return {
16
+ components: {
17
+ root: 'button'
18
+ },
19
+ root: _reactcomponents.slot.always((0, _reactcomponents.getIntrinsicElementProps)('button', {
20
+ ref: (0, _reactcomponents.useMergedRefs)(ref, overflowButtonRef),
21
+ ...props
22
+ }), {
23
+ elementType: 'button'
24
+ }),
25
+ isOverflowing,
26
+ overflowCount
27
+ };
28
+ }; //# sourceMappingURL=useAttachmentOverflowMenuButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenuButton.js"],"sourcesContent":["import { getIntrinsicElementProps, slot, useMergedRefs } from '@fluentui/react-components';\nimport { useAttachmentOverflowMenuContext_unstable } from '../../contexts/attachmentOverflowMenuContext';\n/**\n * Create the state required to render AttachmentOverflowMenuButton.\n *\n * The returned state can be modified with hooks such as useAttachmentOverflowMenuButtonStyles_unstable,\n * before being passed to renderAttachmentOverflowMenuButton_unstable.\n *\n * @param props - props from this instance of AttachmentOverflowMenuButton\n * @param ref - reference to root HTMLElement of AttachmentOverflowMenuButton\n */\nexport const useAttachmentOverflowMenuButton_unstable = (props, ref) => {\n const {\n isOverflowing,\n overflowCount,\n overflowButtonRef\n } = useAttachmentOverflowMenuContext_unstable(context => context);\n return {\n components: {\n root: 'button'\n },\n root: slot.always(getIntrinsicElementProps('button', {\n ref: useMergedRefs(ref, overflowButtonRef),\n ...props\n }), {\n elementType: 'button'\n }),\n isOverflowing,\n overflowCount\n };\n};\n//# sourceMappingURL=useAttachmentOverflowMenuButton.js.map"],"names":["useAttachmentOverflowMenuButton_unstable","props","ref","isOverflowing","overflowCount","overflowButtonRef","useAttachmentOverflowMenuContext_unstable","context","components","root","slot","always","getIntrinsicElementProps","useMergedRefs","elementType"],"mappings":";;;;+BAWaA;;;eAAAA;;;iCAXiD;+CACJ;AAUnD,MAAMA,2CAA2C,CAACC,OAAOC;IAC9D,MAAM,EACJC,aAAa,EACbC,aAAa,EACbC,iBAAiB,EAClB,GAAGC,IAAAA,wEAAyC,EAACC,CAAAA,UAAWA;IACzD,OAAO;QACLC,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,qBAAI,CAACC,MAAM,CAACC,IAAAA,yCAAwB,EAAC,UAAU;YACnDV,KAAKW,IAAAA,8BAAa,EAACX,KAAKG;YACxB,GAAGJ,KAAK;QACV,IAAI;YACFa,aAAa;QACf;QACAX;QACAC;IACF;AACF,GACA,2DAA2D"}
@@ -0,0 +1,37 @@
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
+ attachmentOverflowMenuButtonClassNames: function() {
13
+ return attachmentOverflowMenuButtonClassNames;
14
+ },
15
+ useAttachmentOverflowMenuButtonStyles_unstable: function() {
16
+ return useAttachmentOverflowMenuButtonStyles_unstable;
17
+ }
18
+ });
19
+ const _reactcomponents = require("@fluentui/react-components");
20
+ const attachmentOverflowMenuButtonClassNames = {
21
+ root: 'fai-AttachmentOverflowMenuButton'
22
+ };
23
+ const useRootBaseClassName = (0, _reactcomponents.__resetStyles)("r1hzuvbo", null, {
24
+ r: [
25
+ ".r1hzuvbo{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;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);justify-content:center;padding:var(--spacingVerticalS);vertical-align:middle;}",
26
+ ".r1hzuvbo:hover{cursor:pointer;background-color:var(--colorNeutralBackground3Hover);color:var(--colorNeutralForeground2Hover);}",
27
+ ".r1hzuvbo:active{background-color:var(--colorNeutralBackground3Pressed);color:var(--colorNeutralForeground2Pressed);}"
28
+ ],
29
+ s: [
30
+ "@media (forced-colors: active){.r1hzuvbo:hover{background-color:HighlightText;}.r1hzuvbo:active{background-color:HighlightText;}}"
31
+ ]
32
+ });
33
+ const useAttachmentOverflowMenuButtonStyles_unstable = (state)=>{
34
+ const rootBaseClassName = useRootBaseClassName();
35
+ state.root.className = (0, _reactcomponents.mergeClasses)(attachmentOverflowMenuButtonClassNames.root, rootBaseClassName, state.root.className);
36
+ return state;
37
+ }; //# sourceMappingURL=useAttachmentOverflowMenuButtonStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenuButtonStyles.js"],"sourcesContent":["import { __resetStyles, mergeClasses, tokens, typographyStyles } from '@fluentui/react-components';\nexport const attachmentOverflowMenuButtonClassNames = {\n root: 'fai-AttachmentOverflowMenuButton'\n};\nconst useRootBaseClassName = __resetStyles(\"r1hzuvbo\", null, {\n r: [\".r1hzuvbo{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;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);justify-content:center;padding:var(--spacingVerticalS);vertical-align:middle;}\", \".r1hzuvbo:hover{cursor:pointer;background-color:var(--colorNeutralBackground3Hover);color:var(--colorNeutralForeground2Hover);}\", \".r1hzuvbo:active{background-color:var(--colorNeutralBackground3Pressed);color:var(--colorNeutralForeground2Pressed);}\"],\n s: [\"@media (forced-colors: active){.r1hzuvbo:hover{background-color:HighlightText;}.r1hzuvbo:active{background-color:HighlightText;}}\"]\n});\n/**\n * Apply styling to the AttachmentOverflowMenuButton slots based on the state\n */\nexport const useAttachmentOverflowMenuButtonStyles_unstable = state => {\n const rootBaseClassName = useRootBaseClassName();\n state.root.className = mergeClasses(attachmentOverflowMenuButtonClassNames.root, rootBaseClassName, state.root.className);\n return state;\n};\n//# sourceMappingURL=useAttachmentOverflowMenuButtonStyles.js.map"],"names":["attachmentOverflowMenuButtonClassNames","useAttachmentOverflowMenuButtonStyles_unstable","root","useRootBaseClassName","__resetStyles","r","s","state","rootBaseClassName","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,sCAAsC;eAAtCA;;IAUAC,8CAA8C;eAA9CA;;;iCAXyD;AAC/D,MAAMD,yCAAyC;IACpDE,MAAM;AACR;AACA,MAAMC,uBAAuBC,IAAAA,8BAAa,EAAC,YAAY,MAAM;IAC3DC,GAAG;QAAC;QAAugB;QAAmI;KAAwH;IACtwBC,GAAG;QAAC;KAAoI;AAC1I;AAIO,MAAML,iDAAiDM,CAAAA;IAC5D,MAAMC,oBAAoBL;IAC1BI,MAAML,IAAI,CAACO,SAAS,GAAGC,IAAAA,6BAAY,EAACV,uCAAuCE,IAAI,EAAEM,mBAAmBD,MAAML,IAAI,CAACO,SAAS;IACxH,OAAOF;AACT,GACA,iEAAiE"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "AttachmentOverflowMenuItem", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return AttachmentOverflowMenuItem;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _useAttachmentOverflowMenuItem = require("./useAttachmentOverflowMenuItem");
14
+ const _renderAttachmentOverflowMenuItem = require("./renderAttachmentOverflowMenuItem");
15
+ const _useAttachmentOverflowMenuItemStyles = require("./useAttachmentOverflowMenuItemStyles");
16
+ const AttachmentOverflowMenuItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
+ const state = (0, _useAttachmentOverflowMenuItem.useAttachmentOverflowMenuItem_unstable)(props, ref);
18
+ (0, _useAttachmentOverflowMenuItemStyles.useAttachmentOverflowMenuItemStyles_unstable)(state);
19
+ return (0, _renderAttachmentOverflowMenuItem.renderAttachmentOverflowMenuItem_unstable)(state);
20
+ });
21
+ AttachmentOverflowMenuItem.displayName = 'AttachmentOverflowMenuItem'; //# sourceMappingURL=AttachmentOverflowMenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenuItem.js"],"sourcesContent":["import * as React from 'react';\nimport { useAttachmentOverflowMenuItem_unstable } from './useAttachmentOverflowMenuItem';\nimport { renderAttachmentOverflowMenuItem_unstable } from './renderAttachmentOverflowMenuItem';\nimport { useAttachmentOverflowMenuItemStyles_unstable } from './useAttachmentOverflowMenuItemStyles';\nexport const AttachmentOverflowMenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useAttachmentOverflowMenuItem_unstable(props, ref);\n useAttachmentOverflowMenuItemStyles_unstable(state);\n return renderAttachmentOverflowMenuItem_unstable(state);\n});\nAttachmentOverflowMenuItem.displayName = 'AttachmentOverflowMenuItem';\n//# sourceMappingURL=AttachmentOverflowMenuItem.js.map"],"names":["AttachmentOverflowMenuItem","React","forwardRef","props","ref","state","useAttachmentOverflowMenuItem_unstable","useAttachmentOverflowMenuItemStyles_unstable","renderAttachmentOverflowMenuItem_unstable","displayName"],"mappings":";;;;+BAIaA;;;eAAAA;;;;iEAJU;+CACgC;kDACG;qDACG;AACtD,MAAMA,6BAA6B,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC9E,MAAMC,QAAQC,IAAAA,qEAAsC,EAACH,OAAOC;IAC5DG,IAAAA,iFAA4C,EAACF;IAC7C,OAAOG,IAAAA,2EAAyC,EAACH;AACnD;AACAL,2BAA2BS,WAAW,GAAG,8BACzC,sDAAsD"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ //# sourceMappingURL=AttachmentOverflowMenuItem.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenuItem.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=AttachmentOverflowMenuItem.types.js.map"],"names":[],"mappings":";;;;CACA,4DAA4D"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./AttachmentOverflowMenuItem"), exports);
7
+ _export_star._(require("./AttachmentOverflowMenuItem.types"), exports);
8
+ _export_star._(require("./renderAttachmentOverflowMenuItem"), exports);
9
+ _export_star._(require("./useAttachmentOverflowMenuItem"), exports);
10
+ _export_star._(require("./useAttachmentOverflowMenuItemStyles"), exports);
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './AttachmentOverflowMenuItem';\nexport * from './AttachmentOverflowMenuItem.types';\nexport * from './renderAttachmentOverflowMenuItem';\nexport * from './useAttachmentOverflowMenuItem';\nexport * from './useAttachmentOverflowMenuItemStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;CACd,iCAAiC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderAttachmentOverflowMenuItem_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderAttachmentOverflowMenuItem_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactcomponents = require("@fluentui/react-components");
13
+ const renderAttachmentOverflowMenuItem_unstable = (state)=>{
14
+ (0, _reactcomponents.assertSlots)(state);
15
+ return !state.isVisible ? /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {}) : null;
16
+ }; //# sourceMappingURL=renderAttachmentOverflowMenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderAttachmentOverflowMenuItem.js"],"sourcesContent":["import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-components';\n/**\n * Render the final JSX of AttachmentOverflowMenuItem\n */\nexport const renderAttachmentOverflowMenuItem_unstable = state => {\n assertSlots(state);\n return !state.isVisible ? /*#__PURE__*/_jsx(state.root, {}) : null;\n};\n//# sourceMappingURL=renderAttachmentOverflowMenuItem.js.map"],"names":["renderAttachmentOverflowMenuItem_unstable","state","assertSlots","isVisible","_jsx","root"],"mappings":";;;;+BAKaA;;;eAAAA;;;4BALe;iCACA;AAIrB,MAAMA,4CAA4CC,CAAAA;IACvDC,IAAAA,4BAAW,EAACD;IACZ,OAAO,CAACA,MAAME,SAAS,GAAG,WAAW,GAAEC,IAAAA,eAAI,EAACH,MAAMI,IAAI,EAAE,CAAC,KAAK;AAChE,GACA,4DAA4D"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAttachmentOverflowMenuItem_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useAttachmentOverflowMenuItem_unstable;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactcomponents = require("@fluentui/react-components");
14
+ const _reacticons = require("@fluentui/react-icons");
15
+ const _attachmentListContext = require("../../contexts/attachmentListContext");
16
+ const useAttachmentOverflowMenuItem_unstable = (props, ref)=>{
17
+ const { id, media } = props;
18
+ const DismissIcon = (0, _reacticons.bundleIcon)(_reacticons.Dismiss20Filled, _reacticons.Dismiss20Regular);
19
+ const isVisible = (0, _reactcomponents.useIsOverflowItemVisible)(id);
20
+ const onAttachmentDismiss = (0, _attachmentListContext.useAttachmentListContext_unstable)((context)=>context.onAttachmentDismiss);
21
+ const root = _reactcomponents.slot.always({
22
+ ref,
23
+ icon: media,
24
+ secondaryContent: /*#__PURE__*/ _react.createElement(DismissIcon, null),
25
+ ...props
26
+ }, {
27
+ elementType: _reactcomponents.MenuItem
28
+ });
29
+ root.onClick = (0, _reactcomponents.mergeCallbacks)(root.onClick, (ev)=>onAttachmentDismiss === null || onAttachmentDismiss === void 0 ? void 0 : onAttachmentDismiss(ev, {
30
+ id
31
+ }));
32
+ return {
33
+ components: {
34
+ root: _reactcomponents.MenuItem
35
+ },
36
+ root,
37
+ isVisible
38
+ };
39
+ }; //# sourceMappingURL=useAttachmentOverflowMenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenuItem.js"],"sourcesContent":["import * as React from 'react';\nimport { MenuItem, mergeCallbacks, slot, useIsOverflowItemVisible } from '@fluentui/react-components';\nimport { Dismiss20Filled, Dismiss20Regular, bundleIcon } from '@fluentui/react-icons';\nimport { useAttachmentListContext_unstable } from '../../contexts/attachmentListContext';\n/**\n * Create the state required to render AttachmentOverflowMenuItem.\n *\n * The returned state can be modified with hooks such as useAttachmentOverflowMenuItemStyles_unstable,\n * before being passed to renderAttachmentOverflowMenuItem_unstable.\n *\n * @param props - props from this instance of AttachmentOverflowMenuItem\n * @param ref - reference to root HTMLElement of AttachmentOverflowMenuItem\n */\nexport const useAttachmentOverflowMenuItem_unstable = (props, ref) => {\n const {\n id,\n media\n } = props;\n const DismissIcon = bundleIcon(Dismiss20Filled, Dismiss20Regular);\n const isVisible = useIsOverflowItemVisible(id);\n const onAttachmentDismiss = useAttachmentListContext_unstable(context => context.onAttachmentDismiss);\n const root = slot.always({\n ref,\n icon: media,\n secondaryContent: /*#__PURE__*/React.createElement(DismissIcon, null),\n ...props\n }, {\n elementType: MenuItem\n });\n root.onClick = mergeCallbacks(root.onClick, ev => onAttachmentDismiss === null || onAttachmentDismiss === void 0 ? void 0 : onAttachmentDismiss(ev, {\n id\n }));\n return {\n components: {\n root: MenuItem\n },\n root,\n isVisible\n };\n};\n//# sourceMappingURL=useAttachmentOverflowMenuItem.js.map"],"names":["useAttachmentOverflowMenuItem_unstable","props","ref","id","media","DismissIcon","bundleIcon","Dismiss20Filled","Dismiss20Regular","isVisible","useIsOverflowItemVisible","onAttachmentDismiss","useAttachmentListContext_unstable","context","root","slot","always","icon","secondaryContent","React","createElement","elementType","MenuItem","onClick","mergeCallbacks","ev","components"],"mappings":";;;;+BAaaA;;;eAAAA;;;;iEAbU;iCACkD;4BACX;uCACZ;AAU3C,MAAMA,yCAAyC,CAACC,OAAOC;IAC5D,MAAM,EACJC,EAAE,EACFC,KAAK,EACN,GAAGH;IACJ,MAAMI,cAAcC,IAAAA,sBAAU,EAACC,2BAAe,EAAEC,4BAAgB;IAChE,MAAMC,YAAYC,IAAAA,yCAAwB,EAACP;IAC3C,MAAMQ,sBAAsBC,IAAAA,wDAAiC,EAACC,CAAAA,UAAWA,QAAQF,mBAAmB;IACpG,MAAMG,OAAOC,qBAAI,CAACC,MAAM,CAAC;QACvBd;QACAe,MAAMb;QACNc,kBAAkB,WAAW,GAAEC,OAAMC,aAAa,CAACf,aAAa;QAChE,GAAGJ,KAAK;IACV,GAAG;QACDoB,aAAaC,yBAAQ;IACvB;IACAR,KAAKS,OAAO,GAAGC,IAAAA,+BAAc,EAACV,KAAKS,OAAO,EAAEE,CAAAA,KAAMd,wBAAwB,QAAQA,wBAAwB,KAAK,IAAI,KAAK,IAAIA,oBAAoBc,IAAI;YAClJtB;QACF;IACA,OAAO;QACLuB,YAAY;YACVZ,MAAMQ,yBAAQ;QAChB;QACAR;QACAL;IACF;AACF,GACA,yDAAyD"}