@fluentui-copilot/react-prompt-starter 0.0.0-nightly-20250708-1433-52f2b6b1.1 → 0.0.0-nightly-20250709-0404-150e065c.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 (71) hide show
  1. package/CHANGELOG.json +3 -3
  2. package/CHANGELOG.md +4 -4
  3. package/lib/PromptStarter.js +1 -0
  4. package/lib/PromptStarterList.js +1 -0
  5. package/lib/PromptStarterV2.js +1 -0
  6. package/lib/components/PromptStarter/PromptStarter.js +6 -5
  7. package/lib/components/PromptStarter/PromptStarter.types.js +2 -1
  8. package/lib/components/PromptStarter/index.js +1 -0
  9. package/lib/components/PromptStarter/renderPromptStarter.js +9 -16
  10. package/lib/components/PromptStarter/usePromptStarter.js +44 -42
  11. package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js +6 -5
  12. package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +2 -1
  13. package/lib/components/PromptStarterV2/PromptStarter/index.js +1 -0
  14. package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +50 -61
  15. package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +9 -15
  16. package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js +51 -49
  17. package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +6 -5
  18. package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +2 -1
  19. package/lib/components/PromptStarterV2/PromptStarterList/index.js +1 -0
  20. package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +14 -15
  21. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +97 -97
  22. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +7 -4
  23. package/lib/contexts/PromptStarterListContext.js +3 -2
  24. package/lib/index.js +1 -0
  25. package/lib-commonjs/PromptStarter.js +1 -0
  26. package/lib-commonjs/PromptStarterList.js +1 -0
  27. package/lib-commonjs/PromptStarterV2.js +1 -0
  28. package/lib-commonjs/components/PromptStarter/PromptStarter.js +1 -1
  29. package/lib-commonjs/components/PromptStarter/PromptStarter.js.map +1 -1
  30. package/lib-commonjs/components/PromptStarter/PromptStarter.types.js +1 -0
  31. package/lib-commonjs/components/PromptStarter/index.js +1 -0
  32. package/lib-commonjs/components/PromptStarter/renderPromptStarter.js +1 -1
  33. package/lib-commonjs/components/PromptStarter/renderPromptStarter.js.map +1 -1
  34. package/lib-commonjs/components/PromptStarter/usePromptStarter.js +1 -1
  35. package/lib-commonjs/components/PromptStarter/usePromptStarter.js.map +1 -1
  36. package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.js +1 -1
  37. package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.js.map +1 -1
  38. package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +1 -0
  39. package/lib-commonjs/components/PromptStarterV2/PromptStarter/index.js +1 -0
  40. package/lib-commonjs/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +1 -1
  41. package/lib-commonjs/components/PromptStarterV2/PromptStarter/promptStarterMotion.js.map +1 -1
  42. package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +1 -1
  43. package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +1 -1
  44. package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js +1 -1
  45. package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +1 -1
  46. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +1 -1
  47. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.js.map +1 -1
  48. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +1 -0
  49. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js +1 -0
  50. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +1 -1
  51. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +1 -1
  52. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +1 -1
  53. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js.map +1 -1
  54. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +1 -1
  55. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js.map +1 -1
  56. package/lib-commonjs/contexts/PromptStarterListContext.js +1 -1
  57. package/lib-commonjs/contexts/PromptStarterListContext.js.map +1 -1
  58. package/lib-commonjs/index.js +1 -0
  59. package/package.json +3 -3
  60. package/lib/components/PromptStarter/usePromptStarterStyles.styles.raw.js +0 -94
  61. package/lib/components/PromptStarter/usePromptStarterStyles.styles.raw.js.map +0 -1
  62. package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js +0 -119
  63. package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js.map +0 -1
  64. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js +0 -61
  65. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js.map +0 -1
  66. package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.raw.js +0 -112
  67. package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.raw.js.map +0 -1
  68. package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js +0 -137
  69. package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js.map +0 -1
  70. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js +0 -77
  71. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui-copilot/react-prompt-starter",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 08 Jul 2025 14:40:39 GMT",
6
- "tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20250708-1433-52f2b6b1.1",
7
- "version": "0.0.0-nightly-20250708-1433-52f2b6b1.1",
5
+ "date": "Wed, 09 Jul 2025 04:12:05 GMT",
6
+ "tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20250709-0404-150e065c.1",
7
+ "version": "0.0.0-nightly-20250709-0404-150e065c.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
package/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Change Log - @fluentui-copilot/react-prompt-starter
2
2
 
