react-admin-base-bootstrap 0.7.0 → 0.7.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/assets/main.css CHANGED
@@ -95,3 +95,1261 @@
95
95
  border: 1px solid black;
96
96
  box-shadow: 0 10px 40px rgba(82, 85, 90, 0.2);
97
97
  }
98
+
99
+
100
+ .step {
101
+ position: relative;
102
+ list-style: none;
103
+ display: -ms-flexbox;
104
+ display: flex;
105
+ -ms-flex-wrap: wrap;
106
+ flex-wrap: wrap;
107
+ padding-left: 0;
108
+ margin-right: calc(1.5rem / -2);
109
+ margin-left: calc(1.5rem / -2)
110
+ }
111
+
112
+ .step.step-dashed .step-icon::after {
113
+ border-left-style: dashed
114
+ }
115
+
116
+ .step-icon-border {
117
+ border: .125rem solid rgba(231,234,243,.7)
118
+ }
119
+
120
+ .step-title {
121
+ display: block;
122
+ /*color: #1e2022;*/
123
+ color: var(--bs-dark);
124
+
125
+ font-weight: 600
126
+ }
127
+
128
+ .step-text:last-child {
129
+ color: #677788;
130
+ margin-bottom: 0
131
+ }
132
+
133
+ .step-border-last-0 .step-item:last-child .step-icon::after {
134
+ display: none
135
+ }
136
+
137
+ .step .step-item {
138
+ display: -ms-flexbox;
139
+ display: flex;
140
+ -ms-flex-direction: column;
141
+ flex-direction: column;
142
+ -ms-flex-preferred-size: 0;
143
+ flex-basis: 0;
144
+ -ms-flex: 0 0 100%;
145
+ flex: 0 0 100%;
146
+ max-width: 100%;
147
+ padding-right: .75rem;
148
+ padding-left: .75rem;
149
+ margin-bottom: 2.25rem
150
+ }
151
+
152
+ .step-item-between .step-item:last-child {
153
+ -ms-flex: 0 0 auto;
154
+ flex: 0 0 auto;
155
+ width: auto
156
+ }
157
+
158
+ .step .step-content-wrapper {
159
+ position: relative;
160
+ display: -ms-flexbox;
161
+ display: flex;
162
+ width: 100%
163
+ }
164
+
165
+ .step .step-content {
166
+ -ms-flex: 1;
167
+ flex: 1
168
+ }
169
+
170
+ .step-item.collapse:not(.show) {
171
+ display: none
172
+ }
173
+
174
+ .step-item .step-title-description {
175
+ display: none
176
+ }
177
+
178
+ .step-item.focus .step-title-description {
179
+ display: block
180
+ }
181
+
182
+ .step .step-avatar {
183
+ font-size: .875rem;
184
+ font-weight: 600;
185
+ width: 2.625rem;
186
+ height: 2.625rem;
187
+ border-radius: 50%;
188
+ margin-right: 1rem
189
+ }
190
+
191
+ .step .step-avatar-img {
192
+ max-width: 100%;
193
+ height: auto;
194
+ border-radius: 50%
195
+ }
196
+
197
+ .step .step-avatar::after {
198
+ position: absolute;
199
+ top: 3.375rem;
200
+ left: 1.3125rem;
201
+ height: calc(100% - 1.875rem);
202
+ border-left: .125rem solid rgba(231,234,243,.7);
203
+ content: ""
204
+ }
205
+
206
+ .step-avatar-xs .step-avatar,.step-avatar-xs.step-avatar {
207
+ font-size: .65625rem;
208
+ width: 1.53125rem;
209
+ height: 1.53125rem
210
+ }
211
+
212
+ .step-avatar-xs .step-avatar::after,.step-avatar-xs.step-avatar::after {
213
+ top: 2.28125rem;
214
+ left: .70312rem;
215
+ width: 1.625rem;
216
+ height: calc(100% - .78125rem)
217
+ }
218
+
219
+ .step-avatar-xs .step-divider::after {
220
+ left: .76562rem
221
+ }
222
+
223
+ .step-avatar-sm .step-avatar,.step-avatar-sm.step-avatar {
224
+ font-size: .875rem;
225
+ width: 2.40625rem;
226
+ height: 2.40625rem
227
+ }
228
+
229
+ .step-avatar-sm .step-avatar::after,.step-avatar-sm.step-avatar::after {
230
+ top: 3.15625rem;
231
+ left: 1.14062rem;
232
+ width: 1.625rem;
233
+ height: calc(100% - 1.65625rem)
234
+ }
235
+
236
+ .step-avatar-sm .step-divider::after {
237
+ left: 1.20312rem
238
+ }
239
+
240
+ .step-avatar-lg .step-avatar,.step-avatar-lg.step-avatar {
241
+ font-size: 1rem;
242
+ width: 4.8125rem;
243
+ height: 4.8125rem
244
+ }
245
+
246
+ .step-avatar-lg .step-avatar::after,.step-avatar-lg.step-avatar::after {
247
+ top: 5.5625rem;
248
+ left: 2.34375rem;
249
+ width: 1.625rem;
250
+ height: calc(100% - 4.0625rem)
251
+ }
252
+
253
+ .step-avatar-lg .step-divider::after {
254
+ left: 2.40625rem
255
+ }
256
+
257
+ .step-divider {
258
+ display: -ms-inline-flexbox;
259
+ display: inline-flex;
260
+ -ms-flex-align: center;
261
+ align-items: center;
262
+ text-transform: uppercase;
263
+ height: 1rem;
264
+ font-size: .71094rem;
265
+ font-weight: 600
266
+ }
267
+
268
+ .step-divider::after {
269
+ position: absolute;
270
+ top: 1.75rem;
271
+ left: 1.3125rem;
272
+ height: calc(100% - .25rem);
273
+ border-left: .125rem solid rgba(231,234,243,.7);
274
+ content: ""
275
+ }
276
+
277
+ .step .step-icon {
278
+ display: -ms-inline-flexbox;
279
+ display: inline-flex;
280
+ -ms-flex-negative: 0;
281
+ flex-shrink: 0;
282
+ -ms-flex-pack: center;
283
+ justify-content: center;
284
+ -ms-flex-align: center;
285
+ align-items: center;
286
+ font-size: .875rem;
287
+ font-weight: 600;
288
+ width: 2.625rem;
289
+ height: 2.625rem;
290
+ border-radius: 50%;
291
+ margin-right: 1rem
292
+ }
293
+
294
+ .step .step-icon::after {
295
+ position: absolute;
296
+ top: 3.375rem;
297
+ left: 1.3125rem;
298
+ height: calc(100% - 1.875rem);
299
+ border-left: .125rem solid rgba(231,234,243,.7);
300
+ content: ""
301
+ }
302
+
303
+ .step .step-icon-pseudo::before {
304
+ display: block;
305
+ width: .25rem;
306
+ height: .25rem;
307
+ background-color: #97a4af;
308
+ border-radius: 50%;
309
+ content: ""
310
+ }
311
+
312
+ .step-icon-xs .step-icon,.step-icon-xs.step-icon {
313
+ font-size: .65625rem;
314
+ width: 1.53125rem;
315
+ height: 1.53125rem
316
+ }
317
+
318
+ .step-icon-xs .step-icon::after,.step-icon-xs.step-icon::after {
319
+ top: 2.28125rem;
320
+ left: .70312rem;
321
+ width: 1.625rem;
322
+ height: calc(100% - .78125rem)
323
+ }
324
+
325
+ .step-icon-xs .step-divider::after {
326
+ left: .76562rem
327
+ }
328
+
329
+ .step-icon-sm .step-icon,.step-icon-sm.step-icon {
330
+ font-size: .875rem;
331
+ width: 2.40625rem;
332
+ height: 2.40625rem
333
+ }
334
+
335
+ .step-icon-sm .step-icon::after,.step-icon-sm.step-icon::after {
336
+ top: 3.15625rem;
337
+ left: 1.14062rem;
338
+ width: 1.625rem;
339
+ height: calc(100% - 1.65625rem)
340
+ }
341
+
342
+ .step-icon-sm .step-divider::after {
343
+ left: 1.20312rem
344
+ }
345
+
346
+ .step-icon-lg .step-icon,.step-icon-lg.step-icon {
347
+ font-size: 1rem;
348
+ width: 4.8125rem;
349
+ height: 4.8125rem
350
+ }
351
+
352
+ .step-icon-lg .step-icon::after,.step-icon-lg.step-icon::after {
353
+ top: 5.5625rem;
354
+ left: 2.34375rem;
355
+ width: 1.625rem;
356
+ height: calc(100% - 4.0625rem)
357
+ }
358
+
359
+ .step-icon-lg .step-divider::after {
360
+ left: 2.40625rem
361
+ }
362
+
363
+ @media (min-width: 576px) {
364
+ .step-sm.step-dashed .step-icon::after {
365
+ border-left:none;
366
+ border-top-style: dashed
367
+ }
368
+
369
+ .step-sm .step-item {
370
+ -ms-flex-positive: 1;
371
+ flex-grow: 1;
372
+ -ms-flex: 1;
373
+ flex: 1;
374
+ margin-bottom: 0
375
+ }
376
+
377
+ .step-sm:not(.step-inline) .step-content-wrapper {
378
+ display: block
379
+ }
380
+
381
+ .step-sm .step-icon {
382
+ margin-bottom: 1rem
383
+ }
384
+
385
+ .step-sm .step-icon::after {
386
+ top: 1.3125rem;
387
+ left: 4.125rem;
388
+ width: calc(100% - 4.125rem);
389
+ height: 1.625rem;
390
+ border-top: .125rem solid rgba(231,234,243,.7);
391
+ border-left: none
392
+ }
393
+
394
+ .step-sm .step-icon.step-icon-xs::after,.step-sm.step-icon-xs .step-icon::after {
395
+ top: .76562rem;
396
+ left: 3.03125rem;
397
+ width: calc(100% - 3.03125rem)
398
+ }
399
+
400
+ .step-sm .step-icon.step-icon-sm::after,.step-sm.step-icon-sm .step-icon::after {
401
+ top: 1.20312rem;
402
+ left: 3.90625rem;
403
+ width: calc(100% - 3.90625rem)
404
+ }
405
+
406
+ .step-sm .step-icon.step-icon-lg::after,.step-sm.step-icon-lg .step-icon::after {
407
+ top: 2.40625rem;
408
+ left: 6.3125rem;
409
+ width: calc(100% - 6.3125rem)
410
+ }
411
+ }
412
+
413
+ @media (min-width: 768px) {
414
+ .step-md.step-dashed .step-icon::after {
415
+ border-left:none;
416
+ border-top-style: dashed
417
+ }
418
+
419
+ .step-md .step-item {
420
+ -ms-flex-positive: 1;
421
+ flex-grow: 1;
422
+ -ms-flex: 1;
423
+ flex: 1;
424
+ margin-bottom: 0
425
+ }
426
+
427
+ .step-md:not(.step-inline) .step-content-wrapper {
428
+ display: block
429
+ }
430
+
431
+ .step-md .step-icon {
432
+ margin-bottom: 1rem
433
+ }
434
+
435
+ .step-md .step-icon::after {
436
+ top: 1.3125rem;
437
+ left: 4.125rem;
438
+ width: calc(100% - 4.125rem);
439
+ height: 1.625rem;
440
+ border-top: .125rem solid rgba(231,234,243,.7);
441
+ border-left: none
442
+ }
443
+
444
+ .step-md .step-icon.step-icon-xs::after,.step-md.step-icon-xs .step-icon::after {
445
+ top: .76562rem;
446
+ left: 3.03125rem;
447
+ width: calc(100% - 3.03125rem)
448
+ }
449
+
450
+ .step-md .step-icon.step-icon-sm::after,.step-md.step-icon-sm .step-icon::after {
451
+ top: 1.20312rem;
452
+ left: 3.90625rem;
453
+ width: calc(100% - 3.90625rem)
454
+ }
455
+
456
+ .step-md .step-icon.step-icon-lg::after,.step-md.step-icon-lg .step-icon::after {
457
+ top: 2.40625rem;
458
+ left: 6.3125rem;
459
+ width: calc(100% - 6.3125rem)
460
+ }
461
+ }
462
+
463
+ @media (min-width: 992px) {
464
+ .step-lg.step-dashed .step-icon::after {
465
+ border-left:none;
466
+ border-top-style: dashed
467
+ }
468
+
469
+ .step-lg .step-item {
470
+ -ms-flex-positive: 1;
471
+ flex-grow: 1;
472
+ -ms-flex: 1;
473
+ flex: 1;
474
+ margin-bottom: 0
475
+ }
476
+
477
+ .step-lg:not(.step-inline) .step-content-wrapper {
478
+ display: block
479
+ }
480
+
481
+ .step-lg .step-icon {
482
+ margin-bottom: 1rem
483
+ }
484
+
485
+ .step-lg .step-icon::after {
486
+ top: 1.3125rem;
487
+ left: 4.125rem;
488
+ width: calc(100% - 4.125rem);
489
+ height: 1.625rem;
490
+ border-top: .125rem solid rgba(231,234,243,.7);
491
+ border-left: none
492
+ }
493
+
494
+ .step-lg .step-icon.step-icon-xs::after,.step-lg.step-icon-xs .step-icon::after {
495
+ top: .76562rem;
496
+ left: 3.03125rem;
497
+ width: calc(100% - 3.03125rem)
498
+ }
499
+
500
+ .step-lg .step-icon.step-icon-sm::after,.step-lg.step-icon-sm .step-icon::after {
501
+ top: 1.20312rem;
502
+ left: 3.90625rem;
503
+ width: calc(100% - 3.90625rem)
504
+ }
505
+
506
+ .step-lg .step-icon.step-icon-lg::after,.step-lg.step-icon-lg .step-icon::after {
507
+ top: 2.40625rem;
508
+ left: 6.3125rem;
509
+ width: calc(100% - 6.3125rem)
510
+ }
511
+ }
512
+
513
+ @media (min-width: 1200px) {
514
+ .step-xl.step-dashed .step-icon::after {
515
+ border-left:none;
516
+ border-top-style: dashed
517
+ }
518
+
519
+ .step-xl .step-item {
520
+ -ms-flex-positive: 1;
521
+ flex-grow: 1;
522
+ -ms-flex: 1;
523
+ flex: 1;
524
+ margin-bottom: 0
525
+ }
526
+
527
+ .step-xl:not(.step-inline) .step-content-wrapper {
528
+ display: block
529
+ }
530
+
531
+ .step-xl .step-icon {
532
+ margin-bottom: 1rem
533
+ }
534
+
535
+ .step-xl .step-icon::after {
536
+ top: 1.3125rem;
537
+ left: 4.125rem;
538
+ width: calc(100% - 4.125rem);
539
+ height: 1.625rem;
540
+ border-top: .125rem solid rgba(231,234,243,.7);
541
+ border-left: none
542
+ }
543
+
544
+ .step-xl .step-icon.step-icon-xs::after,.step-xl.step-icon-xs .step-icon::after {
545
+ top: .76562rem;
546
+ left: 3.03125rem;
547
+ width: calc(100% - 3.03125rem)
548
+ }
549
+
550
+ .step-xl .step-icon.step-icon-sm::after,.step-xl.step-icon-sm .step-icon::after {
551
+ top: 1.20312rem;
552
+ left: 3.90625rem;
553
+ width: calc(100% - 3.90625rem)
554
+ }
555
+
556
+ .step-xl .step-icon.step-icon-lg::after,.step-xl.step-icon-lg .step-icon::after {
557
+ top: 2.40625rem;
558
+ left: 6.3125rem;
559
+ width: calc(100% - 6.3125rem)
560
+ }
561
+ }
562
+
563
+ @media (min-width: 576px) {
564
+ .step-sm.step-centered {
565
+ text-align:center
566
+ }
567
+
568
+ .step-sm.step-centered .step-item:last-child .step-icon::after {
569
+ display: none
570
+ }
571
+
572
+ .step-sm.step-centered .step-icon {
573
+ margin-left: auto;
574
+ margin-right: auto
575
+ }
576
+
577
+ .step-sm.step-centered .step-icon::after {
578
+ width: calc(100% - 4.125rem);
579
+ left: calc(50% + 2.8125rem)
580
+ }
581
+
582
+ .step-sm.step-centered .step-icon.step-icon-xs::after,.step-sm.step-centered.step-icon-xs .step-icon::after {
583
+ width: calc(100% - 3.03125rem);
584
+ left: calc(50% + 2.26562rem)
585
+ }
586
+
587
+ .step-sm.step-centered .step-icon.step-icon-sm::after,.step-sm.step-centered.step-icon-sm .step-icon::after {
588
+ width: calc(100% - 3.90625rem);
589
+ left: calc(50% + 2.70312rem)
590
+ }
591
+
592
+ .step-sm.step-centered .step-icon.step-icon-lg::after,.step-sm.step-centered.step-icon-lg .step-icon::after {
593
+ width: calc(100% - 6.3125rem);
594
+ left: calc(50% + 3.90625rem)
595
+ }
596
+ }
597
+
598
+ @media (min-width: 768px) {
599
+ .step-md.step-centered {
600
+ text-align:center
601
+ }
602
+
603
+ .step-md.step-centered .step-item:last-child .step-icon::after {
604
+ display: none
605
+ }
606
+
607
+ .step-md.step-centered .step-icon {
608
+ margin-left: auto;
609
+ margin-right: auto
610
+ }
611
+
612
+ .step-md.step-centered .step-icon::after {
613
+ width: calc(100% - 4.125rem);
614
+ left: calc(50% + 2.8125rem)
615
+ }
616
+
617
+ .step-md.step-centered .step-icon.step-icon-xs::after,.step-md.step-centered.step-icon-xs .step-icon::after {
618
+ width: calc(100% - 3.03125rem);
619
+ left: calc(50% + 2.26562rem)
620
+ }
621
+
622
+ .step-md.step-centered .step-icon.step-icon-sm::after,.step-md.step-centered.step-icon-sm .step-icon::after {
623
+ width: calc(100% - 3.90625rem);
624
+ left: calc(50% + 2.70312rem)
625
+ }
626
+
627
+ .step-md.step-centered .step-icon.step-icon-lg::after,.step-md.step-centered.step-icon-lg .step-icon::after {
628
+ width: calc(100% - 6.3125rem);
629
+ left: calc(50% + 3.90625rem)
630
+ }
631
+ }
632
+
633
+ @media (min-width: 992px) {
634
+ .step-lg.step-centered {
635
+ text-align:center
636
+ }
637
+
638
+ .step-lg.step-centered .step-item:last-child .step-icon::after {
639
+ display: none
640
+ }
641
+
642
+ .step-lg.step-centered .step-icon {
643
+ margin-left: auto;
644
+ margin-right: auto
645
+ }
646
+
647
+ .step-lg.step-centered .step-icon::after {
648
+ width: calc(100% - 4.125rem);
649
+ left: calc(50% + 2.8125rem)
650
+ }
651
+
652
+ .step-lg.step-centered .step-icon.step-icon-xs::after,.step-lg.step-centered.step-icon-xs .step-icon::after {
653
+ width: calc(100% - 3.03125rem);
654
+ left: calc(50% + 2.26562rem)
655
+ }
656
+
657
+ .step-lg.step-centered .step-icon.step-icon-sm::after,.step-lg.step-centered.step-icon-sm .step-icon::after {
658
+ width: calc(100% - 3.90625rem);
659
+ left: calc(50% + 2.70312rem)
660
+ }
661
+
662
+ .step-lg.step-centered .step-icon.step-icon-lg::after,.step-lg.step-centered.step-icon-lg .step-icon::after {
663
+ width: calc(100% - 6.3125rem);
664
+ left: calc(50% + 3.90625rem)
665
+ }
666
+ }
667
+
668
+ @media (min-width: 992px) {
669
+ .step-lg.step-centered {
670
+ text-align:center
671
+ }
672
+
673
+ .step-lg.step-centered .step-item:last-child .step-icon::after {
674
+ display: none
675
+ }
676
+
677
+ .step-lg.step-centered .step-icon {
678
+ margin-left: auto;
679
+ margin-right: auto
680
+ }
681
+
682
+ .step-lg.step-centered .step-icon::after {
683
+ width: calc(100% - 4.125rem);
684
+ left: calc(50% + 2.8125rem)
685
+ }
686
+
687
+ .step-lg.step-centered .step-icon.step-icon-xs::after,.step-lg.step-centered.step-icon-xs .step-icon::after {
688
+ width: calc(100% - 3.03125rem);
689
+ left: calc(50% + 2.26562rem)
690
+ }
691
+
692
+ .step-lg.step-centered .step-icon.step-icon-sm::after,.step-lg.step-centered.step-icon-sm .step-icon::after {
693
+ width: calc(100% - 3.90625rem);
694
+ left: calc(50% + 2.70312rem)
695
+ }
696
+
697
+ .step-lg.step-centered .step-icon.step-icon-lg::after,.step-lg.step-centered.step-icon-lg .step-icon::after {
698
+ width: calc(100% - 6.3125rem);
699
+ left: calc(50% + 3.90625rem)
700
+ }
701
+ }
702
+
703
+ .step .step-is-invalid-icon,.step .step-is-valid-icon {
704
+ display: none
705
+ }
706
+
707
+ .step .active .step-icon,.step .active.is-valid .step-icon,.step .visited .step-icon {
708
+ color: #fff;
709
+ background-color: var(--bs-primary)
710
+ }
711
+
712
+ .step .active .step-title,.step .active.is-valid .step-title,.step .visited .step-title {
713
+ color: var(--bs-primary)
714
+ }
715
+
716
+ .step .is-valid .step-icon {
717
+ color: #fff;
718
+ background-color: #377dff
719
+ }
720
+
721
+ .step .is-valid .step-title {
722
+ color: var(--bs-primary)
723
+ }
724
+
725
+ .step .is-valid .step-is-valid-icon {
726
+ display: -ms-inline-flexbox;
727
+ display: inline-flex
728
+ }
729
+
730
+ .step .is-valid .step-is-default-icon,.step .is-valid .step-is-invalid-icon {
731
+ display: none
732
+ }
733
+
734
+ .step .is-invalid .step-icon {
735
+ color: #fff;
736
+ background-color: var(--bs-danger)
737
+ }
738
+
739
+ .step .is-invalid .step-title {
740
+ color: var(--bs-danger)
741
+ }
742
+
743
+ .step .is-invalid .step-is-invalid-icon {
744
+ display: -ms-inline-flexbox;
745
+ display: inline-flex
746
+ }
747
+
748
+ .step .is-invalid .step-is-default-icon,.step .is-invalid .step-is-valid-icon {
749
+ display: none
750
+ }
751
+
752
+ .step-icon-primary {
753
+ color: #fff;
754
+ background-color: #377dff
755
+ }
756
+
757
+ .step-icon-primary.step-icon-pseudo::before {
758
+ background-color: #fff
759
+ }
760
+
761
+ .step-icon-secondary {
762
+ color: #fff;
763
+ background-color: #71869d
764
+ }
765
+
766
+ .step-icon-secondary.step-icon-pseudo::before {
767
+ background-color: #fff
768
+ }
769
+
770
+ .step-icon-success {
771
+ color: #fff;
772
+ background-color: #00c9a7
773
+ }
774
+
775
+ .step-icon-success.step-icon-pseudo::before {
776
+ background-color: #fff
777
+ }
778
+
779
+ .step-icon-info {
780
+ color: #fff;
781
+ background-color: #09a5be
782
+ }
783
+
784
+ .step-icon-info.step-icon-pseudo::before {
785
+ background-color: #fff
786
+ }
787
+
788
+ .step-icon-warning {
789
+ color: #000;
790
+ background-color: #f5ca99
791
+ }
792
+
793
+ .step-icon-warning.step-icon-pseudo::before {
794
+ background-color: #000
795
+ }
796
+
797
+ .step-icon-danger {
798
+ color: #fff;
799
+ background-color: #ed4c78
800
+ }
801
+
802
+ .step-icon-danger.step-icon-pseudo::before {
803
+ background-color: #fff
804
+ }
805
+
806
+ .step-icon-light {
807
+ color: #000;
808
+ background-color: #f9fafc
809
+ }
810
+
811
+ .step-icon-light.step-icon-pseudo::before {
812
+ background-color: #000
813
+ }
814
+
815
+ .step-icon-dark {
816
+ color: #fff;
817
+ background-color: #132144
818
+ }
819
+
820
+ .step-icon-dark.step-icon-pseudo::before {
821
+ background-color: #fff
822
+ }
823
+
824
+ .step-icon-soft-primary {
825
+ color: #377dff;
826
+ background-color: rgba(55,125,255,.1)
827
+ }
828
+
829
+ .step-icon-soft-primary.step-icon-pseudo::before {
830
+ background-color: #377dff
831
+ }
832
+
833
+ .step-icon-soft-secondary {
834
+ color: #71869d;
835
+ background-color: rgba(113,134,157,.1)
836
+ }
837
+
838
+ .step-icon-soft-secondary.step-icon-pseudo::before {
839
+ background-color: #71869d
840
+ }
841
+
842
+ .step-icon-soft-success {
843
+ color: #00c9a7;
844
+ background-color: rgba(0,201,167,.1)
845
+ }
846
+
847
+ .step-icon-soft-success.step-icon-pseudo::before {
848
+ background-color: #00c9a7
849
+ }
850
+
851
+ .step-item {
852
+ cursor: pointer;
853
+ }
854
+
855
+ .step-icon-soft-info {
856
+ color: #09a5be;
857
+ background-color: rgba(9,165,190,.1)
858
+ }
859
+
860
+ .step-icon-soft-info.step-icon-pseudo::before {
861
+ background-color: #09a5be
862
+ }
863
+
864
+ .step-icon-soft-warning {
865
+ color: #f5ca99;
866
+ background-color: rgba(245,202,153,.1)
867
+ }
868
+
869
+ .step-icon-soft-warning.step-icon-pseudo::before {
870
+ background-color: #f5ca99
871
+ }
872
+
873
+ .step-icon-soft-danger {
874
+ color: #ed4c78;
875
+ background-color: rgba(237,76,120,.1)
876
+ }
877
+
878
+ .step-icon-soft-danger.step-icon-pseudo::before {
879
+ background-color: #ed4c78
880
+ }
881
+
882
+ .step-icon-soft-light {
883
+ color: #f9fafc;
884
+ background-color: rgba(249,250,252,.1)
885
+ }
886
+
887
+ .step-icon-soft-light.step-icon-pseudo::before {
888
+ background-color: #f9fafc
889
+ }
890
+
891
+ .step-icon-soft-dark {
892
+ color: var(--bs-dark);
893
+ background-color: var(--bs-light)
894
+ }
895
+
896
+ .step-icon-soft-dark.step-icon-pseudo::before {
897
+ background-color: var(--bs-light)
898
+ }
899
+
900
+ .step-inline .step-content-wrapper {
901
+ -ms-flex-align: center;
902
+ align-items: center
903
+ }
904
+
905
+ .step-inline .step-item:last-child .step-title::after {
906
+ display: none
907
+ }
908
+
909
+ .step-inline .step-title {
910
+ display: inline-block
911
+ }
912
+
913
+ @media (min-width: 576px) {
914
+ .step-sm.step-inline.step-dashed .step-title::after {
915
+ border-top-style:dashed
916
+ }
917
+
918
+ .step-sm.step-inline .step-item {
919
+ overflow: hidden
920
+ }
921
+
922
+ .step-sm.step-inline .step-icon {
923
+ margin-bottom: 0
924
+ }
925
+
926
+ .step-sm.step-inline .step-icon::after {
927
+ display: none
928
+ }
929
+
930
+ .step-sm.step-inline .step-title::after {
931
+ position: absolute;
932
+ top: 1.3125rem;
933
+ width: 100%;
934
+ height: 1.625rem;
935
+ border-top: .125rem solid rgba(231,234,243,.7);
936
+ margin-left: 1.5rem;
937
+ content: ""
938
+ }
939
+
940
+ .step-sm.step-inline .step-icon-xs+.step-content .step-title::after,.step-sm.step-inline.step-icon-xs .step-content .step-title::after {
941
+ top: .76562rem
942
+ }
943
+
944
+ .step-sm.step-inline .step-icon-sm+.step-content .step-title::after,.step-sm.step-inline.step-icon-sm .step-content .step-title::after {
945
+ top: 1.20312rem
946
+ }
947
+
948
+ .step-sm.step-inline .step-icon-lg+.step-content .step-title::after,.step-sm.step-inline.step-icon-lg .step-content .step-title::after {
949
+ top: 2.40625rem
950
+ }
951
+ }
952
+
953
+ @media (min-width: 768px) {
954
+ .step-md.step-inline.step-dashed .step-title::after {
955
+ border-top-style:dashed
956
+ }
957
+
958
+ .step-md.step-inline .step-item {
959
+ overflow: hidden
960
+ }
961
+
962
+ .step-md.step-inline .step-icon {
963
+ margin-bottom: 0
964
+ }
965
+
966
+ .step-md.step-inline .step-icon::after {
967
+ display: none
968
+ }
969
+
970
+ .step-md.step-inline .step-title::after {
971
+ position: absolute;
972
+ top: 1.3125rem;
973
+ width: 100%;
974
+ height: 1.625rem;
975
+ border-top: .125rem solid rgba(231,234,243,.7);
976
+ margin-left: 1.5rem;
977
+ content: ""
978
+ }
979
+
980
+ .step-md.step-inline .step-icon-xs+.step-content .step-title::after,.step-md.step-inline.step-icon-xs .step-content .step-title::after {
981
+ top: .76562rem
982
+ }
983
+
984
+ .step-md.step-inline .step-icon-sm+.step-content .step-title::after,.step-md.step-inline.step-icon-sm .step-content .step-title::after {
985
+ top: 1.20312rem
986
+ }
987
+
988
+ .step-md.step-inline .step-icon-lg+.step-content .step-title::after,.step-md.step-inline.step-icon-lg .step-content .step-title::after {
989
+ top: 2.40625rem
990
+ }
991
+ }
992
+
993
+ @media (min-width: 992px) {
994
+ .step-lg.step-inline.step-dashed .step-title::after {
995
+ border-top-style:dashed
996
+ }
997
+
998
+ .step-lg.step-inline .step-item {
999
+ overflow: hidden
1000
+ }
1001
+
1002
+ .step-lg.step-inline .step-icon {
1003
+ margin-bottom: 0
1004
+ }
1005
+
1006
+ .step-lg.step-inline .step-icon::after {
1007
+ display: none
1008
+ }
1009
+
1010
+ .step-lg.step-inline .step-title::after {
1011
+ position: absolute;
1012
+ top: 1.3125rem;
1013
+ width: 100%;
1014
+ height: 1.625rem;
1015
+ border-top: .125rem solid rgba(231,234,243,.7);
1016
+ margin-left: 1.5rem;
1017
+ content: ""
1018
+ }
1019
+
1020
+ .step-lg.step-inline .step-icon-xs+.step-content .step-title::after,.step-lg.step-inline.step-icon-xs .step-content .step-title::after {
1021
+ top: .76562rem
1022
+ }
1023
+
1024
+ .step-lg.step-inline .step-icon-sm+.step-content .step-title::after,.step-lg.step-inline.step-icon-sm .step-content .step-title::after {
1025
+ top: 1.20312rem
1026
+ }
1027
+
1028
+ .step-lg.step-inline .step-icon-lg+.step-content .step-title::after,.step-lg.step-inline.step-icon-lg .step-content .step-title::after {
1029
+ top: 2.40625rem
1030
+ }
1031
+ }
1032
+
1033
+ @media (min-width: 1200px) {
1034
+ .step-xl.step-inline.step-dashed .step-title::after {
1035
+ border-top-style:dashed
1036
+ }
1037
+
1038
+ .step-xl.step-inline .step-item {
1039
+ overflow: hidden
1040
+ }
1041
+
1042
+ .step-xl.step-inline .step-icon {
1043
+ margin-bottom: 0
1044
+ }
1045
+
1046
+ .step-xl.step-inline .step-icon::after {
1047
+ display: none
1048
+ }
1049
+
1050
+ .step-xl.step-inline .step-title::after {
1051
+ position: absolute;
1052
+ top: 1.3125rem;
1053
+ width: 100%;
1054
+ height: 1.625rem;
1055
+ border-top: .125rem solid rgba(231,234,243,.7);
1056
+ margin-left: 1.5rem;
1057
+ content: ""
1058
+ }
1059
+
1060
+ .step-xl.step-inline .step-icon-xs+.step-content .step-title::after,.step-xl.step-inline.step-icon-xs .step-content .step-title::after {
1061
+ top: .76562rem
1062
+ }
1063
+
1064
+ .step-xl.step-inline .step-icon-sm+.step-content .step-title::after,.step-xl.step-inline.step-icon-sm .step-content .step-title::after {
1065
+ top: 1.20312rem
1066
+ }
1067
+
1068
+ .step-xl.step-inline .step-icon-lg+.step-content .step-title::after,.step-xl.step-inline.step-icon-lg .step-content .step-title::after {
1069
+ top: 2.40625rem
1070
+ }
1071
+ }
1072
+
1073
+ @media (min-width: 576px) {
1074
+ .step-timeline-sm {
1075
+ margin-left:0;
1076
+ margin-right: 0
1077
+ }
1078
+
1079
+ .step-timeline-sm .step-item {
1080
+ -ms-flex: 0 0 50%;
1081
+ flex: 0 0 50%;
1082
+ max-width: 50%;
1083
+ padding-left: 0;
1084
+ padding-right: 0;
1085
+ margin-left: 50%
1086
+ }
1087
+
1088
+ .step-timeline-sm .step-item:nth-child(even) {
1089
+ -ms-flex-direction: row-reverse;
1090
+ flex-direction: row-reverse;
1091
+ text-align: right;
1092
+ margin-left: auto;
1093
+ margin-right: 50%
1094
+ }
1095
+
1096
+ .step-timeline-sm .step-item:nth-child(even) .step-content-wrapper {
1097
+ -ms-flex-direction: row-reverse;
1098
+ flex-direction: row-reverse
1099
+ }
1100
+
1101
+ .step-timeline-sm .step-item:nth-child(even) .step-icon {
1102
+ margin-left: 0;
1103
+ margin-right: -1.3125rem
1104
+ }
1105
+
1106
+ .step-timeline-sm .step-item:nth-child(even) .step-icon-xs {
1107
+ margin-right: -.76562rem
1108
+ }
1109
+
1110
+ .step-timeline-sm .step-item:nth-child(even) .step-icon-sm {
1111
+ margin-right: -1.20312rem
1112
+ }
1113
+
1114
+ .step-timeline-sm .step-item:nth-child(even) .step-icon-lg {
1115
+ margin-right: -2.40625rem
1116
+ }
1117
+
1118
+ .step-timeline-sm .step-item:nth-child(even) .step-content {
1119
+ margin-right: 1.5rem
1120
+ }
1121
+
1122
+ .step-timeline-sm .step-icon {
1123
+ margin-left: -1.3125rem
1124
+ }
1125
+
1126
+ .step-timeline-sm .step-icon::after {
1127
+ left: auto;
1128
+ width: auto
1129
+ }
1130
+
1131
+ .step-timeline-sm .step-icon-xs {
1132
+ margin-left: -.76562rem
1133
+ }
1134
+
1135
+ .step-timeline-sm .step-icon-sm {
1136
+ margin-left: -1.20312rem
1137
+ }
1138
+
1139
+ .step-timeline-sm .step-icon-lg {
1140
+ margin-left: -2.40625rem
1141
+ }
1142
+ }
1143
+
1144
+ @media (min-width: 768px) {
1145
+ .step-timeline-md {
1146
+ margin-left:0;
1147
+ margin-right: 0
1148
+ }
1149
+
1150
+ .step-timeline-md .step-item {
1151
+ -ms-flex: 0 0 50%;
1152
+ flex: 0 0 50%;
1153
+ max-width: 50%;
1154
+ padding-left: 0;
1155
+ padding-right: 0;
1156
+ margin-left: 50%
1157
+ }
1158
+
1159
+ .step-timeline-md .step-item:nth-child(even) {
1160
+ -ms-flex-direction: row-reverse;
1161
+ flex-direction: row-reverse;
1162
+ text-align: right;
1163
+ margin-left: auto;
1164
+ margin-right: 50%
1165
+ }
1166
+
1167
+ .step-timeline-md .step-item:nth-child(even) .step-content-wrapper {
1168
+ -ms-flex-direction: row-reverse;
1169
+ flex-direction: row-reverse
1170
+ }
1171
+
1172
+ .step-timeline-md .step-item:nth-child(even) .step-icon {
1173
+ margin-left: 0;
1174
+ margin-right: -1.3125rem
1175
+ }
1176
+
1177
+ .step-timeline-md .step-item:nth-child(even) .step-icon-xs {
1178
+ margin-right: -.76562rem
1179
+ }
1180
+
1181
+ .step-timeline-md .step-item:nth-child(even) .step-icon-sm {
1182
+ margin-right: -1.20312rem
1183
+ }
1184
+
1185
+ .step-timeline-md .step-item:nth-child(even) .step-icon-lg {
1186
+ margin-right: -2.40625rem
1187
+ }
1188
+
1189
+ .step-timeline-md .step-item:nth-child(even) .step-content {
1190
+ margin-right: 1.5rem
1191
+ }
1192
+
1193
+ .step-timeline-md .step-icon {
1194
+ margin-left: -1.3125rem
1195
+ }
1196
+
1197
+ .step-timeline-md .step-icon::after {
1198
+ left: auto;
1199
+ width: auto
1200
+ }
1201
+
1202
+ .step-timeline-md .step-icon-xs {
1203
+ margin-left: -.76562rem
1204
+ }
1205
+
1206
+ .step-timeline-md .step-icon-sm {
1207
+ margin-left: -1.20312rem
1208
+ }
1209
+
1210
+ .step-timeline-md .step-icon-lg {
1211
+ margin-left: -2.40625rem
1212
+ }
1213
+ }
1214
+
1215
+ @media (min-width: 992px) {
1216
+ .step-timeline-lg {
1217
+ margin-left:0;
1218
+ margin-right: 0
1219
+ }
1220
+
1221
+ .step-timeline-lg .step-item {
1222
+ -ms-flex: 0 0 50%;
1223
+ flex: 0 0 50%;
1224
+ max-width: 50%;
1225
+ padding-left: 0;
1226
+ padding-right: 0;
1227
+ margin-left: 50%
1228
+ }
1229
+
1230
+ .step-timeline-lg .step-item:nth-child(even) {
1231
+ -ms-flex-direction: row-reverse;
1232
+ flex-direction: row-reverse;
1233
+ text-align: right;
1234
+ margin-left: auto;
1235
+ margin-right: 50%
1236
+ }
1237
+
1238
+ .step-timeline-lg .step-item:nth-child(even) .step-content-wrapper {
1239
+ -ms-flex-direction: row-reverse;
1240
+ flex-direction: row-reverse
1241
+ }
1242
+
1243
+ .step-timeline-lg .step-item:nth-child(even) .step-icon {
1244
+ margin-left: 0;
1245
+ margin-right: -1.3125rem
1246
+ }
1247
+
1248
+ .step-timeline-lg .step-item:nth-child(even) .step-icon-xs {
1249
+ margin-right: -.76562rem
1250
+ }
1251
+
1252
+ .step-timeline-lg .step-item:nth-child(even) .step-icon-sm {
1253
+ margin-right: -1.20312rem
1254
+ }
1255
+
1256
+ .step-timeline-lg .step-item:nth-child(even) .step-icon-lg {
1257
+ margin-right: -2.40625rem
1258
+ }
1259
+
1260
+ .step-timeline-lg .step-item:nth-child(even) .step-content {
1261
+ margin-right: 1.5rem
1262
+ }
1263
+
1264
+ .step-timeline-lg .step-icon {
1265
+ margin-left: -1.3125rem
1266
+ }
1267
+
1268
+ .step-timeline-lg .step-icon::after {
1269
+ left: auto;
1270
+ width: auto
1271
+ }
1272
+
1273
+ .step-timeline-lg .step-icon-xs {
1274
+ margin-left: -.76562rem
1275
+ }
1276
+
1277
+ .step-timeline-lg .step-icon-sm {
1278
+ margin-left: -1.20312rem
1279
+ }
1280
+
1281
+ .step-timeline-lg .step-icon-lg {
1282
+ margin-left: -2.40625rem
1283
+ }
1284
+ }
1285
+
1286
+ @media (min-width: 1200px) {
1287
+ .step-timeline-xl {
1288
+ margin-left:0;
1289
+ margin-right: 0
1290
+ }
1291
+
1292
+ .step-timeline-xl .step-item {
1293
+ -ms-flex: 0 0 50%;
1294
+ flex: 0 0 50%;
1295
+ max-width: 50%;
1296
+ padding-left: 0;
1297
+ padding-right: 0;
1298
+ margin-left: 50%
1299
+ }
1300
+
1301
+ .step-timeline-xl .step-item:nth-child(even) {
1302
+ -ms-flex-direction: row-reverse;
1303
+ flex-direction: row-reverse;
1304
+ text-align: right;
1305
+ margin-left: auto;
1306
+ margin-right: 50%
1307
+ }
1308
+
1309
+ .step-timeline-xl .step-item:nth-child(even) .step-content-wrapper {
1310
+ -ms-flex-direction: row-reverse;
1311
+ flex-direction: row-reverse
1312
+ }
1313
+
1314
+ .step-timeline-xl .step-item:nth-child(even) .step-icon {
1315
+ margin-left: 0;
1316
+ margin-right: -1.3125rem
1317
+ }
1318
+
1319
+ .step-timeline-xl .step-item:nth-child(even) .step-icon-xs {
1320
+ margin-right: -.76562rem
1321
+ }
1322
+
1323
+ .step-timeline-xl .step-item:nth-child(even) .step-icon-sm {
1324
+ margin-right: -1.20312rem
1325
+ }
1326
+
1327
+ .step-timeline-xl .step-item:nth-child(even) .step-icon-lg {
1328
+ margin-right: -2.40625rem
1329
+ }
1330
+
1331
+ .step-timeline-xl .step-item:nth-child(even) .step-content {
1332
+ margin-right: 1.5rem
1333
+ }
1334
+
1335
+ .step-timeline-xl .step-icon {
1336
+ margin-left: -1.3125rem
1337
+ }
1338
+
1339
+ .step-timeline-xl .step-icon::after {
1340
+ left: auto;
1341
+ width: auto
1342
+ }
1343
+
1344
+ .step-timeline-xl .step-icon-xs {
1345
+ margin-left: -.76562rem
1346
+ }
1347
+
1348
+ .step-timeline-xl .step-icon-sm {
1349
+ margin-left: -1.20312rem
1350
+ }
1351
+
1352
+ .step-timeline-xl .step-icon-lg {
1353
+ margin-left: -2.40625rem
1354
+ }
1355
+ }
@@ -0,0 +1,10 @@
1
+ export default function StepList({ active, setActive, children }: {
2
+ active: any;
3
+ setActive: any;
4
+ children: any;
5
+ }): JSX.Element;
6
+ export declare function StepItem({ title, translate, disabled }: {
7
+ title: any;
8
+ translate: any;
9
+ disabled: any;
10
+ }): JSX.Element;
@@ -0,0 +1,21 @@
1
+ import React, { useCallback, useContext, useMemo } from "react";
2
+ import { FormattedMessage } from "react-intl";
3
+ const IndexContext = React.createContext(0);
4
+ const OnClickDataContext = React.createContext(null);
5
+ export default function StepList({ active, setActive, children }) {
6
+ const onClickData = useMemo(() => [active, setActive], [active, setActive]);
7
+ return React.createElement("ul", { className: "step step-sm step-icon-sm step step-inline step-item-between mb-3" }, React.Children.map(children, (element, index) => React.createElement(IndexContext.Provider, { value: index },
8
+ React.createElement(OnClickDataContext.Provider, { value: onClickData }, element))));
9
+ }
10
+ export function StepItem({ title, translate, disabled }) {
11
+ const index = useContext(IndexContext);
12
+ const [activeStep, onClickParent] = useContext(OnClickDataContext);
13
+ const onClick = useCallback(function () {
14
+ onClickParent(index);
15
+ }, [index, onClickParent]);
16
+ return React.createElement("li", { className: "step-item focus" + (index === activeStep ? ' active' : '') },
17
+ React.createElement("a", { className: "step-content-wrapper", onClick: onClick },
18
+ React.createElement("span", { className: "step-icon step-icon-soft-dark" }, index + 1),
19
+ React.createElement("div", { className: "step-content" },
20
+ React.createElement("span", { className: "step-title" + (disabled ? " text-muted" : "") }, title || React.createElement(FormattedMessage, { id: translate })))));
21
+ }
@@ -17,4 +17,5 @@ import ErrorBoundary from './Components/ErrorBoundary';
17
17
  import { useMenuState, useIsMobile } from './Components/MenuState';
