@dhasdk/simple-ui 1.0.63 → 1.0.64
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/README.md +3 -1
- package/index.css +1 -1
- package/index.js +15 -15
- package/index.mjs +1432 -1432
- package/lib/Select.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,8 @@ Tooltip
|
|
|
53
53
|
|
|
54
54
|
## Changelog
|
|
55
55
|
|
|
56
|
+
1.0.64 - changed **optionsLabel** prop in **`Select`** to a ReactNode from string value
|
|
57
|
+
|
|
56
58
|
1.0.63 - added **selected** prop to the **`Select`** component
|
|
57
59
|
|
|
58
60
|
1.0.62 - fixed 'checked' and 'indeterminate' prop usage for CheckBox, updated documentation for CheckBox re their usage w/ CheckBox and CheckBoxGroup
|
|
@@ -1770,7 +1772,7 @@ Full list of props below
|
|
|
1770
1772
|
| error | boolean | Yes | false | if true a red border is applied to the outside of the select component indicating an error state. |
|
|
1771
1773
|
| label | string | Yes | undefined | text used as the label for the input, i.e. 'Border Color' above |
|
|
1772
1774
|
| options | {{name: ..., value:...}, ...} | Yes | undefined | options is an array of objects, each with a **name** and an optional **value** property. If value is not present, name is used in the handler function. |
|
|
1773
|
-
| optionsLabel |
|
|
1775
|
+
| optionsLabel | ReactNode | Yes | 'Options' | appears as the label in the Select component, i.e. 'Choose a Color' or **`{<><strong>Required: </strong>Choose a Color</>}`** Note, this is not the label above the component. |
|
|
1774
1776
|
| selected | string | Yes | undefined | The **value** or **name** inside the options array to pre-select or display. Is case sensitive. |
|
|
1775
1777
|
| setSelectedOption | (string) => void | Yes | undefined | calls the function passed in as **`setSelectedOption`** with the selected **value** if present, otherwise with **name** |
|
|
1776
1778
|
| variant | string | Yes | undefined | The predefined variant of Select to display. Current options are 'default', 'MedCard', 'Outline', and 'nonHover' |
|