@fluentui-copilot/react-prompt-starter 0.9.3 → 0.10.0

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 (80) hide show
  1. package/CHANGELOG.json +57 -1
  2. package/CHANGELOG.md +23 -2
  3. package/dist/index.d.ts +109 -0
  4. package/lib/PromptStarterList.js +2 -0
  5. package/lib/PromptStarterList.js.map +1 -0
  6. package/lib/PromptStarterV2.js +2 -0
  7. package/lib/PromptStarterV2.js.map +1 -0
  8. package/lib/components/PromptStarter/usePromptStarter.js +10 -1
  9. package/lib/components/PromptStarter/usePromptStarter.js.map +1 -1
  10. package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js +13 -0
  11. package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js.map +1 -0
  12. package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +4 -0
  13. package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js.map +1 -0
  14. package/lib/components/PromptStarterV2/PromptStarter/index.js +5 -0
  15. package/lib/components/PromptStarterV2/PromptStarter/index.js.map +1 -0
  16. package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +43 -0
  17. package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js.map +1 -0
  18. package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +11 -0
  19. package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +1 -0
  20. package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js +62 -0
  21. package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +1 -0
  22. package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js +204 -0
  23. package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map +1 -0
  24. package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +13 -0
  25. package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js.map +1 -0
  26. package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +2 -0
  27. package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js.map +1 -0
  28. package/lib/components/PromptStarterV2/PromptStarterList/index.js +5 -0
  29. package/lib/components/PromptStarterV2/PromptStarterList/index.js.map +1 -0
  30. package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +20 -0
  31. package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +1 -0
  32. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +114 -0
  33. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js.map +1 -0
  34. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +9 -0
  35. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js.map +1 -0
  36. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js +57 -0
  37. package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js.map +1 -0
  38. package/lib/contexts/PromptStarterListContext.js +8 -0
  39. package/lib/contexts/PromptStarterListContext.js.map +1 -0
  40. package/lib/index.js +2 -0
  41. package/lib/index.js.map +1 -1
  42. package/lib-commonjs/PromptStarterList.js +29 -0
  43. package/lib-commonjs/PromptStarterList.js.map +1 -0
  44. package/lib-commonjs/PromptStarterV2.js +29 -0
  45. package/lib-commonjs/PromptStarterV2.js.map +1 -0
  46. package/lib-commonjs/components/PromptStarter/usePromptStarter.js +9 -0
  47. package/lib-commonjs/components/PromptStarter/usePromptStarter.js.map +1 -1
  48. package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.js +23 -0
  49. package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.js.map +1 -0
  50. package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +7 -0
  51. package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.types.js.map +1 -0
  52. package/lib-commonjs/components/PromptStarterV2/PromptStarter/index.js +32 -0
  53. package/lib-commonjs/components/PromptStarterV2/PromptStarter/index.js.map +1 -0
  54. package/lib-commonjs/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +60 -0
  55. package/lib-commonjs/components/PromptStarterV2/PromptStarter/promptStarterMotion.js.map +1 -0
  56. package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +27 -0
  57. package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +1 -0
  58. package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js +62 -0
  59. package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +1 -0
  60. package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js +381 -0
  61. package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map +1 -0
  62. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +23 -0
  63. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.js.map +1 -0
  64. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +5 -0
  65. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js.map +1 -0
  66. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js +32 -0
  67. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js.map +1 -0
  68. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +29 -0
  69. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +1 -0
  70. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +116 -0
  71. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js.map +1 -0
  72. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +16 -0
  73. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js.map +1 -0
  74. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js +89 -0
  75. package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js.map +1 -0
  76. package/lib-commonjs/contexts/PromptStarterListContext.js +28 -0
  77. package/lib-commonjs/contexts/PromptStarterListContext.js.map +1 -0
  78. package/lib-commonjs/index.js +32 -0
  79. package/lib-commonjs/index.js.map +1 -1
  80. package/package.json +3 -2
package/CHANGELOG.json CHANGED
@@ -2,7 +2,63 @@
2
2
  "name": "@fluentui-copilot/react-prompt-starter",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 03 May 2025 01:25:53 GMT",
