@primer/react 0.0.0-20260508164446 → 0.0.0-20260508173920
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 +10 -4
- package/dist/ActionBar/ActionBar-a41224b2.css +2 -0
- package/dist/ActionBar/ActionBar-a41224b2.css.map +1 -0
- package/dist/ActionBar/ActionBar.d.ts +1 -1
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +381 -293
- package/dist/ActionBar/ActionBar.module.css.js +2 -2
- package/dist/ActionBar/index.d.ts +1 -1
- package/dist/ActionList/LinkItem.d.ts +1 -1
- package/dist/ActionList/index.d.ts +2 -2
- package/dist/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/Blankslate/Blankslate.d.ts.map +1 -1
- package/dist/Blankslate/Blankslate.js +6 -0
- package/dist/BranchName/BranchName.js +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +3 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +1 -0
- package/dist/Checkbox/Checkbox.d.ts +1 -0
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox/Checkbox.js +10 -5
- package/dist/CheckboxGroup/CheckboxGroup.js +1 -0
- package/dist/CircleBadge/CircleBadge.d.ts.map +1 -1
- package/dist/CircleBadge/CircleBadge.js +44 -28
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -0
- package/dist/CounterLabel/CounterLabel.d.ts +2 -0
- package/dist/CounterLabel/CounterLabel.d.ts.map +1 -1
- package/dist/CounterLabel/CounterLabel.js +25 -90
- package/dist/DataTable/sorting.d.ts +1 -1
- package/dist/Dialog/Dialog.d.ts +1 -0
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +28 -14
- package/dist/TextInput/TextInput.d.ts +1 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +3 -3
- package/dist/experimental/SelectPanel2/mock-story-data.d.ts +3 -3
- package/dist/hooks/useSyncedState.d.ts +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts.map +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +3 -1
- package/dist/internal/components/TextInputInnerAction.d.ts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +2 -2
- package/dist/utils/useIsomorphicLayoutEffect.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/ActionBar/ActionBar-e2c44be2.css +0 -2
- package/dist/ActionBar/ActionBar-e2c44be2.css.map +0 -1
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -33,6 +33,7 @@ const DefaultHeader = ({
|
|
|
33
33
|
className: classes.HeaderInner,
|
|
34
34
|
children: [/*#__PURE__*/jsxs("div", {
|
|
35
35
|
className: classes.HeaderContent,
|
|
36
|
+
"data-component": "Dialog.Header.Content",
|
|
36
37
|
children: [/*#__PURE__*/jsx(Dialog.Title, {
|
|
37
38
|
id: dialogLabelId,
|
|
38
39
|
children: title !== null && title !== void 0 ? title : 'Dialog'
|
|
@@ -85,6 +86,7 @@ const DIALOG_CONTEXT_VALUE = Object.freeze({});
|
|
|
85
86
|
const _Dialog = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
|
86
87
|
var _slots$header, _slots$body, _slots$footer;
|
|
87
88
|
const {
|
|
89
|
+
'data-component': dataComponentProp,
|
|
88
90
|
title = 'Dialog',
|
|
89
91
|
subtitle = '',
|
|
90
92
|
renderHeader,
|
|
@@ -192,6 +194,7 @@ const _Dialog = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
|
|
192
194
|
} : Object.fromEntries(Object.entries(position).map(([key, value]) => {
|
|
193
195
|
return [`data-position-${key}`, value];
|
|
194
196
|
}));
|
|
197
|
+
const dataComponent = dataComponentProp !== null && dataComponentProp !== void 0 ? dataComponentProp : 'Dialog';
|
|
195
198
|
return /*#__PURE__*/jsx(DialogContext.Provider, {
|
|
196
199
|
value: DIALOG_CONTEXT_VALUE,
|
|
197
200
|
children: /*#__PURE__*/jsx(Portal, {
|
|
@@ -222,9 +225,11 @@ const _Dialog = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
|
|
222
225
|
"data-footer-button-layout": hasFooter ? footerButtonLayout : undefined,
|
|
223
226
|
className: clsx(className, classes.Dialog),
|
|
224
227
|
style: style,
|
|
228
|
+
"data-component": dataComponent,
|
|
225
229
|
children: [header, /*#__PURE__*/jsx(ScrollableRegion, {
|
|
226
230
|
"aria-labelledby": dialogLabelId,
|
|
227
231
|
className: classes.DialogOverflowWrapper,
|
|
232
|
+
"data-component": "Dialog.OverflowWrapper",
|
|
228
233
|
children: body
|
|
229
234
|
}), footer]
|
|
230
235
|
})
|
|
@@ -240,7 +245,8 @@ const Header = /*#__PURE__*/React.forwardRef(function Header({
|
|
|
240
245
|
return /*#__PURE__*/jsx("div", {
|
|
241
246
|
ref: forwardRef,
|
|
242
247
|
className: clsx(className, classes.Header),
|
|
243
|
-
...rest
|
|
248
|
+
...rest,
|
|
249
|
+
"data-component": "Dialog.Header"
|
|
244
250
|
});
|
|
245
251
|
});
|
|
246
252
|
Header.displayName = 'Dialog.Header';
|
|
@@ -251,7 +257,8 @@ const Title = /*#__PURE__*/React.forwardRef(function Title({
|
|
|
251
257
|
return /*#__PURE__*/jsx("h1", {
|
|
252
258
|
ref: forwardRef,
|
|
253
259
|
className: clsx(className, classes.Title),
|
|
254
|
-
...rest
|
|
260
|
+
...rest,
|
|
261
|
+
"data-component": "Dialog.Title"
|
|
255
262
|
});
|
|
256
263
|
});
|
|
257
264
|
Title.displayName = 'Dialog.Title';
|
|
@@ -262,7 +269,8 @@ const Subtitle = /*#__PURE__*/React.forwardRef(function Subtitle({
|
|
|
262
269
|
return /*#__PURE__*/jsx("h2", {
|
|
263
270
|
ref: forwardRef,
|
|
264
271
|
className: clsx(className, classes.Subtitle),
|
|
265
|
-
...rest
|
|
272
|
+
...rest,
|
|
273
|
+
"data-component": "Dialog.Subtitle"
|
|
266
274
|
});
|
|
267
275
|
});
|
|
268
276
|
Subtitle.displayName = 'Dialog.Subtitle';
|
|
@@ -273,7 +281,8 @@ const Body = /*#__PURE__*/React.forwardRef(function Body({
|
|
|
273
281
|
return /*#__PURE__*/jsx("div", {
|
|
274
282
|
ref: forwardRef,
|
|
275
283
|
className: clsx(className, classes.Body),
|
|
276
|
-
...rest
|
|
284
|
+
...rest,
|
|
285
|
+
"data-component": "Dialog.Body"
|
|
277
286
|
});
|
|
278
287
|
});
|
|
279
288
|
Body.displayName = 'Dialog.Body';
|
|
@@ -284,7 +293,8 @@ const Footer = /*#__PURE__*/React.forwardRef(function Footer({
|
|
|
284
293
|
return /*#__PURE__*/jsx("div", {
|
|
285
294
|
ref: forwardRef,
|
|
286
295
|
className: clsx(className, classes.Footer),
|
|
287
|
-
...rest
|
|
296
|
+
...rest,
|
|
297
|
+
"data-component": "Dialog.Footer"
|
|
288
298
|
});
|
|
289
299
|
});
|
|
290
300
|
Footer.displayName = 'Dialog.Footer';
|
|
@@ -313,14 +323,17 @@ const Buttons = ({
|
|
|
313
323
|
autoFocus = false,
|
|
314
324
|
...buttonProps
|
|
315
325
|
} = dialogButtonProps;
|
|
316
|
-
return /*#__PURE__*/jsx(
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
326
|
+
return /*#__PURE__*/jsx("div", {
|
|
327
|
+
"data-component": "Dialog.FooterButton",
|
|
328
|
+
children: /*#__PURE__*/jsx(ButtonComponent, {
|
|
329
|
+
...buttonProps,
|
|
330
|
+
// 'normal' value is equivalent to 'default', this is used for backwards compatibility
|
|
331
|
+
variant: buttonType === 'normal' ? 'default' : buttonType
|
|
332
|
+
// @ts-expect-error it needs a non nullable ref
|
|
333
|
+
,
|
|
334
|
+
ref: autoFocus && autoFocusCount === 0 ? (autoFocusCount++, autoFocusRef) : null,
|
|
335
|
+
children: content
|
|
336
|
+
})
|
|
324
337
|
}, index);
|
|
325
338
|
})
|
|
326
339
|
});
|
|
@@ -332,7 +345,8 @@ const CloseButton = ({
|
|
|
332
345
|
icon: XIcon,
|
|
333
346
|
"aria-label": "Close",
|
|
334
347
|
onClick: onClose,
|
|
335
|
-
variant: "invisible"
|
|
348
|
+
variant: "invisible",
|
|
349
|
+
"data-component": "Dialog.CloseButton"
|
|
336
350
|
});
|
|
337
351
|
};
|
|
338
352
|
CloseButton.displayName = "CloseButton";
|
|
@@ -37,7 +37,7 @@ export type TextInputNonPassthroughProps = {
|
|
|
37
37
|
export type TextInputProps = Merge<React.ComponentPropsWithoutRef<'input'>, TextInputNonPassthroughProps>;
|
|
38
38
|
declare const _default: PolymorphicForwardRefComponent<"input", TextInputProps> & {
|
|
39
39
|
__SLOT__: symbol;
|
|
40
|
-
Action: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
40
|
+
Action: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label" | "size" | "tooltipDirection"> & {
|
|
41
41
|
children?: React.ReactNode;
|
|
42
42
|
"aria-label"?: string;
|
|
43
43
|
tooltipDirection?: "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw";
|
|
@@ -48,11 +48,11 @@ declare const TextInputWithTokens: React.ForwardRefExoticComponent<{
|
|
|
48
48
|
* The array of tokens to render
|
|
49
49
|
*/
|
|
50
50
|
tokens: any[] | (Omit<(Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
51
|
-
ref?: ((instance: HTMLAnchorElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) |
|
|
51
|
+
ref?: RefObject<HTMLAnchorElement> | ((instance: HTMLAnchorElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
52
52
|
}) | (Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
53
|
-
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) |
|
|
53
|
+
ref?: RefObject<HTMLButtonElement> | ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
54
54
|
}) | (Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
55
|
-
ref?: ((instance: HTMLSpanElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) |
|
|
55
|
+
ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
56
56
|
}), keyof import("..").TokenProps> & import("..").TokenProps & {
|
|
57
57
|
as?: "a" | "button" | "span" | undefined;
|
|
58
58
|
})[];
|
|
@@ -10,10 +10,10 @@ declare const data: {
|
|
|
10
10
|
login: string;
|
|
11
11
|
recommended: boolean;
|
|
12
12
|
} | {
|
|
13
|
+
recommended?: undefined;
|
|
13
14
|
id: string;
|
|
14
15
|
name: string;
|
|
15
16
|
login: string;
|
|
16
|
-
recommended?: undefined;
|
|
17
17
|
})[];
|
|
18
18
|
labels: ({
|
|
19
19
|
color: string;
|
|
@@ -38,18 +38,18 @@ declare const data: {
|
|
|
38
38
|
name: string;
|
|
39
39
|
trailingInfo: string;
|
|
40
40
|
} | {
|
|
41
|
+
trailingInfo?: undefined;
|
|
41
42
|
id: string;
|
|
42
43
|
name: string;
|
|
43
|
-
trailingInfo?: undefined;
|
|
44
44
|
})[];
|
|
45
45
|
tags: ({
|
|
46
46
|
id: string;
|
|
47
47
|
name: string;
|
|
48
48
|
trailingInfo: string;
|
|
49
49
|
} | {
|
|
50
|
+
trailingInfo?: undefined;
|
|
50
51
|
id: string;
|
|
51
52
|
name: string;
|
|
52
|
-
trailingInfo?: undefined;
|
|
53
53
|
})[];
|
|
54
54
|
repos: {
|
|
55
55
|
org: string;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* This is adapted almost directly from https://beta.reactjs.org/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes
|
|
10
10
|
*/
|
|
11
11
|
export declare const useSyncedState: <T>(initialValue: T | (() => T), { isPropUpdateDisabled, isEqual }?: {
|
|
12
|
-
isPropUpdateDisabled?: boolean | undefined;
|
|
13
12
|
isEqual?: ((value1: any, value2: any) => boolean) | undefined;
|
|
13
|
+
isPropUpdateDisabled?: boolean | undefined;
|
|
14
14
|
}) => readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
15
15
|
//# sourceMappingURL=useSyncedState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxOrRadioGroup.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAazB,MAAM,MAAM,yBAAyB,GAAG;
|
|
1
|
+
{"version":3,"file":"CheckboxOrRadioGroup.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAazB,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,GAAG;IAC5F,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,CAAC,iBAAiB,CAAC,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AA2HD,YAAY,EAAC,8BAA8B,EAAC,MAAM,6BAA6B,CAAA;;;;;;;;;;AAC/E,wBAIE"}
|
|
@@ -18,7 +18,8 @@ const CheckboxOrRadioGroup = ({
|
|
|
18
18
|
disabled = false,
|
|
19
19
|
id: idProp,
|
|
20
20
|
required = false,
|
|
21
|
-
className
|
|
21
|
+
className,
|
|
22
|
+
...restProps
|
|
22
23
|
}) => {
|
|
23
24
|
const [slots, rest] = useSlots(children, {
|
|
24
25
|
caption: CheckboxOrRadioGroupCaption,
|
|
@@ -47,6 +48,7 @@ const CheckboxOrRadioGroup = ({
|
|
|
47
48
|
},
|
|
48
49
|
children: /*#__PURE__*/jsxs("div", {
|
|
49
50
|
children: [/*#__PURE__*/jsxs(Component, {
|
|
51
|
+
...restProps,
|
|
50
52
|
className: clsx(className, classes.GroupFieldset),
|
|
51
53
|
"data-validation": validationChild ? '' : undefined,
|
|
52
54
|
...(labelChild ? {
|
|
@@ -16,7 +16,7 @@ export type TextInputActionProps = Omit<React.ButtonHTMLAttributes<HTMLButtonEle
|
|
|
16
16
|
*/
|
|
17
17
|
variant?: ButtonProps['variant'];
|
|
18
18
|
};
|
|
19
|
-
declare const TextInputAction: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
19
|
+
declare const TextInputAction: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label" | "size" | "tooltipDirection"> & {
|
|
20
20
|
/** @deprecated Text input action buttons should only use icon buttons */
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
/** Text that appears in a tooltip. If an icon is passed, this is also used as the label used by assistive technologies. */
|
package/dist/theme.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare const theme: {
|
|
|
29
29
|
xlarge: string;
|
|
30
30
|
};
|
|
31
31
|
space: string[];
|
|
32
|
-
colorSchemes: Record<"
|
|
32
|
+
colorSchemes: Record<"dark" | "dark_colorblind" | "dark_dimmed" | "dark_high_contrast" | "dark_tritanopia" | "light" | "light_colorblind" | "light_high_contrast" | "light_tritanopia", {
|
|
33
33
|
colors: Partial<{
|
|
34
34
|
colors: {
|
|
35
35
|
canvasDefaultTransparent: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const useIsomorphicLayoutEffect: typeof
|
|
1
|
+
import { useLayoutEffect } from 'react';
|
|
2
|
+
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
3
3
|
export default useIsomorphicLayoutEffect;
|
|
4
4
|
//# sourceMappingURL=useIsomorphicLayoutEffect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../src/utils/useIsomorphicLayoutEffect.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../src/utils/useIsomorphicLayoutEffect.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,eAAe,EAAC,MAAM,OAAO,CAAA;AAEhD,QAAA,MAAM,yBAAyB,wBAOhB,CAAA;AAEf,eAAe,yBAAyB,CAAA"}
|
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-20260508173920",
|
|
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",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"ts-toolbelt": "9.6.0",
|
|
179
179
|
"tsx": "4.20.3",
|
|
180
180
|
"typed-css-modules": "^0.9.1",
|
|
181
|
-
"typescript": "^
|
|
181
|
+
"typescript": "^6.0.3",
|
|
182
182
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
183
183
|
"unist-util-find": "3.0.0",
|
|
184
184
|
"unist-util-find-before": "4.0.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.prc-ActionBar-List-9uz46{align-items:flex-start;animation:prc-ActionBar-detect-overflow-mAuJu linear;display:flex;gap:var(--actionbar-gap,var(--stack-gap-condensed,.5rem));height:var(--actionbar-height,var(--control-small-size,1.75rem));list-style:none;margin-bottom:-1px;min-width:0;overflow:hidden;position:relative;animation-timeline:scroll(self block)}.prc-ActionBar-List-9uz46[data-has-overflow=true]{--morebutton-display:flex}.prc-ActionBar-List-9uz46:where([data-size=small]){--actionbar-height:var(--control-small-size,1.75rem)}.prc-ActionBar-List-9uz46:where([data-size=medium]){--actionbar-height:var(--control-medium-size,2rem)}.prc-ActionBar-List-9uz46:where([data-size=large]){--actionbar-height:var(--control-large-size,2.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=none]){--actionbar-gap:0}.prc-ActionBar-List-9uz46:where([data-gap=none]) .prc-ActionBar-Divider-6V8yH{padding:0 var(--base-size-8,.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=condensed]){--actionbar-gap:var(--stack-gap-condensed,0.5rem)}.prc-ActionBar-List-9uz46 [data-overflowing]{visibility:hidden!important}@keyframes prc-ActionBar-detect-overflow-mAuJu{0%,to{--morebutton-display:flex}}.prc-ActionBar-Nav-9spON{align-items:center;display:flex;justify-content:flex-end;padding-inline:var(--base-size-16,1rem)}.prc-ActionBar-Nav-9spON:where([data-flush=true]){padding-inline:0}.prc-ActionBar-Divider-6V8yH:before{background:var(--borderColor-muted,#d1d9e0b3);content:"";display:block;height:var(--base-size-20,1.25rem);margin-top:calc((var(--actionbar-height) - var(--base-size-20,1.25rem))/2);width:var(--borderWidth-thin,.0625rem)}.prc-ActionBar-Group-peNCk,.prc-ActionBar-OverflowContainer-AkYZs{display:flex;gap:inherit}.prc-ActionBar-OverflowContainer-AkYZs{flex-wrap:wrap;justify-content:flex-end;overflow:hidden}.prc-ActionBar-MoreButton-RHqpx{display:var(--morebutton-display,none)}
|
|
2
|
-
/*# sourceMappingURL=ActionBar-e2c44be2.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ActionBar/ActionBar.module.css.js"],"names":[],"mappings":"AAAA,0BASE,sBAAuB,CASvB,oDAAiC,CAhBjC,YAAa,CAQb,yDAAqD,CAGrD,gEAA0D,CAL1D,eAAgB,CADhB,kBAAmB,CAJnB,WAAY,CAQZ,eAAgB,CAVhB,iBAAkB,CAkBlB,qCAsCF,CAnCE,kDACE,yBACF,CAEA,mDACE,oDACF,CAEA,oDACE,kDACF,CAEA,mDACE,mDACF,CAGA,iDACE,iBAKF,CAHE,8EACE,kCACF,CAGF,sDACE,iDACF,CAEA,6CAIE,2BACF,CAGF,+CACE,MAEE,yBACF,CACF,CAEA,yBAIE,kBAAmB,CAHnB,YAAa,CAEb,wBAAyB,CADzB,uCAOF,CAHE,kDACE,gBACF,CAIA,oCAME,6CAAoC,CAFpC,UAAW,CAHX,aAAc,CAEd,kCAA2B,CAK3B,0EAAqE,CANrE,sCAOF,CAQF,kEAJE,YAAa,CACb,WASF,CANA,uCAEE,cAAe,CAEf,wBAAyB,CACzB,eACF,CAEA,gCACE,sCACF","file":"ActionBar-e2c44be2.css","sourcesContent":[".List {\n position: relative;\n display: flex;\n min-width: 0;\n\n /* wonder why this is here */\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: -1px;\n list-style: none;\n align-items: flex-start;\n gap: var(--actionbar-gap, var(--stack-gap-condensed));\n overflow: hidden;\n /* Explicit height is required to clip wrapped items */\n height: var(--actionbar-height, var(--control-small-size));\n\n /* Scroll-based animations have no effect unless the container is scrollable (has overflow, even with overflow:hidden)\n so we can use them to detect overflow. It would be cleaner to use scroll-state container queries for this, but\n browser support for scroll-driven animations is slightly better. */\n animation: detect-overflow linear;\n animation-timeline: scroll(self block);\n\n /* After initial render, JS is used to control visibility which provides progressive enhancement for unsupported browsers */\n &[data-has-overflow='true'] {\n --morebutton-display: flex;\n }\n\n &:where([data-size='small']) {\n --actionbar-height: var(--control-small-size);\n }\n\n &:where([data-size='medium']) {\n --actionbar-height: var(--control-medium-size);\n }\n\n &:where([data-size='large']) {\n --actionbar-height: var(--control-large-size);\n }\n\n /* Gap scale (mirrors Stack) */\n &:where([data-gap='none']) {\n --actionbar-gap: 0;\n\n .Divider {\n padding: 0 var(--base-size-8);\n }\n }\n\n &:where([data-gap='condensed']) {\n --actionbar-gap: var(--stack-gap-condensed);\n }\n\n & [data-overflowing] {\n /* Hide overflowing items. Even though they are clipped by `overflow: hidden`, setting `visibility: hidden` ensures\n they can't accidentally be shown and also hides them from screen readers / keyboard nav. `!important` prevents\n consumers from unintentionally overriding this and breaking accessibility. */\n visibility: hidden !important;\n }\n}\n\n@keyframes detect-overflow {\n 0%,\n 100% {\n --morebutton-display: flex;\n }\n}\n\n.Nav {\n display: flex;\n padding-inline: var(--base-size-16);\n justify-content: flex-end;\n align-items: center;\n\n &:where([data-flush='true']) {\n padding-inline: 0;\n }\n}\n\n.Divider {\n &::before {\n display: block;\n width: var(--borderWidth-thin);\n height: var(--base-size-20);\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-muted);\n /* stylelint-disable-next-line primer/spacing */\n margin-top: calc((var(--actionbar-height) - var(--base-size-20)) / 2);\n }\n}\n\n.Group {\n display: flex;\n gap: inherit;\n}\n\n.OverflowContainer {\n display: flex;\n flex-wrap: wrap;\n gap: inherit;\n justify-content: flex-end;\n overflow: hidden;\n}\n\n.MoreButton {\n display: var(--morebutton-display, none);\n}\n"]}
|