@primer/primitives 10.2.0-rc.356b5bb4 → 10.2.0-rc.fcf6bd37
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/dist/build/formats/cssAdvanced.js +2 -2
- package/dist/css/base/motion/motion.css +6 -6
- package/dist/css/base/size/size.css +6 -6
- package/dist/css/base/typography/typography.css +1 -1
- package/dist/css/functional/motion/motion.css +1 -1
- package/dist/css/functional/size/border.css +9 -9
- package/dist/css/functional/size/breakpoints.css +3 -3
- package/dist/css/functional/size/size-coarse.css +1 -1
- package/dist/css/functional/size/size-fine.css +1 -1
- package/dist/css/functional/size/size.css +49 -49
- package/dist/css/functional/themes/dark-colorblind.css +1122 -1122
- package/dist/css/functional/themes/dark-dimmed.css +1124 -1124
- package/dist/css/functional/themes/dark-high-contrast.css +1122 -1122
- package/dist/css/functional/themes/dark-tritanopia.css +1122 -1122
- package/dist/css/functional/themes/dark.css +1122 -1122
- package/dist/css/functional/themes/light-colorblind.css +1122 -1122
- package/dist/css/functional/themes/light-high-contrast.css +1122 -1122
- package/dist/css/functional/themes/light-tritanopia.css +1122 -1122
- package/dist/css/functional/themes/light.css +1122 -1122
- package/dist/css/functional/typography/typography.css +28 -28
- package/dist/css/primitives.css +105 -105
- package/dist/internalCss/dark-colorblind.css +1563 -1563
- package/dist/internalCss/dark-dimmed.css +1594 -1594
- package/dist/internalCss/dark-high-contrast.css +1563 -1563
- package/dist/internalCss/dark-tritanopia.css +1563 -1563
- package/dist/internalCss/dark.css +1563 -1563
- package/dist/internalCss/light-colorblind.css +1558 -1558
- package/dist/internalCss/light-high-contrast.css +1558 -1558
- package/dist/internalCss/light-tritanopia.css +1558 -1558
- package/dist/internalCss/light.css +1558 -1558
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { format } from 'prettier';
|
|
11
|
-
import { fileHeader, formattedVariables } from 'style-dictionary/utils';
|
|
11
|
+
import { fileHeader, formattedVariables, sortByName } from 'style-dictionary/utils';
|
|
12
12
|
const wrapWithSelector = (css, selector) => {
|
|
13
13
|
// return without selector
|
|
14
14
|
if (selector === false || selector.trim().length === 0)
|
|
@@ -64,7 +64,7 @@ export const cssAdvanced = (_a) => __awaiter(void 0, [_a], void 0, function* ({
|
|
|
64
64
|
for (const query of queries) {
|
|
65
65
|
const { query: queryString, matcher } = query;
|
|
66
66
|
// filter tokens to only include the ones that pass the matcher
|
|
67
|
-
const filteredDictionary = Object.assign(Object.assign({}, dictionary), { allTokens: dictionary.allTokens.filter(matcher || (() => true)) });
|
|
67
|
+
const filteredDictionary = Object.assign(Object.assign({}, dictionary), { allTokens: dictionary.allTokens.filter(matcher || (() => true)).sort(sortByName) });
|
|
68
68
|
// early abort if no matches
|
|
69
69
|
if (!filteredDictionary.allTokens.length)
|
|
70
70
|
continue;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--base-easing-linear: cubic-bezier(0, 0, 1, 1); /* Ideal for non-movement properties, like opacity or background color. */
|
|
3
|
-
--base-easing-easeIn: cubic-bezier(0.7, 0.1, 0.75, 0.9); /* Ideal for movement that starts on the page and ends off the page. */
|
|
4
|
-
--base-easing-easeOut: cubic-bezier(0.16, 1, 0.3, 1); /* Ideal for movement that starts off the page and ends on the page. */
|
|
5
|
-
--base-easing-easeInOut: cubic-bezier(0.6, 0, 0.2, 1); /* Ideal for movement that starts and ends on the page. */
|
|
6
2
|
--base-duration-0: 0ms;
|
|
7
|
-
--base-duration-
|
|
3
|
+
--base-duration-1000: 1s;
|
|
8
4
|
--base-duration-200: 200ms;
|
|
9
5
|
--base-duration-300: 300ms;
|
|
10
6
|
--base-duration-400: 400ms;
|
|
11
7
|
--base-duration-500: 500ms;
|
|
12
8
|
--base-duration-600: 600ms;
|
|
13
9
|
--base-duration-700: 700ms;
|
|
10
|
+
--base-duration-75: 75ms;
|
|
14
11
|
--base-duration-800: 800ms;
|
|
15
12
|
--base-duration-900: 900ms;
|
|
16
|
-
--base-
|
|
13
|
+
--base-easing-easeIn: cubic-bezier(0.7, 0.1, 0.75, 0.9); /* Ideal for movement that starts on the page and ends off the page. */
|
|
14
|
+
--base-easing-easeInOut: cubic-bezier(0.6, 0, 0.2, 1); /* Ideal for movement that starts and ends on the page. */
|
|
15
|
+
--base-easing-easeOut: cubic-bezier(0.16, 1, 0.3, 1); /* Ideal for movement that starts off the page and ends on the page. */
|
|
16
|
+
--base-easing-linear: cubic-bezier(0, 0, 1, 1); /* Ideal for non-movement properties, like opacity or background color. */
|
|
17
17
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--base-size-
|
|
3
|
-
--base-size-4: 0.25rem;
|
|
4
|
-
--base-size-6: 0.375rem;
|
|
5
|
-
--base-size-8: 0.5rem;
|
|
2
|
+
--base-size-112: 7rem;
|
|
6
3
|
--base-size-12: 0.75rem;
|
|
4
|
+
--base-size-128: 8rem;
|
|
7
5
|
--base-size-16: 1rem;
|
|
6
|
+
--base-size-2: 0.125rem;
|
|
8
7
|
--base-size-20: 1.25rem;
|
|
9
8
|
--base-size-24: 1.5rem;
|
|
10
9
|
--base-size-28: 1.75rem;
|
|
11
10
|
--base-size-32: 2rem;
|
|
12
11
|
--base-size-36: 2.25rem;
|
|
12
|
+
--base-size-4: 0.25rem;
|
|
13
13
|
--base-size-40: 2.5rem;
|
|
14
14
|
--base-size-44: 2.75rem;
|
|
15
15
|
--base-size-48: 3rem;
|
|
16
|
+
--base-size-6: 0.375rem;
|
|
16
17
|
--base-size-64: 4rem;
|
|
18
|
+
--base-size-8: 0.5rem;
|
|
17
19
|
--base-size-80: 5rem;
|
|
18
20
|
--base-size-96: 6rem;
|
|
19
|
-
--base-size-112: 7rem;
|
|
20
|
-
--base-size-128: 8rem;
|
|
21
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--motion-loading-delay-default: var(--base-duration-1000); /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
|
|
3
|
+
--motion-skeletonLoader-shimmer-duration-scale: var(--base-duration-1000); /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
|
|
3
4
|
--motion-spinner-duration-rotation: var(--base-duration-1000); /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
|
|
4
5
|
--motion-spinner-easing-rotation: var(--base-easing-linear); /* The easing curve for the "Spinner" loading indicator rotation */
|
|
5
|
-
--motion-skeletonLoader-shimmer-duration-scale: var(--base-duration-1000); /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
|
|
6
6
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
2
|
+
--borderRadius-default: 0.375rem;
|
|
3
|
+
--borderRadius-full: 624.9375rem; /* Use this border radius for pill shaped elements */
|
|
4
|
+
--borderRadius-large: 0.75rem;
|
|
5
|
+
--borderRadius-medium: 0.375rem;
|
|
6
|
+
--borderRadius-small: 0.1875rem;
|
|
5
7
|
--borderWidth-default: 0.0625rem;
|
|
6
|
-
--borderWidth-thin: 0.0625rem;
|
|
7
8
|
--borderWidth-thick: 0.125rem;
|
|
8
9
|
--borderWidth-thicker: 0.25rem;
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--borderRadius-default: 0.375rem;
|
|
10
|
+
--borderWidth-thin: 0.0625rem;
|
|
11
|
+
--boxShadow-thick: inset 0 0 0 0.125rem;
|
|
12
|
+
--boxShadow-thicker: inset 0 0 0 0.25rem;
|
|
13
|
+
--boxShadow-thin: inset 0 0 0 0.0625rem; /* Thin shadow for borders */
|
|
14
14
|
--outline-focus-offset: -0.125rem;
|
|
15
15
|
--outline-focus-width: 0.125rem;
|
|
16
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--breakpoint-xsmall: 20rem;
|
|
3
|
-
--breakpoint-small: 34rem;
|
|
4
|
-
--breakpoint-medium: 48rem;
|
|
5
2
|
--breakpoint-large: 63.25rem;
|
|
3
|
+
--breakpoint-medium: 48rem;
|
|
4
|
+
--breakpoint-small: 34rem;
|
|
6
5
|
--breakpoint-xlarge: 80rem;
|
|
6
|
+
--breakpoint-xsmall: 20rem;
|
|
7
7
|
--breakpoint-xxlarge: 87.5rem;
|
|
8
8
|
}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--control-
|
|
3
|
-
--control-
|
|
4
|
-
--control-
|
|
5
|
-
--control-
|
|
6
|
-
--control-
|
|
7
|
-
--control-
|
|
8
|
-
--control-
|
|
9
|
-
--control-xsmall-paddingInline-spacious: 0.75rem;
|
|
10
|
-
--control-xsmall-gap: 0.25rem;
|
|
11
|
-
--control-small-size: 1.75rem;
|
|
12
|
-
--control-small-lineBoxHeight: 1.25rem;
|
|
13
|
-
--control-small-paddingBlock: 0.25rem;
|
|
14
|
-
--control-small-paddingInline-condensed: 0.5rem;
|
|
15
|
-
--control-small-paddingInline-normal: 0.75rem;
|
|
16
|
-
--control-small-gap: 0.25rem;
|
|
17
|
-
--control-medium-size: 2rem;
|
|
2
|
+
--control-large-gap: 0.5rem;
|
|
3
|
+
--control-large-lineBoxHeight: 1.25rem;
|
|
4
|
+
--control-large-paddingBlock: 0.625rem;
|
|
5
|
+
--control-large-paddingInline-normal: 0.75rem;
|
|
6
|
+
--control-large-paddingInline-spacious: 1rem;
|
|
7
|
+
--control-large-size: 2.5rem;
|
|
8
|
+
--control-medium-gap: 0.5rem;
|
|
18
9
|
--control-medium-lineBoxHeight: 1.25rem;
|
|
19
10
|
--control-medium-paddingBlock: 0.375rem;
|
|
20
11
|
--control-medium-paddingInline-condensed: 0.5rem;
|
|
21
12
|
--control-medium-paddingInline-normal: 0.75rem;
|
|
22
13
|
--control-medium-paddingInline-spacious: 1rem;
|
|
23
|
-
--control-medium-
|
|
24
|
-
--control-
|
|
25
|
-
--control-
|
|
26
|
-
--control-
|
|
27
|
-
--control-
|
|
28
|
-
--control-
|
|
29
|
-
--control-
|
|
30
|
-
--control-
|
|
14
|
+
--control-medium-size: 2rem;
|
|
15
|
+
--control-minTarget-coarse: 2.75rem;
|
|
16
|
+
--control-minTarget-fine: 1rem;
|
|
17
|
+
--control-small-gap: 0.25rem;
|
|
18
|
+
--control-small-lineBoxHeight: 1.25rem;
|
|
19
|
+
--control-small-paddingBlock: 0.25rem;
|
|
20
|
+
--control-small-paddingInline-condensed: 0.5rem;
|
|
21
|
+
--control-small-paddingInline-normal: 0.75rem;
|
|
22
|
+
--control-small-size: 1.75rem;
|
|
23
|
+
--control-xlarge-gap: 0.5rem;
|
|
31
24
|
--control-xlarge-lineBoxHeight: 1.25rem;
|
|
32
25
|
--control-xlarge-paddingBlock: 0.875rem;
|
|
33
26
|
--control-xlarge-paddingInline-normal: 0.75rem;
|
|
34
27
|
--control-xlarge-paddingInline-spacious: 1rem;
|
|
35
|
-
--control-xlarge-
|
|
36
|
-
--
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
28
|
+
--control-xlarge-size: 3rem;
|
|
29
|
+
--control-xsmall-gap: 0.25rem;
|
|
30
|
+
--control-xsmall-lineBoxHeight: 1.25rem;
|
|
31
|
+
--control-xsmall-paddingBlock: 0.125rem;
|
|
32
|
+
--control-xsmall-paddingInline-condensed: 0.25rem;
|
|
33
|
+
--control-xsmall-paddingInline-normal: 0.5rem;
|
|
34
|
+
--control-xsmall-paddingInline-spacious: 0.75rem;
|
|
35
|
+
--control-xsmall-size: 1.5rem;
|
|
40
36
|
--controlStack-large-gap-auto: 0.5rem;
|
|
41
37
|
--controlStack-large-gap-condensed: 0.5rem;
|
|
42
38
|
--controlStack-large-gap-spacious: 0.75rem;
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
48
|
-
--stack-padding-normal: 1rem;
|
|
49
|
-
--stack-padding-spacious: 1.5rem;
|
|
50
|
-
--stack-gap-condensed: 0.5rem;
|
|
51
|
-
--stack-gap-normal: 1rem;
|
|
52
|
-
--stack-gap-spacious: 1.5rem;
|
|
53
|
-
--overlay-width-xsmall: 12rem;
|
|
54
|
-
--overlay-width-small: 20rem;
|
|
55
|
-
--overlay-width-medium: 30rem;
|
|
56
|
-
--overlay-width-large: 40rem;
|
|
57
|
-
--overlay-width-xlarge: 60rem;
|
|
58
|
-
--overlay-height-small: 16rem;
|
|
59
|
-
--overlay-height-medium: 20rem;
|
|
39
|
+
--controlStack-medium-gap-condensed: 0.5rem;
|
|
40
|
+
--controlStack-medium-gap-spacious: 0.75rem;
|
|
41
|
+
--controlStack-small-gap-condensed: 0.5rem;
|
|
42
|
+
--controlStack-small-gap-spacious: 1rem;
|
|
43
|
+
--overlay-borderRadius: 0.375rem;
|
|
60
44
|
--overlay-height-large: 27rem;
|
|
45
|
+
--overlay-height-medium: 20rem;
|
|
46
|
+
--overlay-height-small: 16rem;
|
|
61
47
|
--overlay-height-xlarge: 37.5rem;
|
|
62
|
-
--overlay-
|
|
48
|
+
--overlay-offset: 0.25rem;
|
|
63
49
|
--overlay-padding-condensed: 0.5rem;
|
|
50
|
+
--overlay-padding-normal: 1rem;
|
|
64
51
|
--overlay-paddingBlock-condensed: 0.25rem;
|
|
65
52
|
--overlay-paddingBlock-normal: 0.75rem;
|
|
66
|
-
--overlay-
|
|
67
|
-
--overlay-
|
|
53
|
+
--overlay-width-large: 40rem;
|
|
54
|
+
--overlay-width-medium: 30rem;
|
|
55
|
+
--overlay-width-small: 20rem;
|
|
56
|
+
--overlay-width-xlarge: 60rem;
|
|
57
|
+
--overlay-width-xsmall: 12rem;
|
|
58
|
+
--spinner-size-large: 4rem;
|
|
59
|
+
--spinner-size-medium: 2rem;
|
|
60
|
+
--spinner-size-small: 1rem;
|
|
61
|
+
--spinner-strokeWidth-default: 0.125rem;
|
|
62
|
+
--stack-gap-condensed: 0.5rem;
|
|
63
|
+
--stack-gap-normal: 1rem;
|
|
64
|
+
--stack-gap-spacious: 1.5rem;
|
|
65
|
+
--stack-padding-condensed: 0.5rem;
|
|
66
|
+
--stack-padding-normal: 1rem;
|
|
67
|
+
--stack-padding-spacious: 1.5rem;
|
|
68
68
|
}
|