@primer/react 38.2.0-rc.03caca034 → 38.2.0-rc.4d5cab937

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.

Potentially problematic release.


This version of @primer/react might be problematic. Click here for more details.

package/CHANGELOG.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  ### Minor Changes
6
6
 
7
+ - [#7185](https://github.com/primer/react/pull/7185) [`a05b1f9`](https://github.com/primer/react/commit/a05b1f98fa69153f430a2dbde9272c90a78a8423) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - CounterLabel: Add variant prop and deprecate scheme prop
8
+
7
9
  - [#7143](https://github.com/primer/react/pull/7143) [`25a5f99`](https://github.com/primer/react/commit/25a5f99a8a624b066baa8e5b9961f96730f78be8) Thanks [@langermank](https://github.com/langermank)! - Adjust styling for button's that have nested keybinding hints
8
10
 
9
11
  - [#7149](https://github.com/primer/react/pull/7149) [`5e6e04e`](https://github.com/primer/react/commit/5e6e04e9fe0a6c6b3eef166dbc88d5d695ac02f3) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - StateLabel: Add size prop and deprecate variant prop to align with APIs in other components.
@@ -14,6 +16,10 @@
14
16
 
15
17
  - [#7102](https://github.com/primer/react/pull/7102) [`07c9e55`](https://github.com/primer/react/commit/07c9e5573c22c93aed1f1b5768bac755018fb0f5) Thanks [@mperrotti](https://github.com/mperrotti)! - Makes Button and LinkButton 'link' variant respect user underline preference
16
18
 
19
+ - [#7180](https://github.com/primer/react/pull/7180) [`f051a39`](https://github.com/primer/react/commit/f051a39229f55d059d867b59bc468020eda09145) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Feature flags: Remove feature flag `primer_react_use_styled_react_theming`
20
+
21
+ - [#7188](https://github.com/primer/react/pull/7188) [`9403294`](https://github.com/primer/react/commit/94032941033d328aadf1e7caa141eb8e24604485) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Remove unused `underline` prop from LinkButtonProps.
22
+
17
23
  ## 38.1.0
18
24
 
19
25
  ### Minor Changes
@@ -78,7 +78,6 @@ export type IconButtonProps = ButtonA11yProps & {
78
78
  keybindingHint?: string;
79
79
  } & Omit<ButtonBaseProps, 'aria-label' | 'aria-labelledby'>;
80
80
  export type LinkButtonProps = {
81
- underline?: boolean;
82
81
  download?: string;
83
82
  href?: string;
84
83
  hrefLang?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAA;AAClD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAErD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAA;AAEjF,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE/C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAA;AAE7C,KAAK,eAAe,GAChB;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,SAAS,CAAA;CAAC,GACrD;IAAC,YAAY,CAAC,EAAE,SAAS,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAC,CAAA;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IACX;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAK5B,QAAQ,CAA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CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,CAAA;CACjF,CAAA"}
@@ -0,0 +1,2 @@
1
+ .prc-CounterLabel-CounterLabel-ZwXPe{border:var(--borderWidth-thin,.0625rem) solid var(--counter-borderColor,var(--color-counter-border));border-radius:20px;display:inline-block;font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-semibold,600);line-height:1;padding:var(--base-size-2,.125rem) var(--base-size-6,.375rem)}.prc-CounterLabel-CounterLabel-ZwXPe:where([data-variant=primary]){background-color:var(--bgColor-neutral-emphasis,var(--color-fg-subtle));color:var(--fgColor-onEmphasis,var(--color-fg-on-emphasis))}.prc-CounterLabel-CounterLabel-ZwXPe:where([data-variant=secondary]){background-color:var(--bgColor-neutral-muted,var(--color-neutral-subtle));color:var(--fgColor-default,var(--color-fg-default))}.prc-CounterLabel-CounterLabel-ZwXPe:where(:empty){display:none}
2
+ /*# sourceMappingURL=CounterLabel-8c6e8ee4.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/CounterLabel/CounterLabel.module.css"],"names":[],"mappings":"AAAA,qCAOE,oGAAgE,CAEhE,kBAAmB,CARnB,oBAAqB,CAErB,4CAAsC,CACtC,gDAA6C,CAE7C,aAAc,CAJd,6DAsBF,CAbE,kEAEE,uEAAiD,CADjD,2DAEF,CAEA,oEAEE,yEAA8C,CAD9C,oDAEF,CAEA,mDACE,YACF","file":"CounterLabel-44fb5d16.css","sourcesContent":[".CounterLabel {\n display: inline-block;\n padding: var(--base-size-2) var(--base-size-6);\n font-size: var(--text-body-size-small);\n font-weight: var(--base-text-weight-semibold);\n /* stylelint-disable-next-line primer/typography */\n line-height: 1;\n border: var(--borderWidth-thin) solid var(--counter-borderColor);\n /* stylelint-disable-next-line primer/borders */\n border-radius: 20px;\n\n &:where([data-scheme='primary']) {\n color: var(--fgColor-onEmphasis);\n background-color: var(--bgColor-neutral-emphasis);\n }\n\n &:where([data-scheme='secondary']) {\n color: var(--fgColor-default);\n background-color: var(--bgColor-neutral-muted);\n }\n\n &:where(:empty) {\n display: none;\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/CounterLabel/CounterLabel.module.css"],"names":[],"mappings":"AAAA,qCAOE,oGAAgE,CAEhE,kBAAmB,CARnB,oBAAqB,CAErB,4CAAsC,CACtC,gDAA6C,CAE7C,aAAc,CAJd,6DAsBF,CAbE,mEAEE,uEAAiD,CADjD,2DAEF,CAEA,qEAEE,yEAA8C,CAD9C,oDAEF,CAEA,mDACE,YACF","file":"CounterLabel-8c6e8ee4.css","sourcesContent":[".CounterLabel {\n display: inline-block;\n padding: var(--base-size-2) var(--base-size-6);\n font-size: var(--text-body-size-small);\n font-weight: var(--base-text-weight-semibold);\n /* stylelint-disable-next-line primer/typography */\n line-height: 1;\n border: var(--borderWidth-thin) solid var(--counter-borderColor);\n /* stylelint-disable-next-line primer/borders */\n border-radius: 20px;\n\n &:where([data-variant='primary']) {\n color: var(--fgColor-onEmphasis);\n background-color: var(--bgColor-neutral-emphasis);\n }\n\n &:where([data-variant='secondary']) {\n color: var(--fgColor-default);\n background-color: var(--bgColor-neutral-muted);\n }\n\n &:where(:empty) {\n display: none;\n }\n}\n"]}
@@ -1,11 +1,15 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  import type React from 'react';
3
3
  export type CounterLabelProps = React.PropsWithChildren<HTMLAttributes<HTMLSpanElement> & {
4
+ /** @deprecated use variant instead */
4
5
  scheme?: 'primary' | 'secondary';
6
+ variant?: 'primary' | 'secondary';
5
7
  className?: string;
6
8
  }>;
7
9
  declare const CounterLabel: React.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & {
10
+ /** @deprecated use variant instead */
8
11
  scheme?: "primary" | "secondary";
12
+ variant?: "primary" | "secondary";
9
13
  className?: string;
10
14
  } & {
11
15
  children?: React.ReactNode | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/CounterLabel/CounterLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CACrD,cAAc,CAAC,eAAe,CAAC,GAAG;IAChC,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CACF,CAAA;AAED,QAAA,MAAM,YAAY;aALL,SAAS,GAAG,WAAW;gBACpB,MAAM;;;yCAuBrB,CAAA;AAID,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/CounterLabel/CounterLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CACrD,cAAc,CAAC,eAAe,CAAC,GAAG;IAChC,sCAAsC;IACtC,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IAChC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CACF,CAAA;AAED,QAAA,MAAM,YAAY;IAPd,sCAAsC;aAC7B,SAAS,GAAG,WAAW;cACtB,SAAS,GAAG,WAAW;gBACrB,MAAM;;;yCA0BrB,CAAA;AAID,eAAe,YAAY,CAAA"}
@@ -6,14 +6,16 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
  import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
7
7
 
8
8
  const CounterLabel = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
9
- const $ = c(20);
9
+ const $ = c(21);
10
10
  let children;
11
11
  let className;
12
12
  let rest;
13
- let t1;
13
+ let scheme;
14
+ let variant;
14
15
  if ($[0] !== t0) {
15
16
  ({
16
- scheme: t1,
17
+ variant,
18
+ scheme,
17
19
  className,
18
20
  children,
19
21
  ...rest
@@ -22,75 +24,77 @@ const CounterLabel = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
22
24
  $[1] = children;
23
25
  $[2] = className;
24
26
  $[3] = rest;
25
- $[4] = t1;
27
+ $[4] = scheme;
28
+ $[5] = variant;
26
29
  } else {
27
30
  children = $[1];
28
31
  className = $[2];
29
32
  rest = $[3];
30
- t1 = $[4];
33
+ scheme = $[4];
34
+ variant = $[5];
31
35
  }
32
- const scheme = t1 === undefined ? "secondary" : t1;
33
- let t2;
34
- if ($[5] !== children) {
35
- t2 = /*#__PURE__*/jsxs(VisuallyHidden, {
36
+ let t1;
37
+ if ($[6] !== children) {
38
+ t1 = /*#__PURE__*/jsxs(VisuallyHidden, {
36
39
  children: ["\xA0(", children, ")"]
37
40
  });
38
- $[5] = children;
39
- $[6] = t2;
41
+ $[6] = children;
42
+ $[7] = t1;
40
43
  } else {
41
- t2 = $[6];
44
+ t1 = $[7];
42
45
  }
43
- const label = t2;
44
- let t3;
45
- if ($[7] !== forwardedRef || $[8] !== rest || $[9] !== scheme) {
46
- t3 = {
46
+ const label = t1;
47
+ const inferredVariant = variant || scheme || "secondary";
48
+ let t2;
49
+ if ($[8] !== forwardedRef || $[9] !== inferredVariant || $[10] !== rest) {
50
+ t2 = {
47
51
  ref: forwardedRef,
48
52
  "aria-hidden": "true",
49
- "data-scheme": scheme,
53
+ "data-variant": inferredVariant,
50
54
  ...rest
51
55
  };
52
- $[7] = forwardedRef;
53
- $[8] = rest;
54
- $[9] = scheme;
55
- $[10] = t3;
56
+ $[8] = forwardedRef;
57
+ $[9] = inferredVariant;
58
+ $[10] = rest;
59
+ $[11] = t2;
56
60
  } else {
57
- t3 = $[10];
61
+ t2 = $[11];
58
62
  }
59
- const counterProps = t3;
60
- let t4;
61
- if ($[11] !== className) {
62
- t4 = clsx(className, classes.CounterLabel);
63
- $[11] = className;
64
- $[12] = t4;
63
+ const counterProps = t2;
64
+ let t3;
65
+ if ($[12] !== className) {
66
+ t3 = clsx(className, classes.CounterLabel);
67
+ $[12] = className;
68
+ $[13] = t3;
65
69
  } else {
66
- t4 = $[12];
70
+ t3 = $[13];
67
71
  }
68
- let t5;
69
- if ($[13] !== children || $[14] !== counterProps || $[15] !== t4) {
70
- t5 = /*#__PURE__*/jsx("span", {
72
+ let t4;
73
+ if ($[14] !== children || $[15] !== counterProps || $[16] !== t3) {
74
+ t4 = /*#__PURE__*/jsx("span", {
71
75
  ...counterProps,
72
- className: t4,
76
+ className: t3,
73
77
  children: children
74
78
  });
75
- $[13] = children;
76
- $[14] = counterProps;
77
- $[15] = t4;
78
- $[16] = t5;
79
+ $[14] = children;
80
+ $[15] = counterProps;
81
+ $[16] = t3;
82
+ $[17] = t4;
79
83
  } else {
80
- t5 = $[16];
84
+ t4 = $[17];
81
85
  }
82
- let t6;
83
- if ($[17] !== label || $[18] !== t5) {
84
- t6 = /*#__PURE__*/jsxs(Fragment, {
85
- children: [t5, label]
86
+ let t5;
87
+ if ($[18] !== label || $[19] !== t4) {
88
+ t5 = /*#__PURE__*/jsxs(Fragment, {
89
+ children: [t4, label]
86
90
  });
87
- $[17] = label;
88
- $[18] = t5;
89
- $[19] = t6;
91
+ $[18] = label;
92
+ $[19] = t4;
93
+ $[20] = t5;
90
94
  } else {
91
- t6 = $[19];
95
+ t5 = $[20];
92
96
  }
93
- return t6;
97
+ return t5;
94
98
  });
95
99
  CounterLabel.displayName = 'CounterLabel';
96
100
 
@@ -1,4 +1,4 @@
1
- import './CounterLabel-44fb5d16.css';
1
+ import './CounterLabel-8c6e8ee4.css';
2
2
 
3
3
  var classes = {"CounterLabel":"prc-CounterLabel-CounterLabel-ZwXPe"};
4
4
 
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAS9B,CAAA"}
1
+ {"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAQ9B,CAAA"}
@@ -7,8 +7,7 @@ const DefaultFeatureFlags = FeatureFlagScope.create({
7
7
  primer_react_segmented_control_tooltip: false,
8
8
  primer_react_select_panel_fullscreen_on_narrow: false,
9
9
  primer_react_select_panel_order_selected_at_top: false,
10
- primer_react_select_panel_remove_active_descendant: false,
11
- primer_react_use_styled_react_theming: false
10
+ primer_react_select_panel_remove_active_descendant: false
12
11
  });
13
12
 
14
13
  export { DefaultFeatureFlags };
@@ -2429,11 +2429,11 @@
2429
2429
  },
2430
2430
  {
2431
2431
  "id": "components-counterlabel-features--primary-theme",
2432
- "code": "() => <CounterLabel scheme=\"primary\">12</CounterLabel>"
2432
+ "code": "() => <CounterLabel variant=\"primary\">12</CounterLabel>"
2433
2433
  },
2434
2434
  {
2435
2435
  "id": "components-counterlabel-features--secondary-theme",
2436
- "code": "() => <CounterLabel scheme=\"secondary\">12</CounterLabel>"
2436
+ "code": "() => <CounterLabel variant=\"secondary\">12</CounterLabel>"
2437
2437
  }
2438
2438
  ],
2439
2439
  "importPath": "@primer/react",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "38.2.0-rc.03caca034",
4
+ "version": "38.2.0-rc.4d5cab937",
5
5
  "description": "An implementation of GitHub's Primer Design System using React",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -1,2 +0,0 @@
1
- .prc-CounterLabel-CounterLabel-ZwXPe{border:var(--borderWidth-thin,.0625rem) solid var(--counter-borderColor,var(--color-counter-border));border-radius:20px;display:inline-block;font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-semibold,600);line-height:1;padding:var(--base-size-2,.125rem) var(--base-size-6,.375rem)}.prc-CounterLabel-CounterLabel-ZwXPe:where([data-scheme=primary]){background-color:var(--bgColor-neutral-emphasis,var(--color-fg-subtle));color:var(--fgColor-onEmphasis,var(--color-fg-on-emphasis))}.prc-CounterLabel-CounterLabel-ZwXPe:where([data-scheme=secondary]){background-color:var(--bgColor-neutral-muted,var(--color-neutral-subtle));color:var(--fgColor-default,var(--color-fg-default))}.prc-CounterLabel-CounterLabel-ZwXPe:where(:empty){display:none}
2
- /*# sourceMappingURL=CounterLabel-44fb5d16.css.map */