3
- This log was last generated on Tue, 08 Jul 2025 14:40:39 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 09 Jul 2025 04:12:05 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20250708-1433-52f2b6b1.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20250708-1433-52f2b6b1.1)
7
+ ## [0.0.0-nightly-20250709-0404-150e065c.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20250709-0404-150e065c.1)
8
8
 
9
- Tue, 08 Jul 2025 14:40:39 GMT
10
- [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.10.2..@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20250708-1433-52f2b6b1.1)
9
+ Wed, 09 Jul 2025 04:12:05 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.10.2..@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20250709-0404-150e065c.1)
11
11
 
12
12
  ### Changes
13
13
 
@@ -1 +1,2 @@
1
1
  export { PromptStarter, promptStarterClassNames, renderPromptStarter_unstable, usePromptStarterStyles_unstable, usePromptStarter_unstable } from './components/PromptStarter/index';
2
+ //# sourceMappingURL=PromptStarter.js.map
@@ -1 +1,2 @@
1
1
  export { PromptStarterList, renderPromptStarterList_unstable, usePromptStarterList_unstable, promptStarterListClassNames, usePromptStarterListStyles_unstable } from './components/PromptStarterV2/PromptStarterList/index';
2
+ //# sourceMappingURL=PromptStarterList.js.map
@@ -1 +1,2 @@
1
1
  export { PromptStarter, promptStarterClassNames, renderPromptStarter_unstable, usePromptStarterStyles_unstable, usePromptStarter_unstable } from './components/PromptStarterV2/PromptStarter/index';
2
+ //# sourceMappingURL=PromptStarterV2.js.map
@@ -3,10 +3,11 @@ import { usePromptStarter_unstable } from './usePromptStarter';
3
3
  import { renderPromptStarter_unstable } from './renderPromptStarter';
4
4
  import { usePromptStarterStyles_unstable } from './usePromptStarterStyles.styles';
5
5
  import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
- export const PromptStarter = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
- const state = usePromptStarter_unstable(props, ref);
8
- usePromptStarterStyles_unstable(state);
9
- useCustomStyleHook('usePromptStarterStyles')(state);
10
- return renderPromptStarter_unstable(state);
6
+ export const PromptStarter = /*#__PURE__*/React.forwardRef((props, ref) => {
7
+ const state = usePromptStarter_unstable(props, ref);
8
+ usePromptStarterStyles_unstable(state);
9
+ useCustomStyleHook('usePromptStarterStyles')(state);
10
+ return renderPromptStarter_unstable(state);
11
11
  });
12
12
  PromptStarter.displayName = 'PromptStarter';
13
+ //# sourceMappingURL=PromptStarter.js.map
@@ -1,3 +1,4 @@
1
1
  /**
2
2
  * State used in rendering PromptStarter
3
- */ export { };
3
+ */export {};
4
+ //# sourceMappingURL=PromptStarter.types.js.map
@@ -2,3 +2,4 @@ export { PromptStarter } from './PromptStarter';
2
2
  export { renderPromptStarter_unstable } from './renderPromptStarter';
3
3
  export { usePromptStarter_unstable } from './usePromptStarter';
4
4
  export { promptStarterClassNames, usePromptStarterStyles_unstable } from './usePromptStarterStyles.styles';
