@gridui/select 1.5.0 → 2.0.0
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 +20 -6
- package/dist/autocomplete/autocomplete.d.ts +2 -0
- package/dist/autocomplete-suggestions/autocomplete-suggestions.d.ts +8 -0
- package/dist/combobox/combobox.d.ts +3 -1
- package/dist/index.js +56 -36
- package/dist/index.js.map +2 -2
- package/dist/select/select.d.ts +6 -0
- package/dist/select/style.d.ts +2 -1
- package/dist/shared/popup/selection-popup.d.ts +8 -0
- package/dist/shared/style.d.ts +2 -1
- package/dist/shared/types.d.ts +3 -1
- package/dist/styled.js +5 -0
- package/dist/styles.css +1060 -3
- package/dist/styles.local.css +207 -0
- package/docs/catalog.json +13 -12
- package/docs/reference/autocomplete-suggestions.md +7 -1
- package/docs/reference/autocomplete.md +14 -4
- package/docs/reference/combobox.md +20 -8
- package/docs/reference/multi-select.md +16 -2
- package/docs/reference/select.md +16 -8
- package/package.json +22 -10
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--spacing: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@layer utilities {
|
|
10
|
+
.gridui-u-select--sr-only {
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: 1px;
|
|
13
|
+
height: 1px;
|
|
14
|
+
padding: 0;
|
|
15
|
+
margin: -1px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
clip-path: inset(50%);
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
border-width: 0;
|
|
20
|
+
}
|
|
21
|
+
.gridui-u-select--absolute {
|
|
22
|
+
position: absolute;
|
|
23
|
+
}
|
|
24
|
+
.gridui-u-select--relative {
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
.gridui-u-select--inset-x-0 {
|
|
28
|
+
inset-inline: 0px;
|
|
29
|
+
}
|
|
30
|
+
.gridui-u-select--inset-y-0 {
|
|
31
|
+
inset-block: 0px;
|
|
32
|
+
}
|
|
33
|
+
.gridui-u-select--top-0 {
|
|
34
|
+
top: 0px;
|
|
35
|
+
}
|
|
36
|
+
.gridui-u-select--right-0 {
|
|
37
|
+
right: 0px;
|
|
38
|
+
}
|
|
39
|
+
.gridui-u-select--bottom-0 {
|
|
40
|
+
bottom: 0px;
|
|
41
|
+
}
|
|
42
|
+
.gridui-u-select--z-\(--gridui-z-content\) {
|
|
43
|
+
z-index: var(--gridui-z-content);
|
|
44
|
+
}
|
|
45
|
+
.gridui-u-select--m-gridui-8 {
|
|
46
|
+
margin: var(--gridui-space-8);
|
|
47
|
+
}
|
|
48
|
+
.gridui-u-select--mt-gridui-4 {
|
|
49
|
+
margin-top: var(--gridui-space-4);
|
|
50
|
+
}
|
|
51
|
+
.gridui-u-select--box-border {
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
}
|
|
54
|
+
.gridui-u-select--block {
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
.gridui-u-select--flex {
|
|
58
|
+
display: flex;
|
|
59
|
+
}
|
|
60
|
+
.gridui-u-select--inline-flex {
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
}
|
|
63
|
+
.gridui-u-select--h-gridui-24 {
|
|
64
|
+
height: var(--gridui-space-24);
|
|
65
|
+
}
|
|
66
|
+
.gridui-u-select--max-h-\(--available-height\) {
|
|
67
|
+
max-height: var(--available-height);
|
|
68
|
+
}
|
|
69
|
+
.gridui-u-select--min-h-0 {
|
|
70
|
+
min-height: 0px;
|
|
71
|
+
}
|
|
72
|
+
.gridui-u-select--w-\(--anchor-width\) {
|
|
73
|
+
width: var(--anchor-width);
|
|
74
|
+
}
|
|
75
|
+
.gridui-u-select--w-9 {
|
|
76
|
+
width: calc(var(--spacing) * 9);
|
|
77
|
+
}
|
|
78
|
+
.gridui-u-select--w-auto {
|
|
79
|
+
width: auto;
|
|
80
|
+
}
|
|
81
|
+
.gridui-u-select--w-full {
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
.gridui-u-select--max-w-\(--available-width\) {
|
|
85
|
+
max-width: var(--available-width);
|
|
86
|
+
}
|
|
87
|
+
.gridui-u-select--min-w-\(--gridui-control-size\) {
|
|
88
|
+
min-width: var(--gridui-control-size);
|
|
89
|
+
}
|
|
90
|
+
.gridui-u-select--min-w-0 {
|
|
91
|
+
min-width: 0px;
|
|
92
|
+
}
|
|
93
|
+
.gridui-u-select--flex-1 {
|
|
94
|
+
flex: 1;
|
|
95
|
+
}
|
|
96
|
+
.gridui-u-select--shrink-0 {
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
}
|
|
99
|
+
.gridui-u-select--cursor-pointer {
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
102
|
+
.gridui-u-select--flex-col {
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
105
|
+
.gridui-u-select--items-center {
|
|
106
|
+
align-items: center;
|
|
107
|
+
}
|
|
108
|
+
.gridui-u-select--items-stretch {
|
|
109
|
+
align-items: stretch;
|
|
110
|
+
}
|
|
111
|
+
.gridui-u-select--justify-center {
|
|
112
|
+
justify-content: center;
|
|
113
|
+
}
|
|
114
|
+
.gridui-u-select--gap-gridui-4 {
|
|
115
|
+
gap: var(--gridui-space-4);
|
|
116
|
+
}
|
|
117
|
+
.gridui-u-select--gap-gridui-8 {
|
|
118
|
+
gap: var(--gridui-space-8);
|
|
119
|
+
}
|
|
120
|
+
.gridui-u-select--overflow-hidden {
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
}
|
|
123
|
+
.gridui-u-select--overflow-y-auto {
|
|
124
|
+
overflow-y: auto;
|
|
125
|
+
}
|
|
126
|
+
.gridui-u-select--rounded-control {
|
|
127
|
+
border-radius: var(--gridui-control-radius);
|
|
128
|
+
}
|
|
129
|
+
.gridui-u-select--border-t {
|
|
130
|
+
border-top-style: var(--tw-border-style);
|
|
131
|
+
border-top-width: 1px;
|
|
132
|
+
}
|
|
133
|
+
.gridui-u-select--border-border {
|
|
134
|
+
border-color: var(--gridui-border);
|
|
135
|
+
}
|
|
136
|
+
.gridui-u-select--bg-background {
|
|
137
|
+
background-color: var(--gridui-background);
|
|
138
|
+
}
|
|
139
|
+
.gridui-u-select--p-gridui-8 {
|
|
140
|
+
padding: var(--gridui-space-8);
|
|
141
|
+
}
|
|
142
|
+
.gridui-u-select--pr-11 {
|
|
143
|
+
padding-right: calc(var(--spacing) * 11);
|
|
144
|
+
}
|
|
145
|
+
.gridui-u-select--text-start {
|
|
146
|
+
text-align: start;
|
|
147
|
+
}
|
|
148
|
+
.gridui-u-select--type-caption {
|
|
149
|
+
font: var(--gridui-type-caption);
|
|
150
|
+
font-family: var(--gridui-font-body);
|
|
151
|
+
letter-spacing: normal;
|
|
152
|
+
}
|
|
153
|
+
.gridui-u-select--wrap-anywhere {
|
|
154
|
+
overflow-wrap: anywhere;
|
|
155
|
+
}
|
|
156
|
+
.gridui-u-select--text-ellipsis {
|
|
157
|
+
text-overflow: ellipsis;
|
|
158
|
+
}
|
|
159
|
+
.gridui-u-select--whitespace-normal {
|
|
160
|
+
white-space: normal;
|
|
161
|
+
}
|
|
162
|
+
.gridui-u-select--text-foreground {
|
|
163
|
+
color: var(--gridui-foreground);
|
|
164
|
+
}
|
|
165
|
+
.gridui-u-select--text-muted {
|
|
166
|
+
color: var(--gridui-muted);
|
|
167
|
+
}
|
|
168
|
+
.gridui-u-select--empty\:hidden:empty {
|
|
169
|
+
display: none;
|
|
170
|
+
}
|
|
171
|
+
.gridui-u-select--disabled\:cursor-not-allowed:disabled {
|
|
172
|
+
cursor: not-allowed;
|
|
173
|
+
}
|
|
174
|
+
.gridui-u-select--disabled\:opacity-50:disabled {
|
|
175
|
+
opacity: 50%;
|
|
176
|
+
}
|
|
177
|
+
.gridui-u-select--\[\&_svg\]\:size-gridui-16 svg {
|
|
178
|
+
width: var(--gridui-space-16);
|
|
179
|
+
height: var(--gridui-space-16);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
@layer components {
|
|
183
|
+
.gridui-select-content {
|
|
184
|
+
--anchor-width: var(--radix-select-trigger-width);
|
|
185
|
+
--available-width: var(--radix-select-content-available-width, calc(100vw - 2 * var(--gridui-page-gutter)));
|
|
186
|
+
--available-height: var(--radix-select-content-available-height);
|
|
187
|
+
--gridui-overlay-origin: var(--radix-select-content-transform-origin);
|
|
188
|
+
}
|
|
189
|
+
.gridui-combobox-content {
|
|
190
|
+
--anchor-width: var(--radix-popover-trigger-width);
|
|
191
|
+
--available-width: var(--radix-popover-content-available-width);
|
|
192
|
+
--available-height: var(--radix-popover-content-available-height);
|
|
193
|
+
--gridui-overlay-origin: var(--radix-popover-content-transform-origin);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
@property --tw-border-style {
|
|
197
|
+
syntax: "*";
|
|
198
|
+
inherits: false;
|
|
199
|
+
initial-value: solid;
|
|
200
|
+
}
|
|
201
|
+
@layer properties {
|
|
202
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
203
|
+
*, ::before, ::after, ::backdrop {
|
|
204
|
+
--tw-border-style: solid;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/select",
|
|
4
|
-
"version": "
|
|
5
|
-
"category": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"category": "controls",
|
|
6
6
|
"description": "GridUI React select",
|
|
7
7
|
"usage": "Input supplies control styles. Overlay supplies popup surfaces, motion, option rows, group labels, and trailing check slots. Form hides MultiSelect’s native multiple-value bridge. Applications own routes, labels, state persistence, and branding.",
|
|
8
8
|
"documentation": [
|
|
@@ -119,16 +119,17 @@
|
|
|
119
119
|
"@gridui/input/styles.css",
|
|
120
120
|
"@gridui/select/styles.css"
|
|
121
121
|
],
|
|
122
|
+
"styledImport": "@gridui/select/styled",
|
|
122
123
|
"examples": [
|
|
123
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
124
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
125
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
126
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
127
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
128
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
129
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
130
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
131
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
132
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
124
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/free-text.mdx",
|
|
125
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/getting-started.mdx",
|
|
126
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/multiple-options.mdx",
|
|
127
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/remote-options.mdx",
|
|
128
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/search-options.mdx",
|
|
129
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/single-option.mdx",
|
|
130
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/autocomplete.stories.tsx",
|
|
131
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/combobox.stories.tsx",
|
|
132
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/multi-select.stories.tsx",
|
|
133
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/select.stories.tsx"
|
|
133
134
|
]
|
|
134
135
|
}
|
|
@@ -11,7 +11,7 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/select/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
16
|
## API
|
|
17
17
|
|
|
@@ -43,6 +43,12 @@ The public Props type is the source of these signatures. Defaults below are expl
|
|
|
43
43
|
|
|
44
44
|
Controlled value. Pair with the corresponding change callback.
|
|
45
45
|
|
|
46
|
+
### density
|
|
47
|
+
|
|
48
|
+
``Density | undefined`` · Optional
|
|
49
|
+
|
|
50
|
+
Default: ``"comfortable"``
|
|
51
|
+
|
|
46
52
|
### options
|
|
47
53
|
|
|
48
54
|
``readonly (SelectOption | SelectGroup)[]`` · Required
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/select/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/autocomplete.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -25,6 +25,12 @@ The public Props type is the source of these signatures. Defaults below are expl
|
|
|
25
25
|
|
|
26
26
|
Content rendered inside the component.
|
|
27
27
|
|
|
28
|
+
### size
|
|
29
|
+
|
|
30
|
+
``Size | undefined`` · Optional
|
|
31
|
+
|
|
32
|
+
Component size preset.
|
|
33
|
+
|
|
28
34
|
### onFocus
|
|
29
35
|
|
|
30
36
|
``(event: FocusEvent<HTMLInputElement, Element>): void`` · Optional
|
|
@@ -61,9 +67,9 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
61
67
|
|
|
62
68
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
63
69
|
|
|
64
|
-
###
|
|
70
|
+
### htmlSize
|
|
65
71
|
|
|
66
|
-
``
|
|
72
|
+
``number | undefined`` · Optional
|
|
67
73
|
|
|
68
74
|
### loading
|
|
69
75
|
|
|
@@ -119,6 +125,10 @@ Initial uncontrolled value. Reset the story after changing it.
|
|
|
119
125
|
|
|
120
126
|
``string | undefined`` · Optional
|
|
121
127
|
|
|
128
|
+
### density
|
|
129
|
+
|
|
130
|
+
``Density | undefined`` · Optional
|
|
131
|
+
|
|
122
132
|
### onOptionSelect
|
|
123
133
|
|
|
124
134
|
``(option: SelectOption): void`` · Optional
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/select/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/combobox.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -71,12 +71,6 @@ Participates in required form validation.
|
|
|
71
71
|
|
|
72
72
|
Default: ``[]``
|
|
73
73
|
|
|
74
|
-
### controlSize
|
|
75
|
-
|
|
76
|
-
``"small" | "standard" | undefined`` · Optional
|
|
77
|
-
|
|
78
|
-
Default: ``"standard"``
|
|
79
|
-
|
|
80
74
|
### value
|
|
81
75
|
|
|
82
76
|
``string | undefined`` · Optional
|
|
@@ -97,6 +91,20 @@ Initial uncontrolled value. Reset the story after changing it.
|
|
|
97
91
|
|
|
98
92
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
99
93
|
|
|
94
|
+
### size
|
|
95
|
+
|
|
96
|
+
``Size | undefined`` · Optional
|
|
97
|
+
|
|
98
|
+
Default: ``"medium"``
|
|
99
|
+
|
|
100
|
+
Component size preset.
|
|
101
|
+
|
|
102
|
+
### density
|
|
103
|
+
|
|
104
|
+
``Density | undefined`` · Optional
|
|
105
|
+
|
|
106
|
+
Default: ``"comfortable"``
|
|
107
|
+
|
|
100
108
|
### clearLabel
|
|
101
109
|
|
|
102
110
|
``string | undefined`` · Optional
|
|
@@ -155,3 +163,7 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
155
163
|
|
|
156
164
|
``string`` · Required
|
|
157
165
|
|
|
166
|
+
### htmlSize
|
|
167
|
+
|
|
168
|
+
``number | undefined`` · Optional
|
|
169
|
+
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/select/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/multi-select.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -77,6 +77,20 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
77
77
|
|
|
78
78
|
Allows reading without changing the value.
|
|
79
79
|
|
|
80
|
+
### size
|
|
81
|
+
|
|
82
|
+
``Size | undefined`` · Optional
|
|
83
|
+
|
|
84
|
+
Default: ``"medium"``
|
|
85
|
+
|
|
86
|
+
Component size preset.
|
|
87
|
+
|
|
88
|
+
### density
|
|
89
|
+
|
|
90
|
+
``Density | undefined`` · Optional
|
|
91
|
+
|
|
92
|
+
Default: ``"comfortable"``
|
|
93
|
+
|
|
80
94
|
### clearLabel
|
|
81
95
|
|
|
82
96
|
``string | undefined`` · Optional
|
package/docs/reference/select.md
CHANGED
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/select/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/select/stories/select.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -65,12 +65,6 @@ Native form field name.
|
|
|
65
65
|
|
|
66
66
|
Default: ``[]``
|
|
67
67
|
|
|
68
|
-
### controlSize
|
|
69
|
-
|
|
70
|
-
``"small" | "standard" | undefined`` · Optional
|
|
71
|
-
|
|
72
|
-
Default: ``"standard"``
|
|
73
|
-
|
|
74
68
|
### value
|
|
75
69
|
|
|
76
70
|
``string | undefined`` · Optional
|
|
@@ -91,6 +85,20 @@ Initial uncontrolled value. Reset the story after changing it.
|
|
|
91
85
|
|
|
92
86
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
93
87
|
|
|
88
|
+
### size
|
|
89
|
+
|
|
90
|
+
``Size | undefined`` · Optional
|
|
91
|
+
|
|
92
|
+
Default: ``"medium"``
|
|
93
|
+
|
|
94
|
+
Component size preset.
|
|
95
|
+
|
|
96
|
+
### density
|
|
97
|
+
|
|
98
|
+
``Density | undefined`` · Optional
|
|
99
|
+
|
|
100
|
+
Default: ``"comfortable"``
|
|
101
|
+
|
|
94
102
|
### clearLabel
|
|
95
103
|
|
|
96
104
|
``string | undefined`` · Optional
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/select",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "GridUI React select",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +10,19 @@
|
|
|
10
10
|
"docs"
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": [
|
|
13
|
-
"**/*.css"
|
|
13
|
+
"**/*.css",
|
|
14
|
+
"./dist/styled.js"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/index.js"
|
|
19
20
|
},
|
|
20
|
-
"./styles.css": "./dist/styles.css"
|
|
21
|
+
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./styled": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/styled.js"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"publishConfig": {
|
|
23
28
|
"access": "public"
|
|
@@ -27,17 +32,17 @@
|
|
|
27
32
|
"react-dom": "^19.2.0"
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@gridui/form": "^4.1
|
|
31
|
-
"@gridui/input": "^
|
|
35
|
+
"@gridui/form": "^4.2.1",
|
|
36
|
+
"@gridui/input": "^5.0.0",
|
|
32
37
|
"@gridui/interaction": "^1.3.0",
|
|
33
|
-
"@gridui/motion": "^1.0.
|
|
34
|
-
"@gridui/overlay": "^2.
|
|
35
|
-
"@gridui/style-utils": "^4.
|
|
36
|
-
"@gridui/theme": "^
|
|
38
|
+
"@gridui/motion": "^1.0.3",
|
|
39
|
+
"@gridui/overlay": "^2.5.0",
|
|
40
|
+
"@gridui/style-utils": "^4.1.0",
|
|
41
|
+
"@gridui/theme": "^5.0.0",
|
|
37
42
|
"@radix-ui/react-popover": "1.3.1",
|
|
38
43
|
"@radix-ui/react-select": "2.4.1",
|
|
39
44
|
"class-variance-authority": "0.7.1",
|
|
40
|
-
"lucide-react": "1.
|
|
45
|
+
"lucide-react": "1.73.0"
|
|
41
46
|
},
|
|
42
47
|
"devDependencies": {
|
|
43
48
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
@@ -52,6 +57,13 @@
|
|
|
52
57
|
"react-dom": "19.3.1",
|
|
53
58
|
"typescript": "6.0.3"
|
|
54
59
|
},
|
|
60
|
+
"gridui": {
|
|
61
|
+
"styleOrder": [
|
|
62
|
+
"@gridui/overlay",
|
|
63
|
+
"@gridui/input",
|
|
64
|
+
"@gridui/form"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
55
67
|
"scripts": {
|
|
56
68
|
"build": "node ../../scripts/compilation/package.ts",
|
|
57
69
|
"compile": "tsc --project tsconfig.json",
|