@fluentui-copilot/react-suggestions 0.0.0-nightly-20251002-0405-17b34fb7.1 → 0.0.0-nightly-20251010-0406-7df7c6d1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.json +3 -3
  2. package/CHANGELOG.md +4 -4
  3. package/package.json +7 -7
  4. package/dist/index.d.ts +0 -78
  5. package/lib/Suggestion.js +0 -1
  6. package/lib/Suggestion.js.map +0 -1
  7. package/lib/SuggestionList.js +0 -1
  8. package/lib/SuggestionList.js.map +0 -1
  9. package/lib/components/Suggestion/Suggestion.js +0 -16
  10. package/lib/components/Suggestion/Suggestion.js.map +0 -1
  11. package/lib/components/Suggestion/Suggestion.types.js +0 -1
  12. package/lib/components/Suggestion/Suggestion.types.js.map +0 -1
  13. package/lib/components/Suggestion/index.js +0 -3
  14. package/lib/components/Suggestion/index.js.map +0 -1
  15. package/lib/components/Suggestion/useSuggestion.js +0 -12
  16. package/lib/components/Suggestion/useSuggestion.js.map +0 -1
  17. package/lib/components/Suggestion/useSuggestionStyles.styles.js +0 -162
  18. package/lib/components/Suggestion/useSuggestionStyles.styles.js.map +0 -1
  19. package/lib/components/Suggestion/useSuggestionStyles.styles.raw.js +0 -69
  20. package/lib/components/Suggestion/useSuggestionStyles.styles.raw.js.map +0 -1
  21. package/lib/components/SuggestionList/SuggestionList.js +0 -13
  22. package/lib/components/SuggestionList/SuggestionList.js.map +0 -1
  23. package/lib/components/SuggestionList/SuggestionList.types.js +0 -3
  24. package/lib/components/SuggestionList/SuggestionList.types.js.map +0 -1
  25. package/lib/components/SuggestionList/index.js +0 -4
  26. package/lib/components/SuggestionList/index.js.map +0 -1
  27. package/lib/components/SuggestionList/renderSuggestionList.js +0 -13
  28. package/lib/components/SuggestionList/renderSuggestionList.js.map +0 -1
  29. package/lib/components/SuggestionList/useSuggestionList.js +0 -35
  30. package/lib/components/SuggestionList/useSuggestionList.js.map +0 -1
  31. package/lib/components/SuggestionList/useSuggestionListStyles.styles.js +0 -54
  32. package/lib/components/SuggestionList/useSuggestionListStyles.styles.js.map +0 -1
  33. package/lib/components/SuggestionList/useSuggestionListStyles.styles.raw.js +0 -43
  34. package/lib/components/SuggestionList/useSuggestionListStyles.styles.raw.js.map +0 -1
  35. package/lib/index.js +0 -2
  36. package/lib/index.js.map +0 -1
  37. package/lib-commonjs/Suggestion.js +0 -25
  38. package/lib-commonjs/Suggestion.js.map +0 -1
  39. package/lib-commonjs/SuggestionList.js +0 -28
  40. package/lib-commonjs/SuggestionList.js.map +0 -1
  41. package/lib-commonjs/components/Suggestion/Suggestion.js +0 -26
  42. package/lib-commonjs/components/Suggestion/Suggestion.js.map +0 -1
  43. package/lib-commonjs/components/Suggestion/Suggestion.types.js +0 -4
  44. package/lib-commonjs/components/Suggestion/Suggestion.types.js.map +0 -1
  45. package/lib-commonjs/components/Suggestion/index.js +0 -27
  46. package/lib-commonjs/components/Suggestion/index.js.map +0 -1
  47. package/lib-commonjs/components/Suggestion/useSuggestion.js +0 -22
  48. package/lib-commonjs/components/Suggestion/useSuggestion.js.map +0 -1
  49. package/lib-commonjs/components/Suggestion/useSuggestionStyles.styles.js +0 -366
  50. package/lib-commonjs/components/Suggestion/useSuggestionStyles.styles.js.map +0 -1
  51. package/lib-commonjs/components/Suggestion/useSuggestionStyles.styles.raw.js +0 -87
  52. package/lib-commonjs/components/Suggestion/useSuggestionStyles.styles.raw.js.map +0 -1
  53. package/lib-commonjs/components/SuggestionList/SuggestionList.js +0 -23
  54. package/lib-commonjs/components/SuggestionList/SuggestionList.js.map +0 -1
  55. package/lib-commonjs/components/SuggestionList/SuggestionList.types.js +0 -6
  56. package/lib-commonjs/components/SuggestionList/SuggestionList.types.js.map +0 -1
  57. package/lib-commonjs/components/SuggestionList/index.js +0 -31
  58. package/lib-commonjs/components/SuggestionList/index.js.map +0 -1
  59. package/lib-commonjs/components/SuggestionList/renderSuggestionList.js +0 -21
  60. package/lib-commonjs/components/SuggestionList/renderSuggestionList.js.map +0 -1
  61. package/lib-commonjs/components/SuggestionList/useSuggestionList.js +0 -36
  62. package/lib-commonjs/components/SuggestionList/useSuggestionList.js.map +0 -1
  63. package/lib-commonjs/components/SuggestionList/useSuggestionListStyles.styles.js +0 -88
  64. package/lib-commonjs/components/SuggestionList/useSuggestionListStyles.styles.js.map +0 -1
  65. package/lib-commonjs/components/SuggestionList/useSuggestionListStyles.styles.raw.js +0 -59
  66. package/lib-commonjs/components/SuggestionList/useSuggestionListStyles.styles.raw.js.map +0 -1
  67. package/lib-commonjs/index.js +0 -41
  68. package/lib-commonjs/index.js.map +0 -1
