@basic-ui/material 1.0.0-alpha.20 → 1.0.0-alpha.21

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.
@@ -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,10 @@ 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.jsxs(Container, {
4246
+ children: [!native && /*#__PURE__*/jsxRuntime.jsx("input", {
4247
+ type: "hidden",
4248
+ name: name
4249
+ }), /*#__PURE__*/jsxRuntime.jsxs(Container, {
4246
4250
  theme: theme,
4247
4251
  label: label,
4248
4252
  color: color,
@@ -4274,6 +4278,7 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
4274
4278
  "aria-describedby": helperTextId,
4275
4279
  hasLabel: !!label,
4276
4280
  leadingIcon: Boolean(leadingIcon),
4281
+ name: native ? name : undefined,
4277
4282
  trailingIcon: true,
4278
4283
  ...otherProps,
4279
4284
  children: native ? children : renderValue(value)