@ama-pt/agora-design-system 2.0.0 → 2.1.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/artifacts/dist/index.mjs +5152 -4798
- package/artifacts/dist/index.mjs.map +1 -1
- package/artifacts/dist/index.umd.js +2 -2
- package/artifacts/dist/index.umd.js.map +1 -1
- package/artifacts/dist/style.css +1 -1
- package/artifacts/dist/tailwind.css +224 -4
- package/artifacts/dist/types/components/button-group/button-group.d.ts +4 -0
- package/artifacts/dist/types/components/header/internals/context/data-context/utils/authenticated-utils.d.ts +3 -3
- package/artifacts/dist/types/components/index.d.ts +1 -0
- package/artifacts/dist/types/components/input-time/contexts/time-input-state.context.d.ts +32 -0
- package/artifacts/dist/types/components/input-time/index.d.ts +2 -0
- package/artifacts/dist/types/components/input-time/input-time.d.ts +78 -0
- package/artifacts/dist/types/components/input-time/time-picker-dropdown-body/time-picker-dropdown-body.d.ts +2 -0
- package/artifacts/dist/types/components/input-time/time-picker-dropdown-footer/time-picker-dropdown-footer.d.ts +5 -0
- package/artifacts/dist/types/components/input-time/time-picker-dropdown.d.ts +13 -0
- package/artifacts/dist/types/components/input-time/time-text/time-text.d.ts +8 -0
- package/artifacts/dist/types/components/input-time/utils/format-time.d.ts +24 -0
- package/artifacts/dist/types/models/index.d.ts +1 -0
- package/artifacts/dist/types/models/time-period-type.d.ts +1 -0
- package/package.json +15 -15
|
@@ -861,6 +861,14 @@ input[type]::placeholder{
|
|
|
861
861
|
z-index: 8000;
|
|
862
862
|
}
|
|
863
863
|
|
|
864
|
+
.col-auto{
|
|
865
|
+
grid-column: auto;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.col-span-1{
|
|
869
|
+
grid-column: span 1 / span 1;
|
|
870
|
+
}
|
|
871
|
+
|
|
864
872
|
.col-span-12{
|
|
865
873
|
grid-column: span 12 / span 12;
|
|
866
874
|
}
|
|
@@ -889,6 +897,14 @@ input[type]::placeholder{
|
|
|
889
897
|
grid-column: span 8 / span 8;
|
|
890
898
|
}
|
|
891
899
|
|
|
900
|
+
.col-start-1{
|
|
901
|
+
grid-column-start: 1;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.col-start-3{
|
|
905
|
+
grid-column-start: 3;
|
|
906
|
+
}
|
|
907
|
+
|
|
892
908
|
.col-start-4{
|
|
893
909
|
grid-column-start: 4;
|
|
894
910
|
}
|
|
@@ -901,6 +917,14 @@ input[type]::placeholder{
|
|
|
901
917
|
grid-column-end: 12;
|
|
902
918
|
}
|
|
903
919
|
|
|
920
|
+
.col-end-3{
|
|
921
|
+
grid-column-end: 3;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.col-end-5{
|
|
925
|
+
grid-column-end: 5;
|
|
926
|
+
}
|
|
927
|
+
|
|
904
928
|
.col-end-9{
|
|
905
929
|
grid-column-end: 9;
|
|
906
930
|
}
|
|
@@ -956,6 +980,10 @@ input[type]::placeholder{
|
|
|
956
980
|
margin-left: -16px;
|
|
957
981
|
}
|
|
958
982
|
|
|
983
|
+
.-ml-32{
|
|
984
|
+
margin-left: -32px;
|
|
985
|
+
}
|
|
986
|
+
|
|
959
987
|
.mb-128{
|
|
960
988
|
margin-bottom: 128px;
|
|
961
989
|
}
|
|
@@ -984,6 +1012,10 @@ input[type]::placeholder{
|
|
|
984
1012
|
margin-left: 16px;
|
|
985
1013
|
}
|
|
986
1014
|
|
|
1015
|
+
.ml-32{
|
|
1016
|
+
margin-left: 32px;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
987
1019
|
.ml-8{
|
|
988
1020
|
margin-left: 8px;
|
|
989
1021
|
}
|
|
@@ -996,6 +1028,10 @@ input[type]::placeholder{
|
|
|
996
1028
|
margin-right: 0px;
|
|
997
1029
|
}
|
|
998
1030
|
|
|
1031
|
+
.mr-16{
|
|
1032
|
+
margin-right: 16px;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
999
1035
|
.mr-24{
|
|
1000
1036
|
margin-right: 24px;
|
|
1001
1037
|
}
|
|
@@ -1036,6 +1072,10 @@ input[type]::placeholder{
|
|
|
1036
1072
|
margin-top: 10px;
|
|
1037
1073
|
}
|
|
1038
1074
|
|
|
1075
|
+
.mt-\[36px\]{
|
|
1076
|
+
margin-top: 36px;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1039
1079
|
.mt-auto{
|
|
1040
1080
|
margin-top: auto;
|
|
1041
1081
|
}
|
|
@@ -1185,6 +1225,10 @@ input[type]::placeholder{
|
|
|
1185
1225
|
max-height: min-content;
|
|
1186
1226
|
}
|
|
1187
1227
|
|
|
1228
|
+
.max-h-screen{
|
|
1229
|
+
max-height: 100vh;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1188
1232
|
.min-h-\[100vh\]{
|
|
1189
1233
|
min-height: 100vh;
|
|
1190
1234
|
}
|
|
@@ -1245,6 +1289,10 @@ input[type]::placeholder{
|
|
|
1245
1289
|
width: 56px;
|
|
1246
1290
|
}
|
|
1247
1291
|
|
|
1292
|
+
.w-64{
|
|
1293
|
+
width: 64px;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1248
1296
|
.w-\[44px\]{
|
|
1249
1297
|
width: 44px;
|
|
1250
1298
|
}
|
|
@@ -1257,6 +1305,14 @@ input[type]::placeholder{
|
|
|
1257
1305
|
width: 496px;
|
|
1258
1306
|
}
|
|
1259
1307
|
|
|
1308
|
+
.w-\[60px\]{
|
|
1309
|
+
width: 60px;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.w-\[65px\]{
|
|
1313
|
+
width: 65px;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1260
1316
|
.w-\[calc\(100\%\+32px\)\]{
|
|
1261
1317
|
width: calc(100% + 32px);
|
|
1262
1318
|
}
|
|
@@ -1719,6 +1775,10 @@ input[type]::placeholder{
|
|
|
1719
1775
|
flex-direction: row;
|
|
1720
1776
|
}
|
|
1721
1777
|
|
|
1778
|
+
.flex-row-reverse{
|
|
1779
|
+
flex-direction: row-reverse;
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1722
1782
|
.flex-col{
|
|
1723
1783
|
flex-direction: column;
|
|
1724
1784
|
}
|
|
@@ -1805,6 +1865,11 @@ input[type]::placeholder{
|
|
|
1805
1865
|
column-gap: 32px;
|
|
1806
1866
|
}
|
|
1807
1867
|
|
|
1868
|
+
.gap-x-8{
|
|
1869
|
+
-moz-column-gap: 8px;
|
|
1870
|
+
column-gap: 8px;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1808
1873
|
.gap-y-16{
|
|
1809
1874
|
row-gap: 16px;
|
|
1810
1875
|
}
|
|
@@ -1817,6 +1882,10 @@ input[type]::placeholder{
|
|
|
1817
1882
|
row-gap: 8px;
|
|
1818
1883
|
}
|
|
1819
1884
|
|
|
1885
|
+
.place-self-end{
|
|
1886
|
+
place-self: end;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1820
1889
|
.self-end{
|
|
1821
1890
|
align-self: flex-end;
|
|
1822
1891
|
}
|
|
@@ -1995,6 +2064,10 @@ input[type]::placeholder{
|
|
|
1995
2064
|
border-bottom-width: 8px;
|
|
1996
2065
|
}
|
|
1997
2066
|
|
|
2067
|
+
.\!border-b-0{
|
|
2068
|
+
border-bottom-width: 0 !important;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
1998
2071
|
.border-b{
|
|
1999
2072
|
border-bottom-width: 1px;
|
|
2000
2073
|
}
|
|
@@ -2187,6 +2260,10 @@ input[type]::placeholder{
|
|
|
2187
2260
|
border-style: none;
|
|
2188
2261
|
}
|
|
2189
2262
|
|
|
2263
|
+
.\!border-\[var\(--color-primary-600\)\]{
|
|
2264
|
+
border-color: var(--color-primary-600) !important;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2190
2267
|
.\!border-transparent{
|
|
2191
2268
|
border-color: transparent !important;
|
|
2192
2269
|
}
|
|
@@ -7271,6 +7348,10 @@ input[type]::placeholder{
|
|
|
7271
7348
|
padding-right: 42px !important;
|
|
7272
7349
|
}
|
|
7273
7350
|
|
|
7351
|
+
.pb-128{
|
|
7352
|
+
padding-bottom: 128px;
|
|
7353
|
+
}
|
|
7354
|
+
|
|
7274
7355
|
.pb-32{
|
|
7275
7356
|
padding-bottom: 32px;
|
|
7276
7357
|
}
|
|
@@ -7279,6 +7360,10 @@ input[type]::placeholder{
|
|
|
7279
7360
|
padding-bottom: 64px;
|
|
7280
7361
|
}
|
|
7281
7362
|
|
|
7363
|
+
.pl-32{
|
|
7364
|
+
padding-left: 32px;
|
|
7365
|
+
}
|
|
7366
|
+
|
|
7282
7367
|
.pl-8{
|
|
7283
7368
|
padding-left: 8px;
|
|
7284
7369
|
}
|
|
@@ -8055,6 +8140,10 @@ input[type]::placeholder{
|
|
|
8055
8140
|
text-decoration-line: line-through;
|
|
8056
8141
|
}
|
|
8057
8142
|
|
|
8143
|
+
.decoration-\[var\(--color-primary-600\)\]{
|
|
8144
|
+
text-decoration-color: var(--color-primary-600);
|
|
8145
|
+
}
|
|
8146
|
+
|
|
8058
8147
|
.decoration-2{
|
|
8059
8148
|
text-decoration-thickness: 2px;
|
|
8060
8149
|
}
|
|
@@ -12502,6 +12591,10 @@ input[type]::placeholder{
|
|
|
12502
12591
|
--tw-border-opacity: 0.95;
|
|
12503
12592
|
}
|
|
12504
12593
|
|
|
12594
|
+
.hover\:\!bg-transparent:hover{
|
|
12595
|
+
background-color: transparent !important;
|
|
12596
|
+
}
|
|
12597
|
+
|
|
12505
12598
|
.hover\:bg-\[var\(--color-primary-100\)\]:hover{
|
|
12506
12599
|
background-color: var(--color-primary-100);
|
|
12507
12600
|
}
|
|
@@ -20857,10 +20950,19 @@ input[type]::placeholder{
|
|
|
20857
20950
|
border-width: 0;
|
|
20858
20951
|
}
|
|
20859
20952
|
|
|
20953
|
+
.active\:\!bg-transparent:active{
|
|
20954
|
+
background-color: transparent !important;
|
|
20955
|
+
}
|
|
20956
|
+
|
|
20860
20957
|
.active\:bg-\[var\(--color-neutral-200\)\]:active{
|
|
20861
20958
|
background-color: var(--color-neutral-200);
|
|
20862
20959
|
}
|
|
20863
20960
|
|
|
20961
|
+
.active\:bg-primary-700:active{
|
|
20962
|
+
--tw-bg-opacity: 1;
|
|
20963
|
+
background-color: rgb(3 56 162 / var(--tw-bg-opacity, 1));
|
|
20964
|
+
}
|
|
20965
|
+
|
|
20864
20966
|
.active\:text-\[var\(--color-neutral-900\)\]:active{
|
|
20865
20967
|
color: var(--color-neutral-900);
|
|
20866
20968
|
}
|
|
@@ -20936,15 +21038,16 @@ input[type]::placeholder{
|
|
|
20936
21038
|
grid-column-start: 1;
|
|
20937
21039
|
}
|
|
20938
21040
|
|
|
20939
|
-
.xs\:col-start-3{
|
|
20940
|
-
grid-column-start: 3;
|
|
20941
|
-
}
|
|
20942
|
-
|
|
20943
21041
|
.xs\:my-16{
|
|
20944
21042
|
margin-top: 16px;
|
|
20945
21043
|
margin-bottom: 16px;
|
|
20946
21044
|
}
|
|
20947
21045
|
|
|
21046
|
+
.xs\:my-32{
|
|
21047
|
+
margin-top: 32px;
|
|
21048
|
+
margin-bottom: 32px;
|
|
21049
|
+
}
|
|
21050
|
+
|
|
20948
21051
|
.xs\:mb-16{
|
|
20949
21052
|
margin-bottom: 16px;
|
|
20950
21053
|
}
|
|
@@ -20957,6 +21060,18 @@ input[type]::placeholder{
|
|
|
20957
21060
|
margin-bottom: 64px;
|
|
20958
21061
|
}
|
|
20959
21062
|
|
|
21063
|
+
.xs\:ml-8{
|
|
21064
|
+
margin-left: 8px;
|
|
21065
|
+
}
|
|
21066
|
+
|
|
21067
|
+
.xs\:mt-16{
|
|
21068
|
+
margin-top: 16px;
|
|
21069
|
+
}
|
|
21070
|
+
|
|
21071
|
+
.xs\:mt-32{
|
|
21072
|
+
margin-top: 32px;
|
|
21073
|
+
}
|
|
21074
|
+
|
|
20960
21075
|
.xs\:mt-64{
|
|
20961
21076
|
margin-top: 64px;
|
|
20962
21077
|
}
|
|
@@ -20984,6 +21099,22 @@ input[type]::placeholder{
|
|
|
20984
21099
|
height: 16px;
|
|
20985
21100
|
}
|
|
20986
21101
|
|
|
21102
|
+
.xs\:h-24{
|
|
21103
|
+
height: 24px;
|
|
21104
|
+
}
|
|
21105
|
+
|
|
21106
|
+
.xs\:\!w-\[191px\]{
|
|
21107
|
+
width: 191px !important;
|
|
21108
|
+
}
|
|
21109
|
+
|
|
21110
|
+
.xs\:\!w-\[89px\]{
|
|
21111
|
+
width: 89px !important;
|
|
21112
|
+
}
|
|
21113
|
+
|
|
21114
|
+
.xs\:w-\[118px\]{
|
|
21115
|
+
width: 118px;
|
|
21116
|
+
}
|
|
21117
|
+
|
|
20987
21118
|
.xs\:w-\[calc\(100\%\+32px\)\]{
|
|
20988
21119
|
width: calc(100% + 32px);
|
|
20989
21120
|
}
|
|
@@ -21336,6 +21467,10 @@ input[type]::placeholder{
|
|
|
21336
21467
|
flex-direction: column;
|
|
21337
21468
|
}
|
|
21338
21469
|
|
|
21470
|
+
.xs\:items-start{
|
|
21471
|
+
align-items: flex-start;
|
|
21472
|
+
}
|
|
21473
|
+
|
|
21339
21474
|
.xs\:justify-start{
|
|
21340
21475
|
justify-content: flex-start;
|
|
21341
21476
|
}
|
|
@@ -26604,6 +26739,14 @@ input[type]::placeholder{
|
|
|
26604
26739
|
padding-left: 0px;
|
|
26605
26740
|
}
|
|
26606
26741
|
|
|
26742
|
+
.xs\:pl-32{
|
|
26743
|
+
padding-left: 32px;
|
|
26744
|
+
}
|
|
26745
|
+
|
|
26746
|
+
.xs\:pl-\[9px\]{
|
|
26747
|
+
padding-left: 9px;
|
|
26748
|
+
}
|
|
26749
|
+
|
|
26607
26750
|
.xs\:pt-32{
|
|
26608
26751
|
padding-top: 32px;
|
|
26609
26752
|
}
|
|
@@ -27470,6 +27613,14 @@ input[type]::placeholder{
|
|
|
27470
27613
|
grid-column-start: 7;
|
|
27471
27614
|
}
|
|
27472
27615
|
|
|
27616
|
+
.md\:col-end-5{
|
|
27617
|
+
grid-column-end: 5;
|
|
27618
|
+
}
|
|
27619
|
+
|
|
27620
|
+
.md\:col-end-8{
|
|
27621
|
+
grid-column-end: 8;
|
|
27622
|
+
}
|
|
27623
|
+
|
|
27473
27624
|
.md\:mx-auto{
|
|
27474
27625
|
margin-left: auto;
|
|
27475
27626
|
margin-right: auto;
|
|
@@ -27490,6 +27641,11 @@ input[type]::placeholder{
|
|
|
27490
27641
|
margin-bottom: 16px;
|
|
27491
27642
|
}
|
|
27492
27643
|
|
|
27644
|
+
.md\:my-64{
|
|
27645
|
+
margin-top: 64px;
|
|
27646
|
+
margin-bottom: 64px;
|
|
27647
|
+
}
|
|
27648
|
+
|
|
27493
27649
|
.md\:mb-0{
|
|
27494
27650
|
margin-bottom: 0px;
|
|
27495
27651
|
}
|
|
@@ -27498,6 +27654,10 @@ input[type]::placeholder{
|
|
|
27498
27654
|
margin-bottom: 32px;
|
|
27499
27655
|
}
|
|
27500
27656
|
|
|
27657
|
+
.md\:mb-64{
|
|
27658
|
+
margin-bottom: 64px;
|
|
27659
|
+
}
|
|
27660
|
+
|
|
27501
27661
|
.md\:mb-8{
|
|
27502
27662
|
margin-bottom: 8px;
|
|
27503
27663
|
}
|
|
@@ -27506,6 +27666,18 @@ input[type]::placeholder{
|
|
|
27506
27666
|
margin-bottom: 144px;
|
|
27507
27667
|
}
|
|
27508
27668
|
|
|
27669
|
+
.md\:ml-0{
|
|
27670
|
+
margin-left: 0px;
|
|
27671
|
+
}
|
|
27672
|
+
|
|
27673
|
+
.md\:mr-16{
|
|
27674
|
+
margin-right: 16px;
|
|
27675
|
+
}
|
|
27676
|
+
|
|
27677
|
+
.md\:mt-0{
|
|
27678
|
+
margin-top: 0px;
|
|
27679
|
+
}
|
|
27680
|
+
|
|
27509
27681
|
.md\:mt-128{
|
|
27510
27682
|
margin-top: 128px;
|
|
27511
27683
|
}
|
|
@@ -27514,10 +27686,18 @@ input[type]::placeholder{
|
|
|
27514
27686
|
margin-top: 32px;
|
|
27515
27687
|
}
|
|
27516
27688
|
|
|
27689
|
+
.md\:mt-64{
|
|
27690
|
+
margin-top: 64px;
|
|
27691
|
+
}
|
|
27692
|
+
|
|
27517
27693
|
.md\:mt-\[18px\]{
|
|
27518
27694
|
margin-top: 18px;
|
|
27519
27695
|
}
|
|
27520
27696
|
|
|
27697
|
+
.md\:mt-\[36px\]{
|
|
27698
|
+
margin-top: 36px;
|
|
27699
|
+
}
|
|
27700
|
+
|
|
27521
27701
|
.md\:line-clamp-1{
|
|
27522
27702
|
overflow: hidden;
|
|
27523
27703
|
display: -webkit-box;
|
|
@@ -27533,10 +27713,26 @@ input[type]::placeholder{
|
|
|
27533
27713
|
display: none;
|
|
27534
27714
|
}
|
|
27535
27715
|
|
|
27716
|
+
.md\:h-40{
|
|
27717
|
+
height: 40px;
|
|
27718
|
+
}
|
|
27719
|
+
|
|
27536
27720
|
.md\:h-\[calc\(100\%-2px\)\]{
|
|
27537
27721
|
height: calc(100% - 2px);
|
|
27538
27722
|
}
|
|
27539
27723
|
|
|
27724
|
+
.md\:\!w-\[148px\]{
|
|
27725
|
+
width: 148px !important;
|
|
27726
|
+
}
|
|
27727
|
+
|
|
27728
|
+
.md\:\!w-\[220px\]{
|
|
27729
|
+
width: 220px !important;
|
|
27730
|
+
}
|
|
27731
|
+
|
|
27732
|
+
.md\:w-\[137px\]{
|
|
27733
|
+
width: 137px;
|
|
27734
|
+
}
|
|
27735
|
+
|
|
27540
27736
|
.md\:w-\[calc\(\(\(var\(--footer-aux-vw\)-100\%\)\/2\)\+100\%\)\]{
|
|
27541
27737
|
width: calc(((var(--footer-aux-vw) - 100%) / 2) + 100%);
|
|
27542
27738
|
}
|
|
@@ -27905,6 +28101,10 @@ input[type]::placeholder{
|
|
|
27905
28101
|
align-content: center;
|
|
27906
28102
|
}
|
|
27907
28103
|
|
|
28104
|
+
.md\:items-center{
|
|
28105
|
+
align-items: center;
|
|
28106
|
+
}
|
|
28107
|
+
|
|
27908
28108
|
.md\:justify-end{
|
|
27909
28109
|
justify-content: flex-end;
|
|
27910
28110
|
}
|
|
@@ -27947,6 +28147,10 @@ input[type]::placeholder{
|
|
|
27947
28147
|
row-gap: 8px;
|
|
27948
28148
|
}
|
|
27949
28149
|
|
|
28150
|
+
.md\:self-center{
|
|
28151
|
+
align-self: center;
|
|
28152
|
+
}
|
|
28153
|
+
|
|
27950
28154
|
.md\:justify-self-start{
|
|
27951
28155
|
justify-self: start;
|
|
27952
28156
|
}
|
|
@@ -33997,6 +34201,10 @@ input[type]::placeholder{
|
|
|
33997
34201
|
grid-column: span 1 / span 1;
|
|
33998
34202
|
}
|
|
33999
34203
|
|
|
34204
|
+
.xl\:col-span-10{
|
|
34205
|
+
grid-column: span 10 / span 10;
|
|
34206
|
+
}
|
|
34207
|
+
|
|
34000
34208
|
.xl\:col-span-12{
|
|
34001
34209
|
grid-column: span 12 / span 12;
|
|
34002
34210
|
}
|
|
@@ -34073,6 +34281,14 @@ input[type]::placeholder{
|
|
|
34073
34281
|
grid-column-start: 7;
|
|
34074
34282
|
}
|
|
34075
34283
|
|
|
34284
|
+
.xl\:col-start-8{
|
|
34285
|
+
grid-column-start: 8;
|
|
34286
|
+
}
|
|
34287
|
+
|
|
34288
|
+
.xl\:col-start-9{
|
|
34289
|
+
grid-column-start: 9;
|
|
34290
|
+
}
|
|
34291
|
+
|
|
34076
34292
|
.xl\:col-end-9{
|
|
34077
34293
|
grid-column-end: 9;
|
|
34078
34294
|
}
|
|
@@ -34149,6 +34365,10 @@ input[type]::placeholder{
|
|
|
34149
34365
|
width: 1120px;
|
|
34150
34366
|
}
|
|
34151
34367
|
|
|
34368
|
+
.xl\:w-\[175px\]{
|
|
34369
|
+
width: 175px;
|
|
34370
|
+
}
|
|
34371
|
+
|
|
34152
34372
|
.xl\:w-\[696px\]{
|
|
34153
34373
|
width: 696px;
|
|
34154
34374
|
}
|
|
@@ -32,6 +32,10 @@ export interface ButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement
|
|
|
32
32
|
* Defines if the group allows multiple selection.
|
|
33
33
|
*/
|
|
34
34
|
multiple?: BooleanProp;
|
|
35
|
+
/**
|
|
36
|
+
* Determines if buttons can be unselected.
|
|
37
|
+
*/
|
|
38
|
+
allowUnselect?: BooleanProp;
|
|
35
39
|
/**
|
|
36
40
|
* Defines vertical or horizontal orientation.
|
|
37
41
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BrandProps } from '../../../../../../components/header/brand/brand';
|
|
2
|
-
import { AuthenticatedProps } from '../../../../../../components/header/general-bar/authenticated/authenticated';
|
|
3
|
-
import { AuthenticatedBodyLinkProps } from '../../../../../../components/header/general-bar/authenticated/authenticated-body-link';
|
|
4
1
|
import { AuthenticatedFooterActionProps } from '../../../../../../components/header/general-bar/authenticated/authenticated-footer-action';
|
|
5
2
|
import { AuthenticatedHeaderProps } from '../../../../../../components/header/general-bar/authenticated/authenticated-header';
|
|
6
3
|
import { GeneralBarProps } from '../../../../../../components/header/general-bar/general-bar';
|
|
4
|
+
import { BrandProps } from '../../../../../../components/header/brand/brand';
|
|
5
|
+
import { AuthenticatedProps } from '../../../../../../components/header/general-bar/authenticated/authenticated';
|
|
6
|
+
import { AuthenticatedBodyLinkProps } from '../../../../../../components/header/general-bar/authenticated/authenticated-body-link';
|
|
7
7
|
import { ReactElement } from 'react';
|
|
8
8
|
export declare const getParsedAuthenticatedProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => AuthenticatedProps | null;
|
|
9
9
|
export declare const getParsedAuthenticatedHeaderProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => AuthenticatedHeaderProps | null;
|
|
@@ -29,6 +29,7 @@ export * from './input-search-bar';
|
|
|
29
29
|
export * from './input-select';
|
|
30
30
|
export * from './input-text';
|
|
31
31
|
export * from './input-textarea';
|
|
32
|
+
export * from './input-time';
|
|
32
33
|
export * from './link-wrapper';
|
|
33
34
|
export * from './list';
|
|
34
35
|
export * from './loader-dialog';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { Dispatch, FC, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
import { TimePeriod } from '../../../models';
|
|
3
|
+
export interface Labels {
|
|
4
|
+
cancelLabel: string;
|
|
5
|
+
cancelAriaLabel?: string;
|
|
6
|
+
okLabel: string;
|
|
7
|
+
okAriaLabel?: string;
|
|
8
|
+
timepickerMessageLabel?: string;
|
|
9
|
+
timepickerMessageAriaLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
interface TimePickerStateContextInitialValuesType {
|
|
12
|
+
selectedTime: string;
|
|
13
|
+
cancel: (selectedTime: string) => void;
|
|
14
|
+
labels: Labels;
|
|
15
|
+
}
|
|
16
|
+
interface TimePickerStateContextType extends TimePickerStateContextInitialValuesType {
|
|
17
|
+
selectedHour: string;
|
|
18
|
+
setSelectedHour: Dispatch<SetStateAction<string>>;
|
|
19
|
+
selectedMinute: string;
|
|
20
|
+
setSelectedMinute: Dispatch<SetStateAction<string>>;
|
|
21
|
+
selectedPeriod: TimePeriod;
|
|
22
|
+
setSelectedPeriod: Dispatch<SetStateAction<TimePeriod>>;
|
|
23
|
+
setSelectedTime: Dispatch<SetStateAction<string>>;
|
|
24
|
+
}
|
|
25
|
+
export declare const TimeInputContext: React.Context<TimePickerStateContextType | undefined>;
|
|
26
|
+
export interface TimePickerStateProviderProps {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
initialValues: TimePickerStateContextInitialValuesType;
|
|
29
|
+
}
|
|
30
|
+
export declare const TimeInputContextProvider: FC<TimePickerStateProviderProps>;
|
|
31
|
+
export declare const useTimeInputContext: () => TimePickerStateContextType;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import './input-time.scss';
|
|
3
|
+
import { BooleanProp, FeedbackState } from '../../models';
|
|
4
|
+
export interface InputTimeProps extends ComponentPropsWithRef<'input'> {
|
|
5
|
+
/**
|
|
6
|
+
* Input label text.
|
|
7
|
+
*/
|
|
8
|
+
label?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Show or hide input label.
|
|
11
|
+
*/
|
|
12
|
+
hideLabel?: BooleanProp;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the input in a error state. This also affects the feedback state.
|
|
15
|
+
*/
|
|
16
|
+
hasError?: BooleanProp;
|
|
17
|
+
/**
|
|
18
|
+
* Show or hide the feedback status text.
|
|
19
|
+
*/
|
|
20
|
+
hasFeedback?: BooleanProp;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the state of the feedback text. This param will change the feedback icon and dye it.
|
|
23
|
+
*/
|
|
24
|
+
feedbackState?: FeedbackState;
|
|
25
|
+
/**
|
|
26
|
+
* Feedback text displayed below input.
|
|
27
|
+
*/
|
|
28
|
+
feedbackText?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Show or hide the leading icon.
|
|
31
|
+
*/
|
|
32
|
+
hasIcon?: BooleanProp;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the icon leading icon to be displayed.
|
|
35
|
+
*/
|
|
36
|
+
icon?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The placeholder to apply in the input minute part
|
|
39
|
+
*/
|
|
40
|
+
minuteInputPlaceholder?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The placeholder to apply in the input hour part
|
|
43
|
+
*/
|
|
44
|
+
hourInputPlaceholder?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Accessible text to apply to the trailing clock icon.
|
|
47
|
+
*/
|
|
48
|
+
clockIconAriaLabel: string;
|
|
49
|
+
/**
|
|
50
|
+
* Label for the timepicker cancel button.
|
|
51
|
+
*/
|
|
52
|
+
cancelLabel: string;
|
|
53
|
+
/**
|
|
54
|
+
* Accessible text for the timepicker cancel button.
|
|
55
|
+
*/
|
|
56
|
+
cancelAriaLabel?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Label for the timepicker ok button.
|
|
59
|
+
*/
|
|
60
|
+
okLabel: string;
|
|
61
|
+
/**
|
|
62
|
+
* Accessible text for the timepicker ok button.
|
|
63
|
+
*/
|
|
64
|
+
okAriaLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Show or hide the timepicker footer message.
|
|
67
|
+
*/
|
|
68
|
+
hasTimepickerMessage?: BooleanProp;
|
|
69
|
+
/**
|
|
70
|
+
* Label for the timepicker footer message.
|
|
71
|
+
*/
|
|
72
|
+
timepickerMessageLabel?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Accessible text for the timepicker footer message.
|
|
75
|
+
*/
|
|
76
|
+
timepickerMessageAriaLabel?: string;
|
|
77
|
+
}
|
|
78
|
+
export declare const InputTime: React.ForwardRefExoticComponent<Omit<InputTimeProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Labels } from './contexts/time-input-state.context';
|
|
3
|
+
import { BooleanProp } from '../../models';
|
|
4
|
+
export interface TimePickerDropdownProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
setInputTextValue: (selectedTime: string) => void;
|
|
7
|
+
onChange: (selectedTime: string) => void;
|
|
8
|
+
onCancel: (selectedTime: string) => void;
|
|
9
|
+
hasTimepickerMessage?: BooleanProp;
|
|
10
|
+
textCurrentValue: string;
|
|
11
|
+
labels: Labels;
|
|
12
|
+
}
|
|
13
|
+
export declare const TimePickerDropdown: FC<TimePickerDropdownProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef, ForwardRefRenderFunction } from 'react';
|
|
2
|
+
import './time-text.scss';
|
|
3
|
+
export interface TimeTextProps extends ComponentPropsWithRef<'input'> {
|
|
4
|
+
hourInputPlaceholder?: string;
|
|
5
|
+
minuteInputPlaceholder?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const InnerComponent: ForwardRefRenderFunction<HTMLInputElement, TimeTextProps>;
|
|
8
|
+
export declare const TimeText: React.ForwardRefExoticComponent<Omit<TimeTextProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TimePeriod } from '../../../models';
|
|
2
|
+
export declare const FULL_TIME_TEXT_REGEX: RegExp;
|
|
3
|
+
export declare const MIN_HOUR = 1;
|
|
4
|
+
export declare const MAX_HOUR = 12;
|
|
5
|
+
export declare const MIN_MINUTE = 0;
|
|
6
|
+
export declare const MAX_MINUTE = 59;
|
|
7
|
+
export declare const timePeriod: {
|
|
8
|
+
am: string;
|
|
9
|
+
pm: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const startTime: {
|
|
12
|
+
hour: string;
|
|
13
|
+
minute: string;
|
|
14
|
+
period: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const formatHour: (hour: number | string) => string;
|
|
17
|
+
export declare const formatMinute: (minute: number | string) => string;
|
|
18
|
+
export declare const formatFullTime: (selectedHour: number | string, selectedMinute: number | string, selectedPeriod: TimePeriod) => string;
|
|
19
|
+
export declare const parseFullTime: (fullTimeText: string) => {
|
|
20
|
+
selectedHour: string;
|
|
21
|
+
selectedMinute: string;
|
|
22
|
+
selectedPeriod: TimePeriod;
|
|
23
|
+
};
|
|
24
|
+
export declare const isTimeTextValid: (timeText: string | number | undefined) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TimePeriod = 'am' | 'pm';
|