@fluentui-copilot/react-prompt-starter 0.0.0-nightly-20251010-0406-7df7c6d1.1 → 0.0.0-nightly-20251013-0406-7c7739c8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +3 -3
- package/CHANGELOG.md +4 -4
- package/dist/index.d.ts +164 -0
- package/lib/PromptStarter.js +1 -0
- package/lib/PromptStarter.js.map +1 -0
- package/lib/PromptStarterList.js +1 -0
- package/lib/PromptStarterList.js.map +1 -0
- package/lib/PromptStarterV2.js +1 -0
- package/lib/PromptStarterV2.js.map +1 -0
- package/lib/components/PromptStarter/PromptStarter.js +12 -0
- package/lib/components/PromptStarter/PromptStarter.js.map +1 -0
- package/lib/components/PromptStarter/PromptStarter.types.js +3 -0
- package/lib/components/PromptStarter/PromptStarter.types.js.map +1 -0
- package/lib/components/PromptStarter/index.js +4 -0
- package/lib/components/PromptStarter/index.js.map +1 -0
- package/lib/components/PromptStarter/renderPromptStarter.js +18 -0
- package/lib/components/PromptStarter/renderPromptStarter.js.map +1 -0
- package/lib/components/PromptStarter/usePromptStarter.js +53 -0
- package/lib/components/PromptStarter/usePromptStarter.js.map +1 -0
- package/lib/components/PromptStarter/usePromptStarterStyles.styles.js +138 -0
- package/lib/components/PromptStarter/usePromptStarterStyles.styles.js.map +1 -0
- package/lib/components/PromptStarter/usePromptStarterStyles.styles.raw.js +94 -0
- package/lib/components/PromptStarter/usePromptStarterStyles.styles.raw.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js +12 -0
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +3 -0
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/index.js +4 -0
- package/lib/components/PromptStarterV2/PromptStarter/index.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +63 -0
- package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +18 -0
- package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js +73 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js +338 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js +160 -0
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +12 -0
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/index.js +4 -0
- package/lib/components/PromptStarterV2/PromptStarterList/index.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +22 -0
- package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +117 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +6 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js +83 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js.map +1 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js +73 -0
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js.map +1 -0
- package/lib/contexts/PromptStarterListContext.js +7 -0
- package/lib/contexts/PromptStarterListContext.js.map +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/PromptStarter.js +28 -0
- package/lib-commonjs/PromptStarter.js.map +1 -0
- package/lib-commonjs/PromptStarterList.js +28 -0
- package/lib-commonjs/PromptStarterList.js.map +1 -0
- package/lib-commonjs/PromptStarterV2.js +28 -0
- package/lib-commonjs/PromptStarterV2.js.map +1 -0
- package/lib-commonjs/components/PromptStarter/PromptStarter.js +23 -0
- package/lib-commonjs/components/PromptStarter/PromptStarter.js.map +1 -0
- package/lib-commonjs/components/PromptStarter/PromptStarter.types.js +6 -0
- package/lib-commonjs/components/PromptStarter/PromptStarter.types.js.map +1 -0
- package/lib-commonjs/components/PromptStarter/index.js +31 -0
- package/lib-commonjs/components/PromptStarter/index.js.map +1 -0
- package/lib-commonjs/components/PromptStarter/renderPromptStarter.js +28 -0
- package/lib-commonjs/components/PromptStarter/renderPromptStarter.js.map +1 -0
- package/lib-commonjs/components/PromptStarter/usePromptStarter.js +55 -0
- package/lib-commonjs/components/PromptStarter/usePromptStarter.js.map +1 -0
- package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.js +292 -0
- package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.js.map +1 -0
- package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.raw.js +112 -0
- package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.raw.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 +6 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.types.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/index.js +31 -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 +28 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js +75 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js +620 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js +178 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.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 +4 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js +31 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +30 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +120 -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 +126 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js.map +1 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js +89 -0
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.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 +60 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-prompt-starter",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Mon, 13 Oct 2025 04:14:18 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20251013-0406-7c7739c8.1",
|
|
7
|
+
"version": "0.0.0-nightly-20251013-0406-7c7739c8.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-prompt-starter
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 13 Oct 2025 04:14:18 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-nightly-
|
|
7
|
+
## [0.0.0-nightly-20251013-0406-7c7739c8.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20251013-0406-7c7739c8.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.10.6..@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-
|
|
9
|
+
Mon, 13 Oct 2025 04:14:18 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.10.6..@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20251013-0406-7c7739c8.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { BadgeProps } from '@fluentui/react-components';
|
|
2
|
+
import type { Button } from '@fluentui/react-components';
|
|
3
|
+
import type { ComponentProps } from '@fluentui/react-components';
|
|
4
|
+
import type { ComponentState } from '@fluentui/react-components';
|
|
5
|
+
import type { DesignVersion } from '@fluentui-copilot/react-provider';
|
|
6
|
+
import type { ForwardRefComponent } from '@fluentui/react-components';
|
|
7
|
+
import type { JSXElement } from '@fluentui/react-components';
|
|
8
|
+
import * as React_2 from 'react';
|
|
9
|
+
import type { Slot } from '@fluentui/react-components';
|
|
10
|
+
import type { SlotClassNames } from '@fluentui/react-components';
|
|
11
|
+
import type { UseArrowNavigationGroupOptions } from '@fluentui/react-components';
|
|
12
|
+
|
|
13
|
+
export declare const PromptStarter: ForwardRefComponent<PromptStarterProps>;
|
|
14
|
+
|
|
15
|
+
export declare const promptStarterClassNames: SlotClassNames<PromptStarterSlots>;
|
|
16
|
+
|
|
17
|
+
export declare const PromptStarterList: ForwardRefComponent<PromptStarterListProps>;
|
|
18
|
+
|
|
19
|
+
export declare const promptStarterListClassNames: SlotClassNames<PromptStarterListSlots>;
|
|
20
|
+
|
|
21
|
+
declare type PromptStarterListContextValue = Pick<PromptStarterListState, 'numberOfColumns' | 'isExpanded'>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* PromptStarterList Props
|
|
25
|
+
*/
|
|
26
|
+
export declare type PromptStarterListProps = ComponentProps<Partial<PromptStarterListSlots>, 'gridWrapper'> & DesignVersion & {
|
|
27
|
+
/**
|
|
28
|
+
* Text for the expand button when the list is collapsed.
|
|
29
|
+
*
|
|
30
|
+
* default: "Show more"
|
|
31
|
+
*/
|
|
32
|
+
expandButtonLabel?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Text for the expand button when the list is expanded.
|
|
35
|
+
*
|
|
36
|
+
* default: "Show less"
|
|
37
|
+
*/
|
|
38
|
+
collapseButtonLabel?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Arrow navigation options. This can be used to customize Tabster's direction,
|
|
41
|
+
* tab behavior, and memoization options.
|
|
42
|
+
*
|
|
43
|
+
* default: { axis: 'horizontal', memorizeCurrent: true }
|
|
44
|
+
*/
|
|
45
|
+
arrowNavigationOptions?: UseArrowNavigationGroupOptions;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to animate the entrance of its items when it first mounts.
|
|
48
|
+
*
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
animateOnMount?: boolean;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export declare type PromptStarterListSlots = {
|
|
55
|
+
root: NonNullable<Slot<'div'>>;
|
|
56
|
+
gridWrapper: NonNullable<Slot<'div'>>;
|
|
57
|
+
actions?: Slot<'span'>;
|
|
58
|
+
expandButton?: Slot<typeof Button>;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* State used in rendering PromptStarterList
|
|
63
|
+
*/
|
|
64
|
+
export declare type PromptStarterListState = ComponentState<PromptStarterListSlots> & Required<Pick<PromptStarterListProps, 'designVersion'>> & {
|
|
65
|
+
numberOfColumns: number;
|
|
66
|
+
isExpanded?: boolean;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* PromptStarter Props
|
|
71
|
+
*/
|
|
72
|
+
export declare type PromptStarterProps = ComponentProps<PromptStarterSlots> & DesignVersion & {};
|
|
73
|
+
|
|
74
|
+
export declare type PromptStarterSlots = {
|
|
75
|
+
root: Slot<'button'>;
|
|
76
|
+
icon: NonNullable<Slot<'span'>>;
|
|
77
|
+
category: NonNullable<Slot<'span'>>;
|
|
78
|
+
prompt?: Slot<'span'>;
|
|
79
|
+
badge?: Slot<BadgeProps>;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* State used in rendering PromptStarter
|
|
84
|
+
*/
|
|
85
|
+
export declare type PromptStarterState = ComponentState<PromptStarterSlots> & Pick<Required<PromptStarterProps>, 'designVersion'>;
|
|
86
|
+
|
|
87
|
+
export declare const PromptStarterV2: ForwardRefComponent<PromptStarterV2Props>;
|
|
88
|
+
|
|
89
|
+
export declare const promptStarterV2ClassNames: SlotClassNames<PromptStarterV2Slots>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* PromptStarter Props
|
|
93
|
+
*/
|
|
94
|
+
export declare type PromptStarterV2Props = Omit<ComponentProps<PromptStarterV2Slots>, 'disabled'>;
|
|
95
|
+
|
|
96
|
+
export declare type PromptStarterV2Slots = {
|
|
97
|
+
root: NonNullable<Slot<'div'>>;
|
|
98
|
+
primaryAction: NonNullable<Slot<'button'>>;
|
|
99
|
+
icon?: Slot<'span'>;
|
|
100
|
+
category?: Slot<'span'>;
|
|
101
|
+
prompt: NonNullable<Slot<'span'>>;
|
|
102
|
+
reasonMarker?: Slot<'span'>;
|
|
103
|
+
actions?: Slot<'span'>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* State used in rendering PromptStarter
|
|
108
|
+
*/
|
|
109
|
+
export declare type PromptStarterV2State = ComponentState<PromptStarterV2Slots> & {
|
|
110
|
+
isSingleColumn?: boolean;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export declare const renderPromptStarter_unstable: (state: PromptStarterState) => JSXElement;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Render the final JSX of PromptStarterList
|
|
117
|
+
*/
|
|
118
|
+
export declare const renderPromptStarterList_unstable: (state: PromptStarterListState, contextValue: PromptStarterListContextValue) => JSXElement;
|
|
119
|
+
|
|
120
|
+
export declare const renderPromptStarterV2_unstable: (state: PromptStarterV2State) => JSXElement;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Create the state required to render PromptStarter.
|
|
124
|
+
*
|
|
125
|
+
* The returned state can be modified with hooks such as usePromptStarterStyles_unstable,
|
|
126
|
+
* before being passed to renderPromptStarter_unstable.
|
|
127
|
+
*
|
|
128
|
+
* @param props - props from this instance of PromptStarter
|
|
129
|
+
* @param ref - reference to root HTMLElement of PromptStarter
|
|
130
|
+
*/
|
|
131
|
+
export declare const usePromptStarter_unstable: (props: PromptStarterProps, ref: React.Ref<HTMLButtonElement>) => PromptStarterState;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Create the state required to render PromptStarterList.
|
|
135
|
+
*
|
|
136
|
+
* The returned state can be modified with hooks such as usePromptStarterListStyles_unstable,
|
|
137
|
+
* before being passed to renderPromptStarterList_unstable.
|
|
138
|
+
*
|
|
139
|
+
* @param props - props from this instance of PromptStarterList
|
|
140
|
+
* @param ref - reference to root HTMLElement of PromptStarterList
|
|
141
|
+
*/
|
|
142
|
+
export declare const usePromptStarterList_unstable: (props: PromptStarterListProps, ref: React_2.Ref<HTMLDivElement>) => PromptStarterListState;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Apply styling to the PromptStarterList slots based on the state
|
|
146
|
+
*/
|
|
147
|
+
export declare const usePromptStarterListStyles_unstable: (state: PromptStarterListState) => PromptStarterListState;
|
|
148
|
+
|
|
149
|
+
export declare const usePromptStarterStyles_unstable: (state: PromptStarterState) => PromptStarterState;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Create the state required to render PromptStarter.
|
|
153
|
+
*
|
|
154
|
+
* The returned state can be modified with hooks such as usePromptStarterStyles_unstable,
|
|
155
|
+
* before being passed to renderPromptStarter_unstable.
|
|
156
|
+
*
|
|
157
|
+
* @param props - props from this instance of PromptStarter
|
|
158
|
+
* @param ref - reference to root HTMLElement of PromptStarter
|
|
159
|
+
*/
|
|
160
|
+
export declare const usePromptStarterV2_unstable: (props: PromptStarterV2Props, ref: React.Ref<HTMLDivElement>) => PromptStarterV2State;
|
|
161
|
+
|
|
162
|
+
export declare const usePromptStarterV2Styles_unstable: (state: PromptStarterV2State) => PromptStarterV2State;
|
|
163
|
+
|
|
164
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PromptStarter, promptStarterClassNames, renderPromptStarter_unstable, usePromptStarterStyles_unstable, usePromptStarter_unstable } from './components/PromptStarter/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PromptStarter.ts"],"sourcesContent":["export type { PromptStarterProps, PromptStarterSlots, PromptStarterState } from './components/PromptStarter/index';\nexport { PromptStarter, promptStarterClassNames, renderPromptStarter_unstable, usePromptStarterStyles_unstable, usePromptStarter_unstable } from './components/PromptStarter/index';\n"],"names":["PromptStarter","promptStarterClassNames","renderPromptStarter_unstable","usePromptStarterStyles_unstable","usePromptStarter_unstable"],"rangeMappings":"","mappings":"AACA,SAASA,aAAa,EAAEC,uBAAuB,EAAEC,4BAA4B,EAAEC,+BAA+B,EAAEC,yBAAyB,QAAQ,mCAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PromptStarterList, renderPromptStarterList_unstable, usePromptStarterList_unstable, promptStarterListClassNames, usePromptStarterListStyles_unstable } from './components/PromptStarterV2/PromptStarterList/index';
|
|
@@ -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
|
+
export { PromptStarter, promptStarterClassNames, renderPromptStarter_unstable, usePromptStarterStyles_unstable, usePromptStarter_unstable } from './components/PromptStarterV2/PromptStarter/index';
|
|
@@ -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,12 @@
|
|
|
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';
|
|
@@ -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 { DesignVersion } from '@fluentui-copilot/react-provider';\nimport type { ComponentProps, ComponentState, Slot, BadgeProps } from '@fluentui/react-components';\n\nexport type PromptStarterSlots = {\n root: Slot<'button'>;\n icon: NonNullable<Slot<'span'>>;\n category: NonNullable<Slot<'span'>>;\n prompt?: Slot<'span'>;\n badge?: Slot<BadgeProps>;\n};\n\n/**\n * PromptStarter Props\n */\nexport type PromptStarterProps = ComponentProps<PromptStarterSlots> & DesignVersion & {};\n\n/**\n * State used in rendering PromptStarter\n */\nexport type PromptStarterState = ComponentState<PromptStarterSlots> &\n Pick<Required<PromptStarterProps>, 'designVersion'>;\n"],"names":[],"rangeMappings":";;","mappings":"AAgBA;;CAEC,GACD,WACsD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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';
|
|
@@ -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,18 @@
|
|
|
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: [
|
|
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
|
+
});
|
|
18
|
+
};
|
|
@@ -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 { JSXElement } from '@fluentui/react-components';\nimport type { PromptStarterState, PromptStarterSlots } from './PromptStarter.types';\n\nexport const renderPromptStarter_unstable = (state: PromptStarterState): JSXElement => {\n assertSlots<PromptStarterSlots>(state);\n\n return (\n <state.root>\n <state.icon />\n <state.category>\n {state.category.children} {state.badge && <state.badge />}\n </state.category>\n {state.prompt && <state.prompt />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderPromptStarter_unstable","state","root","icon","category","children","badge","prompt"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,6BAA6B;AAIzD,OAAO,MAAMC,+BAA+B,CAACC;IAC3CF,YAAgCE;IAEhC,qBACE,MAACA,MAAMC,IAAI;;0BACT,KAACD,MAAME,IAAI;0BACX,MAACF,MAAMG,QAAQ;;oBACZH,MAAMG,QAAQ,CAACC,QAAQ;oBAAC;oBAAEJ,MAAMK,KAAK,kBAAI,KAACL,MAAMK,KAAK;;;YAEvDL,MAAMM,MAAM,kBAAI,KAACN,MAAMM,MAAM;;;AAGpC,EAAE"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useDesignVersion } from '@fluentui-copilot/react-provider';
|
|
2
|
+
import { Badge, getIntrinsicElementProps, slot, useId } from '@fluentui/react-components';
|
|
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
|
+
*/ 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
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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,138 @@
|
|
|
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
|
+
category: 'fai-PromptStarter__category',
|
|
6
|
+
icon: 'fai-PromptStarter__icon',
|
|
7
|
+
prompt: 'fai-PromptStarter__prompt',
|
|
8
|
+
badge: 'fai-PromptStarter__badge'
|
|
9
|
+
};
|
|
10
|
+
const useRootResetStyles = __resetStyles("r1imcuat", "r16caqmn", {
|
|
11
|
+
r: [".r1imcuat{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:\"icon category\" \". prompt\";background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);cursor:pointer;outline-style:none;text-align:left;gap:0px 8px;padding:6px 8px 8px 8px;border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);}", ".r1imcuat:hover{background-color:var(--colorNeutralBackground1Hover);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1Hover);border-right-color:var(--colorNeutralStroke1Hover);border-bottom-color:var(--colorNeutralStroke1Hover);border-left-color:var(--colorNeutralStroke1Hover);}", ".r1imcuat:active{background-color:var(--colorNeutralBackground1Pressed);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1Pressed);border-right-color:var(--colorNeutralStroke1Pressed);border-bottom-color:var(--colorNeutralStroke1Pressed);border-left-color:var(--colorNeutralStroke1Pressed);}", ".r1imcuat:focus{outline-style:none;}", ".r1imcuat:focus-visible{outline-style:none;}", ".r1imcuat[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}", ".r1imcuat[data-fui-focus-visible]::after{content:\"\";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}", ".r16caqmn{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:\"icon category\" \". prompt\";background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);cursor:pointer;outline-style:none;text-align:right;gap:0px 8px;padding:6px 8px 8px 8px;border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);}", ".r16caqmn:hover{background-color:var(--colorNeutralBackground1Hover);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1Hover);border-left-color:var(--colorNeutralStroke1Hover);border-bottom-color:var(--colorNeutralStroke1Hover);border-right-color:var(--colorNeutralStroke1Hover);}", ".r16caqmn:active{background-color:var(--colorNeutralBackground1Pressed);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1Pressed);border-left-color:var(--colorNeutralStroke1Pressed);border-bottom-color:var(--colorNeutralStroke1Pressed);border-right-color:var(--colorNeutralStroke1Pressed);}", ".r16caqmn:focus{outline-style:none;}", ".r16caqmn:focus-visible{outline-style:none;}", ".r16caqmn[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}", ".r16caqmn[data-fui-focus-visible]::after{content:\"\";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}"],
|
|
12
|
+
s: ["@media (forced-colors: active){.r1imcuat[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}", "@media (forced-colors: active){.r16caqmn[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]
|
|
13
|
+
});
|
|
14
|
+
const useStyles = __styles({
|
|
15
|
+
disabled: {
|
|
16
|
+
Bceei9c: "fdrzuqr",
|
|
17
|
+
De3pzq: "f1bg9a2p",
|
|
18
|
+
B4j52fo: "f192inf7",
|
|
19
|
+
Bekrc4i: ["f5tn483", "f1ojsxk5"],
|
|
20
|
+
Bn0qgzm: "f1vxd6vx",
|
|
21
|
+
ibv6hh: ["f1ojsxk5", "f5tn483"],
|
|
22
|
+
icvyot: "fzkkow9",
|
|
23
|
+
vrafjx: ["fcdblym", "fjik90z"],
|
|
24
|
+
oivjwe: "fg706s2",
|
|
25
|
+
wvpqe5: ["fjik90z", "fcdblym"],
|
|
26
|
+
g2u3we: "f1jj8ep1",
|
|
27
|
+
h3c5rm: ["f15xbau", "fy0fskl"],
|
|
28
|
+
B9xav0g: "f4ikngz",
|
|
29
|
+
zhjwy3: ["fy0fskl", "f15xbau"],
|
|
30
|
+
Jwef8y: "f1falr9n",
|
|
31
|
+
ckks6v: "f7ic3uo",
|
|
32
|
+
B2zwrfe: ["f1omjgsz", "f1snvl17"],
|
|
33
|
+
xv9156: "fn6xmsl",
|
|
34
|
+
dt87k2: ["f1snvl17", "f1omjgsz"],
|
|
35
|
+
Bf40cpq: "f1sn8sm0",
|
|
36
|
+
Bop6t4b: ["f1wovo5e", "f716mnf"],
|
|
37
|
+
gvrnp0: "fm0h710",
|
|
38
|
+
Beu9t3s: ["f716mnf", "f1wovo5e"],
|
|
39
|
+
Bgoe8wy: "f12mpcsy",
|
|
40
|
+
Bwzppfd: ["f1gwvigk", "f18rmfxp"],
|
|
41
|
+
oetu4i: "f1jnshp0",
|
|
42
|
+
gg5e9n: ["f18rmfxp", "f1gwvigk"],
|
|
43
|
+
ecr2s2: "f1ryyzvn",
|
|
44
|
+
uqwnxt: "fk7lb2a",
|
|
45
|
+
Bvecx4l: ["f1knhbbd", "f17itt0b"],
|
|
46
|
+
Bs0cc2w: "f15pjvi3",
|
|
47
|
+
e1hlit: ["f17itt0b", "f1knhbbd"],
|
|
48
|
+
e2sjt0: "f6ginmj",
|
|
49
|
+
Bbcopvn: ["f1grcyuh", "fgzu20w"],
|
|
50
|
+
Bj33j0h: "fk1xjsr",
|
|
51
|
+
f7epvg: ["fgzu20w", "f1grcyuh"],
|
|
52
|
+
B6oc9vd: "fdi4vxw",
|
|
53
|
+
ak43y8: ["f4ryxzl", "fkdgpbx"],
|
|
54
|
+
wmxk5l: "fcmhn06",
|
|
55
|
+
B50zh58: ["fkdgpbx", "f4ryxzl"]
|
|
56
|
+
},
|
|
57
|
+
icon: {
|
|
58
|
+
Bw0ie65: 0,
|
|
59
|
+
Br312pm: 0,
|
|
60
|
+
nk6f5a: 0,
|
|
61
|
+
Ijaq50: 0,
|
|
62
|
+
Bq1tomu: "f1atrtdw",
|
|
63
|
+
mc9l5x: "f22iagw",
|
|
64
|
+
qb2dma: "f7nlbp4"
|
|
65
|
+
},
|
|
66
|
+
category: {
|
|
67
|
+
Bahqtrf: "fk6fouc",
|
|
68
|
+
Be2twd7: "fkhj508",
|
|
69
|
+
Bhrd7zp: "fl43uef",
|
|
70
|
+
Bg96gwp: "f1i3iumi",
|
|
71
|
+
Bw0ie65: 0,
|
|
72
|
+
Br312pm: 0,
|
|
73
|
+
nk6f5a: 0,
|
|
74
|
+
Ijaq50: 0,
|
|
75
|
+
Bq1tomu: "fq22uu8"
|
|
76
|
+
},
|
|
77
|
+
prompt: {
|
|
78
|
+
Bahqtrf: "fk6fouc",
|
|
79
|
+
Be2twd7: "fkhj508",
|
|
80
|
+
Bhrd7zp: "figsok6",
|
|
81
|
+
Bg96gwp: "f1i3iumi",
|
|
82
|
+
Bw0ie65: 0,
|
|
83
|
+
Br312pm: 0,
|
|
84
|
+
nk6f5a: 0,
|
|
85
|
+
Ijaq50: 0,
|
|
86
|
+
Bq1tomu: "f1t16na1"
|
|
87
|
+
},
|
|
88
|
+
disabledText: {
|
|
89
|
+
sj55zd: "f1s2aq7o"
|
|
90
|
+
},
|
|
91
|
+
disabledBadge: {
|
|
92
|
+
abs64n: "fege8ms"
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
d: [".fdrzuqr{cursor:not-allowed;}", ".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}", ".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;}", ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}", [".f1atrtdw{grid-area:icon;}", {
|
|
96
|
+
p: -1
|
|
97
|
+
}], ".f22iagw{display:flex;}", ".f7nlbp4{align-self:center;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", [".fq22uu8{grid-area:category;}", {
|
|
98
|
+
p: -1
|
|
99
|
+
}], ".figsok6{font-weight:var(--fontWeightRegular);}", [".f1t16na1{grid-area:prompt;}", {
|
|
100
|
+
p: -1
|
|
101
|
+
}], ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".fege8ms{opacity:40%;}"],
|
|
102
|
+
h: [".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}", ".f7ic3uo:hover{border-top-width:var(--strokeWidthThin);}", ".f1omjgsz:hover{border-right-width:var(--strokeWidthThin);}", ".f1snvl17:hover{border-left-width:var(--strokeWidthThin);}", ".fn6xmsl:hover{border-bottom-width:var(--strokeWidthThin);}", ".f1sn8sm0:hover{border-top-style:solid;}", ".f1wovo5e:hover{border-right-style:solid;}", ".f716mnf:hover{border-left-style:solid;}", ".fm0h710:hover{border-bottom-style:solid;}", ".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],
|
|
103
|
+
a: [".f1ryyzvn:active{background-color:var(--colorNeutralBackgroundDisabled);}", ".fk7lb2a:active{border-top-width:var(--strokeWidthThin);}", ".f1knhbbd:active{border-right-width:var(--strokeWidthThin);}", ".f17itt0b:active{border-left-width:var(--strokeWidthThin);}", ".f15pjvi3:active{border-bottom-width:var(--strokeWidthThin);}", ".f6ginmj:active{border-top-style:solid;}", ".f1grcyuh:active{border-right-style:solid;}", ".fgzu20w:active{border-left-style:solid;}", ".fk1xjsr:active{border-bottom-style:solid;}", ".fdi4vxw:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f4ryxzl:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fkdgpbx:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fcmhn06:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]
|
|
104
|
+
});
|
|
105
|
+
const useNextStyles = __styles({
|
|
106
|
+
root: {
|
|
107
|
+
Beyfa6y: 0,
|
|
108
|
+
Bbmb7ep: 0,
|
|
109
|
+
Btl43ni: 0,
|
|
110
|
+
B7oj6ja: 0,
|
|
111
|
+
Dimara: "f1kijzfu"
|
|
112
|
+
}
|
|
113
|
+
}, {
|
|
114
|
+
d: [[".f1kijzfu{border-radius:var(--borderRadiusXLarge);}", {
|
|
115
|
+
p: -1
|
|
116
|
+
}]]
|
|
117
|
+
});
|
|
118
|
+
export const usePromptStarterStyles_unstable = state => {
|
|
119
|
+
'use no memo';
|
|
120
|
+
|
|
121
|
+
const {
|
|
122
|
+
designVersion
|
|
123
|
+
} = state;
|
|
124
|
+
const styles = useStyles();
|
|
125
|
+
const nextStyles = useNextStyles();
|
|
126
|
+
const rootResetStyles = useRootResetStyles();
|
|
127
|
+
state.root.className = mergeClasses(promptStarterClassNames.root, rootResetStyles, designVersion === 'next' && nextStyles.root, state.root.disabled && styles.disabled, state.root.className);
|
|
128
|
+
state.icon.className = mergeClasses(promptStarterClassNames.icon, styles.icon, state.root.disabled && styles.disabledText, state.icon.className);
|
|
129
|
+
state.category.className = mergeClasses(promptStarterClassNames.category, styles.category, state.category.className, state.root.disabled && styles.disabledText);
|
|
130
|
+
if (state.prompt) {
|
|
131
|
+
state.prompt.className = mergeClasses(promptStarterClassNames.prompt, styles.prompt, state.root.disabled && styles.disabledText, state.prompt.className);
|
|
132
|
+
}
|
|
133
|
+
if (state.badge) {
|
|
134
|
+
state.badge.className = mergeClasses(promptStarterClassNames.badge, state.root.disabled && styles.disabledBadge, state.badge.className);
|
|
135
|
+
}
|
|
136
|
+
return state;
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=usePromptStarterStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePromptStarterStyles.styles.ts"],"sourcesContent":["import {\n makeStyles,\n makeResetStyles,\n mergeClasses,\n shorthands,\n typographyStyles,\n createFocusOutlineStyle,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PromptStarterSlots, PromptStarterState } from './PromptStarter.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const promptStarterClassNames: SlotClassNames<PromptStarterSlots> = {\n root: 'fai-PromptStarter',\n category: 'fai-PromptStarter__category',\n icon: 'fai-PromptStarter__icon',\n prompt: 'fai-PromptStarter__prompt',\n badge: 'fai-PromptStarter__badge',\n};\n\nconst useRootResetStyles = makeResetStyles({\n position: 'relative',\n display: 'grid',\n gridTemplateColumns: 'auto 1fr',\n gridTemplateRows: 'auto auto',\n gridTemplateAreas: `\n \"icon category\"\n \". prompt\"\n `,\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1,\n fontFamily: tokens.fontFamilyBase,\n cursor: 'pointer',\n outlineStyle: 'none',\n textAlign: 'left',\n gap: '0px 8px',\n padding: '6px 8px 8px 8px',\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1),\n borderRadius: tokens.borderRadiusMedium,\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1Hover),\n },\n '&:active': {\n backgroundColor: tokens.colorNeutralBackground1Pressed,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1Pressed),\n },\n ...createFocusOutlineStyle(),\n});\n\nconst useStyles = makeStyles({\n disabled: {\n cursor: 'not-allowed',\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled),\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled),\n },\n '&:active': {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled),\n },\n },\n icon: { gridArea: 'icon', display: 'flex', alignSelf: 'center' },\n\n category: {\n ...typographyStyles.body1Strong,\n gridArea: 'category',\n },\n prompt: { ...typographyStyles.body1, gridArea: 'prompt' },\n disabledText: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n disabledBadge: {\n opacity: '40%',\n },\n});\n\nconst useNextStyles = makeStyles({ root: { borderRadius: tokens.borderRadiusXLarge } });\n\nexport const usePromptStarterStyles_unstable = (state: PromptStarterState): PromptStarterState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const styles = useStyles();\n const nextStyles = useNextStyles();\n const rootResetStyles = useRootResetStyles();\n state.root.className = mergeClasses(\n promptStarterClassNames.root,\n rootResetStyles,\n designVersion === 'next' && nextStyles.root,\n state.root.disabled && styles.disabled,\n state.root.className,\n );\n state.icon.className = mergeClasses(\n promptStarterClassNames.icon,\n styles.icon,\n state.root.disabled && styles.disabledText,\n state.icon.className,\n );\n state.category.className = mergeClasses(\n promptStarterClassNames.category,\n styles.category,\n state.category.className,\n state.root.disabled && styles.disabledText,\n );\n if (state.prompt) {\n state.prompt.className = mergeClasses(\n promptStarterClassNames.prompt,\n styles.prompt,\n state.root.disabled && styles.disabledText,\n state.prompt.className,\n );\n }\n if (state.badge) {\n state.badge.className = mergeClasses(\n promptStarterClassNames.badge,\n state.root.disabled && styles.disabledBadge,\n state.badge.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","makeResetStyles","mergeClasses","shorthands","typographyStyles","createFocusOutlineStyle","tokens","promptStarterClassNames","root","category","icon","prompt","badge","useRootResetStyles","position","display","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","backgroundColor","colorNeutralBackground1","color","colorNeutralForeground1","fontFamily","fontFamilyBase","cursor","outlineStyle","textAlign","gap","padding","border","strokeWidthThin","colorNeutralStroke1","borderRadius","borderRadiusMedium","colorNeutralBackground1Hover","colorNeutralStroke1Hover","colorNeutralBackground1Pressed","colorNeutralStroke1Pressed","useStyles","disabled","colorNeutralBackgroundDisabled","colorNeutralStrokeDisabled","gridArea","alignSelf","body1Strong","body1","disabledText","colorNeutralForegroundDisabled","disabledBadge","opacity","useNextStyles","borderRadiusXLarge","usePromptStarterStyles_unstable","state","designVersion","styles","nextStyles","rootResetStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SACEA,UAAU,EACVC,eAAe,EACfC,YAAY,EACZC,UAAU,EACVC,gBAAgB,EAChBC,uBAAuB,QAClB,6BAA6B;AACpC,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,0BAA8D;IACzEC,MAAM;IACNC,UAAU;IACVC,MAAM;IACNC,QAAQ;IACRC,OAAO;AACT,EAAE;AAEF,MAAMC,qBAAqBZ,gBAAgB;IACzCa,UAAU;IACVC,SAAS;IACTC,qBAAqB;IACrBC,kBAAkB;IAClBC,mBAAmB,CAAC;;;EAGpB,CAAC;IACDC,iBAAiBb,OAAOc,uB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ACgC,QAAQ,IAAIgB,OAAOP,aAAa,EAC3CK,MAAM1C,KAAK,CAAC+C,SAAS;IAEzB;IAEA,OAAOL;AACT,EAAE"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { makeStyles, makeResetStyles, mergeClasses, shorthands, typographyStyles, createFocusOutlineStyle } from '@fluentui/react-components';
|
|
2
|
+
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
|
+
export const promptStarterClassNames = {
|
|
4
|
+
root: 'fai-PromptStarter',
|
|
5
|
+
category: 'fai-PromptStarter__category',
|
|
6
|
+
icon: 'fai-PromptStarter__icon',
|
|
7
|
+
prompt: 'fai-PromptStarter__prompt',
|
|
8
|
+
badge: 'fai-PromptStarter__badge'
|
|
9
|
+
};
|
|
10
|
+
const useRootResetStyles = makeResetStyles({
|
|
11
|
+
position: 'relative',
|
|
12
|
+
display: 'grid',
|
|
13
|
+
gridTemplateColumns: 'auto 1fr',
|
|
14
|
+
gridTemplateRows: 'auto auto',
|
|
15
|
+
gridTemplateAreas: `
|
|
16
|
+
"icon category"
|
|
17
|
+
". prompt"
|
|
18
|
+
`,
|
|
19
|
+
backgroundColor: tokens.colorNeutralBackground1,
|
|
20
|
+
color: tokens.colorNeutralForeground1,
|
|
21
|
+
fontFamily: tokens.fontFamilyBase,
|
|
22
|
+
cursor: 'pointer',
|
|
23
|
+
outlineStyle: 'none',
|
|
24
|
+
textAlign: 'left',
|
|
25
|
+
gap: '0px 8px',
|
|
26
|
+
padding: '6px 8px 8px 8px',
|
|
27
|
+
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1),
|
|
28
|
+
borderRadius: tokens.borderRadiusMedium,
|
|
29
|
+
'&:hover': {
|
|
30
|
+
backgroundColor: tokens.colorNeutralBackground1Hover,
|
|
31
|
+
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1Hover)
|
|
32
|
+
},
|
|
33
|
+
'&:active': {
|
|
34
|
+
backgroundColor: tokens.colorNeutralBackground1Pressed,
|
|
35
|
+
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1Pressed)
|
|
36
|
+
},
|
|
37
|
+
...createFocusOutlineStyle()
|
|
38
|
+
});
|
|
39
|
+
const useStyles = makeStyles({
|
|
40
|
+
disabled: {
|
|
41
|
+
cursor: 'not-allowed',
|
|
42
|
+
backgroundColor: tokens.colorNeutralBackgroundDisabled,
|
|
43
|
+
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled),
|
|
44
|
+
'&:hover': {
|
|
45
|
+
backgroundColor: tokens.colorNeutralBackgroundDisabled,
|
|
46
|
+
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled)
|
|
47
|
+
},
|
|
48
|
+
'&:active': {
|
|
49
|
+
backgroundColor: tokens.colorNeutralBackgroundDisabled,
|
|
50
|
+
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled)
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
icon: {
|
|
54
|
+
gridArea: 'icon',
|
|
55
|
+
display: 'flex',
|
|
56
|
+
alignSelf: 'center'
|
|
57
|
+
},
|
|
58
|
+
category: {
|
|
59
|
+
...typographyStyles.body1Strong,
|
|
60
|
+
gridArea: 'category'
|
|
61
|
+
},
|
|
62
|
+
prompt: {
|
|
63
|
+
...typographyStyles.body1,
|
|
64
|
+
gridArea: 'prompt'
|
|
65
|
+
},
|
|
66
|
+
disabledText: {
|
|
67
|
+
color: tokens.colorNeutralForegroundDisabled
|
|
68
|
+
},
|
|
69
|
+
disabledBadge: {
|
|
70
|
+
opacity: '40%'
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
const useNextStyles = makeStyles({
|
|
74
|
+
root: {
|
|
75
|
+
borderRadius: tokens.borderRadiusXLarge
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export const usePromptStarterStyles_unstable = (state)=>{
|
|
79
|
+
'use no memo';
|
|
80
|
+
const { designVersion } = state;
|
|
81
|
+
const styles = useStyles();
|
|
82
|
+
const nextStyles = useNextStyles();
|
|
83
|
+
const rootResetStyles = useRootResetStyles();
|
|
84
|
+
state.root.className = mergeClasses(promptStarterClassNames.root, rootResetStyles, designVersion === 'next' && nextStyles.root, state.root.disabled && styles.disabled, state.root.className);
|
|
85
|
+
state.icon.className = mergeClasses(promptStarterClassNames.icon, styles.icon, state.root.disabled && styles.disabledText, state.icon.className);
|
|
86
|
+
state.category.className = mergeClasses(promptStarterClassNames.category, styles.category, state.category.className, state.root.disabled && styles.disabledText);
|
|
87
|
+
if (state.prompt) {
|
|
88
|
+
state.prompt.className = mergeClasses(promptStarterClassNames.prompt, styles.prompt, state.root.disabled && styles.disabledText, state.prompt.className);
|
|
89
|
+
}
|
|
90
|
+
if (state.badge) {
|
|
91
|
+
state.badge.className = mergeClasses(promptStarterClassNames.badge, state.root.disabled && styles.disabledBadge, state.badge.className);
|
|
92
|
+
}
|
|
93
|
+
return state;
|
|
94
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePromptStarterStyles.styles.ts"],"sourcesContent":["import {\n makeStyles,\n makeResetStyles,\n mergeClasses,\n shorthands,\n typographyStyles,\n createFocusOutlineStyle,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PromptStarterSlots, PromptStarterState } from './PromptStarter.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const promptStarterClassNames: SlotClassNames<PromptStarterSlots> = {\n root: 'fai-PromptStarter',\n category: 'fai-PromptStarter__category',\n icon: 'fai-PromptStarter__icon',\n prompt: 'fai-PromptStarter__prompt',\n badge: 'fai-PromptStarter__badge',\n};\n\nconst useRootResetStyles = makeResetStyles({\n position: 'relative',\n display: 'grid',\n gridTemplateColumns: 'auto 1fr',\n gridTemplateRows: 'auto auto',\n gridTemplateAreas: `\n \"icon category\"\n \". prompt\"\n `,\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1,\n fontFamily: tokens.fontFamilyBase,\n cursor: 'pointer',\n outlineStyle: 'none',\n textAlign: 'left',\n gap: '0px 8px',\n padding: '6px 8px 8px 8px',\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1),\n borderRadius: tokens.borderRadiusMedium,\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1Hover),\n },\n '&:active': {\n backgroundColor: tokens.colorNeutralBackground1Pressed,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1Pressed),\n },\n ...createFocusOutlineStyle(),\n});\n\nconst useStyles = makeStyles({\n disabled: {\n cursor: 'not-allowed',\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled),\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled),\n },\n '&:active': {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStrokeDisabled),\n },\n },\n icon: { gridArea: 'icon', display: 'flex', alignSelf: 'center' },\n\n category: {\n ...typographyStyles.body1Strong,\n gridArea: 'category',\n },\n prompt: { ...typographyStyles.body1, gridArea: 'prompt' },\n disabledText: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n disabledBadge: {\n opacity: '40%',\n },\n});\n\nconst useNextStyles = makeStyles({ root: { borderRadius: tokens.borderRadiusXLarge } });\n\nexport const usePromptStarterStyles_unstable = (state: PromptStarterState): PromptStarterState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const styles = useStyles();\n const nextStyles = useNextStyles();\n const rootResetStyles = useRootResetStyles();\n state.root.className = mergeClasses(\n promptStarterClassNames.root,\n rootResetStyles,\n designVersion === 'next' && nextStyles.root,\n state.root.disabled && styles.disabled,\n state.root.className,\n );\n state.icon.className = mergeClasses(\n promptStarterClassNames.icon,\n styles.icon,\n state.root.disabled && styles.disabledText,\n state.icon.className,\n );\n state.category.className = mergeClasses(\n promptStarterClassNames.category,\n styles.category,\n state.category.className,\n state.root.disabled && styles.disabledText,\n );\n if (state.prompt) {\n state.prompt.className = mergeClasses(\n promptStarterClassNames.prompt,\n styles.prompt,\n state.root.disabled && styles.disabledText,\n state.prompt.className,\n );\n }\n if (state.badge) {\n state.badge.className = mergeClasses(\n promptStarterClassNames.badge,\n state.root.disabled && styles.disabledBadge,\n state.badge.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","makeResetStyles","mergeClasses","shorthands","typographyStyles","createFocusOutlineStyle","tokens","promptStarterClassNames","root","category","icon","prompt","badge","useRootResetStyles","position","display","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","backgroundColor","colorNeutralBackground1","color","colorNeutralForeground1","fontFamily","fontFamilyBase","cursor","outlineStyle","textAlign","gap","padding","border","strokeWidthThin","colorNeutralStroke1","borderRadius","borderRadiusMedium","colorNeutralBackground1Hover","colorNeutralStroke1Hover","colorNeutralBackground1Pressed","colorNeutralStroke1Pressed","useStyles","disabled","colorNeutralBackgroundDisabled","colorNeutralStrokeDisabled","gridArea","alignSelf","body1Strong","body1","disabledText","colorNeutralForegroundDisabled","disabledBadge","opacity","useNextStyles","borderRadiusXLarge","usePromptStarterStyles_unstable","state","designVersion","styles","nextStyles","rootResetStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SACEA,UAAU,EACVC,eAAe,EACfC,YAAY,EACZC,UAAU,EACVC,gBAAgB,EAChBC,uBAAuB,QAClB,6BAA6B;AACpC,SAASC,MAAM,QAAQ,2BAA2B;A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