@fluentui-copilot/react-prompt-starter 0.0.0-nightly-20251002-0405-17b34fb7.1 → 0.0.0-nightly-20251010-0406-7df7c6d1.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/package.json +7 -7
- package/dist/index.d.ts +0 -162
- package/lib/PromptStarter.js +0 -1
- package/lib/PromptStarter.js.map +0 -1
- package/lib/PromptStarterList.js +0 -1
- package/lib/PromptStarterList.js.map +0 -1
- package/lib/PromptStarterV2.js +0 -1
- package/lib/PromptStarterV2.js.map +0 -1
- package/lib/components/PromptStarter/PromptStarter.js +0 -12
- package/lib/components/PromptStarter/PromptStarter.js.map +0 -1
- package/lib/components/PromptStarter/PromptStarter.types.js +0 -3
- package/lib/components/PromptStarter/PromptStarter.types.js.map +0 -1
- package/lib/components/PromptStarter/index.js +0 -4
- package/lib/components/PromptStarter/index.js.map +0 -1
- package/lib/components/PromptStarter/renderPromptStarter.js +0 -18
- package/lib/components/PromptStarter/renderPromptStarter.js.map +0 -1
- package/lib/components/PromptStarter/usePromptStarter.js +0 -53
- package/lib/components/PromptStarter/usePromptStarter.js.map +0 -1
- package/lib/components/PromptStarter/usePromptStarterStyles.styles.js +0 -138
- package/lib/components/PromptStarter/usePromptStarterStyles.styles.js.map +0 -1
- package/lib/components/PromptStarter/usePromptStarterStyles.styles.raw.js +0 -94
- package/lib/components/PromptStarter/usePromptStarterStyles.styles.raw.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js +0 -12
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +0 -3
- package/lib/components/PromptStarterV2/PromptStarter/PromptStarter.types.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarter/index.js +0 -4
- package/lib/components/PromptStarterV2/PromptStarter/index.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +0 -63
- package/lib/components/PromptStarterV2/PromptStarter/promptStarterMotion.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +0 -17
- package/lib/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js +0 -66
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js +0 -276
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js +0 -131
- package/lib/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +0 -12
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/index.js +0 -4
- package/lib/components/PromptStarterV2/PromptStarterList/index.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +0 -21
- package/lib/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +0 -113
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +0 -6
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js +0 -57
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js.map +0 -1
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js +0 -61
- package/lib/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js.map +0 -1
- package/lib/contexts/PromptStarterListContext.js +0 -7
- package/lib/contexts/PromptStarterListContext.js.map +0 -1
- package/lib/index.js +0 -3
- package/lib/index.js.map +0 -1
- package/lib-commonjs/PromptStarter.js +0 -28
- package/lib-commonjs/PromptStarter.js.map +0 -1
- package/lib-commonjs/PromptStarterList.js +0 -28
- package/lib-commonjs/PromptStarterList.js.map +0 -1
- package/lib-commonjs/PromptStarterV2.js +0 -28
- package/lib-commonjs/PromptStarterV2.js.map +0 -1
- package/lib-commonjs/components/PromptStarter/PromptStarter.js +0 -23
- package/lib-commonjs/components/PromptStarter/PromptStarter.js.map +0 -1
- package/lib-commonjs/components/PromptStarter/PromptStarter.types.js +0 -6
- package/lib-commonjs/components/PromptStarter/PromptStarter.types.js.map +0 -1
- package/lib-commonjs/components/PromptStarter/index.js +0 -31
- package/lib-commonjs/components/PromptStarter/index.js.map +0 -1
- package/lib-commonjs/components/PromptStarter/renderPromptStarter.js +0 -28
- package/lib-commonjs/components/PromptStarter/renderPromptStarter.js.map +0 -1
- package/lib-commonjs/components/PromptStarter/usePromptStarter.js +0 -55
- package/lib-commonjs/components/PromptStarter/usePromptStarter.js.map +0 -1
- package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.js +0 -292
- package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.js.map +0 -1
- package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.raw.js +0 -112
- package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.js +0 -23
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.types.js +0 -6
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/PromptStarter.types.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/index.js +0 -31
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/index.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/promptStarterMotion.js +0 -73
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/promptStarterMotion.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js +0 -27
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/renderPromptStarter.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js +0 -68
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarter.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js +0 -516
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js +0 -149
- package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.js +0 -23
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js +0 -4
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/PromptStarterList.types.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js +0 -31
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/index.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js +0 -29
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/renderPromptStarterList.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js +0 -116
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterList.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js +0 -16
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListContextValues.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js +0 -89
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.js.map +0 -1
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js +0 -77
- package/lib-commonjs/components/PromptStarterV2/PromptStarterList/usePromptStarterListStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/contexts/PromptStarterListContext.js +0 -28
- package/lib-commonjs/contexts/PromptStarterListContext.js.map +0 -1
- package/lib-commonjs/index.js +0 -60
- package/lib-commonjs/index.js.map +0 -1
package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js
DELETED
|
@@ -1,516 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
promptStarterClassNames: function() {
|
|
13
|
-
return promptStarterClassNames;
|
|
14
|
-
},
|
|
15
|
-
usePromptStarterStyles_unstable: function() {
|
|
16
|
-
return usePromptStarterStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
-
const promptStarterClassNames = {
|
|
21
|
-
root: 'fai-PromptStarter',
|
|
22
|
-
primaryAction: 'fai-PromptStarter__primaryAction',
|
|
23
|
-
icon: 'fai-PromptStarter__icon',
|
|
24
|
-
prompt: 'fai-PromptStarter__prompt',
|
|
25
|
-
reasonMarker: 'fai-PromptStarter__reasonMarker',
|
|
26
|
-
actions: 'fai-PromptStarter__actions'
|
|
27
|
-
};
|
|
28
|
-
const useRootResetStyles = (0, _reactcomponents.__resetStyles)("r1x2hm06", null, [
|
|
29
|
-
".r1x2hm06{display:grid;grid-template-columns:1fr auto;grid-template-rows:max-content auto;min-width:214px;}",
|
|
30
|
-
".r1x2hm06:hover .fai-PromptStarter__primaryAction{box-shadow:var(--shadow16);transform:scale(1.03);transition:transform var(--durationNormal) var(--curveDecelerateMin);}",
|
|
31
|
-
".r1x2hm06:active .fai-PromptStarter__primaryAction{box-shadow:var(--shadow8);transform:scale(1.03);transition:transform var(--durationNormal) var(--curveDecelerateMin);}",
|
|
32
|
-
".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;}"
|
|
33
|
-
]);
|
|
34
|
-
const useStyles = (0, _reactcomponents.__styles)({
|
|
35
|
-
primaryAction: {
|
|
36
|
-
nk6f5a: 0,
|
|
37
|
-
Ijaq50: 0,
|
|
38
|
-
h3tjnc: "fcdwmbt",
|
|
39
|
-
Bw0ie65: 0,
|
|
40
|
-
Br312pm: 0,
|
|
41
|
-
Beweih1: "f1eb8yyf",
|
|
42
|
-
mc9l5x: "f22iagw",
|
|
43
|
-
Beiy3e4: "f1vx9l62",
|
|
44
|
-
qhf8xq: "f10pi13n",
|
|
45
|
-
Beyfa6y: 0,
|
|
46
|
-
Bbmb7ep: 0,
|
|
47
|
-
Btl43ni: 0,
|
|
48
|
-
B7oj6ja: 0,
|
|
49
|
-
Dimara: "f14w4nd",
|
|
50
|
-
De3pzq: "fxugw4r",
|
|
51
|
-
sj55zd: "fkfq4zb",
|
|
52
|
-
Bahqtrf: "fk6fouc",
|
|
53
|
-
Bceei9c: "f1k6fduh",
|
|
54
|
-
oeaueh: "f1s6fcnf",
|
|
55
|
-
fsow6f: [
|
|
56
|
-
"f1o700av",
|
|
57
|
-
"fes3tcz"
|
|
58
|
-
],
|
|
59
|
-
Belr9w4: "fylz90v",
|
|
60
|
-
Byoj8tv: 0,
|
|
61
|
-
uwmqm3: 0,
|
|
62
|
-
z189sj: 0,
|
|
63
|
-
z8tnut: 0,
|
|
64
|
-
B0ocmuz: "fq88wcj",
|
|
65
|
-
B4j52fo: "f192inf7",
|
|
66
|
-
Bekrc4i: [
|
|
67
|
-
"f5tn483",
|
|
68
|
-
"f1ojsxk5"
|
|
69
|
-
],
|
|
70
|
-
Bn0qgzm: "f1vxd6vx",
|
|
71
|
-
ibv6hh: [
|
|
72
|
-
"f1ojsxk5",
|
|
73
|
-
"f5tn483"
|
|
74
|
-
],
|
|
75
|
-
icvyot: "fzkkow9",
|
|
76
|
-
vrafjx: [
|
|
77
|
-
"fcdblym",
|
|
78
|
-
"fjik90z"
|
|
79
|
-
],
|
|
80
|
-
oivjwe: "fg706s2",
|
|
81
|
-
wvpqe5: [
|
|
82
|
-
"fjik90z",
|
|
83
|
-
"fcdblym"
|
|
84
|
-
],
|
|
85
|
-
g2u3we: "f68mrw8",
|
|
86
|
-
h3c5rm: [
|
|
87
|
-
"f7pw515",
|
|
88
|
-
"fw35ms5"
|
|
89
|
-
],
|
|
90
|
-
B9xav0g: "frpde29",
|
|
91
|
-
zhjwy3: [
|
|
92
|
-
"fw35ms5",
|
|
93
|
-
"f7pw515"
|
|
94
|
-
],
|
|
95
|
-
Brovlpu: "ftqa4ok",
|
|
96
|
-
B486eqv: "f2hkw1w",
|
|
97
|
-
B8q5s1w: "f8hki3x",
|
|
98
|
-
Bci5o5g: [
|
|
99
|
-
"f1d2448m",
|
|
100
|
-
"ffh67wi"
|
|
101
|
-
],
|
|
102
|
-
n8qw10: "f1bjia2o",
|
|
103
|
-
Bdrgwmp: [
|
|
104
|
-
"ffh67wi",
|
|
105
|
-
"f1d2448m"
|
|
106
|
-
],
|
|
107
|
-
Bqhya38: "f1j6vpng",
|
|
108
|
-
Bwxa6fj: [
|
|
109
|
-
"f1pniga2",
|
|
110
|
-
"f1ffjurs"
|
|
111
|
-
],
|
|
112
|
-
Bdhvstf: "f987i1v",
|
|
113
|
-
B7zbvrb: [
|
|
114
|
-
"f1ffjurs",
|
|
115
|
-
"f1pniga2"
|
|
116
|
-
],
|
|
117
|
-
Bm4h7ae: "f15bsgw9",
|
|
118
|
-
B7ys5i9: "f14e48fq",
|
|
119
|
-
Busjfv9: "f18yb2kv",
|
|
120
|
-
Bhk32uz: "fd6o370",
|
|
121
|
-
f6g5ot: 0,
|
|
122
|
-
Boxcth7: 0,
|
|
123
|
-
Bhdgwq3: 0,
|
|
124
|
-
hgwjuy: 0,
|
|
125
|
-
Bshpdp8: 0,
|
|
126
|
-
Bsom6fd: 0,
|
|
127
|
-
Blkhhs4: 0,
|
|
128
|
-
Bonggc9: 0,
|
|
129
|
-
Ddfuxk: 0,
|
|
130
|
-
i03rao: 0,
|
|
131
|
-
kclons: 0,
|
|
132
|
-
clg4pj: 0,
|
|
133
|
-
Bpqj9nj: 0,
|
|
134
|
-
B6dhp37: 0,
|
|
135
|
-
Bf4ptjt: 0,
|
|
136
|
-
Bqtpl0w: 0,
|
|
137
|
-
i4rwgc: "ffwy5si",
|
|
138
|
-
Dah5zi: 0,
|
|
139
|
-
B1tsrr9: 0,
|
|
140
|
-
qqdqy8: 0,
|
|
141
|
-
Bkh64rk: 0,
|
|
142
|
-
e3fwne: "faugzkp",
|
|
143
|
-
J0r882: "f57olzd",
|
|
144
|
-
Bule8hv: [
|
|
145
|
-
"f4stah7",
|
|
146
|
-
"fs1por5"
|
|
147
|
-
],
|
|
148
|
-
Bjwuhne: "f480a47",
|
|
149
|
-
Ghsupd: [
|
|
150
|
-
"fs1por5",
|
|
151
|
-
"f4stah7"
|
|
152
|
-
]
|
|
153
|
-
},
|
|
154
|
-
primaryActionHovered: {
|
|
155
|
-
E5pizo: "f1hg901r",
|
|
156
|
-
Bz10aip: "f15ncuxf",
|
|
157
|
-
Bn62ygk: 0,
|
|
158
|
-
Cwk7ip: 0,
|
|
159
|
-
B3o57yi: 0,
|
|
160
|
-
Bmy1vo4: 0,
|
|
161
|
-
Bkqvd7p: 0,
|
|
162
|
-
Bi2q7bf: "ffrhwuo"
|
|
163
|
-
},
|
|
164
|
-
icon: {
|
|
165
|
-
mc9l5x: "f22iagw",
|
|
166
|
-
Bt984gj: "f122n59",
|
|
167
|
-
sshi5w: "fntfeoj"
|
|
168
|
-
},
|
|
169
|
-
actions: {
|
|
170
|
-
jrapky: 0,
|
|
171
|
-
Frg6f3: 0,
|
|
172
|
-
t21cq0: 0,
|
|
173
|
-
B6of3ja: 0,
|
|
174
|
-
B74szlk: [
|
|
175
|
-
"foizga4",
|
|
176
|
-
"f5m8a6r"
|
|
177
|
-
],
|
|
178
|
-
qhf8xq: "f10pi13n",
|
|
179
|
-
nk6f5a: 0,
|
|
180
|
-
Ijaq50: 0,
|
|
181
|
-
h3tjnc: "f3hl5xl",
|
|
182
|
-
Bw0ie65: 0,
|
|
183
|
-
Br312pm: 0,
|
|
184
|
-
Beweih1: "f14q5zaz",
|
|
185
|
-
abs64n: "f5p0z4x",
|
|
186
|
-
Bn62ygk: 0,
|
|
187
|
-
Cwk7ip: 0,
|
|
188
|
-
B3o57yi: 0,
|
|
189
|
-
Bmy1vo4: 0,
|
|
190
|
-
Bkqvd7p: 0,
|
|
191
|
-
Bi2q7bf: "f1964ud6"
|
|
192
|
-
},
|
|
193
|
-
prompt: {
|
|
194
|
-
Bahqtrf: "fk6fouc",
|
|
195
|
-
Be2twd7: "fkhj508",
|
|
196
|
-
Bhrd7zp: "fl43uef",
|
|
197
|
-
Bg96gwp: "f1i3iumi",
|
|
198
|
-
mc9l5x: "f1rvi9lw",
|
|
199
|
-
Fd1uvx: "fpfc2by",
|
|
200
|
-
Bh9c35c: "f1lvsx7g",
|
|
201
|
-
Bmxbyg5: "f1sil6mw"
|
|
202
|
-
},
|
|
203
|
-
reasonMarker: {
|
|
204
|
-
Bahqtrf: "fk6fouc",
|
|
205
|
-
Be2twd7: "f13mqy1h",
|
|
206
|
-
Bhrd7zp: "figsok6",
|
|
207
|
-
Bg96gwp: "fcpl73t"
|
|
208
|
-
}
|
|
209
|
-
}, {
|
|
210
|
-
d: [
|
|
211
|
-
[
|
|
212
|
-
".fcdwmbt{grid-row:1/3;}",
|
|
213
|
-
{
|
|
214
|
-
p: -1
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
[
|
|
218
|
-
".f1eb8yyf{grid-column:1/3;}",
|
|
219
|
-
{
|
|
220
|
-
p: -1
|
|
221
|
-
}
|
|
222
|
-
],
|
|
223
|
-
".f22iagw{display:flex;}",
|
|
224
|
-
".f1vx9l62{flex-direction:column;}",
|
|
225
|
-
".f10pi13n{position:relative;}",
|
|
226
|
-
[
|
|
227
|
-
".f14w4nd{border-radius:28px;}",
|
|
228
|
-
{
|
|
229
|
-
p: -1
|
|
230
|
-
}
|
|
231
|
-
],
|
|
232
|
-
".fxugw4r{background-color:var(--colorNeutralBackground1);}",
|
|
233
|
-
".fkfq4zb{color:var(--colorNeutralForeground2);}",
|
|
234
|
-
".fk6fouc{font-family:var(--fontFamilyBase);}",
|
|
235
|
-
".f1k6fduh{cursor:pointer;}",
|
|
236
|
-
".f1s6fcnf{outline-style:none;}",
|
|
237
|
-
".f1o700av{text-align:left;}",
|
|
238
|
-
".fes3tcz{text-align:right;}",
|
|
239
|
-
".fylz90v{row-gap:var(--spacingHorizontalS);}",
|
|
240
|
-
[
|
|
241
|
-
".fq88wcj{padding:var(--spacingVerticalL) var(--spacingHorizontalL);}",
|
|
242
|
-
{
|
|
243
|
-
p: -1
|
|
244
|
-
}
|
|
245
|
-
],
|
|
246
|
-
".f192inf7{border-top-width:var(--strokeWidthThin);}",
|
|
247
|
-
".f5tn483{border-right-width:var(--strokeWidthThin);}",
|
|
248
|
-
".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",
|
|
249
|
-
".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",
|
|
250
|
-
".fzkkow9{border-top-style:solid;}",
|
|
251
|
-
".fcdblym{border-right-style:solid;}",
|
|
252
|
-
".fjik90z{border-left-style:solid;}",
|
|
253
|
-
".fg706s2{border-bottom-style:solid;}",
|
|
254
|
-
".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",
|
|
255
|
-
".f7pw515{border-right-color:var(--colorNeutralStroke2);}",
|
|
256
|
-
".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",
|
|
257
|
-
".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",
|
|
258
|
-
".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",
|
|
259
|
-
".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",
|
|
260
|
-
".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",
|
|
261
|
-
".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",
|
|
262
|
-
".f15bsgw9[data-fui-focus-visible]::after{content:\"\";}",
|
|
263
|
-
".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",
|
|
264
|
-
".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",
|
|
265
|
-
".fd6o370[data-fui-focus-visible]::after{z-index:1;}",
|
|
266
|
-
[
|
|
267
|
-
".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}",
|
|
268
|
-
{
|
|
269
|
-
p: -2
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
[
|
|
273
|
-
".faugzkp[data-fui-focus-visible]::after{border-radius:28px;}",
|
|
274
|
-
{
|
|
275
|
-
p: -1
|
|
276
|
-
}
|
|
277
|
-
],
|
|
278
|
-
".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",
|
|
279
|
-
".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",
|
|
280
|
-
".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",
|
|
281
|
-
".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",
|
|
282
|
-
".f1hg901r{box-shadow:var(--shadow16);}",
|
|
283
|
-
".f15ncuxf{transform:scale(1.03);}",
|
|
284
|
-
[
|
|
285
|
-
".ffrhwuo{transition:transform var(--durationNormal) var(--curveDecelerateMin);}",
|
|
286
|
-
{
|
|
287
|
-
p: -1
|
|
288
|
-
}
|
|
289
|
-
],
|
|
290
|
-
".f122n59{align-items:center;}",
|
|
291
|
-
".fntfeoj{min-height:var(--spacingVerticalXXL);}",
|
|
292
|
-
[
|
|
293
|
-
".foizga4{margin:var(--spacingVerticalL) var(--spacingHorizontalL) var(--spacingVerticalNone) var(--spacingHorizontalNone);}",
|
|
294
|
-
{
|
|
295
|
-
p: -1
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
[
|
|
299
|
-
".f5m8a6r{margin:var(--spacingVerticalL) var(--spacingHorizontalNone) var(--spacingVerticalNone) var(--spacingHorizontalL);}",
|
|
300
|
-
{
|
|
301
|
-
p: -1
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
[
|
|
305
|
-
".f3hl5xl{grid-row:1/2;}",
|
|
306
|
-
{
|
|
307
|
-
p: -1
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
[
|
|
311
|
-
".f14q5zaz{grid-column:2/3;}",
|
|
312
|
-
{
|
|
313
|
-
p: -1
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
".f5p0z4x{opacity:1;}",
|
|
317
|
-
[
|
|
318
|
-
".f1964ud6{transition:opacity var(--durationFast) var(--curveLinear);}",
|
|
319
|
-
{
|
|
320
|
-
p: -1
|
|
321
|
-
}
|
|
322
|
-
],
|
|
323
|
-
".fkhj508{font-size:var(--fontSizeBase300);}",
|
|
324
|
-
".fl43uef{font-weight:var(--fontWeightSemibold);}",
|
|
325
|
-
".f1i3iumi{line-height:var(--lineHeightBase300);}",
|
|
326
|
-
".f1rvi9lw{display:-webkit-box;}",
|
|
327
|
-
".fpfc2by{-webkit-box-orient:vertical;}",
|
|
328
|
-
".f1lvsx7g{-webkit-line-clamp:2;}",
|
|
329
|
-
".f1sil6mw{overflow-y:hidden;}",
|
|
330
|
-
".f13mqy1h{font-size:var(--fontSizeBase100);}",
|
|
331
|
-
".figsok6{font-weight:var(--fontWeightRegular);}",
|
|
332
|
-
".fcpl73t{line-height:var(--lineHeightBase100);}"
|
|
333
|
-
],
|
|
334
|
-
f: [
|
|
335
|
-
".ftqa4ok:focus{outline-style:none;}"
|
|
336
|
-
],
|
|
337
|
-
i: [
|
|
338
|
-
".f2hkw1w:focus-visible{outline-style:none;}"
|
|
339
|
-
],
|
|
340
|
-
m: [
|
|
341
|
-
[
|
|
342
|
-
"@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",
|
|
343
|
-
{
|
|
344
|
-
m: "(forced-colors: active)"
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
[
|
|
348
|
-
"@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",
|
|
349
|
-
{
|
|
350
|
-
m: "(forced-colors: active)"
|
|
351
|
-
}
|
|
352
|
-
],
|
|
353
|
-
[
|
|
354
|
-
"@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",
|
|
355
|
-
{
|
|
356
|
-
m: "(forced-colors: active)"
|
|
357
|
-
}
|
|
358
|
-
]
|
|
359
|
-
]
|
|
360
|
-
});
|
|
361
|
-
const useSingleColumnStyles = (0, _reactcomponents.__styles)({
|
|
362
|
-
primaryAction: {
|
|
363
|
-
Beyfa6y: 0,
|
|
364
|
-
Bbmb7ep: 0,
|
|
365
|
-
Btl43ni: 0,
|
|
366
|
-
B7oj6ja: 0,
|
|
367
|
-
Dimara: "f1jxijnj",
|
|
368
|
-
Brovlpu: "ftqa4ok",
|
|
369
|
-
B486eqv: "f2hkw1w",
|
|
370
|
-
B8q5s1w: "f8hki3x",
|
|
371
|
-
Bci5o5g: [
|
|
372
|
-
"f1d2448m",
|
|
373
|
-
"ffh67wi"
|
|
374
|
-
],
|
|
375
|
-
n8qw10: "f1bjia2o",
|
|
376
|
-
Bdrgwmp: [
|
|
377
|
-
"ffh67wi",
|
|
378
|
-
"f1d2448m"
|
|
379
|
-
],
|
|
380
|
-
Bqhya38: "f1j6vpng",
|
|
381
|
-
Bwxa6fj: [
|
|
382
|
-
"f1pniga2",
|
|
383
|
-
"f1ffjurs"
|
|
384
|
-
],
|
|
385
|
-
Bdhvstf: "f987i1v",
|
|
386
|
-
B7zbvrb: [
|
|
387
|
-
"f1ffjurs",
|
|
388
|
-
"f1pniga2"
|
|
389
|
-
],
|
|
390
|
-
Bm4h7ae: "f15bsgw9",
|
|
391
|
-
B7ys5i9: "f14e48fq",
|
|
392
|
-
Busjfv9: "f18yb2kv",
|
|
393
|
-
Bhk32uz: "fd6o370",
|
|
394
|
-
f6g5ot: 0,
|
|
395
|
-
Boxcth7: 0,
|
|
396
|
-
Bhdgwq3: 0,
|
|
397
|
-
hgwjuy: 0,
|
|
398
|
-
Bshpdp8: 0,
|
|
399
|
-
Bsom6fd: 0,
|
|
400
|
-
Blkhhs4: 0,
|
|
401
|
-
Bonggc9: 0,
|
|
402
|
-
Ddfuxk: 0,
|
|
403
|
-
i03rao: 0,
|
|
404
|
-
kclons: 0,
|
|
405
|
-
clg4pj: 0,
|
|
406
|
-
Bpqj9nj: 0,
|
|
407
|
-
B6dhp37: 0,
|
|
408
|
-
Bf4ptjt: 0,
|
|
409
|
-
Bqtpl0w: 0,
|
|
410
|
-
i4rwgc: "ffwy5si",
|
|
411
|
-
Dah5zi: 0,
|
|
412
|
-
B1tsrr9: 0,
|
|
413
|
-
qqdqy8: 0,
|
|
414
|
-
Bkh64rk: 0,
|
|
415
|
-
e3fwne: "f178id4l",
|
|
416
|
-
J0r882: "f57olzd",
|
|
417
|
-
Bule8hv: [
|
|
418
|
-
"f4stah7",
|
|
419
|
-
"fs1por5"
|
|
420
|
-
],
|
|
421
|
-
Bjwuhne: "f480a47",
|
|
422
|
-
Ghsupd: [
|
|
423
|
-
"fs1por5",
|
|
424
|
-
"f4stah7"
|
|
425
|
-
]
|
|
426
|
-
},
|
|
427
|
-
prompt: {
|
|
428
|
-
Bahqtrf: "fk6fouc",
|
|
429
|
-
Be2twd7: "fy9rknc",
|
|
430
|
-
Bhrd7zp: "fl43uef",
|
|
431
|
-
Bg96gwp: "fwrc4pm"
|
|
432
|
-
}
|
|
433
|
-
}, {
|
|
434
|
-
d: [
|
|
435
|
-
[
|
|
436
|
-
".f1jxijnj{border-radius:var(--borderRadius2XL);}",
|
|
437
|
-
{
|
|
438
|
-
p: -1
|
|
439
|
-
}
|
|
440
|
-
],
|
|
441
|
-
".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",
|
|
442
|
-
".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",
|
|
443
|
-
".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",
|
|
444
|
-
".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",
|
|
445
|
-
".f15bsgw9[data-fui-focus-visible]::after{content:\"\";}",
|
|
446
|
-
".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",
|
|
447
|
-
".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",
|
|
448
|
-
".fd6o370[data-fui-focus-visible]::after{z-index:1;}",
|
|
449
|
-
[
|
|
450
|
-
".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}",
|
|
451
|
-
{
|
|
452
|
-
p: -2
|
|
453
|
-
}
|
|
454
|
-
],
|
|
455
|
-
[
|
|
456
|
-
".f178id4l[data-fui-focus-visible]::after{border-radius:var(--borderRadius2XL);}",
|
|
457
|
-
{
|
|
458
|
-
p: -1
|
|
459
|
-
}
|
|
460
|
-
],
|
|
461
|
-
".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",
|
|
462
|
-
".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",
|
|
463
|
-
".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",
|
|
464
|
-
".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",
|
|
465
|
-
".fk6fouc{font-family:var(--fontFamilyBase);}",
|
|
466
|
-
".fy9rknc{font-size:var(--fontSizeBase200);}",
|
|
467
|
-
".fl43uef{font-weight:var(--fontWeightSemibold);}",
|
|
468
|
-
".fwrc4pm{line-height:var(--lineHeightBase200);}"
|
|
469
|
-
],
|
|
470
|
-
f: [
|
|
471
|
-
".ftqa4ok:focus{outline-style:none;}"
|
|
472
|
-
],
|
|
473
|
-
i: [
|
|
474
|
-
".f2hkw1w:focus-visible{outline-style:none;}"
|
|
475
|
-
],
|
|
476
|
-
m: [
|
|
477
|
-
[
|
|
478
|
-
"@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",
|
|
479
|
-
{
|
|
480
|
-
m: "(forced-colors: active)"
|
|
481
|
-
}
|
|
482
|
-
],
|
|
483
|
-
[
|
|
484
|
-
"@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",
|
|
485
|
-
{
|
|
486
|
-
m: "(forced-colors: active)"
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
[
|
|
490
|
-
"@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",
|
|
491
|
-
{
|
|
492
|
-
m: "(forced-colors: active)"
|
|
493
|
-
}
|
|
494
|
-
]
|
|
495
|
-
]
|
|
496
|
-
});
|
|
497
|
-
const usePromptStarterStyles_unstable = (state)=>{
|
|
498
|
-
'use no memo';
|
|
499
|
-
const { isSingleColumn } = state;
|
|
500
|
-
const styles = useStyles();
|
|
501
|
-
const rootResetStyles = useRootResetStyles();
|
|
502
|
-
const singleColumnStyles = useSingleColumnStyles();
|
|
503
|
-
state.root.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.root, rootResetStyles, state.root.className);
|
|
504
|
-
state.primaryAction.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.primaryAction, styles.primaryAction, isSingleColumn && singleColumnStyles.primaryAction, state.primaryAction.className);
|
|
505
|
-
if (state.icon) {
|
|
506
|
-
state.icon.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.icon, styles.icon, state.icon.className);
|
|
507
|
-
}
|
|
508
|
-
state.prompt.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.prompt, styles.prompt, isSingleColumn && singleColumnStyles.prompt, state.prompt.className);
|
|
509
|
-
if (state.reasonMarker) {
|
|
510
|
-
state.reasonMarker.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.reasonMarker, styles.reasonMarker, state.reasonMarker.className);
|
|
511
|
-
}
|
|
512
|
-
if (state.actions) {
|
|
513
|
-
state.actions.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.actions, styles.actions, state.actions.className);
|
|
514
|
-
}
|
|
515
|
-
return state;
|
|
516
|
-
}; //# sourceMappingURL=usePromptStarterStyles.styles.js.map
|
package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 primaryAction: 'fai-PromptStarter__primaryAction',\n icon: 'fai-PromptStarter__icon',\n prompt: 'fai-PromptStarter__prompt',\n reasonMarker: 'fai-PromptStarter__reasonMarker',\n actions: 'fai-PromptStarter__actions',\n};\n\nconst useRootResetStyles = makeResetStyles({\n display: 'grid',\n gridTemplateColumns: '1fr auto',\n gridTemplateRows: 'max-content auto',\n minWidth: '214px',\n\n // Apply styles to the primary action on hover / active states\n '&:hover': {\n [`& .${promptStarterClassNames.primaryAction}`]: {\n boxShadow: tokens.shadow16,\n transform: 'scale(1.03)',\n transition: `transform ${tokens.durationNormal} ${tokens.curveDecelerateMin}`,\n },\n },\n '&:active': {\n [`& .${promptStarterClassNames.primaryAction}`]: {\n boxShadow: tokens.shadow8,\n transform: 'scale(1.03)',\n transition: `transform ${tokens.durationNormal} ${tokens.curveDecelerateMin}`,\n },\n },\n\n // Hide actions when not focused or hovered\n ':not(:focus-within):not(:hover)': {\n [`& .${promptStarterClassNames.actions}`]: {\n clip: 'rect(0px, 0px, 0px, 0px)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: '0px',\n width: '1px',\n position: 'absolute',\n opacity: 0,\n },\n },\n});\n\nconst useStyles = makeStyles({\n primaryAction: {\n gridRow: '1 / 3',\n gridColumn: '1 / 3',\n display: 'flex',\n flexDirection: 'column',\n position: 'relative',\n borderRadius: '28px',\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground2,\n fontFamily: tokens.fontFamilyBase,\n cursor: 'pointer',\n outlineStyle: 'none',\n textAlign: 'left',\n rowGap: tokens.spacingHorizontalS,\n padding: `${tokens.spacingVerticalL} ${tokens.spacingHorizontalL}`,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),\n ...createFocusOutlineStyle({ style: { outlineRadius: '28px' } }),\n },\n\n primaryActionHovered: {\n boxShadow: tokens.shadow16,\n transform: 'scale(1.03)',\n transition: `transform ${tokens.durationNormal} ${tokens.curveDecelerateMin}`,\n },\n\n icon: {\n display: 'flex',\n alignItems: 'center',\n minHeight: tokens.spacingVerticalXXL,\n },\n actions: {\n margin: `${tokens.spacingVerticalL} ${tokens.spacingHorizontalL}\n ${tokens.spacingVerticalNone} ${tokens.spacingHorizontalNone}`,\n position: 'relative',\n gridRow: '1 / 2',\n gridColumn: '2 / 3',\n\n opacity: 1,\n transition: `opacity ${tokens.durationFast} ${tokens.curveLinear}`,\n },\n prompt: {\n ...typographyStyles.body1Strong,\n\n // Truncate text after two lines.\n display: '-webkit-box',\n '-webkit-box-orient': 'vertical',\n '-webkit-line-clamp': '2',\n overflowY: 'hidden',\n },\n reasonMarker: {\n ...typographyStyles.caption2,\n },\n});\n\nconst useSingleColumnStyles = makeStyles({\n primaryAction: {\n borderRadius: tokens.borderRadius2XL,\n ...createFocusOutlineStyle({ style: { outlineRadius: tokens.borderRadius2XL } }),\n },\n prompt: {\n ...typographyStyles.caption1Strong,\n },\n});\n\nexport const usePromptStarterStyles_unstable = (state: PromptStarterState): PromptStarterState => {\n 'use no memo';\n\n const { isSingleColumn } = state;\n\n const styles = useStyles();\n const rootResetStyles = useRootResetStyles();\n const singleColumnStyles = useSingleColumnStyles();\n state.root.className = mergeClasses(promptStarterClassNames.root, rootResetStyles, state.root.className);\n state.primaryAction.className = mergeClasses(\n promptStarterClassNames.primaryAction,\n styles.primaryAction,\n isSingleColumn && singleColumnStyles.primaryAction,\n state.primaryAction.className,\n );\n if (state.icon) {\n state.icon.className = mergeClasses(promptStarterClassNames.icon, styles.icon, state.icon.className);\n }\n state.prompt.className = mergeClasses(\n promptStarterClassNames.prompt,\n styles.prompt,\n isSingleColumn && singleColumnStyles.prompt,\n state.prompt.className,\n );\n if (state.reasonMarker) {\n state.reasonMarker.className = mergeClasses(\n promptStarterClassNames.reasonMarker,\n styles.reasonMarker,\n state.reasonMarker.className,\n );\n }\n if (state.actions) {\n state.actions.className = mergeClasses(promptStarterClassNames.actions, styles.actions, state.actions.className);\n }\n\n return state;\n};\n"],"names":["promptStarterClassNames","root","primaryAction","icon","prompt","reasonMarker","actions","useRootResetStyles","makeResetStyles","display","__styles","gridTemplateColumns","gridTemplateRows","minWidth","h3tjnc","Bw0ie65","boxShadow","transform","transition","Beyfa6y","Bbmb7ep","Bahqtrf","Bceei9c","oeaueh","clip","height","margin","overflow","padding","width","position","opacity","ibv6hh","icvyot","vrafjx","useStyles","makeStyles","gridRow","gridColumn","flexDirection","borderRadius","backgroundColor","color","fontFamily","tokens","fontFamilyBase","cursor","outlineStyle","textAlign","rowGap","spacingHorizontalS","shorthands","border","strokeWidthThin","createFocusOutlineStyle","style","Boxcth7","primaryActionHovered","Blkhhs4","alignItems","minHeight","clg4pj","Bkh64rk","typographyStyles","E5pizo","Cwk7ip","B3o57yi","Bmy1vo4","useSingleColumnStyles","Frg6f3","t21cq0","B6of3ja","usePromptStarterStyles_unstable","B74szlk","qhf8xq","isSingleColumn","nk6f5a","styles","Ijaq50","rootResetStyles","singleColumnStyles","state","Beweih1","Bn62ygk","Bkqvd7p","Bi2q7bf","Be2twd7"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAYaA,uBAAAA;eAAAA;;;;;;iCANY;AAMlB,MAAMA,0BAA8D;UACzEC;mBACAC;UACAC;YACAC;kBACAC;aACAC;AACF;AAEA,MAAMC,qBAAqBC,IAAAA,8BAAAA,EAAAA,YAAgB,MAAA;IAAA;IAAA;IAAA;IAAA;CAAA;MACzCC,YAASC,IAAAA,yBAAA,EAAA;mBACTC;QACAC,QAAAA;QACAC,QAAAA;QAEAC,QAAA;QACAC,SAAA;iBACO;iBACHC;gBACAC;iBACAC;gBACF;QACFC,SAAA;QACAC,SAAA;iBACO;iBACHJ;gBACAC;gBACAC;gBACF;QACFG,SAAA;QAEAC,SAAA;QACAC,QAAA;gBACI;YAAG;YAAEvB;SAAAA;iBACLwB;iBACAC;gBACAC;gBACAC;gBACAC;iBACAC;iBACAC;iBACAC;YAAAA;YAAS;SAAA;iBACX;QACFC,QAAA;YAAA;YAAA;SAAA;QACFC,QAAA;QAEAC,QAAMC;YAAAA;YAAYC;SAAW;QAC3BlC,QAAAA;gBACEmC;YAAAA;YAAS;SAAA;gBACTC;gBACA7B;YAAAA;YAAS;SAAA;iBACT8B;gBACAT;YAAAA;YAAU;SAAA;iBACVU;iBACAC;iBACAC;iBACAC;YAAAA;YAAYC;SAAOC;gBACnBC;iBACAC;YAAAA;YAAc;SAAA;iBACdC;iBACAC;YAAAA;YAAeC;SAAAA;iBACftB;iBACGuB;YAAAA;YAAWC;SAAcC;iBACzBC;iBAA0BC;;iBAA+B;gBAAI;QAClEC,SAAA;QAEAC,SAAAA;gBACEzC;iBACAC;iBACAC;QACFwC,SAAA;QAEAvD,SAAM;gBACJM;gBACAkD;gBACAC;QACFC,QAAA;QACAvD,SAAS;iBACPoB;iBACS;iBACTI;gBACAO;gBACAC;iBAEAP;gBACAb;QACF4C,SAAA;QACA1D,QAAQ;gBACH2D;iBAEH;YAAA;YAAA;SAAA;iBACAtD;gBACA;YAAA;YAAA;SAAsB;;0BAEX;QACbuD,QAAA;QACA3D,SAAAA;iBACK0D;QACLE,QAAA;QACFC,SAAA;QAEAC,SAAMC;QACJlE,SAAAA;iBACEsC;;;;iBAC4E;gBAAI;;aAElFpC;gBACK2D;QACLM,QAAA;QACFC,QAAA;QAEAC,SAAaC;QACXC,SAAA;YAAA;YAAA;SAAA;QAEAC,QAAQC;QAERC,QAAMC;QACNC,QAAMC;QACNjE,QAAMkE;QACNC,SAAMhF;QACNgF,SAAM/E;QAMNgF,SAAID;gBACFA;QACFE,SAAA;QACAF,QAAM7E;QAMN8D,SAAIe;iBACFA;QAKFG,SAAA;QACAC,SAAIJ;;YAEJ;QAEA5D,SAAO4D;QACPK,SAAA"}
|
package/lib-commonjs/components/PromptStarterV2/PromptStarter/usePromptStarterStyles.styles.raw.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
promptStarterClassNames: function() {
|
|
13
|
-
return promptStarterClassNames;
|
|
14
|
-
},
|
|
15
|
-
usePromptStarterStyles_unstable: function() {
|
|
16
|
-
return usePromptStarterStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
-
const _tokens = require("@fluentui-copilot/tokens");
|
|
21
|
-
const promptStarterClassNames = {
|
|
22
|
-
root: 'fai-PromptStarter',
|
|
23
|
-
primaryAction: 'fai-PromptStarter__primaryAction',
|
|
24
|
-
icon: 'fai-PromptStarter__icon',
|
|
25
|
-
prompt: 'fai-PromptStarter__prompt',
|
|
26
|
-
reasonMarker: 'fai-PromptStarter__reasonMarker',
|
|
27
|
-
actions: 'fai-PromptStarter__actions'
|
|
28
|
-
};
|
|
29
|
-
const useRootResetStyles = (0, _reactcomponents.makeResetStyles)({
|
|
30
|
-
display: 'grid',
|
|
31
|
-
gridTemplateColumns: '1fr auto',
|
|
32
|
-
gridTemplateRows: 'max-content auto',
|
|
33
|
-
minWidth: '214px',
|
|
34
|
-
// Apply styles to the primary action on hover / active states
|
|
35
|
-
'&:hover': {
|
|
36
|
-
[`& .${promptStarterClassNames.primaryAction}`]: {
|
|
37
|
-
boxShadow: _tokens.tokens.shadow16,
|
|
38
|
-
transform: 'scale(1.03)',
|
|
39
|
-
transition: `transform ${_tokens.tokens.durationNormal} ${_tokens.tokens.curveDecelerateMin}`
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
'&:active': {
|
|
43
|
-
[`& .${promptStarterClassNames.primaryAction}`]: {
|
|
44
|
-
boxShadow: _tokens.tokens.shadow8,
|
|
45
|
-
transform: 'scale(1.03)',
|
|
46
|
-
transition: `transform ${_tokens.tokens.durationNormal} ${_tokens.tokens.curveDecelerateMin}`
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
// Hide actions when not focused or hovered
|
|
50
|
-
':not(:focus-within):not(:hover)': {
|
|
51
|
-
[`& .${promptStarterClassNames.actions}`]: {
|
|
52
|
-
clip: 'rect(0px, 0px, 0px, 0px)',
|
|
53
|
-
height: '1px',
|
|
54
|
-
margin: '-1px',
|
|
55
|
-
overflow: 'hidden',
|
|
56
|
-
padding: '0px',
|
|
57
|
-
width: '1px',
|
|
58
|
-
position: 'absolute',
|
|
59
|
-
opacity: 0
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
const useStyles = (0, _reactcomponents.makeStyles)({
|
|
64
|
-
primaryAction: {
|
|
65
|
-
gridRow: '1 / 3',
|
|
66
|
-
gridColumn: '1 / 3',
|
|
67
|
-
display: 'flex',
|
|
68
|
-
flexDirection: 'column',
|
|
69
|
-
position: 'relative',
|
|
70
|
-
borderRadius: '28px',
|
|
71
|
-
backgroundColor: _tokens.tokens.colorNeutralBackground1,
|
|
72
|
-
color: _tokens.tokens.colorNeutralForeground2,
|
|
73
|
-
fontFamily: _tokens.tokens.fontFamilyBase,
|
|
74
|
-
cursor: 'pointer',
|
|
75
|
-
outlineStyle: 'none',
|
|
76
|
-
textAlign: 'left',
|
|
77
|
-
rowGap: _tokens.tokens.spacingHorizontalS,
|
|
78
|
-
padding: `${_tokens.tokens.spacingVerticalL} ${_tokens.tokens.spacingHorizontalL}`,
|
|
79
|
-
..._reactcomponents.shorthands.border(_tokens.tokens.strokeWidthThin, 'solid', _tokens.tokens.colorNeutralStroke2),
|
|
80
|
-
...(0, _reactcomponents.createFocusOutlineStyle)({
|
|
81
|
-
style: {
|
|
82
|
-
outlineRadius: '28px'
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
},
|
|
86
|
-
primaryActionHovered: {
|
|
87
|
-
boxShadow: _tokens.tokens.shadow16,
|
|
88
|
-
transform: 'scale(1.03)',
|
|
89
|
-
transition: `transform ${_tokens.tokens.durationNormal} ${_tokens.tokens.curveDecelerateMin}`
|
|
90
|
-
},
|
|
91
|
-
icon: {
|
|
92
|
-
display: 'flex',
|
|
93
|
-
alignItems: 'center',
|
|
94
|
-
minHeight: _tokens.tokens.spacingVerticalXXL
|
|
95
|
-
},
|
|
96
|
-
actions: {
|
|
97
|
-
margin: `${_tokens.tokens.spacingVerticalL} ${_tokens.tokens.spacingHorizontalL}
|
|
98
|
-
${_tokens.tokens.spacingVerticalNone} ${_tokens.tokens.spacingHorizontalNone}`,
|
|
99
|
-
position: 'relative',
|
|
100
|
-
gridRow: '1 / 2',
|
|
101
|
-
gridColumn: '2 / 3',
|
|
102
|
-
opacity: 1,
|
|
103
|
-
transition: `opacity ${_tokens.tokens.durationFast} ${_tokens.tokens.curveLinear}`
|
|
104
|
-
},
|
|
105
|
-
prompt: {
|
|
106
|
-
..._reactcomponents.typographyStyles.body1Strong,
|
|
107
|
-
// Truncate text after two lines.
|
|
108
|
-
display: '-webkit-box',
|
|
109
|
-
'-webkit-box-orient': 'vertical',
|
|
110
|
-
'-webkit-line-clamp': '2',
|
|
111
|
-
overflowY: 'hidden'
|
|
112
|
-
},
|
|
113
|
-
reasonMarker: {
|
|
114
|
-
..._reactcomponents.typographyStyles.caption2
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
const useSingleColumnStyles = (0, _reactcomponents.makeStyles)({
|
|
118
|
-
primaryAction: {
|
|
119
|
-
borderRadius: _tokens.tokens.borderRadius2XL,
|
|
120
|
-
...(0, _reactcomponents.createFocusOutlineStyle)({
|
|
121
|
-
style: {
|
|
122
|
-
outlineRadius: _tokens.tokens.borderRadius2XL
|
|
123
|
-
}
|
|
124
|
-
})
|
|
125
|
-
},
|
|
126
|
-
prompt: {
|
|
127
|
-
..._reactcomponents.typographyStyles.caption1Strong
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
const usePromptStarterStyles_unstable = (state)=>{
|
|
131
|
-
'use no memo';
|
|
132
|
-
const { isSingleColumn } = state;
|
|
133
|
-
const styles = useStyles();
|
|
134
|
-
const rootResetStyles = useRootResetStyles();
|
|
135
|
-
const singleColumnStyles = useSingleColumnStyles();
|
|
136
|
-
state.root.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.root, rootResetStyles, state.root.className);
|
|
137
|
-
state.primaryAction.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.primaryAction, styles.primaryAction, isSingleColumn && singleColumnStyles.primaryAction, state.primaryAction.className);
|
|
138
|
-
if (state.icon) {
|
|
139
|
-
state.icon.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.icon, styles.icon, state.icon.className);
|
|
140
|
-
}
|
|
141
|
-
state.prompt.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.prompt, styles.prompt, isSingleColumn && singleColumnStyles.prompt, state.prompt.className);
|
|
142
|
-
if (state.reasonMarker) {
|
|
143
|
-
state.reasonMarker.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.reasonMarker, styles.reasonMarker, state.reasonMarker.className);
|
|
144
|
-
}
|
|
145
|
-
if (state.actions) {
|
|
146
|
-
state.actions.className = (0, _reactcomponents.mergeClasses)(promptStarterClassNames.actions, styles.actions, state.actions.className);
|
|
147
|
-
}
|
|
148
|
-
return state;
|
|
149
|
-
};
|