@primer/react-brand 0.5.0-rc.fc95189 → 0.5.0
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/Button/Button.d.ts +2 -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/css/main.css +780 -31
- 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 +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 +15 -15
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +11 -11
- 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/Checkbox/Checkbox.d.ts +1 -1
- package/lib/forms/Select/Select.d.ts +1 -1
- package/lib/forms/TextInput/TextInput.d.ts +9 -1
- package/lib/hooks/useKeyboardEscape.d.ts +1 -0
- package/lib/hooks/useOnClickOutside.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -264
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 18:20:23 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, 29 Sep 2022
|
|
3
|
+
* Generated on Thu, 29 Sep 2022 18:20:22 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
--brand-text-letterSpacing-900: -0.01em;
|
|
19
19
|
--brand-text-letterSpacing-800: -0.01em;
|
|
20
20
|
--brand-text-letterSpacing-700: -0.01em;
|
|
21
|
-
--brand-text-lineHeight-1000: 3.
|
|
22
|
-
--brand-text-lineHeight-900: 2.
|
|
23
|
-
--brand-text-lineHeight-800: 2.
|
|
24
|
-
--brand-text-lineHeight-700: 2.
|
|
25
|
-
--brand-text-lineHeight-600:
|
|
26
|
-
--brand-text-lineHeight-500: 1.
|
|
27
|
-
--brand-text-lineHeight-400: 1.
|
|
28
|
-
--brand-text-lineHeight-300: 1.
|
|
29
|
-
--brand-text-lineHeight-200: 1.
|
|
30
|
-
--brand-text-lineHeight-100: 1.
|
|
21
|
+
--brand-text-lineHeight-1000: 3.25rem;
|
|
22
|
+
--brand-text-lineHeight-900: 2.75rem;
|
|
23
|
+
--brand-text-lineHeight-800: 2.25rem;
|
|
24
|
+
--brand-text-lineHeight-700: 2.5rem;
|
|
25
|
+
--brand-text-lineHeight-600: 2rem;
|
|
26
|
+
--brand-text-lineHeight-500: 1.75rem;
|
|
27
|
+
--brand-text-lineHeight-400: 1.5rem;
|
|
28
|
+
--brand-text-lineHeight-300: 1.5rem;
|
|
29
|
+
--brand-text-lineHeight-200: 1.25rem;
|
|
30
|
+
--brand-text-lineHeight-100: 1.25rem;
|
|
31
31
|
--brand-text-size-1000: 3rem;
|
|
32
32
|
--brand-text-size-900: 2.5rem;
|
|
33
33
|
--brand-text-size-800: 2rem;
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
--brand-text-weight-300: var(--base-text-weight-normal);
|
|
49
49
|
--brand-text-weight-200: var(--base-text-weight-normal);
|
|
50
50
|
--brand-text-weight-100: var(--base-text-weight-normal);
|
|
51
|
-
--brand-heading-lineHeight-700:
|
|
52
|
-
--brand-heading-lineHeight-600: 1.
|
|
53
|
-
--brand-heading-lineHeight-500: 1.
|
|
54
|
-
--brand-heading-lineHeight-400: 1.
|
|
51
|
+
--brand-heading-lineHeight-700: 2rem;
|
|
52
|
+
--brand-heading-lineHeight-600: 1.75rem;
|
|
53
|
+
--brand-heading-lineHeight-500: 1.5rem;
|
|
54
|
+
--brand-heading-lineHeight-400: 1.25rem;
|
|
55
55
|
--brand-heading-letterSpacing-700: -0.01em;
|
|
56
56
|
--brand-heading-letterSpacing-600: -0.01em;
|
|
57
57
|
--brand-heading-letterSpacing-500: -0.01em;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu, 29 Sep 2022
|
|
3
|
+
* Generated on Thu, 29 Sep 2022 18:20:22 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
--brand-text-letterSpacing-900: -0.01em;
|
|
19
19
|
--brand-text-letterSpacing-800: -0.01em;
|
|
20
20
|
--brand-text-letterSpacing-700: -0.01em;
|
|
21
|
-
--brand-text-lineHeight-1000: 3.
|
|
22
|
-
--brand-text-lineHeight-900: 2.
|
|
23
|
-
--brand-text-lineHeight-800: 2.
|
|
24
|
-
--brand-text-lineHeight-700: 2.
|
|
25
|
-
--brand-text-lineHeight-600:
|
|
26
|
-
--brand-text-lineHeight-500: 1.
|
|
27
|
-
--brand-text-lineHeight-400: 1.
|
|
28
|
-
--brand-text-lineHeight-300: 1.
|
|
29
|
-
--brand-text-lineHeight-200: 1.
|
|
30
|
-
--brand-text-lineHeight-100: 1.
|
|
21
|
+
--brand-text-lineHeight-1000: 3.25rem;
|
|
22
|
+
--brand-text-lineHeight-900: 2.75rem;
|
|
23
|
+
--brand-text-lineHeight-800: 2.25rem;
|
|
24
|
+
--brand-text-lineHeight-700: 2.5rem;
|
|
25
|
+
--brand-text-lineHeight-600: 2rem;
|
|
26
|
+
--brand-text-lineHeight-500: 1.75rem;
|
|
27
|
+
--brand-text-lineHeight-400: 1.5rem;
|
|
28
|
+
--brand-text-lineHeight-300: 1.5rem;
|
|
29
|
+
--brand-text-lineHeight-200: 1.25rem;
|
|
30
|
+
--brand-text-lineHeight-100: 1.25rem;
|
|
31
31
|
--brand-text-size-1000: 3rem;
|
|
32
32
|
--brand-text-size-900: 2.5rem;
|
|
33
33
|
--brand-text-size-800: 2rem;
|