@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basic-ui/material",
3
- "version": "1.0.0-alpha.20",
3
+ "version": "1.0.0-alpha.21",
4
4
  "description": "Accessible React Components used as building blocks for UI patterns",
5
5
  "author": "Lucas Terra <lucasterra7@gmail.com>",
6
6
  "license": "MIT",
@@ -52,5 +52,5 @@
52
52
  "react": "^16.14.0 || ^17.0.0 || ^18.0.0",
53
53
  "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0"
54
54
  },
55
- "gitHead": "399dd736f1a67f5ed2b040f1d22d2bb92e784ccb"
55
+ "gitHead": "9b9f392e9aeddfcee8c572b1478f0dcef50f3a40"
56
56
  }
@@ -56,6 +56,7 @@ export const Select = forwardRef<
56
56
  >(function Select(props, forwardedRef) {
57
57
  const {
58
58
  id: idProp,
59
+ name,
59
60
  variant = 'outlined',
60
61
  color = 'primary',
61
62
  value: valueProp,
@@ -138,6 +139,7 @@ export const Select = forwardRef<
138
139
  return (
139
140
  <SelectProvider value={{ native, onSelect: handleOnChange, value }}>
140
141
  <Box display="inline-flex" flexDirection="column" width="100%">
142
+ {!native && <input type="hidden" name={name} />}
141
143
  <Container
142
144
  theme={theme}
143
145
  label={label}
@@ -169,6 +171,7 @@ export const Select = forwardRef<
169
171
  aria-describedby={helperTextId}
170
172
  hasLabel={!!label}
171
173
  leadingIcon={Boolean(leadingIcon)}
174
+ name={native ? name : undefined}
172
175
  trailingIcon={true}
173
176
  {...otherProps}
174
177
  >