@primer/react 0.0.0-20260504203423 → 0.0.0-20260504204530
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
|
@@ -76,8 +76,8 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(t0, forwa
|
|
|
76
76
|
ref: buttonRef,
|
|
77
77
|
className: t5,
|
|
78
78
|
role: role,
|
|
79
|
-
"data-component": "ButtonGroup",
|
|
80
79
|
...rest,
|
|
80
|
+
"data-component": "ButtonGroup",
|
|
81
81
|
children: buttons
|
|
82
82
|
});
|
|
83
83
|
$[13] = BaseComponent;
|
|
@@ -70,8 +70,8 @@ const Checkbox = /*#__PURE__*/React.forwardRef(({
|
|
|
70
70
|
/*#__PURE__*/
|
|
71
71
|
// @ts-expect-error inputProp needs a non nullable ref
|
|
72
72
|
jsx("input", {
|
|
73
|
-
"data-component": "Checkbox",
|
|
74
73
|
...inputProps,
|
|
74
|
+
"data-component": "Checkbox",
|
|
75
75
|
className: clsx(className, sharedClasses.Input, classes.Checkbox)
|
|
76
76
|
})
|
|
77
77
|
);
|
|
@@ -77,20 +77,29 @@ const CircleBadge = t0 => {
|
|
|
77
77
|
return t6;
|
|
78
78
|
};
|
|
79
79
|
const CircleBadgeIcon = props => {
|
|
80
|
-
const $ = c(
|
|
80
|
+
const $ = c(5);
|
|
81
81
|
let t0;
|
|
82
|
-
if ($[0] !== props) {
|
|
83
|
-
t0 =
|
|
84
|
-
|
|
85
|
-
className: styles.CircleBadgeIcon,
|
|
86
|
-
...props
|
|
87
|
-
});
|
|
88
|
-
$[0] = props;
|
|
82
|
+
if ($[0] !== props.className) {
|
|
83
|
+
t0 = clsx(styles.CircleBadgeIcon, props.className);
|
|
84
|
+
$[0] = props.className;
|
|
89
85
|
$[1] = t0;
|
|
90
86
|
} else {
|
|
91
87
|
t0 = $[1];
|
|
92
88
|
}
|
|
93
|
-
|
|
89
|
+
let t1;
|
|
90
|
+
if ($[2] !== props || $[3] !== t0) {
|
|
91
|
+
t1 = /*#__PURE__*/jsx(Octicon, {
|
|
92
|
+
...props,
|
|
93
|
+
"data-component": "CircleBadge.Icon",
|
|
94
|
+
className: t0
|
|
95
|
+
});
|
|
96
|
+
$[2] = props;
|
|
97
|
+
$[3] = t0;
|
|
98
|
+
$[4] = t1;
|
|
99
|
+
} else {
|
|
100
|
+
t1 = $[4];
|
|
101
|
+
}
|
|
102
|
+
return t1;
|
|
94
103
|
};
|
|
95
104
|
CircleBadgeIcon.displayName = 'CircleBadge.Icon';
|
|
96
105
|
/**
|
|
@@ -72,8 +72,8 @@ const CounterLabel = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
72
72
|
let t4;
|
|
73
73
|
if ($[14] !== children || $[15] !== counterProps || $[16] !== t3) {
|
|
74
74
|
t4 = /*#__PURE__*/jsx("span", {
|
|
75
|
-
"data-component": "CounterLabel",
|
|
76
75
|
...counterProps,
|
|
76
|
+
"data-component": "CounterLabel",
|
|
77
77
|
className: t3,
|
|
78
78
|
children: children
|
|
79
79
|
});
|
package/package.json
CHANGED