@ama-pt/agora-design-system 3.5.0 → 3.5.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/artifacts/dist/index.mjs +2826 -2774
- 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 +53 -81
- 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/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/package.json +1 -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;
|
|
@@ -1321,8 +1333,8 @@ input[type]::placeholder{
|
|
|
1321
1333
|
width: 32px;
|
|
1322
1334
|
}
|
|
1323
1335
|
|
|
1324
|
-
.w
|
|
1325
|
-
width:
|
|
1336
|
+
.w-\[131px\]{
|
|
1337
|
+
width: 131px;
|
|
1326
1338
|
}
|
|
1327
1339
|
|
|
1328
1340
|
.w-\[190px\]{
|
|
@@ -1341,12 +1353,8 @@ input[type]::placeholder{
|
|
|
1341
1353
|
width: 496px;
|
|
1342
1354
|
}
|
|
1343
1355
|
|
|
1344
|
-
.w-\[
|
|
1345
|
-
width:
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
.w-\[65px\]{
|
|
1349
|
-
width: 65px;
|
|
1356
|
+
.w-\[82px\]{
|
|
1357
|
+
width: 82px;
|
|
1350
1358
|
}
|
|
1351
1359
|
|
|
1352
1360
|
.w-\[calc\(100\%\+32px\)\]{
|
|
@@ -1921,11 +1929,6 @@ input[type]::placeholder{
|
|
|
1921
1929
|
column-gap: 32px;
|
|
1922
1930
|
}
|
|
1923
1931
|
|
|
1924
|
-
.gap-x-8{
|
|
1925
|
-
-moz-column-gap: 8px;
|
|
1926
|
-
column-gap: 8px;
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
1932
|
.gap-y-16{
|
|
1930
1933
|
row-gap: 16px;
|
|
1931
1934
|
}
|
|
@@ -2333,6 +2336,10 @@ input[type]::placeholder{
|
|
|
2333
2336
|
border-color: var(--color-neutral-600);
|
|
2334
2337
|
}
|
|
2335
2338
|
|
|
2339
|
+
.border-\[var\(--color-neutral-700\)\]{
|
|
2340
|
+
border-color: var(--color-neutral-700);
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2336
2343
|
.border-\[var\(--color-primary-400\)\]{
|
|
2337
2344
|
border-color: var(--color-primary-400);
|
|
2338
2345
|
}
|
|
@@ -6104,6 +6111,10 @@ input[type]::placeholder{
|
|
|
6104
6111
|
--tw-border-opacity: 0.95;
|
|
6105
6112
|
}
|
|
6106
6113
|
|
|
6114
|
+
.\!bg-\[var\(--color-neutral-100\)\]{
|
|
6115
|
+
background-color: var(--color-neutral-100) !important;
|
|
6116
|
+
}
|
|
6117
|
+
|
|
6107
6118
|
.\!bg-transparent{
|
|
6108
6119
|
background-color: transparent !important;
|
|
6109
6120
|
}
|
|
@@ -6209,6 +6220,10 @@ input[type]::placeholder{
|
|
|
6209
6220
|
background-color: var(--color-warning-800);
|
|
6210
6221
|
}
|
|
6211
6222
|
|
|
6223
|
+
.bg-\[var\(--color-white\)\]{
|
|
6224
|
+
background-color: var(--color-white);
|
|
6225
|
+
}
|
|
6226
|
+
|
|
6212
6227
|
.bg-backdrop{
|
|
6213
6228
|
background-color: rgba(43, 54, 60, 0.96);
|
|
6214
6229
|
}
|
|
@@ -7613,6 +7628,11 @@ input[type]::placeholder{
|
|
|
7613
7628
|
padding-right: 8px;
|
|
7614
7629
|
}
|
|
7615
7630
|
|
|
7631
|
+
.py-0{
|
|
7632
|
+
padding-top: 0px;
|
|
7633
|
+
padding-bottom: 0px;
|
|
7634
|
+
}
|
|
7635
|
+
|
|
7616
7636
|
.py-16{
|
|
7617
7637
|
padding-top: 16px;
|
|
7618
7638
|
padding-bottom: 16px;
|
|
@@ -7945,6 +7965,10 @@ input[type]::placeholder{
|
|
|
7945
7965
|
font-weight: 700;
|
|
7946
7966
|
}
|
|
7947
7967
|
|
|
7968
|
+
.font-medium{
|
|
7969
|
+
font-weight: 500;
|
|
7970
|
+
}
|
|
7971
|
+
|
|
7948
7972
|
.uppercase{
|
|
7949
7973
|
text-transform: uppercase;
|
|
7950
7974
|
}
|
|
@@ -8487,10 +8511,6 @@ input[type]::placeholder{
|
|
|
8487
8511
|
text-decoration-line: line-through;
|
|
8488
8512
|
}
|
|
8489
8513
|
|
|
8490
|
-
.decoration-\[var\(--color-primary-600\)\]{
|
|
8491
|
-
text-decoration-color: var(--color-primary-600);
|
|
8492
|
-
}
|
|
8493
|
-
|
|
8494
8514
|
.decoration-2{
|
|
8495
8515
|
text-decoration-thickness: 2px;
|
|
8496
8516
|
}
|
|
@@ -21705,12 +21725,8 @@ input[type]::placeholder{
|
|
|
21705
21725
|
margin-bottom: 64px;
|
|
21706
21726
|
}
|
|
21707
21727
|
|
|
21708
|
-
.xs\:
|
|
21709
|
-
margin-
|
|
21710
|
-
}
|
|
21711
|
-
|
|
21712
|
-
.xs\:mt-16{
|
|
21713
|
-
margin-top: 16px;
|
|
21728
|
+
.xs\:mb-8{
|
|
21729
|
+
margin-bottom: 8px;
|
|
21714
21730
|
}
|
|
21715
21731
|
|
|
21716
21732
|
.xs\:mt-32{
|
|
@@ -21748,10 +21764,6 @@ input[type]::placeholder{
|
|
|
21748
21764
|
height: 16px;
|
|
21749
21765
|
}
|
|
21750
21766
|
|
|
21751
|
-
.xs\:h-24{
|
|
21752
|
-
height: 24px;
|
|
21753
|
-
}
|
|
21754
|
-
|
|
21755
21767
|
.xs\:\!w-\[191px\]{
|
|
21756
21768
|
width: 191px !important;
|
|
21757
21769
|
}
|
|
@@ -21760,10 +21772,6 @@ input[type]::placeholder{
|
|
|
21760
21772
|
width: 89px !important;
|
|
21761
21773
|
}
|
|
21762
21774
|
|
|
21763
|
-
.xs\:w-\[118px\]{
|
|
21764
|
-
width: 118px;
|
|
21765
|
-
}
|
|
21766
|
-
|
|
21767
21775
|
.xs\:w-\[calc\(100\%\+32px\)\]{
|
|
21768
21776
|
width: calc(100% + 32px);
|
|
21769
21777
|
}
|
|
@@ -22124,10 +22132,6 @@ input[type]::placeholder{
|
|
|
22124
22132
|
align-items: flex-start;
|
|
22125
22133
|
}
|
|
22126
22134
|
|
|
22127
|
-
.xs\:justify-start{
|
|
22128
|
-
justify-content: flex-start;
|
|
22129
|
-
}
|
|
22130
|
-
|
|
22131
22135
|
.xs\:justify-between{
|
|
22132
22136
|
justify-content: space-between;
|
|
22133
22137
|
}
|
|
@@ -27500,6 +27504,10 @@ input[type]::placeholder{
|
|
|
27500
27504
|
stroke-width: 2;
|
|
27501
27505
|
}
|
|
27502
27506
|
|
|
27507
|
+
.xs\:p-0{
|
|
27508
|
+
padding: 0px;
|
|
27509
|
+
}
|
|
27510
|
+
|
|
27503
27511
|
.xs\:p-32{
|
|
27504
27512
|
padding: 32px;
|
|
27505
27513
|
}
|
|
@@ -27536,14 +27544,6 @@ input[type]::placeholder{
|
|
|
27536
27544
|
padding-left: 0px;
|
|
27537
27545
|
}
|
|
27538
27546
|
|
|
27539
|
-
.xs\:pl-32{
|
|
27540
|
-
padding-left: 32px;
|
|
27541
|
-
}
|
|
27542
|
-
|
|
27543
|
-
.xs\:pl-\[9px\]{
|
|
27544
|
-
padding-left: 9px;
|
|
27545
|
-
}
|
|
27546
|
-
|
|
27547
27547
|
.xs\:pt-32{
|
|
27548
27548
|
padding-top: 32px;
|
|
27549
27549
|
}
|
|
@@ -28432,10 +28432,6 @@ input[type]::placeholder{
|
|
|
28432
28432
|
grid-column-end: 5;
|
|
28433
28433
|
}
|
|
28434
28434
|
|
|
28435
|
-
.md\:col-end-8{
|
|
28436
|
-
grid-column-end: 8;
|
|
28437
|
-
}
|
|
28438
|
-
|
|
28439
28435
|
.md\:mx-64{
|
|
28440
28436
|
margin-left: 64px;
|
|
28441
28437
|
margin-right: 64px;
|
|
@@ -28476,14 +28472,14 @@ input[type]::placeholder{
|
|
|
28476
28472
|
margin-bottom: 144px;
|
|
28477
28473
|
}
|
|
28478
28474
|
|
|
28479
|
-
.md\:ml-0{
|
|
28480
|
-
margin-left: 0px;
|
|
28481
|
-
}
|
|
28482
|
-
|
|
28483
28475
|
.md\:mr-16{
|
|
28484
28476
|
margin-right: 16px;
|
|
28485
28477
|
}
|
|
28486
28478
|
|
|
28479
|
+
.md\:mr-32{
|
|
28480
|
+
margin-right: 32px;
|
|
28481
|
+
}
|
|
28482
|
+
|
|
28487
28483
|
.md\:mt-0{
|
|
28488
28484
|
margin-top: 0px;
|
|
28489
28485
|
}
|
|
@@ -28527,10 +28523,6 @@ input[type]::placeholder{
|
|
|
28527
28523
|
display: none;
|
|
28528
28524
|
}
|
|
28529
28525
|
|
|
28530
|
-
.md\:h-40{
|
|
28531
|
-
height: 40px;
|
|
28532
|
-
}
|
|
28533
|
-
|
|
28534
28526
|
.md\:h-\[calc\(100\%-2px\)\]{
|
|
28535
28527
|
height: calc(100% - 2px);
|
|
28536
28528
|
}
|
|
@@ -28543,10 +28535,6 @@ input[type]::placeholder{
|
|
|
28543
28535
|
width: 220px !important;
|
|
28544
28536
|
}
|
|
28545
28537
|
|
|
28546
|
-
.md\:w-\[137px\]{
|
|
28547
|
-
width: 137px;
|
|
28548
|
-
}
|
|
28549
|
-
|
|
28550
28538
|
.md\:w-\[50\%\]{
|
|
28551
28539
|
width: 50%;
|
|
28552
28540
|
}
|
|
@@ -35281,10 +35269,6 @@ input[type]::placeholder{
|
|
|
35281
35269
|
grid-column-start: 8;
|
|
35282
35270
|
}
|
|
35283
35271
|
|
|
35284
|
-
.xl\:col-start-9{
|
|
35285
|
-
grid-column-start: 9;
|
|
35286
|
-
}
|
|
35287
|
-
|
|
35288
35272
|
.xl\:col-end-9{
|
|
35289
35273
|
grid-column-end: 9;
|
|
35290
35274
|
}
|
|
@@ -35394,10 +35378,6 @@ input[type]::placeholder{
|
|
|
35394
35378
|
width: 1120px;
|
|
35395
35379
|
}
|
|
35396
35380
|
|
|
35397
|
-
.xl\:w-\[175px\]{
|
|
35398
|
-
width: 175px;
|
|
35399
|
-
}
|
|
35400
|
-
|
|
35401
35381
|
.xl\:w-\[40\%\]{
|
|
35402
35382
|
width: 40%;
|
|
35403
35383
|
}
|
|
@@ -35410,10 +35390,6 @@ input[type]::placeholder{
|
|
|
35410
35390
|
width: 696px;
|
|
35411
35391
|
}
|
|
35412
35392
|
|
|
35413
|
-
.xl\:w-\[800px\]{
|
|
35414
|
-
width: 800px;
|
|
35415
|
-
}
|
|
35416
|
-
|
|
35417
35393
|
.xl\:\!min-w-min{
|
|
35418
35394
|
min-width: -moz-min-content !important;
|
|
35419
35395
|
min-width: min-content !important;
|
|
@@ -35807,10 +35783,6 @@ input[type]::placeholder{
|
|
|
35807
35783
|
align-items: center;
|
|
35808
35784
|
}
|
|
35809
35785
|
|
|
35810
|
-
.xl\:justify-start{
|
|
35811
|
-
justify-content: flex-start;
|
|
35812
|
-
}
|
|
35813
|
-
|
|
35814
35786
|
.xl\:justify-end{
|
|
35815
35787
|
justify-content: flex-end;
|
|
35816
35788
|
}
|
|
@@ -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;
|
package/package.json
CHANGED
|
File without changes
|