@primer/react-brand 0.4.0 → 0.5.0-rc.01a1264
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 +284 -0
- package/lib/Button/Button.d.ts +2 -0
- package/lib/Stack/Stack.d.ts +112 -0
- package/lib/Stack/Stack.visual.spec.d.ts +1 -0
- package/lib/Stack/index.d.ts +1 -0
- package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +6 -0
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +63 -0
- package/lib/SubdomainNavBar/SubdomainNavBar.visual.spec.d.ts +1 -0
- package/lib/SubdomainNavBar/index.d.ts +1 -0
- package/lib/SubdomainNavBar/useVisibilityObserver.d.ts +5 -0
- package/lib/Testimonial/Testimonial.d.ts +72 -0
- package/lib/Testimonial/Testimonial.visual.spec.d.ts +1 -0
- package/lib/Testimonial/index.d.ts +1 -0
- package/lib/css/main.css +1057 -22
- 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 +27 -0
- package/lib/design-tokens/css/tokens/functional/size/border.css +4 -4
- 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 +7 -7
- 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 +15 -15
- 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 +13 -13
- 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 +5 -5
- 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 +7 -7
- 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 +5 -5
- package/lib/design-tokens/ts/tokens/functional/size/border.js +5 -5
- 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 +7 -7
- 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/Checkbox/Checkbox.d.ts +1 -1
- package/lib/forms/Select/Select.d.ts +1 -1
- package/lib/forms/TextInput/TextInput.d.ts +10 -2
- package/lib/hooks/useKeyboardEscape.d.ts +1 -0
- package/lib/hooks/useOnClickOutside.d.ts +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Thu, 29 Sep 2022 17:48:18 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root,
|
|
7
|
+
[data-color-mode="light"] {
|
|
8
|
+
--brand-SubdomainNavBar-canvas-default: hsl(var(--base-color-scale-white-0-hsl) / 50%);
|
|
9
|
+
--brand-SubdomainNavBar-canvas-search: var(--base-color-scale-white-0);
|
|
10
|
+
--brand-SubdomainNavBar-canvas-overflow-default: var(--base-color-scale-white-0);
|
|
11
|
+
--brand-SubdomainNavBar-canvas-overflow-hover: var(--base-color-scale-gray-0);
|
|
12
|
+
--brand-SubdomainNavBar-fg-overflow-default: var(--brand-color-fg-default);
|
|
13
|
+
--brand-SubdomainNavBar-border-nav-default: var(--base-color-scale-gray-9);
|
|
14
|
+
--brand-SubdomainNavBar-border-nav-pressed: var(--base-color-scale-black-0);
|
|
15
|
+
--brand-SubdomainNavBar-border-button-hover: var(--base-color-scale-black-0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-color-mode="dark"] {
|
|
19
|
+
--brand-SubdomainNavBar-canvas-default: hsl(var(--base-color-scale-gray-9-hsl) / 50%);
|
|
20
|
+
--brand-SubdomainNavBar-canvas-search: var(--base-color-scale-black-0);
|
|
21
|
+
--brand-SubdomainNavBar-canvas-overflow-default: var(--base-color-scale-white-0);
|
|
22
|
+
--brand-SubdomainNavBar-canvas-overflow-hover: var(--base-color-scale-gray-0);
|
|
23
|
+
--brand-SubdomainNavBar-fg-overflow-default: var(--brand-color-text-onEmphasis);
|
|
24
|
+
--brand-SubdomainNavBar-border-nav-default: var(--base-color-scale-gray-3);
|
|
25
|
+
--brand-SubdomainNavBar-border-nav-pressed: var(--base-color-scale-white-0);
|
|
26
|
+
--brand-SubdomainNavBar-border-button-hover: var(--base-color-scale-white-0);
|
|
27
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 29 Sep 2022 17:48:18 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
--brand-borderRadius-large: 0.75rem;
|
|
9
9
|
--brand-borderRadius-medium: 0.375rem;
|
|
10
10
|
--brand-borderRadius-small: 0.1875rem;
|
|
11
|
-
--brand-borderWidth-
|
|
12
|
-
--brand-borderWidth-
|
|
11
|
+
--brand-borderWidth-thicker: max(4px, 0.25rem);
|
|
12
|
+
--brand-borderWidth-thick: max(2px, 0.125rem);
|
|
13
13
|
--brand-borderWidth-thin: max(1px, 0.0625rem);
|
|
14
|
+
--brand-borderInset-thicker: inset 0 0 0 var(--brand-borderWidth-thicker);
|
|
14
15
|
--brand-borderInset-thick: inset 0 0 0 var(--brand-borderWidth-thick);
|
|
15
|
-
--brand-borderInset-normal: inset 0 0 0 var(--brand-borderWidth-normal);
|
|
16
16
|
--brand-borderInset-thin: inset 0 0 0 var(--brand-borderWidth-thin);
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 29 Sep 2022 17:48:18 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
--brand-controlStack-medium-gap-condensed: var(--base-size-8);
|
|
12
12
|
--brand-controlStack-small-gap-spacious: var(--base-size-16);
|
|
13
13
|
--brand-controlStack-small-gap-condensed: var(--base-size-8);
|
|
14
|
-
--brand-stack-gap-spacious: var(--base-size-
|
|
15
|
-
--brand-stack-gap-normal: var(--base-size-
|
|
16
|
-
--brand-stack-gap-condensed: var(--base-size-
|
|
17
|
-
--brand-stack-padding-spacious: var(--base-size-
|
|
18
|
-
--brand-stack-padding-normal: var(--base-size-
|
|
19
|
-
--brand-stack-padding-condensed: var(--base-size-
|
|
14
|
+
--brand-stack-gap-spacious: var(--base-size-48);
|
|
15
|
+
--brand-stack-gap-normal: var(--base-size-24);
|
|
16
|
+
--brand-stack-gap-condensed: var(--base-size-16);
|
|
17
|
+
--brand-stack-padding-spacious: var(--base-size-48);
|
|
18
|
+
--brand-stack-padding-normal: var(--base-size-24);
|
|
19
|
+
--brand-stack-padding-condensed: var(--base-size-16);
|
|
20
20
|
--brand-control-xlarge-gap: var(--base-size-8);
|
|
21
21
|
--brand-control-xlarge-paddingInline-spacious: var(--base-size-16);
|
|
22
22
|
--brand-control-xlarge-paddingInline-normal: var(--base-size-12);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 29 Sep 2022 17:48:18 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
@@ -21,34 +21,34 @@ module.exports = {
|
|
|
21
21
|
"thin"
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
|
-
"
|
|
24
|
+
"thick": {
|
|
25
25
|
"value": "inset 0 0 0 max(2px, 0.125rem)",
|
|
26
26
|
"filePath": "tokens/functional/size/border.json",
|
|
27
27
|
"isSource": true,
|
|
28
28
|
"original": {
|
|
29
|
-
"value": "inset 0 0 0 {brand.borderWidth.
|
|
29
|
+
"value": "inset 0 0 0 {brand.borderWidth.thick}"
|
|
30
30
|
},
|
|
31
|
-
"name": "
|
|
31
|
+
"name": "thick",
|
|
32
32
|
"attributes": {},
|
|
33
33
|
"path": [
|
|
34
34
|
"brand",
|
|
35
35
|
"borderInset",
|
|
36
|
-
"
|
|
36
|
+
"thick"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"thicker": {
|
|
40
40
|
"value": "inset 0 0 0 max(4px, 0.25rem)",
|
|
41
41
|
"filePath": "tokens/functional/size/border.json",
|
|
42
42
|
"isSource": true,
|
|
43
43
|
"original": {
|
|
44
|
-
"value": "inset 0 0 0 {brand.borderWidth.
|
|
44
|
+
"value": "inset 0 0 0 {brand.borderWidth.thicker}"
|
|
45
45
|
},
|
|
46
|
-
"name": "
|
|
46
|
+
"name": "thicker",
|
|
47
47
|
"attributes": {},
|
|
48
48
|
"path": [
|
|
49
49
|
"brand",
|
|
50
50
|
"borderInset",
|
|
51
|
-
"
|
|
51
|
+
"thicker"
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -68,34 +68,34 @@ module.exports = {
|
|
|
68
68
|
"thin"
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
-
"
|
|
71
|
+
"thick": {
|
|
72
72
|
"value": "max(2px, 0.125rem)",
|
|
73
73
|
"filePath": "tokens/functional/size/border.json",
|
|
74
74
|
"isSource": true,
|
|
75
75
|
"original": {
|
|
76
76
|
"value": "max(2px, 0.125rem)"
|
|
77
77
|
},
|
|
78
|
-
"name": "
|
|
78
|
+
"name": "thick",
|
|
79
79
|
"attributes": {},
|
|
80
80
|
"path": [
|
|
81
81
|
"brand",
|
|
82
82
|
"borderWidth",
|
|
83
|
-
"
|
|
83
|
+
"thick"
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"
|
|
86
|
+
"thicker": {
|
|
87
87
|
"value": "max(4px, 0.25rem)",
|
|
88
88
|
"filePath": "tokens/functional/size/border.json",
|
|
89
89
|
"isSource": true,
|
|
90
90
|
"original": {
|
|
91
91
|
"value": "max(4px, 0.25rem)"
|
|
92
92
|
},
|
|
93
|
-
"name": "
|
|
93
|
+
"name": "thicker",
|
|
94
94
|
"attributes": {},
|
|
95
95
|
"path": [
|
|
96
96
|
"brand",
|
|
97
97
|
"borderWidth",
|
|
98
|
-
"
|
|
98
|
+
"thicker"
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 29 Sep 2022 17:48:18 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
@@ -556,11 +556,11 @@ module.exports = {
|
|
|
556
556
|
"stack": {
|
|
557
557
|
"padding": {
|
|
558
558
|
"condensed": {
|
|
559
|
-
"value": "
|
|
559
|
+
"value": "1rem",
|
|
560
560
|
"filePath": "tokens/functional/size/size.json",
|
|
561
561
|
"isSource": true,
|
|
562
562
|
"original": {
|
|
563
|
-
"value": "{base.size.
|
|
563
|
+
"value": "{base.size.16}"
|
|
564
564
|
},
|
|
565
565
|
"name": "condensed",
|
|
566
566
|
"attributes": {},
|
|
@@ -572,11 +572,11 @@ module.exports = {
|
|
|
572
572
|
]
|
|
573
573
|
},
|
|
574
574
|
"normal": {
|
|
575
|
-
"value": "
|
|
575
|
+
"value": "1.5rem",
|
|
576
576
|
"filePath": "tokens/functional/size/size.json",
|
|
577
577
|
"isSource": true,
|
|
578
578
|
"original": {
|
|
579
|
-
"value": "{base.size.
|
|
579
|
+
"value": "{base.size.24}"
|
|
580
580
|
},
|
|
581
581
|
"name": "normal",
|
|
582
582
|
"attributes": {},
|
|
@@ -588,11 +588,11 @@ module.exports = {
|
|
|
588
588
|
]
|
|
589
589
|
},
|
|
590
590
|
"spacious": {
|
|
591
|
-
"value": "
|
|
591
|
+
"value": "3rem",
|
|
592
592
|
"filePath": "tokens/functional/size/size.json",
|
|
593
593
|
"isSource": true,
|
|
594
594
|
"original": {
|
|
595
|
-
"value": "{base.size.
|
|
595
|
+
"value": "{base.size.48}"
|
|
596
596
|
},
|
|
597
597
|
"name": "spacious",
|
|
598
598
|
"attributes": {},
|
|
@@ -606,11 +606,11 @@ module.exports = {
|
|
|
606
606
|
},
|
|
607
607
|
"gap": {
|
|
608
608
|
"condensed": {
|
|
609
|
-
"value": "
|
|
609
|
+
"value": "1rem",
|
|
610
610
|
"filePath": "tokens/functional/size/size.json",
|
|
611
611
|
"isSource": true,
|
|
612
612
|
"original": {
|
|
613
|
-
"value": "{base.size.
|
|
613
|
+
"value": "{base.size.16}"
|
|
614
614
|
},
|
|
615
615
|
"name": "condensed",
|
|
616
616
|
"attributes": {},
|
|
@@ -622,11 +622,11 @@ module.exports = {
|
|
|
622
622
|
]
|
|
623
623
|
},
|
|
624
624
|
"normal": {
|
|
625
|
-
"value": "
|
|
625
|
+
"value": "1.5rem",
|
|
626
626
|
"filePath": "tokens/functional/size/size.json",
|
|
627
627
|
"isSource": true,
|
|
628
628
|
"original": {
|
|
629
|
-
"value": "{base.size.
|
|
629
|
+
"value": "{base.size.24}"
|
|
630
630
|
},
|
|
631
631
|
"name": "normal",
|
|
632
632
|
"attributes": {},
|
|
@@ -638,11 +638,11 @@ module.exports = {
|
|
|
638
638
|
]
|
|
639
639
|
},
|
|
640
640
|
"spacious": {
|
|
641
|
-
"value": "
|
|
641
|
+
"value": "3rem",
|
|
642
642
|
"filePath": "tokens/functional/size/size.json",
|
|
643
643
|
"isSource": true,
|
|
644
644
|
"original": {
|
|
645
|
-
"value": "{base.size.
|
|
645
|
+
"value": "{base.size.48}"
|
|
646
646
|
},
|
|
647
647
|
"name": "spacious",
|
|
648
648
|
"attributes": {},
|