@fluentui-copilot/react-attachments 0.10.2 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +31 -1
- package/CHANGELOG.md +20 -2
- package/dist/index.d.ts +7 -1
- package/lib/Attachment.js +1 -1
- package/lib/Attachment.js.map +1 -1
- package/lib/AttachmentList.js +1 -1
- package/lib/AttachmentList.js.map +1 -1
- package/lib/AttachmentOverflowMenu.js +1 -1
- package/lib/AttachmentOverflowMenu.js.map +1 -1
- package/lib/AttachmentOverflowMenuButton.js +1 -1
- package/lib/AttachmentOverflowMenuButton.js.map +1 -1
- package/lib/AttachmentOverflowMenuItem.js +1 -1
- package/lib/AttachmentOverflowMenuItem.js.map +1 -1
- package/lib/AttachmentTag.js +1 -1
- package/lib/AttachmentTag.js.map +1 -1
- package/lib/AttachmentTagItem.js +1 -1
- package/lib/AttachmentTagItem.js.map +1 -1
- package/lib/AttachmentTagList.js +1 -1
- package/lib/AttachmentTagList.js.map +1 -1
- package/lib/components/Attachment/Attachment.types.js.map +1 -1
- package/lib/components/Attachment/index.js +4 -5
- package/lib/components/Attachment/index.js.map +1 -1
- package/lib/components/Attachment/useAttachment.js +5 -3
- package/lib/components/Attachment/useAttachment.js.map +1 -1
- package/lib/components/Attachment/useAttachmentStyles.styles.js +52 -6
- package/lib/components/Attachment/useAttachmentStyles.styles.js.map +1 -1
- package/lib/components/AttachmentList/index.js +4 -5
- package/lib/components/AttachmentList/index.js.map +1 -1
- package/lib/components/AttachmentOverflowMenu/index.js +4 -5
- package/lib/components/AttachmentOverflowMenu/index.js.map +1 -1
- package/lib/components/AttachmentOverflowMenuButton/index.js +4 -5
- package/lib/components/AttachmentOverflowMenuButton/index.js.map +1 -1
- package/lib/components/AttachmentOverflowMenuItem/index.js +4 -5
- package/lib/components/AttachmentOverflowMenuItem/index.js.map +1 -1
- package/lib/components/AttachmentTag/index.js +4 -5
- package/lib/components/AttachmentTag/index.js.map +1 -1
- package/lib/components/AttachmentTagItem/index.js +4 -5
- package/lib/components/AttachmentTagItem/index.js.map +1 -1
- package/lib/components/AttachmentTagList/index.js +4 -5
- package/lib/components/AttachmentTagList/index.js.map +1 -1
- package/lib/components/index.js +8 -8
- package/lib/components/index.js.map +1 -1
- package/lib-commonjs/Attachment.js +27 -2
- package/lib-commonjs/Attachment.js.map +1 -1
- package/lib-commonjs/AttachmentList.js +24 -2
- package/lib-commonjs/AttachmentList.js.map +1 -1
- package/lib-commonjs/AttachmentOverflowMenu.js +21 -2
- package/lib-commonjs/AttachmentOverflowMenu.js.map +1 -1
- package/lib-commonjs/AttachmentOverflowMenuButton.js +24 -2
- package/lib-commonjs/AttachmentOverflowMenuButton.js.map +1 -1
- package/lib-commonjs/AttachmentOverflowMenuItem.js +24 -2
- package/lib-commonjs/AttachmentOverflowMenuItem.js.map +1 -1
- package/lib-commonjs/AttachmentTag.js +36 -2
- package/lib-commonjs/AttachmentTag.js.map +1 -1
- package/lib-commonjs/AttachmentTagItem.js +24 -2
- package/lib-commonjs/AttachmentTagItem.js.map +1 -1
- package/lib-commonjs/AttachmentTagList.js +24 -2
- package/lib-commonjs/AttachmentTagList.js.map +1 -1
- package/lib-commonjs/components/Attachment/Attachment.types.js.map +1 -1
- package/lib-commonjs/components/Attachment/index.js +30 -6
- package/lib-commonjs/components/Attachment/index.js.map +1 -1
- package/lib-commonjs/components/Attachment/useAttachment.js +3 -2
- package/lib-commonjs/components/Attachment/useAttachment.js.map +1 -1
- package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js +74 -6
- package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js.map +1 -1
- package/lib-commonjs/components/AttachmentList/index.js +27 -6
- package/lib-commonjs/components/AttachmentList/index.js.map +1 -1
- package/lib-commonjs/components/AttachmentOverflowMenu/index.js +24 -6
- package/lib-commonjs/components/AttachmentOverflowMenu/index.js.map +1 -1
- package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js +27 -6
- package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js.map +1 -1
- package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js +27 -6
- package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js.map +1 -1
- package/lib-commonjs/components/AttachmentTag/index.js +39 -6
- package/lib-commonjs/components/AttachmentTag/index.js.map +1 -1
- package/lib-commonjs/components/AttachmentTagItem/index.js +27 -6
- package/lib-commonjs/components/AttachmentTagItem/index.js.map +1 -1
- package/lib-commonjs/components/AttachmentTagList/index.js +27 -6
- package/lib-commonjs/components/AttachmentTagList/index.js.map +1 -1
- package/lib-commonjs/components/index.js +148 -9
- package/lib-commonjs/components/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAttachmentStyles.styles.ts"],"sourcesContent":["import {\n createCustomFocusIndicatorStyle,\n makeResetStyles,\n makeStyles,\n mergeClasses,\n slot,\n tokens,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { useProgressBarStyles } from '../utils/useProgressBarStyles.styles';\nimport type { AttachmentSlots, AttachmentState } from './Attachment.types';\nimport type { GriffelResetStyle, SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentClassNames: SlotClassNames<AttachmentSlots> = {\n root: 'fai-Attachment',\n primaryAction: 'fai-Attachment__primaryAction',\n dismissButton: 'fai-Attachment__dismissButton',\n media: 'fai-Attachment__media',\n content: 'fai-Attachment__content',\n dismissIcon: 'fai-Attachment__dismissIcon',\n progress: 'fai-Attachment__progress',\n};\n\nconst ATTACHMENT_MAXWIDTH = '180px';\nconst ATTACHMENT_SIZE = '20px';\n\nconst useRootBaseClassName = makeResetStyles({\n display: 'inline-flex',\n flexWrap: 'nowrap',\n verticalAlign: 'middle',\n boxSizing: 'border-box',\n width: 'fit-content',\n alignSelf: 'end',\n position: 'relative',\n});\n\nconst buttonBaseStyles: GriffelResetStyle = {\n alignItems: 'center',\n backgroundColor: tokens.colorSubtleBackground,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n columnGap: tokens.spacingHorizontalSNudge,\n color: tokens.colorNeutralForeground1,\n cursor: 'pointer',\n display: 'inline-flex',\n flexWrap: 'nowrap',\n justifyContent: 'center',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n zIndex: 1,\n }),\n verticalAlign: 'middle',\n};\n\nconst usePrimaryActionBaseClassName = makeResetStyles({\n ...buttonBaseStyles,\n borderTopRightRadius: tokens.borderRadiusNone,\n borderBottomRightRadius: tokens.borderRadiusNone,\n borderRightStyle: 'none',\n maxWidth: `calc(${ATTACHMENT_MAXWIDTH} - ${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS} - ${tokens.spacingHorizontalXS})`,\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,\n});\n\nconst usePrimaryActionStyles = makeStyles({\n button: {\n ':hover': {\n cursor: 'pointer',\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground2Hover,\n },\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground2Pressed,\n },\n '@media (forced-colors: active)': {\n ':hover': {\n backgroundColor: 'HighlightText',\n },\n ':active': {\n backgroundColor: 'HighlightText',\n },\n },\n },\n});\n\nconst useDismissButtonBaseClassName = makeResetStyles({\n ...buttonBaseStyles,\n\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n\n // divider:\n borderLeftColor: tokens.colorNeutralStroke1,\n borderTopLeftRadius: tokens.borderRadiusNone,\n borderBottomLeftRadius: tokens.borderRadiusNone,\n\n borderTopRightRadius: tokens.borderRadiusMedium,\n borderBottomRightRadius: tokens.borderRadiusMedium,\n\n ':hover': {\n cursor: 'pointer',\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground2BrandHover,\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorBrandForegroundLinkHover,\n },\n },\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n ':focus': {\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorNeutralForeground2BrandHover,\n },\n },\n '@media (forced-colors: active)': {\n ':hover': {\n backgroundColor: 'HighlightText',\n },\n ':active': {\n backgroundColor: 'HighlightText',\n },\n },\n});\n\nconst useMediaBaseClassName = makeResetStyles({\n alignItems: 'center',\n display: 'inline-flex',\n fontSize: ATTACHMENT_SIZE,\n height: ATTACHMENT_SIZE,\n lineHeight: ATTACHMENT_SIZE,\n width: ATTACHMENT_SIZE,\n});\n\nconst useContentBaseClassName = makeResetStyles({\n overflowX: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n ...typographyStyles.body1,\n});\n\nconst useDismissIconBaseClassName = 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: ATTACHMENT_SIZE,\n height: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,\n justifyContent: 'center',\n maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`,\n});\n\nconst useImageOnlyStyles = makeStyles({\n primaryAction: {\n padding: 0,\n },\n content: {\n lineHeight: 0,\n },\n});\n\nexport const useOverflowStyles = makeStyles({\n overflow: {\n maxWidth: '100%',\n width: '100%',\n },\n});\n\n/**\n * Apply styling to the Attachment slots based on the state\n */\nexport const useAttachmentStyles_unstable = (state: AttachmentState): AttachmentState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const primaryActionBaseClassName = usePrimaryActionBaseClassName();\n const dismissButtonBaseClassName = useDismissButtonBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const dismissIconBaseClassName = useDismissIconBaseClassName();\n const progressBarStyles = useProgressBarStyles();\n const primaryActionStyles = usePrimaryActionStyles();\n const imageOnlyStyles = useImageOnlyStyles();\n const { imageOnly, primaryAction } = state;\n\n state.root.className = mergeClasses(attachmentClassNames.root, rootBaseClassName, state.root.className);\n state.primaryAction.className = mergeClasses(\n attachmentClassNames.primaryAction,\n primaryActionBaseClassName,\n primaryAction.as !== 'span' && !state.isLoading && primaryActionStyles.button,\n imageOnly && imageOnlyStyles.primaryAction,\n state.primaryAction.className,\n );\n state.dismissButton.className = mergeClasses(\n attachmentClassNames.dismissButton,\n dismissButtonBaseClassName,\n state.dismissButton.className,\n );\n if (state.media) {\n state.media.className = mergeClasses(attachmentClassNames.media, mediaBaseClassName, state.media.className);\n }\n state.content.className = mergeClasses(\n attachmentClassNames.content,\n contentBaseClassName,\n imageOnly && imageOnlyStyles.content,\n state.content.className,\n );\n state.dismissIcon.className = mergeClasses(\n attachmentClassNames.dismissIcon,\n dismissIconBaseClassName,\n state.dismissIcon.className,\n );\n\n if (state.progress) {\n state.progress.className = mergeClasses(\n attachmentClassNames.progress,\n progressBarStyles.progress,\n state.progress.className,\n );\n\n const bar = slot.optional(state.progress.bar, { elementType: 'div', renderByDefault: true });\n if (bar) {\n if (state.progress.value === undefined) {\n bar.className = mergeClasses(progressBarStyles.indeterminateProgressBar, bar.className);\n } else {\n bar.className = mergeClasses(progressBarStyles.regularProgressBar, bar.className);\n }\n state.progress.bar = bar;\n }\n }\n\n return state;\n};\n"],"names":["attachmentClassNames","useAttachmentStyles_unstable","borderLeftColor","colorNeutralStroke1","root","primaryAction","dismissButton","media","content","dismissIcon","progress","ATTACHMENT_MAXWIDTH","ATTACHMENT_SIZE","useRootBaseClassName","makeResetStyles","display","tokens","colorSubtleBackground","boxSizing","strokeWidthThin","borderRadiusMedium","alignSelf","position","spacingHorizontalSNudge","color","colorNeutralForeground1","cursor","buttonBaseStyles","alignItems","backgroundColor","borderRadius","strokeWidthThick","colorStrokeFocus2","columnGap","flexWrap","__resetStyles","justifyContent","__styles","createCustomFocusIndicatorStyle","outline","zIndex","Bi91k9c","verticalAlign","lj723h","Bbkh6qg","usePrimaryActionBaseClassName","Cnge2b","borderRightStyle","maxWidth","spacingHorizontalXS","padding","spacingVerticalXS","m","usePrimaryActionStyles","button","colorSubtleBackgroundHover","colorSubtleBackgroundPressed","colorNeutralForeground2Pressed","Bg96gwp","minWidth","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","state","colorNeutralForeground2BrandPressed","dismissButtonBaseClassName","useDismissButtonBaseClassName","mediaBaseClassName","useMediaBaseClassName","contentBaseClassName","colorNeutralForeground2BrandHover","progressBarStyles","useProgressBarStyles","primaryActionStyles","imageOnlyStyles","useImageOnlyStyles","rootBaseClassName","className","mergeClasses","primaryActionBaseClassName","as","isLoading","imageOnly","fontSize","height","lineHeight","width","elementType","useContentBaseClassName","overflowX","textOverflow","whiteSpace","value","undefined","typographyStyles","body1","indeterminateProgressBar","bar","useDismissIconBaseClassName","regularProgressBar","borderRadiusCircular","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3,"sources":["useAttachmentStyles.styles.ts"],"sourcesContent":["import {\n createCustomFocusIndicatorStyle,\n makeResetStyles,\n makeStyles,\n mergeClasses,\n slot,\n tokens,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { useProgressBarStyles } from '../utils/useProgressBarStyles.styles';\nimport type { AttachmentSlots, AttachmentState } from './Attachment.types';\nimport type { GriffelResetStyle, SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentClassNames: SlotClassNames<AttachmentSlots> = {\n root: 'fai-Attachment',\n primaryAction: 'fai-Attachment__primaryAction',\n dismissButton: 'fai-Attachment__dismissButton',\n media: 'fai-Attachment__media',\n content: 'fai-Attachment__content',\n dismissIcon: 'fai-Attachment__dismissIcon',\n progress: 'fai-Attachment__progress',\n};\n\nconst ATTACHMENT_MAXWIDTH = '180px';\nconst SMALL_ATTACHMENT_SIZE = '16px';\nconst ATTACHMENT_SIZE = '20px';\n\nconst useRootBaseClassName = makeResetStyles({\n display: 'inline-flex',\n flexWrap: 'nowrap',\n verticalAlign: 'middle',\n boxSizing: 'border-box',\n width: 'fit-content',\n alignSelf: 'end',\n position: 'relative',\n});\n\nconst buttonBaseStyles: GriffelResetStyle = {\n alignItems: 'center',\n backgroundColor: tokens.colorSubtleBackground,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n columnGap: tokens.spacingHorizontalSNudge,\n color: tokens.colorNeutralForeground1,\n cursor: 'pointer',\n display: 'inline-flex',\n flexWrap: 'nowrap',\n justifyContent: 'center',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n zIndex: 1,\n }),\n verticalAlign: 'middle',\n};\n\nconst usePrimaryActionBaseClassName = makeResetStyles({\n ...buttonBaseStyles,\n borderTopRightRadius: tokens.borderRadiusNone,\n borderBottomRightRadius: tokens.borderRadiusNone,\n borderRightStyle: 'none',\n maxWidth: `calc(${ATTACHMENT_MAXWIDTH} - ${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS} - ${tokens.spacingHorizontalXS})`,\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,\n});\n\nconst usePrimaryActionStyles = makeStyles({\n button: {\n ':hover': {\n cursor: 'pointer',\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground2Hover,\n },\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground2Pressed,\n },\n '@media (forced-colors: active)': {\n ':hover': {\n backgroundColor: 'HighlightText',\n },\n ':active': {\n backgroundColor: 'HighlightText',\n },\n },\n },\n});\n\nconst useDismissButtonBaseClassName = makeResetStyles({\n ...buttonBaseStyles,\n\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n\n // divider:\n borderLeftColor: tokens.colorNeutralStroke1,\n borderTopLeftRadius: tokens.borderRadiusNone,\n borderBottomLeftRadius: tokens.borderRadiusNone,\n\n borderTopRightRadius: tokens.borderRadiusMedium,\n borderBottomRightRadius: tokens.borderRadiusMedium,\n\n ':hover': {\n cursor: 'pointer',\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground2BrandHover,\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorBrandForegroundLinkHover,\n },\n },\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n ':focus': {\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorNeutralForeground2BrandHover,\n },\n },\n '@media (forced-colors: active)': {\n ':hover': {\n backgroundColor: 'HighlightText',\n },\n ':active': {\n backgroundColor: 'HighlightText',\n },\n },\n});\n\nconst useMediaBaseClassName = makeResetStyles({\n alignItems: 'center',\n display: 'inline-flex',\n fontSize: ATTACHMENT_SIZE,\n height: ATTACHMENT_SIZE,\n lineHeight: ATTACHMENT_SIZE,\n width: ATTACHMENT_SIZE,\n});\n\nconst useContentBaseClassName = makeResetStyles({\n overflowX: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n ...typographyStyles.body1,\n});\n\nconst useDismissIconBaseClassName = 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: ATTACHMENT_SIZE,\n height: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,\n justifyContent: 'center',\n maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`,\n});\n\nconst useImageOnlyStyles = makeStyles({\n primaryAction: {\n padding: 0,\n },\n content: {\n lineHeight: 0,\n },\n});\n\nexport const useOverflowStyles = makeStyles({\n overflow: {\n maxWidth: '100%',\n width: '100%',\n },\n});\n\nconst useSmallStyles = makeStyles({\n primaryAction: {\n maxWidth: `calc(${ATTACHMENT_MAXWIDTH} - ${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS} - ${tokens.spacingHorizontalXS})`,\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalSNudge} ${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalSNudge}`,\n },\n media: {\n fontSize: SMALL_ATTACHMENT_SIZE,\n height: SMALL_ATTACHMENT_SIZE,\n lineHeight: SMALL_ATTACHMENT_SIZE,\n width: SMALL_ATTACHMENT_SIZE,\n },\n content: {\n ...typographyStyles.caption1,\n },\n dismissButton: {\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalXXS}`,\n maxWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n minWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n },\n dismissIcon: {\n fontSize: SMALL_ATTACHMENT_SIZE,\n height: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,\n maxWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n minWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n },\n});\n\n/**\n * Apply styling to the Attachment slots based on the state\n */\nexport const useAttachmentStyles_unstable = (state: AttachmentState): AttachmentState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const primaryActionBaseClassName = usePrimaryActionBaseClassName();\n const dismissButtonBaseClassName = useDismissButtonBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const dismissIconBaseClassName = useDismissIconBaseClassName();\n const progressBarStyles = useProgressBarStyles();\n const primaryActionStyles = usePrimaryActionStyles();\n const imageOnlyStyles = useImageOnlyStyles();\n const smallStyles = useSmallStyles();\n const { imageOnly, primaryAction, size } = state;\n\n state.root.className = mergeClasses(attachmentClassNames.root, rootBaseClassName, state.root.className);\n state.primaryAction.className = mergeClasses(\n attachmentClassNames.primaryAction,\n primaryActionBaseClassName,\n size === 'small' && smallStyles.primaryAction,\n primaryAction.as !== 'span' && !state.isLoading && primaryActionStyles.button,\n imageOnly && imageOnlyStyles.primaryAction,\n state.primaryAction.className,\n );\n state.dismissButton.className = mergeClasses(\n attachmentClassNames.dismissButton,\n dismissButtonBaseClassName,\n size === 'small' && smallStyles.dismissButton,\n state.dismissButton.className,\n );\n if (state.media) {\n state.media.className = mergeClasses(\n attachmentClassNames.media,\n mediaBaseClassName,\n size === 'small' && smallStyles.media,\n state.media.className,\n );\n }\n state.content.className = mergeClasses(\n attachmentClassNames.content,\n contentBaseClassName,\n size === 'small' && smallStyles.content,\n imageOnly && imageOnlyStyles.content,\n state.content.className,\n );\n state.dismissIcon.className = mergeClasses(\n attachmentClassNames.dismissIcon,\n dismissIconBaseClassName,\n size === 'small' && smallStyles.dismissIcon,\n state.dismissIcon.className,\n );\n\n if (state.progress) {\n state.progress.className = mergeClasses(\n attachmentClassNames.progress,\n progressBarStyles.progress,\n state.progress.className,\n );\n\n const bar = slot.optional(state.progress.bar, { elementType: 'div', renderByDefault: true });\n if (bar) {\n if (state.progress.value === undefined) {\n bar.className = mergeClasses(progressBarStyles.indeterminateProgressBar, bar.className);\n } else {\n bar.className = mergeClasses(progressBarStyles.regularProgressBar, bar.className);\n }\n state.progress.bar = bar;\n }\n }\n\n return state;\n};\n"],"names":["attachmentClassNames","justifyContent","borderLeftColor","colorNeutralStroke1","root","primaryAction","dismissButton","media","content","dismissIcon","progress","ATTACHMENT_MAXWIDTH","SMALL_ATTACHMENT_SIZE","ATTACHMENT_SIZE","useRootBaseClassName","makeResetStyles","display","tokens","colorSubtleBackground","boxSizing","strokeWidthThin","borderRadiusMedium","alignSelf","position","spacingHorizontalSNudge","color","colorNeutralForeground1","cursor","buttonBaseStyles","alignItems","backgroundColor","borderRadius","strokeWidthThick","colorStrokeFocus2","columnGap","flexWrap","__resetStyles","__styles","createCustomFocusIndicatorStyle","outline","zIndex","Bi91k9c","verticalAlign","lj723h","Bbkh6qg","usePrimaryActionBaseClassName","Cnge2b","borderRightStyle","maxWidth","spacingHorizontalXS","padding","spacingVerticalXS","m","usePrimaryActionStyles","button","colorSubtleBackgroundHover","colorSubtleBackgroundPressed","colorNeutralForeground2Pressed","Bg96gwp","minWidth","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","colorNeutralForeground2BrandHover","uwmqm3","z189sj","a9b677","Byoj8tv","useMediaBaseClassName","fontSize","height","lineHeight","Be2twd7","useContentBaseClassName","overflowX","textOverflow","whiteSpace","d","useDismissIconBaseClassName","borderRadiusCircular","border","state","spacingVerticalXXS","primaryActionBaseClassName","useImageOnlyStyles","makeStyles","dismissIconBaseClassName","useProgressBarStyles","imageOnlyStyles","smallStyles","useSmallStyles","overflow","width","className","mergeClasses","rootBaseClassName","size","as","isLoading","primaryActionStyles","imageOnly","dismissButtonBaseClassName","contentBaseClassName","elementType","bar","value","undefined"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAaaA,oBAAAA;eAAAA;;IA6IXC,4BAAgB;eAAhBA;;IA3DAC,iBAAwBC;eAAxBD;;;iCAxFgB;4CAEmB;AAI9B,MAAMF,uBAAwD;UACnEI;mBACAC;mBACAC;WACAC;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MAAAA,QAAAA,CAAAA,GAAAA,EAAAA;YACT2F,aAAA;YACA/F,iBAAS;;QAET,IAAAgG,KAAA;YACAlG,IAAAA,MAAAA,QAAe,CAAAmG,KAAA,KAAAC,WAAA;gBACbxD,IAAAA,SAAYjC,GAAAA,IAAAA,6BAAOiE,EAAAA,kBAAsBjE,wBAA6B,EAAAuF,IAAAX,SAAA;mBACtE7C;gBACAW,IAAAA,SAAW,GAAKmC,IAAAA,6BAAElF,EAAAA,kBAA2BK,kBAAOG,EAAeoF,IAACX,SAAS5E;YAC/E;YACAR,MAAAA,QAAa,CAAA+F,GAAA,GAAAA;;;WAGXxD;yDAEF"}
|
|
@@ -2,10 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
AttachmentList: function() {
|
|
13
|
+
return _AttachmentList.AttachmentList;
|
|
14
|
+
},
|
|
15
|
+
attachmentListClassNames: function() {
|
|
16
|
+
return _useAttachmentListStylesstyles.attachmentListClassNames;
|
|
17
|
+
},
|
|
18
|
+
renderAttachmentList_unstable: function() {
|
|
19
|
+
return _renderAttachmentList.renderAttachmentList_unstable;
|
|
20
|
+
},
|
|
21
|
+
useAttachmentListStyles_unstable: function() {
|
|
22
|
+
return _useAttachmentListStylesstyles.useAttachmentListStyles_unstable;
|
|
23
|
+
},
|
|
24
|
+
useAttachmentList_unstable: function() {
|
|
25
|
+
return _useAttachmentList.useAttachmentList_unstable;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const _AttachmentList = require("./AttachmentList");
|
|
29
|
+
const _renderAttachmentList = require("./renderAttachmentList");
|
|
30
|
+
const _useAttachmentList = require("./useAttachmentList");
|
|
31
|
+
const _useAttachmentListStylesstyles = require("./useAttachmentListStyles.styles");
|
|
11
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { AttachmentList } from './AttachmentList';\nexport type { AttachmentDismissedData, AttachmentListContextValues, AttachmentListProps, AttachmentListSlots, AttachmentListState } from './AttachmentList.types';\nexport { renderAttachmentList_unstable } from './renderAttachmentList';\nexport { useAttachmentList_unstable } from './useAttachmentList';\nexport { attachmentListClassNames, useAttachmentListStyles_unstable } from './useAttachmentListStyles.styles';\n"],"names":["AttachmentList","attachmentListClassNames","renderAttachmentList_unstable","useAttachmentListStyles_unstable","useAttachmentList_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,cAAc;eAAdA,8BAAc;;IAIdC,wBAAwB;eAAxBA,uDAAwB;;IAFxBC,6BAA6B;eAA7BA,mDAA6B;;IAEHC,gCAAgC;eAAhCA,+DAAgC;;IAD1DC,0BAA0B;eAA1BA,6CAA0B;;;gCAHJ;sCAEe;mCACH;+CACgC"}
|
|
@@ -2,10 +2,28 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
AttachmentOverflowMenu: function() {
|
|
13
|
+
return _AttachmentOverflowMenu.AttachmentOverflowMenu;
|
|
14
|
+
},
|
|
15
|
+
renderAttachmentOverflowMenu_unstable: function() {
|
|
16
|
+
return _renderAttachmentOverflowMenu.renderAttachmentOverflowMenu_unstable;
|
|
17
|
+
},
|
|
18
|
+
useAttachmentOverflowMenuContextValues_unstable: function() {
|
|
19
|
+
return _useAttachmentOverflowMenuContextValues.useAttachmentOverflowMenuContextValues_unstable;
|
|
20
|
+
},
|
|
21
|
+
useAttachmentOverflowMenu_unstable: function() {
|
|
22
|
+
return _useAttachmentOverflowMenu.useAttachmentOverflowMenu_unstable;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const _AttachmentOverflowMenu = require("./AttachmentOverflowMenu");
|
|
26
|
+
const _renderAttachmentOverflowMenu = require("./renderAttachmentOverflowMenu");
|
|
27
|
+
const _useAttachmentOverflowMenu = require("./useAttachmentOverflowMenu");
|
|
28
|
+
const _useAttachmentOverflowMenuContextValues = require("./useAttachmentOverflowMenuContextValues");
|
|
11
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { AttachmentOverflowMenu } from './AttachmentOverflowMenu';\nexport type { AttachmentOverflowMenuContextValues, AttachmentOverflowMenuProps, AttachmentOverflowMenuSlots, AttachmentOverflowMenuState } from './AttachmentOverflowMenu.types';\nexport { renderAttachmentOverflowMenu_unstable } from './renderAttachmentOverflowMenu';\nexport { useAttachmentOverflowMenu_unstable } from './useAttachmentOverflowMenu';\nexport { useAttachmentOverflowMenuContextValues_unstable } from './useAttachmentOverflowMenuContextValues';\n"],"names":["AttachmentOverflowMenu","renderAttachmentOverflowMenu_unstable","useAttachmentOverflowMenuContextValues_unstable","useAttachmentOverflowMenu_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,sBAAsB;eAAtBA,8CAAsB;;IAEtBC,qCAAqC;eAArCA,mEAAqC;;IAErCC,+CAA+C;eAA/CA,uFAA+C;;IAD/CC,kCAAkC;eAAlCA,6DAAkC;;;wCAHJ;8CAEe;2CACH;wDACa"}
|
|
@@ -2,10 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
AttachmentOverflowMenuButton: function() {
|
|
13
|
+
return _AttachmentOverflowMenuButton.AttachmentOverflowMenuButton;
|
|
14
|
+
},
|
|
15
|
+
attachmentOverflowMenuButtonClassNames: function() {
|
|
16
|
+
return _useAttachmentOverflowMenuButtonStylesstyles.attachmentOverflowMenuButtonClassNames;
|
|
17
|
+
},
|
|
18
|
+
renderAttachmentOverflowMenuButton_unstable: function() {
|
|
19
|
+
return _renderAttachmentOverflowMenuButton.renderAttachmentOverflowMenuButton_unstable;
|
|
20
|
+
},
|
|
21
|
+
useAttachmentOverflowMenuButtonStyles_unstable: function() {
|
|
22
|
+
return _useAttachmentOverflowMenuButtonStylesstyles.useAttachmentOverflowMenuButtonStyles_unstable;
|
|
23
|
+
},
|
|
24
|
+
useAttachmentOverflowMenuButton_unstable: function() {
|
|
25
|
+
return _useAttachmentOverflowMenuButton.useAttachmentOverflowMenuButton_unstable;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const _AttachmentOverflowMenuButton = require("./AttachmentOverflowMenuButton");
|
|
29
|
+
const _renderAttachmentOverflowMenuButton = require("./renderAttachmentOverflowMenuButton");
|
|
30
|
+
const _useAttachmentOverflowMenuButton = require("./useAttachmentOverflowMenuButton");
|
|
31
|
+
const _useAttachmentOverflowMenuButtonStylesstyles = require("./useAttachmentOverflowMenuButtonStyles.styles");
|
|
11
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { AttachmentOverflowMenuButton } from './AttachmentOverflowMenuButton';\nexport type { AttachmentOverflowMenuButtonProps, AttachmentOverflowMenuButtonSlots, AttachmentOverflowMenuButtonState } from './AttachmentOverflowMenuButton.types';\nexport { renderAttachmentOverflowMenuButton_unstable } from './renderAttachmentOverflowMenuButton';\nexport { useAttachmentOverflowMenuButton_unstable } from './useAttachmentOverflowMenuButton';\nexport { attachmentOverflowMenuButtonClassNames, useAttachmentOverflowMenuButtonStyles_unstable } from './useAttachmentOverflowMenuButtonStyles.styles';\n"],"names":["AttachmentOverflowMenuButton","attachmentOverflowMenuButtonClassNames","renderAttachmentOverflowMenuButton_unstable","useAttachmentOverflowMenuButtonStyles_unstable","useAttachmentOverflowMenuButton_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,4BAA4B;eAA5BA,0DAA4B;;IAI5BC,sCAAsC;eAAtCA,mFAAsC;;IAFtCC,2CAA2C;eAA3CA,+EAA2C;;IAEHC,8CAA8C;eAA9CA,2FAA8C;;IADtFC,wCAAwC;eAAxCA,yEAAwC;;;8CAHJ;oDAEe;iDACH;6DAC8C"}
|
|
@@ -2,10 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
AttachmentOverflowMenuItem: function() {
|
|
13
|
+
return _AttachmentOverflowMenuItem.AttachmentOverflowMenuItem;
|
|
14
|
+
},
|
|
15
|
+
attachmentOverflowMenuItemClassNames: function() {
|
|
16
|
+
return _useAttachmentOverflowMenuItemStylesstyles.attachmentOverflowMenuItemClassNames;
|
|
17
|
+
},
|
|
18
|
+
renderAttachmentOverflowMenuItem_unstable: function() {
|
|
19
|
+
return _renderAttachmentOverflowMenuItem.renderAttachmentOverflowMenuItem_unstable;
|
|
20
|
+
},
|
|
21
|
+
useAttachmentOverflowMenuItemStyles_unstable: function() {
|
|
22
|
+
return _useAttachmentOverflowMenuItemStylesstyles.useAttachmentOverflowMenuItemStyles_unstable;
|
|
23
|
+
},
|
|
24
|
+
useAttachmentOverflowMenuItem_unstable: function() {
|
|
25
|
+
return _useAttachmentOverflowMenuItem.useAttachmentOverflowMenuItem_unstable;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const _AttachmentOverflowMenuItem = require("./AttachmentOverflowMenuItem");
|
|
29
|
+
const _renderAttachmentOverflowMenuItem = require("./renderAttachmentOverflowMenuItem");
|
|
30
|
+
const _useAttachmentOverflowMenuItem = require("./useAttachmentOverflowMenuItem");
|
|
31
|
+
const _useAttachmentOverflowMenuItemStylesstyles = require("./useAttachmentOverflowMenuItemStyles.styles");
|
|
11
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { AttachmentOverflowMenuItem } from './AttachmentOverflowMenuItem';\nexport type { AttachmentOverflowMenuItemProps, AttachmentOverflowMenuItemSlots, AttachmentOverflowMenuItemState } from './AttachmentOverflowMenuItem.types';\nexport { renderAttachmentOverflowMenuItem_unstable } from './renderAttachmentOverflowMenuItem';\nexport { useAttachmentOverflowMenuItem_unstable } from './useAttachmentOverflowMenuItem';\nexport { attachmentOverflowMenuItemClassNames, useAttachmentOverflowMenuItemStyles_unstable } from './useAttachmentOverflowMenuItemStyles.styles';\n"],"names":["AttachmentOverflowMenuItem","attachmentOverflowMenuItemClassNames","renderAttachmentOverflowMenuItem_unstable","useAttachmentOverflowMenuItemStyles_unstable","useAttachmentOverflowMenuItem_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,0BAA0B;eAA1BA,sDAA0B;;IAI1BC,oCAAoC;eAApCA,+EAAoC;;IAFpCC,yCAAyC;eAAzCA,2EAAyC;;IAEHC,4CAA4C;eAA5CA,uFAA4C;;IADlFC,sCAAsC;eAAtCA,qEAAsC;;;4CAHJ;kDAEe;+CACH;2DAC4C"}
|
|
@@ -2,10 +2,43 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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");
|
|
11
44
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export
|
|
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"}
|
|
@@ -2,10 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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");
|
|
11
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export
|
|
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"}
|
|
@@ -2,10 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 _AttachmentTagList.AttachmentTagList;
|
|
14
|
+
},
|
|
15
|
+
attachmentTagListClassNames: function() {
|
|
16
|
+
return _useAttachmentTagListStylesstyles.attachmentTagListClassNames;
|
|
17
|
+
},
|
|
18
|
+
renderAttachmentTagList_unstable: function() {
|
|
19
|
+
return _renderAttachmentTagList.renderAttachmentTagList_unstable;
|
|
20
|
+
},
|
|
21
|
+
useAttachmentTagListStyles_unstable: function() {
|
|
22
|
+
return _useAttachmentTagListStylesstyles.useAttachmentTagListStyles_unstable;
|
|
23
|
+
},
|
|
24
|
+
useAttachmentTagList_unstable: function() {
|
|
25
|
+
return _useAttachmentTagList.useAttachmentTagList_unstable;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const _AttachmentTagList = require("./AttachmentTagList");
|
|
29
|
+
const _renderAttachmentTagList = require("./renderAttachmentTagList");
|
|
30
|
+
const _useAttachmentTagList = require("./useAttachmentTagList");
|
|
31
|
+
const _useAttachmentTagListStylesstyles = require("./useAttachmentTagListStyles.styles");
|
|
11
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { AttachmentTagList } from './AttachmentTagList';\nexport type { AttachmentTagDismissedData, AttachmentTagListContextValues, AttachmentTagListProps, AttachmentTagListSlots, AttachmentTagListState } from './AttachmentTagList.types';\nexport { renderAttachmentTagList_unstable } from './renderAttachmentTagList';\nexport { useAttachmentTagList_unstable } from './useAttachmentTagList';\nexport { attachmentTagListClassNames, useAttachmentTagListStyles_unstable } from './useAttachmentTagListStyles.styles';\n"],"names":["AttachmentTagList","attachmentTagListClassNames","renderAttachmentTagList_unstable","useAttachmentTagListStyles_unstable","useAttachmentTagList_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"}
|
|
@@ -2,13 +2,152 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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.ATTACHMENTTAG_MAXWIDTH;
|
|
14
|
+
},
|
|
15
|
+
Attachment: function() {
|
|
16
|
+
return _Attachment.Attachment;
|
|
17
|
+
},
|
|
18
|
+
AttachmentList: function() {
|
|
19
|
+
return _AttachmentList.AttachmentList;
|
|
20
|
+
},
|
|
21
|
+
AttachmentOverflowMenu: function() {
|
|
22
|
+
return _AttachmentOverflowMenu.AttachmentOverflowMenu;
|
|
23
|
+
},
|
|
24
|
+
AttachmentOverflowMenuButton: function() {
|
|
25
|
+
return _AttachmentOverflowMenuButton.AttachmentOverflowMenuButton;
|
|
26
|
+
},
|
|
27
|
+
AttachmentOverflowMenuItem: function() {
|
|
28
|
+
return _AttachmentOverflowMenuItem.AttachmentOverflowMenuItem;
|
|
29
|
+
},
|
|
30
|
+
AttachmentTag: function() {
|
|
31
|
+
return _AttachmentTag.AttachmentTag;
|
|
32
|
+
},
|
|
33
|
+
AttachmentTagItem: function() {
|
|
34
|
+
return _AttachmentTagItem.AttachmentTagItem;
|
|
35
|
+
},
|
|
36
|
+
AttachmentTagList: function() {
|
|
37
|
+
return _AttachmentTagList.AttachmentTagList;
|
|
38
|
+
},
|
|
39
|
+
attachmentClassNames: function() {
|
|
40
|
+
return _Attachment.attachmentClassNames;
|
|
41
|
+
},
|
|
42
|
+
attachmentListClassNames: function() {
|
|
43
|
+
return _AttachmentList.attachmentListClassNames;
|
|
44
|
+
},
|
|
45
|
+
attachmentOverflowMenuButtonClassNames: function() {
|
|
46
|
+
return _AttachmentOverflowMenuButton.attachmentOverflowMenuButtonClassNames;
|
|
47
|
+
},
|
|
48
|
+
attachmentOverflowMenuItemClassNames: function() {
|
|
49
|
+
return _AttachmentOverflowMenuItem.attachmentOverflowMenuItemClassNames;
|
|
50
|
+
},
|
|
51
|
+
attachmentTagClassNames: function() {
|
|
52
|
+
return _AttachmentTag.attachmentTagClassNames;
|
|
53
|
+
},
|
|
54
|
+
attachmentTagItemClassNames: function() {
|
|
55
|
+
return _AttachmentTagItem.attachmentTagItemClassNames;
|
|
56
|
+
},
|
|
57
|
+
attachmentTagListClassNames: function() {
|
|
58
|
+
return _AttachmentTagList.attachmentTagListClassNames;
|
|
59
|
+
},
|
|
60
|
+
renderAttachmentList_unstable: function() {
|
|
61
|
+
return _AttachmentList.renderAttachmentList_unstable;
|
|
62
|
+
},
|
|
63
|
+
renderAttachmentOverflowMenuButton_unstable: function() {
|
|
64
|
+
return _AttachmentOverflowMenuButton.renderAttachmentOverflowMenuButton_unstable;
|
|
65
|
+
},
|
|
66
|
+
renderAttachmentOverflowMenuItem_unstable: function() {
|
|
67
|
+
return _AttachmentOverflowMenuItem.renderAttachmentOverflowMenuItem_unstable;
|
|
68
|
+
},
|
|
69
|
+
renderAttachmentOverflowMenu_unstable: function() {
|
|
70
|
+
return _AttachmentOverflowMenu.renderAttachmentOverflowMenu_unstable;
|
|
71
|
+
},
|
|
72
|
+
renderAttachmentTagItem_unstable: function() {
|
|
73
|
+
return _AttachmentTagItem.renderAttachmentTagItem_unstable;
|
|
74
|
+
},
|
|
75
|
+
renderAttachmentTagList_unstable: function() {
|
|
76
|
+
return _AttachmentTagList.renderAttachmentTagList_unstable;
|
|
77
|
+
},
|
|
78
|
+
renderAttachmentTag_unstable: function() {
|
|
79
|
+
return _AttachmentTag.renderAttachmentTag_unstable;
|
|
80
|
+
},
|
|
81
|
+
renderAttachment_unstable: function() {
|
|
82
|
+
return _Attachment.renderAttachment_unstable;
|
|
83
|
+
},
|
|
84
|
+
useAttachmentListStyles_unstable: function() {
|
|
85
|
+
return _AttachmentList.useAttachmentListStyles_unstable;
|
|
86
|
+
},
|
|
87
|
+
useAttachmentList_unstable: function() {
|
|
88
|
+
return _AttachmentList.useAttachmentList_unstable;
|
|
89
|
+
},
|
|
90
|
+
useAttachmentOverflowMenuButtonStyles_unstable: function() {
|
|
91
|
+
return _AttachmentOverflowMenuButton.useAttachmentOverflowMenuButtonStyles_unstable;
|
|
92
|
+
},
|
|
93
|
+
useAttachmentOverflowMenuButton_unstable: function() {
|
|
94
|
+
return _AttachmentOverflowMenuButton.useAttachmentOverflowMenuButton_unstable;
|
|
95
|
+
},
|
|
96
|
+
useAttachmentOverflowMenuContextValues_unstable: function() {
|
|
97
|
+
return _AttachmentOverflowMenu.useAttachmentOverflowMenuContextValues_unstable;
|
|
98
|
+
},
|
|
99
|
+
useAttachmentOverflowMenuItemStyles_unstable: function() {
|
|
100
|
+
return _AttachmentOverflowMenuItem.useAttachmentOverflowMenuItemStyles_unstable;
|
|
101
|
+
},
|
|
102
|
+
useAttachmentOverflowMenuItem_unstable: function() {
|
|
103
|
+
return _AttachmentOverflowMenuItem.useAttachmentOverflowMenuItem_unstable;
|
|
104
|
+
},
|
|
105
|
+
useAttachmentOverflowMenu_unstable: function() {
|
|
106
|
+
return _AttachmentOverflowMenu.useAttachmentOverflowMenu_unstable;
|
|
107
|
+
},
|
|
108
|
+
useAttachmentStyles_unstable: function() {
|
|
109
|
+
return _Attachment.useAttachmentStyles_unstable;
|
|
110
|
+
},
|
|
111
|
+
useAttachmentTagItemStyles_unstable: function() {
|
|
112
|
+
return _AttachmentTagItem.useAttachmentTagItemStyles_unstable;
|
|
113
|
+
},
|
|
114
|
+
useAttachmentTagItem_unstable: function() {
|
|
115
|
+
return _AttachmentTagItem.useAttachmentTagItem_unstable;
|
|
116
|
+
},
|
|
117
|
+
useAttachmentTagListStyles_unstable: function() {
|
|
118
|
+
return _AttachmentTagList.useAttachmentTagListStyles_unstable;
|
|
119
|
+
},
|
|
120
|
+
useAttachmentTagList_unstable: function() {
|
|
121
|
+
return _AttachmentTagList.useAttachmentTagList_unstable;
|
|
122
|
+
},
|
|
123
|
+
useAttachmentTagStyles_unstable: function() {
|
|
124
|
+
return _AttachmentTag.useAttachmentTagStyles_unstable;
|
|
125
|
+
},
|
|
126
|
+
useAttachmentTag_unstable: function() {
|
|
127
|
+
return _AttachmentTag.useAttachmentTag_unstable;
|
|
128
|
+
},
|
|
129
|
+
useAttachment_unstable: function() {
|
|
130
|
+
return _Attachment.useAttachment_unstable;
|
|
131
|
+
},
|
|
132
|
+
useContentBaseClassName: function() {
|
|
133
|
+
return _AttachmentTag.useContentBaseClassName;
|
|
134
|
+
},
|
|
135
|
+
useIconBaseClassName: function() {
|
|
136
|
+
return _AttachmentTag.useIconBaseClassName;
|
|
137
|
+
},
|
|
138
|
+
useMediaBaseClassName: function() {
|
|
139
|
+
return _AttachmentTag.useMediaBaseClassName;
|
|
140
|
+
},
|
|
141
|
+
useOverflowStyles: function() {
|
|
142
|
+
return _Attachment.useOverflowStyles;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
const _AttachmentTag = require("./AttachmentTag");
|
|
146
|
+
const _AttachmentTagList = require("./AttachmentTagList");
|
|
147
|
+
const _AttachmentTagItem = require("./AttachmentTagItem");
|
|
148
|
+
const _Attachment = require("./Attachment");
|
|
149
|
+
const _AttachmentList = require("./AttachmentList");
|
|
150
|
+
const _AttachmentOverflowMenu = require("./AttachmentOverflowMenu");
|
|
151
|
+
const _AttachmentOverflowMenuButton = require("./AttachmentOverflowMenuButton");
|
|
152
|
+
const _AttachmentOverflowMenuItem = require("./AttachmentOverflowMenuItem");
|
|
14
153
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export type { AttachmentTagProps, AttachmentTagSlots, AttachmentTagState } from './AttachmentTag';\nexport { ATTACHMENTTAG_MAXWIDTH, AttachmentTag, attachmentTagClassNames, renderAttachmentTag_unstable, useAttachmentTagStyles_unstable, useAttachmentTag_unstable, useContentBaseClassName, useIconBaseClassName, useMediaBaseClassName } from './AttachmentTag';\nexport type { AttachmentTagDismissedData, AttachmentTagListContextValues, AttachmentTagListProps, AttachmentTagListSlots, AttachmentTagListState } from './AttachmentTagList';\nexport { AttachmentTagList, attachmentTagListClassNames, renderAttachmentTagList_unstable, useAttachmentTagListStyles_unstable, useAttachmentTagList_unstable } from './AttachmentTagList';\nexport type { AttachmentTagItemProps, AttachmentTagItemSlots, AttachmentTagItemState } from './AttachmentTagItem';\nexport { AttachmentTagItem, attachmentTagItemClassNames, renderAttachmentTagItem_unstable, useAttachmentTagItemStyles_unstable, useAttachmentTagItem_unstable } from './AttachmentTagItem';\nexport type { AttachmentProps, AttachmentSlots, AttachmentState } from './Attachment';\nexport { Attachment, attachmentClassNames, renderAttachment_unstable, useAttachmentStyles_unstable, useAttachment_unstable, useOverflowStyles } from './Attachment';\nexport type { AttachmentDismissedData, AttachmentListContextValues, AttachmentListProps, AttachmentListSlots, AttachmentListState } from './AttachmentList';\nexport { AttachmentList, attachmentListClassNames, renderAttachmentList_unstable, useAttachmentListStyles_unstable, useAttachmentList_unstable } from './AttachmentList';\nexport type { AttachmentOverflowMenuContextValues, AttachmentOverflowMenuProps, AttachmentOverflowMenuSlots, AttachmentOverflowMenuState } from './AttachmentOverflowMenu';\nexport { AttachmentOverflowMenu, renderAttachmentOverflowMenu_unstable, useAttachmentOverflowMenuContextValues_unstable, useAttachmentOverflowMenu_unstable } from './AttachmentOverflowMenu';\nexport type { AttachmentOverflowMenuButtonProps, AttachmentOverflowMenuButtonSlots, AttachmentOverflowMenuButtonState } from './AttachmentOverflowMenuButton';\nexport { AttachmentOverflowMenuButton, attachmentOverflowMenuButtonClassNames, renderAttachmentOverflowMenuButton_unstable, useAttachmentOverflowMenuButtonStyles_unstable, useAttachmentOverflowMenuButton_unstable } from './AttachmentOverflowMenuButton';\nexport type { AttachmentOverflowMenuItemProps, AttachmentOverflowMenuItemSlots, AttachmentOverflowMenuItemState } from './AttachmentOverflowMenuItem';\nexport { AttachmentOverflowMenuItem, attachmentOverflowMenuItemClassNames, renderAttachmentOverflowMenuItem_unstable, useAttachmentOverflowMenuItemStyles_unstable, useAttachmentOverflowMenuItem_unstable } from './AttachmentOverflowMenuItem';\n"],"names":["ATTACHMENTTAG_MAXWIDTH","Attachment","AttachmentList","AttachmentOverflowMenu","AttachmentOverflowMenuButton","AttachmentOverflowMenuItem","AttachmentTag","AttachmentTagItem","AttachmentTagList","attachmentClassNames","attachmentListClassNames","attachmentOverflowMenuButtonClassNames","attachmentOverflowMenuItemClassNames","attachmentTagClassNames","attachmentTagItemClassNames","attachmentTagListClassNames","renderAttachmentList_unstable","renderAttachmentOverflowMenuButton_unstable","renderAttachmentOverflowMenuItem_unstable","renderAttachmentOverflowMenu_unstable","renderAttachmentTagItem_unstable","renderAttachmentTagList_unstable","renderAttachmentTag_unstable","renderAttachment_unstable","useAttachmentListStyles_unstable","useAttachmentList_unstable","useAttachmentOverflowMenuButtonStyles_unstable","useAttachmentOverflowMenuButton_unstable","useAttachmentOverflowMenuContextValues_unstable","useAttachmentOverflowMenuItemStyles_unstable","useAttachmentOverflowMenuItem_unstable","useAttachmentOverflowMenu_unstable","useAttachmentStyles_unstable","useAttachmentTagItemStyles_unstable","useAttachmentTagItem_unstable","useAttachmentTagListStyles_unstable","useAttachmentTagList_unstable","useAttachmentTagStyles_unstable","useAttachmentTag_unstable","useAttachment_unstable","useContentBaseClassName","useIconBaseClassName","useMediaBaseClassName","useOverflowStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACSA,sBAAsB;eAAtBA,qCAAsB;;IAMtBC,UAAU;eAAVA,sBAAU;;IAEVC,cAAc;eAAdA,8BAAc;;IAEdC,sBAAsB;eAAtBA,8CAAsB;;IAEtBC,4BAA4B;eAA5BA,0DAA4B;;IAE5BC,0BAA0B;eAA1BA,sDAA0B;;IAdFC,aAAa;eAAbA,4BAAa;;IAIrCC,iBAAiB;eAAjBA,oCAAiB;;IAFjBC,iBAAiB;eAAjBA,oCAAiB;;IAILC,oBAAoB;eAApBA,gCAAoB;;IAEhBC,wBAAwB;eAAxBA,wCAAwB;;IAIVC,sCAAsC;eAAtCA,oEAAsC;;IAExCC,oCAAoC;eAApCA,gEAAoC;;IAdzBC,uBAAuB;eAAvBA,sCAAuB;;IAI3CC,2BAA2B;eAA3BA,8CAA2B;;IAF3BC,2BAA2B;eAA3BA,8CAA2B;;IAMJC,6BAA6B;eAA7BA,6CAA6B;;IAIDC,2CAA2C;eAA3CA,yEAA2C;;IAE/CC,yCAAyC;eAAzCA,qEAAyC;;IAJnFC,qCAAqC;eAArCA,6DAAqC;;IANbC,gCAAgC;eAAhCA,mDAAgC;;IAFhCC,gCAAgC;eAAhCA,mDAAgC;;IAFhBC,4BAA4B;eAA5BA,2CAA4B;;IAM1DC,yBAAyB;eAAzBA,qCAAyB;;IAEcC,gCAAgC;eAAhCA,gDAAgC;;IAAEC,0BAA0B;eAA1BA,0CAA0B;;IAIlBC,8CAA8C;eAA9CA,4EAA8C;;IAAEC,wCAAwC;eAAxCA,sEAAwC;;IAF5IC,+CAA+C;eAA/CA,uEAA+C;;IAIDC,4CAA4C;eAA5CA,wEAA4C;;IAAEC,sCAAsC;eAAtCA,kEAAsC;;IAJjFC,kCAAkC;eAAlCA,0DAAkC;;IAJrFC,4BAA4B;eAA5BA,wCAA4B;;IAFPC,mCAAmC;eAAnCA,sDAAmC;;IAAEC,6BAA6B;eAA7BA,gDAA6B;;IAFlEC,mCAAmC;eAAnCA,sDAAmC;;IAAEC,6BAA6B;eAA7BA,gDAA6B;;IAFtDC,+BAA+B;eAA/BA,8CAA+B;;IAAEC,yBAAyB;eAAzBA,wCAAyB;;IAM7DC,sBAAsB;eAAtBA,kCAAsB;;IANyCC,uBAAuB;eAAvBA,sCAAuB;;IAAEC,oBAAoB;eAApBA,mCAAoB;;IAAEC,qBAAqB;eAArBA,oCAAqB;;IAM3GC,iBAAiB;eAAjBA,6BAAiB;;;+BANkG;mCAE1E;mCAEA;4BAEhB;gCAEC;wCAEa;8CAEyD;4CAEV"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-attachments",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "A set of components related to attaching files in Copilot experiences.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/react-provider": "^0.9.
|
|
15
|
+
"@fluentui-copilot/react-provider": "^0.9.3",
|
|
16
16
|
"@fluentui-copilot/react-utilities": "^0.0.4",
|
|
17
17
|
"@fluentui-copilot/tokens": "^0.3.3",
|
|
18
18
|
"@swc/helpers": "^0.5.1"
|