@telegraph/select 0.0.82 → 0.0.84
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 +14 -0
- package/README.md +7 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @telegraph/select
|
|
2
2
|
|
|
3
|
+
## 0.0.84
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`4ab1d02`](https://github.com/knocklabs/telegraph/commit/4ab1d02cf51db16024e7098d4c9f9b963b8fac37)]:
|
|
8
|
+
- @telegraph/combobox@0.2.1
|
|
9
|
+
|
|
10
|
+
## 0.0.83
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`8d55540`](https://github.com/knocklabs/telegraph/commit/8d5554005bea4695560efbee9ea4333ccddfc1bf)]:
|
|
15
|
+
- @telegraph/combobox@0.2.0
|
|
16
|
+
|
|
3
17
|
## 0.0.82
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -79,12 +79,12 @@ The main select container component.
|
|
|
79
79
|
| --------------- | ------------------------------------- | ------------- | --------------------------------------- |
|
|
80
80
|
| `value` | `string \| string[]` | `undefined` | Selected value(s) |
|
|
81
81
|
| `onValueChange` | `(value: string \| string[]) => void` | `undefined` | Called when selection changes |
|
|
82
|
-
| `size` | `"0" \| "1" \| "2" \| "3"
|
|
83
|
-
| `placeholder` | `string` | `
|
|
82
|
+
| `size` | `"0" \| "1" \| "2" \| "3"` | `"1"` | Size of the trigger button |
|
|
83
|
+
| `placeholder` | `string` | `undefined` | Placeholder text when no value selected |
|
|
84
84
|
| `disabled` | `boolean` | `false` | Whether the select is disabled |
|
|
85
|
-
| `triggerProps` | `ComboboxTriggerProps` | `
|
|
86
|
-
| `contentProps` | `ComboboxContentProps` | `
|
|
87
|
-
| `optionsProps` | `ComboboxOptionsProps` | `
|
|
85
|
+
| `triggerProps` | `ComboboxTriggerProps` | `undefined` | Props passed to the trigger button |
|
|
86
|
+
| `contentProps` | `ComboboxContentProps` | `undefined` | Props passed to the dropdown content |
|
|
87
|
+
| `optionsProps` | `ComboboxOptionsProps` | `undefined` | Props passed to the options container |
|
|
88
88
|
|
|
89
89
|
### `<Select.Option>`
|
|
90
90
|
|
|
@@ -384,11 +384,11 @@ export const ConditionalSelect = ({ userRole, permissions }) => {
|
|
|
384
384
|
|
|
385
385
|
```tsx
|
|
386
386
|
import { Select } from "@telegraph/select";
|
|
387
|
-
import {
|
|
387
|
+
import { Box } from "@telegraph/layout";
|
|
388
388
|
|
|
389
389
|
export const SelectWithLoading = ({ loading, options, ...props }) => {
|
|
390
390
|
if (loading) {
|
|
391
|
-
return <
|
|
391
|
+
return <Box w="80" h="8" bg="gray-3" rounded="2" />;
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
return (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telegraph/select",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.84",
|
|
4
4
|
"description": "A simple select component built on top of @telegraph/combobox",
|
|
5
5
|
"repository": "https://github.com/knocklabs/telegraph/tree/main/packages/select",
|
|
6
6
|
"author": "@knocklabs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"preview": "vite preview"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@telegraph/combobox": "0.1
|
|
33
|
+
"@telegraph/combobox": "0.2.1",
|
|
34
34
|
"@telegraph/helpers": "0.0.15"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|