@primer/react 0.0.0-20260519202353 → 0.0.0-20260519214009

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260519202353
3
+ ## 0.0.0-20260519214009
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -106,7 +106,7 @@ type MetadataProps = React.ComponentPropsWithoutRef<'div'> & {
106
106
  */
107
107
  children: React.ReactNode;
108
108
  };
109
- declare const CardImpl: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
109
+ declare const CardImpl: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLElement>>;
110
110
  declare const CardIcon: {
111
111
  ({ icon: IconComponent, "aria-label": ariaLabel, className }: IconProps): React.JSX.Element;
112
112
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,KAAK,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IAC7E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;IAEzC;;;OAGG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAEjC;;;;;;;OAOG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AAED;;;;;;;GAOG;AACH,KAAK,YAAY,GAAG,aAAa,GAAG;IAClC,EAAE,CAAC,EAAE,KAAK,CAAA;CACX,CAAA;AAED;;;;;;GAMG;AACH,KAAK,gBAAgB,GAAG,aAAa,GAAG;IACtC,EAAE,EAAE,SAA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C,SAAS,CAAA;CAC1B,CAAA;AAED,KAAK,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC3D;;;;;OAKG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,QAAQ,+EA8FZ,CAAA;AAEF,QAAA,MAAM,QAAQ;kEAA+D,SAAS;;CAYrF,CAAA;AAID,QAAA,MAAM,SAAS;uCAAyC,UAAU;;CAIjE,CAAA;AAID;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,WAAW;IAhMf;;OAEG;SACE,YAAY;cACP,KAAK,CAAC,SAAS;4CAqMzB,CAAA;AAEF,QAAA,MAAM,eAAe;IAnMnB;;;OAGG;cACO,KAAK,CAAC,SAAS;8CAwMzB,CAAA;AAEF;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,QAAQ;mBAAgB,SAAS;;CAEtC,CAAA;AAID,QAAA,MAAM,YAAY;IAxLhB;;;;;OAKG;cACO,KAAK,CAAC,SAAS;wCA2LzB,CAAA;AAEF,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,EAAC,CAAA;AAC5F,YAAY,EAAC,YAAY,IAAI,gBAAgB,EAAC,CAAA;AAC9C,YAAY,EAAC,gBAAgB,IAAI,oBAAoB,EAAC,CAAA;AACtD,YAAY,EAAC,SAAS,IAAI,aAAa,EAAC,CAAA;AACxC,YAAY,EAAC,UAAU,IAAI,cAAc,EAAC,CAAA;AAC1C,YAAY,EAAC,SAAS,IAAI,aAAa,EAAC,CAAA;AACxC,YAAY,EAAC,aAAa,IAAI,iBAAiB,EAAC,CAAA"}
package/dist/Card/Card.js CHANGED
@@ -6,41 +6,40 @@ import { warning } from '../utils/warning.js';
6
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
7
 
8
8
  const CardImpl = /*#__PURE__*/forwardRef(function Card(props, ref) {
9
- const $ = c(61);
10
- const t0 = props;
9
+ const $ = c(62);
11
10
  let children;
12
11
  let className;
13
12
  let rest;
13
+ let t0;
14
14
  let t1;
15
15
  let t2;
16
- let t3;
17
- if ($[0] !== t0) {
16
+ if ($[0] !== props) {
18
17
  ({
19
18
  children,
20
19
  className,
21
- padding: t1,
22
- borderRadius: t2,
23
- as: t3,
20
+ padding: t0,
21
+ borderRadius: t1,
22
+ as: t2,
24
23
  ...rest
25
- } = t0);
26
- $[0] = t0;
24
+ } = props);
25
+ $[0] = props;
27
26
  $[1] = children;
28
27
  $[2] = className;
29
28
  $[3] = rest;
30
- $[4] = t1;
31
- $[5] = t2;
32
- $[6] = t3;
29
+ $[4] = t0;
30
+ $[5] = t1;
31
+ $[6] = t2;
33
32
  } else {
34
33
  children = $[1];
35
34
  className = $[2];
36
35
  rest = $[3];
37
- t1 = $[4];
38
- t2 = $[5];
39
- t3 = $[6];
36
+ t0 = $[4];
37
+ t1 = $[5];
38
+ t2 = $[6];
40
39
  }
41
- const padding = t1 === undefined ? "normal" : t1;
42
- const borderRadius = t2 === undefined ? "large" : t2;
43
- const as = t3 === undefined ? "div" : t3;
40
+ const padding = t0 === undefined ? "normal" : t0;
41
+ const borderRadius = t1 === undefined ? "large" : t1;
42
+ const as = t2 === undefined ? "div" : t2;
44
43
  const Component = as;
45
44
  let T0;
46
45
  let description;
@@ -48,15 +47,15 @@ const CardImpl = /*#__PURE__*/forwardRef(function Card(props, ref) {
48
47
  let menu;
49
48
  let metadata;
50
49
  let t10;
51
- let t11;
50
+ let t3;
52
51
  let t4;
53
52
  let t5;
54
53
  let t6;
55
54
  let t7;
56
55
  let t8;
57
56
  let t9;
58
- if ($[7] !== Component || $[8] !== as || $[9] !== borderRadius || $[10] !== children || $[11] !== className || $[12] !== padding || $[13] !== ref || $[14] !== rest) {
59
- t11 = Symbol.for("react.early_return_sentinel");
57
+ if ($[7] !== Component || $[8] !== as || $[9] !== borderRadius || $[10] !== children || $[11] !== className || $[12] !== padding || $[13] !== props || $[14] !== ref || $[15] !== rest) {
58
+ t10 = Symbol.for("react.early_return_sentinel");
60
59
  bb0: {
61
60
  let icon = null;
62
61
  let image = null;
@@ -96,62 +95,59 @@ const CardImpl = /*#__PURE__*/forwardRef(function Card(props, ref) {
96
95
  const hasSlotChildren = icon || image || heading || description || metadata || menu;
97
96
  const isEmpty = !hasSlotChildren && childArray.length === 0;
98
97
  process.env.NODE_ENV !== "production" ? warning(isEmpty, "The <Card> component was rendered with no children and will not render. Provide either Card subcomponents (Card.Heading, Card.Description, etc.) or custom content.") : void 0;
99
- const ariaLabel = rest["aria-label"];
100
- const ariaLabelledby = rest["aria-labelledby"];
101
- process.env.NODE_ENV !== "production" ? warning(as === "section" && !ariaLabel && !ariaLabelledby, "The <Card> component used with `as=\"section\"` requires either `aria-label` or `aria-labelledby` so screen-reader users can identify the labelled region. Typically `aria-labelledby` should reference the id of the `Card.Heading`.") : void 0;
98
+ process.env.NODE_ENV !== "production" ? warning(as === "section" && !("aria-label" in props) && !("aria-labelledby" in props), "The <Card> component used with `as=\"section\"` requires either `aria-label` or `aria-labelledby` so screen-reader users can identify the labelled region. Typically `aria-labelledby` should reference the id of the `Card.Heading`.") : void 0;
102
99
  if (isEmpty) {
103
- t11 = null;
100
+ t10 = null;
104
101
  break bb0;
105
102
  }
106
103
  if (!hasSlotChildren) {
107
- const t12 = ref;
108
- let t13;
109
- if ($[28] !== className) {
110
- t13 = clsx(classes.Card, className);
111
- $[28] = className;
112
- $[29] = t13;
104
+ let t11;
105
+ if ($[29] !== className) {
106
+ t11 = clsx(classes.Card, className);
107
+ $[29] = className;
108
+ $[30] = t11;
113
109
  } else {
114
- t13 = $[29];
110
+ t11 = $[30];
115
111
  }
116
- let t14;
117
- if ($[30] !== Component || $[31] !== borderRadius || $[32] !== children || $[33] !== padding || $[34] !== rest || $[35] !== t12 || $[36] !== t13) {
118
- t14 = /*#__PURE__*/jsx(Component, {
119
- ref: t12,
120
- className: t13,
112
+ let t12;
113
+ if ($[31] !== Component || $[32] !== borderRadius || $[33] !== children || $[34] !== padding || $[35] !== ref || $[36] !== rest || $[37] !== t11) {
114
+ t12 = /*#__PURE__*/jsx(Component, {
115
+ ref: ref,
116
+ className: t11,
121
117
  "data-component": "Card",
122
118
  "data-padding": padding,
123
119
  "data-border-radius": borderRadius,
124
120
  ...rest,
125
121
  children: children
126
122
  });
127
- $[30] = Component;
128
- $[31] = borderRadius;
129
- $[32] = children;
130
- $[33] = padding;
131
- $[34] = rest;
132
- $[35] = t12;
133
- $[36] = t13;
134
- $[37] = t14;
123
+ $[31] = Component;
124
+ $[32] = borderRadius;
125
+ $[33] = children;
126
+ $[34] = padding;
127
+ $[35] = ref;
128
+ $[36] = rest;
129
+ $[37] = t11;
130
+ $[38] = t12;
135
131
  } else {
136
- t14 = $[37];
132
+ t12 = $[38];
137
133
  }
138
- t11 = t14;
134
+ t10 = t12;
139
135
  break bb0;
140
136
  }
141
137
  T0 = Component;
142
- t4 = ref;
143
- if ($[38] !== className) {
144
- t5 = clsx(classes.Card, className);
145
- $[38] = className;
146
- $[39] = t5;
138
+ t3 = ref;
139
+ if ($[39] !== className) {
140
+ t4 = clsx(classes.Card, className);
141
+ $[39] = className;
142
+ $[40] = t4;
147
143
  } else {
148
- t5 = $[39];
144
+ t4 = $[40];
149
145
  }
150
- t6 = "Card";
151
- t7 = padding;
152
- t8 = borderRadius;
153
- t9 = rest;
154
- t10 = (image || icon) && /*#__PURE__*/jsx("div", {
146
+ t5 = "Card";
147
+ t6 = padding;
148
+ t7 = borderRadius;
149
+ t8 = rest;
150
+ t9 = (image || icon) && /*#__PURE__*/jsx("div", {
155
151
  className: clsx(classes.CardHeader, image && classes.CardHeaderEdgeToEdge),
156
152
  children: image || icon
157
153
  });
@@ -162,111 +158,112 @@ const CardImpl = /*#__PURE__*/forwardRef(function Card(props, ref) {
162
158
  $[10] = children;
163
159
  $[11] = className;
164
160
  $[12] = padding;
165
- $[13] = ref;
166
- $[14] = rest;
167
- $[15] = T0;
168
- $[16] = description;
169
- $[17] = heading;
170
- $[18] = menu;
171
- $[19] = metadata;
172
- $[20] = t10;
173
- $[21] = t11;
174
- $[22] = t4;
175
- $[23] = t5;
176
- $[24] = t6;
177
- $[25] = t7;
178
- $[26] = t8;
179
- $[27] = t9;
161
+ $[13] = props;
162
+ $[14] = ref;
163
+ $[15] = rest;
164
+ $[16] = T0;
165
+ $[17] = description;
166
+ $[18] = heading;
167
+ $[19] = menu;
168
+ $[20] = metadata;
169
+ $[21] = t10;
170
+ $[22] = t3;
171
+ $[23] = t4;
172
+ $[24] = t5;
173
+ $[25] = t6;
174
+ $[26] = t7;
175
+ $[27] = t8;
176
+ $[28] = t9;
180
177
  } else {
181
- T0 = $[15];
182
- description = $[16];
183
- heading = $[17];
184
- menu = $[18];
185
- metadata = $[19];
186
- t10 = $[20];
187
- t11 = $[21];
188
- t4 = $[22];
189
- t5 = $[23];
190
- t6 = $[24];
191
- t7 = $[25];
192
- t8 = $[26];
193
- t9 = $[27];
178
+ T0 = $[16];
179
+ description = $[17];
180
+ heading = $[18];
181
+ menu = $[19];
182
+ metadata = $[20];
183
+ t10 = $[21];
184
+ t3 = $[22];
185
+ t4 = $[23];
186
+ t5 = $[24];
187
+ t6 = $[25];
188
+ t7 = $[26];
189
+ t8 = $[27];
190
+ t9 = $[28];
194
191
  }
195
- if (t11 !== Symbol.for("react.early_return_sentinel")) {
196
- return t11;
192
+ if (t10 !== Symbol.for("react.early_return_sentinel")) {
193
+ return t10;
197
194
  }
198
- let t12;
199
- if ($[40] !== description || $[41] !== heading) {
200
- t12 = /*#__PURE__*/jsxs("div", {
195
+ let t11;
196
+ if ($[41] !== description || $[42] !== heading) {
197
+ t11 = /*#__PURE__*/jsxs("div", {
201
198
  className: classes.CardContent,
202
199
  children: [heading, description]
203
200
  });
204
- $[40] = description;
205
- $[41] = heading;
206
- $[42] = t12;
201
+ $[41] = description;
202
+ $[42] = heading;
203
+ $[43] = t11;
207
204
  } else {
208
- t12 = $[42];
205
+ t11 = $[43];
209
206
  }
210
- let t13;
211
- if ($[43] !== metadata) {
212
- t13 = metadata ? /*#__PURE__*/jsx("div", {
207
+ let t12;
208
+ if ($[44] !== metadata) {
209
+ t12 = metadata ? /*#__PURE__*/jsx("div", {
213
210
  className: classes.CardMetadataContainer,
214
211
  children: metadata
215
212
  }) : null;
216
- $[43] = metadata;
217
- $[44] = t13;
213
+ $[44] = metadata;
214
+ $[45] = t12;
218
215
  } else {
219
- t13 = $[44];
216
+ t12 = $[45];
220
217
  }
221
- let t14;
222
- if ($[45] !== t12 || $[46] !== t13) {
223
- t14 = /*#__PURE__*/jsxs("div", {
218
+ let t13;
219
+ if ($[46] !== t11 || $[47] !== t12) {
220
+ t13 = /*#__PURE__*/jsxs("div", {
224
221
  className: classes.CardBody,
225
- children: [t12, t13]
222
+ children: [t11, t12]
226
223
  });
227
- $[45] = t12;
228
- $[46] = t13;
229
- $[47] = t14;
224
+ $[46] = t11;
225
+ $[47] = t12;
226
+ $[48] = t13;
230
227
  } else {
231
- t14 = $[47];
228
+ t13 = $[48];
232
229
  }
233
- let t15;
234
- if ($[48] !== menu) {
235
- t15 = menu ? /*#__PURE__*/jsx("div", {
230
+ let t14;
231
+ if ($[49] !== menu) {
232
+ t14 = menu ? /*#__PURE__*/jsx("div", {
236
233
  className: classes.CardMenu,
237
234
  children: menu
238
235
  }) : null;
239
- $[48] = menu;
240
- $[49] = t15;
236
+ $[49] = menu;
237
+ $[50] = t14;
241
238
  } else {
242
- t15 = $[49];
239
+ t14 = $[50];
243
240
  }
244
- let t16;
245
- if ($[50] !== T0 || $[51] !== t10 || $[52] !== t14 || $[53] !== t15 || $[54] !== t4 || $[55] !== t5 || $[56] !== t6 || $[57] !== t7 || $[58] !== t8 || $[59] !== t9) {
246
- t16 = /*#__PURE__*/jsxs(T0, {
247
- ref: t4,
248
- className: t5,
249
- "data-component": t6,
250
- "data-padding": t7,
251
- "data-border-radius": t8,
252
- ...t9,
253
- children: [t10, t14, t15]
241
+ let t15;
242
+ if ($[51] !== T0 || $[52] !== t13 || $[53] !== t14 || $[54] !== t3 || $[55] !== t4 || $[56] !== t5 || $[57] !== t6 || $[58] !== t7 || $[59] !== t8 || $[60] !== t9) {
243
+ t15 = /*#__PURE__*/jsxs(T0, {
244
+ ref: t3,
245
+ className: t4,
246
+ "data-component": t5,
247
+ "data-padding": t6,
248
+ "data-border-radius": t7,
249
+ ...t8,
250
+ children: [t9, t13, t14]
254
251
  });
255
- $[50] = T0;
256
- $[51] = t10;
257
- $[52] = t14;
258
- $[53] = t15;
259
- $[54] = t4;
260
- $[55] = t5;
261
- $[56] = t6;
262
- $[57] = t7;
263
- $[58] = t8;
264
- $[59] = t9;
265
- $[60] = t16;
252
+ $[51] = T0;
253
+ $[52] = t13;
254
+ $[53] = t14;
255
+ $[54] = t3;
256
+ $[55] = t4;
257
+ $[56] = t5;
258
+ $[57] = t6;
259
+ $[58] = t7;
260
+ $[59] = t8;
261
+ $[60] = t9;
262
+ $[61] = t15;
266
263
  } else {
267
- t16 = $[60];
264
+ t15 = $[61];
268
265
  }
269
- return t16;
266
+ return t15;
270
267
  });
271
268
  const CardIcon = t0 => {
272
269
  const $ = c(10);
@@ -1,5 +1,5 @@
1
1
  import type { CardProps, CardIconProps, CardImageProps, CardHeadingProps, CardDescriptionProps, CardMenuProps, CardMetadataProps } from './Card';
2
- declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>> & {
2
+ declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLElement>> & {
3
3
  Icon: {
4
4
  ({ icon: IconComponent, "aria-label": ariaLabel, className }: CardIconProps): import("react").JSX.Element;
5
5
  displayName: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "0.0.0-20260519202353",
4
+ "version": "0.0.0-20260519214009",
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",