5
+ //# sourceMappingURL=index.js.map
@@ -1,18 +1,11 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-components';
3
- export const renderPromptStarter_unstable = (state)=>{
4
- assertSlots(state);
5
- return /*#__PURE__*/ _jsxs(state.root, {
6
- children: [
7
- /*#__PURE__*/ _jsx(state.icon, {}),
8
- /*#__PURE__*/ _jsxs(state.category, {
9
- children: [
10
- state.category.children,
11
- " ",
12
- state.badge && /*#__PURE__*/ _jsx(state.badge, {})
13
- ]
14
- }),
15
- state.prompt && /*#__PURE__*/ _jsx(state.prompt, {})
16
- ]
17
- });
3
+ export const renderPromptStarter_unstable = state => {
4
+ assertSlots(state);
5
+ return /*#__PURE__*/_jsxs(state.root, {
6
+ children: [/*#__PURE__*/_jsx(state.icon, {}), /*#__PURE__*/_jsxs(state.category, {
7
+ children: [state.category.children, " ", state.badge && /*#__PURE__*/_jsx(state.badge, {})]
8
+ }), state.prompt && /*#__PURE__*/_jsx(state.prompt, {})]
9
+ });
18
10
  };
11
+ //# sourceMappingURL=renderPromptStarter.js.map
@@ -8,46 +8,48 @@ import { Badge, getIntrinsicElementProps, slot, useId } from '@fluentui/react-co
8
8
  *
9
9
  * @param props - props from this instance of PromptStarter
10
10
  * @param ref - reference to root HTMLElement of PromptStarter
11
- */ export const usePromptStarter_unstable = (props, ref)=>{
12
- const designVersion = useDesignVersion(props.designVersion);
13
- const idPrefix = useId('prompt-starter');
14
- return {
15
- components: {
16
- root: 'button',
17
- icon: 'span',
18
- category: 'span',
19
- prompt: 'span',
20
- badge: Badge
21
- },
22
- root: slot.always(getIntrinsicElementProps('button', {
23
- ref,
24
- 'aria-labelledby': `${idPrefix}-category`,
25
- 'aria-describedby': `${idPrefix}-prompt`,
26
- ...props
27
- }), {
28
- elementType: 'button'
29
- }),
30
- icon: slot.always(props.icon, {
31
- elementType: 'span'
32
- }),
33
- category: slot.always(props.category, {
34
- defaultProps: {
35
- id: `${idPrefix}-category`
36
- },
37
- elementType: 'span'
38
- }),
39
- prompt: slot.optional(props.prompt, {
40
- defaultProps: {
41
- id: `${idPrefix}-prompt`
42
- },
43
- elementType: 'span'
44
- }),
45
- badge: slot.optional(props.badge, {
46
- defaultProps: {
47
- appearance: 'tint'
48
- },
49
- elementType: Badge
50
- }),
51
- designVersion
52
- };
11
+ */
12
+ export const usePromptStarter_unstable = (props, ref) => {
13
+ const designVersion = useDesignVersion(props.designVersion);
14
+ const idPrefix = useId('prompt-starter');
15
+ return {
16
+ components: {
17
+ root: 'button',
18
+ icon: 'span',
19
+ category: 'span',
20
+ prompt: 'span',
21
+ badge: Badge
22
+ },
23
+ root: slot.always(getIntrinsicElementProps('button', {
24
+ ref,
25
+ 'aria-labelledby': `${idPrefix}-category`,
26
+ 'aria-describedby': `${idPrefix}-prompt`,
27
+ ...props
28
+ }), {
29
+ elementType: 'button'
30
+ }),
31
+ icon: slot.always(props.icon, {
32
+ elementType: 'span'
33
+ }),
34
+ category: slot.always(props.category, {
35
+ defaultProps: {
36
+ id: `${idPrefix}-category`
37
+ },
38
+ elementType: 'span'
39
+ }),
40
+ prompt: slot.optional(props.prompt, {
41
+ defaultProps: {
42
+ id: `${idPrefix}-prompt`
43
+ },
44
+ elementType: 'span'
45
+ }),
46
+ badge: slot.optional(props.badge, {
47
+ defaultProps: {
48
+ appearance: 'tint'
49
+ },
50
+ elementType: Badge
51
+ }),
52
+ designVersion
53
+ };
53
54
  };
55
+ //# sourceMappingURL=usePromptStarter.js.map
@@ -3,10 +3,11 @@ import { usePromptStarter_unstable } from './usePromptStarter';
3
3
  import { renderPromptStarter_unstable } from './renderPromptStarter';
4
4
  import { usePromptStarterStyles_unstable } from './usePromptStarterStyles.styles';
5
5
  import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
- export const PromptStarter = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
- const state = usePromptStarter_unstable(props, ref);
8
- usePromptStarterStyles_unstable(state);
9
- useCustomStyleHook('usePromptStarterStyles')(state);
10
- return renderPromptStarter_unstable(state);
6
+ export const PromptStarter = /*#__PURE__*/React.forwardRef((props, ref) => {
7
+ const state = usePromptStarter_unstable(props, ref);
8
+ usePromptStarterStyles_unstable(state);
9
+ useCustomStyleHook('usePromptStarterStyles')(state);
10
+ return renderPromptStarter_unstable(state);
11
11
  });
12
12
  PromptStarter.displayName = 'PromptStarter';
13
+ //# sourceMappingURL=PromptStarter.js.map
@@ -1,3 +1,4 @@
1
1
  /**
2
2
  * State used in rendering PromptStarter
3
- */ export { };
3
+ */export {};
4
+ //# sourceMappingURL=PromptStarter.types.js.map
@@ -2,3 +2,4 @@ export { PromptStarter } from './PromptStarter';
2
2
  export { renderPromptStarter_unstable } from './renderPromptStarter';
3
3
  export { usePromptStarter_unstable } from './usePromptStarter';
4
4
  export { promptStarterClassNames, usePromptStarterStyles_unstable } from './usePromptStarterStyles.styles';
5
+ //# sourceMappingURL=index.js.map
@@ -1,63 +1,52 @@
1
1
  import { createPresenceComponent } from '@fluentui/react-components';
2
- export const PromptStarterMotion = createPresenceComponent(({ index, numberOfColumns })=>{
3
- const isFirstRow = index < numberOfColumns;
4
- const delay = isFirstRow ? index * 50 : (index - numberOfColumns) * 50;
5
- const opacityDuration = 100;
6
- const opacityOffset = delay / (delay + opacityDuration);
7
- const opacityEasing = 'linear';
8
- const scaleDuration = 500;
9
- const scaleOffset = delay / (delay + scaleDuration);
10
- const scaleEasing = `cubic-bezier(0.22, 1.59, 0.46, 1)`;
11
- const opacityExitDuration = 200;
12
- return {
13
- enter: [
14
- {
15
- keyframes: [
16
- {
17
- opacity: 0
18
- },
19
- {
20
- opacity: 0,
21
- offset: opacityOffset
22
- },
23
- {
24
- opacity: 1
25
- }
26
- ],
27
- easing: opacityEasing,
28
- duration: opacityDuration + delay
29
- },
30
- {
31
- keyframes: [
32
- {
33
- transform: 'scale(0.9)'
34
- },
35
- {
36
- transform: 'scale(0.9)',
37
- offset: scaleOffset
38
- },
39
- {
40
- transform: 'scale(1)'
41
- }
42
- ],
43
- easing: scaleEasing,
44
- duration: scaleDuration + delay
45
- }
46
- ],
47
- exit: {
48
- keyframes: [
49
- {
50
- opacity: 1
51
- },
52
- {
53
- opacity: 1
54
- },
55
- {
56
- opacity: 0
57
- }
58
- ],
59
- easing: opacityEasing,
60
- duration: opacityExitDuration
61
- }
62
- };
2
+ export const PromptStarterMotion = createPresenceComponent(({
3
+ index,
4
+ numberOfColumns
5
+ }) => {
6
+ const isFirstRow = index < numberOfColumns;
7
+ const delay = isFirstRow ? index * 50 : (index - numberOfColumns) * 50;
8
+ const opacityDuration = 100;
9
+ const opacityOffset = delay / (delay + opacityDuration);
10
+ const opacityEasing = 'linear';
11
+ const scaleDuration = 500;
12
+ const scaleOffset = delay / (delay + scaleDuration);
13
+ const scaleEasing = `cubic-bezier(0.22, 1.59, 0.46, 1)`;
14
+ const opacityExitDuration = 200;
15
+ return {
16
+ enter: [{
17
+ keyframes: [{
18
+ opacity: 0
19
+ }, {
20
+ opacity: 0,
21
+ offset: opacityOffset
22
+ }, {
23
+ opacity: 1
24
+ }],
25
+ easing: opacityEasing,
26
+ duration: opacityDuration + delay
27
+ }, {
28
+ keyframes: [{
29
+ transform: 'scale(0.9)'
30
+ }, {
31
+ transform: 'scale(0.9)',
32
+ offset: scaleOffset
33
+ }, {
34
+ transform: 'scale(1)'
35
+ }],
36
+ easing: scaleEasing,
37
+ duration: scaleDuration + delay
38
+ }],
39
+ exit: {
40
+ keyframes: [{
41
+ opacity: 1
42
+ }, {
43
+ opacity: 1
44
+ }, {
45
+ opacity: 0
46
+ }],
47
+ easing: opacityEasing,
48
+ duration: opacityExitDuration
49
+ }
50
+ };
63
51
  });
52
+ //# sourceMappingURL=promptStarterMotion.js.map
@@ -1,17 +1,11 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-components';
3
- export const renderPromptStarter_unstable = (state)=>{
4
- assertSlots(state);
5
- return /*#__PURE__*/ _jsxs(state.root, {
6
- children: [
7
- /*#__PURE__*/ _jsxs(state.primaryAction, {
8
- children: [
9
- /*#__PURE__*/ _jsx(state.icon, {}),
10
- /*#__PURE__*/ _jsx(state.prompt, {}),
11
- state.reasonMarker && /*#__PURE__*/ _jsx(state.reasonMarker, {})
12
- ]
13
- }),
14
- state.actions && /*#__PURE__*/ _jsx(state.actions, {})
15
- ]
16
- });
3
+ export const renderPromptStarter_unstable = state => {
4
+ assertSlots(state);
5
+ return /*#__PURE__*/_jsxs(state.root, {
6
+ children: [/*#__PURE__*/_jsxs(state.primaryAction, {
7
+ children: [/*#__PURE__*/_jsx(state.icon, {}), /*#__PURE__*/_jsx(state.prompt, {}), state.reasonMarker && /*#__PURE__*/_jsx(state.reasonMarker, {})]
8
+ }), state.actions && /*#__PURE__*/_jsx(state.actions, {})]
9
+ });
17
10
  };
11
+ //# sourceMappingURL=renderPromptStarter.js.map
@@ -8,53 +8,55 @@ import { usePromptStarterListContext } from '../../../contexts/PromptStarterList
8
8
  *
9
9
  * @param props - props from this instance of PromptStarter
10
10
  * @param ref - reference to root HTMLElement of PromptStarter
11
- */ export const usePromptStarter_unstable = (props, ref)=>{
12
- const id = useId('prompt-starter');
13
- const focusAttrs = useFocusableGroup();
14
- const numberOfColumns = usePromptStarterListContext((ctx)=>ctx.numberOfColumns);
15
- const state = {
16
- isSingleColumn: numberOfColumns === 1,
17
- components: {
18
- root: 'div',
19
- primaryAction: 'button',
20
- icon: 'span',
21
- prompt: 'span',
22
- reasonMarker: 'span',
23
- actions: 'span'
24
- },
25
- root: slot.always(getIntrinsicElementProps('div', {
26
- ref,
27
- 'aria-labelledby': `${id}-prompt`,
28
- 'aria-describedby': `${id}-icon, ${id}-reasonMarker`,
29
- ...focusAttrs,
30
- ...props
31
- }), {
32
- elementType: 'div'
33
- }),
34
- primaryAction: slot.always(props.primaryAction, {
35
- elementType: 'button'
36
- }),
37
- icon: slot.always(props.icon, {
38
- defaultProps: {
39
- id: `${id}-icon`
40
- },
41
- elementType: 'span'
42
- }),
43
- prompt: slot.always(props.prompt, {
44
- defaultProps: {
45
- id: `${id}-prompt`
46
- },
47
- elementType: 'span'
48
- }),
49
- reasonMarker: slot.optional(props.reasonMarker, {
50
- defaultProps: {
51
- id: `${id}-reasonMarker`
52
- },
53
- elementType: 'span'
54
- }),
55
- actions: slot.optional(props.actions, {
56
- elementType: 'span'
57
- })
58
- };
59
- return state;
11
+ */
12
+ export const usePromptStarter_unstable = (props, ref) => {
13
+ const id = useId('prompt-starter');
14
+ const focusAttrs = useFocusableGroup();
15
+ const numberOfColumns = usePromptStarterListContext(ctx => ctx.numberOfColumns);
16
+ const state = {
17
+ isSingleColumn: numberOfColumns === 1,
18
+ components: {
19
+ root: 'div',
20
+ primaryAction: 'button',
21
+ icon: 'span',
22
+ prompt: 'span',
23
+ reasonMarker: 'span',
24
+ actions: 'span'
25
+ },
26
+ root: slot.always(getIntrinsicElementProps('div', {
27
+ ref,
28
+ 'aria-labelledby': `${id}-prompt`,
29
+ 'aria-describedby': `${id}-icon, ${id}-reasonMarker`,
30
+ ...focusAttrs,
31
+ ...props
32
+ }), {
33
+ elementType: 'div'
34
+ }),
35
+ primaryAction: slot.always(props.primaryAction, {
36
+ elementType: 'button'
37
+ }),
38
+ icon: slot.always(props.icon, {
39
+ defaultProps: {
40
+ id: `${id}-icon`
41
+ },
42
+ elementType: 'span'
43
+ }),
44
+ prompt: slot.always(props.prompt, {
45
+ defaultProps: {
46
+ id: `${id}-prompt`
47
+ },
48
+ elementType: 'span'
49
+ }),
50
+ reasonMarker: slot.optional(props.reasonMarker, {
51
+ defaultProps: {
52
+ id: `${id}-reasonMarker`
53
+ },
54
+ elementType: 'span'
55
+ }),
56
+ actions: slot.optional(props.actions, {
57
+ elementType: 'span'
58
+ })
59
+ };
60
+ return state;
60
61
  };
62
+ //# sourceMappingURL=usePromptStarter.js.map
@@ -3,10 +3,11 @@ import { usePromptStarterList_unstable } from './usePromptStarterList';
3
3
  import { renderPromptStarterList_unstable } from './renderPromptStarterList';
4
4
  import { usePromptStarterListStyles_unstable } from './usePromptStarterListStyles.styles';
5
5
  import { usePromptStarterListContextValues } from './usePromptStarterListContextValues';
6
- export const PromptStarterList = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
- const state = usePromptStarterList_unstable(props, ref);
8
- const contextValues = usePromptStarterListContextValues(state);
9
- usePromptStarterListStyles_unstable(state);
10
- return renderPromptStarterList_unstable(state, contextValues);
6
+ export const PromptStarterList = /*#__PURE__*/React.forwardRef((props, ref) => {
7
+ const state = usePromptStarterList_unstable(props, ref);
8
+ const contextValues = usePromptStarterListContextValues(state);
9
+ usePromptStarterListStyles_unstable(state);
10
+ return renderPromptStarterList_unstable(state, contextValues);
11
11
  });
12
12
  PromptStarterList.displayName = 'PromptStarterList';
13
+ //# sourceMappingURL=PromptStarterList.js.map
@@ -1 +1,2 @@
1
- export { };
1
+ export {};
2
+ //# sourceMappingURL=PromptStarterList.types.js.map
@@ -2,3 +2,4 @@ export { PromptStarterList } from './PromptStarterList';
2
2
  export { renderPromptStarterList_unstable } from './renderPromptStarterList';
3
3
  export { usePromptStarterList_unstable } from './usePromptStarterList';
4
4
  export { promptStarterListClassNames, usePromptStarterListStyles_unstable } from './usePromptStarterListStyles.styles';
5
+ //# sourceMappingURL=index.js.map
@@ -1,21 +1,20 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots, PresenceGroup } from '@fluentui/react-components';
3
3
  import { PromptStarterListProvider } from '../../../contexts/PromptStarterListContext';
4
4
  /**
5
5
  * Render the final JSX of PromptStarterList
6
- */ export const renderPromptStarterList_unstable = (state, contextValue)=>{
7
- assertSlots(state);
8
- return /*#__PURE__*/ _jsx(PromptStarterListProvider, {
9
- value: contextValue,
10
- children: /*#__PURE__*/ _jsxs(state.root, {
11
- children: [
12
- /*#__PURE__*/ _jsx(PresenceGroup, {
13
- children: /*#__PURE__*/ _jsx(state.gridWrapper, {
14
- children: state.root.children
15
- })
16
- }),
17
- state.expandButton && /*#__PURE__*/ _jsx(state.expandButton, {})
18
- ]
6
+ */
7
+ export const renderPromptStarterList_unstable = (state, contextValue) => {
8
+ assertSlots(state);
9
+ return /*#__PURE__*/_jsx(PromptStarterListProvider, {
10
+ value: contextValue,
11
+ children: /*#__PURE__*/_jsxs(state.root, {
12
+ children: [/*#__PURE__*/_jsx(PresenceGroup, {
13
+ children: /*#__PURE__*/_jsx(state.gridWrapper, {
14
+ children: state.root.children
19
15
  })
20
- });
16
+ }), state.expandButton && /*#__PURE__*/_jsx(state.expandButton, {})]
17
+ })
18
+ });
21
19
  };
20
+ //# sourceMappingURL=renderPromptStarterList.js.map