@hubspot/ui-extensions 0.7.0 → 0.7.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/README.md +4 -2
- package/dist/types.d.ts +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1024,13 +1024,14 @@ interface MultiSelectProps {
|
|
|
1024
1024
|
label: string;
|
|
1025
1025
|
value: string | number;
|
|
1026
1026
|
}[];
|
|
1027
|
+
variant?: 'transparent' | 'input';
|
|
1027
1028
|
}
|
|
1028
1029
|
```
|
|
1029
1030
|
|
|
1030
1031
|
| Prop | Type | Default | Description |
|
|
1031
1032
|
| --- | --- | --- | --- |
|
|
1032
|
-
| `label` | `string` | `N/A` | The label text to display for the select element. |
|
|
1033
|
-
| `name` | `string` | `N/A` | The unique identifier for the select element. |
|
|
1033
|
+
| `label` | `string(optional)` | `N/A` | The label text to display for the select element. |
|
|
1034
|
+
| `name` | `string(optional)` | `N/A` | The unique identifier for the select element. |
|
|
1034
1035
|
| `value` | `Array<string \| number>` | `N/A` | The value of the select input. |
|
|
1035
1036
|
| `required` | `boolean` | `false` | Determines if the required indicator should be displayed. |
|
|
1036
1037
|
| `readOnly` | `boolean` | `false` | Determines if the field is editable or not. |
|
|
@@ -1041,6 +1042,7 @@ interface MultiSelectProps {
|
|
|
1041
1042
|
| `validationMessage` | `string(optional)` | `''` | The text to show if the input has an error. |
|
|
1042
1043
|
| `onChange` | `(value: Array<string \| number>) => void` | `N/A` | Function that is called with the new value when it is updated. |
|
|
1043
1044
|
| `options` | `Array<{label: string; value: string \| number}>` | `N/A` | Array of options to be displayed in the select. `label` will be used as the display text in the dropdown list and `value` should be a **unique** identifier. `value` is the data that will be submitted with the form. |
|
|
1045
|
+
| `variant` | `'transparent' \| 'input' `| `input` | Sets the visual styles of the button used for the anchor of the component. |
|
|
1044
1046
|
|
|
1045
1047
|
##### Usage
|
|
1046
1048
|
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "5.0.4"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "f3c6bfa9f758bdb23179e953a1826d1f0c3bd90f"
|
|
52
52
|
}
|