@alveole/components 1.8.1 → 1.8.3
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/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/ui/Autocomplete/Autocomplete.js +1 -1
- package/dist/ui/Autocomplete/Autocomplete.stories.d.ts +2 -10
- package/dist/ui/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/dist/ui/Autocomplete/Autocomplete.styles.d.ts +2 -10
- package/dist/ui/Autocomplete/Autocomplete.styles.d.ts.map +1 -1
- package/dist/ui/Autocomplete/Autocomplete.styles.js +2 -10
- package/dist/ui/Autocomplete/Autocomplete.web.d.ts.map +1 -1
- package/dist/ui/Autocomplete/Autocomplete.web.js +15 -9
- package/dist/ui/Checkbox/Checkbox.js +1 -1
- package/dist/ui/DateInput/DateInput.ios.js +1 -1
- package/dist/ui/DateInput/DateInput.js +1 -1
- package/dist/ui/DateInput/DateInput.web.js +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.d.ts +1 -0
- package/dist/ui/DocumentViewer/DocumentViewer.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.js +2 -2
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +11 -0
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.js +3 -2
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts +2 -0
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +4 -2
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +10 -0
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.styles.js +6 -0
- package/dist/ui/DocumentViewer/DocumentViewerPDF.d.ts +1 -0
- package/dist/ui/DocumentViewer/DocumentViewerPDF.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.js +20 -13
- package/dist/ui/DocumentViewer/DocumentViewerPDF.native.d.ts +1 -0
- package/dist/ui/DocumentViewer/DocumentViewerPDF.native.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.web.d.ts +1 -0
- package/dist/ui/DocumentViewer/DocumentViewerPDF.web.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.web.js +43 -21
- package/dist/ui/DurationInput/DurationInput.js +1 -1
- package/dist/ui/EmailField/EmailField.js +1 -1
- package/dist/ui/FileField/FileField.js +1 -1
- package/dist/ui/FormControl/FormControlDateInput.js +1 -1
- package/dist/ui/FormControl/FormControlHint.js +1 -1
- package/dist/ui/FormControl/FormControlLabel.js +2 -2
- package/dist/ui/FormControl/FormControlNumberInput.js +1 -1
- package/dist/ui/LucideIcon/LucideIcon.props.d.ts +162 -0
- package/dist/ui/LucideIcon/LucideIcon.props.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +81 -0
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
- package/dist/ui/NumberField/NumberField.js +1 -1
- package/dist/ui/NumberField/NumberField.web.js +1 -1
- package/dist/ui/OtpField/OtpField.js +1 -1
- package/dist/ui/PasswordField/PasswordField.js +1 -1
- package/dist/ui/PhoneField/PhoneField.js +1 -1
- package/dist/ui/RadioGroup/RadioGroup.js +1 -1
- package/dist/ui/Select/Select.js +1 -1
- package/dist/ui/SelectMultiple/SelectMultiple.stories.d.ts +0 -6
- package/dist/ui/SelectMultiple/SelectMultiple.stories.d.ts.map +1 -1
- package/dist/ui/SelectMultiple/SelectMultiple.styles.d.ts +0 -6
- package/dist/ui/SelectMultiple/SelectMultiple.styles.d.ts.map +1 -1
- package/dist/ui/SelectMultiple/SelectMultiple.styles.js +0 -6
- package/dist/ui/SelectMultiple/SelectMultiple.web.d.ts.map +1 -1
- package/dist/ui/SelectMultiple/SelectMultiple.web.js +13 -13
- package/dist/ui/Switch/Switch.js +1 -1
- package/dist/ui/TextField/TextField.js +1 -1
- package/dist/ui/TextareaField/TextareaField.js +1 -1
- package/dist/ui/TimeInput/TimeInput.js +1 -1
- package/dist/ui/TimeInput/TimeInput.web.js +1 -1
- package/package.json +4 -4
|
@@ -124,6 +124,8 @@ declare const _default: {
|
|
|
124
124
|
AmphoraIcon: "AmphoraIcon";
|
|
125
125
|
Anchor: "Anchor";
|
|
126
126
|
AnchorIcon: "AnchorIcon";
|
|
127
|
+
Angle: "Angle";
|
|
128
|
+
AngleIcon: "AngleIcon";
|
|
127
129
|
Angry: "Angry";
|
|
128
130
|
AngryIcon: "AngryIcon";
|
|
129
131
|
Annoyed: "Annoyed";
|
|
@@ -296,6 +298,8 @@ declare const _default: {
|
|
|
296
298
|
AtomIcon: "AtomIcon";
|
|
297
299
|
AudioLines: "AudioLines";
|
|
298
300
|
AudioLinesIcon: "AudioLinesIcon";
|
|
301
|
+
AudioLinesX: "AudioLinesX";
|
|
302
|
+
AudioLinesXIcon: "AudioLinesXIcon";
|
|
299
303
|
AudioWaveform: "AudioWaveform";
|
|
300
304
|
AudioWaveformIcon: "AudioWaveformIcon";
|
|
301
305
|
Award: "Award";
|
|
@@ -605,6 +609,10 @@ declare const _default: {
|
|
|
605
609
|
BringToFrontIcon: "BringToFrontIcon";
|
|
606
610
|
Broccoli: "Broccoli";
|
|
607
611
|
BroccoliIcon: "BroccoliIcon";
|
|
612
|
+
Broom: "Broom";
|
|
613
|
+
BroomIcon: "BroomIcon";
|
|
614
|
+
BroomSparkles: "BroomSparkles";
|
|
615
|
+
BroomSparklesIcon: "BroomSparklesIcon";
|
|
608
616
|
Brush: "Brush";
|
|
609
617
|
BrushCleaning: "BrushCleaning";
|
|
610
618
|
BrushCleaningIcon: "BrushCleaningIcon";
|
|
@@ -1331,6 +1339,8 @@ declare const _default: {
|
|
|
1331
1339
|
EggIcon: "EggIcon";
|
|
1332
1340
|
EggOff: "EggOff";
|
|
1333
1341
|
EggOffIcon: "EggOffIcon";
|
|
1342
|
+
Eject: "Eject";
|
|
1343
|
+
EjectIcon: "EjectIcon";
|
|
1334
1344
|
Ellipse: "Ellipse";
|
|
1335
1345
|
EllipseIcon: "EllipseIcon";
|
|
1336
1346
|
Ellipsis: "Ellipsis";
|
|
@@ -1365,6 +1375,20 @@ declare const _default: {
|
|
|
1365
1375
|
EyeIcon: "EyeIcon";
|
|
1366
1376
|
EyeOff: "EyeOff";
|
|
1367
1377
|
EyeOffIcon: "EyeOffIcon";
|
|
1378
|
+
FaceAngry: "FaceAngry";
|
|
1379
|
+
FaceAngryIcon: "FaceAngryIcon";
|
|
1380
|
+
FaceExpressionless: "FaceExpressionless";
|
|
1381
|
+
FaceExpressionlessIcon: "FaceExpressionlessIcon";
|
|
1382
|
+
FaceGrinning: "FaceGrinning";
|
|
1383
|
+
FaceGrinningIcon: "FaceGrinningIcon";
|
|
1384
|
+
FaceNeutral: "FaceNeutral";
|
|
1385
|
+
FaceNeutralIcon: "FaceNeutralIcon";
|
|
1386
|
+
FaceSlightlyFrowning: "FaceSlightlyFrowning";
|
|
1387
|
+
FaceSlightlyFrowningIcon: "FaceSlightlyFrowningIcon";
|
|
1388
|
+
FaceSlightlySmiling: "FaceSlightlySmiling";
|
|
1389
|
+
FaceSlightlySmilingIcon: "FaceSlightlySmilingIcon";
|
|
1390
|
+
FaceSlightlySmilingPlus: "FaceSlightlySmilingPlus";
|
|
1391
|
+
FaceSlightlySmilingPlusIcon: "FaceSlightlySmilingPlusIcon";
|
|
1368
1392
|
Factory: "Factory";
|
|
1369
1393
|
FactoryIcon: "FactoryIcon";
|
|
1370
1394
|
Fan: "Fan";
|
|
@@ -2062,11 +2086,19 @@ declare const _default: {
|
|
|
2062
2086
|
LassoSelectIcon: "LassoSelectIcon";
|
|
2063
2087
|
Laugh: "Laugh";
|
|
2064
2088
|
LaughIcon: "LaughIcon";
|
|
2089
|
+
LayerArrowDown: "LayerArrowDown";
|
|
2090
|
+
LayerArrowDownIcon: "LayerArrowDownIcon";
|
|
2091
|
+
LayerArrowUp: "LayerArrowUp";
|
|
2092
|
+
LayerArrowUpIcon: "LayerArrowUpIcon";
|
|
2065
2093
|
Layers: "Layers";
|
|
2066
2094
|
Layers2: "Layers2";
|
|
2067
2095
|
Layers2Icon: "Layers2Icon";
|
|
2068
2096
|
Layers3: "Layers3";
|
|
2069
2097
|
Layers3Icon: "Layers3Icon";
|
|
2098
|
+
LayersArrowDown: "LayersArrowDown";
|
|
2099
|
+
LayersArrowDownIcon: "LayersArrowDownIcon";
|
|
2100
|
+
LayersArrowUp: "LayersArrowUp";
|
|
2101
|
+
LayersArrowUpIcon: "LayersArrowUpIcon";
|
|
2070
2102
|
LayersIcon: "LayersIcon";
|
|
2071
2103
|
LayersMinus: "LayersMinus";
|
|
2072
2104
|
LayersMinusIcon: "LayersMinusIcon";
|
|
@@ -2075,6 +2107,8 @@ declare const _default: {
|
|
|
2075
2107
|
Layout: "Layout";
|
|
2076
2108
|
LayoutDashboard: "LayoutDashboard";
|
|
2077
2109
|
LayoutDashboardIcon: "LayoutDashboardIcon";
|
|
2110
|
+
LayoutFreeform: "LayoutFreeform";
|
|
2111
|
+
LayoutFreeformIcon: "LayoutFreeformIcon";
|
|
2078
2112
|
LayoutGrid: "LayoutGrid";
|
|
2079
2113
|
LayoutGridIcon: "LayoutGridIcon";
|
|
2080
2114
|
LayoutIcon: "LayoutIcon";
|
|
@@ -2257,6 +2291,7 @@ declare const _default: {
|
|
|
2257
2291
|
LucideAmpersands: "LucideAmpersands";
|
|
2258
2292
|
LucideAmphora: "LucideAmphora";
|
|
2259
2293
|
LucideAnchor: "LucideAnchor";
|
|
2294
|
+
LucideAngle: "LucideAngle";
|
|
2260
2295
|
LucideAngry: "LucideAngry";
|
|
2261
2296
|
LucideAnnoyed: "LucideAnnoyed";
|
|
2262
2297
|
LucideAntenna: "LucideAntenna";
|
|
@@ -2343,6 +2378,7 @@ declare const _default: {
|
|
|
2343
2378
|
LucideAtSign: "LucideAtSign";
|
|
2344
2379
|
LucideAtom: "LucideAtom";
|
|
2345
2380
|
LucideAudioLines: "LucideAudioLines";
|
|
2381
|
+
LucideAudioLinesX: "LucideAudioLinesX";
|
|
2346
2382
|
LucideAudioWaveform: "LucideAudioWaveform";
|
|
2347
2383
|
LucideAward: "LucideAward";
|
|
2348
2384
|
LucideAxe: "LucideAxe";
|
|
@@ -2498,6 +2534,8 @@ declare const _default: {
|
|
|
2498
2534
|
LucideBriefcaseMedical: "LucideBriefcaseMedical";
|
|
2499
2535
|
LucideBringToFront: "LucideBringToFront";
|
|
2500
2536
|
LucideBroccoli: "LucideBroccoli";
|
|
2537
|
+
LucideBroom: "LucideBroom";
|
|
2538
|
+
LucideBroomSparkles: "LucideBroomSparkles";
|
|
2501
2539
|
LucideBrush: "LucideBrush";
|
|
2502
2540
|
LucideBrushCleaning: "LucideBrushCleaning";
|
|
2503
2541
|
LucideBubbles: "LucideBubbles";
|
|
@@ -2861,6 +2899,7 @@ declare const _default: {
|
|
|
2861
2899
|
LucideEgg: "LucideEgg";
|
|
2862
2900
|
LucideEggFried: "LucideEggFried";
|
|
2863
2901
|
LucideEggOff: "LucideEggOff";
|
|
2902
|
+
LucideEject: "LucideEject";
|
|
2864
2903
|
LucideEllipse: "LucideEllipse";
|
|
2865
2904
|
LucideEllipsis: "LucideEllipsis";
|
|
2866
2905
|
LucideEllipsisVertical: "LucideEllipsisVertical";
|
|
@@ -2878,6 +2917,13 @@ declare const _default: {
|
|
|
2878
2917
|
LucideEyeClosed: "LucideEyeClosed";
|
|
2879
2918
|
LucideEyeDashed: "LucideEyeDashed";
|
|
2880
2919
|
LucideEyeOff: "LucideEyeOff";
|
|
2920
|
+
LucideFaceAngry: "LucideFaceAngry";
|
|
2921
|
+
LucideFaceExpressionless: "LucideFaceExpressionless";
|
|
2922
|
+
LucideFaceGrinning: "LucideFaceGrinning";
|
|
2923
|
+
LucideFaceNeutral: "LucideFaceNeutral";
|
|
2924
|
+
LucideFaceSlightlyFrowning: "LucideFaceSlightlyFrowning";
|
|
2925
|
+
LucideFaceSlightlySmiling: "LucideFaceSlightlySmiling";
|
|
2926
|
+
LucideFaceSlightlySmilingPlus: "LucideFaceSlightlySmilingPlus";
|
|
2881
2927
|
LucideFactory: "LucideFactory";
|
|
2882
2928
|
LucideFan: "LucideFan";
|
|
2883
2929
|
LucideFastForward: "LucideFastForward";
|
|
@@ -3226,13 +3272,18 @@ declare const _default: {
|
|
|
3226
3272
|
LucideLasso: "LucideLasso";
|
|
3227
3273
|
LucideLassoSelect: "LucideLassoSelect";
|
|
3228
3274
|
LucideLaugh: "LucideLaugh";
|
|
3275
|
+
LucideLayerArrowDown: "LucideLayerArrowDown";
|
|
3276
|
+
LucideLayerArrowUp: "LucideLayerArrowUp";
|
|
3229
3277
|
LucideLayers: "LucideLayers";
|
|
3230
3278
|
LucideLayers2: "LucideLayers2";
|
|
3231
3279
|
LucideLayers3: "LucideLayers3";
|
|
3280
|
+
LucideLayersArrowDown: "LucideLayersArrowDown";
|
|
3281
|
+
LucideLayersArrowUp: "LucideLayersArrowUp";
|
|
3232
3282
|
LucideLayersMinus: "LucideLayersMinus";
|
|
3233
3283
|
LucideLayersPlus: "LucideLayersPlus";
|
|
3234
3284
|
LucideLayout: "LucideLayout";
|
|
3235
3285
|
LucideLayoutDashboard: "LucideLayoutDashboard";
|
|
3286
|
+
LucideLayoutFreeform: "LucideLayoutFreeform";
|
|
3236
3287
|
LucideLayoutGrid: "LucideLayoutGrid";
|
|
3237
3288
|
LucideLayoutList: "LucideLayoutList";
|
|
3238
3289
|
LucideLayoutPanelLeft: "LucideLayoutPanelLeft";
|
|
@@ -3301,6 +3352,7 @@ declare const _default: {
|
|
|
3301
3352
|
LucideMSquare: "LucideMSquare";
|
|
3302
3353
|
LucideMagnet: "LucideMagnet";
|
|
3303
3354
|
LucideMail: "LucideMail";
|
|
3355
|
+
LucideMailBadge: "LucideMailBadge";
|
|
3304
3356
|
LucideMailCheck: "LucideMailCheck";
|
|
3305
3357
|
LucideMailMinus: "LucideMailMinus";
|
|
3306
3358
|
LucideMailOpen: "LucideMailOpen";
|
|
@@ -3376,7 +3428,9 @@ declare const _default: {
|
|
|
3376
3428
|
LucideMetronome: "LucideMetronome";
|
|
3377
3429
|
LucideMic: "LucideMic";
|
|
3378
3430
|
LucideMic2: "LucideMic2";
|
|
3431
|
+
LucideMicAudioLines: "LucideMicAudioLines";
|
|
3379
3432
|
LucideMicOff: "LucideMicOff";
|
|
3433
|
+
LucideMicSignal: "LucideMicSignal";
|
|
3380
3434
|
LucideMicVocal: "LucideMicVocal";
|
|
3381
3435
|
LucideMicrochip: "LucideMicrochip";
|
|
3382
3436
|
LucideMicroscope: "LucideMicroscope";
|
|
@@ -3409,6 +3463,7 @@ declare const _default: {
|
|
|
3409
3463
|
LucideMoonStar: "LucideMoonStar";
|
|
3410
3464
|
LucideMoreHorizontal: "LucideMoreHorizontal";
|
|
3411
3465
|
LucideMoreVertical: "LucideMoreVertical";
|
|
3466
|
+
LucideMosque: "LucideMosque";
|
|
3412
3467
|
LucideMotorbike: "LucideMotorbike";
|
|
3413
3468
|
LucideMountain: "LucideMountain";
|
|
3414
3469
|
LucideMountainSnow: "LucideMountainSnow";
|
|
@@ -3662,9 +3717,11 @@ declare const _default: {
|
|
|
3662
3717
|
LucideRotate3D: "LucideRotate3D";
|
|
3663
3718
|
LucideRotate3d: "LucideRotate3d";
|
|
3664
3719
|
LucideRotateCcw: "LucideRotateCcw";
|
|
3720
|
+
LucideRotateCcwClock: "LucideRotateCcwClock";
|
|
3665
3721
|
LucideRotateCcwKey: "LucideRotateCcwKey";
|
|
3666
3722
|
LucideRotateCcwSquare: "LucideRotateCcwSquare";
|
|
3667
3723
|
LucideRotateCw: "LucideRotateCw";
|
|
3724
|
+
LucideRotateCwFadingClock: "LucideRotateCwFadingClock";
|
|
3668
3725
|
LucideRotateCwSquare: "LucideRotateCwSquare";
|
|
3669
3726
|
LucideRoute: "LucideRoute";
|
|
3670
3727
|
LucideRouteOff: "LucideRouteOff";
|
|
@@ -3702,6 +3759,7 @@ declare const _default: {
|
|
|
3702
3759
|
LucideScanLine: "LucideScanLine";
|
|
3703
3760
|
LucideScanQrCode: "LucideScanQrCode";
|
|
3704
3761
|
LucideScanSearch: "LucideScanSearch";
|
|
3762
|
+
LucideScanSquare: "LucideScanSquare";
|
|
3705
3763
|
LucideScanText: "LucideScanText";
|
|
3706
3764
|
LucideScatterChart: "LucideScatterChart";
|
|
3707
3765
|
LucideSchool: "LucideSchool";
|
|
@@ -3751,6 +3809,7 @@ declare const _default: {
|
|
|
3751
3809
|
LucideShieldEllipsis: "LucideShieldEllipsis";
|
|
3752
3810
|
LucideShieldHalf: "LucideShieldHalf";
|
|
3753
3811
|
LucideShieldKeyhole: "LucideShieldKeyhole";
|
|
3812
|
+
LucideShieldLock: "LucideShieldLock";
|
|
3754
3813
|
LucideShieldMinus: "LucideShieldMinus";
|
|
3755
3814
|
LucideShieldOff: "LucideShieldOff";
|
|
3756
3815
|
LucideShieldPlus: "LucideShieldPlus";
|
|
@@ -3871,6 +3930,7 @@ declare const _default: {
|
|
|
3871
3930
|
LucideSquareMenu: "LucideSquareMenu";
|
|
3872
3931
|
LucideSquareMinus: "LucideSquareMinus";
|
|
3873
3932
|
LucideSquareMousePointer: "LucideSquareMousePointer";
|
|
3933
|
+
LucideSquareOff: "LucideSquareOff";
|
|
3874
3934
|
LucideSquareParking: "LucideSquareParking";
|
|
3875
3935
|
LucideSquareParkingOff: "LucideSquareParkingOff";
|
|
3876
3936
|
LucideSquarePause: "LucideSquarePause";
|
|
@@ -4099,6 +4159,7 @@ declare const _default: {
|
|
|
4099
4159
|
LucideUserRoundSearch: "LucideUserRoundSearch";
|
|
4100
4160
|
LucideUserRoundX: "LucideUserRoundX";
|
|
4101
4161
|
LucideUserSearch: "LucideUserSearch";
|
|
4162
|
+
LucideUserShield: "LucideUserShield";
|
|
4102
4163
|
LucideUserSquare: "LucideUserSquare";
|
|
4103
4164
|
LucideUserSquare2: "LucideUserSquare2";
|
|
4104
4165
|
LucideUserStar: "LucideUserStar";
|
|
@@ -4206,6 +4267,8 @@ declare const _default: {
|
|
|
4206
4267
|
Magnet: "Magnet";
|
|
4207
4268
|
MagnetIcon: "MagnetIcon";
|
|
4208
4269
|
Mail: "Mail";
|
|
4270
|
+
MailBadge: "MailBadge";
|
|
4271
|
+
MailBadgeIcon: "MailBadgeIcon";
|
|
4209
4272
|
MailCheck: "MailCheck";
|
|
4210
4273
|
MailCheckIcon: "MailCheckIcon";
|
|
4211
4274
|
MailIcon: "MailIcon";
|
|
@@ -4355,9 +4418,13 @@ declare const _default: {
|
|
|
4355
4418
|
Mic: "Mic";
|
|
4356
4419
|
Mic2: "Mic2";
|
|
4357
4420
|
Mic2Icon: "Mic2Icon";
|
|
4421
|
+
MicAudioLines: "MicAudioLines";
|
|
4422
|
+
MicAudioLinesIcon: "MicAudioLinesIcon";
|
|
4358
4423
|
MicIcon: "MicIcon";
|
|
4359
4424
|
MicOff: "MicOff";
|
|
4360
4425
|
MicOffIcon: "MicOffIcon";
|
|
4426
|
+
MicSignal: "MicSignal";
|
|
4427
|
+
MicSignalIcon: "MicSignalIcon";
|
|
4361
4428
|
MicVocal: "MicVocal";
|
|
4362
4429
|
MicVocalIcon: "MicVocalIcon";
|
|
4363
4430
|
Microchip: "Microchip";
|
|
@@ -4422,6 +4489,8 @@ declare const _default: {
|
|
|
4422
4489
|
MoreHorizontalIcon: "MoreHorizontalIcon";
|
|
4423
4490
|
MoreVertical: "MoreVertical";
|
|
4424
4491
|
MoreVerticalIcon: "MoreVerticalIcon";
|
|
4492
|
+
Mosque: "Mosque";
|
|
4493
|
+
MosqueIcon: "MosqueIcon";
|
|
4425
4494
|
Motorbike: "Motorbike";
|
|
4426
4495
|
MotorbikeIcon: "MotorbikeIcon";
|
|
4427
4496
|
Mountain: "Mountain";
|
|
@@ -4925,12 +4994,16 @@ declare const _default: {
|
|
|
4925
4994
|
Rotate3d: "Rotate3d";
|
|
4926
4995
|
Rotate3dIcon: "Rotate3dIcon";
|
|
4927
4996
|
RotateCcw: "RotateCcw";
|
|
4997
|
+
RotateCcwClock: "RotateCcwClock";
|
|
4998
|
+
RotateCcwClockIcon: "RotateCcwClockIcon";
|
|
4928
4999
|
RotateCcwIcon: "RotateCcwIcon";
|
|
4929
5000
|
RotateCcwKey: "RotateCcwKey";
|
|
4930
5001
|
RotateCcwKeyIcon: "RotateCcwKeyIcon";
|
|
4931
5002
|
RotateCcwSquare: "RotateCcwSquare";
|
|
4932
5003
|
RotateCcwSquareIcon: "RotateCcwSquareIcon";
|
|
4933
5004
|
RotateCw: "RotateCw";
|
|
5005
|
+
RotateCwFadingClock: "RotateCwFadingClock";
|
|
5006
|
+
RotateCwFadingClockIcon: "RotateCwFadingClockIcon";
|
|
4934
5007
|
RotateCwIcon: "RotateCwIcon";
|
|
4935
5008
|
RotateCwSquare: "RotateCwSquare";
|
|
4936
5009
|
RotateCwSquareIcon: "RotateCwSquareIcon";
|
|
@@ -5006,6 +5079,8 @@ declare const _default: {
|
|
|
5006
5079
|
ScanQrCodeIcon: "ScanQrCodeIcon";
|
|
5007
5080
|
ScanSearch: "ScanSearch";
|
|
5008
5081
|
ScanSearchIcon: "ScanSearchIcon";
|
|
5082
|
+
ScanSquare: "ScanSquare";
|
|
5083
|
+
ScanSquareIcon: "ScanSquareIcon";
|
|
5009
5084
|
ScanText: "ScanText";
|
|
5010
5085
|
ScanTextIcon: "ScanTextIcon";
|
|
5011
5086
|
ScatterChart: "ScatterChart";
|
|
@@ -5104,6 +5179,8 @@ declare const _default: {
|
|
|
5104
5179
|
ShieldIcon: "ShieldIcon";
|
|
5105
5180
|
ShieldKeyhole: "ShieldKeyhole";
|
|
5106
5181
|
ShieldKeyholeIcon: "ShieldKeyholeIcon";
|
|
5182
|
+
ShieldLock: "ShieldLock";
|
|
5183
|
+
ShieldLockIcon: "ShieldLockIcon";
|
|
5107
5184
|
ShieldMinus: "ShieldMinus";
|
|
5108
5185
|
ShieldMinusIcon: "ShieldMinusIcon";
|
|
5109
5186
|
ShieldOff: "ShieldOff";
|
|
@@ -5344,6 +5421,8 @@ declare const _default: {
|
|
|
5344
5421
|
SquareMinusIcon: "SquareMinusIcon";
|
|
5345
5422
|
SquareMousePointer: "SquareMousePointer";
|
|
5346
5423
|
SquareMousePointerIcon: "SquareMousePointerIcon";
|
|
5424
|
+
SquareOff: "SquareOff";
|
|
5425
|
+
SquareOffIcon: "SquareOffIcon";
|
|
5347
5426
|
SquareParking: "SquareParking";
|
|
5348
5427
|
SquareParkingIcon: "SquareParkingIcon";
|
|
5349
5428
|
SquareParkingOff: "SquareParkingOff";
|
|
@@ -5800,6 +5879,8 @@ declare const _default: {
|
|
|
5800
5879
|
UserRoundXIcon: "UserRoundXIcon";
|
|
5801
5880
|
UserSearch: "UserSearch";
|
|
5802
5881
|
UserSearchIcon: "UserSearchIcon";
|
|
5882
|
+
UserShield: "UserShield";
|
|
5883
|
+
UserShieldIcon: "UserShieldIcon";
|
|
5803
5884
|
UserSquare: "UserSquare";
|
|
5804
5885
|
UserSquare2: "UserSquare2";
|
|
5805
5886
|
UserSquare2Icon: "UserSquare2Icon";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LucideIcon.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/LucideIcon/LucideIcon.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LucideIcon.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/LucideIcon/LucideIcon.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAUkB;AAElB,eAAO,MAAM,OAAO,mCAOnB,CAAC;AAEF,eAAO,MAAM,OAAO,mCAAiE,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mCAiB5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC"}
|
|
@@ -7,7 +7,7 @@ export const NumberField = React.forwardRef(function NumberField(props, ref) {
|
|
|
7
7
|
const { value, label, labelRight, hint, error, success, disabled, onChange } = props;
|
|
8
8
|
const { value: _v, onChange: _e, ...inputProps } = props;
|
|
9
9
|
const styles = useStyles();
|
|
10
|
-
return (_jsxs(FormControl, { style: styles.textInput, children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextInput, { ref: ref, ...inputProps, startAdornment: props.controlButton ? (_jsx(NumberFieldControlButton, { action: "moins", step: props.step, disabled: value === 0 || (props.min != null && props.min === value), onPress: add => onChange?.((value ?? 0) + add) })) : (props.startAdornment), endAdornment: props.controlButton ? (_jsx(NumberFieldControlButton, { action: "plus", step: props.step, onPress: add => onChange?.((value ?? 0) + add) })) : (props.endAdornment), value: value ? String(value) : '0', onChangeText: e => {
|
|
10
|
+
return (_jsxs(FormControl, { style: styles.textInput, children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextInput, { ref: ref, ...inputProps, startAdornment: props.controlButton ? (_jsx(NumberFieldControlButton, { action: "moins", step: props.step, disabled: value === 0 || (props.min != null && props.min === value), onPress: add => onChange?.((value ?? 0) + add) })) : (props.startAdornment), endAdornment: props.controlButton ? (_jsx(NumberFieldControlButton, { action: "plus", step: props.step, onPress: add => onChange?.((value ?? 0) + add) })) : (props.endAdornment), value: value ? String(value) : '0', onChangeText: e => {
|
|
11
11
|
onChange?.(e === '' ? 0 : Number(e));
|
|
12
12
|
}, keyboardType: 'number-pad', inputMode: 'numeric' }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
13
13
|
});
|
|
@@ -6,5 +6,5 @@ import { NumberFieldControlButton } from './NumberFieldControlButton';
|
|
|
6
6
|
export const NumberField = React.forwardRef(function NumberField(props, ref) {
|
|
7
7
|
const { label, labelRight, hint, error, success, disabled, onChange } = props;
|
|
8
8
|
const styles = useStyles();
|
|
9
|
-
return (_jsxs(FormControl, { style: styles.textInput, children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(FormControlNumberInput, { ref: ref, onChange: onChange, ...props, startAdornment: props.controlButton ? (_jsx(NumberFieldControlButton, { action: "moins", step: props.step, disabled: props.value === 0 || (props.min != null && props.min === props.value), onPress: add => onChange?.((props.value ?? 0) + add) })) : (props.startAdornment), endAdornment: props.controlButton ? (_jsx(NumberFieldControlButton, { action: "plus", step: props.step, onPress: add => onChange?.((props.value ?? 0) + add) })) : (props.endAdornment) }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
9
|
+
return (_jsxs(FormControl, { style: styles.textInput, children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(FormControlNumberInput, { ref: ref, onChange: onChange, ...props, startAdornment: props.controlButton ? (_jsx(NumberFieldControlButton, { action: "moins", step: props.step, disabled: props.value === 0 || (props.min != null && props.min === props.value), onPress: add => onChange?.((props.value ?? 0) + add) })) : (props.startAdornment), endAdornment: props.controlButton ? (_jsx(NumberFieldControlButton, { action: "plus", step: props.step, onPress: add => onChange?.((props.value ?? 0) + add) })) : (props.endAdornment) }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
10
10
|
});
|
|
@@ -5,7 +5,7 @@ import { useStyles } from './OtpField.styles';
|
|
|
5
5
|
export const OtpField = React.forwardRef(function OtpField(props, ref) {
|
|
6
6
|
const { label, labelRight, hint, error, success, disabled, onChange } = props;
|
|
7
7
|
const styles = useStyles();
|
|
8
|
-
return (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(FormControlOtpInput, { ref: ref, theme: {
|
|
8
|
+
return (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(FormControlOtpInput, { ref: ref, theme: {
|
|
9
9
|
containerStyle: styles.containerStyle,
|
|
10
10
|
pinCodeContainerStyle: {
|
|
11
11
|
...styles.pinCodeContainerStyle,
|
|
@@ -6,5 +6,5 @@ export const PasswordField = React.forwardRef(function PasswordField(props, ref)
|
|
|
6
6
|
const { label, labelRight, hint, error, success, disabled, onChange } = props;
|
|
7
7
|
const styles = useStyles();
|
|
8
8
|
const [visibilityOff, setVisibilityOff] = React.useState(true);
|
|
9
|
-
return (_jsxs(FormControl, { style: styles.passwordInput, children: [label && (_jsx(FormControlLabel, { label: label, labelRight: labelRight, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled }), _jsx(TextInput, { ref: ref, secureTextEntry: visibilityOff, endAdornment: _jsx(ButtonIcon, { size: "sm", variant: "tertiary", style: styles.visibilityButton, icon: visibilityOff ? 'EyeClosed' : 'Eye', onPress: () => setVisibilityOff(initial => !initial) }), onChangeText: onChange, textContentType: "password", autoComplete: "password", autoCapitalize: "none", inputMode: "text", ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
9
|
+
return (_jsxs(FormControl, { style: styles.passwordInput, children: [!!label && (_jsx(FormControlLabel, { label: label, labelRight: labelRight, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled }), _jsx(TextInput, { ref: ref, secureTextEntry: visibilityOff, endAdornment: _jsx(ButtonIcon, { size: "sm", variant: "tertiary", style: styles.visibilityButton, icon: visibilityOff ? 'EyeClosed' : 'Eye', onPress: () => setVisibilityOff(initial => !initial) }), onChangeText: onChange, textContentType: "password", autoComplete: "password", autoCapitalize: "none", inputMode: "text", ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
10
10
|
});
|
|
@@ -4,5 +4,5 @@ import React from 'react';
|
|
|
4
4
|
import { PhoneInput } from '../PhoneInput';
|
|
5
5
|
export const PhoneField = React.forwardRef(function PhoneField(props, ref) {
|
|
6
6
|
const { label, labelRight, hint, error, success, disabled, onChange } = props;
|
|
7
|
-
return (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(PhoneInput, { ref: ref, onChangeText: onChange, ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
7
|
+
return (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(PhoneInput, { ref: ref, onChangeText: onChange, ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
8
8
|
});
|
|
@@ -7,5 +7,5 @@ import { RadioGroupContext } from './RadioGroupContext';
|
|
|
7
7
|
export const RadioGroup = React.forwardRef(function RadioGroup(props, ref) {
|
|
8
8
|
const { children, value, label, labelRight, hint, error, success, disabled, onChange, variant = 'default', ...groupProps } = props;
|
|
9
9
|
const styles = useStyles();
|
|
10
|
-
return (_jsx(RadioGroupContext.Provider, { value: { value, onChange }, children: _jsxs(Box, { tag: "radio-group", style: styles.container, children: [_jsxs(Box, { tag: "radio-group-heading", children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(Box, { width: '100%', children: _jsx(TamaguiRadioGroup, { orientation: "vertical", ref: ref, value: value, onValueChange: onChange, style: [styles.group, variant === 'card' ? styles.groupCard : styles.groupItem], width: "100%", ...groupProps, minWidth: '100%', children: children }) }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }) }));
|
|
10
|
+
return (_jsx(RadioGroupContext.Provider, { value: { value, onChange }, children: _jsxs(Box, { tag: "radio-group", style: styles.container, children: [_jsxs(Box, { tag: "radio-group-heading", children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(Box, { width: '100%', children: _jsx(TamaguiRadioGroup, { orientation: "vertical", ref: ref, value: value, onValueChange: onChange, style: [styles.group, variant === 'card' ? styles.groupCard : styles.groupItem], width: "100%", ...groupProps, minWidth: '100%', children: children }) }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }) }));
|
|
11
11
|
});
|
package/dist/ui/Select/Select.js
CHANGED
|
@@ -18,7 +18,7 @@ export const Select = React.forwardRef(function Select(props, ref) {
|
|
|
18
18
|
setFocus(false);
|
|
19
19
|
onBlur?.(e);
|
|
20
20
|
};
|
|
21
|
-
return (_jsxs(FormControl, { style: styles.pickerContainer, children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(Box, { tag: "form-control-text-input", style: styles.inputContainer, children: _jsxs(Box, { tag: "form-control-text-input-inner", style: {
|
|
21
|
+
return (_jsxs(FormControl, { style: styles.pickerContainer, children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(Box, { tag: "form-control-text-input", style: styles.inputContainer, children: _jsxs(Box, { tag: "form-control-text-input-inner", style: {
|
|
22
22
|
...styles.inputInner,
|
|
23
23
|
...(disabled ? styles.inputDisabled : {}),
|
|
24
24
|
...(focus ? styles.inputFocused : {}),
|
|
@@ -59,12 +59,6 @@ declare const _default: {
|
|
|
59
59
|
dropdownIndicator: {
|
|
60
60
|
padding: string | number;
|
|
61
61
|
};
|
|
62
|
-
dropdownIndicatorDisabled: {
|
|
63
|
-
display: "none";
|
|
64
|
-
};
|
|
65
|
-
indicatorSeparatorDisabled: {
|
|
66
|
-
display: "none";
|
|
67
|
-
};
|
|
68
62
|
clearIndicator: {
|
|
69
63
|
padding: string | number;
|
|
70
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMultiple.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/SelectMultiple/SelectMultiple.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectMultiple.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/SelectMultiple/SelectMultiple.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAOkB;AASlB,eAAO,MAAM,OAAO,mCAOnB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAMlB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC"}
|
|
@@ -53,12 +53,6 @@ export declare const useStyles: () => {
|
|
|
53
53
|
dropdownIndicator: {
|
|
54
54
|
padding: string | number;
|
|
55
55
|
};
|
|
56
|
-
dropdownIndicatorDisabled: {
|
|
57
|
-
display: "none";
|
|
58
|
-
};
|
|
59
|
-
indicatorSeparatorDisabled: {
|
|
60
|
-
display: "none";
|
|
61
|
-
};
|
|
62
56
|
clearIndicator: {
|
|
63
57
|
padding: string | number;
|
|
64
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMultiple.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/SelectMultiple/SelectMultiple.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"SelectMultiple.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/SelectMultiple/SelectMultiple.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DnB,CAAC"}
|
|
@@ -54,12 +54,6 @@ export const useStyles = makeStyles(({ color, spacing }) => ({
|
|
|
54
54
|
dropdownIndicator: {
|
|
55
55
|
padding: spacing('025'),
|
|
56
56
|
},
|
|
57
|
-
dropdownIndicatorDisabled: {
|
|
58
|
-
display: 'none',
|
|
59
|
-
},
|
|
60
|
-
indicatorSeparatorDisabled: {
|
|
61
|
-
display: 'none',
|
|
62
|
-
},
|
|
63
57
|
clearIndicator: {
|
|
64
58
|
padding: spacing('025'),
|
|
65
59
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMultiple.web.d.ts","sourceRoot":"","sources":["../../../src/ui/SelectMultiple/SelectMultiple.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectMultiple.web.d.ts","sourceRoot":"","sources":["../../../src/ui/SelectMultiple/SelectMultiple.web.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAuB,MAAM,kBAAkB,CAAC;AAGlF,eAAO,MAAM,cAAc;;;;;;;;;;;;6BA0FzB,CAAC"}
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, FormControl, FormControlCaption, FormControlHint, FormControlLabel, InputHeading, } from '@alveole/components';
|
|
2
|
+
import { Box, FormControl, FormControlCaption, FormControlHint, FormControlLabel, InputHeading, LucideIcon, } from '@alveole/components';
|
|
3
|
+
import { useTheme } from '@alveole/theme';
|
|
3
4
|
import React from 'react';
|
|
4
|
-
import ReactSelect from 'react-select';
|
|
5
|
+
import ReactSelect, { components } from 'react-select';
|
|
5
6
|
import { useStyles } from './SelectMultiple.styles';
|
|
6
7
|
export const SelectMultiple = React.forwardRef(function SelectMultiple(props, ref) {
|
|
7
8
|
const { value, label, labelRight, hint, error, success, placeholder = '', disabled, options, onChange } = props;
|
|
8
9
|
const styles = useStyles();
|
|
10
|
+
const { color } = useTheme();
|
|
9
11
|
const selectStyles = {
|
|
10
12
|
control: (s, p) => ({
|
|
11
13
|
...s,
|
|
12
14
|
...styles.control,
|
|
13
15
|
...(p.isDisabled ? styles.controlDisabled : {}),
|
|
16
|
+
':hover': { borderColor: styles.control.borderColor },
|
|
14
17
|
}),
|
|
15
18
|
valueContainer: s => ({
|
|
16
19
|
...s,
|
|
17
20
|
...styles.valueContainer,
|
|
21
|
+
padding: '0 8px',
|
|
18
22
|
}),
|
|
23
|
+
placeholder: s => ({ ...s, color: color.light.text['mention-grey'] }),
|
|
19
24
|
multiValue: (s, p) => ({
|
|
20
25
|
...s,
|
|
21
26
|
...styles.multiValue,
|
|
@@ -26,24 +31,19 @@ export const SelectMultiple = React.forwardRef(function SelectMultiple(props, re
|
|
|
26
31
|
':hover': styles.multiValueRemoveHover,
|
|
27
32
|
...(p.isDisabled ? styles.multiValueRemoveDisabled : {}),
|
|
28
33
|
}),
|
|
29
|
-
dropdownIndicator:
|
|
30
|
-
|
|
31
|
-
...styles.dropdownIndicator,
|
|
32
|
-
...(p.isDisabled ? styles.dropdownIndicatorDisabled : {}),
|
|
33
|
-
}),
|
|
34
|
-
indicatorSeparator: (s, p) => ({
|
|
35
|
-
...s,
|
|
36
|
-
...(p.isDisabled ? styles.indicatorSeparatorDisabled : {}),
|
|
37
|
-
}),
|
|
34
|
+
dropdownIndicator: s => ({ ...s, ...styles.dropdownIndicator }),
|
|
35
|
+
indicatorSeparator: () => ({ display: 'none' }),
|
|
38
36
|
clearIndicator: s => ({ ...s, ...styles.clearIndicator }),
|
|
39
37
|
};
|
|
38
|
+
const MultiValueRemove = (props) => (_jsx(components.MultiValueRemove, { ...props, children: _jsx(LucideIcon, { name: "X", size: "xs", color: color.light.text['default-grey'] }) }));
|
|
39
|
+
const DropdownIndicator = (props) => (_jsx(components.DropdownIndicator, { ...props, children: _jsx(LucideIcon, { name: "ChevronDown", size: "sm", color: props.isDisabled ? color.light.text['disabled-grey'] : color.light.text['default-grey'] }) }));
|
|
40
40
|
const displayValue = React.useMemo(() => options?.filter(option => Array.isArray(value) && value.some(v => `${v}` === `${option.value}`)), [options, value]);
|
|
41
|
-
return (_jsxs(FormControl, { style: styles.select, children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(Box, { tag: "form-control-select-input", style: styles.inputContainer, children: _jsx(Box, { style: { ...(disabled ? styles.inputDisabled : {}) }, children: _jsx(ReactSelect, { ref: ref, value: displayValue, styles: selectStyles, isMulti: true, placeholder: placeholder, options: options, noOptionsMessage: () => 'Aucun résultat', onChange: selectedOptions => {
|
|
41
|
+
return (_jsxs(FormControl, { style: styles.select, children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(Box, { tag: "form-control-select-input", style: styles.inputContainer, children: _jsx(Box, { style: { ...(disabled ? styles.inputDisabled : {}) }, children: _jsx(ReactSelect, { ref: ref, value: displayValue, styles: selectStyles, isMulti: true, placeholder: placeholder, options: options, noOptionsMessage: () => 'Aucun résultat', onChange: selectedOptions => {
|
|
42
42
|
if (Array.isArray(selectedOptions)) {
|
|
43
43
|
onChange?.(selectedOptions.map(o => String(o.value)));
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
onChange?.([]);
|
|
47
47
|
}
|
|
48
|
-
}, isDisabled: disabled }) }) }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
48
|
+
}, isDisabled: disabled, components: { DropdownIndicator, MultiValueRemove } }) }) }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
49
49
|
});
|
package/dist/ui/Switch/Switch.js
CHANGED
|
@@ -37,6 +37,6 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
|
|
|
37
37
|
...(noPadding ? { padding: 0, marginRight: 0 } : {}),
|
|
38
38
|
};
|
|
39
39
|
const Toggle = (_jsx(TamaguiSwitch, { id: id, ref: ref, borderWidth: 1, checked: value, onCheckedChange: onChange, style: switchButtonStyles, disabled: disabled, ...switchProps, children: _jsx(TamaguiSwitch.Thumb, { animation: "quicker", style: switchThumbStyles }) }));
|
|
40
|
-
const ToggleWithLabel = (_jsxs(_Fragment, { children: [_jsx(Label, { unstyled: true, htmlFor: id, width: '100%', children: _jsxs(Box, { tag: "switch", style: styles.switch, children: [Toggle, label && (_jsx(Typography, { htmlFor: id, style: switchLabelStyles, children: label }))] }) }), (error ?? success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
40
|
+
const ToggleWithLabel = (_jsxs(_Fragment, { children: [_jsx(Label, { unstyled: true, htmlFor: id, width: '100%', children: _jsxs(Box, { tag: "switch", style: styles.switch, children: [Toggle, !!label && (_jsx(Typography, { htmlFor: id, style: switchLabelStyles, children: label }))] }) }), (error ?? success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
41
41
|
return (_jsx(Box, { tag: "switch", gap: error || success ? spacingValue('050') : 0, style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
|
|
42
42
|
});
|
|
@@ -10,5 +10,5 @@ export const TextField = React.forwardRef(function TextField(props, ref) {
|
|
|
10
10
|
const autoCapitalize = 'sentences';
|
|
11
11
|
const autoComplete = 'off';
|
|
12
12
|
const inputMode = 'text';
|
|
13
|
-
return (_jsxs(FormControl, { style: styles.textField, children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextInput, { ref: ref, keyboardType: keyboardType, textContentType: textContentType, autoCapitalize: autoCapitalize, autoComplete: autoComplete, inputMode: inputMode, onChangeText: onChange, ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
13
|
+
return (_jsxs(FormControl, { style: styles.textField, children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextInput, { ref: ref, keyboardType: keyboardType, textContentType: textContentType, autoCapitalize: autoCapitalize, autoComplete: autoComplete, inputMode: inputMode, onChangeText: onChange, ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
14
14
|
});
|
|
@@ -4,5 +4,5 @@ import React from 'react';
|
|
|
4
4
|
import { TextareaInput } from '../TextareaInput';
|
|
5
5
|
export const TextareaField = React.forwardRef(function TextareaField(props, ref) {
|
|
6
6
|
const { label, labelRight, hint, error, success, disabled, onChange, onModalSubmit, onFocus } = props;
|
|
7
|
-
return (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextareaInput, { ref: ref, onChangeText: onChange, onModalSubmit: onModalSubmit, onFocus: onFocus, ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
7
|
+
return (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextareaInput, { ref: ref, onChangeText: onChange, onModalSubmit: onModalSubmit, onFocus: onFocus, ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
8
8
|
});
|
|
@@ -28,5 +28,5 @@ export const TimeInput = React.forwardRef(function TimeInput({ label, labelRight
|
|
|
28
28
|
onChange?.(localValue);
|
|
29
29
|
onBlur?.();
|
|
30
30
|
};
|
|
31
|
-
return (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextInput, { ref: ref, placeholder: "HH:MM", value: localValue, onChangeText: handleChangeText, onBlur: handleBlur, disabled: disabled, keyboardType: "number-pad", maxLength: 5 }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
31
|
+
return (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextInput, { ref: ref, placeholder: "HH:MM", value: localValue, onChangeText: handleChangeText, onBlur: handleBlur, disabled: disabled, keyboardType: "number-pad", maxLength: 5 }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
32
32
|
});
|
|
@@ -5,5 +5,5 @@ import { useStyles } from './TimeInput.styles';
|
|
|
5
5
|
export const TimeInput = React.forwardRef(function TimeInput(props, ref) {
|
|
6
6
|
const { label, labelRight, hint, disabled, error, success } = props;
|
|
7
7
|
const styles = useStyles();
|
|
8
|
-
return (_jsxs(FormControl, { style: styles.timeInput, children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(FormControlDateInput, { ref: ref, ...props, type: "time" }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
8
|
+
return (_jsxs(FormControl, { style: styles.timeInput, children: [_jsxs(InputHeading, { children: [!!label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), !!hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(FormControlDateInput, { ref: ref, ...props, type: "time" }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
9
9
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alveole/components",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "Shared UI components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@lucide/lab": "0.2.0",
|
|
37
37
|
"@react-native-community/datetimepicker": "9.1.0",
|
|
38
38
|
"@react-native-picker/picker": "2.11.4",
|
|
39
|
-
"@react-native/jest-preset": "0.
|
|
39
|
+
"@react-native/jest-preset": "0.87.0",
|
|
40
40
|
"@shopify/flash-list": "2.0.2",
|
|
41
41
|
"@tamagui/config": "1.144.4",
|
|
42
42
|
"@tamagui/core": "1.144.4",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"expo-router": "56.2.18",
|
|
55
55
|
"jest": "29.7.0",
|
|
56
56
|
"jest-expo": "56.0.5",
|
|
57
|
-
"lucide-react-native": "1.
|
|
57
|
+
"lucide-react-native": "1.31.0",
|
|
58
58
|
"pdfjs-dist": "6.2.108",
|
|
59
59
|
"react": "19.2.3",
|
|
60
60
|
"react-dom": "19.2.3",
|
|
61
61
|
"react-native": "0.85.3",
|
|
62
62
|
"react-native-code-highlighter": "1.3.0",
|
|
63
|
-
"react-native-keyboard-controller": "1.
|
|
63
|
+
"react-native-keyboard-controller": "1.22.3",
|
|
64
64
|
"react-native-otp-entry": "1.8.6",
|
|
65
65
|
"react-select": "5.10.2",
|
|
66
66
|
"react-syntax-highlighter": "16.1.1",
|