@infonomic/uikit 6.4.0 → 6.5.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/dist/components/inputs/@types/autocomplete.d.ts +35 -0
- package/dist/components/inputs/@types/autocomplete.d.ts.map +1 -0
- package/dist/components/inputs/@types/autocomplete.js +11 -0
- package/dist/components/inputs/autocomplete.d.ts +42 -0
- package/dist/components/inputs/autocomplete.d.ts.map +1 -0
- package/dist/components/inputs/autocomplete.js +87 -0
- package/dist/components/inputs/autocomplete.module.css +371 -0
- package/dist/components/inputs/autocomplete.module.js +36 -0
- package/dist/components/inputs/autocomplete_module.css +312 -0
- package/dist/components/inputs/calendar.js +2 -2
- package/dist/components/inputs/index.js +1 -0
- package/dist/components/notifications/@types/alert.js +1 -0
- package/dist/components/notifications/@types/toast.js +1 -0
- package/dist/components/pager/hooks/types/usePagination.js +1 -0
- package/dist/components/tooltip/tooltip_module.css +1 -1
- package/dist/icons/types/icon.js +1 -0
- package/dist/loaders/@types/index.js +1 -0
- package/dist/react.d.ts +1 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +1 -0
- package/dist/utils/polymorphic.js +1 -0
- package/package.json +23 -19
- package/src/components/inputs/@types/autocomplete.ts +39 -0
- package/src/components/inputs/autocomplete.module.css +371 -0
- package/src/components/inputs/autocomplete.stories.tsx +184 -0
- package/src/components/inputs/autocomplete.tsx +173 -0
- package/src/components/inputs/index.tsx +1 -0
- package/src/react.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +0 -1
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
@layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
|
|
2
|
+
|
|
3
|
+
@layer infonomic-components {
|
|
4
|
+
:is(.autocomplete-wrapper-JirsmI, .infonomic-autocomplete-wrapper) {
|
|
5
|
+
gap: var(--gap-1);
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:is(.input-nIzHob, .infonomic-autocomplete-input) {
|
|
11
|
+
outline-offset: 2px;
|
|
12
|
+
gap: var(--gap-2);
|
|
13
|
+
width: 100%;
|
|
14
|
+
transition: all var(--transition-normal);
|
|
15
|
+
border-radius: var(--border-radius-sm);
|
|
16
|
+
border: none;
|
|
17
|
+
outline: 1px solid #0000;
|
|
18
|
+
align-items: center;
|
|
19
|
+
font-weight: normal;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:is(.input-nIzHob:focus, .input-nIzHob:active, .infonomic-autocomplete-input:focus, .infonomic-autocomplete-input:active) {
|
|
24
|
+
outline-color: var(--ring-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:is(.input-nIzHob:disabled, .input-nIzHob[disabled], .infonomic-autocomplete-input:disabled, .infonomic-autocomplete-input[disabled]) {
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:is(.sm-m41uwR, .infonomic-autocomplete-input-sm) {
|
|
32
|
+
min-height: 32px;
|
|
33
|
+
padding: .25rem .5rem;
|
|
34
|
+
font-size: .875rem;
|
|
35
|
+
line-height: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:is(.md-pauitB, .infonomic-autocomplete-input-md) {
|
|
39
|
+
min-height: 36px;
|
|
40
|
+
padding: .3rem .5rem;
|
|
41
|
+
font-size: 1rem;
|
|
42
|
+
line-height: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:is(.lg-XirY1c, .infonomic-autocomplete-input-lg) {
|
|
46
|
+
min-height: 40px;
|
|
47
|
+
padding: .4rem .5rem;
|
|
48
|
+
font-size: 1.175rem;
|
|
49
|
+
line-height: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:is(.outlined-Sg0shm, .infonomic-autocomplete-input-outlined) {
|
|
53
|
+
border: 1px solid var(--input-variant-outlined-border);
|
|
54
|
+
background-color: #0000;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:is(.outlined-Sg0shm:hover, .infonomic-autocomplete-input-outlined:hover) {
|
|
58
|
+
border: 1px solid var(--input-variant-outlined-hover-border);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:is(.outlined-Sg0shm:focus, .outlined-Sg0shm:active, .infonomic-autocomplete-input-outlined:focus, .infonomic-autocomplete-input-outlined:active) {
|
|
62
|
+
--ring-color: var(--input-variant-outline-ring-color);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:is(.underlined-TOTDkZ, .infonomic-autocomplete-input-underlined) {
|
|
66
|
+
border-bottom: 1px solid var(--input-variant-underlined-border);
|
|
67
|
+
gap: var(--gap-1);
|
|
68
|
+
background-color: var(--input-variant-underlined);
|
|
69
|
+
border-radius: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.underlined-TOTDkZ.sm-m41uwR {
|
|
73
|
+
min-height: 26px;
|
|
74
|
+
padding: .25rem .1rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.infonomic-autocomplete-input-underlined.infonomic-autocomplete-input-sm {
|
|
78
|
+
min-height: 26px;
|
|
79
|
+
padding: .25rem .1rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.underlined-TOTDkZ.md-pauitB {
|
|
83
|
+
min-height: 30px;
|
|
84
|
+
padding: .25rem .1rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.infonomic-autocomplete-input-underlined.infonomic-autocomplete-input-md {
|
|
88
|
+
min-height: 30px;
|
|
89
|
+
padding: .25rem .1rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.underlined-TOTDkZ.lg-XirY1c {
|
|
93
|
+
min-height: 34px;
|
|
94
|
+
padding: 0 .1rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.infonomic-autocomplete-input-underlined.infonomic-autocomplete-input-lg {
|
|
98
|
+
min-height: 34px;
|
|
99
|
+
padding: 0 .1rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:is(.underlined-TOTDkZ:hover, .infonomic-autocomplete-input-underlined:hover) {
|
|
103
|
+
border-bottom: 1px solid var(--input-variant-underlined-hover-border);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:is(.underlined-TOTDkZ:focus, .underlined-TOTDkZ:active, .infonomic-autocomplete-input-underlined:focus, .infonomic-autocomplete-input-underlined:active) {
|
|
107
|
+
outline: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:is(.filled-LBQC5g, .infonomic-autocomplete-input-filled) {
|
|
111
|
+
background-color: var(--input-variant-filled);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:is(.error-Wyckbu, .infonomic-autocomplete-input-error), :is(.error-Wyckbu:hover, .infonomic-autocomplete-input-error:hover) {
|
|
115
|
+
border: 1px solid var(--red-400);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:is(.error-Wyckbu:focus, .error-Wyckbu:active, .infonomic-autocomplete-input-error:focus, .infonomic-autocomplete-input-error:active) {
|
|
119
|
+
--ring-color: var(--red-300);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:is(.primary-j2veZ2, .infonomic-autocomplete-input-primary) {
|
|
123
|
+
--input-variant-outlined-border: var(--stroke-primary);
|
|
124
|
+
--input-variant-outlined-hover-border: var(--stroke-primary-hover);
|
|
125
|
+
--input-variant-outline-ring-color: var(--ring-primary);
|
|
126
|
+
--input-variant-underlined-border: var(--stroke-primary);
|
|
127
|
+
--input-variant-underlined-hover-border: var(--stroke-primary-hover);
|
|
128
|
+
--input-variant-filled: var(--fill-primary-weak);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:is(.secondary-zC8OiE, .infonomic-autocomplete-input-secondary) {
|
|
132
|
+
--input-variant-outlined-border: var(--stroke-secondary);
|
|
133
|
+
--input-variant-outlined-hover-border: var(--stroke-secondary-hover);
|
|
134
|
+
--input-variant-outline-ring-color: var(--ring-secondary);
|
|
135
|
+
--input-variant-underlined-border: var(--stroke-secondary);
|
|
136
|
+
--input-variant-underlined-hover-border: var(--stroke-secondary-hover);
|
|
137
|
+
--input-variant-filled: var(--fill-secondary-weak);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:is(.noeffect-sFS4eb, .infonomic-autocomplete-input-noeffect) {
|
|
141
|
+
--input-variant-outlined-border: var(--stroke-noeffect);
|
|
142
|
+
--input-variant-outlined-hover-border: var(--stroke-noeffect-hover);
|
|
143
|
+
--input-variant-outline-ring-color: var(--ring-noeffect);
|
|
144
|
+
--input-variant-underlined-border: var(--stroke-noeffect);
|
|
145
|
+
--input-variant-underlined-hover-border: var(--stroke-noeffect-hover);
|
|
146
|
+
--input-variant-filled: var(--fill-noeffect-weak);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:is(.success-rkhMDk, .infonomic-autocomplete-input-success) {
|
|
150
|
+
--input-variant-outlined-border: var(--stroke-success);
|
|
151
|
+
--input-variant-outlined-hover-border: var(--stroke-success-hover);
|
|
152
|
+
--input-variant-outline-ring-color: var(--ring-success);
|
|
153
|
+
--input-variant-underlined-border: var(--stroke-success);
|
|
154
|
+
--input-variant-underlined-hover-border: var(--stroke-success-hover);
|
|
155
|
+
--input-variant-filled: var(--fill-success-weak);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:is(.info-Fnv8u5, .infonomic-autocomplete-input-info) {
|
|
159
|
+
--input-variant-outlined-border: var(--stroke-info);
|
|
160
|
+
--input-variant-outlined-hover-border: var(--stroke-info-hover);
|
|
161
|
+
--input-variant-outline-ring-color: var(--ring-info);
|
|
162
|
+
--input-variant-underlined-border: var(--stroke-info);
|
|
163
|
+
--input-variant-underlined-hover-border: var(--stroke-info-hover);
|
|
164
|
+
--input-variant-filled: var(--fill-info-weak);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:is(.warning-MCe1Jq, .infonomic-autocomplete-input-warning) {
|
|
168
|
+
--input-variant-outlined-border: var(--stroke-warning);
|
|
169
|
+
--input-variant-outlined-hover-border: var(--stroke-warning-hover);
|
|
170
|
+
--input-variant-outline-ring-color: var(--ring-warning);
|
|
171
|
+
--input-variant-underlined-border: var(--stroke-warning);
|
|
172
|
+
--input-variant-underlined-hover-border: var(--stroke-warning-hover);
|
|
173
|
+
--input-variant-filled: var(--fill-warning-weak);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:is(.danger-uyUS1z, .infonomic-autocomplete-input-danger) {
|
|
177
|
+
--input-variant-outlined-border: var(--stroke-danger);
|
|
178
|
+
--input-variant-outlined-hover-border: var(--stroke-danger-hover);
|
|
179
|
+
--input-variant-outline-ring-color: var(--ring-danger);
|
|
180
|
+
--input-variant-underlined-border: var(--stroke-danger);
|
|
181
|
+
--input-variant-underlined-hover-border: var(--stroke-danger-hover);
|
|
182
|
+
--input-variant-filled: var(--fill-danger-weak);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:is(.positioner-LkIIwT, .infonomic-autocomplete-positioner) {
|
|
186
|
+
z-index: 50;
|
|
187
|
+
outline: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:is(.popup-MGvAiW, .infonomic-autocomplete-popup) {
|
|
191
|
+
z-index: 50;
|
|
192
|
+
border: 1px solid var(--surface-panel-border);
|
|
193
|
+
box-shadow: var(--shadow-md);
|
|
194
|
+
border-radius: var(--border-radius-md);
|
|
195
|
+
background-color: var(--surface-panel-elevated);
|
|
196
|
+
width: var(--anchor-width);
|
|
197
|
+
max-height: min(23rem, var(--available-height));
|
|
198
|
+
max-width: var(--available-width);
|
|
199
|
+
margin-top: 2px;
|
|
200
|
+
padding: 6px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.popup-sm-Fk47F5 {
|
|
204
|
+
padding: 4px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.popup-md-zIhzgb {
|
|
208
|
+
padding: 6px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.popup-lg-hTq8_O {
|
|
212
|
+
padding: 8px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:is(.list-U6_3IW, .infonomic-autocomplete-list) {
|
|
216
|
+
box-sizing: border-box;
|
|
217
|
+
overscroll-behavior: contain;
|
|
218
|
+
max-height: min(23rem, var(--available-height));
|
|
219
|
+
outline: 0;
|
|
220
|
+
padding-block: .25rem;
|
|
221
|
+
scroll-padding-block: .25rem;
|
|
222
|
+
overflow-y: auto;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:is(.list-U6_3IW[data-empty], .infonomic-autocomplete-list[data-empty]) {
|
|
226
|
+
padding: 0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:is(.autocomplete-item-GHvdpB, .infonomic-autocomplete-item) {
|
|
230
|
+
-webkit-user-select: none;
|
|
231
|
+
user-select: none;
|
|
232
|
+
cursor: default;
|
|
233
|
+
color: var(--surface-item-text);
|
|
234
|
+
background-color: var(--surface-item);
|
|
235
|
+
padding-block: .5rem;
|
|
236
|
+
border-radius: 6px;
|
|
237
|
+
outline: 0;
|
|
238
|
+
align-items: center;
|
|
239
|
+
padding-left: .75rem;
|
|
240
|
+
padding-right: .75rem;
|
|
241
|
+
font-size: 1rem;
|
|
242
|
+
line-height: 1;
|
|
243
|
+
display: flex;
|
|
244
|
+
position: relative;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.autocomplete-item-GHvdpB[data-disabled] {
|
|
248
|
+
color: var(--surface-item-text-disabled);
|
|
249
|
+
pointer-events: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.infonomic-autocomplete-item[data-disabled] {
|
|
253
|
+
color: var(--surface-item-text-disabled);
|
|
254
|
+
pointer-events: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.autocomplete-item-GHvdpB[data-highlighted] {
|
|
258
|
+
background-color: var(--surface-item-hover);
|
|
259
|
+
color: var(--surface-item-text-hover);
|
|
260
|
+
outline: none;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.infonomic-autocomplete-item[data-highlighted] {
|
|
264
|
+
background-color: var(--surface-item-hover);
|
|
265
|
+
color: var(--surface-item-text-hover);
|
|
266
|
+
outline: none;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.popup-sm-Fk47F5 .autocomplete-item-GHvdpB {
|
|
270
|
+
padding-block: .375rem;
|
|
271
|
+
border-radius: 4px;
|
|
272
|
+
padding-left: .5rem;
|
|
273
|
+
padding-right: .5rem;
|
|
274
|
+
font-size: .75rem;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.popup-md-zIhzgb .autocomplete-item-GHvdpB {
|
|
278
|
+
font-size: .875rem;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.popup-lg-hTq8_O .autocomplete-item-GHvdpB {
|
|
282
|
+
padding-block: .625rem;
|
|
283
|
+
border-radius: 8px;
|
|
284
|
+
padding-left: 1rem;
|
|
285
|
+
padding-right: 1rem;
|
|
286
|
+
font-size: 1.125rem;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
:is(.group-label-yz4GS8, .infonomic-autocomplete-group-label) {
|
|
290
|
+
color: var(--muted);
|
|
291
|
+
text-transform: uppercase;
|
|
292
|
+
letter-spacing: .05em;
|
|
293
|
+
padding: .375rem .75rem;
|
|
294
|
+
font-size: .75rem;
|
|
295
|
+
font-weight: 600;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
:is(.separator-sgreyb, .infonomic-autocomplete-separator) {
|
|
299
|
+
background-color: var(--surface-panel-border);
|
|
300
|
+
height: 1px;
|
|
301
|
+
margin: .375rem .75rem;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
:is(.empty-xvhK78:not(:empty), .infonomic-autocomplete-empty:not(:empty)) {
|
|
305
|
+
box-sizing: border-box;
|
|
306
|
+
color: var(--muted);
|
|
307
|
+
padding: 1rem;
|
|
308
|
+
font-size: .925rem;
|
|
309
|
+
line-height: 1;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback } from "react";
|
|
4
3
|
import { Select } from "@base-ui/react/select";
|
|
5
4
|
import classnames from "classnames";
|
|
6
5
|
import { DayPicker } from "react-day-picker";
|
|
@@ -8,6 +7,7 @@ import { ChevronsUpDown } from "../../icons/chevrons-up-down.js";
|
|
|
8
7
|
import { Button } from "../button/button.js";
|
|
9
8
|
import { ScrollArea } from "../scroll-area/scroll-area.js";
|
|
10
9
|
import calendar_module from "./calendar.module.js";
|
|
10
|
+
import * as __rspack_external_react from "react";
|
|
11
11
|
function Calendar({ ref, className, classNames, hideNavigation, showOutsideDays = true, components: customComponents, ...props }) {
|
|
12
12
|
const _monthsClassName = classnames(calendar_module.months, props.monthsClassName);
|
|
13
13
|
const _monthCaptionClassName = classnames(calendar_module["months-caption"], props.monthCaptionClassName);
|
|
@@ -29,7 +29,7 @@ function Calendar({ ref, className, classNames, hideNavigation, showOutsideDays
|
|
|
29
29
|
const _outsideClassName = classnames(calendar_module.outside, props.outsideClassName);
|
|
30
30
|
const _disabledClassName = classnames(calendar_module.disabled, props.disabledClassName);
|
|
31
31
|
const _hiddenClassName = classnames(calendar_module.hidden, props.hiddenClassName);
|
|
32
|
-
const Dropdown = useCallback(({ value, onChange, options })=>{
|
|
32
|
+
const Dropdown = __rspack_external_react.useCallback(({ value, onChange, options })=>{
|
|
33
33
|
const selected = options?.find((option)=>option.value === value);
|
|
34
34
|
const handleChange = (newValue)=>{
|
|
35
35
|
const changeEvent = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/icons/types/icon.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/react.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './components/chips/chip.js';
|
|
|
19
19
|
export * from './components/container/container.js';
|
|
20
20
|
export * from './components/dropdown/dropdown.js';
|
|
21
21
|
export * from './components/hamburger/hamburger.js';
|
|
22
|
+
export * from './components/inputs/autocomplete.jsx';
|
|
22
23
|
export * from './components/inputs/calendar.jsx';
|
|
23
24
|
export * from './components/inputs/checkbox.jsx';
|
|
24
25
|
export * from './components/inputs/checkbox-group.jsx';
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,cAAc,wCAAwC,CAAA;AACtD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAE3C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAC/E,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,cAAc,qCAAqC,CAAA;AACnD,cAAc,wCAAwC,CAAA;AACtD,cAAc,oCAAoC,CAAA;AAClD,cAAc,oCAAoC,CAAA;AAClD,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qCAAqC,CAAA;AACnD,cAAc,mCAAmC,CAAA;AACjD,cAAc,qCAAqC,CAAA;AACnD,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA;AAChD,cAAc,wCAAwC,CAAA;AACtD,cAAc,oCAAoC,CAAA;AAClD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,wCAAwC,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,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA"}
|
package/dist/react.js
CHANGED
|
@@ -14,6 +14,7 @@ export * from "./components/chips/chip.js";
|
|
|
14
14
|
export * from "./components/container/container.js";
|
|
15
15
|
export * from "./components/dropdown/dropdown.js";
|
|
16
16
|
export * from "./components/hamburger/hamburger.js";
|
|
17
|
+
export * from "./components/inputs/autocomplete.js";
|
|
17
18
|
export * from "./components/inputs/calendar.js";
|
|
18
19
|
export * from "./components/inputs/checkbox.js";
|
|
19
20
|
export * from "./components/inputs/checkbox-group.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@infonomic/uikit",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "6.
|
|
5
|
+
"version": "6.5.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "Infonomic UI kit is a collection of reusable UI components and utilities for React and Astro.",
|
|
8
8
|
"keywords": [
|
|
@@ -57,46 +57,50 @@
|
|
|
57
57
|
"default": "./dist/styles/components-vanilla.css"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"react": "^19.0.0",
|
|
62
|
+
"react-dom": "^19.0.0"
|
|
63
|
+
},
|
|
60
64
|
"dependencies": {
|
|
61
|
-
"@base-ui/react": "^1.
|
|
65
|
+
"@base-ui/react": "^1.4.0",
|
|
62
66
|
"classnames": "^2.5.1",
|
|
63
67
|
"date-fns": "^4.1.0",
|
|
64
68
|
"motion": "^12.38.0",
|
|
65
69
|
"npm-run-all": "^4.1.5",
|
|
66
70
|
"prism-react-renderer": "^2.4.1",
|
|
67
|
-
"react": "19.2.4",
|
|
68
71
|
"react-day-picker": "^9.14.0",
|
|
69
|
-
"react-dom": "19.2.4",
|
|
70
72
|
"zod": "^4.3.6",
|
|
71
73
|
"zod-form-data": "^3.0.1"
|
|
72
74
|
},
|
|
73
75
|
"devDependencies": {
|
|
74
76
|
"@astrojs/check": "0.9.8",
|
|
75
|
-
"@astrojs/node": "10.0.
|
|
76
|
-
"@biomejs/biome": "2.4.
|
|
77
|
+
"@astrojs/node": "10.0.5",
|
|
78
|
+
"@biomejs/biome": "2.4.12",
|
|
77
79
|
"@rsbuild/plugin-react": "^1.4.6",
|
|
78
|
-
"@rslib/core": "^0.
|
|
79
|
-
"@storybook/addon-a11y": "^10.3.
|
|
80
|
-
"@storybook/addon-docs": "^10.3.
|
|
81
|
-
"@storybook/addon-links": "^10.3.
|
|
82
|
-
"@storybook/addon-themes": "^10.3.
|
|
83
|
-
"@storybook/react-vite": "^10.3.
|
|
80
|
+
"@rslib/core": "^0.21.2",
|
|
81
|
+
"@storybook/addon-a11y": "^10.3.5",
|
|
82
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
83
|
+
"@storybook/addon-links": "^10.3.5",
|
|
84
|
+
"@storybook/addon-themes": "^10.3.5",
|
|
85
|
+
"@storybook/react-vite": "^10.3.5",
|
|
84
86
|
"@types/lodash": "^4.17.24",
|
|
85
|
-
"@types/node": "^25.
|
|
87
|
+
"@types/node": "^25.6.0",
|
|
86
88
|
"@types/react": "19.2.14",
|
|
87
89
|
"@types/react-dom": "19.2.3",
|
|
88
90
|
"@vitejs/plugin-react": "^6.0.1",
|
|
89
|
-
"astro": "6.
|
|
91
|
+
"astro": "6.1.7",
|
|
90
92
|
"chokidar": "^5.0.0",
|
|
91
|
-
"eslint-plugin-storybook": "^10.3.
|
|
93
|
+
"eslint-plugin-storybook": "^10.3.5",
|
|
92
94
|
"lightningcss": "^1.32.0",
|
|
93
95
|
"lightningcss-cli": "^1.32.0",
|
|
96
|
+
"react": "19.2.5",
|
|
97
|
+
"react-dom": "19.2.5",
|
|
94
98
|
"rimraf": "^6.1.3",
|
|
95
|
-
"storybook": "^10.3.
|
|
96
|
-
"typescript": "
|
|
99
|
+
"storybook": "^10.3.5",
|
|
100
|
+
"typescript": "6.0.2",
|
|
97
101
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
98
|
-
"vite": "^8.0.
|
|
99
|
-
"vitest": "^4.1.
|
|
102
|
+
"vite": "^8.0.8",
|
|
103
|
+
"vitest": "^4.1.4"
|
|
100
104
|
},
|
|
101
105
|
"publishConfig": {
|
|
102
106
|
"access": "public",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Intent as t } from '../../@types/shared.js'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Available visual style variants for the Autocomplete input.
|
|
5
|
+
*/
|
|
6
|
+
export const variant = ['outlined', 'filled', 'underlined'] as const
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Visual style variant of the autocomplete input field.
|
|
10
|
+
*
|
|
11
|
+
* - `outlined` — full border on all sides with a transparent background (default)
|
|
12
|
+
* - `filled` — tinted background
|
|
13
|
+
* - `underlined` — bottom border only, no background (minimal style)
|
|
14
|
+
*
|
|
15
|
+
* @default 'outlined'
|
|
16
|
+
*/
|
|
17
|
+
export type Variant = (typeof variant)[number]
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Available size tokens for the Autocomplete component.
|
|
21
|
+
*/
|
|
22
|
+
export const size = ['sm', 'md', 'lg'] as const
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Visual size of the autocomplete component.
|
|
26
|
+
*
|
|
27
|
+
* - `sm` — compact, suitable for inline forms or dense layouts
|
|
28
|
+
* - `md` — standard form size (default)
|
|
29
|
+
* - `lg` — large, prominent input
|
|
30
|
+
*
|
|
31
|
+
* @default 'md'
|
|
32
|
+
*/
|
|
33
|
+
export type Size = (typeof size)[number]
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Semantic color intent applied to the autocomplete border and focus ring.
|
|
37
|
+
* @default 'primary'
|
|
38
|
+
*/
|
|
39
|
+
export type Intent = 'primary' | t
|