@ama-pt/agora-design-system 3.5.0 → 3.5.2
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/agora-line-CAGTnTRu.mjs +15 -0
- package/artifacts/dist/agora-line-CAGTnTRu.mjs.map +1 -0
- package/artifacts/dist/index.mjs +4008 -3945
- 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/line-copy-BaJKTDcY.mjs +16 -0
- package/artifacts/dist/line-copy-BaJKTDcY.mjs.map +1 -0
- package/artifacts/dist/solid-copy-DQaYbvus.mjs +9 -0
- package/artifacts/dist/solid-copy-DQaYbvus.mjs.map +1 -0
- package/artifacts/dist/style.css +1 -1
- package/artifacts/dist/tailwind.css +75 -83
- package/artifacts/dist/types/components/avatar/avatar.d.ts +25 -0
- package/artifacts/dist/types/components/avatar/index.d.ts +1 -1
- package/artifacts/dist/types/components/cards/index.d.ts +1 -0
- package/artifacts/dist/types/components/{status-card → cards/status-card}/status-card.d.ts +18 -5
- package/artifacts/dist/types/components/checkbox-group/checkbox-group.d.ts +12 -0
- package/artifacts/dist/types/components/drawer/drawer.d.ts +4 -0
- package/artifacts/dist/types/components/icon/assets/line/line-copy.d.ts +4 -0
- package/artifacts/dist/types/components/icon/assets/solid/solid-copy.d.ts +4 -0
- package/artifacts/dist/types/components/index.d.ts +0 -1
- package/artifacts/dist/types/components/input-search-bar/input-search-bar.d.ts +9 -0
- package/artifacts/dist/types/components/input-time/input-time.d.ts +2 -2
- package/artifacts/dist/types/components/input-time/utils/format-time.d.ts +2 -3
- package/artifacts/dist/types/components/panel-switcher/desktop/panel-switcher-desktop.d.ts +2 -1
- package/artifacts/dist/types/components/panel-switcher/helper.d.ts +36 -0
- package/artifacts/dist/types/components/panel-switcher/index.d.ts +1 -1
- package/artifacts/dist/types/components/panel-switcher/mobile/panel-switcher-mobile.d.ts +2 -1
- package/artifacts/dist/types/components/panel-switcher/panel-switcher-container.d.ts +5 -1
- package/artifacts/dist/types/components/panel-switcher/panel-switcher.d.ts +2 -23
- package/package.json +1 -1
- package/artifacts/dist/agora-line-NPWOQuk9.mjs +0 -15
- package/artifacts/dist/agora-line-NPWOQuk9.mjs.map +0 -1
- /package/artifacts/dist/types/components/{status-card → cards/status-card}/index.d.ts +0 -0
|
@@ -988,8 +988,8 @@ input[type]::placeholder{
|
|
|
988
988
|
margin-bottom: 8px;
|
|
989
989
|
}
|
|
990
990
|
|
|
991
|
-
|
|
992
|
-
margin-
|
|
991
|
+
.\!mt-\[0px\]{
|
|
992
|
+
margin-top: 0px !important;
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
.mb-128{
|
|
@@ -1028,6 +1028,10 @@ input[type]::placeholder{
|
|
|
1028
1028
|
margin-left: 8px;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
+
.ml-\[45px\]{
|
|
1032
|
+
margin-left: 45px;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1031
1035
|
.ml-auto{
|
|
1032
1036
|
margin-left: auto;
|
|
1033
1037
|
}
|
|
@@ -1203,6 +1207,18 @@ input[type]::placeholder{
|
|
|
1203
1207
|
height: 126px;
|
|
1204
1208
|
}
|
|
1205
1209
|
|
|
1210
|
+
.h-\[16px\]{
|
|
1211
|
+
height: 16px;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.h-\[24px\]{
|
|
1215
|
+
height: 24px;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.h-\[32px\]{
|
|
1219
|
+
height: 32px;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1206
1222
|
.h-\[350px\]{
|
|
1207
1223
|
height: 350px;
|
|
1208
1224
|
}
|
|
@@ -1239,10 +1255,6 @@ input[type]::placeholder{
|
|
|
1239
1255
|
height: calc(100% - 128px);
|
|
1240
1256
|
}
|
|
1241
1257
|
|
|
1242
|
-
.h-dvh{
|
|
1243
|
-
height: 100dvh;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
1258
|
.h-fit{
|
|
1247
1259
|
height: -moz-fit-content;
|
|
1248
1260
|
height: fit-content;
|
|
@@ -1313,16 +1325,12 @@ input[type]::placeholder{
|
|
|
1313
1325
|
width: 50%;
|
|
1314
1326
|
}
|
|
1315
1327
|
|
|
1316
|
-
.w-24{
|
|
1317
|
-
width: 24px;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
1328
|
.w-32{
|
|
1321
1329
|
width: 32px;
|
|
1322
1330
|
}
|
|
1323
1331
|
|
|
1324
|
-
.w
|
|
1325
|
-
width:
|
|
1332
|
+
.w-\[131px\]{
|
|
1333
|
+
width: 131px;
|
|
1326
1334
|
}
|
|
1327
1335
|
|
|
1328
1336
|
.w-\[190px\]{
|
|
@@ -1341,12 +1349,8 @@ input[type]::placeholder{
|
|
|
1341
1349
|
width: 496px;
|
|
1342
1350
|
}
|
|
1343
1351
|
|
|
1344
|
-
.w-\[
|
|
1345
|
-
width:
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
.w-\[65px\]{
|
|
1349
|
-
width: 65px;
|
|
1352
|
+
.w-\[82px\]{
|
|
1353
|
+
width: 82px;
|
|
1350
1354
|
}
|
|
1351
1355
|
|
|
1352
1356
|
.w-\[calc\(100\%\+32px\)\]{
|
|
@@ -1795,6 +1799,12 @@ input[type]::placeholder{
|
|
|
1795
1799
|
list-style-type: none;
|
|
1796
1800
|
}
|
|
1797
1801
|
|
|
1802
|
+
.appearance-none{
|
|
1803
|
+
-webkit-appearance: none;
|
|
1804
|
+
-moz-appearance: none;
|
|
1805
|
+
appearance: none;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1798
1808
|
.grid-flow-row{
|
|
1799
1809
|
grid-auto-flow: row;
|
|
1800
1810
|
}
|
|
@@ -1921,11 +1931,6 @@ input[type]::placeholder{
|
|
|
1921
1931
|
column-gap: 32px;
|
|
1922
1932
|
}
|
|
1923
1933
|
|
|
1924
|
-
.gap-x-8{
|
|
1925
|
-
-moz-column-gap: 8px;
|
|
1926
|
-
column-gap: 8px;
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
1934
|
.gap-y-16{
|
|
1930
1935
|
row-gap: 16px;
|
|
1931
1936
|
}
|
|
@@ -2333,6 +2338,10 @@ input[type]::placeholder{
|
|
|
2333
2338
|
border-color: var(--color-neutral-600);
|
|
2334
2339
|
}
|
|
2335
2340
|
|
|
2341
|
+
.border-\[var\(--color-neutral-700\)\]{
|
|
2342
|
+
border-color: var(--color-neutral-700);
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2336
2345
|
.border-\[var\(--color-primary-400\)\]{
|
|
2337
2346
|
border-color: var(--color-primary-400);
|
|
2338
2347
|
}
|
|
@@ -6104,6 +6113,10 @@ input[type]::placeholder{
|
|
|
6104
6113
|
--tw-border-opacity: 0.95;
|
|
6105
6114
|
}
|
|
6106
6115
|
|
|
6116
|
+
.\!bg-\[var\(--color-neutral-100\)\]{
|
|
6117
|
+
background-color: var(--color-neutral-100) !important;
|
|
6118
|
+
}
|
|
6119
|
+
|
|
6107
6120
|
.\!bg-transparent{
|
|
6108
6121
|
background-color: transparent !important;
|
|
6109
6122
|
}
|
|
@@ -6209,6 +6222,10 @@ input[type]::placeholder{
|
|
|
6209
6222
|
background-color: var(--color-warning-800);
|
|
6210
6223
|
}
|
|
6211
6224
|
|
|
6225
|
+
.bg-\[var\(--color-white\)\]{
|
|
6226
|
+
background-color: var(--color-white);
|
|
6227
|
+
}
|
|
6228
|
+
|
|
6212
6229
|
.bg-backdrop{
|
|
6213
6230
|
background-color: rgba(43, 54, 60, 0.96);
|
|
6214
6231
|
}
|
|
@@ -7613,6 +7630,11 @@ input[type]::placeholder{
|
|
|
7613
7630
|
padding-right: 8px;
|
|
7614
7631
|
}
|
|
7615
7632
|
|
|
7633
|
+
.py-0{
|
|
7634
|
+
padding-top: 0px;
|
|
7635
|
+
padding-bottom: 0px;
|
|
7636
|
+
}
|
|
7637
|
+
|
|
7616
7638
|
.py-16{
|
|
7617
7639
|
padding-top: 16px;
|
|
7618
7640
|
padding-bottom: 16px;
|
|
@@ -7945,6 +7967,10 @@ input[type]::placeholder{
|
|
|
7945
7967
|
font-weight: 700;
|
|
7946
7968
|
}
|
|
7947
7969
|
|
|
7970
|
+
.font-medium{
|
|
7971
|
+
font-weight: 500;
|
|
7972
|
+
}
|
|
7973
|
+
|
|
7948
7974
|
.uppercase{
|
|
7949
7975
|
text-transform: uppercase;
|
|
7950
7976
|
}
|
|
@@ -8487,10 +8513,6 @@ input[type]::placeholder{
|
|
|
8487
8513
|
text-decoration-line: line-through;
|
|
8488
8514
|
}
|
|
8489
8515
|
|
|
8490
|
-
.decoration-\[var\(--color-primary-600\)\]{
|
|
8491
|
-
text-decoration-color: var(--color-primary-600);
|
|
8492
|
-
}
|
|
8493
|
-
|
|
8494
8516
|
.decoration-2{
|
|
8495
8517
|
text-decoration-thickness: 2px;
|
|
8496
8518
|
}
|
|
@@ -8597,6 +8619,12 @@ input[type]::placeholder{
|
|
|
8597
8619
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
8598
8620
|
}
|
|
8599
8621
|
|
|
8622
|
+
.shadow-bottom-higher{
|
|
8623
|
+
--tw-shadow: 0px 16px 16px 0px rgba(0, 0, 0, 0.32);
|
|
8624
|
+
--tw-shadow-colored: 0px 16px 16px 0px var(--tw-shadow-color);
|
|
8625
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
8626
|
+
}
|
|
8627
|
+
|
|
8600
8628
|
.shadow-bottom-low{
|
|
8601
8629
|
--tw-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.08);
|
|
8602
8630
|
--tw-shadow-colored: 0px 8px 8px 0px var(--tw-shadow-color);
|
|
@@ -21705,12 +21733,8 @@ input[type]::placeholder{
|
|
|
21705
21733
|
margin-bottom: 64px;
|
|
21706
21734
|
}
|
|
21707
21735
|
|
|
21708
|
-
.xs\:
|
|
21709
|
-
margin-
|
|
21710
|
-
}
|
|
21711
|
-
|
|
21712
|
-
.xs\:mt-16{
|
|
21713
|
-
margin-top: 16px;
|
|
21736
|
+
.xs\:mb-8{
|
|
21737
|
+
margin-bottom: 8px;
|
|
21714
21738
|
}
|
|
21715
21739
|
|
|
21716
21740
|
.xs\:mt-32{
|
|
@@ -21748,10 +21772,6 @@ input[type]::placeholder{
|
|
|
21748
21772
|
height: 16px;
|
|
21749
21773
|
}
|
|
21750
21774
|
|
|
21751
|
-
.xs\:h-24{
|
|
21752
|
-
height: 24px;
|
|
21753
|
-
}
|
|
21754
|
-
|
|
21755
21775
|
.xs\:\!w-\[191px\]{
|
|
21756
21776
|
width: 191px !important;
|
|
21757
21777
|
}
|
|
@@ -21760,10 +21780,6 @@ input[type]::placeholder{
|
|
|
21760
21780
|
width: 89px !important;
|
|
21761
21781
|
}
|
|
21762
21782
|
|
|
21763
|
-
.xs\:w-\[118px\]{
|
|
21764
|
-
width: 118px;
|
|
21765
|
-
}
|
|
21766
|
-
|
|
21767
21783
|
.xs\:w-\[calc\(100\%\+32px\)\]{
|
|
21768
21784
|
width: calc(100% + 32px);
|
|
21769
21785
|
}
|
|
@@ -22124,10 +22140,6 @@ input[type]::placeholder{
|
|
|
22124
22140
|
align-items: flex-start;
|
|
22125
22141
|
}
|
|
22126
22142
|
|
|
22127
|
-
.xs\:justify-start{
|
|
22128
|
-
justify-content: flex-start;
|
|
22129
|
-
}
|
|
22130
|
-
|
|
22131
22143
|
.xs\:justify-between{
|
|
22132
22144
|
justify-content: space-between;
|
|
22133
22145
|
}
|
|
@@ -27500,6 +27512,10 @@ input[type]::placeholder{
|
|
|
27500
27512
|
stroke-width: 2;
|
|
27501
27513
|
}
|
|
27502
27514
|
|
|
27515
|
+
.xs\:p-0{
|
|
27516
|
+
padding: 0px;
|
|
27517
|
+
}
|
|
27518
|
+
|
|
27503
27519
|
.xs\:p-32{
|
|
27504
27520
|
padding: 32px;
|
|
27505
27521
|
}
|
|
@@ -27536,14 +27552,6 @@ input[type]::placeholder{
|
|
|
27536
27552
|
padding-left: 0px;
|
|
27537
27553
|
}
|
|
27538
27554
|
|
|
27539
|
-
.xs\:pl-32{
|
|
27540
|
-
padding-left: 32px;
|
|
27541
|
-
}
|
|
27542
|
-
|
|
27543
|
-
.xs\:pl-\[9px\]{
|
|
27544
|
-
padding-left: 9px;
|
|
27545
|
-
}
|
|
27546
|
-
|
|
27547
27555
|
.xs\:pt-32{
|
|
27548
27556
|
padding-top: 32px;
|
|
27549
27557
|
}
|
|
@@ -28432,8 +28440,8 @@ input[type]::placeholder{
|
|
|
28432
28440
|
grid-column-end: 5;
|
|
28433
28441
|
}
|
|
28434
28442
|
|
|
28435
|
-
.md\:
|
|
28436
|
-
|
|
28443
|
+
.md\:m-64{
|
|
28444
|
+
margin: 64px;
|
|
28437
28445
|
}
|
|
28438
28446
|
|
|
28439
28447
|
.md\:mx-64{
|
|
@@ -28476,14 +28484,14 @@ input[type]::placeholder{
|
|
|
28476
28484
|
margin-bottom: 144px;
|
|
28477
28485
|
}
|
|
28478
28486
|
|
|
28479
|
-
.md\:ml-0{
|
|
28480
|
-
margin-left: 0px;
|
|
28481
|
-
}
|
|
28482
|
-
|
|
28483
28487
|
.md\:mr-16{
|
|
28484
28488
|
margin-right: 16px;
|
|
28485
28489
|
}
|
|
28486
28490
|
|
|
28491
|
+
.md\:mr-32{
|
|
28492
|
+
margin-right: 32px;
|
|
28493
|
+
}
|
|
28494
|
+
|
|
28487
28495
|
.md\:mt-0{
|
|
28488
28496
|
margin-top: 0px;
|
|
28489
28497
|
}
|
|
@@ -28527,10 +28535,6 @@ input[type]::placeholder{
|
|
|
28527
28535
|
display: none;
|
|
28528
28536
|
}
|
|
28529
28537
|
|
|
28530
|
-
.md\:h-40{
|
|
28531
|
-
height: 40px;
|
|
28532
|
-
}
|
|
28533
|
-
|
|
28534
28538
|
.md\:h-\[calc\(100\%-2px\)\]{
|
|
28535
28539
|
height: calc(100% - 2px);
|
|
28536
28540
|
}
|
|
@@ -28543,10 +28547,6 @@ input[type]::placeholder{
|
|
|
28543
28547
|
width: 220px !important;
|
|
28544
28548
|
}
|
|
28545
28549
|
|
|
28546
|
-
.md\:w-\[137px\]{
|
|
28547
|
-
width: 137px;
|
|
28548
|
-
}
|
|
28549
|
-
|
|
28550
28550
|
.md\:w-\[50\%\]{
|
|
28551
28551
|
width: 50%;
|
|
28552
28552
|
}
|
|
@@ -35281,10 +35281,6 @@ input[type]::placeholder{
|
|
|
35281
35281
|
grid-column-start: 8;
|
|
35282
35282
|
}
|
|
35283
35283
|
|
|
35284
|
-
.xl\:col-start-9{
|
|
35285
|
-
grid-column-start: 9;
|
|
35286
|
-
}
|
|
35287
|
-
|
|
35288
35284
|
.xl\:col-end-9{
|
|
35289
35285
|
grid-column-end: 9;
|
|
35290
35286
|
}
|
|
@@ -35297,6 +35293,10 @@ input[type]::placeholder{
|
|
|
35297
35293
|
grid-row: span 2 / span 2;
|
|
35298
35294
|
}
|
|
35299
35295
|
|
|
35296
|
+
.xl\:m-112{
|
|
35297
|
+
margin: 112px;
|
|
35298
|
+
}
|
|
35299
|
+
|
|
35300
35300
|
.xl\:my-32{
|
|
35301
35301
|
margin-top: 32px;
|
|
35302
35302
|
margin-bottom: 32px;
|
|
@@ -35394,10 +35394,6 @@ input[type]::placeholder{
|
|
|
35394
35394
|
width: 1120px;
|
|
35395
35395
|
}
|
|
35396
35396
|
|
|
35397
|
-
.xl\:w-\[175px\]{
|
|
35398
|
-
width: 175px;
|
|
35399
|
-
}
|
|
35400
|
-
|
|
35401
35397
|
.xl\:w-\[40\%\]{
|
|
35402
35398
|
width: 40%;
|
|
35403
35399
|
}
|
|
@@ -35410,10 +35406,6 @@ input[type]::placeholder{
|
|
|
35410
35406
|
width: 696px;
|
|
35411
35407
|
}
|
|
35412
35408
|
|
|
35413
|
-
.xl\:w-\[800px\]{
|
|
35414
|
-
width: 800px;
|
|
35415
|
-
}
|
|
35416
|
-
|
|
35417
35409
|
.xl\:\!min-w-min{
|
|
35418
35410
|
min-width: -moz-min-content !important;
|
|
35419
35411
|
min-width: min-content !important;
|
|
@@ -35807,10 +35799,6 @@ input[type]::placeholder{
|
|
|
35807
35799
|
align-items: center;
|
|
35808
35800
|
}
|
|
35809
35801
|
|
|
35810
|
-
.xl\:justify-start{
|
|
35811
|
-
justify-content: flex-start;
|
|
35812
|
-
}
|
|
35813
|
-
|
|
35814
35802
|
.xl\:justify-end{
|
|
35815
35803
|
justify-content: flex-end;
|
|
35816
35804
|
}
|
|
@@ -42069,3 +42057,7 @@ input[type]::placeholder{
|
|
|
42069
42057
|
.\[\&\>fieldset\]\:flex-wrap>fieldset{
|
|
42070
42058
|
flex-wrap: wrap;
|
|
42071
42059
|
}
|
|
42060
|
+
|
|
42061
|
+
.\[\&_\.switch-label\]\:border .switch-label{
|
|
42062
|
+
border-width: 1px;
|
|
42063
|
+
}
|
|
@@ -11,6 +11,18 @@ export type AvatarType = 'image' | 'icon' | 'initials' | 'empty';
|
|
|
11
11
|
* The available badge positions. Each of them defines the location of the badge on the avatar.
|
|
12
12
|
*/
|
|
13
13
|
export type AvatarBadgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
14
|
+
/**
|
|
15
|
+
* The available badge variants. Each of them defines the color of the badge.
|
|
16
|
+
*/
|
|
17
|
+
export type AvatarBadgeVariant = 'primary' | 'secondary' | 'neutral' | 'informative' | 'success' | 'warning' | 'danger';
|
|
18
|
+
/**
|
|
19
|
+
* The available badge appearances. Defines solid or outline style.
|
|
20
|
+
*/
|
|
21
|
+
export type AvatarBadgeAppearance = 'solid' | 'outline';
|
|
22
|
+
/**
|
|
23
|
+
* The available badge sizes. Defines badge size.
|
|
24
|
+
*/
|
|
25
|
+
export type AvatarBadgeSize = 'default' | 'large';
|
|
14
26
|
export interface AvatarProps extends ComponentProps<'div'> {
|
|
15
27
|
/**
|
|
16
28
|
* Defines the appearance of the avatar.
|
|
@@ -45,10 +57,23 @@ export interface AvatarProps extends ComponentProps<'div'> {
|
|
|
45
57
|
* Defines the position of the avatar tooltip.
|
|
46
58
|
*/
|
|
47
59
|
tooltipPosition?: TooltipPosition;
|
|
60
|
+
/**
|
|
61
|
+
* Defines the avatar badge variant. This variant will define the color of the badge.
|
|
62
|
+
*/
|
|
63
|
+
badgeVariant?: AvatarBadgeVariant;
|
|
64
|
+
/**
|
|
48
65
|
/**
|
|
49
66
|
* The defines the align the avatar tooltip alignment.
|
|
50
67
|
*/
|
|
51
68
|
tooltipAlignment?: TooltipAlignment;
|
|
69
|
+
/**
|
|
70
|
+
* Defines the avatar badge appearance.
|
|
71
|
+
*/
|
|
72
|
+
badgeAppearance?: AvatarBadgeAppearance;
|
|
73
|
+
/**
|
|
74
|
+
* Defines the avatar badge size.
|
|
75
|
+
*/
|
|
76
|
+
badgeSize?: AvatarBadgeSize;
|
|
52
77
|
/**
|
|
53
78
|
* Makes the avatar interactive. An interactive avatar can be focused by clicking on it, or pressing Space, Enter or NumpadEnter.
|
|
54
79
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Avatar } from './avatar';
|
|
2
|
-
export type { AvatarBadgePosition, AvatarProps, AvatarType } from './avatar';
|
|
2
|
+
export type { AvatarBadgeAppearance, AvatarBadgePosition, AvatarBadgeSize, AvatarBadgeVariant, AvatarProps, AvatarType } from './avatar';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
2
|
import './status-card.css';
|
|
3
|
-
import { BooleanProp } from '
|
|
3
|
+
import { BooleanProp } from '../../../models';
|
|
4
|
+
import { AnchorProps } from '../../../components/anchor/anchor';
|
|
4
5
|
export type StatusCardType = 'informative' | 'success' | 'warning' | 'danger' | 'outline-informative' | 'outline-success' | 'outline-warning' | 'outline-danger';
|
|
5
|
-
export interface StatusCardProps extends ComponentProps<'div'> {
|
|
6
|
+
export interface StatusCardProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
6
7
|
/**
|
|
7
8
|
* Defines what style to apply.
|
|
8
9
|
*/
|
|
@@ -22,10 +23,22 @@ export interface StatusCardProps extends ComponentProps<'div'> {
|
|
|
22
23
|
/**
|
|
23
24
|
* Status card title content
|
|
24
25
|
*/
|
|
25
|
-
title?:
|
|
26
|
+
title?: ReactNode;
|
|
26
27
|
/**
|
|
27
28
|
* Status card description content
|
|
28
29
|
*/
|
|
29
|
-
description?:
|
|
30
|
+
description?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* The flag to set whether the status card is interactive.
|
|
33
|
+
*/
|
|
34
|
+
blockedLink?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* anchor props
|
|
37
|
+
*/
|
|
38
|
+
anchor?: AnchorProps;
|
|
39
|
+
/**
|
|
40
|
+
* If true, the anchor will be positioned on the right side of the status card.
|
|
41
|
+
*/
|
|
42
|
+
anchorOnRightSide?: boolean;
|
|
30
43
|
}
|
|
31
44
|
export declare const StatusCard: FC<StatusCardProps>;
|
|
@@ -30,6 +30,18 @@ export interface CheckboxGroupProps extends Omit<HtmlHTMLAttributes<HTMLFieldSet
|
|
|
30
30
|
* Event triggered whenever any of the checkboxes changes is own state.
|
|
31
31
|
*/
|
|
32
32
|
onChange?: (evt: ChangeEvent<HTMLInputElement>) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Show or hide the helper text.
|
|
35
|
+
*/
|
|
36
|
+
hasHelperText?: BooleanProp;
|
|
37
|
+
/**
|
|
38
|
+
* Helper text displayed below checkbox.
|
|
39
|
+
*/
|
|
40
|
+
helperText?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* The flag to set if the checkbox is in dark mode or light mode.
|
|
43
|
+
*/
|
|
44
|
+
darkMode?: BooleanProp;
|
|
33
45
|
}
|
|
34
46
|
declare const CheckboxGroup: FC<CheckboxGroupProps>;
|
|
35
47
|
export { CheckboxGroup };
|
|
@@ -49,6 +49,10 @@ export interface DrawerProps extends ComponentProps<'div'> {
|
|
|
49
49
|
* Callback to be called when the drawer is closed.
|
|
50
50
|
*/
|
|
51
51
|
onHide?: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* The flag to set Dark mode.
|
|
54
|
+
*/
|
|
55
|
+
darkMode?: BooleanProp;
|
|
52
56
|
}
|
|
53
57
|
/**
|
|
54
58
|
* Return icon default animation class drawer icon name and default position.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BooleanProp } from '../../models';
|
|
2
2
|
import { ComponentProps, FC, Ref } from 'react';
|
|
3
3
|
import './input-search-bar.css';
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
4
5
|
export interface InputSearchBarElement extends HTMLInputElement {
|
|
5
6
|
/**
|
|
6
7
|
* React ref object to the search action button.
|
|
@@ -60,6 +61,14 @@ export interface InputSearchBarProps extends ComponentProps<'input'> {
|
|
|
60
61
|
* React ref object to the input search bar.
|
|
61
62
|
*/
|
|
62
63
|
ref?: Ref<InputSearchBarElement>;
|
|
64
|
+
/**
|
|
65
|
+
* Defines helper text.
|
|
66
|
+
*/
|
|
67
|
+
helperText?: ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Show or hide the helper text.
|
|
70
|
+
*/
|
|
71
|
+
hasHelperText?: BooleanProp;
|
|
63
72
|
}
|
|
64
73
|
declare const InputSearchBar: FC<InputSearchBarProps>;
|
|
65
74
|
export { InputSearchBar };
|
|
@@ -3,8 +3,8 @@ import './input-time.css';
|
|
|
3
3
|
import { BooleanProp, FeedbackState, TimeFormat } from '../../models';
|
|
4
4
|
export interface InputTimeProps extends ComponentProps<'input'> {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
* Defines the time format that will be used.
|
|
7
|
+
*/
|
|
8
8
|
format?: TimeFormat;
|
|
9
9
|
/**
|
|
10
10
|
* The flag to set if the label and feedback text is in dark mode or light mode.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimePeriod } from '../../../models';
|
|
1
|
+
import { TimeFormat, TimePeriod } from '../../../models';
|
|
2
2
|
export declare const FULL_TIME_TEXT_REGEX_WITH_PERIOD: RegExp;
|
|
3
3
|
export declare const FULL_TIME_TEXT_REGEX_WITHOUT_PERIOD: RegExp;
|
|
4
4
|
export declare const DEFAULT_PLACEHOLDER: {
|
|
@@ -11,14 +11,13 @@ export declare const timePeriod: {
|
|
|
11
11
|
pm: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const startTime: {
|
|
14
|
-
hour: string;
|
|
15
14
|
minute: string;
|
|
16
15
|
period: string;
|
|
17
16
|
};
|
|
18
17
|
export declare const formatHour: (hour: number | string, minHour: number, maxHour: number) => string;
|
|
19
18
|
export declare const formatMinute: (minute: number | string, minMinute: number, maxMinute: number) => string;
|
|
20
19
|
export declare const formatFullTime: (hasPeriod: boolean, selectedHour: number | string, selectedMinute: number | string, selectedPeriod: TimePeriod) => string;
|
|
21
|
-
export declare const parseFullTime: (hasPeriod: boolean, fullTimeText: string) => {
|
|
20
|
+
export declare const parseFullTime: (hasPeriod: boolean, fullTimeText: string, hourFormat: TimeFormat) => {
|
|
22
21
|
selectedHour: string;
|
|
23
22
|
selectedMinute: string;
|
|
24
23
|
selectedPeriod: TimePeriod;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TabBodyProps } from '../../../components/tabs';
|
|
2
2
|
import React, { ComponentProps, FC, ReactElement } from 'react';
|
|
3
3
|
import './panel-switcher-desktop.css';
|
|
4
|
-
import { ButtonsHeaderData } from '
|
|
4
|
+
import { ButtonsHeaderData } from '../../../components/panel-switcher';
|
|
5
5
|
export interface PanelSwitcherDesktopProps extends ComponentProps<'div'> {
|
|
6
6
|
buttonListRef: React.RefObject<HTMLDivElement | null>;
|
|
7
7
|
panelRef: React.RefObject<HTMLDivElement | null>;
|
|
@@ -9,5 +9,6 @@ export interface PanelSwitcherDesktopProps extends ComponentProps<'div'> {
|
|
|
9
9
|
activateButton: (index: number) => void;
|
|
10
10
|
buttonsHeaderData: Array<ButtonsHeaderData>;
|
|
11
11
|
buttonsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
12
|
+
darkMode?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const PanelSwitcherDesktop: FC<PanelSwitcherDesktopProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FC, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { BooleanProp } from '../../models';
|
|
3
|
+
import { TabBodyProps } from '../tabs';
|
|
4
|
+
type ReactNodeOrFC = ReactNode | FC<{
|
|
5
|
+
darkMode?: BooleanProp;
|
|
6
|
+
}>;
|
|
7
|
+
export type PanelData = {
|
|
8
|
+
text: string;
|
|
9
|
+
withIcon?: boolean;
|
|
10
|
+
leadingIcon?: string;
|
|
11
|
+
content: ReactNodeOrFC;
|
|
12
|
+
leadingIconHover?: string;
|
|
13
|
+
};
|
|
14
|
+
export type ButtonsHeaderData = {
|
|
15
|
+
withIcon: boolean;
|
|
16
|
+
leadingIcon: string;
|
|
17
|
+
leadingIconHover: string;
|
|
18
|
+
child: ReactElement<TabBodyProps>;
|
|
19
|
+
};
|
|
20
|
+
export interface PanelSwitcherProps {
|
|
21
|
+
/**
|
|
22
|
+
* Collection of PanelData to be displayed by panel.
|
|
23
|
+
*/
|
|
24
|
+
data: PanelData[];
|
|
25
|
+
/**
|
|
26
|
+
* Defines the label of the modal close button.
|
|
27
|
+
*/
|
|
28
|
+
modalCloseButtonLabel: string;
|
|
29
|
+
/**
|
|
30
|
+
* The flag to set if the footer is in dark mode or light mode.
|
|
31
|
+
*/
|
|
32
|
+
darkMode?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const convertContentToNode: (content: ReactNodeOrFC, darkMode?: boolean) => ReactNode;
|
|
35
|
+
export declare const handleIcons: (hasIcon: boolean, icon: string, leadingIcon: boolean) => string | undefined;
|
|
36
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { PanelSwitcher } from './panel-switcher';
|
|
2
|
-
export type { PanelSwitcherProps } from './
|
|
2
|
+
export type { PanelSwitcherProps, PanelData, ButtonsHeaderData } from './helper';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React, { FC, ReactElement, RefObject } from 'react';
|
|
2
2
|
import { TabBodyProps } from '../../../components/tabs';
|
|
3
3
|
import './panel-switcher-mobile.css';
|
|
4
|
-
import { ButtonsHeaderData } from '
|
|
4
|
+
import { ButtonsHeaderData } from '../../../components/panel-switcher';
|
|
5
5
|
export interface PanelSwitcherMobileProps {
|
|
6
6
|
modalCloseButtonLabel: string;
|
|
7
7
|
buttonListRef: RefObject<HTMLDivElement | null>;
|
|
8
8
|
buttonsHeaderData: Array<ButtonsHeaderData>;
|
|
9
9
|
buttonsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
10
10
|
activeButton?: number;
|
|
11
|
+
darkMode?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const ModalContent: FC<{
|
|
13
14
|
content: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
2
|
import { TabProps } from '../tabs';
|
|
3
|
-
import { PanelData } from '
|
|
3
|
+
import { PanelData } from '../../components/panel-switcher';
|
|
4
4
|
export interface PanelSwitcherContainerProps {
|
|
5
5
|
/**
|
|
6
6
|
* Collection of PanelData to be displayed by panel.
|
|
@@ -14,5 +14,9 @@ export interface PanelSwitcherContainerProps {
|
|
|
14
14
|
* Defines the label of the modal close button.
|
|
15
15
|
*/
|
|
16
16
|
modalCloseButtonLabel: string;
|
|
17
|
+
/**
|
|
18
|
+
* The flag to set if the footer is in dark mode or light mode.
|
|
19
|
+
*/
|
|
20
|
+
darkMode?: boolean;
|
|
17
21
|
}
|
|
18
22
|
export declare const PanelSwitcherContainer: FC<PanelSwitcherContainerProps>;
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import { FC
|
|
2
|
-
import {
|
|
3
|
-
export type PanelData = {
|
|
4
|
-
text: string;
|
|
5
|
-
content: ReactNode;
|
|
6
|
-
leadingIcon?: string;
|
|
7
|
-
leadingIconHover?: string;
|
|
8
|
-
};
|
|
9
|
-
export type ButtonsHeaderData = {
|
|
10
|
-
leadingIcon: string;
|
|
11
|
-
leadingIconHover: string;
|
|
12
|
-
child: ReactElement<TabBodyProps>;
|
|
13
|
-
};
|
|
14
|
-
export interface PanelSwitcherProps {
|
|
15
|
-
/**
|
|
16
|
-
* Collection of PanelData to be displayed by panel.
|
|
17
|
-
*/
|
|
18
|
-
data: PanelData[];
|
|
19
|
-
/**
|
|
20
|
-
* Defines the label of the modal close button.
|
|
21
|
-
*/
|
|
22
|
-
modalCloseButtonLabel: string;
|
|
23
|
-
}
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { PanelSwitcherProps } from './helper';
|
|
24
3
|
export declare const PanelSwitcher: FC<PanelSwitcherProps>;
|