@ama-pt/agora-design-system 3.0.0 → 3.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 +6372 -6030
- 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 +61 -137
- package/artifacts/dist/types/components/avatar/avatar.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-action/card-action-styles.d.ts +15 -0
- package/artifacts/dist/types/components/cards/card-action/card-action.d.ts +42 -0
- package/artifacts/dist/types/components/cards/card-action/index.d.ts +2 -0
- package/artifacts/dist/types/components/cards/card-links/card-links-style.d.ts +9 -0
- package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +12 -3
- package/artifacts/dist/types/components/cards/card-no-results/card-no-results.d.ts +50 -1
- package/artifacts/dist/types/components/cards/index.d.ts +1 -0
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-context.d.ts +2 -0
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-option.d.ts +1 -0
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-section.d.ts +1 -2
- package/artifacts/dist/types/components/glossary-letters/glossary-letters.d.ts +4 -0
- package/artifacts/dist/types/components/input-date/input-date.d.ts +4 -0
- package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +4 -0
- package/artifacts/dist/types/components/input-number/input-number.d.ts +4 -0
- package/artifacts/dist/types/components/input-password/input-password.d.ts +4 -0
- package/artifacts/dist/types/components/input-phone/input-phone.d.ts +4 -0
- package/artifacts/dist/types/components/input-range/input-range.d.ts +5 -1
- package/artifacts/dist/types/components/input-search/input-search.d.ts +4 -0
- package/artifacts/dist/types/components/input-select/input-select.d.ts +4 -0
- package/artifacts/dist/types/components/input-text/input-text.d.ts +4 -0
- package/artifacts/dist/types/components/input-textarea/input-textarea.d.ts +4 -0
- package/artifacts/dist/types/components/input-time/input-time.d.ts +4 -0
- package/artifacts/dist/types/components/list/list.d.ts +5 -0
- package/artifacts/dist/types/components/progress-bar/progress-bar.d.ts +6 -2
- package/artifacts/dist/types/components/progress-bar-group/progress-bar-group.d.ts +5 -0
- package/artifacts/dist/types/components/switch/switch.d.ts +4 -0
- package/artifacts/dist/types/components/uploader/button-uploader/button-uploader.d.ts +4 -0
- package/artifacts/dist/types/hooks/use-window-size.d.ts +4 -1
- package/package.json +1 -1
|
@@ -660,7 +660,8 @@ textarea::-moz-placeholder{
|
|
|
660
660
|
line-height: 1.75rem !important;
|
|
661
661
|
letter-spacing: 0 !important;
|
|
662
662
|
font-weight: 400 !important;
|
|
663
|
-
|
|
663
|
+
--tw-text-opacity: 1;
|
|
664
|
+
color: rgb(156 166 184 / var(--tw-text-opacity, 1));
|
|
664
665
|
}
|
|
665
666
|
|
|
666
667
|
textarea::placeholder{
|
|
@@ -668,7 +669,8 @@ textarea::placeholder{
|
|
|
668
669
|
line-height: 1.75rem !important;
|
|
669
670
|
letter-spacing: 0 !important;
|
|
670
671
|
font-weight: 400 !important;
|
|
671
|
-
|
|
672
|
+
--tw-text-opacity: 1;
|
|
673
|
+
color: rgb(156 166 184 / var(--tw-text-opacity, 1));
|
|
672
674
|
}
|
|
673
675
|
|
|
674
676
|
input[type]::-moz-placeholder{
|
|
@@ -676,7 +678,8 @@ input[type]::-moz-placeholder{
|
|
|
676
678
|
line-height: 1.75rem !important;
|
|
677
679
|
letter-spacing: 0 !important;
|
|
678
680
|
font-weight: 400 !important;
|
|
679
|
-
|
|
681
|
+
--tw-text-opacity: 1;
|
|
682
|
+
color: rgb(156 166 184 / var(--tw-text-opacity, 1));
|
|
680
683
|
}
|
|
681
684
|
|
|
682
685
|
input[type]::placeholder{
|
|
@@ -684,14 +687,15 @@ input[type]::placeholder{
|
|
|
684
687
|
line-height: 1.75rem !important;
|
|
685
688
|
letter-spacing: 0 !important;
|
|
686
689
|
font-weight: 400 !important;
|
|
687
|
-
|
|
690
|
+
--tw-text-opacity: 1;
|
|
691
|
+
color: rgb(156 166 184 / var(--tw-text-opacity, 1));
|
|
688
692
|
}
|
|
689
693
|
|
|
690
694
|
*:focus{
|
|
691
695
|
outline-style: solid;
|
|
692
696
|
outline-width: 2px;
|
|
693
697
|
outline-offset: -2px;
|
|
694
|
-
outline-color:
|
|
698
|
+
outline-color: #F408FC;
|
|
695
699
|
}
|
|
696
700
|
|
|
697
701
|
.container{
|
|
@@ -1139,10 +1143,6 @@ input[type]::placeholder{
|
|
|
1139
1143
|
height: 44px !important;
|
|
1140
1144
|
}
|
|
1141
1145
|
|
|
1142
|
-
.\!h-auto{
|
|
1143
|
-
height: auto !important;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
1146
|
.h-0{
|
|
1147
1147
|
height: 0px;
|
|
1148
1148
|
}
|
|
@@ -1273,10 +1273,6 @@ input[type]::placeholder{
|
|
|
1273
1273
|
width: 44px !important;
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
|
-
.\!w-full{
|
|
1277
|
-
width: 100% !important;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
1276
|
.w-1\/2{
|
|
1281
1277
|
width: 50%;
|
|
1282
1278
|
}
|
|
@@ -1358,6 +1354,14 @@ input[type]::placeholder{
|
|
|
1358
1354
|
max-width: 1440px;
|
|
1359
1355
|
}
|
|
1360
1356
|
|
|
1357
|
+
.max-w-\[280px\]{
|
|
1358
|
+
max-width: 280px;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
.max-w-\[384px\]{
|
|
1362
|
+
max-width: 384px;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1361
1365
|
.max-w-full{
|
|
1362
1366
|
max-width: 100%;
|
|
1363
1367
|
}
|
|
@@ -1859,6 +1863,10 @@ input[type]::placeholder{
|
|
|
1859
1863
|
gap: 64px;
|
|
1860
1864
|
}
|
|
1861
1865
|
|
|
1866
|
+
.gap-\[8px\]{
|
|
1867
|
+
gap: 8px;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1862
1870
|
.gap-x-16{
|
|
1863
1871
|
-moz-column-gap: 16px;
|
|
1864
1872
|
column-gap: 16px;
|
|
@@ -2264,24 +2272,13 @@ input[type]::placeholder{
|
|
|
2264
2272
|
border-color: transparent !important;
|
|
2265
2273
|
}
|
|
2266
2274
|
|
|
2267
|
-
.border-\[
|
|
2268
|
-
border-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
.border-\[var\(--color-neutral-300\)\]{
|
|
2272
|
-
border-color: var(--color-neutral-300);
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
.border-\[var\(--color-neutral-600\)\]{
|
|
2276
|
-
border-color: var(--color-neutral-600);
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
|
-
.border-\[var\(--color-primary-400\)\]{
|
|
2280
|
-
border-color: var(--color-primary-400);
|
|
2275
|
+
.border-\[\#9747FF\]{
|
|
2276
|
+
--tw-border-opacity: 1;
|
|
2277
|
+
border-color: rgb(151 71 255 / var(--tw-border-opacity, 1));
|
|
2281
2278
|
}
|
|
2282
2279
|
|
|
2283
|
-
.border-\[var\(--color-
|
|
2284
|
-
border-color: var(--color-
|
|
2280
|
+
.border-\[var\(--color-neutral-700\)\]{
|
|
2281
|
+
border-color: var(--color-neutral-700);
|
|
2285
2282
|
}
|
|
2286
2283
|
|
|
2287
2284
|
.border-backdrop{
|
|
@@ -4321,10 +4318,6 @@ input[type]::placeholder{
|
|
|
4321
4318
|
border-inline-end-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
|
|
4322
4319
|
}
|
|
4323
4320
|
|
|
4324
|
-
.border-l-\[var\(--color-neutral-900\)\]{
|
|
4325
|
-
border-left-color: var(--color-neutral-900);
|
|
4326
|
-
}
|
|
4327
|
-
|
|
4328
4321
|
.border-l-backdrop{
|
|
4329
4322
|
border-left-color: rgba(43, 54, 60, 0.96);
|
|
4330
4323
|
}
|
|
@@ -5934,54 +5927,10 @@ input[type]::placeholder{
|
|
|
5934
5927
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)) !important;
|
|
5935
5928
|
}
|
|
5936
5929
|
|
|
5937
|
-
.bg-\[var\(--color-backdrop\)\]{
|
|
5938
|
-
background-color: var(--color-backdrop);
|
|
5939
|
-
}
|
|
5940
|
-
|
|
5941
|
-
.bg-\[var\(--color-danger-200\)\]{
|
|
5942
|
-
background-color: var(--color-danger-200);
|
|
5943
|
-
}
|
|
5944
|
-
|
|
5945
|
-
.bg-\[var\(--color-neutral-100\)\]{
|
|
5946
|
-
background-color: var(--color-neutral-100);
|
|
5947
|
-
}
|
|
5948
|
-
|
|
5949
|
-
.bg-\[var\(--color-neutral-200\)\]{
|
|
5950
|
-
background-color: var(--color-neutral-200);
|
|
5951
|
-
}
|
|
5952
|
-
|
|
5953
|
-
.bg-\[var\(--color-neutral-300\)\]{
|
|
5954
|
-
background-color: var(--color-neutral-300);
|
|
5955
|
-
}
|
|
5956
|
-
|
|
5957
|
-
.bg-\[var\(--color-neutral-400\)\]{
|
|
5958
|
-
background-color: var(--color-neutral-400);
|
|
5959
|
-
}
|
|
5960
|
-
|
|
5961
|
-
.bg-\[var\(--color-neutral-50\)\]{
|
|
5962
|
-
background-color: var(--color-neutral-50);
|
|
5963
|
-
}
|
|
5964
|
-
|
|
5965
|
-
.bg-\[var\(--color-primary-100\)\]{
|
|
5966
|
-
background-color: var(--color-primary-100);
|
|
5967
|
-
}
|
|
5968
|
-
|
|
5969
|
-
.bg-\[var\(--color-primary-600\)\]{
|
|
5970
|
-
background-color: var(--color-primary-600);
|
|
5971
|
-
}
|
|
5972
|
-
|
|
5973
5930
|
.bg-\[var\(--color-primary-700\)\]{
|
|
5974
5931
|
background-color: var(--color-primary-700);
|
|
5975
5932
|
}
|
|
5976
5933
|
|
|
5977
|
-
.bg-\[var\(--color-primary-900\)\]{
|
|
5978
|
-
background-color: var(--color-primary-900);
|
|
5979
|
-
}
|
|
5980
|
-
|
|
5981
|
-
.bg-\[var\(--color-secondary-700\)\]{
|
|
5982
|
-
background-color: var(--color-secondary-700);
|
|
5983
|
-
}
|
|
5984
|
-
|
|
5985
5934
|
.bg-backdrop{
|
|
5986
5935
|
background-color: rgba(43, 54, 60, 0.96);
|
|
5987
5936
|
}
|
|
@@ -6600,14 +6549,6 @@ input[type]::placeholder{
|
|
|
6600
6549
|
background-origin: content-box;
|
|
6601
6550
|
}
|
|
6602
6551
|
|
|
6603
|
-
.fill-\[var\(--color-neutral-900\)\]{
|
|
6604
|
-
fill: var(--color-neutral-900);
|
|
6605
|
-
}
|
|
6606
|
-
|
|
6607
|
-
.fill-\[var\(--color-primary-600\)\]{
|
|
6608
|
-
fill: var(--color-primary-600);
|
|
6609
|
-
}
|
|
6610
|
-
|
|
6611
6552
|
.fill-backdrop{
|
|
6612
6553
|
fill: rgba(43, 54, 60, 0.96);
|
|
6613
6554
|
}
|
|
@@ -7413,6 +7354,10 @@ input[type]::placeholder{
|
|
|
7413
7354
|
text-align: end;
|
|
7414
7355
|
}
|
|
7415
7356
|
|
|
7357
|
+
.align-middle{
|
|
7358
|
+
vertical-align: middle;
|
|
7359
|
+
}
|
|
7360
|
+
|
|
7416
7361
|
.align-text-top{
|
|
7417
7362
|
vertical-align: text-top;
|
|
7418
7363
|
}
|
|
@@ -7644,38 +7589,6 @@ input[type]::placeholder{
|
|
|
7644
7589
|
text-transform: none;
|
|
7645
7590
|
}
|
|
7646
7591
|
|
|
7647
|
-
.text-\[var\(--color-informative-500\)\]{
|
|
7648
|
-
color: var(--color-informative-500);
|
|
7649
|
-
}
|
|
7650
|
-
|
|
7651
|
-
.text-\[var\(--color-neutral-500\)\]{
|
|
7652
|
-
color: var(--color-neutral-500);
|
|
7653
|
-
}
|
|
7654
|
-
|
|
7655
|
-
.text-\[var\(--color-neutral-700\)\]{
|
|
7656
|
-
color: var(--color-neutral-700);
|
|
7657
|
-
}
|
|
7658
|
-
|
|
7659
|
-
.text-\[var\(--color-neutral-900\)\]{
|
|
7660
|
-
color: var(--color-neutral-900);
|
|
7661
|
-
}
|
|
7662
|
-
|
|
7663
|
-
.text-\[var\(--color-primary-600\)\]{
|
|
7664
|
-
color: var(--color-primary-600);
|
|
7665
|
-
}
|
|
7666
|
-
|
|
7667
|
-
.text-\[var\(--color-primary-700\)\]{
|
|
7668
|
-
color: var(--color-primary-700);
|
|
7669
|
-
}
|
|
7670
|
-
|
|
7671
|
-
.text-\[var\(--color-primary-900\)\]{
|
|
7672
|
-
color: var(--color-primary-900);
|
|
7673
|
-
}
|
|
7674
|
-
|
|
7675
|
-
.text-\[var\(--color-white\)\]{
|
|
7676
|
-
color: var(--color-white);
|
|
7677
|
-
}
|
|
7678
|
-
|
|
7679
7592
|
.text-backdrop{
|
|
7680
7593
|
color: rgba(43, 54, 60, 0.96);
|
|
7681
7594
|
}
|
|
@@ -8153,8 +8066,8 @@ input[type]::placeholder{
|
|
|
8153
8066
|
text-decoration-line: line-through;
|
|
8154
8067
|
}
|
|
8155
8068
|
|
|
8156
|
-
.decoration
|
|
8157
|
-
text-decoration-color:
|
|
8069
|
+
.decoration-primary-600{
|
|
8070
|
+
text-decoration-color: #034AD8;
|
|
8158
8071
|
}
|
|
8159
8072
|
|
|
8160
8073
|
.decoration-2{
|
|
@@ -8304,8 +8217,8 @@ input[type]::placeholder{
|
|
|
8304
8217
|
outline-offset: -2px;
|
|
8305
8218
|
}
|
|
8306
8219
|
|
|
8307
|
-
.outline
|
|
8308
|
-
outline-color:
|
|
8220
|
+
.outline-focus{
|
|
8221
|
+
outline-color: #F408FC;
|
|
8309
8222
|
}
|
|
8310
8223
|
|
|
8311
8224
|
.blur{
|
|
@@ -12604,10 +12517,6 @@ input[type]::placeholder{
|
|
|
12604
12517
|
--tw-border-opacity: 0.95;
|
|
12605
12518
|
}
|
|
12606
12519
|
|
|
12607
|
-
.hover\:bg-\[var\(--color-primary-100\)\]:hover{
|
|
12608
|
-
background-color: var(--color-primary-100);
|
|
12609
|
-
}
|
|
12610
|
-
|
|
12611
12520
|
.hover\:bg-backdrop:hover{
|
|
12612
12521
|
background-color: rgba(43, 54, 60, 0.96);
|
|
12613
12522
|
}
|
|
@@ -14093,10 +14002,6 @@ input[type]::placeholder{
|
|
|
14093
14002
|
font-weight: 600;
|
|
14094
14003
|
}
|
|
14095
14004
|
|
|
14096
|
-
.hover\:text-\[var\(--color-primary-600\)\]:hover{
|
|
14097
|
-
color: var(--color-primary-600);
|
|
14098
|
-
}
|
|
14099
|
-
|
|
14100
14005
|
.hover\:text-backdrop:hover{
|
|
14101
14006
|
color: rgba(43, 54, 60, 0.96);
|
|
14102
14007
|
}
|
|
@@ -20951,16 +20856,17 @@ input[type]::placeholder{
|
|
|
20951
20856
|
outline-offset: -2px;
|
|
20952
20857
|
}
|
|
20953
20858
|
|
|
20954
|
-
.focus\:outline
|
|
20955
|
-
outline-color:
|
|
20859
|
+
.focus\:outline-focus:focus{
|
|
20860
|
+
outline-color: #F408FC;
|
|
20956
20861
|
}
|
|
20957
20862
|
|
|
20958
20863
|
.active\:border-0:active{
|
|
20959
20864
|
border-width: 0;
|
|
20960
20865
|
}
|
|
20961
20866
|
|
|
20962
|
-
.active\:bg
|
|
20963
|
-
|
|
20867
|
+
.active\:bg-neutral-200:active{
|
|
20868
|
+
--tw-bg-opacity: 1;
|
|
20869
|
+
background-color: rgb(225 228 234 / var(--tw-bg-opacity, 1));
|
|
20964
20870
|
}
|
|
20965
20871
|
|
|
20966
20872
|
.active\:bg-primary-700:active{
|
|
@@ -20968,8 +20874,9 @@ input[type]::placeholder{
|
|
|
20968
20874
|
background-color: rgb(3 56 162 / var(--tw-bg-opacity, 1));
|
|
20969
20875
|
}
|
|
20970
20876
|
|
|
20971
|
-
.active\:text
|
|
20972
|
-
|
|
20877
|
+
.active\:text-neutral-900:active{
|
|
20878
|
+
--tw-text-opacity: 1;
|
|
20879
|
+
color: rgb(43 54 60 / var(--tw-text-opacity, 1));
|
|
20973
20880
|
}
|
|
20974
20881
|
|
|
20975
20882
|
.active\:shadow-inner:active{
|
|
@@ -26697,6 +26604,14 @@ input[type]::placeholder{
|
|
|
26697
26604
|
stroke-width: 2;
|
|
26698
26605
|
}
|
|
26699
26606
|
|
|
26607
|
+
.xs\:p-0{
|
|
26608
|
+
padding: 0px;
|
|
26609
|
+
}
|
|
26610
|
+
|
|
26611
|
+
.xs\:p-32{
|
|
26612
|
+
padding: 32px;
|
|
26613
|
+
}
|
|
26614
|
+
|
|
26700
26615
|
.xs\:px-32{
|
|
26701
26616
|
padding-left: 32px;
|
|
26702
26617
|
padding-right: 32px;
|
|
@@ -33351,6 +33266,10 @@ input[type]::placeholder{
|
|
|
33351
33266
|
stroke-width: 2;
|
|
33352
33267
|
}
|
|
33353
33268
|
|
|
33269
|
+
.md\:p-64{
|
|
33270
|
+
padding: 64px;
|
|
33271
|
+
}
|
|
33272
|
+
|
|
33354
33273
|
.md\:px-64{
|
|
33355
33274
|
padding-left: 64px;
|
|
33356
33275
|
padding-right: 64px;
|
|
@@ -39951,6 +39870,10 @@ input[type]::placeholder{
|
|
|
39951
39870
|
stroke-width: 2;
|
|
39952
39871
|
}
|
|
39953
39872
|
|
|
39873
|
+
.xl\:p-64{
|
|
39874
|
+
padding: 64px;
|
|
39875
|
+
}
|
|
39876
|
+
|
|
39954
39877
|
.xl\:px-0{
|
|
39955
39878
|
padding-left: 0px;
|
|
39956
39879
|
padding-right: 0px;
|
|
@@ -40786,8 +40709,9 @@ input[type]::placeholder{
|
|
|
40786
40709
|
font-weight: 600;
|
|
40787
40710
|
}
|
|
40788
40711
|
|
|
40789
|
-
.\[\&\>\*\]\:text
|
|
40790
|
-
|
|
40712
|
+
.\[\&\>\*\]\:text-neutral-500>*{
|
|
40713
|
+
--tw-text-opacity: 1;
|
|
40714
|
+
color: rgb(156 166 184 / var(--tw-text-opacity, 1));
|
|
40791
40715
|
}
|
|
40792
40716
|
|
|
40793
40717
|
.\[\&\>\.children-wrapper\]\:w-full>.children-wrapper{
|
|
@@ -6,7 +6,7 @@ import './avatar.scss';
|
|
|
6
6
|
/**
|
|
7
7
|
* The available avatar types. Each of them define the appearance of the avatar image.
|
|
8
8
|
*/
|
|
9
|
-
export type AvatarType = 'image' | 'icon' | 'initials';
|
|
9
|
+
export type AvatarType = 'image' | 'icon' | 'initials' | 'empty';
|
|
10
10
|
/**
|
|
11
11
|
* The available badge positions. Each of them defines the location of the badge on the avatar.
|
|
12
12
|
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CardActionStyles } from './card-action';
|
|
2
|
+
import { ButtonVariant } from '../../button/button';
|
|
3
|
+
type CardActionStylesBody = {
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
titleColor?: string;
|
|
7
|
+
hasBorder?: boolean;
|
|
8
|
+
isBorderWhite?: boolean;
|
|
9
|
+
buttonVariant?: ButtonVariant;
|
|
10
|
+
buttonDarkMode?: boolean;
|
|
11
|
+
iconColor?: string;
|
|
12
|
+
};
|
|
13
|
+
export type CardActionStylesMap = Record<CardActionStyles, CardActionStylesBody>;
|
|
14
|
+
export declare const cardActionStylesMap: CardActionStylesMap;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FC, ImgHTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonProps } from '../../../components/button';
|
|
3
|
+
import { IconProps } from '../../../components/icon';
|
|
4
|
+
import './card-action.scss';
|
|
5
|
+
import { BooleanProp } from '../../../models';
|
|
6
|
+
export type CardActionStyles = 'white' | 'neutral-100' | 'primary-100' | 'secondary-100' | 'primary-300' | 'secondary-300' | 'primary-500' | 'primary-700' | 'primary-900' | 'white-line' | 'primary-900-line';
|
|
7
|
+
export type CardActionAlignment = 'left' | 'center' | 'right';
|
|
8
|
+
export interface CardActionProps {
|
|
9
|
+
/**
|
|
10
|
+
* title of card
|
|
11
|
+
*/
|
|
12
|
+
title: string;
|
|
13
|
+
/**
|
|
14
|
+
* text to show within the card
|
|
15
|
+
*/
|
|
16
|
+
text: string;
|
|
17
|
+
/**
|
|
18
|
+
* style of card action
|
|
19
|
+
*/
|
|
20
|
+
variant?: CardActionStyles;
|
|
21
|
+
/**
|
|
22
|
+
* it allow you align title, text and button
|
|
23
|
+
*/
|
|
24
|
+
alignment?: CardActionAlignment;
|
|
25
|
+
/**
|
|
26
|
+
* show the card horizontally
|
|
27
|
+
*/
|
|
28
|
+
isCardHorizontal?: BooleanProp;
|
|
29
|
+
/**
|
|
30
|
+
* name of icon logo
|
|
31
|
+
*/
|
|
32
|
+
icon?: IconProps;
|
|
33
|
+
/**
|
|
34
|
+
* image card to draw in the card if specified.
|
|
35
|
+
*/
|
|
36
|
+
image?: ImgHTMLAttributes<HTMLImageElement>;
|
|
37
|
+
/**
|
|
38
|
+
* props for the button component
|
|
39
|
+
*/
|
|
40
|
+
button: ButtonProps;
|
|
41
|
+
}
|
|
42
|
+
export declare const CardAction: FC<CardActionProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CardLinksStyles } from './card-links';
|
|
2
|
+
type CardLinksStylesBody = {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
textColor?: string;
|
|
5
|
+
borderColor?: string;
|
|
6
|
+
};
|
|
7
|
+
export type CardLinksStylesMap = Record<CardLinksStyles, CardLinksStylesBody>;
|
|
8
|
+
export declare const cardLinksStylesMap: CardLinksStylesMap;
|
|
9
|
+
export {};
|
|
@@ -2,7 +2,12 @@ import { ComponentProps, FC, ImgHTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
3
|
import { AnchorProps } from '../../../components/anchor';
|
|
4
4
|
import './card-links.scss';
|
|
5
|
+
export type CardLinksStyles = 'transparent' | 'white' | 'neutral-100' | 'primary-100' | 'secondary-100' | 'primary-300' | 'secondary-300' | 'primary-500' | 'primary-700' | 'primary-900';
|
|
5
6
|
export interface CardLinksProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
7
|
+
/**
|
|
8
|
+
* Style of card
|
|
9
|
+
*/
|
|
10
|
+
variant?: CardLinksStyles;
|
|
6
11
|
/**
|
|
7
12
|
* Heading level to apply in the card.
|
|
8
13
|
*/
|
|
@@ -24,7 +29,11 @@ export interface CardLinksProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
24
29
|
*/
|
|
25
30
|
description?: ReactNode;
|
|
26
31
|
/**
|
|
27
|
-
* card
|
|
32
|
+
* The description of the card.
|
|
33
|
+
*/
|
|
34
|
+
description2?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Second description of the card.
|
|
28
37
|
*/
|
|
29
38
|
image?: ImgHTMLAttributes<HTMLImageElement>;
|
|
30
39
|
/**
|
|
@@ -44,8 +53,8 @@ export interface CardLinksProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
44
53
|
*/
|
|
45
54
|
darkMode?: BooleanProp;
|
|
46
55
|
/**
|
|
47
|
-
* Makes the
|
|
56
|
+
* Makes the title clickable.
|
|
48
57
|
*/
|
|
49
|
-
|
|
58
|
+
titleLink?: BooleanProp;
|
|
50
59
|
}
|
|
51
60
|
export declare const CardLinks: FC<CardLinksProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps, FC, ReactNode } from 'react';
|
|
1
|
+
import React, { ComponentProps, FC, ReactNode } from 'react';
|
|
2
2
|
import { BooleanProp } from '../../../models';
|
|
3
3
|
import './card-no-results.scss';
|
|
4
4
|
export interface CardNoResultsProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
@@ -18,9 +18,58 @@ export interface CardNoResultsProps extends Omit<ComponentProps<'div'>, 'title'>
|
|
|
18
18
|
* The description of the card.
|
|
19
19
|
*/
|
|
20
20
|
description?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The extra description of the card.
|
|
23
|
+
*/
|
|
24
|
+
extraDescription?: ReactNode;
|
|
21
25
|
/**
|
|
22
26
|
* If the card should be displayed in a dark mode.
|
|
23
27
|
*/
|
|
24
28
|
darkMode?: BooleanProp;
|
|
29
|
+
/**
|
|
30
|
+
* allow you to say where the content should be aligned
|
|
31
|
+
*/
|
|
32
|
+
position?: 'left' | 'center';
|
|
33
|
+
/**
|
|
34
|
+
* show the button within the card
|
|
35
|
+
*/
|
|
36
|
+
hasAnchor?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* name of icon to show inside of anchor
|
|
39
|
+
*/
|
|
40
|
+
anchorLeadingIcon?: string;
|
|
41
|
+
/**
|
|
42
|
+
* name of icon to show when hover the anchor
|
|
43
|
+
*/
|
|
44
|
+
anchorLeadingIconHover?: string;
|
|
45
|
+
/**
|
|
46
|
+
* name of icon to show after the name of button when hover the anchor
|
|
47
|
+
*/
|
|
48
|
+
anchorTrailingIcon?: string;
|
|
49
|
+
/**
|
|
50
|
+
* name of icon to show after the name of button when hover the anchor
|
|
51
|
+
*/
|
|
52
|
+
anchorTrailingIconHover?: string;
|
|
53
|
+
/**
|
|
54
|
+
* name of button
|
|
55
|
+
*/
|
|
56
|
+
valueAnchor?: string;
|
|
57
|
+
/**
|
|
58
|
+
* list of items to be displayed
|
|
59
|
+
*/
|
|
60
|
+
itemList?: ReactNode[];
|
|
61
|
+
/**
|
|
62
|
+
* show the list inside the card
|
|
63
|
+
*/
|
|
64
|
+
hasList?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* href of the anchor
|
|
67
|
+
*/
|
|
68
|
+
anchorHref?: string;
|
|
69
|
+
/**
|
|
70
|
+
* target of the anchor link
|
|
71
|
+
*/
|
|
72
|
+
anchorTarget?: '_blank' | '_self' | '_parent' | '_top';
|
|
25
73
|
}
|
|
74
|
+
export declare const stringOrReactNode: (value: string | ReactNode, className: string) => React.JSX.Element | null;
|
|
26
75
|
export declare const CardNoResults: FC<CardNoResultsProps>;
|
|
@@ -22,6 +22,8 @@ export interface InternalDropdownContextProps {
|
|
|
22
22
|
applyFilter: (filter: string) => void;
|
|
23
23
|
activeFilter: string;
|
|
24
24
|
resetFilter: () => void;
|
|
25
|
+
lastSelectedOption?: string;
|
|
26
|
+
setLastSelectedOption: (optionId: string | undefined) => void;
|
|
25
27
|
}
|
|
26
28
|
export declare const InternalDropdownContext: import("react").Context<InternalDropdownContextProps>;
|
|
27
29
|
export declare const useInternalDropdownContext: () => InternalDropdownContextProps;
|
|
@@ -13,6 +13,7 @@ export interface InternalDropdownOptionProps extends ComponentProps<'li'> {
|
|
|
13
13
|
selected?: BooleanProp;
|
|
14
14
|
filtered?: BooleanProp;
|
|
15
15
|
sectionOptionId?: string;
|
|
16
|
+
onRangeSelection?: (optionId: string, isShiftClick: boolean) => void;
|
|
16
17
|
}
|
|
17
18
|
declare const InternalDropdownOption: FC<InternalDropdownOptionProps>;
|
|
18
19
|
export { InternalDropdownOption };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { BooleanProp } from '../../../models';
|
|
1
2
|
import { FC, ReactElement } from 'react';
|
|
2
3
|
import { InternalDropdownOptionProps } from './internal-dropdown-option';
|
|
3
|
-
import './internal-dropdown-section.scss';
|
|
4
|
-
import { BooleanProp } from '../../../models';
|
|
5
4
|
export interface InternalDropdownSectionProps {
|
|
6
5
|
className?: string;
|
|
7
6
|
name: string;
|
|
@@ -20,6 +20,10 @@ export interface GlossaryLettersProps extends ComponentProps<'div'> {
|
|
|
20
20
|
* Letters Array
|
|
21
21
|
*/
|
|
22
22
|
letters?: GlossaryLetter[];
|
|
23
|
+
/**
|
|
24
|
+
* Turn the dark mode on or off.
|
|
25
|
+
*/
|
|
26
|
+
darkMode?: boolean;
|
|
23
27
|
}
|
|
24
28
|
declare const GlossaryLetters: FC<GlossaryLettersProps>;
|
|
25
29
|
export { GlossaryLetters };
|
|
@@ -38,6 +38,10 @@ export interface InputDateProps extends ComponentProps<'input'> {
|
|
|
38
38
|
* Feedback text displayed below input.
|
|
39
39
|
*/
|
|
40
40
|
feedbackText?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Error feedback text displayed below input.
|
|
43
|
+
*/
|
|
44
|
+
errorFeedbackText?: ReactNode;
|
|
41
45
|
/**
|
|
42
46
|
* The flag to set if the label and feedbackText is in dark mode or light mode.
|
|
43
47
|
*/
|
|
@@ -35,6 +35,10 @@ export interface InputEmailBarProps extends ComponentProps<'input'> {
|
|
|
35
35
|
* Indicates the feedback state of feedback text. This param will change the left feedback icon and dye it.
|
|
36
36
|
*/
|
|
37
37
|
hasError?: BooleanProp;
|
|
38
|
+
/**
|
|
39
|
+
* Error feedback text displayed below input.
|
|
40
|
+
*/
|
|
41
|
+
errorFeedbackText?: ReactNode;
|
|
38
42
|
}
|
|
39
43
|
declare const InputEmailBar: FC<InputEmailBarProps>;
|
|
40
44
|
export { InputEmailBar };
|
|
@@ -26,6 +26,10 @@ export interface InputNumberProps extends ComponentProps<'input'> {
|
|
|
26
26
|
* Feedback text displayed below input.
|
|
27
27
|
*/
|
|
28
28
|
feedbackText?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Error feedback text displayed below input.
|
|
31
|
+
*/
|
|
32
|
+
errorFeedbackText?: ReactNode;
|
|
29
33
|
/**
|
|
30
34
|
* The flag to set if the label and feedback text is in dark mode or light mode.
|
|
31
35
|
*/
|
|
@@ -22,6 +22,10 @@ export interface InputPasswordProps extends ComponentProps<'input'> {
|
|
|
22
22
|
* Defines the state of the feedback text. This param will change the feedback icon and dye it.
|
|
23
23
|
*/
|
|
24
24
|
feedbackState?: FeedbackState;
|
|
25
|
+
/**
|
|
26
|
+
* Error feedback text displayed below input.
|
|
27
|
+
*/
|
|
28
|
+
errorFeedbackText?: ReactNode;
|
|
25
29
|
/**
|
|
26
30
|
* The flag to set if the label and feedback text is in dark mode or light mode.
|
|
27
31
|
*/
|
|
@@ -35,6 +35,10 @@ export interface InputPhoneProps extends ComponentProps<'input'> {
|
|
|
35
35
|
* Feedback text displayed below input.
|
|
36
36
|
*/
|
|
37
37
|
feedbackText?: ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Error feedback text displayed below input.
|
|
40
|
+
*/
|
|
41
|
+
errorFeedbackText?: ReactNode;
|
|
38
42
|
/**
|
|
39
43
|
* The flag to set if the label and feedback text is in dark mode or light mode.
|
|
40
44
|
*/
|
|
@@ -20,7 +20,7 @@ export interface InputRangeProps extends Omit<ComponentProps<'input'>, 'value' |
|
|
|
20
20
|
*/
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The value or values for the input range. It can be a number array with 1 or 2 positions according tp the type specified.
|
|
24
24
|
*/
|
|
25
25
|
value?: number[];
|
|
26
26
|
/**
|
|
@@ -56,6 +56,10 @@ export interface InputRangeProps extends Omit<ComponentProps<'input'>, 'value' |
|
|
|
56
56
|
* Feedback text displayed below input.
|
|
57
57
|
*/
|
|
58
58
|
feedbackText?: ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Error feedback text displayed below input.
|
|
61
|
+
*/
|
|
62
|
+
errorFeedbackText?: ReactNode;
|
|
59
63
|
}
|
|
60
64
|
export interface InputRangeElement extends HTMLDivElement {
|
|
61
65
|
sliders: HTMLInputElement[];
|