5
+ "date": "Thu, 12 Jun 2025 17:49:28 GMT",
6
+ "tag": "@fluentui-copilot/react-prompt-starter_v0.10.0",
7
+ "version": "0.10.0",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "jiangemma@microsoft.com",
12
+ "package": "@fluentui-copilot/react-prompt-starter",
13
+ "commit": "d9945da4ae81c3a928550551238dc5b98d99078d",
14
+ "comment": "feat: Add reflow to PromptStarterV2 single column appearance."
15
+ },
16
+ {
17
+ "author": "jiangemma@microsoft.com",
18
+ "package": "@fluentui-copilot/react-prompt-starter",
19
+ "commit": "3b0d585a760015b5fda7fb09b0fe17d965986c44",
20
+ "comment": "feat: Add motion to PromptStarterV2 within PromptStarterList."
21
+ },
22
+ {
23
+ "author": "jiangemma@microsoft.com",
24
+ "package": "@fluentui-copilot/react-prompt-starter",
25
+ "commit": "f88e520cd18013d1c10bbb826d7f121c39117f1b",
26
+ "comment": "feat: Create `PromptStarterV2` component."
27
+ },
28
+ {
29
+ "author": "jiangemma@microsoft.com",
30
+ "package": "@fluentui-copilot/react-prompt-starter",
31
+ "commit": "1ebd4b30e170c9b6d335bb4f461ac6e99918453f",
32
+ "comment": "feat: Implement PromptStarterList component."
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Mon, 19 May 2025 18:04:28 GMT",
39
+ "tag": "@fluentui-copilot/react-prompt-starter_v0.9.4",
40
+ "version": "0.9.4",
41
+ "comments": {
42
+ "patch": [
43
+ {
44
+ "author": "sarah.higley@microsoft.com",
45
+ "package": "@fluentui-copilot/react-prompt-starter",
46
+ "commit": "12581083b6078b77bbd4828e42d814eda634e1fe",
47
+ "comment": "feat: update PromptStarter to use primary text as a label and secondary text as a description"
48
+ }
49
+ ],
50
+ "none": [
51
+ {
52
+ "author": "hochelmartin@gmail.com",
53
+ "package": "@fluentui-copilot/react-prompt-starter",
54
+ "commit": "442954951d0eca92de20ecb0ff0fa9492431b62d",
55
+ "comment": "fix: exclude story files from production build"
56
+ }
57
+ ]
58
+ }
59
+ },
60
+ {
61
+ "date": "Sat, 03 May 2025 01:27:44 GMT",
6
62
  "tag": "@fluentui-copilot/react-prompt-starter_v0.9.3",
7
63
  "version": "0.9.3",
8
64
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui-copilot/react-prompt-starter
2
2
 
3
- This log was last generated on Sat, 03 May 2025 01:25:53 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 12 Jun 2025 17:49:28 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [0.10.0](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.10.0)
8
+
9
+ Thu, 12 Jun 2025 17:49:28 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.9.4..@fluentui-copilot/react-prompt-starter_v0.10.0)
11
+
12
+ ### Patches
13
+
14
+ - feat: Add reflow to PromptStarterV2 single column appearance. ([PR #3131](https://github.com/microsoft/fluentai/pull/3131) by jiangemma@microsoft.com)
15
+ - feat: Add motion to PromptStarterV2 within PromptStarterList. ([PR #3129](https://github.com/microsoft/fluentai/pull/3129) by jiangemma@microsoft.com)
16
+ - feat: Create `PromptStarterV2` component. ([PR #3103](https://github.com/microsoft/fluentai/pull/3103) by jiangemma@microsoft.com)
17
+ - feat: Implement PromptStarterList component. ([PR #3112](https://github.com/microsoft/fluentai/pull/3112) by jiangemma@microsoft.com)
18
+
19
+ ## [0.9.4](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.9.4)
20
+
21
+ Mon, 19 May 2025 18:04:28 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.9.3..@fluentui-copilot/react-prompt-starter_v0.9.4)
23
+
24
+ ### Patches
25
+
26
+ - feat: update PromptStarter to use primary text as a label and secondary text as a description ([PR #2999](https://github.com/microsoft/fluentai/pull/2999) by sarah.higley@microsoft.com)
27
+
7
28
  ## [0.9.3](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.9.3)
8
29
 
9
- Sat, 03 May 2025 01:25:53 GMT
30
+ Sat, 03 May 2025 01:27:44 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.9.2..@fluentui-copilot/react-prompt-starter_v0.9.3)
11
32
 
12
33
  ### Patches
package/dist/index.d.ts CHANGED
@@ -1,15 +1,63 @@
1
1
  import type { BadgeProps } from '@fluentui/react-components';
2
+ import type { Button } from '@fluentui/react-components';
2
3
  import type { ComponentProps } from '@fluentui/react-components';
3
4
  import type { ComponentState } from '@fluentui/react-components';
4
5
  import type { DesignVersion } from '@fluentui-copilot/react-provider';
5
6
  import type { ForwardRefComponent } from '@fluentui/react-components';
7
+ import * as React_2 from 'react';
6
8
  import type { Slot } from '@fluentui/react-components';
7
9
  import type { SlotClassNames } from '@fluentui/react-components';
10
+ import type { UseArrowNavigationGroupOptions } from '@fluentui/react-components';
8
11
 
9
12
  export declare const PromptStarter: ForwardRefComponent<PromptStarterProps>;
10
13
 
11
14
  export declare const promptStarterClassNames: SlotClassNames<PromptStarterSlots>;
12
15
 
16
+ export declare const PromptStarterList: ForwardRefComponent<PromptStarterListProps>;
17
+
18
+ export declare const promptStarterListClassNames: SlotClassNames<PromptStarterListSlots>;
19
+
20
+ declare type PromptStarterListContextValue = Pick<PromptStarterListState, 'numberOfColumns' | 'isExpanded'>;
21
+
22
+ /**
23
+ * PromptStarterList Props
24
+ */
25
+ export declare type PromptStarterListProps = ComponentProps<PromptStarterListSlots> & DesignVersion & {
26
+ /**
27
+ * Text for the expand button when the list is collapsed.
28
+ *
29
+ * default: "Show more"
30
+ */
31
+ expandButtonLabel?: string;
32
+ /**
33
+ * Text for the expand button when the list is expanded.
34
+ *
35
+ * default: "Show less"
36
+ */
37
+ collapseButtonLabel?: string;
38
+ /**
39
+ * Arrow navigation options. This can be used to customize Tabster's direction,
40
+ * tab behavior, and memoization options.
41
+ *
42
+ * default: { axis: 'horizontal', memorizeCurrent: true }
43
+ */
44
+ arrowNavigationOptions?: UseArrowNavigationGroupOptions;
45
+ };
46
+
47
+ export declare type PromptStarterListSlots = {
48
+ root: NonNullable<Slot<'div'>>;
49
+ gridWrapper: NonNullable<Slot<'div'>>;
50
+ expandButton?: Slot<typeof Button>;
51
+ };
52
+
53
+ /**
54
+ * State used in rendering PromptStarterList
55
+ */
56
+ export declare type PromptStarterListState = ComponentState<PromptStarterListSlots> & Required<Pick<PromptStarterListProps, 'designVersion'>> & {
57
+ numberOfColumns: number;
58
+ isExpanded?: boolean;
59
+ };
60
+
13
61
  /**
14
62
  * PromptStarter Props
15
63
  */
@@ -28,8 +76,40 @@ export declare type PromptStarterSlots = {
28
76
  */
29
77
  export declare type PromptStarterState = ComponentState<PromptStarterSlots> & Pick<Required<PromptStarterProps>, 'designVersion'>;
30
78
 
79
+ export declare const PromptStarterV2: ForwardRefComponent<PromptStarterV2Props>;
80
+
81
+ export declare const promptStarterV2ClassNames: SlotClassNames<PromptStarterV2Slots>;
82
+
83
+ /**
84
+ * PromptStarter Props
85
+ */
86
+ export declare type PromptStarterV2Props = Omit<ComponentProps<PromptStarterV2Slots>, 'disabled'>;
87
+
88
+ export declare type PromptStarterV2Slots = {
89
+ root: NonNullable<Slot<'div'>>;
90
+ primaryAction: NonNullable<Slot<'button'>>;
91
+ icon: NonNullable<Slot<'span'>>;
92
+ prompt: NonNullable<Slot<'span'>>;
93
+ reasonMarker?: Slot<'span'>;
94
+ actions?: Slot<'span'>;
95
+ };
96
+
97
+ /**
98
+ * State used in rendering PromptStarter
99
+ */
100
+ export declare type PromptStarterV2State = ComponentState<PromptStarterV2Slots> & {
101
+ isSingleColumn?: boolean;
102
+ };
103
+
31
104
  export declare const renderPromptStarter_unstable: (state: PromptStarterState) => JSX.Element;
32
105
 
106
+ /**
107
+ * Render the final JSX of PromptStarterList
108
+ */
109
+ export declare const renderPromptStarterList_unstable: (state: PromptStarterListState, contextValue: PromptStarterListContextValue) => JSX.Element;
110
+
111
+ export declare const renderPromptStarterV2_unstable: (state: PromptStarterV2State) => JSX.Element;
112
+
33
113
  /**
34
114
  * Create the state required to render PromptStarter.
35
115
  *
@@ -41,6 +121,35 @@ export declare const renderPromptStarter_unstable: (state: PromptStarterState) =
41
121
  */
42
122
  export declare const usePromptStarter_unstable: (props: PromptStarterProps, ref: React.Ref<HTMLButtonElement>) => PromptStarterState;
43
123
 
124
+ /**
125
+ * Create the state required to render PromptStarterList.
126
+ *
127
+ * The returned state can be modified with hooks such as usePromptStarterListStyles_unstable,
128
+ * before being passed to renderPromptStarterList_unstable.
129
+ *
130
+ * @param props - props from this instance of PromptStarterList
131
+ * @param ref - reference to root HTMLElement of PromptStarterList
132
+ */
133
+ export declare const usePromptStarterList_unstable: (props: PromptStarterListProps, ref: React_2.Ref<HTMLDivElement>) => PromptStarterListState;
134
+
135
+ /**
136
+ * Apply styling to the PromptStarterList slots based on the state
137
+ */
138
+ export declare const usePromptStarterListStyles_unstable: (state: PromptStarterListState) => PromptStarterListState;
139
+
44
140
  export declare const usePromptStarterStyles_unstable: (state: PromptStarterState) => PromptStarterState;
45
141
 
142
+ /**
143
+ * Create the state required to render PromptStarter.
144
+ *
145
+ * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,
146
+ * before being passed to renderPromptStarter_unstable.
147
+ *
148
+ * @param props - props from this instance of PromptStarter
149
+ * @param ref - reference to root HTMLElement of PromptStarter
150
+ */
151
+ export declare const usePromptStarterV2_unstable: (props: PromptStarterV2Props, ref: React.Ref<HTMLDivElement>) => PromptStarterV2State;
152
+
153
+ export declare const usePromptStarterV2Styles_unstable: (state: PromptStarterV2State) => PromptStarterV2State;
154
+
46
155
  export { }
@@ -0,0 +1,2 @@
1
+ export { PromptStarterList, renderPromptStarterList_unstable, usePromptStarterList_unstable, promptStarterListClassNames, usePromptStarterListStyles_unstable } from './components/PromptStarterV2/PromptStarterList/index';
2
+ //# sourceMappingURL=PromptStarterList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PromptStarterList.ts"],"sourcesContent":["export {\n PromptStarterList,\n renderPromptStarterList_unstable,\n usePromptStarterList_unstable,\n promptStarterListClassNames,\n usePromptStarterListStyles_unstable,\n} from './components/PromptStarterV2/PromptStarterList/index';\nexport type {\n PromptStarterListProps,\n PromptStarterListSlots,\n PromptStarterListState,\n PromptStarterListContextValue,\n} from './components/PromptStarterV2/PromptStarterList/index';\n"],"names":["PromptStarterList","renderPromptStarterList_unstable","usePromptStarterList_unstable","promptStarterListClassNames","usePromptStarterListStyles_unstable"],"rangeMappings":"","mappings":"AAAA,SACEA,iBAAiB,EACjBC,gCAAgC,EAChCC,6BAA6B,EAC7BC,2BAA2B,EAC3BC,mCAAmC,QAC9B,uDAAuD"}
@@ -0,0 +1,2 @@
1
+ export { PromptStarter, promptStarterClassNames, renderPromptStarter_unstable, usePromptStarterStyles_unstable, usePromptStarter_unstable } from './components/PromptStarterV2/PromptStarter/index';
2
+ //# sourceMappingURL=PromptStarterV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PromptStarterV2.ts"],"sourcesContent":["export type {\n PromptStarterProps,\n PromptStarterSlots,\n PromptStarterState,\n} from './components/PromptStarterV2/PromptStarter/index';\nexport {\n PromptStarter,\n promptStarterClassNames,\n renderPromptStarter_unstable,\n usePromptStarterStyles_unstable,\n usePromptStarter_unstable,\n} from './components/PromptStarterV2/PromptStarter/index';\n"],"names":["PromptStarter","promptStarterClassNames","renderPromptStarter_unstable","usePromptStarterStyles_unstable","usePromptStarter_unstable"],"rangeMappings":"","mappings":"AAKA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,mDAAmD"}
@@ -1,5 +1,5 @@
1
1
  import { useDesignVersion } from '@fluentui-copilot/react-provider';
2
- import { Badge, getIntrinsicElementProps, slot } from '@fluentui/react-components';
2
+ import { Badge, getIntrinsicElementProps, slot, useId } from '@fluentui/react-components';
3
3
  /**
4
4
  * Create the state required to render PromptStarter.
5
5
  *
@@ -11,6 +11,7 @@ import { Badge, getIntrinsicElementProps, slot } from '@fluentui/react-component
11
11
  */
12
12
  export const usePromptStarter_unstable = (props, ref) => {
13
13
  const designVersion = useDesignVersion(props.designVersion);
14
+ const idPrefix = useId('prompt-starter');
14
15
  return {
15
16
  components: {
16
17
  root: 'button',
@@ -21,6 +22,8 @@ export const usePromptStarter_unstable = (props, ref) => {
21
22
  },
22
23
  root: slot.always(getIntrinsicElementProps('button', {
23
24
  ref,
25
+ 'aria-labelledby': `${idPrefix}-category`,
26
+ 'aria-describedby': `${idPrefix}-prompt`,
24
27
  ...props
25
28
  }), {
26
29
  elementType: 'button'
@@ -29,9 +32,15 @@ export const usePromptStarter_unstable = (props, ref) => {
29
32
  elementType: 'span'
30
33
  }),
31
34
  category: slot.always(props.category, {
35
+ defaultProps: {
36
+ id: `${idPrefix}-category`
37
+ },
32
38
  elementType: 'span'
33
39
  }),
34
40
  prompt: slot.optional(props.prompt, {
41
+ defaultProps: {
42
+ id: `${idPrefix}-prompt`
43
+ },
35
44
  elementType: 'span'
36
45
  }),
37
46
  badge: slot.optional(props.badge, {
@@ -1 +1 @@
1
- {"version":3,"sources":["usePromptStarter.ts"],"sourcesContent":["import { useDesignVersion } from '@fluentui-copilot/react-provider';\nimport { Badge, getIntrinsicElementProps, slot } from '@fluentui/react-components';\nimport type { PromptStarterProps, PromptStarterState } from './PromptStarter.types';\n\n/**\n * Create the state required to render PromptStarter.\n *\n * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,\n * before being passed to renderPromptStarter_unstable.\n *\n * @param props - props from this instance of PromptStarter\n * @param ref - reference to root HTMLElement of PromptStarter\n */\nexport const usePromptStarter_unstable = (\n props: PromptStarterProps,\n ref: React.Ref<HTMLButtonElement>,\n): PromptStarterState => {\n const designVersion = useDesignVersion(props.designVersion);\n return {\n components: {\n root: 'button',\n icon: 'span',\n category: 'span',\n prompt: 'span',\n badge: Badge,\n },\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n ...props,\n }),\n { elementType: 'button' },\n ),\n icon: slot.always(props.icon, { elementType: 'span' }),\n category: slot.always(props.category, { elementType: 'span' }),\n prompt: slot.optional(props.prompt, { elementType: 'span' }),\n badge: slot.optional(props.badge, { defaultProps: { appearance: 'tint' }, elementType: Badge }),\n designVersion,\n };\n};\n"],"names":["useDesignVersion","Badge","getIntrinsicElementProps","slot","usePromptStarter_unstable","props","ref","designVersion","components","root","icon","category","prompt","badge","always","elementType","optional","defaultProps","appearance"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,gBAAgB,QAAQ,mCAAmC;AACpE,SAASC,KAAK,EAAEC,wBAAwB,EAAEC,IAAI,QAAQ,6BAA6B;AAGnF;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC;IAEA,MAAMC,gBAAgBP,iBAAiBK,MAAME,aAAa;IAC1D,OAAO;QACLC,YAAY;YACVC,MAAM;YACNC,MAAM;YACNC,UAAU;YACVC,QAAQ;YACRC,OAAOZ;QACT;QACAQ,MAAMN,KAAKW,MAAM,CACfZ,yBAAyB,UAAU;YACjCI;YACA,GAAGD,KAAK;QACV,IACA;YAAEU,aAAa;QAAS;QAE1BL,MAAMP,KAAKW,MAAM,CAACT,MAAMK,IAAI,EAAE;YAAEK,aAAa;QAAO;QACpDJ,UAAUR,KAAKW,MAAM,CAACT,MAAMM,QAAQ,EAAE;YAAEI,aAAa;QAAO;QAC5DH,QAAQT,KAAKa,QAAQ,CAACX,MAAMO,MAAM,EAAE;YAAEG,aAAa;QAAO;QAC1DF,OAAOV,KAAKa,QAAQ,CAACX,MAAMQ,KAAK,EAAE;YAAEI,cAAc;gBAAEC,YAAY;YAAO;YAAGH,aAAad;QAAM;QAC7FM;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["usePromptStarter.ts"],"sourcesContent":["import { useDesignVersion } from '@fluentui-copilot/react-provider';\nimport { Badge, getIntrinsicElementProps, slot, useId } from '@fluentui/react-components';\nimport type { PromptStarterProps, PromptStarterState } from './PromptStarter.types';\n\n/**\n * Create the state required to render PromptStarter.\n *\n * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,\n * before being passed to renderPromptStarter_unstable.\n *\n * @param props - props from this instance of PromptStarter\n * @param ref - reference to root HTMLElement of PromptStarter\n */\nexport const usePromptStarter_unstable = (\n props: PromptStarterProps,\n ref: React.Ref<HTMLButtonElement>,\n): PromptStarterState => {\n const designVersion = useDesignVersion(props.designVersion);\n const idPrefix = useId('prompt-starter');\n\n return {\n components: {\n root: 'button',\n icon: 'span',\n category: 'span',\n prompt: 'span',\n badge: Badge,\n },\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n 'aria-labelledby': `${idPrefix}-category`,\n 'aria-describedby': `${idPrefix}-prompt`,\n ...props,\n }),\n { elementType: 'button' },\n ),\n icon: slot.always(props.icon, { elementType: 'span' }),\n category: slot.always(props.category, { defaultProps: { id: `${idPrefix}-category` }, elementType: 'span' }),\n prompt: slot.optional(props.prompt, { defaultProps: { id: `${idPrefix}-prompt` }, elementType: 'span' }),\n badge: slot.optional(props.badge, { defaultProps: { appearance: 'tint' }, elementType: Badge }),\n designVersion,\n };\n};\n"],"names":["useDesignVersion","Badge","getIntrinsicElementProps","slot","useId","usePromptStarter_unstable","props","ref","designVersion","idPrefix","components","root","icon","category","prompt","badge","always","elementType","defaultProps","id","optional","appearance"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,gBAAgB,QAAQ,mCAAmC;AACpE,SAASC,KAAK,EAAEC,wBAAwB,EAAEC,IAAI,EAAEC,KAAK,QAAQ,6BAA6B;AAG1F;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC;IAEA,MAAMC,gBAAgBR,iBAAiBM,MAAME,aAAa;IAC1D,MAAMC,WAAWL,MAAM;IAEvB,OAAO;QACLM,YAAY;YACVC,MAAM;YACNC,MAAM;YACNC,UAAU;YACVC,QAAQ;YACRC,OAAOd;QACT;QACAU,MAAMR,KAAKa,MAAM,CACfd,yBAAyB,UAAU;YACjCK;YACA,mBAAmB,CAAC,EAAEE,SAAS,SAAS,CAAC;YACzC,oBAAoB,CAAC,EAAEA,SAAS,OAAO,CAAC;YACxC,GAAGH,KAAK;QACV,IACA;YAAEW,aAAa;QAAS;QAE1BL,MAAMT,KAAKa,MAAM,CAACV,MAAMM,IAAI,EAAE;YAAEK,aAAa;QAAO;QACpDJ,UAAUV,KAAKa,MAAM,CAACV,MAAMO,QAAQ,EAAE;YAAEK,cAAc;gBAAEC,IAAI,CAAC,EAAEV,SAAS,SAAS,CAAC;YAAC;YAAGQ,aAAa;QAAO;QAC1GH,QAAQX,KAAKiB,QAAQ,CAACd,MAAMQ,MAAM,EAAE;YAAEI,cAAc;gBAAEC,IAAI,CAAC,EAAEV,SAAS,OAAO,CAAC;YAAC;YAAGQ,aAAa;QAAO;QACtGF,OAAOZ,KAAKiB,QAAQ,CAACd,MAAMS,KAAK,EAAE;YAAEG,cAAc;gBAAEG,YAAY;YAAO;YAAGJ,aAAahB;QAAM;QAC7FO;IACF;AACF,EAAE"}
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { usePromptStarter_unstable } from './usePromptStarter';
3
+ import { renderPromptStarter_unstable } from './renderPromptStarter';
4
+ import { usePromptStarterStyles_unstable } from './usePromptStarterStyles.styles';
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);
11
+ });
12
+ PromptStarter.displayName = 'PromptStarter';
13
+ //# sourceMappingURL=PromptStarter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PromptStarter.tsx"],"sourcesContent":["import * as React from 'react';\nimport { usePromptStarter_unstable } from './usePromptStarter';\nimport { renderPromptStarter_unstable } from './renderPromptStarter';\nimport { usePromptStarterStyles_unstable } from './usePromptStarterStyles.styles';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\nimport type { PromptStarterProps } from './PromptStarter.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\n\nexport const PromptStarter: ForwardRefComponent<PromptStarterProps> = React.forwardRef((props, ref) => {\n const state = usePromptStarter_unstable(props, ref);\n\n usePromptStarterStyles_unstable(state);\n useCustomStyleHook('usePromptStarterStyles')(state);\n\n return renderPromptStarter_unstable(state);\n});\n\nPromptStarter.displayName = 'PromptStarter';\n"],"names":["React","usePromptStarter_unstable","renderPromptStarter_unstable","usePromptStarterStyles_unstable","useCustomStyleHook","PromptStarter","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,SAASC,+BAA+B,QAAQ,kCAAkC;AAClF,SAASC,kBAAkB,QAAQ,mCAAmC;AAItE,OAAO,MAAMC,8BAAyDL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQR,0BAA0BM,OAAOC;IAE/CL,gCAAgCM;IAChCL,mBAAmB,0BAA0BK;IAE7C,OAAOP,6BAA6BO;AACtC,GAAG;AAEHJ,cAAcK,WAAW,GAAG"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * State used in rendering PromptStarter
3
+ */export {};
4
+ //# sourceMappingURL=PromptStarter.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PromptStarter.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-components';\n\nexport type PromptStarterSlots = {\n root: NonNullable<Slot<'div'>>;\n primaryAction: NonNullable<Slot<'button'>>;\n icon: NonNullable<Slot<'span'>>;\n prompt: NonNullable<Slot<'span'>>;\n reasonMarker?: Slot<'span'>;\n actions?: Slot<'span'>;\n};\n\n/**\n * PromptStarter Props\n */\nexport type PromptStarterProps = Omit<ComponentProps<PromptStarterSlots>, 'disabled'>;\n\n/**\n * State used in rendering PromptStarter\n */\nexport type PromptStarterState = ComponentState<PromptStarterSlots> & {\n isSingleColumn?: boolean;\n};\n"],"names":[],"rangeMappings":";;","mappings":"AAgBA;;CAEC,GACD,WAEE"}
@@ -0,0 +1,5 @@
1
+ export { PromptStarter } from './PromptStarter';
2
+ export { renderPromptStarter_unstable } from './renderPromptStarter';
3
+ export { usePromptStarter_unstable } from './usePromptStarter';
4
+ export { promptStarterClassNames, usePromptStarterStyles_unstable } from './usePromptStarterStyles.styles';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export { PromptStarter } from './PromptStarter';\nexport type { PromptStarterProps, PromptStarterSlots, PromptStarterState } from './PromptStarter.types';\nexport { renderPromptStarter_unstable } from './renderPromptStarter';\nexport { usePromptStarter_unstable } from './usePromptStarter';\nexport { promptStarterClassNames, usePromptStarterStyles_unstable } from './usePromptStarterStyles.styles';\n"],"names":["PromptStarter","renderPromptStarter_unstable","usePromptStarter_unstable","promptStarterClassNames","usePromptStarterStyles_unstable"],"rangeMappings":";;;","mappings":"AAAA,SAASA,aAAa,QAAQ,kBAAkB;AAEhD,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,uBAAuB,EAAEC,+BAA+B,QAAQ,kCAAkC"}
@@ -0,0 +1,43 @@
1
+ import { createPresenceComponent } from '@fluentui/react-components';
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 + 100);
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
+ return {
15
+ enter: [{
16
+ keyframes: [{
17
+ opacity: 0
18
+ }, {
19
+ opacity: 0,
20
+ offset: opacityOffset
21
+ }, {
22
+ opacity: 1
23
+ }],
24
+ easing: opacityEasing,
25
+ duration: opacityDuration + delay
26
+ }, {
27
+ keyframes: [{
28
+ transform: 'scale(0.9)'
29
+ }, {
30
+ transform: 'scale(0.9)',
31
+ offset: scaleOffset
32
+ }, {
33
+ transform: 'scale(1)'
34
+ }],
35
+ easing: scaleEasing,
36
+ duration: scaleDuration + delay
37
+ }],
38
+ exit: {
39
+ keyframes: []
40
+ }
41
+ };
42
+ });
43
+ //# sourceMappingURL=promptStarterMotion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["promptStarterMotion.ts"],"sourcesContent":["import { createPresenceComponent } from '@fluentui/react-components';\n\nexport type PromptStarterMotionParams = { index: number; numberOfColumns: number };\n\nexport const PromptStarterMotion = createPresenceComponent<PromptStarterMotionParams>(({ index, numberOfColumns }) => {\n const isFirstRow = index < numberOfColumns;\n const delay = isFirstRow ? index * 50 : (index - numberOfColumns) * 50;\n\n const opacityDuration = 100;\n const opacityOffset = delay / (delay + 100);\n const opacityEasing = 'linear';\n\n const scaleDuration = 500;\n const scaleOffset = delay / (delay + scaleDuration);\n const scaleEasing = `cubic-bezier(0.22, 1.59, 0.46, 1)`;\n\n return {\n enter: [\n {\n keyframes: [{ opacity: 0 }, { opacity: 0, offset: opacityOffset }, { opacity: 1 }],\n easing: opacityEasing,\n duration: opacityDuration + delay,\n },\n {\n keyframes: [\n { transform: 'scale(0.9)' },\n { transform: 'scale(0.9)', offset: scaleOffset },\n { transform: 'scale(1)' },\n ],\n easing: scaleEasing,\n duration: scaleDuration + delay,\n },\n ],\n exit: {\n keyframes: [],\n },\n };\n});\n"],"names":["createPresenceComponent","PromptStarterMotion","index","numberOfColumns","isFirstRow","delay","opacityDuration","opacityOffset","opacityEasing","scaleDuration","scaleOffset","scaleEasing","enter","keyframes","opacity","offset","easing","duration","transform","exit"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,uBAAuB,QAAQ,6BAA6B;AAIrE,OAAO,MAAMC,sBAAsBD,wBAAmD,CAAC,EAAEE,KAAK,EAAEC,eAAe,EAAE;IAC/G,MAAMC,aAAaF,QAAQC;IAC3B,MAAME,QAAQD,aAAaF,QAAQ,KAAK,AAACA,CAAAA,QAAQC,eAAc,IAAK;IAEpE,MAAMG,kBAAkB;IACxB,MAAMC,gBAAgBF,QAASA,CAAAA,QAAQ,GAAE;IACzC,MAAMG,gBAAgB;IAEtB,MAAMC,gBAAgB;IACtB,MAAMC,cAAcL,QAASA,CAAAA,QAAQI,aAAY;IACjD,MAAME,cAAc,CAAC,iCAAiC,CAAC;IAEvD,OAAO;QACLC,OAAO;YACL;gBACEC,WAAW;oBAAC;wBAAEC,SAAS;oBAAE;oBAAG;wBAAEA,SAAS;wBAAGC,QAAQR;oBAAc;oBAAG;wBAAEO,SAAS;oBAAE;iBAAE;gBAClFE,QAAQR;gBACRS,UAAUX,kBAAkBD;YAC9B;YACA;gBACEQ,WAAW;oBACT;wBAAEK,WAAW;oBAAa;oBAC1B;wBAAEA,WAAW;wBAAcH,QAAQL;oBAAY;oBAC/C;wBAAEQ,WAAW;oBAAW;iBACzB;gBACDF,QAAQL;gBACRM,UAAUR,gBAAgBJ;YAC5B;SACD;QACDc,MAAM;YACJN,WAAW,EAAE;QACf;IACF;AACF,GAAG"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { assertSlots } from '@fluentui/react-components';
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
+ });
10
+ };
11
+ //# sourceMappingURL=renderPromptStarter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderPromptStarter.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { PromptStarterState, PromptStarterSlots } from './PromptStarter.types';\n\nexport const renderPromptStarter_unstable = (state: PromptStarterState) => {\n assertSlots<PromptStarterSlots>(state);\n\n return (\n <state.root>\n <state.primaryAction>\n <state.icon />\n <state.prompt />\n {state.reasonMarker && <state.reasonMarker />}\n </state.primaryAction>\n {state.actions && <state.actions />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderPromptStarter_unstable","state","root","primaryAction","icon","prompt","reasonMarker","actions"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,6BAA6B;AAGzD,OAAO,MAAMC,+BAA+B,CAACC;IAC3CF,YAAgCE;IAEhC,qBACE,MAACA,MAAMC,IAAI;;0BACT,MAACD,MAAME,aAAa;;kCAClB,KAACF,MAAMG,IAAI;kCACX,KAACH,MAAMI,MAAM;oBACZJ,MAAMK,YAAY,kBAAI,KAACL,MAAMK,YAAY;;;YAE3CL,MAAMM,OAAO,kBAAI,KAACN,MAAMM,OAAO;;;AAGtC,EAAE"}
@@ -0,0 +1,62 @@
1
+ import { getIntrinsicElementProps, slot, useFocusableGroup, useId } from '@fluentui/react-components';
2
+ import { usePromptStarterListContext } from '../../../contexts/PromptStarterListContext';
3
+ /**
4
+ * Create the state required to render PromptStarter.
5
+ *
6
+ * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,
7
+ * before being passed to renderPromptStarter_unstable.
8
+ *
9
+ * @param props - props from this instance of PromptStarter
10
+ * @param ref - reference to root HTMLElement of PromptStarter
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;
61
+ };
62
+ //# sourceMappingURL=usePromptStarter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["usePromptStarter.ts"],"sourcesContent":["import { getIntrinsicElementProps, slot, useFocusableGroup, useId } from '@fluentui/react-components';\nimport { usePromptStarterListContext } from '../../../contexts/PromptStarterListContext';\nimport type { PromptStarterProps, PromptStarterState } from './PromptStarter.types';\n\n/**\n * Create the state required to render PromptStarter.\n *\n * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,\n * before being passed to renderPromptStarter_unstable.\n *\n * @param props - props from this instance of PromptStarter\n * @param ref - reference to root HTMLElement of PromptStarter\n */\nexport const usePromptStarter_unstable = (\n props: PromptStarterProps,\n ref: React.Ref<HTMLDivElement>,\n): PromptStarterState => {\n const id = useId('prompt-starter');\n const focusAttrs = useFocusableGroup();\n\n const numberOfColumns = usePromptStarterListContext(ctx => ctx.numberOfColumns);\n\n const state: PromptStarterState = {\n isSingleColumn: numberOfColumns === 1,\n components: {\n root: 'div',\n primaryAction: 'button',\n icon: 'span',\n prompt: 'span',\n reasonMarker: 'span',\n actions: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n 'aria-labelledby': `${id}-prompt`,\n 'aria-describedby': `${id}-icon, ${id}-reasonMarker`,\n ...focusAttrs,\n ...props,\n }),\n { elementType: 'div' },\n ),\n primaryAction: slot.always(props.primaryAction, {\n elementType: 'button',\n }),\n icon: slot.always(props.icon, {\n defaultProps: { id: `${id}-icon` },\n elementType: 'span',\n }),\n prompt: slot.always(props.prompt, {\n defaultProps: { id: `${id}-prompt` },\n elementType: 'span',\n }),\n reasonMarker: slot.optional(props.reasonMarker, {\n defaultProps: { id: `${id}-reasonMarker` },\n elementType: 'span',\n }),\n actions: slot.optional(props.actions, { elementType: 'span' }),\n };\n\n return state;\n};\n"],"names":["getIntrinsicElementProps","slot","useFocusableGroup","useId","usePromptStarterListContext","usePromptStarter_unstable","props","ref","id","focusAttrs","numberOfColumns","ctx","state","isSingleColumn","components","root","primaryAction","icon","prompt","reasonMarker","actions","always","elementType","defaultProps","optional"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,wBAAwB,EAAEC,IAAI,EAAEC,iBAAiB,EAAEC,KAAK,QAAQ,6BAA6B;AACtG,SAASC,2BAA2B,QAAQ,6CAA6C;AAGzF;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC;IAEA,MAAMC,KAAKL,MAAM;IACjB,MAAMM,aAAaP;IAEnB,MAAMQ,kBAAkBN,4BAA4BO,CAAAA,MAAOA,IAAID,eAAe;IAE9E,MAAME,QAA4B;QAChCC,gBAAgBH,oBAAoB;QACpCI,YAAY;YACVC,MAAM;YACNC,eAAe;YACfC,MAAM;YACNC,QAAQ;YACRC,cAAc;YACdC,SAAS;QACX;QACAL,MAAMd,KAAKoB,MAAM,CACfrB,yBAAyB,OAAO;YAC9BO;YACA,mBAAmB,CAAC,EAAEC,GAAG,OAAO,CAAC;YACjC,oBAAoB,CAAC,EAAEA,GAAG,OAAO,EAAEA,GAAG,aAAa,CAAC;YACpD,GAAGC,UAAU;YACb,GAAGH,KAAK;QACV,IACA;YAAEgB,aAAa;QAAM;QAEvBN,eAAef,KAAKoB,MAAM,CAACf,MAAMU,aAAa,EAAE;YAC9CM,aAAa;QACf;QACAL,MAAMhB,KAAKoB,MAAM,CAACf,MAAMW,IAAI,EAAE;YAC5BM,cAAc;gBAAEf,IAAI,CAAC,EAAEA,GAAG,KAAK,CAAC;YAAC;YACjCc,aAAa;QACf;QACAJ,QAAQjB,KAAKoB,MAAM,CAACf,MAAMY,MAAM,EAAE;YAChCK,cAAc;gBAAEf,IAAI,CAAC,EAAEA,GAAG,OAAO,CAAC;YAAC;YACnCc,aAAa;QACf;QACAH,cAAclB,KAAKuB,QAAQ,CAAClB,MAAMa,YAAY,EAAE;YAC9CI,cAAc;gBAAEf,IAAI,CAAC,EAAEA,GAAG,aAAa,CAAC;YAAC;YACzCc,aAAa;QACf;QACAF,SAASnB,KAAKuB,QAAQ,CAAClB,MAAMc,OAAO,EAAE;YAAEE,aAAa;QAAO;IAC9D;IAEA,OAAOV;AACT,EAAE"}