@primer/react 37.32.0-rc.528af41bb → 37.32.0-rc.6c9ce56d4

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.
@@ -64,7 +64,7 @@ const ArrowIndicator = t0 => {
64
64
  };
65
65
  const Select = /*#__PURE__*/React.forwardRef((t0, ref) => {
66
66
  var _ref, _defaultValue;
67
- const $ = c(39);
67
+ const $ = c(41);
68
68
  let block;
69
69
  let children;
70
70
  let className;
@@ -119,93 +119,101 @@ const Select = /*#__PURE__*/React.forwardRef((t0, ref) => {
119
119
  sx = $[11];
120
120
  validationStatus = $[12];
121
121
  }
122
- const t1 = validationStatus === "error" ? "true" : "false";
123
- const t2 = disabled && classes.Disabled;
124
- let t3;
125
- if ($[13] !== className || $[14] !== t2) {
126
- t3 = clsx(className, classes.Select, t2);
122
+ let t1;
123
+ if ($[13] !== className) {
124
+ t1 = clsx(classes.TextInputWrapper, className);
127
125
  $[13] = className;
128
- $[14] = t2;
126
+ $[14] = t1;
127
+ } else {
128
+ t1 = $[14];
129
+ }
130
+ const t2 = validationStatus === "error" ? "true" : "false";
131
+ const t3 = disabled && classes.Disabled;
132
+ let t4;
133
+ if ($[15] !== t3) {
134
+ t4 = clsx(classes.Select, t3);
129
135
  $[15] = t3;
136
+ $[16] = t4;
130
137
  } else {
131
- t3 = $[15];
138
+ t4 = $[16];
132
139
  }
133
- const t4 = Boolean(placeholder);
134
- const t5 = (_ref = (_defaultValue = defaultValue) !== null && _defaultValue !== void 0 ? _defaultValue : placeholder) !== null && _ref !== void 0 ? _ref : undefined;
135
- let t6;
136
- if ($[16] !== placeholder || $[17] !== required) {
137
- t6 = placeholder && /*#__PURE__*/jsx("option", {
140
+ const t5 = Boolean(placeholder);
141
+ const t6 = (_ref = (_defaultValue = defaultValue) !== null && _defaultValue !== void 0 ? _defaultValue : placeholder) !== null && _ref !== void 0 ? _ref : undefined;
142
+ let t7;
143
+ if ($[17] !== placeholder || $[18] !== required) {
144
+ t7 = placeholder && /*#__PURE__*/jsx("option", {
138
145
  value: "",
139
146
  disabled: required,
140
147
  hidden: required,
141
148
  children: placeholder
142
149
  });
143
- $[16] = placeholder;
144
- $[17] = required;
145
- $[18] = t6;
150
+ $[17] = placeholder;
151
+ $[18] = required;
152
+ $[19] = t7;
146
153
  } else {
147
- t6 = $[18];
154
+ t7 = $[19];
148
155
  }
149
- let t7;
150
- if ($[19] !== children || $[20] !== disabled || $[21] !== ref || $[22] !== required || $[23] !== rest || $[24] !== t1 || $[25] !== t3 || $[26] !== t4 || $[27] !== t5 || $[28] !== t6) {
151
- t7 = /*#__PURE__*/jsxs("select", {
156
+ let t8;
157
+ if ($[20] !== children || $[21] !== disabled || $[22] !== ref || $[23] !== required || $[24] !== rest || $[25] !== t2 || $[26] !== t4 || $[27] !== t5 || $[28] !== t6 || $[29] !== t7) {
158
+ t8 = /*#__PURE__*/jsxs("select", {
152
159
  ...rest,
153
160
  ref: ref,
154
161
  required: required,
155
162
  disabled: disabled,
156
- "aria-invalid": t1,
157
- className: t3,
158
- "data-hasplaceholder": t4,
159
- defaultValue: t5,
160
- children: [t6, children]
163
+ "aria-invalid": t2,
164
+ className: t4,
165
+ "data-hasplaceholder": t5,
166
+ defaultValue: t6,
167
+ children: [t7, children]
161
168
  });
162
- $[19] = children;
163
- $[20] = disabled;
164
- $[21] = ref;
165
- $[22] = required;
166
- $[23] = rest;
167
- $[24] = t1;
168
- $[25] = t3;
169
+ $[20] = children;
170
+ $[21] = disabled;
171
+ $[22] = ref;
172
+ $[23] = required;
173
+ $[24] = rest;
174
+ $[25] = t2;
169
175
  $[26] = t4;
170
176
  $[27] = t5;
171
177
  $[28] = t6;
172
178
  $[29] = t7;
179
+ $[30] = t8;
173
180
  } else {
174
- t7 = $[29];
181
+ t8 = $[30];
175
182
  }
176
- let t8;
177
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
178
- t8 = /*#__PURE__*/jsx(ArrowIndicator, {
183
+ let t9;
184
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
185
+ t9 = /*#__PURE__*/jsx(ArrowIndicator, {
179
186
  className: classes.ArrowIndicator
180
187
  });
181
- $[30] = t8;
188
+ $[31] = t9;
182
189
  } else {
183
- t8 = $[30];
190
+ t9 = $[31];
184
191
  }
185
- let t9;
186
- if ($[31] !== block || $[32] !== contrast || $[33] !== disabled || $[34] !== size || $[35] !== sx || $[36] !== t7 || $[37] !== validationStatus) {
187
- t9 = /*#__PURE__*/jsxs(TextInputWrapper, {
192
+ let t10;
193
+ if ($[32] !== block || $[33] !== contrast || $[34] !== disabled || $[35] !== size || $[36] !== sx || $[37] !== t1 || $[38] !== t8 || $[39] !== validationStatus) {
194
+ t10 = /*#__PURE__*/jsxs(TextInputWrapper, {
188
195
  block: block,
189
196
  contrast: contrast,
190
197
  disabled: disabled,
191
198
  size: size,
192
199
  validationStatus: validationStatus,
193
- className: classes.TextInputWrapper,
200
+ className: t1,
194
201
  sx: sx,
195
- children: [t7, t8]
202
+ children: [t8, t9]
196
203
  });
197
- $[31] = block;
198
- $[32] = contrast;
199
- $[33] = disabled;
200
- $[34] = size;
201
- $[35] = sx;
202
- $[36] = t7;
203
- $[37] = validationStatus;
204
- $[38] = t9;
204
+ $[32] = block;
205
+ $[33] = contrast;
206
+ $[34] = disabled;
207
+ $[35] = size;
208
+ $[36] = sx;
209
+ $[37] = t1;
210
+ $[38] = t8;
211
+ $[39] = validationStatus;
212
+ $[40] = t10;
205
213
  } else {
206
- t9 = $[38];
214
+ t10 = $[40];
207
215
  }
208
- return t9;
216
+ return t10;
209
217
  });
210
218
  const Option = props => {
211
219
  const $ = c(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/react",
3
- "version": "37.32.0-rc.528af41bb",
3
+ "version": "37.32.0-rc.6c9ce56d4",
4
4
  "description": "An implementation of GitHub's Primer Design System using React",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",