@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.
Files changed (31) hide show
  1. package/dist/build/formats/cssAdvanced.js +2 -2
  2. package/dist/css/base/motion/motion.css +6 -6
  3. package/dist/css/base/size/size.css +6 -6
  4. package/dist/css/base/typography/typography.css +1 -1
  5. package/dist/css/functional/motion/motion.css +1 -1
  6. package/dist/css/functional/size/border.css +9 -9
  7. package/dist/css/functional/size/breakpoints.css +3 -3
  8. package/dist/css/functional/size/size-coarse.css +1 -1
  9. package/dist/css/functional/size/size-fine.css +1 -1
  10. package/dist/css/functional/size/size.css +49 -49
  11. package/dist/css/functional/themes/dark-colorblind.css +1122 -1122
  12. package/dist/css/functional/themes/dark-dimmed.css +1124 -1124
  13. package/dist/css/functional/themes/dark-high-contrast.css +1122 -1122
  14. package/dist/css/functional/themes/dark-tritanopia.css +1122 -1122
  15. package/dist/css/functional/themes/dark.css +1122 -1122
  16. package/dist/css/functional/themes/light-colorblind.css +1122 -1122
  17. package/dist/css/functional/themes/light-high-contrast.css +1122 -1122
  18. package/dist/css/functional/themes/light-tritanopia.css +1122 -1122
  19. package/dist/css/functional/themes/light.css +1122 -1122
  20. package/dist/css/functional/typography/typography.css +28 -28
  21. package/dist/css/primitives.css +105 -105
  22. package/dist/internalCss/dark-colorblind.css +1563 -1563
  23. package/dist/internalCss/dark-dimmed.css +1594 -1594
  24. package/dist/internalCss/dark-high-contrast.css +1563 -1563
  25. package/dist/internalCss/dark-tritanopia.css +1563 -1563
  26. package/dist/internalCss/dark.css +1563 -1563
  27. package/dist/internalCss/light-colorblind.css +1558 -1558
  28. package/dist/internalCss/light-high-contrast.css +1558 -1558
  29. package/dist/internalCss/light-tritanopia.css +1558 -1558
  30. package/dist/internalCss/light.css +1558 -1558
  31. 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-75: 75ms;
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-duration-1000: 1s;
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-2: 0.125rem;
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
  --base-text-weight-light: 300;
3
- --base-text-weight-normal: 400;
4
3
  --base-text-weight-medium: 500;
4
+ --base-text-weight-normal: 400;
5
5
  --base-text-weight-semibold: 600;
6
6
  }
@@ -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
- --boxShadow-thin: inset 0 0 0 0.0625rem; /* Thin shadow for borders */
3
- --boxShadow-thick: inset 0 0 0 0.125rem;
4
- --boxShadow-thicker: inset 0 0 0 0.25rem;
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
- --borderRadius-small: 0.1875rem;
10
- --borderRadius-medium: 0.375rem;
11
- --borderRadius-large: 0.75rem;
12
- --borderRadius-full: 624.9375rem; /* Use this border radius for pill shaped elements */
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,7 +1,7 @@
1
1
  @media (pointer: coarse) {
2
2
  :root {
3
3
  --control-minTarget-auto: 2.75rem;
4
- --controlStack-small-gap-auto: 1rem;
5
4
  --controlStack-medium-gap-auto: 0.75rem;
5
+ --controlStack-small-gap-auto: 1rem;
6
6
  }
7
7
  }
@@ -1,7 +1,7 @@
1
1
  @media (pointer: fine) {
2
2
  :root {
3
3
  --control-minTarget-auto: 1rem;
4
- --controlStack-small-gap-auto: 0.5rem;
5
4
  --controlStack-medium-gap-auto: 0.5rem;
5
+ --controlStack-small-gap-auto: 0.5rem;
6
6
  }
7
7
  }
@@ -1,68 +1,68 @@
1
1
  :root {
2
- --control-minTarget-fine: 1rem;
3
- --control-minTarget-coarse: 2.75rem;
4
- --control-xsmall-size: 1.5rem;
5
- --control-xsmall-lineBoxHeight: 1.25rem;
6
- --control-xsmall-paddingBlock: 0.125rem;
7
- --control-xsmall-paddingInline-condensed: 0.25rem;
8
- --control-xsmall-paddingInline-normal: 0.5rem;
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-gap: 0.5rem;
24
- --control-large-size: 2.5rem;
25
- --control-large-lineBoxHeight: 1.25rem;
26
- --control-large-paddingBlock: 0.625rem;
27
- --control-large-paddingInline-normal: 0.75rem;
28
- --control-large-paddingInline-spacious: 1rem;
29
- --control-large-gap: 0.5rem;
30
- --control-xlarge-size: 3rem;
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-gap: 0.5rem;
36
- --controlStack-small-gap-condensed: 0.5rem;
37
- --controlStack-small-gap-spacious: 1rem;
38
- --controlStack-medium-gap-condensed: 0.5rem;
39
- --controlStack-medium-gap-spacious: 0.75rem;
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
- --spinner-strokeWidth-default: 0.125rem;
44
- --spinner-size-small: 1rem;
45
- --spinner-size-medium: 2rem;
46
- --spinner-size-large: 4rem;
47
- --stack-padding-condensed: 0.5rem;
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-padding-normal: 1rem;
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-borderRadius: 0.375rem;
67
- --overlay-offset: 0.25rem;
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
  }