@xsolla/xui-select 0.128.0 → 0.130.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 +13 -1
- package/native/index.d.mts +2 -1
- package/native/index.d.ts +2 -1
- package/native/index.js +486 -129
- package/native/index.js.map +1 -1
- package/native/index.mjs +487 -126
- package/native/index.mjs.map +1 -1
- package/package.json +3 -3
- package/web/index.d.mts +2 -1
- package/web/index.d.ts +2 -1
- package/web/index.js +479 -128
- package/web/index.js.map +1 -1
- package/web/index.mjs +480 -125
- package/web/index.mjs.map +1 -1
package/web/index.mjs
CHANGED
|
@@ -39,6 +39,8 @@ var StyledBox = styled.div`
|
|
|
39
39
|
width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
|
|
40
40
|
min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
|
|
41
41
|
min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
|
|
42
|
+
max-width: ${(props) => typeof props.maxWidth === "number" ? `${props.maxWidth}px` : props.maxWidth || "none"};
|
|
43
|
+
max-height: ${(props) => typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight || "none"};
|
|
42
44
|
|
|
43
45
|
padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
|
|
44
46
|
${(props) => props.paddingHorizontal && `
|
|
@@ -226,110 +228,458 @@ var Icon = ({ children, ...props }) => {
|
|
|
226
228
|
};
|
|
227
229
|
|
|
228
230
|
// src/Select.tsx
|
|
229
|
-
import {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
231
|
+
import {
|
|
232
|
+
useResolvedTheme,
|
|
233
|
+
isNative,
|
|
234
|
+
isWeb
|
|
235
|
+
} from "@xsolla/xui-core";
|
|
236
|
+
|
|
237
|
+
// ../icons-base/dist/web/index.mjs
|
|
238
|
+
import styled4 from "styled-components";
|
|
239
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
240
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
241
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
242
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
243
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
244
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
245
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
246
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
247
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
248
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
249
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
250
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
251
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
252
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
253
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
254
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
255
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
256
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
257
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
258
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
259
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
260
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
261
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
262
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
263
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
264
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
265
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
266
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
267
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
268
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
269
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
270
|
+
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
271
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
272
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
273
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
274
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
275
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
276
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
277
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
278
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
279
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
280
|
+
import { jsx as jsx422 } from "react/jsx-runtime";
|
|
281
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
282
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
283
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
284
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
285
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
286
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
287
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
288
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
289
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
290
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
291
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
292
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
293
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
294
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
295
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
296
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
297
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
298
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
299
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
300
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
301
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
302
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
303
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
304
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
305
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
306
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
307
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
308
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
309
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
310
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
311
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
312
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
313
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
314
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
315
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
316
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
317
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
318
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
319
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
320
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
321
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
322
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
323
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
324
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
325
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
326
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
327
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
328
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
329
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
330
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
331
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
332
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
333
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
334
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
335
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
336
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
337
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
338
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
339
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
340
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
341
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
342
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
343
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
344
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
345
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
346
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
347
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
348
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
349
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
350
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
351
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
352
|
+
import { jsx as jsx114 } from "react/jsx-runtime";
|
|
353
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
354
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
355
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
356
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
357
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
358
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
359
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
360
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
361
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
362
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
363
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
364
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
365
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
366
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
367
|
+
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
368
|
+
import { jsx as jsx130 } from "react/jsx-runtime";
|
|
369
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
370
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
371
|
+
import { jsx as jsx133 } from "react/jsx-runtime";
|
|
372
|
+
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
373
|
+
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
374
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
375
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
376
|
+
import { jsx as jsx138 } from "react/jsx-runtime";
|
|
377
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
378
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
379
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
380
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
381
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
382
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
383
|
+
import { jsx as jsx145 } from "react/jsx-runtime";
|
|
384
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
385
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
386
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
387
|
+
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
388
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
389
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
390
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
391
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
392
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
393
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
394
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
395
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
396
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
397
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
398
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
399
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
400
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
401
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
402
|
+
import { jsx as jsx164 } from "react/jsx-runtime";
|
|
403
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
404
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
405
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
406
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
407
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
408
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
409
|
+
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
410
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
411
|
+
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
412
|
+
import { jsx as jsx174 } from "react/jsx-runtime";
|
|
413
|
+
import { jsx as jsx175 } from "react/jsx-runtime";
|
|
414
|
+
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
415
|
+
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
416
|
+
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
417
|
+
import { jsx as jsx179 } from "react/jsx-runtime";
|
|
418
|
+
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
419
|
+
import { jsx as jsx181 } from "react/jsx-runtime";
|
|
420
|
+
import { jsx as jsx182 } from "react/jsx-runtime";
|
|
421
|
+
import { jsx as jsx183 } from "react/jsx-runtime";
|
|
422
|
+
import { jsx as jsx184 } from "react/jsx-runtime";
|
|
423
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
424
|
+
import { jsx as jsx186 } from "react/jsx-runtime";
|
|
425
|
+
import { jsx as jsx187 } from "react/jsx-runtime";
|
|
426
|
+
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
427
|
+
import { jsx as jsx189 } from "react/jsx-runtime";
|
|
428
|
+
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
429
|
+
import { jsx as jsx191 } from "react/jsx-runtime";
|
|
430
|
+
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
431
|
+
import { jsx as jsx193 } from "react/jsx-runtime";
|
|
432
|
+
import { jsx as jsx194 } from "react/jsx-runtime";
|
|
433
|
+
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
434
|
+
import { jsx as jsx196 } from "react/jsx-runtime";
|
|
435
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
436
|
+
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
437
|
+
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
438
|
+
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
439
|
+
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
440
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
441
|
+
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
442
|
+
import { jsx as jsx204 } from "react/jsx-runtime";
|
|
443
|
+
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
444
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
445
|
+
import { jsx as jsx207 } from "react/jsx-runtime";
|
|
446
|
+
import { jsx as jsx208 } from "react/jsx-runtime";
|
|
447
|
+
import { jsx as jsx209 } from "react/jsx-runtime";
|
|
448
|
+
import { jsx as jsx210 } from "react/jsx-runtime";
|
|
449
|
+
import { jsx as jsx211 } from "react/jsx-runtime";
|
|
450
|
+
import { jsx as jsx212 } from "react/jsx-runtime";
|
|
451
|
+
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
452
|
+
import { jsx as jsx214 } from "react/jsx-runtime";
|
|
453
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
454
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
455
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
456
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
457
|
+
import { jsx as jsx219 } from "react/jsx-runtime";
|
|
458
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
459
|
+
import { jsx as jsx221 } from "react/jsx-runtime";
|
|
460
|
+
import { jsx as jsx2222 } from "react/jsx-runtime";
|
|
461
|
+
import { jsx as jsx223 } from "react/jsx-runtime";
|
|
462
|
+
import { jsx as jsx224 } from "react/jsx-runtime";
|
|
463
|
+
import { jsx as jsx225 } from "react/jsx-runtime";
|
|
464
|
+
import { jsx as jsx226 } from "react/jsx-runtime";
|
|
465
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
466
|
+
import { jsx as jsx228 } from "react/jsx-runtime";
|
|
467
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
468
|
+
import { jsx as jsx230 } from "react/jsx-runtime";
|
|
469
|
+
import { jsx as jsx231 } from "react/jsx-runtime";
|
|
470
|
+
import { jsx as jsx232 } from "react/jsx-runtime";
|
|
471
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
472
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
473
|
+
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
474
|
+
import { jsx as jsx236 } from "react/jsx-runtime";
|
|
475
|
+
import { jsx as jsx237 } from "react/jsx-runtime";
|
|
476
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
477
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
478
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
479
|
+
import { jsx as jsx241 } from "react/jsx-runtime";
|
|
480
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
481
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
482
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
483
|
+
import { jsx as jsx245 } from "react/jsx-runtime";
|
|
484
|
+
import { jsx as jsx246 } from "react/jsx-runtime";
|
|
485
|
+
import { jsx as jsx247 } from "react/jsx-runtime";
|
|
486
|
+
import { jsx as jsx248 } from "react/jsx-runtime";
|
|
487
|
+
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
488
|
+
import { jsx as jsx250 } from "react/jsx-runtime";
|
|
489
|
+
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
490
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
491
|
+
import { jsx as jsx253 } from "react/jsx-runtime";
|
|
492
|
+
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
493
|
+
import { jsx as jsx255 } from "react/jsx-runtime";
|
|
494
|
+
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
495
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
496
|
+
import { jsx as jsx258 } from "react/jsx-runtime";
|
|
497
|
+
import { jsx as jsx259 } from "react/jsx-runtime";
|
|
498
|
+
import { jsx as jsx260 } from "react/jsx-runtime";
|
|
499
|
+
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
500
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
501
|
+
import { jsx as jsx263 } from "react/jsx-runtime";
|
|
502
|
+
import { jsx as jsx264 } from "react/jsx-runtime";
|
|
503
|
+
import { jsx as jsx265 } from "react/jsx-runtime";
|
|
504
|
+
import { jsx as jsx266 } from "react/jsx-runtime";
|
|
505
|
+
import { jsx as jsx267 } from "react/jsx-runtime";
|
|
506
|
+
import { jsx as jsx268 } from "react/jsx-runtime";
|
|
507
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
508
|
+
import { jsx as jsx270 } from "react/jsx-runtime";
|
|
509
|
+
import { jsx as jsx271 } from "react/jsx-runtime";
|
|
510
|
+
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
511
|
+
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
512
|
+
import { jsx as jsx274 } from "react/jsx-runtime";
|
|
513
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
514
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
515
|
+
import { jsx as jsx277 } from "react/jsx-runtime";
|
|
516
|
+
import { jsx as jsx278 } from "react/jsx-runtime";
|
|
517
|
+
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
518
|
+
import { jsx as jsx280 } from "react/jsx-runtime";
|
|
519
|
+
import { jsx as jsx281 } from "react/jsx-runtime";
|
|
520
|
+
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
521
|
+
import { jsx as jsx283 } from "react/jsx-runtime";
|
|
522
|
+
import { jsx as jsx284 } from "react/jsx-runtime";
|
|
523
|
+
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
524
|
+
import { jsx as jsx286 } from "react/jsx-runtime";
|
|
525
|
+
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
526
|
+
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
527
|
+
import { jsx as jsx289 } from "react/jsx-runtime";
|
|
528
|
+
import { jsx as jsx290 } from "react/jsx-runtime";
|
|
529
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
530
|
+
import { jsx as jsx292 } from "react/jsx-runtime";
|
|
531
|
+
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
532
|
+
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
533
|
+
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
534
|
+
import { jsx as jsx296 } from "react/jsx-runtime";
|
|
535
|
+
import { jsx as jsx297 } from "react/jsx-runtime";
|
|
536
|
+
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
537
|
+
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
538
|
+
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
539
|
+
import { jsx as jsx301 } from "react/jsx-runtime";
|
|
540
|
+
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
541
|
+
import { jsx as jsx303 } from "react/jsx-runtime";
|
|
542
|
+
import { jsx as jsx304 } from "react/jsx-runtime";
|
|
543
|
+
import { jsx as jsx305 } from "react/jsx-runtime";
|
|
544
|
+
import { jsx as jsx306 } from "react/jsx-runtime";
|
|
545
|
+
import { jsx as jsx307 } from "react/jsx-runtime";
|
|
546
|
+
import { jsx as jsx308 } from "react/jsx-runtime";
|
|
547
|
+
import { jsx as jsx309 } from "react/jsx-runtime";
|
|
548
|
+
import { jsx as jsx310 } from "react/jsx-runtime";
|
|
549
|
+
import { jsx as jsx311 } from "react/jsx-runtime";
|
|
550
|
+
import { jsx as jsx312 } from "react/jsx-runtime";
|
|
551
|
+
import { jsx as jsx313 } from "react/jsx-runtime";
|
|
552
|
+
import { jsx as jsx314 } from "react/jsx-runtime";
|
|
553
|
+
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
554
|
+
import { jsx as jsx316 } from "react/jsx-runtime";
|
|
555
|
+
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
556
|
+
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
557
|
+
import { jsx as jsx319 } from "react/jsx-runtime";
|
|
558
|
+
import { jsx as jsx320 } from "react/jsx-runtime";
|
|
559
|
+
import { jsx as jsx321 } from "react/jsx-runtime";
|
|
560
|
+
import { jsx as jsx3222 } from "react/jsx-runtime";
|
|
561
|
+
import { jsx as jsx323 } from "react/jsx-runtime";
|
|
562
|
+
import { jsx as jsx324 } from "react/jsx-runtime";
|
|
563
|
+
import { jsx as jsx325 } from "react/jsx-runtime";
|
|
564
|
+
import { jsx as jsx326 } from "react/jsx-runtime";
|
|
565
|
+
import { jsx as jsx327 } from "react/jsx-runtime";
|
|
566
|
+
import { jsx as jsx328 } from "react/jsx-runtime";
|
|
567
|
+
import { jsx as jsx329 } from "react/jsx-runtime";
|
|
568
|
+
import { jsx as jsx330 } from "react/jsx-runtime";
|
|
569
|
+
import { jsx as jsx331 } from "react/jsx-runtime";
|
|
570
|
+
import { jsx as jsx332 } from "react/jsx-runtime";
|
|
571
|
+
import { jsx as jsx333 } from "react/jsx-runtime";
|
|
572
|
+
import { jsx as jsx334 } from "react/jsx-runtime";
|
|
573
|
+
import { jsx as jsx335 } from "react/jsx-runtime";
|
|
574
|
+
import { jsx as jsx336 } from "react/jsx-runtime";
|
|
575
|
+
import { jsx as jsx337 } from "react/jsx-runtime";
|
|
576
|
+
import { jsx as jsx338 } from "react/jsx-runtime";
|
|
577
|
+
import { jsx as jsx339 } from "react/jsx-runtime";
|
|
578
|
+
import { jsx as jsx340 } from "react/jsx-runtime";
|
|
579
|
+
import { jsx as jsx341 } from "react/jsx-runtime";
|
|
580
|
+
import { jsx as jsx342 } from "react/jsx-runtime";
|
|
581
|
+
import { jsx as jsx343 } from "react/jsx-runtime";
|
|
582
|
+
import { jsx as jsx344 } from "react/jsx-runtime";
|
|
583
|
+
import { jsx as jsx345 } from "react/jsx-runtime";
|
|
584
|
+
import { jsx as jsx346 } from "react/jsx-runtime";
|
|
585
|
+
import { jsx as jsx347 } from "react/jsx-runtime";
|
|
586
|
+
import { jsx as jsx348 } from "react/jsx-runtime";
|
|
587
|
+
import { jsx as jsx349 } from "react/jsx-runtime";
|
|
588
|
+
import { jsx as jsx350 } from "react/jsx-runtime";
|
|
589
|
+
import { jsx as jsx351 } from "react/jsx-runtime";
|
|
590
|
+
import { jsx as jsx352 } from "react/jsx-runtime";
|
|
591
|
+
import { jsx as jsx353 } from "react/jsx-runtime";
|
|
592
|
+
import { jsx as jsx354 } from "react/jsx-runtime";
|
|
593
|
+
import { jsx as jsx355 } from "react/jsx-runtime";
|
|
594
|
+
import { jsx as jsx356 } from "react/jsx-runtime";
|
|
595
|
+
import { jsx as jsx357 } from "react/jsx-runtime";
|
|
596
|
+
import { jsx as jsx358 } from "react/jsx-runtime";
|
|
597
|
+
import { jsx as jsx359 } from "react/jsx-runtime";
|
|
598
|
+
import { jsx as jsx360 } from "react/jsx-runtime";
|
|
599
|
+
import { jsx as jsx361 } from "react/jsx-runtime";
|
|
600
|
+
import { jsx as jsx362 } from "react/jsx-runtime";
|
|
601
|
+
import { jsx as jsx363 } from "react/jsx-runtime";
|
|
602
|
+
import { jsx as jsx364 } from "react/jsx-runtime";
|
|
603
|
+
import { jsx as jsx365 } from "react/jsx-runtime";
|
|
604
|
+
import { jsx as jsx366 } from "react/jsx-runtime";
|
|
605
|
+
import { jsx as jsx367 } from "react/jsx-runtime";
|
|
606
|
+
import { jsx as jsx368 } from "react/jsx-runtime";
|
|
607
|
+
import { jsx as jsx369 } from "react/jsx-runtime";
|
|
608
|
+
import { jsx as jsx370 } from "react/jsx-runtime";
|
|
609
|
+
import { jsx as jsx371 } from "react/jsx-runtime";
|
|
610
|
+
import { jsx as jsx372 } from "react/jsx-runtime";
|
|
611
|
+
import { jsx as jsx373 } from "react/jsx-runtime";
|
|
612
|
+
import { jsx as jsx374 } from "react/jsx-runtime";
|
|
613
|
+
import { jsx as jsx375 } from "react/jsx-runtime";
|
|
614
|
+
import { jsx as jsx376 } from "react/jsx-runtime";
|
|
615
|
+
import { jsx as jsx377 } from "react/jsx-runtime";
|
|
616
|
+
import { jsx as jsx378 } from "react/jsx-runtime";
|
|
617
|
+
import { jsx as jsx379 } from "react/jsx-runtime";
|
|
618
|
+
import { jsx as jsx380 } from "react/jsx-runtime";
|
|
619
|
+
import { jsx as jsx381 } from "react/jsx-runtime";
|
|
620
|
+
import { jsx as jsx382 } from "react/jsx-runtime";
|
|
621
|
+
import { jsx as jsx383 } from "react/jsx-runtime";
|
|
622
|
+
import { jsx as jsx384 } from "react/jsx-runtime";
|
|
623
|
+
import { jsx as jsx385 } from "react/jsx-runtime";
|
|
624
|
+
import { jsx as jsx386 } from "react/jsx-runtime";
|
|
625
|
+
import { jsx as jsx387 } from "react/jsx-runtime";
|
|
626
|
+
var StyledIcon2 = styled4.div`
|
|
627
|
+
display: inline-flex;
|
|
628
|
+
align-items: center;
|
|
629
|
+
justify-content: center;
|
|
630
|
+
width: ${(props) => props.$size};
|
|
631
|
+
height: ${(props) => props.$size};
|
|
632
|
+
color: ${(props) => props.$color};
|
|
633
|
+
|
|
634
|
+
svg {
|
|
635
|
+
width: 100%;
|
|
636
|
+
height: 100%;
|
|
331
637
|
}
|
|
332
|
-
|
|
638
|
+
`;
|
|
639
|
+
var BaseIcon = ({
|
|
640
|
+
variant = "line",
|
|
641
|
+
size = 24,
|
|
642
|
+
color = "currentColor",
|
|
643
|
+
solidContent: solidContent387,
|
|
644
|
+
lineContent: lineContent387,
|
|
645
|
+
className,
|
|
646
|
+
style,
|
|
647
|
+
"data-testid": testId,
|
|
648
|
+
"aria-label": ariaLabel,
|
|
649
|
+
"aria-hidden": ariaHidden
|
|
650
|
+
}) => {
|
|
651
|
+
const svgContent = variant === "line" ? lineContent387 : solidContent387;
|
|
652
|
+
const sizeValue = typeof size === "number" ? `${size}px` : size;
|
|
653
|
+
return /* @__PURE__ */ jsx4(
|
|
654
|
+
StyledIcon2,
|
|
655
|
+
{
|
|
656
|
+
$size: sizeValue,
|
|
657
|
+
$color: color,
|
|
658
|
+
className,
|
|
659
|
+
style,
|
|
660
|
+
"data-testid": testId,
|
|
661
|
+
role: ariaLabel ? "img" : void 0,
|
|
662
|
+
"aria-label": ariaLabel,
|
|
663
|
+
"aria-hidden": ariaHidden != null ? ariaHidden : ariaLabel ? void 0 : true,
|
|
664
|
+
dangerouslySetInnerHTML: { __html: svgContent }
|
|
665
|
+
}
|
|
666
|
+
);
|
|
667
|
+
};
|
|
668
|
+
var solidContent71 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_chevron-down--solid"><path id="Union" d="M7.19337 11.1943C6.75239 10.7533 7.06471 9.99933 7.68834 9.99933L16.3084 9.99933C16.9321 9.99933 17.2444 10.7533 16.8034 11.1943L12.7055 15.2922C12.315 15.6827 11.6818 15.6827 11.2913 15.2922L7.19337 11.1943Z" style="fill: currentColor"/></g></svg>`;
|
|
669
|
+
var lineContent71 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_chevron-down--line"><path id="Union" d="M12.7178 15.7808C12.3273 16.1713 11.6942 16.1713 11.3036 15.7808L4.30371 8.78084L5.71777 7.36678L12.0107 13.6597L18.3037 7.36678L19.7178 8.78084L12.7178 15.7808Z" style="fill: currentColor"/></g></svg>`;
|
|
670
|
+
var ChevronDown = (props) => /* @__PURE__ */ jsx72(BaseIcon, { ...props, solidContent: solidContent71, lineContent: lineContent71 });
|
|
671
|
+
var solidContent80 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_chevron-up--solid"><path id="Union" d="M16.8066 12.8057C17.2476 13.2467 16.9352 14.0007 16.3116 14.0007H7.69152C7.06788 14.0007 6.75557 13.2467 7.19654 12.8057L11.2945 8.70778C11.685 8.31726 12.3181 8.31726 12.7087 8.70778L16.8066 12.8057Z" style="fill: currentColor"/></g></svg>`;
|
|
672
|
+
var lineContent80 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_chevron-up--line"><path id="Union" d="M11.2929 7.93945C11.6834 7.54893 12.3166 7.54893 12.7071 7.93945L19.707 14.9394L18.293 16.3534L12 10.0605L5.70703 16.3534L4.29297 14.9394L11.2929 7.93945Z" style="fill: currentColor"/></g></svg>`;
|
|
673
|
+
var ChevronUp = (props) => /* @__PURE__ */ jsx81(BaseIcon, { ...props, solidContent: solidContent80, lineContent: lineContent80 });
|
|
674
|
+
var solidContent89 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_exclamation-mark-cr--solid"><path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16ZM11 6V14H13V6H11Z" style="fill: currentColor"/></g></svg>`;
|
|
675
|
+
var lineContent89 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_exclamation-mark-cr--line"><g id="Union"><path d="M13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17Z" style="fill: currentColor"/><path d="M13 14H11V6H13V14Z" style="fill: currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z" style="fill: currentColor"/></g></g></svg>`;
|
|
676
|
+
var ExclamationMarkCr = (props) => /* @__PURE__ */ jsx90(BaseIcon, { ...props, solidContent: solidContent89, lineContent: lineContent89 });
|
|
677
|
+
var solidContent373 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_search--line"><path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M10 2C14.4183 2 18 5.58172 18 10C18 11.8484 17.3711 13.5488 16.3184 14.9033L21.957 20.543L20.543 21.957L14.9033 16.3174C13.5487 17.3703 11.8486 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 4C6.68629 4 4 6.68629 4 10C4 13.3137 6.68629 16 10 16C13.3137 16 16 13.3137 16 10C16 6.68629 13.3137 4 10 4Z" style="fill: currentColor"/></g></svg>`;
|
|
678
|
+
var lineContent373 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_search--line"><path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M10 2C14.4183 2 18 5.58172 18 10C18 11.8484 17.3711 13.5488 16.3184 14.9033L21.957 20.543L20.543 21.957L14.9033 16.3174C13.5487 17.3703 11.8486 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 4C6.68629 4 4 6.68629 4 10C4 13.3137 6.68629 16 10 16C13.3137 16 16 13.3137 16 10C16 6.68629 13.3137 4 10 4Z" style="fill: currentColor"/></g></svg>`;
|
|
679
|
+
var Search = (props) => /* @__PURE__ */ jsx374(BaseIcon, { ...props, solidContent: solidContent373, lineContent: lineContent373 });
|
|
680
|
+
|
|
681
|
+
// src/Select.tsx
|
|
682
|
+
import { jsx as jsx388, jsxs } from "react/jsx-runtime";
|
|
333
683
|
var Select = ({
|
|
334
684
|
value,
|
|
335
685
|
placeholder = "Select",
|
|
@@ -348,9 +698,11 @@ var Select = ({
|
|
|
348
698
|
searchable = false,
|
|
349
699
|
searchPlaceholder = "Search",
|
|
350
700
|
noOptionsMessage = "No results",
|
|
351
|
-
maxHeight = 300
|
|
701
|
+
maxHeight = 300,
|
|
702
|
+
themeMode,
|
|
703
|
+
themeProductContext
|
|
352
704
|
}) => {
|
|
353
|
-
const { theme } =
|
|
705
|
+
const { theme } = useResolvedTheme({ themeMode, themeProductContext });
|
|
354
706
|
const [isOpen, setIsOpen] = useState(false);
|
|
355
707
|
const [selectedValue, setSelectedValue] = useState(value);
|
|
356
708
|
const [searchValue, setSearchValue] = useState("");
|
|
@@ -370,7 +722,7 @@ var Select = ({
|
|
|
370
722
|
if (isFocus && selectedItemRef.current && dropdownRef.current) {
|
|
371
723
|
const timeoutId = setTimeout(() => {
|
|
372
724
|
const selectedItem = selectedItemRef.current;
|
|
373
|
-
if (selectedItem) {
|
|
725
|
+
if (selectedItem && isWeb) {
|
|
374
726
|
selectedItem.scrollIntoView({ block: "nearest" });
|
|
375
727
|
}
|
|
376
728
|
}, 0);
|
|
@@ -460,7 +812,7 @@ var Select = ({
|
|
|
460
812
|
width: "100%",
|
|
461
813
|
position: "relative",
|
|
462
814
|
children: [
|
|
463
|
-
label && /* @__PURE__ */
|
|
815
|
+
label && /* @__PURE__ */ jsx388(
|
|
464
816
|
Text,
|
|
465
817
|
{
|
|
466
818
|
color: theme.colors.content.secondary,
|
|
@@ -490,8 +842,8 @@ var Select = ({
|
|
|
490
842
|
borderColor: inputColors.borderHover
|
|
491
843
|
} : void 0,
|
|
492
844
|
children: [
|
|
493
|
-
iconLeft && /* @__PURE__ */
|
|
494
|
-
!iconOnly && /* @__PURE__ */
|
|
845
|
+
iconLeft && /* @__PURE__ */ jsx388(Box, { alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx388(Icon, { size: sizeStyles.iconSize, color: iconColor, children: iconLeft }) }),
|
|
846
|
+
!iconOnly && /* @__PURE__ */ jsx388(Box, { flex: 1, height: "100%", justifyContent: "center", children: /* @__PURE__ */ jsx388(
|
|
495
847
|
Text,
|
|
496
848
|
{
|
|
497
849
|
color: textColor,
|
|
@@ -501,15 +853,15 @@ var Select = ({
|
|
|
501
853
|
}
|
|
502
854
|
) }),
|
|
503
855
|
/* @__PURE__ */ jsxs(Box, { flexDirection: "row", alignItems: "center", gap: 4, children: [
|
|
504
|
-
isError && /* @__PURE__ */
|
|
856
|
+
isError && /* @__PURE__ */ jsx388(
|
|
505
857
|
Icon,
|
|
506
858
|
{
|
|
507
859
|
size: sizeStyles.iconSize,
|
|
508
860
|
color: theme.colors.content.alert.primary,
|
|
509
|
-
children: /* @__PURE__ */
|
|
861
|
+
children: /* @__PURE__ */ jsx388(ExclamationMarkCr, {})
|
|
510
862
|
}
|
|
511
863
|
),
|
|
512
|
-
/* @__PURE__ */
|
|
864
|
+
/* @__PURE__ */ jsx388(Icon, { size: sizeStyles.iconSize, color: iconColor, children: iconRight !== void 0 ? iconRight : isFocus ? /* @__PURE__ */ jsx388(ChevronUp, {}) : /* @__PURE__ */ jsx388(ChevronDown, {}) })
|
|
513
865
|
] })
|
|
514
866
|
]
|
|
515
867
|
}
|
|
@@ -527,11 +879,11 @@ var Select = ({
|
|
|
527
879
|
borderRadius: theme.radius.button,
|
|
528
880
|
style: {
|
|
529
881
|
zIndex: 1e3,
|
|
530
|
-
boxShadow: "0 4px 12px rgba(0,0,0,0.1)",
|
|
882
|
+
...isNative ? { elevation: 4 } : { boxShadow: "0 4px 12px rgba(0,0,0,0.1)" },
|
|
531
883
|
minWidth: iconOnly ? sizeStyles.height * 3 : void 0
|
|
532
884
|
},
|
|
533
885
|
children: [
|
|
534
|
-
searchable && /* @__PURE__ */
|
|
886
|
+
searchable && !isNative && /* @__PURE__ */ jsx388(
|
|
535
887
|
Box,
|
|
536
888
|
{
|
|
537
889
|
paddingHorizontal: sizeStyles.paddingHorizontal,
|
|
@@ -546,15 +898,15 @@ var Select = ({
|
|
|
546
898
|
gap: sizeStyles.paddingHorizontal / 2,
|
|
547
899
|
paddingHorizontal: 4,
|
|
548
900
|
children: [
|
|
549
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ jsx388(
|
|
550
902
|
Icon,
|
|
551
903
|
{
|
|
552
904
|
size: sizeStyles.iconSize - 2,
|
|
553
905
|
color: inputColors.placeholder,
|
|
554
|
-
children: /* @__PURE__ */
|
|
906
|
+
children: /* @__PURE__ */ jsx388(Search, {})
|
|
555
907
|
}
|
|
556
908
|
),
|
|
557
|
-
/* @__PURE__ */
|
|
909
|
+
/* @__PURE__ */ jsx388(
|
|
558
910
|
Box,
|
|
559
911
|
{
|
|
560
912
|
as: "input",
|
|
@@ -579,21 +931,22 @@ var Select = ({
|
|
|
579
931
|
)
|
|
580
932
|
}
|
|
581
933
|
),
|
|
582
|
-
/* @__PURE__ */
|
|
934
|
+
/* @__PURE__ */ jsx388(
|
|
583
935
|
Box,
|
|
584
936
|
{
|
|
585
937
|
paddingVertical: 4,
|
|
938
|
+
overflow: "scroll",
|
|
586
939
|
style: {
|
|
587
940
|
maxHeight: searchable ? maxHeight - 60 : maxHeight,
|
|
588
|
-
overflowY: "auto"
|
|
941
|
+
...isWeb ? { overflowY: "auto" } : {}
|
|
589
942
|
},
|
|
590
|
-
children: filteredOptions.length === 0 ? /* @__PURE__ */
|
|
943
|
+
children: filteredOptions.length === 0 ? /* @__PURE__ */ jsx388(
|
|
591
944
|
Box,
|
|
592
945
|
{
|
|
593
946
|
paddingVertical: sizeStyles.paddingVertical * 2,
|
|
594
947
|
paddingHorizontal: sizeStyles.paddingHorizontal,
|
|
595
948
|
alignItems: "center",
|
|
596
|
-
children: /* @__PURE__ */
|
|
949
|
+
children: /* @__PURE__ */ jsx388(
|
|
597
950
|
Text,
|
|
598
951
|
{
|
|
599
952
|
color: theme.colors.content.tertiary,
|
|
@@ -609,7 +962,7 @@ var Select = ({
|
|
|
609
962
|
const isSelected = optionValue === selectedValue;
|
|
610
963
|
const brandColors = theme.colors.control.brand.primary;
|
|
611
964
|
const contentColors = theme.colors.content;
|
|
612
|
-
return /* @__PURE__ */
|
|
965
|
+
return /* @__PURE__ */ jsx388(
|
|
613
966
|
Box,
|
|
614
967
|
{
|
|
615
968
|
ref: isSelected ? selectedItemRef : void 0,
|
|
@@ -621,13 +974,15 @@ var Select = ({
|
|
|
621
974
|
justifyContent: "space-between",
|
|
622
975
|
backgroundColor: isSelected ? brandColors.bg : "transparent",
|
|
623
976
|
style: {
|
|
624
|
-
|
|
977
|
+
...isWeb ? {
|
|
978
|
+
cursor: isOptionDisabled ? "not-allowed" : "pointer"
|
|
979
|
+
} : {},
|
|
625
980
|
opacity: isOptionDisabled ? 0.5 : 1
|
|
626
981
|
},
|
|
627
982
|
hoverStyle: !isSelected && !isOptionDisabled ? {
|
|
628
983
|
backgroundColor: theme.colors.control.input.bgHover
|
|
629
984
|
} : void 0,
|
|
630
|
-
children: /* @__PURE__ */
|
|
985
|
+
children: /* @__PURE__ */ jsx388(
|
|
631
986
|
Text,
|
|
632
987
|
{
|
|
633
988
|
color: isSelected ? contentColors.on.brand : theme.colors.content.secondary,
|
|
@@ -645,7 +1000,7 @@ var Select = ({
|
|
|
645
1000
|
]
|
|
646
1001
|
}
|
|
647
1002
|
),
|
|
648
|
-
isError && errorMessage && /* @__PURE__ */
|
|
1003
|
+
isError && errorMessage && /* @__PURE__ */ jsx388(
|
|
649
1004
|
Text,
|
|
650
1005
|
{
|
|
651
1006
|
color: theme.colors.content.alert.primary,
|