@gridui/select 0.0.0-stage → 0.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 +132 -2
- package/dist/combobox/combobox.d.ts +13 -0
- package/dist/combobox/style.d.ts +8 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +1575 -0
- package/dist/index.js.map +7 -0
- package/dist/multi-select/multi-select.d.ts +19 -0
- package/dist/select/select-options.d.ts +18 -0
- package/dist/select/select.d.ts +13 -0
- package/dist/select/style.d.ts +12 -0
- package/dist/shared/combobox-options.d.ts +20 -0
- package/dist/shared/options.d.ts +9 -0
- package/dist/shared/scroll-option.d.ts +8 -0
- package/dist/shared/selection-actions.d.ts +13 -0
- package/dist/shared/selection-form.d.ts +18 -0
- package/dist/shared/style.d.ts +15 -0
- package/dist/shared/types.d.ts +49 -0
- package/dist/shared/use-search-options.d.ts +20 -0
- package/dist/shared/use-selection-popup.d.ts +24 -0
- package/dist/shared/use-selection-value.d.ts +16 -0
- package/dist/styles.css +264 -0
- package/package.json +54 -3
package/dist/styles.css
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | 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
|
+
.visible {
|
|
11
|
+
visibility: visible;
|
|
12
|
+
}
|
|
13
|
+
.sr-only {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 1px;
|
|
16
|
+
height: 1px;
|
|
17
|
+
padding: 0;
|
|
18
|
+
margin: -1px;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
clip-path: inset(50%);
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
border-width: 0;
|
|
23
|
+
}
|
|
24
|
+
.absolute {
|
|
25
|
+
position: absolute;
|
|
26
|
+
}
|
|
27
|
+
.relative {
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
.inset-x-0 {
|
|
31
|
+
inset-inline: 0px;
|
|
32
|
+
}
|
|
33
|
+
.inset-y-0 {
|
|
34
|
+
inset-block: 0px;
|
|
35
|
+
}
|
|
36
|
+
.top-0 {
|
|
37
|
+
top: 0px;
|
|
38
|
+
}
|
|
39
|
+
.right-0 {
|
|
40
|
+
right: 0px;
|
|
41
|
+
}
|
|
42
|
+
.right-gridui-4 {
|
|
43
|
+
right: var(--gridui-space-4);
|
|
44
|
+
}
|
|
45
|
+
.bottom-0 {
|
|
46
|
+
bottom: 0px;
|
|
47
|
+
}
|
|
48
|
+
.z-\(--gridui-z-content\) {
|
|
49
|
+
z-index: var(--gridui-z-content);
|
|
50
|
+
}
|
|
51
|
+
.container {
|
|
52
|
+
width: 100%;
|
|
53
|
+
@media (width >= 40rem) {
|
|
54
|
+
max-width: 40rem;
|
|
55
|
+
}
|
|
56
|
+
@media (width >= 48rem) {
|
|
57
|
+
max-width: 48rem;
|
|
58
|
+
}
|
|
59
|
+
@media (width >= 64rem) {
|
|
60
|
+
max-width: 64rem;
|
|
61
|
+
}
|
|
62
|
+
@media (width >= 80rem) {
|
|
63
|
+
max-width: 80rem;
|
|
64
|
+
}
|
|
65
|
+
@media (width >= 96rem) {
|
|
66
|
+
max-width: 96rem;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.mt-gridui-4 {
|
|
70
|
+
margin-top: var(--gridui-space-4);
|
|
71
|
+
}
|
|
72
|
+
.mb-gridui-4 {
|
|
73
|
+
margin-bottom: var(--gridui-space-4);
|
|
74
|
+
}
|
|
75
|
+
.box-border {
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
}
|
|
78
|
+
.block {
|
|
79
|
+
display: block;
|
|
80
|
+
}
|
|
81
|
+
.flex {
|
|
82
|
+
display: flex;
|
|
83
|
+
}
|
|
84
|
+
.inline-flex {
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
}
|
|
87
|
+
.h-gridui-24 {
|
|
88
|
+
height: var(--gridui-space-24);
|
|
89
|
+
}
|
|
90
|
+
.max-h-\(--available-height\) {
|
|
91
|
+
max-height: var(--available-height);
|
|
92
|
+
}
|
|
93
|
+
.min-h-0 {
|
|
94
|
+
min-height: 0px;
|
|
95
|
+
}
|
|
96
|
+
.w-\(--anchor-width\) {
|
|
97
|
+
width: var(--anchor-width);
|
|
98
|
+
}
|
|
99
|
+
.w-9 {
|
|
100
|
+
width: calc(var(--spacing) * 9);
|
|
101
|
+
}
|
|
102
|
+
.w-auto {
|
|
103
|
+
width: auto;
|
|
104
|
+
}
|
|
105
|
+
.w-full {
|
|
106
|
+
width: 100%;
|
|
107
|
+
}
|
|
108
|
+
.w-gridui-16 {
|
|
109
|
+
width: var(--gridui-space-16);
|
|
110
|
+
}
|
|
111
|
+
.max-w-\(--available-width\) {
|
|
112
|
+
max-width: var(--available-width);
|
|
113
|
+
}
|
|
114
|
+
.min-w-0 {
|
|
115
|
+
min-width: 0px;
|
|
116
|
+
}
|
|
117
|
+
.min-w-11 {
|
|
118
|
+
min-width: calc(var(--spacing) * 11);
|
|
119
|
+
}
|
|
120
|
+
.flex-1 {
|
|
121
|
+
flex: 1;
|
|
122
|
+
}
|
|
123
|
+
.shrink-0 {
|
|
124
|
+
flex-shrink: 0;
|
|
125
|
+
}
|
|
126
|
+
.cursor-pointer {
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
}
|
|
129
|
+
.flex-col {
|
|
130
|
+
flex-direction: column;
|
|
131
|
+
}
|
|
132
|
+
.items-center {
|
|
133
|
+
align-items: center;
|
|
134
|
+
}
|
|
135
|
+
.items-stretch {
|
|
136
|
+
align-items: stretch;
|
|
137
|
+
}
|
|
138
|
+
.justify-center {
|
|
139
|
+
justify-content: center;
|
|
140
|
+
}
|
|
141
|
+
.gap-gridui-4 {
|
|
142
|
+
gap: var(--gridui-space-4);
|
|
143
|
+
}
|
|
144
|
+
.gap-gridui-8 {
|
|
145
|
+
gap: var(--gridui-space-8);
|
|
146
|
+
}
|
|
147
|
+
.overflow-hidden {
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
}
|
|
150
|
+
.overflow-y-auto {
|
|
151
|
+
overflow-y: auto;
|
|
152
|
+
}
|
|
153
|
+
.rounded-control {
|
|
154
|
+
border-radius: var(--gridui-control-radius);
|
|
155
|
+
}
|
|
156
|
+
.border-t {
|
|
157
|
+
border-top-style: var(--tw-border-style);
|
|
158
|
+
border-top-width: 1px;
|
|
159
|
+
}
|
|
160
|
+
.border-border {
|
|
161
|
+
border-color: var(--gridui-border);
|
|
162
|
+
}
|
|
163
|
+
.bg-background {
|
|
164
|
+
background-color: var(--gridui-background);
|
|
165
|
+
}
|
|
166
|
+
.p-gridui-8 {
|
|
167
|
+
padding: var(--gridui-space-8);
|
|
168
|
+
}
|
|
169
|
+
.px-gridui-4 {
|
|
170
|
+
padding-inline: var(--gridui-space-4);
|
|
171
|
+
}
|
|
172
|
+
.pt-gridui-4 {
|
|
173
|
+
padding-top: var(--gridui-space-4);
|
|
174
|
+
}
|
|
175
|
+
.pr-9 {
|
|
176
|
+
padding-right: calc(var(--spacing) * 9);
|
|
177
|
+
}
|
|
178
|
+
.pr-11 {
|
|
179
|
+
padding-right: calc(var(--spacing) * 11);
|
|
180
|
+
}
|
|
181
|
+
.text-start {
|
|
182
|
+
text-align: start;
|
|
183
|
+
}
|
|
184
|
+
.type-caption {
|
|
185
|
+
font: var(--gridui-type-caption);
|
|
186
|
+
letter-spacing: normal;
|
|
187
|
+
}
|
|
188
|
+
.wrap-anywhere {
|
|
189
|
+
overflow-wrap: anywhere;
|
|
190
|
+
}
|
|
191
|
+
.text-ellipsis {
|
|
192
|
+
text-overflow: ellipsis;
|
|
193
|
+
}
|
|
194
|
+
.whitespace-normal {
|
|
195
|
+
white-space: normal;
|
|
196
|
+
}
|
|
197
|
+
.text-foreground {
|
|
198
|
+
color: var(--gridui-foreground);
|
|
199
|
+
}
|
|
200
|
+
.text-muted {
|
|
201
|
+
color: var(--gridui-muted);
|
|
202
|
+
}
|
|
203
|
+
@media (hover: hover) {
|
|
204
|
+
.hover\:bg-surface:hover {
|
|
205
|
+
background-color: var(--gridui-surface);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
.focus-visible\:bg-surface:focus-visible {
|
|
209
|
+
background-color: var(--gridui-surface);
|
|
210
|
+
}
|
|
211
|
+
@media (hover: hover) {
|
|
212
|
+
.hover\:enabled\:bg-surface:hover:enabled {
|
|
213
|
+
background-color: var(--gridui-surface);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
.disabled\:cursor-not-allowed:disabled {
|
|
217
|
+
cursor: not-allowed;
|
|
218
|
+
}
|
|
219
|
+
.disabled\:opacity-50:disabled {
|
|
220
|
+
opacity: 50%;
|
|
221
|
+
}
|
|
222
|
+
.\[\&_svg\]\:size-gridui-16 svg {
|
|
223
|
+
width: var(--gridui-space-16);
|
|
224
|
+
height: var(--gridui-space-16);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
@layer components {
|
|
228
|
+
.gridui-select-content {
|
|
229
|
+
--anchor-width: var(--radix-select-trigger-width);
|
|
230
|
+
--available-width: var(--radix-select-content-available-width, calc(100vw - 32px));
|
|
231
|
+
--available-height: var(--radix-select-content-available-height);
|
|
232
|
+
--radix-dropdown-menu-content-transform-origin: var(--radix-select-content-transform-origin);
|
|
233
|
+
}
|
|
234
|
+
.gridui-combobox-content {
|
|
235
|
+
--anchor-width: var(--radix-popover-trigger-width);
|
|
236
|
+
--available-width: var(--radix-popover-content-available-width);
|
|
237
|
+
--available-height: var(--radix-popover-content-available-height);
|
|
238
|
+
--radix-dropdown-menu-content-transform-origin: var(--radix-popover-content-transform-origin);
|
|
239
|
+
}
|
|
240
|
+
.gridui-select-content[data-state="open"]:not([data-side="none"]), .gridui-combobox-content[data-state="open"] {
|
|
241
|
+
animation: gridui-surface-enter var(--gridui-motion-duration-normal) var(--gridui-motion-ease-out) both;
|
|
242
|
+
}
|
|
243
|
+
.gridui-select-content[data-state="closed"]:not([data-side="none"]), .gridui-combobox-content[data-state="closed"] {
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
animation: gridui-surface-exit var(--gridui-motion-duration-quick) var(--gridui-motion-ease-in) both;
|
|
246
|
+
}
|
|
247
|
+
@media (prefers-reduced-motion: reduce) {
|
|
248
|
+
.gridui-select-content[data-state="open"], .gridui-select-content[data-state="closed"], .gridui-combobox-content[data-state="open"], .gridui-combobox-content[data-state="closed"] {
|
|
249
|
+
animation: none;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
@property --tw-border-style {
|
|
254
|
+
syntax: "*";
|
|
255
|
+
inherits: false;
|
|
256
|
+
initial-value: solid;
|
|
257
|
+
}
|
|
258
|
+
@layer properties {
|
|
259
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
260
|
+
*, ::before, ::after, ::backdrop {
|
|
261
|
+
--tw-border-style: solid;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/select",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "GridUI React select",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"**/*.css"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles.css": "./dist/styles.css"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^19.2.0",
|
|
26
|
+
"react-dom": "^19.2.0"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@gridui/dropdown-menu": "^0.0.0",
|
|
30
|
+
"@gridui/form": "^0.0.0",
|
|
31
|
+
"@gridui/input": "^0.0.0",
|
|
32
|
+
"@gridui/style-utils": "^2.1.2",
|
|
33
|
+
"@gridui/theme": "^2.1.2",
|
|
34
|
+
"@radix-ui/react-popover": "1.3.1",
|
|
35
|
+
"@radix-ui/react-select": "2.4.1",
|
|
36
|
+
"class-variance-authority": "0.7.1",
|
|
37
|
+
"lucide-react": "1.62.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@gridui-internal/configuration": "0.0.0",
|
|
41
|
+
"@jest/globals": "30.5.2",
|
|
42
|
+
"@types/jest": "30.0.0",
|
|
43
|
+
"@types/node": "26.6.5",
|
|
44
|
+
"@types/react": "19.3.0",
|
|
45
|
+
"@types/react-dom": "19.3.0",
|
|
46
|
+
"jest": "30.5.2",
|
|
47
|
+
"react": "19.3.1",
|
|
48
|
+
"react-dom": "19.3.1",
|
|
49
|
+
"typescript": "6.0.3"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "node ../../scripts/compilation/package.ts",
|
|
53
|
+
"compile": "tsc --project tsconfig.json",
|
|
54
|
+
"test": "jest",
|
|
55
|
+
"coverage": "jest --coverage"
|
|
56
|
+
}
|
|
6
57
|
}
|