18
18
  import TopProgressBar from './Components/TopProgressBar';
19
19
  import ThemeProvider, { useTheme, useAllThemes } from './Components/ThemeProvider';
20
- export { ThemeProvider, useTheme, useAllThemes, useIsMobile, useMenuState, TopProgressBar, CRUD, ModalEntityEditor, CRUDActions, Relative, ApiSelect, Preview, ExcelExportButton, ExternalLoginButton, SingleFilePicker, MultiFilePicker, ImagePicker, BootstrapTable, EntityEditor, GoToTop, Validator, ValueValidator, ValidationErrors, LoadingButton, BootstrapDataTable, IdColumn, Column, ActionsColumn, Actions, useDataTableContext, LanguageProvider, useLanguage, LanguageSwitcher, ErrorBoundary, CheckBox };
20
+ import StepList, { StepItem } from './Components/StepList';
21
+ export { ThemeProvider, useTheme, useAllThemes, useIsMobile, useMenuState, StepList, StepItem, TopProgressBar, CRUD, ModalEntityEditor, CRUDActions, Relative, ApiSelect, Preview, ExcelExportButton, ExternalLoginButton, SingleFilePicker, MultiFilePicker, ImagePicker, BootstrapTable, EntityEditor, GoToTop, Validator, ValueValidator, ValidationErrors, LoadingButton, BootstrapDataTable, IdColumn, Column, ActionsColumn, Actions, useDataTableContext, LanguageProvider, useLanguage, LanguageSwitcher, ErrorBoundary, CheckBox };
package/lib/esm/index.js CHANGED
@@ -17,4 +17,5 @@ import ErrorBoundary from './Components/ErrorBoundary';
17
17
  import { useMenuState, useIsMobile } from './Components/MenuState';
