@fluentui-copilot/react-attachments 0.0.0-nightly-20240313-0404-8abc883d.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +662 -0
- package/CHANGELOG.md +213 -0
- package/LICENSE +23 -0
- package/README.md +5 -0
- package/dist/index.d.ts +107 -0
- package/lib/AttachmentTag.js +2 -0
- package/lib/AttachmentTag.js.map +1 -0
- package/lib/AttachmentTagItem.js +2 -0
- package/lib/AttachmentTagItem.js.map +1 -0
- package/lib/AttachmentTagList.js +2 -0
- package/lib/AttachmentTagList.js.map +1 -0
- package/lib/components/AttachmentTag/AttachmentTag.js +14 -0
- package/lib/components/AttachmentTag/AttachmentTag.js.map +1 -0
- package/lib/components/AttachmentTag/AttachmentTag.types.js +2 -0
- package/lib/components/AttachmentTag/AttachmentTag.types.js.map +1 -0
- package/lib/components/AttachmentTag/index.js +6 -0
- package/lib/components/AttachmentTag/index.js.map +1 -0
- package/lib/components/AttachmentTag/renderAttachmentTag.js +12 -0
- package/lib/components/AttachmentTag/renderAttachmentTag.js.map +1 -0
- package/lib/components/AttachmentTag/useAttachmentTag.js +64 -0
- package/lib/components/AttachmentTag/useAttachmentTag.js.map +1 -0
- package/lib/components/AttachmentTag/useAttachmentTagStyles.js +30 -0
- package/lib/components/AttachmentTag/useAttachmentTagStyles.js.map +1 -0
- package/lib/components/AttachmentTagItem/AttachmentTagItem.js +12 -0
- package/lib/components/AttachmentTagItem/AttachmentTagItem.js.map +1 -0
- package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js +3 -0
- package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js.map +1 -0
- package/lib/components/AttachmentTagItem/index.js +6 -0
- package/lib/components/AttachmentTagItem/index.js.map +1 -0
- package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js +11 -0
- package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js.map +1 -0
- package/lib/components/AttachmentTagItem/useAttachmentTagItem.js +29 -0
- package/lib/components/AttachmentTagItem/useAttachmentTagItem.js.map +1 -0
- package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.js +21 -0
- package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.js.map +1 -0
- package/lib/components/AttachmentTagList/AttachmentTagList.js +16 -0
- package/lib/components/AttachmentTagList/AttachmentTagList.js.map +1 -0
- package/lib/components/AttachmentTagList/AttachmentTagList.types.js +2 -0
- package/lib/components/AttachmentTagList/AttachmentTagList.types.js.map +1 -0
- package/lib/components/AttachmentTagList/index.js +6 -0
- package/lib/components/AttachmentTagList/index.js.map +1 -0
- package/lib/components/AttachmentTagList/renderAttachmentTagList.js +14 -0
- package/lib/components/AttachmentTagList/renderAttachmentTagList.js.map +1 -0
- package/lib/components/AttachmentTagList/useAttachmentTagList.js +35 -0
- package/lib/components/AttachmentTagList/useAttachmentTagList.js.map +1 -0
- package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js +13 -0
- package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +1 -0
- package/lib/components/AttachmentTagList/useAttachmentTagListStyles.js +14 -0
- package/lib/components/AttachmentTagList/useAttachmentTagListStyles.js.map +1 -0
- package/lib/components/index.js +3 -0
- package/lib/components/index.js.map +1 -0
- package/lib/contexts/attachmentTagListContext.js +8 -0
- package/lib/contexts/attachmentTagListContext.js.map +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/AttachmentTag.js +7 -0
- package/lib-commonjs/AttachmentTag.js.map +1 -0
- package/lib-commonjs/AttachmentTagItem.js +7 -0
- package/lib-commonjs/AttachmentTagItem.js.map +1 -0
- package/lib-commonjs/AttachmentTagList.js +7 -0
- package/lib-commonjs/AttachmentTagList.js.map +1 -0
- package/lib-commonjs/components/AttachmentTag/AttachmentTag.js +23 -0
- package/lib-commonjs/components/AttachmentTag/AttachmentTag.js.map +1 -0
- package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js +5 -0
- package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js.map +1 -0
- package/lib-commonjs/components/AttachmentTag/index.js +11 -0
- package/lib-commonjs/components/AttachmentTag/index.js.map +1 -0
- package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js +22 -0
- package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js.map +1 -0
- package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js +61 -0
- package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js.map +1 -0
- package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.js +65 -0
- package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js +21 -0
- package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js +7 -0
- package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagItem/index.js +11 -0
- package/lib-commonjs/components/AttachmentTagItem/index.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js +17 -0
- package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js +28 -0
- package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.js +34 -0
- package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js +25 -0
- package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js +5 -0
- package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagList/index.js +11 -0
- package/lib-commonjs/components/AttachmentTagList/index.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js +20 -0
- package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js +33 -0
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js +20 -0
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +1 -0
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.js +30 -0
- package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.js.map +1 -0
- package/lib-commonjs/components/index.js +8 -0
- package/lib-commonjs/components/index.js.map +1 -0
- package/lib-commonjs/contexts/attachmentTagListContext.js +28 -0
- package/lib-commonjs/contexts/attachmentTagListContext.js.map +1 -0
- package/lib-commonjs/index.js +45 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { getNativeElementProps, slot } from '@fluentui/react-components';
|
|
2
|
+
// If you add JSX to this file, be sure to change the file type to .tsx
|
|
3
|
+
/**
|
|
4
|
+
* Create the state required to render AttachmentTagItem.
|
|
5
|
+
*
|
|
6
|
+
* The returned state can be modified with hooks such as useAttachmentTagItemStyles_unstable,
|
|
7
|
+
* before being passed to renderAttachmentTagItem_unstable.
|
|
8
|
+
*
|
|
9
|
+
* @param props - props from this instance of AttachmentTagItem
|
|
10
|
+
* @param ref - reference to root HTMLElement of AttachmentTagItem
|
|
11
|
+
*/
|
|
12
|
+
export const useAttachmentTagItem_unstable = (props, ref) => {
|
|
13
|
+
return {
|
|
14
|
+
// TODO add appropriate props/defaults
|
|
15
|
+
components: {
|
|
16
|
+
// TODO add each slot's element type or component
|
|
17
|
+
root: 'div'
|
|
18
|
+
},
|
|
19
|
+
// TODO add appropriate slots, for example:
|
|
20
|
+
// mySlot: slot.optional(props.mySlot),
|
|
21
|
+
root: slot.always(getNativeElementProps('div', {
|
|
22
|
+
ref,
|
|
23
|
+
...props
|
|
24
|
+
}), {
|
|
25
|
+
elementType: 'div'
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useAttachmentTagItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentTagItem.ts"],"sourcesContent":["import type * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-components';\nimport type { AttachmentTagItemProps, AttachmentTagItemState } from './AttachmentTagItem.types';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render AttachmentTagItem.\n *\n * The returned state can be modified with hooks such as useAttachmentTagItemStyles_unstable,\n * before being passed to renderAttachmentTagItem_unstable.\n *\n * @param props - props from this instance of AttachmentTagItem\n * @param ref - reference to root HTMLElement of AttachmentTagItem\n */\nexport const useAttachmentTagItem_unstable = (\n props: AttachmentTagItemProps,\n ref: React.Ref<HTMLElement>,\n): AttachmentTagItemState => {\n return {\n // TODO add appropriate props/defaults\n components: {\n // TODO add each slot's element type or component\n root: 'div',\n },\n // TODO add appropriate slots, for example:\n // mySlot: slot.optional(props.mySlot),\n root: slot.always(\n getNativeElementProps('div', {\n ref,\n ...props,\n }),\n { elementType: 'div' },\n ),\n };\n};\n"],"names":["getNativeElementProps","slot","useAttachmentTagItem_unstable","props","ref","components","root","always","elementType"],"mappings":"AACA,SAASA,qBAAqB,EAAEC,IAAI,QAAQ,6BAA6B;AAGzE,uEAAuE;AAEvE;;;;;;;;CAQC,GACD,OAAO,MAAMC,gCAAgC,CAC3CC,OACAC;IAEA,OAAO;QACL,sCAAsC;QACtCC,YAAY;YACV,iDAAiD;YACjDC,MAAM;QACR;QACA,2CAA2C;QAC3C,uCAAuC;QACvCA,MAAML,KAAKM,MAAM,CACfP,sBAAsB,OAAO;YAC3BI;YACA,GAAGD,KAAK;QACV,IACA;YAAEK,aAAa;QAAM;IAEzB;AACF,EAAE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __styles, mergeClasses } from '@fluentui/react-components';
|
|
2
|
+
export const attachmentTagItemClassNames = {
|
|
3
|
+
root: 'fai-AttachmentTagItem'
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Styles for the root slot
|
|
7
|
+
*/
|
|
8
|
+
const useStyles = __styles({
|
|
9
|
+
root: {}
|
|
10
|
+
}, {});
|
|
11
|
+
/**
|
|
12
|
+
* Apply styling to the AttachmentTagItem slots based on the state
|
|
13
|
+
*/
|
|
14
|
+
export const useAttachmentTagItemStyles_unstable = state => {
|
|
15
|
+
const styles = useStyles();
|
|
16
|
+
state.root.className = mergeClasses(attachmentTagItemClassNames.root, styles.root, state.root.className);
|
|
17
|
+
// TODO Add class names to slots, for example:
|
|
18
|
+
// state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);
|
|
19
|
+
return state;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useAttachmentTagItemStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentTagItemStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-components';\nimport type { AttachmentTagItemSlots, AttachmentTagItemState } from './AttachmentTagItem.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentTagItemClassNames: SlotClassNames<AttachmentTagItemSlots> = {\n root: 'fai-AttachmentTagItem',\n // TODO: add class names for all slots on AttachmentTagItemSlots.\n // Should be of the form `<slotName>: 'fai-AttachmentTagItem__<slotName>`\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n // TODO Add default styles for the root element\n },\n\n // TODO add additional classes for different states and/or slots\n});\n\n/**\n * Apply styling to the AttachmentTagItem slots based on the state\n */\nexport const useAttachmentTagItemStyles_unstable = (state: AttachmentTagItemState): AttachmentTagItemState => {\n const styles = useStyles();\n state.root.className = mergeClasses(attachmentTagItemClassNames.root, styles.root, state.root.className);\n\n // TODO Add class names to slots, for example:\n // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","attachmentTagItemClassNames","root","useStyles","useAttachmentTagItemStyles_unstable","state","styles","className"],"mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,6BAA6B;AAItE,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;AAGR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYJ,WAAW;IAC3BG,MAAM;IAEN;AAGF;AAEA;;CAEC,GACD,OAAO,MAAME,sCAAsC,CAACC;IAClD,MAAMC,SAASH;IACfE,MAAMH,IAAI,CAACK,SAAS,GAAGP,aAAaC,4BAA4BC,IAAI,EAAEI,OAAOJ,IAAI,EAAEG,MAAMH,IAAI,CAACK,SAAS;IAEvG,8CAA8C;IAC9C,gFAAgF;IAEhF,OAAOF;AACT,EAAE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { renderAttachmentTagList_unstable } from './renderAttachmentTagList';
|
|
3
|
+
import { useAttachmentTagList_unstable } from './useAttachmentTagList';
|
|
4
|
+
import { useAttachmentTagListContextValues_unstable } from './useAttachmentTagListContextValues';
|
|
5
|
+
import { useAttachmentTagListStyles_unstable } from './useAttachmentTagListStyles';
|
|
6
|
+
import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
|
|
7
|
+
// AttachmentTagList component - TODO: add more docs
|
|
8
|
+
export const AttachmentTagList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
9
|
+
const state = useAttachmentTagList_unstable(props, ref);
|
|
10
|
+
const contextValues = useAttachmentTagListContextValues_unstable(state);
|
|
11
|
+
useAttachmentTagListStyles_unstable(state);
|
|
12
|
+
useCustomStyleHook('useAttachmentTagListStyles')(state);
|
|
13
|
+
return renderAttachmentTagList_unstable(state, contextValues);
|
|
14
|
+
});
|
|
15
|
+
AttachmentTagList.displayName = 'AttachmentTagList';
|
|
16
|
+
//# sourceMappingURL=AttachmentTagList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTagList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderAttachmentTagList_unstable } from './renderAttachmentTagList';\nimport { useAttachmentTagList_unstable } from './useAttachmentTagList';\nimport { useAttachmentTagListContextValues_unstable } from './useAttachmentTagListContextValues';\nimport { useAttachmentTagListStyles_unstable } from './useAttachmentTagListStyles';\nimport type { AttachmentTagListProps } from './AttachmentTagList.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n\n// AttachmentTagList component - TODO: add more docs\nexport const AttachmentTagList: ForwardRefComponent<AttachmentTagListProps> = React.forwardRef((props, ref) => {\n const state = useAttachmentTagList_unstable(props, ref);\n const contextValues = useAttachmentTagListContextValues_unstable(state);\n\n useAttachmentTagListStyles_unstable(state);\n useCustomStyleHook('useAttachmentTagListStyles')(state);\n\n return renderAttachmentTagList_unstable(state, contextValues);\n});\n\nAttachmentTagList.displayName = 'AttachmentTagList';\n"],"names":["React","renderAttachmentTagList_unstable","useAttachmentTagList_unstable","useAttachmentTagListContextValues_unstable","useAttachmentTagListStyles_unstable","useCustomStyleHook","AttachmentTagList","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,gCAAgC,QAAQ,4BAA4B;AAC7E,SAASC,6BAA6B,QAAQ,yBAAyB;AACvE,SAASC,0CAA0C,QAAQ,sCAAsC;AACjG,SAASC,mCAAmC,QAAQ,+BAA+B;AAGnF,SAASC,kBAAkB,QAAQ,mCAAmC;AAEtE,oDAAoD;AACpD,OAAO,MAAMC,kCAAiEN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IACrG,MAAMC,QAAQR,8BAA8BM,OAAOC;IACnD,MAAME,gBAAgBR,2CAA2CO;IAEjEN,oCAAoCM;IACpCL,mBAAmB,8BAA8BK;IAEjD,OAAOT,iCAAiCS,OAAOC;AACjD,GAAG;AAEHL,kBAAkBM,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTagList.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-components';\nimport type { AttachmentTagListContextValue } from '../../contexts/attachmentTagListContext';\nimport type { AttachmentTagProps } from '../AttachmentTag/AttachmentTag.types';\n\nexport type AttachmentTagListSlots = {\n root: Slot<'div'>;\n};\n\nexport type AttachmentTagDismissedData = {\n content?: AttachmentTagProps['children'];\n media?: AttachmentTagProps['media'];\n};\n\n/**\n * AttachmentTagList Props\n */\nexport type AttachmentTagListProps = ComponentProps<AttachmentTagListSlots> & {\n onAttachmentTagDismiss?: (\n e: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>,\n data: AttachmentTagDismissedData,\n ) => void;\n};\n\n/**\n * State used in rendering AttachmentTagList\n */\nexport type AttachmentTagListState = ComponentState<AttachmentTagListSlots> &\n Pick<AttachmentTagListProps, 'onAttachmentTagDismiss'>;\n\nexport type AttachmentTagListContextValues = {\n tagList: AttachmentTagListContextValue;\n};\n"],"names":[],"mappings":"AAAA,WA+BE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './AttachmentTagList';\nexport * from './AttachmentTagList.types';\nexport * from './renderAttachmentTagList';\nexport * from './useAttachmentTagList';\nexport * from './useAttachmentTagListStyles';\n"],"names":[],"mappings":"AAAA,cAAc,sBAAsB;AACpC,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,+BAA+B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
+
import { assertSlots } from '@fluentui/react-components';
|
|
3
|
+
import { AttachmentTagListProvider } from '../../contexts/attachmentTagListContext';
|
|
4
|
+
/**
|
|
5
|
+
* Render the final JSX of AttachmentTagList
|
|
6
|
+
*/
|
|
7
|
+
export const renderAttachmentTagList_unstable = (state, contextValues) => {
|
|
8
|
+
assertSlots(state);
|
|
9
|
+
return /*#__PURE__*/_jsx(AttachmentTagListProvider, {
|
|
10
|
+
value: contextValues.tagList,
|
|
11
|
+
children: /*#__PURE__*/_jsx(state.root, {})
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=renderAttachmentTagList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["renderAttachmentTagList.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\n\nimport { AttachmentTagListProvider } from '../../contexts/attachmentTagListContext';\nimport type {\n AttachmentTagListContextValues,\n AttachmentTagListState,\n AttachmentTagListSlots,\n} from './AttachmentTagList.types';\n\n/**\n * Render the final JSX of AttachmentTagList\n */\nexport const renderAttachmentTagList_unstable = (\n state: AttachmentTagListState,\n contextValues: AttachmentTagListContextValues,\n) => {\n assertSlots<AttachmentTagListSlots>(state);\n\n return (\n <AttachmentTagListProvider value={contextValues.tagList}>\n <state.root />\n </AttachmentTagListProvider>\n );\n};\n"],"names":["assertSlots","AttachmentTagListProvider","renderAttachmentTagList_unstable","state","contextValues","value","tagList","root"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,6BAA6B;AAEzD,SAASC,yBAAyB,QAAQ,0CAA0C;AAOpF;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAC9CC,OACAC;IAEAJ,YAAoCG;IAEpC,qBACE,KAACF;QAA0BI,OAAOD,cAAcE,OAAO;kBACrD,cAAA,KAACH,MAAMI,IAAI;;AAGjB,EAAE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { getNativeElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';
|
|
2
|
+
/**
|
|
3
|
+
* Create the state required to render AttachmentTagList.
|
|
4
|
+
*
|
|
5
|
+
* The returned state can be modified with hooks such as useAttachmentTagListStyles_unstable,
|
|
6
|
+
* before being passed to renderAttachmentTagList_unstable.
|
|
7
|
+
*
|
|
8
|
+
* @param props - props from this instance of AttachmentTagList
|
|
9
|
+
* @param ref - reference to root HTMLElement of AttachmentTagList
|
|
10
|
+
*/
|
|
11
|
+
export const useAttachmentTagList_unstable = (props, ref) => {
|
|
12
|
+
const {
|
|
13
|
+
onAttachmentTagDismiss
|
|
14
|
+
} = props;
|
|
15
|
+
const focusAttributes = useArrowNavigationGroup({
|
|
16
|
+
axis: 'both',
|
|
17
|
+
circular: true
|
|
18
|
+
});
|
|
19
|
+
return {
|
|
20
|
+
onAttachmentTagDismiss,
|
|
21
|
+
components: {
|
|
22
|
+
root: 'div'
|
|
23
|
+
},
|
|
24
|
+
root: slot.always(getNativeElementProps('div', {
|
|
25
|
+
'aria-label': 'Attachments',
|
|
26
|
+
ref,
|
|
27
|
+
role: 'menu',
|
|
28
|
+
...focusAttributes,
|
|
29
|
+
...props
|
|
30
|
+
}), {
|
|
31
|
+
elementType: 'div'
|
|
32
|
+
})
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=useAttachmentTagList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentTagList.ts"],"sourcesContent":["import type * as React from 'react';\n\nimport { getNativeElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\nimport type { AttachmentTagListProps, AttachmentTagListState } from './AttachmentTagList.types';\n\n/**\n * Create the state required to render AttachmentTagList.\n *\n * The returned state can be modified with hooks such as useAttachmentTagListStyles_unstable,\n * before being passed to renderAttachmentTagList_unstable.\n *\n * @param props - props from this instance of AttachmentTagList\n * @param ref - reference to root HTMLElement of AttachmentTagList\n */\nexport const useAttachmentTagList_unstable = (\n props: AttachmentTagListProps,\n ref: React.Ref<HTMLElement>,\n): AttachmentTagListState => {\n const { onAttachmentTagDismiss } = props;\n\n const focusAttributes = useArrowNavigationGroup({\n axis: 'both',\n circular: true,\n });\n\n return {\n onAttachmentTagDismiss,\n\n components: {\n root: 'div',\n },\n root: slot.always(\n getNativeElementProps('div', {\n 'aria-label': 'Attachments',\n ref,\n role: 'menu',\n ...focusAttributes,\n ...props,\n }),\n { elementType: 'div' },\n ),\n };\n};\n"],"names":["getNativeElementProps","slot","useArrowNavigationGroup","useAttachmentTagList_unstable","props","ref","onAttachmentTagDismiss","focusAttributes","axis","circular","components","root","always","role","elementType"],"mappings":"AAEA,SAASA,qBAAqB,EAAEC,IAAI,EAAEC,uBAAuB,QAAQ,6BAA6B;AAGlG;;;;;;;;CAQC,GACD,OAAO,MAAMC,gCAAgC,CAC3CC,OACAC;IAEA,MAAM,EAAEC,sBAAsB,EAAE,GAAGF;IAEnC,MAAMG,kBAAkBL,wBAAwB;QAC9CM,MAAM;QACNC,UAAU;IACZ;IAEA,OAAO;QACLH;QAEAI,YAAY;YACVC,MAAM;QACR;QACAA,MAAMV,KAAKW,MAAM,CACfZ,sBAAsB,OAAO;YAC3B,cAAc;YACdK;YACAQ,MAAM;YACN,GAAGN,eAAe;YAClB,GAAGH,KAAK;QACV,IACA;YAAEU,aAAa;QAAM;IAEzB;AACF,EAAE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function useAttachmentTagListContextValues_unstable(state) {
|
|
2
|
+
const {
|
|
3
|
+
onAttachmentTagDismiss
|
|
4
|
+
} = state;
|
|
5
|
+
// This context is created with "@fluentui/react-context-selector", there is no sense to memoize it
|
|
6
|
+
const tagList = {
|
|
7
|
+
onAttachmentTagDismiss
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
tagList
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=useAttachmentTagListContextValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentTagListContextValues.ts"],"sourcesContent":["import type { AttachmentTagListContextValues, AttachmentTagListState } from './AttachmentTagList.types';\n\nexport function useAttachmentTagListContextValues_unstable(\n state: AttachmentTagListState,\n): AttachmentTagListContextValues {\n const { onAttachmentTagDismiss } = state;\n\n // This context is created with \"@fluentui/react-context-selector\", there is no sense to memoize it\n const tagList = {\n onAttachmentTagDismiss,\n };\n\n return { tagList };\n}\n"],"names":["useAttachmentTagListContextValues_unstable","state","onAttachmentTagDismiss","tagList"],"mappings":"AAEA,OAAO,SAASA,2CACdC,KAA6B;IAE7B,MAAM,EAAEC,sBAAsB,EAAE,GAAGD;IAEnC,mGAAmG;IACnG,MAAME,UAAU;QACdD;IACF;IAEA,OAAO;QAAEC;IAAQ;AACnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __resetStyles, mergeClasses, tokens } from '@fluentui/react-components';
|
|
2
|
+
export const attachmentTagListClassNames = {
|
|
3
|
+
root: 'fai-AttachmentTagList'
|
|
4
|
+
};
|
|
5
|
+
const useRootBaseClassName = __resetStyles("r168fwfa", null, [".r168fwfa{column-gap:var(--spacingHorizontalSNudge);display:flex;flex-direction:row;flex-shrink:0;flex-wrap:wrap;row-gap:var(--spacingVerticalXS);}"]);
|
|
6
|
+
/**
|
|
7
|
+
* Apply styling to the AttachmentTagList slots based on the state
|
|
8
|
+
*/
|
|
9
|
+
export const useAttachmentTagListStyles_unstable = state => {
|
|
10
|
+
const rootBaseClassName = useRootBaseClassName();
|
|
11
|
+
state.root.className = mergeClasses(attachmentTagListClassNames.root, rootBaseClassName, state.root.className);
|
|
12
|
+
return state;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useAttachmentTagListStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentTagListStyles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses, tokens } from '@fluentui/react-components';\nimport type { AttachmentTagListSlots, AttachmentTagListState } from './AttachmentTagList.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentTagListClassNames: SlotClassNames<AttachmentTagListSlots> = {\n root: 'fai-AttachmentTagList',\n};\n\nconst useRootBaseClassName = makeResetStyles({\n columnGap: tokens.spacingHorizontalSNudge,\n display: 'flex',\n flexDirection: 'row',\n flexShrink: 0,\n flexWrap: 'wrap',\n rowGap: tokens.spacingVerticalXS,\n});\n\n/**\n * Apply styling to the AttachmentTagList slots based on the state\n */\nexport const useAttachmentTagListStyles_unstable = (state: AttachmentTagListState): AttachmentTagListState => {\n const rootBaseClassName = useRootBaseClassName();\n state.root.className = mergeClasses(attachmentTagListClassNames.root, rootBaseClassName, state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","tokens","attachmentTagListClassNames","root","useRootBaseClassName","columnGap","spacingHorizontalSNudge","display","flexDirection","flexShrink","flexWrap","rowGap","spacingVerticalXS","useAttachmentTagListStyles_unstable","state","rootBaseClassName","className"],"mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,EAAEC,MAAM,QAAQ,6BAA6B;AAInF,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;AACR,EAAE;AAEF,MAAMC,uBAAuBL,gBAAgB;IAC3CM,WAAWJ,OAAOK,uBAAuB;IACzCC,SAAS;IACTC,eAAe;IACfC,YAAY;IACZC,UAAU;IACVC,QAAQV,OAAOW,iBAAiB;AAClC;AAEA;;CAEC,GACD,OAAO,MAAMC,sCAAsC,CAACC;IAClD,MAAMC,oBAAoBX;IAC1BU,MAAMX,IAAI,CAACa,SAAS,GAAGhB,aAAaE,4BAA4BC,IAAI,EAAEY,mBAAmBD,MAAMX,IAAI,CAACa,SAAS;IAE7G,OAAOF;AACT,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './AttachmentTag';\nexport * from './AttachmentTagList';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,sBAAsB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext, useContextSelector } from '@fluentui/react-context-selector';
|
|
2
|
+
export const AttachmentTagListContext = createContext(undefined);
|
|
3
|
+
const tagListContextDefaultValue = {
|
|
4
|
+
onAttachmentTagDismiss: () => null
|
|
5
|
+
};
|
|
6
|
+
export const AttachmentTagListProvider = AttachmentTagListContext.Provider;
|
|
7
|
+
export const useAttachmentTagListContext_unstable = selector => useContextSelector(AttachmentTagListContext, (ctx = tagListContextDefaultValue) => selector(ctx));
|
|
8
|
+
//# sourceMappingURL=attachmentTagListContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["attachmentTagListContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentTagListProps } from '../components/index';\n\nexport const AttachmentTagListContext: Context<AttachmentTagListContextValue> = createContext<\n AttachmentTagListContextValue | undefined\n>(undefined) as Context<AttachmentTagListContextValue>;\n\nconst tagListContextDefaultValue: AttachmentTagListContextValue = {\n onAttachmentTagDismiss: () => null,\n};\n\n/**\n * Context shared between AttachmentTagList and its children components\n */\nexport type AttachmentTagListContextValue = Pick<AttachmentTagListProps, 'onAttachmentTagDismiss'>;\n\nexport const AttachmentTagListProvider = AttachmentTagListContext.Provider;\n\nexport const useAttachmentTagListContext_unstable = <T>(selector: ContextSelector<AttachmentTagListContextValue, T>) =>\n useContextSelector(AttachmentTagListContext, (ctx = tagListContextDefaultValue) => selector(ctx));\n"],"names":["createContext","useContextSelector","AttachmentTagListContext","undefined","tagListContextDefaultValue","onAttachmentTagDismiss","AttachmentTagListProvider","Provider","useAttachmentTagListContext_unstable","selector","ctx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,kBAAkB,QAAQ,mCAAmC;AAIrF,OAAO,MAAMC,2BAAmEF,cAE9EG,WAAqD;AAEvD,MAAMC,6BAA4D;IAChEC,wBAAwB,IAAM;AAChC;AAOA,OAAO,MAAMC,4BAA4BJ,yBAAyBK,QAAQ,CAAC;AAE3E,OAAO,MAAMC,uCAAuC,CAAIC,WACtDR,mBAAmBC,0BAA0B,CAACQ,MAAMN,0BAA0B,GAAKK,SAASC,MAAM"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AttachmentTag, attachmentTagClassNames, renderAttachmentTag_unstable, useAttachmentTagStyles_unstable, useAttachmentTag_unstable } from './AttachmentTag';
|
|
2
|
+
export { AttachmentTagList, attachmentTagListClassNames, renderAttachmentTagList_unstable, useAttachmentTagListStyles_unstable, useAttachmentTagList_unstable } from './AttachmentTagList';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +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"],"names":["AttachmentTag","attachmentTagClassNames","renderAttachmentTag_unstable","useAttachmentTagStyles_unstable","useAttachmentTag_unstable","AttachmentTagList","attachmentTagListClassNames","renderAttachmentTagList_unstable","useAttachmentTagListStyles_unstable","useAttachmentTagList_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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTag.js"],"sourcesContent":["export * from './components/AttachmentTag/index';\n//# sourceMappingURL=AttachmentTag.js.map"],"names":[],"mappings":";;;;;uBAAc;CACd,yCAAyC"}
|
|
@@ -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/AttachmentTagItem/index"), exports);
|
|
7
|
+
//# sourceMappingURL=AttachmentTagItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTagItem.js"],"sourcesContent":["export * from './components/AttachmentTagItem/index';\n//# sourceMappingURL=AttachmentTagItem.js.map"],"names":[],"mappings":";;;;;uBAAc;CACd,6CAA6C"}
|
|
@@ -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/AttachmentTagList/index"), exports);
|
|
7
|
+
//# sourceMappingURL=AttachmentTagList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTagList.js"],"sourcesContent":["export * from './components/AttachmentTagList/index';\n//# sourceMappingURL=AttachmentTagList.js.map"],"names":[],"mappings":";;;;;uBAAc;CACd,6CAA6C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "AttachmentTag", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return AttachmentTag;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _useAttachmentTag = require("./useAttachmentTag");
|
|
14
|
+
const _renderAttachmentTag = require("./renderAttachmentTag");
|
|
15
|
+
const _useAttachmentTagStyles = require("./useAttachmentTagStyles");
|
|
16
|
+
const _reactprovider = require("@fluentui-copilot/react-provider");
|
|
17
|
+
const AttachmentTag = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
18
|
+
const state = (0, _useAttachmentTag.useAttachmentTag_unstable)(props, ref);
|
|
19
|
+
(0, _useAttachmentTagStyles.useAttachmentTagStyles_unstable)(state);
|
|
20
|
+
(0, _reactprovider.useCustomStyleHook)('useAttachmentTagStyles')(state);
|
|
21
|
+
return (0, _renderAttachmentTag.renderAttachmentTag_unstable)(state);
|
|
22
|
+
});
|
|
23
|
+
AttachmentTag.displayName = 'AttachmentTag'; //# sourceMappingURL=AttachmentTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTag.js"],"sourcesContent":["import * as React from 'react';\nimport { useAttachmentTag_unstable } from './useAttachmentTag';\nimport { renderAttachmentTag_unstable } from './renderAttachmentTag';\nimport { useAttachmentTagStyles_unstable } from './useAttachmentTagStyles';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n// AttachmentTag component - TODO: add more docs\nexport const AttachmentTag = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useAttachmentTag_unstable(props, ref);\n useAttachmentTagStyles_unstable(state);\n useCustomStyleHook('useAttachmentTagStyles')(state);\n return renderAttachmentTag_unstable(state);\n});\nAttachmentTag.displayName = 'AttachmentTag';\n//# sourceMappingURL=AttachmentTag.js.map"],"names":["AttachmentTag","React","forwardRef","props","ref","state","useAttachmentTag_unstable","useAttachmentTagStyles_unstable","useCustomStyleHook","renderAttachmentTag_unstable","displayName"],"mappings":";;;;+BAMaA;;;eAAAA;;;;iEANU;kCACmB;qCACG;wCACG;+BACb;AAE5B,MAAMA,gBAAgB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjE,MAAMC,QAAQC,IAAAA,2CAAyB,EAACH,OAAOC;IAC/CG,IAAAA,uDAA+B,EAACF;IAChCG,IAAAA,iCAAkB,EAAC,0BAA0BH;IAC7C,OAAOI,IAAAA,iDAA4B,EAACJ;AACtC;AACAL,cAAcU,WAAW,GAAG,iBAC5B,yCAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTag.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=AttachmentTag.types.js.map"],"names":[],"mappings":";;;;CACA,+CAA+C"}
|
|
@@ -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("./AttachmentTag"), exports);
|
|
7
|
+
_export_star._(require("./AttachmentTag.types"), exports);
|
|
8
|
+
_export_star._(require("./renderAttachmentTag"), exports);
|
|
9
|
+
_export_star._(require("./useAttachmentTag"), exports);
|
|
10
|
+
_export_star._(require("./useAttachmentTagStyles"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './AttachmentTag';\nexport * from './AttachmentTag.types';\nexport * from './renderAttachmentTag';\nexport * from './useAttachmentTag';\nexport * from './useAttachmentTagStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;CACd,iCAAiC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderAttachmentTag_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return renderAttachmentTag_unstable;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
|
|
12
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
13
|
+
const renderAttachmentTag_unstable = (state)=>{
|
|
14
|
+
(0, _reactcomponents.assertSlots)(state);
|
|
15
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
|
|
16
|
+
children: [
|
|
17
|
+
state.media && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.media, {}),
|
|
18
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(state.content, {}),
|
|
19
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(state.icon, {})
|
|
20
|
+
]
|
|
21
|
+
});
|
|
22
|
+
}; //# sourceMappingURL=renderAttachmentTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["renderAttachmentTag.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-components';\n/**\n * Render the final JSX of AttachmentTag\n */\nexport const renderAttachmentTag_unstable = state => {\n assertSlots(state);\n return /*#__PURE__*/_jsxs(state.root, {\n children: [state.media && /*#__PURE__*/_jsx(state.media, {}), /*#__PURE__*/_jsx(state.content, {}), /*#__PURE__*/_jsx(state.icon, {})]\n });\n};\n//# sourceMappingURL=renderAttachmentTag.js.map"],"names":["renderAttachmentTag_unstable","state","assertSlots","_jsxs","root","children","media","_jsx","content","icon"],"mappings":";;;;+BAKaA;;;eAAAA;;;4BAL8B;iCACf;AAIrB,MAAMA,+BAA+BC,CAAAA;IAC1CC,IAAAA,4BAAW,EAACD;IACZ,OAAO,WAAW,GAAEE,IAAAA,gBAAK,EAACF,MAAMG,IAAI,EAAE;QACpCC,UAAU;YAACJ,MAAMK,KAAK,IAAI,WAAW,GAAEC,IAAAA,eAAI,EAACN,MAAMK,KAAK,EAAE,CAAC;YAAI,WAAW,GAAEC,IAAAA,eAAI,EAACN,MAAMO,OAAO,EAAE,CAAC;YAAI,WAAW,GAAED,IAAAA,eAAI,EAACN,MAAMQ,IAAI,EAAE,CAAC;SAAG;IACxI;AACF,GACA,+CAA+C"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useAttachmentTag_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return useAttachmentTag_unstable;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _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 _reactcontextselector = require("@fluentui/react-context-selector");
|
|
15
|
+
const _reacticons = require("@fluentui/react-icons");
|
|
16
|
+
const _attachmentTagListContext = require("../../contexts/attachmentTagListContext");
|
|
17
|
+
const useAttachmentTag_unstable = (props, ref)=>{
|
|
18
|
+
const onAttachmentTagDismiss = (0, _attachmentTagListContext.useAttachmentTagListContext_unstable)((context)=>context.onAttachmentTagDismiss);
|
|
19
|
+
const { children, role } = props;
|
|
20
|
+
const DismissIcon = (0, _reacticons.bundleIcon)(_reacticons.Dismiss20Filled, _reacticons.Dismiss20Regular);
|
|
21
|
+
const hasParentContext = (0, _reactcontextselector.useHasParentContext)(_attachmentTagListContext.AttachmentTagListContext);
|
|
22
|
+
const rootRole = role !== null && role !== void 0 ? role : hasParentContext ? 'menuitem' : undefined;
|
|
23
|
+
const root = _reactcomponents.slot.always((0, _reactcomponents.getNativeElementProps)('button', {
|
|
24
|
+
ref,
|
|
25
|
+
...props,
|
|
26
|
+
role: rootRole
|
|
27
|
+
}), {
|
|
28
|
+
elementType: 'button'
|
|
29
|
+
});
|
|
30
|
+
root.onClick = (0, _reactcomponents.mergeCallbacks)(root.onClick, (ev)=>onAttachmentTagDismiss === null || onAttachmentTagDismiss === void 0 ? void 0 : onAttachmentTagDismiss(ev, {
|
|
31
|
+
content: children,
|
|
32
|
+
media
|
|
33
|
+
}));
|
|
34
|
+
const media = _reactcomponents.slot.optional(props.media, {
|
|
35
|
+
elementType: 'span'
|
|
36
|
+
});
|
|
37
|
+
const content = _reactcomponents.slot.always(props.content, {
|
|
38
|
+
defaultProps: {
|
|
39
|
+
children
|
|
40
|
+
},
|
|
41
|
+
elementType: 'span'
|
|
42
|
+
});
|
|
43
|
+
const icon = _reactcomponents.slot.always(props.icon, {
|
|
44
|
+
defaultProps: {
|
|
45
|
+
children: /*#__PURE__*/ _react.createElement(DismissIcon, null)
|
|
46
|
+
},
|
|
47
|
+
elementType: 'span'
|
|
48
|
+
});
|
|
49
|
+
return {
|
|
50
|
+
components: {
|
|
51
|
+
root: 'button',
|
|
52
|
+
media: 'span',
|
|
53
|
+
content: 'span',
|
|
54
|
+
icon: 'span'
|
|
55
|
+
},
|
|
56
|
+
root,
|
|
57
|
+
media,
|
|
58
|
+
content,
|
|
59
|
+
icon
|
|
60
|
+
};
|
|
61
|
+
}; //# sourceMappingURL=useAttachmentTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentTag.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, mergeCallbacks, slot } from '@fluentui/react-components';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { Dismiss20Regular, Dismiss20Filled, bundleIcon } from '@fluentui/react-icons';\nimport { useAttachmentTagListContext_unstable } from '../../contexts/attachmentTagListContext';\nimport { AttachmentTagListContext } from '../../contexts/attachmentTagListContext';\n/**\n * Create the state required to render AttachmentTag.\n *\n * The returned state can be modified with hooks such as useAttachmentTagStyles_unstable,\n * before being passed to renderAttachmentTag_unstable.\n *\n * @param props - props from this instance of AttachmentTag\n * @param ref - reference to root HTMLElement of AttachmentTag\n */\nexport const useAttachmentTag_unstable = (props, ref) => {\n const onAttachmentTagDismiss = useAttachmentTagListContext_unstable(context => context.onAttachmentTagDismiss);\n const {\n children,\n role\n } = props;\n const DismissIcon = bundleIcon(Dismiss20Filled, Dismiss20Regular);\n const hasParentContext = useHasParentContext(AttachmentTagListContext);\n const rootRole = role !== null && role !== void 0 ? role : hasParentContext ? 'menuitem' : undefined;\n const root = slot.always(getNativeElementProps('button', {\n ref,\n ...props,\n role: rootRole\n }), {\n elementType: 'button'\n });\n root.onClick = mergeCallbacks(root.onClick, ev => onAttachmentTagDismiss === null || onAttachmentTagDismiss === void 0 ? void 0 : onAttachmentTagDismiss(ev, {\n content: children,\n media\n }));\n const media = slot.optional(props.media, {\n elementType: 'span'\n });\n const content = slot.always(props.content, {\n defaultProps: {\n children\n },\n elementType: 'span'\n });\n const icon = slot.always(props.icon, {\n defaultProps: {\n children: /*#__PURE__*/React.createElement(DismissIcon, null)\n },\n elementType: 'span'\n });\n return {\n components: {\n root: 'button',\n media: 'span',\n content: 'span',\n icon: 'span'\n },\n root,\n media,\n content,\n icon\n };\n};\n//# sourceMappingURL=useAttachmentTag.js.map"],"names":["useAttachmentTag_unstable","props","ref","onAttachmentTagDismiss","useAttachmentTagListContext_unstable","context","children","role","DismissIcon","bundleIcon","Dismiss20Filled","Dismiss20Regular","hasParentContext","useHasParentContext","AttachmentTagListContext","rootRole","undefined","root","slot","always","getNativeElementProps","elementType","onClick","mergeCallbacks","ev","content","media","optional","defaultProps","icon","React","createElement","components"],"mappings":";;;;+BAeaA;;;eAAAA;;;;iEAfU;iCACqC;sCACxB;4BAC0B;0CACT;AAW9C,MAAMA,4BAA4B,CAACC,OAAOC;IAC/C,MAAMC,yBAAyBC,IAAAA,8DAAoC,EAACC,CAAAA,UAAWA,QAAQF,sBAAsB;IAC7G,MAAM,EACJG,QAAQ,EACRC,IAAI,EACL,GAAGN;IACJ,MAAMO,cAAcC,IAAAA,sBAAU,EAACC,2BAAe,EAAEC,4BAAgB;IAChE,MAAMC,mBAAmBC,IAAAA,yCAAmB,EAACC,kDAAwB;IACrE,MAAMC,WAAWR,SAAS,QAAQA,SAAS,KAAK,IAAIA,OAAOK,mBAAmB,aAAaI;IAC3F,MAAMC,OAAOC,qBAAI,CAACC,MAAM,CAACC,IAAAA,sCAAqB,EAAC,UAAU;QACvDlB;QACA,GAAGD,KAAK;QACRM,MAAMQ;IACR,IAAI;QACFM,aAAa;IACf;IACAJ,KAAKK,OAAO,GAAGC,IAAAA,+BAAc,EAACN,KAAKK,OAAO,EAAEE,CAAAA,KAAMrB,2BAA2B,QAAQA,2BAA2B,KAAK,IAAI,KAAK,IAAIA,uBAAuBqB,IAAI;YAC3JC,SAASnB;YACToB;QACF;IACA,MAAMA,QAAQR,qBAAI,CAACS,QAAQ,CAAC1B,MAAMyB,KAAK,EAAE;QACvCL,aAAa;IACf;IACA,MAAMI,UAAUP,qBAAI,CAACC,MAAM,CAAClB,MAAMwB,OAAO,EAAE;QACzCG,cAAc;YACZtB;QACF;QACAe,aAAa;IACf;IACA,MAAMQ,OAAOX,qBAAI,CAACC,MAAM,CAAClB,MAAM4B,IAAI,EAAE;QACnCD,cAAc;YACZtB,UAAU,WAAW,GAAEwB,OAAMC,aAAa,CAACvB,aAAa;QAC1D;QACAa,aAAa;IACf;IACA,OAAO;QACLW,YAAY;YACVf,MAAM;YACNS,OAAO;YACPD,SAAS;YACTI,MAAM;QACR;QACAZ;QACAS;QACAD;QACAI;IACF;AACF,GACA,4CAA4C"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
attachmentTagClassNames: function() {
|
|
13
|
+
return attachmentTagClassNames;
|
|
14
|
+
},
|
|
15
|
+
useAttachmentTagStyles_unstable: function() {
|
|
16
|
+
return useAttachmentTagStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
+
const attachmentTagClassNames = {
|
|
21
|
+
root: 'fai-AttachmentTag',
|
|
22
|
+
media: 'fai-AttachmentTag__media',
|
|
23
|
+
content: 'fai-AttachmentTag__content',
|
|
24
|
+
icon: 'fai-AttachmentTag__icon'
|
|
25
|
+
};
|
|
26
|
+
const ATTACHMENTTAG_MAXWIDTH = '180px';
|
|
27
|
+
const ATTACHMENTTAG_SIZE = '20px';
|
|
28
|
+
const useRootBaseClassName = (0, _reactcomponents.__resetStyles)("r1km3emv", "r21ecva", [
|
|
29
|
+
".r1km3emv{color:var(--colorNeutralForeground1);align-items:center;background-color:var(--colorNeutralBackground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);box-sizing:border-box;column-gap:var(--spacingHorizontalSNudge);cursor:pointer;display:inline-flex;flex-wrap:nowrap;justify-content:center;max-width:180px;padding:var(--spacingVerticalXS) var(--spacingHorizontalXS) var(--spacingVerticalXS) var(--spacingHorizontalS);vertical-align:middle;}",
|
|
30
|
+
".r1km3emv:hover{border-color:var(--colorNeutralStroke1Hover);}",
|
|
31
|
+
".r1km3emv:hover .fai-AttachmentTag__icon{color:var(--colorBrandForegroundLinkHover);}",
|
|
32
|
+
".r1km3emv:hover:active{border-color:var(--colorNeutralStroke1Pressed);}",
|
|
33
|
+
".r1km3emv:hover:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}",
|
|
34
|
+
".r1km3emv:focus .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandHover);}",
|
|
35
|
+
".r1km3emv:focus:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}",
|
|
36
|
+
".r21ecva{color:var(--colorNeutralForeground1);align-items:center;background-color:var(--colorNeutralBackground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);box-sizing:border-box;column-gap:var(--spacingHorizontalSNudge);cursor:pointer;display:inline-flex;flex-wrap:nowrap;justify-content:center;max-width:180px;padding:var(--spacingVerticalXS) var(--spacingHorizontalS) var(--spacingVerticalXS) var(--spacingHorizontalXS);vertical-align:middle;}",
|
|
37
|
+
".r21ecva:hover{border-color:var(--colorNeutralStroke1Hover);}",
|
|
38
|
+
".r21ecva:hover .fai-AttachmentTag__icon{color:var(--colorBrandForegroundLinkHover);}",
|
|
39
|
+
".r21ecva:hover:active{border-color:var(--colorNeutralStroke1Pressed);}",
|
|
40
|
+
".r21ecva:hover:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}",
|
|
41
|
+
".r21ecva:focus .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandHover);}",
|
|
42
|
+
".r21ecva:focus:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}"
|
|
43
|
+
]);
|
|
44
|
+
const useMediaBaseClassName = (0, _reactcomponents.__resetStyles)("r19jnv3a", null, [
|
|
45
|
+
".r19jnv3a{font-size:20px;height:20px;line-height:20px;width:20px;}"
|
|
46
|
+
]);
|
|
47
|
+
const useContentBaseClassName = (0, _reactcomponents.__resetStyles)("rmt99gk", null, [
|
|
48
|
+
".rmt99gk{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"
|
|
49
|
+
]);
|
|
50
|
+
const useIconBaseClassName = (0, _reactcomponents.__resetStyles)("r176grtk", null, [
|
|
51
|
+
".r176grtk{align-items:center;border-radius:var(--borderRadiusCircular);border:var(--strokeWidthThin) solid var(--colorTransparentStroke);box-sizing:border-box;color:var(--colorNeutralForeground1);display:inline-flex;font-size:20px;height:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingVerticalXXS));justify-content:center;max-width:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingHorizontalXXS));min-width:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingHorizontalXXS));padding:calc(var(--spacingVerticalXXS) / 2) calc(var(--spacingHorizontalXXS) / 2);}"
|
|
52
|
+
]);
|
|
53
|
+
const useAttachmentTagStyles_unstable = (state)=>{
|
|
54
|
+
const rootBaseClassName = useRootBaseClassName();
|
|
55
|
+
const mediaBaseClassName = useMediaBaseClassName();
|
|
56
|
+
const contentBaseClassName = useContentBaseClassName();
|
|
57
|
+
const iconBaseClassName = useIconBaseClassName();
|
|
58
|
+
state.root.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.root, rootBaseClassName, state.root.className);
|
|
59
|
+
if (state.media) {
|
|
60
|
+
state.media.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.media, mediaBaseClassName, state.media.className);
|
|
61
|
+
}
|
|
62
|
+
state.content.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.content, contentBaseClassName, state.content.className);
|
|
63
|
+
state.icon.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.icon, iconBaseClassName, state.icon.className);
|
|
64
|
+
return state;
|
|
65
|
+
}; //# sourceMappingURL=useAttachmentTagStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentTagStyles.js"],"sourcesContent":["import { __resetStyles, mergeClasses, tokens, typographyStyles } from '@fluentui/react-components';\nexport const attachmentTagClassNames = {\n root: 'fai-AttachmentTag',\n media: 'fai-AttachmentTag__media',\n content: 'fai-AttachmentTag__content',\n icon: 'fai-AttachmentTag__icon'\n};\nconst ATTACHMENTTAG_MAXWIDTH = '180px';\nconst ATTACHMENTTAG_SIZE = '20px';\nconst useRootBaseClassName = __resetStyles(\"r1km3emv\", \"r21ecva\", [\".r1km3emv{color:var(--colorNeutralForeground1);align-items:center;background-color:var(--colorNeutralBackground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);box-sizing:border-box;column-gap:var(--spacingHorizontalSNudge);cursor:pointer;display:inline-flex;flex-wrap:nowrap;justify-content:center;max-width:180px;padding:var(--spacingVerticalXS) var(--spacingHorizontalXS) var(--spacingVerticalXS) var(--spacingHorizontalS);vertical-align:middle;}\", \".r1km3emv:hover{border-color:var(--colorNeutralStroke1Hover);}\", \".r1km3emv:hover .fai-AttachmentTag__icon{color:var(--colorBrandForegroundLinkHover);}\", \".r1km3emv:hover:active{border-color:var(--colorNeutralStroke1Pressed);}\", \".r1km3emv:hover:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}\", \".r1km3emv:focus .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandHover);}\", \".r1km3emv:focus:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}\", \".r21ecva{color:var(--colorNeutralForeground1);align-items:center;background-color:var(--colorNeutralBackground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);box-sizing:border-box;column-gap:var(--spacingHorizontalSNudge);cursor:pointer;display:inline-flex;flex-wrap:nowrap;justify-content:center;max-width:180px;padding:var(--spacingVerticalXS) var(--spacingHorizontalS) var(--spacingVerticalXS) var(--spacingHorizontalXS);vertical-align:middle;}\", \".r21ecva:hover{border-color:var(--colorNeutralStroke1Hover);}\", \".r21ecva:hover .fai-AttachmentTag__icon{color:var(--colorBrandForegroundLinkHover);}\", \".r21ecva:hover:active{border-color:var(--colorNeutralStroke1Pressed);}\", \".r21ecva:hover:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}\", \".r21ecva:focus .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandHover);}\", \".r21ecva:focus:active .fai-AttachmentTag__icon{color:var(--colorNeutralForeground2BrandPressed);}\"]);\nconst useMediaBaseClassName = __resetStyles(\"r19jnv3a\", null, [\".r19jnv3a{font-size:20px;height:20px;line-height:20px;width:20px;}\"]);\nconst useContentBaseClassName = __resetStyles(\"rmt99gk\", null, [\".rmt99gk{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}\"]);\nconst useIconBaseClassName = __resetStyles(\"r176grtk\", null, [\".r176grtk{align-items:center;border-radius:var(--borderRadiusCircular);border:var(--strokeWidthThin) solid var(--colorTransparentStroke);box-sizing:border-box;color:var(--colorNeutralForeground1);display:inline-flex;font-size:20px;height:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingVerticalXXS));justify-content:center;max-width:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingHorizontalXXS));min-width:calc(20px + var(--strokeWidthThin) * 2 + var(--spacingHorizontalXXS));padding:calc(var(--spacingVerticalXXS) / 2) calc(var(--spacingHorizontalXXS) / 2);}\"]);\n/**\n * Apply styling to the AttachmentTag slots based on the state\n */\nexport const useAttachmentTagStyles_unstable = state => {\n const rootBaseClassName = useRootBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const iconBaseClassName = useIconBaseClassName();\n state.root.className = mergeClasses(attachmentTagClassNames.root, rootBaseClassName, state.root.className);\n if (state.media) {\n state.media.className = mergeClasses(attachmentTagClassNames.media, mediaBaseClassName, state.media.className);\n }\n state.content.className = mergeClasses(attachmentTagClassNames.content, contentBaseClassName, state.content.className);\n state.icon.className = mergeClasses(attachmentTagClassNames.icon, iconBaseClassName, state.icon.className);\n return state;\n};\n//# sourceMappingURL=useAttachmentTagStyles.js.map"],"names":["attachmentTagClassNames","useAttachmentTagStyles_unstable","root","media","content","icon","ATTACHMENTTAG_MAXWIDTH","ATTACHMENTTAG_SIZE","useRootBaseClassName","__resetStyles","useMediaBaseClassName","useContentBaseClassName","useIconBaseClassName","state","rootBaseClassName","mediaBaseClassName","contentBaseClassName","iconBaseClassName","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,uBAAuB;eAAvBA;;IAeAC,+BAA+B;eAA/BA;;;iCAhByD;AAC/D,MAAMD,0BAA0B;IACrCE,MAAM;IACNC,OAAO;IACPC,SAAS;IACTC,MAAM;AACR;AACA,MAAMC,yBAAyB;AAC/B,MAAMC,qBAAqB;AAC3B,MAAMC,uBAAuBC,IAAAA,8BAAa,EAAC,YAAY,WAAW;IAAC;IAA8f;IAAkE;IAAyF;IAA2E;IAAsG;IAA6F;IAAsG;IAA6f;IAAiE;IAAwF;IAA0E;IAAqG;IAA4F;CAAoG;AACrlE,MAAMC,wBAAwBD,IAAAA,8BAAa,EAAC,YAAY,MAAM;IAAC;CAAqE;AACpI,MAAME,0BAA0BF,IAAAA,8BAAa,EAAC,WAAW,MAAM;IAAC;CAAsN;AACtR,MAAMG,uBAAuBH,IAAAA,8BAAa,EAAC,YAAY,MAAM;IAAC;CAA+jB;AAItnB,MAAMR,kCAAkCY,CAAAA;IAC7C,MAAMC,oBAAoBN;IAC1B,MAAMO,qBAAqBL;IAC3B,MAAMM,uBAAuBL;IAC7B,MAAMM,oBAAoBL;IAC1BC,MAAMX,IAAI,CAACgB,SAAS,GAAGC,IAAAA,6BAAY,EAACnB,wBAAwBE,IAAI,EAAEY,mBAAmBD,MAAMX,IAAI,CAACgB,SAAS;IACzG,IAAIL,MAAMV,KAAK,EAAE;QACfU,MAAMV,KAAK,CAACe,SAAS,GAAGC,IAAAA,6BAAY,EAACnB,wBAAwBG,KAAK,EAAEY,oBAAoBF,MAAMV,KAAK,CAACe,SAAS;IAC/G;IACAL,MAAMT,OAAO,CAACc,SAAS,GAAGC,IAAAA,6BAAY,EAACnB,wBAAwBI,OAAO,EAAEY,sBAAsBH,MAAMT,OAAO,CAACc,SAAS;IACrHL,MAAMR,IAAI,CAACa,SAAS,GAAGC,IAAAA,6BAAY,EAACnB,wBAAwBK,IAAI,EAAEY,mBAAmBJ,MAAMR,IAAI,CAACa,SAAS;IACzG,OAAOL;AACT,GACA,kDAAkD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "AttachmentTagItem", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return AttachmentTagItem;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _useAttachmentTagItem = require("./useAttachmentTagItem");
|
|
14
|
+
const _renderAttachmentTagItem = require("./renderAttachmentTagItem");
|
|
15
|
+
const _useAttachmentTagItemStyles = require("./useAttachmentTagItemStyles");
|
|
16
|
+
const AttachmentTagItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
17
|
+
const state = (0, _useAttachmentTagItem.useAttachmentTagItem_unstable)(props, ref);
|
|
18
|
+
(0, _useAttachmentTagItemStyles.useAttachmentTagItemStyles_unstable)(state);
|
|
19
|
+
return (0, _renderAttachmentTagItem.renderAttachmentTagItem_unstable)(state);
|
|
20
|
+
});
|
|
21
|
+
AttachmentTagItem.displayName = 'AttachmentTagItem'; //# sourceMappingURL=AttachmentTagItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTagItem.js"],"sourcesContent":["import * as React from 'react';\nimport { useAttachmentTagItem_unstable } from './useAttachmentTagItem';\nimport { renderAttachmentTagItem_unstable } from './renderAttachmentTagItem';\nimport { useAttachmentTagItemStyles_unstable } from './useAttachmentTagItemStyles';\n// AttachmentTagItem component - TODO: add more docs\nexport const AttachmentTagItem = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useAttachmentTagItem_unstable(props, ref);\n useAttachmentTagItemStyles_unstable(state);\n return renderAttachmentTagItem_unstable(state);\n});\nAttachmentTagItem.displayName = 'AttachmentTagItem';\n//# sourceMappingURL=AttachmentTagItem.js.map"],"names":["AttachmentTagItem","React","forwardRef","props","ref","state","useAttachmentTagItem_unstable","useAttachmentTagItemStyles_unstable","renderAttachmentTagItem_unstable","displayName"],"mappings":";;;;+BAKaA;;;eAAAA;;;;iEALU;sCACuB;yCACG;4CACG;AAE7C,MAAMA,oBAAoB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACrE,MAAMC,QAAQC,IAAAA,mDAA6B,EAACH,OAAOC;IACnDG,IAAAA,+DAAmC,EAACF;IACpC,OAAOG,IAAAA,yDAAgC,EAACH;AAC1C;AACAL,kBAAkBS,WAAW,GAAG,qBAChC,6CAA6C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
// TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from AttachmentTagItemProps.
|
|
6
|
+
// & Required<Pick<AttachmentTagItemProps, 'propName'>>
|
|
7
|
+
//# sourceMappingURL=AttachmentTagItem.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["AttachmentTagItem.types.js"],"sourcesContent":["export {}; // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from AttachmentTagItemProps.\n// & Required<Pick<AttachmentTagItemProps, 'propName'>>\n//# sourceMappingURL=AttachmentTagItem.types.js.map"],"names":[],"mappings":";;;;CAAW,kIAAkI;CAC7I,uDAAuD;CACvD,mDAAmD"}
|
|
@@ -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("./AttachmentTagItem"), exports);
|
|
7
|
+
_export_star._(require("./AttachmentTagItem.types"), exports);
|
|
8
|
+
_export_star._(require("./renderAttachmentTagItem"), exports);
|
|
9
|
+
_export_star._(require("./useAttachmentTagItem"), exports);
|
|
10
|
+
_export_star._(require("./useAttachmentTagItemStyles"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './AttachmentTagItem';\nexport * from './AttachmentTagItem.types';\nexport * from './renderAttachmentTagItem';\nexport * from './useAttachmentTagItem';\nexport * from './useAttachmentTagItemStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;CACd,iCAAiC"}
|