@@ -1,54 +0,0 @@
1
- import { __styles, mergeClasses } from '@fluentui/react-components';
2
- import { tokens } from '@fluentui-copilot/tokens';
3
- export const suggestionListClassNames = {
4
- root: 'fai-SuggestionList',
5
- action: 'fai-SuggestionList__action'
6
- };
7
- /**
8
- * Styles for the root slot
9
- */
10
- const useStyles = __styles({
11
- root: {
12
- mc9l5x: "f22iagw",
13
- Eh141a: "fni485r",
14
- Brf1p80: "f9c4gz4",
15
- i8kkvl: 0,
16
- Belr9w4: 0,
17
- rmohyg: "f1yhwmi5",
18
- jrapky: 0,
19
- Frg6f3: 0,
20
- t21cq0: 0,
21
- B6of3ja: 0,
22
- B74szlk: ["f4bgq6r", "f83tq75"],
23
- Beptln2: "fr3gje9"
24
- },
25
- horizontalAlignmentStart: {
26
- Brf1p80: "fbhxue7"
27
- },
28
- action: {
29
- Bf4jedk: "f79feoa",
30
- B2u0y6b: "f1cs043"
31
- }
32
- }, {
33
- d: [".f22iagw{display:flex;}", ".fni485r{flex-wrap:wrap;}", ".f9c4gz4{justify-content:flex-end;}", [".f1yhwmi5{gap:var(--spacingVerticalS);}", {
34
- p: -1
35
- }], [".f4bgq6r{margin:var(--spacingVerticalNone) var(--spacingHorizontalNone) var(--spacingVerticalS) var(--spacingHorizontalNone);}", {
36
- p: -1
37
- }], [".f83tq75{margin:var(--spacingVerticalNone) var(--spacingHorizontalNone) var(--spacingVerticalS) var(--spacingHorizontalNone);}", {
38
- p: -1
39
- }], ".fr3gje9>:nth-last-of-type(2){max-width:calc(100% - var(--spacingHorizontalXXL) - var(--spacingVerticalS));}", ".fbhxue7{justify-content:flex-start;}", ".f79feoa{min-width:var(--spacingHorizontalXXL);}", ".f1cs043{max-width:var(--spacingHorizontalXXL);}"]
40
- });
41
- /**
42
- * Apply styling to the SuggestionList slots based on the state
43
- */
44
- export const useSuggestionListStyles_unstable = state => {
45
- 'use no memo';
46
-
47
- const styles = useStyles();
48
- state.root.className = mergeClasses(suggestionListClassNames.root, styles.root, state.horizontalAlignment === 'start' && styles.horizontalAlignmentStart, state.root.className);
49
- if (state.action) {
50
- state.action.className = mergeClasses(suggestionListClassNames.action, styles.action, state.action.className);
51
- }
52
- return state;
53
- };
54
- //# sourceMappingURL=useSuggestionListStyles.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useSuggestionListStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { SuggestionListSlots, SuggestionListState } from './SuggestionList.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const suggestionListClassNames: SlotClassNames<SuggestionListSlots> = {\n root: 'fai-SuggestionList',\n action: 'fai-SuggestionList__action',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'flex-end',\n gap: tokens.spacingVerticalS,\n margin: `\n ${tokens.spacingVerticalNone}\n ${tokens.spacingHorizontalNone}\n ${tokens.spacingVerticalS}\n ${tokens.spacingHorizontalNone}\n `,\n '> :nth-last-of-type(2)': {\n maxWidth: `calc(100% - ${tokens.spacingHorizontalXXL} - ${tokens.spacingVerticalS})`,\n },\n },\n horizontalAlignmentStart: {\n justifyContent: 'flex-start',\n },\n\n action: {\n minWidth: tokens.spacingHorizontalXXL,\n maxWidth: tokens.spacingHorizontalXXL,\n },\n\n // TODO add additional classes for different states and/or slots\n});\n\n/**\n * Apply styling to the SuggestionList slots based on the state\n */\nexport const useSuggestionListStyles_unstable = (state: SuggestionListState): SuggestionListState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(\n suggestionListClassNames.root,\n styles.root,\n state.horizontalAlignment === 'start' && styles.horizontalAlignmentStart,\n state.root.className,\n );\n\n if (state.action) {\n state.action.className = mergeClasses(suggestionListClassNames.action, styles.action, state.action.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","tokens","suggestionListClassNames","root","action","useStyles","display","flexWrap","justifyContent","gap","spacingVerticalS","margin","spacingVerticalNone","spacingHorizontalNone","maxWidth","spacingHorizontalXXL","horizontalAlignmentStart","minWidth","useSuggestionListStyles_unstable","state","styles","className","horizontalAlignment"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,6BAA6B;AACtE,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;IACNC,QAAQ;AACV,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYN,WAAW;IAC3BI,MAAM;QACJG,SAAS;QACTC,UAAU;QACVC,gBAAgB;QAChBC,KAAKR,OAAOS,gBAAgB;QAC5BC,QAAQ,CAAC;MACP,EAAEV,OAAOW,mBAAmB,CAAC;MAC7B,EAAEX,OAAOY,qBAAqB,CAAC;MAC/B,EAAEZ,OAAOS,gBAAgB,CAAC;MAC1B,EAAET,OAAOY,qBAAqB,CAAC;IACjC,CAAC;QACD,0BAA0B;YACxBC,UAAU,CAAC,YAAY,EAAEb,OAAOc,oBAAoB,CAAC,GAAG,EAAEd,OAAOS,gBAAgB,CAAC,CAAC,CAAC;QACtF;IACF;IACAM,0BAA0B;QACxBR,gBAAgB;IAClB;IAEAJ,QAAQ;QACNa,UAAUhB,OAAOc,oBAAoB;QACrCD,UAAUb,OAAOc,oBAAoB;IACvC;AAGF;AAEA;;CAEC,GACD,OAAO,MAAMG,mCAAmC,CAACC;IAC/C;IAEA,MAAMC,SAASf;IACfc,MAAMhB,IAAI,CAACkB,SAAS,GAAGrB,aACrBE,yBAAyBC,IAAI,EAC7BiB,OAAOjB,IAAI,EACXgB,MAAMG,mBAAmB,KAAK,WAAWF,OAAOJ,wBAAwB,EACxEG,MAAMhB,IAAI,CAACkB,SAAS;IAGtB,IAAIF,MAAMf,MAAM,EAAE;QAChBe,MAAMf,MAAM,CAACiB,SAAS,GAAGrB,aAAaE,yBAAyBE,MAAM,EAAEgB,OAAOhB,MAAM,EAAEe,MAAMf,MAAM,CAACiB,SAAS;IAC9G;IAEA,OAAOF;AACT,EAAE"}
@@ -1,43 +0,0 @@
1
- import { makeStyles, mergeClasses } from '@fluentui/react-components';
2
- import { tokens } from '@fluentui-copilot/tokens';
3
- export const suggestionListClassNames = {
4
- root: 'fai-SuggestionList',
5
- action: 'fai-SuggestionList__action'
6
- };
7
- /**
8
- * Styles for the root slot
9
- */ const useStyles = makeStyles({
10
- root: {
11
- display: 'flex',
12
- flexWrap: 'wrap',
13
- justifyContent: 'flex-end',
14
- gap: tokens.spacingVerticalS,
15
- margin: `
16
- ${tokens.spacingVerticalNone}
17
- ${tokens.spacingHorizontalNone}
18
- ${tokens.spacingVerticalS}
19
- ${tokens.spacingHorizontalNone}
20
- `,
21
- '> :nth-last-of-type(2)': {
22
- maxWidth: `calc(100% - ${tokens.spacingHorizontalXXL} - ${tokens.spacingVerticalS})`
23
- }
24
- },
25
- horizontalAlignmentStart: {
26
- justifyContent: 'flex-start'
27
- },
28
- action: {
29
- minWidth: tokens.spacingHorizontalXXL,
30
- maxWidth: tokens.spacingHorizontalXXL
31
- }
32
- });
33
- /**
34
- * Apply styling to the SuggestionList slots based on the state
35
- */ export const useSuggestionListStyles_unstable = (state)=>{
36
- 'use no memo';
37
- const styles = useStyles();
38
- state.root.className = mergeClasses(suggestionListClassNames.root, styles.root, state.horizontalAlignment === 'start' && styles.horizontalAlignmentStart, state.root.className);
39
- if (state.action) {
40
- state.action.className = mergeClasses(suggestionListClassNames.action, styles.action, state.action.className);
41
- }
42
- return state;
43
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useSuggestionListStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { SuggestionListSlots, SuggestionListState } from './SuggestionList.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const suggestionListClassNames: SlotClassNames<SuggestionListSlots> = {\n root: 'fai-SuggestionList',\n action: 'fai-SuggestionList__action',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'flex-end',\n gap: tokens.spacingVerticalS,\n margin: `\n ${tokens.spacingVerticalNone}\n ${tokens.spacingHorizontalNone}\n ${tokens.spacingVerticalS}\n ${tokens.spacingHorizontalNone}\n `,\n '> :nth-last-of-type(2)': {\n maxWidth: `calc(100% - ${tokens.spacingHorizontalXXL} - ${tokens.spacingVerticalS})`,\n },\n },\n horizontalAlignmentStart: {\n justifyContent: 'flex-start',\n },\n\n action: {\n minWidth: tokens.spacingHorizontalXXL,\n maxWidth: tokens.spacingHorizontalXXL,\n },\n\n // TODO add additional classes for different states and/or slots\n});\n\n/**\n * Apply styling to the SuggestionList slots based on the state\n */\nexport const useSuggestionListStyles_unstable = (state: SuggestionListState): SuggestionListState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(\n suggestionListClassNames.root,\n styles.root,\n state.horizontalAlignment === 'start' && styles.horizontalAlignmentStart,\n state.root.className,\n );\n\n if (state.action) {\n state.action.className = mergeClasses(suggestionListClassNames.action, styles.action, state.action.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","tokens","suggestionListClassNames","root","action","useStyles","display","flexWrap","justifyContent","gap","spacingVerticalS","margin","spacingVerticalNone","spacingHorizontalNone","maxWidth","spacingHorizontalXXL","horizontalAlignmentStart","minWidth","useSuggestionListStyles_unstable","state","styles","className","horizontalAlignment"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,6BAA6B;AACtE,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;IACNC,QAAQ;AACV,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYN,WAAW;IAC3BI,MAAM;QACJG,SAAS;QACTC,UAAU;QACVC,gBAAgB;QAChBC,KAAKR,OAAOS,gBAAgB;QAC5BC,QAAQ,CAAC;MACP,EAAEV,OAAOW,mBAAmB,CAAC;MAC7B,EAAEX,OAAOY,qBAAqB,CAAC;MAC/B,EAAEZ,OAAOS,gBAAgB,CAAC;MAC1B,EAAET,OAAOY,qBAAqB,CAAC;IACjC,CAAC;QACD,0BAA0B;YACxBC,UAAU,CAAC,YAAY,EAAEb,OAAOc,oBAAoB,CAAC,GAAG,EAAEd,OAAOS,gBAAgB,CAAC,CAAC,CAAC;QACtF;IACF;IACAM,0BAA0B;QACxBR,gBAAgB;IAClB;IAEAJ,QAAQ;QACNa,UAAUhB,OAAOc,oBAAoB;QACrCD,UAAUb,OAAOc,oBAAoB;IACvC;AAGF;AAEA;;CAEC,GACD,OAAO,MAAMG,mCAAmC,CAACC;IAC/C;IAEA,MAAMC,SAASf;IACfc,MAAMhB,IAAI,CAACkB,SAAS,GAAGrB,aACrBE,yBAAyBC,IAAI,EAC7BiB,OAAOjB,IAAI,EACXgB,MAAMG,mBAAmB,KAAK,WAAWF,OAAOJ,wBAAwB,EACxEG,MAAMhB,IAAI,CAACkB,SAAS;IAGtB,IAAIF,MAAMf,MAAM,EAAE;QAChBe,MAAMf,MAAM,CAACiB,SAAS,GAAGrB,aAAaE,yBAAyBE,MAAM,EAAEgB,OAAOhB,MAAM,EAAEe,MAAMf,MAAM,CAACiB,SAAS;IAC9G;IAEA,OAAOF;AACT,EAAE"}
package/lib/index.js DELETED
@@ -1,2 +0,0 @@
1
- export { Suggestion, suggestionClassNames, useSuggestionStyles_unstable, useSuggestion_unstable } from './Suggestion';
2
- export { SuggestionList, renderSuggestionList_unstable, suggestionListClassNames, useSuggestionListStyles_unstable, useSuggestionList_unstable } from './SuggestionList';
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export type { SuggestionProps, SuggestionSlots, SuggestionState } from './Suggestion';\nexport { Suggestion, suggestionClassNames, useSuggestionStyles_unstable, useSuggestion_unstable } from './Suggestion';\nexport type { SuggestionListProps, SuggestionListSlots, SuggestionListState, TooltipComponent } from './SuggestionList';\nexport {\n SuggestionList,\n renderSuggestionList_unstable,\n suggestionListClassNames,\n useSuggestionListStyles_unstable,\n useSuggestionList_unstable,\n} from './SuggestionList';\n"],"names":["Suggestion","suggestionClassNames","useSuggestionStyles_unstable","useSuggestion_unstable","SuggestionList","renderSuggestionList_unstable","suggestionListClassNames","useSuggestionListStyles_unstable","useSuggestionList_unstable"],"rangeMappings":";","mappings":"AACA,SAASA,UAAU,EAAEC,oBAAoB,EAAEC,4BAA4B,EAAEC,sBAAsB,QAAQ,eAAe;AAEtH,SACEC,cAAc,EACdC,6BAA6B,EAC7BC,wBAAwB,EACxBC,gCAAgC,EAChCC,0BAA0B,QACrB,mBAAmB"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- Suggestion: function() {
13
- return _index.Suggestion;
14
- },
15
- suggestionClassNames: function() {
16
- return _index.suggestionClassNames;
17
- },
18
- useSuggestionStyles_unstable: function() {
19
- return _index.useSuggestionStyles_unstable;
20
- },
21
- useSuggestion_unstable: function() {
22
- return _index.useSuggestion_unstable;
23
- }
24
- });
25
- const _index = require("./components/Suggestion/index");
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Suggestion.ts"],"sourcesContent":["export type { SuggestionProps, SuggestionSlots, SuggestionState } from './components/Suggestion/index';\nexport {\n Suggestion,\n suggestionClassNames,\n useSuggestionStyles_unstable,\n useSuggestion_unstable,\n} from './components/Suggestion/index';\n"],"names":["Suggestion","suggestionClassNames","useSuggestionStyles_unstable","useSuggestion_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEEA,UAAU;eAAVA,iBAAU;;IACVC,oBAAoB;eAApBA,2BAAoB;;IACpBC,4BAA4B;eAA5BA,mCAA4B;;IAC5BC,sBAAsB;eAAtBA,6BAAsB;;;uBACjB"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- SuggestionList: function() {
13
- return _index.SuggestionList;
14
- },
15
- renderSuggestionList_unstable: function() {
16
- return _index.renderSuggestionList_unstable;
17
- },
18
- suggestionListClassNames: function() {
19
- return _index.suggestionListClassNames;
20
- },
21
- useSuggestionListStyles_unstable: function() {
22
- return _index.useSuggestionListStyles_unstable;
23
- },
24
- useSuggestionList_unstable: function() {
25
- return _index.useSuggestionList_unstable;
26
- }
27
- });
28
- const _index = require("./components/SuggestionList/index");
@@ -1 +0,0 @@
1
- {"version":3,"sources":["SuggestionList.ts"],"sourcesContent":["export type { SuggestionListProps, SuggestionListSlots, SuggestionListState, TooltipComponent } from './components/SuggestionList/index';\nexport { SuggestionList, renderSuggestionList_unstable, suggestionListClassNames, useSuggestionListStyles_unstable, useSuggestionList_unstable } from './components/SuggestionList/index';\n"],"names":["SuggestionList","renderSuggestionList_unstable","suggestionListClassNames","useSuggestionListStyles_unstable","useSuggestionList_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACSA,cAAc;eAAdA,qBAAc;;IAAEC,6BAA6B;eAA7BA,oCAA6B;;IAAEC,wBAAwB;eAAxBA,+BAAwB;;IAAEC,gCAAgC;eAAhCA,uCAAgC;;IAAEC,0BAA0B;eAA1BA,iCAA0B;;;uBAAQ"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "Suggestion", {
6
- enumerable: true,
7
- get: function() {
8
- return Suggestion;
9
- }
10
- });
11
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
- const _useSuggestionStylesstyles = require("./useSuggestionStyles.styles");
14
- const _reactcomponents = require("@fluentui/react-components");
15
- const _reactprovider = require("@fluentui-copilot/react-provider");
16
- const _useSuggestion = require("./useSuggestion");
17
- const Suggestion = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
18
- 'use no memo';
19
- const state = (0, _useSuggestion.useSuggestion_unstable)(props, ref);
20
- state.appearance = props.appearance || 'outline';
21
- (0, _reactcomponents.useButtonStyles_unstable)(state);
22
- (0, _useSuggestionStylesstyles.useSuggestionStyles_unstable)(state);
23
- (0, _reactprovider.useCustomStyleHook)('useSuggestionStyles')(state);
24
- return (0, _reactcomponents.renderButton_unstable)(state);
25
- });
26
- Suggestion.displayName = 'Suggestion';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Suggestion.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSuggestionStyles_unstable } from './useSuggestionStyles.styles';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { renderButton_unstable, useButtonStyles_unstable } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\nimport { useSuggestion_unstable } from './useSuggestion';\nimport type { SuggestionProps } from './Suggestion.types';\n\n// Suggestion component - TODO: add more docs\nexport const Suggestion: ForwardRefComponent<SuggestionProps> = React.forwardRef((props, ref) => {\n 'use no memo';\n\n const state = useSuggestion_unstable(props, ref);\n state.appearance = props.appearance || 'outline';\n useButtonStyles_unstable(state);\n useSuggestionStyles_unstable(state);\n useCustomStyleHook('useSuggestionStyles')(state);\n\n return renderButton_unstable(state);\n});\n\nSuggestion.displayName = 'Suggestion';\n"],"names":["Suggestion","React","forwardRef","props","ref","state","useSuggestion_unstable","appearance","useButtonStyles_unstable","useSuggestionStyles_unstable","useCustomStyleHook","renderButton_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;;iEATU;2CACsB;iCAEmB;+BAC7B;+BACI;AAIhC,MAAMA,aAAAA,WAAAA,GAAmDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACvF;IAEA,MAAMC,QAAQC,IAAAA,qCAAAA,EAAuBH,OAAOC;IAC5CC,MAAME,UAAU,GAAGJ,MAAMI,UAAU,IAAI;IACvCC,IAAAA,yCAAAA,EAAyBH;IACzBI,IAAAA,uDAAAA,EAA6BJ;IAC7BK,IAAAA,iCAAAA,EAAmB,uBAAuBL;IAE1C,OAAOM,IAAAA,sCAAAA,EAAsBN;AAC/B;AAEAL,WAAWY,WAAW,GAAG"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Suggestion.types.ts"],"sourcesContent":["import type { CopilotMode, DesignVersion } from '@fluentui-copilot/react-provider';\nimport type { ButtonProps, ButtonSlots, ButtonState, ComponentProps, ComponentState } from '@fluentui/react-components';\n\nexport type SuggestionSlots = ButtonSlots;\n\nexport type SuggestionProps = CopilotMode &\n DesignVersion &\n ComponentProps<SuggestionSlots> &\n Omit<ButtonProps, keyof ButtonSlots>;\n\nexport type SuggestionState = ComponentState<SuggestionSlots> &\n Required<Pick<SuggestionProps, 'mode' | 'designVersion'>> &\n Omit<ButtonState, keyof ButtonSlots>;\n"],"names":[],"rangeMappings":"","mappings":""}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- Suggestion: function() {
13
- return _Suggestion.Suggestion;
14
- },
15
- suggestionClassNames: function() {
16
- return _useSuggestionStylesstyles.suggestionClassNames;
17
- },
18
- useSuggestionStyles_unstable: function() {
19
- return _useSuggestionStylesstyles.useSuggestionStyles_unstable;
20
- },
21
- useSuggestion_unstable: function() {
22
- return _useSuggestion.useSuggestion_unstable;
23
- }
24
- });
25
- const _Suggestion = require("./Suggestion");
26
- const _useSuggestion = require("./useSuggestion");
27
- const _useSuggestionStylesstyles = require("./useSuggestionStyles.styles");
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export { Suggestion } from './Suggestion';\nexport type { SuggestionProps, SuggestionSlots, SuggestionState } from './Suggestion.types';\nexport { useSuggestion_unstable } from './useSuggestion';\nexport { suggestionClassNames, useSuggestionStyles_unstable } from './useSuggestionStyles.styles';\n"],"names":["Suggestion","suggestionClassNames","useSuggestionStyles_unstable","useSuggestion_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,UAAU;eAAVA,sBAAU;;IAGVC,oBAAoB;eAApBA,+CAAoB;;IAAEC,4BAA4B;eAA5BA,uDAA4B;;IADlDC,sBAAsB;eAAtBA,qCAAsB;;;4BAFJ;+BAEY;2CAC4B"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "useSuggestion_unstable", {
6
- enumerable: true,
7
- get: function() {
8
- return useSuggestion_unstable;
9
- }
10
- });
11
- const _reactcomponents = require("@fluentui/react-components");
12
- const _reactprovider = require("@fluentui-copilot/react-provider");
13
- const useSuggestion_unstable = (props, ref)=>{
14
- const buttonState = (0, _reactcomponents.useButton_unstable)(props, ref);
15
- const mode = (0, _reactprovider.useCopilotMode)(props.mode);
16
- const designVersion = (0, _reactprovider.useDesignVersion)(props.designVersion);
17
- return {
18
- ...buttonState,
19
- mode,
20
- designVersion
21
- };
22
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useSuggestion.ts"],"sourcesContent":["import { useButton_unstable } from '@fluentui/react-components';\nimport { useCopilotMode, useDesignVersion } from '@fluentui-copilot/react-provider';\nimport type { SuggestionProps, SuggestionState } from './Suggestion.types';\n\nexport const useSuggestion_unstable = (\n props: SuggestionProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): SuggestionState => {\n const buttonState = useButton_unstable(props, ref);\n const mode = useCopilotMode(props.mode);\n const designVersion = useDesignVersion(props.designVersion);\n return { ...buttonState, mode, designVersion };\n};\n"],"names":["useSuggestion_unstable","props","ref","buttonState","useButton_unstable","mode","useCopilotMode","designVersion","useDesignVersion"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAIaA;;;eAAAA;;;iCAJsB;+BACc;AAG1C,MAAMA,yBAAyB,CACpCC,OACAC;IAEA,MAAMC,cAAcC,IAAAA,mCAAAA,EAAmBH,OAAOC;IAC9C,MAAMG,OAAOC,IAAAA,6BAAAA,EAAeL,MAAMI,IAAI;IACtC,MAAME,gBAAgBC,IAAAA,+BAAAA,EAAiBP,MAAMM,aAAa;IAC1D,OAAO;QAAE,GAAGJ,WAAW;QAAEE;QAAME;IAAc;AAC/C"}
@@ -1,366 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- suggestionClassNames: function() {
13
- return suggestionClassNames;
14
- },
15
- useSuggestionStyles_unstable: function() {
16
- return useSuggestionStyles_unstable;
17
- }
18
- });
19
- const _reactcomponents = require("@fluentui/react-components");
20
- const suggestionClassNames = {
21
- root: 'fai-Suggestion',
22
- icon: 'fai-Suggestion__icon'
23
- };
24
- const useSuggestionStyles = (0, _reactcomponents.__styles)({
25
- root: {
26
- Bahqtrf: "fk6fouc",
27
- Be2twd7: "fy9rknc",
28
- Bhrd7zp: "figsok6",
29
- Bg96gwp: "fwrc4pm",
30
- B4j52fo: "f5ogflp",
31
- Bekrc4i: [
32
- "f1hqa2wf",
33
- "finvdd3"
34
- ],
35
- Bn0qgzm: "f1f09k3d",
36
- ibv6hh: [
37
- "finvdd3",
38
- "f1hqa2wf"
39
- ],
40
- icvyot: "fzkkow9",
41
- vrafjx: [
42
- "fcdblym",
43
- "fjik90z"
44
- ],
45
- oivjwe: "fg706s2",
46
- wvpqe5: [
47
- "fjik90z",
48
- "fcdblym"
49
- ],
50
- g2u3we: "f161y7kd",
51
- h3c5rm: [
52
- "f1c8dzaj",
53
- "f1sl6hi9"
54
- ],
55
- B9xav0g: "f1619yhw",
56
- zhjwy3: [
57
- "f1sl6hi9",
58
- "f1c8dzaj"
59
- ],
60
- Beyfa6y: 0,
61
- Bbmb7ep: 0,
62
- Btl43ni: 0,
63
- B7oj6ja: 0,
64
- Dimara: "f1kijzfu",
65
- Byoj8tv: 0,
66
- uwmqm3: 0,
67
- z189sj: 0,
68
- z8tnut: 0,
69
- B0ocmuz: "fcca7b8",
70
- sj55zd: "fkfq4zb",
71
- fsow6f: "fpgzoln"
72
- },
73
- enabled: {
74
- B9di4we: "fxuoarf",
75
- B1f0e9u: [
76
- "f1qi0eim",
77
- "fiwk2rq"
78
- ],
79
- bb0oo: "f1jsw6og",
80
- B88lpqa: [
81
- "fiwk2rq",
82
- "f1qi0eim"
83
- ],
84
- grrwut: "f1ggo121",
85
- Bejlia0: "f1jg9xd",
86
- v5djml: "fihmelj",
87
- Bptf8dt: [
88
- "fs1n9un",
89
- "f1u9p12n"
90
- ],
91
- j4j8r: "f12ds35j",
92
- H566xl: [
93
- "f1u9p12n",
94
- "fs1n9un"
95
- ],
96
- a9g2gr: "fezean8",
97
- rgbxn1: "f1yr11xb"
98
- },
99
- canvas: {
100
- Bahqtrf: "fk6fouc",
101
- Be2twd7: "fkhj508",
102
- Bhrd7zp: "figsok6",
103
- Bg96gwp: "f1i3iumi",
104
- Byoj8tv: 0,
105
- uwmqm3: 0,
106
- z189sj: 0,
107
- z8tnut: 0,
108
- B0ocmuz: "f1m1tk10"
109
- }
110
- }, {
111
- d: [
112
- ".fk6fouc{font-family:var(--fontFamilyBase);}",
113
- ".fy9rknc{font-size:var(--fontSizeBase200);}",
114
- ".figsok6{font-weight:var(--fontWeightRegular);}",
115
- ".fwrc4pm{line-height:var(--lineHeightBase200);}",
116
- ".f5ogflp{border-top-width:1px;}",
117
- ".f1hqa2wf{border-right-width:1px;}",
118
- ".finvdd3{border-left-width:1px;}",
119
- ".f1f09k3d{border-bottom-width:1px;}",
120
- ".fzkkow9{border-top-style:solid;}",
121
- ".fcdblym{border-right-style:solid;}",
122
- ".fjik90z{border-left-style:solid;}",
123
- ".fg706s2{border-bottom-style:solid;}",
124
- ".f161y7kd{border-top-color:var(--colorBrandStroke2);}",
125
- ".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",
126
- ".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",
127
- ".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",
128
- [
129
- ".f1kijzfu{border-radius:var(--borderRadiusXLarge);}",
130
- {
131
- p: -1
132
- }
133
- ],
134
- [
135
- ".fcca7b8{padding:var(--spacingVerticalXS) var(--spacingVerticalS);}",
136
- {
137
- p: -1
138
- }
139
- ],
140
- ".fkfq4zb{color:var(--colorNeutralForeground2);}",
141
- ".fpgzoln{text-align:start;}",
142
- ".fkhj508{font-size:var(--fontSizeBase300);}",
143
- ".f1i3iumi{line-height:var(--lineHeightBase300);}",
144
- [
145
- ".f1m1tk10{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalM);}",
146
- {
147
- p: -1
148
- }
149
- ]
150
- ],
151
- m: [
152
- [
153
- "@media (forced-colors: none){.fxuoarf:hover{border-top-color:var(--colorBrandStroke2Hover);}}",
154
- {
155
- m: "(forced-colors: none)"
156
- }
157
- ],
158
- [
159
- "@media (forced-colors: none){.f1qi0eim:hover{border-right-color:var(--colorBrandStroke2Hover);}.fiwk2rq:hover{border-left-color:var(--colorBrandStroke2Hover);}}",
160
- {
161
- m: "(forced-colors: none)"
162
- }
163
- ],
164
- [
165
- "@media (forced-colors: none){.f1jsw6og:hover{border-bottom-color:var(--colorBrandStroke2Hover);}}",
166
- {
167
- m: "(forced-colors: none)"
168
- }
169
- ],
170
- [
171
- "@media (forced-colors: none){.f1ggo121:hover{color:var(--colorBrandForeground2Hover);}}",
172
- {
173
- m: "(forced-colors: none)"
174
- }
175
- ],
176
- [
177
- "@media (forced-colors: none){.f1jg9xd:hover{background-color:var(--colorBrandBackground2Hover);}}",
178
- {
179
- m: "(forced-colors: none)"
180
- }
181
- ],
182
- [
183
- "@media (forced-colors: none){.fihmelj:active:hover{border-top-color:var(--colorBrandStroke2Pressed);}}",
184
- {
185
- m: "(forced-colors: none)"
186
- }
187
- ],
188
- [
189
- "@media (forced-colors: none){.f1u9p12n:active:hover{border-left-color:var(--colorBrandStroke2Pressed);}.fs1n9un:active:hover{border-right-color:var(--colorBrandStroke2Pressed);}}",
190
- {
191
- m: "(forced-colors: none)"
192
- }
193
- ],
194
- [
195
- "@media (forced-colors: none){.f12ds35j:active:hover{border-bottom-color:var(--colorBrandStroke2Pressed);}}",
196
- {
197
- m: "(forced-colors: none)"
198
- }
199
- ],
200
- [
201
- "@media (forced-colors: none){.fezean8:active:hover{color:var(--colorBrandForeground2Pressed);}}",
202
- {
203
- m: "(forced-colors: none)"
204
- }
205
- ],
206
- [
207
- "@media (forced-colors: none){.f1yr11xb:active:hover{background-color:var(--colorBrandBackground2Pressed);}}",
208
- {
209
- m: "(forced-colors: none)"
210
- }
211
- ]
212
- ]
213
- });
214
- const useNextStyles = (0, _reactcomponents.__styles)({
215
- root: {
216
- qh2i5f: "f1m56mwy",
217
- Bvf7fsn: "frhssjw",
218
- Be2twd7: "fy9rknc",
219
- B4j52fo: "f192inf7",
220
- Bekrc4i: [
221
- "f5tn483",
222
- "f1ojsxk5"
223
- ],
224
- Bn0qgzm: "f1vxd6vx",
225
- ibv6hh: [
226
- "f1ojsxk5",
227
- "f5tn483"
228
- ],
229
- icvyot: "fzkkow9",
230
- vrafjx: [
231
- "fcdblym",
232
- "fjik90z"
233
- ],
234
- oivjwe: "fg706s2",
235
- wvpqe5: [
236
- "fjik90z",
237
- "fcdblym"
238
- ],
239
- g2u3we: "f68mrw8",
240
- h3c5rm: [
241
- "f7pw515",
242
- "fw35ms5"
243
- ],
244
- B9xav0g: "frpde29",
245
- zhjwy3: [
246
- "fw35ms5",
247
- "f7pw515"
248
- ],
249
- De3pzq: "fhovq9v"
250
- },
251
- enabled: {
252
- B9di4we: "f106pmgz",
253
- B1f0e9u: [
254
- "fesy4wo",
255
- "f9xbgkc"
256
- ],
257
- bb0oo: "fil0yj2",
258
- B88lpqa: [
259
- "f9xbgkc",
260
- "fesy4wo"
261
- ],
262
- grrwut: "fnx31mg",
263
- Bejlia0: "feiahij",
264
- v5djml: "f1ytgj83",
265
- Bptf8dt: [
266
- "f16m5b8m",
267
- "fwlads5"
268
- ],
269
- j4j8r: "f17ux6es",
270
- H566xl: [
271
- "fwlads5",
272
- "f16m5b8m"
273
- ],
274
- a9g2gr: "f1kqxwtj",
275
- rgbxn1: "f10o6k9l"
276
- }
277
- }, {
278
- d: [
279
- ".f1m56mwy{padding-horizontal:var(--spacingHorizontalM);padding-horizontal:var(--spacingHorizontalM);}",
280
- ".frhssjw{padding-vertical:var(--spacingVerticalSNudge);}",
281
- ".fy9rknc{font-size:var(--fontSizeBase200);}",
282
- ".f192inf7{border-top-width:var(--strokeWidthThin);}",
283
- ".f5tn483{border-right-width:var(--strokeWidthThin);}",
284
- ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",
285
- ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",
286
- ".fzkkow9{border-top-style:solid;}",
287
- ".fcdblym{border-right-style:solid;}",
288
- ".fjik90z{border-left-style:solid;}",
289
- ".fg706s2{border-bottom-style:solid;}",
290
- ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",
291
- ".f7pw515{border-right-color:var(--colorNeutralStroke2);}",
292
- ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",
293
- ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",
294
- ".fhovq9v{background-color:var(--colorSubtleBackground);}"
295
- ],
296
- m: [
297
- [
298
- "@media (forced-colors: none){.f106pmgz:hover{border-top-color:var(--colorNeutralStroke2);}}",
299
- {
300
- m: "(forced-colors: none)"
301
- }
302
- ],
303
- [
304
- "@media (forced-colors: none){.f9xbgkc:hover{border-left-color:var(--colorNeutralStroke2);}.fesy4wo:hover{border-right-color:var(--colorNeutralStroke2);}}",
305
- {
306
- m: "(forced-colors: none)"
307
- }
308
- ],
309
- [
310
- "@media (forced-colors: none){.fil0yj2:hover{border-bottom-color:var(--colorNeutralStroke2);}}",
311
- {
312
- m: "(forced-colors: none)"
313
- }
314
- ],
315
- [
316
- "@media (forced-colors: none){.fnx31mg:hover{color:var(--colorNeutralForeground2Hover);}}",
317
- {
318
- m: "(forced-colors: none)"
319
- }
320
- ],
321
- [
322
- "@media (forced-colors: none){.feiahij:hover{background-color:var(--colorSubtleBackgroundHover);}}",
323
- {
324
- m: "(forced-colors: none)"
325
- }
326
- ],
327
- [
328
- "@media (forced-colors: none){.f1ytgj83:active:hover{border-top-color:var(--colorNeutralStroke2);}}",
329
- {
330
- m: "(forced-colors: none)"
331
- }
332
- ],
333
- [
334
- "@media (forced-colors: none){.f16m5b8m:active:hover{border-right-color:var(--colorNeutralStroke2);}.fwlads5:active:hover{border-left-color:var(--colorNeutralStroke2);}}",
335
- {
336
- m: "(forced-colors: none)"
337
- }
338
- ],
339
- [
340
- "@media (forced-colors: none){.f17ux6es:active:hover{border-bottom-color:var(--colorNeutralStroke2);}}",
341
- {
342
- m: "(forced-colors: none)"
343
- }
344
- ],
345
- [
346
- "@media (forced-colors: none){.f1kqxwtj:active:hover{color:var(--colorNeutralForeground2Pressed);}}",
347
- {
348
- m: "(forced-colors: none)"
349
- }
350
- ],
351
- [
352
- "@media (forced-colors: none){.f10o6k9l:active:hover{background-color:var(--colorSubtleBackgroundPressed);}}",
353
- {
354
- m: "(forced-colors: none)"
355
- }
356
- ]
357
- ]
358
- });
359
- const useSuggestionStyles_unstable = (state)=>{
360
- 'use no memo';
361
- const { designVersion, mode } = state;
362
- const styles = useSuggestionStyles();
363
- const nextStyles = useNextStyles();
364
- state.root.className = (0, _reactcomponents.mergeClasses)(suggestionClassNames.root, styles.root, mode === 'canvas' && styles.canvas, designVersion === 'next' && nextStyles.root, !state.disabled && styles.enabled, designVersion === 'next' && !state.disabled && nextStyles.enabled, state.root.className);
365
- return state;
366
- }; //# sourceMappingURL=useSuggestionStyles.styles.js.map