@fluentui-copilot/react-prompt-starter 0.9.4 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +49 -1
- package/CHANGELOG.md +23 -2
- package/dist/index.d.ts +109 -0
- package/lib/PromptStarterList.js +2 -0
- package/lib/PromptStarterList.js.map +1 -0
- package/lib/PromptStarterV2.js +2 -0
- package/lib/PromptStarterV2.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js +13 -0
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +4 -0
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/index.js +5 -0
- package/lib/components/PromptStarterV2/PromptStarter/index.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +52 -0
- package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +11 -0
- package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js +62 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js +204 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +13 -0
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +2 -0
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/index.js +5 -0
- package/lib/components/PromptStarterV2/PromptStarterList/index.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +20 -0
- package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +113 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +9 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js +57 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js.map +1 -0
- package/lib/contexts/PromptStarterListContext.js +8 -0
- package/lib/contexts/PromptStarterListContext.js.map +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib-commonjs/PromptStarterList.js +29 -0
- package/lib-commonjs/PromptStarterList.js.map +1 -0
- package/lib-commonjs/PromptStarterV2.js +29 -0
- package/lib-commonjs/PromptStarterV2.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.js +23 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +7 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.types.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/index.js +32 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/index.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +73 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/promptStarterMotion.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +27 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js +62 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js +381 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +23 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +5 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js +32 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +29 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +116 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +16 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js +89 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js.map +1 -0
- package/lib-commonjs/contexts/PromptStarterListContext.js +28 -0
- package/lib-commonjs/contexts/PromptStarterListContext.js.map +1 -0
- package/lib-commonjs/index.js +32 -0
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,55 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-prompt-starter",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 24 Jun 2025 22:20:58 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-prompt-starter_v0.10.1",
|
|
7
|
+
"version": "0.10.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "jiangemma@microsoft.com",
|
|
12
|
+
"package": "@fluentui-copilot/react-prompt-starter",
|
|
13
|
+
"commit": "485ea952bff02c151ee8ad54af79cf5cebb3975f",
|
|
14
|
+
"comment": "feat: Add exit fade when collapsing PromptStarterList"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 12 Jun 2025 17:50:58 GMT",
|
|
21
|
+
"tag": "@fluentui-copilot/react-prompt-starter_v0.10.0",
|
|
22
|
+
"version": "0.10.0",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "jiangemma@microsoft.com",
|
|
27
|
+
"package": "@fluentui-copilot/react-prompt-starter",
|
|
28
|
+
"commit": "d9945da4ae81c3a928550551238dc5b98d99078d",
|
|
29
|
+
"comment": "feat: Add reflow to PromptStarterV2 single column appearance."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "jiangemma@microsoft.com",
|
|
33
|
+
"package": "@fluentui-copilot/react-prompt-starter",
|
|
34
|
+
"commit": "3b0d585a760015b5fda7fb09b0fe17d965986c44",
|
|
35
|
+
"comment": "feat: Add motion to PromptStarterV2 within PromptStarterList."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "jiangemma@microsoft.com",
|
|
39
|
+
"package": "@fluentui-copilot/react-prompt-starter",
|
|
40
|
+
"commit": "f88e520cd18013d1c10bbb826d7f121c39117f1b",
|
|
41
|
+
"comment": "feat: Create `PromptStarterV2` component."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "jiangemma@microsoft.com",
|
|
45
|
+
"package": "@fluentui-copilot/react-prompt-starter",
|
|
46
|
+
"commit": "1ebd4b30e170c9b6d335bb4f461ac6e99918453f",
|
|
47
|
+
"comment": "feat: Implement PromptStarterList component."
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"date": "Mon, 19 May 2025 18:04:28 GMT",
|
|
6
54
|
"tag": "@fluentui-copilot/react-prompt-starter_v0.9.4",
|
|
7
55
|
"version": "0.9.4",
|
|
8
56
|
"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
|
|
3
|
+
This log was last generated on Tue, 24 Jun 2025 22:20:58 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [0.10.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.10.1)
|
|
8
|
+
|
|
9
|
+
Tue, 24 Jun 2025 22:20:58 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.10.0..@fluentui-copilot/react-prompt-starter_v0.10.1)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- feat: Add exit fade when collapsing PromptStarterList ([PR #3137](https://github.com/microsoft/fluentai/pull/3137) by jiangemma@microsoft.com)
|
|
15
|
+
|
|
16
|
+
## [0.10.0](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.10.0)
|
|
17
|
+
|
|
18
|
+
Thu, 12 Jun 2025 17:50:58 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.9.4..@fluentui-copilot/react-prompt-starter_v0.10.0)
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- feat: Add reflow to PromptStarterV2 single column appearance. ([PR #3131](https://github.com/microsoft/fluentai/pull/3131) by jiangemma@microsoft.com)
|
|
24
|
+
- feat: Add motion to PromptStarterV2 within PromptStarterList. ([PR #3129](https://github.com/microsoft/fluentai/pull/3129) by jiangemma@microsoft.com)
|
|
25
|
+
- feat: Create `PromptStarterV2` component. ([PR #3103](https://github.com/microsoft/fluentai/pull/3103) by jiangemma@microsoft.com)
|
|
26
|
+
- feat: Implement PromptStarterList component. ([PR #3112](https://github.com/microsoft/fluentai/pull/3112) by jiangemma@microsoft.com)
|
|
27
|
+
|
|
7
28
|
## [0.9.4](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.9.4)
|
|
8
29
|
|
|
9
|
-
Mon, 19 May 2025 18:
|
|
30
|
+
Mon, 19 May 2025 18:04:28 GMT
|
|
10
31
|
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.9.3..@fluentui-copilot/react-prompt-starter_v0.9.4)
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|
|
@@ -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 @@
|
|
|
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,52 @@
|
|
|
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 + 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
|
+
};
|
|
51
|
+
});
|
|
52
|
+
//# 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 + opacityDuration);\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 const opacityExitDuration = 200;\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: [{ opacity: 1 }, { opacity: 1 }, { opacity: 0 }],\n easing: opacityEasing,\n duration: opacityExitDuration,\n },\n };\n});\n"],"names":["createPresenceComponent","PromptStarterMotion","index","numberOfColumns","isFirstRow","delay","opacityDuration","opacityOffset","opacityEasing","scaleDuration","scaleOffset","scaleEasing","opacityExitDuration","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,QAAQC,eAAc;IACrD,MAAME,gBAAgB;IAEtB,MAAMC,gBAAgB;IACtB,MAAMC,cAAcL,QAASA,CAAAA,QAAQI,aAAY;IACjD,MAAME,cAAc,CAAC,iCAAiC,CAAC;IAEvD,MAAMC,sBAAsB;IAE5B,OAAO;QACLC,OAAO;YACL;gBACEC,WAAW;oBAAC;wBAAEC,SAAS;oBAAE;oBAAG;wBAAEA,SAAS;wBAAGC,QAAQT;oBAAc;oBAAG;wBAAEQ,SAAS;oBAAE;iBAAE;gBAClFE,QAAQT;gBACRU,UAAUZ,kBAAkBD;YAC9B;YACA;gBACES,WAAW;oBACT;wBAAEK,WAAW;oBAAa;oBAC1B;wBAAEA,WAAW;wBAAcH,QAAQN;oBAAY;oBAC/C;wBAAES,WAAW;oBAAW;iBACzB;gBACDF,QAAQN;gBACRO,UAAUT,gBAAgBJ;YAC5B;SACD;QACDe,MAAM;YACJN,WAAW;gBAAC;oBAAEC,SAAS;gBAAE;gBAAG;oBAAEA,SAAS;gBAAE;gBAAG;oBAAEA,SAAS;gBAAE;aAAE;YAC3DE,QAAQT;YACRU,UAAUN;QACZ;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"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { __styles, __resetStyles, mergeClasses, shorthands, typographyStyles, createFocusOutlineStyle } from '@fluentui/react-components';
|
|
2
|
+
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
|
+
export const promptStarterClassNames = {
|
|
4
|
+
root: 'fai-PromptStarter',
|
|
5
|
+
primaryAction: 'fai-PromptStarter__primaryAction',
|
|
6
|
+
icon: 'fai-PromptStarter__icon',
|
|
7
|
+
prompt: 'fai-PromptStarter__prompt',
|
|
8
|
+
reasonMarker: 'fai-PromptStarter__reasonMarker',
|
|
9
|
+
actions: 'fai-PromptStarter__actions'
|
|
10
|
+
};
|
|
11
|
+
const useRootResetStyles = __resetStyles("r1x2hm06", null, [".r1x2hm06{display:grid;grid-template-columns:1fr auto;grid-template-rows:max-content auto;min-width:214px;}", ".r1x2hm06:hover .fai-PromptStarter__primaryAction{box-shadow:var(--shadow16);transform:scale(1.03);transition:transform var(--durationNormal) var(--curveDecelerateMin);}", ".r1x2hm06:active .fai-PromptStarter__primaryAction{box-shadow:var(--shadow8);transform:scale(1.03);transition:transform var(--durationNormal) var(--curveDecelerateMin);}", ".r1x2hm06:not(:focus-within):not(:hover) .fai-PromptStarter__actions{clip:rect(0px, 0px, 0px, 0px);height:1px;margin:-1px;overflow:hidden;padding:0px;width:1px;position:absolute;opacity:0;}"]);
|
|
12
|
+
const useStyles = __styles({
|
|
13
|
+
primaryAction: {
|
|
14
|
+
nk6f5a: 0,
|
|
15
|
+
Ijaq50: 0,
|
|
16
|
+
h3tjnc: "fcdwmbt",
|
|
17
|
+
Bw0ie65: 0,
|
|
18
|
+
Br312pm: 0,
|
|
19
|
+
Beweih1: "f1eb8yyf",
|
|
20
|
+
mc9l5x: "f22iagw",
|
|
21
|
+
Beiy3e4: "f1vx9l62",
|
|
22
|
+
qhf8xq: "f10pi13n",
|
|
23
|
+
Beyfa6y: 0,
|
|
24
|
+
Bbmb7ep: 0,
|
|
25
|
+
Btl43ni: 0,
|
|
26
|
+
B7oj6ja: 0,
|
|
27
|
+
Dimara: "f14w4nd",
|
|
28
|
+
De3pzq: "fxugw4r",
|
|
29
|
+
sj55zd: "fkfq4zb",
|
|
30
|
+
Bahqtrf: "fk6fouc",
|
|
31
|
+
Bceei9c: "f1k6fduh",
|
|
32
|
+
oeaueh: "f1s6fcnf",
|
|
33
|
+
fsow6f: ["f1o700av", "fes3tcz"],
|
|
34
|
+
Belr9w4: "fylz90v",
|
|
35
|
+
Byoj8tv: 0,
|
|
36
|
+
uwmqm3: 0,
|
|
37
|
+
z189sj: 0,
|
|
38
|
+
z8tnut: 0,
|
|
39
|
+
B0ocmuz: "fq88wcj",
|
|
40
|
+
B4j52fo: "f192inf7",
|
|
41
|
+
Bekrc4i: ["f5tn483", "f1ojsxk5"],
|
|
42
|
+
Bn0qgzm: "f1vxd6vx",
|
|
43
|
+
ibv6hh: ["f1ojsxk5", "f5tn483"],
|
|
44
|
+
icvyot: "fzkkow9",
|
|
45
|
+
vrafjx: ["fcdblym", "fjik90z"],
|
|
46
|
+
oivjwe: "fg706s2",
|
|
47
|
+
wvpqe5: ["fjik90z", "fcdblym"],
|
|
48
|
+
g2u3we: "f68mrw8",
|
|
49
|
+
h3c5rm: ["f7pw515", "fw35ms5"],
|
|
50
|
+
B9xav0g: "frpde29",
|
|
51
|
+
zhjwy3: ["fw35ms5", "f7pw515"],
|
|
52
|
+
Brovlpu: "ftqa4ok",
|
|
53
|
+
B486eqv: "f2hkw1w",
|
|
54
|
+
B8q5s1w: "f8hki3x",
|
|
55
|
+
Bci5o5g: ["f1d2448m", "ffh67wi"],
|
|
56
|
+
n8qw10: "f1bjia2o",
|
|
57
|
+
Bdrgwmp: ["ffh67wi", "f1d2448m"],
|
|
58
|
+
Bqhya38: "f1j6vpng",
|
|
59
|
+
Bwxa6fj: ["f1pniga2", "f1ffjurs"],
|
|
60
|
+
Bdhvstf: "f987i1v",
|
|
61
|
+
B7zbvrb: ["f1ffjurs", "f1pniga2"],
|
|
62
|
+
Bm4h7ae: "f15bsgw9",
|
|
63
|
+
B7ys5i9: "f14e48fq",
|
|
64
|
+
Busjfv9: "f18yb2kv",
|
|
65
|
+
Bhk32uz: "fd6o370",
|
|
66
|
+
f6g5ot: 0,
|
|
67
|
+
Boxcth7: 0,
|
|
68
|
+
Bhdgwq3: 0,
|
|
69
|
+
hgwjuy: 0,
|
|
70
|
+
Bshpdp8: 0,
|
|
71
|
+
Bsom6fd: 0,
|
|
72
|
+
Blkhhs4: 0,
|
|
73
|
+
Bonggc9: 0,
|
|
74
|
+
Ddfuxk: 0,
|
|
75
|
+
i03rao: 0,
|
|
76
|
+
kclons: 0,
|
|
77
|
+
clg4pj: 0,
|
|
78
|
+
Bpqj9nj: 0,
|
|
79
|
+
B6dhp37: 0,
|
|
80
|
+
Bf4ptjt: 0,
|
|
81
|
+
Bqtpl0w: 0,
|
|
82
|
+
i4rwgc: "ffwy5si",
|
|
83
|
+
Dah5zi: 0,
|
|
84
|
+
B1tsrr9: 0,
|
|
85
|
+
qqdqy8: 0,
|
|
86
|
+
Bkh64rk: 0,
|
|
87
|
+
e3fwne: "faugzkp",
|
|
88
|
+
J0r882: "f57olzd",
|
|
89
|
+
Bule8hv: ["f4stah7", "fs1por5"],
|
|
90
|
+
Bjwuhne: "f480a47",
|
|
91
|
+
Ghsupd: ["fs1por5", "f4stah7"]
|
|
92
|
+
},
|
|
93
|
+
primaryActionHovered: {
|
|
94
|
+
E5pizo: "f1hg901r",
|
|
95
|
+
Bz10aip: "f15ncuxf",
|
|
96
|
+
Bn62ygk: 0,
|
|
97
|
+
Cwk7ip: 0,
|
|
98
|
+
B3o57yi: 0,
|
|
99
|
+
Bmy1vo4: 0,
|
|
100
|
+
Bkqvd7p: 0,
|
|
101
|
+
Bi2q7bf: "ffrhwuo"
|
|
102
|
+
},
|
|
103
|
+
icon: {
|
|
104
|
+
mc9l5x: "f22iagw",
|
|
105
|
+
Bt984gj: "f122n59",
|
|
106
|
+
sshi5w: "fntfeoj"
|
|
107
|
+
},
|
|
108
|
+
actions: {
|
|
109
|
+
jrapky: 0,
|
|
110
|
+
Frg6f3: 0,
|
|
111
|
+
t21cq0: 0,
|
|
112
|
+
B6of3ja: 0,
|
|
113
|
+
B74szlk: ["foizga4", "f5m8a6r"],
|
|
114
|
+
qhf8xq: "f10pi13n",
|
|
115
|
+
nk6f5a: 0,
|
|
116
|
+
Ijaq50: 0,
|
|
117
|
+
h3tjnc: "f3hl5xl",
|
|
118
|
+
Bw0ie65: 0,
|
|
119
|
+
Br312pm: 0,
|
|
120
|
+
Beweih1: "f14q5zaz",
|
|
121
|
+
abs64n: "f5p0z4x",
|
|
122
|
+
Bn62ygk: 0,
|
|
123
|
+
Cwk7ip: 0,
|
|
124
|
+
B3o57yi: 0,
|
|
125
|
+
Bmy1vo4: 0,
|
|
126
|
+
Bkqvd7p: 0,
|
|
127
|
+
Bi2q7bf: "f1964ud6"
|
|
128
|
+
},
|
|
129
|
+
prompt: {
|
|
130
|
+
Bahqtrf: "fk6fouc",
|
|
131
|
+
Be2twd7: "fkhj508",
|
|
132
|
+
Bhrd7zp: "fl43uef",
|
|
133
|
+
Bg96gwp: "f1i3iumi",
|
|
134
|
+
mc9l5x: "f1rvi9lw",
|
|
135
|
+
Fd1uvx: "fpfc2by",
|
|
136
|
+
Bh9c35c: "f1lvsx7g",
|
|
137
|
+
Bmxbyg5: "f1sil6mw"
|
|
138
|
+
},
|
|
139
|
+
reasonMarker: {
|
|
140
|
+
Bahqtrf: "fk6fouc",
|
|
141
|
+
Be2twd7: "f13mqy1h",
|
|
142
|
+
Bhrd7zp: "figsok6",
|
|
143
|
+
Bg96gwp: "fcpl73t"
|
|
144
|
+
},
|
|
145
|
+
singleColumnStyles: {
|
|
146
|
+
mc9l5x: "fjseox"
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
d: [[".fcdwmbt{grid-row:1/3;}", {
|
|
150
|
+
p: -1
|
|
151
|
+
}], [".f1eb8yyf{grid-column:1/3;}", {
|
|
152
|
+
p: -1
|
|
153
|
+
}], ".f22iagw{display:flex;}", ".f1vx9l62{flex-direction:column;}", ".f10pi13n{position:relative;}", [".f14w4nd{border-radius:28px;}", {
|
|
154
|
+
p: -1
|
|
155
|
+
}], ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1k6fduh{cursor:pointer;}", ".f1s6fcnf{outline-style:none;}", ".f1o700av{text-align:left;}", ".fes3tcz{text-align:right;}", ".fylz90v{row-gap:var(--spacingHorizontalS);}", [".fq88wcj{padding:var(--spacingVerticalL) var(--spacingHorizontalL);}", {
|
|
156
|
+
p: -1
|
|
157
|
+
}], ".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);}", ".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}", ".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}", ".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}", ".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}", ".f15bsgw9[data-fui-focus-visible]::after{content:\"\";}", ".f14e48fq[data-fui-focus-visible]::after{position:absolute;}", ".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}", ".fd6o370[data-fui-focus-visible]::after{z-index:1;}", [".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}", {
|
|
158
|
+
p: -2
|
|
159
|
+
}], [".faugzkp[data-fui-focus-visible]::after{border-radius:28px;}", {
|
|
160
|
+
p: -1
|
|
161
|
+
}], ".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}", ".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}", ".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}", ".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f15ncuxf{transform:scale(1.03);}", [".ffrhwuo{transition:transform var(--durationNormal) var(--curveDecelerateMin);}", {
|
|
162
|
+
p: -1
|
|
163
|
+
}], ".f122n59{align-items:center;}", ".fntfeoj{min-height:var(--spacingVerticalXXL);}", [".foizga4{margin:var(--spacingVerticalL) var(--spacingHorizontalL) var(--spacingVerticalNone) var(--spacingHorizontalNone);}", {
|
|
164
|
+
p: -1
|
|
165
|
+
}], [".f5m8a6r{margin:var(--spacingVerticalL) var(--spacingHorizontalNone) var(--spacingVerticalNone) var(--spacingHorizontalL);}", {
|
|
166
|
+
p: -1
|
|
167
|
+
}], [".f3hl5xl{grid-row:1/2;}", {
|
|
168
|
+
p: -1
|
|
169
|
+
}], [".f14q5zaz{grid-column:2/3;}", {
|
|
170
|
+
p: -1
|
|
171
|
+
}], ".f5p0z4x{opacity:1;}", [".f1964ud6{transition:opacity var(--durationFast) var(--curveLinear);}", {
|
|
172
|
+
p: -1
|
|
173
|
+
}], ".fkhj508{font-size:var(--fontSizeBase300);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1rvi9lw{display:-webkit-box;}", ".fpfc2by{-webkit-box-orient:vertical;}", ".f1lvsx7g{-webkit-line-clamp:2;}", ".f1sil6mw{overflow-y:hidden;}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fjseox{display:none;}"],
|
|
174
|
+
f: [".ftqa4ok:focus{outline-style:none;}"],
|
|
175
|
+
i: [".f2hkw1w:focus-visible{outline-style:none;}"],
|
|
176
|
+
m: [["@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}", {
|
|
177
|
+
m: "(forced-colors: active)"
|
|
178
|
+
}], ["@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}", {
|
|
179
|
+
m: "(forced-colors: active)"
|
|
180
|
+
}], ["@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}", {
|
|
181
|
+
m: "(forced-colors: active)"
|
|
182
|
+
}]]
|
|
183
|
+
});
|
|
184
|
+
export const usePromptStarterStyles_unstable = state => {
|
|
185
|
+
'use no memo';
|
|
186
|
+
|
|
187
|
+
const {
|
|
188
|
+
isSingleColumn
|
|
189
|
+
} = state;
|
|
190
|
+
const styles = useStyles();
|
|
191
|
+
const rootResetStyles = useRootResetStyles();
|
|
192
|
+
state.root.className = mergeClasses(promptStarterClassNames.root, rootResetStyles, state.root.className);
|
|
193
|
+
state.primaryAction.className = mergeClasses(promptStarterClassNames.primaryAction, styles.primaryAction, state.primaryAction.className);
|
|
194
|
+
state.icon.className = mergeClasses(promptStarterClassNames.icon, styles.icon, isSingleColumn && styles.singleColumnStyles, state.icon.className);
|
|
195
|
+
state.prompt.className = mergeClasses(promptStarterClassNames.prompt, styles.prompt, state.prompt.className);
|
|
196
|
+
if (state.reasonMarker) {
|
|
197
|
+
state.reasonMarker.className = mergeClasses(promptStarterClassNames.reasonMarker, styles.reasonMarker, isSingleColumn && styles.singleColumnStyles, state.reasonMarker.className);
|
|
198
|
+
}
|
|
199
|
+
if (state.actions) {
|
|
200
|
+
state.actions.className = mergeClasses(promptStarterClassNames.actions, styles.actions, isSingleColumn && styles.singleColumnStyles, state.actions.className);
|
|
201
|
+
}
|
|
202
|
+
return state;
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=usePromptStarterStyles.styles.js.map
|