@primer/react 0.0.0-20260707163630 → 0.0.0-20260707164051
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.md +2 -2
- package/dist/ToggleSwitch/ToggleSwitch.js +167 -186
- package/dist/experimental/SelectPanel2/SelectPanel-608e207e.css +2 -0
- package/dist/experimental/SelectPanel2/{SelectPanel-b5469dea.css.map → SelectPanel-608e207e.css.map} +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +1 -9
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
- package/package.json +3 -3
- package/dist/experimental/SelectPanel2/SelectPanel-b5469dea.css +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260707164051
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Fake entry to force publishing
|
|
8
8
|
|
|
9
|
-
- [#
|
|
9
|
+
- [#8024](https://github.com/primer/react/pull/8024) [`01f2224`](https://github.com/primer/react/commit/01f22242c010d30ebc2757141d900de88369fcdc) Thanks [@mattcosta7](https://github.com/mattcosta7)! - ToggleSwitch: Fire `onChange` from the user interaction instead of an effect, so it no longer fires on mount or when a controlled `checked` value changes externally.
|
|
10
10
|
|
|
11
11
|
- [#8035](https://github.com/primer/react/pull/8035) [`723f4d6`](https://github.com/primer/react/commit/723f4d6db12710e2b94f56b945a937158fcbb127) Thanks [@mattcosta7](https://github.com/mattcosta7)! - UnderlineNav, ActionBar: Detect item overflow with a single shared IntersectionObserver per component instead of one observer per item, reducing observer churn during resize. No public API changes.
|
|
12
12
|
|
|
@@ -72,7 +72,7 @@ const LineIcon = (t0) => {
|
|
|
72
72
|
};
|
|
73
73
|
const ToggleSwitch = /*#__PURE__*/ React.forwardRef(function ToggleSwitch(props, ref) {
|
|
74
74
|
var _buttonLabelOn, _buttonLabelOff;
|
|
75
|
-
const $ = c(
|
|
75
|
+
const $ = c(90);
|
|
76
76
|
let ariaDescribedby;
|
|
77
77
|
let ariaLabelledby;
|
|
78
78
|
let buttonLabelOff;
|
|
@@ -141,93 +141,74 @@ const ToggleSwitch = /*#__PURE__*/ React.forwardRef(function ToggleSwitch(props,
|
|
|
141
141
|
const loadingLabelId = useId$1("loadingLabel");
|
|
142
142
|
const { safeSetTimeout } = useSafeTimeout();
|
|
143
143
|
let t5;
|
|
144
|
-
if ($[18] !== disabled || $[19] !== isControlled || $[20] !== isOn || $[21] !== loading || $[22] !==
|
|
144
|
+
if ($[18] !== disabled || $[19] !== isControlled || $[20] !== isOn || $[21] !== loading || $[22] !== onChange || $[23] !== onClick || $[24] !== setIsOn) {
|
|
145
145
|
t5 = (e) => {
|
|
146
146
|
if (disabled || loading) return;
|
|
147
|
-
if (
|
|
147
|
+
if (isControlled) {
|
|
148
|
+
var _onChange;
|
|
149
|
+
(_onChange = onChange) === null || _onChange === void 0 || _onChange(!isOn);
|
|
150
|
+
} else setIsOn(!isOn);
|
|
148
151
|
onClick && onClick(e);
|
|
149
152
|
};
|
|
150
153
|
$[18] = disabled;
|
|
151
154
|
$[19] = isControlled;
|
|
152
155
|
$[20] = isOn;
|
|
153
156
|
$[21] = loading;
|
|
154
|
-
$[22] =
|
|
155
|
-
$[23] =
|
|
156
|
-
$[24] =
|
|
157
|
-
|
|
157
|
+
$[22] = onChange;
|
|
158
|
+
$[23] = onClick;
|
|
159
|
+
$[24] = setIsOn;
|
|
160
|
+
$[25] = t5;
|
|
161
|
+
} else t5 = $[25];
|
|
158
162
|
const handleToggleClick = t5;
|
|
159
163
|
let t6;
|
|
160
164
|
let t7;
|
|
161
|
-
if ($[
|
|
165
|
+
if ($[26] !== isLoadingLabelVisible || $[27] !== loading || $[28] !== loadingLabelDelay || $[29] !== safeSetTimeout) {
|
|
162
166
|
t6 = () => {
|
|
163
|
-
if (onChange && isControlled && !disabled) onChange(Boolean(checked));
|
|
164
|
-
};
|
|
165
|
-
t7 = [
|
|
166
|
-
onChange,
|
|
167
|
-
checked,
|
|
168
|
-
isControlled,
|
|
169
|
-
disabled
|
|
170
|
-
];
|
|
171
|
-
$[25] = checked;
|
|
172
|
-
$[26] = disabled;
|
|
173
|
-
$[27] = isControlled;
|
|
174
|
-
$[28] = onChange;
|
|
175
|
-
$[29] = t6;
|
|
176
|
-
$[30] = t7;
|
|
177
|
-
} else {
|
|
178
|
-
t6 = $[29];
|
|
179
|
-
t7 = $[30];
|
|
180
|
-
}
|
|
181
|
-
useEffect(t6, t7);
|
|
182
|
-
let t8;
|
|
183
|
-
let t9;
|
|
184
|
-
if ($[31] !== isLoadingLabelVisible || $[32] !== loading || $[33] !== loadingLabelDelay || $[34] !== safeSetTimeout) {
|
|
185
|
-
t8 = () => {
|
|
186
167
|
if (!loading && isLoadingLabelVisible) setIsLoadingLabelVisible(false);
|
|
187
168
|
else if (loading && !isLoadingLabelVisible) safeSetTimeout(() => {
|
|
188
169
|
setIsLoadingLabelVisible(true);
|
|
189
170
|
}, loadingLabelDelay);
|
|
190
171
|
};
|
|
191
|
-
|
|
172
|
+
t7 = [
|
|
192
173
|
loading,
|
|
193
174
|
isLoadingLabelVisible,
|
|
194
175
|
loadingLabelDelay,
|
|
195
176
|
safeSetTimeout
|
|
196
177
|
];
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
178
|
+
$[26] = isLoadingLabelVisible;
|
|
179
|
+
$[27] = loading;
|
|
180
|
+
$[28] = loadingLabelDelay;
|
|
181
|
+
$[29] = safeSetTimeout;
|
|
182
|
+
$[30] = t6;
|
|
183
|
+
$[31] = t7;
|
|
203
184
|
} else {
|
|
204
|
-
|
|
205
|
-
|
|
185
|
+
t6 = $[30];
|
|
186
|
+
t7 = $[31];
|
|
206
187
|
}
|
|
207
|
-
useEffect(
|
|
188
|
+
useEffect(t6, t7);
|
|
208
189
|
let switchButtonDescribedBy = loadingLabelId;
|
|
209
190
|
if (ariaDescribedby) switchButtonDescribedBy = `${switchButtonDescribedBy} ${ariaDescribedby}`;
|
|
191
|
+
let t8;
|
|
192
|
+
if ($[32] !== className) {
|
|
193
|
+
t8 = clsx(ToggleSwitch_module_css_default.ToggleSwitch, className);
|
|
194
|
+
$[32] = className;
|
|
195
|
+
$[33] = t8;
|
|
196
|
+
} else t8 = $[33];
|
|
197
|
+
const t9 = isLoadingLabelVisible && loadingLabel;
|
|
210
198
|
let t10;
|
|
211
|
-
if ($[
|
|
212
|
-
t10 =
|
|
213
|
-
$[37] = className;
|
|
214
|
-
$[38] = t10;
|
|
215
|
-
} else t10 = $[38];
|
|
216
|
-
const t11 = isLoadingLabelVisible && loadingLabel;
|
|
217
|
-
let t12;
|
|
218
|
-
if ($[39] !== loadingLabelId || $[40] !== t11) {
|
|
219
|
-
t12 = /*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
|
|
199
|
+
if ($[34] !== loadingLabelId || $[35] !== t9) {
|
|
200
|
+
t10 = /*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
|
|
220
201
|
announceOnShow: true,
|
|
221
202
|
id: loadingLabelId,
|
|
222
|
-
children:
|
|
203
|
+
children: t9
|
|
223
204
|
}) });
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
} else
|
|
228
|
-
let
|
|
229
|
-
if ($[
|
|
230
|
-
|
|
205
|
+
$[34] = loadingLabelId;
|
|
206
|
+
$[35] = t9;
|
|
207
|
+
$[36] = t10;
|
|
208
|
+
} else t10 = $[36];
|
|
209
|
+
let t11;
|
|
210
|
+
if ($[37] !== loading || $[38] !== statusLabelPosition) {
|
|
211
|
+
t11 = loading ? /*#__PURE__*/ jsx("div", {
|
|
231
212
|
className: ToggleSwitch_module_css_default.LoadingSpinner,
|
|
232
213
|
"data-status-label-position": statusLabelPosition,
|
|
233
214
|
children: /*#__PURE__*/ jsx(Spinner, {
|
|
@@ -235,172 +216,172 @@ const ToggleSwitch = /*#__PURE__*/ React.forwardRef(function ToggleSwitch(props,
|
|
|
235
216
|
srText: null
|
|
236
217
|
})
|
|
237
218
|
}) : null;
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
} else
|
|
242
|
-
const
|
|
243
|
-
const
|
|
244
|
-
const
|
|
245
|
-
let
|
|
246
|
-
if ($[
|
|
247
|
-
|
|
219
|
+
$[37] = loading;
|
|
220
|
+
$[38] = statusLabelPosition;
|
|
221
|
+
$[39] = t11;
|
|
222
|
+
} else t11 = $[39];
|
|
223
|
+
const t12 = !acceptsInteraction;
|
|
224
|
+
const t13 = !isOn;
|
|
225
|
+
const t14 = (_buttonLabelOn = buttonLabelOn) !== null && _buttonLabelOn !== void 0 ? _buttonLabelOn : "On";
|
|
226
|
+
let t15;
|
|
227
|
+
if ($[40] !== t13 || $[41] !== t14) {
|
|
228
|
+
t15 = /*#__PURE__*/ jsx("span", {
|
|
248
229
|
className: ToggleSwitch_module_css_default.StatusTextItem,
|
|
249
|
-
"data-hidden":
|
|
250
|
-
children:
|
|
230
|
+
"data-hidden": t13,
|
|
231
|
+
children: t14
|
|
251
232
|
});
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
255
|
-
} else
|
|
256
|
-
const
|
|
257
|
-
let
|
|
258
|
-
if ($[
|
|
259
|
-
|
|
233
|
+
$[40] = t13;
|
|
234
|
+
$[41] = t14;
|
|
235
|
+
$[42] = t15;
|
|
236
|
+
} else t15 = $[42];
|
|
237
|
+
const t16 = (_buttonLabelOff = buttonLabelOff) !== null && _buttonLabelOff !== void 0 ? _buttonLabelOff : "Off";
|
|
238
|
+
let t17;
|
|
239
|
+
if ($[43] !== isOn || $[44] !== t16) {
|
|
240
|
+
t17 = /*#__PURE__*/ jsx("span", {
|
|
260
241
|
className: ToggleSwitch_module_css_default.StatusTextItem,
|
|
261
242
|
"data-hidden": isOn,
|
|
262
|
-
children:
|
|
243
|
+
children: t16
|
|
263
244
|
});
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
} else
|
|
268
|
-
let
|
|
269
|
-
if ($[
|
|
270
|
-
|
|
245
|
+
$[43] = isOn;
|
|
246
|
+
$[44] = t16;
|
|
247
|
+
$[45] = t17;
|
|
248
|
+
} else t17 = $[45];
|
|
249
|
+
let t18;
|
|
250
|
+
if ($[46] !== handleToggleClick || $[47] !== size || $[48] !== t12 || $[49] !== t15 || $[50] !== t17) {
|
|
251
|
+
t18 = /*#__PURE__*/ jsxs("span", {
|
|
271
252
|
className: ToggleSwitch_module_css_default.StatusText,
|
|
272
253
|
"data-size": size,
|
|
273
|
-
"data-disabled":
|
|
254
|
+
"data-disabled": t12,
|
|
274
255
|
"aria-hidden": "true",
|
|
275
256
|
onClick: handleToggleClick,
|
|
276
|
-
children: [
|
|
257
|
+
children: [t15, t17]
|
|
277
258
|
});
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
} else
|
|
259
|
+
$[46] = handleToggleClick;
|
|
260
|
+
$[47] = size;
|
|
261
|
+
$[48] = t12;
|
|
262
|
+
$[49] = t15;
|
|
263
|
+
$[50] = t17;
|
|
264
|
+
$[51] = t18;
|
|
265
|
+
} else t18 = $[51];
|
|
266
|
+
const t19 = !acceptsInteraction;
|
|
267
|
+
const t20 = isLoadingLabelVisible || ariaDescribedby ? switchButtonDescribedBy : void 0;
|
|
285
268
|
const t21 = !acceptsInteraction;
|
|
286
|
-
const t22 =
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
if ($[59] !== isOn || $[60] !== t24 || $[61] !== t25) {
|
|
297
|
-
t26 = /*#__PURE__*/ jsx("div", {
|
|
269
|
+
const t22 = !acceptsInteraction;
|
|
270
|
+
let t23;
|
|
271
|
+
if ($[52] !== size) {
|
|
272
|
+
t23 = /*#__PURE__*/ jsx(LineIcon, { size });
|
|
273
|
+
$[52] = size;
|
|
274
|
+
$[53] = t23;
|
|
275
|
+
} else t23 = $[53];
|
|
276
|
+
let t24;
|
|
277
|
+
if ($[54] !== isOn || $[55] !== t22 || $[56] !== t23) {
|
|
278
|
+
t24 = /*#__PURE__*/ jsx("div", {
|
|
298
279
|
className: `${ToggleSwitch_module_css_default.IconContainer} ${ToggleSwitch_module_css_default.LineIconContainer}`,
|
|
299
280
|
"data-checked": isOn,
|
|
300
|
-
"data-disabled":
|
|
301
|
-
children:
|
|
281
|
+
"data-disabled": t22,
|
|
282
|
+
children: t23
|
|
302
283
|
});
|
|
303
|
-
$[
|
|
304
|
-
$[
|
|
305
|
-
$[
|
|
306
|
-
$[
|
|
307
|
-
} else
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
if ($[
|
|
311
|
-
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
314
|
-
} else
|
|
315
|
-
let
|
|
316
|
-
if ($[
|
|
317
|
-
|
|
284
|
+
$[54] = isOn;
|
|
285
|
+
$[55] = t22;
|
|
286
|
+
$[56] = t23;
|
|
287
|
+
$[57] = t24;
|
|
288
|
+
} else t24 = $[57];
|
|
289
|
+
const t25 = !acceptsInteraction;
|
|
290
|
+
let t26;
|
|
291
|
+
if ($[58] !== size) {
|
|
292
|
+
t26 = /*#__PURE__*/ jsx(CircleIcon, { size });
|
|
293
|
+
$[58] = size;
|
|
294
|
+
$[59] = t26;
|
|
295
|
+
} else t26 = $[59];
|
|
296
|
+
let t27;
|
|
297
|
+
if ($[60] !== isOn || $[61] !== t25 || $[62] !== t26) {
|
|
298
|
+
t27 = /*#__PURE__*/ jsx("div", {
|
|
318
299
|
className: `${ToggleSwitch_module_css_default.IconContainer} ${ToggleSwitch_module_css_default.CircleIconContainer}`,
|
|
319
300
|
"data-checked": isOn,
|
|
320
|
-
"data-disabled":
|
|
321
|
-
children:
|
|
301
|
+
"data-disabled": t25,
|
|
302
|
+
children: t26
|
|
322
303
|
});
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
327
|
-
} else
|
|
328
|
-
let
|
|
329
|
-
if ($[
|
|
330
|
-
|
|
304
|
+
$[60] = isOn;
|
|
305
|
+
$[61] = t25;
|
|
306
|
+
$[62] = t26;
|
|
307
|
+
$[63] = t27;
|
|
308
|
+
} else t27 = $[63];
|
|
309
|
+
let t28;
|
|
310
|
+
if ($[64] !== t24 || $[65] !== t27) {
|
|
311
|
+
t28 = /*#__PURE__*/ jsxs("div", {
|
|
331
312
|
className: ToggleSwitch_module_css_default.SwitchButtonContent,
|
|
332
313
|
"aria-hidden": "true",
|
|
333
|
-
children: [
|
|
314
|
+
children: [t24, t27]
|
|
334
315
|
});
|
|
335
|
-
$[
|
|
336
|
-
$[
|
|
337
|
-
$[
|
|
338
|
-
} else
|
|
339
|
-
const
|
|
340
|
-
let
|
|
341
|
-
if ($[
|
|
342
|
-
|
|
316
|
+
$[64] = t24;
|
|
317
|
+
$[65] = t27;
|
|
318
|
+
$[66] = t28;
|
|
319
|
+
} else t28 = $[66];
|
|
320
|
+
const t29 = !acceptsInteraction;
|
|
321
|
+
let t30;
|
|
322
|
+
if ($[67] !== isOn || $[68] !== t29) {
|
|
323
|
+
t30 = /*#__PURE__*/ jsx("div", {
|
|
343
324
|
className: ToggleSwitch_module_css_default.ToggleKnob,
|
|
344
325
|
"data-checked": isOn,
|
|
345
|
-
"data-disabled":
|
|
326
|
+
"data-disabled": t29,
|
|
346
327
|
"aria-hidden": "true"
|
|
347
328
|
});
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
} else
|
|
352
|
-
let
|
|
353
|
-
if ($[
|
|
354
|
-
|
|
329
|
+
$[67] = isOn;
|
|
330
|
+
$[68] = t29;
|
|
331
|
+
$[69] = t30;
|
|
332
|
+
} else t30 = $[69];
|
|
333
|
+
let t31;
|
|
334
|
+
if ($[70] !== ariaLabelledby || $[71] !== buttonType || $[72] !== handleToggleClick || $[73] !== isOn || $[74] !== ref || $[75] !== size || $[76] !== t19 || $[77] !== t20 || $[78] !== t21 || $[79] !== t28 || $[80] !== t30) {
|
|
335
|
+
t31 = /*#__PURE__*/ jsxs("button", {
|
|
355
336
|
ref,
|
|
356
337
|
type: buttonType,
|
|
357
338
|
className: ToggleSwitch_module_css_default.SwitchButton,
|
|
358
339
|
"data-size": size,
|
|
359
340
|
"data-checked": isOn,
|
|
360
|
-
"data-disabled":
|
|
341
|
+
"data-disabled": t19,
|
|
361
342
|
onClick: handleToggleClick,
|
|
362
343
|
"aria-labelledby": ariaLabelledby,
|
|
363
|
-
"aria-describedby":
|
|
344
|
+
"aria-describedby": t20,
|
|
364
345
|
"aria-pressed": isOn,
|
|
365
|
-
"aria-disabled":
|
|
366
|
-
children: [
|
|
346
|
+
"aria-disabled": t21,
|
|
347
|
+
children: [t28, t30]
|
|
367
348
|
});
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
} else
|
|
381
|
-
let
|
|
382
|
-
if ($[
|
|
383
|
-
|
|
384
|
-
className:
|
|
349
|
+
$[70] = ariaLabelledby;
|
|
350
|
+
$[71] = buttonType;
|
|
351
|
+
$[72] = handleToggleClick;
|
|
352
|
+
$[73] = isOn;
|
|
353
|
+
$[74] = ref;
|
|
354
|
+
$[75] = size;
|
|
355
|
+
$[76] = t19;
|
|
356
|
+
$[77] = t20;
|
|
357
|
+
$[78] = t21;
|
|
358
|
+
$[79] = t28;
|
|
359
|
+
$[80] = t30;
|
|
360
|
+
$[81] = t31;
|
|
361
|
+
} else t31 = $[81];
|
|
362
|
+
let t32;
|
|
363
|
+
if ($[82] !== rest || $[83] !== statusLabelPosition || $[84] !== t10 || $[85] !== t11 || $[86] !== t18 || $[87] !== t31 || $[88] !== t8) {
|
|
364
|
+
t32 = /*#__PURE__*/ jsxs("div", {
|
|
365
|
+
className: t8,
|
|
385
366
|
"data-status-label-position": statusLabelPosition,
|
|
386
367
|
...rest,
|
|
387
368
|
children: [
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
369
|
+
t10,
|
|
370
|
+
t11,
|
|
371
|
+
t18,
|
|
372
|
+
t31
|
|
392
373
|
]
|
|
393
374
|
});
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
} else
|
|
403
|
-
return
|
|
375
|
+
$[82] = rest;
|
|
376
|
+
$[83] = statusLabelPosition;
|
|
377
|
+
$[84] = t10;
|
|
378
|
+
$[85] = t11;
|
|
379
|
+
$[86] = t18;
|
|
380
|
+
$[87] = t31;
|
|
381
|
+
$[88] = t8;
|
|
382
|
+
$[89] = t32;
|
|
383
|
+
} else t32 = $[89];
|
|
384
|
+
return t32;
|
|
404
385
|
});
|
|
405
386
|
ToggleSwitch.displayName = "ToggleSwitch";
|
|
406
387
|
//#endregion
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-SelectPanel2-Overlay--Q-FI{border:none;color:var(--fgColor-default,#1f2328);padding:0;--max-height:0;--position-top:0;--position-left:0}.prc-SelectPanel2-Overlay--Q-FI:where([open]){display:flex}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=anchored]),.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=full-screen]){left:var(--position-left);margin:0;top:var(--position-top)}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=anchored])::backdrop{background-color:transparent}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=full-screen])::backdrop{background-color:transparent}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=modal]){bottom:0;left:0;right:0;top:0}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=modal])::backdrop{background-color:var(--overlay-backdrop-bgColor,#c8d1da66)}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=full-screen]){border-radius:unset;height:100%;left:0;margin:0;max-height:100vh;max-width:100vw;top:0;width:100%}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=bottom-sheet]){border-bottom-left-radius:0;border-bottom-right-radius:0;bottom:0;left:0;margin:0;max-height:calc(100vh - 64px);max-width:100vw;top:auto;width:100%}.prc-SelectPanel2-Form-bZ9HS{width:100%}.prc-SelectPanel2-Container-e5e6-,.prc-SelectPanel2-Form-bZ9HS{display:flex;flex-direction:column}.prc-SelectPanel2-Container-e5e6-{flex-grow:1;flex-shrink:1;justify-content:space-between;overflow:hidden}.prc-SelectPanel2-Container-e5e6- ul{flex-grow:1;overflow-y:auto}.prc-SelectPanel2-Container-e5e6- li:not(:focus,[data-is-active-descendant],[data-active]){contain-intrinsic-size:auto 32px;content-visibility:auto}.prc-SelectPanel2-HeaderContent-MsaAS{align-items:center;display:flex;justify-content:space-between;margin-bottom:0}.prc-SelectPanel2-HeaderContent-MsaAS:where([data-description]){align-items:flex-start}.prc-SelectPanel2-HeaderContent-MsaAS:where([data-search-input]){margin-bottom:var(--base-size-8,.5rem)}.prc-SelectPanel2-TitleWrapper-HzPu3{margin-left:var(--base-size-8,.5rem);margin-top:0}.prc-SelectPanel2-TitleWrapper-HzPu3:where([data-description]){margin-top:2px}.prc-SelectPanel2-TitleWrapper-HzPu3:where([data-on-back]){margin-left:var(--base-size-4,.25rem)}.prc-SelectPanel2-TextInput-lHH1n{padding-left:var(--base-size-8,.5rem)!important}.prc-SelectPanel2-TextInput-lHH1n:has(input:placeholder-shown) .TextInput-action{display:none}.prc-SelectPanel2-Checkbox-AYR38{margin-top:0}.prc-SelectPanel2-FlexBox-gWPRg{display:flex}.prc-SelectPanel2-Title-T-h3f{font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-semibold,600)}.prc-SelectPanel2-Description-qTXfi{display:block;font-size:var(--text-body-size-small,.75rem)}.prc-SelectPanel2-ClearAction-tQj-f,.prc-SelectPanel2-Description-qTXfi{color:var(--fgColor-muted,#59636e)}.prc-SelectPanel2-ClearAction-tQj-f{background:none}.prc-SelectPanel2-Footer-TibV0{align-items:center;border-top:var(--borderWidth-thin,.0625rem) solid;border-top-color:var(--borderColor-default,#d1d9e0);display:flex;flex-shrink:0;justify-content:space-between;min-height:44px;padding:var(--base-size-16,1rem)}.prc-SelectPanel2-Footer-TibV0:where([data-hide-primary-actions]){padding:var(--base-size-8,.5rem)}.prc-SelectPanel2-FooterContent-UjAOM{flex-grow:0}.prc-SelectPanel2-FooterContent-UjAOM:where([data-hide-primary-actions]){flex-grow:1}.prc-SelectPanel2-FooterActions-T6yQR,.prc-SelectPanel2-SecondaryCheckbox-omkf-{display:flex;gap:var(--stack-gap-condensed,.5rem)}.prc-SelectPanel2-SecondaryCheckbox-omkf-{align-items:center}.prc-SelectPanel2-SmallText-c42ay{font-size:var(--text-body-size-small,.75rem)}.prc-SelectPanel2-SelectPanelLoading-mtyhD{align-items:center;display:flex;flex-direction:column;gap:var(--stack-gap-normal,1rem);height:100%;justify-content:center;min-height:min(calc(var(--max-height) - 150px),324px)}.prc-SelectPanel2-LoadingText-DB0wN{color:var(--fgColor-muted,#59636e);font-size:var(--text-body-size-medium,.875rem)}.prc-SelectPanel2-MessageFull-nY-qF{align-items:center;display:flex;flex-direction:column;flex-grow:1;gap:var(--base-size-4,.25rem);height:100%;justify-content:center;min-height:min(calc(var(--max-height) - 150px),324px);padding-left:var(--base-size-24,1.5rem);padding-right:var(--base-size-24,1.5rem);text-align:center}.prc-SelectPanel2-MessageFull-nY-qF a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.prc-SelectPanel2-Octicon-zt-zU{margin-bottom:var(--base-size-8,.5rem)}.prc-SelectPanel2-Octicon-zt-zU.prc-SelectPanel2-Error-ZrZQQ{color:var(--fgColor-danger,#d1242f)}.prc-SelectPanel2-Octicon-zt-zU.prc-SelectPanel2-Warning-PDsVF{color:var(--fgColor-attention,#9a6700)}.prc-SelectPanel2-MessageTitle-T7v9d{font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-medium,500)}.prc-SelectPanel2-MessageContent-UZ9vY{align-items:center;color:var(--fgColor-muted,#59636e);flex-direction:column;font-size:var(--text-body-size-medium,.875rem)}.prc-SelectPanel2-MessageContent-UZ9vY,.prc-SelectPanel2-MessageInline-sErQf{display:flex;gap:var(--stack-gap-condensed,.5rem)}.prc-SelectPanel2-MessageInline-sErQf{border-bottom:var(--borderWidth-thin,.0625rem) solid;font-size:var(--text-body-size-small,.75rem);padding:var(--base-size-12,.75rem) var(--base-size-16,1rem)}.prc-SelectPanel2-MessageInline-sErQf a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.prc-SelectPanel2-MessageInline-sErQf:where([data-variant=error]){background-color:var(--bgColor-danger-muted,#ffebe9);border-color:var(--borderColor-danger-muted,#ff818266);color:var(--fgColor-danger,#d1242f)}.prc-SelectPanel2-MessageInline-sErQf:where([data-variant=warning]){background-color:var(--bgColor-attention-muted,#fff8c5);border-color:var(--borderColor-attention-muted,#d4a72c66);color:var(--fgColor-attention,#9a6700)}.prc-SelectPanel2-Header-LKyEJ{border-bottom:var(--borderWidth-thin,.0625rem) solid;border-bottom-color:var(--borderColor-default,#d1d9e0);display:flex;flex-direction:column;padding:var(--base-size-8,.5rem)}
|
|
2
|
+
/*# sourceMappingURL=SelectPanel-608e207e.css.map */
|
package/dist/experimental/SelectPanel2/{SelectPanel-b5469dea.css.map → SelectPanel-608e207e.css.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/experimental/SelectPanel2/SelectPanel.module.css.js"],"names":[],"mappings":"AAAA,gCAGE,WAAY,CADZ,oCAA6B,CAD7B,SAAU,CAKV,cAAe,CACf,gBAAiB,CACjB,iBAoDF,CAlDE,8CACE,YACF,CAEA,iIAKE,yBAA0B,CAC1B,QAAS,CAHT,uBAQF,CAHE,yEACE,4BACF,CAFA,4EACE,4BACF,CAGF,4DAIE,QAAS,CAFT,MAAO,CACP,OAAQ,CAFR,KAIF,CAEA,sEACE,0DACF,CAEA,kEAQE,mBAAoB,CAHpB,WAAY,CAHZ,MAAO,CAKP,QAAS,CADT,gBAAiB,CAFjB,eAAgB,CAHhB,KAAM,CAEN,UAMF,CAEA,mEASE,2BAA4B,CAD5B,4BAA6B,CAN7B,QAAS,CACT,MAAO,CAIP,QAAS,CADT,6BAA8B,CAD9B,eAAgB,CAJhB,QAAS,CAGT,UAMF,CAGF,6BAEE,UAEF,CAEA,+DALE,YAAa,CAEb,qBAwBF,CArBA,kCAKE,WAAY,CADZ,aAAc,CAEd,6BAA8B,CAJ9B,eAmBF,CAbE,qCAEE,WAAY,CADZ,eAEF,CAMA,2FAEE,gCAAiC,CADjC,uBAEF,CAGF,sCAGE,kBAAmB,CAFnB,YAAa,CACb,6BAA8B,CAE9B,eASF,CAPE,gEACE,sBACF,CAEA,iEACE,sCACF,CAGF,qCAEE,oCAA+B,CAD/B,YAWF,CARE,+DAEE,cACF,CAEA,2DACE,qCACF,CAGF,kCACE,+
|
|
1
|
+
{"version":3,"sources":["../../src/experimental/SelectPanel2/SelectPanel.module.css.js"],"names":[],"mappings":"AAAA,gCAGE,WAAY,CADZ,oCAA6B,CAD7B,SAAU,CAKV,cAAe,CACf,gBAAiB,CACjB,iBAoDF,CAlDE,8CACE,YACF,CAEA,iIAKE,yBAA0B,CAC1B,QAAS,CAHT,uBAQF,CAHE,yEACE,4BACF,CAFA,4EACE,4BACF,CAGF,4DAIE,QAAS,CAFT,MAAO,CACP,OAAQ,CAFR,KAIF,CAEA,sEACE,0DACF,CAEA,kEAQE,mBAAoB,CAHpB,WAAY,CAHZ,MAAO,CAKP,QAAS,CADT,gBAAiB,CAFjB,eAAgB,CAHhB,KAAM,CAEN,UAMF,CAEA,mEASE,2BAA4B,CAD5B,4BAA6B,CAN7B,QAAS,CACT,MAAO,CAIP,QAAS,CADT,6BAA8B,CAD9B,eAAgB,CAJhB,QAAS,CAGT,UAMF,CAGF,6BAEE,UAEF,CAEA,+DALE,YAAa,CAEb,qBAwBF,CArBA,kCAKE,WAAY,CADZ,aAAc,CAEd,6BAA8B,CAJ9B,eAmBF,CAbE,qCAEE,WAAY,CADZ,eAEF,CAMA,2FAEE,gCAAiC,CADjC,uBAEF,CAGF,sCAGE,kBAAmB,CAFnB,YAAa,CACb,6BAA8B,CAE9B,eASF,CAPE,gEACE,sBACF,CAEA,iEACE,sCACF,CAGF,qCAEE,oCAA+B,CAD/B,YAWF,CARE,+DAEE,cACF,CAEA,2DACE,qCACF,CAGF,kCACE,+CAMF,CAHE,iFACE,YACF,CAGF,iCACE,YACF,CAEA,gCACE,YACF,CAEA,8BACE,8CAAuC,CACvC,gDACF,CAEA,oCACE,aAAc,CACd,4CAEF,CAEA,wEAHE,kCAMF,CAHA,oCAEE,eACF,CAEA,+BAOE,kBAAmB,CAHnB,iDAAyC,CACzC,mDAA4C,CAJ5C,YAAa,CAOb,aAAc,CAFd,6BAA8B,CAJ9B,eAAgB,CAChB,gCAUF,CAHE,kEACE,gCACF,CAGF,sCACE,WAKF,CAHE,yEACE,WACF,CAQF,gFAJE,YAAa,CACb,oCAOF,CAJA,0CAEE,kBAEF,CAEA,kCACE,4CACF,CAEA,2CAQE,kBAAmB,CAPnB,YAAa,CAKb,qBAAsB,CAGtB,gCAA4B,CAP5B,WAAY,CAKZ,sBAAuB,CAFvB,qDAKF,CAEA,oCAEE,kCAA2B,CAD3B,8CAEF,CAEA,oCAWE,kBAAmB,CAVnB,YAAa,CAQb,qBAAsB,CAGtB,WAAY,CACZ,6BAAuB,CAXvB,WAAY,CAQZ,sBAAuB,CALvB,qDAAuD,CAEvD,uCAAiC,CADjC,wCAAkC,CAElC,iBAWF,CAJE,sCACE,aAAc,CACd,iCAA0B,CAA1B,yBACF,CAGF,gCACE,sCASF,CAPE,6DACE,mCACF,CAEA,+DACE,sCACF,CAGF,qCACE,8CAAuC,CACvC,8CACF,CAEA,uCAME,kBAAmB,CAHnB,kCAA2B,CAC3B,qBAAsB,CAFtB,8CAKF,CAEA,6EARE,YAAa,CAIb,oCA8BF,CA1BA,sCAOE,oDAA4C,CAD5C,4CAAsC,CADtC,2DAqBF,CAhBE,wCACE,aAAc,CACd,iCAA0B,CAA1B,yBACF,CAEA,kEAEE,oDAA6C,CAC7C,sDAA6C,CAF7C,mCAGF,CAEA,oEAEE,uDAAgD,CAChD,yDAAgD,CAFhD,sCAGF,CAGF,+BAIE,oDAA4C,CAC5C,sDAA+C,CAJ/C,YAAa,CAEb,qBAAsB,CADtB,gCAIF","file":"SelectPanel-608e207e.css","sourcesContent":[".Overlay {\n padding: 0;\n color: var(--fgColor-default);\n border: none;\n\n /* CSS variables values are passed in via styles */\n --max-height: 0;\n --position-top: 0;\n --position-left: 0;\n\n &:where([open]) {\n display: flex; /* to fit children */\n }\n\n &:where([data-variant='anchored']),\n &:where([data-variant='full-screen']) {\n /* stylelint-disable-next-line primer/spacing */\n top: var(--position-top);\n /* stylelint-disable-next-line primer/spacing */\n left: var(--position-left);\n margin: 0;\n\n &::backdrop {\n background-color: transparent;\n }\n }\n\n &:where([data-variant='modal']) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n\n &:where([data-variant='modal'])::backdrop {\n background-color: var(--overlay-backdrop-bgColor);\n }\n\n &:where([data-variant='full-screen']) {\n top: 0;\n left: 0;\n width: 100%;\n max-width: 100vw;\n height: 100%;\n max-height: 100vh;\n margin: 0;\n border-radius: unset;\n }\n\n &:where([data-variant='bottom-sheet']) {\n top: auto;\n bottom: 0;\n left: 0;\n width: 100%;\n max-width: 100vw;\n max-height: calc(100vh - 64px);\n margin: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n}\n\n.Form {\n display: flex;\n width: 100%;\n flex-direction: column;\n}\n\n.Container {\n display: flex;\n overflow: hidden;\n flex-direction: column;\n flex-shrink: 1;\n flex-grow: 1;\n justify-content: space-between;\n\n ul {\n overflow-y: auto;\n flex-grow: 1;\n }\n\n /* Allow the browser to skip rendering for off-screen items, reducing style recalc and layout costs in long lists.\n Exclude items that show the active indicator line, as content-visibility: auto applies paint containment\n which clips the absolutely-positioned ::after pseudo-element that renders outside the item bounds. */\n /* stylelint-disable-next-line selector-no-qualifying-type */\n li:not(:focus, [data-is-active-descendant], [data-active]) {\n content-visibility: auto;\n contain-intrinsic-size: auto 32px;\n }\n}\n\n.HeaderContent {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 0;\n\n &:where([data-description]) {\n align-items: flex-start;\n }\n\n &:where([data-search-input]) {\n margin-bottom: var(--base-size-8);\n }\n}\n\n.TitleWrapper {\n margin-top: 0;\n margin-left: var(--base-size-8);\n\n &:where([data-description]) {\n /* stylelint-disable-next-line primer/spacing */\n margin-top: 2px;\n }\n\n &:where([data-on-back]) {\n margin-left: var(--base-size-4);\n }\n}\n\n.TextInput {\n padding-left: var(--base-size-8) !important;\n\n /* stylelint-disable-next-line selector-class-pattern, selector-no-qualifying-type, selector-pseudo-class-disallowed-list -- :has() scoped to CSS Module, audited (github/github-ui#17224) */\n &:has(input:placeholder-shown) :global(.TextInput-action) {\n display: none;\n }\n}\n\n.Checkbox {\n margin-top: 0;\n}\n\n.FlexBox {\n display: flex;\n}\n\n.Title {\n font-size: var(--text-body-size-medium);\n font-weight: var(--base-text-weight-semibold);\n}\n\n.Description {\n display: block;\n font-size: var(--text-body-size-small);\n color: var(--fgColor-muted);\n}\n\n.ClearAction {\n color: var(--fgColor-muted);\n background: none;\n}\n\n.Footer {\n display: flex;\n min-height: 44px;\n padding: var(--base-size-16);\n border-top: var(--borderWidth-thin) solid;\n border-top-color: var(--borderColor-default);\n justify-content: space-between;\n align-items: center;\n flex-shrink: 0;\n\n &:where([data-hide-primary-actions]) {\n padding: var(--base-size-8);\n }\n}\n\n.FooterContent {\n flex-grow: 0;\n\n &:where([data-hide-primary-actions]) {\n flex-grow: 1;\n }\n}\n\n.FooterActions {\n display: flex;\n gap: var(--stack-gap-condensed);\n}\n\n.SecondaryCheckbox {\n display: flex;\n align-items: center;\n gap: var(--stack-gap-condensed);\n}\n\n.SmallText {\n font-size: var(--text-body-size-small);\n}\n\n.SelectPanelLoading {\n display: flex;\n height: 100%;\n\n /* maxHeight of dialog - (header & footer) */\n min-height: min(calc(var(--max-height) - 150px), 324px);\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: var(--stack-gap-normal);\n}\n\n.LoadingText {\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n}\n\n.MessageFull {\n display: flex;\n height: 100%;\n\n /* maxHeight of dialog - (header & footer) */\n min-height: min(calc(var(--max-height) - 150px), 324px);\n padding-right: var(--base-size-24);\n padding-left: var(--base-size-24);\n text-align: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n gap: var(--base-size-4);\n\n a {\n color: inherit;\n text-decoration: underline;\n }\n}\n\n.Octicon {\n margin-bottom: var(--base-size-8);\n\n &.Error {\n color: var(--fgColor-danger);\n }\n\n &.Warning {\n color: var(--fgColor-attention);\n }\n}\n\n.MessageTitle {\n font-size: var(--text-body-size-medium);\n font-weight: var(--base-text-weight-medium);\n}\n\n.MessageContent {\n display: flex;\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n flex-direction: column;\n gap: var(--stack-gap-condensed);\n align-items: center;\n}\n\n.MessageInline {\n display: flex;\n padding-top: var(--base-size-12);\n padding-right: var(--base-size-16);\n padding-bottom: var(--base-size-12);\n padding-left: var(--base-size-16);\n font-size: var(--text-body-size-small);\n border-bottom: var(--borderWidth-thin) solid;\n gap: var(--stack-gap-condensed);\n\n a {\n color: inherit;\n text-decoration: underline;\n }\n\n &:where([data-variant='error']) {\n color: var(--fgColor-danger);\n background-color: var(--bgColor-danger-muted);\n border-color: var(--borderColor-danger-muted);\n }\n\n &:where([data-variant='warning']) {\n color: var(--fgColor-attention);\n background-color: var(--bgColor-attention-muted);\n border-color: var(--borderColor-attention-muted);\n }\n}\n\n.Header {\n display: flex;\n padding: var(--base-size-8);\n flex-direction: column;\n border-bottom: var(--borderWidth-thin) solid;\n border-bottom-color: var(--borderColor-default);\n}\n"]}
|
|
@@ -276,15 +276,9 @@ SelectPanelHeader.__SLOT__ = Symbol("SelectPanel.Header");
|
|
|
276
276
|
const SelectPanelSearchInput = ({ onChange: propsOnChange, onKeyDown: propsOnKeyDown, className, ...props }) => {
|
|
277
277
|
const inputRef = /*#__PURE__*/ React.createRef();
|
|
278
278
|
const { setSearchQuery, moveFocusToList } = React.useContext(SelectPanelContext);
|
|
279
|
-
const [uncontrolledEmpty, setUncontrolledEmpty] = React.useState(() => {
|
|
280
|
-
var _ref, _props$value;
|
|
281
|
-
return ((_ref = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : props.defaultValue) !== null && _ref !== void 0 ? _ref : "") === "";
|
|
282
|
-
});
|
|
283
|
-
const isEmpty = props.value !== void 0 ? props.value === "" : uncontrolledEmpty;
|
|
284
279
|
const internalOnChange = (event) => {
|
|
285
280
|
if (typeof propsOnChange === "function") propsOnChange(event);
|
|
286
281
|
else setSearchQuery(event.target.value);
|
|
287
|
-
setUncontrolledEmpty(event.target.value === "");
|
|
288
282
|
};
|
|
289
283
|
const internalKeyDown = (event) => {
|
|
290
284
|
if (event.key === "ArrowDown") {
|
|
@@ -309,14 +303,12 @@ const SelectPanelSearchInput = ({ onChange: propsOnChange, onKeyDown: propsOnKey
|
|
|
309
303
|
target: inputRef.current,
|
|
310
304
|
currentTarget: inputRef.current
|
|
311
305
|
});
|
|
312
|
-
setUncontrolledEmpty(true);
|
|
313
306
|
}
|
|
314
307
|
}),
|
|
315
308
|
className: clsx(SelectPanel_module_css_default.TextInput, className),
|
|
316
309
|
onChange: internalOnChange,
|
|
317
310
|
onKeyDown: internalKeyDown,
|
|
318
|
-
...props
|
|
319
|
-
"data-empty": isEmpty || void 0
|
|
311
|
+
...props
|
|
320
312
|
});
|
|
321
313
|
};
|
|
322
314
|
SelectPanelSearchInput.displayName = "SelectPanelSearchInput";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-20260707164051",
|
|
5
5
|
"description": "An implementation of GitHub's Primer Design System using React",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"lodash.isempty": "^4.4.0",
|
|
94
94
|
"lodash.isobject": "^3.0.2",
|
|
95
95
|
"react-compiler-runtime": "^1.0.0",
|
|
96
|
-
"react-intersection-observer": "^
|
|
96
|
+
"react-intersection-observer": "^10.0.3"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@actions/core": "1.11.1",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@storybook/addon-docs": "^10.4.6",
|
|
114
114
|
"@storybook/addon-links": "^10.4.6",
|
|
115
115
|
"@storybook/addon-mcp": "^0.6.0",
|
|
116
|
-
"@storybook/icons": "^2.0
|
|
116
|
+
"@storybook/icons": "^2.1.0",
|
|
117
117
|
"@storybook/react-vite": "^10.4.6",
|
|
118
118
|
"@testing-library/dom": "^10.4.0",
|
|
119
119
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.prc-SelectPanel2-Overlay--Q-FI{border:none;color:var(--fgColor-default,#1f2328);padding:0;--max-height:0;--position-top:0;--position-left:0}.prc-SelectPanel2-Overlay--Q-FI:where([open]){display:flex}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=anchored]),.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=full-screen]){left:var(--position-left);margin:0;top:var(--position-top)}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=anchored])::backdrop{background-color:transparent}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=full-screen])::backdrop{background-color:transparent}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=modal]){bottom:0;left:0;right:0;top:0}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=modal])::backdrop{background-color:var(--overlay-backdrop-bgColor,#c8d1da66)}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=full-screen]){border-radius:unset;height:100%;left:0;margin:0;max-height:100vh;max-width:100vw;top:0;width:100%}.prc-SelectPanel2-Overlay--Q-FI:where([data-variant=bottom-sheet]){border-bottom-left-radius:0;border-bottom-right-radius:0;bottom:0;left:0;margin:0;max-height:calc(100vh - 64px);max-width:100vw;top:auto;width:100%}.prc-SelectPanel2-Form-bZ9HS{width:100%}.prc-SelectPanel2-Container-e5e6-,.prc-SelectPanel2-Form-bZ9HS{display:flex;flex-direction:column}.prc-SelectPanel2-Container-e5e6-{flex-grow:1;flex-shrink:1;justify-content:space-between;overflow:hidden}.prc-SelectPanel2-Container-e5e6- ul{flex-grow:1;overflow-y:auto}.prc-SelectPanel2-Container-e5e6- li:not(:focus,[data-is-active-descendant],[data-active]){contain-intrinsic-size:auto 32px;content-visibility:auto}.prc-SelectPanel2-HeaderContent-MsaAS{align-items:center;display:flex;justify-content:space-between;margin-bottom:0}.prc-SelectPanel2-HeaderContent-MsaAS:where([data-description]){align-items:flex-start}.prc-SelectPanel2-HeaderContent-MsaAS:where([data-search-input]){margin-bottom:var(--base-size-8,.5rem)}.prc-SelectPanel2-TitleWrapper-HzPu3{margin-left:var(--base-size-8,.5rem);margin-top:0}.prc-SelectPanel2-TitleWrapper-HzPu3:where([data-description]){margin-top:2px}.prc-SelectPanel2-TitleWrapper-HzPu3:where([data-on-back]){margin-left:var(--base-size-4,.25rem)}.prc-SelectPanel2-TextInput-lHH1n{padding-left:var(--base-size-8,.5rem)!important}.prc-SelectPanel2-TextInput-lHH1n input[data-empty]~.TextInput-action{display:none}.prc-SelectPanel2-Checkbox-AYR38{margin-top:0}.prc-SelectPanel2-FlexBox-gWPRg{display:flex}.prc-SelectPanel2-Title-T-h3f{font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-semibold,600)}.prc-SelectPanel2-Description-qTXfi{display:block;font-size:var(--text-body-size-small,.75rem)}.prc-SelectPanel2-ClearAction-tQj-f,.prc-SelectPanel2-Description-qTXfi{color:var(--fgColor-muted,#59636e)}.prc-SelectPanel2-ClearAction-tQj-f{background:none}.prc-SelectPanel2-Footer-TibV0{align-items:center;border-top:var(--borderWidth-thin,.0625rem) solid;border-top-color:var(--borderColor-default,#d1d9e0);display:flex;flex-shrink:0;justify-content:space-between;min-height:44px;padding:var(--base-size-16,1rem)}.prc-SelectPanel2-Footer-TibV0:where([data-hide-primary-actions]){padding:var(--base-size-8,.5rem)}.prc-SelectPanel2-FooterContent-UjAOM{flex-grow:0}.prc-SelectPanel2-FooterContent-UjAOM:where([data-hide-primary-actions]){flex-grow:1}.prc-SelectPanel2-FooterActions-T6yQR,.prc-SelectPanel2-SecondaryCheckbox-omkf-{display:flex;gap:var(--stack-gap-condensed,.5rem)}.prc-SelectPanel2-SecondaryCheckbox-omkf-{align-items:center}.prc-SelectPanel2-SmallText-c42ay{font-size:var(--text-body-size-small,.75rem)}.prc-SelectPanel2-SelectPanelLoading-mtyhD{align-items:center;display:flex;flex-direction:column;gap:var(--stack-gap-normal,1rem);height:100%;justify-content:center;min-height:min(calc(var(--max-height) - 150px),324px)}.prc-SelectPanel2-LoadingText-DB0wN{color:var(--fgColor-muted,#59636e);font-size:var(--text-body-size-medium,.875rem)}.prc-SelectPanel2-MessageFull-nY-qF{align-items:center;display:flex;flex-direction:column;flex-grow:1;gap:var(--base-size-4,.25rem);height:100%;justify-content:center;min-height:min(calc(var(--max-height) - 150px),324px);padding-left:var(--base-size-24,1.5rem);padding-right:var(--base-size-24,1.5rem);text-align:center}.prc-SelectPanel2-MessageFull-nY-qF a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.prc-SelectPanel2-Octicon-zt-zU{margin-bottom:var(--base-size-8,.5rem)}.prc-SelectPanel2-Octicon-zt-zU.prc-SelectPanel2-Error-ZrZQQ{color:var(--fgColor-danger,#d1242f)}.prc-SelectPanel2-Octicon-zt-zU.prc-SelectPanel2-Warning-PDsVF{color:var(--fgColor-attention,#9a6700)}.prc-SelectPanel2-MessageTitle-T7v9d{font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-medium,500)}.prc-SelectPanel2-MessageContent-UZ9vY{align-items:center;color:var(--fgColor-muted,#59636e);flex-direction:column;font-size:var(--text-body-size-medium,.875rem)}.prc-SelectPanel2-MessageContent-UZ9vY,.prc-SelectPanel2-MessageInline-sErQf{display:flex;gap:var(--stack-gap-condensed,.5rem)}.prc-SelectPanel2-MessageInline-sErQf{border-bottom:var(--borderWidth-thin,.0625rem) solid;font-size:var(--text-body-size-small,.75rem);padding:var(--base-size-12,.75rem) var(--base-size-16,1rem)}.prc-SelectPanel2-MessageInline-sErQf a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.prc-SelectPanel2-MessageInline-sErQf:where([data-variant=error]){background-color:var(--bgColor-danger-muted,#ffebe9);border-color:var(--borderColor-danger-muted,#ff818266);color:var(--fgColor-danger,#d1242f)}.prc-SelectPanel2-MessageInline-sErQf:where([data-variant=warning]){background-color:var(--bgColor-attention-muted,#fff8c5);border-color:var(--borderColor-attention-muted,#d4a72c66);color:var(--fgColor-attention,#9a6700)}.prc-SelectPanel2-Header-LKyEJ{border-bottom:var(--borderWidth-thin,.0625rem) solid;border-bottom-color:var(--borderColor-default,#d1d9e0);display:flex;flex-direction:column;padding:var(--base-size-8,.5rem)}
|
|
2
|
-
/*# sourceMappingURL=SelectPanel-b5469dea.css.map */
|