@nimbus-ds/select 1.0.0-rc.1 → 1.1.0-rc.1
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 +3 -3
- package/dist/components/Option/option.types.d.ts +3 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/select.types.d.ts +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Use a select box when a user needs to select one option from a list.
|
|
4
4
|
|
|
5
|
-
## 2022-10-14
|
|
5
|
+
## 2022-10-14 `1.0.0`
|
|
6
6
|
|
|
7
7
|
### 📚 3rd party library updates
|
|
8
8
|
|
|
@@ -14,12 +14,12 @@ Use a select box when a user needs to select one option from a list.
|
|
|
14
14
|
|
|
15
15
|
### 🎉 New features
|
|
16
16
|
|
|
17
|
-
- Added `name`, `id` and `children` properties to the component. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
17
|
+
- Added `name`, `id`, `appearance` and `children` properties to the component. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
18
18
|
- Added stories on component. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
19
19
|
- Created new `Select.Group` subcomponent. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
20
20
|
- Added `label` and `children` properties to the component `Select.Group`. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
21
21
|
- Created new `Select.Option` subcomponent. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
22
|
-
- Added `
|
|
22
|
+
- Added `label` and `value` properties to the component `Select.Option`. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
23
23
|
- Created new `Select.Skeleton` subcomponent. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
24
24
|
- Added `width` property to the component `Select.Skeleton`. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
25
25
|
- Added stories on component `Select.Skeleton`. ([#39](https://github.com/TiendaNube/nimbus-design-system/pull/39) by [@juanchigallego](https://github.com/juanchigallego))
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { OptionHTMLAttributes } from "react";
|
|
2
2
|
export interface OptionProps extends OptionHTMLAttributes<HTMLOptionElement> {
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
/** Indicates if option is selected by default */
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
/** Optional label for the option */
|
|
8
|
-
label?: string;
|
|
3
|
+
/** Label for the option */
|
|
4
|
+
label: string;
|
|
9
5
|
/** Value of the option */
|
|
10
|
-
value
|
|
6
|
+
value: string;
|
|
11
7
|
}
|