@basic-ui/material 1.0.0-alpha.20 → 1.0.0-alpha.22
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/build/cjs/index.js +7 -1
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Chip/ButtonChip.d.ts +1 -1
- package/build/esm/Select/Select.d.ts +1 -1
- package/build/esm/Select/Select.js +8 -2
- package/build/esm/Select/Select.js.map +1 -1
- package/build/tsconfig-build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Select/Select.tsx +3 -0
package/build/cjs/index.js
CHANGED
|
@@ -4171,6 +4171,7 @@ const componentMap = {
|
|
|
4171
4171
|
const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedRef) {
|
|
4172
4172
|
const {
|
|
4173
4173
|
id: idProp,
|
|
4174
|
+
name,
|
|
4174
4175
|
variant = 'outlined',
|
|
4175
4176
|
color = 'primary',
|
|
4176
4177
|
value: valueProp,
|
|
@@ -4242,7 +4243,11 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
|
|
|
4242
4243
|
display: "inline-flex",
|
|
4243
4244
|
flexDirection: "column",
|
|
4244
4245
|
width: "100%",
|
|
4245
|
-
children: [/*#__PURE__*/jsxRuntime.
|
|
4246
|
+
children: [!native && /*#__PURE__*/jsxRuntime.jsx("input", {
|
|
4247
|
+
type: "hidden",
|
|
4248
|
+
name: name,
|
|
4249
|
+
value: value
|
|
4250
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(Container, {
|
|
4246
4251
|
theme: theme,
|
|
4247
4252
|
label: label,
|
|
4248
4253
|
color: color,
|
|
@@ -4274,6 +4279,7 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
|
|
|
4274
4279
|
"aria-describedby": helperTextId,
|
|
4275
4280
|
hasLabel: !!label,
|
|
4276
4281
|
leadingIcon: Boolean(leadingIcon),
|
|
4282
|
+
name: native ? name : undefined,
|
|
4277
4283
|
trailingIcon: true,
|
|
4278
4284
|
...otherProps,
|
|
4279
4285
|
children: native ? children : renderValue(value)
|