18
18
  import TopProgressBar from './Components/TopProgressBar';
19
19
  import ThemeProvider, { useTheme, useAllThemes } from './Components/ThemeProvider';
20
- export { ThemeProvider, useTheme, useAllThemes, useIsMobile, useMenuState, TopProgressBar, CRUD, ModalEntityEditor, CRUDActions, Relative, ApiSelect, Preview, ExcelExportButton, ExternalLoginButton, SingleFilePicker, MultiFilePicker, ImagePicker, BootstrapTable, EntityEditor, GoToTop, Validator, ValueValidator, ValidationErrors, LoadingButton, BootstrapDataTable, IdColumn, Column, ActionsColumn, Actions, useDataTableContext, LanguageProvider, useLanguage, LanguageSwitcher, ErrorBoundary, CheckBox };
20
+ import StepList, { StepItem } from './Components/StepList';
21
+ export { ThemeProvider, useTheme, useAllThemes, useIsMobile, useMenuState, StepList, StepItem, TopProgressBar, CRUD, ModalEntityEditor, CRUDActions, Relative, ApiSelect, Preview, ExcelExportButton, ExternalLoginButton, SingleFilePicker, MultiFilePicker, ImagePicker, BootstrapTable, EntityEditor, GoToTop, Validator, ValueValidator, ValidationErrors, LoadingButton, BootstrapDataTable, IdColumn, Column, ActionsColumn, Actions, useDataTableContext, LanguageProvider, useLanguage, LanguageSwitcher, ErrorBoundary, CheckBox };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-admin-base-bootstrap",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -0,0 +1,39 @@
1
+ import React, { useCallback, useContext, useMemo } from "react";
2
+ import { FormattedMessage } from "react-intl";
3
+
4
+ const IndexContext = React.createContext(0);
5
+ const OnClickDataContext = React.createContext<[number, (a: Number) => void]>(null as any);
6
+
7
+ export default function StepList({ active, setActive, children }) {
8
+ const onClickData = useMemo<[number, (a: Number) => void]>(() => [active, setActive], [active, setActive]);
9
+
10
+ return <ul className="step step-sm step-icon-sm step step-inline step-item-between mb-3">
11
+ {
12
+ React.Children.map(children, (element, index) => <IndexContext.Provider value={index}>
13
+ <OnClickDataContext.Provider value={onClickData}>
14
+ { element }
15
+ </OnClickDataContext.Provider>
16
+ </IndexContext.Provider>)
17
+ }
18
+ </ul>;
19
+ }
20
+
21
+ export function StepItem({ title, translate, disabled }) {
22
+ const index = useContext(IndexContext);
23
+ const [ activeStep, onClickParent ] = useContext(OnClickDataContext);
24
+
25
+ const onClick = useCallback(function() {
26
+ onClickParent(index);
27
+ }, [ index, onClickParent ]);
28
+
29
+ return <li className={"step-item focus" + (index === activeStep ? ' active' : '')}>
30
+ <a className="step-content-wrapper" onClick={onClick}>
31
+ <span className="step-icon step-icon-soft-dark">{index + 1}</span>
32
+ <div className="step-content">
33
+ <span className={"step-title" + (disabled ? " text-muted" : "")}>
34
+ { title || <FormattedMessage id={translate} /> }
35
+ </span>
36
+ </div>
37
+ </a>
38
+ </li>;
39
+ }
package/src/index.ts CHANGED
@@ -18,10 +18,12 @@ import ErrorBoundary from './Components/ErrorBoundary';
18
18
  import { useMenuState, useIsMobile } from './Components/MenuState';
19
19
  import TopProgressBar from './Components/TopProgressBar';
20
20
  import ThemeProvider, { useTheme, useAllThemes } from './Components/ThemeProvider';
21
+ import StepList, { StepItem } from './Components/StepList';
21
22
 
22
23
  export {
23
24
  ThemeProvider, useTheme, useAllThemes,
24
25
  useIsMobile, useMenuState,
26
+ StepList, StepItem,
25
27
  TopProgressBar,
26
28
  CRUD, ModalEntityEditor, CRUDActions,
27
29
  Relative,