@fluentui-copilot/react-suggestions 0.0.0-nightly-20251010-0406-7df7c6d1.1 → 0.0.0-nightly-20251013-0406-7c7739c8.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/dist/index.d.ts +78 -0
  4. package/lib/Suggestion.js +1 -0
  5. package/lib/Suggestion.js.map +1 -0
  6. package/lib/SuggestionList.js +1 -0
  7. package/lib/SuggestionList.js.map +1 -0
  8. package/lib/components/Suggestion/Suggestion.js +16 -0
  9. package/lib/components/Suggestion/Suggestion.js.map +1 -0
  10. package/lib/components/Suggestion/Suggestion.types.js +1 -0
  11. package/lib/components/Suggestion/Suggestion.types.js.map +1 -0
  12. package/lib/components/Suggestion/index.js +3 -0
  13. package/lib/components/Suggestion/index.js.map +1 -0
  14. package/lib/components/Suggestion/useSuggestion.js +12 -0
  15. package/lib/components/Suggestion/useSuggestion.js.map +1 -0
  16. package/lib/components/Suggestion/useSuggestionStyles.styles.js +162 -0
  17. package/lib/components/Suggestion/useSuggestionStyles.styles.js.map +1 -0
  18. package/lib/components/Suggestion/useSuggestionStyles.styles.raw.js +69 -0
  19. package/lib/components/Suggestion/useSuggestionStyles.styles.raw.js.map +1 -0
  20. package/lib/components/SuggestionList/SuggestionList.js +13 -0
  21. package/lib/components/SuggestionList/SuggestionList.js.map +1 -0
  22. package/lib/components/SuggestionList/SuggestionList.types.js +3 -0
  23. package/lib/components/SuggestionList/SuggestionList.types.js.map +1 -0
  24. package/lib/components/SuggestionList/index.js +4 -0
  25. package/lib/components/SuggestionList/index.js.map +1 -0
  26. package/lib/components/SuggestionList/renderSuggestionList.js +13 -0
  27. package/lib/components/SuggestionList/renderSuggestionList.js.map +1 -0
  28. package/lib/components/SuggestionList/useSuggestionList.js +35 -0
  29. package/lib/components/SuggestionList/useSuggestionList.js.map +1 -0
  30. package/lib/components/SuggestionList/useSuggestionListStyles.styles.js +54 -0
  31. package/lib/components/SuggestionList/useSuggestionListStyles.styles.js.map +1 -0
  32. package/lib/components/SuggestionList/useSuggestionListStyles.styles.raw.js +43 -0
  33. package/lib/components/SuggestionList/useSuggestionListStyles.styles.raw.js.map +1 -0
  34. package/lib/index.js +2 -0
  35. package/lib/index.js.map +1 -0
  36. package/lib-commonjs/Suggestion.js +25 -0
  37. package/lib-commonjs/Suggestion.js.map +1 -0
  38. package/lib-commonjs/SuggestionList.js +28 -0
  39. package/lib-commonjs/SuggestionList.js.map +1 -0
  40. package/lib-commonjs/components/Suggestion/Suggestion.js +26 -0
  41. package/lib-commonjs/components/Suggestion/Suggestion.js.map +1 -0
  42. package/lib-commonjs/components/Suggestion/Suggestion.types.js +4 -0
  43. package/lib-commonjs/components/Suggestion/Suggestion.types.js.map +1 -0
  44. package/lib-commonjs/components/Suggestion/index.js +27 -0
  45. package/lib-commonjs/components/Suggestion/index.js.map +1 -0
  46. package/lib-commonjs/components/Suggestion/useSuggestion.js +22 -0
  47. package/lib-commonjs/components/Suggestion/useSuggestion.js.map +1 -0
  48. package/lib-commonjs/components/Suggestion/useSuggestionStyles.styles.js +366 -0
  49. package/lib-commonjs/components/Suggestion/useSuggestionStyles.styles.js.map +1 -0
  50. package/lib-commonjs/components/Suggestion/useSuggestionStyles.styles.raw.js +87 -0
  51. package/lib-commonjs/components/Suggestion/useSuggestionStyles.styles.raw.js.map +1 -0
  52. package/lib-commonjs/components/SuggestionList/SuggestionList.js +23 -0
  53. package/lib-commonjs/components/SuggestionList/SuggestionList.js.map +1 -0
  54. package/lib-commonjs/components/SuggestionList/SuggestionList.types.js +6 -0
  55. package/lib-commonjs/components/SuggestionList/SuggestionList.types.js.map +1 -0
  56. package/lib-commonjs/components/SuggestionList/index.js +31 -0
  57. package/lib-commonjs/components/SuggestionList/index.js.map +1 -0
  58. package/lib-commonjs/components/SuggestionList/renderSuggestionList.js +21 -0
  59. package/lib-commonjs/components/SuggestionList/renderSuggestionList.js.map +1 -0
  60. package/lib-commonjs/components/SuggestionList/useSuggestionList.js +36 -0
  61. package/lib-commonjs/components/SuggestionList/useSuggestionList.js.map +1 -0
  62. package/lib-commonjs/components/SuggestionList/useSuggestionListStyles.styles.js +88 -0
  63. package/lib-commonjs/components/SuggestionList/useSuggestionListStyles.styles.js.map +1 -0
  64. package/lib-commonjs/components/SuggestionList/useSuggestionListStyles.styles.raw.js +59 -0
  65. package/lib-commonjs/components/SuggestionList/useSuggestionListStyles.styles.raw.js.map +1 -0
  66. package/lib-commonjs/index.js +41 -0
  67. package/lib-commonjs/index.js.map +1 -0
  68. package/package.json +3 -3
package/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui-copilot/react-suggestions",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 10 Oct 2025 04:08:18 GMT",
6
- "tag": "@fluentui-copilot/react-suggestions_v0.0.0-nightly-20251010-0406-7df7c6d1.1",
7
- "version": "0.0.0-nightly-20251010-0406-7df7c6d1.1",
5
+ "date": "Mon, 13 Oct 2025 04:14:18 GMT",
6
+ "tag": "@fluentui-copilot/react-suggestions_v0.0.0-nightly-20251013-0406-7c7739c8.1",
7
+ "version": "0.0.0-nightly-20251013-0406-7c7739c8.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
package/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Change Log - @fluentui-copilot/react-suggestions
2
2
 
3
- This log was last generated on Fri, 10 Oct 2025 04:08:18 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 13 Oct 2025 04:14:18 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20251010-0406-7df7c6d1.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-suggestions_v0.0.0-nightly-20251010-0406-7df7c6d1.1)
7
+ ## [0.0.0-nightly-20251013-0406-7c7739c8.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-suggestions_v0.0.0-nightly-20251013-0406-7c7739c8.1)
8
8
 
