@primer/react-brand 0.5.1-rc.3eb50cb → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +13 -1
- package/lib/css/main.css +21 -18
- 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/button/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/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/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/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/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/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/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/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/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/forms/TextInput/TextInput.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -300
|
@@ -17,16 +17,24 @@ export declare type SubdomainNavBarProps = {
|
|
|
17
17
|
* Fixes the navigation bar to the top of the viewport. Defaults to `true`.
|
|
18
18
|
*/
|
|
19
19
|
fixed?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Fill the maximum width of the parent container. Defaults to `false`.
|
|
22
|
+
*/
|
|
23
|
+
fullWidth?: boolean;
|
|
20
24
|
/**
|
|
21
25
|
* The title or name of the subdomain. Appears adjacent to the logo and is required for communicating content to assisitive technologies.
|
|
22
26
|
*/
|
|
23
27
|
title: string;
|
|
28
|
+
/**
|
|
29
|
+
* The URL for the site. Typically used to link the titleText prop value to the site root.
|
|
30
|
+
*/
|
|
31
|
+
titleHref?: string;
|
|
24
32
|
/**
|
|
25
33
|
* Optionally change the URL of the logo
|
|
26
34
|
*/
|
|
27
35
|
logoHref?: string;
|
|
28
36
|
};
|
|
29
|
-
declare function Root({ children, fixed, logoHref, title, ...rest }: SubdomainNavBarProps): JSX.Element;
|
|
37
|
+
declare function Root({ children, fixed, fullWidth, logoHref, title, titleHref, ...rest }: SubdomainNavBarProps): JSX.Element;
|
|
30
38
|
declare type LinkProps = {
|
|
31
39
|
href: string;
|
|
32
40
|
} & React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
|
|
@@ -59,5 +67,9 @@ export declare const SubdomainNavBar: typeof Root & {
|
|
|
59
67
|
Search: React.ForwardRefExoticComponent<Pick<SearchProps, "title" | "onChange" | "onSubmit" | "autoComplete" | "active" | "searchResults" | "searchTerm" | "handlerFn"> & React.RefAttributes<unknown>>;
|
|
60
68
|
PrimaryAction: typeof PrimaryAction;
|
|
61
69
|
SecondaryAction: typeof SecondaryAction;
|
|
70
|
+
testIds: {
|
|
71
|
+
root: string;
|
|
72
|
+
readonly innerContainer: string;
|
|
73
|
+
};
|
|
62
74
|
};
|
|
63
75
|
export {};
|
package/lib/css/main.css
CHANGED
|
@@ -91,7 +91,7 @@ select {
|
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Do not edit directly
|
|
94
|
-
* Generated on
|
|
94
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
97
|
:root,
|
|
@@ -631,7 +631,7 @@ select {
|
|
|
631
631
|
|
|
632
632
|
/**
|
|
633
633
|
* Do not edit directly
|
|
634
|
-
* Generated on
|
|
634
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
635
635
|
*/
|
|
636
636
|
|
|
637
637
|
:root {
|
|
@@ -656,7 +656,7 @@ select {
|
|
|
656
656
|
|
|
657
657
|
/**
|
|
658
658
|
* Do not edit directly
|
|
659
|
-
* Generated on
|
|
659
|
+
* Generated on Thu, 06 Oct 2022 13:36:54 GMT
|
|
660
660
|
*/
|
|
661
661
|
|
|
662
662
|
:root {
|
|
@@ -671,7 +671,7 @@ select {
|
|
|
671
671
|
|
|
672
672
|
/**
|
|
673
673
|
* Do not edit directly
|
|
674
|
-
* Generated on
|
|
674
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
675
675
|
*/
|
|
676
676
|
|
|
677
677
|
:root {
|
|
@@ -850,7 +850,7 @@ select {
|
|
|
850
850
|
|
|
851
851
|
/**
|
|
852
852
|
* Do not edit directly
|
|
853
|
-
* Generated on
|
|
853
|
+
* Generated on Thu, 06 Oct 2022 13:36:54 GMT
|
|
854
854
|
*/
|
|
855
855
|
|
|
856
856
|
:root {
|
|
@@ -864,7 +864,7 @@ select {
|
|
|
864
864
|
|
|
865
865
|
/**
|
|
866
866
|
* Do not edit directly
|
|
867
|
-
* Generated on
|
|
867
|
+
* Generated on Thu, 06 Oct 2022 13:36:54 GMT
|
|
868
868
|
*/
|
|
869
869
|
|
|
870
870
|
:root {
|
|
@@ -882,7 +882,7 @@ select {
|
|
|
882
882
|
|
|
883
883
|
/**
|
|
884
884
|
* Do not edit directly
|
|
885
|
-
* Generated on
|
|
885
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
886
886
|
*/
|
|
887
887
|
|
|
888
888
|
:root,
|
|
@@ -1078,7 +1078,7 @@ select {
|
|
|
1078
1078
|
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Do not edit directly
|
|
1081
|
-
* Generated on
|
|
1081
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
1082
1082
|
*/
|
|
1083
1083
|
|
|
1084
1084
|
:root,
|
|
@@ -1217,7 +1217,7 @@ select {
|
|
|
1217
1217
|
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Do not edit directly
|
|
1220
|
-
* Generated on
|
|
1220
|
+
* Generated on Thu, 06 Oct 2022 13:36:54 GMT
|
|
1221
1221
|
*/
|
|
1222
1222
|
|
|
1223
1223
|
:root {
|
|
@@ -1227,7 +1227,7 @@ select {
|
|
|
1227
1227
|
|
|
1228
1228
|
/**
|
|
1229
1229
|
* Do not edit directly
|
|
1230
|
-
* Generated on
|
|
1230
|
+
* Generated on Thu, 06 Oct 2022 13:36:54 GMT
|
|
1231
1231
|
*/
|
|
1232
1232
|
|
|
1233
1233
|
:root {
|
|
@@ -1383,6 +1383,9 @@ select {
|
|
|
1383
1383
|
.Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-inner-container___kdy5Y {
|
|
1384
1384
|
display: flex;
|
|
1385
1385
|
padding: 4px 28px;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-inner-container--centered___FXUTh {
|
|
1386
1389
|
max-width: 1280px;
|
|
1387
1390
|
margin: 0 auto;
|
|
1388
1391
|
}
|
|
@@ -2073,7 +2076,7 @@ select {
|
|
|
2073
2076
|
|
|
2074
2077
|
/**
|
|
2075
2078
|
* Do not edit directly
|
|
2076
|
-
* Generated on
|
|
2079
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
2077
2080
|
*/
|
|
2078
2081
|
|
|
2079
2082
|
:root,
|
|
@@ -2101,7 +2104,7 @@ select {
|
|
|
2101
2104
|
|
|
2102
2105
|
/**
|
|
2103
2106
|
* Do not edit directly
|
|
2104
|
-
* Generated on
|
|
2107
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
2105
2108
|
*/
|
|
2106
2109
|
|
|
2107
2110
|
:root,
|
|
@@ -2206,7 +2209,7 @@ select {
|
|
|
2206
2209
|
|
|
2207
2210
|
/**
|
|
2208
2211
|
* Do not edit directly
|
|
2209
|
-
* Generated on
|
|
2212
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
2210
2213
|
*/
|
|
2211
2214
|
|
|
2212
2215
|
:root,
|
|
@@ -2358,7 +2361,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2358
2361
|
|
|
2359
2362
|
/**
|
|
2360
2363
|
* Do not edit directly
|
|
2361
|
-
* Generated on
|
|
2364
|
+
* Generated on Thu, 06 Oct 2022 13:36:54 GMT
|
|
2362
2365
|
*/
|
|
2363
2366
|
|
|
2364
2367
|
:root {
|
|
@@ -2368,7 +2371,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2368
2371
|
|
|
2369
2372
|
/**
|
|
2370
2373
|
* Do not edit directly
|
|
2371
|
-
* Generated on
|
|
2374
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
2372
2375
|
*/
|
|
2373
2376
|
|
|
2374
2377
|
:root,
|
|
@@ -2438,7 +2441,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2438
2441
|
|
|
2439
2442
|
/**
|
|
2440
2443
|
* Do not edit directly
|
|
2441
|
-
* Generated on
|
|
2444
|
+
* Generated on Thu, 06 Oct 2022 13:36:54 GMT
|
|
2442
2445
|
*/
|
|
2443
2446
|
|
|
2444
2447
|
:root {
|
|
@@ -2457,7 +2460,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2457
2460
|
|
|
2458
2461
|
/**
|
|
2459
2462
|
* Do not edit directly
|
|
2460
|
-
* Generated on
|
|
2463
|
+
* Generated on Thu, 06 Oct 2022 13:36:55 GMT
|
|
2461
2464
|
*/
|
|
2462
2465
|
|
|
2463
2466
|
:root,
|
|
@@ -3156,7 +3159,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
3156
3159
|
|
|
3157
3160
|
/**
|
|
3158
3161
|
* Do not edit directly
|
|
3159
|
-
* Generated on
|
|
3162
|
+
* Generated on Thu, 06 Oct 2022 13:36:54 GMT
|
|
3160
3163
|
*/
|
|
3161
3164
|
|
|
3162
3165
|
:root {
|