@primer/react 38.3.0-rc.ec800fb23 → 38.3.0-rc.ef24452b6

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
@@ -6,10 +6,18 @@
6
6
 
7
7
  - [#7200](https://github.com/primer/react/pull/7200) [`0a0c2a0`](https://github.com/primer/react/commit/0a0c2a0daa15ca51e370f638876c79c2c2bb4473) Thanks [@joshblack](https://github.com/joshblack)! - Add `leadingVisual` prop to `UnderlineNav.Item`
8
8
 
9
+ - [#7197](https://github.com/primer/react/pull/7197) [`9605a30`](https://github.com/primer/react/commit/9605a30605d0ecf688e4ae50c70a59622c1a4a08) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Deprecate `icon` prop in favor of `leadingVisual` and fix SecondaryAction styling in Banner.
10
+
9
11
  - [#7220](https://github.com/primer/react/pull/7220) [`62fc3bb`](https://github.com/primer/react/commit/62fc3bb18d988e92786154a5368246782723bcea) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Expose props to allow virtualization in the SelectPanel
10
12
 
13
+ - [#7177](https://github.com/primer/react/pull/7177) [`feb7001`](https://github.com/primer/react/commit/feb7001ccfb4e1f2a4d2f4a41f7acd622eaf784e) Thanks [@joshblack](https://github.com/joshblack)! - Add experimental TopicTag and TopicTag.Group components
14
+
11
15
  ### Patch Changes
12
16
 
17
+ - [#6987](https://github.com/primer/react/pull/6987) [`cd5ab1b`](https://github.com/primer/react/commit/cd5ab1bc588cf111d13cb387c770ddb0b9f39d8e) Thanks [@kerimmoresh](https://github.com/kerimmoresh)! - docs: Fix Typos in comments
18
+
19
+ - [#7223](https://github.com/primer/react/pull/7223) [`f9fb9eb`](https://github.com/primer/react/commit/f9fb9eba8f1b2db8fddd9f6926edf77454146084) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - ActionBar: Add padding to Divider when gap="none".
20
+
13
21
  - [#7134](https://github.com/primer/react/pull/7134) [`585c5fa`](https://github.com/primer/react/commit/585c5fa4864e8bb616495622da49beec009dfbe6) Thanks [@hectahertz](https://github.com/hectahertz)! - SegmentedControl: Remove useResponsiveValue hook from fullWidth and variant props to use `getResponsiveAttributes` instead.
14
22
 
15
23
  - [#7211](https://github.com/primer/react/pull/7211) [`46a7ebe`](https://github.com/primer/react/commit/46a7ebed73ceb6805b863e14ad1ee24dfe9c60cf) Thanks [@langermank](https://github.com/langermank)! - Adjust `ActionList.Item` danger variant CSS to support trailing count/keybinding hint
@@ -0,0 +1,2 @@
1
+ .prc-ActionBar-List-Z4LzW{align-items:center;display:flex;gap:var(--actionbar-gap,var(--stack-gap-condensed,.5rem));list-style:none;margin-bottom:-1px;min-width:0;position:relative;white-space:nowrap}.prc-ActionBar-List-Z4LzW:where([data-gap=none]){--actionbar-gap:0}.prc-ActionBar-List-Z4LzW:where([data-gap=none]) .prc-ActionBar-Divider-CcBO8{padding:0 var(--base-size-8,.5rem)}.prc-ActionBar-List-Z4LzW:where([data-gap=condensed]){--actionbar-gap:var(--stack-gap-condensed,0.5rem)}.prc-ActionBar-Nav-hc-9G{align-items:center;display:flex;justify-content:flex-end;padding-inline:var(--base-size-16,1rem)}.prc-ActionBar-Nav-hc-9G:where([data-flush=true]){padding-inline:0}.prc-ActionBar-Divider-CcBO8:before{background:var(--borderColor-muted,var(--color-border-muted));content:"";display:block;height:var(--base-size-20,1.25rem);width:var(--borderWidth-thin,.0625rem)}.prc-ActionBar-Group-hBx7J{display:flex;gap:inherit}
2
+ /*# sourceMappingURL=ActionBar-a41224b2.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ActionBar/ActionBar.module.css"],"names":[],"mappings":"AAAA,0BAUE,kBAAmB,CARnB,YAAa,CASb,yDAAqD,CAFrD,eAAgB,CAFhB,kBAAmB,CAJnB,WAAY,CAFZ,iBAAkB,CAOlB,kBAiBF,CAXE,iDACE,iBAKF,CAHE,8EACE,kCACF,CAGF,sDACE,iDACF,CAGF,yBAIE,kBAAmB,CAHnB,YAAa,CAEb,wBAAyB,CADzB,uCAOF,CAHE,kDACE,gBACF,CAIA,oCAME,6DAAoC,CAFpC,UAAW,CAHX,aAAc,CAEd,kCAA2B,CAD3B,sCAKF,CAGF,2BACE,YAAa,CACb,WACF","file":"ActionBar-a41224b2.css","sourcesContent":[".List {\n position: relative;\n display: flex;\n min-width: 0;\n\n /* wonder why this is here */\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: -1px;\n white-space: nowrap;\n list-style: none;\n align-items: center;\n gap: var(--actionbar-gap, var(--stack-gap-condensed));\n\n /* Gap scale (mirrors Stack) */\n &:where([data-gap='none']) {\n --actionbar-gap: 0;\n\n .Divider {\n padding: 0 var(--base-size-8);\n }\n }\n\n &:where([data-gap='condensed']) {\n --actionbar-gap: var(--stack-gap-condensed);\n }\n}\n\n.Nav {\n display: flex;\n padding-inline: var(--base-size-16);\n justify-content: flex-end;\n align-items: center;\n\n &:where([data-flush='true']) {\n padding-inline: 0;\n }\n}\n\n.Divider {\n &::before {\n display: block;\n width: var(--borderWidth-thin);\n height: var(--base-size-20);\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-muted);\n }\n}\n\n.Group {\n display: flex;\n gap: inherit;\n}\n"]}
@@ -1,5 +1,5 @@
1
- import './ActionBar-8ed12fe7.css';
1
+ import './ActionBar-a41224b2.css';
2
2
 
3
- var styles = {"List":"prc-ActionBar-List-Z4LzW","Nav":"prc-ActionBar-Nav-hc-9G","Divider":"prc-ActionBar-Divider-CcBO8","Group":"prc-ActionBar-Group-hBx7J"};
3
+ var styles = {"List":"prc-ActionBar-List-Z4LzW","Divider":"prc-ActionBar-Divider-CcBO8","Nav":"prc-ActionBar-Nav-hc-9G","Group":"prc-ActionBar-Group-hBx7J"};
4
4
 
5
5
  export { styles as default };
@@ -24,8 +24,13 @@ export type BannerProps = React.ComponentPropsWithoutRef<'section'> & {
24
24
  hideTitle?: boolean;
25
25
  /**
26
26
  * Provide a custom icon for the Banner. This is only available when `variant` is `info` or `upsell`
27
+ * @deprecated Use `leadingVisual` instead
27
28
  */
28
29
  icon?: React.ReactNode;
30
+ /**
31
+ * Provide a custom leading visual for the Banner. This is only available when `variant` is `info` or `upsell`
32
+ */
33
+ leadingVisual?: React.ReactNode;
29
34
  /**
30
35
  * Optionally provide a handler to be called when the banner is dismissed.
31
36
  * Providing this prop will show a dismiss button.
@@ -79,8 +84,13 @@ export declare const Banner: React.ForwardRefExoticComponent<Omit<React.Detailed
79
84
  hideTitle?: boolean;
80
85
  /**
81
86
  * Provide a custom icon for the Banner. This is only available when `variant` is `info` or `upsell`
87
+ * @deprecated Use `leadingVisual` instead
82
88
  */
83
89
  icon?: React.ReactNode;
90
+ /**
91
+ * Provide a custom leading visual for the Banner. This is only available when `variant` is `info` or `upsell`
92
+ */
93
+ leadingVisual?: React.ReactNode;
84
94
  /**
85
95
  * Optionally provide a handler to be called when the banner is dismissed.
86
96
  * Providing this prop will show a dismiss button.
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../src/Banner/Banner.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,EAAqB,KAAK,WAAW,EAAC,MAAM,WAAW,CAAA;AAI9D,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAE/F,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;AAElF,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,GAAG;IACpE;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE7B;;OAEG;IAC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AAC,QAAQ,EAAE,0BAA0B,CAAC,CAAA;AAI1E,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,CAAA"}
@@ -31,6 +31,7 @@ const Banner = /*#__PURE__*/React.forwardRef(function Banner({
31
31
  description,
32
32
  hideTitle,
33
33
  icon,
34
+ leadingVisual,
34
35
  onDismiss,
35
36
  primaryAction,
36
37
  secondaryAction,
@@ -44,6 +45,7 @@ const Banner = /*#__PURE__*/React.forwardRef(function Banner({
44
45
  const bannerRef = React.useRef(null);
45
46
  const ref = useMergedRefs(forwardRef, bannerRef);
46
47
  const supportsCustomIcon = variant === 'info' || variant === 'upsell';
48
+ const visual = leadingVisual !== null && leadingVisual !== void 0 ? leadingVisual : icon;
47
49
  if (process.env.NODE_ENV !== "production") {
48
50
  // This hook is called consistently depending on the environment
49
51
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -77,7 +79,7 @@ const Banner = /*#__PURE__*/React.forwardRef(function Banner({
77
79
  "data-layout": rest.layout || 'default',
78
80
  children: [/*#__PURE__*/jsx("div", {
79
81
  className: classes.BannerIcon,
80
- children: icon && supportsCustomIcon ? icon : iconForVariant[variant]
82
+ children: visual && supportsCustomIcon ? visual : iconForVariant[variant]
81
83
  }), /*#__PURE__*/jsxs("div", {
82
84
  className: classes.BannerContainer,
83
85
  children: [/*#__PURE__*/jsxs("div", {
@@ -330,7 +332,7 @@ const BannerSecondaryAction = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
330
332
  t2 = /*#__PURE__*/jsx(ButtonComponent, {
331
333
  ref: forwardedRef,
332
334
  className: t1,
333
- variant: "link",
335
+ variant: "invisible",
334
336
  ...rest,
335
337
  children: children
336
338
  });
@@ -6,6 +6,7 @@ export declare const Banner: import("react").ForwardRefExoticComponent<Omit<impo
6
6
  description?: React.ReactNode;
7
7
  hideTitle?: boolean;
8
8
  icon?: React.ReactNode;
9
+ leadingVisual?: React.ReactNode;
9
10
  onDismiss?: () => void;
10
11
  primaryAction?: React.ReactNode;
11
12
  secondaryAction?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EACX,iBAAiB,EAGlB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAEjB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAKjB,CAAA;AAEF,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,GAC3B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EACX,iBAAiB,EAGlB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAEjB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;CAKjB,CAAA;AAEF,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,GAC3B,CAAA"}
@@ -0,0 +1,2 @@
1
+ .prc-TopicTag-TopicTag-FOkf8:where(a){-webkit-text-decoration:none;text-decoration:none}.prc-TopicTag-TopicTag-FOkf8:where(button){align-items:center;appearance:none;background:none;border:0;color:inherit;cursor:pointer;display:inline-flex;font:inherit;margin:0;padding:0;text-align:start}.prc-TopicTag-TopicTag-FOkf8:where(button)::-moz-focus-inner{border:0}.prc-TopicTag-TopicTag-FOkf8{background-color:var(--bgColor-accent-muted,var(--color-accent-subtle));border:var(--borderWidth-thin,.0625rem) solid var(--topicTag-borderColor,transparent);border-radius:var(--borderRadius-full,624.9375rem);color:var(--fgColor-accent,var(--color-accent-fg));display:inline-flex;font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-semibold,600);line-height:var(--text-body-lineHeight-small,1.66667);padding:var(--base-size-2,.125rem) var(--base-size-12,.75rem);white-space:nowrap}.prc-TopicTag-TopicTag-FOkf8:hover{background-color:var(--bgColor-accent-emphasis,var(--color-accent-emphasis));color:var(--fgColor-onEmphasis,var(--color-fg-on-emphasis))}.prc-TopicTag-TopicTag-FOkf8:where(a,button){cursor:pointer;-webkit-user-select:none;user-select:none}
2
+ /*# sourceMappingURL=TopicTag-955c0fbf.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/TopicTag/TopicTag.module.css","../../postcss-preset-primer/src/mixins/buttonReset.css"],"names":[],"mappings":"AACA,sCACE,4BAAqB,CAArB,oBACF,CAGA,2CCKE,kBAAmB,CANnB,eAAgB,CAChB,eAAgB,CAFhB,QAAS,CAMT,aAAc,CAHd,cAAe,CALf,mBAAoB,CAOpB,YAAa,CARb,QAAS,CAET,SAAU,CAKV,gBDAF,CCKE,6DACE,QACF,CDLF,6BACE,uEAA6C,CAO7C,qFAA8E,CAF9E,kDAAuC,CAJvC,kDAA4B,CAO5B,mBAAoB,CANpB,4CAAsC,CACtC,gDAA6C,CAC7C,qDAA8C,CAE9C,6DAA+C,CAG/C,kBAWF,CATE,mCACE,4EAAgD,CAChD,2DACF,CAEA,6CACE,cAAe,CACf,wBAAiB,CAAjB,gBACF","file":"TopicTag-955c0fbf.css","sourcesContent":["/* Add a reset for when TopicTag is an <a> element since our link styles apply an underline text-decoration by default */\n.TopicTag:where(a) {\n text-decoration: none;\n}\n\n/* Add a reset for when TopicTag is a <button> element */\n.TopicTag:where(button) {\n @mixin buttonReset;\n}\n\n.TopicTag {\n background-color: var(--bgColor-accent-muted);\n color: var(--fgColor-accent);\n font-size: var(--text-body-size-small);\n font-weight: var(--base-text-weight-semibold);\n line-height: var(--text-body-lineHeight-small);\n border-radius: var(--borderRadius-full);\n padding: var(--base-size-2) var(--base-size-12);\n border: var(--borderWidth-thin) solid var(--topicTag-borderColor, transparent);\n display: inline-flex;\n white-space: nowrap;\n\n &:hover {\n background-color: var(--bgColor-accent-emphasis);\n color: var(--fgColor-onEmphasis);\n }\n\n &:where(a, button) {\n cursor: pointer;\n user-select: none;\n }\n}\n","@define-mixin buttonReset {\n margin: 0;\n display: inline-flex;\n padding: 0;\n border: 0;\n appearance: none;\n background: none;\n cursor: pointer;\n text-align: start;\n font: inherit;\n color: inherit;\n align-items: center;\n\n &::-moz-focus-inner {\n border: 0;\n }\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import type { ElementType } from 'react';
2
+ type TopicTagProps<As extends ElementType> = {
3
+ /**
4
+ * The HTML element or React component to render as the root element
5
+ */
6
+ as?: As;
7
+ /**
8
+ * Provide a class name for styling on the outermost element
9
+ */
10
+ className?: string;
11
+ } & Omit<React.ComponentPropsWithoutRef<As>, 'as' | 'className'>;
12
+ declare function TopicTag<As extends ElementType = 'a'>({ as, children, className, ...rest }: TopicTagProps<As>): import("react").JSX.Element;
13
+ export { TopicTag };
14
+ export type { TopicTagProps };
15
+ //# sourceMappingURL=TopicTag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopicTag.d.ts","sourceRoot":"","sources":["../../src/TopicTag/TopicTag.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,OAAO,CAAA;AAGtC,KAAK,aAAa,CAAC,EAAE,SAAS,WAAW,IAAI;IAC3C;;OAEG;IACH,EAAE,CAAC,EAAE,EAAE,CAAA;IAEP;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC,CAAA;AAEhE,iBAAS,QAAQ,CAAC,EAAE,SAAS,WAAW,GAAG,GAAG,EAAE,EAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAC,EAAE,aAAa,CAAC,EAAE,CAAC,+BAOpG;AAED,OAAO,EAAC,QAAQ,EAAC,CAAA;AACjB,YAAY,EAAC,aAAa,EAAC,CAAA"}
@@ -0,0 +1,58 @@
1
+ import { c } from 'react-compiler-runtime';
2
+ import { clsx } from 'clsx';
3
+ import classes from './TopicTag.module.css.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function TopicTag(t0) {
7
+ var _as;
8
+ const $ = c(12);
9
+ let as;
10
+ let children;
11
+ let className;
12
+ let rest;
13
+ if ($[0] !== t0) {
14
+ ({
15
+ as,
16
+ children,
17
+ className,
18
+ ...rest
19
+ } = t0);
20
+ $[0] = t0;
21
+ $[1] = as;
22
+ $[2] = children;
23
+ $[3] = className;
24
+ $[4] = rest;
25
+ } else {
26
+ as = $[1];
27
+ children = $[2];
28
+ className = $[3];
29
+ rest = $[4];
30
+ }
31
+ const BaseComponent = (_as = as) !== null && _as !== void 0 ? _as : "a";
32
+ let t1;
33
+ if ($[5] !== className) {
34
+ t1 = clsx(className, classes.TopicTag);
35
+ $[5] = className;
36
+ $[6] = t1;
37
+ } else {
38
+ t1 = $[6];
39
+ }
40
+ let t2;
41
+ if ($[7] !== BaseComponent || $[8] !== children || $[9] !== rest || $[10] !== t1) {
42
+ t2 = /*#__PURE__*/jsx(BaseComponent, {
43
+ ...rest,
44
+ className: t1,
45
+ children: children
46
+ });
47
+ $[7] = BaseComponent;
48
+ $[8] = children;
49
+ $[9] = rest;
50
+ $[10] = t1;
51
+ $[11] = t2;
52
+ } else {
53
+ t2 = $[11];
54
+ }
55
+ return t2;
56
+ }
57
+
58
+ export { TopicTag };
@@ -0,0 +1,5 @@
1
+ import './TopicTag-955c0fbf.css';
2
+
3
+ var classes = {"TopicTag":"prc-TopicTag-TopicTag-FOkf8"};
4
+
5
+ export { classes as default };
@@ -0,0 +1,2 @@
1
+ .prc-TopicTag-TopicTagGroup-rXgAj{column-gap:var(--base-size-2,.125rem);display:flex;flex-wrap:wrap;row-gap:var(--base-size-8,.5rem)}
2
+ /*# sourceMappingURL=TopicTagGroup-785f4d65.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/TopicTag/TopicTagGroup.module.css"],"names":[],"mappings":"AAAA,kCAGE,qCAA8B,CAF9B,YAAa,CACb,cAAe,CAEf,gCACF","file":"TopicTagGroup-785f4d65.css","sourcesContent":[".TopicTagGroup {\n display: flex;\n flex-wrap: wrap;\n column-gap: var(--base-size-2);\n row-gap: var(--base-size-8);\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import type React from 'react';
2
+ type TopicTagGroupProps = React.HTMLAttributes<HTMLElement>;
3
+ declare function TopicTagGroup({ children, className, ...rest }: TopicTagGroupProps): React.JSX.Element;
4
+ export { TopicTagGroup };
5
+ export type { TopicTagGroupProps };
6
+ //# sourceMappingURL=TopicTagGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopicTagGroup.d.ts","sourceRoot":"","sources":["../../src/TopicTag/TopicTagGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAE3D,iBAAS,aAAa,CAAC,EAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAC,EAAE,kBAAkB,qBAMxE;AAED,OAAO,EAAC,aAAa,EAAC,CAAA;AACtB,YAAY,EAAC,kBAAkB,EAAC,CAAA"}
@@ -0,0 +1,51 @@
1
+ import { c } from 'react-compiler-runtime';
2
+ import { clsx } from 'clsx';
3
+ import classes from './TopicTagGroup.module.css.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function TopicTagGroup(t0) {
7
+ const $ = c(10);
8
+ let children;
9
+ let className;
10
+ let rest;
11
+ if ($[0] !== t0) {
12
+ ({
13
+ children,
14
+ className,
15
+ ...rest
16
+ } = t0);
17
+ $[0] = t0;
18
+ $[1] = children;
19
+ $[2] = className;
20
+ $[3] = rest;
21
+ } else {
22
+ children = $[1];
23
+ className = $[2];
24
+ rest = $[3];
25
+ }
26
+ let t1;
27
+ if ($[4] !== className) {
28
+ t1 = clsx(className, classes.TopicTagGroup);
29
+ $[4] = className;
30
+ $[5] = t1;
31
+ } else {
32
+ t1 = $[5];
33
+ }
34
+ let t2;
35
+ if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
36
+ t2 = /*#__PURE__*/jsx("div", {
37
+ ...rest,
38
+ className: t1,
39
+ children: children
40
+ });
41
+ $[6] = children;
42
+ $[7] = rest;
43
+ $[8] = t1;
44
+ $[9] = t2;
45
+ } else {
46
+ t2 = $[9];
47
+ }
48
+ return t2;
49
+ }
50
+
51
+ export { TopicTagGroup };
@@ -0,0 +1,5 @@
1
+ import './TopicTagGroup-785f4d65.css';
2
+
3
+ var classes = {"TopicTagGroup":"prc-TopicTag-TopicTagGroup-rXgAj"};
4
+
5
+ export { classes as default };
@@ -0,0 +1,10 @@
1
+ import { TopicTag as TopicTagImpl } from './TopicTag';
2
+ import type { TopicTagProps } from './TopicTag';
3
+ import { TopicTagGroup } from './TopicTagGroup';
4
+ import type { TopicTagGroupProps } from './TopicTagGroup';
5
+ declare const TopicTag: typeof TopicTagImpl & {
6
+ Group: typeof TopicTagGroup;
7
+ };
8
+ export { TopicTag };
9
+ export type { TopicTagProps, TopicTagGroupProps };
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TopicTag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,IAAI,YAAY,EAAC,MAAM,YAAY,CAAA;AACnD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAA;AAEvD,QAAA,MAAM,QAAQ;;CAEZ,CAAA;AAEF,OAAO,EAAC,QAAQ,EAAC,CAAA;AACjB,YAAY,EAAC,aAAa,EAAE,kBAAkB,EAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { TopicTag as TopicTag$1 } from './TopicTag.js';
2
+ import { TopicTagGroup } from './TopicTagGroup.js';
3
+
4
+ const TopicTag = Object.assign(TopicTag$1, {
5
+ Group: TopicTagGroup
6
+ });
7
+
8
+ export { TopicTag };
@@ -46,4 +46,6 @@ export { IssueLabel } from './IssueLabel';
46
46
  export type { IssueLabelProps } from './IssueLabel';
47
47
  export * from '../KeybindingHint';
48
48
  export * from './Tabs';
49
+ export { TopicTag } from '../TopicTag';
50
+ export type { TopicTagProps, TopicTagGroupProps } from '../TopicTag';
49
51
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/experimental/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,YAAY,EAAC,eAAe,EAAC,MAAM,eAAe,CAAA;AAElD,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAA;AACpC,YAAY,EAAC,eAAe,EAAC,MAAM,WAAW,CAAA;AAE9C,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,kBAAkB,EAAC,MAAM,cAAc,CAAA;AACjE,YAAY,EACV,cAAc,EACd,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACN,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,GACZ,MAAM,cAAc,CAAA;AAErB,cAAc,kBAAkB,CAAA;AAEhC,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAA;AAC9C,YAAY,EAAC,kBAAkB,EAAC,MAAM,kBAA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,iBAAiB,CAAA;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAChD,YAAY,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,iBAAiB,CAAA;AACjF,YAAY,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAA;AACxD,YAAY,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AACvC,YAAY,EAAC,eAAe,EAAC,MAAM,cAAc,CAAA;AAEjD,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AAEtB,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACpC,YAAY,EAAC,aAAa,EAAE,kBAAkB,EAAC,MAAM,aAAa,CAAA"}
@@ -4,6 +4,7 @@ export { Table } from '../DataTable/index.js';
4
4
  export { Dialog } from '../Dialog/Dialog.js';
5
5
  export { default as ActionBar } from '../ActionBar/index.js';
6
6
  export { Stack } from '../Stack/index.js';
7
+ export { TopicTag } from '../TopicTag/index.js';
7
8
  export { ButtonBase } from '../Button/ButtonBase.js';
8
9
  export { DataTable } from '../DataTable/DataTable.js';
9
10
  export { createColumnHelper } from '../DataTable/column.js';
@@ -1346,7 +1346,7 @@
1346
1346
  },
1347
1347
  {
1348
1348
  "id": "components-banner-features--custom-icon",
1349
- "code": "() => {\n return (\n <Banner\n title=\"Upsell\"\n description=\"An example banner with a custom icon\"\n icon={<CopilotIcon />}\n onDismiss={action('onDismiss')}\n variant=\"upsell\"\n />\n )\n}"
1349
+ "code": "() => {\n return (\n <Banner\n title=\"Upsell\"\n description=\"An example banner with a custom icon\"\n leadingVisual={<CopilotIcon />}\n onDismiss={action('onDismiss')}\n variant=\"upsell\"\n />\n )\n}"
1350
1350
  },
1351
1351
  {
1352
1352
  "id": "components-banner-examples--with-announcement",
@@ -1377,7 +1377,13 @@
1377
1377
  {
1378
1378
  "name": "icon",
1379
1379
  "type": "React.ReactNode",
1380
- "description": "Provide a custom icon for the Banner. This is only available when `variant` is `info` or `upsell`"
1380
+ "description": "Provide a custom icon for the Banner. This is only available when `variant` is `info` or `upsell`",
1381
+ "deprecated": true
1382
+ },
1383
+ {
1384
+ "name": "leadingVisual",
1385
+ "type": "React.ReactNode",
1386
+ "description": "Provide a custom leading visual for the Banner. This is only available when `variant` is `info` or `upsell`"
1381
1387
  },
1382
1388
  {
1383
1389
  "name": "onDismiss",
@@ -7996,6 +8002,52 @@
7996
8002
  ],
7997
8003
  "subcomponents": []
7998
8004
  },
8005
+ "topic_tag": {
8006
+ "source": "https://github.com/primer/react/tree/main/packages/react/src/TopicTag",
8007
+ "id": "topic_tag",
8008
+ "name": "TopicTag",
8009
+ "status": "draft",
8010
+ "a11yReviewed": false,
8011
+ "stories": [
8012
+ {
8013
+ "id": "experimental-components-topictag--default",
8014
+ "code": "() => <TopicTag>react</TopicTag>"
8015
+ },
8016
+ {
8017
+ "id": "experimental-components-topictag-features--as-button",
8018
+ "code": "() => <TopicTag as=\"button\">react</TopicTag>"
8019
+ },
8020
+ {
8021
+ "id": "experimental-components-topictag-features--as-group",
8022
+ "code": "() => {\n const tags = [\n 'react',\n 'nodejs',\n 'javascript',\n 'd3',\n 'teachers',\n 'community',\n 'education',\n 'programming',\n 'curriculum',\n 'math',\n ]\n return (\n <TopicTagGroup>\n {tags.map((tag) => (\n <TopicTag key={tag} href={`/topics/${tag}`}>\n {tag}\n </TopicTag>\n ))}\n </TopicTagGroup>\n )\n}"
8023
+ }
8024
+ ],
8025
+ "importPath": "@primer/react/experimental",
8026
+ "props": [
8027
+ {
8028
+ "name": "as",
8029
+ "type": "React.ElementType",
8030
+ "description": "The HTML element or React component to render as the root element"
8031
+ },
8032
+ {
8033
+ "name": "className",
8034
+ "type": "string",
8035
+ "description": "Provide a class name for styling on the outermost element"
8036
+ }
8037
+ ],
8038
+ "subcomponents": [
8039
+ {
8040
+ "name": "TopicTag.Group",
8041
+ "props": [
8042
+ {
8043
+ "name": "className",
8044
+ "type": "string",
8045
+ "description": "Provide a class name for styling on the outermost element"
8046
+ }
8047
+ ]
8048
+ }
8049
+ ]
8050
+ },
7999
8051
  "tree_view": {
8000
8052
  "source": "https://github.com/primer/react/tree/main/packages/react/src/TreeView",
8001
8053
  "id": "tree_view",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "38.3.0-rc.ec800fb23",
4
+ "version": "38.3.0-rc.ef24452b6",
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-ActionBar-List-Z4LzW{align-items:center;display:flex;gap:var(--actionbar-gap,var(--stack-gap-condensed,.5rem));list-style:none;margin-bottom:-1px;min-width:0;position:relative;white-space:nowrap}.prc-ActionBar-List-Z4LzW:where([data-gap=none]){--actionbar-gap:0}.prc-ActionBar-List-Z4LzW:where([data-gap=condensed]){--actionbar-gap:var(--stack-gap-condensed,0.5rem)}.prc-ActionBar-Nav-hc-9G{align-items:center;display:flex;justify-content:flex-end;padding-inline:var(--base-size-16,1rem)}.prc-ActionBar-Nav-hc-9G:where([data-flush=true]){padding-inline:0}.prc-ActionBar-Divider-CcBO8:before{background:var(--borderColor-muted,var(--color-border-muted));content:"";display:block;height:var(--base-size-20,1.25rem);width:var(--borderWidth-thin,.0625rem)}.prc-ActionBar-Group-hBx7J{display:flex;gap:inherit}
2
- /*# sourceMappingURL=ActionBar-8ed12fe7.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/ActionBar/ActionBar.module.css"],"names":[],"mappings":"AAAA,0BAUE,kBAAmB,CARnB,YAAa,CASb,yDAAqD,CAFrD,eAAgB,CAFhB,kBAAmB,CAJnB,WAAY,CAFZ,iBAAkB,CAOlB,kBAaF,CAPE,iDACE,iBACF,CAEA,sDACE,iDACF,CAGF,yBAIE,kBAAmB,CAHnB,YAAa,CAEb,wBAAyB,CADzB,uCAOF,CAHE,kDACE,gBACF,CAIA,oCAME,6DAAoC,CAFpC,UAAW,CAHX,aAAc,CAEd,kCAA2B,CAD3B,sCAKF,CAGF,2BACE,YAAa,CACb,WACF","file":"ActionBar-8ed12fe7.css","sourcesContent":[".List {\n position: relative;\n display: flex;\n min-width: 0;\n\n /* wonder why this is here */\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: -1px;\n white-space: nowrap;\n list-style: none;\n align-items: center;\n gap: var(--actionbar-gap, var(--stack-gap-condensed));\n\n /* Gap scale (mirrors Stack) */\n &:where([data-gap='none']) {\n --actionbar-gap: 0;\n }\n\n &:where([data-gap='condensed']) {\n --actionbar-gap: var(--stack-gap-condensed);\n }\n}\n\n.Nav {\n display: flex;\n padding-inline: var(--base-size-16);\n justify-content: flex-end;\n align-items: center;\n\n &:where([data-flush='true']) {\n padding-inline: 0;\n }\n}\n\n.Divider {\n &::before {\n display: block;\n width: var(--borderWidth-thin);\n height: var(--base-size-20);\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-muted);\n }\n}\n\n.Group {\n display: flex;\n gap: inherit;\n}\n"]}