9
- Fri, 10 Oct 2025 04:08:18 GMT
10
- [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-suggestions_v0.13.3..@fluentui-copilot/react-suggestions_v0.0.0-nightly-20251010-0406-7df7c6d1.1)
9
+ Mon, 13 Oct 2025 04:14:18 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-suggestions_v0.13.3..@fluentui-copilot/react-suggestions_v0.0.0-nightly-20251013-0406-7c7739c8.1)
11
11
 
12
12
  ### Changes
13
13
 
@@ -0,0 +1,78 @@
1
+ /// <reference types="react" />
2
+
3
+ import type { ButtonProps } from '@fluentui/react-components';
4
+ import type { ButtonSlots } from '@fluentui/react-components';
5
+ import type { ButtonState } from '@fluentui/react-components';
6
+ import type { ComponentProps } from '@fluentui/react-components';
7
+ import type { ComponentState } from '@fluentui/react-components';
8
+ import type { CopilotMode } from '@fluentui-copilot/react-provider';
9
+ import type { DesignVersion } from '@fluentui-copilot/react-provider';
10
+ import type { ForwardRefComponent } from '@fluentui/react-components';
11
+ import type { JSXElement } from '@fluentui/react-components';
12
+ import type { Slot } from '@fluentui/react-components';
13
+ import type { SlotClassNames } from '@fluentui/react-components';
14
+ import type { TooltipProps } from '@fluentui/react-components';
15
+
16
+ /**
17
+ * Render the final JSX of SuggestionList
18
+ */
19
+ export declare const renderSuggestionList_unstable: (state: SuggestionListState) => JSXElement;
20
+
21
+ export declare const Suggestion: ForwardRefComponent<SuggestionProps>;
22
+
23
+ export declare const suggestionClassNames: SlotClassNames<ButtonSlots>;
24
+
25
+ export declare const SuggestionList: ForwardRefComponent<SuggestionListProps>;
26
+
27
+ export declare const suggestionListClassNames: SlotClassNames<SuggestionListSlots>;
28
+
29
+ /**
30
+ * SuggestionList Props
31
+ */
32
+ export declare type SuggestionListProps = ComponentProps<SuggestionListSlots> & {
33
+ /**
34
+ * The horizontal alignment of the SuggestionsList.
35
+ * @default 'end'
36
+ */
37
+ horizontalAlignment?: 'start' | 'end';
38
+ };
39
+
40
+ export declare type SuggestionListSlots = {
41
+ root: Slot<'div'>;
42
+ action?: Slot<'span'>;
43
+ };
44
+
45
+ /**
46
+ * State used in rendering SuggestionList
47
+ */
48
+ export declare type SuggestionListState = ComponentState<SuggestionListSlots> & Required<Pick<SuggestionListProps, 'horizontalAlignment'>>;
49
+
50
+ export declare type SuggestionProps = CopilotMode & DesignVersion & ComponentProps<SuggestionSlots> & Omit<ButtonProps, keyof ButtonSlots>;
51
+
52
+ export declare type SuggestionSlots = ButtonSlots;
53
+
54
+ export declare type SuggestionState = ComponentState<SuggestionSlots> & Required<Pick<SuggestionProps, 'mode' | 'designVersion'>> & Omit<ButtonState, keyof ButtonSlots>;
55
+
56
+ export declare type TooltipComponent = React.FunctionComponent<Partial<TooltipProps>>;
57
+
58
+ export declare const useSuggestion_unstable: (props: SuggestionProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => SuggestionState;
59
+
60
+ /**
61
+ * Create the state required to render SuggestionList.
62
+ *
63
+ * The returned state can be modified with hooks such as useSuggestionListStyles_unstable,
64
+ * before being passed to renderSuggestionList_unstable.
65
+ *
66
+ * @param props - props from this instance of SuggestionList
67
+ * @param ref - reference to root HTMLElement of SuggestionList
68
+ */
69
+ export declare const useSuggestionList_unstable: (props: SuggestionListProps, ref: React.Ref<HTMLDivElement>) => SuggestionListState;
70
+
71
+ /**
72
+ * Apply styling to the SuggestionList slots based on the state
73
+ */
74
+ export declare const useSuggestionListStyles_unstable: (state: SuggestionListState) => SuggestionListState;
75
+
76
+ export declare const useSuggestionStyles_unstable: (state: SuggestionState) => SuggestionState;
77
+
78
+ export { }
@@ -0,0 +1 @@
1
+ export { Suggestion, suggestionClassNames, useSuggestionStyles_unstable, useSuggestion_unstable } from './components/Suggestion/index';
@@ -0,0 +1 @@
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":"AACA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,4BAA4B,EAC5BC,sBAAsB,QACjB,gCAAgC"}
@@ -0,0 +1 @@
1
+ export { SuggestionList, renderSuggestionList_unstable, suggestionListClassNames, useSuggestionListStyles_unstable, useSuggestionList_unstable } from './components/SuggestionList/index';
@@ -0,0 +1 @@
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":"AACA,SAASA,cAAc,EAAEC,6BAA6B,EAAEC,wBAAwB,EAAEC,gCAAgC,EAAEC,0BAA0B,QAAQ,oCAAoC"}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { useSuggestionStyles_unstable } from './useSuggestionStyles.styles';
3
+ import { renderButton_unstable, useButtonStyles_unstable } from '@fluentui/react-components';
4
+ import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
5
+ import { useSuggestion_unstable } from './useSuggestion';
6
+ // Suggestion component - TODO: add more docs
7
+ export const Suggestion = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
+ 'use no memo';
9
+ const state = useSuggestion_unstable(props, ref);
10
+ state.appearance = props.appearance || 'outline';
11
+ useButtonStyles_unstable(state);
12
+ useSuggestionStyles_unstable(state);
13
+ useCustomStyleHook('useSuggestionStyles')(state);
14
+ return renderButton_unstable(state);
15
+ });
16
+ Suggestion.displayName = 'Suggestion';
@@ -0,0 +1 @@
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":["React","useSuggestionStyles_unstable","renderButton_unstable","useButtonStyles_unstable","useCustomStyleHook","useSuggestion_unstable","Suggestion","forwardRef","props","ref","state","appearance","displayName"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,4BAA4B,QAAQ,+BAA+B;AAE5E,SAASC,qBAAqB,EAAEC,wBAAwB,QAAQ,6BAA6B;AAC7F,SAASC,kBAAkB,QAAQ,mCAAmC;AACtE,SAASC,sBAAsB,QAAQ,kBAAkB;AAGzD,6CAA6C;AAC7C,OAAO,MAAMC,2BAAmDN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IACvF;IAEA,MAAMC,QAAQL,uBAAuBG,OAAOC;IAC5CC,MAAMC,UAAU,GAAGH,MAAMG,UAAU,IAAI;IACvCR,yBAAyBO;IACzBT,6BAA6BS;IAC7BN,mBAAmB,uBAAuBM;IAE1C,OAAOR,sBAAsBQ;AAC/B,GAAG;AAEHJ,WAAWM,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
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":"AAUA,WAEuC"}
@@ -0,0 +1,3 @@
1
+ export { Suggestion } from './Suggestion';
2
+ export { useSuggestion_unstable } from './useSuggestion';
3
+ export { suggestionClassNames, useSuggestionStyles_unstable } from './useSuggestionStyles.styles';
@@ -0,0 +1 @@
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","useSuggestion_unstable","suggestionClassNames","useSuggestionStyles_unstable"],"rangeMappings":";;","mappings":"AAAA,SAASA,UAAU,QAAQ,eAAe;AAE1C,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,oBAAoB,EAAEC,4BAA4B,QAAQ,+BAA+B"}
@@ -0,0 +1,12 @@
1
+ import { useButton_unstable } from '@fluentui/react-components';
2
+ import { useCopilotMode, useDesignVersion } from '@fluentui-copilot/react-provider';
3
+ export const useSuggestion_unstable = (props, ref)=>{
4
+ const buttonState = useButton_unstable(props, ref);
5
+ const mode = useCopilotMode(props.mode);
6
+ const designVersion = useDesignVersion(props.designVersion);
7
+ return {
8
+ ...buttonState,
9
+ mode,
10
+ designVersion
11
+ };
12
+ };
@@ -0,0 +1 @@
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":["useButton_unstable","useCopilotMode","useDesignVersion","useSuggestion_unstable","props","ref","buttonState","mode","designVersion"],"rangeMappings":";;;;;;;;;;;","mappings":"AAAA,SAASA,kBAAkB,QAAQ,6BAA6B;AAChE,SAASC,cAAc,EAAEC,gBAAgB,QAAQ,mCAAmC;AAGpF,OAAO,MAAMC,yBAAyB,CACpCC,OACAC;IAEA,MAAMC,cAAcN,mBAAmBI,OAAOC;IAC9C,MAAME,OAAON,eAAeG,MAAMG,IAAI;IACtC,MAAMC,gBAAgBN,iBAAiBE,MAAMI,aAAa;IAC1D,OAAO;QAAE,GAAGF,WAAW;QAAEC;QAAMC;IAAc;AAC/C,EAAE"}
@@ -0,0 +1,162 @@
1
+ import { __styles, mergeClasses, shorthands } from '@fluentui/react-components';
2
+ import { tokens, typographyStyles } from '@fluentui-copilot/tokens';
3
+ export const suggestionClassNames = {
4
+ root: 'fai-Suggestion',
5
+ icon: 'fai-Suggestion__icon'
6
+ };
7
+ const useSuggestionStyles = __styles({
8
+ root: {
9
+ Bahqtrf: "fk6fouc",
10
+ Be2twd7: "fy9rknc",
11
+ Bhrd7zp: "figsok6",
12
+ Bg96gwp: "fwrc4pm",
13
+ B4j52fo: "f5ogflp",
14
+ Bekrc4i: ["f1hqa2wf", "finvdd3"],
15
+ Bn0qgzm: "f1f09k3d",
16
+ ibv6hh: ["finvdd3", "f1hqa2wf"],
17
+ icvyot: "fzkkow9",
18
+ vrafjx: ["fcdblym", "fjik90z"],
19
+ oivjwe: "fg706s2",
20
+ wvpqe5: ["fjik90z", "fcdblym"],
21
+ g2u3we: "f161y7kd",
22
+ h3c5rm: ["f1c8dzaj", "f1sl6hi9"],
23
+ B9xav0g: "f1619yhw",
24
+ zhjwy3: ["f1sl6hi9", "f1c8dzaj"],
25
+ Beyfa6y: 0,
26
+ Bbmb7ep: 0,
27
+ Btl43ni: 0,
28
+ B7oj6ja: 0,
29
+ Dimara: "f1kijzfu",
30
+ Byoj8tv: 0,
31
+ uwmqm3: 0,
32
+ z189sj: 0,
33
+ z8tnut: 0,
34
+ B0ocmuz: "fcca7b8",
35
+ sj55zd: "fkfq4zb",
36
+ fsow6f: "fpgzoln"
37
+ },
38
+ enabled: {
39
+ B9di4we: "fxuoarf",
40
+ B1f0e9u: ["f1qi0eim", "fiwk2rq"],
41
+ bb0oo: "f1jsw6og",
42
+ B88lpqa: ["fiwk2rq", "f1qi0eim"],
43
+ grrwut: "f1ggo121",
44
+ Bejlia0: "f1jg9xd",
45
+ v5djml: "fihmelj",
46
+ Bptf8dt: ["fs1n9un", "f1u9p12n"],
47
+ j4j8r: "f12ds35j",
48
+ H566xl: ["f1u9p12n", "fs1n9un"],
49
+ a9g2gr: "fezean8",
50
+ rgbxn1: "f1yr11xb"
51
+ },
52
+ canvas: {
53
+ Bahqtrf: "fk6fouc",
54
+ Be2twd7: "fkhj508",
55
+ Bhrd7zp: "figsok6",
56
+ Bg96gwp: "f1i3iumi",
57
+ Byoj8tv: 0,
58
+ uwmqm3: 0,
59
+ z189sj: 0,
60
+ z8tnut: 0,
61
+ B0ocmuz: "f1m1tk10"
62
+ }
63
+ }, {
64
+ d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".f161y7kd{border-top-color:var(--colorBrandStroke2);}", ".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}", ".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}", ".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}", [".f1kijzfu{border-radius:var(--borderRadiusXLarge);}", {
65
+ p: -1
66
+ }], [".fcca7b8{padding:var(--spacingVerticalXS) var(--spacingVerticalS);}", {
67
+ p: -1
68
+ }], ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".fpgzoln{text-align:start;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", [".f1m1tk10{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalM);}", {
69
+ p: -1
70
+ }]],
71
+ m: [["@media (forced-colors: none){.fxuoarf:hover{border-top-color:var(--colorBrandStroke2Hover);}}", {
72
+ m: "(forced-colors: none)"
73
+ }], ["@media (forced-colors: none){.f1qi0eim:hover{border-right-color:var(--colorBrandStroke2Hover);}.fiwk2rq:hover{border-left-color:var(--colorBrandStroke2Hover);}}", {
74
+ m: "(forced-colors: none)"
75
+ }], ["@media (forced-colors: none){.f1jsw6og:hover{border-bottom-color:var(--colorBrandStroke2Hover);}}", {
76
+ m: "(forced-colors: none)"
77
+ }], ["@media (forced-colors: none){.f1ggo121:hover{color:var(--colorBrandForeground2Hover);}}", {
78
+ m: "(forced-colors: none)"
79
+ }], ["@media (forced-colors: none){.f1jg9xd:hover{background-color:var(--colorBrandBackground2Hover);}}", {
80
+ m: "(forced-colors: none)"
81
+ }], ["@media (forced-colors: none){.fihmelj:active:hover{border-top-color:var(--colorBrandStroke2Pressed);}}", {
82
+ m: "(forced-colors: none)"
83
+ }], ["@media (forced-colors: none){.f1u9p12n:active:hover{border-left-color:var(--colorBrandStroke2Pressed);}.fs1n9un:active:hover{border-right-color:var(--colorBrandStroke2Pressed);}}", {
84
+ m: "(forced-colors: none)"
85
+ }], ["@media (forced-colors: none){.f12ds35j:active:hover{border-bottom-color:var(--colorBrandStroke2Pressed);}}", {
86
+ m: "(forced-colors: none)"
87
+ }], ["@media (forced-colors: none){.fezean8:active:hover{color:var(--colorBrandForeground2Pressed);}}", {
88
+ m: "(forced-colors: none)"
89
+ }], ["@media (forced-colors: none){.f1yr11xb:active:hover{background-color:var(--colorBrandBackground2Pressed);}}", {
90
+ m: "(forced-colors: none)"
91
+ }]]
92
+ });
93
+ const useNextStyles = __styles({
94
+ root: {
95
+ qh2i5f: "f1m56mwy",
96
+ Bvf7fsn: "frhssjw",
97
+ Be2twd7: "fy9rknc",
98
+ B4j52fo: "f192inf7",
99
+ Bekrc4i: ["f5tn483", "f1ojsxk5"],
100
+ Bn0qgzm: "f1vxd6vx",
101
+ ibv6hh: ["f1ojsxk5", "f5tn483"],
102
+ icvyot: "fzkkow9",
103
+ vrafjx: ["fcdblym", "fjik90z"],
104
+ oivjwe: "fg706s2",
105
+ wvpqe5: ["fjik90z", "fcdblym"],
106
+ g2u3we: "f68mrw8",
107
+ h3c5rm: ["f7pw515", "fw35ms5"],
108
+ B9xav0g: "frpde29",
109
+ zhjwy3: ["fw35ms5", "f7pw515"],
110
+ De3pzq: "fhovq9v"
111
+ },
112
+ enabled: {
113
+ B9di4we: "f106pmgz",
114
+ B1f0e9u: ["fesy4wo", "f9xbgkc"],
115
+ bb0oo: "fil0yj2",
116
+ B88lpqa: ["f9xbgkc", "fesy4wo"],
117
+ grrwut: "fnx31mg",
118
+ Bejlia0: "feiahij",
119
+ v5djml: "f1ytgj83",
120
+ Bptf8dt: ["f16m5b8m", "fwlads5"],
121
+ j4j8r: "f17ux6es",
122
+ H566xl: ["fwlads5", "f16m5b8m"],
123
+ a9g2gr: "f1kqxwtj",
124
+ rgbxn1: "f10o6k9l"
125
+ }
126
+ }, {
127
+ d: [".f1m56mwy{padding-horizontal:var(--spacingHorizontalM);padding-horizontal:var(--spacingHorizontalM);}", ".frhssjw{padding-vertical:var(--spacingVerticalSNudge);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}", ".f7pw515{border-right-color:var(--colorNeutralStroke2);}", ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".fhovq9v{background-color:var(--colorSubtleBackground);}"],
128
+ m: [["@media (forced-colors: none){.f106pmgz:hover{border-top-color:var(--colorNeutralStroke2);}}", {
129
+ m: "(forced-colors: none)"
130
+ }], ["@media (forced-colors: none){.f9xbgkc:hover{border-left-color:var(--colorNeutralStroke2);}.fesy4wo:hover{border-right-color:var(--colorNeutralStroke2);}}", {
131
+ m: "(forced-colors: none)"
132
+ }], ["@media (forced-colors: none){.fil0yj2:hover{border-bottom-color:var(--colorNeutralStroke2);}}", {
133
+ m: "(forced-colors: none)"
134
+ }], ["@media (forced-colors: none){.fnx31mg:hover{color:var(--colorNeutralForeground2Hover);}}", {
135
+ m: "(forced-colors: none)"
136
+ }], ["@media (forced-colors: none){.feiahij:hover{background-color:var(--colorSubtleBackgroundHover);}}", {
137
+ m: "(forced-colors: none)"
138
+ }], ["@media (forced-colors: none){.f1ytgj83:active:hover{border-top-color:var(--colorNeutralStroke2);}}", {
139
+ m: "(forced-colors: none)"
140
+ }], ["@media (forced-colors: none){.f16m5b8m:active:hover{border-right-color:var(--colorNeutralStroke2);}.fwlads5:active:hover{border-left-color:var(--colorNeutralStroke2);}}", {
141
+ m: "(forced-colors: none)"
142
+ }], ["@media (forced-colors: none){.f17ux6es:active:hover{border-bottom-color:var(--colorNeutralStroke2);}}", {
143
+ m: "(forced-colors: none)"
144
+ }], ["@media (forced-colors: none){.f1kqxwtj:active:hover{color:var(--colorNeutralForeground2Pressed);}}", {
145
+ m: "(forced-colors: none)"
146
+ }], ["@media (forced-colors: none){.f10o6k9l:active:hover{background-color:var(--colorSubtleBackgroundPressed);}}", {
147
+ m: "(forced-colors: none)"
148
+ }]]
149
+ });
150
+ export const useSuggestionStyles_unstable = state => {
151
+ 'use no memo';
152
+
153
+ const {
154
+ designVersion,
155
+ mode
156
+ } = state;
157
+ const styles = useSuggestionStyles();
158
+ const nextStyles = useNextStyles();
159
+ state.root.className = 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);
160
+ return state;
161
+ };
162
+ //# sourceMappingURL=useSuggestionStyles.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useSuggestionStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { SlotClassNames, ButtonSlots } from '@fluentui/react-components';\nimport type { SuggestionState } from './Suggestion.types';\n\nexport const suggestionClassNames: SlotClassNames<ButtonSlots> = {\n root: 'fai-Suggestion',\n icon: 'fai-Suggestion__icon',\n};\n\nconst useSuggestionStyles = makeStyles({\n root: {\n ...typographyStyles.caption1,\n // Brand/M365/140\n ...shorthands.border('1px', 'solid', tokens.colorBrandStroke2),\n borderRadius: tokens.borderRadiusXLarge,\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingVerticalS}`,\n color: tokens.colorNeutralForeground2,\n textAlign: 'start',\n // remove this MQ once https://github.com/microsoft/fluentui/issues/28552 is resolved\n // media queries have zero specificity\n },\n enabled: {\n '@media (forced-colors: none)': {\n ':hover': {\n // Brand/M365/120\n ...shorthands.borderColor(tokens.colorBrandStroke2Hover),\n color: tokens.colorBrandForeground2Hover,\n backgroundColor: tokens.colorBrandBackground2Hover,\n },\n // Figma states 'on hover and pressed state'\n ':active:hover': {\n // Brand/M365/120\n ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),\n color: tokens.colorBrandForeground2Pressed,\n backgroundColor: tokens.colorBrandBackground2Pressed,\n },\n },\n },\n canvas: {\n ...typographyStyles.body1,\n padding: `${tokens.spacingVerticalSNudge} ${tokens.spacingHorizontalM}`,\n },\n});\n\nconst useNextStyles = makeStyles({\n root: {\n paddingHorizontal: tokens.spacingHorizontalM,\n paddingVertical: tokens.spacingVerticalSNudge,\n fontSize: tokens.fontSizeBase200,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),\n backgroundColor: tokens.colorSubtleBackground,\n },\n enabled: {\n '@media (forced-colors: none)': {\n ':hover': {\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n color: tokens.colorNeutralForeground2Hover,\n backgroundColor: tokens.colorSubtleBackgroundHover,\n },\n ':active:hover': {\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n color: tokens.colorNeutralForeground2Pressed,\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n },\n },\n },\n});\n\nexport const useSuggestionStyles_unstable = (state: SuggestionState): SuggestionState => {\n 'use no memo';\n\n const { designVersion, mode } = state;\n\n const styles = useSuggestionStyles();\n const nextStyles = useNextStyles();\n state.root.className = mergeClasses(\n suggestionClassNames.root,\n styles.root,\n mode === 'canvas' && styles.canvas,\n designVersion === 'next' && nextStyles.root,\n !state.disabled && styles.enabled,\n designVersion === 'next' && !state.disabled && nextStyles.enabled,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","shorthands","tokens","typographyStyles","suggestionClassNames","root","icon","useSuggestionStyles","caption1","border","colorBrandStroke2","borderRadius","borderRadiusXLarge","padding","spacingVerticalXS","spacingVerticalS","color","colorNeutralForeground2","textAlign","enabled","borderColor","colorBrandStroke2Hover","colorBrandForeground2Hover","backgroundColor","colorBrandBackground2Hover","colorBrandStroke2Pressed","colorBrandForeground2Pressed","colorBrandBackground2Pressed","canvas","body1","spacingVerticalSNudge","spacingHorizontalM","useNextStyles","paddingHorizontal","paddingVertical","fontSize","fontSizeBase200","strokeWidthThin","colorNeutralStroke2","colorSubtleBackground","colorNeutralForeground2Hover","colorSubtleBackgroundHover","colorNeutralForeground2Pressed","colorSubtleBackgroundPressed","useSuggestionStyles_unstable","state","designVersion","mode","styles","nextStyles","className","disabled"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,EAAEC,UAAU,QAAQ,6BAA6B;AAClF,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,2BAA2B;AAIpE,OAAO,MAAMC,uBAAoD;IAC/DC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF,MAAMC,sBAAsBR,WAAW;IACrCM,MAAM;QACJ,GAAGF,iBAAiBK,QAAQ;QAC5B,kBAAkB;QAClB,GAAGP,WAAWQ,MAAM,CAAC,OAAO,SAASP,OAAOQ,iBAAiB,CAAC;QAC9DC,cAAcT,OAAOU,kBAAkB;QACvCC,SAAS,CAAC,EAAEX,OAAOY,iBAAiB,CAAC,CAAC,EAAEZ,OAAOa,gBAAgB,CAAC,CAAC;QACjEC,OAAOd,OAAOe,uBAAuB;QACrCC,WAAW;IAGb;IACAC,SAAS;QACP,gCAAgC;YAC9B,UAAU;gBACR,kBAAkB;gBAClB,GAAGlB,WAAWmB,WAAW,CAAClB,OAAOmB,sBAAsB,CAAC;gBACxDL,OAAOd,OAAOoB,0BAA0B;gBACxCC,iBAAiBrB,OAAOsB,0BAA0B;YACpD;YACA,4CAA4C;YAC5C,iBAAiB;gBACf,kBAAkB;gBAClB,GAAGvB,WAAWmB,WAAW,CAAClB,OAAOuB,wBAAwB,CAAC;gBAC1DT,OAAOd,OAAOwB,4BAA4B;gBAC1CH,iBAAiBrB,OAAOyB,4BAA4B;YACtD;QACF;IACF;IACAC,QAAQ;QACN,GAAGzB,iBAAiB0B,KAAK;QACzBhB,SAAS,CAAC,EAAEX,OAAO4B,qBAAqB,CAAC,CAAC,EAAE5B,OAAO6B,kBAAkB,CAAC,CAAC;IACzE;AACF;AAEA,MAAMC,gBAAgBjC,WAAW;IAC/BM,MAAM;QACJ4B,mBAAmB/B,OAAO6B,kBAAkB;QAC5CG,iBAAiBhC,OAAO4B,qBAAqB;QAC7CK,UAAUjC,OAAOkC,eAAe;QAChC,GAAGnC,WAAWQ,MAAM,CAACP,OAAOmC,eAAe,EAAE,SAASnC,OAAOoC,mBAAmB,CAAC;QACjFf,iBAAiBrB,OAAOqC,qBAAqB;IAC/C;IACApB,SAAS;QACP,gCAAgC;YAC9B,UAAU;gBACR,GAAGlB,WAAWmB,WAAW,CAAClB,OAAOoC,mBAAmB,CAAC;gBACrDtB,OAAOd,OAAOsC,4BAA4B;gBAC1CjB,iBAAiBrB,OAAOuC,0BAA0B;YACpD;YACA,iBAAiB;gBACf,GAAGxC,WAAWmB,WAAW,CAAClB,OAAOoC,mBAAmB,CAAC;gBACrDtB,OAAOd,OAAOwC,8BAA8B;gBAC5CnB,iBAAiBrB,OAAOyC,4BAA4B;YACtD;QACF;IACF;AACF;AAEA,OAAO,MAAMC,+BAA+B,CAACC;IAC3C;IAEA,MAAM,EAAEC,aAAa,EAAEC,IAAI,EAAE,GAAGF;IAEhC,MAAMG,SAASzC;IACf,MAAM0C,aAAajB;IACnBa,MAAMxC,IAAI,CAAC6C,SAAS,GAAGlD,aACrBI,qBAAqBC,IAAI,EACzB2C,OAAO3C,IAAI,EACX0C,SAAS,YAAYC,OAAOpB,MAAM,EAClCkB,kBAAkB,UAAUG,WAAW5C,IAAI,EAC3C,CAACwC,MAAMM,QAAQ,IAAIH,OAAO7B,OAAO,EACjC2B,kBAAkB,UAAU,CAACD,MAAMM,QAAQ,IAAIF,WAAW9B,OAAO,EACjE0B,MAAMxC,IAAI,CAAC6C,SAAS;IAGtB,OAAOL;AACT,EAAE"}
@@ -0,0 +1,69 @@
1
+ import { makeStyles, mergeClasses, shorthands } from '@fluentui/react-components';
2
+ import { tokens, typographyStyles } from '@fluentui-copilot/tokens';
3
+ export const suggestionClassNames = {
4
+ root: 'fai-Suggestion',
5
+ icon: 'fai-Suggestion__icon'
6
+ };
7
+ const useSuggestionStyles = makeStyles({
8
+ root: {
9
+ ...typographyStyles.caption1,
10
+ // Brand/M365/140
11
+ ...shorthands.border('1px', 'solid', tokens.colorBrandStroke2),
12
+ borderRadius: tokens.borderRadiusXLarge,
13
+ padding: `${tokens.spacingVerticalXS} ${tokens.spacingVerticalS}`,
14
+ color: tokens.colorNeutralForeground2,
15
+ textAlign: 'start'
16
+ },
17
+ enabled: {
18
+ '@media (forced-colors: none)': {
19
+ ':hover': {
20
+ // Brand/M365/120
21
+ ...shorthands.borderColor(tokens.colorBrandStroke2Hover),
22
+ color: tokens.colorBrandForeground2Hover,
23
+ backgroundColor: tokens.colorBrandBackground2Hover
24
+ },
25
+ // Figma states 'on hover and pressed state'
26
+ ':active:hover': {
27
+ // Brand/M365/120
28
+ ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),
29
+ color: tokens.colorBrandForeground2Pressed,
30
+ backgroundColor: tokens.colorBrandBackground2Pressed
31
+ }
32
+ }
33
+ },
34
+ canvas: {
35
+ ...typographyStyles.body1,
36
+ padding: `${tokens.spacingVerticalSNudge} ${tokens.spacingHorizontalM}`
37
+ }
38
+ });
39
+ const useNextStyles = makeStyles({
40
+ root: {
41
+ paddingHorizontal: tokens.spacingHorizontalM,
42
+ paddingVertical: tokens.spacingVerticalSNudge,
43
+ fontSize: tokens.fontSizeBase200,
44
+ ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),
45
+ backgroundColor: tokens.colorSubtleBackground
46
+ },
47
+ enabled: {
48
+ '@media (forced-colors: none)': {
49
+ ':hover': {
50
+ ...shorthands.borderColor(tokens.colorNeutralStroke2),
51
+ color: tokens.colorNeutralForeground2Hover,
52
+ backgroundColor: tokens.colorSubtleBackgroundHover
53
+ },
54
+ ':active:hover': {
55
+ ...shorthands.borderColor(tokens.colorNeutralStroke2),
56
+ color: tokens.colorNeutralForeground2Pressed,
57
+ backgroundColor: tokens.colorSubtleBackgroundPressed
58
+ }
59
+ }
60
+ }
61
+ });
62
+ export const useSuggestionStyles_unstable = (state)=>{
63
+ 'use no memo';
64
+ const { designVersion, mode } = state;
65
+ const styles = useSuggestionStyles();
66
+ const nextStyles = useNextStyles();
67
+ state.root.className = 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);
68
+ return state;
69
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useSuggestionStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { SlotClassNames, ButtonSlots } from '@fluentui/react-components';\nimport type { SuggestionState } from './Suggestion.types';\n\nexport const suggestionClassNames: SlotClassNames<ButtonSlots> = {\n root: 'fai-Suggestion',\n icon: 'fai-Suggestion__icon',\n};\n\nconst useSuggestionStyles = makeStyles({\n root: {\n ...typographyStyles.caption1,\n // Brand/M365/140\n ...shorthands.border('1px', 'solid', tokens.colorBrandStroke2),\n borderRadius: tokens.borderRadiusXLarge,\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingVerticalS}`,\n color: tokens.colorNeutralForeground2,\n textAlign: 'start',\n // remove this MQ once https://github.com/microsoft/fluentui/issues/28552 is resolved\n // media queries have zero specificity\n },\n enabled: {\n '@media (forced-colors: none)': {\n ':hover': {\n // Brand/M365/120\n ...shorthands.borderColor(tokens.colorBrandStroke2Hover),\n color: tokens.colorBrandForeground2Hover,\n backgroundColor: tokens.colorBrandBackground2Hover,\n },\n // Figma states 'on hover and pressed state'\n ':active:hover': {\n // Brand/M365/120\n ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),\n color: tokens.colorBrandForeground2Pressed,\n backgroundColor: tokens.colorBrandBackground2Pressed,\n },\n },\n },\n canvas: {\n ...typographyStyles.body1,\n padding: `${tokens.spacingVerticalSNudge} ${tokens.spacingHorizontalM}`,\n },\n});\n\nconst useNextStyles = makeStyles({\n root: {\n paddingHorizontal: tokens.spacingHorizontalM,\n paddingVertical: tokens.spacingVerticalSNudge,\n fontSize: tokens.fontSizeBase200,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),\n backgroundColor: tokens.colorSubtleBackground,\n },\n enabled: {\n '@media (forced-colors: none)': {\n ':hover': {\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n color: tokens.colorNeutralForeground2Hover,\n backgroundColor: tokens.colorSubtleBackgroundHover,\n },\n ':active:hover': {\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n color: tokens.colorNeutralForeground2Pressed,\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n },\n },\n },\n});\n\nexport const useSuggestionStyles_unstable = (state: SuggestionState): SuggestionState => {\n 'use no memo';\n\n const { designVersion, mode } = state;\n\n const styles = useSuggestionStyles();\n const nextStyles = useNextStyles();\n state.root.className = mergeClasses(\n suggestionClassNames.root,\n styles.root,\n mode === 'canvas' && styles.canvas,\n designVersion === 'next' && nextStyles.root,\n !state.disabled && styles.enabled,\n designVersion === 'next' && !state.disabled && nextStyles.enabled,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","shorthands","tokens","typographyStyles","suggestionClassNames","root","icon","useSuggestionStyles","caption1","border","colorBrandStroke2","borderRadius","borderRadiusXLarge","padding","spacingVerticalXS","spacingVerticalS","color","colorNeutralForeground2","textAlign","enabled","borderColor","colorBrandStroke2Hover","colorBrandForeground2Hover","backgroundColor","colorBrandBackground2Hover","colorBrandStroke2Pressed","colorBrandForeground2Pressed","colorBrandBackground2Pressed","canvas","body1","spacingVerticalSNudge","spacingHorizontalM","useNextStyles","paddingHorizontal","paddingVertical","fontSize","fontSizeBase200","strokeWidthThin","colorNeutralStroke2","colorSubtleBackground","colorNeutralForeground2Hover","colorSubtleBackgroundHover","colorNeutralForeground2Pressed","colorSubtleBackgroundPressed","useSuggestionStyles_unstable","state","designVersion","mode","styles","nextStyles","className","disabled"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,EAAEC,UAAU,QAAQ,6BAA6B;AAClF,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,2BAA2B;AAIpE,OAAO,MAAMC,uBAAoD;IAC/DC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF,MAAMC,sBAAsBR,WAAW;IACrCM,MAAM;QACJ,GAAGF,iBAAiBK,QAAQ;QAC5B,kBAAkB;QAClB,GAAGP,WAAWQ,MAAM,CAAC,OAAO,SAASP,OAAOQ,iBAAiB,CAAC;QAC9DC,cAAcT,OAAOU,kBAAkB;QACvCC,SAAS,CAAC,EAAEX,OAAOY,iBAAiB,CAAC,CAAC,EAAEZ,OAAOa,gBAAgB,CAAC,CAAC;QACjEC,OAAOd,OAAOe,uBAAuB;QACrCC,WAAW;IAGb;IACAC,SAAS;QACP,gCAAgC;YAC9B,UAAU;gBACR,kBAAkB;gBAClB,GAAGlB,WAAWmB,WAAW,CAAClB,OAAOmB,sBAAsB,CAAC;gBACxDL,OAAOd,OAAOoB,0BAA0B;gBACxCC,iBAAiBrB,OAAOsB,0BAA0B;YACpD;YACA,4CAA4C;YAC5C,iBAAiB;gBACf,kBAAkB;gBAClB,GAAGvB,WAAWmB,WAAW,CAAClB,OAAOuB,wBAAwB,CAAC;gBAC1DT,OAAOd,OAAOwB,4BAA4B;gBAC1CH,iBAAiBrB,OAAOyB,4BAA4B;YACtD;QACF;IACF;IACAC,QAAQ;QACN,GAAGzB,iBAAiB0B,KAAK;QACzBhB,SAAS,CAAC,EAAEX,OAAO4B,qBAAqB,CAAC,CAAC,EAAE5B,OAAO6B,kBAAkB,CAAC,CAAC;IACzE;AACF;AAEA,MAAMC,gBAAgBjC,WAAW;IAC/BM,MAAM;QACJ4B,mBAAmB/B,OAAO6B,kBAAkB;QAC5CG,iBAAiBhC,OAAO4B,qBAAqB;QAC7CK,UAAUjC,OAAOkC,eAAe;QAChC,GAAGnC,WAAWQ,MAAM,CAACP,OAAOmC,eAAe,EAAE,SAASnC,OAAOoC,mBAAmB,CAAC;QACjFf,iBAAiBrB,OAAOqC,qBAAqB;IAC/C;IACApB,SAAS;QACP,gCAAgC;YAC9B,UAAU;gBACR,GAAGlB,WAAWmB,WAAW,CAAClB,OAAOoC,mBAAmB,CAAC;gBACrDtB,OAAOd,OAAOsC,4BAA4B;gBAC1CjB,iBAAiBrB,OAAOuC,0BAA0B;YACpD;YACA,iBAAiB;gBACf,GAAGxC,WAAWmB,WAAW,CAAClB,OAAOoC,mBAAmB,CAAC;gBACrDtB,OAAOd,OAAOwC,8BAA8B;gBAC5CnB,iBAAiBrB,OAAOyC,4BAA4B;YACtD;QACF;IACF;AACF;AAEA,OAAO,MAAMC,+BAA+B,CAACC;IAC3C;IAEA,MAAM,EAAEC,aAAa,EAAEC,IAAI,EAAE,GAAGF;IAEhC,MAAMG,SAASzC;IACf,MAAM0C,aAAajB;IACnBa,MAAMxC,IAAI,CAAC6C,SAAS,GAAGlD,aACrBI,qBAAqBC,IAAI,EACzB2C,OAAO3C,IAAI,EACX0C,SAAS,YAAYC,OAAOpB,MAAM,EAClCkB,kBAAkB,UAAUG,WAAW5C,IAAI,EAC3C,CAACwC,MAAMM,QAAQ,IAAIH,OAAO7B,OAAO,EACjC2B,kBAAkB,UAAU,CAACD,MAAMM,QAAQ,IAAIF,WAAW9B,OAAO,EACjE0B,MAAMxC,IAAI,CAAC6C,SAAS;IAGtB,OAAOL;AACT,EAAE"}
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { useSuggestionList_unstable } from './useSuggestionList';
3
+ import { renderSuggestionList_unstable } from './renderSuggestionList';
4
+ import { useSuggestionListStyles_unstable } from './useSuggestionListStyles.styles';
5
+ import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
+ // SuggestionList component - TODO: add more docs
7
+ export const SuggestionList = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
+ const state = useSuggestionList_unstable(props, ref);
9
+ useSuggestionListStyles_unstable(state);
10
+ useCustomStyleHook('useSuggestionListStyles')(state);
11
+ return renderSuggestionList_unstable(state);
12
+ });
13
+ SuggestionList.displayName = 'SuggestionList';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["SuggestionList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSuggestionList_unstable } from './useSuggestionList';\nimport { renderSuggestionList_unstable } from './renderSuggestionList';\nimport { useSuggestionListStyles_unstable } from './useSuggestionListStyles.styles';\nimport type { SuggestionListProps } from './SuggestionList.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n\n// SuggestionList component - TODO: add more docs\nexport const SuggestionList: ForwardRefComponent<SuggestionListProps> = React.forwardRef((props, ref) => {\n const state = useSuggestionList_unstable(props, ref);\n\n useSuggestionListStyles_unstable(state);\n useCustomStyleHook('useSuggestionListStyles')(state);\n\n return renderSuggestionList_unstable(state);\n});\n\nSuggestionList.displayName = 'SuggestionList';\n"],"names":["React","useSuggestionList_unstable","renderSuggestionList_unstable","useSuggestionListStyles_unstable","useCustomStyleHook","SuggestionList","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,0BAA0B,QAAQ,sBAAsB;AACjE,SAASC,6BAA6B,QAAQ,yBAAyB;AACvE,SAASC,gCAAgC,QAAQ,mCAAmC;AAGpF,SAASC,kBAAkB,QAAQ,mCAAmC;AAEtE,iDAAiD;AACjD,OAAO,MAAMC,+BAA2DL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQR,2BAA2BM,OAAOC;IAEhDL,iCAAiCM;IACjCL,mBAAmB,2BAA2BK;IAE9C,OAAOP,8BAA8BO;AACvC,GAAG;AAEHJ,eAAeK,WAAW,GAAG"}
@@ -0,0 +1,3 @@
1
+ /**
2
+ * State used in rendering SuggestionList
3
+ */ export { };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["SuggestionList.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot, TooltipProps } from '@fluentui/react-components';\n\nexport type TooltipComponent = React.FunctionComponent<Partial<TooltipProps>>;\n\nexport type SuggestionListSlots = {\n root: Slot<'div'>;\n action?: Slot<'span'>;\n};\n\n/**\n * SuggestionList Props\n */\nexport type SuggestionListProps = ComponentProps<SuggestionListSlots> & {\n /**\n * The horizontal alignment of the SuggestionsList.\n * @default 'end'\n */\n horizontalAlignment?: 'start' | 'end';\n};\n\n/**\n * State used in rendering SuggestionList\n */\nexport type SuggestionListState = ComponentState<SuggestionListSlots> &\n Required<Pick<SuggestionListProps, 'horizontalAlignment'>>;\n"],"names":[],"rangeMappings":";;","mappings":"AAoBA;;CAEC,GACD,WAC6D"}
@@ -0,0 +1,4 @@
1
+ export { SuggestionList } from './SuggestionList';
2
+ export { renderSuggestionList_unstable } from './renderSuggestionList';
3
+ export { useSuggestionList_unstable } from './useSuggestionList';
4
+ export { suggestionListClassNames, useSuggestionListStyles_unstable } from './useSuggestionListStyles.styles';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export { SuggestionList } from './SuggestionList';\nexport type { SuggestionListProps, SuggestionListSlots, SuggestionListState, TooltipComponent } from './SuggestionList.types';\nexport { renderSuggestionList_unstable } from './renderSuggestionList';\nexport { useSuggestionList_unstable } from './useSuggestionList';\nexport { suggestionListClassNames, useSuggestionListStyles_unstable } from './useSuggestionListStyles.styles';\n"],"names":["SuggestionList","renderSuggestionList_unstable","useSuggestionList_unstable","suggestionListClassNames","useSuggestionListStyles_unstable"],"rangeMappings":";;;","mappings":"AAAA,SAASA,cAAc,QAAQ,mBAAmB;AAElD,SAASC,6BAA6B,QAAQ,yBAAyB;AACvE,SAASC,0BAA0B,QAAQ,sBAAsB;AACjE,SAASC,wBAAwB,EAAEC,gCAAgC,QAAQ,mCAAmC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { assertSlots } from '@fluentui/react-components';
3
+ /**
4
+ * Render the final JSX of SuggestionList
5
+ */ export const renderSuggestionList_unstable = (state)=>{
6
+ assertSlots(state);
7
+ return /*#__PURE__*/ _jsxs(state.root, {
8
+ children: [
9
+ state.root.children,
10
+ state.action && /*#__PURE__*/ _jsx(state.action, {})
11
+ ]
12
+ });
13
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderSuggestionList.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { JSXElement } from '@fluentui/react-components';\nimport type { SuggestionListState, SuggestionListSlots } from './SuggestionList.types';\n\n/**\n * Render the final JSX of SuggestionList\n */\nexport const renderSuggestionList_unstable = (state: SuggestionListState): JSXElement => {\n assertSlots<SuggestionListSlots>(state);\n\n return (\n <state.root>\n {state.root.children}\n {state.action && <state.action />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderSuggestionList_unstable","state","root","children","action"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,6BAA6B;AAIzD;;CAEC,GACD,OAAO,MAAMC,gCAAgC,CAACC;IAC5CF,YAAiCE;IAEjC,qBACE,MAACA,MAAMC,IAAI;;YACRD,MAAMC,IAAI,CAACC,QAAQ;YACnBF,MAAMG,MAAM,kBAAI,KAACH,MAAMG,MAAM;;;AAGpC,EAAE"}
@@ -0,0 +1,35 @@
1
+ import { getIntrinsicElementProps, slot, useArrowNavigationGroup } 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 SuggestionList.
5
+ *
6
+ * The returned state can be modified with hooks such as useSuggestionListStyles_unstable,
7
+ * before being passed to renderSuggestionList_unstable.
8
+ *
9
+ * @param props - props from this instance of SuggestionList
10
+ * @param ref - reference to root HTMLElement of SuggestionList
11
+ */ export const useSuggestionList_unstable = (props, ref)=>{
12
+ const { action, horizontalAlignment = 'end' } = props;
13
+ return {
14
+ horizontalAlignment,
15
+ components: {
16
+ root: 'div',
17
+ action: 'span'
18
+ },
19
+ root: slot.always(getIntrinsicElementProps('div', {
20
+ ref,
21
+ role: 'toolbar',
22
+ 'aria-label': 'suggestions',
23
+ ...props,
24
+ ...useArrowNavigationGroup({
25
+ axis: 'both',
26
+ circular: true
27
+ })
28
+ }), {
29
+ elementType: 'div'
30
+ }),
31
+ action: slot.optional(action, {
32
+ elementType: 'span'
33
+ })
34
+ };
35
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useSuggestionList.tsx"],"sourcesContent":["import { getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\nimport type { SuggestionListProps, SuggestionListState } from './SuggestionList.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 SuggestionList.\n *\n * The returned state can be modified with hooks such as useSuggestionListStyles_unstable,\n * before being passed to renderSuggestionList_unstable.\n *\n * @param props - props from this instance of SuggestionList\n * @param ref - reference to root HTMLElement of SuggestionList\n */\nexport const useSuggestionList_unstable = (\n props: SuggestionListProps,\n ref: React.Ref<HTMLDivElement>,\n): SuggestionListState => {\n const { action, horizontalAlignment = 'end' } = props;\n return {\n horizontalAlignment,\n components: {\n root: 'div',\n action: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n role: 'toolbar',\n 'aria-label': 'suggestions',\n ...props,\n ...useArrowNavigationGroup({ axis: 'both', circular: true }),\n }),\n { elementType: 'div' },\n ),\n action: slot.optional(action, { elementType: 'span' }),\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useArrowNavigationGroup","useSuggestionList_unstable","props","ref","action","horizontalAlignment","components","root","always","role","axis","circular","elementType","optional"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,wBAAwB,EAAEC,IAAI,EAAEC,uBAAuB,QAAQ,6BAA6B;AAGrG,uEAAuE;AAEvE;;;;;;;;CAQC,GACD,OAAO,MAAMC,6BAA6B,CACxCC,OACAC;IAEA,MAAM,EAAEC,MAAM,EAAEC,sBAAsB,KAAK,EAAE,GAAGH;IAChD,OAAO;QACLG;QACAC,YAAY;YACVC,MAAM;YACNH,QAAQ;QACV;QACAG,MAAMR,KAAKS,MAAM,CACfV,yBAAyB,OAAO;YAC9BK;YACAM,MAAM;YACN,cAAc;YACd,GAAGP,KAAK;YACR,GAAGF,wBAAwB;gBAAEU,MAAM;gBAAQC,UAAU;YAAK,EAAE;QAC9D,IACA;YAAEC,aAAa;QAAM;QAEvBR,QAAQL,KAAKc,QAAQ,CAACT,QAAQ;YAAEQ,aAAa;QAAO;IACtD;AACF,EAAE"}
@@ -0,0 +1,54 @@
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
@@ -0,0 +1 @@
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"}