@primer/react-brand 0.14.0 → 0.15.0-rc.137f531
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/lib/ActionMenu/ActionMenu.d.ts +155 -0
- package/lib/ActionMenu/ActionMenu.visual.spec.d.ts +1 -0
- package/lib/ActionMenu/index.d.ts +1 -0
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +1 -1
- package/lib/css/main.css +211 -24
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +21 -0
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/hooks/useAnchoredPosition.d.ts +20 -0
- package/lib/hooks/useOnClickOutside.d.ts +2 -1
- package/lib/hooks/useRef.d.ts +10 -0
- package/lib/hooks/useResizeObserver.d.ts +6 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/test-utils/fixtures/data.d.ts +1 -0
- package/lib/test-utils/setupTests.d.ts +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import React, { PropsWithChildren, Ref, ReactElement } from 'react';
|
|
2
|
+
import type { BaseProps } from '../component-helpers';
|
|
3
|
+
/**
|
|
4
|
+
* Design tokens
|
|
5
|
+
*/
|
|
6
|
+
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css';
|
|
7
|
+
declare type ActionMenuProps = {
|
|
8
|
+
/**
|
|
9
|
+
* The content of the ActionMenu. Must be an ActionMenu.Button and an ActionMenu.Overlay
|
|
10
|
+
*/
|
|
11
|
+
children: ReactElement<ActionMenuButtonProps> | ReactElement<ActionMenuOverlayProps> | Array<ReactElement<ActionMenuButtonProps> | ReactElement<ActionMenuOverlayProps>>;
|
|
12
|
+
/**
|
|
13
|
+
* Determines whether the ActionMenu is disabled
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Determines whether the ActionMenu is open by default
|
|
18
|
+
*/
|
|
19
|
+
open?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Callback that is called when an item is selected.
|
|
22
|
+
* The value of the selected item is passed as an argument.
|
|
23
|
+
*/
|
|
24
|
+
onSelect?: (newValue: string) => void;
|
|
25
|
+
/**
|
|
26
|
+
* The selection variant of the ActionMenu.
|
|
27
|
+
* - `single`: Only one item can be selected at a time. Menu items as a menuitemradio.
|
|
28
|
+
* - `none`: No items can be selected. Menu items as a menuitem.
|
|
29
|
+
*/
|
|
30
|
+
selectionVariant?: 'single' | 'none';
|
|
31
|
+
/**
|
|
32
|
+
* Test id for the ActionMenu
|
|
33
|
+
*/
|
|
34
|
+
'data-testid'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Horizontal alignment of the menu relative to the bottom of the button
|
|
37
|
+
*/
|
|
38
|
+
menuAlignment?: 'start' | 'end';
|
|
39
|
+
} & BaseProps<HTMLDivElement>;
|
|
40
|
+
declare type ActionMenuButtonProps = PropsWithChildren<Ref<HTMLButtonElement>> & {
|
|
41
|
+
id?: string;
|
|
42
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
43
|
+
className?: string;
|
|
44
|
+
menuOpen?: boolean;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
47
|
+
'data-testid'?: string;
|
|
48
|
+
};
|
|
49
|
+
declare type ActionMenuItemProps = {
|
|
50
|
+
value: string;
|
|
51
|
+
handler?: (newValue: string) => void;
|
|
52
|
+
selected?: boolean;
|
|
53
|
+
type?: 'none' | 'single';
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
} & PropsWithChildren<React.HTMLProps<HTMLLIElement>>;
|
|
56
|
+
declare type ActionMenuOverlayProps = PropsWithChildren<Ref<HTMLUListElement>> & {
|
|
57
|
+
'aria-label': string;
|
|
58
|
+
id?: string;
|
|
59
|
+
ref?: React.RefObject<HTMLUListElement>;
|
|
60
|
+
className?: string;
|
|
61
|
+
'data-testid'?: string;
|
|
62
|
+
menuOpen?: boolean;
|
|
63
|
+
style?: React.CSSProperties;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Use ActionMenu to display a list of actions or selections that expand through a trigger button.
|
|
67
|
+
* @see https://primer.style/brand/components/ActionMenu
|
|
68
|
+
*/
|
|
69
|
+
export declare const ActionMenu: React.NamedExoticComponent<{
|
|
70
|
+
/**
|
|
71
|
+
* The content of the ActionMenu. Must be an ActionMenu.Button and an ActionMenu.Overlay
|
|
72
|
+
*/
|
|
73
|
+
children: ReactElement<ActionMenuButtonProps> | ReactElement<ActionMenuOverlayProps> | Array<ReactElement<ActionMenuButtonProps> | ReactElement<ActionMenuOverlayProps>>;
|
|
74
|
+
/**
|
|
75
|
+
* Determines whether the ActionMenu is disabled
|
|
76
|
+
*/
|
|
77
|
+
disabled?: boolean | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Determines whether the ActionMenu is open by default
|
|
80
|
+
*/
|
|
81
|
+
open?: boolean | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Callback that is called when an item is selected.
|
|
84
|
+
* The value of the selected item is passed as an argument.
|
|
85
|
+
*/
|
|
86
|
+
onSelect?: ((newValue: string) => void) | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* The selection variant of the ActionMenu.
|
|
89
|
+
* - `single`: Only one item can be selected at a time. Menu items as a menuitemradio.
|
|
90
|
+
* - `none`: No items can be selected. Menu items as a menuitem.
|
|
91
|
+
*/
|
|
92
|
+
selectionVariant?: "none" | "single" | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Test id for the ActionMenu
|
|
95
|
+
*/
|
|
96
|
+
'data-testid'?: string | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Horizontal alignment of the menu relative to the bottom of the button
|
|
99
|
+
*/
|
|
100
|
+
menuAlignment?: "start" | "end" | undefined;
|
|
101
|
+
} & BaseProps<HTMLDivElement>> & {
|
|
102
|
+
readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, onSelect }: ActionMenuProps) => JSX.Element;
|
|
103
|
+
} & {
|
|
104
|
+
Button: React.ForwardRefExoticComponent<(Pick<((instance: HTMLButtonElement | null) => void) & {
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
} & {
|
|
107
|
+
id?: string | undefined;
|
|
108
|
+
ref?: React.RefObject<HTMLButtonElement> | undefined;
|
|
109
|
+
className?: string | undefined;
|
|
110
|
+
menuOpen?: boolean | undefined;
|
|
111
|
+
disabled?: boolean | undefined;
|
|
112
|
+
onClick?: ((event: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
113
|
+
'data-testid'?: string | undefined;
|
|
114
|
+
}, "children" | "className" | "id" | "onClick" | "disabled" | "data-testid" | "menuOpen"> | Pick<React.RefObject<HTMLButtonElement> & {
|
|
115
|
+
children?: React.ReactNode;
|
|
116
|
+
} & {
|
|
117
|
+
id?: string | undefined;
|
|
118
|
+
ref?: React.RefObject<HTMLButtonElement> | undefined;
|
|
119
|
+
className?: string | undefined;
|
|
120
|
+
menuOpen?: boolean | undefined;
|
|
121
|
+
disabled?: boolean | undefined;
|
|
122
|
+
onClick?: ((event: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
123
|
+
'data-testid'?: string | undefined;
|
|
124
|
+
}, "children" | "className" | "id" | "onClick" | "disabled" | "current" | "data-testid" | "menuOpen">) & React.RefAttributes<HTMLButtonElement>>;
|
|
125
|
+
Item: ({ children, className, disabled, handler, selected, type, value, ...props }: ActionMenuItemProps) => JSX.Element;
|
|
126
|
+
Overlay: React.ForwardRefExoticComponent<(Pick<((instance: HTMLUListElement | null) => void) & {
|
|
127
|
+
children?: React.ReactNode;
|
|
128
|
+
} & {
|
|
129
|
+
'aria-label': string;
|
|
130
|
+
id?: string | undefined;
|
|
131
|
+
ref?: React.RefObject<HTMLUListElement> | undefined;
|
|
132
|
+
className?: string | undefined;
|
|
133
|
+
'data-testid'?: string | undefined;
|
|
134
|
+
menuOpen?: boolean | undefined;
|
|
135
|
+
style?: React.CSSProperties | undefined;
|
|
136
|
+
}, "children" | "className" | "id" | "style" | "aria-label" | "data-testid" | "menuOpen"> | Pick<React.RefObject<HTMLUListElement> & {
|
|
137
|
+
children?: React.ReactNode;
|
|
138
|
+
} & {
|
|
139
|
+
'aria-label': string;
|
|
140
|
+
id?: string | undefined;
|
|
141
|
+
ref?: React.RefObject<HTMLUListElement> | undefined;
|
|
142
|
+
className?: string | undefined;
|
|
143
|
+
'data-testid'?: string | undefined;
|
|
144
|
+
menuOpen?: boolean | undefined;
|
|
145
|
+
style?: React.CSSProperties | undefined;
|
|
146
|
+
}, "children" | "className" | "id" | "style" | "aria-label" | "current" | "data-testid" | "menuOpen">) & React.RefAttributes<HTMLUListElement>>;
|
|
147
|
+
testIds: {
|
|
148
|
+
root: string;
|
|
149
|
+
readonly button: string;
|
|
150
|
+
readonly overlay: string;
|
|
151
|
+
readonly list: string;
|
|
152
|
+
readonly item: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActionMenu';
|
|
@@ -52,7 +52,7 @@ declare type SearchProps = {
|
|
|
52
52
|
ref: React.RefObject<HTMLInputElement>;
|
|
53
53
|
active?: boolean;
|
|
54
54
|
title?: string;
|
|
55
|
-
handlerFn?: () => void;
|
|
55
|
+
handlerFn?: (event: MouseEvent | TouchEvent | FocusEvent) => void;
|
|
56
56
|
autoComplete?: boolean;
|
|
57
57
|
searchResults?: SubdomainNavBarSearchResultProps[];
|
|
58
58
|
searchTerm?: string;
|
package/lib/css/main.css
CHANGED
|
@@ -89,7 +89,7 @@ select {
|
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Do not edit directly
|
|
92
|
-
* Generated on
|
|
92
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
95
|
:root,
|
|
@@ -629,7 +629,7 @@ select {
|
|
|
629
629
|
|
|
630
630
|
/**
|
|
631
631
|
* Do not edit directly
|
|
632
|
-
* Generated on
|
|
632
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
633
633
|
*/
|
|
634
634
|
|
|
635
635
|
:root {
|
|
@@ -654,7 +654,7 @@ select {
|
|
|
654
654
|
|
|
655
655
|
/**
|
|
656
656
|
* Do not edit directly
|
|
657
|
-
* Generated on
|
|
657
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
658
658
|
*/
|
|
659
659
|
|
|
660
660
|
:root {
|
|
@@ -669,7 +669,7 @@ select {
|
|
|
669
669
|
|
|
670
670
|
/**
|
|
671
671
|
* Do not edit directly
|
|
672
|
-
* Generated on
|
|
672
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
673
673
|
*/
|
|
674
674
|
|
|
675
675
|
:root {
|
|
@@ -848,7 +848,7 @@ select {
|
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
850
|
* Do not edit directly
|
|
851
|
-
* Generated on
|
|
851
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
852
852
|
*/
|
|
853
853
|
|
|
854
854
|
:root {
|
|
@@ -862,7 +862,7 @@ select {
|
|
|
862
862
|
|
|
863
863
|
/**
|
|
864
864
|
* Do not edit directly
|
|
865
|
-
* Generated on
|
|
865
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
866
866
|
*/
|
|
867
867
|
|
|
868
868
|
:root {
|
|
@@ -880,7 +880,7 @@ select {
|
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* Do not edit directly
|
|
883
|
-
* Generated on
|
|
883
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
884
884
|
*/
|
|
885
885
|
|
|
886
886
|
:root,
|
|
@@ -1182,7 +1182,7 @@ select {
|
|
|
1182
1182
|
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Do not edit directly
|
|
1185
|
-
* Generated on
|
|
1185
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
1186
1186
|
*/
|
|
1187
1187
|
|
|
1188
1188
|
:root,
|
|
@@ -1363,6 +1363,17 @@ select {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
|
|
1365
1365
|
@media (forced-colors: active) {
|
|
1366
|
+
.Primer_Brand__Button-module__Button--primary___xIC7G,
|
|
1367
|
+
.Primer_Brand__Button-module__Button--secondary___akMC2,
|
|
1368
|
+
.Primer_Brand__Button-module__Button--disabled___Ba17E:hover {
|
|
1369
|
+
outline: var(--brand-borderWidth-thick) solid transparent;
|
|
1370
|
+
outline-offset: 2px;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.Primer_Brand__Button-module__Button--disabled___Ba17E {
|
|
1374
|
+
outline-color: GrayText;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1366
1377
|
/* Retains focus indicator when in "Windows High Contrast Mode". */
|
|
1367
1378
|
.Primer_Brand__Button-module__Button___lDruK:focus:not(.Primer_Brand__Button-module__Button--disabled___Ba17E[disabled]) {
|
|
1368
1379
|
outline: var(--brand-borderWidth-thick) solid;
|
|
@@ -1619,7 +1630,7 @@ select {
|
|
|
1619
1630
|
|
|
1620
1631
|
/**
|
|
1621
1632
|
* Do not edit directly
|
|
1622
|
-
* Generated on
|
|
1633
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
1623
1634
|
*/
|
|
1624
1635
|
|
|
1625
1636
|
:root {
|
|
@@ -1640,7 +1651,7 @@ select {
|
|
|
1640
1651
|
|
|
1641
1652
|
/**
|
|
1642
1653
|
* Do not edit directly
|
|
1643
|
-
* Generated on
|
|
1654
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
1644
1655
|
*/
|
|
1645
1656
|
|
|
1646
1657
|
:root {
|
|
@@ -2426,7 +2437,7 @@ select {
|
|
|
2426
2437
|
|
|
2427
2438
|
/**
|
|
2428
2439
|
* Do not edit directly
|
|
2429
|
-
* Generated on
|
|
2440
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
2430
2441
|
*/
|
|
2431
2442
|
|
|
2432
2443
|
:root,
|
|
@@ -2454,7 +2465,7 @@ select {
|
|
|
2454
2465
|
|
|
2455
2466
|
/**
|
|
2456
2467
|
* Do not edit directly
|
|
2457
|
-
* Generated on
|
|
2468
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
2458
2469
|
*/
|
|
2459
2470
|
|
|
2460
2471
|
:root,
|
|
@@ -2571,7 +2582,7 @@ select {
|
|
|
2571
2582
|
|
|
2572
2583
|
/**
|
|
2573
2584
|
* Do not edit directly
|
|
2574
|
-
* Generated on
|
|
2585
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
2575
2586
|
*/
|
|
2576
2587
|
|
|
2577
2588
|
:root,
|
|
@@ -2722,7 +2733,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2722
2733
|
|
|
2723
2734
|
/**
|
|
2724
2735
|
* Do not edit directly
|
|
2725
|
-
* Generated on
|
|
2736
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
2726
2737
|
*/
|
|
2727
2738
|
|
|
2728
2739
|
:root {
|
|
@@ -2732,7 +2743,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2732
2743
|
|
|
2733
2744
|
/**
|
|
2734
2745
|
* Do not edit directly
|
|
2735
|
-
* Generated on
|
|
2746
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
2736
2747
|
*/
|
|
2737
2748
|
|
|
2738
2749
|
:root,
|
|
@@ -2802,7 +2813,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2802
2813
|
|
|
2803
2814
|
/**
|
|
2804
2815
|
* Do not edit directly
|
|
2805
|
-
* Generated on
|
|
2816
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
2806
2817
|
*/
|
|
2807
2818
|
|
|
2808
2819
|
:root {
|
|
@@ -2821,7 +2832,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2821
2832
|
|
|
2822
2833
|
/**
|
|
2823
2834
|
* Do not edit directly
|
|
2824
|
-
* Generated on
|
|
2835
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
2825
2836
|
*/
|
|
2826
2837
|
|
|
2827
2838
|
:root,
|
|
@@ -3764,7 +3775,7 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
3764
3775
|
|
|
3765
3776
|
/**
|
|
3766
3777
|
* Do not edit directly
|
|
3767
|
-
* Generated on
|
|
3778
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
3768
3779
|
*/
|
|
3769
3780
|
|
|
3770
3781
|
:root {
|
|
@@ -4306,7 +4317,7 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
4306
4317
|
|
|
4307
4318
|
/**
|
|
4308
4319
|
* Do not edit directly
|
|
4309
|
-
* Generated on
|
|
4320
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
4310
4321
|
*/
|
|
4311
4322
|
|
|
4312
4323
|
:root,
|
|
@@ -4616,7 +4627,7 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
4616
4627
|
|
|
4617
4628
|
/**
|
|
4618
4629
|
* Do not edit directly
|
|
4619
|
-
* Generated on
|
|
4630
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
4620
4631
|
*/
|
|
4621
4632
|
|
|
4622
4633
|
:root,
|
|
@@ -5015,7 +5026,7 @@ html {
|
|
|
5015
5026
|
|
|
5016
5027
|
/**
|
|
5017
5028
|
* Do not edit directly
|
|
5018
|
-
* Generated on
|
|
5029
|
+
* Generated on Thu, 16 Mar 2023 19:18:14 GMT
|
|
5019
5030
|
*/
|
|
5020
5031
|
|
|
5021
5032
|
:root,
|
|
@@ -5196,7 +5207,7 @@ html {
|
|
|
5196
5207
|
|
|
5197
5208
|
/**
|
|
5198
5209
|
* Do not edit directly
|
|
5199
|
-
* Generated on
|
|
5210
|
+
* Generated on Thu, 16 Mar 2023 19:18:14 GMT
|
|
5200
5211
|
*/
|
|
5201
5212
|
|
|
5202
5213
|
:root,
|
|
@@ -5316,7 +5327,7 @@ html {
|
|
|
5316
5327
|
|
|
5317
5328
|
/**
|
|
5318
5329
|
* Do not edit directly
|
|
5319
|
-
* Generated on
|
|
5330
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
5320
5331
|
*/
|
|
5321
5332
|
|
|
5322
5333
|
:root {
|
|
@@ -5328,7 +5339,7 @@ html {
|
|
|
5328
5339
|
|
|
5329
5340
|
/**
|
|
5330
5341
|
* Do not edit directly
|
|
5331
|
-
* Generated on
|
|
5342
|
+
* Generated on Thu, 16 Mar 2023 19:18:13 GMT
|
|
5332
5343
|
*/
|
|
5333
5344
|
|
|
5334
5345
|
:root,
|
|
@@ -5408,3 +5419,179 @@ html {
|
|
|
5408
5419
|
margin-top: var(--base-size-16);
|
|
5409
5420
|
}
|
|
5410
5421
|
|
|
5422
|
+
/**
|
|
5423
|
+
* Do not edit directly
|
|
5424
|
+
* Generated on Thu, 16 Mar 2023 19:18:14 GMT
|
|
5425
|
+
*/
|
|
5426
|
+
|
|
5427
|
+
:root,
|
|
5428
|
+
[data-color-mode="light"] {
|
|
5429
|
+
--brand-ActionMenu-color-border-rest: var(--brand-color-border-default);
|
|
5430
|
+
--brand-ActionMenu-color-border-hover: var(--base-color-scale-black-0);
|
|
5431
|
+
--brand-ActionMenu-color-border-active: var(--base-color-scale-black-0);
|
|
5432
|
+
--brand-ActionMenu-color-item-hover: var(--base-color-scale-gray-1);
|
|
5433
|
+
--brand-ActionMenu-color-scrollbar-thumb-bg: var(--base-color-scale-gray-0);
|
|
5434
|
+
}
|
|
5435
|
+
|
|
5436
|
+
[data-color-mode="dark"] {
|
|
5437
|
+
--brand-ActionMenu-color-border-rest: var(--brand-color-border-default);
|
|
5438
|
+
--brand-ActionMenu-color-border-hover: var(--base-color-scale-white-0);
|
|
5439
|
+
--brand-ActionMenu-color-border-active: var(--base-color-scale-white-0);
|
|
5440
|
+
--brand-ActionMenu-color-item-hover: var(--base-color-scale-gray-6);
|
|
5441
|
+
--brand-ActionMenu-color-scrollbar-thumb-bg: var(--base-color-scale-gray-3);
|
|
5442
|
+
}
|
|
5443
|
+
|
|
5444
|
+
.Primer_Brand__ActionMenu-module__ActionMenu___xAoB5 {
|
|
5445
|
+
position: relative;
|
|
5446
|
+
}
|
|
5447
|
+
|
|
5448
|
+
.Primer_Brand__ActionMenu-module__ActionMenu--disabled___Ic5nl {
|
|
5449
|
+
cursor: not-allowed;
|
|
5450
|
+
}
|
|
5451
|
+
|
|
5452
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG {
|
|
5453
|
+
border-radius: var(--base-size-48);
|
|
5454
|
+
}
|
|
5455
|
+
|
|
5456
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG:focus:not(.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG[disabled]),
|
|
5457
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG.Primer_Brand__ActionMenu-module__focus-visible___hVXW3:not(.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG[disabled]) {
|
|
5458
|
+
box-shadow: 0 0 0 3px var(--brand-color-focus);
|
|
5459
|
+
}
|
|
5460
|
+
|
|
5461
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG:focus:not(.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG[disabled]),
|
|
5462
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG:focus-visible:not(.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG[disabled]) {
|
|
5463
|
+
box-shadow: 0 0 0 3px var(--brand-color-focus);
|
|
5464
|
+
}
|
|
5465
|
+
|
|
5466
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG > span:first-of-type {
|
|
5467
|
+
max-width: 200px;
|
|
5468
|
+
overflow: hidden;
|
|
5469
|
+
text-overflow: ellipsis;
|
|
5470
|
+
white-space: nowrap;
|
|
5471
|
+
}
|
|
5472
|
+
|
|
5473
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button___gqNoG:hover {
|
|
5474
|
+
border-color: var(--brand-ActionMenu-color-border-hover);
|
|
5475
|
+
}
|
|
5476
|
+
|
|
5477
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__menu____B9HP {
|
|
5478
|
+
position: absolute;
|
|
5479
|
+
z-index: 100;
|
|
5480
|
+
padding: var(--base-size-12);
|
|
5481
|
+
margin-top: var(--base-size-8);
|
|
5482
|
+
visibility: hidden;
|
|
5483
|
+
background-color: var(--brand-color-canvas-default);
|
|
5484
|
+
border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
|
|
5485
|
+
border-radius: var(--brand-borderRadius-large);
|
|
5486
|
+
max-height: 460px;
|
|
5487
|
+
overflow-y: auto;
|
|
5488
|
+
box-shadow: 0px 100px 80px rgba(0, 0, 0, 0.01), 0px 41px 33px rgba(0, 0, 0, 0.02), 0px 22px 17px rgba(0, 0, 0, 0.02),
|
|
5489
|
+
0px 12px 10px rgba(0, 0, 0, 0.03), 0px 6px 5px rgba(0, 0, 0, 0.04), 0px 2px 2px rgba(0, 0, 0, 0.07);
|
|
5490
|
+
}
|
|
5491
|
+
|
|
5492
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__menu--visible___dIcw5 {
|
|
5493
|
+
visibility: visible;
|
|
5494
|
+
animation: 189ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running Primer_Brand__ActionMenu-module__overlay-appear___hIYSP;
|
|
5495
|
+
}
|
|
5496
|
+
|
|
5497
|
+
@keyframes Primer_Brand__ActionMenu-module__overlay-appear___hIYSP {
|
|
5498
|
+
0% {
|
|
5499
|
+
opacity: 0;
|
|
5500
|
+
transform: translateY(-10px);
|
|
5501
|
+
}
|
|
5502
|
+
100% {
|
|
5503
|
+
opacity: 1;
|
|
5504
|
+
transform: translateY(0);
|
|
5505
|
+
}
|
|
5506
|
+
}
|
|
5507
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__menu____B9HP::-webkit-scrollbar {
|
|
5508
|
+
width: var(--base-size-12);
|
|
5509
|
+
}
|
|
5510
|
+
|
|
5511
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__menu____B9HP::-webkit-scrollbar-track {
|
|
5512
|
+
border-left: 1px solid var(--brand-color-border-muted);
|
|
5513
|
+
border-top-right-radius: var(--brand-borderRadius-large);
|
|
5514
|
+
border-bottom-right-radius: var(--brand-borderRadius-large);
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5517
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__menu____B9HP::-webkit-scrollbar-thumb {
|
|
5518
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
5519
|
+
border: 1px solid var(--brand-color-border-default);
|
|
5520
|
+
background-color: var(--brand-ActionMenu-color-scrollbar-thumb-bg);
|
|
5521
|
+
}
|
|
5522
|
+
|
|
5523
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item___GxmDr {
|
|
5524
|
+
flex: 1 0 auto;
|
|
5525
|
+
display: grid;
|
|
5526
|
+
align-items: center;
|
|
5527
|
+
padding: var(--base-size-12) var(--base-size-16);
|
|
5528
|
+
overflow: hidden;
|
|
5529
|
+
text-overflow: ellipsis;
|
|
5530
|
+
grid-template-areas: 'leadingVisual text';
|
|
5531
|
+
grid-template-columns: min-content min-content;
|
|
5532
|
+
white-space: pre;
|
|
5533
|
+
list-style: none;
|
|
5534
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
5535
|
+
border-color: var(--brand-ActionMenu-color-border-rest);
|
|
5536
|
+
}
|
|
5537
|
+
|
|
5538
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item___GxmDr[aria-disabled='true'] {
|
|
5539
|
+
cursor: not-allowed;
|
|
5540
|
+
}
|
|
5541
|
+
|
|
5542
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item___GxmDr:hover:not(.Primer_Brand__ActionMenu-module__ActionMenu__item___GxmDr[aria-disabled='true']) {
|
|
5543
|
+
cursor: pointer;
|
|
5544
|
+
background-color: var(--brand-ActionMenu-color-item-hover);
|
|
5545
|
+
}
|
|
5546
|
+
|
|
5547
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item--selection-type-single___ZdivU {
|
|
5548
|
+
padding-right: var(--base-size-48);
|
|
5549
|
+
}
|
|
5550
|
+
|
|
5551
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item___GxmDr.Primer_Brand__ActionMenu-module__focus-visible___hVXW3 {
|
|
5552
|
+
outline: none;
|
|
5553
|
+
box-shadow: 0 0 0 3px var(--brand-color-focus);
|
|
5554
|
+
transition: none;
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5557
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item___GxmDr:focus-visible {
|
|
5558
|
+
outline: none;
|
|
5559
|
+
box-shadow: 0 0 0 3px var(--brand-color-focus);
|
|
5560
|
+
transition: none;
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button--active___HOEZK {
|
|
5564
|
+
border-color: var(--brand-ActionMenu-color-border-active) !important;
|
|
5565
|
+
box-shadow: 0 0 0 3px var(--brand-ActionMenu-color-border-active) !important;
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5568
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__button--active___HOEZK {
|
|
5569
|
+
transition: none;
|
|
5570
|
+
}
|
|
5571
|
+
|
|
5572
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item-leadingVisual___UWjE1 {
|
|
5573
|
+
display: flex;
|
|
5574
|
+
min-width: var(--base-size-16);
|
|
5575
|
+
margin-right: var(--brand-control-medium-gap);
|
|
5576
|
+
color: var(--brand-color-text-default);
|
|
5577
|
+
pointer-events: none;
|
|
5578
|
+
grid-area: leadingVisual / leadingVisual;
|
|
5579
|
+
}
|
|
5580
|
+
|
|
5581
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item-text___K_1vl {
|
|
5582
|
+
grid-area: text / text;
|
|
5583
|
+
line-height: calc(1.42857);
|
|
5584
|
+
}
|
|
5585
|
+
|
|
5586
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item-icon___JyMwz {
|
|
5587
|
+
fill: var(--brand-color-text-default);
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5590
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item-content--disabled___WrxPY {
|
|
5591
|
+
color: var(--base-color-scale-gray-3);
|
|
5592
|
+
}
|
|
5593
|
+
|
|
5594
|
+
.Primer_Brand__ActionMenu-module__ActionMenu__item-icon--disabled___Ebefz {
|
|
5595
|
+
fill: var(--base-color-scale-gray-3);
|
|
5596
|
+
}
|
|
5597
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Thu, 16 Mar 2023 19:18:14 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root,
|
|
7
|
+
[data-color-mode="light"] {
|
|
8
|
+
--brand-ActionMenu-color-border-rest: var(--brand-color-border-default);
|
|
9
|
+
--brand-ActionMenu-color-border-hover: var(--base-color-scale-black-0);
|
|
10
|
+
--brand-ActionMenu-color-border-active: var(--base-color-scale-black-0);
|
|
11
|
+
--brand-ActionMenu-color-item-hover: var(--base-color-scale-gray-1);
|
|
12
|
+
--brand-ActionMenu-color-scrollbar-thumb-bg: var(--base-color-scale-gray-0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-color-mode="dark"] {
|
|
16
|
+
--brand-ActionMenu-color-border-rest: var(--brand-color-border-default);
|
|
17
|
+
--brand-ActionMenu-color-border-hover: var(--base-color-scale-white-0);
|
|
18
|
+
--brand-ActionMenu-color-border-active: var(--base-color-scale-white-0);
|
|
19
|
+
--brand-ActionMenu-color-item-hover: var(--base-color-scale-gray-6);
|
|
20
|
+
--brand-ActionMenu-color-scrollbar-thumb-bg: var(--base-color-scale-gray-3);
|
|
21
|
+
}
|